diff --git a/sdk/compute/arm-compute/CHANGELOG.md b/sdk/compute/arm-compute/CHANGELOG.md
index bc6d704710b2..ac1af4ace3d5 100644
--- a/sdk/compute/arm-compute/CHANGELOG.md
+++ b/sdk/compute/arm-compute/CHANGELOG.md
@@ -1,15 +1,13 @@
# Release History
+
+## 19.2.0 (2022-08-18)
+
+**Features**
-## 19.1.1 (Unreleased)
-
-### Features Added
-
-### Breaking Changes
-
-### Bugs Fixed
-
-### Other Changes
-
+ - Interface LinuxConfiguration has a new optional parameter enableVMAgentPlatformUpdates
+ - Interface WindowsConfiguration has a new optional parameter enableVMAgentPlatformUpdates
+
+
## 19.1.0 (2022-06-27)
**Features**
diff --git a/sdk/compute/arm-compute/_meta.json b/sdk/compute/arm-compute/_meta.json
index e0d49b3045bd..bc7a4a15b8ba 100644
--- a/sdk/compute/arm-compute/_meta.json
+++ b/sdk/compute/arm-compute/_meta.json
@@ -1,8 +1,8 @@
{
- "commit": "fda2db441da3f1fab31bb235e97da3e33c8e3903",
+ "commit": "a76e8e63edc0db5f05efebb609d82abf1a52f154",
"readme": "specification/compute/resource-manager/readme.md",
- "autorest_command": "autorest --version=3.7.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\compute\\resource-manager\\readme.md --use=@autorest/typescript@6.0.0-rc.1 --generate-sample=true",
+ "autorest_command": "autorest --version=3.8.4 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/compute/resource-manager/readme.md --use=@autorest/typescript@6.0.0-rc.1",
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
- "release_tool": "@azure-tools/js-sdk-release-tools@2.3.2",
+ "release_tool": "@azure-tools/js-sdk-release-tools@2.4.2",
"use": "@autorest/typescript@6.0.0-rc.1"
}
\ No newline at end of file
diff --git a/sdk/compute/arm-compute/package.json b/sdk/compute/arm-compute/package.json
index be47957c6a14..352341a0896f 100644
--- a/sdk/compute/arm-compute/package.json
+++ b/sdk/compute/arm-compute/package.json
@@ -3,7 +3,7 @@
"sdk-type": "mgmt",
"author": "Microsoft Corporation",
"description": "A generated SDK for ComputeManagementClient.",
- "version": "19.1.1",
+ "version": "19.2.0",
"engines": {
"node": ">=12.0.0"
},
@@ -46,8 +46,7 @@
"@types/chai": "^4.2.8",
"chai": "^4.2.0",
"cross-env": "^7.0.2",
- "@azure/dev-tool": "^1.0.0",
- "@azure/arm-network": "^26.0.0"
+ "@azure/dev-tool": "^1.0.0"
},
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/compute/arm-compute",
"repository": {
@@ -110,13 +109,5 @@
}
]
},
- "autoPublish": true,
- "//sampleConfiguration": {
- "productName": "",
- "productSlugs": [
- "azure"
- ],
- "disableDocsMs": true,
- "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-compute?view=azure-node-preview"
- }
-}
+ "autoPublish": true
+}
\ No newline at end of file
diff --git a/sdk/compute/arm-compute/review/arm-compute.api.md b/sdk/compute/arm-compute/review/arm-compute.api.md
index 700a1f1cbb7e..520988de77ae 100644
--- a/sdk/compute/arm-compute/review/arm-compute.api.md
+++ b/sdk/compute/arm-compute/review/arm-compute.api.md
@@ -3710,6 +3710,7 @@ export interface LastPatchInstallationSummary {
// @public
export interface LinuxConfiguration {
disablePasswordAuthentication?: boolean;
+ enableVMAgentPlatformUpdates?: boolean;
patchSettings?: LinuxPatchSettings;
provisionVMAgent?: boolean;
ssh?: SshConfiguration;
@@ -4992,7 +4993,7 @@ export interface ShareInfoElement {
// @public
export interface SharingProfile {
- communityGalleryInfo?: any;
+ communityGalleryInfo?: CommunityGalleryInfo;
readonly groups?: SharingProfileGroup[];
permissions?: GallerySharingPermissionTypes;
}
@@ -5601,7 +5602,7 @@ export interface VirtualMachineExtension extends ResourceWithOptionalLocation {
forceUpdateTag?: string;
instanceView?: VirtualMachineExtensionInstanceView;
protectedSettings?: any;
- protectedSettingsFromKeyVault?: any;
+ protectedSettingsFromKeyVault?: KeyVaultSecretReference;
readonly provisioningState?: string;
publisher?: string;
settings?: any;
@@ -5731,7 +5732,7 @@ export interface VirtualMachineExtensionUpdate extends UpdateResource {
enableAutomaticUpgrade?: boolean;
forceUpdateTag?: string;
protectedSettings?: any;
- protectedSettingsFromKeyVault?: any;
+ protectedSettingsFromKeyVault?: KeyVaultSecretReference;
publisher?: string;
settings?: any;
suppressFailures?: boolean;
@@ -6248,7 +6249,7 @@ export interface VirtualMachineScaleSetExtension extends SubResourceReadOnly {
forceUpdateTag?: string;
name?: string;
protectedSettings?: any;
- protectedSettingsFromKeyVault?: any;
+ protectedSettingsFromKeyVault?: KeyVaultSecretReference;
provisionAfterExtensions?: string[];
readonly provisioningState?: string;
publisher?: string;
@@ -6336,7 +6337,7 @@ export interface VirtualMachineScaleSetExtensionUpdate extends SubResourceReadOn
forceUpdateTag?: string;
readonly name?: string;
protectedSettings?: any;
- protectedSettingsFromKeyVault?: any;
+ protectedSettingsFromKeyVault?: KeyVaultSecretReference;
provisionAfterExtensions?: string[];
readonly provisioningState?: string;
publisher?: string;
@@ -6936,7 +6937,7 @@ export interface VirtualMachineScaleSetVMExtension extends SubResourceReadOnly {
instanceView?: VirtualMachineExtensionInstanceView;
readonly name?: string;
protectedSettings?: any;
- protectedSettingsFromKeyVault?: any;
+ protectedSettingsFromKeyVault?: KeyVaultSecretReference;
readonly provisioningState?: string;
publisher?: string;
settings?: any;
@@ -7016,7 +7017,7 @@ export interface VirtualMachineScaleSetVMExtensionUpdate extends SubResourceRead
forceUpdateTag?: string;
readonly name?: string;
protectedSettings?: any;
- protectedSettingsFromKeyVault?: any;
+ protectedSettingsFromKeyVault?: KeyVaultSecretReference;
publisher?: string;
settings?: any;
suppressFailures?: boolean;
@@ -7637,6 +7638,7 @@ export interface VMSizeProperties {
export interface WindowsConfiguration {
additionalUnattendContent?: AdditionalUnattendContent[];
enableAutomaticUpdates?: boolean;
+ enableVMAgentPlatformUpdates?: boolean;
patchSettings?: PatchSettings;
provisionVMAgent?: boolean;
timeZone?: string;
diff --git a/sdk/compute/arm-compute/src/computeManagementClient.ts b/sdk/compute/arm-compute/src/computeManagementClient.ts
index fcad09ae3ed1..673fad3a5618 100644
--- a/sdk/compute/arm-compute/src/computeManagementClient.ts
+++ b/sdk/compute/arm-compute/src/computeManagementClient.ts
@@ -145,12 +145,15 @@ export class ComputeManagementClient extends coreClient.ServiceClient {
credential: credentials
};
- const packageDetails = `azsdk-js-arm-compute/19.1.1`;
+ const packageDetails = `azsdk-js-arm-compute/19.2.0`;
const userAgentPrefix =
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
: `${packageDetails}`;
+ if (!options.credentialScopes) {
+ options.credentialScopes = ["https://management.azure.com/.default"];
+ }
const optionsWithDefaults = {
...defaults,
...options,
diff --git a/sdk/compute/arm-compute/src/models/index.ts b/sdk/compute/arm-compute/src/models/index.ts
index 8d5fc8a46e68..7bca34227306 100644
--- a/sdk/compute/arm-compute/src/models/index.ts
+++ b/sdk/compute/arm-compute/src/models/index.ts
@@ -245,7 +245,7 @@ export interface VirtualMachineScaleSetVMProfile {
capacityReservation?: CapacityReservationProfile;
/** Specifies the gallery applications that should be made available to the VM/VMSS */
applicationProfile?: ApplicationProfile;
- /** Specifies the hardware profile related details of a scale set.
Minimum api-version: 2022-03-01. */
+ /** Specifies the hardware profile related details of a scale set.
Minimum api-version: 2021-11-01. */
hardwareProfile?: VirtualMachineScaleSetHardwareProfile;
}
@@ -283,6 +283,8 @@ export interface WindowsConfiguration {
patchSettings?: PatchSettings;
/** Specifies the Windows Remote Management listeners. This enables remote Windows PowerShell. */
winRM?: WinRMConfiguration;
+ /** Indicates whether VMAgent Platform Updates is enabled for the Windows virtual machine. Default value is false. */
+ enableVMAgentPlatformUpdates?: boolean;
}
/** Specifies additional XML formatted information that can be included in the Unattend.xml file, which is used by Windows Setup. Contents are defined by setting name, component name, and the pass in which the content is applied. */
@@ -339,6 +341,8 @@ export interface LinuxConfiguration {
provisionVMAgent?: boolean;
/** [Preview Feature] Specifies settings related to VM Guest Patching on Linux. */
patchSettings?: LinuxPatchSettings;
+ /** Indicates whether VMAgent Platform Updates is enabled for the Linux virtual machine. Default value is false. */
+ enableVMAgentPlatformUpdates?: boolean;
}
/** SSH configuration for Linux based VMs running on Azure */
@@ -588,6 +592,14 @@ export interface VirtualMachineScaleSetExtensionProfile {
extensionsTimeBudget?: string;
}
+/** Describes a reference to Key Vault Secret */
+export interface KeyVaultSecretReference {
+ /** The URL referencing a secret in a Key Vault. */
+ secretUrl: string;
+ /** The relative URL of the Key Vault containing the secret. */
+ sourceVault: SubResource;
+}
+
export interface SubResourceReadOnly {
/**
* Resource Id
@@ -644,7 +656,7 @@ export interface VMGalleryApplication {
/** Specifies the hardware settings for the virtual machine scale set. */
export interface VirtualMachineScaleSetHardwareProfile {
- /** Specifies the properties for customizing the size of the virtual machine. Minimum api-version: 2022-03-01.
Please follow the instructions in [VM Customization](https://aka.ms/vmcustomization) for more details. */
+ /** Specifies the properties for customizing the size of the virtual machine. Minimum api-version: 2021-11-01.
Please follow the instructions in [VM Customization](https://aka.ms/vmcustomization) for more details. */
vmSizeProperties?: VMSizeProperties;
}
@@ -1295,14 +1307,6 @@ export interface DiskEncryptionSettings {
enabled?: boolean;
}
-/** Describes a reference to Key Vault Secret */
-export interface KeyVaultSecretReference {
- /** The URL referencing a secret in a Key Vault. */
- secretUrl: string;
- /** The relative URL of the Key Vault containing the secret. */
- sourceVault: SubResource;
-}
-
/** Describes a reference to Key Vault Key */
export interface KeyVaultKeyReference {
/** The URL referencing a key encryption key in Key Vault. */
@@ -3221,7 +3225,7 @@ export interface SharingProfile {
*/
readonly groups?: SharingProfileGroup[];
/** Information of community gallery if current gallery is shared to community. */
- communityGalleryInfo?: any;
+ communityGalleryInfo?: CommunityGalleryInfo;
}
/** Group of the gallery sharing profile */
@@ -3232,6 +3236,28 @@ export interface SharingProfileGroup {
ids?: string[];
}
+/** Information of community gallery if current gallery is shared to community */
+export interface CommunityGalleryInfo {
+ /** The link to the publisher website. Visible to all users. */
+ publisherUri?: string;
+ /** Community gallery publisher support email. The email address of the publisher. Visible to all users. */
+ publisherContact?: string;
+ /** End-user license agreement for community gallery image. */
+ eula?: string;
+ /** The prefix of the gallery name that will be displayed publicly. Visible to all users. */
+ publicNamePrefix?: string;
+ /**
+ * Contains info about whether community gallery sharing is enabled.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
+ */
+ readonly communityGalleryEnabled?: boolean;
+ /**
+ * Community gallery public name list.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
+ */
+ readonly publicNames?: string[];
+}
+
/** Contains information about the soft deletion policy of the gallery. */
export interface SoftDeletePolicy {
/** Enables soft-deletion for resources in this gallery, allowing them to be recovered within retention time. */
@@ -4275,28 +4301,6 @@ export interface OSFamilyListResult {
nextLink?: string;
}
-/** Information of community gallery if current gallery is shared to community */
-export interface CommunityGalleryInfo {
- /** The link to the publisher website. Visible to all users. */
- publisherUri?: string;
- /** Community gallery publisher support email. The email address of the publisher. Visible to all users. */
- publisherContact?: string;
- /** End-user license agreement for community gallery image. */
- eula?: string;
- /** The prefix of the gallery name that will be displayed publicly. Visible to all users. */
- publicNamePrefix?: string;
- /**
- * Contains info about whether community gallery sharing is enabled.
- * NOTE: This property will not be serialized. It can only be populated by the server.
- */
- readonly communityGalleryEnabled?: boolean;
- /**
- * Community gallery public name list.
- * NOTE: This property will not be serialized. It can only be populated by the server.
- */
- readonly publicNames?: string[];
-}
-
/** The source image from which the Image Version is going to be created. */
export interface GalleryArtifactSource {
/** The managed artifact. */
@@ -4518,7 +4522,7 @@ export interface VirtualMachineScaleSetExtension extends SubResourceReadOnly {
/** Indicates whether failures stemming from the extension will be suppressed (Operational failures such as not connecting to the VM will not be suppressed regardless of this value). The default is false. */
suppressFailures?: boolean;
/** The extensions protected settings that are passed by reference, and consumed from key vault */
- protectedSettingsFromKeyVault?: any;
+ protectedSettingsFromKeyVault?: KeyVaultSecretReference;
}
/** Describes a Virtual Machine Scale Set Extension. */
@@ -4560,7 +4564,7 @@ export interface VirtualMachineScaleSetExtensionUpdate
/** Indicates whether failures stemming from the extension will be suppressed (Operational failures such as not connecting to the VM will not be suppressed regardless of this value). The default is false. */
suppressFailures?: boolean;
/** The extensions protected settings that are passed by reference, and consumed from key vault */
- protectedSettingsFromKeyVault?: any;
+ protectedSettingsFromKeyVault?: KeyVaultSecretReference;
}
/** Describes a VMSS VM Extension. */
@@ -4601,7 +4605,7 @@ export interface VirtualMachineScaleSetVMExtension extends SubResourceReadOnly {
/** Indicates whether failures stemming from the extension will be suppressed (Operational failures such as not connecting to the VM will not be suppressed regardless of this value). The default is false. */
suppressFailures?: boolean;
/** The extensions protected settings that are passed by reference, and consumed from key vault */
- protectedSettingsFromKeyVault?: any;
+ protectedSettingsFromKeyVault?: KeyVaultSecretReference;
}
/** Describes a VMSS VM Extension. */
@@ -4636,7 +4640,7 @@ export interface VirtualMachineScaleSetVMExtensionUpdate
/** Indicates whether failures stemming from the extension will be suppressed (Operational failures such as not connecting to the VM will not be suppressed regardless of this value). The default is false. */
suppressFailures?: boolean;
/** The extensions protected settings that are passed by reference, and consumed from key vault */
- protectedSettingsFromKeyVault?: any;
+ protectedSettingsFromKeyVault?: KeyVaultSecretReference;
}
/** Describes a Virtual Machine Scale Set. */
@@ -4690,7 +4694,7 @@ export interface VirtualMachineScaleSet extends Resource {
/** Specifies the Spot Restore properties for the virtual machine scale set. */
spotRestorePolicy?: SpotRestorePolicy;
/**
- * Specifies the time at which the Virtual Machine Scale Set resource was created.
Minimum api-version: 2022-03-01.
+ * Specifies the time at which the Virtual Machine Scale Set resource was created.
Minimum api-version: 2021-11-01.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly timeCreated?: Date;
@@ -4872,7 +4876,7 @@ export interface VirtualMachine extends Resource {
/** Specifies the gallery applications that should be made available to the VM/VMSS */
applicationProfile?: ApplicationProfile;
/**
- * Specifies the time at which the Virtual Machine resource was created.
Minimum api-version: 2022-03-01.
+ * Specifies the time at which the Virtual Machine resource was created.
Minimum api-version: 2021-11-01.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly timeCreated?: Date;
@@ -4996,7 +5000,7 @@ export interface DedicatedHost extends Resource {
*/
readonly instanceView?: DedicatedHostInstanceView;
/**
- * Specifies the time at which the Dedicated Host resource was created.
Minimum api-version: 2022-03-01.
+ * Specifies the time at which the Dedicated Host resource was created.
Minimum api-version: 2021-11-01.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly timeCreated?: Date;
@@ -5099,7 +5103,7 @@ export interface CapacityReservation extends Resource {
*/
readonly instanceView?: CapacityReservationInstanceView;
/**
- * Specifies the time at which the Capacity Reservation resource was created.
Minimum api-version: 2022-03-01.
+ * Specifies the time at which the Capacity Reservation resource was created.
Minimum api-version: 2021-11-01.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly timeCreated?: Date;
@@ -5521,7 +5525,7 @@ export interface VirtualMachineExtensionUpdate extends UpdateResource {
/** Indicates whether failures stemming from the extension will be suppressed (Operational failures such as not connecting to the VM will not be suppressed regardless of this value). The default is false. */
suppressFailures?: boolean;
/** The extensions protected settings that are passed by reference, and consumed from key vault */
- protectedSettingsFromKeyVault?: any;
+ protectedSettingsFromKeyVault?: KeyVaultSecretReference;
}
/** Describes a Virtual Machine Update. */
@@ -5592,7 +5596,7 @@ export interface VirtualMachineUpdate extends UpdateResource {
/** Specifies the gallery applications that should be made available to the VM/VMSS */
applicationProfile?: ApplicationProfile;
/**
- * Specifies the time at which the Virtual Machine resource was created.
Minimum api-version: 2022-03-01.
+ * Specifies the time at which the Virtual Machine resource was created.
Minimum api-version: 2021-11-01.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly timeCreated?: Date;
@@ -5676,7 +5680,7 @@ export interface DedicatedHostUpdate extends UpdateResource {
*/
readonly instanceView?: DedicatedHostInstanceView;
/**
- * Specifies the time at which the Dedicated Host resource was created.
Minimum api-version: 2022-03-01.
+ * Specifies the time at which the Dedicated Host resource was created.
Minimum api-version: 2021-11-01.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly timeCreated?: Date;
@@ -5773,7 +5777,7 @@ export interface CapacityReservationUpdate extends UpdateResource {
*/
readonly instanceView?: CapacityReservationInstanceView;
/**
- * Specifies the time at which the Capacity Reservation resource was created.
Minimum api-version: 2022-03-01.
+ * Specifies the time at which the Capacity Reservation resource was created.
Minimum api-version: 2021-11-01.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly timeCreated?: Date;
@@ -5843,7 +5847,7 @@ export interface VirtualMachineExtension extends ResourceWithOptionalLocation {
/** Indicates whether failures stemming from the extension will be suppressed (Operational failures such as not connecting to the VM will not be suppressed regardless of this value). The default is false. */
suppressFailures?: boolean;
/** The extensions protected settings that are passed by reference, and consumed from key vault */
- protectedSettingsFromKeyVault?: any;
+ protectedSettingsFromKeyVault?: KeyVaultSecretReference;
}
/** The instance view of a dedicated host that includes the name of the dedicated host. It is used for the response to the instance view of a dedicated host group. */
@@ -5860,7 +5864,7 @@ export interface DedicatedHostInstanceViewWithName
export interface ImageOSDisk extends ImageDisk {
/** This property allows you to specify the type of the OS that is included in the disk if creating a VM from a custom image.
Possible values are:
**Windows**
**Linux** */
osType: OperatingSystemTypes;
- /** The OS State. */
+ /** The OS State. For managed images, use Generalized. */
osState: OperatingSystemStateTypes;
}
diff --git a/sdk/compute/arm-compute/src/models/mappers.ts b/sdk/compute/arm-compute/src/models/mappers.ts
index 36e07b6457b7..40b67b23d947 100644
--- a/sdk/compute/arm-compute/src/models/mappers.ts
+++ b/sdk/compute/arm-compute/src/models/mappers.ts
@@ -796,6 +796,12 @@ export const WindowsConfiguration: coreClient.CompositeMapper = {
name: "Composite",
className: "WinRMConfiguration"
}
+ },
+ enableVMAgentPlatformUpdates: {
+ serializedName: "enableVMAgentPlatformUpdates",
+ type: {
+ name: "Boolean"
+ }
}
}
}
@@ -961,6 +967,12 @@ export const LinuxConfiguration: coreClient.CompositeMapper = {
name: "Composite",
className: "LinuxPatchSettings"
}
+ },
+ enableVMAgentPlatformUpdates: {
+ serializedName: "enableVMAgentPlatformUpdates",
+ type: {
+ name: "Boolean"
+ }
}
}
}
@@ -1704,6 +1716,29 @@ export const VirtualMachineScaleSetExtensionProfile: coreClient.CompositeMapper
}
};
+export const KeyVaultSecretReference: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "KeyVaultSecretReference",
+ modelProperties: {
+ secretUrl: {
+ serializedName: "secretUrl",
+ required: true,
+ type: {
+ name: "String"
+ }
+ },
+ sourceVault: {
+ serializedName: "sourceVault",
+ type: {
+ name: "Composite",
+ className: "SubResource"
+ }
+ }
+ }
+ }
+};
+
export const SubResourceReadOnly: coreClient.CompositeMapper = {
type: {
name: "Composite",
@@ -3474,29 +3509,6 @@ export const DiskEncryptionSettings: coreClient.CompositeMapper = {
}
};
-export const KeyVaultSecretReference: coreClient.CompositeMapper = {
- type: {
- name: "Composite",
- className: "KeyVaultSecretReference",
- modelProperties: {
- secretUrl: {
- serializedName: "secretUrl",
- required: true,
- type: {
- name: "String"
- }
- },
- sourceVault: {
- serializedName: "sourceVault",
- type: {
- name: "Composite",
- className: "SubResource"
- }
- }
- }
- }
-};
-
export const KeyVaultKeyReference: coreClient.CompositeMapper = {
type: {
name: "Composite",
@@ -8374,7 +8386,8 @@ export const SharingProfile: coreClient.CompositeMapper = {
communityGalleryInfo: {
serializedName: "communityGalleryInfo",
type: {
- name: "any"
+ name: "Composite",
+ className: "CommunityGalleryInfo"
}
}
}
@@ -8407,6 +8420,58 @@ export const SharingProfileGroup: coreClient.CompositeMapper = {
}
};
+export const CommunityGalleryInfo: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "CommunityGalleryInfo",
+ modelProperties: {
+ publisherUri: {
+ serializedName: "publisherUri",
+ type: {
+ name: "String"
+ }
+ },
+ publisherContact: {
+ serializedName: "publisherContact",
+ type: {
+ name: "String"
+ }
+ },
+ eula: {
+ serializedName: "eula",
+ type: {
+ name: "String"
+ }
+ },
+ publicNamePrefix: {
+ serializedName: "publicNamePrefix",
+ type: {
+ name: "String"
+ }
+ },
+ communityGalleryEnabled: {
+ serializedName: "communityGalleryEnabled",
+ readOnly: true,
+ type: {
+ name: "Boolean"
+ }
+ },
+ publicNames: {
+ serializedName: "publicNames",
+ readOnly: true,
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+ }
+ }
+};
+
export const SoftDeletePolicy: coreClient.CompositeMapper = {
type: {
name: "Composite",
@@ -10923,58 +10988,6 @@ export const OSFamilyListResult: coreClient.CompositeMapper = {
}
};
-export const CommunityGalleryInfo: coreClient.CompositeMapper = {
- type: {
- name: "Composite",
- className: "CommunityGalleryInfo",
- modelProperties: {
- publisherUri: {
- serializedName: "publisherUri",
- type: {
- name: "String"
- }
- },
- publisherContact: {
- serializedName: "publisherContact",
- type: {
- name: "String"
- }
- },
- eula: {
- serializedName: "eula",
- type: {
- name: "String"
- }
- },
- publicNamePrefix: {
- serializedName: "publicNamePrefix",
- type: {
- name: "String"
- }
- },
- communityGalleryEnabled: {
- serializedName: "communityGalleryEnabled",
- readOnly: true,
- type: {
- name: "Boolean"
- }
- },
- publicNames: {
- serializedName: "publicNames",
- readOnly: true,
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "String"
- }
- }
- }
- }
- }
- }
-};
-
export const GalleryArtifactSource: coreClient.CompositeMapper = {
type: {
name: "Composite",
@@ -11640,7 +11653,8 @@ export const VirtualMachineScaleSetExtension: coreClient.CompositeMapper = {
protectedSettingsFromKeyVault: {
serializedName: "properties.protectedSettingsFromKeyVault",
type: {
- name: "any"
+ name: "Composite",
+ className: "KeyVaultSecretReference"
}
}
}
@@ -11742,7 +11756,8 @@ export const VirtualMachineScaleSetExtensionUpdate: coreClient.CompositeMapper =
protectedSettingsFromKeyVault: {
serializedName: "properties.protectedSettingsFromKeyVault",
type: {
- name: "any"
+ name: "Composite",
+ className: "KeyVaultSecretReference"
}
}
}
@@ -11840,7 +11855,8 @@ export const VirtualMachineScaleSetVMExtension: coreClient.CompositeMapper = {
protectedSettingsFromKeyVault: {
serializedName: "properties.protectedSettingsFromKeyVault",
type: {
- name: "any"
+ name: "Composite",
+ className: "KeyVaultSecretReference"
}
}
}
@@ -11924,7 +11940,8 @@ export const VirtualMachineScaleSetVMExtensionUpdate: coreClient.CompositeMapper
protectedSettingsFromKeyVault: {
serializedName: "properties.protectedSettingsFromKeyVault",
type: {
- name: "any"
+ name: "Composite",
+ className: "KeyVaultSecretReference"
}
}
}
@@ -14181,7 +14198,8 @@ export const VirtualMachineExtensionUpdate: coreClient.CompositeMapper = {
protectedSettingsFromKeyVault: {
serializedName: "properties.protectedSettingsFromKeyVault",
type: {
- name: "any"
+ name: "Composite",
+ className: "KeyVaultSecretReference"
}
}
}
@@ -15001,7 +15019,8 @@ export const VirtualMachineExtension: coreClient.CompositeMapper = {
protectedSettingsFromKeyVault: {
serializedName: "properties.protectedSettingsFromKeyVault",
type: {
- name: "any"
+ name: "Composite",
+ className: "KeyVaultSecretReference"
}
}
}
diff --git a/sdk/compute/arm-compute/src/models/parameters.ts b/sdk/compute/arm-compute/src/models/parameters.ts
index cb61af9aba6d..34da2c466dfb 100644
--- a/sdk/compute/arm-compute/src/models/parameters.ts
+++ b/sdk/compute/arm-compute/src/models/parameters.ts
@@ -110,7 +110,7 @@ export const $host: OperationURLParameter = {
export const apiVersion: OperationQueryParameter = {
parameterPath: "apiVersion",
mapper: {
- defaultValue: "2022-03-01",
+ defaultValue: "2022-08-01",
isConstant: true,
serializedName: "api-version",
type: {
diff --git a/sdk/compute/arm-compute/test/sampleTest.ts b/sdk/compute/arm-compute/test/sampleTest.ts
new file mode 100644
index 000000000000..25aeb3ebcc36
--- /dev/null
+++ b/sdk/compute/arm-compute/test/sampleTest.ts
@@ -0,0 +1,43 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+import {
+ Recorder,
+ RecorderStartOptions,
+ env
+} from "@azure-tools/test-recorder";
+import { assert } from "chai";
+import { Context } from "mocha";
+
+const replaceableVariables: Record = {
+ AZURE_CLIENT_ID: "azure_client_id",
+ AZURE_CLIENT_SECRET: "azure_client_secret",
+ AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888",
+ SUBSCRIPTION_ID: "azure_subscription_id"
+};
+
+const recorderOptions: RecorderStartOptions = {
+ envSetupForPlayback: replaceableVariables
+};
+
+describe("My test", () => {
+ let recorder: Recorder;
+
+ beforeEach(async function(this: Context) {
+ recorder = new Recorder(this.currentTest);
+ await recorder.start(recorderOptions);
+ });
+
+ afterEach(async function() {
+ await recorder.stop();
+ });
+
+ it("sample test", async function() {
+ console.log("Hi, I'm a test!");
+ });
+});
diff --git a/sdk/compute/arm-compute/tsconfig.json b/sdk/compute/arm-compute/tsconfig.json
index b84abc8423ab..3e6ae96443f3 100644
--- a/sdk/compute/arm-compute/tsconfig.json
+++ b/sdk/compute/arm-compute/tsconfig.json
@@ -15,17 +15,11 @@
],
"declaration": true,
"outDir": "./dist-esm",
- "importHelpers": true,
- "paths": {
- "@azure/arm-compute": [
- "./src/index"
- ]
- }
+ "importHelpers": true
},
"include": [
"./src/**/*.ts",
- "./test/**/*.ts",
- "samples-dev/**/*.ts"
+ "./test/**/*.ts"
],
"exclude": [
"node_modules"