diff --git a/sdk/compute/arm-compute/CHANGELOG.md b/sdk/compute/arm-compute/CHANGELOG.md index 4811fc1a7d7f..a5203ad2132f 100644 --- a/sdk/compute/arm-compute/CHANGELOG.md +++ b/sdk/compute/arm-compute/CHANGELOG.md @@ -1,15 +1,67 @@ # Release History + +## 19.0.0 (2022-06-02) + +**Features** -## 18.0.1 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed + - Added operation CommunityGalleryImages.list + - Added operation CommunityGalleryImageVersions.list + - Added operation VirtualMachineImages.listByEdgeZone + - Added Interface CommunityGalleryImageList + - Added Interface CommunityGalleryImagesListNextOptionalParams + - Added Interface CommunityGalleryImagesListOptionalParams + - Added Interface CommunityGalleryImageVersionList + - Added Interface CommunityGalleryImageVersionsListNextOptionalParams + - Added Interface CommunityGalleryImageVersionsListOptionalParams + - Added Interface CopyCompletionError + - Added Interface SharedGalleryDiskImage + - Added Interface SharedGalleryImageVersionStorageProfile + - Added Interface UserArtifactSettings + - Added Interface VirtualMachineImagesListByEdgeZoneOptionalParams + - Added Interface VmImagesInEdgeZoneListResult + - Added Type Alias CommunityGalleryImagesListNextResponse + - Added Type Alias CommunityGalleryImagesListResponse + - Added Type Alias CommunityGalleryImageVersionsListNextResponse + - Added Type Alias CommunityGalleryImageVersionsListResponse + - Added Type Alias CopyCompletionErrorReason + - Added Type Alias GalleryProvisioningState + - Added Type Alias SharedGalleryDataDiskImage + - Added Type Alias SharedGalleryHostCaching + - Added Type Alias SharedGalleryOSDiskImage + - Added Type Alias VirtualMachineImagesListByEdgeZoneResponse + - Interface DiskEncryptionSetUpdate has a new optional parameter federatedClientId + - Interface EncryptionSetIdentity has a new optional parameter userAssignedIdentities + - Interface ImageDiskReference has a new optional parameter communityGalleryImageId + - Interface ImageDiskReference has a new optional parameter sharedGalleryImageId + - Type Alias CommunityGalleryImage has a new parameter architecture + - Type Alias CommunityGalleryImage has a new parameter privacyStatementUri + - Type Alias CommunityGalleryImage has a new parameter eula + - Type Alias CommunityGalleryImageVersion has a new parameter excludeFromLatest + - Type Alias CommunityGalleryImageVersion has a new parameter storageProfile + - Type Alias DiskEncryptionSet has a new parameter federatedClientId + - Type Alias DiskRestorePoint has a new parameter securityProfile + - Type Alias GalleryApplicationVersionPublishingProfile has a new parameter settings + - Type Alias SharedGalleryImage has a new parameter architecture + - Type Alias SharedGalleryImageVersion has a new parameter excludeFromLatest + - Type Alias SharedGalleryImageVersion has a new parameter storageProfile + - Type Alias Snapshot has a new parameter copyCompletionError + - Added Enum KnownCopyCompletionErrorReason + - Added Enum KnownGalleryProvisioningState + - Added Enum KnownSharedGalleryHostCaching + - Enum KnownDiskEncryptionSetIdentityType has a new value SystemAssignedUserAssigned + - Enum KnownDiskEncryptionSetIdentityType has a new value UserAssigned + - Enum KnownDiskStorageAccountTypes has a new value PremiumV2LRS + - Enum KnownGallerySharingPermissionTypes has a new value Community -### Other Changes +**Breaking Changes** + - Removed Enum KnownGalleryApplicationVersionPropertiesProvisioningState + - Removed Enum KnownGalleryImagePropertiesProvisioningState + - Removed Enum KnownGalleryImageVersionPropertiesProvisioningState + - Removed Enum KnownGalleryPropertiesProvisioningState + - Enum KnownSharingProfileGroupTypes no longer has value Community + + ## 18.0.0 (2022-05-23) **Features** diff --git a/sdk/compute/arm-compute/_meta.json b/sdk/compute/arm-compute/_meta.json index 78284c2f40a8..b9fd2860bac9 100644 --- a/sdk/compute/arm-compute/_meta.json +++ b/sdk/compute/arm-compute/_meta.json @@ -1,8 +1,8 @@ { - "commit": "d598972247be8e65a4d5294a9040d957aeb2d4f5", + "commit": "42414cf41095ec93d21ee89d3abbba3ea8d7af1e", "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:\\work\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\compute\\resource-manager\\readme.md --use=@autorest/typescript@6.0.0-alpha.19.20220408.1 --generate-sample=true", + "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=/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-alpha.19.20220425.1", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "release_tool": "@azure-tools/js-sdk-release-tools@2.3.0", - "use": "@autorest/typescript@6.0.0-alpha.19.20220408.1" + "release_tool": "@azure-tools/js-sdk-release-tools@2.3.1", + "use": "@autorest/typescript@6.0.0-alpha.19.20220425.1" } \ No newline at end of file diff --git a/sdk/compute/arm-compute/package.json b/sdk/compute/arm-compute/package.json index 70d4636b05dd..1e34617fb90e 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": "18.0.1", + "version": "19.0.0", "engines": { "node": ">=12.0.0" }, @@ -40,10 +40,11 @@ "uglify-js": "^3.4.9", "rimraf": "^3.0.0", "@azure/identity": "^2.0.1", - "@azure-tools/test-recorder": "^1.0.0", + "@azure-tools/test-recorder": "^2.0.0", + "@azure-tools/test-credential": "^1.0.0", "mocha": "^7.1.1", "cross-env": "^7.0.2", - "@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": { @@ -94,7 +95,7 @@ "unit-test:node": "cross-env TEST_MODE=playback npm run integration-test:node", "unit-test:browser": "echo skipped", "integration-test": "npm run integration-test:node && npm run integration-test:browser", - "integration-test:node": "mocha -r esm --require ts-node/register --timeout 1200000 --full-trace test/*.ts --reporter ../../../common/tools/mocha-multi-reporter.js", + "integration-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/*.ts'", "integration-test:browser": "echo skipped", "docs": "echo skipped" }, @@ -107,13 +108,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 71c95c363352..9a64f5afdd3a 100644 --- a/sdk/compute/arm-compute/review/arm-compute.api.md +++ b/sdk/compute/arm-compute/review/arm-compute.api.md @@ -937,11 +937,21 @@ export type CommunityGalleryImage = PirCommunityGalleryResource & { hyperVGeneration?: HyperVGeneration; features?: GalleryImageFeature[]; purchasePlan?: ImagePurchasePlan; + architecture?: Architecture; + privacyStatementUri?: string; + eula?: string; }; +// @public +export interface CommunityGalleryImageList { + nextLink?: string; + value: CommunityGalleryImage[]; +} + // @public export interface CommunityGalleryImages { get(location: string, publicGalleryName: string, galleryImageName: string, options?: CommunityGalleryImagesGetOptionalParams): Promise; + list(location: string, publicGalleryName: string, options?: CommunityGalleryImagesListOptionalParams): PagedAsyncIterableIterator; } // @public @@ -951,15 +961,38 @@ export interface CommunityGalleryImagesGetOptionalParams extends coreClient.Oper // @public export type CommunityGalleryImagesGetResponse = CommunityGalleryImage; +// @public +export interface CommunityGalleryImagesListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type CommunityGalleryImagesListNextResponse = CommunityGalleryImageList; + +// @public +export interface CommunityGalleryImagesListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type CommunityGalleryImagesListResponse = CommunityGalleryImageList; + // @public export type CommunityGalleryImageVersion = PirCommunityGalleryResource & { publishedDate?: Date; endOfLifeDate?: Date; + excludeFromLatest?: boolean; + storageProfile?: SharedGalleryImageVersionStorageProfile; }; +// @public +export interface CommunityGalleryImageVersionList { + nextLink?: string; + value: CommunityGalleryImageVersion[]; +} + // @public export interface CommunityGalleryImageVersions { get(location: string, publicGalleryName: string, galleryImageName: string, galleryImageVersionName: string, options?: CommunityGalleryImageVersionsGetOptionalParams): Promise; + list(location: string, publicGalleryName: string, galleryImageName: string, options?: CommunityGalleryImageVersionsListOptionalParams): PagedAsyncIterableIterator; } // @public @@ -969,6 +1002,20 @@ export interface CommunityGalleryImageVersionsGetOptionalParams extends coreClie // @public export type CommunityGalleryImageVersionsGetResponse = CommunityGalleryImageVersion; +// @public +export interface CommunityGalleryImageVersionsListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type CommunityGalleryImageVersionsListNextResponse = CommunityGalleryImageVersionList; + +// @public +export interface CommunityGalleryImageVersionsListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type CommunityGalleryImageVersionsListResponse = CommunityGalleryImageVersionList; + // @public export interface CommunityGalleryInfo { readonly communityGalleryEnabled?: boolean; @@ -1113,6 +1160,15 @@ export type ConfidentialVMEncryptionType = string; // @public export type ConsistencyModeTypes = string; +// @public +export interface CopyCompletionError { + errorCode: CopyCompletionErrorReason; + errorMessage: string; +} + +// @public +export type CopyCompletionErrorReason = string; + // @public export interface CreationData { createOption: DiskCreateOption; @@ -1616,6 +1672,7 @@ export type DiskEncryptionSet = Resource & { rotationToLatestKeyVersionEnabled?: boolean; readonly lastKeyRotationTimestamp?: Date; readonly autoKeyRotationError?: ApiError; + federatedClientId?: string; }; // @public @@ -1731,6 +1788,7 @@ export type DiskEncryptionSetType = string; export interface DiskEncryptionSetUpdate { activeKey?: KeyForDiskEncryptionSet; encryptionType?: DiskEncryptionSetType; + federatedClientId?: string; identity?: EncryptionSetIdentity; rotationToLatestKeyVersionEnabled?: boolean; tags?: { @@ -1774,6 +1832,7 @@ export type DiskRestorePoint = ProxyOnlyResource & { completionPercent?: number; readonly replicationState?: string; readonly sourceResourceLocation?: string; + securityProfile?: DiskSecurityProfile; }; // @public @@ -1996,6 +2055,9 @@ export interface EncryptionSetIdentity { readonly principalId?: string; readonly tenantId?: string; type?: DiskEncryptionSetIdentityType; + userAssignedIdentities?: { + [propertyName: string]: UserAssignedIdentitiesValue; + }; } // @public @@ -2119,7 +2181,7 @@ export type GalleriesUpdateResponse = Gallery; export type Gallery = Resource & { description?: string; identifier?: GalleryIdentifier; - readonly provisioningState?: GalleryPropertiesProvisioningState; + readonly provisioningState?: GalleryProvisioningState; sharingProfile?: SharingProfile; softDeletePolicy?: SoftDeletePolicy; readonly sharingStatus?: SharingStatus; @@ -2211,7 +2273,7 @@ export type GalleryApplicationUpdate = UpdateResourceDefinition & { // @public export type GalleryApplicationVersion = Resource & { publishingProfile?: GalleryApplicationVersionPublishingProfile; - readonly provisioningState?: GalleryApplicationVersionPropertiesProvisioningState; + readonly provisioningState?: GalleryProvisioningState; readonly replicationStatus?: ReplicationStatus; }; @@ -2221,13 +2283,14 @@ export interface GalleryApplicationVersionList { value: GalleryApplicationVersion[]; } -// @public -export type GalleryApplicationVersionPropertiesProvisioningState = string; - // @public export type GalleryApplicationVersionPublishingProfile = GalleryArtifactPublishingProfileBase & { source: UserArtifactSource; manageActions?: UserArtifactManage; + settings?: UserArtifactSettings; + advancedSettings?: { + [propertyName: string]: string; + }; enableHealthCheck?: boolean; }; @@ -2292,7 +2355,7 @@ export type GalleryApplicationVersionsUpdateResponse = GalleryApplicationVersion // @public export type GalleryApplicationVersionUpdate = UpdateResourceDefinition & { publishingProfile?: GalleryApplicationVersionPublishingProfile; - readonly provisioningState?: GalleryApplicationVersionPropertiesProvisioningState; + readonly provisioningState?: GalleryProvisioningState; readonly replicationStatus?: ReplicationStatus; }; @@ -2363,7 +2426,7 @@ export type GalleryImage = Resource & { recommended?: RecommendedMachineConfiguration; disallowed?: Disallowed; purchasePlan?: ImagePurchasePlan; - readonly provisioningState?: GalleryImagePropertiesProvisioningState; + readonly provisioningState?: GalleryProvisioningState; features?: GalleryImageFeature[]; architecture?: Architecture; }; @@ -2387,9 +2450,6 @@ export interface GalleryImageList { value: GalleryImage[]; } -// @public -export type GalleryImagePropertiesProvisioningState = string; - // @public export interface GalleryImages { beginCreateOrUpdate(resourceGroupName: string, galleryName: string, galleryImageName: string, galleryImage: GalleryImage, options?: GalleryImagesCreateOrUpdateOptionalParams): Promise, GalleryImagesCreateOrUpdateResponse>>; @@ -2461,7 +2521,7 @@ export type GalleryImageUpdate = UpdateResourceDefinition & { recommended?: RecommendedMachineConfiguration; disallowed?: Disallowed; purchasePlan?: ImagePurchasePlan; - readonly provisioningState?: GalleryImagePropertiesProvisioningState; + readonly provisioningState?: GalleryProvisioningState; features?: GalleryImageFeature[]; architecture?: Architecture; }; @@ -2469,7 +2529,7 @@ export type GalleryImageUpdate = UpdateResourceDefinition & { // @public export type GalleryImageVersion = Resource & { publishingProfile?: GalleryImageVersionPublishingProfile; - readonly provisioningState?: GalleryImageVersionPropertiesProvisioningState; + readonly provisioningState?: GalleryProvisioningState; storageProfile?: GalleryImageVersionStorageProfile; readonly replicationStatus?: ReplicationStatus; }; @@ -2480,9 +2540,6 @@ export interface GalleryImageVersionList { value: GalleryImageVersion[]; } -// @public -export type GalleryImageVersionPropertiesProvisioningState = string; - // @public export type GalleryImageVersionPublishingProfile = GalleryArtifactPublishingProfileBase & {}; @@ -2554,7 +2611,7 @@ export type GalleryImageVersionsUpdateResponse = GalleryImageVersion; // @public export type GalleryImageVersionUpdate = UpdateResourceDefinition & { publishingProfile?: GalleryImageVersionPublishingProfile; - readonly provisioningState?: GalleryImageVersionPropertiesProvisioningState; + readonly provisioningState?: GalleryProvisioningState; storageProfile?: GalleryImageVersionStorageProfile; readonly replicationStatus?: ReplicationStatus; }; @@ -2569,7 +2626,7 @@ export interface GalleryList { export type GalleryOSDiskImage = GalleryDiskImage & {}; // @public -export type GalleryPropertiesProvisioningState = string; +export type GalleryProvisioningState = string; // @public export type GallerySharingPermissionTypes = string; @@ -2602,7 +2659,7 @@ export interface GalleryTargetExtendedLocation { export type GalleryUpdate = UpdateResourceDefinition & { description?: string; identifier?: GalleryIdentifier; - readonly provisioningState?: GalleryPropertiesProvisioningState; + readonly provisioningState?: GalleryProvisioningState; sharingProfile?: SharingProfile; softDeletePolicy?: SoftDeletePolicy; readonly sharingStatus?: SharingStatus; @@ -2662,8 +2719,10 @@ export interface ImageDisk { // @public export interface ImageDiskReference { - id: string; + communityGalleryImageId?: string; + id?: string; lun?: number; + sharedGalleryImageId?: string; } // @public @@ -2940,6 +2999,11 @@ export enum KnownConsistencyModeTypes { FileSystemConsistent = "FileSystemConsistent" } +// @public +export enum KnownCopyCompletionErrorReason { + CopySourceNotFound = "CopySourceNotFound" +} + // @public export enum KnownDataAccessAuthMode { AzureActiveDirectory = "AzureActiveDirectory", @@ -3011,7 +3075,11 @@ export enum KnownDiskEncryptionSetIdentityType { // (undocumented) None = "None", // (undocumented) - SystemAssigned = "SystemAssigned" + SystemAssigned = "SystemAssigned", + // (undocumented) + SystemAssignedUserAssigned = "SystemAssigned, UserAssigned", + // (undocumented) + UserAssigned = "UserAssigned" } // @public @@ -3044,6 +3112,7 @@ export enum KnownDiskState { // @public export enum KnownDiskStorageAccountTypes { PremiumLRS = "Premium_LRS", + PremiumV2LRS = "PremiumV2_LRS", PremiumZRS = "Premium_ZRS", StandardLRS = "Standard_LRS", StandardSSDLRS = "StandardSSD_LRS", @@ -3102,22 +3171,6 @@ export enum KnownExtendedLocationTypes { EdgeZone = "EdgeZone" } -// @public -export enum KnownGalleryApplicationVersionPropertiesProvisioningState { - // (undocumented) - Creating = "Creating", - // (undocumented) - Deleting = "Deleting", - // (undocumented) - Failed = "Failed", - // (undocumented) - Migrating = "Migrating", - // (undocumented) - Succeeded = "Succeeded", - // (undocumented) - Updating = "Updating" -} - // @public export enum KnownGalleryExpandParams { // (undocumented) @@ -3133,39 +3186,7 @@ export enum KnownGalleryExtendedLocationType { } // @public -export enum KnownGalleryImagePropertiesProvisioningState { - // (undocumented) - Creating = "Creating", - // (undocumented) - Deleting = "Deleting", - // (undocumented) - Failed = "Failed", - // (undocumented) - Migrating = "Migrating", - // (undocumented) - Succeeded = "Succeeded", - // (undocumented) - Updating = "Updating" -} - -// @public -export enum KnownGalleryImageVersionPropertiesProvisioningState { - // (undocumented) - Creating = "Creating", - // (undocumented) - Deleting = "Deleting", - // (undocumented) - Failed = "Failed", - // (undocumented) - Migrating = "Migrating", - // (undocumented) - Succeeded = "Succeeded", - // (undocumented) - Updating = "Updating" -} - -// @public -export enum KnownGalleryPropertiesProvisioningState { +export enum KnownGalleryProvisioningState { // (undocumented) Creating = "Creating", // (undocumented) @@ -3182,6 +3203,8 @@ export enum KnownGalleryPropertiesProvisioningState { // @public export enum KnownGallerySharingPermissionTypes { + // (undocumented) + Community = "Community", // (undocumented) Groups = "Groups", // (undocumented) @@ -3479,6 +3502,16 @@ export enum KnownSelectPermissions { Permissions = "Permissions" } +// @public +export enum KnownSharedGalleryHostCaching { + // (undocumented) + None = "None", + // (undocumented) + ReadOnly = "ReadOnly", + // (undocumented) + ReadWrite = "ReadWrite" +} + // @public export enum KnownSharedToValues { // (undocumented) @@ -3490,8 +3523,6 @@ export enum KnownSharingProfileGroupTypes { // (undocumented) AADTenants = "AADTenants", // (undocumented) - Community = "Community", - // (undocumented) Subscriptions = "Subscriptions" } @@ -5198,6 +5229,20 @@ export type SharedGalleriesListResponse = SharedGalleryList; // @public export type SharedGallery = PirSharedGalleryResource & {}; +// @public +export type SharedGalleryDataDiskImage = SharedGalleryDiskImage & { + lun: number; +}; + +// @public +export interface SharedGalleryDiskImage { + readonly diskSizeGB?: number; + hostCaching?: SharedGalleryHostCaching; +} + +// @public +export type SharedGalleryHostCaching = string; + // @public export type SharedGalleryImage = PirSharedGalleryResource & { osType?: OperatingSystemTypes; @@ -5209,6 +5254,7 @@ export type SharedGalleryImage = PirSharedGalleryResource & { hyperVGeneration?: HyperVGeneration; features?: GalleryImageFeature[]; purchasePlan?: ImagePurchasePlan; + architecture?: Architecture; }; // @public @@ -5250,6 +5296,8 @@ export type SharedGalleryImagesListResponse = SharedGalleryImageList; export type SharedGalleryImageVersion = PirSharedGalleryResource & { publishedDate?: Date; endOfLifeDate?: Date; + excludeFromLatest?: boolean; + storageProfile?: SharedGalleryImageVersionStorageProfile; }; // @public @@ -5287,12 +5335,21 @@ export interface SharedGalleryImageVersionsListOptionalParams extends coreClient // @public export type SharedGalleryImageVersionsListResponse = SharedGalleryImageVersionList; +// @public +export interface SharedGalleryImageVersionStorageProfile { + dataDiskImages?: SharedGalleryDataDiskImage[]; + osDiskImage?: SharedGalleryOSDiskImage; +} + // @public export interface SharedGalleryList { nextLink?: string; value: SharedGallery[]; } +// @public +export type SharedGalleryOSDiskImage = SharedGalleryDiskImage & {}; + // @public export type SharedToValues = string; @@ -5367,6 +5424,7 @@ export type Snapshot = Resource & { supportsHibernation?: boolean; publicNetworkAccess?: PublicNetworkAccess; completionPercent?: number; + copyCompletionError?: CopyCompletionError; dataAccessAuthMode?: DataAccessAuthMode; }; @@ -5792,6 +5850,12 @@ export interface UserArtifactManage { update?: string; } +// @public +export interface UserArtifactSettings { + configFileName?: string; + packageFileName?: string; +} + // @public export interface UserArtifactSource { defaultConfigurationLink?: string; @@ -6085,6 +6149,7 @@ export type VirtualMachineImageResource = SubResource & { export interface VirtualMachineImages { get(location: string, publisherName: string, offer: string, skus: string, version: string, options?: VirtualMachineImagesGetOptionalParams): Promise; list(location: string, publisherName: string, offer: string, skus: string, options?: VirtualMachineImagesListOptionalParams): Promise; + listByEdgeZone(location: string, edgeZone: string, options?: VirtualMachineImagesListByEdgeZoneOptionalParams): Promise; listOffers(location: string, publisherName: string, options?: VirtualMachineImagesListOffersOptionalParams): Promise; listPublishers(location: string, options?: VirtualMachineImagesListPublishersOptionalParams): Promise; listSkus(location: string, publisherName: string, offer: string, options?: VirtualMachineImagesListSkusOptionalParams): Promise; @@ -6144,6 +6209,13 @@ export interface VirtualMachineImagesGetOptionalParams extends coreClient.Operat // @public export type VirtualMachineImagesGetResponse = VirtualMachineImage; +// @public +export interface VirtualMachineImagesListByEdgeZoneOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type VirtualMachineImagesListByEdgeZoneResponse = VmImagesInEdgeZoneListResult; + // @public export interface VirtualMachineImagesListOffersOptionalParams extends coreClient.OperationOptions { } @@ -6647,16 +6719,10 @@ export interface VirtualMachineScaleSetIdentity { readonly tenantId?: string; type?: ResourceIdentityType; userAssignedIdentities?: { - [propertyName: string]: VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue; + [propertyName: string]: UserAssignedIdentitiesValue; }; } -// @public (undocumented) -export interface VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue { - readonly clientId?: string; - readonly principalId?: string; -} - // @public export interface VirtualMachineScaleSetInstanceView { readonly extensions?: VirtualMachineScaleSetVMExtensionsSummary[]; @@ -7910,6 +7976,12 @@ export type VMGuestPatchRebootSetting = string; // @public export type VMGuestPatchRebootStatus = string; +// @public +export interface VmImagesInEdgeZoneListResult { + nextLink?: string; + value?: VirtualMachineImageResource[]; +} + // @public (undocumented) export interface VMScaleSetConvertToSinglePlacementGroupInput { activePlacementGroupId?: string; diff --git a/sdk/compute/arm-compute/src/computeManagementClient.ts b/sdk/compute/arm-compute/src/computeManagementClient.ts index a27e3d8a062b..920cba834ae4 100644 --- a/sdk/compute/arm-compute/src/computeManagementClient.ts +++ b/sdk/compute/arm-compute/src/computeManagementClient.ts @@ -36,12 +36,12 @@ import { LogAnalyticsImpl, VirtualMachineRunCommandsImpl, VirtualMachineScaleSetVMRunCommandsImpl, - ResourceSkusImpl, DisksImpl, - SnapshotsImpl, - DiskEncryptionSetsImpl, DiskAccessesImpl, + DiskEncryptionSetsImpl, DiskRestorePointOperationsImpl, + SnapshotsImpl, + ResourceSkusImpl, GalleriesImpl, GalleryImagesImpl, GalleryImageVersionsImpl, @@ -87,12 +87,12 @@ import { LogAnalytics, VirtualMachineRunCommands, VirtualMachineScaleSetVMRunCommands, - ResourceSkus, Disks, - Snapshots, - DiskEncryptionSets, DiskAccesses, + DiskEncryptionSets, DiskRestorePointOperations, + Snapshots, + ResourceSkus, Galleries, GalleryImages, GalleryImageVersions, @@ -145,7 +145,7 @@ export class ComputeManagementClient extends coreClient.ServiceClient { credential: credentials }; - const packageDetails = `azsdk-js-arm-compute/18.0.1`; + const packageDetails = `azsdk-js-arm-compute/19.0.0`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -230,12 +230,12 @@ export class ComputeManagementClient extends coreClient.ServiceClient { this.virtualMachineScaleSetVMRunCommands = new VirtualMachineScaleSetVMRunCommandsImpl( this ); - this.resourceSkus = new ResourceSkusImpl(this); this.disks = new DisksImpl(this); - this.snapshots = new SnapshotsImpl(this); - this.diskEncryptionSets = new DiskEncryptionSetsImpl(this); this.diskAccesses = new DiskAccessesImpl(this); + this.diskEncryptionSets = new DiskEncryptionSetsImpl(this); this.diskRestorePointOperations = new DiskRestorePointOperationsImpl(this); + this.snapshots = new SnapshotsImpl(this); + this.resourceSkus = new ResourceSkusImpl(this); this.galleries = new GalleriesImpl(this); this.galleryImages = new GalleryImagesImpl(this); this.galleryImageVersions = new GalleryImageVersionsImpl(this); @@ -285,12 +285,12 @@ export class ComputeManagementClient extends coreClient.ServiceClient { logAnalytics: LogAnalytics; virtualMachineRunCommands: VirtualMachineRunCommands; virtualMachineScaleSetVMRunCommands: VirtualMachineScaleSetVMRunCommands; - resourceSkus: ResourceSkus; disks: Disks; - snapshots: Snapshots; - diskEncryptionSets: DiskEncryptionSets; diskAccesses: DiskAccesses; + diskEncryptionSets: DiskEncryptionSets; diskRestorePointOperations: DiskRestorePointOperations; + snapshots: Snapshots; + resourceSkus: ResourceSkus; galleries: Galleries; galleryImages: GalleryImages; galleryImageVersions: GalleryImageVersions; diff --git a/sdk/compute/arm-compute/src/models/index.ts b/sdk/compute/arm-compute/src/models/index.ts index 67f9a1676ce5..3e023d754cd1 100644 --- a/sdk/compute/arm-compute/src/models/index.ts +++ b/sdk/compute/arm-compute/src/models/index.ts @@ -696,11 +696,11 @@ export interface VirtualMachineScaleSetIdentity { type?: ResourceIdentityType; /** The list of user identities associated with the virtual machine scale set. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. */ userAssignedIdentities?: { - [propertyName: string]: VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue; + [propertyName: string]: UserAssignedIdentitiesValue; }; } -export interface VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue { +export interface UserAssignedIdentitiesValue { /** * The principal id of user assigned identity. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -1597,19 +1597,6 @@ export interface VirtualMachineIdentity { }; } -export interface UserAssignedIdentitiesValue { - /** - * The principal id of user assigned identity. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly principalId?: string; - /** - * The client id of user assigned identity. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly clientId?: string; -} - /** The List Virtual Machine Scale Set VMs operation response. */ export interface VirtualMachineScaleSetVMListResult { /** The list of virtual machine scale sets VMs. */ @@ -2093,6 +2080,14 @@ export interface VirtualMachineImageFeature { value?: string; } +/** The List VmImages in EdgeZone operation response. */ +export interface VmImagesInEdgeZoneListResult { + /** The list of VMImages in EdgeZone */ + value?: VirtualMachineImageResource[]; + /** The URI to fetch the next page of VMImages in EdgeZone. Call ListNext() with this URI to fetch the next page of VmImages. */ + nextLink?: string; +} + /** The List Availability Set operation response. */ export interface AvailabilitySetListResult { /** The list of availability sets */ @@ -2521,222 +2516,7 @@ export interface VirtualMachineRunCommandsListResult { nextLink?: string; } -/** The List Resource Skus operation response. */ -export interface ResourceSkusResult { - /** The list of skus available for the subscription. */ - value: ResourceSku[]; - /** The URI to fetch the next page of Resource Skus. Call ListNext() with this URI to fetch the next page of Resource Skus */ - nextLink?: string; -} - -/** Describes an available Compute SKU. */ -export interface ResourceSku { - /** - * The type of resource the SKU applies to. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly resourceType?: string; - /** - * The name of SKU. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly name?: string; - /** - * Specifies the tier of virtual machines in a scale set.

