From a574b7f43c92ee1e2846a946ce719c91c141938b Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Mon, 27 Jun 2022 09:59:23 +0000 Subject: [PATCH] CodeGen from PR 19607 in Azure/azure-rest-api-specs Merge 51f278f7a1b7cf0b6c50327b10c826b425723df9 into aae39a0e5e3988b570b21d957c4db5ce2add6b19 --- sdk/compute/arm-compute/CHANGELOG.md | 85 - sdk/compute/arm-compute/_meta.json | 6 +- sdk/compute/arm-compute/package.json | 20 +- .../arm-compute/review/arm-compute.api.md | 1397 +++++++++++------ .../src/computeManagementClient.ts | 3 + sdk/compute/arm-compute/src/models/index.ts | 708 ++------- sdk/compute/arm-compute/test/sampleTest.ts | 43 + sdk/compute/arm-compute/tsconfig.json | 10 +- 8 files changed, 1096 insertions(+), 1176 deletions(-) create mode 100644 sdk/compute/arm-compute/test/sampleTest.ts diff --git a/sdk/compute/arm-compute/CHANGELOG.md b/sdk/compute/arm-compute/CHANGELOG.md index e0c4815cb045..5e7ce9808c56 100644 --- a/sdk/compute/arm-compute/CHANGELOG.md +++ b/sdk/compute/arm-compute/CHANGELOG.md @@ -4,92 +4,7 @@ **Features** - - Added Interface AvailabilitySet - - Added Interface AvailabilitySetUpdate - - Added Interface CapacityReservation - - Added Interface CapacityReservationGroup - - Added Interface CapacityReservationGroupUpdate - - Added Interface CapacityReservationInstanceViewWithName - - Added Interface CapacityReservationUpdate - - Added Interface CommunityGallery - - Added Interface CommunityGalleryImage - - Added Interface CommunityGalleryImageVersion - - Added Interface DataDiskImageEncryption - - Added Interface DedicatedHost - - Added Interface DedicatedHostGroup - - Added Interface DedicatedHostGroupUpdate - - Added Interface DedicatedHostInstanceViewWithName - - Added Interface DedicatedHostUpdate - - Added Interface Disk - - Added Interface DiskAccess - - Added Interface DiskEncryptionSet - - Added Interface DiskEncryptionSetParameters - - Added Interface DiskRestorePoint - - Added Interface Gallery - - Added Interface GalleryApplication - - Added Interface GalleryApplicationUpdate - - Added Interface GalleryApplicationVersion - - Added Interface GalleryApplicationVersionPublishingProfile - - Added Interface GalleryApplicationVersionUpdate - - Added Interface GalleryDataDiskImage - - Added Interface GalleryImage - - Added Interface GalleryImageUpdate - - Added Interface GalleryImageVersion - - Added Interface GalleryImageVersionPublishingProfile - - Added Interface GalleryImageVersionUpdate - - Added Interface GalleryOSDiskImage - - Added Interface GalleryUpdate - - Added Interface Image_2 - - Added Interface ImageDataDisk - - Added Interface ImageOSDisk - - Added Interface ImageReference - - Added Interface ImageUpdate - - Added Interface ManagedDiskParameters - - Added Interface NetworkInterfaceReference - - Added Interface OSDiskImageEncryption - - Added Interface PirSharedGalleryResource - - Added Interface ProximityPlacementGroup - - Added Interface ProximityPlacementGroupUpdate - - Added Interface RequestRateByIntervalInput - - Added Interface RestorePoint - - Added Interface RestorePointCollection - - Added Interface RestorePointCollectionUpdate - - Added Interface RollingUpgradeStatusInfo - - Added Interface RunCommandDocument - - Added Interface SharedGallery - - Added Interface SharedGalleryDataDiskImage - - Added Interface SharedGalleryImage - - Added Interface SharedGalleryImageVersion - - Added Interface SharedGalleryOSDiskImage - - Added Interface Snapshot - - Added Interface SshPublicKeyResource - - Added Interface SshPublicKeyUpdateResource - - Added Interface SubResourceWithColocationStatus - Added Interface SystemData - - Added Interface ThrottledRequestsInput - - Added Interface VirtualMachine - - Added Interface VirtualMachineCaptureResult - - Added Interface VirtualMachineExtension - - Added Interface VirtualMachineExtensionImage - - Added Interface VirtualMachineExtensionUpdate - - Added Interface VirtualMachineImage - - Added Interface VirtualMachineImageResource - - Added Interface VirtualMachineRunCommand - - Added Interface VirtualMachineRunCommandUpdate - - Added Interface VirtualMachineScaleSet - - Added Interface VirtualMachineScaleSetExtension - - Added Interface VirtualMachineScaleSetExtensionUpdate - - Added Interface VirtualMachineScaleSetIPConfiguration - - Added Interface VirtualMachineScaleSetNetworkConfiguration - - Added Interface VirtualMachineScaleSetReimageParameters - - Added Interface VirtualMachineScaleSetUpdate - - Added Interface VirtualMachineScaleSetUpdateIPConfiguration - - Added Interface VirtualMachineScaleSetUpdateNetworkConfiguration - - Added Interface VirtualMachineScaleSetVM - - Added Interface VirtualMachineScaleSetVMExtension - - Added Interface VirtualMachineScaleSetVMExtensionUpdate - - Added Interface VirtualMachineScaleSetVMReimageParameters - - Added Interface VirtualMachineUpdate - Added Type Alias CloudServiceSlotType - Interface CloudService has a new optional parameter systemData - Interface CloudServiceNetworkProfile has a new optional parameter slotType diff --git a/sdk/compute/arm-compute/_meta.json b/sdk/compute/arm-compute/_meta.json index e0d49b3045bd..8025a4618f8b 100644 --- a/sdk/compute/arm-compute/_meta.json +++ b/sdk/compute/arm-compute/_meta.json @@ -1,8 +1,8 @@ { - "commit": "fda2db441da3f1fab31bb235e97da3e33c8e3903", + "commit": "242f8534b42c04ffe80d61ff5c934600c39456f1", "readme": "specification/compute/resource-manager/readme.md", - "autorest_command": "autorest --version=3.7.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\compute\\resource-manager\\readme.md --use=@autorest/typescript@6.0.0-rc.1 --generate-sample=true", + "autorest_command": "autorest --version=3.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.2", - "use": "@autorest/typescript@6.0.0-rc.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 7c42e3ff1b33..5e9288b85145 100644 --- a/sdk/compute/arm-compute/package.json +++ b/sdk/compute/arm-compute/package.json @@ -43,11 +43,8 @@ "@azure-tools/test-recorder": "^2.0.0", "@azure-tools/test-credential": "^1.0.0", "mocha": "^7.1.1", - "@types/chai": "^4.2.8", - "chai": "^4.2.0", "cross-env": "^7.0.2", - "@azure/dev-tool": "^1.0.0", - "@azure/arm-network": "^26.0.0" + "@azure/dev-tool": "^1.0.0" }, "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/compute/arm-compute", "repository": { @@ -99,7 +96,8 @@ "unit-test:browser": "echo skipped", "integration-test": "npm run integration-test:node && npm run integration-test:browser", "integration-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/*.ts'", - "integration-test:browser": "echo skipped" + "integration-test:browser": "echo skipped", + "docs": "echo skipped" }, "sideEffects": false, "//metadata": { @@ -110,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 700a1f1cbb7e..fbc1e38886a1 100644 --- a/sdk/compute/arm-compute/review/arm-compute.api.md +++ b/sdk/compute/arm-compute/review/arm-compute.api.md @@ -90,14 +90,14 @@ export interface AutomaticRepairsPolicy { } // @public -export interface AvailabilitySet extends Resource { - platformFaultDomainCount?: number; +export type AvailabilitySet = Resource & { + sku?: Sku; platformUpdateDomainCount?: number; + platformFaultDomainCount?: number; + virtualMachines?: SubResource[]; proximityPlacementGroup?: SubResource; - sku?: Sku; readonly statuses?: InstanceViewStatus[]; - virtualMachines?: SubResource[]; -} +}; // @public export interface AvailabilitySetListResult { @@ -182,14 +182,14 @@ export interface AvailabilitySetsUpdateOptionalParams extends coreClient.Operati export type AvailabilitySetsUpdateResponse = AvailabilitySet; // @public -export interface AvailabilitySetUpdate extends UpdateResource { - platformFaultDomainCount?: number; +export type AvailabilitySetUpdate = UpdateResource & { + sku?: Sku; platformUpdateDomainCount?: number; + platformFaultDomainCount?: number; + virtualMachines?: SubResource[]; proximityPlacementGroup?: SubResource; - sku?: Sku; readonly statuses?: InstanceViewStatus[]; - virtualMachines?: SubResource[]; -} +}; // @public export interface AvailablePatchSummary { @@ -225,24 +225,24 @@ export interface BootDiagnosticsInstanceView { export type CachingTypes = "None" | "ReadOnly" | "ReadWrite"; // @public -export interface CapacityReservation extends Resource { - readonly instanceView?: CapacityReservationInstanceView; - readonly provisioningState?: string; - readonly provisioningTime?: Date; - readonly reservationId?: string; +export type CapacityReservation = Resource & { sku: Sku; - readonly timeCreated?: Date; - readonly virtualMachinesAssociated?: SubResourceReadOnly[]; zones?: string[]; -} + readonly reservationId?: string; + readonly virtualMachinesAssociated?: SubResourceReadOnly[]; + readonly provisioningTime?: Date; + readonly provisioningState?: string; + readonly instanceView?: CapacityReservationInstanceView; + readonly timeCreated?: Date; +}; // @public -export interface CapacityReservationGroup extends Resource { +export type CapacityReservationGroup = Resource & { + zones?: string[]; readonly capacityReservations?: SubResourceReadOnly[]; - readonly instanceView?: CapacityReservationGroupInstanceView; readonly virtualMachinesAssociated?: SubResourceReadOnly[]; - zones?: string[]; -} + readonly instanceView?: CapacityReservationGroupInstanceView; +}; // @public (undocumented) export interface CapacityReservationGroupInstanceView { @@ -327,11 +327,11 @@ export interface CapacityReservationGroupsUpdateOptionalParams extends coreClien export type CapacityReservationGroupsUpdateResponse = CapacityReservationGroup; // @public -export interface CapacityReservationGroupUpdate extends UpdateResource { +export type CapacityReservationGroupUpdate = UpdateResource & { readonly capacityReservations?: SubResourceReadOnly[]; - readonly instanceView?: CapacityReservationGroupInstanceView; readonly virtualMachinesAssociated?: SubResourceReadOnly[]; -} + readonly instanceView?: CapacityReservationGroupInstanceView; +}; // @public export interface CapacityReservationInstanceView { @@ -343,9 +343,9 @@ export interface CapacityReservationInstanceView { export type CapacityReservationInstanceViewTypes = string; // @public -export interface CapacityReservationInstanceViewWithName extends CapacityReservationInstanceView { +export type CapacityReservationInstanceViewWithName = CapacityReservationInstanceView & { readonly name?: string; -} +}; // @public export interface CapacityReservationListResult { @@ -417,15 +417,15 @@ export interface CapacityReservationsUpdateOptionalParams extends coreClient.Ope export type CapacityReservationsUpdateResponse = CapacityReservation; // @public -export interface CapacityReservationUpdate extends UpdateResource { - readonly instanceView?: CapacityReservationInstanceView; - readonly provisioningState?: string; - readonly provisioningTime?: Date; - readonly reservationId?: string; +export type CapacityReservationUpdate = UpdateResource & { sku?: Sku; - readonly timeCreated?: Date; + readonly reservationId?: string; readonly virtualMachinesAssociated?: SubResourceReadOnly[]; -} + readonly provisioningTime?: Date; + readonly provisioningState?: string; + readonly instanceView?: CapacityReservationInstanceView; + readonly timeCreated?: Date; +}; // @public export interface CapacityReservationUtilization { @@ -921,24 +921,23 @@ export interface CommunityGalleriesGetOptionalParams extends coreClient.Operatio export type CommunityGalleriesGetResponse = CommunityGallery; // @public -export interface CommunityGallery extends PirCommunityGalleryResource { -} +export type CommunityGallery = PirCommunityGalleryResource & {}; // @public -export interface CommunityGalleryImage extends PirCommunityGalleryResource { - architecture?: Architecture; - disallowed?: Disallowed; +export type CommunityGalleryImage = PirCommunityGalleryResource & { + osType?: OperatingSystemTypes; + osState?: OperatingSystemStateTypes; endOfLifeDate?: Date; - eula?: string; - features?: GalleryImageFeature[]; - hyperVGeneration?: HyperVGeneration; identifier?: GalleryImageIdentifier; - osState?: OperatingSystemStateTypes; - osType?: OperatingSystemTypes; - privacyStatementUri?: string; - purchasePlan?: ImagePurchasePlan; recommended?: RecommendedMachineConfiguration; -} + disallowed?: Disallowed; + hyperVGeneration?: HyperVGeneration; + features?: GalleryImageFeature[]; + purchasePlan?: ImagePurchasePlan; + architecture?: Architecture; + privacyStatementUri?: string; + eula?: string; +}; // @public export interface CommunityGalleryImageList { @@ -974,12 +973,12 @@ export interface CommunityGalleryImagesListOptionalParams extends coreClient.Ope export type CommunityGalleryImagesListResponse = CommunityGalleryImageList; // @public -export interface CommunityGalleryImageVersion extends PirCommunityGalleryResource { +export type CommunityGalleryImageVersion = PirCommunityGalleryResource & { + publishedDate?: Date; endOfLifeDate?: Date; excludeFromLatest?: boolean; - publishedDate?: Date; storageProfile?: SharedGalleryImageVersionStorageProfile; -} +}; // @public export interface CommunityGalleryImageVersionList { @@ -1208,23 +1207,23 @@ export interface DataDiskImage { } // @public -export interface DataDiskImageEncryption extends DiskImageEncryption { +export type DataDiskImageEncryption = DiskImageEncryption & { lun: number; -} +}; // @public -export interface DedicatedHost extends Resource { +export type DedicatedHost = Resource & { + sku: Sku; + platformFaultDomain?: number; autoReplaceOnFailure?: boolean; readonly hostId?: string; - readonly instanceView?: DedicatedHostInstanceView; + readonly virtualMachines?: SubResourceReadOnly[]; licenseType?: DedicatedHostLicenseTypes; - platformFaultDomain?: number; - readonly provisioningState?: string; readonly provisioningTime?: Date; - sku: Sku; + readonly provisioningState?: string; + readonly instanceView?: DedicatedHostInstanceView; readonly timeCreated?: Date; - readonly virtualMachines?: SubResourceReadOnly[]; -} +}; // @public export interface DedicatedHostAllocatableVM { @@ -1238,14 +1237,14 @@ export interface DedicatedHostAvailableCapacity { } // @public -export interface DedicatedHostGroup extends Resource { - additionalCapabilities?: DedicatedHostGroupPropertiesAdditionalCapabilities; +export type DedicatedHostGroup = Resource & { + zones?: string[]; + platformFaultDomainCount?: number; readonly hosts?: SubResourceReadOnly[]; readonly instanceView?: DedicatedHostGroupInstanceView; - platformFaultDomainCount?: number; supportAutomaticPlacement?: boolean; - zones?: string[]; -} + additionalCapabilities?: DedicatedHostGroupPropertiesAdditionalCapabilities; +}; // @public (undocumented) export interface DedicatedHostGroupInstanceView { @@ -1328,14 +1327,14 @@ export interface DedicatedHostGroupsUpdateOptionalParams extends coreClient.Oper export type DedicatedHostGroupsUpdateResponse = DedicatedHostGroup; // @public -export interface DedicatedHostGroupUpdate extends UpdateResource { - additionalCapabilities?: DedicatedHostGroupPropertiesAdditionalCapabilities; +export type DedicatedHostGroupUpdate = UpdateResource & { + zones?: string[]; + platformFaultDomainCount?: number; readonly hosts?: SubResourceReadOnly[]; readonly instanceView?: DedicatedHostGroupInstanceView; - platformFaultDomainCount?: number; supportAutomaticPlacement?: boolean; - zones?: string[]; -} + additionalCapabilities?: DedicatedHostGroupPropertiesAdditionalCapabilities; +}; // @public export interface DedicatedHostInstanceView { @@ -1345,9 +1344,9 @@ export interface DedicatedHostInstanceView { } // @public -export interface DedicatedHostInstanceViewWithName extends DedicatedHostInstanceView { +export type DedicatedHostInstanceViewWithName = DedicatedHostInstanceView & { readonly name?: string; -} +}; // @public export type DedicatedHostLicenseTypes = "None" | "Windows_Server_Hybrid" | "Windows_Server_Perpetual"; @@ -1425,17 +1424,17 @@ export interface DedicatedHostsUpdateOptionalParams extends coreClient.Operation export type DedicatedHostsUpdateResponse = DedicatedHost; // @public -export interface DedicatedHostUpdate extends UpdateResource { +export type DedicatedHostUpdate = UpdateResource & { + platformFaultDomain?: number; autoReplaceOnFailure?: boolean; readonly hostId?: string; - readonly instanceView?: DedicatedHostInstanceView; + readonly virtualMachines?: SubResourceReadOnly[]; licenseType?: DedicatedHostLicenseTypes; - platformFaultDomain?: number; - readonly provisioningState?: string; readonly provisioningTime?: Date; + readonly provisioningState?: string; + readonly instanceView?: DedicatedHostInstanceView; readonly timeCreated?: Date; - readonly virtualMachines?: SubResourceReadOnly[]; -} +}; // @public export type DeleteOptions = string; @@ -1468,50 +1467,50 @@ export interface DisallowedConfiguration { } // @public -export interface Disk extends Resource { - burstingEnabled?: boolean; - completionPercent?: number; +export type Disk = Resource & { + readonly managedBy?: string; + readonly managedByExtended?: string[]; + sku?: DiskSku; + zones?: string[]; + extendedLocation?: ExtendedLocation; + readonly timeCreated?: Date; + osType?: OperatingSystemTypes; + hyperVGeneration?: HyperVGeneration; + purchasePlan?: PurchasePlanAutoGenerated; + supportedCapabilities?: SupportedCapabilities; creationData?: CreationData; - dataAccessAuthMode?: DataAccessAuthMode; - diskAccessId?: string; - diskIopsReadOnly?: number; + diskSizeGB?: number; + readonly diskSizeBytes?: number; + readonly uniqueId?: string; + encryptionSettingsCollection?: EncryptionSettingsCollection; + readonly provisioningState?: string; diskIopsReadWrite?: number; - diskMBpsReadOnly?: number; diskMBpsReadWrite?: number; - readonly diskSizeBytes?: number; - diskSizeGB?: number; + diskIopsReadOnly?: number; + diskMBpsReadOnly?: number; readonly diskState?: DiskState; encryption?: Encryption; - encryptionSettingsCollection?: EncryptionSettingsCollection; - extendedLocation?: ExtendedLocation; - hyperVGeneration?: HyperVGeneration; - readonly managedBy?: string; - readonly managedByExtended?: string[]; maxShares?: number; + readonly shareInfo?: ShareInfoElement[]; networkAccessPolicy?: NetworkAccessPolicy; - osType?: OperatingSystemTypes; + diskAccessId?: string; + tier?: string; + burstingEnabled?: boolean; readonly propertyUpdatesInProgress?: PropertyUpdatesInProgress; - readonly provisioningState?: string; - publicNetworkAccess?: PublicNetworkAccess; - purchasePlan?: PurchasePlanAutoGenerated; - securityProfile?: DiskSecurityProfile; - readonly shareInfo?: ShareInfoElement[]; - sku?: DiskSku; - supportedCapabilities?: SupportedCapabilities; supportsHibernation?: boolean; - tier?: string; - readonly timeCreated?: Date; - readonly uniqueId?: string; - zones?: string[]; -} + securityProfile?: DiskSecurityProfile; + completionPercent?: number; + publicNetworkAccess?: PublicNetworkAccess; + dataAccessAuthMode?: DataAccessAuthMode; +}; // @public -export interface DiskAccess extends Resource { +export type DiskAccess = Resource & { extendedLocation?: ExtendedLocation; readonly privateEndpointConnections?: PrivateEndpointConnection[]; readonly provisioningState?: string; readonly timeCreated?: Date; -} +}; // @public export interface DiskAccesses { @@ -1661,17 +1660,17 @@ export type DiskDeleteOptionTypes = string; export type DiskDetachOptionTypes = string; // @public -export interface DiskEncryptionSet extends Resource { - activeKey?: KeyForDiskEncryptionSet; - readonly autoKeyRotationError?: ApiError; - encryptionType?: DiskEncryptionSetType; - federatedClientId?: string; +export type DiskEncryptionSet = Resource & { identity?: EncryptionSetIdentity; - readonly lastKeyRotationTimestamp?: Date; + encryptionType?: DiskEncryptionSetType; + activeKey?: KeyForDiskEncryptionSet; readonly previousKeys?: KeyForDiskEncryptionSet[]; readonly provisioningState?: string; rotationToLatestKeyVersionEnabled?: boolean; -} + readonly lastKeyRotationTimestamp?: Date; + readonly autoKeyRotationError?: ApiError; + federatedClientId?: string; +}; // @public export type DiskEncryptionSetIdentityType = string; @@ -1683,8 +1682,7 @@ export interface DiskEncryptionSetList { } // @public -export interface DiskEncryptionSetParameters extends SubResource { -} +export type DiskEncryptionSetParameters = SubResource & {}; // @public export interface DiskEncryptionSets { @@ -1814,25 +1812,25 @@ export interface DiskList { } // @public -export interface DiskRestorePoint extends ProxyOnlyResource { - completionPercent?: number; - diskAccessId?: string; - readonly encryption?: Encryption; - readonly familyId?: string; +export type DiskRestorePoint = ProxyOnlyResource & { + readonly timeCreated?: Date; + readonly sourceResourceId?: string; + readonly osType?: OperatingSystemTypes; hyperVGeneration?: HyperVGeneration; + purchasePlan?: PurchasePlanAutoGenerated; + supportedCapabilities?: SupportedCapabilities; + readonly familyId?: string; + readonly sourceUniqueId?: string; + readonly encryption?: Encryption; + supportsHibernation?: boolean; networkAccessPolicy?: NetworkAccessPolicy; - readonly osType?: OperatingSystemTypes; publicNetworkAccess?: PublicNetworkAccess; - purchasePlan?: PurchasePlanAutoGenerated; + diskAccessId?: string; + completionPercent?: number; readonly replicationState?: string; - securityProfile?: DiskSecurityProfile; - readonly sourceResourceId?: string; readonly sourceResourceLocation?: string; - readonly sourceUniqueId?: string; - supportedCapabilities?: SupportedCapabilities; - supportsHibernation?: boolean; - readonly timeCreated?: Date; -} + securityProfile?: DiskSecurityProfile; +}; // @public export interface DiskRestorePointGetOptionalParams extends coreClient.OperationOptions { @@ -2177,24 +2175,24 @@ export interface GalleriesUpdateOptionalParams extends coreClient.OperationOptio export type GalleriesUpdateResponse = Gallery; // @public -export interface Gallery extends Resource { +export type Gallery = Resource & { description?: string; identifier?: GalleryIdentifier; readonly provisioningState?: GalleryProvisioningState; sharingProfile?: SharingProfile; - readonly sharingStatus?: SharingStatus; softDeletePolicy?: SoftDeletePolicy; -} + readonly sharingStatus?: SharingStatus; +}; // @public -export interface GalleryApplication extends Resource { +export type GalleryApplication = Resource & { description?: string; - endOfLifeDate?: Date; eula?: string; privacyStatementUri?: string; releaseNoteUri?: string; + endOfLifeDate?: Date; supportedOSType?: OperatingSystemTypes; -} +}; // @public export interface GalleryApplicationList { @@ -2260,21 +2258,21 @@ export interface GalleryApplicationsUpdateOptionalParams extends coreClient.Oper export type GalleryApplicationsUpdateResponse = GalleryApplication; // @public -export interface GalleryApplicationUpdate extends UpdateResourceDefinition { +export type GalleryApplicationUpdate = UpdateResourceDefinition & { description?: string; - endOfLifeDate?: Date; eula?: string; privacyStatementUri?: string; releaseNoteUri?: string; + endOfLifeDate?: Date; supportedOSType?: OperatingSystemTypes; -} +}; // @public -export interface GalleryApplicationVersion extends Resource { - readonly provisioningState?: GalleryProvisioningState; +export type GalleryApplicationVersion = Resource & { publishingProfile?: GalleryApplicationVersionPublishingProfile; + readonly provisioningState?: GalleryProvisioningState; readonly replicationStatus?: ReplicationStatus; -} +}; // @public export interface GalleryApplicationVersionList { @@ -2283,16 +2281,15 @@ export interface GalleryApplicationVersionList { } // @public -export interface GalleryApplicationVersionPublishingProfile extends GalleryArtifactPublishingProfileBase { +export type GalleryApplicationVersionPublishingProfile = GalleryArtifactPublishingProfileBase & { + source: UserArtifactSource; + manageActions?: UserArtifactManage; + settings?: UserArtifactSettings; advancedSettings?: { [propertyName: string]: string; }; enableHealthCheck?: boolean; - // (undocumented) - manageActions?: UserArtifactManage; - settings?: UserArtifactSettings; - source: UserArtifactSource; -} +}; // @public export interface GalleryApplicationVersions { @@ -2353,11 +2350,11 @@ export interface GalleryApplicationVersionsUpdateOptionalParams extends coreClie export type GalleryApplicationVersionsUpdateResponse = GalleryApplicationVersion; // @public -export interface GalleryApplicationVersionUpdate extends UpdateResourceDefinition { - readonly provisioningState?: GalleryProvisioningState; +export type GalleryApplicationVersionUpdate = UpdateResourceDefinition & { publishingProfile?: GalleryApplicationVersionPublishingProfile; + readonly provisioningState?: GalleryProvisioningState; readonly replicationStatus?: ReplicationStatus; -} +}; // @public export interface GalleryArtifactPublishingProfileBase { @@ -2383,9 +2380,9 @@ export interface GalleryArtifactVersionSource { } // @public -export interface GalleryDataDiskImage extends GalleryDiskImage { +export type GalleryDataDiskImage = GalleryDiskImage & { lun: number; -} +}; // @public export interface GalleryDiskImage { @@ -2413,23 +2410,23 @@ export interface GalleryIdentifier { } // @public -export interface GalleryImage extends Resource { - architecture?: Architecture; +export type GalleryImage = Resource & { description?: string; - disallowed?: Disallowed; - endOfLifeDate?: Date; eula?: string; - features?: GalleryImageFeature[]; - hyperVGeneration?: HyperVGeneration; - identifier?: GalleryImageIdentifier; - osState?: OperatingSystemStateTypes; - osType?: OperatingSystemTypes; privacyStatementUri?: string; - readonly provisioningState?: GalleryProvisioningState; - purchasePlan?: ImagePurchasePlan; - recommended?: RecommendedMachineConfiguration; releaseNoteUri?: string; -} + osType?: OperatingSystemTypes; + osState?: OperatingSystemStateTypes; + hyperVGeneration?: HyperVGeneration; + endOfLifeDate?: Date; + identifier?: GalleryImageIdentifier; + recommended?: RecommendedMachineConfiguration; + disallowed?: Disallowed; + purchasePlan?: ImagePurchasePlan; + readonly provisioningState?: GalleryProvisioningState; + features?: GalleryImageFeature[]; + architecture?: Architecture; +}; // @public export interface GalleryImageFeature { @@ -2508,31 +2505,31 @@ export interface GalleryImagesUpdateOptionalParams extends coreClient.OperationO export type GalleryImagesUpdateResponse = GalleryImage; // @public -export interface GalleryImageUpdate extends UpdateResourceDefinition { - architecture?: Architecture; +export type GalleryImageUpdate = UpdateResourceDefinition & { description?: string; - disallowed?: Disallowed; - endOfLifeDate?: Date; eula?: string; - features?: GalleryImageFeature[]; + privacyStatementUri?: string; + releaseNoteUri?: string; + osType?: OperatingSystemTypes; + osState?: OperatingSystemStateTypes; hyperVGeneration?: HyperVGeneration; + endOfLifeDate?: Date; identifier?: GalleryImageIdentifier; - osState?: OperatingSystemStateTypes; - osType?: OperatingSystemTypes; - privacyStatementUri?: string; - readonly provisioningState?: GalleryProvisioningState; - purchasePlan?: ImagePurchasePlan; recommended?: RecommendedMachineConfiguration; - releaseNoteUri?: string; -} + disallowed?: Disallowed; + purchasePlan?: ImagePurchasePlan; + readonly provisioningState?: GalleryProvisioningState; + features?: GalleryImageFeature[]; + architecture?: Architecture; +}; // @public -export interface GalleryImageVersion extends Resource { - readonly provisioningState?: GalleryProvisioningState; +export type GalleryImageVersion = Resource & { publishingProfile?: GalleryImageVersionPublishingProfile; - readonly replicationStatus?: ReplicationStatus; + readonly provisioningState?: GalleryProvisioningState; storageProfile?: GalleryImageVersionStorageProfile; -} + readonly replicationStatus?: ReplicationStatus; +}; // @public export interface GalleryImageVersionList { @@ -2541,8 +2538,7 @@ export interface GalleryImageVersionList { } // @public -export interface GalleryImageVersionPublishingProfile extends GalleryArtifactPublishingProfileBase { -} +export type GalleryImageVersionPublishingProfile = GalleryArtifactPublishingProfileBase & {}; // @public export interface GalleryImageVersions { @@ -2610,12 +2606,12 @@ export interface GalleryImageVersionsUpdateOptionalParams extends coreClient.Ope export type GalleryImageVersionsUpdateResponse = GalleryImageVersion; // @public -export interface GalleryImageVersionUpdate extends UpdateResourceDefinition { - readonly provisioningState?: GalleryProvisioningState; +export type GalleryImageVersionUpdate = UpdateResourceDefinition & { publishingProfile?: GalleryImageVersionPublishingProfile; - readonly replicationStatus?: ReplicationStatus; + readonly provisioningState?: GalleryProvisioningState; storageProfile?: GalleryImageVersionStorageProfile; -} + readonly replicationStatus?: ReplicationStatus; +}; // @public export interface GalleryList { @@ -2624,8 +2620,7 @@ export interface GalleryList { } // @public -export interface GalleryOSDiskImage extends GalleryDiskImage { -} +export type GalleryOSDiskImage = GalleryDiskImage & {}; // @public export type GalleryProvisioningState = string; @@ -2658,14 +2653,14 @@ export interface GalleryTargetExtendedLocation { } // @public -export interface GalleryUpdate extends UpdateResourceDefinition { +export type GalleryUpdate = UpdateResourceDefinition & { description?: string; identifier?: GalleryIdentifier; readonly provisioningState?: GalleryProvisioningState; sharingProfile?: SharingProfile; - readonly sharingStatus?: SharingStatus; softDeletePolicy?: SoftDeletePolicy; -} + readonly sharingStatus?: SharingStatus; +}; // @public export interface GrantAccessData { @@ -2694,19 +2689,19 @@ export type HyperVGenerationType = string; export type HyperVGenerationTypes = string; // @public -interface Image_2 extends Resource { +type Image_2 = Resource & { extendedLocation?: ExtendedLocation; - hyperVGeneration?: HyperVGenerationTypes; - readonly provisioningState?: string; sourceVirtualMachine?: SubResource; storageProfile?: ImageStorageProfile; -} + readonly provisioningState?: string; + hyperVGeneration?: HyperVGenerationTypes; +}; export { Image_2 as Image } // @public -export interface ImageDataDisk extends ImageDisk { +export type ImageDataDisk = ImageDisk & { lun: number; -} +}; // @public export interface ImageDisk { @@ -2734,10 +2729,10 @@ export interface ImageListResult { } // @public -export interface ImageOSDisk extends ImageDisk { - osState: OperatingSystemStateTypes; +export type ImageOSDisk = ImageDisk & { osType: OperatingSystemTypes; -} + osState: OperatingSystemStateTypes; +}; // @public export interface ImagePurchasePlan { @@ -2747,15 +2742,15 @@ export interface ImagePurchasePlan { } // @public -export interface ImageReference extends SubResource { - communityGalleryImageId?: string; - readonly exactVersion?: string; - offer?: string; +export type ImageReference = SubResource & { publisher?: string; - sharedGalleryImageId?: string; + offer?: string; sku?: string; version?: string; -} + readonly exactVersion?: string; + sharedGalleryImageId?: string; + communityGalleryImageId?: string; +}; // @public export interface Images { @@ -2838,12 +2833,12 @@ export interface ImagesUpdateOptionalParams extends coreClient.OperationOptions export type ImagesUpdateResponse = Image_2; // @public -export interface ImageUpdate extends UpdateResource { - hyperVGeneration?: HyperVGenerationTypes; - readonly provisioningState?: string; +export type ImageUpdate = UpdateResource & { sourceVirtualMachine?: SubResource; storageProfile?: ImageStorageProfile; -} + readonly provisioningState?: string; + hyperVGeneration?: HyperVGenerationTypes; +}; // @public export interface InnerError { @@ -2915,71 +2910,97 @@ export interface KeyVaultSecretReference { // @public export enum KnownAccessLevel { + // (undocumented) None = "None", + // (undocumented) Read = "Read", + // (undocumented) Write = "Write" } // @public export enum KnownAggregatedReplicationState { + // (undocumented) Completed = "Completed", + // (undocumented) Failed = "Failed", + // (undocumented) InProgress = "InProgress", + // (undocumented) Unknown = "Unknown" } // @public export enum KnownArchitecture { + // (undocumented) Arm64 = "Arm64", + // (undocumented) X64 = "x64" } // @public export enum KnownArchitectureTypes { + // (undocumented) Arm64 = "Arm64", + // (undocumented) X64 = "x64" } // @public export enum KnownAvailabilitySetSkuTypes { + // (undocumented) Aligned = "Aligned", + // (undocumented) Classic = "Classic" } // @public export enum KnownCapacityReservationGroupInstanceViewTypes { + // (undocumented) InstanceView = "instanceView" } // @public export enum KnownCapacityReservationInstanceViewTypes { + // (undocumented) InstanceView = "instanceView" } // @public export enum KnownCloudServiceSlotType { + // (undocumented) Production = "Production", + // (undocumented) Staging = "Staging" } // @public export enum KnownCloudServiceUpgradeMode { + // (undocumented) Auto = "Auto", + // (undocumented) Manual = "Manual", + // (undocumented) Simultaneous = "Simultaneous" } // @public export enum KnownConfidentialVMEncryptionType { + // (undocumented) EncryptedVMGuestStateOnlyWithPmk = "EncryptedVMGuestStateOnlyWithPmk", + // (undocumented) EncryptedWithCmk = "EncryptedWithCmk", + // (undocumented) EncryptedWithPmk = "EncryptedWithPmk" } // @public export enum KnownConsistencyModeTypes { + // (undocumented) ApplicationConsistent = "ApplicationConsistent", + // (undocumented) CrashConsistent = "CrashConsistent", + // (undocumented) FileSystemConsistent = "FileSystemConsistent" } @@ -2996,18 +3017,23 @@ export enum KnownDataAccessAuthMode { // @public export enum KnownDeleteOptions { + // (undocumented) Delete = "Delete", + // (undocumented) Detach = "Detach" } // @public export enum KnownDiffDiskOptions { + // (undocumented) Local = "Local" } // @public export enum KnownDiffDiskPlacement { + // (undocumented) CacheDisk = "CacheDisk", + // (undocumented) ResourceDisk = "ResourceDisk" } @@ -3027,27 +3053,37 @@ export enum KnownDiskCreateOption { // @public export enum KnownDiskCreateOptionTypes { + // (undocumented) Attach = "Attach", + // (undocumented) Empty = "Empty", + // (undocumented) FromImage = "FromImage" } // @public export enum KnownDiskDeleteOptionTypes { + // (undocumented) Delete = "Delete", + // (undocumented) Detach = "Detach" } // @public export enum KnownDiskDetachOptionTypes { + // (undocumented) ForceDetach = "ForceDetach" } // @public export enum KnownDiskEncryptionSetIdentityType { + // (undocumented) None = "None", + // (undocumented) SystemAssigned = "SystemAssigned", + // (undocumented) SystemAssignedUserAssigned = "SystemAssigned, UserAssigned", + // (undocumented) UserAssigned = "UserAssigned" } @@ -3098,111 +3134,153 @@ export enum KnownEncryptionType { // @public export enum KnownExecutionState { + // (undocumented) Canceled = "Canceled", + // (undocumented) Failed = "Failed", + // (undocumented) Pending = "Pending", + // (undocumented) Running = "Running", + // (undocumented) Succeeded = "Succeeded", + // (undocumented) TimedOut = "TimedOut", + // (undocumented) Unknown = "Unknown" } // @public export enum KnownExpandTypesForGetCapacityReservationGroups { + // (undocumented) VirtualMachineScaleSetVMsRef = "virtualMachineScaleSetVMs/$ref", + // (undocumented) VirtualMachinesRef = "virtualMachines/$ref" } // @public export enum KnownExpandTypesForGetVMScaleSets { + // (undocumented) UserData = "userData" } // @public export enum KnownExtendedLocationType { + // (undocumented) EdgeZone = "EdgeZone" } // @public export enum KnownExtendedLocationTypes { + // (undocumented) EdgeZone = "EdgeZone" } // @public export enum KnownGalleryExpandParams { + // (undocumented) SharingProfileGroups = "SharingProfile/Groups" } // @public export enum KnownGalleryExtendedLocationType { + // (undocumented) EdgeZone = "EdgeZone", + // (undocumented) Unknown = "Unknown" } // @public export enum KnownGalleryProvisioningState { + // (undocumented) Creating = "Creating", + // (undocumented) Deleting = "Deleting", + // (undocumented) Failed = "Failed", + // (undocumented) Migrating = "Migrating", + // (undocumented) Succeeded = "Succeeded", + // (undocumented) Updating = "Updating" } // @public export enum KnownGallerySharingPermissionTypes { + // (undocumented) Community = "Community", + // (undocumented) Groups = "Groups", + // (undocumented) Private = "Private" } // @public export enum KnownHyperVGeneration { + // (undocumented) V1 = "V1", + // (undocumented) V2 = "V2" } // @public export enum KnownHyperVGenerationType { + // (undocumented) V1 = "V1", + // (undocumented) V2 = "V2" } // @public export enum KnownHyperVGenerationTypes { + // (undocumented) V1 = "V1", + // (undocumented) V2 = "V2" } // @public export enum KnownIPVersion { + // (undocumented) IPv4 = "IPv4", + // (undocumented) IPv6 = "IPv6" } // @public export enum KnownIPVersions { + // (undocumented) IPv4 = "IPv4", + // (undocumented) IPv6 = "IPv6" } // @public export enum KnownLinuxPatchAssessmentMode { + // (undocumented) AutomaticByPlatform = "AutomaticByPlatform", + // (undocumented) ImageDefault = "ImageDefault" } // @public export enum KnownLinuxVMGuestPatchAutomaticByPlatformRebootSetting { + // (undocumented) Always = "Always", + // (undocumented) IfRequired = "IfRequired", + // (undocumented) Never = "Never", + // (undocumented) Unknown = "Unknown" } // @public export enum KnownLinuxVMGuestPatchMode { + // (undocumented) AutomaticByPlatform = "AutomaticByPlatform", + // (undocumented) ImageDefault = "ImageDefault" } @@ -3215,101 +3293,141 @@ export enum KnownNetworkAccessPolicy { // @public export enum KnownNetworkApiVersion { + // (undocumented) TwoThousandTwenty1101 = "2020-11-01" } // @public export enum KnownOperatingSystemType { + // (undocumented) Linux = "Linux", + // (undocumented) Windows = "Windows" } // @public export enum KnownOrchestrationMode { + // (undocumented) Flexible = "Flexible", + // (undocumented) Uniform = "Uniform" } // @public export enum KnownOrchestrationServiceNames { + // (undocumented) AutomaticRepairs = "AutomaticRepairs", + // (undocumented) DummyOrchestrationServiceName = "DummyOrchestrationServiceName" } // @public export enum KnownOrchestrationServiceState { + // (undocumented) NotRunning = "NotRunning", + // (undocumented) Running = "Running", + // (undocumented) Suspended = "Suspended" } // @public export enum KnownOrchestrationServiceStateAction { + // (undocumented) Resume = "Resume", + // (undocumented) Suspend = "Suspend" } // @public export enum KnownPatchAssessmentState { + // (undocumented) Available = "Available", + // (undocumented) Unknown = "Unknown" } // @public export enum KnownPatchInstallationState { + // (undocumented) Excluded = "Excluded", + // (undocumented) Failed = "Failed", + // (undocumented) Installed = "Installed", + // (undocumented) NotSelected = "NotSelected", + // (undocumented) Pending = "Pending", + // (undocumented) Unknown = "Unknown" } // @public export enum KnownPatchOperationStatus { + // (undocumented) CompletedWithWarnings = "CompletedWithWarnings", + // (undocumented) Failed = "Failed", + // (undocumented) InProgress = "InProgress", + // (undocumented) Succeeded = "Succeeded", + // (undocumented) Unknown = "Unknown" } // @public export enum KnownPrivateEndpointConnectionProvisioningState { + // (undocumented) Creating = "Creating", + // (undocumented) Deleting = "Deleting", + // (undocumented) Failed = "Failed", + // (undocumented) Succeeded = "Succeeded" } // @public export enum KnownPrivateEndpointServiceConnectionStatus { + // (undocumented) Approved = "Approved", + // (undocumented) Pending = "Pending", + // (undocumented) Rejected = "Rejected" } // @public export enum KnownProximityPlacementGroupType { + // (undocumented) Standard = "Standard", + // (undocumented) Ultra = "Ultra" } // @public export enum KnownPublicIPAddressSkuName { + // (undocumented) Basic = "Basic", + // (undocumented) Standard = "Standard" } // @public export enum KnownPublicIPAddressSkuTier { + // (undocumented) Global = "Global", + // (undocumented) Regional = "Regional" } // @public export enum KnownPublicIPAllocationMethod { + // (undocumented) Dynamic = "Dynamic", + // (undocumented) Static = "Static" } @@ -3321,88 +3439,119 @@ export enum KnownPublicNetworkAccess { // @public export enum KnownRepairAction { + // (undocumented) Reimage = "Reimage", + // (undocumented) Replace = "Replace", + // (undocumented) Restart = "Restart" } // @public export enum KnownReplicationMode { + // (undocumented) Full = "Full", + // (undocumented) Shallow = "Shallow" } // @public export enum KnownReplicationState { + // (undocumented) Completed = "Completed", + // (undocumented) Failed = "Failed", + // (undocumented) Replicating = "Replicating", + // (undocumented) Unknown = "Unknown" } // @public export enum KnownReplicationStatusTypes { + // (undocumented) ReplicationStatus = "ReplicationStatus" } // @public export enum KnownRestorePointCollectionExpandOptions { + // (undocumented) RestorePoints = "restorePoints" } // @public export enum KnownRestorePointExpandOptions { + // (undocumented) InstanceView = "instanceView" } // @public export enum KnownSecurityEncryptionTypes { + // (undocumented) DiskWithVMGuestState = "DiskWithVMGuestState", + // (undocumented) VMGuestStateOnly = "VMGuestStateOnly" } // @public export enum KnownSecurityTypes { + // (undocumented) ConfidentialVM = "ConfidentialVM", + // (undocumented) TrustedLaunch = "TrustedLaunch" } // @public export enum KnownSelectPermissions { + // (undocumented) Permissions = "Permissions" } // @public export enum KnownSharedGalleryHostCaching { + // (undocumented) None = "None", + // (undocumented) ReadOnly = "ReadOnly", + // (undocumented) ReadWrite = "ReadWrite" } // @public export enum KnownSharedToValues { + // (undocumented) Tenant = "tenant" } // @public export enum KnownSharingProfileGroupTypes { + // (undocumented) AADTenants = "AADTenants", + // (undocumented) Subscriptions = "Subscriptions" } // @public export enum KnownSharingState { + // (undocumented) Failed = "Failed", + // (undocumented) InProgress = "InProgress", + // (undocumented) Succeeded = "Succeeded", + // (undocumented) Unknown = "Unknown" } // @public export enum KnownSharingUpdateOperationTypes { + // (undocumented) Add = "Add", + // (undocumented) EnableCommunity = "EnableCommunity", + // (undocumented) Remove = "Remove", + // (undocumented) Reset = "Reset" } @@ -3415,280 +3564,499 @@ export enum KnownSnapshotStorageAccountTypes { // @public export enum KnownStorageAccountType { + // (undocumented) PremiumLRS = "Premium_LRS", + // (undocumented) StandardLRS = "Standard_LRS", + // (undocumented) StandardZRS = "Standard_ZRS" } // @public export enum KnownStorageAccountTypes { + // (undocumented) PremiumLRS = "Premium_LRS", + // (undocumented) PremiumV2LRS = "PremiumV2_LRS", + // (undocumented) PremiumZRS = "Premium_ZRS", + // (undocumented) StandardLRS = "Standard_LRS", + // (undocumented) StandardSSDLRS = "StandardSSD_LRS", + // (undocumented) StandardSSDZRS = "StandardSSD_ZRS", + // (undocumented) UltraSSDLRS = "UltraSSD_LRS" } // @public export enum KnownVirtualMachineEvictionPolicyTypes { + // (undocumented) Deallocate = "Deallocate", + // (undocumented) Delete = "Delete" } // @public export enum KnownVirtualMachinePriorityTypes { + // (undocumented) Low = "Low", + // (undocumented) Regular = "Regular", + // (undocumented) Spot = "Spot" } // @public export enum KnownVirtualMachineScaleSetScaleInRules { + // (undocumented) Default = "Default", + // (undocumented) NewestVM = "NewestVM", + // (undocumented) OldestVM = "OldestVM" } // @public export enum KnownVirtualMachineSizeTypes { + // (undocumented) BasicA0 = "Basic_A0", + // (undocumented) BasicA1 = "Basic_A1", + // (undocumented) BasicA2 = "Basic_A2", + // (undocumented) BasicA3 = "Basic_A3", + // (undocumented) BasicA4 = "Basic_A4", + // (undocumented) StandardA0 = "Standard_A0", + // (undocumented) StandardA1 = "Standard_A1", + // (undocumented) StandardA10 = "Standard_A10", + // (undocumented) StandardA11 = "Standard_A11", + // (undocumented) StandardA1V2 = "Standard_A1_v2", + // (undocumented) StandardA2 = "Standard_A2", + // (undocumented) StandardA2MV2 = "Standard_A2m_v2", + // (undocumented) StandardA2V2 = "Standard_A2_v2", + // (undocumented) StandardA3 = "Standard_A3", + // (undocumented) StandardA4 = "Standard_A4", + // (undocumented) StandardA4MV2 = "Standard_A4m_v2", + // (undocumented) StandardA4V2 = "Standard_A4_v2", + // (undocumented) StandardA5 = "Standard_A5", + // (undocumented) StandardA6 = "Standard_A6", + // (undocumented) StandardA7 = "Standard_A7", + // (undocumented) StandardA8 = "Standard_A8", + // (undocumented) StandardA8MV2 = "Standard_A8m_v2", + // (undocumented) StandardA8V2 = "Standard_A8_v2", + // (undocumented) StandardA9 = "Standard_A9", + // (undocumented) StandardB1Ms = "Standard_B1ms", + // (undocumented) StandardB1S = "Standard_B1s", + // (undocumented) StandardB2Ms = "Standard_B2ms", + // (undocumented) StandardB2S = "Standard_B2s", + // (undocumented) StandardB4Ms = "Standard_B4ms", + // (undocumented) StandardB8Ms = "Standard_B8ms", + // (undocumented) StandardD1 = "Standard_D1", + // (undocumented) StandardD11 = "Standard_D11", + // (undocumented) StandardD11V2 = "Standard_D11_v2", + // (undocumented) StandardD12 = "Standard_D12", + // (undocumented) StandardD12V2 = "Standard_D12_v2", + // (undocumented) StandardD13 = "Standard_D13", + // (undocumented) StandardD13V2 = "Standard_D13_v2", + // (undocumented) StandardD14 = "Standard_D14", + // (undocumented) StandardD14V2 = "Standard_D14_v2", + // (undocumented) StandardD15V2 = "Standard_D15_v2", + // (undocumented) StandardD16SV3 = "Standard_D16s_v3", + // (undocumented) StandardD16V3 = "Standard_D16_v3", + // (undocumented) StandardD1V2 = "Standard_D1_v2", + // (undocumented) StandardD2 = "Standard_D2", + // (undocumented) StandardD2SV3 = "Standard_D2s_v3", + // (undocumented) StandardD2V2 = "Standard_D2_v2", + // (undocumented) StandardD2V3 = "Standard_D2_v3", + // (undocumented) StandardD3 = "Standard_D3", + // (undocumented) StandardD32SV3 = "Standard_D32s_v3", + // (undocumented) StandardD32V3 = "Standard_D32_v3", + // (undocumented) StandardD3V2 = "Standard_D3_v2", + // (undocumented) StandardD4 = "Standard_D4", + // (undocumented) StandardD4SV3 = "Standard_D4s_v3", + // (undocumented) StandardD4V2 = "Standard_D4_v2", + // (undocumented) StandardD4V3 = "Standard_D4_v3", + // (undocumented) StandardD5V2 = "Standard_D5_v2", + // (undocumented) StandardD64SV3 = "Standard_D64s_v3", + // (undocumented) StandardD64V3 = "Standard_D64_v3", + // (undocumented) StandardD8SV3 = "Standard_D8s_v3", + // (undocumented) StandardD8V3 = "Standard_D8_v3", + // (undocumented) StandardDS1 = "Standard_DS1", + // (undocumented) StandardDS11 = "Standard_DS11", + // (undocumented) StandardDS11V2 = "Standard_DS11_v2", + // (undocumented) StandardDS12 = "Standard_DS12", + // (undocumented) StandardDS12V2 = "Standard_DS12_v2", + // (undocumented) StandardDS13 = "Standard_DS13", + // (undocumented) StandardDS132V2 = "Standard_DS13-2_v2", + // (undocumented) StandardDS134V2 = "Standard_DS13-4_v2", + // (undocumented) StandardDS13V2 = "Standard_DS13_v2", + // (undocumented) StandardDS14 = "Standard_DS14", + // (undocumented) StandardDS144V2 = "Standard_DS14-4_v2", + // (undocumented) StandardDS148V2 = "Standard_DS14-8_v2", + // (undocumented) StandardDS14V2 = "Standard_DS14_v2", + // (undocumented) StandardDS15V2 = "Standard_DS15_v2", + // (undocumented) StandardDS1V2 = "Standard_DS1_v2", + // (undocumented) StandardDS2 = "Standard_DS2", + // (undocumented) StandardDS2V2 = "Standard_DS2_v2", + // (undocumented) StandardDS3 = "Standard_DS3", + // (undocumented) StandardDS3V2 = "Standard_DS3_v2", + // (undocumented) StandardDS4 = "Standard_DS4", + // (undocumented) StandardDS4V2 = "Standard_DS4_v2", + // (undocumented) StandardDS5V2 = "Standard_DS5_v2", + // (undocumented) StandardE16SV3 = "Standard_E16s_v3", + // (undocumented) StandardE16V3 = "Standard_E16_v3", + // (undocumented) StandardE2SV3 = "Standard_E2s_v3", + // (undocumented) StandardE2V3 = "Standard_E2_v3", + // (undocumented) StandardE3216V3 = "Standard_E32-16_v3", + // (undocumented) StandardE328SV3 = "Standard_E32-8s_v3", + // (undocumented) StandardE32SV3 = "Standard_E32s_v3", + // (undocumented) StandardE32V3 = "Standard_E32_v3", + // (undocumented) StandardE4SV3 = "Standard_E4s_v3", + // (undocumented) StandardE4V3 = "Standard_E4_v3", + // (undocumented) StandardE6416SV3 = "Standard_E64-16s_v3", + // (undocumented) StandardE6432SV3 = "Standard_E64-32s_v3", + // (undocumented) StandardE64SV3 = "Standard_E64s_v3", + // (undocumented) StandardE64V3 = "Standard_E64_v3", + // (undocumented) StandardE8SV3 = "Standard_E8s_v3", + // (undocumented) StandardE8V3 = "Standard_E8_v3", + // (undocumented) StandardF1 = "Standard_F1", + // (undocumented) StandardF16 = "Standard_F16", + // (undocumented) StandardF16S = "Standard_F16s", + // (undocumented) StandardF16SV2 = "Standard_F16s_v2", + // (undocumented) StandardF1S = "Standard_F1s", + // (undocumented) StandardF2 = "Standard_F2", + // (undocumented) StandardF2S = "Standard_F2s", + // (undocumented) StandardF2SV2 = "Standard_F2s_v2", + // (undocumented) StandardF32SV2 = "Standard_F32s_v2", + // (undocumented) StandardF4 = "Standard_F4", + // (undocumented) StandardF4S = "Standard_F4s", + // (undocumented) StandardF4SV2 = "Standard_F4s_v2", + // (undocumented) StandardF64SV2 = "Standard_F64s_v2", + // (undocumented) StandardF72SV2 = "Standard_F72s_v2", + // (undocumented) StandardF8 = "Standard_F8", + // (undocumented) StandardF8S = "Standard_F8s", + // (undocumented) StandardF8SV2 = "Standard_F8s_v2", + // (undocumented) StandardG1 = "Standard_G1", + // (undocumented) StandardG2 = "Standard_G2", + // (undocumented) StandardG3 = "Standard_G3", + // (undocumented) StandardG4 = "Standard_G4", + // (undocumented) StandardG5 = "Standard_G5", + // (undocumented) StandardGS1 = "Standard_GS1", + // (undocumented) StandardGS2 = "Standard_GS2", + // (undocumented) StandardGS3 = "Standard_GS3", + // (undocumented) StandardGS4 = "Standard_GS4", + // (undocumented) StandardGS44 = "Standard_GS4-4", + // (undocumented) StandardGS48 = "Standard_GS4-8", + // (undocumented) StandardGS5 = "Standard_GS5", + // (undocumented) StandardGS516 = "Standard_GS5-16", + // (undocumented) StandardGS58 = "Standard_GS5-8", + // (undocumented) StandardH16 = "Standard_H16", + // (undocumented) StandardH16M = "Standard_H16m", + // (undocumented) StandardH16Mr = "Standard_H16mr", + // (undocumented) StandardH16R = "Standard_H16r", + // (undocumented) StandardH8 = "Standard_H8", + // (undocumented) StandardH8M = "Standard_H8m", + // (undocumented) StandardL16S = "Standard_L16s", + // (undocumented) StandardL32S = "Standard_L32s", + // (undocumented) StandardL4S = "Standard_L4s", + // (undocumented) StandardL8S = "Standard_L8s", + // (undocumented) StandardM12832Ms = "Standard_M128-32ms", + // (undocumented) StandardM12864Ms = "Standard_M128-64ms", + // (undocumented) StandardM128Ms = "Standard_M128ms", + // (undocumented) StandardM128S = "Standard_M128s", + // (undocumented) StandardM6416Ms = "Standard_M64-16ms", + // (undocumented) StandardM6432Ms = "Standard_M64-32ms", + // (undocumented) StandardM64Ms = "Standard_M64ms", + // (undocumented) StandardM64S = "Standard_M64s", + // (undocumented) StandardNC12 = "Standard_NC12", + // (undocumented) StandardNC12SV2 = "Standard_NC12s_v2", + // (undocumented) StandardNC12SV3 = "Standard_NC12s_v3", + // (undocumented) StandardNC24 = "Standard_NC24", + // (undocumented) StandardNC24R = "Standard_NC24r", + // (undocumented) StandardNC24RsV2 = "Standard_NC24rs_v2", + // (undocumented) StandardNC24RsV3 = "Standard_NC24rs_v3", + // (undocumented) StandardNC24SV2 = "Standard_NC24s_v2", + // (undocumented) StandardNC24SV3 = "Standard_NC24s_v3", + // (undocumented) StandardNC6 = "Standard_NC6", + // (undocumented) StandardNC6SV2 = "Standard_NC6s_v2", + // (undocumented) StandardNC6SV3 = "Standard_NC6s_v3", + // (undocumented) StandardND12S = "Standard_ND12s", + // (undocumented) StandardND24Rs = "Standard_ND24rs", + // (undocumented) StandardND24S = "Standard_ND24s", + // (undocumented) StandardND6S = "Standard_ND6s", + // (undocumented) StandardNV12 = "Standard_NV12", + // (undocumented) StandardNV24 = "Standard_NV24", + // (undocumented) StandardNV6 = "Standard_NV6" } // @public export enum KnownVmDiskTypes { + // (undocumented) None = "None", + // (undocumented) Unmanaged = "Unmanaged" } // @public export enum KnownVMGuestPatchClassificationLinux { + // (undocumented) Critical = "Critical", + // (undocumented) Other = "Other", + // (undocumented) Security = "Security" } // @public export enum KnownVMGuestPatchClassificationWindows { + // (undocumented) Critical = "Critical", + // (undocumented) Definition = "Definition", + // (undocumented) FeaturePack = "FeaturePack", + // (undocumented) Security = "Security", + // (undocumented) ServicePack = "ServicePack", + // (undocumented) Tools = "Tools", + // (undocumented) UpdateRollUp = "UpdateRollUp", + // (undocumented) Updates = "Updates" } // @public export enum KnownVMGuestPatchRebootBehavior { + // (undocumented) AlwaysRequiresReboot = "AlwaysRequiresReboot", + // (undocumented) CanRequestReboot = "CanRequestReboot", + // (undocumented) NeverReboots = "NeverReboots", + // (undocumented) Unknown = "Unknown" } // @public export enum KnownVMGuestPatchRebootSetting { + // (undocumented) Always = "Always", + // (undocumented) IfRequired = "IfRequired", + // (undocumented) Never = "Never" } // @public export enum KnownVMGuestPatchRebootStatus { + // (undocumented) Completed = "Completed", + // (undocumented) Failed = "Failed", + // (undocumented) NotNeeded = "NotNeeded", + // (undocumented) Required = "Required", + // (undocumented) Started = "Started", + // (undocumented) Unknown = "Unknown" } // @public export enum KnownWindowsPatchAssessmentMode { + // (undocumented) AutomaticByPlatform = "AutomaticByPlatform", + // (undocumented) ImageDefault = "ImageDefault" } // @public export enum KnownWindowsVMGuestPatchAutomaticByPlatformRebootSetting { + // (undocumented) Always = "Always", + // (undocumented) IfRequired = "IfRequired", + // (undocumented) Never = "Never", + // (undocumented) Unknown = "Unknown" } // @public export enum KnownWindowsVMGuestPatchMode { + // (undocumented) AutomaticByOS = "AutomaticByOS", + // (undocumented) AutomaticByPlatform = "AutomaticByPlatform", + // (undocumented) Manual = "Manual" } @@ -3843,11 +4211,11 @@ export interface ManagedArtifact { } // @public -export interface ManagedDiskParameters extends SubResource { +export type ManagedDiskParameters = SubResource & { + storageAccountType?: StorageAccountTypes; diskEncryptionSet?: DiskEncryptionSetParameters; securityProfile?: VMDiskSecurityProfile; - storageAccountType?: StorageAccountTypes; -} +}; // @public export type NetworkAccessPolicy = string; @@ -3856,10 +4224,10 @@ export type NetworkAccessPolicy = string; export type NetworkApiVersion = string; // @public -export interface NetworkInterfaceReference extends SubResource { - deleteOption?: DeleteOptions; +export type NetworkInterfaceReference = SubResource & { primary?: boolean; -} + deleteOption?: DeleteOptions; +}; // @public export interface NetworkProfile { @@ -3935,9 +4303,9 @@ export interface OSDiskImage { } // @public -export interface OSDiskImageEncryption extends DiskImageEncryption { +export type OSDiskImageEncryption = DiskImageEncryption & { securityProfile?: OSDiskImageSecurityProfile; -} +}; // @public export interface OSDiskImageSecurityProfile { @@ -4055,9 +4423,9 @@ export interface PirResource { } // @public -export interface PirSharedGalleryResource extends PirResource { +export type PirSharedGalleryResource = PirResource & { uniqueId?: string; -} +}; // @public export interface Plan { @@ -4125,15 +4493,15 @@ export interface PropertyUpdatesInProgress { export type ProtocolTypes = "Http" | "Https"; // @public -export interface ProximityPlacementGroup extends Resource { - readonly availabilitySets?: SubResourceWithColocationStatus[]; - colocationStatus?: InstanceViewStatus; - intent?: ProximityPlacementGroupPropertiesIntent; +export type ProximityPlacementGroup = Resource & { + zones?: string[]; proximityPlacementGroupType?: ProximityPlacementGroupType; readonly virtualMachines?: SubResourceWithColocationStatus[]; readonly virtualMachineScaleSets?: SubResourceWithColocationStatus[]; - zones?: string[]; -} + readonly availabilitySets?: SubResourceWithColocationStatus[]; + colocationStatus?: InstanceViewStatus; + intent?: ProximityPlacementGroupPropertiesIntent; +}; // @public export interface ProximityPlacementGroupListResult { @@ -4214,8 +4582,7 @@ export type ProximityPlacementGroupsUpdateResponse = ProximityPlacementGroup; export type ProximityPlacementGroupType = string; // @public -export interface ProximityPlacementGroupUpdate extends UpdateResource { -} +export type ProximityPlacementGroupUpdate = UpdateResource & {}; // @public export interface ProxyOnlyResource { @@ -4310,9 +4677,9 @@ export interface ReplicationStatus { export type ReplicationStatusTypes = string; // @public -export interface RequestRateByIntervalInput extends LogAnalyticsInputBase { +export type RequestRateByIntervalInput = LogAnalyticsInputBase & { intervalLength: IntervalInMins; -} +}; // @public export interface Resource { @@ -4466,23 +4833,23 @@ export interface ResourceWithOptionalLocation { } // @public -export interface RestorePoint extends ProxyResource { - consistencyMode?: ConsistencyModeTypes; +export type RestorePoint = ProxyResource & { excludeDisks?: ApiEntityReference[]; - readonly instanceView?: RestorePointInstanceView; - readonly provisioningState?: string; readonly sourceMetadata?: RestorePointSourceMetadata; - sourceRestorePoint?: ApiEntityReference; + readonly provisioningState?: string; + consistencyMode?: ConsistencyModeTypes; timeCreated?: Date; -} + sourceRestorePoint?: ApiEntityReference; + readonly instanceView?: RestorePointInstanceView; +}; // @public -export interface RestorePointCollection extends Resource { +export type RestorePointCollection = Resource & { + source?: RestorePointCollectionSourceProperties; readonly provisioningState?: string; readonly restorePointCollectionId?: string; readonly restorePoints?: RestorePoint[]; - source?: RestorePointCollectionSourceProperties; -} +}; // @public export type RestorePointCollectionExpandOptions = string; @@ -4567,12 +4934,12 @@ export interface RestorePointCollectionsUpdateOptionalParams extends coreClient. export type RestorePointCollectionsUpdateResponse = RestorePointCollection; // @public -export interface RestorePointCollectionUpdate extends UpdateResource { +export type RestorePointCollectionUpdate = UpdateResource & { + source?: RestorePointCollectionSourceProperties; readonly provisioningState?: string; readonly restorePointCollectionId?: string; readonly restorePoints?: RestorePoint[]; - source?: RestorePointCollectionSourceProperties; -} +}; // @public export type RestorePointExpandOptions = string; @@ -4743,18 +5110,18 @@ export interface RollingUpgradeRunningStatus { export type RollingUpgradeStatusCode = "RollingForward" | "Cancelled" | "Completed" | "Faulted"; // @public -export interface RollingUpgradeStatusInfo extends Resource { - readonly error?: ApiError; +export type RollingUpgradeStatusInfo = Resource & { readonly policy?: RollingUpgradePolicy; - readonly progress?: RollingUpgradeProgressInfo; readonly runningStatus?: RollingUpgradeRunningStatus; -} + readonly progress?: RollingUpgradeProgressInfo; + readonly error?: ApiError; +}; // @public -export interface RunCommandDocument extends RunCommandDocumentBase { - parameters?: RunCommandParameterDefinition[]; +export type RunCommandDocument = RunCommandDocumentBase & { script: string[]; -} + parameters?: RunCommandParameterDefinition[]; +}; // @public export interface RunCommandDocumentBase { @@ -4857,13 +5224,12 @@ export interface SharedGalleriesListOptionalParams extends coreClient.OperationO export type SharedGalleriesListResponse = SharedGalleryList; // @public -export interface SharedGallery extends PirSharedGalleryResource { -} +export type SharedGallery = PirSharedGalleryResource & {}; // @public -export interface SharedGalleryDataDiskImage extends SharedGalleryDiskImage { +export type SharedGalleryDataDiskImage = SharedGalleryDiskImage & { lun: number; -} +}; // @public export interface SharedGalleryDiskImage { @@ -4875,18 +5241,18 @@ export interface SharedGalleryDiskImage { export type SharedGalleryHostCaching = string; // @public -export interface SharedGalleryImage extends PirSharedGalleryResource { - architecture?: Architecture; - disallowed?: Disallowed; +export type SharedGalleryImage = PirSharedGalleryResource & { + osType?: OperatingSystemTypes; + osState?: OperatingSystemStateTypes; endOfLifeDate?: Date; - features?: GalleryImageFeature[]; - hyperVGeneration?: HyperVGeneration; identifier?: GalleryImageIdentifier; - osState?: OperatingSystemStateTypes; - osType?: OperatingSystemTypes; - purchasePlan?: ImagePurchasePlan; recommended?: RecommendedMachineConfiguration; -} + disallowed?: Disallowed; + hyperVGeneration?: HyperVGeneration; + features?: GalleryImageFeature[]; + purchasePlan?: ImagePurchasePlan; + architecture?: Architecture; +}; // @public export interface SharedGalleryImageList { @@ -4924,12 +5290,12 @@ export interface SharedGalleryImagesListOptionalParams extends coreClient.Operat export type SharedGalleryImagesListResponse = SharedGalleryImageList; // @public -export interface SharedGalleryImageVersion extends PirSharedGalleryResource { +export type SharedGalleryImageVersion = PirSharedGalleryResource & { + publishedDate?: Date; endOfLifeDate?: Date; excludeFromLatest?: boolean; - publishedDate?: Date; storageProfile?: SharedGalleryImageVersionStorageProfile; -} +}; // @public export interface SharedGalleryImageVersionList { @@ -4979,8 +5345,7 @@ export interface SharedGalleryList { } // @public -export interface SharedGalleryOSDiskImage extends SharedGalleryDiskImage { -} +export type SharedGalleryOSDiskImage = SharedGalleryDiskImage & {}; // @public export type SharedToValues = string; @@ -5032,33 +5397,33 @@ export interface Sku { } // @public -export interface Snapshot extends Resource { - completionPercent?: number; - copyCompletionError?: CopyCompletionError; +export type Snapshot = Resource & { + readonly managedBy?: string; + sku?: SnapshotSku; + extendedLocation?: ExtendedLocation; + readonly timeCreated?: Date; + osType?: OperatingSystemTypes; + hyperVGeneration?: HyperVGeneration; + purchasePlan?: PurchasePlanAutoGenerated; + supportedCapabilities?: SupportedCapabilities; creationData?: CreationData; - dataAccessAuthMode?: DataAccessAuthMode; - diskAccessId?: string; - readonly diskSizeBytes?: number; diskSizeGB?: number; + readonly diskSizeBytes?: number; readonly diskState?: DiskState; - encryption?: Encryption; + readonly uniqueId?: string; encryptionSettingsCollection?: EncryptionSettingsCollection; - extendedLocation?: ExtendedLocation; - hyperVGeneration?: HyperVGeneration; + readonly provisioningState?: string; incremental?: boolean; - readonly managedBy?: string; + encryption?: Encryption; networkAccessPolicy?: NetworkAccessPolicy; - osType?: OperatingSystemTypes; - readonly provisioningState?: string; - publicNetworkAccess?: PublicNetworkAccess; - purchasePlan?: PurchasePlanAutoGenerated; + diskAccessId?: string; securityProfile?: DiskSecurityProfile; - sku?: SnapshotSku; - supportedCapabilities?: SupportedCapabilities; supportsHibernation?: boolean; - readonly timeCreated?: Date; - readonly uniqueId?: string; -} + publicNetworkAccess?: PublicNetworkAccess; + completionPercent?: number; + copyCompletionError?: CopyCompletionError; + dataAccessAuthMode?: DataAccessAuthMode; +}; // @public export interface SnapshotList { @@ -5219,9 +5584,9 @@ export interface SshPublicKeyGenerateKeyPairResult { } // @public -export interface SshPublicKeyResource extends Resource { +export type SshPublicKeyResource = Resource & { publicKey?: string; -} +}; // @public export interface SshPublicKeys { @@ -5301,9 +5666,9 @@ export interface SshPublicKeysUpdateOptionalParams extends coreClient.OperationO export type SshPublicKeysUpdateResponse = SshPublicKeyResource; // @public -export interface SshPublicKeyUpdateResource extends UpdateResource { +export type SshPublicKeyUpdateResource = UpdateResource & { publicKey?: string; -} +}; // @public export interface StatusCodeCount { @@ -5338,9 +5703,9 @@ export interface SubResourceReadOnly { } // @public (undocumented) -export interface SubResourceWithColocationStatus extends SubResource { +export type SubResourceWithColocationStatus = SubResource & { colocationStatus?: InstanceViewStatus; -} +}; // @public export interface SupportedCapabilities { @@ -5369,8 +5734,7 @@ export interface TerminateNotificationProfile { } // @public -export interface ThrottledRequestsInput extends LogAnalyticsInputBase { -} +export type ThrottledRequestsInput = LogAnalyticsInputBase & {}; // @public export interface UefiSettings { @@ -5523,39 +5887,39 @@ export interface VirtualHardDisk { } // @public -export interface VirtualMachine extends Resource { +export type VirtualMachine = Resource & { + plan?: Plan; + readonly resources?: VirtualMachineExtension[]; + identity?: VirtualMachineIdentity; + zones?: string[]; + extendedLocation?: ExtendedLocation; + hardwareProfile?: HardwareProfile; + storageProfile?: StorageProfile; additionalCapabilities?: AdditionalCapabilities; - applicationProfile?: ApplicationProfile; - availabilitySet?: SubResource; - billingProfile?: BillingProfile; - capacityReservation?: CapacityReservationProfile; + osProfile?: OSProfile; + networkProfile?: NetworkProfile; + securityProfile?: SecurityProfile; diagnosticsProfile?: DiagnosticsProfile; + availabilitySet?: SubResource; + virtualMachineScaleSet?: SubResource; + proximityPlacementGroup?: SubResource; + priority?: VirtualMachinePriorityTypes; evictionPolicy?: VirtualMachineEvictionPolicyTypes; - extendedLocation?: ExtendedLocation; - extensionsTimeBudget?: string; - hardwareProfile?: HardwareProfile; + billingProfile?: BillingProfile; host?: SubResource; hostGroup?: SubResource; - identity?: VirtualMachineIdentity; + readonly provisioningState?: string; readonly instanceView?: VirtualMachineInstanceView; licenseType?: string; - networkProfile?: NetworkProfile; - osProfile?: OSProfile; - plan?: Plan; + readonly vmId?: string; + extensionsTimeBudget?: string; platformFaultDomain?: number; - priority?: VirtualMachinePriorityTypes; - readonly provisioningState?: string; - proximityPlacementGroup?: SubResource; - readonly resources?: VirtualMachineExtension[]; scheduledEventsProfile?: ScheduledEventsProfile; - securityProfile?: SecurityProfile; - storageProfile?: StorageProfile; - readonly timeCreated?: Date; userData?: string; - virtualMachineScaleSet?: SubResource; - readonly vmId?: string; - zones?: string[]; -} + capacityReservation?: CapacityReservationProfile; + applicationProfile?: ApplicationProfile; + readonly timeCreated?: Date; +}; // @public export interface VirtualMachineAgentInstanceView { @@ -5584,31 +5948,31 @@ export interface VirtualMachineCaptureParameters { } // @public -export interface VirtualMachineCaptureResult extends SubResource { +export type VirtualMachineCaptureResult = SubResource & { + readonly schema?: string; readonly contentVersion?: string; readonly parameters?: any; readonly resources?: any[]; - readonly schema?: string; -} +}; // @public export type VirtualMachineEvictionPolicyTypes = string; // @public -export interface VirtualMachineExtension extends ResourceWithOptionalLocation { +export type VirtualMachineExtension = ResourceWithOptionalLocation & { + forceUpdateTag?: string; + publisher?: string; + typePropertiesType?: string; + typeHandlerVersion?: string; autoUpgradeMinorVersion?: boolean; enableAutomaticUpgrade?: boolean; - forceUpdateTag?: string; - instanceView?: VirtualMachineExtensionInstanceView; + settings?: any; protectedSettings?: any; - protectedSettingsFromKeyVault?: any; readonly provisioningState?: string; - publisher?: string; - settings?: any; + instanceView?: VirtualMachineExtensionInstanceView; suppressFailures?: boolean; - typeHandlerVersion?: string; - typePropertiesType?: string; -} + protectedSettingsFromKeyVault?: any; +}; // @public export interface VirtualMachineExtensionHandlerInstanceView { @@ -5618,13 +5982,13 @@ export interface VirtualMachineExtensionHandlerInstanceView { } // @public -export interface VirtualMachineExtensionImage extends Resource { +export type VirtualMachineExtensionImage = Resource & { + operatingSystem?: string; computeRole?: string; handlerSchema?: string; - operatingSystem?: string; - supportsMultipleExtensions?: boolean; vmScaleSetEnabled?: boolean; -} + supportsMultipleExtensions?: boolean; +}; // @public export interface VirtualMachineExtensionImages { @@ -5726,18 +6090,18 @@ export interface VirtualMachineExtensionsUpdateOptionalParams extends coreClient export type VirtualMachineExtensionsUpdateResponse = VirtualMachineExtension; // @public -export interface VirtualMachineExtensionUpdate extends UpdateResource { - autoUpgradeMinorVersion?: boolean; - enableAutomaticUpgrade?: boolean; +export type VirtualMachineExtensionUpdate = UpdateResource & { forceUpdateTag?: string; - protectedSettings?: any; - protectedSettingsFromKeyVault?: any; publisher?: string; - settings?: any; - suppressFailures?: boolean; type?: string; typeHandlerVersion?: string; -} + autoUpgradeMinorVersion?: boolean; + enableAutomaticUpgrade?: boolean; + settings?: any; + protectedSettings?: any; + suppressFailures?: boolean; + protectedSettingsFromKeyVault?: any; +}; // @public export interface VirtualMachineHealthStatus { @@ -5755,18 +6119,16 @@ export interface VirtualMachineIdentity { } // @public -export interface VirtualMachineImage extends VirtualMachineImageResource { - architecture?: ArchitectureTypes; - automaticOSUpgradeProperties?: AutomaticOSUpgradeProperties; - // (undocumented) +export type VirtualMachineImage = VirtualMachineImageResource & { + plan?: PurchasePlan; + osDiskImage?: OSDiskImage; dataDiskImages?: DataDiskImage[]; + automaticOSUpgradeProperties?: AutomaticOSUpgradeProperties; + hyperVGeneration?: HyperVGenerationTypes; disallowed?: DisallowedConfiguration; - // (undocumented) features?: VirtualMachineImageFeature[]; - hyperVGeneration?: HyperVGenerationTypes; - osDiskImage?: OSDiskImage; - plan?: PurchasePlan; -} + architecture?: ArchitectureTypes; +}; // @public export interface VirtualMachineImageFeature { @@ -5775,14 +6137,14 @@ export interface VirtualMachineImageFeature { } // @public -export interface VirtualMachineImageResource extends SubResource { - extendedLocation?: ExtendedLocation; - location: string; +export type VirtualMachineImageResource = SubResource & { name: string; + location: string; tags?: { [propertyName: string]: string; }; -} + extendedLocation?: ExtendedLocation; +}; // @public export interface VirtualMachineImages { @@ -6010,19 +6372,19 @@ export interface VirtualMachineReimageParameters { } // @public -export interface VirtualMachineRunCommand extends Resource { - asyncExecution?: boolean; - errorBlobUri?: string; - readonly instanceView?: VirtualMachineRunCommandInstanceView; - outputBlobUri?: string; +export type VirtualMachineRunCommand = Resource & { + source?: VirtualMachineRunCommandScriptSource; parameters?: RunCommandInputParameter[]; protectedParameters?: RunCommandInputParameter[]; - readonly provisioningState?: string; - runAsPassword?: string; + asyncExecution?: boolean; runAsUser?: string; - source?: VirtualMachineRunCommandScriptSource; + runAsPassword?: string; timeoutInSeconds?: number; -} + outputBlobUri?: string; + errorBlobUri?: string; + readonly provisioningState?: string; + readonly instanceView?: VirtualMachineRunCommandInstanceView; +}; // @public export interface VirtualMachineRunCommandInstanceView { @@ -6133,19 +6495,19 @@ export interface VirtualMachineRunCommandsUpdateOptionalParams extends coreClien export type VirtualMachineRunCommandsUpdateResponse = VirtualMachineRunCommand; // @public -export interface VirtualMachineRunCommandUpdate extends UpdateResource { - asyncExecution?: boolean; - errorBlobUri?: string; - readonly instanceView?: VirtualMachineRunCommandInstanceView; - outputBlobUri?: string; +export type VirtualMachineRunCommandUpdate = UpdateResource & { + source?: VirtualMachineRunCommandScriptSource; parameters?: RunCommandInputParameter[]; protectedParameters?: RunCommandInputParameter[]; - readonly provisioningState?: string; - runAsPassword?: string; + asyncExecution?: boolean; runAsUser?: string; - source?: VirtualMachineRunCommandScriptSource; + runAsPassword?: string; timeoutInSeconds?: number; -} + outputBlobUri?: string; + errorBlobUri?: string; + readonly provisioningState?: string; + readonly instanceView?: VirtualMachineRunCommandInstanceView; +}; // @public export interface VirtualMachines { @@ -6202,30 +6564,30 @@ export interface VirtualMachinesAssessPatchesOptionalParams extends coreClient.O export type VirtualMachinesAssessPatchesResponse = VirtualMachineAssessPatchesResult; // @public -export interface VirtualMachineScaleSet extends Resource { - additionalCapabilities?: AdditionalCapabilities; - automaticRepairsPolicy?: AutomaticRepairsPolicy; - doNotRunExtensionsOnOverprovisionedVMs?: boolean; - extendedLocation?: ExtendedLocation; - hostGroup?: SubResource; +export type VirtualMachineScaleSet = Resource & { + sku?: Sku; + plan?: Plan; identity?: VirtualMachineScaleSetIdentity; - orchestrationMode?: OrchestrationMode; + zones?: string[]; + extendedLocation?: ExtendedLocation; + upgradePolicy?: UpgradePolicy; + automaticRepairsPolicy?: AutomaticRepairsPolicy; + virtualMachineProfile?: VirtualMachineScaleSetVMProfile; + readonly provisioningState?: string; overprovision?: boolean; - plan?: Plan; + doNotRunExtensionsOnOverprovisionedVMs?: boolean; + readonly uniqueId?: string; + singlePlacementGroup?: boolean; + zoneBalance?: boolean; platformFaultDomainCount?: number; - readonly provisioningState?: string; proximityPlacementGroup?: SubResource; + hostGroup?: SubResource; + additionalCapabilities?: AdditionalCapabilities; scaleInPolicy?: ScaleInPolicy; - singlePlacementGroup?: boolean; - sku?: Sku; + orchestrationMode?: OrchestrationMode; spotRestorePolicy?: SpotRestorePolicy; readonly timeCreated?: Date; - readonly uniqueId?: string; - upgradePolicy?: UpgradePolicy; - virtualMachineProfile?: VirtualMachineScaleSetVMProfile; - zoneBalance?: boolean; - zones?: string[]; -} +}; // @public export interface VirtualMachineScaleSetDataDisk { @@ -6242,22 +6604,22 @@ export interface VirtualMachineScaleSetDataDisk { } // @public -export interface VirtualMachineScaleSetExtension extends SubResourceReadOnly { +export type VirtualMachineScaleSetExtension = SubResourceReadOnly & { + name?: string; + readonly type?: string; + forceUpdateTag?: string; + publisher?: string; + typePropertiesType?: string; + typeHandlerVersion?: string; autoUpgradeMinorVersion?: boolean; enableAutomaticUpgrade?: boolean; - forceUpdateTag?: string; - name?: string; + settings?: any; protectedSettings?: any; - protectedSettingsFromKeyVault?: any; - provisionAfterExtensions?: string[]; readonly provisioningState?: string; - publisher?: string; - settings?: any; + provisionAfterExtensions?: string[]; suppressFailures?: boolean; - readonly type?: string; - typeHandlerVersion?: string; - typePropertiesType?: string; -} + protectedSettingsFromKeyVault?: any; +}; // @public export interface VirtualMachineScaleSetExtensionListResult { @@ -6330,22 +6692,22 @@ export interface VirtualMachineScaleSetExtensionsUpdateOptionalParams extends co export type VirtualMachineScaleSetExtensionsUpdateResponse = VirtualMachineScaleSetExtension; // @public -export interface VirtualMachineScaleSetExtensionUpdate extends SubResourceReadOnly { +export type VirtualMachineScaleSetExtensionUpdate = SubResourceReadOnly & { + readonly name?: string; + readonly type?: string; + forceUpdateTag?: string; + publisher?: string; + typePropertiesType?: string; + typeHandlerVersion?: string; autoUpgradeMinorVersion?: boolean; enableAutomaticUpgrade?: boolean; - forceUpdateTag?: string; - readonly name?: string; + settings?: any; protectedSettings?: any; - protectedSettingsFromKeyVault?: any; - provisionAfterExtensions?: string[]; readonly provisioningState?: string; - publisher?: string; - settings?: any; + provisionAfterExtensions?: string[]; suppressFailures?: boolean; - readonly type?: string; - typeHandlerVersion?: string; - typePropertiesType?: string; -} + protectedSettingsFromKeyVault?: any; +}; // @public export interface VirtualMachineScaleSetHardwareProfile { @@ -6376,17 +6738,17 @@ export interface VirtualMachineScaleSetInstanceViewStatusesSummary { } // @public -export interface VirtualMachineScaleSetIPConfiguration extends SubResource { +export type VirtualMachineScaleSetIPConfiguration = SubResource & { + name: string; + subnet?: ApiEntityReference; + primary?: boolean; + publicIPAddressConfiguration?: VirtualMachineScaleSetPublicIPAddressConfiguration; + privateIPAddressVersion?: IPVersion; applicationGatewayBackendAddressPools?: SubResource[]; applicationSecurityGroups?: SubResource[]; loadBalancerBackendAddressPools?: SubResource[]; loadBalancerInboundNatPools?: SubResource[]; - name: string; - primary?: boolean; - privateIPAddressVersion?: IPVersion; - publicIPAddressConfiguration?: VirtualMachineScaleSetPublicIPAddressConfiguration; - subnet?: ApiEntityReference; -} +}; // @public export interface VirtualMachineScaleSetIpTag { @@ -6426,17 +6788,17 @@ export interface VirtualMachineScaleSetManagedDiskParameters { } // @public -export interface VirtualMachineScaleSetNetworkConfiguration extends SubResource { - deleteOption?: DeleteOptions; - dnsSettings?: VirtualMachineScaleSetNetworkConfigurationDnsSettings; +export type VirtualMachineScaleSetNetworkConfiguration = SubResource & { + name: string; + primary?: boolean; enableAcceleratedNetworking?: boolean; enableFpga?: boolean; - enableIPForwarding?: boolean; - ipConfigurations?: VirtualMachineScaleSetIPConfiguration[]; - name: string; networkSecurityGroup?: SubResource; - primary?: boolean; -} + dnsSettings?: VirtualMachineScaleSetNetworkConfigurationDnsSettings; + ipConfigurations?: VirtualMachineScaleSetIPConfiguration[]; + enableIPForwarding?: boolean; + deleteOption?: DeleteOptions; +}; // @public export interface VirtualMachineScaleSetNetworkConfigurationDnsSettings { @@ -6495,9 +6857,9 @@ export interface VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings { } // @public -export interface VirtualMachineScaleSetReimageParameters extends VirtualMachineScaleSetVMReimageParameters { +export type VirtualMachineScaleSetReimageParameters = VirtualMachineScaleSetVMReimageParameters & { instanceIds?: string[]; -} +}; // @public export interface VirtualMachineScaleSetRollingUpgrades { @@ -6804,46 +7166,46 @@ export interface VirtualMachineScaleSetsUpdateOptionalParams extends coreClient. export type VirtualMachineScaleSetsUpdateResponse = VirtualMachineScaleSet; // @public -export interface VirtualMachineScaleSetUpdate extends UpdateResource { - additionalCapabilities?: AdditionalCapabilities; - automaticRepairsPolicy?: AutomaticRepairsPolicy; - doNotRunExtensionsOnOverprovisionedVMs?: boolean; - identity?: VirtualMachineScaleSetIdentity; - overprovision?: boolean; - plan?: Plan; - proximityPlacementGroup?: SubResource; - scaleInPolicy?: ScaleInPolicy; - singlePlacementGroup?: boolean; +export type VirtualMachineScaleSetUpdate = UpdateResource & { sku?: Sku; + plan?: Plan; + identity?: VirtualMachineScaleSetIdentity; upgradePolicy?: UpgradePolicy; + automaticRepairsPolicy?: AutomaticRepairsPolicy; virtualMachineProfile?: VirtualMachineScaleSetUpdateVMProfile; -} + overprovision?: boolean; + doNotRunExtensionsOnOverprovisionedVMs?: boolean; + singlePlacementGroup?: boolean; + additionalCapabilities?: AdditionalCapabilities; + scaleInPolicy?: ScaleInPolicy; + proximityPlacementGroup?: SubResource; +}; // @public -export interface VirtualMachineScaleSetUpdateIPConfiguration extends SubResource { +export type VirtualMachineScaleSetUpdateIPConfiguration = SubResource & { + name?: string; + subnet?: ApiEntityReference; + primary?: boolean; + publicIPAddressConfiguration?: VirtualMachineScaleSetUpdatePublicIPAddressConfiguration; + privateIPAddressVersion?: IPVersion; applicationGatewayBackendAddressPools?: SubResource[]; applicationSecurityGroups?: SubResource[]; loadBalancerBackendAddressPools?: SubResource[]; loadBalancerInboundNatPools?: SubResource[]; - name?: string; - primary?: boolean; - privateIPAddressVersion?: IPVersion; - publicIPAddressConfiguration?: VirtualMachineScaleSetUpdatePublicIPAddressConfiguration; - subnet?: ApiEntityReference; -} +}; // @public -export interface VirtualMachineScaleSetUpdateNetworkConfiguration extends SubResource { - deleteOption?: DeleteOptions; - dnsSettings?: VirtualMachineScaleSetNetworkConfigurationDnsSettings; +export type VirtualMachineScaleSetUpdateNetworkConfiguration = SubResource & { + name?: string; + primary?: boolean; enableAcceleratedNetworking?: boolean; enableFpga?: boolean; - enableIPForwarding?: boolean; - ipConfigurations?: VirtualMachineScaleSetUpdateIPConfiguration[]; - name?: string; networkSecurityGroup?: SubResource; - primary?: boolean; -} + dnsSettings?: VirtualMachineScaleSetNetworkConfigurationDnsSettings; + ipConfigurations?: VirtualMachineScaleSetUpdateIPConfiguration[]; + enableIPForwarding?: boolean; + deleteOption?: DeleteOptions; +}; // @public export interface VirtualMachineScaleSetUpdateNetworkProfile { @@ -6902,49 +7264,49 @@ export interface VirtualMachineScaleSetUpdateVMProfile { } // @public -export interface VirtualMachineScaleSetVM extends Resource { - additionalCapabilities?: AdditionalCapabilities; - availabilitySet?: SubResource; - diagnosticsProfile?: DiagnosticsProfile; - hardwareProfile?: HardwareProfile; - identity?: VirtualMachineIdentity; +export type VirtualMachineScaleSetVM = Resource & { readonly instanceId?: string; - readonly instanceView?: VirtualMachineScaleSetVMInstanceView; + readonly sku?: Sku; + plan?: Plan; + readonly resources?: VirtualMachineExtension[]; + readonly zones?: string[]; + identity?: VirtualMachineIdentity; readonly latestModelApplied?: boolean; - licenseType?: string; - readonly modelDefinitionApplied?: string; + readonly vmId?: string; + readonly instanceView?: VirtualMachineScaleSetVMInstanceView; + hardwareProfile?: HardwareProfile; + storageProfile?: StorageProfile; + additionalCapabilities?: AdditionalCapabilities; + osProfile?: OSProfile; + securityProfile?: SecurityProfile; networkProfile?: NetworkProfile; networkProfileConfiguration?: VirtualMachineScaleSetVMNetworkProfileConfiguration; - osProfile?: OSProfile; - plan?: Plan; - protectionPolicy?: VirtualMachineScaleSetVMProtectionPolicy; + diagnosticsProfile?: DiagnosticsProfile; + availabilitySet?: SubResource; readonly provisioningState?: string; - readonly resources?: VirtualMachineExtension[]; - securityProfile?: SecurityProfile; - readonly sku?: Sku; - storageProfile?: StorageProfile; + licenseType?: string; + readonly modelDefinitionApplied?: string; + protectionPolicy?: VirtualMachineScaleSetVMProtectionPolicy; userData?: string; - readonly vmId?: string; - readonly zones?: string[]; -} +}; // @public -export interface VirtualMachineScaleSetVMExtension extends SubResourceReadOnly { +export type VirtualMachineScaleSetVMExtension = SubResourceReadOnly & { + readonly name?: string; + readonly type?: string; + forceUpdateTag?: string; + publisher?: string; + typePropertiesType?: string; + typeHandlerVersion?: string; autoUpgradeMinorVersion?: boolean; enableAutomaticUpgrade?: boolean; - forceUpdateTag?: string; - instanceView?: VirtualMachineExtensionInstanceView; - readonly name?: string; + settings?: any; protectedSettings?: any; - protectedSettingsFromKeyVault?: any; readonly provisioningState?: string; - publisher?: string; - settings?: any; + instanceView?: VirtualMachineExtensionInstanceView; suppressFailures?: boolean; - readonly type?: string; - typeHandlerVersion?: string; - typePropertiesType?: string; -} + protectedSettingsFromKeyVault?: any; +}; // @public export interface VirtualMachineScaleSetVMExtensions { @@ -7010,20 +7372,20 @@ export interface VirtualMachineScaleSetVMExtensionsUpdateOptionalParams extends export type VirtualMachineScaleSetVMExtensionsUpdateResponse = VirtualMachineScaleSetVMExtension; // @public -export interface VirtualMachineScaleSetVMExtensionUpdate extends SubResourceReadOnly { - autoUpgradeMinorVersion?: boolean; - enableAutomaticUpgrade?: boolean; - forceUpdateTag?: string; +export type VirtualMachineScaleSetVMExtensionUpdate = SubResourceReadOnly & { readonly name?: string; - protectedSettings?: any; - protectedSettingsFromKeyVault?: any; + readonly type?: string; + forceUpdateTag?: string; publisher?: string; + typePropertiesType?: string; + typeHandlerVersion?: string; + autoUpgradeMinorVersion?: boolean; + enableAutomaticUpgrade?: boolean; settings?: any; + protectedSettings?: any; suppressFailures?: boolean; - readonly type?: string; - typeHandlerVersion?: string; - typePropertiesType?: string; -} + protectedSettingsFromKeyVault?: any; +}; // @public export interface VirtualMachineScaleSetVMInstanceIDs { @@ -7088,8 +7450,7 @@ export interface VirtualMachineScaleSetVMProtectionPolicy { } // @public -export interface VirtualMachineScaleSetVMReimageParameters extends VirtualMachineReimageParameters { -} +export type VirtualMachineScaleSetVMReimageParameters = VirtualMachineReimageParameters & {}; // @public export interface VirtualMachineScaleSetVMRunCommands { @@ -7550,37 +7911,37 @@ export interface VirtualMachinesUpdateOptionalParams extends coreClient.Operatio export type VirtualMachinesUpdateResponse = VirtualMachine; // @public -export interface VirtualMachineUpdate extends UpdateResource { +export type VirtualMachineUpdate = UpdateResource & { + plan?: Plan; + identity?: VirtualMachineIdentity; + zones?: string[]; + hardwareProfile?: HardwareProfile; + storageProfile?: StorageProfile; additionalCapabilities?: AdditionalCapabilities; - applicationProfile?: ApplicationProfile; - availabilitySet?: SubResource; - billingProfile?: BillingProfile; - capacityReservation?: CapacityReservationProfile; + osProfile?: OSProfile; + networkProfile?: NetworkProfile; + securityProfile?: SecurityProfile; diagnosticsProfile?: DiagnosticsProfile; + availabilitySet?: SubResource; + virtualMachineScaleSet?: SubResource; + proximityPlacementGroup?: SubResource; + priority?: VirtualMachinePriorityTypes; evictionPolicy?: VirtualMachineEvictionPolicyTypes; - extensionsTimeBudget?: string; - hardwareProfile?: HardwareProfile; + billingProfile?: BillingProfile; host?: SubResource; hostGroup?: SubResource; - identity?: VirtualMachineIdentity; + readonly provisioningState?: string; readonly instanceView?: VirtualMachineInstanceView; licenseType?: string; - networkProfile?: NetworkProfile; - osProfile?: OSProfile; - plan?: Plan; + readonly vmId?: string; + extensionsTimeBudget?: string; platformFaultDomain?: number; - priority?: VirtualMachinePriorityTypes; - readonly provisioningState?: string; - proximityPlacementGroup?: SubResource; scheduledEventsProfile?: ScheduledEventsProfile; - securityProfile?: SecurityProfile; - storageProfile?: StorageProfile; - readonly timeCreated?: Date; userData?: string; - virtualMachineScaleSet?: SubResource; - readonly vmId?: string; - zones?: string[]; -} + capacityReservation?: CapacityReservationProfile; + applicationProfile?: ApplicationProfile; + readonly timeCreated?: Date; +}; // @public export interface VMDiskSecurityProfile { diff --git a/sdk/compute/arm-compute/src/computeManagementClient.ts b/sdk/compute/arm-compute/src/computeManagementClient.ts index ca06148ea743..a6fae2e8ec2e 100644 --- a/sdk/compute/arm-compute/src/computeManagementClient.ts +++ b/sdk/compute/arm-compute/src/computeManagementClient.ts @@ -151,6 +151,9 @@ export class ComputeManagementClient extends coreClient.ServiceClient { ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` : `${packageDetails}`; + if (!options.credentialScopes) { + options.credentialScopes = ["https://management.azure.com/.default"]; + } const optionsWithDefaults = { ...defaults, ...options, diff --git a/sdk/compute/arm-compute/src/models/index.ts b/sdk/compute/arm-compute/src/models/index.ts index 8d5fc8a46e68..5188bd95b5fe 100644 --- a/sdk/compute/arm-compute/src/models/index.ts +++ b/sdk/compute/arm-compute/src/models/index.ts @@ -4310,7 +4310,7 @@ export interface ManagedArtifact { } /** Specifies information about the image to use. You can specify information about platform images, marketplace images, or virtual machine images. This element is required when you want to use a platform image, marketplace image, or virtual machine image, but is not used in other creation operations. NOTE: Image reference publisher and offer can only be set when you create the scale set. */ -export interface ImageReference extends SubResource { +export type ImageReference = SubResource & { /** The image publisher. */ publisher?: string; /** Specifies the offer of the platform image or marketplace image used to create the virtual machine. */ @@ -4328,13 +4328,13 @@ export interface ImageReference extends SubResource { sharedGalleryImageId?: string; /** Specified the community gallery image unique id for vm deployment. This can be fetched from community gallery image GET call. */ communityGalleryImageId?: string; -} +}; /** Describes the parameter of customer managed disk encryption set resource id that can be specified for disk.

NOTE: The disk encryption set resource id can only be specified for managed disk. Please refer https://aka.ms/mdssewithcmkoverview for more details. */ -export interface DiskEncryptionSetParameters extends SubResource {} +export type DiskEncryptionSetParameters = SubResource & {}; /** Describes a virtual machine scale set network profile's IP configuration. */ -export interface VirtualMachineScaleSetIPConfiguration extends SubResource { +export type VirtualMachineScaleSetIPConfiguration = SubResource & { /** The IP configuration name. */ name: string; /** Specifies the identifier of the subnet. */ @@ -4353,11 +4353,10 @@ export interface VirtualMachineScaleSetIPConfiguration extends SubResource { loadBalancerBackendAddressPools?: SubResource[]; /** Specifies an array of references to inbound Nat pools of the load balancers. A scale set can reference inbound nat pools of one public and one internal load balancer. Multiple scale sets cannot use the same basic sku load balancer. */ loadBalancerInboundNatPools?: SubResource[]; -} +}; /** Describes a virtual machine scale set network profile's network configurations. */ -export interface VirtualMachineScaleSetNetworkConfiguration - extends SubResource { +export type VirtualMachineScaleSetNetworkConfiguration = SubResource & { /** The network configuration name. */ name: string; /** Specifies the primary network interface in case the virtual machine has more than 1 network interface. */ @@ -4376,11 +4375,10 @@ export interface VirtualMachineScaleSetNetworkConfiguration enableIPForwarding?: boolean; /** Specify what happens to the network interface when the VM is deleted */ deleteOption?: DeleteOptions; -} +}; /** Describes a virtual machine scale set network profile's IP configuration. NOTE: The subnet of a scale set may be modified as long as the original subnet and the new subnet are in the same virtual network */ -export interface VirtualMachineScaleSetUpdateIPConfiguration - extends SubResource { +export type VirtualMachineScaleSetUpdateIPConfiguration = SubResource & { /** The IP configuration name. */ name?: string; /** The subnet. */ @@ -4399,11 +4397,10 @@ export interface VirtualMachineScaleSetUpdateIPConfiguration loadBalancerBackendAddressPools?: SubResource[]; /** The load balancer inbound nat pools. */ loadBalancerInboundNatPools?: SubResource[]; -} +}; /** Describes a virtual machine scale set network profile's network configurations. */ -export interface VirtualMachineScaleSetUpdateNetworkConfiguration - extends SubResource { +export type VirtualMachineScaleSetUpdateNetworkConfiguration = SubResource & { /** The network configuration name. */ name?: string; /** Whether this is a primary NIC on a virtual machine. */ @@ -4422,28 +4419,28 @@ export interface VirtualMachineScaleSetUpdateNetworkConfiguration enableIPForwarding?: boolean; /** Specify what happens to the network interface when the VM is deleted */ deleteOption?: DeleteOptions; -} +}; /** The parameters of a managed disk. */ -export interface ManagedDiskParameters extends SubResource { +export type ManagedDiskParameters = SubResource & { /** Specifies the storage account type for the managed disk. NOTE: UltraSSD_LRS can only be used with data disks, it cannot be used with OS Disk. */ storageAccountType?: StorageAccountTypes; /** Specifies the customer managed disk encryption set resource id for the managed disk. */ diskEncryptionSet?: DiskEncryptionSetParameters; /** Specifies the security profile for the managed disk. */ securityProfile?: VMDiskSecurityProfile; -} +}; /** Describes a network interface reference. */ -export interface NetworkInterfaceReference extends SubResource { +export type NetworkInterfaceReference = SubResource & { /** Specifies the primary network interface in case the virtual machine has more than 1 network interface. */ primary?: boolean; /** Specify what happens to the network interface when the VM is deleted */ deleteOption?: DeleteOptions; -} +}; /** Output of virtual machine capture operation. */ -export interface VirtualMachineCaptureResult extends SubResource { +export type VirtualMachineCaptureResult = SubResource & { /** * the schema of the captured virtual machine * NOTE: This property will not be serialized. It can only be populated by the server. @@ -4464,10 +4461,10 @@ export interface VirtualMachineCaptureResult extends SubResource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly resources?: any[]; -} +}; /** Virtual machine image resource information. */ -export interface VirtualMachineImageResource extends SubResource { +export type VirtualMachineImageResource = SubResource & { /** The name of the resource. */ name: string; /** The supported Azure location of the resource. */ @@ -4476,15 +4473,15 @@ export interface VirtualMachineImageResource extends SubResource { tags?: { [propertyName: string]: string }; /** The extended location of the Virtual Machine. */ extendedLocation?: ExtendedLocation; -} +}; -export interface SubResourceWithColocationStatus extends SubResource { +export type SubResourceWithColocationStatus = SubResource & { /** Describes colocation status of a resource in the Proximity Placement Group. */ colocationStatus?: InstanceViewStatus; -} +}; /** Describes a Virtual Machine Scale Set Extension. */ -export interface VirtualMachineScaleSetExtension extends SubResourceReadOnly { +export type VirtualMachineScaleSetExtension = SubResourceReadOnly & { /** The name of the extension. */ name?: string; /** @@ -4519,11 +4516,10 @@ export interface VirtualMachineScaleSetExtension extends SubResourceReadOnly { suppressFailures?: boolean; /** The extensions protected settings that are passed by reference, and consumed from key vault */ protectedSettingsFromKeyVault?: any; -} +}; /** Describes a Virtual Machine Scale Set Extension. */ -export interface VirtualMachineScaleSetExtensionUpdate - extends SubResourceReadOnly { +export type VirtualMachineScaleSetExtensionUpdate = SubResourceReadOnly & { /** * The name of the extension. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -4561,10 +4557,10 @@ export interface VirtualMachineScaleSetExtensionUpdate suppressFailures?: boolean; /** The extensions protected settings that are passed by reference, and consumed from key vault */ protectedSettingsFromKeyVault?: any; -} +}; /** Describes a VMSS VM Extension. */ -export interface VirtualMachineScaleSetVMExtension extends SubResourceReadOnly { +export type VirtualMachineScaleSetVMExtension = SubResourceReadOnly & { /** * The name of the extension. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -4602,11 +4598,10 @@ export interface VirtualMachineScaleSetVMExtension extends SubResourceReadOnly { suppressFailures?: boolean; /** The extensions protected settings that are passed by reference, and consumed from key vault */ protectedSettingsFromKeyVault?: any; -} +}; /** Describes a VMSS VM Extension. */ -export interface VirtualMachineScaleSetVMExtensionUpdate - extends SubResourceReadOnly { +export type VirtualMachineScaleSetVMExtensionUpdate = SubResourceReadOnly & { /** * The name of the extension. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -4637,10 +4632,10 @@ export interface VirtualMachineScaleSetVMExtensionUpdate suppressFailures?: boolean; /** The extensions protected settings that are passed by reference, and consumed from key vault */ protectedSettingsFromKeyVault?: any; -} +}; /** Describes a Virtual Machine Scale Set. */ -export interface VirtualMachineScaleSet extends Resource { +export type VirtualMachineScaleSet = Resource & { /** The virtual machine scale set sku. */ sku?: Sku; /** Specifies information about the marketplace image used to create the virtual machine. This element is only used for marketplace images. Before you can use a marketplace image from an API, you must enable the image for programmatic use. In the Azure portal, find the marketplace image that you want to use and then click **Want to deploy programmatically, Get Started ->**. Enter any required information and then click **Save**. */ @@ -4694,10 +4689,10 @@ export interface VirtualMachineScaleSet extends Resource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly timeCreated?: Date; -} +}; /** The status of the latest virtual machine scale set rolling upgrade. */ -export interface RollingUpgradeStatusInfo extends Resource { +export type RollingUpgradeStatusInfo = Resource & { /** * The rolling upgrade policies applied for this upgrade. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -4718,10 +4713,10 @@ export interface RollingUpgradeStatusInfo extends Resource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly error?: ApiError; -} +}; /** Describes a virtual machine scale set virtual machine. */ -export interface VirtualMachineScaleSetVM extends Resource { +export type VirtualMachineScaleSetVM = Resource & { /** * The virtual machine instance ID. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -4795,10 +4790,10 @@ export interface VirtualMachineScaleSetVM extends Resource { protectionPolicy?: VirtualMachineScaleSetVMProtectionPolicy; /** UserData for the VM, which must be base-64 encoded. Customer should not pass any secrets in here.

Minimum api-version: 2021-03-01 */ userData?: string; -} +}; /** Describes a Virtual Machine. */ -export interface VirtualMachine extends Resource { +export type VirtualMachine = Resource & { /** Specifies information about the marketplace image used to create the virtual machine. This element is only used for marketplace images. Before you can use a marketplace image from an API, you must enable the image for programmatic use. In the Azure portal, find the marketplace image that you want to use and then click **Want to deploy programmatically, Get Started ->**. Enter any required information and then click **Save**. */ plan?: Plan; /** @@ -4876,10 +4871,10 @@ export interface VirtualMachine extends Resource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly timeCreated?: Date; -} +}; /** Describes a Virtual Machine Extension Image. */ -export interface VirtualMachineExtensionImage extends Resource { +export type VirtualMachineExtensionImage = Resource & { /** The operating system this extension supports. */ operatingSystem?: string; /** The type of role (IaaS or PaaS) this extension supports. */ @@ -4890,10 +4885,10 @@ export interface VirtualMachineExtensionImage extends Resource { vmScaleSetEnabled?: boolean; /** Whether the handler can support multiple extensions. */ supportsMultipleExtensions?: boolean; -} +}; /** Specifies information about the availability set that the virtual machine should be assigned to. Virtual machines specified in the same availability set are allocated to different nodes to maximize availability. For more information about availability sets, see [Availability sets overview](https://docs.microsoft.com/azure/virtual-machines/availability-set-overview).

For more information on Azure planned maintenance, see [Maintenance and updates for Virtual Machines in Azure](https://docs.microsoft.com/azure/virtual-machines/maintenance-and-updates)

Currently, a VM can only be added to availability set at creation time. An existing VM cannot be added to an availability set. */ -export interface AvailabilitySet extends Resource { +export type AvailabilitySet = Resource & { /** Sku of the availability set, only name is required to be set. See AvailabilitySetSkuTypes for possible set of values. Use 'Aligned' for virtual machines with managed disks and 'Classic' for virtual machines with unmanaged disks. Default value is 'Classic'. */ sku?: Sku; /** Update Domain count. */ @@ -4909,10 +4904,10 @@ export interface AvailabilitySet extends Resource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly statuses?: InstanceViewStatus[]; -} +}; /** Specifies information about the proximity placement group. */ -export interface ProximityPlacementGroup extends Resource { +export type ProximityPlacementGroup = Resource & { /** Specifies the Availability Zone where virtual machine, virtual machine scale set or availability set associated with the proximity placement group can be created. */ zones?: string[]; /** Specifies the type of the proximity placement group.

Possible values are:

**Standard** : Co-locate resources within an Azure region or Availability Zone.

**Ultra** : For future use. */ @@ -4936,10 +4931,10 @@ export interface ProximityPlacementGroup extends Resource { colocationStatus?: InstanceViewStatus; /** Specifies the user intent of the proximity placement group. */ intent?: ProximityPlacementGroupPropertiesIntent; -} +}; /** Specifies information about the dedicated host group that the dedicated hosts should be assigned to.

Currently, a dedicated host can only be added to a dedicated host group at creation time. An existing dedicated host cannot be added to another dedicated host group. */ -export interface DedicatedHostGroup extends Resource { +export type DedicatedHostGroup = Resource & { /** Availability Zone to use for this host group. Only single zone is supported. The zone can be assigned only during creation. If not provided, the group supports all zones in the region. If provided, enforces each host in the group to be in the same zone. */ zones?: string[]; /** Number of fault domains that the host group can span. */ @@ -4958,10 +4953,10 @@ export interface DedicatedHostGroup extends Resource { supportAutomaticPlacement?: boolean; /** Enables or disables a capability on the dedicated host group.

Minimum api-version: 2022-03-01. */ additionalCapabilities?: DedicatedHostGroupPropertiesAdditionalCapabilities; -} +}; /** Specifies information about the Dedicated host. */ -export interface DedicatedHost extends Resource { +export type DedicatedHost = Resource & { /** SKU of the dedicated host for Hardware Generation and VM family. Only name is required to be set. List Microsoft.Compute SKUs for a list of possible values. */ sku: Sku; /** Fault domain of the dedicated host within a dedicated host group. */ @@ -5000,16 +4995,16 @@ export interface DedicatedHost extends Resource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly timeCreated?: Date; -} +}; /** Specifies information about the SSH public key. */ -export interface SshPublicKeyResource extends Resource { +export type SshPublicKeyResource = Resource & { /** SSH public key used to authenticate to a virtual machine through ssh. If this property is not initially provided when the resource is created, the publicKey property will be populated when generateKeyPair is called. If the public key is provided upon resource creation, the provided public key needs to be at least 2048-bit and in ssh-rsa format. */ publicKey?: string; -} +}; /** The source user image virtual hard disk. The virtual hard disk will be copied before being attached to the virtual machine. If SourceImage is provided, the destination virtual hard drive must not exist. */ -export interface Image extends Resource { +export type Image = Resource & { /** The extended location of the Image. */ extendedLocation?: ExtendedLocation; /** The source virtual machine from which Image is created. */ @@ -5023,10 +5018,10 @@ export interface Image extends Resource { readonly provisioningState?: string; /** Specifies the HyperVGenerationType of the VirtualMachine created from the image. From API Version 2019-03-01 if the image source is a blob, then we need the user to specify the value, if the source is managed resource like disk or snapshot, we may require the user to specify the property if we cannot deduce it from the source managed resource. */ hyperVGeneration?: HyperVGenerationTypes; -} +}; /** Create or update Restore Point collection parameters. */ -export interface RestorePointCollection extends Resource { +export type RestorePointCollection = Resource & { /** The properties of the source resource that this restore point collection is created from. */ source?: RestorePointCollectionSourceProperties; /** @@ -5044,10 +5039,10 @@ export interface RestorePointCollection extends Resource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly restorePoints?: RestorePoint[]; -} +}; /** Specifies information about the capacity reservation group that the capacity reservations should be assigned to.

Currently, a capacity reservation can only be added to a capacity reservation group at creation time. An existing capacity reservation cannot be added or moved to another capacity reservation group. */ -export interface CapacityReservationGroup extends Resource { +export type CapacityReservationGroup = Resource & { /** Availability Zones to use for this capacity reservation group. The zones can be assigned only during creation. If not provided, the group supports only regional resources in the region. If provided, enforces each capacity reservation in the group to be in one of the zones. */ zones?: string[]; /** @@ -5065,10 +5060,10 @@ export interface CapacityReservationGroup extends Resource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly instanceView?: CapacityReservationGroupInstanceView; -} +}; /** Specifies information about the capacity reservation. */ -export interface CapacityReservation extends Resource { +export type CapacityReservation = Resource & { /** SKU of the resource for which capacity needs be reserved. The SKU name and capacity is required to be set. Currently VM Skus with the capability called 'CapacityReservationSupported' set to true are supported. Refer to List Microsoft.Compute SKUs in a region (https://docs.microsoft.com/rest/api/compute/resourceskus/list) for supported values. */ sku: Sku; /** Availability Zone to use for this capacity reservation. The zone has to be single value and also should be part for the list of zones specified during the capacity reservation group creation. The zone can be assigned only during creation. If not provided, the reservation supports only non-zonal deployments. If provided, enforces VM/VMSS using this capacity reservation to be in same zone. */ @@ -5103,10 +5098,10 @@ export interface CapacityReservation extends Resource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly timeCreated?: Date; -} +}; /** Describes a Virtual Machine run command. */ -export interface VirtualMachineRunCommand extends Resource { +export type VirtualMachineRunCommand = Resource & { /** The source of the run command script. */ source?: VirtualMachineRunCommandScriptSource; /** The parameters used by the script. */ @@ -5135,10 +5130,10 @@ export interface VirtualMachineRunCommand extends Resource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly instanceView?: VirtualMachineRunCommandInstanceView; -} +}; /** Disk resource. */ -export interface Disk extends Resource { +export type Disk = Resource & { /** * A relative URI containing the ID of the VM that has the disk attached. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -5234,10 +5229,10 @@ export interface Disk extends Resource { publicNetworkAccess?: PublicNetworkAccess; /** Additional authentication requirements when exporting or uploading to a disk or snapshot. */ dataAccessAuthMode?: DataAccessAuthMode; -} +}; /** disk access resource. */ -export interface DiskAccess extends Resource { +export type DiskAccess = Resource & { /** The extended location where the disk access will be created. Extended location cannot be changed. */ extendedLocation?: ExtendedLocation; /** @@ -5255,10 +5250,10 @@ export interface DiskAccess extends Resource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly timeCreated?: Date; -} +}; /** disk encryption set resource. */ -export interface DiskEncryptionSet extends Resource { +export type DiskEncryptionSet = Resource & { /** The managed identity for the disk encryption set. It should be given permission on the key vault before it can be used to encrypt disks. */ identity?: EncryptionSetIdentity; /** The type of key used to encrypt the data of the disk. */ @@ -5289,10 +5284,10 @@ export interface DiskEncryptionSet extends Resource { 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; -} +}; /** Snapshot resource. */ -export interface Snapshot extends Resource { +export type Snapshot = Resource & { /** * Unused. Always Null. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -5361,10 +5356,10 @@ export interface Snapshot extends Resource { 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. */ -export interface Gallery extends Resource { +export type Gallery = Resource & { /** The description of this Shared Image Gallery resource. This property is updatable. */ description?: string; /** Describes the gallery unique name. */ @@ -5383,10 +5378,10 @@ export interface Gallery extends Resource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly sharingStatus?: SharingStatus; -} +}; /** Specifies information about the gallery image definition that you want to create or update. */ -export interface GalleryImage extends Resource { +export type GalleryImage = Resource & { /** The description of this gallery image definition resource. This property is updatable. */ description?: string; /** The Eula agreement for the gallery image definition. */ @@ -5420,10 +5415,10 @@ export interface GalleryImage extends Resource { features?: GalleryImageFeature[]; /** 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. */ -export interface GalleryImageVersion extends Resource { +export type GalleryImageVersion = Resource & { /** The publishing profile of a gallery image Version. */ publishingProfile?: GalleryImageVersionPublishingProfile; /** @@ -5438,10 +5433,10 @@ export interface GalleryImageVersion extends Resource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly replicationStatus?: ReplicationStatus; -} +}; /** Specifies information about the gallery Application Definition that you want to create or update. */ -export interface GalleryApplication extends Resource { +export type GalleryApplication = Resource & { /** The description of this gallery Application Definition resource. This property is updatable. */ description?: string; /** The Eula agreement for the gallery Application Definition. */ @@ -5454,10 +5449,10 @@ export interface GalleryApplication extends Resource { endOfLifeDate?: Date; /** This property allows you to specify the supported type of the OS that application is built for.

Possible values are:

**Windows**

**Linux** */ supportedOSType?: OperatingSystemTypes; -} +}; /** Specifies information about the gallery Application Version that you want to create or update. */ -export interface GalleryApplicationVersion extends Resource { +export type GalleryApplicationVersion = Resource & { /** The publishing profile of a gallery image version. */ publishingProfile?: GalleryApplicationVersionPublishingProfile; /** @@ -5470,10 +5465,10 @@ export interface GalleryApplicationVersion extends Resource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly replicationStatus?: ReplicationStatus; -} +}; /** Describes a Virtual Machine Scale Set. */ -export interface VirtualMachineScaleSetUpdate extends UpdateResource { +export type VirtualMachineScaleSetUpdate = UpdateResource & { /** The virtual machine scale set sku. */ sku?: Sku; /** The purchase plan when deploying a virtual machine scale set from VM Marketplace images. */ @@ -5498,10 +5493,10 @@ export interface VirtualMachineScaleSetUpdate extends UpdateResource { scaleInPolicy?: ScaleInPolicy; /** Specifies information about the proximity placement group that the virtual machine scale set should be assigned to.

Minimum api-version: 2018-04-01. */ proximityPlacementGroup?: SubResource; -} +}; /** Describes a Virtual Machine Extension. */ -export interface VirtualMachineExtensionUpdate extends UpdateResource { +export type VirtualMachineExtensionUpdate = UpdateResource & { /** How the extension handler should be forced to update even if the extension configuration has not changed. */ forceUpdateTag?: string; /** The name of the extension handler publisher. */ @@ -5522,10 +5517,10 @@ export interface VirtualMachineExtensionUpdate extends UpdateResource { suppressFailures?: boolean; /** The extensions protected settings that are passed by reference, and consumed from key vault */ protectedSettingsFromKeyVault?: any; -} +}; /** Describes a Virtual Machine Update. */ -export interface VirtualMachineUpdate extends UpdateResource { +export type VirtualMachineUpdate = UpdateResource & { /** Specifies information about the marketplace image used to create the virtual machine. This element is only used for marketplace images. Before you can use a marketplace image from an API, you must enable the image for programmatic use. In the Azure portal, find the marketplace image that you want to use and then click **Want to deploy programmatically, Get Started ->**. Enter any required information and then click **Save**. */ plan?: Plan; /** The identity of the virtual machine, if configured. */ @@ -5596,10 +5591,10 @@ export interface VirtualMachineUpdate extends UpdateResource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly timeCreated?: Date; -} +}; /** Specifies information about the availability set that the virtual machine should be assigned to. Only tags may be updated. */ -export interface AvailabilitySetUpdate extends UpdateResource { +export type AvailabilitySetUpdate = UpdateResource & { /** Sku of the availability set */ sku?: Sku; /** Update Domain count. */ @@ -5615,13 +5610,13 @@ export interface AvailabilitySetUpdate extends UpdateResource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly statuses?: InstanceViewStatus[]; -} +}; /** Specifies information about the proximity placement group. */ -export interface ProximityPlacementGroupUpdate extends UpdateResource {} +export type ProximityPlacementGroupUpdate = UpdateResource & {}; /** Specifies information about the dedicated host group that the dedicated host should be assigned to. Only tags may be updated. */ -export interface DedicatedHostGroupUpdate extends UpdateResource { +export type DedicatedHostGroupUpdate = UpdateResource & { /** Availability Zone to use for this host group. Only single zone is supported. The zone can be assigned only during creation. If not provided, the group supports all zones in the region. If provided, enforces each host in the group to be in the same zone. */ zones?: string[]; /** Number of fault domains that the host group can span. */ @@ -5640,10 +5635,10 @@ export interface DedicatedHostGroupUpdate extends UpdateResource { supportAutomaticPlacement?: boolean; /** Enables or disables a capability on the dedicated host group.

Minimum api-version: 2022-03-01. */ additionalCapabilities?: DedicatedHostGroupPropertiesAdditionalCapabilities; -} +}; /** Specifies information about the dedicated host. Only tags, autoReplaceOnFailure and licenseType may be updated. */ -export interface DedicatedHostUpdate extends UpdateResource { +export type DedicatedHostUpdate = UpdateResource & { /** Fault domain of the dedicated host within a dedicated host group. */ platformFaultDomain?: number; /** Specifies whether the dedicated host should be replaced automatically in case of a failure. The value is defaulted to 'true' when not provided. */ @@ -5680,16 +5675,16 @@ export interface DedicatedHostUpdate extends UpdateResource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly timeCreated?: Date; -} +}; /** Specifies information about the SSH public key. */ -export interface SshPublicKeyUpdateResource extends UpdateResource { +export type SshPublicKeyUpdateResource = UpdateResource & { /** SSH public key used to authenticate to a virtual machine through ssh. If this property is not initially provided when the resource is created, the publicKey property will be populated when generateKeyPair is called. If the public key is provided upon resource creation, the provided public key needs to be at least 2048-bit and in ssh-rsa format. */ publicKey?: string; -} +}; /** The source user image virtual hard disk. Only tags may be updated. */ -export interface ImageUpdate extends UpdateResource { +export type ImageUpdate = UpdateResource & { /** The source virtual machine from which Image is created. */ sourceVirtualMachine?: SubResource; /** Specifies the storage settings for the virtual machine disks. */ @@ -5701,10 +5696,10 @@ export interface ImageUpdate extends UpdateResource { readonly provisioningState?: string; /** Specifies the HyperVGenerationType of the VirtualMachine created from the image. From API Version 2019-03-01 if the image source is a blob, then we need the user to specify the value, if the source is managed resource like disk or snapshot, we may require the user to specify the property if we cannot deduce it from the source managed resource. */ hyperVGeneration?: HyperVGenerationTypes; -} +}; /** Update Restore Point collection parameters. */ -export interface RestorePointCollectionUpdate extends UpdateResource { +export type RestorePointCollectionUpdate = UpdateResource & { /** The properties of the source resource that this restore point collection is created from. */ source?: RestorePointCollectionSourceProperties; /** @@ -5722,10 +5717,10 @@ export interface RestorePointCollectionUpdate extends UpdateResource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly restorePoints?: RestorePoint[]; -} +}; /** Specifies information about the capacity reservation group. Only tags can be updated. */ -export interface CapacityReservationGroupUpdate extends UpdateResource { +export type CapacityReservationGroupUpdate = UpdateResource & { /** * A list of all capacity reservation resource ids that belong to capacity reservation group. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -5741,10 +5736,10 @@ export interface CapacityReservationGroupUpdate extends UpdateResource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly instanceView?: CapacityReservationGroupInstanceView; -} +}; /** Specifies information about the capacity reservation. Only tags and sku.capacity can be updated. */ -export interface CapacityReservationUpdate extends UpdateResource { +export type CapacityReservationUpdate = UpdateResource & { /** SKU of the resource for which capacity needs be reserved. The SKU name and capacity is required to be set. Currently VM Skus with the capability called 'CapacityReservationSupported' set to true are supported. Refer to List Microsoft.Compute SKUs in a region (https://docs.microsoft.com/rest/api/compute/resourceskus/list) for supported values. */ sku?: Sku; /** @@ -5777,10 +5772,10 @@ export interface CapacityReservationUpdate extends UpdateResource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly timeCreated?: Date; -} +}; /** Describes a Virtual Machine run command. */ -export interface VirtualMachineRunCommandUpdate extends UpdateResource { +export type VirtualMachineRunCommandUpdate = UpdateResource & { /** The source of the run command script. */ source?: VirtualMachineRunCommandScriptSource; /** The parameters used by the script. */ @@ -5809,14 +5804,13 @@ export interface VirtualMachineRunCommandUpdate extends UpdateResource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly instanceView?: VirtualMachineRunCommandInstanceView; -} +}; /** Describes a Virtual Machine Scale Set VM Reimage Parameters. */ -export interface VirtualMachineScaleSetVMReimageParameters - extends VirtualMachineReimageParameters {} +export type VirtualMachineScaleSetVMReimageParameters = VirtualMachineReimageParameters & {}; /** Describes a Virtual Machine Extension. */ -export interface VirtualMachineExtension extends ResourceWithOptionalLocation { +export type VirtualMachineExtension = ResourceWithOptionalLocation & { /** How the extension handler should be forced to update even if the extension configuration has not changed. */ forceUpdateTag?: string; /** The name of the extension handler publisher. */ @@ -5844,34 +5838,33 @@ export interface VirtualMachineExtension extends ResourceWithOptionalLocation { suppressFailures?: boolean; /** The extensions protected settings that are passed by reference, and consumed from key vault */ protectedSettingsFromKeyVault?: any; -} +}; /** The instance view of a dedicated host that includes the name of the dedicated host. It is used for the response to the instance view of a dedicated host group. */ -export interface DedicatedHostInstanceViewWithName - extends DedicatedHostInstanceView { +export type DedicatedHostInstanceViewWithName = DedicatedHostInstanceView & { /** * The name of the dedicated host. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly name?: string; -} +}; /** Describes an Operating System disk. */ -export interface ImageOSDisk extends ImageDisk { +export type ImageOSDisk = ImageDisk & { /** This property allows you to specify the type of the OS that is included in the disk if creating a VM from a custom image.

Possible values are:

**Windows**

**Linux** */ osType: OperatingSystemTypes; /** The OS State. */ osState: OperatingSystemStateTypes; -} +}; /** Describes a data disk. */ -export interface ImageDataDisk extends ImageDisk { +export type ImageDataDisk = ImageDisk & { /** Specifies the logical unit number of the data disk. This value is used to identify data disks within the VM and therefore must be unique for each data disk attached to a VM. */ lun: number; -} +}; /** Restore Point details. */ -export interface RestorePoint extends ProxyResource { +export type RestorePoint = ProxyResource & { /** List of disk resource ids that the customer wishes to exclude from the restore point. If no disks are specified, all disks will be included. */ excludeDisks?: ApiEntityReference[]; /** @@ -5895,37 +5888,36 @@ export interface RestorePoint extends ProxyResource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly instanceView?: RestorePointInstanceView; -} +}; /** The instance view of a capacity reservation that includes the name of the capacity reservation. It is used for the response to the instance view of a capacity reservation group. */ -export interface CapacityReservationInstanceViewWithName - extends CapacityReservationInstanceView { +export type CapacityReservationInstanceViewWithName = CapacityReservationInstanceView & { /** * The name of the capacity reservation. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly name?: string; -} +}; /** Api request input for LogAnalytics getRequestRateByInterval Api. */ -export interface RequestRateByIntervalInput extends LogAnalyticsInputBase { +export type RequestRateByIntervalInput = LogAnalyticsInputBase & { /** Interval value in minutes used to create LogAnalytics call rate logs. */ intervalLength: IntervalInMins; -} +}; /** Api request input for LogAnalytics getThrottledRequests Api. */ -export interface ThrottledRequestsInput extends LogAnalyticsInputBase {} +export type ThrottledRequestsInput = LogAnalyticsInputBase & {}; /** Describes the properties of a Run Command. */ -export interface RunCommandDocument extends RunCommandDocumentBase { +export type RunCommandDocument = RunCommandDocumentBase & { /** The script to be executed. */ script: string[]; /** The parameters used by the script. */ parameters?: RunCommandParameterDefinition[]; -} +}; /** Properties of disk restore point */ -export interface DiskRestorePoint extends ProxyOnlyResource { +export type DiskRestorePoint = ProxyOnlyResource & { /** * The timestamp of restorePoint creation * NOTE: This property will not be serialized. It can only be populated by the server. @@ -5984,10 +5976,10 @@ export interface DiskRestorePoint extends ProxyOnlyResource { 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. */ -export interface GalleryUpdate extends UpdateResourceDefinition { +export type GalleryUpdate = UpdateResourceDefinition & { /** The description of this Shared Image Gallery resource. This property is updatable. */ description?: string; /** Describes the gallery unique name. */ @@ -6006,10 +5998,10 @@ export interface GalleryUpdate extends UpdateResourceDefinition { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly sharingStatus?: SharingStatus; -} +}; /** Specifies information about the gallery image definition that you want to update. */ -export interface GalleryImageUpdate extends UpdateResourceDefinition { +export type GalleryImageUpdate = UpdateResourceDefinition & { /** The description of this gallery image definition resource. This property is updatable. */ description?: string; /** The Eula agreement for the gallery image definition. */ @@ -6043,10 +6035,10 @@ export interface GalleryImageUpdate extends UpdateResourceDefinition { features?: GalleryImageFeature[]; /** The architecture of the image. Applicable to OS disks only. */ architecture?: Architecture; -} +}; /** Specifies information about the gallery image version that you want to update. */ -export interface GalleryImageVersionUpdate extends UpdateResourceDefinition { +export type GalleryImageVersionUpdate = UpdateResourceDefinition & { /** The publishing profile of a gallery image Version. */ publishingProfile?: GalleryImageVersionPublishingProfile; /** @@ -6061,10 +6053,10 @@ export interface GalleryImageVersionUpdate extends UpdateResourceDefinition { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly replicationStatus?: ReplicationStatus; -} +}; /** Specifies information about the gallery Application Definition that you want to update. */ -export interface GalleryApplicationUpdate extends UpdateResourceDefinition { +export type GalleryApplicationUpdate = UpdateResourceDefinition & { /** The description of this gallery Application Definition resource. This property is updatable. */ description?: string; /** The Eula agreement for the gallery Application Definition. */ @@ -6077,11 +6069,10 @@ export interface GalleryApplicationUpdate extends UpdateResourceDefinition { endOfLifeDate?: Date; /** This property allows you to specify the supported type of the OS that application is built for.

Possible values are:

**Windows**

**Linux** */ supportedOSType?: OperatingSystemTypes; -} +}; /** Specifies information about the gallery Application Version that you want to update. */ -export interface GalleryApplicationVersionUpdate - extends UpdateResourceDefinition { +export type GalleryApplicationVersionUpdate = UpdateResourceDefinition & { /** The publishing profile of a gallery image version. */ publishingProfile?: GalleryApplicationVersionPublishingProfile; /** @@ -6094,15 +6085,13 @@ export interface GalleryApplicationVersionUpdate * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly replicationStatus?: ReplicationStatus; -} +}; /** The publishing profile of a gallery image Version. */ -export interface GalleryImageVersionPublishingProfile - extends GalleryArtifactPublishingProfileBase {} +export type GalleryImageVersionPublishingProfile = GalleryArtifactPublishingProfileBase & {}; /** The publishing profile of a gallery image version. */ -export interface GalleryApplicationVersionPublishingProfile - extends GalleryArtifactPublishingProfileBase { +export type GalleryApplicationVersionPublishingProfile = GalleryArtifactPublishingProfileBase & { /** The source image from which the Image Version is going to be created. */ source: UserArtifactSource; manageActions?: UserArtifactManage; @@ -6112,49 +6101,49 @@ export interface GalleryApplicationVersionPublishingProfile advancedSettings?: { [propertyName: string]: string }; /** Optional. Whether or not this application reports health. */ enableHealthCheck?: boolean; -} +}; /** Contains encryption settings for an OS disk image. */ -export interface OSDiskImageEncryption extends DiskImageEncryption { +export type OSDiskImageEncryption = DiskImageEncryption & { /** This property specifies the security profile of an OS disk image. */ securityProfile?: OSDiskImageSecurityProfile; -} +}; /** Contains encryption settings for a data disk image. */ -export interface DataDiskImageEncryption extends DiskImageEncryption { +export type DataDiskImageEncryption = DiskImageEncryption & { /** 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; -} +}; /** This is the OS disk image. */ -export interface GalleryOSDiskImage extends GalleryDiskImage {} +export type GalleryOSDiskImage = GalleryDiskImage & {}; /** This is the data disk image. */ -export interface GalleryDataDiskImage extends GalleryDiskImage { +export type GalleryDataDiskImage = GalleryDiskImage & { /** 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; -} +}; /** Base information about the shared gallery resource in pir. */ -export interface PirSharedGalleryResource extends PirResource { +export type PirSharedGalleryResource = PirResource & { /** The unique id of this shared gallery. */ uniqueId?: string; -} +}; /** This is the OS disk image. */ -export interface SharedGalleryOSDiskImage extends SharedGalleryDiskImage {} +export type SharedGalleryOSDiskImage = SharedGalleryDiskImage & {}; /** This is the data disk image. */ -export interface SharedGalleryDataDiskImage extends SharedGalleryDiskImage { +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 interface CommunityGallery extends PirCommunityGalleryResource {} +export type CommunityGallery = PirCommunityGalleryResource & {}; /** Specifies information about the gallery image definition that you want to create or update. */ -export interface CommunityGalleryImage extends PirCommunityGalleryResource { +export type CommunityGalleryImage = PirCommunityGalleryResource & { /** This property allows you to specify the type of the OS that is included in the disk when creating a VM from a managed image.

Possible values are:

**Windows**

**Linux** */ osType?: OperatingSystemTypes; /** This property allows the user to specify whether the virtual machines created under this image are 'Generalized' or 'Specialized'. */ @@ -6179,11 +6168,10 @@ export interface CommunityGalleryImage extends PirCommunityGalleryResource { 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. */ -export interface CommunityGalleryImageVersion - extends PirCommunityGalleryResource { +export type CommunityGalleryImageVersion = PirCommunityGalleryResource & { /** The published date of the gallery image version Definition. This property can be used for decommissioning purposes. This property is updatable. */ publishedDate?: Date; /** The end of life date of the gallery image version Definition. This property can be used for decommissioning purposes. This property is updatable. */ @@ -6192,10 +6180,10 @@ export interface CommunityGalleryImageVersion excludeFromLatest?: boolean; /** Describes the storage profile of the image version. */ storageProfile?: SharedGalleryImageVersionStorageProfile; -} +}; /** Describes a Virtual Machine Image. */ -export interface VirtualMachineImage extends VirtualMachineImageResource { +export type VirtualMachineImage = VirtualMachineImageResource & { /** Used for establishing the purchase context of any 3rd Party artifact through MarketPlace. */ plan?: PurchasePlan; /** Contains the os disk image information. */ @@ -6210,20 +6198,19 @@ export interface VirtualMachineImage extends VirtualMachineImageResource { features?: VirtualMachineImageFeature[]; /** Specifies the Architecture Type */ architecture?: ArchitectureTypes; -} +}; /** Describes a Virtual Machine Scale Set VM Reimage Parameters. */ -export interface VirtualMachineScaleSetReimageParameters - extends VirtualMachineScaleSetVMReimageParameters { +export type VirtualMachineScaleSetReimageParameters = VirtualMachineScaleSetVMReimageParameters & { /** The virtual machine scale set instance ids. Omitting the virtual machine scale set instance ids will result in the operation being performed on all virtual machines in the virtual machine scale set. */ instanceIds?: string[]; -} +}; /** Specifies information about the Shared Gallery that you want to create or update. */ -export interface SharedGallery extends PirSharedGalleryResource {} +export type SharedGallery = PirSharedGalleryResource & {}; /** Specifies information about the gallery image definition that you want to create or update. */ -export interface SharedGalleryImage extends PirSharedGalleryResource { +export type SharedGalleryImage = PirSharedGalleryResource & { /** This property allows you to specify the type of the OS that is included in the disk when creating a VM from a managed image.

Possible values are:

**Windows**

**Linux** */ osType?: OperatingSystemTypes; /** This property allows the user to specify whether the virtual machines created under this image are 'Generalized' or 'Specialized'. */ @@ -6244,10 +6231,10 @@ export interface SharedGalleryImage extends PirSharedGalleryResource { 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. */ -export interface SharedGalleryImageVersion extends PirSharedGalleryResource { +export type SharedGalleryImageVersion = PirSharedGalleryResource & { /** The published date of the gallery image version Definition. This property can be used for decommissioning purposes. This property is updatable. */ publishedDate?: Date; /** The end of life date of the gallery image version Definition. This property can be used for decommissioning purposes. This property is updatable. */ @@ -6256,15 +6243,12 @@ export interface SharedGalleryImageVersion extends PirSharedGalleryResource { excludeFromLatest?: boolean; /** Describes the storage profile of the image version. */ storageProfile?: SharedGalleryImageVersionStorageProfile; -} +}; /** Known values of {@link RepairAction} that the service accepts. */ export enum KnownRepairAction { - /** Replace */ Replace = "Replace", - /** Restart */ Restart = "Restart", - /** Reimage */ Reimage = "Reimage" } @@ -6281,11 +6265,8 @@ export type RepairAction = string; /** Known values of {@link WindowsVMGuestPatchMode} that the service accepts. */ export enum KnownWindowsVMGuestPatchMode { - /** Manual */ Manual = "Manual", - /** AutomaticByOS */ AutomaticByOS = "AutomaticByOS", - /** AutomaticByPlatform */ AutomaticByPlatform = "AutomaticByPlatform" } @@ -6302,9 +6283,7 @@ export type WindowsVMGuestPatchMode = string; /** Known values of {@link WindowsPatchAssessmentMode} that the service accepts. */ export enum KnownWindowsPatchAssessmentMode { - /** ImageDefault */ ImageDefault = "ImageDefault", - /** AutomaticByPlatform */ AutomaticByPlatform = "AutomaticByPlatform" } @@ -6320,13 +6299,9 @@ export type WindowsPatchAssessmentMode = string; /** Known values of {@link WindowsVMGuestPatchAutomaticByPlatformRebootSetting} that the service accepts. */ export enum KnownWindowsVMGuestPatchAutomaticByPlatformRebootSetting { - /** Unknown */ Unknown = "Unknown", - /** IfRequired */ IfRequired = "IfRequired", - /** Never */ Never = "Never", - /** Always */ Always = "Always" } @@ -6344,9 +6319,7 @@ export type WindowsVMGuestPatchAutomaticByPlatformRebootSetting = string; /** Known values of {@link LinuxVMGuestPatchMode} that the service accepts. */ export enum KnownLinuxVMGuestPatchMode { - /** ImageDefault */ ImageDefault = "ImageDefault", - /** AutomaticByPlatform */ AutomaticByPlatform = "AutomaticByPlatform" } @@ -6362,9 +6335,7 @@ export type LinuxVMGuestPatchMode = string; /** Known values of {@link LinuxPatchAssessmentMode} that the service accepts. */ export enum KnownLinuxPatchAssessmentMode { - /** ImageDefault */ ImageDefault = "ImageDefault", - /** AutomaticByPlatform */ AutomaticByPlatform = "AutomaticByPlatform" } @@ -6380,13 +6351,9 @@ export type LinuxPatchAssessmentMode = string; /** Known values of {@link LinuxVMGuestPatchAutomaticByPlatformRebootSetting} that the service accepts. */ export enum KnownLinuxVMGuestPatchAutomaticByPlatformRebootSetting { - /** Unknown */ Unknown = "Unknown", - /** IfRequired */ IfRequired = "IfRequired", - /** Never */ Never = "Never", - /** Always */ Always = "Always" } @@ -6404,11 +6371,8 @@ export type LinuxVMGuestPatchAutomaticByPlatformRebootSetting = string; /** Known values of {@link DiskCreateOptionTypes} that the service accepts. */ export enum KnownDiskCreateOptionTypes { - /** FromImage */ FromImage = "FromImage", - /** Empty */ Empty = "Empty", - /** Attach */ Attach = "Attach" } @@ -6425,7 +6389,6 @@ export type DiskCreateOptionTypes = string; /** Known values of {@link DiffDiskOptions} that the service accepts. */ export enum KnownDiffDiskOptions { - /** Local */ Local = "Local" } @@ -6440,9 +6403,7 @@ export type DiffDiskOptions = string; /** Known values of {@link DiffDiskPlacement} that the service accepts. */ export enum KnownDiffDiskPlacement { - /** CacheDisk */ CacheDisk = "CacheDisk", - /** ResourceDisk */ ResourceDisk = "ResourceDisk" } @@ -6458,19 +6419,12 @@ export type DiffDiskPlacement = string; /** Known values of {@link StorageAccountTypes} that the service accepts. */ export enum KnownStorageAccountTypes { - /** StandardLRS */ StandardLRS = "Standard_LRS", - /** PremiumLRS */ PremiumLRS = "Premium_LRS", - /** StandardSSDLRS */ StandardSSDLRS = "StandardSSD_LRS", - /** UltraSSDLRS */ UltraSSDLRS = "UltraSSD_LRS", - /** PremiumZRS */ PremiumZRS = "Premium_ZRS", - /** StandardSSDZRS */ StandardSSDZRS = "StandardSSD_ZRS", - /** PremiumV2LRS */ PremiumV2LRS = "PremiumV2_LRS" } @@ -6491,9 +6445,7 @@ export type StorageAccountTypes = string; /** Known values of {@link SecurityEncryptionTypes} that the service accepts. */ export enum KnownSecurityEncryptionTypes { - /** VMGuestStateOnly */ VMGuestStateOnly = "VMGuestStateOnly", - /** DiskWithVMGuestState */ DiskWithVMGuestState = "DiskWithVMGuestState" } @@ -6509,9 +6461,7 @@ export type SecurityEncryptionTypes = string; /** Known values of {@link DiskDeleteOptionTypes} that the service accepts. */ export enum KnownDiskDeleteOptionTypes { - /** Delete */ Delete = "Delete", - /** Detach */ Detach = "Detach" } @@ -6527,9 +6477,7 @@ export type DiskDeleteOptionTypes = string; /** Known values of {@link IPVersion} that the service accepts. */ export enum KnownIPVersion { - /** IPv4 */ IPv4 = "IPv4", - /** IPv6 */ IPv6 = "IPv6" } @@ -6545,9 +6493,7 @@ export type IPVersion = string; /** Known values of {@link DeleteOptions} that the service accepts. */ export enum KnownDeleteOptions { - /** Delete */ Delete = "Delete", - /** Detach */ Detach = "Detach" } @@ -6563,9 +6509,7 @@ export type DeleteOptions = string; /** Known values of {@link PublicIPAddressSkuName} that the service accepts. */ export enum KnownPublicIPAddressSkuName { - /** Basic */ Basic = "Basic", - /** Standard */ Standard = "Standard" } @@ -6581,9 +6525,7 @@ export type PublicIPAddressSkuName = string; /** Known values of {@link PublicIPAddressSkuTier} that the service accepts. */ export enum KnownPublicIPAddressSkuTier { - /** Regional */ Regional = "Regional", - /** Global */ Global = "Global" } @@ -6599,7 +6541,6 @@ export type PublicIPAddressSkuTier = string; /** Known values of {@link NetworkApiVersion} that the service accepts. */ export enum KnownNetworkApiVersion { - /** TwoThousandTwenty1101 */ TwoThousandTwenty1101 = "2020-11-01" } @@ -6614,9 +6555,7 @@ export type NetworkApiVersion = string; /** Known values of {@link SecurityTypes} that the service accepts. */ export enum KnownSecurityTypes { - /** TrustedLaunch */ TrustedLaunch = "TrustedLaunch", - /** ConfidentialVM */ ConfidentialVM = "ConfidentialVM" } @@ -6632,11 +6571,8 @@ export type SecurityTypes = string; /** Known values of {@link VirtualMachinePriorityTypes} that the service accepts. */ export enum KnownVirtualMachinePriorityTypes { - /** Regular */ Regular = "Regular", - /** Low */ Low = "Low", - /** Spot */ Spot = "Spot" } @@ -6653,9 +6589,7 @@ export type VirtualMachinePriorityTypes = string; /** Known values of {@link VirtualMachineEvictionPolicyTypes} that the service accepts. */ export enum KnownVirtualMachineEvictionPolicyTypes { - /** Deallocate */ Deallocate = "Deallocate", - /** Delete */ Delete = "Delete" } @@ -6671,11 +6605,8 @@ export type VirtualMachineEvictionPolicyTypes = string; /** Known values of {@link VirtualMachineScaleSetScaleInRules} that the service accepts. */ export enum KnownVirtualMachineScaleSetScaleInRules { - /** Default */ Default = "Default", - /** OldestVM */ OldestVM = "OldestVM", - /** NewestVM */ NewestVM = "NewestVM" } @@ -6692,9 +6623,7 @@ export type VirtualMachineScaleSetScaleInRules = string; /** Known values of {@link OrchestrationMode} that the service accepts. */ export enum KnownOrchestrationMode { - /** Uniform */ Uniform = "Uniform", - /** Flexible */ Flexible = "Flexible" } @@ -6710,7 +6639,6 @@ export type OrchestrationMode = string; /** Known values of {@link ExtendedLocationTypes} that the service accepts. */ export enum KnownExtendedLocationTypes { - /** EdgeZone */ EdgeZone = "EdgeZone" } @@ -6725,7 +6653,6 @@ export type ExtendedLocationTypes = string; /** Known values of {@link ExpandTypesForGetVMScaleSets} that the service accepts. */ export enum KnownExpandTypesForGetVMScaleSets { - /** UserData */ UserData = "userData" } @@ -6740,9 +6667,7 @@ export type ExpandTypesForGetVMScaleSets = string; /** Known values of {@link OrchestrationServiceNames} that the service accepts. */ export enum KnownOrchestrationServiceNames { - /** AutomaticRepairs */ AutomaticRepairs = "AutomaticRepairs", - /** DummyOrchestrationServiceName */ DummyOrchestrationServiceName = "DummyOrchestrationServiceName" } @@ -6758,11 +6683,8 @@ export type OrchestrationServiceNames = string; /** Known values of {@link OrchestrationServiceState} that the service accepts. */ export enum KnownOrchestrationServiceState { - /** NotRunning */ NotRunning = "NotRunning", - /** Running */ Running = "Running", - /** Suspended */ Suspended = "Suspended" } @@ -6779,9 +6701,7 @@ export type OrchestrationServiceState = string; /** Known values of {@link OrchestrationServiceStateAction} that the service accepts. */ export enum KnownOrchestrationServiceStateAction { - /** Resume */ Resume = "Resume", - /** Suspend */ Suspend = "Suspend" } @@ -6797,337 +6717,171 @@ export type OrchestrationServiceStateAction = string; /** Known values of {@link VirtualMachineSizeTypes} that the service accepts. */ export enum KnownVirtualMachineSizeTypes { - /** BasicA0 */ BasicA0 = "Basic_A0", - /** BasicA1 */ BasicA1 = "Basic_A1", - /** BasicA2 */ BasicA2 = "Basic_A2", - /** BasicA3 */ BasicA3 = "Basic_A3", - /** BasicA4 */ BasicA4 = "Basic_A4", - /** StandardA0 */ StandardA0 = "Standard_A0", - /** StandardA1 */ StandardA1 = "Standard_A1", - /** StandardA2 */ StandardA2 = "Standard_A2", - /** StandardA3 */ StandardA3 = "Standard_A3", - /** StandardA4 */ StandardA4 = "Standard_A4", - /** StandardA5 */ StandardA5 = "Standard_A5", - /** StandardA6 */ StandardA6 = "Standard_A6", - /** StandardA7 */ StandardA7 = "Standard_A7", - /** StandardA8 */ StandardA8 = "Standard_A8", - /** StandardA9 */ StandardA9 = "Standard_A9", - /** StandardA10 */ StandardA10 = "Standard_A10", - /** StandardA11 */ StandardA11 = "Standard_A11", - /** StandardA1V2 */ StandardA1V2 = "Standard_A1_v2", - /** StandardA2V2 */ StandardA2V2 = "Standard_A2_v2", - /** StandardA4V2 */ StandardA4V2 = "Standard_A4_v2", - /** StandardA8V2 */ StandardA8V2 = "Standard_A8_v2", - /** StandardA2MV2 */ StandardA2MV2 = "Standard_A2m_v2", - /** StandardA4MV2 */ StandardA4MV2 = "Standard_A4m_v2", - /** StandardA8MV2 */ StandardA8MV2 = "Standard_A8m_v2", - /** StandardB1S */ StandardB1S = "Standard_B1s", - /** StandardB1Ms */ StandardB1Ms = "Standard_B1ms", - /** StandardB2S */ StandardB2S = "Standard_B2s", - /** StandardB2Ms */ StandardB2Ms = "Standard_B2ms", - /** StandardB4Ms */ StandardB4Ms = "Standard_B4ms", - /** StandardB8Ms */ StandardB8Ms = "Standard_B8ms", - /** StandardD1 */ StandardD1 = "Standard_D1", - /** StandardD2 */ StandardD2 = "Standard_D2", - /** StandardD3 */ StandardD3 = "Standard_D3", - /** StandardD4 */ StandardD4 = "Standard_D4", - /** StandardD11 */ StandardD11 = "Standard_D11", - /** StandardD12 */ StandardD12 = "Standard_D12", - /** StandardD13 */ StandardD13 = "Standard_D13", - /** StandardD14 */ StandardD14 = "Standard_D14", - /** StandardD1V2 */ StandardD1V2 = "Standard_D1_v2", - /** StandardD2V2 */ StandardD2V2 = "Standard_D2_v2", - /** StandardD3V2 */ StandardD3V2 = "Standard_D3_v2", - /** StandardD4V2 */ StandardD4V2 = "Standard_D4_v2", - /** StandardD5V2 */ StandardD5V2 = "Standard_D5_v2", - /** StandardD2V3 */ StandardD2V3 = "Standard_D2_v3", - /** StandardD4V3 */ StandardD4V3 = "Standard_D4_v3", - /** StandardD8V3 */ StandardD8V3 = "Standard_D8_v3", - /** StandardD16V3 */ StandardD16V3 = "Standard_D16_v3", - /** StandardD32V3 */ StandardD32V3 = "Standard_D32_v3", - /** StandardD64V3 */ StandardD64V3 = "Standard_D64_v3", - /** StandardD2SV3 */ StandardD2SV3 = "Standard_D2s_v3", - /** StandardD4SV3 */ StandardD4SV3 = "Standard_D4s_v3", - /** StandardD8SV3 */ StandardD8SV3 = "Standard_D8s_v3", - /** StandardD16SV3 */ StandardD16SV3 = "Standard_D16s_v3", - /** StandardD32SV3 */ StandardD32SV3 = "Standard_D32s_v3", - /** StandardD64SV3 */ StandardD64SV3 = "Standard_D64s_v3", - /** StandardD11V2 */ StandardD11V2 = "Standard_D11_v2", - /** StandardD12V2 */ StandardD12V2 = "Standard_D12_v2", - /** StandardD13V2 */ StandardD13V2 = "Standard_D13_v2", - /** StandardD14V2 */ StandardD14V2 = "Standard_D14_v2", - /** StandardD15V2 */ StandardD15V2 = "Standard_D15_v2", - /** StandardDS1 */ StandardDS1 = "Standard_DS1", - /** StandardDS2 */ StandardDS2 = "Standard_DS2", - /** StandardDS3 */ StandardDS3 = "Standard_DS3", - /** StandardDS4 */ StandardDS4 = "Standard_DS4", - /** StandardDS11 */ StandardDS11 = "Standard_DS11", - /** StandardDS12 */ StandardDS12 = "Standard_DS12", - /** StandardDS13 */ StandardDS13 = "Standard_DS13", - /** StandardDS14 */ StandardDS14 = "Standard_DS14", - /** StandardDS1V2 */ StandardDS1V2 = "Standard_DS1_v2", - /** StandardDS2V2 */ StandardDS2V2 = "Standard_DS2_v2", - /** StandardDS3V2 */ StandardDS3V2 = "Standard_DS3_v2", - /** StandardDS4V2 */ StandardDS4V2 = "Standard_DS4_v2", - /** StandardDS5V2 */ StandardDS5V2 = "Standard_DS5_v2", - /** StandardDS11V2 */ StandardDS11V2 = "Standard_DS11_v2", - /** StandardDS12V2 */ StandardDS12V2 = "Standard_DS12_v2", - /** StandardDS13V2 */ StandardDS13V2 = "Standard_DS13_v2", - /** StandardDS14V2 */ StandardDS14V2 = "Standard_DS14_v2", - /** StandardDS15V2 */ StandardDS15V2 = "Standard_DS15_v2", - /** StandardDS134V2 */ StandardDS134V2 = "Standard_DS13-4_v2", - /** StandardDS132V2 */ StandardDS132V2 = "Standard_DS13-2_v2", - /** StandardDS148V2 */ StandardDS148V2 = "Standard_DS14-8_v2", - /** StandardDS144V2 */ StandardDS144V2 = "Standard_DS14-4_v2", - /** StandardE2V3 */ StandardE2V3 = "Standard_E2_v3", - /** StandardE4V3 */ StandardE4V3 = "Standard_E4_v3", - /** StandardE8V3 */ StandardE8V3 = "Standard_E8_v3", - /** StandardE16V3 */ StandardE16V3 = "Standard_E16_v3", - /** StandardE32V3 */ StandardE32V3 = "Standard_E32_v3", - /** StandardE64V3 */ StandardE64V3 = "Standard_E64_v3", - /** StandardE2SV3 */ StandardE2SV3 = "Standard_E2s_v3", - /** StandardE4SV3 */ StandardE4SV3 = "Standard_E4s_v3", - /** StandardE8SV3 */ StandardE8SV3 = "Standard_E8s_v3", - /** StandardE16SV3 */ StandardE16SV3 = "Standard_E16s_v3", - /** StandardE32SV3 */ StandardE32SV3 = "Standard_E32s_v3", - /** StandardE64SV3 */ StandardE64SV3 = "Standard_E64s_v3", - /** StandardE3216V3 */ StandardE3216V3 = "Standard_E32-16_v3", - /** StandardE328SV3 */ StandardE328SV3 = "Standard_E32-8s_v3", - /** StandardE6432SV3 */ StandardE6432SV3 = "Standard_E64-32s_v3", - /** StandardE6416SV3 */ StandardE6416SV3 = "Standard_E64-16s_v3", - /** StandardF1 */ StandardF1 = "Standard_F1", - /** StandardF2 */ StandardF2 = "Standard_F2", - /** StandardF4 */ StandardF4 = "Standard_F4", - /** StandardF8 */ StandardF8 = "Standard_F8", - /** StandardF16 */ StandardF16 = "Standard_F16", - /** StandardF1S */ StandardF1S = "Standard_F1s", - /** StandardF2S */ StandardF2S = "Standard_F2s", - /** StandardF4S */ StandardF4S = "Standard_F4s", - /** StandardF8S */ StandardF8S = "Standard_F8s", - /** StandardF16S */ StandardF16S = "Standard_F16s", - /** StandardF2SV2 */ StandardF2SV2 = "Standard_F2s_v2", - /** StandardF4SV2 */ StandardF4SV2 = "Standard_F4s_v2", - /** StandardF8SV2 */ StandardF8SV2 = "Standard_F8s_v2", - /** StandardF16SV2 */ StandardF16SV2 = "Standard_F16s_v2", - /** StandardF32SV2 */ StandardF32SV2 = "Standard_F32s_v2", - /** StandardF64SV2 */ StandardF64SV2 = "Standard_F64s_v2", - /** StandardF72SV2 */ StandardF72SV2 = "Standard_F72s_v2", - /** StandardG1 */ StandardG1 = "Standard_G1", - /** StandardG2 */ StandardG2 = "Standard_G2", - /** StandardG3 */ StandardG3 = "Standard_G3", - /** StandardG4 */ StandardG4 = "Standard_G4", - /** StandardG5 */ StandardG5 = "Standard_G5", - /** StandardGS1 */ StandardGS1 = "Standard_GS1", - /** StandardGS2 */ StandardGS2 = "Standard_GS2", - /** StandardGS3 */ StandardGS3 = "Standard_GS3", - /** StandardGS4 */ StandardGS4 = "Standard_GS4", - /** StandardGS5 */ StandardGS5 = "Standard_GS5", - /** StandardGS48 */ StandardGS48 = "Standard_GS4-8", - /** StandardGS44 */ StandardGS44 = "Standard_GS4-4", - /** StandardGS516 */ StandardGS516 = "Standard_GS5-16", - /** StandardGS58 */ StandardGS58 = "Standard_GS5-8", - /** StandardH8 */ StandardH8 = "Standard_H8", - /** StandardH16 */ StandardH16 = "Standard_H16", - /** StandardH8M */ StandardH8M = "Standard_H8m", - /** StandardH16M */ StandardH16M = "Standard_H16m", - /** StandardH16R */ StandardH16R = "Standard_H16r", - /** StandardH16Mr */ StandardH16Mr = "Standard_H16mr", - /** StandardL4S */ StandardL4S = "Standard_L4s", - /** StandardL8S */ StandardL8S = "Standard_L8s", - /** StandardL16S */ StandardL16S = "Standard_L16s", - /** StandardL32S */ StandardL32S = "Standard_L32s", - /** StandardM64S */ StandardM64S = "Standard_M64s", - /** StandardM64Ms */ StandardM64Ms = "Standard_M64ms", - /** StandardM128S */ StandardM128S = "Standard_M128s", - /** StandardM128Ms */ StandardM128Ms = "Standard_M128ms", - /** StandardM6432Ms */ StandardM6432Ms = "Standard_M64-32ms", - /** StandardM6416Ms */ StandardM6416Ms = "Standard_M64-16ms", - /** StandardM12864Ms */ StandardM12864Ms = "Standard_M128-64ms", - /** StandardM12832Ms */ StandardM12832Ms = "Standard_M128-32ms", - /** StandardNC6 */ StandardNC6 = "Standard_NC6", - /** StandardNC12 */ StandardNC12 = "Standard_NC12", - /** StandardNC24 */ StandardNC24 = "Standard_NC24", - /** StandardNC24R */ StandardNC24R = "Standard_NC24r", - /** StandardNC6SV2 */ StandardNC6SV2 = "Standard_NC6s_v2", - /** StandardNC12SV2 */ StandardNC12SV2 = "Standard_NC12s_v2", - /** StandardNC24SV2 */ StandardNC24SV2 = "Standard_NC24s_v2", - /** StandardNC24RsV2 */ StandardNC24RsV2 = "Standard_NC24rs_v2", - /** StandardNC6SV3 */ StandardNC6SV3 = "Standard_NC6s_v3", - /** StandardNC12SV3 */ StandardNC12SV3 = "Standard_NC12s_v3", - /** StandardNC24SV3 */ StandardNC24SV3 = "Standard_NC24s_v3", - /** StandardNC24RsV3 */ StandardNC24RsV3 = "Standard_NC24rs_v3", - /** StandardND6S */ StandardND6S = "Standard_ND6s", - /** StandardND12S */ StandardND12S = "Standard_ND12s", - /** StandardND24S */ StandardND24S = "Standard_ND24s", - /** StandardND24Rs */ StandardND24Rs = "Standard_ND24rs", - /** StandardNV6 */ StandardNV6 = "Standard_NV6", - /** StandardNV12 */ StandardNV12 = "Standard_NV12", - /** StandardNV24 */ StandardNV24 = "Standard_NV24" } @@ -7307,7 +7061,6 @@ export type VirtualMachineSizeTypes = string; /** Known values of {@link DiskDetachOptionTypes} that the service accepts. */ export enum KnownDiskDetachOptionTypes { - /** ForceDetach */ ForceDetach = "ForceDetach" } @@ -7322,9 +7075,7 @@ export type DiskDetachOptionTypes = string; /** Known values of {@link IPVersions} that the service accepts. */ export enum KnownIPVersions { - /** IPv4 */ IPv4 = "IPv4", - /** IPv6 */ IPv6 = "IPv6" } @@ -7340,9 +7091,7 @@ export type IPVersions = string; /** Known values of {@link PublicIPAllocationMethod} that the service accepts. */ export enum KnownPublicIPAllocationMethod { - /** Dynamic */ Dynamic = "Dynamic", - /** Static */ Static = "Static" } @@ -7358,9 +7107,7 @@ export type PublicIPAllocationMethod = string; /** Known values of {@link HyperVGenerationType} that the service accepts. */ export enum KnownHyperVGenerationType { - /** V1 */ V1 = "V1", - /** V2 */ V2 = "V2" } @@ -7376,15 +7123,10 @@ export type HyperVGenerationType = string; /** Known values of {@link PatchOperationStatus} that the service accepts. */ export enum KnownPatchOperationStatus { - /** Unknown */ Unknown = "Unknown", - /** InProgress */ InProgress = "InProgress", - /** Failed */ Failed = "Failed", - /** Succeeded */ Succeeded = "Succeeded", - /** CompletedWithWarnings */ CompletedWithWarnings = "CompletedWithWarnings" } @@ -7403,13 +7145,9 @@ export type PatchOperationStatus = string; /** Known values of {@link VMGuestPatchRebootBehavior} that the service accepts. */ export enum KnownVMGuestPatchRebootBehavior { - /** Unknown */ Unknown = "Unknown", - /** NeverReboots */ NeverReboots = "NeverReboots", - /** AlwaysRequiresReboot */ AlwaysRequiresReboot = "AlwaysRequiresReboot", - /** CanRequestReboot */ CanRequestReboot = "CanRequestReboot" } @@ -7427,9 +7165,7 @@ export type VMGuestPatchRebootBehavior = string; /** Known values of {@link PatchAssessmentState} that the service accepts. */ export enum KnownPatchAssessmentState { - /** Unknown */ Unknown = "Unknown", - /** Available */ Available = "Available" } @@ -7445,11 +7181,8 @@ export type PatchAssessmentState = string; /** Known values of {@link VMGuestPatchRebootSetting} that the service accepts. */ export enum KnownVMGuestPatchRebootSetting { - /** IfRequired */ IfRequired = "IfRequired", - /** Never */ Never = "Never", - /** Always */ Always = "Always" } @@ -7466,21 +7199,13 @@ export type VMGuestPatchRebootSetting = string; /** Known values of {@link VMGuestPatchClassificationWindows} that the service accepts. */ export enum KnownVMGuestPatchClassificationWindows { - /** Critical */ Critical = "Critical", - /** Security */ Security = "Security", - /** UpdateRollUp */ UpdateRollUp = "UpdateRollUp", - /** FeaturePack */ FeaturePack = "FeaturePack", - /** ServicePack */ ServicePack = "ServicePack", - /** Definition */ Definition = "Definition", - /** Tools */ Tools = "Tools", - /** Updates */ Updates = "Updates" } @@ -7502,11 +7227,8 @@ export type VMGuestPatchClassificationWindows = string; /** Known values of {@link VMGuestPatchClassificationLinux} that the service accepts. */ export enum KnownVMGuestPatchClassificationLinux { - /** Critical */ Critical = "Critical", - /** Security */ Security = "Security", - /** Other */ Other = "Other" } @@ -7523,17 +7245,11 @@ export type VMGuestPatchClassificationLinux = string; /** Known values of {@link VMGuestPatchRebootStatus} that the service accepts. */ export enum KnownVMGuestPatchRebootStatus { - /** Unknown */ Unknown = "Unknown", - /** NotNeeded */ NotNeeded = "NotNeeded", - /** Required */ Required = "Required", - /** Started */ Started = "Started", - /** Failed */ Failed = "Failed", - /** Completed */ Completed = "Completed" } @@ -7553,17 +7269,11 @@ export type VMGuestPatchRebootStatus = string; /** Known values of {@link PatchInstallationState} that the service accepts. */ export enum KnownPatchInstallationState { - /** Unknown */ Unknown = "Unknown", - /** Installed */ Installed = "Installed", - /** Failed */ Failed = "Failed", - /** Excluded */ Excluded = "Excluded", - /** NotSelected */ NotSelected = "NotSelected", - /** Pending */ Pending = "Pending" } @@ -7583,9 +7293,7 @@ export type PatchInstallationState = string; /** Known values of {@link HyperVGenerationTypes} that the service accepts. */ export enum KnownHyperVGenerationTypes { - /** V1 */ V1 = "V1", - /** V2 */ V2 = "V2" } @@ -7601,9 +7309,7 @@ export type HyperVGenerationTypes = string; /** Known values of {@link VmDiskTypes} that the service accepts. */ export enum KnownVmDiskTypes { - /** None */ None = "None", - /** Unmanaged */ Unmanaged = "Unmanaged" } @@ -7619,9 +7325,7 @@ export type VmDiskTypes = string; /** Known values of {@link ArchitectureTypes} that the service accepts. */ export enum KnownArchitectureTypes { - /** X64 */ X64 = "x64", - /** Arm64 */ Arm64 = "Arm64" } @@ -7637,9 +7341,7 @@ export type ArchitectureTypes = string; /** Known values of {@link ProximityPlacementGroupType} that the service accepts. */ export enum KnownProximityPlacementGroupType { - /** Standard */ Standard = "Standard", - /** Ultra */ Ultra = "Ultra" } @@ -7655,9 +7357,7 @@ export type ProximityPlacementGroupType = string; /** Known values of {@link OperatingSystemType} that the service accepts. */ export enum KnownOperatingSystemType { - /** Windows */ Windows = "Windows", - /** Linux */ Linux = "Linux" } @@ -7673,11 +7373,8 @@ export type OperatingSystemType = string; /** Known values of {@link ConsistencyModeTypes} that the service accepts. */ export enum KnownConsistencyModeTypes { - /** CrashConsistent */ CrashConsistent = "CrashConsistent", - /** FileSystemConsistent */ FileSystemConsistent = "FileSystemConsistent", - /** ApplicationConsistent */ ApplicationConsistent = "ApplicationConsistent" } @@ -7694,7 +7391,6 @@ export type ConsistencyModeTypes = string; /** Known values of {@link RestorePointCollectionExpandOptions} that the service accepts. */ export enum KnownRestorePointCollectionExpandOptions { - /** RestorePoints */ RestorePoints = "restorePoints" } @@ -7709,7 +7405,6 @@ export type RestorePointCollectionExpandOptions = string; /** Known values of {@link RestorePointExpandOptions} that the service accepts. */ export enum KnownRestorePointExpandOptions { - /** InstanceView */ InstanceView = "instanceView" } @@ -7724,7 +7419,6 @@ export type RestorePointExpandOptions = string; /** Known values of {@link CapacityReservationGroupInstanceViewTypes} that the service accepts. */ export enum KnownCapacityReservationGroupInstanceViewTypes { - /** InstanceView */ InstanceView = "instanceView" } @@ -7739,9 +7433,7 @@ export type CapacityReservationGroupInstanceViewTypes = string; /** Known values of {@link ExpandTypesForGetCapacityReservationGroups} that the service accepts. */ export enum KnownExpandTypesForGetCapacityReservationGroups { - /** VirtualMachineScaleSetVMsRef */ VirtualMachineScaleSetVMsRef = "virtualMachineScaleSetVMs/$ref", - /** VirtualMachinesRef */ VirtualMachinesRef = "virtualMachines/$ref" } @@ -7757,7 +7449,6 @@ export type ExpandTypesForGetCapacityReservationGroups = string; /** Known values of {@link CapacityReservationInstanceViewTypes} that the service accepts. */ export enum KnownCapacityReservationInstanceViewTypes { - /** InstanceView */ InstanceView = "instanceView" } @@ -7772,19 +7463,12 @@ export type CapacityReservationInstanceViewTypes = string; /** Known values of {@link ExecutionState} that the service accepts. */ export enum KnownExecutionState { - /** Unknown */ Unknown = "Unknown", - /** Pending */ Pending = "Pending", - /** Running */ Running = "Running", - /** Failed */ Failed = "Failed", - /** Succeeded */ Succeeded = "Succeeded", - /** TimedOut */ TimedOut = "TimedOut", - /** Canceled */ Canceled = "Canceled" } @@ -7838,9 +7522,7 @@ export type DiskStorageAccountTypes = string; /** Known values of {@link HyperVGeneration} that the service accepts. */ export enum KnownHyperVGeneration { - /** V1 */ V1 = "V1", - /** V2 */ V2 = "V2" } @@ -7856,9 +7538,7 @@ export type HyperVGeneration = string; /** Known values of {@link Architecture} that the service accepts. */ export enum KnownArchitecture { - /** X64 */ X64 = "x64", - /** Arm64 */ Arm64 = "Arm64" } @@ -8054,11 +7734,8 @@ export type DataAccessAuthMode = string; /** Known values of {@link AccessLevel} that the service accepts. */ export enum KnownAccessLevel { - /** None */ None = "None", - /** Read */ Read = "Read", - /** Write */ Write = "Write" } @@ -8075,11 +7752,8 @@ export type AccessLevel = string; /** Known values of {@link PrivateEndpointServiceConnectionStatus} that the service accepts. */ export enum KnownPrivateEndpointServiceConnectionStatus { - /** Pending */ Pending = "Pending", - /** Approved */ Approved = "Approved", - /** Rejected */ Rejected = "Rejected" } @@ -8096,13 +7770,9 @@ export type PrivateEndpointServiceConnectionStatus = string; /** Known values of {@link PrivateEndpointConnectionProvisioningState} that the service accepts. */ export enum KnownPrivateEndpointConnectionProvisioningState { - /** Succeeded */ Succeeded = "Succeeded", - /** Creating */ Creating = "Creating", - /** Deleting */ Deleting = "Deleting", - /** Failed */ Failed = "Failed" } @@ -8120,13 +7790,9 @@ export type PrivateEndpointConnectionProvisioningState = string; /** Known values of {@link DiskEncryptionSetIdentityType} that the service accepts. */ export enum KnownDiskEncryptionSetIdentityType { - /** SystemAssigned */ SystemAssigned = "SystemAssigned", - /** UserAssigned */ UserAssigned = "UserAssigned", - /** SystemAssignedUserAssigned */ SystemAssignedUserAssigned = "SystemAssigned, UserAssigned", - /** None */ None = "None" } @@ -8201,7 +7867,6 @@ export type CopyCompletionErrorReason = string; /** Known values of {@link ExtendedLocationType} that the service accepts. */ export enum KnownExtendedLocationType { - /** EdgeZone */ EdgeZone = "EdgeZone" } @@ -8216,17 +7881,11 @@ export type ExtendedLocationType = string; /** Known values of {@link GalleryProvisioningState} that the service accepts. */ export enum KnownGalleryProvisioningState { - /** Creating */ Creating = "Creating", - /** Updating */ Updating = "Updating", - /** Failed */ Failed = "Failed", - /** Succeeded */ Succeeded = "Succeeded", - /** Deleting */ Deleting = "Deleting", - /** Migrating */ Migrating = "Migrating" } @@ -8246,11 +7905,8 @@ export type GalleryProvisioningState = string; /** Known values of {@link GallerySharingPermissionTypes} that the service accepts. */ export enum KnownGallerySharingPermissionTypes { - /** Private */ Private = "Private", - /** Groups */ Groups = "Groups", - /** Community */ Community = "Community" } @@ -8267,9 +7923,7 @@ export type GallerySharingPermissionTypes = string; /** Known values of {@link SharingProfileGroupTypes} that the service accepts. */ export enum KnownSharingProfileGroupTypes { - /** Subscriptions */ Subscriptions = "Subscriptions", - /** AADTenants */ AADTenants = "AADTenants" } @@ -8285,13 +7939,9 @@ export type SharingProfileGroupTypes = string; /** Known values of {@link SharingState} that the service accepts. */ export enum KnownSharingState { - /** Succeeded */ Succeeded = "Succeeded", - /** InProgress */ InProgress = "InProgress", - /** Failed */ Failed = "Failed", - /** Unknown */ Unknown = "Unknown" } @@ -8309,7 +7959,6 @@ export type SharingState = string; /** Known values of {@link SelectPermissions} that the service accepts. */ export enum KnownSelectPermissions { - /** Permissions */ Permissions = "Permissions" } @@ -8324,7 +7973,6 @@ export type SelectPermissions = string; /** Known values of {@link GalleryExpandParams} that the service accepts. */ export enum KnownGalleryExpandParams { - /** SharingProfileGroups */ SharingProfileGroups = "SharingProfile/Groups" } @@ -8339,11 +7987,8 @@ export type GalleryExpandParams = string; /** Known values of {@link StorageAccountType} that the service accepts. */ export enum KnownStorageAccountType { - /** StandardLRS */ StandardLRS = "Standard_LRS", - /** StandardZRS */ StandardZRS = "Standard_ZRS", - /** PremiumLRS */ PremiumLRS = "Premium_LRS" } @@ -8360,11 +8005,8 @@ export type StorageAccountType = string; /** Known values of {@link ConfidentialVMEncryptionType} that the service accepts. */ export enum KnownConfidentialVMEncryptionType { - /** EncryptedVMGuestStateOnlyWithPmk */ EncryptedVMGuestStateOnlyWithPmk = "EncryptedVMGuestStateOnlyWithPmk", - /** EncryptedWithPmk */ EncryptedWithPmk = "EncryptedWithPmk", - /** EncryptedWithCmk */ EncryptedWithCmk = "EncryptedWithCmk" } @@ -8381,9 +8023,7 @@ export type ConfidentialVMEncryptionType = string; /** Known values of {@link ReplicationMode} that the service accepts. */ export enum KnownReplicationMode { - /** Full */ Full = "Full", - /** Shallow */ Shallow = "Shallow" } @@ -8399,9 +8039,7 @@ export type ReplicationMode = string; /** Known values of {@link GalleryExtendedLocationType} that the service accepts. */ export enum KnownGalleryExtendedLocationType { - /** EdgeZone */ EdgeZone = "EdgeZone", - /** Unknown */ Unknown = "Unknown" } @@ -8417,13 +8055,9 @@ export type GalleryExtendedLocationType = string; /** Known values of {@link AggregatedReplicationState} that the service accepts. */ export enum KnownAggregatedReplicationState { - /** Unknown */ Unknown = "Unknown", - /** InProgress */ InProgress = "InProgress", - /** Completed */ Completed = "Completed", - /** Failed */ Failed = "Failed" } @@ -8441,13 +8075,9 @@ export type AggregatedReplicationState = string; /** Known values of {@link ReplicationState} that the service accepts. */ export enum KnownReplicationState { - /** Unknown */ Unknown = "Unknown", - /** Replicating */ Replicating = "Replicating", - /** Completed */ Completed = "Completed", - /** Failed */ Failed = "Failed" } @@ -8465,7 +8095,6 @@ export type ReplicationState = string; /** Known values of {@link ReplicationStatusTypes} that the service accepts. */ export enum KnownReplicationStatusTypes { - /** ReplicationStatus */ ReplicationStatus = "ReplicationStatus" } @@ -8480,13 +8109,9 @@ export type ReplicationStatusTypes = string; /** Known values of {@link SharingUpdateOperationTypes} that the service accepts. */ export enum KnownSharingUpdateOperationTypes { - /** Add */ Add = "Add", - /** Remove */ Remove = "Remove", - /** Reset */ Reset = "Reset", - /** EnableCommunity */ EnableCommunity = "EnableCommunity" } @@ -8504,7 +8129,6 @@ export type SharingUpdateOperationTypes = string; /** Known values of {@link SharedToValues} that the service accepts. */ export enum KnownSharedToValues { - /** Tenant */ Tenant = "tenant" } @@ -8519,11 +8143,8 @@ export type SharedToValues = string; /** Known values of {@link SharedGalleryHostCaching} that the service accepts. */ export enum KnownSharedGalleryHostCaching { - /** None */ None = "None", - /** ReadOnly */ ReadOnly = "ReadOnly", - /** ReadWrite */ ReadWrite = "ReadWrite" } @@ -8540,11 +8161,8 @@ export type SharedGalleryHostCaching = string; /** Known values of {@link CloudServiceUpgradeMode} that the service accepts. */ export enum KnownCloudServiceUpgradeMode { - /** Auto */ Auto = "Auto", - /** Manual */ Manual = "Manual", - /** Simultaneous */ Simultaneous = "Simultaneous" } @@ -8561,9 +8179,7 @@ export type CloudServiceUpgradeMode = string; /** Known values of {@link CloudServiceSlotType} that the service accepts. */ export enum KnownCloudServiceSlotType { - /** Production */ Production = "Production", - /** Staging */ Staging = "Staging" } @@ -8579,9 +8195,7 @@ export type CloudServiceSlotType = string; /** Known values of {@link AvailabilitySetSkuTypes} that the service accepts. */ export enum KnownAvailabilitySetSkuTypes { - /** Classic */ Classic = "Classic", - /** Aligned */ Aligned = "Aligned" } 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"