From 64224431f342c3233d6cc5732f9813210e0984f6 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Tue, 15 Aug 2023 03:00:31 +0000 Subject: [PATCH] CodeGen from PR 25291 in Azure/azure-rest-api-specs Merge 78d5105a853ed00d21333307af7d1cd16c145728 into 2d2d12d271c13bd1b56c1ed5e41c5f418ae46067 --- sdk/compute/arm-compute/CHANGELOG.md | 34 ++++-- sdk/compute/arm-compute/_meta.json | 8 +- sdk/compute/arm-compute/package.json | 19 +--- .../arm-compute/review/arm-compute.api.md | 45 ++++++++ .../src/computeManagementClient.ts | 2 +- sdk/compute/arm-compute/src/models/index.ts | 107 +++++++++++++++++- sdk/compute/arm-compute/src/models/mappers.ts | 68 +++++++++++ .../arm-compute/src/models/parameters.ts | 4 +- .../arm-compute/src/operations/images.ts | 6 +- .../src/operationsInterfaces/images.ts | 3 +- sdk/compute/arm-compute/test/sampleTest.ts | 43 +++++++ sdk/compute/arm-compute/tsconfig.json | 10 +- 12 files changed, 305 insertions(+), 44 deletions(-) create mode 100644 sdk/compute/arm-compute/test/sampleTest.ts diff --git a/sdk/compute/arm-compute/CHANGELOG.md b/sdk/compute/arm-compute/CHANGELOG.md index c04a14081ca2..acf9470d3a26 100644 --- a/sdk/compute/arm-compute/CHANGELOG.md +++ b/sdk/compute/arm-compute/CHANGELOG.md @@ -1,15 +1,29 @@ # Release History + +## 21.2.0 (2023-08-15) + +**Features** -## 21.1.1 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed - -### Other Changes - + - Added Type Alias DomainNameLabelScopeTypes + - Added Type Alias NetworkInterfaceAuxiliaryMode + - Added Type Alias NetworkInterfaceAuxiliarySku + - Interface CreationData has a new optional parameter elasticSanResourceId + - Interface Disk has a new optional parameter lastOwnershipUpdateTime + - Interface VirtualMachineNetworkInterfaceConfiguration has a new optional parameter auxiliaryMode + - Interface VirtualMachineNetworkInterfaceConfiguration has a new optional parameter auxiliarySku + - Interface VirtualMachinePublicIPAddressDnsSettingsConfiguration has a new optional parameter domainNameLabelScope + - Interface VirtualMachineScaleSetNetworkConfiguration has a new optional parameter auxiliaryMode + - Interface VirtualMachineScaleSetNetworkConfiguration has a new optional parameter auxiliarySku + - Interface VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings has a new optional parameter domainNameLabelScope + - Interface VirtualMachineScaleSetUpdateNetworkConfiguration has a new optional parameter auxiliaryMode + - Interface VirtualMachineScaleSetUpdateNetworkConfiguration has a new optional parameter auxiliarySku + - Interface VirtualMachineScaleSetVM has a new optional parameter timeCreated + - Added Enum KnownDomainNameLabelScopeTypes + - Added Enum KnownNetworkInterfaceAuxiliaryMode + - Added Enum KnownNetworkInterfaceAuxiliarySku + - Enum KnownDiskCreateOption has a new value CopyFromSanSnapshot + + ## 21.1.0 (2023-07-07) **Features** diff --git a/sdk/compute/arm-compute/_meta.json b/sdk/compute/arm-compute/_meta.json index 86612fe07657..e25f0c833170 100644 --- a/sdk/compute/arm-compute/_meta.json +++ b/sdk/compute/arm-compute/_meta.json @@ -1,8 +1,8 @@ { - "commit": "310a0100f5b020c1900c527a6aa70d21992f078a", + "commit": "ac6b825a961200d3603a4ccf802b2dc08146deca", "readme": "specification/compute/resource-manager/readme.md", - "autorest_command": "autorest --version=3.9.3 --typescript --modelerfour.lenient-model-deduplication --azure-arm --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.5 --generate-sample=true", + "autorest_command": "autorest --version=3.9.3 --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.4", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "release_tool": "@azure-tools/js-sdk-release-tools@2.7.0", - "use": "@autorest/typescript@6.0.5" + "release_tool": "@azure-tools/js-sdk-release-tools@2.7.1", + "use": "@autorest/typescript@^6.0.4" } \ No newline at end of file diff --git a/sdk/compute/arm-compute/package.json b/sdk/compute/arm-compute/package.json index 7bebc4e46ed2..fd50e930aab3 100644 --- a/sdk/compute/arm-compute/package.json +++ b/sdk/compute/arm-compute/package.json @@ -3,12 +3,12 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for ComputeManagementClient.", - "version": "21.1.1", + "version": "21.2.0", "engines": { "node": ">=14.0.0" }, "dependencies": { - "@azure/core-lro": "^2.5.3", + "@azure/core-lro": "^2.5.4", "@azure/abort-controller": "^1.0.0", "@azure/core-paging": "^1.2.0", "@azure/core-client": "^1.7.0", @@ -48,8 +48,7 @@ "chai": "^4.2.0", "cross-env": "^7.0.2", "@types/node": "^14.0.0", - "@azure/dev-tool": "^1.0.0", - "@azure/arm-network": "^26.0.0" + "@azure/dev-tool": "^1.0.0" }, "repository": { "type": "git", @@ -112,13 +111,5 @@ ] }, "autoPublish": true, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/compute/arm-compute", - "//sampleConfiguration": { - "productName": "", - "productSlugs": [ - "azure" - ], - "disableDocsMs": true, - "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-compute?view=azure-node-preview" - } -} + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/compute/arm-compute" +} \ 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 f9b50249b9ef..5009066562c1 100644 --- a/sdk/compute/arm-compute/review/arm-compute.api.md +++ b/sdk/compute/arm-compute/review/arm-compute.api.md @@ -1186,6 +1186,7 @@ export type CopyCompletionErrorReason = string; // @public export interface CreationData { createOption: DiskCreateOption; + elasticSanResourceId?: string; galleryImageReference?: ImageDiskReference; imageReference?: ImageDiskReference; logicalSectorSize?: number; @@ -1517,6 +1518,7 @@ export interface Disk extends Resource { encryptionSettingsCollection?: EncryptionSettingsCollection; extendedLocation?: ExtendedLocation; hyperVGeneration?: HyperVGeneration; + readonly lastOwnershipUpdateTime?: Date; readonly managedBy?: string; readonly managedByExtended?: string[]; maxShares?: number; @@ -2080,6 +2082,9 @@ export interface DiskUpdate { tier?: string; } +// @public +export type DomainNameLabelScopeTypes = string; + // @public export type EdgeZoneStorageAccountType = string; @@ -3149,6 +3154,7 @@ export enum KnownDiskControllerTypes { export enum KnownDiskCreateOption { Attach = "Attach", Copy = "Copy", + CopyFromSanSnapshot = "CopyFromSanSnapshot", CopyStart = "CopyStart", Empty = "Empty", FromImage = "FromImage", @@ -3223,6 +3229,14 @@ export enum KnownDiskStorageAccountTypes { UltraSSDLRS = "UltraSSD_LRS" } +// @public +export enum KnownDomainNameLabelScopeTypes { + NoReuse = "NoReuse", + ResourceGroupReuse = "ResourceGroupReuse", + SubscriptionReuse = "SubscriptionReuse", + TenantReuse = "TenantReuse" +} + // @public export enum KnownEdgeZoneStorageAccountType { PremiumLRS = "Premium_LRS", @@ -3383,6 +3397,22 @@ export enum KnownNetworkApiVersion { TwoThousandTwenty1101 = "2020-11-01" } +// @public +export enum KnownNetworkInterfaceAuxiliaryMode { + AcceleratedConnections = "AcceleratedConnections", + Floating = "Floating", + None = "None" +} + +// @public +export enum KnownNetworkInterfaceAuxiliarySku { + A1 = "A1", + A2 = "A2", + A4 = "A4", + A8 = "A8", + None = "None" +} + // @public export enum KnownOperatingSystemType { Linux = "Linux", @@ -4043,6 +4073,12 @@ export type NetworkAccessPolicy = string; // @public export type NetworkApiVersion = string; +// @public +export type NetworkInterfaceAuxiliaryMode = string; + +// @public +export type NetworkInterfaceAuxiliarySku = string; + // @public export interface NetworkInterfaceReference extends SubResource { deleteOption?: DeleteOptions; @@ -6197,6 +6233,8 @@ export interface VirtualMachineListResult { // @public export interface VirtualMachineNetworkInterfaceConfiguration { + auxiliaryMode?: NetworkInterfaceAuxiliaryMode; + auxiliarySku?: NetworkInterfaceAuxiliarySku; deleteOption?: DeleteOptions; disableTcpStateTracking?: boolean; dnsSettings?: VirtualMachineNetworkInterfaceDnsSettingsConfiguration; @@ -6254,6 +6292,7 @@ export interface VirtualMachinePublicIPAddressConfiguration { // @public export interface VirtualMachinePublicIPAddressDnsSettingsConfiguration { domainNameLabel: string; + domainNameLabelScope?: DomainNameLabelScopeTypes; } // @public @@ -6689,6 +6728,8 @@ export interface VirtualMachineScaleSetManagedDiskParameters { // @public export interface VirtualMachineScaleSetNetworkConfiguration { + auxiliaryMode?: NetworkInterfaceAuxiliaryMode; + auxiliarySku?: NetworkInterfaceAuxiliarySku; deleteOption?: DeleteOptions; disableTcpStateTracking?: boolean; dnsSettings?: VirtualMachineScaleSetNetworkConfigurationDnsSettings; @@ -6756,6 +6797,7 @@ export interface VirtualMachineScaleSetPublicIPAddressConfiguration { // @public export interface VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings { domainNameLabel: string; + domainNameLabelScope?: DomainNameLabelScopeTypes; } // @public @@ -7117,6 +7159,8 @@ export interface VirtualMachineScaleSetUpdateIPConfiguration { // @public export interface VirtualMachineScaleSetUpdateNetworkConfiguration { + auxiliaryMode?: NetworkInterfaceAuxiliaryMode; + auxiliarySku?: NetworkInterfaceAuxiliarySku; deleteOption?: DeleteOptions; disableTcpStateTracking?: boolean; dnsSettings?: VirtualMachineScaleSetNetworkConfigurationDnsSettings; @@ -7210,6 +7254,7 @@ export interface VirtualMachineScaleSetVM extends Resource { securityProfile?: SecurityProfile; readonly sku?: Sku; storageProfile?: StorageProfile; + readonly timeCreated?: Date; userData?: string; readonly vmId?: string; readonly zones?: string[]; diff --git a/sdk/compute/arm-compute/src/computeManagementClient.ts b/sdk/compute/arm-compute/src/computeManagementClient.ts index ac98c4bc74a1..e1fc45dbf8c3 100644 --- a/sdk/compute/arm-compute/src/computeManagementClient.ts +++ b/sdk/compute/arm-compute/src/computeManagementClient.ts @@ -145,7 +145,7 @@ export class ComputeManagementClient extends coreClient.ServiceClient { credential: credentials }; - const packageDetails = `azsdk-js-arm-compute/21.1.1`; + const packageDetails = `azsdk-js-arm-compute/21.2.0`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` diff --git a/sdk/compute/arm-compute/src/models/index.ts b/sdk/compute/arm-compute/src/models/index.ts index 42acaa4a2538..2645484a974c 100644 --- a/sdk/compute/arm-compute/src/models/index.ts +++ b/sdk/compute/arm-compute/src/models/index.ts @@ -541,6 +541,10 @@ export interface VirtualMachineScaleSetNetworkConfiguration { enableIPForwarding?: boolean; /** Specify what happens to the network interface when the VM is deleted */ deleteOption?: DeleteOptions; + /** Specifies whether the Auxiliary mode is enabled for the Network Interface resource. */ + auxiliaryMode?: NetworkInterfaceAuxiliaryMode; + /** Specifies whether the Auxiliary sku is enabled for the Network Interface resource. */ + auxiliarySku?: NetworkInterfaceAuxiliarySku; } /** Describes a virtual machines scale sets network configuration's DNS settings. */ @@ -595,6 +599,8 @@ export interface VirtualMachineScaleSetPublicIPAddressConfiguration { export interface VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings { /** The Domain name label.The concatenation of the domain name label and vm index will be the domain name labels of the PublicIPAddress resources that will be created */ domainNameLabel: string; + /** The Domain name label scope.The concatenation of the hashed domain name label that generated according to the policy from domain name label scope and vm index will be the domain name labels of the PublicIPAddress resources that will be created */ + domainNameLabelScope?: DomainNameLabelScopeTypes; } /** Contains the IP tag associated with the public IP address. */ @@ -998,6 +1004,10 @@ export interface VirtualMachineScaleSetUpdateNetworkConfiguration { enableIPForwarding?: boolean; /** Specify what happens to the network interface when the VM is deleted */ deleteOption?: DeleteOptions; + /** Specifies whether the Auxiliary mode is enabled for the Network Interface resource. */ + auxiliaryMode?: NetworkInterfaceAuxiliaryMode; + /** Specifies whether the Auxiliary sku is enabled for the Network Interface resource. */ + auxiliarySku?: NetworkInterfaceAuxiliarySku; } /** Describes a virtual machine scale set network profile's IP configuration. NOTE: The subnet of a scale set may be modified as long as the original subnet and the new subnet are in the same virtual network */ @@ -1668,6 +1678,10 @@ export interface VirtualMachineNetworkInterfaceConfiguration { /** Specifies the IP configurations of the network interface. */ ipConfigurations?: VirtualMachineNetworkInterfaceIPConfiguration[]; dscpConfiguration?: SubResource; + /** Specifies whether the Auxiliary mode is enabled for the Network Interface resource. */ + auxiliaryMode?: NetworkInterfaceAuxiliaryMode; + /** Specifies whether the Auxiliary sku is enabled for the Network Interface resource. */ + auxiliarySku?: NetworkInterfaceAuxiliarySku; } /** Describes a virtual machines network configuration's DNS settings. */ @@ -1722,6 +1736,8 @@ export interface VirtualMachinePublicIPAddressConfiguration { export interface VirtualMachinePublicIPAddressDnsSettingsConfiguration { /** The Domain name label prefix of the PublicIPAddress resources that will be created. The generated name label is the concatenation of the domain name label and vm network profile unique ID. */ domainNameLabel: string; + /** The Domain name label scope of the PublicIPAddress resources that will be created. The generated name label is the concatenation of the hashed domain name label with policy according to the domain name label scope and vm network profile unique ID. */ + domainNameLabelScope?: DomainNameLabelScopeTypes; } /** Contains the IP tag associated with the public IP address. */ @@ -2860,6 +2876,8 @@ export interface CreationData { securityDataUri?: string; /** Set this flag to true to get a boost on the performance target of the disk deployed, see here on the respective performance target. This flag can only be set on disk creation time and cannot be disabled after enabled. */ performancePlus?: boolean; + /** Required if createOption is CopyFromSanSnapshot. This is the ARM id of the source elastic san volume snapshot. */ + elasticSanResourceId?: string; } /** The source image used for creating the disk. */ @@ -5105,6 +5123,11 @@ export interface VirtualMachineScaleSetVM extends Resource { protectionPolicy?: VirtualMachineScaleSetVMProtectionPolicy; /** UserData for the VM, which must be base-64 encoded. Customer should not pass any secrets in here.