Possible Values:

**Standard**

**Basic** - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly tier?: string; - /** - * The Size of the SKU. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly size?: string; - /** - * The Family of this particular SKU. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly family?: string; - /** - * The Kind of resources that are supported in this SKU. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly kind?: string; - /** - * Specifies the number of virtual machines in the scale set. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly capacity?: ResourceSkuCapacity; - /** - * The set of locations that the SKU is available. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly locations?: string[]; - /** - * A list of locations and availability zones in those locations where the SKU is available. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly locationInfo?: ResourceSkuLocationInfo[]; - /** - * The api versions that support this SKU. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly apiVersions?: string[]; - /** - * Metadata for retrieving price info. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly costs?: ResourceSkuCosts[]; - /** - * A name value pair to describe the capability. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly capabilities?: ResourceSkuCapabilities[]; - /** - * The restrictions because of which SKU cannot be used. This is empty if there are no restrictions. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly restrictions?: ResourceSkuRestrictions[]; -} - -/** Describes scaling information of a SKU. */ -export interface ResourceSkuCapacity { - /** - * The minimum capacity. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly minimum?: number; - /** - * The maximum capacity that can be set. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly maximum?: number; - /** - * The default capacity. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly default?: number; - /** - * The scale type applicable to the sku. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly scaleType?: ResourceSkuCapacityScaleType; -} - -/** Describes an available Compute SKU Location Information. */ -export interface ResourceSkuLocationInfo { - /** - * Location of the SKU - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly location?: string; - /** - * List of availability zones where the SKU is supported. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly zones?: string[]; - /** - * Details of capabilities available to a SKU in specific zones. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly zoneDetails?: ResourceSkuZoneDetails[]; - /** - * The names of extended locations. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly extendedLocations?: string[]; - /** - * The type of the extended location. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly type?: ExtendedLocationType; -} - -/** Describes The zonal capabilities of a SKU. */ -export interface ResourceSkuZoneDetails { - /** - * The set of zones that the SKU is available in with the specified capabilities. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly name?: string[]; - /** - * A list of capabilities that are available for the SKU in the specified list of zones. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly capabilities?: ResourceSkuCapabilities[]; -} - -/** Describes The SKU capabilities object. */ -export interface ResourceSkuCapabilities { - /** - * An invariant to describe the feature. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly name?: string; - /** - * An invariant if the feature is measured by quantity. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly value?: string; -} - -/** Describes metadata for retrieving price info. */ -export interface ResourceSkuCosts { - /** - * Used for querying price from commerce. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly meterID?: string; - /** - * The multiplier is needed to extend the base metered cost. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly quantity?: number; - /** - * An invariant to show the extended unit. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly extendedUnit?: string; -} - -/** Describes scaling information of a SKU. */ -export interface ResourceSkuRestrictions { - /** - * The type of restrictions. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly type?: ResourceSkuRestrictionsType; - /** - * The value of restrictions. If the restriction type is set to location. This would be different locations where the SKU is restricted. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly values?: string[]; - /** - * The information about the restriction where the SKU cannot be used. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly restrictionInfo?: ResourceSkuRestrictionInfo; - /** - * The reason for restriction. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly reasonCode?: ResourceSkuRestrictionsReasonCode; -} - -/** Describes an available Compute SKU Restriction Information. */ -export interface ResourceSkuRestrictionInfo { - /** - * Locations where the SKU is restricted - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly locations?: string[]; - /** - * List of availability zones where the SKU is restricted. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly zones?: string[]; -} - -/** The disks sku name. Can be Standard_LRS, Premium_LRS, StandardSSD_LRS, UltraSSD_LRS, Premium_ZRS, or StandardSSD_ZRS. */ +/** The disks sku name. Can be Standard_LRS, Premium_LRS, StandardSSD_LRS, UltraSSD_LRS, Premium_ZRS, StandardSSD_ZRS, or PremiumV2_LRS. */ export interface DiskSku { /** The sku name. */ name?: DiskStorageAccountTypes; @@ -2773,9 +2553,9 @@ export interface CreationData { createOption: DiskCreateOption; /** Required if createOption is Import. The Azure Resource Manager identifier of the storage account containing the blob to import as a disk. */ storageAccountId?: string; - /** Disk source information. */ + /** Disk source information for PIR or user images. */ imageReference?: ImageDiskReference; - /** Required if creating from a Gallery Image. The id of the ImageDiskReference will be the ARM id of the shared galley image version from which to create a disk. */ + /** Required if creating from a Gallery Image. The id/sharedGalleryImageId/communityGalleryImageId of the ImageDiskReference will be the ARM id of the shared galley image version from which to create a disk. */ galleryImageReference?: ImageDiskReference; /** If createOption is Import, this is the URI of a blob to be imported into a managed disk. */ sourceUri?: string; @@ -2796,8 +2576,12 @@ export interface CreationData { /** The source image used for creating the disk. */ export interface ImageDiskReference { - /** A relative uri containing either a Platform Image Repository or user image reference. */ - id: string; + /** A relative uri containing either a Platform Image Repository, user image, or Azure Compute Gallery image reference. */ + id?: string; + /** A relative uri containing a direct shared Azure Compute Gallery image reference. */ + sharedGalleryImageId?: string; + /** A relative uri containing a community Azure Compute Gallery image reference. */ + communityGalleryImageId?: string; /** If the disk is created from an image's data disk, this is an index that indicates which of the data disks in the image to use. For OS disks, this field is null. */ lun?: number; } @@ -2876,7 +2660,7 @@ export interface DiskSecurityProfile { export interface DiskUpdate { /** Resource tags */ tags?: { [propertyName: string]: string }; - /** The disks sku name. Can be Standard_LRS, Premium_LRS, StandardSSD_LRS, UltraSSD_LRS, Premium_ZRS, or StandardSSD_ZRS. */ + /** The disks sku name. Can be Standard_LRS, Premium_LRS, StandardSSD_LRS, UltraSSD_LRS, Premium_ZRS, StandardSSD_ZRS, or PremiumV2_LRS. */ sku?: DiskSku; /** the Operating System type. */ osType?: OperatingSystemTypes; @@ -2952,49 +2736,111 @@ export interface AccessUri { readonly securityDataAccessSAS?: string; } -/** The snapshots sku name. Can be Standard_LRS, Premium_LRS, or Standard_ZRS. This is an optional parameter for incremental snapshot and the default behavior is the SKU will be set to the same sku as the previous snapshot */ -export interface SnapshotSku { - /** The sku name. */ - name?: SnapshotStorageAccountTypes; +/** The Private Endpoint Connection resource. */ +export interface PrivateEndpointConnection { /** - * The sku tier. + * private endpoint connection Id * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly tier?: string; -} - -/** Snapshot update resource. */ -export interface SnapshotUpdate { - /** Resource tags */ - tags?: { [propertyName: string]: string }; - /** The snapshots sku name. Can be Standard_LRS, Premium_LRS, or Standard_ZRS. This is an optional parameter for incremental snapshot and the default behavior is the SKU will be set to the same sku as the previous snapshot */ - sku?: SnapshotSku; - /** the Operating System type. */ - osType?: OperatingSystemTypes; - /** If creationData.createOption is Empty, this field is mandatory and it indicates the size of the disk to create. If this field is present for updates or creation with other options, it indicates a resize. Resizes are only allowed if the disk is not attached to a running VM, and can only increase the disk's size. */ - diskSizeGB?: number; - /** Encryption settings collection used be Azure Disk Encryption, can contain multiple encryption settings per disk or snapshot. */ - encryptionSettingsCollection?: EncryptionSettingsCollection; - /** Encryption property can be used to encrypt data at rest with customer managed keys or platform managed keys. */ - encryption?: Encryption; - /** Policy for accessing the disk via network. */ - networkAccessPolicy?: NetworkAccessPolicy; - /** ARM id of the DiskAccess resource for using private endpoints on disks. */ - diskAccessId?: string; - /** Indicates the OS on a snapshot supports hibernation. */ - supportsHibernation?: boolean; - /** Policy for controlling export on the disk. */ - publicNetworkAccess?: PublicNetworkAccess; - /** Additional authentication requirements when exporting or uploading to a disk or snapshot. */ - dataAccessAuthMode?: DataAccessAuthMode; - /** List of supported capabilities for the image from which the OS disk was created. */ - supportedCapabilities?: SupportedCapabilities; + readonly id?: string; + /** + * private endpoint connection name + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly name?: string; + /** + * private endpoint connection type + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly type?: string; + /** + * The resource of private end point. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly privateEndpoint?: PrivateEndpoint; + /** A collection of information about the state of the connection between DiskAccess and Virtual Network. */ + privateLinkServiceConnectionState?: PrivateLinkServiceConnectionState; + /** + * The provisioning state of the private endpoint connection resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: PrivateEndpointConnectionProvisioningState; } -/** The List Snapshots operation response. */ -export interface SnapshotList { - /** A list of snapshots. */ - value: Snapshot[]; +/** The Private Endpoint resource. */ +export interface PrivateEndpoint { + /** + * The ARM identifier for Private Endpoint + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly id?: string; +} + +/** A collection of information about the state of the connection between service consumer and provider. */ +export interface PrivateLinkServiceConnectionState { + /** Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service. */ + status?: PrivateEndpointServiceConnectionStatus; + /** The reason for approval/rejection of the connection. */ + description?: string; + /** A message indicating if changes on the service provider require any updates on the consumer. */ + actionsRequired?: string; +} + +/** Used for updating a disk access resource. */ +export interface DiskAccessUpdate { + /** Resource tags */ + tags?: { [propertyName: string]: string }; +} + +/** The List disk access operation response. */ +export interface DiskAccessList { + /** A list of disk access resources. */ + value: DiskAccess[]; + /** The uri to fetch the next page of disk access resources. Call ListNext() with this to fetch the next page of disk access resources. */ + nextLink?: string; +} + +/** A list of private link resources */ +export interface PrivateLinkResourceListResult { + /** Array of private link resources */ + value?: PrivateLinkResource[]; +} + +/** A private link resource */ +export interface PrivateLinkResource { + /** + * private link resource Id + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly id?: string; + /** + * private link resource name + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly name?: string; + /** + * private link resource type + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly type?: string; + /** + * The private link resource group id. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly groupId?: string; + /** + * The private link resource required member names. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly requiredMembers?: string[]; + /** The private link resource DNS zone name. */ + requiredZoneNames?: string[]; +} + +/** A list of private link resources */ +export interface PrivateEndpointConnectionListResult { + /** Array of private endpoint connections */ + value?: PrivateEndpointConnection[]; /** The uri to fetch the next page of snapshots. Call ListNext() with this to fetch the next page of snapshots. */ nextLink?: string; } @@ -3013,6 +2859,10 @@ export interface EncryptionSetIdentity { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly tenantId?: string; + /** The list of user identities associated with the disk encryption set. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. */ + userAssignedIdentities?: { + [propertyName: string]: UserAssignedIdentitiesValue; + }; } /** Key Vault Key Url to be used for server side encryption of Managed Disks and Snapshots */ @@ -3035,6 +2885,8 @@ export interface DiskEncryptionSetUpdate { activeKey?: KeyForDiskEncryptionSet; /** Set this flag to true to enable auto-updating of this disk encryption set to the latest key version. */ rotationToLatestKeyVersionEnabled?: boolean; + /** Multi-tenant application client id to access key vault in a different tenant. Setting the value to 'None' will clear the property. */ + federatedClientId?: string; } /** The List disk encryption set operation response. */ @@ -3053,140 +2905,301 @@ export interface ResourceUriList { nextLink?: string; } -/** The Private Endpoint Connection resource. */ -export interface PrivateEndpointConnection { +/** The ProxyOnly Resource model definition. */ +export interface ProxyOnlyResource { /** - * private endpoint connection Id + * Resource Id * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly id?: string; /** - * private endpoint connection name + * Resource name * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly name?: string; /** - * private endpoint connection type + * Resource type * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly type?: string; +} + +/** The List Disk Restore Points operation response. */ +export interface DiskRestorePointList { + /** A list of disk restore points. */ + value: DiskRestorePoint[]; + /** The uri to fetch the next page of disk restore points. Call ListNext() with this to fetch the next page of disk restore points. */ + nextLink?: string; +} + +/** The snapshots sku name. Can be Standard_LRS, Premium_LRS, or Standard_ZRS. This is an optional parameter for incremental snapshot and the default behavior is the SKU will be set to the same sku as the previous snapshot */ +export interface SnapshotSku { + /** The sku name. */ + name?: SnapshotStorageAccountTypes; + /** + * The sku tier. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly tier?: string; +} + +/** Indicates the error details if the background copy of a resource created via the CopyStart operation fails. */ +export interface CopyCompletionError { + /** Indicates the error code if the background copy of a resource created via the CopyStart operation fails. */ + errorCode: CopyCompletionErrorReason; + /** Indicates the error message if the background copy of a resource created via the CopyStart operation fails. */ + errorMessage: string; +} + +/** Snapshot update resource. */ +export interface SnapshotUpdate { + /** Resource tags */ + tags?: { [propertyName: string]: string }; + /** The snapshots sku name. Can be Standard_LRS, Premium_LRS, or Standard_ZRS. This is an optional parameter for incremental snapshot and the default behavior is the SKU will be set to the same sku as the previous snapshot */ + sku?: SnapshotSku; + /** the Operating System type. */ + osType?: OperatingSystemTypes; + /** If creationData.createOption is Empty, this field is mandatory and it indicates the size of the disk to create. If this field is present for updates or creation with other options, it indicates a resize. Resizes are only allowed if the disk is not attached to a running VM, and can only increase the disk's size. */ + diskSizeGB?: number; + /** Encryption settings collection used be Azure Disk Encryption, can contain multiple encryption settings per disk or snapshot. */ + encryptionSettingsCollection?: EncryptionSettingsCollection; + /** Encryption property can be used to encrypt data at rest with customer managed keys or platform managed keys. */ + encryption?: Encryption; + /** Policy for accessing the disk via network. */ + networkAccessPolicy?: NetworkAccessPolicy; + /** ARM id of the DiskAccess resource for using private endpoints on disks. */ + diskAccessId?: string; + /** Indicates the OS on a snapshot supports hibernation. */ + supportsHibernation?: boolean; + /** Policy for controlling export on the disk. */ + publicNetworkAccess?: PublicNetworkAccess; + /** Additional authentication requirements when exporting or uploading to a disk or snapshot. */ + dataAccessAuthMode?: DataAccessAuthMode; + /** List of supported capabilities for the image from which the OS disk was created. */ + supportedCapabilities?: SupportedCapabilities; +} + +/** The List Snapshots operation response. */ +export interface SnapshotList { + /** A list of snapshots. */ + value: Snapshot[]; + /** The uri to fetch the next page of snapshots. Call ListNext() with this to fetch the next page of snapshots. */ + nextLink?: string; +} + +/** The List Resource Skus operation response. */ +export interface ResourceSkusResult { + /** The list of skus available for the subscription. */ + value: ResourceSku[]; + /** The URI to fetch the next page of Resource Skus. Call ListNext() with this URI to fetch the next page of Resource Skus */ + nextLink?: string; +} + +/** Describes an available Compute SKU. */ +export interface ResourceSku { + /** + * The type of resource the SKU applies to. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly resourceType?: string; + /** + * The name of SKU. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly name?: string; + /** + * Specifies the tier of virtual machines in a scale set.

Possible Values:

**Standard**

**Basic** + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly tier?: string; + /** + * The Size of the SKU. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly size?: string; + /** + * The Family of this particular SKU. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly family?: string; + /** + * The Kind of resources that are supported in this SKU. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly kind?: string; + /** + * Specifies the number of virtual machines in the scale set. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly capacity?: ResourceSkuCapacity; + /** + * The set of locations that the SKU is available. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly locations?: string[]; + /** + * A list of locations and availability zones in those locations where the SKU is available. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly locationInfo?: ResourceSkuLocationInfo[]; + /** + * The api versions that support this SKU. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly apiVersions?: string[]; + /** + * Metadata for retrieving price info. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly costs?: ResourceSkuCosts[]; + /** + * A name value pair to describe the capability. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly capabilities?: ResourceSkuCapabilities[]; + /** + * The restrictions because of which SKU cannot be used. This is empty if there are no restrictions. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly restrictions?: ResourceSkuRestrictions[]; +} + +/** Describes scaling information of a SKU. */ +export interface ResourceSkuCapacity { + /** + * The minimum capacity. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly minimum?: number; + /** + * The maximum capacity that can be set. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly maximum?: number; + /** + * The default capacity. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly default?: number; + /** + * The scale type applicable to the sku. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly scaleType?: ResourceSkuCapacityScaleType; +} + +/** Describes an available Compute SKU Location Information. */ +export interface ResourceSkuLocationInfo { + /** + * Location of the SKU + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly location?: string; + /** + * List of availability zones where the SKU is supported. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly zones?: string[]; + /** + * Details of capabilities available to a SKU in specific zones. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly zoneDetails?: ResourceSkuZoneDetails[]; /** - * The resource of private end point. + * The names of extended locations. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly privateEndpoint?: PrivateEndpoint; - /** A collection of information about the state of the connection between DiskAccess and Virtual Network. */ - privateLinkServiceConnectionState?: PrivateLinkServiceConnectionState; + readonly extendedLocations?: string[]; /** - * The provisioning state of the private endpoint connection resource. + * The type of the extended location. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningState?: PrivateEndpointConnectionProvisioningState; + readonly type?: ExtendedLocationType; } -/** The Private Endpoint resource. */ -export interface PrivateEndpoint { +/** Describes The zonal capabilities of a SKU. */ +export interface ResourceSkuZoneDetails { /** - * The ARM identifier for Private Endpoint + * The set of zones that the SKU is available in with the specified capabilities. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly id?: string; -} - -/** A collection of information about the state of the connection between service consumer and provider. */ -export interface PrivateLinkServiceConnectionState { - /** Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service. */ - status?: PrivateEndpointServiceConnectionStatus; - /** The reason for approval/rejection of the connection. */ - description?: string; - /** A message indicating if changes on the service provider require any updates on the consumer. */ - actionsRequired?: string; -} - -/** Used for updating a disk access resource. */ -export interface DiskAccessUpdate { - /** Resource tags */ - tags?: { [propertyName: string]: string }; -} - -/** The List disk access operation response. */ -export interface DiskAccessList { - /** A list of disk access resources. */ - value: DiskAccess[]; - /** The uri to fetch the next page of disk access resources. Call ListNext() with this to fetch the next page of disk access resources. */ - nextLink?: string; -} - -/** A list of private link resources */ -export interface PrivateLinkResourceListResult { - /** Array of private link resources */ - value?: PrivateLinkResource[]; + readonly name?: string[]; + /** + * A list of capabilities that are available for the SKU in the specified list of zones. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly capabilities?: ResourceSkuCapabilities[]; } -/** A private link resource */ -export interface PrivateLinkResource { +/** Describes The SKU capabilities object. */ +export interface ResourceSkuCapabilities { /** - * private link resource Id + * An invariant to describe the feature. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly id?: string; + readonly name?: string; /** - * private link resource name + * An invariant if the feature is measured by quantity. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly name?: string; + readonly value?: string; +} + +/** Describes metadata for retrieving price info. */ +export interface ResourceSkuCosts { /** - * private link resource type + * Used for querying price from commerce. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly type?: string; + readonly meterID?: string; /** - * The private link resource group id. + * The multiplier is needed to extend the base metered cost. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly groupId?: string; + readonly quantity?: number; /** - * The private link resource required member names. + * An invariant to show the extended unit. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly requiredMembers?: string[]; - /** The private link resource DNS zone name. */ - requiredZoneNames?: string[]; -} - -/** A list of private link resources */ -export interface PrivateEndpointConnectionListResult { - /** Array of private endpoint connections */ - value?: PrivateEndpointConnection[]; - /** The uri to fetch the next page of snapshots. Call ListNext() with this to fetch the next page of snapshots. */ - nextLink?: string; + readonly extendedUnit?: string; } -/** The ProxyOnly Resource model definition. */ -export interface ProxyOnlyResource { +/** Describes scaling information of a SKU. */ +export interface ResourceSkuRestrictions { /** - * Resource Id + * The type of restrictions. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly id?: string; + readonly type?: ResourceSkuRestrictionsType; /** - * Resource name + * The value of restrictions. If the restriction type is set to location. This would be different locations where the SKU is restricted. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly name?: string; + readonly values?: string[]; /** - * Resource type + * The information about the restriction where the SKU cannot be used. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly type?: string; + readonly restrictionInfo?: ResourceSkuRestrictionInfo; + /** + * The reason for restriction. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly reasonCode?: ResourceSkuRestrictionsReasonCode; } -/** The List Disk Restore Points operation response. */ -export interface DiskRestorePointList { - /** A list of disk restore points. */ - value: DiskRestorePoint[]; - /** The uri to fetch the next page of disk restore points. Call ListNext() with this to fetch the next page of disk restore points. */ - nextLink?: string; +/** Describes an available Compute SKU Restriction Information. */ +export interface ResourceSkuRestrictionInfo { + /** + * Locations where the SKU is restricted + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly locations?: string[]; + /** + * List of availability zones where the SKU is restricted. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly zones?: string[]; } /** Describes the gallery unique name. */ @@ -3200,7 +3213,7 @@ export interface GalleryIdentifier { /** Profile for gallery sharing to subscription or tenant */ export interface SharingProfile { - /** This property allows you to specify the permission of sharing gallery.

Possible values are:

**Private**

**Groups** */ + /** This property allows you to specify the permission of sharing gallery.

Possible values are:

**Private**

**Groups**

**Community** */ permissions?: GallerySharingPermissionTypes; /** * A list of sharing profile groups. @@ -3213,7 +3226,7 @@ export interface SharingProfile { /** Group of the gallery sharing profile */ export interface SharingProfileGroup { - /** This property allows you to specify the type of sharing group.

Possible values are:

**Subscriptions**

**AADTenants**

**Community** */ + /** This property allows you to specify the type of sharing group.

Possible values are:

**Subscriptions**

**AADTenants** */ type?: SharingProfileGroupTypes; /** A list of subscription/tenant ids the gallery is aimed to be shared to. */ ids?: string[]; @@ -3483,6 +3496,14 @@ export interface UserArtifactManage { update?: string; } +/** Additional settings for the VM app that contains the target package and config file name when it is deployed to target VM or VM scale set. */ +export interface UserArtifactSettings { + /** Optional. The name to assign the downloaded package file on the VM. This is limited to 4096 characters. If not specified, the package file will be named the same as the Gallery Application name. */ + packageFileName?: string; + /** Optional. The name to assign the downloaded config file on the VM. This is limited to 4096 characters. If not specified, the config file will be named the Gallery Application name appended with "_config". */ + configFileName?: string; +} + /** The List Galleries operation response. */ export interface GalleryList { /** A list of galleries. */ @@ -3569,6 +3590,25 @@ export interface SharedGalleryImageVersionList { nextLink?: string; } +/** This is the storage profile of a Gallery Image Version. */ +export interface SharedGalleryImageVersionStorageProfile { + /** This is the OS disk image. */ + osDiskImage?: SharedGalleryOSDiskImage; + /** A list of data disk images. */ + dataDiskImages?: SharedGalleryDataDiskImage[]; +} + +/** This is the disk image base class. */ +export interface SharedGalleryDiskImage { + /** + * This property indicates the size of the VHD to be created. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly diskSizeGB?: number; + /** The host caching of the disk. Valid values are 'None', 'ReadOnly', and 'ReadWrite' */ + hostCaching?: SharedGalleryHostCaching; +} + /** Base information about the community gallery resource in pir. */ export interface PirCommunityGalleryResource { /** @@ -3590,6 +3630,22 @@ export interface PirCommunityGalleryResource { uniqueId?: string; } +/** The List Community Gallery Images operation response. */ +export interface CommunityGalleryImageList { + /** A list of community gallery images. */ + value: CommunityGalleryImage[]; + /** The uri to fetch the next page of community gallery images. Call ListNext() with this to fetch the next page of community gallery images. */ + nextLink?: string; +} + +/** The List Community Gallery Image versions operation response. */ +export interface CommunityGalleryImageVersionList { + /** A list of community gallery image versions. */ + value: CommunityGalleryImageVersion[]; + /** The uri to fetch the next page of community gallery image versions. Call ListNext() with this to fetch the next page of community gallery image versions. */ + nextLink?: string; +} + export interface RoleInstance { /** * Resource Id @@ -4164,13 +4220,13 @@ export interface OSFamilyListResult { /** Information of community gallery if current gallery is shared to community */ export interface CommunityGalleryInfo { - /** Community gallery publisher uri */ + /** The link to the publisher website. Visible to all users. */ publisherUri?: string; - /** Community gallery publisher contact email */ + /** Community gallery publisher support email. The email address of the publisher. Visible to all users. */ publisherContact?: string; - /** Community gallery publisher eula */ + /** End-user license agreement for community gallery image. */ eula?: string; - /** Community gallery public name prefix */ + /** 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. @@ -5031,7 +5087,7 @@ export type Disk = Resource & { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly managedByExtended?: string[]; - /** The disks sku name. Can be Standard_LRS, Premium_LRS, StandardSSD_LRS, UltraSSD_LRS, Premium_ZRS, or StandardSSD_ZRS. */ + /** The disks sku name. Can be Standard_LRS, Premium_LRS, StandardSSD_LRS, UltraSSD_LRS, Premium_ZRS, StandardSSD_ZRS, or PremiumV2_LRS. */ sku?: DiskSku; /** The Logical zone list for Disk. */ zones?: string[]; @@ -5118,74 +5174,25 @@ export type Disk = Resource & { dataAccessAuthMode?: DataAccessAuthMode; }; -/** Snapshot resource. */ -export type Snapshot = Resource & { - /** - * Unused. Always Null. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly managedBy?: string; - /** The snapshots sku name. Can be Standard_LRS, Premium_LRS, or Standard_ZRS. This is an optional parameter for incremental snapshot and the default behavior is the SKU will be set to the same sku as the previous snapshot */ - sku?: SnapshotSku; - /** The extended location where the snapshot will be created. Extended location cannot be changed. */ +/** disk access resource. */ +export type DiskAccess = Resource & { + /** The extended location where the disk access will be created. Extended location cannot be changed. */ extendedLocation?: ExtendedLocation; /** - * The time when the snapshot was created. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly timeCreated?: Date; - /** The Operating System type. */ - osType?: OperatingSystemTypes; - /** The hypervisor generation of the Virtual Machine. Applicable to OS disks only. */ - hyperVGeneration?: HyperVGeneration; - /** Purchase plan information for the image from which the source disk for the snapshot was originally created. */ - purchasePlan?: PurchasePlanAutoGenerated; - /** List of supported capabilities for the image from which the source disk from the snapshot was originally created. */ - supportedCapabilities?: SupportedCapabilities; - /** Disk source information. CreationData information cannot be changed after the disk has been created. */ - creationData?: CreationData; - /** If creationData.createOption is Empty, this field is mandatory and it indicates the size of the disk to create. If this field is present for updates or creation with other options, it indicates a resize. Resizes are only allowed if the disk is not attached to a running VM, and can only increase the disk's size. */ - diskSizeGB?: number; - /** - * The size of the disk in bytes. This field is read only. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly diskSizeBytes?: number; - /** - * The state of the snapshot. + * A readonly collection of private endpoint connections created on the disk. Currently only one endpoint connection is supported. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly diskState?: DiskState; + readonly privateEndpointConnections?: PrivateEndpointConnection[]; /** - * Unique Guid identifying the resource. + * The disk access resource provisioning state. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly uniqueId?: string; - /** Encryption settings collection used be Azure Disk Encryption, can contain multiple encryption settings per disk or snapshot. */ - encryptionSettingsCollection?: EncryptionSettingsCollection; + readonly provisioningState?: string; /** - * The disk provisioning state. + * The time when the disk access was created. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningState?: string; - /** Whether a snapshot is incremental. Incremental snapshots on the same disk occupy less space than full snapshots and can be diffed. */ - incremental?: boolean; - /** Encryption property can be used to encrypt data at rest with customer managed keys or platform managed keys. */ - encryption?: Encryption; - /** Policy for accessing the disk via network. */ - networkAccessPolicy?: NetworkAccessPolicy; - /** 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. */ - supportsHibernation?: boolean; - /** Policy for controlling export on the disk. */ - publicNetworkAccess?: PublicNetworkAccess; - /** Percentage complete for the background copy when a resource is created via the CopyStart operation. */ - completionPercent?: number; - /** Additional authentication requirements when exporting or uploading to a disk or snapshot. */ - dataAccessAuthMode?: DataAccessAuthMode; + readonly timeCreated?: Date; }; /** disk encryption set resource. */ @@ -5218,27 +5225,80 @@ export type DiskEncryptionSet = Resource & { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly autoKeyRotationError?: ApiError; + /** Multi-tenant application client id to access key vault in a different tenant. Setting the value to 'None' will clear the property. */ + federatedClientId?: string; }; -/** disk access resource. */ -export type DiskAccess = Resource & { - /** The extended location where the disk access will be created. Extended location cannot be changed. */ +/** Snapshot resource. */ +export type Snapshot = Resource & { + /** + * Unused. Always Null. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly managedBy?: string; + /** The snapshots sku name. Can be Standard_LRS, Premium_LRS, or Standard_ZRS. This is an optional parameter for incremental snapshot and the default behavior is the SKU will be set to the same sku as the previous snapshot */ + sku?: SnapshotSku; + /** The extended location where the snapshot will be created. Extended location cannot be changed. */ extendedLocation?: ExtendedLocation; /** - * A readonly collection of private endpoint connections created on the disk. Currently only one endpoint connection is supported. + * The time when the snapshot was created. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly timeCreated?: Date; + /** The Operating System type. */ + osType?: OperatingSystemTypes; + /** The hypervisor generation of the Virtual Machine. Applicable to OS disks only. */ + hyperVGeneration?: HyperVGeneration; + /** Purchase plan information for the image from which the source disk for the snapshot was originally created. */ + purchasePlan?: PurchasePlanAutoGenerated; + /** List of supported capabilities for the image from which the source disk from the snapshot was originally created. */ + supportedCapabilities?: SupportedCapabilities; + /** Disk source information. CreationData information cannot be changed after the disk has been created. */ + creationData?: CreationData; + /** If creationData.createOption is Empty, this field is mandatory and it indicates the size of the disk to create. If this field is present for updates or creation with other options, it indicates a resize. Resizes are only allowed if the disk is not attached to a running VM, and can only increase the disk's size. */ + diskSizeGB?: number; + /** + * The size of the disk in bytes. This field is read only. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly diskSizeBytes?: number; + /** + * The state of the snapshot. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly privateEndpointConnections?: PrivateEndpointConnection[]; + readonly diskState?: DiskState; /** - * The disk access resource provisioning state. + * Unique Guid identifying the resource. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningState?: string; + readonly uniqueId?: string; + /** Encryption settings collection used be Azure Disk Encryption, can contain multiple encryption settings per disk or snapshot. */ + encryptionSettingsCollection?: EncryptionSettingsCollection; /** - * The time when the disk access was created. + * The disk provisioning state. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly timeCreated?: Date; + readonly provisioningState?: string; + /** Whether a snapshot is incremental. Incremental snapshots on the same disk occupy less space than full snapshots and can be diffed. */ + incremental?: boolean; + /** Encryption property can be used to encrypt data at rest with customer managed keys or platform managed keys. */ + encryption?: Encryption; + /** Policy for accessing the disk via network. */ + networkAccessPolicy?: NetworkAccessPolicy; + /** 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. */ + supportsHibernation?: boolean; + /** Policy for controlling export on the disk. */ + publicNetworkAccess?: PublicNetworkAccess; + /** Percentage complete for the background copy when a resource is created via the CopyStart operation. */ + completionPercent?: number; + /** Indicates the error details if the background copy of a resource created via the CopyStart operation fails. */ + copyCompletionError?: CopyCompletionError; + /** Additional authentication requirements when exporting or uploading to a disk or snapshot. */ + dataAccessAuthMode?: DataAccessAuthMode; }; /** Specifies information about the Shared Image Gallery that you want to create or update. */ @@ -5251,7 +5311,7 @@ export type Gallery = Resource & { * The provisioning state, which only appears in the response. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningState?: GalleryPropertiesProvisioningState; + readonly provisioningState?: GalleryProvisioningState; /** Profile for gallery sharing to subscription or tenant */ sharingProfile?: SharingProfile; /** Contains information about the soft deletion policy of the gallery. */ @@ -5293,7 +5353,7 @@ export type GalleryImage = Resource & { * The provisioning state, which only appears in the response. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningState?: GalleryImagePropertiesProvisioningState; + readonly provisioningState?: GalleryProvisioningState; /** A list of gallery image features. */ features?: GalleryImageFeature[]; /** The architecture of the image. Applicable to OS disks only. */ @@ -5308,7 +5368,7 @@ export type GalleryImageVersion = Resource & { * The provisioning state, which only appears in the response. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningState?: GalleryImageVersionPropertiesProvisioningState; + readonly provisioningState?: GalleryProvisioningState; /** This is the storage profile of a Gallery Image Version. */ storageProfile?: GalleryImageVersionStorageProfile; /** @@ -5342,7 +5402,7 @@ export type GalleryApplicationVersion = Resource & { * The provisioning state, which only appears in the response. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningState?: GalleryApplicationVersionPropertiesProvisioningState; + readonly provisioningState?: GalleryProvisioningState; /** * This is the replication status of the gallery image version. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -5857,6 +5917,8 @@ export type DiskRestorePoint = ProxyOnlyResource & { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly sourceResourceLocation?: string; + /** Contains the security related information for the resource. */ + securityProfile?: DiskSecurityProfile; }; /** Specifies information about the Shared Image Gallery that you want to update. */ @@ -5869,7 +5931,7 @@ export type GalleryUpdate = UpdateResourceDefinition & { * The provisioning state, which only appears in the response. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningState?: GalleryPropertiesProvisioningState; + readonly provisioningState?: GalleryProvisioningState; /** Profile for gallery sharing to subscription or tenant */ sharingProfile?: SharingProfile; /** Contains information about the soft deletion policy of the gallery. */ @@ -5911,7 +5973,7 @@ export type GalleryImageUpdate = UpdateResourceDefinition & { * The provisioning state, which only appears in the response. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningState?: GalleryImagePropertiesProvisioningState; + readonly provisioningState?: GalleryProvisioningState; /** A list of gallery image features. */ features?: GalleryImageFeature[]; /** The architecture of the image. Applicable to OS disks only. */ @@ -5926,7 +5988,7 @@ export type GalleryImageVersionUpdate = UpdateResourceDefinition & { * The provisioning state, which only appears in the response. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningState?: GalleryImageVersionPropertiesProvisioningState; + readonly provisioningState?: GalleryProvisioningState; /** This is the storage profile of a Gallery Image Version. */ storageProfile?: GalleryImageVersionStorageProfile; /** @@ -5960,7 +6022,7 @@ export type GalleryApplicationVersionUpdate = UpdateResourceDefinition & { * The provisioning state, which only appears in the response. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningState?: GalleryApplicationVersionPropertiesProvisioningState; + readonly provisioningState?: GalleryProvisioningState; /** * This is the replication status of the gallery image version. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -5976,6 +6038,10 @@ export type GalleryApplicationVersionPublishingProfile = GalleryArtifactPublishi /** The source image from which the Image Version is going to be created. */ source: UserArtifactSource; manageActions?: UserArtifactManage; + /** Additional settings for the VM app that contains the target package and config file name when it is deployed to target VM or VM scale set. */ + settings?: UserArtifactSettings; + /** Optional. Additional settings to pass to the vm-application-manager extension. For advanced use only. */ + advancedSettings?: { [propertyName: string]: string }; /** Optional. Whether or not this application reports health. */ enableHealthCheck?: boolean; }; @@ -6007,6 +6073,15 @@ export type PirSharedGalleryResource = PirResource & { uniqueId?: string; }; +/** This is the OS disk image. */ +export type SharedGalleryOSDiskImage = SharedGalleryDiskImage & {}; + +/** This is the data disk image. */ +export type SharedGalleryDataDiskImage = SharedGalleryDiskImage & { + /** This property specifies the logical unit number of the data disk. This value is used to identify data disks within the Virtual Machine and therefore must be unique for each data disk attached to the Virtual Machine. */ + lun: number; +}; + /** Specifies information about the Community Gallery that you want to create or update. */ export type CommunityGallery = PirCommunityGalleryResource & {}; @@ -6030,6 +6105,12 @@ export type CommunityGalleryImage = PirCommunityGalleryResource & { features?: GalleryImageFeature[]; /** Describes the gallery image definition purchase plan. This is used by marketplace images. */ purchasePlan?: ImagePurchasePlan; + /** The architecture of the image. Applicable to OS disks only. */ + architecture?: Architecture; + /** Privacy statement uri for the current community gallery image. */ + privacyStatementUri?: string; + /** End-user license agreement for the current community gallery image. */ + eula?: string; }; /** Specifies information about the gallery image version that you want to create or update. */ @@ -6038,6 +6119,10 @@ export type CommunityGalleryImageVersion = PirCommunityGalleryResource & { 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; + /** If set to true, Virtual Machines deployed from the latest version of the Image Definition won't use this Image Version. */ + excludeFromLatest?: boolean; + /** Describes the storage profile of the image version. */ + storageProfile?: SharedGalleryImageVersionStorageProfile; }; /** Describes a Virtual Machine Image. */ @@ -6087,6 +6172,8 @@ export type SharedGalleryImage = PirSharedGalleryResource & { features?: GalleryImageFeature[]; /** Describes the gallery image definition purchase plan. This is used by marketplace images. */ purchasePlan?: ImagePurchasePlan; + /** The architecture of the image. Applicable to OS disks only. */ + architecture?: Architecture; }; /** Specifies information about the gallery image version that you want to create or update. */ @@ -6095,6 +6182,10 @@ export type SharedGalleryImageVersion = PirSharedGalleryResource & { 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; + /** If set to true, Virtual Machines deployed from the latest version of the Image Definition won't use this Image Version. */ + excludeFromLatest?: boolean; + /** Describes the storage profile of the image version. */ + storageProfile?: SharedGalleryImageVersionStorageProfile; }; /** Known values of {@link RepairAction} that the service accepts. */ @@ -7339,20 +7430,6 @@ export enum KnownExecutionState { */ export type ExecutionState = string; -/** Known values of {@link ExtendedLocationType} that the service accepts. */ -export enum KnownExtendedLocationType { - EdgeZone = "EdgeZone" -} - -/** - * Defines values for ExtendedLocationType. \ - * {@link KnownExtendedLocationType} can be used interchangeably with ExtendedLocationType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **EdgeZone** - */ -export type ExtendedLocationType = string; - /** Known values of {@link DiskStorageAccountTypes} that the service accepts. */ export enum KnownDiskStorageAccountTypes { /** Standard HDD locally redundant storage. Best for backup, non-critical, and infrequent access. */ @@ -7366,7 +7443,9 @@ export enum KnownDiskStorageAccountTypes { /** Premium SSD zone redundant storage. Best for the production workloads that need storage resiliency against zone failures. */ PremiumZRS = "Premium_ZRS", /** Standard SSD zone redundant storage. Best for web servers, lightly used enterprise applications and dev/test that need storage resiliency against zone failures. */ - StandardSSDZRS = "StandardSSD_ZRS" + StandardSSDZRS = "StandardSSD_ZRS", + /** Premium SSD v2 locally redundant storage. Best for production and performance-sensitive workloads that consistently require low latency and high IOPS and throughput. */ + PremiumV2LRS = "PremiumV2_LRS" } /** @@ -7379,7 +7458,8 @@ export enum KnownDiskStorageAccountTypes { * **StandardSSD_LRS**: Standard SSD locally redundant storage. Best for web servers, lightly used enterprise applications and dev\/test. \ * **UltraSSD_LRS**: Ultra SSD locally redundant storage. Best for IO-intensive workloads such as SAP HANA, top tier databases (for example, SQL, Oracle), and other transaction-heavy workloads. \ * **Premium_ZRS**: Premium SSD zone redundant storage. Best for the production workloads that need storage resiliency against zone failures. \ - * **StandardSSD_ZRS**: Standard SSD zone redundant storage. Best for web servers, lightly used enterprise applications and dev\/test that need storage resiliency against zone failures. + * **StandardSSD_ZRS**: Standard SSD zone redundant storage. Best for web servers, lightly used enterprise applications and dev\/test that need storage resiliency against zone failures. \ + * **PremiumV2_LRS**: Premium SSD v2 locally redundant storage. Best for production and performance-sensitive workloads that consistently require low latency and high IOPS and throughput. */ export type DiskStorageAccountTypes = string; @@ -7613,30 +7693,49 @@ export enum KnownAccessLevel { */ export type AccessLevel = string; -/** Known values of {@link SnapshotStorageAccountTypes} that the service accepts. */ -export enum KnownSnapshotStorageAccountTypes { - /** Standard HDD locally redundant storage */ - StandardLRS = "Standard_LRS", - /** Premium SSD locally redundant storage */ - PremiumLRS = "Premium_LRS", - /** Standard zone redundant storage */ - StandardZRS = "Standard_ZRS" +/** Known values of {@link PrivateEndpointServiceConnectionStatus} that the service accepts. */ +export enum KnownPrivateEndpointServiceConnectionStatus { + Pending = "Pending", + Approved = "Approved", + Rejected = "Rejected" } /** - * Defines values for SnapshotStorageAccountTypes. \ - * {@link KnownSnapshotStorageAccountTypes} can be used interchangeably with SnapshotStorageAccountTypes, + * Defines values for PrivateEndpointServiceConnectionStatus. \ + * {@link KnownPrivateEndpointServiceConnectionStatus} can be used interchangeably with PrivateEndpointServiceConnectionStatus, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Standard_LRS**: Standard HDD locally redundant storage \ - * **Premium_LRS**: Premium SSD locally redundant storage \ - * **Standard_ZRS**: Standard zone redundant storage + * **Pending** \ + * **Approved** \ + * **Rejected** */ -export type SnapshotStorageAccountTypes = string; +export type PrivateEndpointServiceConnectionStatus = string; + +/** Known values of {@link PrivateEndpointConnectionProvisioningState} that the service accepts. */ +export enum KnownPrivateEndpointConnectionProvisioningState { + Succeeded = "Succeeded", + Creating = "Creating", + Deleting = "Deleting", + Failed = "Failed" +} + +/** + * Defines values for PrivateEndpointConnectionProvisioningState. \ + * {@link KnownPrivateEndpointConnectionProvisioningState} can be used interchangeably with PrivateEndpointConnectionProvisioningState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Succeeded** \ + * **Creating** \ + * **Deleting** \ + * **Failed** + */ +export type PrivateEndpointConnectionProvisioningState = string; /** Known values of {@link DiskEncryptionSetIdentityType} that the service accepts. */ export enum KnownDiskEncryptionSetIdentityType { SystemAssigned = "SystemAssigned", + UserAssigned = "UserAssigned", + SystemAssignedUserAssigned = "SystemAssigned, UserAssigned", None = "None" } @@ -7646,6 +7745,8 @@ export enum KnownDiskEncryptionSetIdentityType { * this enum contains the known values that the service supports. * ### Known values supported by the service * **SystemAssigned** \ + * **UserAssigned** \ + * **SystemAssigned, UserAssigned** \ * **None** */ export type DiskEncryptionSetIdentityType = string; @@ -7671,46 +7772,58 @@ export enum KnownDiskEncryptionSetType { */ export type DiskEncryptionSetType = string; -/** Known values of {@link PrivateEndpointServiceConnectionStatus} that the service accepts. */ -export enum KnownPrivateEndpointServiceConnectionStatus { - Pending = "Pending", - Approved = "Approved", - Rejected = "Rejected" +/** Known values of {@link SnapshotStorageAccountTypes} that the service accepts. */ +export enum KnownSnapshotStorageAccountTypes { + /** Standard HDD locally redundant storage */ + StandardLRS = "Standard_LRS", + /** Premium SSD locally redundant storage */ + PremiumLRS = "Premium_LRS", + /** Standard zone redundant storage */ + StandardZRS = "Standard_ZRS" } /** - * Defines values for PrivateEndpointServiceConnectionStatus. \ - * {@link KnownPrivateEndpointServiceConnectionStatus} can be used interchangeably with PrivateEndpointServiceConnectionStatus, + * Defines values for SnapshotStorageAccountTypes. \ + * {@link KnownSnapshotStorageAccountTypes} can be used interchangeably with SnapshotStorageAccountTypes, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Pending** \ - * **Approved** \ - * **Rejected** + * **Standard_LRS**: Standard HDD locally redundant storage \ + * **Premium_LRS**: Premium SSD locally redundant storage \ + * **Standard_ZRS**: Standard zone redundant storage */ -export type PrivateEndpointServiceConnectionStatus = string; +export type SnapshotStorageAccountTypes = string; -/** Known values of {@link PrivateEndpointConnectionProvisioningState} that the service accepts. */ -export enum KnownPrivateEndpointConnectionProvisioningState { - Succeeded = "Succeeded", - Creating = "Creating", - Deleting = "Deleting", - Failed = "Failed" +/** Known values of {@link CopyCompletionErrorReason} that the service accepts. */ +export enum KnownCopyCompletionErrorReason { + /** Indicates that the source snapshot was deleted while the background copy of the resource created via CopyStart operation was in progress. */ + CopySourceNotFound = "CopySourceNotFound" } /** - * Defines values for PrivateEndpointConnectionProvisioningState. \ - * {@link KnownPrivateEndpointConnectionProvisioningState} can be used interchangeably with PrivateEndpointConnectionProvisioningState, + * Defines values for CopyCompletionErrorReason. \ + * {@link KnownCopyCompletionErrorReason} can be used interchangeably with CopyCompletionErrorReason, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Succeeded** \ - * **Creating** \ - * **Deleting** \ - * **Failed** + * **CopySourceNotFound**: Indicates that the source snapshot was deleted while the background copy of the resource created via CopyStart operation was in progress. */ -export type PrivateEndpointConnectionProvisioningState = string; +export type CopyCompletionErrorReason = string; + +/** Known values of {@link ExtendedLocationType} that the service accepts. */ +export enum KnownExtendedLocationType { + EdgeZone = "EdgeZone" +} + +/** + * Defines values for ExtendedLocationType. \ + * {@link KnownExtendedLocationType} can be used interchangeably with ExtendedLocationType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **EdgeZone** + */ +export type ExtendedLocationType = string; -/** Known values of {@link GalleryPropertiesProvisioningState} that the service accepts. */ -export enum KnownGalleryPropertiesProvisioningState { +/** Known values of {@link GalleryProvisioningState} that the service accepts. */ +export enum KnownGalleryProvisioningState { Creating = "Creating", Updating = "Updating", Failed = "Failed", @@ -7720,8 +7833,8 @@ export enum KnownGalleryPropertiesProvisioningState { } /** - * Defines values for GalleryPropertiesProvisioningState. \ - * {@link KnownGalleryPropertiesProvisioningState} can be used interchangeably with GalleryPropertiesProvisioningState, + * Defines values for GalleryProvisioningState. \ + * {@link KnownGalleryProvisioningState} can be used interchangeably with GalleryProvisioningState, * this enum contains the known values that the service supports. * ### Known values supported by the service * **Creating** \ @@ -7731,12 +7844,13 @@ export enum KnownGalleryPropertiesProvisioningState { * **Deleting** \ * **Migrating** */ -export type GalleryPropertiesProvisioningState = string; +export type GalleryProvisioningState = string; /** Known values of {@link GallerySharingPermissionTypes} that the service accepts. */ export enum KnownGallerySharingPermissionTypes { Private = "Private", - Groups = "Groups" + Groups = "Groups", + Community = "Community" } /** @@ -7745,15 +7859,15 @@ export enum KnownGallerySharingPermissionTypes { * this enum contains the known values that the service supports. * ### Known values supported by the service * **Private** \ - * **Groups** + * **Groups** \ + * **Community** */ export type GallerySharingPermissionTypes = string; /** Known values of {@link SharingProfileGroupTypes} that the service accepts. */ export enum KnownSharingProfileGroupTypes { Subscriptions = "Subscriptions", - AADTenants = "AADTenants", - Community = "Community" + AADTenants = "AADTenants" } /** @@ -7762,8 +7876,7 @@ export enum KnownSharingProfileGroupTypes { * this enum contains the known values that the service supports. * ### Known values supported by the service * **Subscriptions** \ - * **AADTenants** \ - * **Community** + * **AADTenants** */ export type SharingProfileGroupTypes = string; @@ -7815,30 +7928,6 @@ export enum KnownGalleryExpandParams { */ export type GalleryExpandParams = string; -/** Known values of {@link GalleryImagePropertiesProvisioningState} that the service accepts. */ -export enum KnownGalleryImagePropertiesProvisioningState { - Creating = "Creating", - Updating = "Updating", - Failed = "Failed", - Succeeded = "Succeeded", - Deleting = "Deleting", - Migrating = "Migrating" -} - -/** - * Defines values for GalleryImagePropertiesProvisioningState. \ - * {@link KnownGalleryImagePropertiesProvisioningState} can be used interchangeably with GalleryImagePropertiesProvisioningState, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Creating** \ - * **Updating** \ - * **Failed** \ - * **Succeeded** \ - * **Deleting** \ - * **Migrating** - */ -export type GalleryImagePropertiesProvisioningState = string; - /** Known values of {@link StorageAccountType} that the service accepts. */ export enum KnownStorageAccountType { StandardLRS = "Standard_LRS", @@ -7907,30 +7996,6 @@ export enum KnownGalleryExtendedLocationType { */ export type GalleryExtendedLocationType = string; -/** Known values of {@link GalleryImageVersionPropertiesProvisioningState} that the service accepts. */ -export enum KnownGalleryImageVersionPropertiesProvisioningState { - Creating = "Creating", - Updating = "Updating", - Failed = "Failed", - Succeeded = "Succeeded", - Deleting = "Deleting", - Migrating = "Migrating" -} - -/** - * Defines values for GalleryImageVersionPropertiesProvisioningState. \ - * {@link KnownGalleryImageVersionPropertiesProvisioningState} can be used interchangeably with GalleryImageVersionPropertiesProvisioningState, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Creating** \ - * **Updating** \ - * **Failed** \ - * **Succeeded** \ - * **Deleting** \ - * **Migrating** - */ -export type GalleryImageVersionPropertiesProvisioningState = string; - /** Known values of {@link AggregatedReplicationState} that the service accepts. */ export enum KnownAggregatedReplicationState { Unknown = "Unknown", @@ -7985,30 +8050,6 @@ export enum KnownReplicationStatusTypes { */ export type ReplicationStatusTypes = string; -/** Known values of {@link GalleryApplicationVersionPropertiesProvisioningState} that the service accepts. */ -export enum KnownGalleryApplicationVersionPropertiesProvisioningState { - Creating = "Creating", - Updating = "Updating", - Failed = "Failed", - Succeeded = "Succeeded", - Deleting = "Deleting", - Migrating = "Migrating" -} - -/** - * Defines values for GalleryApplicationVersionPropertiesProvisioningState. \ - * {@link KnownGalleryApplicationVersionPropertiesProvisioningState} can be used interchangeably with GalleryApplicationVersionPropertiesProvisioningState, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Creating** \ - * **Updating** \ - * **Failed** \ - * **Succeeded** \ - * **Deleting** \ - * **Migrating** - */ -export type GalleryApplicationVersionPropertiesProvisioningState = string; - /** Known values of {@link SharingUpdateOperationTypes} that the service accepts. */ export enum KnownSharingUpdateOperationTypes { Add = "Add", @@ -8043,6 +8084,24 @@ export enum KnownSharedToValues { */ export type SharedToValues = string; +/** Known values of {@link SharedGalleryHostCaching} that the service accepts. */ +export enum KnownSharedGalleryHostCaching { + None = "None", + ReadOnly = "ReadOnly", + ReadWrite = "ReadWrite" +} + +/** + * Defines values for SharedGalleryHostCaching. \ + * {@link KnownSharedGalleryHostCaching} can be used interchangeably with SharedGalleryHostCaching, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **None** \ + * **ReadOnly** \ + * **ReadWrite** + */ +export type SharedGalleryHostCaching = string; + /** Known values of {@link CloudServiceUpgradeMode} that the service accepts. */ export enum KnownCloudServiceUpgradeMode { Auto = "Auto", @@ -9105,6 +9164,13 @@ export interface VirtualMachineImagesListSkusOptionalParams /** Contains response data for the listSkus operation. */ export type VirtualMachineImagesListSkusResponse = VirtualMachineImageResource[]; +/** Optional parameters. */ +export interface VirtualMachineImagesListByEdgeZoneOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByEdgeZone operation. */ +export type VirtualMachineImagesListByEdgeZoneResponse = VmImagesInEdgeZoneListResult; + /** Optional parameters. */ export interface VirtualMachineImagesEdgeZoneGetOptionalParams extends coreClient.OperationOptions {} @@ -9915,48 +9981,24 @@ export interface VirtualMachineScaleSetVMRunCommandsGetOptionalParams export type VirtualMachineScaleSetVMRunCommandsGetResponse = VirtualMachineRunCommand; /** Optional parameters. */ -export interface VirtualMachineScaleSetVMRunCommandsListOptionalParams - extends coreClient.OperationOptions { - /** The expand expression to apply on the operation. */ - expand?: string; -} - -/** Contains response data for the list operation. */ -export type VirtualMachineScaleSetVMRunCommandsListResponse = VirtualMachineRunCommandsListResult; - -/** Optional parameters. */ -export interface VirtualMachineScaleSetVMRunCommandsListNextOptionalParams - extends coreClient.OperationOptions { - /** The expand expression to apply on the operation. */ - expand?: string; -} - -/** Contains response data for the listNext operation. */ -export type VirtualMachineScaleSetVMRunCommandsListNextResponse = VirtualMachineRunCommandsListResult; - -/** Optional parameters. */ -export interface ResourceSkusListOptionalParams +export interface VirtualMachineScaleSetVMRunCommandsListOptionalParams extends coreClient.OperationOptions { - /** The filter to apply on the operation. Only **location** filter is supported currently. */ - filter?: string; - /** To Include Extended Locations information or not in the response. */ - includeExtendedLocations?: string; + /** The expand expression to apply on the operation. */ + expand?: string; } /** Contains response data for the list operation. */ -export type ResourceSkusListResponse = ResourceSkusResult; +export type VirtualMachineScaleSetVMRunCommandsListResponse = VirtualMachineRunCommandsListResult; /** Optional parameters. */ -export interface ResourceSkusListNextOptionalParams +export interface VirtualMachineScaleSetVMRunCommandsListNextOptionalParams extends coreClient.OperationOptions { - /** The filter to apply on the operation. Only **location** filter is supported currently. */ - filter?: string; - /** To Include Extended Locations information or not in the response. */ - includeExtendedLocations?: string; + /** The expand expression to apply on the operation. */ + expand?: string; } /** Contains response data for the listNext operation. */ -export type ResourceSkusListNextResponse = ResourceSkusResult; +export type VirtualMachineScaleSetVMRunCommandsListNextResponse = VirtualMachineRunCommandsListResult; /** Optional parameters. */ export interface DisksCreateOrUpdateOptionalParams @@ -10044,7 +10086,7 @@ export interface DisksListNextOptionalParams export type DisksListNextResponse = DiskList; /** Optional parameters. */ -export interface SnapshotsCreateOrUpdateOptionalParams +export interface DiskAccessesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -10053,10 +10095,10 @@ export interface SnapshotsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type SnapshotsCreateOrUpdateResponse = Snapshot; +export type DiskAccessesCreateOrUpdateResponse = DiskAccess; /** Optional parameters. */ -export interface SnapshotsUpdateOptionalParams +export interface DiskAccessesUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -10065,17 +10107,17 @@ export interface SnapshotsUpdateOptionalParams } /** Contains response data for the update operation. */ -export type SnapshotsUpdateResponse = Snapshot; +export type DiskAccessesUpdateResponse = DiskAccess; /** Optional parameters. */ -export interface SnapshotsGetOptionalParams +export interface DiskAccessesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type SnapshotsGetResponse = Snapshot; +export type DiskAccessesGetResponse = DiskAccess; /** Optional parameters. */ -export interface SnapshotsDeleteOptionalParams +export interface DiskAccessesDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -10084,21 +10126,28 @@ export interface SnapshotsDeleteOptionalParams } /** Optional parameters. */ -export interface SnapshotsListByResourceGroupOptionalParams +export interface DiskAccessesListByResourceGroupOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByResourceGroup operation. */ -export type SnapshotsListByResourceGroupResponse = SnapshotList; +export type DiskAccessesListByResourceGroupResponse = DiskAccessList; /** Optional parameters. */ -export interface SnapshotsListOptionalParams +export interface DiskAccessesListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type SnapshotsListResponse = SnapshotList; +export type DiskAccessesListResponse = DiskAccessList; /** Optional parameters. */ -export interface SnapshotsGrantAccessOptionalParams +export interface DiskAccessesGetPrivateLinkResourcesOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getPrivateLinkResources operation. */ +export type DiskAccessesGetPrivateLinkResourcesResponse = PrivateLinkResourceListResult; + +/** Optional parameters. */ +export interface DiskAccessesUpdateAPrivateEndpointConnectionOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -10106,11 +10155,18 @@ export interface SnapshotsGrantAccessOptionalParams resumeFrom?: string; } -/** Contains response data for the grantAccess operation. */ -export type SnapshotsGrantAccessResponse = AccessUri; +/** Contains response data for the updateAPrivateEndpointConnection operation. */ +export type DiskAccessesUpdateAPrivateEndpointConnectionResponse = PrivateEndpointConnection; /** Optional parameters. */ -export interface SnapshotsRevokeAccessOptionalParams +export interface DiskAccessesGetAPrivateEndpointConnectionOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getAPrivateEndpointConnection operation. */ +export type DiskAccessesGetAPrivateEndpointConnectionResponse = PrivateEndpointConnection; + +/** Optional parameters. */ +export interface DiskAccessesDeleteAPrivateEndpointConnectionOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -10119,18 +10175,32 @@ export interface SnapshotsRevokeAccessOptionalParams } /** Optional parameters. */ -export interface SnapshotsListByResourceGroupNextOptionalParams +export interface DiskAccessesListPrivateEndpointConnectionsOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listPrivateEndpointConnections operation. */ +export type DiskAccessesListPrivateEndpointConnectionsResponse = PrivateEndpointConnectionListResult; + +/** Optional parameters. */ +export interface DiskAccessesListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByResourceGroupNext operation. */ -export type SnapshotsListByResourceGroupNextResponse = SnapshotList; +export type DiskAccessesListByResourceGroupNextResponse = DiskAccessList; /** Optional parameters. */ -export interface SnapshotsListNextOptionalParams +export interface DiskAccessesListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type SnapshotsListNextResponse = SnapshotList; +export type DiskAccessesListNextResponse = DiskAccessList; + +/** Optional parameters. */ +export interface DiskAccessesListPrivateEndpointConnectionsNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listPrivateEndpointConnectionsNext operation. */ +export type DiskAccessesListPrivateEndpointConnectionsNextResponse = PrivateEndpointConnectionListResult; /** Optional parameters. */ export interface DiskEncryptionSetsCreateOrUpdateOptionalParams @@ -10215,7 +10285,21 @@ export interface DiskEncryptionSetsListAssociatedResourcesNextOptionalParams export type DiskEncryptionSetsListAssociatedResourcesNextResponse = ResourceUriList; /** Optional parameters. */ -export interface DiskAccessesCreateOrUpdateOptionalParams +export interface DiskRestorePointGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type DiskRestorePointGetResponse = DiskRestorePoint; + +/** Optional parameters. */ +export interface DiskRestorePointListByRestorePointOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByRestorePoint operation. */ +export type DiskRestorePointListByRestorePointResponse = DiskRestorePointList; + +/** Optional parameters. */ +export interface DiskRestorePointGrantAccessOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -10223,11 +10307,11 @@ export interface DiskAccessesCreateOrUpdateOptionalParams resumeFrom?: string; } -/** Contains response data for the createOrUpdate operation. */ -export type DiskAccessesCreateOrUpdateResponse = DiskAccess; +/** Contains response data for the grantAccess operation. */ +export type DiskRestorePointGrantAccessResponse = AccessUri; /** Optional parameters. */ -export interface DiskAccessesUpdateOptionalParams +export interface DiskRestorePointRevokeAccessOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -10235,18 +10319,15 @@ export interface DiskAccessesUpdateOptionalParams resumeFrom?: string; } -/** Contains response data for the update operation. */ -export type DiskAccessesUpdateResponse = DiskAccess; - /** Optional parameters. */ -export interface DiskAccessesGetOptionalParams +export interface DiskRestorePointListByRestorePointNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type DiskAccessesGetResponse = DiskAccess; +/** Contains response data for the listByRestorePointNext operation. */ +export type DiskRestorePointListByRestorePointNextResponse = DiskRestorePointList; /** Optional parameters. */ -export interface DiskAccessesDeleteOptionalParams +export interface SnapshotsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -10254,29 +10335,11 @@ export interface DiskAccessesDeleteOptionalParams resumeFrom?: string; } -/** Optional parameters. */ -export interface DiskAccessesListByResourceGroupOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByResourceGroup operation. */ -export type DiskAccessesListByResourceGroupResponse = DiskAccessList; - -/** Optional parameters. */ -export interface DiskAccessesListOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the list operation. */ -export type DiskAccessesListResponse = DiskAccessList; - -/** Optional parameters. */ -export interface DiskAccessesGetPrivateLinkResourcesOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the getPrivateLinkResources operation. */ -export type DiskAccessesGetPrivateLinkResourcesResponse = PrivateLinkResourceListResult; +/** Contains response data for the createOrUpdate operation. */ +export type SnapshotsCreateOrUpdateResponse = Snapshot; /** Optional parameters. */ -export interface DiskAccessesUpdateAPrivateEndpointConnectionOptionalParams +export interface SnapshotsUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -10284,18 +10347,18 @@ export interface DiskAccessesUpdateAPrivateEndpointConnectionOptionalParams resumeFrom?: string; } -/** Contains response data for the updateAPrivateEndpointConnection operation. */ -export type DiskAccessesUpdateAPrivateEndpointConnectionResponse = PrivateEndpointConnection; +/** Contains response data for the update operation. */ +export type SnapshotsUpdateResponse = Snapshot; /** Optional parameters. */ -export interface DiskAccessesGetAPrivateEndpointConnectionOptionalParams +export interface SnapshotsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getAPrivateEndpointConnection operation. */ -export type DiskAccessesGetAPrivateEndpointConnectionResponse = PrivateEndpointConnection; +/** Contains response data for the get operation. */ +export type SnapshotsGetResponse = Snapshot; /** Optional parameters. */ -export interface DiskAccessesDeleteAPrivateEndpointConnectionOptionalParams +export interface SnapshotsDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -10304,74 +10367,77 @@ export interface DiskAccessesDeleteAPrivateEndpointConnectionOptionalParams } /** Optional parameters. */ -export interface DiskAccessesListPrivateEndpointConnectionsOptionalParams +export interface SnapshotsListByResourceGroupOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listPrivateEndpointConnections operation. */ -export type DiskAccessesListPrivateEndpointConnectionsResponse = PrivateEndpointConnectionListResult; +/** Contains response data for the listByResourceGroup operation. */ +export type SnapshotsListByResourceGroupResponse = SnapshotList; /** Optional parameters. */ -export interface DiskAccessesListByResourceGroupNextOptionalParams +export interface SnapshotsListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroupNext operation. */ -export type DiskAccessesListByResourceGroupNextResponse = DiskAccessList; +/** Contains response data for the list operation. */ +export type SnapshotsListResponse = SnapshotList; /** Optional parameters. */ -export interface DiskAccessesListNextOptionalParams - extends coreClient.OperationOptions {} +export interface SnapshotsGrantAccessOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} -/** Contains response data for the listNext operation. */ -export type DiskAccessesListNextResponse = DiskAccessList; +/** Contains response data for the grantAccess operation. */ +export type SnapshotsGrantAccessResponse = AccessUri; /** Optional parameters. */ -export interface DiskAccessesListPrivateEndpointConnectionsNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listPrivateEndpointConnectionsNext operation. */ -export type DiskAccessesListPrivateEndpointConnectionsNextResponse = PrivateEndpointConnectionListResult; +export interface SnapshotsRevokeAccessOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} /** Optional parameters. */ -export interface DiskRestorePointGetOptionalParams +export interface SnapshotsListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type DiskRestorePointGetResponse = DiskRestorePoint; +/** Contains response data for the listByResourceGroupNext operation. */ +export type SnapshotsListByResourceGroupNextResponse = SnapshotList; /** Optional parameters. */ -export interface DiskRestorePointListByRestorePointOptionalParams +export interface SnapshotsListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByRestorePoint operation. */ -export type DiskRestorePointListByRestorePointResponse = DiskRestorePointList; +/** Contains response data for the listNext operation. */ +export type SnapshotsListNextResponse = SnapshotList; /** Optional parameters. */ -export interface DiskRestorePointGrantAccessOptionalParams +export interface ResourceSkusListOptionalParams extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; + /** The filter to apply on the operation. Only **location** filter is supported currently. */ + filter?: string; + /** To Include Extended Locations information or not in the response. */ + includeExtendedLocations?: string; } -/** Contains response data for the grantAccess operation. */ -export type DiskRestorePointGrantAccessResponse = AccessUri; +/** Contains response data for the list operation. */ +export type ResourceSkusListResponse = ResourceSkusResult; /** Optional parameters. */ -export interface DiskRestorePointRevokeAccessOptionalParams +export interface ResourceSkusListNextOptionalParams extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; + /** The filter to apply on the operation. Only **location** filter is supported currently. */ + filter?: string; + /** To Include Extended Locations information or not in the response. */ + includeExtendedLocations?: string; } -/** Optional parameters. */ -export interface DiskRestorePointListByRestorePointNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByRestorePointNext operation. */ -export type DiskRestorePointListByRestorePointNextResponse = DiskRestorePointList; +/** Contains response data for the listNext operation. */ +export type ResourceSkusListNextResponse = ResourceSkusResult; /** Optional parameters. */ export interface GalleriesCreateOrUpdateOptionalParams @@ -10775,6 +10841,20 @@ export interface CommunityGalleryImagesGetOptionalParams /** Contains response data for the get operation. */ export type CommunityGalleryImagesGetResponse = CommunityGalleryImage; +/** Optional parameters. */ +export interface CommunityGalleryImagesListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type CommunityGalleryImagesListResponse = CommunityGalleryImageList; + +/** Optional parameters. */ +export interface CommunityGalleryImagesListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type CommunityGalleryImagesListNextResponse = CommunityGalleryImageList; + /** Optional parameters. */ export interface CommunityGalleryImageVersionsGetOptionalParams extends coreClient.OperationOptions {} @@ -10782,6 +10862,20 @@ export interface CommunityGalleryImageVersionsGetOptionalParams /** Contains response data for the get operation. */ export type CommunityGalleryImageVersionsGetResponse = CommunityGalleryImageVersion; +/** Optional parameters. */ +export interface CommunityGalleryImageVersionsListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type CommunityGalleryImageVersionsListResponse = CommunityGalleryImageVersionList; + +/** Optional parameters. */ +export interface CommunityGalleryImageVersionsListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type CommunityGalleryImageVersionsListNextResponse = CommunityGalleryImageVersionList; + /** Optional parameters. */ export interface CloudServiceRoleInstancesDeleteOptionalParams extends coreClient.OperationOptions { diff --git a/sdk/compute/arm-compute/src/models/mappers.ts b/sdk/compute/arm-compute/src/models/mappers.ts index 754f5ca4c6b1..c7f754dd5649 100644 --- a/sdk/compute/arm-compute/src/models/mappers.ts +++ b/sdk/compute/arm-compute/src/models/mappers.ts @@ -1998,8 +1998,7 @@ export const VirtualMachineScaleSetIdentity: coreClient.CompositeMapper = { value: { type: { name: "Composite", - className: - "VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue" + className: "UserAssignedIdentitiesValue" } } } @@ -2008,10 +2007,10 @@ export const VirtualMachineScaleSetIdentity: coreClient.CompositeMapper = { } }; -export const VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue: coreClient.CompositeMapper = { +export const UserAssignedIdentitiesValue: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue", + className: "UserAssignedIdentitiesValue", modelProperties: { principalId: { serializedName: "principalId", @@ -4343,29 +4342,6 @@ export const VirtualMachineIdentity: coreClient.CompositeMapper = { } }; -export const UserAssignedIdentitiesValue: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "UserAssignedIdentitiesValue", - modelProperties: { - principalId: { - serializedName: "principalId", - readOnly: true, - type: { - name: "String" - } - }, - clientId: { - serializedName: "clientId", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - export const VirtualMachineScaleSetVMListResult: coreClient.CompositeMapper = { type: { name: "Composite", @@ -5375,6 +5351,33 @@ export const VirtualMachineImageFeature: coreClient.CompositeMapper = { } }; +export const VmImagesInEdgeZoneListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VmImagesInEdgeZoneListResult", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualMachineImageResource" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + export const AvailabilitySetListResult: coreClient.CompositeMapper = { type: { name: "Composite", @@ -6674,26 +6677,20 @@ export const VirtualMachineRunCommandsListResult: coreClient.CompositeMapper = { } }; -export const ResourceSkusResult: coreClient.CompositeMapper = { +export const DiskSku: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ResourceSkusResult", + className: "DiskSku", modelProperties: { - value: { - serializedName: "value", - required: true, + name: { + serializedName: "name", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ResourceSku" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", + tier: { + serializedName: "tier", + readOnly: true, type: { name: "String" } @@ -6702,230 +6699,195 @@ export const ResourceSkusResult: coreClient.CompositeMapper = { } }; -export const ResourceSku: coreClient.CompositeMapper = { +export const PurchasePlanAutoGenerated: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ResourceSku", + className: "PurchasePlanAutoGenerated", modelProperties: { - resourceType: { - serializedName: "resourceType", - readOnly: true, + name: { + serializedName: "name", + required: true, type: { name: "String" } }, - name: { - serializedName: "name", - readOnly: true, + publisher: { + serializedName: "publisher", + required: true, type: { name: "String" } }, - tier: { - serializedName: "tier", - readOnly: true, + product: { + serializedName: "product", + required: true, type: { name: "String" } }, - size: { - serializedName: "size", - readOnly: true, + promotionCode: { + serializedName: "promotionCode", type: { name: "String" } + } + } + } +}; + +export const SupportedCapabilities: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SupportedCapabilities", + modelProperties: { + acceleratedNetwork: { + serializedName: "acceleratedNetwork", + type: { + name: "Boolean" + } }, - family: { - serializedName: "family", - readOnly: true, + architecture: { + serializedName: "architecture", + type: { + name: "String" + } + } + } + } +}; + +export const CreationData: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CreationData", + modelProperties: { + createOption: { + serializedName: "createOption", + required: true, type: { name: "String" } }, - kind: { - serializedName: "kind", - readOnly: true, + storageAccountId: { + serializedName: "storageAccountId", type: { name: "String" } }, - capacity: { - serializedName: "capacity", + imageReference: { + serializedName: "imageReference", type: { name: "Composite", - className: "ResourceSkuCapacity" + className: "ImageDiskReference" } }, - locations: { - serializedName: "locations", - readOnly: true, + galleryImageReference: { + serializedName: "galleryImageReference", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Composite", + className: "ImageDiskReference" } }, - locationInfo: { - serializedName: "locationInfo", - readOnly: true, + sourceUri: { + serializedName: "sourceUri", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ResourceSkuLocationInfo" - } - } + name: "String" } }, - apiVersions: { - serializedName: "apiVersions", - readOnly: true, + sourceResourceId: { + serializedName: "sourceResourceId", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - costs: { - serializedName: "costs", + sourceUniqueId: { + serializedName: "sourceUniqueId", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ResourceSkuCosts" - } - } + name: "String" } }, - capabilities: { - serializedName: "capabilities", - readOnly: true, + uploadSizeBytes: { + serializedName: "uploadSizeBytes", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ResourceSkuCapabilities" - } - } + name: "Number" } }, - restrictions: { - serializedName: "restrictions", - readOnly: true, + logicalSectorSize: { + serializedName: "logicalSectorSize", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ResourceSkuRestrictions" - } - } + name: "Number" + } + }, + securityDataUri: { + serializedName: "securityDataUri", + type: { + name: "String" } } } } }; -export const ResourceSkuCapacity: coreClient.CompositeMapper = { +export const ImageDiskReference: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ResourceSkuCapacity", + className: "ImageDiskReference", modelProperties: { - minimum: { - serializedName: "minimum", - readOnly: true, + id: { + serializedName: "id", type: { - name: "Number" + name: "String" } }, - maximum: { - serializedName: "maximum", - readOnly: true, + sharedGalleryImageId: { + serializedName: "sharedGalleryImageId", type: { - name: "Number" + name: "String" } }, - default: { - serializedName: "default", - readOnly: true, + communityGalleryImageId: { + serializedName: "communityGalleryImageId", type: { - name: "Number" + name: "String" } }, - scaleType: { - serializedName: "scaleType", - readOnly: true, + lun: { + serializedName: "lun", type: { - name: "Enum", - allowedValues: ["Automatic", "Manual", "None"] + name: "Number" } } } } }; -export const ResourceSkuLocationInfo: coreClient.CompositeMapper = { +export const EncryptionSettingsCollection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ResourceSkuLocationInfo", + className: "EncryptionSettingsCollection", modelProperties: { - location: { - serializedName: "location", - readOnly: true, - type: { - name: "String" - } - }, - zones: { - serializedName: "zones", - readOnly: true, + enabled: { + serializedName: "enabled", + required: true, type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Boolean" } }, - zoneDetails: { - serializedName: "zoneDetails", - readOnly: true, + encryptionSettings: { + serializedName: "encryptionSettings", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ResourceSkuZoneDetails" - } - } - } - }, - extendedLocations: { - serializedName: "extendedLocations", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "String" + className: "EncryptionSettingsElement" } } } }, - type: { - serializedName: "type", - readOnly: true, + encryptionSettingsVersion: { + serializedName: "encryptionSettingsVersion", type: { name: "String" } @@ -6934,55 +6896,44 @@ export const ResourceSkuLocationInfo: coreClient.CompositeMapper = { } }; -export const ResourceSkuZoneDetails: coreClient.CompositeMapper = { +export const EncryptionSettingsElement: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ResourceSkuZoneDetails", + className: "EncryptionSettingsElement", modelProperties: { - name: { - serializedName: "name", - readOnly: true, + diskEncryptionKey: { + serializedName: "diskEncryptionKey", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Composite", + className: "KeyVaultAndSecretReference" } }, - capabilities: { - serializedName: "capabilities", - readOnly: true, + keyEncryptionKey: { + serializedName: "keyEncryptionKey", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ResourceSkuCapabilities" - } - } + name: "Composite", + className: "KeyVaultAndKeyReference" } } } } }; -export const ResourceSkuCapabilities: coreClient.CompositeMapper = { +export const KeyVaultAndSecretReference: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ResourceSkuCapabilities", + className: "KeyVaultAndSecretReference", modelProperties: { - name: { - serializedName: "name", - readOnly: true, + sourceVault: { + serializedName: "sourceVault", type: { - name: "String" + name: "Composite", + className: "SourceVault" } }, - value: { - serializedName: "value", - readOnly: true, + secretUrl: { + serializedName: "secretUrl", + required: true, type: { name: "String" } @@ -6991,28 +6942,13 @@ export const ResourceSkuCapabilities: coreClient.CompositeMapper = { } }; -export const ResourceSkuCosts: coreClient.CompositeMapper = { +export const SourceVault: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ResourceSkuCosts", + className: "SourceVault", modelProperties: { - meterID: { - serializedName: "meterID", - readOnly: true, - type: { - name: "String" - } - }, - quantity: { - serializedName: "quantity", - readOnly: true, - type: { - name: "Number" - } - }, - extendedUnit: { - serializedName: "extendedUnit", - readOnly: true, + id: { + serializedName: "id", type: { name: "String" } @@ -7021,96 +6957,57 @@ export const ResourceSkuCosts: coreClient.CompositeMapper = { } }; -export const ResourceSkuRestrictions: coreClient.CompositeMapper = { +export const KeyVaultAndKeyReference: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ResourceSkuRestrictions", + className: "KeyVaultAndKeyReference", modelProperties: { - type: { - serializedName: "type", - readOnly: true, - type: { - name: "Enum", - allowedValues: ["Location", "Zone"] - } - }, - values: { - serializedName: "values", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - restrictionInfo: { - serializedName: "restrictionInfo", + sourceVault: { + serializedName: "sourceVault", type: { name: "Composite", - className: "ResourceSkuRestrictionInfo" + className: "SourceVault" } }, - reasonCode: { - serializedName: "reasonCode", - readOnly: true, + keyUrl: { + serializedName: "keyUrl", + required: true, type: { - name: "Enum", - allowedValues: ["QuotaId", "NotAvailableForSubscription"] + name: "String" } } } } }; -export const ResourceSkuRestrictionInfo: coreClient.CompositeMapper = { +export const Encryption: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ResourceSkuRestrictionInfo", + className: "Encryption", modelProperties: { - locations: { - serializedName: "locations", - readOnly: true, + diskEncryptionSetId: { + serializedName: "diskEncryptionSetId", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - zones: { - serializedName: "zones", - readOnly: true, + type: { + serializedName: "type", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } } } } }; -export const DiskSku: coreClient.CompositeMapper = { +export const ShareInfoElement: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DiskSku", + className: "ShareInfoElement", modelProperties: { - name: { - serializedName: "name", - type: { - name: "String" - } - }, - tier: { - serializedName: "tier", + vmUri: { + serializedName: "vmUri", readOnly: true, type: { name: "String" @@ -7120,34 +7017,13 @@ export const DiskSku: coreClient.CompositeMapper = { } }; -export const PurchasePlanAutoGenerated: coreClient.CompositeMapper = { +export const PropertyUpdatesInProgress: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PurchasePlanAutoGenerated", + className: "PropertyUpdatesInProgress", modelProperties: { - name: { - serializedName: "name", - required: true, - type: { - name: "String" - } - }, - publisher: { - serializedName: "publisher", - required: true, - type: { - name: "String" - } - }, - product: { - serializedName: "product", - required: true, - type: { - name: "String" - } - }, - promotionCode: { - serializedName: "promotionCode", + targetTier: { + serializedName: "targetTier", type: { name: "String" } @@ -7156,19 +7032,19 @@ export const PurchasePlanAutoGenerated: coreClient.CompositeMapper = { } }; -export const SupportedCapabilities: coreClient.CompositeMapper = { +export const DiskSecurityProfile: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SupportedCapabilities", + className: "DiskSecurityProfile", modelProperties: { - acceleratedNetwork: { - serializedName: "acceleratedNetwork", + securityType: { + serializedName: "securityType", type: { - name: "Boolean" + name: "String" } }, - architecture: { - serializedName: "architecture", + secureVMDiskEncryptionSetId: { + serializedName: "secureVMDiskEncryptionSetId", type: { name: "String" } @@ -7177,127 +7053,169 @@ export const SupportedCapabilities: coreClient.CompositeMapper = { } }; -export const CreationData: coreClient.CompositeMapper = { +export const DiskUpdate: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CreationData", + className: "DiskUpdate", modelProperties: { - createOption: { - serializedName: "createOption", - required: true, + tags: { + serializedName: "tags", type: { - name: "String" + name: "Dictionary", + value: { type: { name: "String" } } } }, - storageAccountId: { - serializedName: "storageAccountId", + sku: { + serializedName: "sku", type: { - name: "String" + name: "Composite", + className: "DiskSku" } }, - imageReference: { - serializedName: "imageReference", + osType: { + serializedName: "properties.osType", + type: { + name: "Enum", + allowedValues: ["Windows", "Linux"] + } + }, + diskSizeGB: { + serializedName: "properties.diskSizeGB", + type: { + name: "Number" + } + }, + encryptionSettingsCollection: { + serializedName: "properties.encryptionSettingsCollection", type: { name: "Composite", - className: "ImageDiskReference" + className: "EncryptionSettingsCollection" } }, - galleryImageReference: { - serializedName: "galleryImageReference", + diskIopsReadWrite: { + serializedName: "properties.diskIOPSReadWrite", + type: { + name: "Number" + } + }, + diskMBpsReadWrite: { + serializedName: "properties.diskMBpsReadWrite", + type: { + name: "Number" + } + }, + diskIopsReadOnly: { + serializedName: "properties.diskIOPSReadOnly", + type: { + name: "Number" + } + }, + diskMBpsReadOnly: { + serializedName: "properties.diskMBpsReadOnly", + type: { + name: "Number" + } + }, + maxShares: { + serializedName: "properties.maxShares", + type: { + name: "Number" + } + }, + encryption: { + serializedName: "properties.encryption", type: { name: "Composite", - className: "ImageDiskReference" + className: "Encryption" } }, - sourceUri: { - serializedName: "sourceUri", + networkAccessPolicy: { + serializedName: "properties.networkAccessPolicy", type: { name: "String" } }, - sourceResourceId: { - serializedName: "sourceResourceId", + diskAccessId: { + serializedName: "properties.diskAccessId", type: { name: "String" } }, - sourceUniqueId: { - serializedName: "sourceUniqueId", - readOnly: true, + tier: { + serializedName: "properties.tier", type: { name: "String" } }, - uploadSizeBytes: { - serializedName: "uploadSizeBytes", + burstingEnabled: { + serializedName: "properties.burstingEnabled", type: { - name: "Number" + name: "Boolean" } }, - logicalSectorSize: { - serializedName: "logicalSectorSize", + purchasePlan: { + serializedName: "properties.purchasePlan", type: { - name: "Number" + name: "Composite", + className: "PurchasePlanAutoGenerated" } }, - securityDataUri: { - serializedName: "securityDataUri", + supportedCapabilities: { + serializedName: "properties.supportedCapabilities", type: { - name: "String" + name: "Composite", + className: "SupportedCapabilities" } - } - } - } -}; - -export const ImageDiskReference: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ImageDiskReference", - modelProperties: { - id: { - serializedName: "id", - required: true, + }, + propertyUpdatesInProgress: { + serializedName: "properties.propertyUpdatesInProgress", + type: { + name: "Composite", + className: "PropertyUpdatesInProgress" + } + }, + supportsHibernation: { + serializedName: "properties.supportsHibernation", + type: { + name: "Boolean" + } + }, + publicNetworkAccess: { + serializedName: "properties.publicNetworkAccess", type: { name: "String" } }, - lun: { - serializedName: "lun", + dataAccessAuthMode: { + serializedName: "properties.dataAccessAuthMode", type: { - name: "Number" + name: "String" } } } } }; -export const EncryptionSettingsCollection: coreClient.CompositeMapper = { +export const DiskList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EncryptionSettingsCollection", + className: "DiskList", modelProperties: { - enabled: { - serializedName: "enabled", + value: { + serializedName: "value", required: true, - type: { - name: "Boolean" - } - }, - encryptionSettings: { - serializedName: "encryptionSettings", type: { name: "Sequence", element: { type: { name: "Composite", - className: "EncryptionSettingsElement" + className: "Disk" } } } }, - encryptionSettingsVersion: { - serializedName: "encryptionSettingsVersion", + nextLink: { + serializedName: "nextLink", type: { name: "String" } @@ -7306,44 +7224,50 @@ export const EncryptionSettingsCollection: coreClient.CompositeMapper = { } }; -export const EncryptionSettingsElement: coreClient.CompositeMapper = { +export const GrantAccessData: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EncryptionSettingsElement", + className: "GrantAccessData", modelProperties: { - diskEncryptionKey: { - serializedName: "diskEncryptionKey", + access: { + serializedName: "access", + required: true, type: { - name: "Composite", - className: "KeyVaultAndSecretReference" + name: "String" } }, - keyEncryptionKey: { - serializedName: "keyEncryptionKey", + durationInSeconds: { + serializedName: "durationInSeconds", + required: true, type: { - name: "Composite", - className: "KeyVaultAndKeyReference" + name: "Number" + } + }, + getSecureVMGuestStateSAS: { + serializedName: "getSecureVMGuestStateSAS", + type: { + name: "Boolean" } } } } }; -export const KeyVaultAndSecretReference: coreClient.CompositeMapper = { +export const AccessUri: coreClient.CompositeMapper = { type: { name: "Composite", - className: "KeyVaultAndSecretReference", + className: "AccessUri", modelProperties: { - sourceVault: { - serializedName: "sourceVault", + accessSAS: { + serializedName: "accessSAS", + readOnly: true, type: { - name: "Composite", - className: "SourceVault" + name: "String" } }, - secretUrl: { - serializedName: "secretUrl", - required: true, + securityDataAccessSAS: { + serializedName: "securityDataAccessSAS", + readOnly: true, type: { name: "String" } @@ -7352,13 +7276,49 @@ export const KeyVaultAndSecretReference: coreClient.CompositeMapper = { } }; -export const SourceVault: coreClient.CompositeMapper = { +export const PrivateEndpointConnection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SourceVault", + className: "PrivateEndpointConnection", modelProperties: { id: { serializedName: "id", + readOnly: true, + type: { + name: "String" + } + }, + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String" + } + }, + type: { + serializedName: "type", + readOnly: true, + type: { + name: "String" + } + }, + privateEndpoint: { + serializedName: "properties.privateEndpoint", + type: { + name: "Composite", + className: "PrivateEndpoint" + } + }, + privateLinkServiceConnectionState: { + serializedName: "properties.privateLinkServiceConnectionState", + type: { + name: "Composite", + className: "PrivateLinkServiceConnectionState" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, type: { name: "String" } @@ -7367,21 +7327,14 @@ export const SourceVault: coreClient.CompositeMapper = { } }; -export const KeyVaultAndKeyReference: coreClient.CompositeMapper = { +export const PrivateEndpoint: coreClient.CompositeMapper = { type: { name: "Composite", - className: "KeyVaultAndKeyReference", + className: "PrivateEndpoint", modelProperties: { - sourceVault: { - serializedName: "sourceVault", - type: { - name: "Composite", - className: "SourceVault" - } - }, - keyUrl: { - serializedName: "keyUrl", - required: true, + id: { + serializedName: "id", + readOnly: true, type: { name: "String" } @@ -7390,19 +7343,25 @@ export const KeyVaultAndKeyReference: coreClient.CompositeMapper = { } }; -export const Encryption: coreClient.CompositeMapper = { +export const PrivateLinkServiceConnectionState: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Encryption", + className: "PrivateLinkServiceConnectionState", modelProperties: { - diskEncryptionSetId: { - serializedName: "diskEncryptionSetId", + status: { + serializedName: "status", type: { name: "String" } }, - type: { - serializedName: "type", + description: { + serializedName: "description", + type: { + name: "String" + } + }, + actionsRequired: { + serializedName: "actionsRequired", type: { name: "String" } @@ -7411,29 +7370,42 @@ export const Encryption: coreClient.CompositeMapper = { } }; -export const ShareInfoElement: coreClient.CompositeMapper = { +export const DiskAccessUpdate: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ShareInfoElement", + className: "DiskAccessUpdate", modelProperties: { - vmUri: { - serializedName: "vmUri", - readOnly: true, + tags: { + serializedName: "tags", type: { - name: "String" + name: "Dictionary", + value: { type: { name: "String" } } } } } } }; -export const PropertyUpdatesInProgress: coreClient.CompositeMapper = { +export const DiskAccessList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PropertyUpdatesInProgress", + className: "DiskAccessList", modelProperties: { - targetTier: { - serializedName: "targetTier", + value: { + serializedName: "value", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DiskAccess" + } + } + } + }, + nextLink: { + serializedName: "nextLink", type: { name: "String" } @@ -7442,184 +7414,100 @@ export const PropertyUpdatesInProgress: coreClient.CompositeMapper = { } }; -export const DiskSecurityProfile: coreClient.CompositeMapper = { +export const PrivateLinkResourceListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DiskSecurityProfile", + className: "PrivateLinkResourceListResult", modelProperties: { - securityType: { - serializedName: "securityType", - type: { - name: "String" - } - }, - secureVMDiskEncryptionSetId: { - serializedName: "secureVMDiskEncryptionSetId", + value: { + serializedName: "value", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateLinkResource" + } + } } } } } }; -export const DiskUpdate: coreClient.CompositeMapper = { +export const PrivateLinkResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DiskUpdate", + className: "PrivateLinkResource", modelProperties: { - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - }, - sku: { - serializedName: "sku", - type: { - name: "Composite", - className: "DiskSku" - } - }, - osType: { - serializedName: "properties.osType", - type: { - name: "Enum", - allowedValues: ["Windows", "Linux"] - } - }, - diskSizeGB: { - serializedName: "properties.diskSizeGB", - type: { - name: "Number" - } - }, - encryptionSettingsCollection: { - serializedName: "properties.encryptionSettingsCollection", - type: { - name: "Composite", - className: "EncryptionSettingsCollection" - } - }, - diskIopsReadWrite: { - serializedName: "properties.diskIOPSReadWrite", - type: { - name: "Number" - } - }, - diskMBpsReadWrite: { - serializedName: "properties.diskMBpsReadWrite", - type: { - name: "Number" - } - }, - diskIopsReadOnly: { - serializedName: "properties.diskIOPSReadOnly", - type: { - name: "Number" - } - }, - diskMBpsReadOnly: { - serializedName: "properties.diskMBpsReadOnly", - type: { - name: "Number" - } - }, - maxShares: { - serializedName: "properties.maxShares", - type: { - name: "Number" - } - }, - encryption: { - serializedName: "properties.encryption", - type: { - name: "Composite", - className: "Encryption" - } - }, - networkAccessPolicy: { - serializedName: "properties.networkAccessPolicy", - type: { - name: "String" - } - }, - diskAccessId: { - serializedName: "properties.diskAccessId", - type: { - name: "String" - } - }, - tier: { - serializedName: "properties.tier", + id: { + serializedName: "id", + readOnly: true, type: { name: "String" } }, - burstingEnabled: { - serializedName: "properties.burstingEnabled", - type: { - name: "Boolean" - } - }, - purchasePlan: { - serializedName: "properties.purchasePlan", - type: { - name: "Composite", - className: "PurchasePlanAutoGenerated" - } - }, - supportedCapabilities: { - serializedName: "properties.supportedCapabilities", + name: { + serializedName: "name", + readOnly: true, type: { - name: "Composite", - className: "SupportedCapabilities" + name: "String" } }, - propertyUpdatesInProgress: { - serializedName: "properties.propertyUpdatesInProgress", + type: { + serializedName: "type", + readOnly: true, type: { - name: "Composite", - className: "PropertyUpdatesInProgress" + name: "String" } }, - supportsHibernation: { - serializedName: "properties.supportsHibernation", + groupId: { + serializedName: "properties.groupId", + readOnly: true, type: { - name: "Boolean" + name: "String" } }, - publicNetworkAccess: { - serializedName: "properties.publicNetworkAccess", + requiredMembers: { + serializedName: "properties.requiredMembers", + readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - dataAccessAuthMode: { - serializedName: "properties.dataAccessAuthMode", + requiredZoneNames: { + serializedName: "properties.requiredZoneNames", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } } } } }; -export const DiskList: coreClient.CompositeMapper = { +export const PrivateEndpointConnectionListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DiskList", + className: "PrivateEndpointConnectionListResult", modelProperties: { value: { serializedName: "value", - required: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "Disk" + className: "PrivateEndpointConnection" } } } @@ -7634,72 +7522,62 @@ export const DiskList: coreClient.CompositeMapper = { } }; -export const GrantAccessData: coreClient.CompositeMapper = { +export const EncryptionSetIdentity: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GrantAccessData", + className: "EncryptionSetIdentity", modelProperties: { - access: { - serializedName: "access", - required: true, + type: { + serializedName: "type", type: { name: "String" } }, - durationInSeconds: { - serializedName: "durationInSeconds", - required: true, + principalId: { + serializedName: "principalId", + readOnly: true, type: { - name: "Number" + name: "String" } }, - getSecureVMGuestStateSAS: { - serializedName: "getSecureVMGuestStateSAS", - type: { - name: "Boolean" - } - } - } - } -}; - -export const AccessUri: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AccessUri", - modelProperties: { - accessSAS: { - serializedName: "accessSAS", + tenantId: { + serializedName: "tenantId", readOnly: true, type: { name: "String" } }, - securityDataAccessSAS: { - serializedName: "securityDataAccessSAS", - readOnly: true, + userAssignedIdentities: { + serializedName: "userAssignedIdentities", type: { - name: "String" + name: "Dictionary", + value: { + type: { + name: "Composite", + className: "UserAssignedIdentitiesValue" + } + } } } } } }; -export const SnapshotSku: coreClient.CompositeMapper = { +export const KeyForDiskEncryptionSet: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SnapshotSku", + className: "KeyForDiskEncryptionSet", modelProperties: { - name: { - serializedName: "name", + sourceVault: { + serializedName: "sourceVault", type: { - name: "String" + name: "Composite", + className: "SourceVault" } }, - tier: { - serializedName: "tier", - readOnly: true, + keyUrl: { + serializedName: "keyUrl", + required: true, type: { name: "String" } @@ -7708,10 +7586,10 @@ export const SnapshotSku: coreClient.CompositeMapper = { } }; -export const SnapshotUpdate: coreClient.CompositeMapper = { +export const DiskEncryptionSetUpdate: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SnapshotUpdate", + className: "DiskEncryptionSetUpdate", modelProperties: { tags: { serializedName: "tags", @@ -7720,85 +7598,131 @@ export const SnapshotUpdate: coreClient.CompositeMapper = { value: { type: { name: "String" } } } }, - sku: { - serializedName: "sku", + identity: { + serializedName: "identity", type: { name: "Composite", - className: "SnapshotSku" - } - }, - osType: { - serializedName: "properties.osType", - type: { - name: "Enum", - allowedValues: ["Windows", "Linux"] + className: "EncryptionSetIdentity" } }, - diskSizeGB: { - serializedName: "properties.diskSizeGB", + encryptionType: { + serializedName: "properties.encryptionType", type: { - name: "Number" + name: "String" } }, - encryptionSettingsCollection: { - serializedName: "properties.encryptionSettingsCollection", + activeKey: { + serializedName: "properties.activeKey", type: { name: "Composite", - className: "EncryptionSettingsCollection" + className: "KeyForDiskEncryptionSet" } }, - encryption: { - serializedName: "properties.encryption", + rotationToLatestKeyVersionEnabled: { + serializedName: "properties.rotationToLatestKeyVersionEnabled", type: { - name: "Composite", - className: "Encryption" + name: "Boolean" } }, - networkAccessPolicy: { - serializedName: "properties.networkAccessPolicy", + federatedClientId: { + serializedName: "properties.federatedClientId", type: { name: "String" } + } + } + } +}; + +export const DiskEncryptionSetList: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DiskEncryptionSetList", + modelProperties: { + value: { + serializedName: "value", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DiskEncryptionSet" + } + } + } }, - diskAccessId: { - serializedName: "properties.diskAccessId", + nextLink: { + serializedName: "nextLink", type: { name: "String" } - }, - supportsHibernation: { - serializedName: "properties.supportsHibernation", + } + } + } +}; + +export const ResourceUriList: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ResourceUriList", + modelProperties: { + value: { + serializedName: "value", + required: true, type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - publicNetworkAccess: { - serializedName: "properties.publicNetworkAccess", + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const ProxyOnlyResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ProxyOnlyResource", + modelProperties: { + id: { + serializedName: "id", + readOnly: true, type: { name: "String" } }, - dataAccessAuthMode: { - serializedName: "properties.dataAccessAuthMode", + name: { + serializedName: "name", + readOnly: true, type: { name: "String" } }, - supportedCapabilities: { - serializedName: "properties.supportedCapabilities", + type: { + serializedName: "type", + readOnly: true, type: { - name: "Composite", - className: "SupportedCapabilities" + name: "String" } } } } }; -export const SnapshotList: coreClient.CompositeMapper = { +export const DiskRestorePointList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SnapshotList", + className: "DiskRestorePointList", modelProperties: { value: { serializedName: "value", @@ -7808,7 +7732,7 @@ export const SnapshotList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Snapshot" + className: "DiskRestorePoint" } } } @@ -7823,26 +7747,19 @@ export const SnapshotList: coreClient.CompositeMapper = { } }; -export const EncryptionSetIdentity: coreClient.CompositeMapper = { +export const SnapshotSku: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EncryptionSetIdentity", + className: "SnapshotSku", modelProperties: { - type: { - serializedName: "type", - type: { - name: "String" - } - }, - principalId: { - serializedName: "principalId", - readOnly: true, + name: { + serializedName: "name", type: { name: "String" } }, - tenantId: { - serializedName: "tenantId", + tier: { + serializedName: "tier", readOnly: true, type: { name: "String" @@ -7852,20 +7769,20 @@ export const EncryptionSetIdentity: coreClient.CompositeMapper = { } }; -export const KeyForDiskEncryptionSet: coreClient.CompositeMapper = { +export const CopyCompletionError: coreClient.CompositeMapper = { type: { name: "Composite", - className: "KeyForDiskEncryptionSet", + className: "CopyCompletionError", modelProperties: { - sourceVault: { - serializedName: "sourceVault", + errorCode: { + serializedName: "errorCode", + required: true, type: { - name: "Composite", - className: "SourceVault" + name: "String" } }, - keyUrl: { - serializedName: "keyUrl", + errorMessage: { + serializedName: "errorMessage", required: true, type: { name: "String" @@ -7875,10 +7792,10 @@ export const KeyForDiskEncryptionSet: coreClient.CompositeMapper = { } }; -export const DiskEncryptionSetUpdate: coreClient.CompositeMapper = { +export const SnapshotUpdate: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DiskEncryptionSetUpdate", + className: "SnapshotUpdate", modelProperties: { tags: { serializedName: "tags", @@ -7887,40 +7804,85 @@ export const DiskEncryptionSetUpdate: coreClient.CompositeMapper = { value: { type: { name: "String" } } } }, - identity: { - serializedName: "identity", + sku: { + serializedName: "sku", type: { name: "Composite", - className: "EncryptionSetIdentity" + className: "SnapshotSku" } }, - encryptionType: { - serializedName: "properties.encryptionType", + osType: { + serializedName: "properties.osType", type: { - name: "String" + name: "Enum", + allowedValues: ["Windows", "Linux"] } }, - activeKey: { - serializedName: "properties.activeKey", + diskSizeGB: { + serializedName: "properties.diskSizeGB", + type: { + name: "Number" + } + }, + encryptionSettingsCollection: { + serializedName: "properties.encryptionSettingsCollection", type: { name: "Composite", - className: "KeyForDiskEncryptionSet" + className: "EncryptionSettingsCollection" } }, - rotationToLatestKeyVersionEnabled: { - serializedName: "properties.rotationToLatestKeyVersionEnabled", + encryption: { + serializedName: "properties.encryption", + type: { + name: "Composite", + className: "Encryption" + } + }, + networkAccessPolicy: { + serializedName: "properties.networkAccessPolicy", + type: { + name: "String" + } + }, + diskAccessId: { + serializedName: "properties.diskAccessId", + type: { + name: "String" + } + }, + supportsHibernation: { + serializedName: "properties.supportsHibernation", type: { name: "Boolean" } + }, + publicNetworkAccess: { + serializedName: "properties.publicNetworkAccess", + type: { + name: "String" + } + }, + dataAccessAuthMode: { + serializedName: "properties.dataAccessAuthMode", + type: { + name: "String" + } + }, + supportedCapabilities: { + serializedName: "properties.supportedCapabilities", + type: { + name: "Composite", + className: "SupportedCapabilities" + } } } } }; -export const DiskEncryptionSetList: coreClient.CompositeMapper = { +export const SnapshotList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DiskEncryptionSetList", + className: "SnapshotList", modelProperties: { value: { serializedName: "value", @@ -7930,7 +7892,7 @@ export const DiskEncryptionSetList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "DiskEncryptionSet" + className: "Snapshot" } } } @@ -7945,10 +7907,10 @@ export const DiskEncryptionSetList: coreClient.CompositeMapper = { } }; -export const ResourceUriList: coreClient.CompositeMapper = { +export const ResourceSkusResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ResourceUriList", + className: "ResourceSkusResult", modelProperties: { value: { serializedName: "value", @@ -7957,7 +7919,8 @@ export const ResourceUriList: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "ResourceSku" } } } @@ -7972,13 +7935,13 @@ export const ResourceUriList: coreClient.CompositeMapper = { } }; -export const PrivateEndpointConnection: coreClient.CompositeMapper = { +export const ResourceSku: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrivateEndpointConnection", + className: "ResourceSku", modelProperties: { - id: { - serializedName: "id", + resourceType: { + serializedName: "resourceType", readOnly: true, type: { name: "String" @@ -7991,138 +7954,113 @@ export const PrivateEndpointConnection: coreClient.CompositeMapper = { name: "String" } }, - type: { - serializedName: "type", + tier: { + serializedName: "tier", readOnly: true, type: { name: "String" } }, - privateEndpoint: { - serializedName: "properties.privateEndpoint", + size: { + serializedName: "size", + readOnly: true, type: { - name: "Composite", - className: "PrivateEndpoint" + name: "String" } }, - privateLinkServiceConnectionState: { - serializedName: "properties.privateLinkServiceConnectionState", + family: { + serializedName: "family", + readOnly: true, type: { - name: "Composite", - className: "PrivateLinkServiceConnectionState" + name: "String" } }, - provisioningState: { - serializedName: "properties.provisioningState", + kind: { + serializedName: "kind", readOnly: true, type: { name: "String" } - } - } - } -}; - -export const PrivateEndpoint: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PrivateEndpoint", - modelProperties: { - id: { - serializedName: "id", - readOnly: true, + }, + capacity: { + serializedName: "capacity", type: { - name: "String" + name: "Composite", + className: "ResourceSkuCapacity" } - } - } - } -}; - -export const PrivateLinkServiceConnectionState: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PrivateLinkServiceConnectionState", - modelProperties: { - status: { - serializedName: "status", + }, + locations: { + serializedName: "locations", + readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - description: { - serializedName: "description", + locationInfo: { + serializedName: "locationInfo", + readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ResourceSkuLocationInfo" + } + } } }, - actionsRequired: { - serializedName: "actionsRequired", + apiVersions: { + serializedName: "apiVersions", + readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } - } - } - } -}; - -export const DiskAccessUpdate: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DiskAccessUpdate", - modelProperties: { - tags: { - serializedName: "tags", + }, + costs: { + serializedName: "costs", + readOnly: true, type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ResourceSkuCosts" + } + } } - } - } - } -}; - -export const DiskAccessList: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DiskAccessList", - modelProperties: { - value: { - serializedName: "value", - required: true, + }, + capabilities: { + serializedName: "capabilities", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "DiskAccess" + className: "ResourceSkuCapabilities" } } } }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const PrivateLinkResourceListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PrivateLinkResourceListResult", - modelProperties: { - value: { - serializedName: "value", + restrictions: { + serializedName: "restrictions", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "PrivateLinkResource" + className: "ResourceSkuRestrictions" } } } @@ -8131,41 +8069,58 @@ export const PrivateLinkResourceListResult: coreClient.CompositeMapper = { } }; -export const PrivateLinkResource: coreClient.CompositeMapper = { +export const ResourceSkuCapacity: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrivateLinkResource", + className: "ResourceSkuCapacity", modelProperties: { - id: { - serializedName: "id", + minimum: { + serializedName: "minimum", readOnly: true, type: { - name: "String" + name: "Number" } }, - name: { - serializedName: "name", + maximum: { + serializedName: "maximum", readOnly: true, type: { - name: "String" + name: "Number" } }, - type: { - serializedName: "type", + default: { + serializedName: "default", readOnly: true, type: { - name: "String" + name: "Number" } }, - groupId: { - serializedName: "properties.groupId", + scaleType: { + serializedName: "scaleType", + readOnly: true, + type: { + name: "Enum", + allowedValues: ["Automatic", "Manual", "None"] + } + } + } + } +}; + +export const ResourceSkuLocationInfo: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ResourceSkuLocationInfo", + modelProperties: { + location: { + serializedName: "location", readOnly: true, type: { name: "String" } }, - requiredMembers: { - serializedName: "properties.requiredMembers", + zones: { + serializedName: "zones", readOnly: true, type: { name: "Sequence", @@ -8176,8 +8131,22 @@ export const PrivateLinkResource: coreClient.CompositeMapper = { } } }, - requiredZoneNames: { - serializedName: "properties.requiredZoneNames", + zoneDetails: { + serializedName: "zoneDetails", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ResourceSkuZoneDetails" + } + } + } + }, + extendedLocations: { + serializedName: "extendedLocations", + readOnly: true, type: { name: "Sequence", element: { @@ -8186,30 +8155,67 @@ export const PrivateLinkResource: coreClient.CompositeMapper = { } } } + }, + type: { + serializedName: "type", + readOnly: true, + type: { + name: "String" + } } } } }; -export const PrivateEndpointConnectionListResult: coreClient.CompositeMapper = { +export const ResourceSkuZoneDetails: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrivateEndpointConnectionListResult", + className: "ResourceSkuZoneDetails", modelProperties: { - value: { - serializedName: "value", + name: { + serializedName: "name", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + capabilities: { + serializedName: "capabilities", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "PrivateEndpointConnection" + className: "ResourceSkuCapabilities" } } } + } + } + } +}; + +export const ResourceSkuCapabilities: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ResourceSkuCapabilities", + modelProperties: { + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String" + } }, - nextLink: { - serializedName: "nextLink", + value: { + serializedName: "value", + readOnly: true, type: { name: "String" } @@ -8218,58 +8224,107 @@ export const PrivateEndpointConnectionListResult: coreClient.CompositeMapper = { } }; -export const ProxyOnlyResource: coreClient.CompositeMapper = { +export const ResourceSkuCosts: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ProxyOnlyResource", + className: "ResourceSkuCosts", modelProperties: { - id: { - serializedName: "id", + meterID: { + serializedName: "meterID", readOnly: true, type: { name: "String" } }, - name: { - serializedName: "name", + quantity: { + serializedName: "quantity", readOnly: true, type: { - name: "String" + name: "Number" } }, + extendedUnit: { + serializedName: "extendedUnit", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const ResourceSkuRestrictions: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ResourceSkuRestrictions", + modelProperties: { type: { serializedName: "type", readOnly: true, type: { - name: "String" + name: "Enum", + allowedValues: ["Location", "Zone"] + } + }, + values: { + serializedName: "values", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + restrictionInfo: { + serializedName: "restrictionInfo", + type: { + name: "Composite", + className: "ResourceSkuRestrictionInfo" + } + }, + reasonCode: { + serializedName: "reasonCode", + readOnly: true, + type: { + name: "Enum", + allowedValues: ["QuotaId", "NotAvailableForSubscription"] } } } } }; -export const DiskRestorePointList: coreClient.CompositeMapper = { +export const ResourceSkuRestrictionInfo: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DiskRestorePointList", + className: "ResourceSkuRestrictionInfo", modelProperties: { - value: { - serializedName: "value", - required: true, + locations: { + serializedName: "locations", + readOnly: true, type: { name: "Sequence", element: { type: { - name: "Composite", - className: "DiskRestorePoint" + name: "String" } } } }, - nextLink: { - serializedName: "nextLink", + zones: { + serializedName: "zones", + readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } } } @@ -9010,24 +9065,45 @@ export const UserArtifactSource: coreClient.CompositeMapper = { export const UserArtifactManage: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UserArtifactManage", + className: "UserArtifactManage", + modelProperties: { + install: { + serializedName: "install", + required: true, + type: { + name: "String" + } + }, + remove: { + serializedName: "remove", + required: true, + type: { + name: "String" + } + }, + update: { + serializedName: "update", + type: { + name: "String" + } + } + } + } +}; + +export const UserArtifactSettings: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "UserArtifactSettings", modelProperties: { - install: { - serializedName: "install", - required: true, - type: { - name: "String" - } - }, - remove: { - serializedName: "remove", - required: true, + packageFileName: { + serializedName: "packageFileName", type: { name: "String" } }, - update: { - serializedName: "update", + configFileName: { + serializedName: "configFileName", type: { name: "String" } @@ -9311,6 +9387,56 @@ export const SharedGalleryImageVersionList: coreClient.CompositeMapper = { } }; +export const SharedGalleryImageVersionStorageProfile: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SharedGalleryImageVersionStorageProfile", + modelProperties: { + osDiskImage: { + serializedName: "osDiskImage", + type: { + name: "Composite", + className: "SharedGalleryOSDiskImage" + } + }, + dataDiskImages: { + serializedName: "dataDiskImages", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SharedGalleryDataDiskImage" + } + } + } + } + } + } +}; + +export const SharedGalleryDiskImage: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SharedGalleryDiskImage", + modelProperties: { + diskSizeGB: { + serializedName: "diskSizeGB", + readOnly: true, + type: { + name: "Number" + } + }, + hostCaching: { + serializedName: "hostCaching", + type: { + name: "String" + } + } + } + } +}; + export const PirCommunityGalleryResource: coreClient.CompositeMapper = { type: { name: "Composite", @@ -9347,6 +9473,62 @@ export const PirCommunityGalleryResource: coreClient.CompositeMapper = { } }; +export const CommunityGalleryImageList: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CommunityGalleryImageList", + modelProperties: { + value: { + serializedName: "value", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CommunityGalleryImage" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const CommunityGalleryImageVersionList: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CommunityGalleryImageVersionList", + modelProperties: { + value: { + serializedName: "value", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CommunityGalleryImageVersion" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + export const RoleInstance: coreClient.CompositeMapper = { type: { name: "Composite", @@ -13176,69 +13358,189 @@ export const Disk: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ShareInfoElement" + className: "ShareInfoElement" + } + } + } + }, + networkAccessPolicy: { + serializedName: "properties.networkAccessPolicy", + type: { + name: "String" + } + }, + diskAccessId: { + serializedName: "properties.diskAccessId", + type: { + name: "String" + } + }, + tier: { + serializedName: "properties.tier", + type: { + name: "String" + } + }, + burstingEnabled: { + serializedName: "properties.burstingEnabled", + type: { + name: "Boolean" + } + }, + propertyUpdatesInProgress: { + serializedName: "properties.propertyUpdatesInProgress", + type: { + name: "Composite", + className: "PropertyUpdatesInProgress" + } + }, + supportsHibernation: { + serializedName: "properties.supportsHibernation", + type: { + name: "Boolean" + } + }, + securityProfile: { + serializedName: "properties.securityProfile", + type: { + name: "Composite", + className: "DiskSecurityProfile" + } + }, + completionPercent: { + serializedName: "properties.completionPercent", + type: { + name: "Number" + } + }, + publicNetworkAccess: { + serializedName: "properties.publicNetworkAccess", + type: { + name: "String" + } + }, + dataAccessAuthMode: { + serializedName: "properties.dataAccessAuthMode", + type: { + name: "String" + } + } + } + } +}; + +export const DiskAccess: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DiskAccess", + modelProperties: { + ...Resource.type.modelProperties, + extendedLocation: { + serializedName: "extendedLocation", + type: { + name: "Composite", + className: "ExtendedLocation" + } + }, + privateEndpointConnections: { + serializedName: "properties.privateEndpointConnections", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateEndpointConnection" + } + } + } + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + type: { + name: "String" + } + }, + timeCreated: { + serializedName: "properties.timeCreated", + readOnly: true, + type: { + name: "DateTime" + } + } + } + } +}; + +export const DiskEncryptionSet: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DiskEncryptionSet", + modelProperties: { + ...Resource.type.modelProperties, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "EncryptionSetIdentity" + } + }, + encryptionType: { + serializedName: "properties.encryptionType", + type: { + name: "String" + } + }, + activeKey: { + serializedName: "properties.activeKey", + type: { + name: "Composite", + className: "KeyForDiskEncryptionSet" + } + }, + previousKeys: { + serializedName: "properties.previousKeys", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "KeyForDiskEncryptionSet" } } } }, - networkAccessPolicy: { - serializedName: "properties.networkAccessPolicy", - type: { - name: "String" - } - }, - diskAccessId: { - serializedName: "properties.diskAccessId", - type: { - name: "String" - } - }, - tier: { - serializedName: "properties.tier", + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, type: { name: "String" } }, - burstingEnabled: { - serializedName: "properties.burstingEnabled", + rotationToLatestKeyVersionEnabled: { + serializedName: "properties.rotationToLatestKeyVersionEnabled", type: { name: "Boolean" } }, - propertyUpdatesInProgress: { - serializedName: "properties.propertyUpdatesInProgress", - type: { - name: "Composite", - className: "PropertyUpdatesInProgress" - } - }, - supportsHibernation: { - serializedName: "properties.supportsHibernation", + lastKeyRotationTimestamp: { + serializedName: "properties.lastKeyRotationTimestamp", + readOnly: true, type: { - name: "Boolean" + name: "DateTime" } }, - securityProfile: { - serializedName: "properties.securityProfile", + autoKeyRotationError: { + serializedName: "properties.autoKeyRotationError", type: { name: "Composite", - className: "DiskSecurityProfile" - } - }, - completionPercent: { - serializedName: "properties.completionPercent", - type: { - name: "Number" - } - }, - publicNetworkAccess: { - serializedName: "properties.publicNetworkAccess", - type: { - name: "String" + className: "ApiError" } }, - dataAccessAuthMode: { - serializedName: "properties.dataAccessAuthMode", + federatedClientId: { + serializedName: "properties.federatedClientId", type: { name: "String" } @@ -13406,125 +13708,18 @@ export const Snapshot: coreClient.CompositeMapper = { name: "Number" } }, - dataAccessAuthMode: { - serializedName: "properties.dataAccessAuthMode", - type: { - name: "String" - } - } - } - } -}; - -export const DiskEncryptionSet: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DiskEncryptionSet", - modelProperties: { - ...Resource.type.modelProperties, - identity: { - serializedName: "identity", - type: { - name: "Composite", - className: "EncryptionSetIdentity" - } - }, - encryptionType: { - serializedName: "properties.encryptionType", - type: { - name: "String" - } - }, - activeKey: { - serializedName: "properties.activeKey", - type: { - name: "Composite", - className: "KeyForDiskEncryptionSet" - } - }, - previousKeys: { - serializedName: "properties.previousKeys", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "KeyForDiskEncryptionSet" - } - } - } - }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, - type: { - name: "String" - } - }, - rotationToLatestKeyVersionEnabled: { - serializedName: "properties.rotationToLatestKeyVersionEnabled", - type: { - name: "Boolean" - } - }, - lastKeyRotationTimestamp: { - serializedName: "properties.lastKeyRotationTimestamp", - readOnly: true, - type: { - name: "DateTime" - } - }, - autoKeyRotationError: { - serializedName: "properties.autoKeyRotationError", + copyCompletionError: { + serializedName: "properties.copyCompletionError", type: { name: "Composite", - className: "ApiError" - } - } - } - } -}; - -export const DiskAccess: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DiskAccess", - modelProperties: { - ...Resource.type.modelProperties, - extendedLocation: { - serializedName: "extendedLocation", - type: { - name: "Composite", - className: "ExtendedLocation" - } - }, - privateEndpointConnections: { - serializedName: "properties.privateEndpointConnections", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PrivateEndpointConnection" - } - } + className: "CopyCompletionError" } }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, + dataAccessAuthMode: { + serializedName: "properties.dataAccessAuthMode", type: { name: "String" } - }, - timeCreated: { - serializedName: "properties.timeCreated", - readOnly: true, - type: { - name: "DateTime" - } } } } @@ -15110,6 +15305,13 @@ export const DiskRestorePoint: coreClient.CompositeMapper = { type: { name: "String" } + }, + securityProfile: { + serializedName: "properties.securityProfile", + type: { + name: "Composite", + className: "DiskSecurityProfile" + } } } } @@ -15425,6 +15627,20 @@ export const GalleryApplicationVersionPublishingProfile: coreClient.CompositeMap className: "UserArtifactManage" } }, + settings: { + serializedName: "settings", + type: { + name: "Composite", + className: "UserArtifactSettings" + } + }, + advancedSettings: { + serializedName: "advancedSettings", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, enableHealthCheck: { serializedName: "enableHealthCheck", type: { @@ -15512,6 +15728,33 @@ export const PirSharedGalleryResource: coreClient.CompositeMapper = { } }; +export const SharedGalleryOSDiskImage: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SharedGalleryOSDiskImage", + modelProperties: { + ...SharedGalleryDiskImage.type.modelProperties + } + } +}; + +export const SharedGalleryDataDiskImage: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SharedGalleryDataDiskImage", + modelProperties: { + ...SharedGalleryDiskImage.type.modelProperties, + lun: { + serializedName: "lun", + required: true, + type: { + name: "Number" + } + } + } + } +}; + export const CommunityGallery: coreClient.CompositeMapper = { type: { name: "Composite", @@ -15593,6 +15836,24 @@ export const CommunityGalleryImage: coreClient.CompositeMapper = { name: "Composite", className: "ImagePurchasePlan" } + }, + architecture: { + serializedName: "properties.architecture", + type: { + name: "String" + } + }, + privacyStatementUri: { + serializedName: "properties.privacyStatementUri", + type: { + name: "String" + } + }, + eula: { + serializedName: "properties.eula", + type: { + name: "String" + } } } } @@ -15615,6 +15876,19 @@ export const CommunityGalleryImageVersion: coreClient.CompositeMapper = { type: { name: "DateTime" } + }, + excludeFromLatest: { + serializedName: "properties.excludeFromLatest", + type: { + name: "Boolean" + } + }, + storageProfile: { + serializedName: "properties.storageProfile", + type: { + name: "Composite", + className: "SharedGalleryImageVersionStorageProfile" + } } } } @@ -15796,6 +16070,12 @@ export const SharedGalleryImage: coreClient.CompositeMapper = { name: "Composite", className: "ImagePurchasePlan" } + }, + architecture: { + serializedName: "properties.architecture", + type: { + name: "String" + } } } } @@ -15818,6 +16098,19 @@ export const SharedGalleryImageVersion: coreClient.CompositeMapper = { type: { name: "DateTime" } + }, + excludeFromLatest: { + serializedName: "properties.excludeFromLatest", + type: { + name: "Boolean" + } + }, + storageProfile: { + serializedName: "properties.storageProfile", + type: { + name: "Composite", + className: "SharedGalleryImageVersionStorageProfile" + } } } } diff --git a/sdk/compute/arm-compute/src/models/parameters.ts b/sdk/compute/arm-compute/src/models/parameters.ts index 18b29280de29..d6c75cd1e446 100644 --- a/sdk/compute/arm-compute/src/models/parameters.ts +++ b/sdk/compute/arm-compute/src/models/parameters.ts @@ -59,13 +59,13 @@ import { Disk as DiskMapper, DiskUpdate as DiskUpdateMapper, GrantAccessData as GrantAccessDataMapper, - Snapshot as SnapshotMapper, - SnapshotUpdate as SnapshotUpdateMapper, - DiskEncryptionSet as DiskEncryptionSetMapper, - DiskEncryptionSetUpdate as DiskEncryptionSetUpdateMapper, DiskAccess as DiskAccessMapper, DiskAccessUpdate as DiskAccessUpdateMapper, PrivateEndpointConnection as PrivateEndpointConnectionMapper, + DiskEncryptionSet as DiskEncryptionSetMapper, + DiskEncryptionSetUpdate as DiskEncryptionSetUpdateMapper, + Snapshot as SnapshotMapper, + SnapshotUpdate as SnapshotUpdateMapper, Gallery as GalleryMapper, GalleryUpdate as GalleryUpdateMapper, GalleryImage as GalleryImageMapper, @@ -899,28 +899,6 @@ export const runCommand1: OperationParameter = { mapper: VirtualMachineRunCommandUpdateMapper }; -export const apiVersion1: OperationQueryParameter = { - parameterPath: "apiVersion", - mapper: { - defaultValue: "2021-07-01", - isConstant: true, - serializedName: "api-version", - type: { - name: "String" - } - } -}; - -export const includeExtendedLocations: OperationQueryParameter = { - parameterPath: ["options", "includeExtendedLocations"], - mapper: { - serializedName: "includeExtendedLocations", - type: { - name: "String" - } - } -}; - export const disk: OperationParameter = { parameterPath: "disk", mapper: DiskMapper @@ -937,10 +915,10 @@ export const diskName: OperationURLParameter = { } }; -export const apiVersion2: OperationQueryParameter = { +export const apiVersion1: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2021-12-01", + defaultValue: "2022-03-02", isConstant: true, serializedName: "api-version", type: { @@ -959,15 +937,15 @@ export const grantAccessData: OperationParameter = { mapper: GrantAccessDataMapper }; -export const snapshot: OperationParameter = { - parameterPath: "snapshot", - mapper: SnapshotMapper +export const diskAccess: OperationParameter = { + parameterPath: "diskAccess", + mapper: DiskAccessMapper }; -export const snapshotName: OperationURLParameter = { - parameterPath: "snapshotName", +export const diskAccessName: OperationURLParameter = { + parameterPath: "diskAccessName", mapper: { - serializedName: "snapshotName", + serializedName: "diskAccessName", required: true, type: { name: "String" @@ -975,9 +953,25 @@ export const snapshotName: OperationURLParameter = { } }; -export const snapshot1: OperationParameter = { - parameterPath: "snapshot", - mapper: SnapshotUpdateMapper +export const diskAccess1: OperationParameter = { + parameterPath: "diskAccess", + mapper: DiskAccessUpdateMapper +}; + +export const privateEndpointConnection: OperationParameter = { + parameterPath: "privateEndpointConnection", + mapper: PrivateEndpointConnectionMapper +}; + +export const privateEndpointConnectionName: OperationURLParameter = { + parameterPath: "privateEndpointConnectionName", + mapper: { + serializedName: "privateEndpointConnectionName", + required: true, + type: { + name: "String" + } + } }; export const diskEncryptionSet: OperationParameter = { @@ -1001,15 +995,10 @@ export const diskEncryptionSet1: OperationParameter = { mapper: DiskEncryptionSetUpdateMapper }; -export const diskAccess: OperationParameter = { - parameterPath: "diskAccess", - mapper: DiskAccessMapper -}; - -export const diskAccessName: OperationURLParameter = { - parameterPath: "diskAccessName", +export const vmRestorePointName: OperationURLParameter = { + parameterPath: "vmRestorePointName", mapper: { - serializedName: "diskAccessName", + serializedName: "vmRestorePointName", required: true, type: { name: "String" @@ -1017,20 +1006,26 @@ export const diskAccessName: OperationURLParameter = { } }; -export const diskAccess1: OperationParameter = { - parameterPath: "diskAccess", - mapper: DiskAccessUpdateMapper +export const diskRestorePointName: OperationURLParameter = { + parameterPath: "diskRestorePointName", + mapper: { + serializedName: "diskRestorePointName", + required: true, + type: { + name: "String" + } + } }; -export const privateEndpointConnection: OperationParameter = { - parameterPath: "privateEndpointConnection", - mapper: PrivateEndpointConnectionMapper +export const snapshot: OperationParameter = { + parameterPath: "snapshot", + mapper: SnapshotMapper }; -export const privateEndpointConnectionName: OperationURLParameter = { - parameterPath: "privateEndpointConnectionName", +export const snapshotName: OperationURLParameter = { + parameterPath: "snapshotName", mapper: { - serializedName: "privateEndpointConnectionName", + serializedName: "snapshotName", required: true, type: { name: "String" @@ -1038,22 +1033,27 @@ export const privateEndpointConnectionName: OperationURLParameter = { } }; -export const vmRestorePointName: OperationURLParameter = { - parameterPath: "vmRestorePointName", +export const snapshot1: OperationParameter = { + parameterPath: "snapshot", + mapper: SnapshotUpdateMapper +}; + +export const apiVersion2: OperationQueryParameter = { + parameterPath: "apiVersion", mapper: { - serializedName: "vmRestorePointName", - required: true, + defaultValue: "2021-07-01", + isConstant: true, + serializedName: "api-version", type: { name: "String" } } }; -export const diskRestorePointName: OperationURLParameter = { - parameterPath: "diskRestorePointName", +export const includeExtendedLocations: OperationQueryParameter = { + parameterPath: ["options", "includeExtendedLocations"], mapper: { - serializedName: "diskRestorePointName", - required: true, + serializedName: "includeExtendedLocations", type: { name: "String" } @@ -1079,7 +1079,7 @@ export const galleryName: OperationURLParameter = { export const apiVersion3: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2021-10-01", + defaultValue: "2022-01-03", isConstant: true, serializedName: "api-version", type: { diff --git a/sdk/compute/arm-compute/src/operations/communityGalleries.ts b/sdk/compute/arm-compute/src/operations/communityGalleries.ts index e103d18fb3ed..47d5288fa9d4 100644 --- a/sdk/compute/arm-compute/src/operations/communityGalleries.ts +++ b/sdk/compute/arm-compute/src/operations/communityGalleries.ts @@ -60,7 +60,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/compute/arm-compute/src/operations/communityGalleryImageVersions.ts b/sdk/compute/arm-compute/src/operations/communityGalleryImageVersions.ts index b62f1e1fd0e0..e02826b48f30 100644 --- a/sdk/compute/arm-compute/src/operations/communityGalleryImageVersions.ts +++ b/sdk/compute/arm-compute/src/operations/communityGalleryImageVersions.ts @@ -6,16 +6,23 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ +import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { CommunityGalleryImageVersions } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { ComputeManagementClient } from "../computeManagementClient"; import { + CommunityGalleryImageVersion, + CommunityGalleryImageVersionsListNextOptionalParams, + CommunityGalleryImageVersionsListOptionalParams, CommunityGalleryImageVersionsGetOptionalParams, - CommunityGalleryImageVersionsGetResponse + CommunityGalleryImageVersionsGetResponse, + CommunityGalleryImageVersionsListResponse, + CommunityGalleryImageVersionsListNextResponse } from "../models"; +/// /** Class containing CommunityGalleryImageVersions operations. */ export class CommunityGalleryImageVersionsImpl implements CommunityGalleryImageVersions { @@ -29,6 +36,86 @@ export class CommunityGalleryImageVersionsImpl this.client = client; } + /** + * List community gallery image versions inside an 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 options parameters. + */ + public list( + location: string, + publicGalleryName: string, + galleryImageName: string, + options?: CommunityGalleryImageVersionsListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll( + location, + publicGalleryName, + galleryImageName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listPagingPage( + location, + publicGalleryName, + galleryImageName, + options + ); + } + }; + } + + private async *listPagingPage( + location: string, + publicGalleryName: string, + galleryImageName: string, + options?: CommunityGalleryImageVersionsListOptionalParams + ): AsyncIterableIterator { + let result = await this._list( + location, + publicGalleryName, + galleryImageName, + options + ); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listNext( + location, + publicGalleryName, + galleryImageName, + continuationToken, + options + ); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listPagingAll( + location: string, + publicGalleryName: string, + galleryImageName: string, + options?: CommunityGalleryImageVersionsListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + location, + publicGalleryName, + galleryImageName, + options + )) { + yield* page; + } + } + /** * Get a community gallery image version. * @param location Resource location. @@ -57,6 +144,46 @@ export class CommunityGalleryImageVersionsImpl getOperationSpec ); } + + /** + * List community gallery image versions inside an 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 options parameters. + */ + private _list( + location: string, + publicGalleryName: string, + galleryImageName: string, + options?: CommunityGalleryImageVersionsListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { location, publicGalleryName, galleryImageName, options }, + listOperationSpec + ); + } + + /** + * ListNext + * @param location Resource location. + * @param publicGalleryName The public name of the community gallery. + * @param galleryImageName The name of the community gallery image definition. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + location: string, + publicGalleryName: string, + galleryImageName: string, + nextLink: string, + options?: CommunityGalleryImageVersionsListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { location, publicGalleryName, galleryImageName, nextLink, options }, + listNextOperationSpec + ); + } } // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); @@ -73,7 +200,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -85,3 +212,49 @@ const getOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer }; +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/communityGalleries/{publicGalleryName}/images/{galleryImageName}/versions", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.CommunityGalleryImageVersionList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion3], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.location1, + Parameters.galleryImageName, + Parameters.publicGalleryName + ], + headerParameters: [Parameters.accept], + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.CommunityGalleryImageVersionList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion3], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.location1, + Parameters.galleryImageName, + Parameters.publicGalleryName + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/compute/arm-compute/src/operations/communityGalleryImages.ts b/sdk/compute/arm-compute/src/operations/communityGalleryImages.ts index d338a1affe70..e19e6909f82d 100644 --- a/sdk/compute/arm-compute/src/operations/communityGalleryImages.ts +++ b/sdk/compute/arm-compute/src/operations/communityGalleryImages.ts @@ -6,16 +6,23 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ +import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { CommunityGalleryImages } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { ComputeManagementClient } from "../computeManagementClient"; import { + CommunityGalleryImage, + CommunityGalleryImagesListNextOptionalParams, + CommunityGalleryImagesListOptionalParams, CommunityGalleryImagesGetOptionalParams, - CommunityGalleryImagesGetResponse + CommunityGalleryImagesGetResponse, + CommunityGalleryImagesListResponse, + CommunityGalleryImagesListNextResponse } from "../models"; +/// /** Class containing CommunityGalleryImages operations. */ export class CommunityGalleryImagesImpl implements CommunityGalleryImages { private readonly client: ComputeManagementClient; @@ -28,6 +35,65 @@ export class CommunityGalleryImagesImpl implements CommunityGalleryImages { this.client = client; } + /** + * List community gallery images inside a gallery. + * @param location Resource location. + * @param publicGalleryName The public name of the community gallery. + * @param options The options parameters. + */ + public list( + location: string, + publicGalleryName: string, + options?: CommunityGalleryImagesListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(location, publicGalleryName, options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listPagingPage(location, publicGalleryName, options); + } + }; + } + + private async *listPagingPage( + location: string, + publicGalleryName: string, + options?: CommunityGalleryImagesListOptionalParams + ): AsyncIterableIterator { + let result = await this._list(location, publicGalleryName, options); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listNext( + location, + publicGalleryName, + continuationToken, + options + ); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listPagingAll( + location: string, + publicGalleryName: string, + options?: CommunityGalleryImagesListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + location, + publicGalleryName, + options + )) { + yield* page; + } + } + /** * Get a community gallery image. * @param location Resource location. @@ -46,6 +112,42 @@ export class CommunityGalleryImagesImpl implements CommunityGalleryImages { getOperationSpec ); } + + /** + * List community gallery images inside a gallery. + * @param location Resource location. + * @param publicGalleryName The public name of the community gallery. + * @param options The options parameters. + */ + private _list( + location: string, + publicGalleryName: string, + options?: CommunityGalleryImagesListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { location, publicGalleryName, options }, + listOperationSpec + ); + } + + /** + * ListNext + * @param location Resource location. + * @param publicGalleryName The public name of the community gallery. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + location: string, + publicGalleryName: string, + nextLink: string, + options?: CommunityGalleryImagesListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { location, publicGalleryName, nextLink, options }, + listNextOperationSpec + ); + } } // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); @@ -62,7 +164,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -73,3 +175,47 @@ const getOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer }; +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/communityGalleries/{publicGalleryName}/images", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.CommunityGalleryImageList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion3], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.location1, + Parameters.publicGalleryName + ], + headerParameters: [Parameters.accept], + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.CommunityGalleryImageList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion3], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.location1, + Parameters.publicGalleryName + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/compute/arm-compute/src/operations/diskAccesses.ts b/sdk/compute/arm-compute/src/operations/diskAccesses.ts index a4c796521e85..31f43351a52c 100644 --- a/sdk/compute/arm-compute/src/operations/diskAccesses.ts +++ b/sdk/compute/arm-compute/src/operations/diskAccesses.ts @@ -899,7 +899,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { } }, requestBody: Parameters.diskAccess, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -932,7 +932,7 @@ const updateOperationSpec: coreClient.OperationSpec = { } }, requestBody: Parameters.diskAccess1, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -955,7 +955,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -978,7 +978,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -1000,7 +1000,7 @@ const listByResourceGroupOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -1021,7 +1021,7 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion1], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], serializer @@ -1035,7 +1035,7 @@ const getPrivateLinkResourcesOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.PrivateLinkResourceListResult } }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -1067,7 +1067,7 @@ const updateAPrivateEndpointConnectionOperationSpec: coreClient.OperationSpec = } }, requestBody: Parameters.privateEndpointConnection, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -1091,7 +1091,7 @@ const getAPrivateEndpointConnectionOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -1115,7 +1115,7 @@ const deleteAPrivateEndpointConnectionOperationSpec: coreClient.OperationSpec = bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -1138,7 +1138,7 @@ const listPrivateEndpointConnectionsOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -1159,7 +1159,7 @@ const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -1180,7 +1180,7 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -1200,7 +1200,7 @@ const listPrivateEndpointConnectionsNextOperationSpec: coreClient.OperationSpec bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/compute/arm-compute/src/operations/diskEncryptionSets.ts b/sdk/compute/arm-compute/src/operations/diskEncryptionSets.ts index 1be8d4bf9538..03dcd61f6673 100644 --- a/sdk/compute/arm-compute/src/operations/diskEncryptionSets.ts +++ b/sdk/compute/arm-compute/src/operations/diskEncryptionSets.ts @@ -643,7 +643,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { } }, requestBody: Parameters.diskEncryptionSet, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -676,7 +676,7 @@ const updateOperationSpec: coreClient.OperationSpec = { } }, requestBody: Parameters.diskEncryptionSet1, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -699,7 +699,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -722,7 +722,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -744,7 +744,7 @@ const listByResourceGroupOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -765,7 +765,7 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion1], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], serializer @@ -782,7 +782,7 @@ const listAssociatedResourcesOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -803,7 +803,7 @@ const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -824,7 +824,7 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -844,7 +844,7 @@ const listAssociatedResourcesNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/compute/arm-compute/src/operations/diskRestorePointOperations.ts b/sdk/compute/arm-compute/src/operations/diskRestorePointOperations.ts index 5dd743bea7fa..2fa018947006 100644 --- a/sdk/compute/arm-compute/src/operations/diskRestorePointOperations.ts +++ b/sdk/compute/arm-compute/src/operations/diskRestorePointOperations.ts @@ -432,7 +432,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -456,7 +456,7 @@ const listByRestorePointOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -489,7 +489,7 @@ const grantAccessOperationSpec: coreClient.OperationSpec = { } }, requestBody: Parameters.grantAccessData, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -515,7 +515,7 @@ const revokeAccessOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -538,7 +538,7 @@ const listByRestorePointNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/compute/arm-compute/src/operations/disks.ts b/sdk/compute/arm-compute/src/operations/disks.ts index 3f61e01337ca..c3cfb80b97ad 100644 --- a/sdk/compute/arm-compute/src/operations/disks.ts +++ b/sdk/compute/arm-compute/src/operations/disks.ts @@ -697,7 +697,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { } }, requestBody: Parameters.disk, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -727,7 +727,7 @@ const updateOperationSpec: coreClient.OperationSpec = { } }, requestBody: Parameters.disk1, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -747,7 +747,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.Disk } }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -762,7 +762,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks/{diskName}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -780,7 +780,7 @@ const listByResourceGroupOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.DiskList } }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -797,7 +797,7 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.DiskList } }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion1], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], serializer @@ -821,7 +821,7 @@ const grantAccessOperationSpec: coreClient.OperationSpec = { } }, requestBody: Parameters.grantAccessData, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -837,7 +837,7 @@ const revokeAccessOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks/{diskName}/endGetAccess", httpMethod: "POST", responses: { 200: {}, 201: {}, 202: {}, 204: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -854,7 +854,7 @@ const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.DiskList } }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -872,7 +872,7 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.DiskList } }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/compute/arm-compute/src/operations/index.ts b/sdk/compute/arm-compute/src/operations/index.ts index 0efbb818035e..502684dc464f 100644 --- a/sdk/compute/arm-compute/src/operations/index.ts +++ b/sdk/compute/arm-compute/src/operations/index.ts @@ -32,12 +32,12 @@ export * from "./capacityReservations"; export * from "./logAnalytics"; export * from "./virtualMachineRunCommands"; export * from "./virtualMachineScaleSetVMRunCommands"; -export * from "./resourceSkus"; export * from "./disks"; -export * from "./snapshots"; -export * from "./diskEncryptionSets"; export * from "./diskAccesses"; +export * from "./diskEncryptionSets"; export * from "./diskRestorePointOperations"; +export * from "./snapshots"; +export * from "./resourceSkus"; export * from "./galleries"; export * from "./galleryImages"; export * from "./galleryImageVersions"; diff --git a/sdk/compute/arm-compute/src/operations/resourceSkus.ts b/sdk/compute/arm-compute/src/operations/resourceSkus.ts index 1ca1a581742e..a039e650b6c2 100644 --- a/sdk/compute/arm-compute/src/operations/resourceSkus.ts +++ b/sdk/compute/arm-compute/src/operations/resourceSkus.ts @@ -113,7 +113,7 @@ const listOperationSpec: coreClient.OperationSpec = { }, queryParameters: [ Parameters.filter, - Parameters.apiVersion1, + Parameters.apiVersion2, Parameters.includeExtendedLocations ], urlParameters: [Parameters.$host, Parameters.subscriptionId], @@ -130,7 +130,7 @@ const listNextOperationSpec: coreClient.OperationSpec = { }, queryParameters: [ Parameters.filter, - Parameters.apiVersion1, + Parameters.apiVersion2, Parameters.includeExtendedLocations ], urlParameters: [ diff --git a/sdk/compute/arm-compute/src/operations/sharedGalleries.ts b/sdk/compute/arm-compute/src/operations/sharedGalleries.ts index cfe44b296ca6..f5abdd93c621 100644 --- a/sdk/compute/arm-compute/src/operations/sharedGalleries.ts +++ b/sdk/compute/arm-compute/src/operations/sharedGalleries.ts @@ -145,7 +145,7 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion1, Parameters.sharedTo], + queryParameters: [Parameters.apiVersion3, Parameters.sharedTo], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -166,7 +166,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -187,7 +187,7 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion1, Parameters.sharedTo], + queryParameters: [Parameters.apiVersion3, Parameters.sharedTo], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/compute/arm-compute/src/operations/sharedGalleryImageVersions.ts b/sdk/compute/arm-compute/src/operations/sharedGalleryImageVersions.ts index 3094b69922cb..c7dbaca5dbdd 100644 --- a/sdk/compute/arm-compute/src/operations/sharedGalleryImageVersions.ts +++ b/sdk/compute/arm-compute/src/operations/sharedGalleryImageVersions.ts @@ -204,7 +204,7 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion1, Parameters.sharedTo], + queryParameters: [Parameters.apiVersion3, Parameters.sharedTo], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -227,7 +227,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -250,7 +250,7 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion1, Parameters.sharedTo], + queryParameters: [Parameters.apiVersion3, Parameters.sharedTo], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/compute/arm-compute/src/operations/sharedGalleryImages.ts b/sdk/compute/arm-compute/src/operations/sharedGalleryImages.ts index 866f2a8c6aef..f7b0d7bb59df 100644 --- a/sdk/compute/arm-compute/src/operations/sharedGalleryImages.ts +++ b/sdk/compute/arm-compute/src/operations/sharedGalleryImages.ts @@ -165,7 +165,7 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion1, Parameters.sharedTo], + queryParameters: [Parameters.apiVersion3, Parameters.sharedTo], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -187,7 +187,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -209,7 +209,7 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion1, Parameters.sharedTo], + queryParameters: [Parameters.apiVersion3, Parameters.sharedTo], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/compute/arm-compute/src/operations/snapshots.ts b/sdk/compute/arm-compute/src/operations/snapshots.ts index 2e0f29b754d5..4d0aa75b50e1 100644 --- a/sdk/compute/arm-compute/src/operations/snapshots.ts +++ b/sdk/compute/arm-compute/src/operations/snapshots.ts @@ -706,7 +706,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { } }, requestBody: Parameters.snapshot, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -736,7 +736,7 @@ const updateOperationSpec: coreClient.OperationSpec = { } }, requestBody: Parameters.snapshot1, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -756,7 +756,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.Snapshot } }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -771,7 +771,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots/{snapshotName}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -789,7 +789,7 @@ const listByResourceGroupOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.SnapshotList } }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -806,7 +806,7 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.SnapshotList } }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion1], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], serializer @@ -830,7 +830,7 @@ const grantAccessOperationSpec: coreClient.OperationSpec = { } }, requestBody: Parameters.grantAccessData, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -846,7 +846,7 @@ const revokeAccessOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots/{snapshotName}/endGetAccess", httpMethod: "POST", responses: { 200: {}, 201: {}, 202: {}, 204: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -863,7 +863,7 @@ const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.SnapshotList } }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -881,7 +881,7 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.SnapshotList } }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/compute/arm-compute/src/operations/virtualMachineImages.ts b/sdk/compute/arm-compute/src/operations/virtualMachineImages.ts index b48b713cfc39..b45de23a25ba 100644 --- a/sdk/compute/arm-compute/src/operations/virtualMachineImages.ts +++ b/sdk/compute/arm-compute/src/operations/virtualMachineImages.ts @@ -21,7 +21,9 @@ import { VirtualMachineImagesListPublishersOptionalParams, VirtualMachineImagesListPublishersResponse, VirtualMachineImagesListSkusOptionalParams, - VirtualMachineImagesListSkusResponse + VirtualMachineImagesListSkusResponse, + VirtualMachineImagesListByEdgeZoneOptionalParams, + VirtualMachineImagesListByEdgeZoneResponse } from "../models"; /** Class containing VirtualMachineImages operations. */ @@ -131,6 +133,23 @@ export class VirtualMachineImagesImpl implements VirtualMachineImages { listSkusOperationSpec ); } + + /** + * Gets a list of all virtual machine image versions for the specified edge zone + * @param location The name of a supported Azure region. + * @param edgeZone The name of the edge zone. + * @param options The options parameters. + */ + listByEdgeZone( + location: string, + edgeZone: string, + options?: VirtualMachineImagesListByEdgeZoneOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { location, edgeZone, options }, + listByEdgeZoneOperationSpec + ); + } } // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); @@ -295,3 +314,25 @@ const listSkusOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer }; +const listByEdgeZoneOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/edgeZones/{edgeZone}/vmimages", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.VmImagesInEdgeZoneListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.location1, + Parameters.edgeZone + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/communityGalleryImageVersions.ts b/sdk/compute/arm-compute/src/operationsInterfaces/communityGalleryImageVersions.ts index 4a9f9ed88f2d..53851504708c 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/communityGalleryImageVersions.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/communityGalleryImageVersions.ts @@ -6,13 +6,30 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ +import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { + CommunityGalleryImageVersion, + CommunityGalleryImageVersionsListOptionalParams, CommunityGalleryImageVersionsGetOptionalParams, CommunityGalleryImageVersionsGetResponse } from "../models"; +/// /** Interface representing a CommunityGalleryImageVersions. */ export interface CommunityGalleryImageVersions { + /** + * List community gallery image versions inside an 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 options parameters. + */ + list( + location: string, + publicGalleryName: string, + galleryImageName: string, + options?: CommunityGalleryImageVersionsListOptionalParams + ): PagedAsyncIterableIterator; /** * Get a community gallery image version. * @param location Resource location. diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/communityGalleryImages.ts b/sdk/compute/arm-compute/src/operationsInterfaces/communityGalleryImages.ts index 282d3af41a5d..7d3f7811531e 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/communityGalleryImages.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/communityGalleryImages.ts @@ -6,13 +6,28 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ +import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { + CommunityGalleryImage, + CommunityGalleryImagesListOptionalParams, CommunityGalleryImagesGetOptionalParams, CommunityGalleryImagesGetResponse } from "../models"; +/// /** Interface representing a CommunityGalleryImages. */ export interface CommunityGalleryImages { + /** + * List community gallery images inside a gallery. + * @param location Resource location. + * @param publicGalleryName The public name of the community gallery. + * @param options The options parameters. + */ + list( + location: string, + publicGalleryName: string, + options?: CommunityGalleryImagesListOptionalParams + ): PagedAsyncIterableIterator; /** * Get a community gallery image. * @param location Resource location. diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/index.ts b/sdk/compute/arm-compute/src/operationsInterfaces/index.ts index 0efbb818035e..502684dc464f 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/index.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/index.ts @@ -32,12 +32,12 @@ export * from "./capacityReservations"; export * from "./logAnalytics"; export * from "./virtualMachineRunCommands"; export * from "./virtualMachineScaleSetVMRunCommands"; -export * from "./resourceSkus"; export * from "./disks"; -export * from "./snapshots"; -export * from "./diskEncryptionSets"; export * from "./diskAccesses"; +export * from "./diskEncryptionSets"; export * from "./diskRestorePointOperations"; +export * from "./snapshots"; +export * from "./resourceSkus"; export * from "./galleries"; export * from "./galleryImages"; export * from "./galleryImageVersions"; diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineImages.ts b/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineImages.ts index 3cac600b2dc5..698ca4c0b9a5 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineImages.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineImages.ts @@ -16,7 +16,9 @@ import { VirtualMachineImagesListPublishersOptionalParams, VirtualMachineImagesListPublishersResponse, VirtualMachineImagesListSkusOptionalParams, - VirtualMachineImagesListSkusResponse + VirtualMachineImagesListSkusResponse, + VirtualMachineImagesListByEdgeZoneOptionalParams, + VirtualMachineImagesListByEdgeZoneResponse } from "../models"; /** Interface representing a VirtualMachineImages. */ @@ -87,4 +89,15 @@ export interface VirtualMachineImages { offer: string, options?: VirtualMachineImagesListSkusOptionalParams ): Promise; + /** + * Gets a list of all virtual machine image versions for the specified edge zone + * @param location The name of a supported Azure region. + * @param edgeZone The name of the edge zone. + * @param options The options parameters. + */ + listByEdgeZone( + location: string, + edgeZone: string, + options?: VirtualMachineImagesListByEdgeZoneOptionalParams + ): Promise; } 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"