diff --git a/sdk/compute/arm-compute/package.json b/sdk/compute/arm-compute/package.json index 117c35a6b556..15595435a5d3 100644 --- a/sdk/compute/arm-compute/package.json +++ b/sdk/compute/arm-compute/package.json @@ -27,7 +27,7 @@ "rollup-plugin-sourcemaps": "^0.4.2", "uglify-js": "^3.6.0" }, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/compute/arm-compute", + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/compute/arm-compute", "repository": { "type": "git", "url": "https://github.com/Azure/azure-sdk-for-js.git" diff --git a/sdk/compute/arm-compute/src/computeManagementClient.ts b/sdk/compute/arm-compute/src/computeManagementClient.ts index a91083c16ea1..d945e1b09af3 100644 --- a/sdk/compute/arm-compute/src/computeManagementClient.ts +++ b/sdk/compute/arm-compute/src/computeManagementClient.ts @@ -58,9 +58,6 @@ class ComputeManagementClient extends ComputeManagementClientContext { sharedGalleries: operations.SharedGalleries; sharedGalleryImages: operations.SharedGalleryImages; sharedGalleryImageVersions: operations.SharedGalleryImageVersions; - communityGalleries: operations.CommunityGalleries; - communityGalleryImages: operations.CommunityGalleryImages; - communityGalleryImageVersions: operations.CommunityGalleryImageVersions; cloudServiceRoleInstances: operations.CloudServiceRoleInstances; cloudServiceRoles: operations.CloudServiceRoles; cloudServices: operations.CloudServices; @@ -122,9 +119,6 @@ class ComputeManagementClient extends ComputeManagementClientContext { this.sharedGalleries = new operations.SharedGalleries(this); this.sharedGalleryImages = new operations.SharedGalleryImages(this); this.sharedGalleryImageVersions = new operations.SharedGalleryImageVersions(this); - this.communityGalleries = new operations.CommunityGalleries(this); - this.communityGalleryImages = new operations.CommunityGalleryImages(this); - this.communityGalleryImageVersions = new operations.CommunityGalleryImageVersions(this); this.cloudServiceRoleInstances = new operations.CloudServiceRoleInstances(this); this.cloudServiceRoles = new operations.CloudServiceRoles(this); this.cloudServices = new operations.CloudServices(this); diff --git a/sdk/compute/arm-compute/src/models/availabilitySetsMappers.ts b/sdk/compute/arm-compute/src/models/availabilitySetsMappers.ts index 8d444e9570b6..c4260fd08b6a 100644 --- a/sdk/compute/arm-compute/src/models/availabilitySetsMappers.ts +++ b/sdk/compute/arm-compute/src/models/availabilitySetsMappers.ts @@ -152,7 +152,6 @@ export { RestorePointCollection, RestorePointCollectionSourceProperties, RestorePointCollectionUpdate, - RestorePointProvisioningDetails, RestorePointSourceMetadata, RestorePointSourceVMDataDisk, RestorePointSourceVMOSDisk, diff --git a/sdk/compute/arm-compute/src/models/capacityReservationGroupsMappers.ts b/sdk/compute/arm-compute/src/models/capacityReservationGroupsMappers.ts index 8a02931bafde..e7f9be0e24fa 100644 --- a/sdk/compute/arm-compute/src/models/capacityReservationGroupsMappers.ts +++ b/sdk/compute/arm-compute/src/models/capacityReservationGroupsMappers.ts @@ -152,7 +152,6 @@ export { RestorePointCollection, RestorePointCollectionSourceProperties, RestorePointCollectionUpdate, - RestorePointProvisioningDetails, RestorePointSourceMetadata, RestorePointSourceVMDataDisk, RestorePointSourceVMOSDisk, diff --git a/sdk/compute/arm-compute/src/models/capacityReservationsMappers.ts b/sdk/compute/arm-compute/src/models/capacityReservationsMappers.ts index 7d430c73882a..f9f35eb33313 100644 --- a/sdk/compute/arm-compute/src/models/capacityReservationsMappers.ts +++ b/sdk/compute/arm-compute/src/models/capacityReservationsMappers.ts @@ -152,7 +152,6 @@ export { RestorePointCollection, RestorePointCollectionSourceProperties, RestorePointCollectionUpdate, - RestorePointProvisioningDetails, RestorePointSourceMetadata, RestorePointSourceVMDataDisk, RestorePointSourceVMOSDisk, diff --git a/sdk/compute/arm-compute/src/models/cloudServiceRoleInstancesMappers.ts b/sdk/compute/arm-compute/src/models/cloudServiceRoleInstancesMappers.ts index 9d23800b726d..7a7a3b8de7a3 100644 --- a/sdk/compute/arm-compute/src/models/cloudServiceRoleInstancesMappers.ts +++ b/sdk/compute/arm-compute/src/models/cloudServiceRoleInstancesMappers.ts @@ -145,7 +145,6 @@ export { RestorePoint, RestorePointCollection, RestorePointCollectionSourceProperties, - RestorePointProvisioningDetails, RestorePointSourceMetadata, RestorePointSourceVMDataDisk, RestorePointSourceVMOSDisk, diff --git a/sdk/compute/arm-compute/src/models/cloudServicesMappers.ts b/sdk/compute/arm-compute/src/models/cloudServicesMappers.ts index 041431b3f276..6a0f43688e47 100644 --- a/sdk/compute/arm-compute/src/models/cloudServicesMappers.ts +++ b/sdk/compute/arm-compute/src/models/cloudServicesMappers.ts @@ -148,7 +148,6 @@ export { RestorePoint, RestorePointCollection, RestorePointCollectionSourceProperties, - RestorePointProvisioningDetails, RestorePointSourceMetadata, RestorePointSourceVMDataDisk, RestorePointSourceVMOSDisk, diff --git a/sdk/compute/arm-compute/src/models/communityGalleriesMappers.ts b/sdk/compute/arm-compute/src/models/communityGalleriesMappers.ts deleted file mode 100644 index 79c717cd5a23..000000000000 --- a/sdk/compute/arm-compute/src/models/communityGalleriesMappers.ts +++ /dev/null @@ -1,24 +0,0 @@ -/* - * 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. - */ - -export { - ApiError, - ApiErrorBase, - CloudError, - CommunityGallery, - CommunityGalleryImage, - CommunityGalleryImageVersion, - Disallowed, - GalleryImageFeature, - GalleryImageIdentifier, - ImagePurchasePlan, - InnerError, - PirCommunityGalleryResource, - RecommendedMachineConfiguration, - ResourceRange -} from "../models/mappers"; diff --git a/sdk/compute/arm-compute/src/models/communityGalleryImageVersionsMappers.ts b/sdk/compute/arm-compute/src/models/communityGalleryImageVersionsMappers.ts deleted file mode 100644 index 79c717cd5a23..000000000000 --- a/sdk/compute/arm-compute/src/models/communityGalleryImageVersionsMappers.ts +++ /dev/null @@ -1,24 +0,0 @@ -/* - * 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. - */ - -export { - ApiError, - ApiErrorBase, - CloudError, - CommunityGallery, - CommunityGalleryImage, - CommunityGalleryImageVersion, - Disallowed, - GalleryImageFeature, - GalleryImageIdentifier, - ImagePurchasePlan, - InnerError, - PirCommunityGalleryResource, - RecommendedMachineConfiguration, - ResourceRange -} from "../models/mappers"; diff --git a/sdk/compute/arm-compute/src/models/communityGalleryImagesMappers.ts b/sdk/compute/arm-compute/src/models/communityGalleryImagesMappers.ts deleted file mode 100644 index 79c717cd5a23..000000000000 --- a/sdk/compute/arm-compute/src/models/communityGalleryImagesMappers.ts +++ /dev/null @@ -1,24 +0,0 @@ -/* - * 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. - */ - -export { - ApiError, - ApiErrorBase, - CloudError, - CommunityGallery, - CommunityGalleryImage, - CommunityGalleryImageVersion, - Disallowed, - GalleryImageFeature, - GalleryImageIdentifier, - ImagePurchasePlan, - InnerError, - PirCommunityGalleryResource, - RecommendedMachineConfiguration, - ResourceRange -} from "../models/mappers"; diff --git a/sdk/compute/arm-compute/src/models/dedicatedHostGroupsMappers.ts b/sdk/compute/arm-compute/src/models/dedicatedHostGroupsMappers.ts index 085c8e88867e..275b116fe462 100644 --- a/sdk/compute/arm-compute/src/models/dedicatedHostGroupsMappers.ts +++ b/sdk/compute/arm-compute/src/models/dedicatedHostGroupsMappers.ts @@ -152,7 +152,6 @@ export { RestorePointCollection, RestorePointCollectionSourceProperties, RestorePointCollectionUpdate, - RestorePointProvisioningDetails, RestorePointSourceMetadata, RestorePointSourceVMDataDisk, RestorePointSourceVMOSDisk, diff --git a/sdk/compute/arm-compute/src/models/dedicatedHostsMappers.ts b/sdk/compute/arm-compute/src/models/dedicatedHostsMappers.ts index 56f0edc929d4..616c4cacbe3f 100644 --- a/sdk/compute/arm-compute/src/models/dedicatedHostsMappers.ts +++ b/sdk/compute/arm-compute/src/models/dedicatedHostsMappers.ts @@ -152,7 +152,6 @@ export { RestorePointCollection, RestorePointCollectionSourceProperties, RestorePointCollectionUpdate, - RestorePointProvisioningDetails, RestorePointSourceMetadata, RestorePointSourceVMDataDisk, RestorePointSourceVMOSDisk, diff --git a/sdk/compute/arm-compute/src/models/diskAccessesMappers.ts b/sdk/compute/arm-compute/src/models/diskAccessesMappers.ts index 4f46885515de..cdd760728f4e 100644 --- a/sdk/compute/arm-compute/src/models/diskAccessesMappers.ts +++ b/sdk/compute/arm-compute/src/models/diskAccessesMappers.ts @@ -148,7 +148,6 @@ export { RestorePoint, RestorePointCollection, RestorePointCollectionSourceProperties, - RestorePointProvisioningDetails, RestorePointSourceMetadata, RestorePointSourceVMDataDisk, RestorePointSourceVMOSDisk, diff --git a/sdk/compute/arm-compute/src/models/diskEncryptionSetsMappers.ts b/sdk/compute/arm-compute/src/models/diskEncryptionSetsMappers.ts index 3c2f6ade85a3..dca782e64c97 100644 --- a/sdk/compute/arm-compute/src/models/diskEncryptionSetsMappers.ts +++ b/sdk/compute/arm-compute/src/models/diskEncryptionSetsMappers.ts @@ -146,7 +146,6 @@ export { RestorePoint, RestorePointCollection, RestorePointCollectionSourceProperties, - RestorePointProvisioningDetails, RestorePointSourceMetadata, RestorePointSourceVMDataDisk, RestorePointSourceVMOSDisk, diff --git a/sdk/compute/arm-compute/src/models/disksMappers.ts b/sdk/compute/arm-compute/src/models/disksMappers.ts index 3deeb35306cc..14ef0998258b 100644 --- a/sdk/compute/arm-compute/src/models/disksMappers.ts +++ b/sdk/compute/arm-compute/src/models/disksMappers.ts @@ -147,7 +147,6 @@ export { RestorePoint, RestorePointCollection, RestorePointCollectionSourceProperties, - RestorePointProvisioningDetails, RestorePointSourceMetadata, RestorePointSourceVMDataDisk, RestorePointSourceVMOSDisk, diff --git a/sdk/compute/arm-compute/src/models/galleriesMappers.ts b/sdk/compute/arm-compute/src/models/galleriesMappers.ts index 20e85d6081d2..690c54c059ae 100644 --- a/sdk/compute/arm-compute/src/models/galleriesMappers.ts +++ b/sdk/compute/arm-compute/src/models/galleriesMappers.ts @@ -144,7 +144,6 @@ export { RestorePoint, RestorePointCollection, RestorePointCollectionSourceProperties, - RestorePointProvisioningDetails, RestorePointSourceMetadata, RestorePointSourceVMDataDisk, RestorePointSourceVMOSDisk, diff --git a/sdk/compute/arm-compute/src/models/galleryApplicationVersionsMappers.ts b/sdk/compute/arm-compute/src/models/galleryApplicationVersionsMappers.ts index 1119c75b9cb0..344b3618d7bc 100644 --- a/sdk/compute/arm-compute/src/models/galleryApplicationVersionsMappers.ts +++ b/sdk/compute/arm-compute/src/models/galleryApplicationVersionsMappers.ts @@ -144,7 +144,6 @@ export { RestorePoint, RestorePointCollection, RestorePointCollectionSourceProperties, - RestorePointProvisioningDetails, RestorePointSourceMetadata, RestorePointSourceVMDataDisk, RestorePointSourceVMOSDisk, diff --git a/sdk/compute/arm-compute/src/models/galleryApplicationsMappers.ts b/sdk/compute/arm-compute/src/models/galleryApplicationsMappers.ts index 5b5817f14cdd..a85006e67e29 100644 --- a/sdk/compute/arm-compute/src/models/galleryApplicationsMappers.ts +++ b/sdk/compute/arm-compute/src/models/galleryApplicationsMappers.ts @@ -144,7 +144,6 @@ export { RestorePoint, RestorePointCollection, RestorePointCollectionSourceProperties, - RestorePointProvisioningDetails, RestorePointSourceMetadata, RestorePointSourceVMDataDisk, RestorePointSourceVMOSDisk, diff --git a/sdk/compute/arm-compute/src/models/galleryImageVersionsMappers.ts b/sdk/compute/arm-compute/src/models/galleryImageVersionsMappers.ts index 9095befad49d..c4d6e158a1a1 100644 --- a/sdk/compute/arm-compute/src/models/galleryImageVersionsMappers.ts +++ b/sdk/compute/arm-compute/src/models/galleryImageVersionsMappers.ts @@ -144,7 +144,6 @@ export { RestorePoint, RestorePointCollection, RestorePointCollectionSourceProperties, - RestorePointProvisioningDetails, RestorePointSourceMetadata, RestorePointSourceVMDataDisk, RestorePointSourceVMOSDisk, diff --git a/sdk/compute/arm-compute/src/models/galleryImagesMappers.ts b/sdk/compute/arm-compute/src/models/galleryImagesMappers.ts index 7f56a2f6a256..9cc115b6292b 100644 --- a/sdk/compute/arm-compute/src/models/galleryImagesMappers.ts +++ b/sdk/compute/arm-compute/src/models/galleryImagesMappers.ts @@ -144,7 +144,6 @@ export { RestorePoint, RestorePointCollection, RestorePointCollectionSourceProperties, - RestorePointProvisioningDetails, RestorePointSourceMetadata, RestorePointSourceVMDataDisk, RestorePointSourceVMOSDisk, diff --git a/sdk/compute/arm-compute/src/models/gallerySharingProfileMappers.ts b/sdk/compute/arm-compute/src/models/gallerySharingProfileMappers.ts index d7ce7f78b210..037dc1854406 100644 --- a/sdk/compute/arm-compute/src/models/gallerySharingProfileMappers.ts +++ b/sdk/compute/arm-compute/src/models/gallerySharingProfileMappers.ts @@ -143,7 +143,6 @@ export { RestorePoint, RestorePointCollection, RestorePointCollectionSourceProperties, - RestorePointProvisioningDetails, RestorePointSourceMetadata, RestorePointSourceVMDataDisk, RestorePointSourceVMOSDisk, diff --git a/sdk/compute/arm-compute/src/models/imagesMappers.ts b/sdk/compute/arm-compute/src/models/imagesMappers.ts index 753f4662605a..47170c60a9eb 100644 --- a/sdk/compute/arm-compute/src/models/imagesMappers.ts +++ b/sdk/compute/arm-compute/src/models/imagesMappers.ts @@ -152,7 +152,6 @@ export { RestorePointCollection, RestorePointCollectionSourceProperties, RestorePointCollectionUpdate, - RestorePointProvisioningDetails, RestorePointSourceMetadata, RestorePointSourceVMDataDisk, RestorePointSourceVMOSDisk, diff --git a/sdk/compute/arm-compute/src/models/index.ts b/sdk/compute/arm-compute/src/models/index.ts index 89edfb587daf..adb42a8f9d91 100644 --- a/sdk/compute/arm-compute/src/models/index.ts +++ b/sdk/compute/arm-compute/src/models/index.ts @@ -641,8 +641,10 @@ export interface BootDiagnostics { export interface DiagnosticsProfile { /** * Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot - * to diagnose VM status.

You can easily view the output of your console log.

- * Azure also enables you to see a screenshot of the VM from the hypervisor. + * to diagnose VM status.
**NOTE**: If storageUri is being specified then ensure that the + * storage account is in the same region and subscription as the VM.

You can easily view + * the output of your console log.

Azure also enables you to see a screenshot of the VM + * from the hypervisor. */ bootDiagnostics?: BootDiagnostics; } @@ -728,28 +730,6 @@ export interface RestorePointSourceMetadata { location?: string; } -/** - * Restore Point Provisioning details. - */ -export interface RestorePointProvisioningDetails { - /** - * Gets the creation time of the restore point. - */ - creationTime?: Date; - /** - * Gets the total size of the data in all the disks which are part of the restore point. - */ - totalUsedSizeInBytes?: number; - /** - * Gets the status of the Create restore point operation. - */ - statusCode?: number; - /** - * Gets the status message of the Create restore point operation. - */ - statusMessage?: string; -} - /** * The resource model definition for an Azure Resource Manager proxy resource. It will not have * tags and a location @@ -799,10 +779,9 @@ export interface RestorePoint extends ProxyResource { */ readonly consistencyMode?: ConsistencyModeTypes; /** - * Gets the provisioning details set by the server during Create restore point operation. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Gets the creation time of the restore point. */ - readonly provisioningDetails?: RestorePointProvisioningDetails; + timeCreated?: Date; } /** @@ -6533,7 +6512,8 @@ export interface ImageDiskReference { export interface CreationData { /** * This enumerates the possible sources of a disk's creation. Possible values include: 'Empty', - * 'Attach', 'FromImage', 'Import', 'Copy', 'Restore', 'Upload', 'CopyStart' + * 'Attach', 'FromImage', 'Import', 'Copy', 'Restore', 'Upload', 'CopyStart', 'ImportSecure', + * 'UploadPreparedSecure' */ createOption: DiskCreateOption; /** @@ -6574,6 +6554,10 @@ export interface CreationData { * default. */ logicalSectorSize?: number; + /** + * If createOption is ImportSecure, this is the URI of a blob to be imported into VM guest state. + */ + securityDataUri?: string; } /** @@ -6695,9 +6679,16 @@ export interface PropertyUpdatesInProgress { */ export interface DiskSecurityProfile { /** - * Possible values include: 'TrustedLaunch' + * Possible values include: 'TrustedLaunch', + * 'ConfidentialVM_VMGuestStateOnlyEncryptedWithPlatformKey', + * 'ConfidentialVM_DiskEncryptedWithPlatformKey', 'ConfidentialVM_DiskEncryptedWithCustomerKey' */ securityType?: DiskSecurityTypes; + /** + * ResourceId of the disk encryption set associated to Confidential VM supported disk encrypted + * with customer managed key + */ + secureVMDiskEncryptionSetId?: string; } /** @@ -7007,6 +6998,10 @@ export interface GrantAccessData { * Time duration in seconds until the SAS access expires. */ durationInSeconds: number; + /** + * Set this flag to true to get additional SAS for VM guest state + */ + getSecureVMGuestStateSAS?: boolean; } /** @@ -7018,6 +7013,11 @@ export interface AccessUri { * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly accessSAS?: string; + /** + * A SAS uri for accessing a VM guest state. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly securityDataAccessSAS?: string; } /** @@ -7113,6 +7113,10 @@ export interface Snapshot extends Resource { * ARM id of the DiskAccess resource for using private endpoints on disks. */ diskAccessId?: string; + /** + * Contains the security related information for the resource. + */ + securityProfile?: DiskSecurityProfile; /** * Indicates the OS on a snapshot supports hibernation. */ @@ -7169,6 +7173,11 @@ export interface SnapshotUpdate { * Possible values include: 'Enabled', 'Disabled' */ publicNetworkAccess?: PublicNetworkAccess; + /** + * List of supported capabilities (like accelerated networking) for the image from which the OS + * disk was created. + */ + supportedCapabilities?: SupportedCapabilities; /** * Resource tags */ @@ -7211,7 +7220,7 @@ export interface DiskEncryptionSet extends Resource { identity?: EncryptionSetIdentity; /** * Possible values include: 'EncryptionAtRestWithCustomerKey', - * 'EncryptionAtRestWithPlatformAndCustomerKeys' + * 'EncryptionAtRestWithPlatformAndCustomerKeys', 'ConfidentialVmEncryptedWithCustomerKey' */ encryptionType?: DiskEncryptionSetType; /** @@ -7253,7 +7262,7 @@ export interface DiskEncryptionSet extends Resource { export interface DiskEncryptionSetUpdate { /** * Possible values include: 'EncryptionAtRestWithCustomerKey', - * 'EncryptionAtRestWithPlatformAndCustomerKeys' + * 'EncryptionAtRestWithPlatformAndCustomerKeys', 'ConfidentialVmEncryptedWithCustomerKey' */ encryptionType?: DiskEncryptionSetType; activeKey?: KeyForDiskEncryptionSet; @@ -7418,7 +7427,7 @@ export interface DiskRestorePoint extends ProxyOnlyResource { */ readonly timeCreated?: Date; /** - * arm id of source disk + * arm id of source disk or source disk restore point. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly sourceResourceId?: string; @@ -7474,10 +7483,21 @@ export interface DiskRestorePoint extends ProxyOnlyResource { */ diskAccessId?: string; /** - * Percentage complete for the background copy when a resource is created via the CopyStart - * operation. + * Percentage complete for the background copy of disk restore point when source resource is from + * a different region. */ completionPercent?: number; + /** + * Replication state of disk restore point when source resource is from a different region. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly replicationState?: string; + /** + * Location of source disk or source disk restore point when source resource is from a different + * region. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly sourceResourceLocation?: string; } /** @@ -8328,88 +8348,6 @@ export interface SharedGalleryImageVersion extends PirSharedGalleryResource { endOfLifeDate?: Date; } -/** - * Base information about the community gallery resource in pir. - */ -export interface PirCommunityGalleryResource { - /** - * Resource name - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly name?: string; - /** - * Resource location - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly location?: string; - /** - * Resource type - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly type?: string; - /** - * The unique id of this community gallery. - */ - uniqueId?: string; -} - -/** - * Specifies information about the Community Gallery that you want to create or update. - */ -export interface CommunityGallery extends PirCommunityGalleryResource { -} - -/** - * Specifies information about the gallery image definition that you want to create or update. - */ -export interface CommunityGalleryImage extends PirCommunityGalleryResource { - /** - * This property allows you to specify the type of the OS that is included in the disk when - * creating a VM from a managed image.

Possible values are:

**Windows** - *

**Linux**. Possible values include: 'Windows', 'Linux' - */ - osType: OperatingSystemTypes; - /** - * This property allows the user to specify whether the virtual machines created under this image - * are 'Generalized' or 'Specialized'. Possible values include: 'Generalized', 'Specialized' - */ - osState: OperatingSystemStateTypes; - /** - * The end of life date of the gallery image definition. This property can be used for - * decommissioning purposes. This property is updatable. - */ - endOfLifeDate?: Date; - identifier: GalleryImageIdentifier; - recommended?: RecommendedMachineConfiguration; - disallowed?: Disallowed; - /** - * The hypervisor generation of the Virtual Machine. Applicable to OS disks only. Possible values - * include: 'V1', 'V2' - */ - hyperVGeneration?: HyperVGeneration; - /** - * A list of gallery image features. - */ - features?: GalleryImageFeature[]; - purchasePlan?: ImagePurchasePlan; -} - -/** - * Specifies information about the gallery image version that you want to create or update. - */ -export interface CommunityGalleryImageVersion extends PirCommunityGalleryResource { - /** - * The published date of the gallery image version Definition. This property can be used for - * decommissioning purposes. This property is updatable. - */ - publishedDate?: Date; - /** - * The end of life date of the gallery image version Definition. This property can be used for - * decommissioning purposes. This property is updatable. - */ - endOfLifeDate?: Date; -} - /** * An interface representing InstanceSku. */ @@ -9249,7 +9187,7 @@ export interface VirtualMachineImagesEdgeZoneListOptionalParams extends msRest.R */ export interface VirtualMachinesDeleteMethodOptionalParams extends msRest.RequestOptionsBase { /** - * Optional parameter to force delete virtual machines.(Feature in Preview) + * Optional parameter to force delete virtual machines. */ forceDeletion?: boolean; } @@ -9327,7 +9265,7 @@ export interface VirtualMachinesRetrieveBootDiagnosticsDataOptionalParams extend */ export interface VirtualMachinesBeginDeleteMethodOptionalParams extends msRest.RequestOptionsBase { /** - * Optional parameter to force delete virtual machines.(Feature in Preview) + * Optional parameter to force delete virtual machines. */ forceDeletion?: boolean; } @@ -11301,11 +11239,11 @@ export type HyperVGeneration = 'V1' | 'V2'; /** * Defines values for DiskCreateOption. * Possible values include: 'Empty', 'Attach', 'FromImage', 'Import', 'Copy', 'Restore', 'Upload', - * 'CopyStart' + * 'CopyStart', 'ImportSecure', 'UploadPreparedSecure' * @readonly * @enum {string} */ -export type DiskCreateOption = 'Empty' | 'Attach' | 'FromImage' | 'Import' | 'Copy' | 'Restore' | 'Upload' | 'CopyStart'; +export type DiskCreateOption = 'Empty' | 'Attach' | 'FromImage' | 'Import' | 'Copy' | 'Restore' | 'Upload' | 'CopyStart' | 'ImportSecure' | 'UploadPreparedSecure'; /** * Defines values for DiskState. @@ -11335,11 +11273,13 @@ export type NetworkAccessPolicy = 'AllowAll' | 'AllowPrivate' | 'DenyAll'; /** * Defines values for DiskSecurityTypes. - * Possible values include: 'TrustedLaunch' + * Possible values include: 'TrustedLaunch', + * 'ConfidentialVM_VMGuestStateOnlyEncryptedWithPlatformKey', + * 'ConfidentialVM_DiskEncryptedWithPlatformKey', 'ConfidentialVM_DiskEncryptedWithCustomerKey' * @readonly * @enum {string} */ -export type DiskSecurityTypes = 'TrustedLaunch'; +export type DiskSecurityTypes = 'TrustedLaunch' | 'ConfidentialVM_VMGuestStateOnlyEncryptedWithPlatformKey' | 'ConfidentialVM_DiskEncryptedWithPlatformKey' | 'ConfidentialVM_DiskEncryptedWithCustomerKey'; /** * Defines values for PublicNetworkAccess. @@ -11360,11 +11300,11 @@ export type SnapshotStorageAccountTypes = 'Standard_LRS' | 'Premium_LRS' | 'Stan /** * Defines values for DiskEncryptionSetType. * Possible values include: 'EncryptionAtRestWithCustomerKey', - * 'EncryptionAtRestWithPlatformAndCustomerKeys' + * 'EncryptionAtRestWithPlatformAndCustomerKeys', 'ConfidentialVmEncryptedWithCustomerKey' * @readonly * @enum {string} */ -export type DiskEncryptionSetType = 'EncryptionAtRestWithCustomerKey' | 'EncryptionAtRestWithPlatformAndCustomerKeys'; +export type DiskEncryptionSetType = 'EncryptionAtRestWithCustomerKey' | 'EncryptionAtRestWithPlatformAndCustomerKeys' | 'ConfidentialVmEncryptedWithCustomerKey'; /** * Defines values for AccessLevel. @@ -17154,66 +17094,6 @@ export type SharedGalleryImageVersionsListNextResponse = SharedGalleryImageVersi }; }; -/** - * Contains response data for the get operation. - */ -export type CommunityGalleriesGetResponse = CommunityGallery & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: CommunityGallery; - }; -}; - -/** - * Contains response data for the get operation. - */ -export type CommunityGalleryImagesGetResponse = CommunityGalleryImage & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: CommunityGalleryImage; - }; -}; - -/** - * Contains response data for the get operation. - */ -export type CommunityGalleryImageVersionsGetResponse = CommunityGalleryImageVersion & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: CommunityGalleryImageVersion; - }; -}; - /** * Contains response data for the get operation. */ diff --git a/sdk/compute/arm-compute/src/models/mappers.ts b/sdk/compute/arm-compute/src/models/mappers.ts index 73aa841d63bd..9d037dbe5e34 100644 --- a/sdk/compute/arm-compute/src/models/mappers.ts +++ b/sdk/compute/arm-compute/src/models/mappers.ts @@ -921,40 +921,6 @@ export const RestorePointSourceMetadata: msRest.CompositeMapper = { } }; -export const RestorePointProvisioningDetails: msRest.CompositeMapper = { - serializedName: "RestorePointProvisioningDetails", - type: { - name: "Composite", - className: "RestorePointProvisioningDetails", - modelProperties: { - creationTime: { - serializedName: "creationTime", - type: { - name: "DateTime" - } - }, - totalUsedSizeInBytes: { - serializedName: "totalUsedSizeInBytes", - type: { - name: "Number" - } - }, - statusCode: { - serializedName: "statusCode", - type: { - name: "Number" - } - }, - statusMessage: { - serializedName: "statusMessage", - type: { - name: "String" - } - } - } - } -}; - export const ProxyResource: msRest.CompositeMapper = { serializedName: "ProxyResource", type: { @@ -1027,12 +993,10 @@ export const RestorePoint: msRest.CompositeMapper = { name: "String" } }, - provisioningDetails: { - readOnly: true, - serializedName: "properties.provisioningDetails", + timeCreated: { + serializedName: "properties.timeCreated", type: { - name: "Composite", - className: "RestorePointProvisioningDetails" + name: "DateTime" } } } @@ -10080,6 +10044,12 @@ export const CreationData: msRest.CompositeMapper = { type: { name: "Number" } + }, + securityDataUri: { + serializedName: "securityDataUri", + type: { + name: "String" + } } } } @@ -10276,6 +10246,12 @@ export const DiskSecurityProfile: msRest.CompositeMapper = { type: { name: "String" } + }, + secureVMDiskEncryptionSetId: { + serializedName: "secureVMDiskEncryptionSetId", + type: { + name: "String" + } } } } @@ -10740,6 +10716,12 @@ export const GrantAccessData: msRest.CompositeMapper = { type: { name: "Number" } + }, + getSecureVMGuestStateSAS: { + serializedName: "getSecureVMGuestStateSAS", + type: { + name: "Boolean" + } } } } @@ -10757,6 +10739,13 @@ export const AccessUri: msRest.CompositeMapper = { type: { name: "String" } + }, + securityDataAccessSAS: { + readOnly: true, + serializedName: "securityDataAccessSAS", + type: { + name: "String" + } } } } @@ -10900,6 +10889,13 @@ export const Snapshot: msRest.CompositeMapper = { name: "String" } }, + securityProfile: { + serializedName: "properties.securityProfile", + type: { + name: "Composite", + className: "DiskSecurityProfile" + } + }, supportsHibernation: { serializedName: "properties.supportsHibernation", type: { @@ -10982,6 +10978,13 @@ export const SnapshotUpdate: msRest.CompositeMapper = { name: "String" } }, + supportedCapabilities: { + serializedName: "properties.supportedCapabilities", + type: { + name: "Composite", + className: "SupportedCapabilities" + } + }, tags: { serializedName: "tags", type: { @@ -11481,6 +11484,20 @@ export const DiskRestorePoint: msRest.CompositeMapper = { type: { name: "Number" } + }, + replicationState: { + readOnly: true, + serializedName: "properties.replicationState", + type: { + name: "String" + } + }, + sourceResourceLocation: { + readOnly: true, + serializedName: "properties.sourceResourceLocation", + type: { + name: "String" + } } } } @@ -13045,163 +13062,6 @@ export const SharedGalleryImageVersion: msRest.CompositeMapper = { } }; -export const PirCommunityGalleryResource: msRest.CompositeMapper = { - serializedName: "PirCommunityGalleryResource", - type: { - name: "Composite", - className: "PirCommunityGalleryResource", - modelProperties: { - name: { - readOnly: true, - serializedName: "name", - type: { - name: "String" - } - }, - location: { - readOnly: true, - serializedName: "location", - type: { - name: "String" - } - }, - type: { - readOnly: true, - serializedName: "type", - type: { - name: "String" - } - }, - uniqueId: { - serializedName: "identifier.uniqueId", - type: { - name: "String" - } - } - } - } -}; - -export const CommunityGallery: msRest.CompositeMapper = { - serializedName: "CommunityGallery", - type: { - name: "Composite", - className: "CommunityGallery", - modelProperties: { - ...PirCommunityGalleryResource.type.modelProperties - } - } -}; - -export const CommunityGalleryImage: msRest.CompositeMapper = { - serializedName: "CommunityGalleryImage", - type: { - name: "Composite", - className: "CommunityGalleryImage", - modelProperties: { - ...PirCommunityGalleryResource.type.modelProperties, - osType: { - required: true, - serializedName: "properties.osType", - type: { - name: "Enum", - allowedValues: [ - "Windows", - "Linux" - ] - } - }, - osState: { - required: true, - serializedName: "properties.osState", - type: { - name: "Enum", - allowedValues: [ - "Generalized", - "Specialized" - ] - } - }, - endOfLifeDate: { - serializedName: "properties.endOfLifeDate", - type: { - name: "DateTime" - } - }, - identifier: { - required: true, - serializedName: "properties.identifier", - type: { - name: "Composite", - className: "GalleryImageIdentifier" - } - }, - recommended: { - serializedName: "properties.recommended", - type: { - name: "Composite", - className: "RecommendedMachineConfiguration" - } - }, - disallowed: { - serializedName: "properties.disallowed", - type: { - name: "Composite", - className: "Disallowed" - } - }, - hyperVGeneration: { - serializedName: "properties.hyperVGeneration", - type: { - name: "String" - } - }, - features: { - serializedName: "properties.features", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "GalleryImageFeature" - } - } - } - }, - purchasePlan: { - serializedName: "properties.purchasePlan", - type: { - name: "Composite", - className: "ImagePurchasePlan" - } - } - } - } -}; - -export const CommunityGalleryImageVersion: msRest.CompositeMapper = { - serializedName: "CommunityGalleryImageVersion", - type: { - name: "Composite", - className: "CommunityGalleryImageVersion", - modelProperties: { - ...PirCommunityGalleryResource.type.modelProperties, - publishedDate: { - serializedName: "properties.publishedDate", - type: { - name: "DateTime" - } - }, - endOfLifeDate: { - serializedName: "properties.endOfLifeDate", - type: { - name: "DateTime" - } - } - } - } -}; - export const InstanceSku: msRest.CompositeMapper = { serializedName: "InstanceSku", type: { diff --git a/sdk/compute/arm-compute/src/models/parameters.ts b/sdk/compute/arm-compute/src/models/parameters.ts index 2b8d9ddc6556..5f54c197a017 100644 --- a/sdk/compute/arm-compute/src/models/parameters.ts +++ b/sdk/compute/arm-compute/src/models/parameters.ts @@ -37,7 +37,7 @@ export const apiVersion1: msRest.OperationQueryParameter = { required: true, isConstant: true, serializedName: "api-version", - defaultValue: '2021-04-01', + defaultValue: '2021-08-01', type: { name: "String" } @@ -449,16 +449,6 @@ export const proximityPlacementGroupName: msRest.OperationURLParameter = { } } }; -export const publicGalleryName: msRest.OperationURLParameter = { - parameterPath: "publicGalleryName", - mapper: { - required: true, - serializedName: "publicGalleryName", - type: { - name: "String" - } - } -}; export const publisherName: msRest.OperationURLParameter = { parameterPath: "publisherName", mapper: { diff --git a/sdk/compute/arm-compute/src/models/proximityPlacementGroupsMappers.ts b/sdk/compute/arm-compute/src/models/proximityPlacementGroupsMappers.ts index 187ced15034a..1bb79a8f999e 100644 --- a/sdk/compute/arm-compute/src/models/proximityPlacementGroupsMappers.ts +++ b/sdk/compute/arm-compute/src/models/proximityPlacementGroupsMappers.ts @@ -152,7 +152,6 @@ export { RestorePointCollection, RestorePointCollectionSourceProperties, RestorePointCollectionUpdate, - RestorePointProvisioningDetails, RestorePointSourceMetadata, RestorePointSourceVMDataDisk, RestorePointSourceVMOSDisk, diff --git a/sdk/compute/arm-compute/src/models/restorePointCollectionsMappers.ts b/sdk/compute/arm-compute/src/models/restorePointCollectionsMappers.ts index cc5f4ab7a17b..24313892c6b5 100644 --- a/sdk/compute/arm-compute/src/models/restorePointCollectionsMappers.ts +++ b/sdk/compute/arm-compute/src/models/restorePointCollectionsMappers.ts @@ -152,7 +152,6 @@ export { RestorePointCollectionListResult, RestorePointCollectionSourceProperties, RestorePointCollectionUpdate, - RestorePointProvisioningDetails, RestorePointSourceMetadata, RestorePointSourceVMDataDisk, RestorePointSourceVMOSDisk, diff --git a/sdk/compute/arm-compute/src/models/restorePointsMappers.ts b/sdk/compute/arm-compute/src/models/restorePointsMappers.ts index d7ce7f78b210..037dc1854406 100644 --- a/sdk/compute/arm-compute/src/models/restorePointsMappers.ts +++ b/sdk/compute/arm-compute/src/models/restorePointsMappers.ts @@ -143,7 +143,6 @@ export { RestorePoint, RestorePointCollection, RestorePointCollectionSourceProperties, - RestorePointProvisioningDetails, RestorePointSourceMetadata, RestorePointSourceVMDataDisk, RestorePointSourceVMOSDisk, diff --git a/sdk/compute/arm-compute/src/models/snapshotsMappers.ts b/sdk/compute/arm-compute/src/models/snapshotsMappers.ts index 387293388fc3..561619dd6572 100644 --- a/sdk/compute/arm-compute/src/models/snapshotsMappers.ts +++ b/sdk/compute/arm-compute/src/models/snapshotsMappers.ts @@ -145,7 +145,6 @@ export { RestorePoint, RestorePointCollection, RestorePointCollectionSourceProperties, - RestorePointProvisioningDetails, RestorePointSourceMetadata, RestorePointSourceVMDataDisk, RestorePointSourceVMOSDisk, diff --git a/sdk/compute/arm-compute/src/models/sshPublicKeysMappers.ts b/sdk/compute/arm-compute/src/models/sshPublicKeysMappers.ts index 0d4bca40e291..b26a67d03e5a 100644 --- a/sdk/compute/arm-compute/src/models/sshPublicKeysMappers.ts +++ b/sdk/compute/arm-compute/src/models/sshPublicKeysMappers.ts @@ -151,7 +151,6 @@ export { RestorePointCollection, RestorePointCollectionSourceProperties, RestorePointCollectionUpdate, - RestorePointProvisioningDetails, RestorePointSourceMetadata, RestorePointSourceVMDataDisk, RestorePointSourceVMOSDisk, diff --git a/sdk/compute/arm-compute/src/models/virtualMachineExtensionImagesMappers.ts b/sdk/compute/arm-compute/src/models/virtualMachineExtensionImagesMappers.ts index d7ce7f78b210..037dc1854406 100644 --- a/sdk/compute/arm-compute/src/models/virtualMachineExtensionImagesMappers.ts +++ b/sdk/compute/arm-compute/src/models/virtualMachineExtensionImagesMappers.ts @@ -143,7 +143,6 @@ export { RestorePoint, RestorePointCollection, RestorePointCollectionSourceProperties, - RestorePointProvisioningDetails, RestorePointSourceMetadata, RestorePointSourceVMDataDisk, RestorePointSourceVMOSDisk, diff --git a/sdk/compute/arm-compute/src/models/virtualMachineExtensionsMappers.ts b/sdk/compute/arm-compute/src/models/virtualMachineExtensionsMappers.ts index 62a01fa12ecb..ad78237dd852 100644 --- a/sdk/compute/arm-compute/src/models/virtualMachineExtensionsMappers.ts +++ b/sdk/compute/arm-compute/src/models/virtualMachineExtensionsMappers.ts @@ -151,7 +151,6 @@ export { RestorePointCollection, RestorePointCollectionSourceProperties, RestorePointCollectionUpdate, - RestorePointProvisioningDetails, RestorePointSourceMetadata, RestorePointSourceVMDataDisk, RestorePointSourceVMOSDisk, diff --git a/sdk/compute/arm-compute/src/models/virtualMachineImagesEdgeZoneMappers.ts b/sdk/compute/arm-compute/src/models/virtualMachineImagesEdgeZoneMappers.ts index d7ce7f78b210..037dc1854406 100644 --- a/sdk/compute/arm-compute/src/models/virtualMachineImagesEdgeZoneMappers.ts +++ b/sdk/compute/arm-compute/src/models/virtualMachineImagesEdgeZoneMappers.ts @@ -143,7 +143,6 @@ export { RestorePoint, RestorePointCollection, RestorePointCollectionSourceProperties, - RestorePointProvisioningDetails, RestorePointSourceMetadata, RestorePointSourceVMDataDisk, RestorePointSourceVMOSDisk, diff --git a/sdk/compute/arm-compute/src/models/virtualMachineImagesMappers.ts b/sdk/compute/arm-compute/src/models/virtualMachineImagesMappers.ts index d7ce7f78b210..037dc1854406 100644 --- a/sdk/compute/arm-compute/src/models/virtualMachineImagesMappers.ts +++ b/sdk/compute/arm-compute/src/models/virtualMachineImagesMappers.ts @@ -143,7 +143,6 @@ export { RestorePoint, RestorePointCollection, RestorePointCollectionSourceProperties, - RestorePointProvisioningDetails, RestorePointSourceMetadata, RestorePointSourceVMDataDisk, RestorePointSourceVMOSDisk, diff --git a/sdk/compute/arm-compute/src/models/virtualMachineRunCommandsMappers.ts b/sdk/compute/arm-compute/src/models/virtualMachineRunCommandsMappers.ts index 5ae18212ef0b..b56cdf0488da 100644 --- a/sdk/compute/arm-compute/src/models/virtualMachineRunCommandsMappers.ts +++ b/sdk/compute/arm-compute/src/models/virtualMachineRunCommandsMappers.ts @@ -151,7 +151,6 @@ export { RestorePointCollection, RestorePointCollectionSourceProperties, RestorePointCollectionUpdate, - RestorePointProvisioningDetails, RestorePointSourceMetadata, RestorePointSourceVMDataDisk, RestorePointSourceVMOSDisk, diff --git a/sdk/compute/arm-compute/src/models/virtualMachineScaleSetExtensionsMappers.ts b/sdk/compute/arm-compute/src/models/virtualMachineScaleSetExtensionsMappers.ts index 9f1d50e2df0b..3b4dcbb49729 100644 --- a/sdk/compute/arm-compute/src/models/virtualMachineScaleSetExtensionsMappers.ts +++ b/sdk/compute/arm-compute/src/models/virtualMachineScaleSetExtensionsMappers.ts @@ -143,7 +143,6 @@ export { RestorePoint, RestorePointCollection, RestorePointCollectionSourceProperties, - RestorePointProvisioningDetails, RestorePointSourceMetadata, RestorePointSourceVMDataDisk, RestorePointSourceVMOSDisk, diff --git a/sdk/compute/arm-compute/src/models/virtualMachineScaleSetRollingUpgradesMappers.ts b/sdk/compute/arm-compute/src/models/virtualMachineScaleSetRollingUpgradesMappers.ts index d7ce7f78b210..037dc1854406 100644 --- a/sdk/compute/arm-compute/src/models/virtualMachineScaleSetRollingUpgradesMappers.ts +++ b/sdk/compute/arm-compute/src/models/virtualMachineScaleSetRollingUpgradesMappers.ts @@ -143,7 +143,6 @@ export { RestorePoint, RestorePointCollection, RestorePointCollectionSourceProperties, - RestorePointProvisioningDetails, RestorePointSourceMetadata, RestorePointSourceVMDataDisk, RestorePointSourceVMOSDisk, diff --git a/sdk/compute/arm-compute/src/models/virtualMachineScaleSetVMExtensionsMappers.ts b/sdk/compute/arm-compute/src/models/virtualMachineScaleSetVMExtensionsMappers.ts index b3eb9269b5bc..07b39ac41c5c 100644 --- a/sdk/compute/arm-compute/src/models/virtualMachineScaleSetVMExtensionsMappers.ts +++ b/sdk/compute/arm-compute/src/models/virtualMachineScaleSetVMExtensionsMappers.ts @@ -143,7 +143,6 @@ export { RestorePoint, RestorePointCollection, RestorePointCollectionSourceProperties, - RestorePointProvisioningDetails, RestorePointSourceMetadata, RestorePointSourceVMDataDisk, RestorePointSourceVMOSDisk, diff --git a/sdk/compute/arm-compute/src/models/virtualMachineScaleSetVMRunCommandsMappers.ts b/sdk/compute/arm-compute/src/models/virtualMachineScaleSetVMRunCommandsMappers.ts index 26f452d3cc74..92307ae40a7b 100644 --- a/sdk/compute/arm-compute/src/models/virtualMachineScaleSetVMRunCommandsMappers.ts +++ b/sdk/compute/arm-compute/src/models/virtualMachineScaleSetVMRunCommandsMappers.ts @@ -151,7 +151,6 @@ export { RestorePointCollection, RestorePointCollectionSourceProperties, RestorePointCollectionUpdate, - RestorePointProvisioningDetails, RestorePointSourceMetadata, RestorePointSourceVMDataDisk, RestorePointSourceVMOSDisk, diff --git a/sdk/compute/arm-compute/src/models/virtualMachineScaleSetVMsMappers.ts b/sdk/compute/arm-compute/src/models/virtualMachineScaleSetVMsMappers.ts index d45c1c96758f..d7c9c1571b24 100644 --- a/sdk/compute/arm-compute/src/models/virtualMachineScaleSetVMsMappers.ts +++ b/sdk/compute/arm-compute/src/models/virtualMachineScaleSetVMsMappers.ts @@ -143,7 +143,6 @@ export { RestorePoint, RestorePointCollection, RestorePointCollectionSourceProperties, - RestorePointProvisioningDetails, RestorePointSourceMetadata, RestorePointSourceVMDataDisk, RestorePointSourceVMOSDisk, diff --git a/sdk/compute/arm-compute/src/models/virtualMachineScaleSetsMappers.ts b/sdk/compute/arm-compute/src/models/virtualMachineScaleSetsMappers.ts index c43298b5630b..ba849049226f 100644 --- a/sdk/compute/arm-compute/src/models/virtualMachineScaleSetsMappers.ts +++ b/sdk/compute/arm-compute/src/models/virtualMachineScaleSetsMappers.ts @@ -154,7 +154,6 @@ export { RestorePointCollection, RestorePointCollectionSourceProperties, RestorePointCollectionUpdate, - RestorePointProvisioningDetails, RestorePointSourceMetadata, RestorePointSourceVMDataDisk, RestorePointSourceVMOSDisk, diff --git a/sdk/compute/arm-compute/src/models/virtualMachinesMappers.ts b/sdk/compute/arm-compute/src/models/virtualMachinesMappers.ts index 1ae38b0736b1..0b4820957167 100644 --- a/sdk/compute/arm-compute/src/models/virtualMachinesMappers.ts +++ b/sdk/compute/arm-compute/src/models/virtualMachinesMappers.ts @@ -153,7 +153,6 @@ export { RestorePointCollection, RestorePointCollectionSourceProperties, RestorePointCollectionUpdate, - RestorePointProvisioningDetails, RestorePointSourceMetadata, RestorePointSourceVMDataDisk, RestorePointSourceVMOSDisk, diff --git a/sdk/compute/arm-compute/src/operations/communityGalleries.ts b/sdk/compute/arm-compute/src/operations/communityGalleries.ts deleted file mode 100644 index 870d1133fbf9..000000000000 --- a/sdk/compute/arm-compute/src/operations/communityGalleries.ts +++ /dev/null @@ -1,86 +0,0 @@ -/* - * 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 * as msRest from "@azure/ms-rest-js"; -import * as Models from "../models"; -import * as Mappers from "../models/communityGalleriesMappers"; -import * as Parameters from "../models/parameters"; -import { ComputeManagementClientContext } from "../computeManagementClientContext"; - -/** Class representing a CommunityGalleries. */ -export class CommunityGalleries { - private readonly client: ComputeManagementClientContext; - - /** - * Create a CommunityGalleries. - * @param {ComputeManagementClientContext} client Reference to the service client. - */ - constructor(client: ComputeManagementClientContext) { - this.client = client; - } - - /** - * Get a community gallery by gallery public name. - * @param location Resource location. - * @param publicGalleryName The public name of the community gallery. - * @param [options] The optional parameters - * @returns Promise - */ - get(location: string, publicGalleryName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param location Resource location. - * @param publicGalleryName The public name of the community gallery. - * @param callback The callback - */ - get(location: string, publicGalleryName: string, callback: msRest.ServiceCallback): void; - /** - * @param location Resource location. - * @param publicGalleryName The public name of the community gallery. - * @param options The optional parameters - * @param callback The callback - */ - get(location: string, publicGalleryName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(location: string, publicGalleryName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - location, - publicGalleryName, - options - }, - getOperationSpec, - callback) as Promise; - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/communityGalleries/{publicGalleryName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.location0, - Parameters.publicGalleryName - ], - queryParameters: [ - Parameters.apiVersion0 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.CommunityGallery - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/compute/arm-compute/src/operations/communityGalleryImageVersions.ts b/sdk/compute/arm-compute/src/operations/communityGalleryImageVersions.ts deleted file mode 100644 index 69eb5f01b58f..000000000000 --- a/sdk/compute/arm-compute/src/operations/communityGalleryImageVersions.ts +++ /dev/null @@ -1,102 +0,0 @@ -/* - * 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 * as msRest from "@azure/ms-rest-js"; -import * as Models from "../models"; -import * as Mappers from "../models/communityGalleryImageVersionsMappers"; -import * as Parameters from "../models/parameters"; -import { ComputeManagementClientContext } from "../computeManagementClientContext"; - -/** Class representing a CommunityGalleryImageVersions. */ -export class CommunityGalleryImageVersions { - private readonly client: ComputeManagementClientContext; - - /** - * Create a CommunityGalleryImageVersions. - * @param {ComputeManagementClientContext} client Reference to the service client. - */ - constructor(client: ComputeManagementClientContext) { - this.client = client; - } - - /** - * Get a community gallery image version. - * @param location Resource location. - * @param publicGalleryName The public name of the community gallery. - * @param galleryImageName The name of the community gallery image definition. - * @param galleryImageVersionName The name of the community gallery image version. Needs to follow - * semantic version name pattern: The allowed characters are digit and period. Digits must be - * within the range of a 32-bit integer. Format: .. - * @param [options] The optional parameters - * @returns Promise - */ - get(location: string, publicGalleryName: string, galleryImageName: string, galleryImageVersionName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param location Resource location. - * @param publicGalleryName The public name of the community gallery. - * @param galleryImageName The name of the community gallery image definition. - * @param galleryImageVersionName The name of the community gallery image version. Needs to follow - * semantic version name pattern: The allowed characters are digit and period. Digits must be - * within the range of a 32-bit integer. Format: .. - * @param callback The callback - */ - get(location: string, publicGalleryName: string, galleryImageName: string, galleryImageVersionName: string, callback: msRest.ServiceCallback): void; - /** - * @param location Resource location. - * @param publicGalleryName The public name of the community gallery. - * @param galleryImageName The name of the community gallery image definition. - * @param galleryImageVersionName The name of the community gallery image version. Needs to follow - * semantic version name pattern: The allowed characters are digit and period. Digits must be - * within the range of a 32-bit integer. Format: .. - * @param options The optional parameters - * @param callback The callback - */ - get(location: string, publicGalleryName: string, galleryImageName: string, galleryImageVersionName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(location: string, publicGalleryName: string, galleryImageName: string, galleryImageVersionName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - location, - publicGalleryName, - galleryImageName, - galleryImageVersionName, - options - }, - getOperationSpec, - callback) as Promise; - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/communityGalleries/{publicGalleryName}/images/{galleryImageName}/versions/{galleryImageVersionName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.location0, - Parameters.publicGalleryName, - Parameters.galleryImageName, - Parameters.galleryImageVersionName - ], - queryParameters: [ - Parameters.apiVersion0 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.CommunityGalleryImageVersion - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/compute/arm-compute/src/operations/communityGalleryImages.ts b/sdk/compute/arm-compute/src/operations/communityGalleryImages.ts deleted file mode 100644 index 1a1643c5d303..000000000000 --- a/sdk/compute/arm-compute/src/operations/communityGalleryImages.ts +++ /dev/null @@ -1,91 +0,0 @@ -/* - * 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 * as msRest from "@azure/ms-rest-js"; -import * as Models from "../models"; -import * as Mappers from "../models/communityGalleryImagesMappers"; -import * as Parameters from "../models/parameters"; -import { ComputeManagementClientContext } from "../computeManagementClientContext"; - -/** Class representing a CommunityGalleryImages. */ -export class CommunityGalleryImages { - private readonly client: ComputeManagementClientContext; - - /** - * Create a CommunityGalleryImages. - * @param {ComputeManagementClientContext} client Reference to the service client. - */ - constructor(client: ComputeManagementClientContext) { - this.client = client; - } - - /** - * Get a community gallery image. - * @param location Resource location. - * @param publicGalleryName The public name of the community gallery. - * @param galleryImageName The name of the community gallery image definition. - * @param [options] The optional parameters - * @returns Promise - */ - get(location: string, publicGalleryName: string, galleryImageName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param location Resource location. - * @param publicGalleryName The public name of the community gallery. - * @param galleryImageName The name of the community gallery image definition. - * @param callback The callback - */ - get(location: string, publicGalleryName: string, galleryImageName: string, callback: msRest.ServiceCallback): void; - /** - * @param location Resource location. - * @param publicGalleryName The public name of the community gallery. - * @param galleryImageName The name of the community gallery image definition. - * @param options The optional parameters - * @param callback The callback - */ - get(location: string, publicGalleryName: string, galleryImageName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(location: string, publicGalleryName: string, galleryImageName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - location, - publicGalleryName, - galleryImageName, - options - }, - getOperationSpec, - callback) as Promise; - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/communityGalleries/{publicGalleryName}/images/{galleryImageName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.location0, - Parameters.publicGalleryName, - Parameters.galleryImageName - ], - queryParameters: [ - Parameters.apiVersion0 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.CommunityGalleryImage - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/compute/arm-compute/src/operations/index.ts b/sdk/compute/arm-compute/src/operations/index.ts index 3ab81196d487..a1f70e2520e4 100644 --- a/sdk/compute/arm-compute/src/operations/index.ts +++ b/sdk/compute/arm-compute/src/operations/index.ts @@ -48,9 +48,6 @@ export * from "./gallerySharingProfile"; export * from "./sharedGalleries"; export * from "./sharedGalleryImages"; export * from "./sharedGalleryImageVersions"; -export * from "./communityGalleries"; -export * from "./communityGalleryImages"; -export * from "./communityGalleryImageVersions"; export * from "./cloudServiceRoleInstances"; export * from "./cloudServiceRoles"; export * from "./cloudServices";