Minimum api-version: 2021-03-01 */ userData?: string; + /** + * 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; } /** Describes a Virtual Machine. */ @@ -5562,6 +5585,11 @@ export interface Disk extends Resource { dataAccessAuthMode?: DataAccessAuthMode; /** Setting this property to true improves reliability and performance of data disks that are frequently (more than 5 times a day) by detached from one virtual machine and attached to another. This property should not be set for disks that are not detached and attached frequently as it causes the disks to not align with the fault domain of the virtual machine. */ optimizedForFrequentAttach?: boolean; + /** + * The UTC time when the ownership state of the disk was last changed i.e., the time the disk was last attached or detached from a VM or the time when the VM to which the disk was attached was deallocated or started. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly lastOwnershipUpdateTime?: Date; } /** disk access resource. */ @@ -6900,6 +6928,30 @@ export enum KnownDiskDeleteOptionTypes { */ export type DiskDeleteOptionTypes = string; +/** Known values of {@link DomainNameLabelScopeTypes} that the service accepts. */ +export enum KnownDomainNameLabelScopeTypes { + /** TenantReuse */ + TenantReuse = "TenantReuse", + /** SubscriptionReuse */ + SubscriptionReuse = "SubscriptionReuse", + /** ResourceGroupReuse */ + ResourceGroupReuse = "ResourceGroupReuse", + /** NoReuse */ + NoReuse = "NoReuse" +} + +/** + * Defines values for DomainNameLabelScopeTypes. \ + * {@link KnownDomainNameLabelScopeTypes} can be used interchangeably with DomainNameLabelScopeTypes, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **TenantReuse** \ + * **SubscriptionReuse** \ + * **ResourceGroupReuse** \ + * **NoReuse** + */ +export type DomainNameLabelScopeTypes = string; + /** Known values of {@link IPVersion} that the service accepts. */ export enum KnownIPVersion { /** IPv4 */ @@ -6972,6 +7024,54 @@ export enum KnownPublicIPAddressSkuTier { */ export type PublicIPAddressSkuTier = string; +/** Known values of {@link NetworkInterfaceAuxiliaryMode} that the service accepts. */ +export enum KnownNetworkInterfaceAuxiliaryMode { + /** None */ + None = "None", + /** AcceleratedConnections */ + AcceleratedConnections = "AcceleratedConnections", + /** Floating */ + Floating = "Floating" +} + +/** + * Defines values for NetworkInterfaceAuxiliaryMode. \ + * {@link KnownNetworkInterfaceAuxiliaryMode} can be used interchangeably with NetworkInterfaceAuxiliaryMode, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **None** \ + * **AcceleratedConnections** \ + * **Floating** + */ +export type NetworkInterfaceAuxiliaryMode = string; + +/** Known values of {@link NetworkInterfaceAuxiliarySku} that the service accepts. */ +export enum KnownNetworkInterfaceAuxiliarySku { + /** None */ + None = "None", + /** A1 */ + A1 = "A1", + /** A2 */ + A2 = "A2", + /** A4 */ + A4 = "A4", + /** A8 */ + A8 = "A8" +} + +/** + * Defines values for NetworkInterfaceAuxiliarySku. \ + * {@link KnownNetworkInterfaceAuxiliarySku} can be used interchangeably with NetworkInterfaceAuxiliarySku, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **None** \ + * **A1** \ + * **A2** \ + * **A4** \ + * **A8** + */ +export type NetworkInterfaceAuxiliarySku = string; + /** Known values of {@link NetworkApiVersion} that the service accepts. */ export enum KnownNetworkApiVersion { /** TwoThousandTwenty1101 */ @@ -8379,7 +8479,9 @@ export enum KnownDiskCreateOption { /** Similar to Import create option. Create a new Trusted Launch VM or Confidential VM supported disk by importing additional blob for VM guest state specified by securityDataUri in storage account specified by storageAccountId */ ImportSecure = "ImportSecure", /** Similar to Upload create option. Create a new Trusted Launch VM or Confidential VM supported disk and upload using write token in both disk and VM guest state */ - UploadPreparedSecure = "UploadPreparedSecure" + UploadPreparedSecure = "UploadPreparedSecure", + /** Create a new disk by exporting from elastic san volume snapshot */ + CopyFromSanSnapshot = "CopyFromSanSnapshot" } /** @@ -8396,7 +8498,8 @@ export enum KnownDiskCreateOption { * **Upload**: Create a new disk by obtaining a write token and using it to directly upload the contents of the disk. \ * **CopyStart**: Create a new disk by using a deep copy process, where the resource creation is considered complete only after all data has been copied from the source. \ * **ImportSecure**: Similar to Import create option. Create a new Trusted Launch VM or Confidential VM supported disk by importing additional blob for VM guest state specified by securityDataUri in storage account specified by storageAccountId \ - * **UploadPreparedSecure**: Similar to Upload create option. Create a new Trusted Launch VM or Confidential VM supported disk and upload using write token in both disk and VM guest state + * **UploadPreparedSecure**: Similar to Upload create option. Create a new Trusted Launch VM or Confidential VM supported disk and upload using write token in both disk and VM guest state \ + * **CopyFromSanSnapshot**: Create a new disk by exporting from elastic san volume snapshot */ export type DiskCreateOption = string; diff --git a/sdk/compute/arm-compute/src/models/mappers.ts b/sdk/compute/arm-compute/src/models/mappers.ts index d95ac0bdbe91..f9f5533ae745 100644 --- a/sdk/compute/arm-compute/src/models/mappers.ts +++ b/sdk/compute/arm-compute/src/models/mappers.ts @@ -1580,6 +1580,18 @@ export const VirtualMachineScaleSetNetworkConfiguration: coreClient.CompositeMap type: { name: "String" } + }, + auxiliaryMode: { + serializedName: "properties.auxiliaryMode", + type: { + name: "String" + } + }, + auxiliarySku: { + serializedName: "properties.auxiliarySku", + type: { + name: "String" + } } } } @@ -1774,6 +1786,12 @@ export const VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings: core type: { name: "String" } + }, + domainNameLabelScope: { + serializedName: "domainNameLabelScope", + type: { + name: "String" + } } } } @@ -2911,6 +2929,18 @@ export const VirtualMachineScaleSetUpdateNetworkConfiguration: coreClient.Compos type: { name: "String" } + }, + auxiliaryMode: { + serializedName: "properties.auxiliaryMode", + type: { + name: "String" + } + }, + auxiliarySku: { + serializedName: "properties.auxiliarySku", + type: { + name: "String" + } } } } @@ -4617,6 +4647,18 @@ export const VirtualMachineNetworkInterfaceConfiguration: coreClient.CompositeMa name: "Composite", className: "SubResource" } + }, + auxiliaryMode: { + serializedName: "properties.auxiliaryMode", + type: { + name: "String" + } + }, + auxiliarySku: { + serializedName: "properties.auxiliarySku", + type: { + name: "String" + } } } } @@ -4804,6 +4846,12 @@ export const VirtualMachinePublicIPAddressDnsSettingsConfiguration: coreClient.C type: { name: "String" } + }, + domainNameLabelScope: { + serializedName: "domainNameLabelScope", + type: { + name: "String" + } } } } @@ -7578,6 +7626,12 @@ export const CreationData: coreClient.CompositeMapper = { type: { name: "Boolean" } + }, + elasticSanResourceId: { + serializedName: "elasticSanResourceId", + type: { + name: "String" + } } } } @@ -13078,6 +13132,13 @@ export const VirtualMachineScaleSetVM: coreClient.CompositeMapper = { type: { name: "String" } + }, + timeCreated: { + serializedName: "properties.timeCreated", + readOnly: true, + type: { + name: "DateTime" + } } } } @@ -14259,6 +14320,13 @@ export const Disk: coreClient.CompositeMapper = { type: { name: "Boolean" } + }, + lastOwnershipUpdateTime: { + serializedName: "properties.LastOwnershipUpdateTime", + readOnly: true, + type: { + name: "DateTime" + } } } } diff --git a/sdk/compute/arm-compute/src/models/parameters.ts b/sdk/compute/arm-compute/src/models/parameters.ts index b991bdde783f..912183585781 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: "2023-03-01", + defaultValue: "2023-07-01", isConstant: true, serializedName: "api-version", type: { @@ -966,7 +966,7 @@ export const diskName: OperationURLParameter = { export const apiVersion1: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2023-01-02", + defaultValue: "2023-04-02", isConstant: true, serializedName: "api-version", type: { diff --git a/sdk/compute/arm-compute/src/operations/images.ts b/sdk/compute/arm-compute/src/operations/images.ts index 1bc1ff8155f0..c59a61a63b0b 100644 --- a/sdk/compute/arm-compute/src/operations/images.ts +++ b/sdk/compute/arm-compute/src/operations/images.ts @@ -53,7 +53,8 @@ export class ImagesImpl implements Images { } /** - * Gets the list of images under a resource group. + * Gets the list of images under a resource group. Use nextLink property in the response to get the + * next page of Images. Do this till nextLink is null to fetch all the Images. * @param resourceGroupName The name of the resource group. * @param options The options parameters. */ @@ -463,7 +464,8 @@ export class ImagesImpl implements Images { } /** - * Gets the list of images under a resource group. + * Gets the list of images under a resource group. Use nextLink property in the response to get the + * next page of Images. Do this till nextLink is null to fetch all the Images. * @param resourceGroupName The name of the resource group. * @param options The options parameters. */ diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/images.ts b/sdk/compute/arm-compute/src/operationsInterfaces/images.ts index 8996335436a7..97bb85acd4ee 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/images.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/images.ts @@ -26,7 +26,8 @@ import { /** Interface representing a Images. */ export interface Images { /** - * Gets the list of images under a resource group. + * Gets the list of images under a resource group. Use nextLink property in the response to get the + * next page of Images. Do this till nextLink is null to fetch all the Images. * @param resourceGroupName The name of the resource group. * @param options The options parameters. */ 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"