diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index d50ae13a2ba4..2c2077ae6d9b 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -2443,7 +2443,7 @@ packages: version: 0.0.0 '@rush-temp/agrifood-farming@file:projects/agrifood-farming.tgz': - resolution: {integrity: sha512-kKT8/WGSRhkyg9A2RkomX9suhkpXyGt74VTKqKBlYR6CMwdd5/vP/bm8VBUNPnbLmHJAqBOuJqu5dpKkaHZ+bQ==, tarball: file:projects/agrifood-farming.tgz} + resolution: {integrity: sha512-OZ1UD3dftMcM7ULZz5v/a3qWR+UPHbs2ESUwjX5StkVtm8XpU313C78bddczEaVaIhpxMHFZcTvRf21EanfwYQ==, tarball: file:projects/agrifood-farming.tgz} version: 0.0.0 '@rush-temp/ai-anomaly-detector@file:projects/ai-anomaly-detector.tgz': @@ -2459,7 +2459,7 @@ packages: version: 0.0.0 '@rush-temp/ai-document-translator@file:projects/ai-document-translator.tgz': - resolution: {integrity: sha512-eB4XF6y7wyT8ZCW46tmtpg7i9akFtBjYEZ1FBoSGd+uHwYp42hHWLCGzlo2nhdyvPP2eiU/0axXO6Rlo9jhsIw==, tarball: file:projects/ai-document-translator.tgz} + resolution: {integrity: sha512-bnwr7Q34tX4tRdCVV2NzPu3aTLgPLPEtKNIMFQYGr8ouRQJ0+PM2xI/3V+k5Dc1WDIpqKk9Xe8iJOfeVdVHclg==, tarball: file:projects/ai-document-translator.tgz} version: 0.0.0 '@rush-temp/ai-form-recognizer@file:projects/ai-form-recognizer.tgz': @@ -2671,7 +2671,7 @@ packages: version: 0.0.0 '@rush-temp/arm-compute-1@file:projects/arm-compute-1.tgz': - resolution: {integrity: sha512-bRfPIJOvzMpdvqRKVcpInFunhbGFvL3qCIkhMHJKM0Wv71ipALzi7802T6AKKtkSASush+Wj40+/X+3DOfFkEg==, tarball: file:projects/arm-compute-1.tgz} + resolution: {integrity: sha512-rSlIdnhZP7MJAyxZXPW4b8BvwlMEEw7dRdgctWs3+cEDSJs66ux8pBu4toh6qsAh2t/EW/5tagHHG5YLguQFbg==, tarball: file:projects/arm-compute-1.tgz} version: 0.0.0 '@rush-temp/arm-compute-profile-2020-09-01-hybrid@file:projects/arm-compute-profile-2020-09-01-hybrid.tgz': @@ -3555,7 +3555,7 @@ packages: version: 0.0.0 '@rush-temp/communication-job-router@file:projects/communication-job-router.tgz': - resolution: {integrity: sha512-9X96kUlGoPpl9rkpH5lO7i8zNcJ1iCVu/ekombcm80uo/HE52hUTYxPxnkPyK8fLjG1rmkKhMN/v4yWVv8Yanw==, tarball: file:projects/communication-job-router.tgz} + resolution: {integrity: sha512-8Uocnv0mBRgp67j96CXyVlpyuk+eCN38VoH2z+7n5lPcIkyTlXALBdWXSKmfqvSyHHTR1cPpLs0HvlXEokjdjA==, tarball: file:projects/communication-job-router.tgz} version: 0.0.0 '@rush-temp/communication-messages@file:projects/communication-messages.tgz': @@ -3739,7 +3739,7 @@ packages: version: 0.0.0 '@rush-temp/iot-device-update@file:projects/iot-device-update.tgz': - resolution: {integrity: sha512-yDlW2Y3FM5JvvIKL/wl6UGSNryhW6Bc+pAt0UjIbwqTQSEK3rh1QEIlOwSGGtgkSxofQNQ/mIybUZh4xAGLaYw==, tarball: file:projects/iot-device-update.tgz} + resolution: {integrity: sha512-eeVsb0qFtodJSwNYapPnN7aLyDLB7xjSdU765WGqEM9UxtjUtDEQCKmbWwF3cL/mD+/fS0pEGVUxPico8eLxZg==, tarball: file:projects/iot-device-update.tgz} version: 0.0.0 '@rush-temp/iot-modelsrepository@file:projects/iot-modelsrepository.tgz': @@ -3939,7 +3939,7 @@ packages: version: 0.0.0 '@rush-temp/purview-administration@file:projects/purview-administration.tgz': - resolution: {integrity: sha512-GuX4ptJEu9WiaNd5gZimvxeCvkSX1Lx6esvjdXBMrwWw8J0IUV+ip62B3DO48sYyXTU3f18BBLonbxkMezinMQ==, tarball: file:projects/purview-administration.tgz} + resolution: {integrity: sha512-mILTmq+qK/2Tb+SslkCIWW7OU/XMpdT5g3F5TfFSPxBxJcr3ffwzQ0rwGlt9B2w2CPvA9m6tHRayhm5/OikCTA==, tarball: file:projects/purview-administration.tgz} version: 0.0.0 '@rush-temp/purview-catalog@file:projects/purview-catalog.tgz': @@ -3955,11 +3955,11 @@ packages: version: 0.0.0 '@rush-temp/purview-sharing@file:projects/purview-sharing.tgz': - resolution: {integrity: sha512-TRYUaWtJDOyE4Lzr8B2abyn5MDm/K/3EpKlzimf9i7rpv7sIs+priXnLhxIVUWfTbdU9YGS7/Jywj8FOu/h77w==, tarball: file:projects/purview-sharing.tgz} + resolution: {integrity: sha512-v7NxM5GqL4yD8+AYartO+vpA9uBoT7IdqVfpOdty71582+uKO5GWk3IjUSwa19yZT75QBtC3lDR4g8wpJUJpvQ==, tarball: file:projects/purview-sharing.tgz} version: 0.0.0 '@rush-temp/purview-workflow@file:projects/purview-workflow.tgz': - resolution: {integrity: sha512-PD5TWl/BL6Ovd0oo1b99t27iQtcqHRAL1HJI/eDauNBlIeCJj5CdHLiI6wQ0xSEk1L/Jwi59QEttGalfhO92tw==, tarball: file:projects/purview-workflow.tgz} + resolution: {integrity: sha512-gNVEbedQwGD7veRJkqn5aDoFlq1RJQ+CLvOfAaSzX5xc5Xq8b6EV1w5Maoci71XaZiHnwM/Ap8eR/bbQsCYttw==, tarball: file:projects/purview-workflow.tgz} version: 0.0.0 '@rush-temp/quantum-jobs@file:projects/quantum-jobs.tgz': @@ -4015,7 +4015,7 @@ packages: version: 0.0.0 '@rush-temp/synapse-access-control@file:projects/synapse-access-control.tgz': - resolution: {integrity: sha512-+s06PfjpaIhHqeWFf674X7/NNuamWT0NoBAkT5hHBmuXx03Zu1IV+vEnbbU/jhxStNvAIyxtYNwG3eprl4uhnQ==, tarball: file:projects/synapse-access-control.tgz} + resolution: {integrity: sha512-fjqWy96poos09TxHKgdgEQDUrhMZPcKUm7NwHSeqhq28wql59dCmco8gj0e7cUSMhhCg2dFOUix/+RVojkh07Q==, tarball: file:projects/synapse-access-control.tgz} version: 0.0.0 '@rush-temp/synapse-artifacts@file:projects/synapse-artifacts.tgz': @@ -9661,7 +9661,6 @@ snapshots: '@rush-temp/agrifood-farming@file:projects/agrifood-farming.tgz(msw@2.6.8(@types/node@22.7.9)(typescript@5.7.2))(vite@5.4.11(@types/node@22.7.9))': dependencies: '@azure-rest/core-client': 1.4.0 - '@azure/core-lro': 2.7.2 '@types/node': 18.19.68 '@vitest/browser': 2.1.8(@types/node@18.19.68)(playwright@1.49.1)(typescript@5.7.2)(vite@5.4.11(@types/node@22.7.9))(vitest@2.1.8) '@vitest/coverage-istanbul': 2.1.8(vitest@2.1.8) @@ -11119,7 +11118,6 @@ snapshots: dependencies: '@azure-tools/test-credential': 1.3.1 '@azure-tools/test-recorder': 3.5.2 - '@azure/arm-network': 32.2.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 '@types/mocha': 10.0.10 @@ -11127,10 +11125,10 @@ snapshots: chai: 4.5.0 dotenv: 16.4.7 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.68)(typescript@5.7.2) + ts-node: 10.9.2(@types/node@18.19.68)(typescript@5.6.3) tslib: 2.8.1 tsx: 4.19.2 - typescript: 5.7.2 + typescript: 5.6.3 transitivePeerDependencies: - '@swc/core' - '@swc/wasm' @@ -17505,7 +17503,6 @@ snapshots: '@rush-temp/iot-device-update@file:projects/iot-device-update.tgz(msw@2.6.8(@types/node@22.7.9)(typescript@5.7.2))(vite@5.4.11(@types/node@22.7.9))': dependencies: - '@azure/core-lro': 2.7.2 '@types/node': 18.19.68 '@vitest/browser': 2.1.8(@types/node@18.19.68)(playwright@1.49.1)(typescript@5.7.2)(vite@5.4.11(@types/node@22.7.9))(vitest@2.1.8) '@vitest/coverage-istanbul': 2.1.8(vitest@2.1.8) @@ -18790,7 +18787,6 @@ snapshots: '@rush-temp/purview-sharing@file:projects/purview-sharing.tgz(msw@2.6.8(@types/node@22.7.9)(typescript@5.7.2))(vite@5.4.11(@types/node@22.7.9))': dependencies: - '@azure/core-lro': 2.7.2 '@types/node': 18.19.68 '@vitest/browser': 2.1.8(@types/node@18.19.68)(playwright@1.49.1)(typescript@5.7.2)(vite@5.4.11(@types/node@22.7.9))(vitest@2.1.8) '@vitest/coverage-istanbul': 2.1.8(vitest@2.1.8) diff --git a/sdk/compute/arm-compute/CHANGELOG.md b/sdk/compute/arm-compute/CHANGELOG.md index b5eb2909f4f3..5379407b1a3a 100644 --- a/sdk/compute/arm-compute/CHANGELOG.md +++ b/sdk/compute/arm-compute/CHANGELOG.md @@ -1,5 +1,44 @@ # Release History +## 23.0.0 (2024-12-20) + +### Features Added + + - Added Interface Placement + - Added Type Alias ZonePlacementPolicyType + - Interface StorageProfile has a new optional parameter alignRegionalDisksToVMZone + - Interface VirtualMachine has a new optional parameter placement + - Added Enum KnownZonePlacementPolicyType + +### Breaking Changes + + - Removed operation group GalleryInVMAccessControlProfiles + - Removed operation group GalleryInVMAccessControlProfileVersions + - Removed operation group SoftDeletedResource + - Interface Gallery no longer has parameter identity + - Interface GalleryImage no longer has parameter allowUpdateImage + - Interface GalleryImageFeature no longer has parameter startsAtVersion + - Interface GalleryImageUpdate no longer has parameter allowUpdateImage + - Interface GalleryImageVersion no longer has parameter restore + - Interface GalleryImageVersion no longer has parameter validationsProfile + - Interface GalleryImageVersionSafetyProfile no longer has parameter blockDeletionBeforeEndOfLife + - Interface GalleryImageVersionUpdate no longer has parameter restore + - Interface GalleryImageVersionUpdate no longer has parameter validationsProfile + - Interface GalleryList no longer has parameter securityProfile + - Interface GalleryUpdate no longer has parameter identity + - Interface TargetRegion no longer has parameter additionalReplicaSets + - Interface UserArtifactSettings no longer has parameter scriptBehaviorAfterReboot + - Class ComputeManagementClient no longer has parameter galleryInVMAccessControlProfiles + - Class ComputeManagementClient no longer has parameter galleryInVMAccessControlProfileVersions + - Class ComputeManagementClient no longer has parameter softDeletedResource + - Removed Enum KnownAccessControlRulesMode + - Removed Enum KnownEndpointAccess + - Removed Enum KnownGalleryApplicationScriptRebootBehavior + - Removed Enum KnownSoftDeletedArtifactTypes + - Removed Enum KnownValidationStatus + - Enum KnownStorageAccountType no longer has value PremiumV2LRS + + ## 22.2.0 (2024-12-11) ### Features Added diff --git a/sdk/compute/arm-compute/_meta.json b/sdk/compute/arm-compute/_meta.json index efd598602316..3f2ee606edd1 100644 --- a/sdk/compute/arm-compute/_meta.json +++ b/sdk/compute/arm-compute/_meta.json @@ -1,8 +1,8 @@ { - "commit": "552b4dd311f90f4a7b2f7adf45461d7a8774a1cc", + "commit": "fd594aa095fb392c7b07b8045956bea790b283ba", "readme": "specification/compute/resource-manager/readme.md", - "autorest_command": "autorest --version=3.9.7 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\compute\\resource-manager\\readme.md --use=@autorest/typescript@6.0.29 --generate-sample=true", + "autorest_command": "autorest --version=3.9.7 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/compute/resource-manager/readme.md --use=@autorest/typescript@^6.0.12", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", "release_tool": "@azure-tools/js-sdk-release-tools@2.7.16", - "use": "@autorest/typescript@6.0.29" + "use": "@autorest/typescript@^6.0.12" } \ No newline at end of file diff --git a/sdk/compute/arm-compute/package.json b/sdk/compute/arm-compute/package.json index 36b440e41900..5732eadfc05e 100644 --- a/sdk/compute/arm-compute/package.json +++ b/sdk/compute/arm-compute/package.json @@ -3,7 +3,7 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for ComputeManagementClient.", - "version": "22.2.0", + "version": "23.0.0", "engines": { "node": ">=18.0.0" }, @@ -28,7 +28,7 @@ "module": "./dist-esm/src/index.js", "types": "./types/arm-compute.d.ts", "devDependencies": { - "typescript": "~5.7.2", + "typescript": "~5.6.2", "dotenv": "^16.0.0", "@azure/dev-tool": "^1.0.0", "@azure/identity": "^4.2.1", @@ -40,8 +40,7 @@ "@types/chai": "^4.2.8", "chai": "^4.2.0", "@types/node": "^18.0.0", - "ts-node": "^10.0.0", - "@azure/arm-network": "^32.2.0" + "ts-node": "^10.0.0" }, "repository": { "type": "git", @@ -103,13 +102,5 @@ ] }, "autoPublish": true, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/compute/arm-compute", - "//sampleConfiguration": { - "productName": "", - "productSlugs": [ - "azure" - ], - "disableDocsMs": true, - "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-compute?view=azure-node-preview" - } -} + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/compute/arm-compute" +} \ No newline at end of file diff --git a/sdk/compute/arm-compute/review/arm-compute.api.md b/sdk/compute/arm-compute/review/arm-compute.api.md index eb106edd002b..0cec62b9f694 100644 --- a/sdk/compute/arm-compute/review/arm-compute.api.md +++ b/sdk/compute/arm-compute/review/arm-compute.api.md @@ -10,47 +10,6 @@ import { OperationState } from '@azure/core-lro'; import { PagedAsyncIterableIterator } from '@azure/core-paging'; import { SimplePollerLike } from '@azure/core-lro'; -// @public -export interface AccessControlRules { - identities?: AccessControlRulesIdentity[]; - privileges?: AccessControlRulesPrivilege[]; - roleAssignments?: AccessControlRulesRoleAssignment[]; - roles?: AccessControlRulesRole[]; -} - -// @public -export interface AccessControlRulesIdentity { - exePath?: string; - groupName?: string; - name: string; - processName?: string; - userName?: string; -} - -// @public -export type AccessControlRulesMode = string; - -// @public -export interface AccessControlRulesPrivilege { - name: string; - path: string; - queryParameters?: { - [propertyName: string]: string; - }; -} - -// @public -export interface AccessControlRulesRole { - name: string; - privileges: string[]; -} - -// @public -export interface AccessControlRulesRoleAssignment { - identities: string[]; - role: string; -} - // @public export type AccessLevel = string; @@ -66,12 +25,6 @@ export interface AdditionalCapabilities { ultraSSDEnabled?: boolean; } -// @public -export interface AdditionalReplicaSet { - regionalReplicaCount?: number; - storageAccountType?: StorageAccountType; -} - // @public export interface AdditionalUnattendContent { componentName?: "Microsoft-Windows-Shell-Setup"; @@ -1173,10 +1126,6 @@ export class ComputeManagementClient extends coreClient.ServiceClient { // (undocumented) galleryImageVersions: GalleryImageVersions; // (undocumented) - galleryInVMAccessControlProfiles: GalleryInVMAccessControlProfiles; - // (undocumented) - galleryInVMAccessControlProfileVersions: GalleryInVMAccessControlProfileVersions; - // (undocumented) gallerySharingProfile: GallerySharingProfile; // (undocumented) images: Images; @@ -1201,8 +1150,6 @@ export class ComputeManagementClient extends coreClient.ServiceClient { // (undocumented) snapshots: Snapshots; // (undocumented) - softDeletedResource: SoftDeletedResource; - // (undocumented) sshPublicKeys: SshPublicKeys; // (undocumented) subscriptionId: string; @@ -2264,25 +2211,11 @@ export interface EncryptionSettingsElement { // @public export type EncryptionType = string; -// @public -export type EndpointAccess = string; - -// @public -export type EndpointTypes = "WireServer" | "IMDS"; - // @public export interface EventGridAndResourceGraph { enable?: boolean; } -// @public -export interface ExecutedValidation { - executionTime?: Date; - status?: ValidationStatus; - type?: string; - version?: string; -} - // @public export type ExecutionState = string; @@ -2397,7 +2330,6 @@ export type GalleriesUpdateResponse = Gallery; export interface Gallery extends Resource { description?: string; identifier?: GalleryIdentifier; - identity?: GalleryIdentity; readonly provisioningState?: GalleryProvisioningState; sharingProfile?: SharingProfile; readonly sharingStatus?: SharingStatus; @@ -2462,9 +2394,6 @@ export interface GalleryApplicationsCreateOrUpdateOptionalParams extends coreCli // @public export type GalleryApplicationsCreateOrUpdateResponse = GalleryApplication; -// @public -export type GalleryApplicationScriptRebootBehavior = string; - // @public export interface GalleryApplicationsDeleteOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -2678,19 +2607,8 @@ export interface GalleryIdentifier { readonly uniqueName?: string; } -// @public -export interface GalleryIdentity { - readonly principalId?: string; - readonly tenantId?: string; - type?: ResourceIdentityType; - userAssignedIdentities?: { - [propertyName: string]: UserAssignedIdentitiesValue; - }; -} - // @public export interface GalleryImage extends Resource { - allowUpdateImage?: boolean; architecture?: Architecture; description?: string; disallowed?: Disallowed; @@ -2711,7 +2629,6 @@ export interface GalleryImage extends Resource { // @public export interface GalleryImageFeature { name?: string; - startsAtVersion?: string; value?: string; } @@ -2787,7 +2704,6 @@ export type GalleryImagesUpdateResponse = GalleryImage; // @public export interface GalleryImageUpdate extends UpdateResourceDefinition { - allowUpdateImage?: boolean; architecture?: Architecture; description?: string; disallowed?: Disallowed; @@ -2810,11 +2726,9 @@ export interface GalleryImageVersion extends Resource { readonly provisioningState?: GalleryProvisioningState; publishingProfile?: GalleryImageVersionPublishingProfile; readonly replicationStatus?: ReplicationStatus; - restore?: boolean; safetyProfile?: GalleryImageVersionSafetyProfile; securityProfile?: ImageVersionSecurityProfile; storageProfile?: GalleryImageVersionStorageProfile; - readonly validationsProfile?: ValidationsProfile; } // @public @@ -2841,7 +2755,6 @@ export interface GalleryImageVersions { // @public export interface GalleryImageVersionSafetyProfile extends GalleryArtifactSafetyProfileBase { - blockDeletionBeforeEndOfLife?: boolean; readonly policyViolations?: PolicyViolation[]; readonly reportedForPolicyViolation?: boolean; } @@ -2910,213 +2823,14 @@ export interface GalleryImageVersionUpdate extends UpdateResourceDefinition { readonly provisioningState?: GalleryProvisioningState; publishingProfile?: GalleryImageVersionPublishingProfile; readonly replicationStatus?: ReplicationStatus; - restore?: boolean; safetyProfile?: GalleryImageVersionSafetyProfile; securityProfile?: ImageVersionSecurityProfile; storageProfile?: GalleryImageVersionStorageProfile; - readonly validationsProfile?: ValidationsProfile; -} - -// @public -export interface GalleryInVMAccessControlProfile extends Resource { - properties?: GalleryInVMAccessControlProfileProperties; -} - -// @public -export interface GalleryInVMAccessControlProfileList { - nextLink?: string; - value: GalleryInVMAccessControlProfile[]; -} - -// @public -export interface GalleryInVMAccessControlProfileProperties extends GalleryResourceProfilePropertiesBase { - applicableHostEndpoint: EndpointTypes; - description?: string; - osType: OperatingSystemTypes; -} - -// @public -export interface GalleryInVMAccessControlProfiles { - beginCreateOrUpdate(resourceGroupName: string, galleryName: string, inVMAccessControlProfileName: string, galleryInVMAccessControlProfile: GalleryInVMAccessControlProfile, options?: GalleryInVMAccessControlProfilesCreateOrUpdateOptionalParams): Promise, GalleryInVMAccessControlProfilesCreateOrUpdateResponse>>; - beginCreateOrUpdateAndWait(resourceGroupName: string, galleryName: string, inVMAccessControlProfileName: string, galleryInVMAccessControlProfile: GalleryInVMAccessControlProfile, options?: GalleryInVMAccessControlProfilesCreateOrUpdateOptionalParams): Promise; - beginDelete(resourceGroupName: string, galleryName: string, inVMAccessControlProfileName: string, options?: GalleryInVMAccessControlProfilesDeleteOptionalParams): Promise, GalleryInVMAccessControlProfilesDeleteResponse>>; - beginDeleteAndWait(resourceGroupName: string, galleryName: string, inVMAccessControlProfileName: string, options?: GalleryInVMAccessControlProfilesDeleteOptionalParams): Promise; - beginUpdate(resourceGroupName: string, galleryName: string, inVMAccessControlProfileName: string, galleryInVMAccessControlProfile: GalleryInVMAccessControlProfileUpdate, options?: GalleryInVMAccessControlProfilesUpdateOptionalParams): Promise, GalleryInVMAccessControlProfilesUpdateResponse>>; - beginUpdateAndWait(resourceGroupName: string, galleryName: string, inVMAccessControlProfileName: string, galleryInVMAccessControlProfile: GalleryInVMAccessControlProfileUpdate, options?: GalleryInVMAccessControlProfilesUpdateOptionalParams): Promise; - get(resourceGroupName: string, galleryName: string, inVMAccessControlProfileName: string, options?: GalleryInVMAccessControlProfilesGetOptionalParams): Promise; - listByGallery(resourceGroupName: string, galleryName: string, options?: GalleryInVMAccessControlProfilesListByGalleryOptionalParams): PagedAsyncIterableIterator; -} - -// @public -export interface GalleryInVMAccessControlProfilesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type GalleryInVMAccessControlProfilesCreateOrUpdateResponse = GalleryInVMAccessControlProfile; - -// @public -export interface GalleryInVMAccessControlProfilesDeleteHeaders { - // (undocumented) - azureAsyncOperation?: string; - // (undocumented) - location?: string; -} - -// @public -export interface GalleryInVMAccessControlProfilesDeleteOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type GalleryInVMAccessControlProfilesDeleteResponse = GalleryInVMAccessControlProfilesDeleteHeaders; - -// @public -export interface GalleryInVMAccessControlProfilesGetOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type GalleryInVMAccessControlProfilesGetResponse = GalleryInVMAccessControlProfile; - -// @public -export interface GalleryInVMAccessControlProfilesListByGalleryNextOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type GalleryInVMAccessControlProfilesListByGalleryNextResponse = GalleryInVMAccessControlProfileList; - -// @public -export interface GalleryInVMAccessControlProfilesListByGalleryOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type GalleryInVMAccessControlProfilesListByGalleryResponse = GalleryInVMAccessControlProfileList; - -// @public -export interface GalleryInVMAccessControlProfilesUpdateOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type GalleryInVMAccessControlProfilesUpdateResponse = GalleryInVMAccessControlProfile; - -// @public -export interface GalleryInVMAccessControlProfileUpdate extends UpdateResourceDefinition { - properties?: GalleryInVMAccessControlProfileProperties; -} - -// @public -export interface GalleryInVMAccessControlProfileVersion extends Resource { - defaultAccess?: EndpointAccess; - excludeFromLatest?: boolean; - mode?: AccessControlRulesMode; - readonly provisioningState?: GalleryProvisioningState; - readonly publishedDate?: Date; - readonly replicationStatus?: ReplicationStatus; - rules?: AccessControlRules; - targetLocations?: TargetRegion[]; -} - -// @public -export interface GalleryInVMAccessControlProfileVersionList { - nextLink?: string; - value: GalleryInVMAccessControlProfileVersion[]; -} - -// @public -export interface GalleryInVMAccessControlProfileVersionProperties extends GalleryResourceProfileVersionPropertiesBase { - defaultAccess: EndpointAccess; - mode: AccessControlRulesMode; - rules?: AccessControlRules; -} - -// @public -export interface GalleryInVMAccessControlProfileVersions { - beginCreateOrUpdate(resourceGroupName: string, galleryName: string, inVMAccessControlProfileName: string, inVMAccessControlProfileVersionName: string, galleryInVMAccessControlProfileVersion: GalleryInVMAccessControlProfileVersion, options?: GalleryInVMAccessControlProfileVersionsCreateOrUpdateOptionalParams): Promise, GalleryInVMAccessControlProfileVersionsCreateOrUpdateResponse>>; - beginCreateOrUpdateAndWait(resourceGroupName: string, galleryName: string, inVMAccessControlProfileName: string, inVMAccessControlProfileVersionName: string, galleryInVMAccessControlProfileVersion: GalleryInVMAccessControlProfileVersion, options?: GalleryInVMAccessControlProfileVersionsCreateOrUpdateOptionalParams): Promise; - beginDelete(resourceGroupName: string, galleryName: string, inVMAccessControlProfileName: string, inVMAccessControlProfileVersionName: string, options?: GalleryInVMAccessControlProfileVersionsDeleteOptionalParams): Promise, GalleryInVMAccessControlProfileVersionsDeleteResponse>>; - beginDeleteAndWait(resourceGroupName: string, galleryName: string, inVMAccessControlProfileName: string, inVMAccessControlProfileVersionName: string, options?: GalleryInVMAccessControlProfileVersionsDeleteOptionalParams): Promise; - beginUpdate(resourceGroupName: string, galleryName: string, inVMAccessControlProfileName: string, inVMAccessControlProfileVersionName: string, galleryInVMAccessControlProfileVersion: GalleryInVMAccessControlProfileVersionUpdate, options?: GalleryInVMAccessControlProfileVersionsUpdateOptionalParams): Promise, GalleryInVMAccessControlProfileVersionsUpdateResponse>>; - beginUpdateAndWait(resourceGroupName: string, galleryName: string, inVMAccessControlProfileName: string, inVMAccessControlProfileVersionName: string, galleryInVMAccessControlProfileVersion: GalleryInVMAccessControlProfileVersionUpdate, options?: GalleryInVMAccessControlProfileVersionsUpdateOptionalParams): Promise; - get(resourceGroupName: string, galleryName: string, inVMAccessControlProfileName: string, inVMAccessControlProfileVersionName: string, options?: GalleryInVMAccessControlProfileVersionsGetOptionalParams): Promise; - listByGalleryInVMAccessControlProfile(resourceGroupName: string, galleryName: string, inVMAccessControlProfileName: string, options?: GalleryInVMAccessControlProfileVersionsListByGalleryInVMAccessControlProfileOptionalParams): PagedAsyncIterableIterator; -} - -// @public -export interface GalleryInVMAccessControlProfileVersionsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type GalleryInVMAccessControlProfileVersionsCreateOrUpdateResponse = GalleryInVMAccessControlProfileVersion; - -// @public -export interface GalleryInVMAccessControlProfileVersionsDeleteHeaders { - // (undocumented) - azureAsyncOperation?: string; - // (undocumented) - location?: string; -} - -// @public -export interface GalleryInVMAccessControlProfileVersionsDeleteOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type GalleryInVMAccessControlProfileVersionsDeleteResponse = GalleryInVMAccessControlProfileVersionsDeleteHeaders; - -// @public -export interface GalleryInVMAccessControlProfileVersionsGetOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type GalleryInVMAccessControlProfileVersionsGetResponse = GalleryInVMAccessControlProfileVersion; - -// @public -export interface GalleryInVMAccessControlProfileVersionsListByGalleryInVMAccessControlProfileNextOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type GalleryInVMAccessControlProfileVersionsListByGalleryInVMAccessControlProfileNextResponse = GalleryInVMAccessControlProfileVersionList; - -// @public -export interface GalleryInVMAccessControlProfileVersionsListByGalleryInVMAccessControlProfileOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type GalleryInVMAccessControlProfileVersionsListByGalleryInVMAccessControlProfileResponse = GalleryInVMAccessControlProfileVersionList; - -// @public -export interface GalleryInVMAccessControlProfileVersionsUpdateOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type GalleryInVMAccessControlProfileVersionsUpdateResponse = GalleryInVMAccessControlProfileVersion; - -// @public -export interface GalleryInVMAccessControlProfileVersionUpdate extends UpdateResourceDefinition { - defaultAccess?: EndpointAccess; - excludeFromLatest?: boolean; - mode?: AccessControlRulesMode; - readonly provisioningState?: GalleryProvisioningState; - readonly publishedDate?: Date; - readonly replicationStatus?: ReplicationStatus; - rules?: AccessControlRules; - targetLocations?: TargetRegion[]; } // @public export interface GalleryList { nextLink?: string; - securityProfile?: ImageVersionSecurityProfile; value: Gallery[]; } @@ -3127,20 +2841,6 @@ export interface GalleryOSDiskImage extends GalleryDiskImage { // @public export type GalleryProvisioningState = string; -// @public -export interface GalleryResourceProfilePropertiesBase { - readonly provisioningState?: GalleryProvisioningState; -} - -// @public -export interface GalleryResourceProfileVersionPropertiesBase { - excludeFromLatest?: boolean; - readonly provisioningState?: GalleryProvisioningState; - readonly publishedDate?: Date; - readonly replicationStatus?: ReplicationStatus; - targetLocations?: TargetRegion[]; -} - // @public export type GallerySharingPermissionTypes = string; @@ -3159,19 +2859,6 @@ export interface GallerySharingProfileUpdateOptionalParams extends coreClient.Op // @public export type GallerySharingProfileUpdateResponse = SharingUpdate; -// @public -export interface GallerySoftDeletedResource extends Resource { - resourceArmId?: string; - softDeletedArtifactType?: SoftDeletedArtifactTypes; - softDeletedTime?: string; -} - -// @public -export interface GallerySoftDeletedResourceList { - nextLink?: string; - value: GallerySoftDeletedResource[]; -} - // @public (undocumented) export interface GalleryTargetExtendedLocation { encryption?: EncryptionImages; @@ -3185,7 +2872,6 @@ export interface GalleryTargetExtendedLocation { export interface GalleryUpdate extends UpdateResourceDefinition { description?: string; identifier?: GalleryIdentifier; - identity?: GalleryIdentity; readonly provisioningState?: GalleryProvisioningState; sharingProfile?: SharingProfile; readonly sharingStatus?: SharingStatus; @@ -3457,13 +3143,6 @@ export interface KeyVaultSecretReference { sourceVault: SubResource; } -// @public -export enum KnownAccessControlRulesMode { - Audit = "Audit", - Disabled = "Disabled", - Enforce = "Enforce" -} - // @public export enum KnownAccessLevel { None = "None", @@ -3688,12 +3367,6 @@ export enum KnownEncryptionType { EncryptionAtRestWithPlatformKey = "EncryptionAtRestWithPlatformKey" } -// @public -export enum KnownEndpointAccess { - Allow = "Allow", - Deny = "Deny" -} - // @public export enum KnownExecutionState { Canceled = "Canceled", @@ -3742,12 +3415,6 @@ export enum KnownFileFormat { Vhdx = "VHDX" } -// @public -export enum KnownGalleryApplicationScriptRebootBehavior { - None = "None", - Rerun = "Rerun" -} - // @public export enum KnownGalleryExpandParams { SharingProfileGroups = "SharingProfile/Groups" @@ -4092,11 +3759,6 @@ export enum KnownSnapshotStorageAccountTypes { StandardZRS = "Standard_ZRS" } -// @public -export enum KnownSoftDeletedArtifactTypes { - Images = "Images" -} - // @public export enum KnownSshEncryptionTypes { Ed25519 = "Ed25519", @@ -4106,7 +3768,6 @@ export enum KnownSshEncryptionTypes { // @public export enum KnownStorageAccountType { PremiumLRS = "Premium_LRS", - PremiumV2LRS = "PremiumV2_LRS", StandardLRS = "Standard_LRS", StandardZRS = "Standard_ZRS" } @@ -4135,13 +3796,6 @@ export enum KnownUefiSignatureTemplateName { NoSignatureTemplate = "NoSignatureTemplate" } -// @public -export enum KnownValidationStatus { - Failed = "Failed", - Succeeded = "Succeeded", - Unknown = "Unknown" -} - // @public export enum KnownVirtualMachineEvictionPolicyTypes { Deallocate = "Deallocate", @@ -4409,6 +4063,11 @@ export enum KnownZonalPlatformFaultDomainAlignMode { Unaligned = "Unaligned" } +// @public +export enum KnownZonePlacementPolicyType { + Any = "Any" +} + // @public export interface LastPatchInstallationSummary { readonly error?: ApiError; @@ -4805,6 +4464,13 @@ export interface PirSharedGalleryResource extends PirResource { uniqueId?: string; } +// @public +export interface Placement { + excludeZones?: string[]; + includeZones?: string[]; + zonePlacementPolicy?: ZonePlacementPolicyType; +} + // @public export interface Plan { name?: string; @@ -4813,12 +4479,6 @@ export interface Plan { publisher?: string; } -// @public -export interface PlatformAttribute { - readonly name?: string; - readonly value?: string; -} - // @public export interface PolicyViolation { category?: PolicyViolationCategory; @@ -6051,28 +5711,6 @@ export interface SnapshotUpdate { }; } -// @public -export type SoftDeletedArtifactTypes = string; - -// @public -export interface SoftDeletedResource { - listByArtifactName(resourceGroupName: string, galleryName: string, artifactType: string, artifactName: string, options?: SoftDeletedResourceListByArtifactNameOptionalParams): PagedAsyncIterableIterator; -} - -// @public -export interface SoftDeletedResourceListByArtifactNameNextOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type SoftDeletedResourceListByArtifactNameNextResponse = GallerySoftDeletedResourceList; - -// @public -export interface SoftDeletedResourceListByArtifactNameOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type SoftDeletedResourceListByArtifactNameResponse = GallerySoftDeletedResourceList; - // @public export interface SoftDeletePolicy { isSoftDeleteEnabled?: boolean; @@ -6220,6 +5858,7 @@ export type StorageAccountTypes = string; // @public export interface StorageProfile { + alignRegionalDisksToVMZone?: boolean; dataDisks?: DataDisk[]; diskControllerType?: DiskControllerTypes; imageReference?: ImageReference; @@ -6256,7 +5895,6 @@ export interface SystemData { // @public export interface TargetRegion { - additionalReplicaSets?: AdditionalReplicaSet[]; encryption?: EncryptionImages; excludeFromLatest?: boolean; name: string; @@ -6413,7 +6051,6 @@ export interface UserArtifactManage { export interface UserArtifactSettings { configFileName?: string; packageFileName?: string; - scriptBehaviorAfterReboot?: GalleryApplicationScriptRebootBehavior; } // @public @@ -6438,17 +6075,6 @@ export interface UserInitiatedRedeploy { automaticallyApprove?: boolean; } -// @public -export interface ValidationsProfile { - // (undocumented) - executedValidations?: ExecutedValidation[]; - platformAttributes?: PlatformAttribute[]; - validationEtag?: string; -} - -// @public -export type ValidationStatus = string; - // @public export interface VaultCertificate { certificateStore?: string; @@ -6487,6 +6113,7 @@ export interface VirtualMachine extends Resource { readonly managedBy?: string; networkProfile?: NetworkProfile; osProfile?: OSProfile; + placement?: Placement; plan?: Plan; platformFaultDomain?: number; priority?: VirtualMachinePriorityTypes; @@ -8774,6 +8401,9 @@ export interface WinRMListener { // @public export type ZonalPlatformFaultDomainAlignMode = string; +// @public +export type ZonePlacementPolicyType = string; + // (No @packageDocumentation comment for this package) ``` diff --git a/sdk/compute/arm-compute/src/computeManagementClient.ts b/sdk/compute/arm-compute/src/computeManagementClient.ts index 3570f019c144..98ec6d8d15fe 100644 --- a/sdk/compute/arm-compute/src/computeManagementClient.ts +++ b/sdk/compute/arm-compute/src/computeManagementClient.ts @@ -47,10 +47,7 @@ import { GalleryImageVersionsImpl, GalleryApplicationsImpl, GalleryApplicationVersionsImpl, - SoftDeletedResourceImpl, GallerySharingProfileImpl, - GalleryInVMAccessControlProfilesImpl, - GalleryInVMAccessControlProfileVersionsImpl, SharedGalleriesImpl, SharedGalleryImagesImpl, SharedGalleryImageVersionsImpl, @@ -101,10 +98,7 @@ import { GalleryImageVersions, GalleryApplications, GalleryApplicationVersions, - SoftDeletedResource, GallerySharingProfile, - GalleryInVMAccessControlProfiles, - GalleryInVMAccessControlProfileVersions, SharedGalleries, SharedGalleryImages, SharedGalleryImageVersions, @@ -151,7 +145,7 @@ export class ComputeManagementClient extends coreClient.ServiceClient { credential: credentials, }; - const packageDetails = `azsdk-js-arm-compute/22.2.0`; + const packageDetails = `azsdk-js-arm-compute/23.0.0`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -250,12 +244,7 @@ export class ComputeManagementClient extends coreClient.ServiceClient { this.galleryImageVersions = new GalleryImageVersionsImpl(this); this.galleryApplications = new GalleryApplicationsImpl(this); this.galleryApplicationVersions = new GalleryApplicationVersionsImpl(this); - this.softDeletedResource = new SoftDeletedResourceImpl(this); this.gallerySharingProfile = new GallerySharingProfileImpl(this); - this.galleryInVMAccessControlProfiles = - new GalleryInVMAccessControlProfilesImpl(this); - this.galleryInVMAccessControlProfileVersions = - new GalleryInVMAccessControlProfileVersionsImpl(this); this.sharedGalleries = new SharedGalleriesImpl(this); this.sharedGalleryImages = new SharedGalleryImagesImpl(this); this.sharedGalleryImageVersions = new SharedGalleryImageVersionsImpl(this); @@ -310,10 +299,7 @@ export class ComputeManagementClient extends coreClient.ServiceClient { galleryImageVersions: GalleryImageVersions; galleryApplications: GalleryApplications; galleryApplicationVersions: GalleryApplicationVersions; - softDeletedResource: SoftDeletedResource; gallerySharingProfile: GallerySharingProfile; - galleryInVMAccessControlProfiles: GalleryInVMAccessControlProfiles; - galleryInVMAccessControlProfileVersions: GalleryInVMAccessControlProfileVersions; sharedGalleries: SharedGalleries; sharedGalleryImages: SharedGalleryImages; sharedGalleryImageVersions: SharedGalleryImageVersions; diff --git a/sdk/compute/arm-compute/src/models/index.ts b/sdk/compute/arm-compute/src/models/index.ts index 40ca822f17de..002a46124b6f 100644 --- a/sdk/compute/arm-compute/src/models/index.ts +++ b/sdk/compute/arm-compute/src/models/index.ts @@ -1645,6 +1645,8 @@ export interface StorageProfile { dataDisks?: DataDisk[]; /** Specifies the disk controller type configured for the VM. **Note:** This property will be set to the default disk controller type if not specified provided virtual machine is being created with 'hyperVGeneration' set to V2 based on the capabilities of the operating system disk and VM size from the the specified minimum api version. You need to deallocate the VM before updating its disk controller type unless you are updating the VM size in the VM configuration which implicitly deallocates and reallocates the VM. Minimum api-version: 2022-08-01. */ diskControllerType?: DiskControllerTypes; + /** Specifies whether the regional disks should be aligned/moved to the VM zone. This is applicable only for VMs with placement property set. Please note that this change is irreversible. Minimum api-version: 2024-11-01. */ + alignRegionalDisksToVMZone?: boolean; } /** Specifies information about the operating system disk used by the virtual machine. For more information about disks, see [About disks and VHDs for Azure virtual machines](https://docs.microsoft.com/azure/virtual-machines/managed-disks-overview). */ @@ -2128,6 +2130,16 @@ export interface LastPatchInstallationSummary { readonly error?: ApiError; } +/** Describes the user-defined constraints for virtual machine hardware placement. */ +export interface Placement { + /** Specifies the policy for virtual machine's placement in availability zone. Possible values are: **Any** - An availability zone will be automatically picked by system as part of virtual machine creation. */ + zonePlacementPolicy?: ZonePlacementPolicyType; + /** This property supplements the 'zonePlacementPolicy' property. If 'zonePlacementPolicy' is set to 'Any', availability zone selected by the system must be present in the list of availability zones passed with 'includeZones'. If 'includeZones' is not provided, all availability zones in region will be considered for selection. */ + includeZones?: string[]; + /** This property supplements the 'zonePlacementPolicy' property. If 'zonePlacementPolicy' is set to 'Any', availability zone selected by the system must not be present in the list of availability zones passed with 'excludeZones'. If 'excludeZones' is not provided, all availability zones in region will be considered for selection. */ + excludeZones?: string[]; +} + /** Capture Virtual Machine parameters. */ export interface VirtualMachineCaptureParameters { /** The captured virtual hard disk's name prefix. */ @@ -3769,26 +3781,6 @@ export interface RegionalSharingStatus { details?: string; } -/** Identity for the virtual machine. */ -export interface GalleryIdentity { - /** - * The principal id of the gallery identity. This property will only be provided for a system assigned identity. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly principalId?: string; - /** - * The AAD tenant id of the gallery identity. This property will only be provided for a system assigned identity. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly tenantId?: string; - /** The type of identity used for the gallery. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user assigned identities. The type 'None' will remove all identities from the gallery. */ - type?: ResourceIdentityType; - /** The list of user identities associated with the gallery. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. */ - userAssignedIdentities?: { - [propertyName: string]: UserAssignedIdentitiesValue; - }; -} - /** The Update Resource model definition. */ export interface UpdateResourceDefinition { /** @@ -3858,8 +3850,6 @@ export interface GalleryImageFeature { name?: string; /** The value of the gallery image feature. */ value?: string; - /** The minimum gallery image version which supports this feature. */ - startsAtVersion?: string; } /** Describes the basic gallery artifact publishing profile. */ @@ -3897,8 +3887,6 @@ export interface TargetRegion { encryption?: EncryptionImages; /** Contains the flag setting to hide an image when users specify version='latest' */ excludeFromLatest?: boolean; - /** List of storage sku with replica count to create direct drive replicas. */ - additionalReplicaSets?: AdditionalReplicaSet[]; } /** Optional. Allows users to provide customer managed keys for encrypting the OS and data disks in the gallery artifact. */ @@ -3923,14 +3911,6 @@ export interface DiskImageEncryption { diskEncryptionSetId?: string; } -/** Describes the additional replica set information. */ -export interface AdditionalReplicaSet { - /** Specifies the storage account type to be used to create the direct drive replicas */ - storageAccountType?: StorageAccountType; - /** The number of direct drive replicas of the Image Version to be created.This Property is updatable */ - regionalReplicaCount?: number; -} - export interface GalleryTargetExtendedLocation { /** The name of the region. */ name?: string; @@ -4066,41 +4046,6 @@ export interface UefiKey { value?: string[]; } -/** This is the validations profile of a Gallery Image Version. */ -export interface ValidationsProfile { - /** The published time of the image version */ - validationEtag?: string; - executedValidations?: ExecutedValidation[]; - /** This specifies the pub, offer, sku and version of the image version metadata */ - platformAttributes?: PlatformAttribute[]; -} - -/** This is the executed Validation. */ -export interface ExecutedValidation { - /** This property specifies the type of image version validation. */ - type?: string; - /** This property specifies the status of the validationProfile of the image version. */ - status?: ValidationStatus; - /** This property specifies the valid version of the validation. */ - version?: string; - /** This property specifies the starting timestamp. */ - executionTime?: Date; -} - -/** This is the platform attribute of the image version. */ -export interface PlatformAttribute { - /** - * This property specifies the name of the platformAttribute. It is read-only. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly name?: string; - /** - * This property specifies the value of the corresponding name property. It is read-only. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly value?: string; -} - /** A custom action that can be performed with a Gallery Application Version. */ export interface GalleryApplicationCustomAction { /** The name of the custom action. Must be unique within the Gallery Application Version. */ @@ -4150,8 +4095,6 @@ export interface UserArtifactSettings { packageFileName?: string; /** Optional. The name to assign the downloaded config file on the VM. This is limited to 4096 characters. If not specified, the config file will be named the Gallery Application name appended with "_config". */ configFileName?: string; - /** Optional. The action to be taken with regards to install/update/remove of the gallery application in the event of a reboot. */ - scriptBehaviorAfterReboot?: GalleryApplicationScriptRebootBehavior; } /** The List Galleries operation response. */ @@ -4160,8 +4103,6 @@ export interface GalleryList { value: Gallery[]; /** The uri to fetch the next page of galleries. Call ListNext() with this to fetch the next page of galleries. */ nextLink?: string; - /** The security profile of a gallery image version */ - securityProfile?: ImageVersionSecurityProfile; } /** The List Gallery Images operation response. */ @@ -4196,14 +4137,6 @@ export interface GalleryApplicationVersionList { nextLink?: string; } -/** The List Soft-deleted Resources operation response. */ -export interface GallerySoftDeletedResourceList { - /** A list of soft-deleted resources. */ - value: GallerySoftDeletedResource[]; - /** The uri to fetch the next page of soft-deleted resources. Call ListNext() with this to fetch the next page of soft-deleted resources. */ - nextLink?: string; -} - /** Specifies information about the gallery sharing profile update. */ export interface SharingUpdate { /** This property allows you to specify the operation type of gallery sharing update. Possible values are: **Add,** **Remove,** **Reset.** */ @@ -4212,106 +4145,6 @@ export interface SharingUpdate { groups?: SharingProfileGroup[]; } -/** The properties of a gallery ResourceProfile. */ -export interface GalleryResourceProfilePropertiesBase { - /** - * The provisioning state, which only appears in the response. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly provisioningState?: GalleryProvisioningState; -} - -/** This is the Access Control Rules specification for an inVMAccessControlProfile version. */ -export interface AccessControlRules { - /** A list of privileges. */ - privileges?: AccessControlRulesPrivilege[]; - /** A list of roles. */ - roles?: AccessControlRulesRole[]; - /** A list of identities. */ - identities?: AccessControlRulesIdentity[]; - /** A list of role assignments. */ - roleAssignments?: AccessControlRulesRoleAssignment[]; -} - -/** The properties of an Access Control Rule Privilege. */ -export interface AccessControlRulesPrivilege { - /** The name of the privilege. */ - name: string; - /** The HTTP path corresponding to the privilege. */ - path: string; - /** The query parameters to match in the path. */ - queryParameters?: { [propertyName: string]: string }; -} - -/** The properties of an Access Control Rule Role. */ -export interface AccessControlRulesRole { - /** The name of the role. */ - name: string; - /** A list of privileges needed by this role. */ - privileges: string[]; -} - -/** The properties of an Access Control Rule Identity. */ -export interface AccessControlRulesIdentity { - /** The name of the identity. */ - name: string; - /** The username corresponding to this identity. */ - userName?: string; - /** The groupName corresponding to this identity. */ - groupName?: string; - /** The path to the executable. */ - exePath?: string; - /** The process name of the executable. */ - processName?: string; -} - -/** The properties of an Access Control Rule RoleAssignment. */ -export interface AccessControlRulesRoleAssignment { - /** The name of the role. */ - role: string; - /** A list of identities that can access the privileges defined by the role. */ - identities: string[]; -} - -/** The properties of a gallery ResourceProfile version. */ -export interface GalleryResourceProfileVersionPropertiesBase { - /** The target regions where the Resource Profile version is going to be replicated to. This property is updatable. */ - targetLocations?: TargetRegion[]; - /** If set to true, Virtual Machines deployed from the latest version of the Resource Profile won't use this Profile version. */ - excludeFromLatest?: boolean; - /** - * The timestamp for when the Resource Profile Version is published. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly publishedDate?: Date; - /** - * The provisioning state, which only appears in the response. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly provisioningState?: GalleryProvisioningState; - /** - * This is the replication status of the gallery image version. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly replicationStatus?: ReplicationStatus; -} - -/** The List Gallery InVMAccessControlProfiles operation response. */ -export interface GalleryInVMAccessControlProfileList { - /** A list of Gallery InVMAccessControlProfiles. */ - value: GalleryInVMAccessControlProfile[]; - /** The uri to fetch the next page of inVMAccessControlProfiles in the gallery. Call ListNext() with this to fetch the next page of gallery inVMAccessControlProfiles. */ - nextLink?: string; -} - -/** The List Gallery InVMAccessControlProfile Versions operation response. */ -export interface GalleryInVMAccessControlProfileVersionList { - /** A list of Gallery InVMAccessControlProfile Versions. */ - value: GalleryInVMAccessControlProfileVersion[]; - /** The uri to fetch the next page of inVMAccessControlProfile versions. Call ListNext() with this to fetch the next page of gallery inVMAccessControlProfile versions. */ - nextLink?: string; -} - /** The List Shared Galleries operation response. */ export interface SharedGalleryList { /** A list of shared galleries. */ @@ -5542,6 +5375,8 @@ export interface VirtualMachine extends Resource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly etag?: string; + /** Placement section specifies the user-defined constraints for virtual machine hardware placement. This property cannot be changed once VM is provisioned. Minimum api-version: 2024-11-01. */ + placement?: Placement; /** Specifies the hardware settings for the virtual machine. */ hardwareProfile?: HardwareProfile; /** Specifies Redeploy, Reboot and ScheduledEventsAdditionalPublishingTargets Scheduled Event related configurations for the virtual machine. */ @@ -6129,8 +5964,6 @@ export interface Snapshot extends Resource { /** Specifies information about the Shared Image Gallery that you want to create or update. */ export interface Gallery extends Resource { - /** The identity of the gallery, if configured. */ - identity?: GalleryIdentity; /** The description of this Shared Image Gallery resource. This property is updatable. */ description?: string; /** Describes the gallery unique name. */ @@ -6184,10 +6017,8 @@ export interface GalleryImage extends Resource { readonly provisioningState?: GalleryProvisioningState; /** A list of gallery image features. */ features?: GalleryImageFeature[]; - /** CPU architecture supported by an OS disk. */ + /** The architecture of the image. Applicable to OS disks only. */ architecture?: Architecture; - /** Optional. Must be set to true if the gallery image features are being updated. */ - allowUpdateImage?: boolean; } /** Specifies information about the gallery image version that you want to create or update. */ @@ -6210,13 +6041,6 @@ export interface GalleryImageVersion extends Resource { readonly replicationStatus?: ReplicationStatus; /** The security profile of a gallery image version */ securityProfile?: ImageVersionSecurityProfile; - /** Indicates if this is a soft-delete resource restoration request. */ - restore?: boolean; - /** - * This is the validations profile of a Gallery Image Version. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly validationsProfile?: ValidationsProfile; } /** Specifies information about the gallery Application Definition that you want to create or update. */ @@ -6255,51 +6079,6 @@ export interface GalleryApplicationVersion extends Resource { readonly replicationStatus?: ReplicationStatus; } -/** The details information of soft-deleted resource. */ -export interface GallerySoftDeletedResource extends Resource { - /** arm id of the soft-deleted resource */ - resourceArmId?: string; - /** artifact type of the soft-deleted resource */ - softDeletedArtifactType?: SoftDeletedArtifactTypes; - /** The timestamp for when the resource is soft-deleted. In dateTime offset format. */ - softDeletedTime?: string; -} - -/** Specifies information about the gallery inVMAccessControlProfile that you want to create or update. */ -export interface GalleryInVMAccessControlProfile extends Resource { - /** Describes the properties of a gallery inVMAccessControlProfile. */ - properties?: GalleryInVMAccessControlProfileProperties; -} - -/** Specifies information about the gallery inVMAccessControlProfile version that you want to create or update. */ -export interface GalleryInVMAccessControlProfileVersion extends Resource { - /** The target regions where the Resource Profile version is going to be replicated to. This property is updatable. */ - targetLocations?: TargetRegion[]; - /** If set to true, Virtual Machines deployed from the latest version of the Resource Profile won't use this Profile version. */ - excludeFromLatest?: boolean; - /** - * The timestamp for when the Resource Profile Version is published. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly publishedDate?: Date; - /** - * The provisioning state, which only appears in the response. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly provisioningState?: GalleryProvisioningState; - /** - * This is the replication status of the gallery image version. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly replicationStatus?: ReplicationStatus; - /** This property allows you to specify whether the access control rules are in Audit mode, in Enforce mode or Disabled. Possible values are: 'Audit', 'Enforce' or 'Disabled'. */ - mode?: AccessControlRulesMode; - /** This property allows you to specify if the requests will be allowed to access the host endpoints. Possible values are: 'Allow', 'Deny'. */ - defaultAccess?: EndpointAccess; - /** This is the Access Control Rules specification for an inVMAccessControlProfile version. */ - rules?: AccessControlRules; -} - /** Describes a Virtual Machine Scale Set. */ export interface VirtualMachineScaleSetUpdate extends UpdateResource { /** The virtual machine scale set sku. */ @@ -6854,8 +6633,6 @@ export interface DiskRestorePoint extends ProxyOnlyResource { /** Specifies information about the Shared Image Gallery that you want to update. */ export interface GalleryUpdate extends UpdateResourceDefinition { - /** The identity of the gallery, if configured. */ - identity?: GalleryIdentity; /** The description of this Shared Image Gallery resource. This property is updatable. */ description?: string; /** Describes the gallery unique name. */ @@ -6909,10 +6686,8 @@ export interface GalleryImageUpdate extends UpdateResourceDefinition { readonly provisioningState?: GalleryProvisioningState; /** A list of gallery image features. */ features?: GalleryImageFeature[]; - /** CPU architecture supported by an OS disk. */ + /** The architecture of the image. Applicable to OS disks only. */ architecture?: Architecture; - /** Optional. Must be set to true if the gallery image features are being updated. */ - allowUpdateImage?: boolean; } /** Specifies information about the gallery image version that you want to update. */ @@ -6935,13 +6710,6 @@ export interface GalleryImageVersionUpdate extends UpdateResourceDefinition { readonly replicationStatus?: ReplicationStatus; /** The security profile of a gallery image version */ securityProfile?: ImageVersionSecurityProfile; - /** Indicates if this is a soft-delete resource restoration request. */ - restore?: boolean; - /** - * This is the validations profile of a Gallery Image Version. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly validationsProfile?: ValidationsProfile; } /** Specifies information about the gallery Application Definition that you want to update. */ @@ -6981,43 +6749,6 @@ export interface GalleryApplicationVersionUpdate readonly replicationStatus?: ReplicationStatus; } -/** Specifies information about the gallery inVMAccessControlProfile that you want to update. */ -export interface GalleryInVMAccessControlProfileUpdate - extends UpdateResourceDefinition { - /** Describes the properties of a gallery inVMAccessControlProfile. */ - properties?: GalleryInVMAccessControlProfileProperties; -} - -/** Specifies information about the gallery inVMAccessControlProfile version that you want to update. */ -export interface GalleryInVMAccessControlProfileVersionUpdate - extends UpdateResourceDefinition { - /** The target regions where the Resource Profile version is going to be replicated to. This property is updatable. */ - targetLocations?: TargetRegion[]; - /** If set to true, Virtual Machines deployed from the latest version of the Resource Profile won't use this Profile version. */ - excludeFromLatest?: boolean; - /** - * The timestamp for when the Resource Profile Version is published. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly publishedDate?: Date; - /** - * The provisioning state, which only appears in the response. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly provisioningState?: GalleryProvisioningState; - /** - * This is the replication status of the gallery image version. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly replicationStatus?: ReplicationStatus; - /** This property allows you to specify whether the access control rules are in Audit mode, in Enforce mode or Disabled. Possible values are: 'Audit', 'Enforce' or 'Disabled'. */ - mode?: AccessControlRulesMode; - /** This property allows you to specify if the requests will be allowed to access the host endpoints. Possible values are: 'Allow', 'Deny'. */ - defaultAccess?: EndpointAccess; - /** This is the Access Control Rules specification for an inVMAccessControlProfile version. */ - rules?: AccessControlRules; -} - /** The publishing profile of a gallery image Version. */ export interface GalleryImageVersionPublishingProfile extends GalleryArtifactPublishingProfileBase {} @@ -7089,36 +6820,12 @@ export interface GalleryImageVersionSafetyProfile * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly policyViolations?: PolicyViolation[]; - /** Indicates whether or not the deletion is blocked for this Gallery Image Version if its End Of Life has not expired. */ - blockDeletionBeforeEndOfLife?: boolean; } /** The safety profile of the Gallery Application Version. */ export interface GalleryApplicationVersionSafetyProfile extends GalleryArtifactSafetyProfileBase {} -/** Describes the properties of a gallery inVMAccessControlProfile. */ -export interface GalleryInVMAccessControlProfileProperties - extends GalleryResourceProfilePropertiesBase { - /** The description of this gallery inVMAccessControlProfile resources. This property is updatable. */ - description?: string; - /** This property allows you to specify the OS type of the VMs/VMSS for which this profile can be used against. Possible values are: 'Windows' or 'Linux' */ - osType: OperatingSystemTypes; - /** This property allows you to specify the Endpoint type for which this profile is defining the access control for. Possible values are: 'WireServer' or 'IMDS' */ - applicableHostEndpoint: EndpointTypes; -} - -/** Describes the properties of an inVMAccessControlProfile version. */ -export interface GalleryInVMAccessControlProfileVersionProperties - extends GalleryResourceProfileVersionPropertiesBase { - /** This property allows you to specify whether the access control rules are in Audit mode, in Enforce mode or Disabled. Possible values are: 'Audit', 'Enforce' or 'Disabled'. */ - mode: AccessControlRulesMode; - /** This property allows you to specify if the requests will be allowed to access the host endpoints. Possible values are: 'Allow', 'Deny'. */ - defaultAccess: EndpointAccess; - /** This is the Access Control Rules specification for an inVMAccessControlProfile version. */ - rules?: AccessControlRules; -} - /** Base information about the shared gallery resource in pir. */ export interface PirSharedGalleryResource extends PirResource { /** The unique id of this shared gallery. */ @@ -7164,7 +6871,7 @@ export interface CommunityGalleryImage extends PirCommunityGalleryResource { features?: GalleryImageFeature[]; /** Describes the gallery image definition purchase plan. This is used by marketplace images. */ purchasePlan?: ImagePurchasePlan; - /** CPU architecture supported by an OS disk. */ + /** The architecture of the image. Applicable to OS disks only. */ architecture?: Architecture; /** Privacy statement URI for the current community gallery image. */ privacyStatementUri?: string; @@ -7249,7 +6956,7 @@ export interface SharedGalleryImage extends PirSharedGalleryResource { features?: GalleryImageFeature[]; /** Describes the gallery image definition purchase plan. This is used by marketplace images. */ purchasePlan?: ImagePurchasePlan; - /** CPU architecture supported by an OS disk. */ + /** The architecture of the image. Applicable to OS disks only. */ architecture?: Architecture; /** Privacy statement uri for the current community gallery image. */ privacyStatementUri?: string; @@ -7303,18 +7010,6 @@ export interface DedicatedHostsRedeployHeaders { location?: string; } -/** Defines headers for GalleryInVMAccessControlProfiles_delete operation. */ -export interface GalleryInVMAccessControlProfilesDeleteHeaders { - location?: string; - azureAsyncOperation?: string; -} - -/** Defines headers for GalleryInVMAccessControlProfileVersions_delete operation. */ -export interface GalleryInVMAccessControlProfileVersionsDeleteHeaders { - location?: string; - azureAsyncOperation?: string; -} - /** Known values of {@link RepairAction} that the service accepts. */ export enum KnownRepairAction { /** Replace */ @@ -8632,6 +8327,21 @@ export enum KnownPatchOperationStatus { */ export type PatchOperationStatus = string; +/** Known values of {@link ZonePlacementPolicyType} that the service accepts. */ +export enum KnownZonePlacementPolicyType { + /** Any */ + Any = "Any", +} + +/** + * Defines values for ZonePlacementPolicyType. \ + * {@link KnownZonePlacementPolicyType} can be used interchangeably with ZonePlacementPolicyType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Any** + */ +export type ZonePlacementPolicyType = string; + /** Known values of {@link ExpandTypeForListVMs} that the service accepts. */ export enum KnownExpandTypeForListVMs { /** InstanceView */ @@ -9732,8 +9442,6 @@ export enum KnownStorageAccountType { StandardZRS = "Standard_ZRS", /** PremiumLRS */ PremiumLRS = "Premium_LRS", - /** PremiumV2LRS */ - PremiumV2LRS = "PremiumV2_LRS", } /** @@ -9743,8 +9451,7 @@ export enum KnownStorageAccountType { * ### Known values supported by the service * **Standard_LRS** \ * **Standard_ZRS** \ - * **Premium_LRS** \ - * **PremiumV2_LRS** + * **Premium_LRS** */ export type StorageAccountType = string; @@ -9943,27 +9650,6 @@ export enum KnownUefiKeyType { */ export type UefiKeyType = string; -/** Known values of {@link ValidationStatus} that the service accepts. */ -export enum KnownValidationStatus { - /** Unknown */ - Unknown = "Unknown", - /** Failed */ - Failed = "Failed", - /** Succeeded */ - Succeeded = "Succeeded", -} - -/** - * Defines values for ValidationStatus. \ - * {@link KnownValidationStatus} can be used interchangeably with ValidationStatus, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Unknown** \ - * **Failed** \ - * **Succeeded** - */ -export type ValidationStatus = string; - /** Known values of {@link ReplicationStatusTypes} that the service accepts. */ export enum KnownReplicationStatusTypes { /** ReplicationStatus */ @@ -9982,39 +9668,6 @@ export enum KnownReplicationStatusTypes { */ export type ReplicationStatusTypes = string; -/** Known values of {@link GalleryApplicationScriptRebootBehavior} that the service accepts. */ -export enum KnownGalleryApplicationScriptRebootBehavior { - /** None */ - None = "None", - /** Rerun */ - Rerun = "Rerun", -} - -/** - * Defines values for GalleryApplicationScriptRebootBehavior. \ - * {@link KnownGalleryApplicationScriptRebootBehavior} can be used interchangeably with GalleryApplicationScriptRebootBehavior, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **None** \ - * **Rerun** - */ -export type GalleryApplicationScriptRebootBehavior = string; - -/** Known values of {@link SoftDeletedArtifactTypes} that the service accepts. */ -export enum KnownSoftDeletedArtifactTypes { - /** Images */ - Images = "Images", -} - -/** - * Defines values for SoftDeletedArtifactTypes. \ - * {@link KnownSoftDeletedArtifactTypes} can be used interchangeably with SoftDeletedArtifactTypes, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Images** - */ -export type SoftDeletedArtifactTypes = string; - /** Known values of {@link SharingUpdateOperationTypes} that the service accepts. */ export enum KnownSharingUpdateOperationTypes { /** Add */ @@ -10039,45 +9692,6 @@ export enum KnownSharingUpdateOperationTypes { */ export type SharingUpdateOperationTypes = string; -/** Known values of {@link AccessControlRulesMode} that the service accepts. */ -export enum KnownAccessControlRulesMode { - /** Audit */ - Audit = "Audit", - /** Enforce */ - Enforce = "Enforce", - /** Disabled */ - Disabled = "Disabled", -} - -/** - * Defines values for AccessControlRulesMode. \ - * {@link KnownAccessControlRulesMode} can be used interchangeably with AccessControlRulesMode, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Audit** \ - * **Enforce** \ - * **Disabled** - */ -export type AccessControlRulesMode = string; - -/** Known values of {@link EndpointAccess} that the service accepts. */ -export enum KnownEndpointAccess { - /** Allow */ - Allow = "Allow", - /** Deny */ - Deny = "Deny", -} - -/** - * Defines values for EndpointAccess. \ - * {@link KnownEndpointAccess} can be used interchangeably with EndpointAccess, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Allow** \ - * **Deny** - */ -export type EndpointAccess = string; - /** Known values of {@link SharedToValues} that the service accepts. */ export enum KnownSharedToValues { /** Tenant */ @@ -10242,8 +9856,6 @@ export type GalleryApplicationCustomActionParameterType = | "String" | "ConfigurationDataBlob" | "LogOutputBlob"; -/** Defines values for EndpointTypes. */ -export type EndpointTypes = "WireServer" | "IMDS"; /** Optional parameters. */ export interface OperationsListOptionalParams @@ -11427,7 +11039,7 @@ export type AvailabilitySetsGetResponse = AvailabilitySet; /** Optional parameters. */ export interface AvailabilitySetsListBySubscriptionOptionalParams extends coreClient.OperationOptions { - /** The expand expression to apply to the operation. Allowed values are 'virtualMachines/$ref'. */ + /** The expand expression to apply to the operation. Allowed values are 'instanceView'. */ expand?: string; } @@ -12955,22 +12567,6 @@ export interface GalleryApplicationVersionsListByGalleryApplicationNextOptionalP export type GalleryApplicationVersionsListByGalleryApplicationNextResponse = GalleryApplicationVersionList; -/** Optional parameters. */ -export interface SoftDeletedResourceListByArtifactNameOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByArtifactName operation. */ -export type SoftDeletedResourceListByArtifactNameResponse = - GallerySoftDeletedResourceList; - -/** Optional parameters. */ -export interface SoftDeletedResourceListByArtifactNameNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByArtifactNameNext operation. */ -export type SoftDeletedResourceListByArtifactNameNextResponse = - GallerySoftDeletedResourceList; - /** Optional parameters. */ export interface GallerySharingProfileUpdateOptionalParams extends coreClient.OperationOptions { @@ -12983,132 +12579,6 @@ export interface GallerySharingProfileUpdateOptionalParams /** Contains response data for the update operation. */ export type GallerySharingProfileUpdateResponse = SharingUpdate; -/** Optional parameters. */ -export interface GalleryInVMAccessControlProfilesCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the createOrUpdate operation. */ -export type GalleryInVMAccessControlProfilesCreateOrUpdateResponse = - GalleryInVMAccessControlProfile; - -/** Optional parameters. */ -export interface GalleryInVMAccessControlProfilesUpdateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the update operation. */ -export type GalleryInVMAccessControlProfilesUpdateResponse = - GalleryInVMAccessControlProfile; - -/** Optional parameters. */ -export interface GalleryInVMAccessControlProfilesGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type GalleryInVMAccessControlProfilesGetResponse = - GalleryInVMAccessControlProfile; - -/** Optional parameters. */ -export interface GalleryInVMAccessControlProfilesDeleteOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the delete operation. */ -export type GalleryInVMAccessControlProfilesDeleteResponse = - GalleryInVMAccessControlProfilesDeleteHeaders; - -/** Optional parameters. */ -export interface GalleryInVMAccessControlProfilesListByGalleryOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByGallery operation. */ -export type GalleryInVMAccessControlProfilesListByGalleryResponse = - GalleryInVMAccessControlProfileList; - -/** Optional parameters. */ -export interface GalleryInVMAccessControlProfilesListByGalleryNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByGalleryNext operation. */ -export type GalleryInVMAccessControlProfilesListByGalleryNextResponse = - GalleryInVMAccessControlProfileList; - -/** Optional parameters. */ -export interface GalleryInVMAccessControlProfileVersionsCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the createOrUpdate operation. */ -export type GalleryInVMAccessControlProfileVersionsCreateOrUpdateResponse = - GalleryInVMAccessControlProfileVersion; - -/** Optional parameters. */ -export interface GalleryInVMAccessControlProfileVersionsUpdateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the update operation. */ -export type GalleryInVMAccessControlProfileVersionsUpdateResponse = - GalleryInVMAccessControlProfileVersion; - -/** Optional parameters. */ -export interface GalleryInVMAccessControlProfileVersionsGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type GalleryInVMAccessControlProfileVersionsGetResponse = - GalleryInVMAccessControlProfileVersion; - -/** Optional parameters. */ -export interface GalleryInVMAccessControlProfileVersionsDeleteOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the delete operation. */ -export type GalleryInVMAccessControlProfileVersionsDeleteResponse = - GalleryInVMAccessControlProfileVersionsDeleteHeaders; - -/** Optional parameters. */ -export interface GalleryInVMAccessControlProfileVersionsListByGalleryInVMAccessControlProfileOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByGalleryInVMAccessControlProfile operation. */ -export type GalleryInVMAccessControlProfileVersionsListByGalleryInVMAccessControlProfileResponse = - GalleryInVMAccessControlProfileVersionList; - -/** Optional parameters. */ -export interface GalleryInVMAccessControlProfileVersionsListByGalleryInVMAccessControlProfileNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByGalleryInVMAccessControlProfileNext operation. */ -export type GalleryInVMAccessControlProfileVersionsListByGalleryInVMAccessControlProfileNextResponse = - GalleryInVMAccessControlProfileVersionList; - /** Optional parameters. */ export interface SharedGalleriesListOptionalParams extends coreClient.OperationOptions { diff --git a/sdk/compute/arm-compute/src/models/mappers.ts b/sdk/compute/arm-compute/src/models/mappers.ts index 46bd9c897cc3..c04d56d1587d 100644 --- a/sdk/compute/arm-compute/src/models/mappers.ts +++ b/sdk/compute/arm-compute/src/models/mappers.ts @@ -4573,6 +4573,12 @@ export const StorageProfile: coreClient.CompositeMapper = { name: "String", }, }, + alignRegionalDisksToVMZone: { + serializedName: "alignRegionalDisksToVMZone", + type: { + name: "Boolean", + }, + }, }, }, }; @@ -5866,6 +5872,43 @@ export const LastPatchInstallationSummary: coreClient.CompositeMapper = { }, }; +export const Placement: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Placement", + modelProperties: { + zonePlacementPolicy: { + serializedName: "zonePlacementPolicy", + type: { + name: "String", + }, + }, + includeZones: { + serializedName: "includeZones", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + excludeZones: { + serializedName: "excludeZones", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + }, + }, +}; + export const VirtualMachineCaptureParameters: coreClient.CompositeMapper = { type: { name: "Composite", @@ -9904,53 +9947,6 @@ export const RegionalSharingStatus: coreClient.CompositeMapper = { }, }; -export const GalleryIdentity: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "GalleryIdentity", - modelProperties: { - principalId: { - serializedName: "principalId", - readOnly: true, - type: { - name: "String", - }, - }, - tenantId: { - serializedName: "tenantId", - readOnly: true, - type: { - name: "String", - }, - }, - type: { - serializedName: "type", - type: { - name: "Enum", - allowedValues: [ - "SystemAssigned", - "UserAssigned", - "SystemAssigned, UserAssigned", - "None", - ], - }, - }, - userAssignedIdentities: { - serializedName: "userAssignedIdentities", - type: { - name: "Dictionary", - value: { - type: { - name: "Composite", - className: "UserAssignedIdentitiesValue", - }, - }, - }, - }, - }, - }, -}; - export const UpdateResourceDefinition: coreClient.CompositeMapper = { type: { name: "Composite", @@ -10126,12 +10122,6 @@ export const GalleryImageFeature: coreClient.CompositeMapper = { name: "String", }, }, - startsAtVersion: { - serializedName: "startsAtVersion", - type: { - name: "String", - }, - }, }, }, }; @@ -10244,18 +10234,6 @@ export const TargetRegion: coreClient.CompositeMapper = { name: "Boolean", }, }, - additionalReplicaSets: { - serializedName: "additionalReplicaSets", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "AdditionalReplicaSet", - }, - }, - }, - }, }, }, }; @@ -10324,27 +10302,6 @@ export const DiskImageEncryption: coreClient.CompositeMapper = { }, }; -export const AdditionalReplicaSet: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AdditionalReplicaSet", - modelProperties: { - storageAccountType: { - serializedName: "storageAccountType", - type: { - name: "String", - }, - }, - regionalReplicaCount: { - serializedName: "regionalReplicaCount", - type: { - name: "Number", - }, - }, - }, - }, -}; - export const GalleryTargetExtendedLocation: coreClient.CompositeMapper = { type: { name: "Composite", @@ -10710,101 +10667,6 @@ export const UefiKey: coreClient.CompositeMapper = { }, }; -export const ValidationsProfile: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ValidationsProfile", - modelProperties: { - validationEtag: { - serializedName: "validationEtag", - type: { - name: "String", - }, - }, - executedValidations: { - serializedName: "executedValidations", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ExecutedValidation", - }, - }, - }, - }, - platformAttributes: { - serializedName: "platformAttributes", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PlatformAttribute", - }, - }, - }, - }, - }, - }, -}; - -export const ExecutedValidation: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ExecutedValidation", - modelProperties: { - type: { - serializedName: "type", - type: { - name: "String", - }, - }, - status: { - serializedName: "status", - type: { - name: "String", - }, - }, - version: { - serializedName: "version", - type: { - name: "String", - }, - }, - executionTime: { - serializedName: "executionTime", - type: { - name: "DateTime", - }, - }, - }, - }, -}; - -export const PlatformAttribute: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PlatformAttribute", - modelProperties: { - name: { - serializedName: "name", - readOnly: true, - type: { - name: "String", - }, - }, - value: { - serializedName: "value", - readOnly: true, - type: { - name: "String", - }, - }, - }, - }, -}; - export const GalleryApplicationCustomAction: coreClient.CompositeMapper = { type: { name: "Composite", @@ -10956,12 +10818,6 @@ export const UserArtifactSettings: coreClient.CompositeMapper = { name: "String", }, }, - scriptBehaviorAfterReboot: { - serializedName: "scriptBehaviorAfterReboot", - type: { - name: "String", - }, - }, }, }, }; @@ -10990,13 +10846,6 @@ export const GalleryList: coreClient.CompositeMapper = { name: "String", }, }, - securityProfile: { - serializedName: "securityProfile", - type: { - name: "Composite", - className: "ImageVersionSecurityProfile", - }, - }, }, }, }; @@ -11113,34 +10962,6 @@ export const GalleryApplicationVersionList: coreClient.CompositeMapper = { }, }; -export const GallerySoftDeletedResourceList: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "GallerySoftDeletedResourceList", - modelProperties: { - value: { - serializedName: "value", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "GallerySoftDeletedResource", - }, - }, - }, - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String", - }, - }, - }, - }, -}; - export const SharingUpdate: coreClient.CompositeMapper = { type: { name: "Composite", @@ -11169,334 +10990,28 @@ export const SharingUpdate: coreClient.CompositeMapper = { }, }; -export const GalleryResourceProfilePropertiesBase: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "GalleryResourceProfilePropertiesBase", - modelProperties: { - provisioningState: { - serializedName: "provisioningState", - readOnly: true, - type: { - name: "String", - }, - }, - }, - }, - }; - -export const AccessControlRules: coreClient.CompositeMapper = { +export const SharedGalleryList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AccessControlRules", + className: "SharedGalleryList", modelProperties: { - privileges: { - serializedName: "privileges", + value: { + serializedName: "value", + required: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "AccessControlRulesPrivilege", + className: "SharedGallery", }, }, }, }, - roles: { - serializedName: "roles", + nextLink: { + serializedName: "nextLink", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "AccessControlRulesRole", - }, - }, - }, - }, - identities: { - serializedName: "identities", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "AccessControlRulesIdentity", - }, - }, - }, - }, - roleAssignments: { - serializedName: "roleAssignments", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "AccessControlRulesRoleAssignment", - }, - }, - }, - }, - }, - }, -}; - -export const AccessControlRulesPrivilege: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AccessControlRulesPrivilege", - modelProperties: { - name: { - serializedName: "name", - required: true, - type: { - name: "String", - }, - }, - path: { - serializedName: "path", - required: true, - type: { - name: "String", - }, - }, - queryParameters: { - serializedName: "queryParameters", - type: { - name: "Dictionary", - value: { type: { name: "String" } }, - }, - }, - }, - }, -}; - -export const AccessControlRulesRole: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AccessControlRulesRole", - modelProperties: { - name: { - serializedName: "name", - required: true, - type: { - name: "String", - }, - }, - privileges: { - serializedName: "privileges", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, - }, - }, - }, - }, -}; - -export const AccessControlRulesIdentity: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AccessControlRulesIdentity", - modelProperties: { - name: { - serializedName: "name", - required: true, - type: { - name: "String", - }, - }, - userName: { - serializedName: "userName", - type: { - name: "String", - }, - }, - groupName: { - serializedName: "groupName", - type: { - name: "String", - }, - }, - exePath: { - serializedName: "exePath", - type: { - name: "String", - }, - }, - processName: { - serializedName: "processName", - type: { - name: "String", - }, - }, - }, - }, -}; - -export const AccessControlRulesRoleAssignment: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AccessControlRulesRoleAssignment", - modelProperties: { - role: { - serializedName: "role", - required: true, - type: { - name: "String", - }, - }, - identities: { - serializedName: "identities", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, - }, - }, - }, - }, -}; - -export const GalleryResourceProfileVersionPropertiesBase: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "GalleryResourceProfileVersionPropertiesBase", - modelProperties: { - targetLocations: { - serializedName: "targetLocations", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "TargetRegion", - }, - }, - }, - }, - excludeFromLatest: { - serializedName: "excludeFromLatest", - type: { - name: "Boolean", - }, - }, - publishedDate: { - serializedName: "publishedDate", - readOnly: true, - type: { - name: "DateTime", - }, - }, - provisioningState: { - serializedName: "provisioningState", - readOnly: true, - type: { - name: "String", - }, - }, - replicationStatus: { - serializedName: "replicationStatus", - type: { - name: "Composite", - className: "ReplicationStatus", - }, - }, - }, - }, - }; - -export const GalleryInVMAccessControlProfileList: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "GalleryInVMAccessControlProfileList", - modelProperties: { - value: { - serializedName: "value", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "GalleryInVMAccessControlProfile", - }, - }, - }, - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String", - }, - }, - }, - }, -}; - -export const GalleryInVMAccessControlProfileVersionList: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "GalleryInVMAccessControlProfileVersionList", - modelProperties: { - value: { - serializedName: "value", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "GalleryInVMAccessControlProfileVersion", - }, - }, - }, - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String", - }, - }, - }, - }, - }; - -export const SharedGalleryList: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SharedGalleryList", - modelProperties: { - value: { - serializedName: "value", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SharedGallery", - }, - }, - }, - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String", + name: "String", }, }, }, @@ -14408,6 +13923,13 @@ export const VirtualMachine: coreClient.CompositeMapper = { name: "String", }, }, + placement: { + serializedName: "placement", + type: { + name: "Composite", + className: "Placement", + }, + }, hardwareProfile: { serializedName: "properties.hardwareProfile", type: { @@ -15875,13 +15397,6 @@ export const Gallery: coreClient.CompositeMapper = { className: "Gallery", modelProperties: { ...Resource.type.modelProperties, - identity: { - serializedName: "identity", - type: { - name: "Composite", - className: "GalleryIdentity", - }, - }, description: { serializedName: "properties.description", type: { @@ -16036,12 +15551,6 @@ export const GalleryImage: coreClient.CompositeMapper = { name: "String", }, }, - allowUpdateImage: { - serializedName: "properties.allowUpdateImage", - type: { - name: "Boolean", - }, - }, }, }, }; @@ -16094,19 +15603,6 @@ export const GalleryImageVersion: coreClient.CompositeMapper = { className: "ImageVersionSecurityProfile", }, }, - restore: { - serializedName: "properties.restore", - type: { - name: "Boolean", - }, - }, - validationsProfile: { - serializedName: "properties.validationsProfile", - type: { - name: "Composite", - className: "ValidationsProfile", - }, - }, }, }, }; @@ -16208,120 +15704,6 @@ export const GalleryApplicationVersion: coreClient.CompositeMapper = { }, }; -export const GallerySoftDeletedResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "GallerySoftDeletedResource", - modelProperties: { - ...Resource.type.modelProperties, - resourceArmId: { - serializedName: "properties.resourceArmId", - type: { - name: "String", - }, - }, - softDeletedArtifactType: { - serializedName: "properties.softDeletedArtifactType", - type: { - name: "String", - }, - }, - softDeletedTime: { - serializedName: "properties.softDeletedTime", - type: { - name: "String", - }, - }, - }, - }, -}; - -export const GalleryInVMAccessControlProfile: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "GalleryInVMAccessControlProfile", - modelProperties: { - ...Resource.type.modelProperties, - properties: { - serializedName: "properties", - type: { - name: "Composite", - className: "GalleryInVMAccessControlProfileProperties", - }, - }, - }, - }, -}; - -export const GalleryInVMAccessControlProfileVersion: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "GalleryInVMAccessControlProfileVersion", - modelProperties: { - ...Resource.type.modelProperties, - targetLocations: { - serializedName: "properties.targetLocations", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "TargetRegion", - }, - }, - }, - }, - excludeFromLatest: { - serializedName: "properties.excludeFromLatest", - type: { - name: "Boolean", - }, - }, - publishedDate: { - serializedName: "properties.publishedDate", - readOnly: true, - type: { - name: "DateTime", - }, - }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, - type: { - name: "String", - }, - }, - replicationStatus: { - serializedName: "properties.replicationStatus", - type: { - name: "Composite", - className: "ReplicationStatus", - }, - }, - mode: { - serializedName: "properties.mode", - type: { - name: "String", - }, - }, - defaultAccess: { - serializedName: "properties.defaultAccess", - type: { - name: "String", - }, - }, - rules: { - serializedName: "properties.rules", - type: { - name: "Composite", - className: "AccessControlRules", - }, - }, - }, - }, - }; - export const VirtualMachineScaleSetUpdate: coreClient.CompositeMapper = { type: { name: "Composite", @@ -17763,13 +17145,6 @@ export const GalleryUpdate: coreClient.CompositeMapper = { className: "GalleryUpdate", modelProperties: { ...UpdateResourceDefinition.type.modelProperties, - identity: { - serializedName: "identity", - type: { - name: "Composite", - className: "GalleryIdentity", - }, - }, description: { serializedName: "properties.description", type: { @@ -17924,12 +17299,6 @@ export const GalleryImageUpdate: coreClient.CompositeMapper = { name: "String", }, }, - allowUpdateImage: { - serializedName: "properties.allowUpdateImage", - type: { - name: "Boolean", - }, - }, }, }, }; @@ -17982,19 +17351,6 @@ export const GalleryImageVersionUpdate: coreClient.CompositeMapper = { className: "ImageVersionSecurityProfile", }, }, - restore: { - serializedName: "properties.restore", - type: { - name: "Boolean", - }, - }, - validationsProfile: { - serializedName: "properties.validationsProfile", - type: { - name: "Composite", - className: "ValidationsProfile", - }, - }, }, }, }; @@ -18096,93 +17452,6 @@ export const GalleryApplicationVersionUpdate: coreClient.CompositeMapper = { }, }; -export const GalleryInVMAccessControlProfileUpdate: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "GalleryInVMAccessControlProfileUpdate", - modelProperties: { - ...UpdateResourceDefinition.type.modelProperties, - properties: { - serializedName: "properties", - type: { - name: "Composite", - className: "GalleryInVMAccessControlProfileProperties", - }, - }, - }, - }, - }; - -export const GalleryInVMAccessControlProfileVersionUpdate: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "GalleryInVMAccessControlProfileVersionUpdate", - modelProperties: { - ...UpdateResourceDefinition.type.modelProperties, - targetLocations: { - serializedName: "properties.targetLocations", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "TargetRegion", - }, - }, - }, - }, - excludeFromLatest: { - serializedName: "properties.excludeFromLatest", - type: { - name: "Boolean", - }, - }, - publishedDate: { - serializedName: "properties.publishedDate", - readOnly: true, - type: { - name: "DateTime", - }, - }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, - type: { - name: "String", - }, - }, - replicationStatus: { - serializedName: "properties.replicationStatus", - type: { - name: "Composite", - className: "ReplicationStatus", - }, - }, - mode: { - serializedName: "properties.mode", - type: { - name: "String", - }, - }, - defaultAccess: { - serializedName: "properties.defaultAccess", - type: { - name: "String", - }, - }, - rules: { - serializedName: "properties.rules", - type: { - name: "Composite", - className: "AccessControlRules", - }, - }, - }, - }, - }; - export const GalleryImageVersionPublishingProfile: coreClient.CompositeMapper = { type: { @@ -18382,12 +17651,6 @@ export const GalleryImageVersionSafetyProfile: coreClient.CompositeMapper = { }, }, }, - blockDeletionBeforeEndOfLife: { - serializedName: "blockDeletionBeforeEndOfLife", - type: { - name: "Boolean", - }, - }, }, }, }; @@ -18403,71 +17666,6 @@ export const GalleryApplicationVersionSafetyProfile: coreClient.CompositeMapper }, }; -export const GalleryInVMAccessControlProfileProperties: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "GalleryInVMAccessControlProfileProperties", - modelProperties: { - ...GalleryResourceProfilePropertiesBase.type.modelProperties, - description: { - serializedName: "description", - type: { - name: "String", - }, - }, - osType: { - serializedName: "osType", - required: true, - type: { - name: "Enum", - allowedValues: ["Windows", "Linux"], - }, - }, - applicableHostEndpoint: { - serializedName: "applicableHostEndpoint", - required: true, - type: { - name: "Enum", - allowedValues: ["WireServer", "IMDS"], - }, - }, - }, - }, - }; - -export const GalleryInVMAccessControlProfileVersionProperties: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "GalleryInVMAccessControlProfileVersionProperties", - modelProperties: { - ...GalleryResourceProfileVersionPropertiesBase.type.modelProperties, - mode: { - serializedName: "mode", - required: true, - type: { - name: "String", - }, - }, - defaultAccess: { - serializedName: "defaultAccess", - required: true, - type: { - name: "String", - }, - }, - rules: { - serializedName: "rules", - type: { - name: "Composite", - className: "AccessControlRules", - }, - }, - }, - }, - }; - export const PirSharedGalleryResource: coreClient.CompositeMapper = { type: { name: "Composite", @@ -19054,47 +18252,3 @@ export const DedicatedHostsRedeployHeaders: coreClient.CompositeMapper = { }, }, }; - -export const GalleryInVMAccessControlProfilesDeleteHeaders: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "GalleryInVMAccessControlProfilesDeleteHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String", - }, - }, - azureAsyncOperation: { - serializedName: "azure-asyncoperation", - type: { - name: "String", - }, - }, - }, - }, - }; - -export const GalleryInVMAccessControlProfileVersionsDeleteHeaders: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "GalleryInVMAccessControlProfileVersionsDeleteHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String", - }, - }, - azureAsyncOperation: { - serializedName: "azure-asyncoperation", - type: { - name: "String", - }, - }, - }, - }, - }; diff --git a/sdk/compute/arm-compute/src/models/parameters.ts b/sdk/compute/arm-compute/src/models/parameters.ts index 57d85e71ede6..045789980e8d 100644 --- a/sdk/compute/arm-compute/src/models/parameters.ts +++ b/sdk/compute/arm-compute/src/models/parameters.ts @@ -79,10 +79,6 @@ import { GalleryApplicationVersion as GalleryApplicationVersionMapper, GalleryApplicationVersionUpdate as GalleryApplicationVersionUpdateMapper, SharingUpdate as SharingUpdateMapper, - GalleryInVMAccessControlProfile as GalleryInVMAccessControlProfileMapper, - GalleryInVMAccessControlProfileUpdate as GalleryInVMAccessControlProfileUpdateMapper, - GalleryInVMAccessControlProfileVersion as GalleryInVMAccessControlProfileVersionMapper, - GalleryInVMAccessControlProfileVersionUpdate as GalleryInVMAccessControlProfileVersionUpdateMapper, CloudService as CloudServiceMapper, CloudServiceUpdate as CloudServiceUpdateMapper, RoleInstances as RoleInstancesMapper, @@ -116,7 +112,7 @@ export const $host: OperationURLParameter = { export const apiVersion: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2024-07-01", + defaultValue: "2024-11-01", isConstant: true, serializedName: "api-version", type: { @@ -1173,7 +1169,7 @@ export const galleryName: OperationURLParameter = { export const apiVersion3: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2024-03-03", + defaultValue: "2023-07-03", isConstant: true, serializedName: "api-version", type: { @@ -1301,138 +1297,11 @@ export const galleryApplicationVersion1: OperationParameter = { mapper: GalleryApplicationVersionUpdateMapper, }; -export const galleryName1: OperationURLParameter = { - parameterPath: "galleryName", - mapper: { - constraints: { - Pattern: new RegExp("^[a-zA-Z0-9]+([_]?[a-zA-Z0-9]+)*$"), - }, - serializedName: "galleryName", - required: true, - type: { - name: "String", - }, - }, -}; - -export const artifactType: OperationURLParameter = { - parameterPath: "artifactType", - mapper: { - constraints: { - Pattern: new RegExp("^[a-zA-Z0-9]+([_]?[a-zA-Z0-9]+)*$"), - }, - serializedName: "artifactType", - required: true, - type: { - name: "String", - }, - }, -}; - -export const artifactName: OperationURLParameter = { - parameterPath: "artifactName", - mapper: { - constraints: { - Pattern: new RegExp("^[a-zA-Z0-9]+([_]?[a-zA-Z0-9]+)*$"), - }, - serializedName: "artifactName", - required: true, - type: { - name: "String", - }, - }, -}; - export const sharingUpdate: OperationParameter = { parameterPath: "sharingUpdate", mapper: SharingUpdateMapper, }; -export const galleryInVMAccessControlProfile: OperationParameter = { - parameterPath: "galleryInVMAccessControlProfile", - mapper: GalleryInVMAccessControlProfileMapper, -}; - -export const inVMAccessControlProfileName: OperationURLParameter = { - parameterPath: "inVMAccessControlProfileName", - mapper: { - constraints: { - Pattern: new RegExp("^[a-zA-Z0-9]+([-._]?[a-zA-Z0-9]+)*$"), - MaxLength: 80, - }, - serializedName: "inVMAccessControlProfileName", - required: true, - type: { - name: "String", - }, - }, -}; - -export const galleryInVMAccessControlProfile1: OperationParameter = { - parameterPath: "galleryInVMAccessControlProfile", - mapper: GalleryInVMAccessControlProfileUpdateMapper, -}; - -export const inVMAccessControlProfileName1: OperationURLParameter = { - parameterPath: "inVMAccessControlProfileName", - mapper: { - serializedName: "inVMAccessControlProfileName", - required: true, - type: { - name: "String", - }, - }, -}; - -export const galleryInVMAccessControlProfileVersion: OperationParameter = { - parameterPath: "galleryInVMAccessControlProfileVersion", - mapper: GalleryInVMAccessControlProfileVersionMapper, -}; - -export const inVMAccessControlProfileVersionName: OperationURLParameter = { - parameterPath: "inVMAccessControlProfileVersionName", - mapper: { - constraints: { - Pattern: new RegExp("^[0-9]+\\.[0-9]+\\.[0-9]+$"), - }, - serializedName: "inVMAccessControlProfileVersionName", - required: true, - type: { - name: "String", - }, - }, -}; - -export const galleryInVMAccessControlProfileVersion1: OperationParameter = { - parameterPath: "galleryInVMAccessControlProfileVersion", - mapper: GalleryInVMAccessControlProfileVersionUpdateMapper, -}; - -export const inVMAccessControlProfileVersionName1: OperationURLParameter = { - parameterPath: "inVMAccessControlProfileVersionName", - mapper: { - serializedName: "inVMAccessControlProfileVersionName", - required: true, - type: { - name: "String", - }, - }, -}; - -export const inVMAccessControlProfileName2: OperationURLParameter = { - parameterPath: "inVMAccessControlProfileName", - mapper: { - constraints: { - Pattern: new RegExp("^[a-zA-Z0-9]+([-._]?[a-zA-Z0-9]+)*$"), - }, - serializedName: "inVMAccessControlProfileName", - required: true, - type: { - name: "String", - }, - }, -}; - export const sharedTo: OperationQueryParameter = { parameterPath: ["options", "sharedTo"], mapper: { diff --git a/sdk/compute/arm-compute/src/operations/galleryInVMAccessControlProfileVersions.ts b/sdk/compute/arm-compute/src/operations/galleryInVMAccessControlProfileVersions.ts deleted file mode 100644 index f6f2a932bcee..000000000000 --- a/sdk/compute/arm-compute/src/operations/galleryInVMAccessControlProfileVersions.ts +++ /dev/null @@ -1,762 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { GalleryInVMAccessControlProfileVersions } from "../operationsInterfaces"; -import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { ComputeManagementClient } from "../computeManagementClient"; -import { - SimplePollerLike, - OperationState, - createHttpPoller, -} from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; -import { - GalleryInVMAccessControlProfileVersion, - GalleryInVMAccessControlProfileVersionsListByGalleryInVMAccessControlProfileNextOptionalParams, - GalleryInVMAccessControlProfileVersionsListByGalleryInVMAccessControlProfileOptionalParams, - GalleryInVMAccessControlProfileVersionsListByGalleryInVMAccessControlProfileResponse, - GalleryInVMAccessControlProfileVersionsCreateOrUpdateOptionalParams, - GalleryInVMAccessControlProfileVersionsCreateOrUpdateResponse, - GalleryInVMAccessControlProfileVersionUpdate, - GalleryInVMAccessControlProfileVersionsUpdateOptionalParams, - GalleryInVMAccessControlProfileVersionsUpdateResponse, - GalleryInVMAccessControlProfileVersionsGetOptionalParams, - GalleryInVMAccessControlProfileVersionsGetResponse, - GalleryInVMAccessControlProfileVersionsDeleteOptionalParams, - GalleryInVMAccessControlProfileVersionsDeleteResponse, - GalleryInVMAccessControlProfileVersionsListByGalleryInVMAccessControlProfileNextResponse, -} from "../models"; - -/// -/** Class containing GalleryInVMAccessControlProfileVersions operations. */ -export class GalleryInVMAccessControlProfileVersionsImpl - implements GalleryInVMAccessControlProfileVersions -{ - private readonly client: ComputeManagementClient; - - /** - * Initialize a new instance of the class GalleryInVMAccessControlProfileVersions class. - * @param client Reference to the service client - */ - constructor(client: ComputeManagementClient) { - this.client = client; - } - - /** - * List gallery inVMAccessControlProfile versions in a gallery inVMAccessControlProfile - * @param resourceGroupName The name of the resource group. - * @param galleryName The name of the Shared Image Gallery in which the inVMAccessControlProfile - * resides. - * @param inVMAccessControlProfileName The name of the gallery inVMAccessControlProfile from which the - * inVMAccessControlProfile versions are to be listed. - * @param options The options parameters. - */ - public listByGalleryInVMAccessControlProfile( - resourceGroupName: string, - galleryName: string, - inVMAccessControlProfileName: string, - options?: GalleryInVMAccessControlProfileVersionsListByGalleryInVMAccessControlProfileOptionalParams, - ): PagedAsyncIterableIterator { - const iter = this.listByGalleryInVMAccessControlProfilePagingAll( - resourceGroupName, - galleryName, - inVMAccessControlProfileName, - options, - ); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: (settings?: PageSettings) => { - if (settings?.maxPageSize) { - throw new Error("maxPageSize is not supported by this operation."); - } - return this.listByGalleryInVMAccessControlProfilePagingPage( - resourceGroupName, - galleryName, - inVMAccessControlProfileName, - options, - settings, - ); - }, - }; - } - - private async *listByGalleryInVMAccessControlProfilePagingPage( - resourceGroupName: string, - galleryName: string, - inVMAccessControlProfileName: string, - options?: GalleryInVMAccessControlProfileVersionsListByGalleryInVMAccessControlProfileOptionalParams, - settings?: PageSettings, - ): AsyncIterableIterator { - let result: GalleryInVMAccessControlProfileVersionsListByGalleryInVMAccessControlProfileResponse; - let continuationToken = settings?.continuationToken; - if (!continuationToken) { - result = await this._listByGalleryInVMAccessControlProfile( - resourceGroupName, - galleryName, - inVMAccessControlProfileName, - options, - ); - let page = result.value || []; - continuationToken = result.nextLink; - setContinuationToken(page, continuationToken); - yield page; - } - while (continuationToken) { - result = await this._listByGalleryInVMAccessControlProfileNext( - resourceGroupName, - galleryName, - inVMAccessControlProfileName, - continuationToken, - options, - ); - continuationToken = result.nextLink; - let page = result.value || []; - setContinuationToken(page, continuationToken); - yield page; - } - } - - private async *listByGalleryInVMAccessControlProfilePagingAll( - resourceGroupName: string, - galleryName: string, - inVMAccessControlProfileName: string, - options?: GalleryInVMAccessControlProfileVersionsListByGalleryInVMAccessControlProfileOptionalParams, - ): AsyncIterableIterator { - for await (const page of this.listByGalleryInVMAccessControlProfilePagingPage( - resourceGroupName, - galleryName, - inVMAccessControlProfileName, - options, - )) { - yield* page; - } - } - - /** - * Create or update a gallery inVMAccessControlProfile version. - * @param resourceGroupName The name of the resource group. - * @param galleryName The name of the Shared Image Gallery in which the inVMAccessControlProfile - * resides. - * @param inVMAccessControlProfileName The name of the gallery inVMAccessControlProfile in which the - * inVMAccessControlProfile version is to be created. - * @param inVMAccessControlProfileVersionName The name of the gallery inVMAccessControlProfile version - * to be created. Needs to follow semantic version name pattern: The allowed characters are digit and - * period. Digits must be within the range of a 32-bit integer. Format: - * .. - * @param galleryInVMAccessControlProfileVersion Parameters supplied to the create or update gallery - * inVMAccessControlProfile version operation. - * @param options The options parameters. - */ - async beginCreateOrUpdate( - resourceGroupName: string, - galleryName: string, - inVMAccessControlProfileName: string, - inVMAccessControlProfileVersionName: string, - galleryInVMAccessControlProfileVersion: GalleryInVMAccessControlProfileVersion, - options?: GalleryInVMAccessControlProfileVersionsCreateOrUpdateOptionalParams, - ): Promise< - SimplePollerLike< - OperationState, - GalleryInVMAccessControlProfileVersionsCreateOrUpdateResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec, - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec, - ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown, - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback, - }, - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON(), - }, - }; - }; - - const lro = createLroSpec({ - sendOperationFn, - args: { - resourceGroupName, - galleryName, - inVMAccessControlProfileName, - inVMAccessControlProfileVersionName, - galleryInVMAccessControlProfileVersion, - options, - }, - spec: createOrUpdateOperationSpec, - }); - const poller = await createHttpPoller< - GalleryInVMAccessControlProfileVersionsCreateOrUpdateResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - }); - await poller.poll(); - return poller; - } - - /** - * Create or update a gallery inVMAccessControlProfile version. - * @param resourceGroupName The name of the resource group. - * @param galleryName The name of the Shared Image Gallery in which the inVMAccessControlProfile - * resides. - * @param inVMAccessControlProfileName The name of the gallery inVMAccessControlProfile in which the - * inVMAccessControlProfile version is to be created. - * @param inVMAccessControlProfileVersionName The name of the gallery inVMAccessControlProfile version - * to be created. Needs to follow semantic version name pattern: The allowed characters are digit and - * period. Digits must be within the range of a 32-bit integer. Format: - * .. - * @param galleryInVMAccessControlProfileVersion Parameters supplied to the create or update gallery - * inVMAccessControlProfile version operation. - * @param options The options parameters. - */ - async beginCreateOrUpdateAndWait( - resourceGroupName: string, - galleryName: string, - inVMAccessControlProfileName: string, - inVMAccessControlProfileVersionName: string, - galleryInVMAccessControlProfileVersion: GalleryInVMAccessControlProfileVersion, - options?: GalleryInVMAccessControlProfileVersionsCreateOrUpdateOptionalParams, - ): Promise { - const poller = await this.beginCreateOrUpdate( - resourceGroupName, - galleryName, - inVMAccessControlProfileName, - inVMAccessControlProfileVersionName, - galleryInVMAccessControlProfileVersion, - options, - ); - return poller.pollUntilDone(); - } - - /** - * Update a gallery inVMAccessControlProfile version. - * @param resourceGroupName The name of the resource group. - * @param galleryName The name of the Shared Image Gallery in which the inVMAccessControlProfile - * resides. - * @param inVMAccessControlProfileName The name of the gallery inVMAccessControlProfile in which the - * inVMAccessControlProfile version is to be updated. - * @param inVMAccessControlProfileVersionName The name of the gallery inVMAccessControlProfile version - * to be updated. Needs to follow semantic version name pattern: The allowed characters are digit and - * period. Digits must be within the range of a 32-bit integer. Format: - * .. - * @param galleryInVMAccessControlProfileVersion Parameters supplied to the update gallery - * inVMAccessControlProfile version operation. - * @param options The options parameters. - */ - async beginUpdate( - resourceGroupName: string, - galleryName: string, - inVMAccessControlProfileName: string, - inVMAccessControlProfileVersionName: string, - galleryInVMAccessControlProfileVersion: GalleryInVMAccessControlProfileVersionUpdate, - options?: GalleryInVMAccessControlProfileVersionsUpdateOptionalParams, - ): Promise< - SimplePollerLike< - OperationState, - GalleryInVMAccessControlProfileVersionsUpdateResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec, - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec, - ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown, - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback, - }, - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON(), - }, - }; - }; - - const lro = createLroSpec({ - sendOperationFn, - args: { - resourceGroupName, - galleryName, - inVMAccessControlProfileName, - inVMAccessControlProfileVersionName, - galleryInVMAccessControlProfileVersion, - options, - }, - spec: updateOperationSpec, - }); - const poller = await createHttpPoller< - GalleryInVMAccessControlProfileVersionsUpdateResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - }); - await poller.poll(); - return poller; - } - - /** - * Update a gallery inVMAccessControlProfile version. - * @param resourceGroupName The name of the resource group. - * @param galleryName The name of the Shared Image Gallery in which the inVMAccessControlProfile - * resides. - * @param inVMAccessControlProfileName The name of the gallery inVMAccessControlProfile in which the - * inVMAccessControlProfile version is to be updated. - * @param inVMAccessControlProfileVersionName The name of the gallery inVMAccessControlProfile version - * to be updated. Needs to follow semantic version name pattern: The allowed characters are digit and - * period. Digits must be within the range of a 32-bit integer. Format: - * .. - * @param galleryInVMAccessControlProfileVersion Parameters supplied to the update gallery - * inVMAccessControlProfile version operation. - * @param options The options parameters. - */ - async beginUpdateAndWait( - resourceGroupName: string, - galleryName: string, - inVMAccessControlProfileName: string, - inVMAccessControlProfileVersionName: string, - galleryInVMAccessControlProfileVersion: GalleryInVMAccessControlProfileVersionUpdate, - options?: GalleryInVMAccessControlProfileVersionsUpdateOptionalParams, - ): Promise { - const poller = await this.beginUpdate( - resourceGroupName, - galleryName, - inVMAccessControlProfileName, - inVMAccessControlProfileVersionName, - galleryInVMAccessControlProfileVersion, - options, - ); - return poller.pollUntilDone(); - } - - /** - * Retrieves information about a gallery inVMAccessControlProfile version. - * @param resourceGroupName The name of the resource group. - * @param galleryName The name of the Shared Image Gallery in which the inVMAccessControlProfile - * resides. - * @param inVMAccessControlProfileName The name of the gallery inVMAccessControlProfile in which the - * inVMAccessControlProfile version resides. - * @param inVMAccessControlProfileVersionName The name of the gallery inVMAccessControlProfile version - * to be retrieved. - * @param options The options parameters. - */ - get( - resourceGroupName: string, - galleryName: string, - inVMAccessControlProfileName: string, - inVMAccessControlProfileVersionName: string, - options?: GalleryInVMAccessControlProfileVersionsGetOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - galleryName, - inVMAccessControlProfileName, - inVMAccessControlProfileVersionName, - options, - }, - getOperationSpec, - ); - } - - /** - * Delete a gallery inVMAccessControlProfile version. - * @param resourceGroupName The name of the resource group. - * @param galleryName The name of the Shared Image Gallery in which the inVMAccessControlProfile - * resides. - * @param inVMAccessControlProfileName The name of the gallery inVMAccessControlProfile in which the - * inVMAccessControlProfile version resides. - * @param inVMAccessControlProfileVersionName The name of the gallery inVMAccessControlProfile version - * to be deleted. - * @param options The options parameters. - */ - async beginDelete( - resourceGroupName: string, - galleryName: string, - inVMAccessControlProfileName: string, - inVMAccessControlProfileVersionName: string, - options?: GalleryInVMAccessControlProfileVersionsDeleteOptionalParams, - ): Promise< - SimplePollerLike< - OperationState, - GalleryInVMAccessControlProfileVersionsDeleteResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec, - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec, - ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown, - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback, - }, - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON(), - }, - }; - }; - - const lro = createLroSpec({ - sendOperationFn, - args: { - resourceGroupName, - galleryName, - inVMAccessControlProfileName, - inVMAccessControlProfileVersionName, - options, - }, - spec: deleteOperationSpec, - }); - const poller = await createHttpPoller< - GalleryInVMAccessControlProfileVersionsDeleteResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - }); - await poller.poll(); - return poller; - } - - /** - * Delete a gallery inVMAccessControlProfile version. - * @param resourceGroupName The name of the resource group. - * @param galleryName The name of the Shared Image Gallery in which the inVMAccessControlProfile - * resides. - * @param inVMAccessControlProfileName The name of the gallery inVMAccessControlProfile in which the - * inVMAccessControlProfile version resides. - * @param inVMAccessControlProfileVersionName The name of the gallery inVMAccessControlProfile version - * to be deleted. - * @param options The options parameters. - */ - async beginDeleteAndWait( - resourceGroupName: string, - galleryName: string, - inVMAccessControlProfileName: string, - inVMAccessControlProfileVersionName: string, - options?: GalleryInVMAccessControlProfileVersionsDeleteOptionalParams, - ): Promise { - const poller = await this.beginDelete( - resourceGroupName, - galleryName, - inVMAccessControlProfileName, - inVMAccessControlProfileVersionName, - options, - ); - return poller.pollUntilDone(); - } - - /** - * List gallery inVMAccessControlProfile versions in a gallery inVMAccessControlProfile - * @param resourceGroupName The name of the resource group. - * @param galleryName The name of the Shared Image Gallery in which the inVMAccessControlProfile - * resides. - * @param inVMAccessControlProfileName The name of the gallery inVMAccessControlProfile from which the - * inVMAccessControlProfile versions are to be listed. - * @param options The options parameters. - */ - private _listByGalleryInVMAccessControlProfile( - resourceGroupName: string, - galleryName: string, - inVMAccessControlProfileName: string, - options?: GalleryInVMAccessControlProfileVersionsListByGalleryInVMAccessControlProfileOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, galleryName, inVMAccessControlProfileName, options }, - listByGalleryInVMAccessControlProfileOperationSpec, - ); - } - - /** - * ListByGalleryInVMAccessControlProfileNext - * @param resourceGroupName The name of the resource group. - * @param galleryName The name of the Shared Image Gallery in which the inVMAccessControlProfile - * resides. - * @param inVMAccessControlProfileName The name of the gallery inVMAccessControlProfile from which the - * inVMAccessControlProfile versions are to be listed. - * @param nextLink The nextLink from the previous successful call to the - * ListByGalleryInVMAccessControlProfile method. - * @param options The options parameters. - */ - private _listByGalleryInVMAccessControlProfileNext( - resourceGroupName: string, - galleryName: string, - inVMAccessControlProfileName: string, - nextLink: string, - options?: GalleryInVMAccessControlProfileVersionsListByGalleryInVMAccessControlProfileNextOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - galleryName, - inVMAccessControlProfileName, - nextLink, - options, - }, - listByGalleryInVMAccessControlProfileNextOperationSpec, - ); - } -} -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/inVMAccessControlProfiles/{inVMAccessControlProfileName}/versions/{inVMAccessControlProfileVersionName}", - httpMethod: "PUT", - responses: { - 200: { - bodyMapper: Mappers.GalleryInVMAccessControlProfileVersion, - }, - 201: { - bodyMapper: Mappers.GalleryInVMAccessControlProfileVersion, - }, - 202: { - bodyMapper: Mappers.GalleryInVMAccessControlProfileVersion, - }, - 204: { - bodyMapper: Mappers.GalleryInVMAccessControlProfileVersion, - }, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - requestBody: Parameters.galleryInVMAccessControlProfileVersion, - queryParameters: [Parameters.apiVersion3], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.galleryName1, - Parameters.inVMAccessControlProfileName, - Parameters.inVMAccessControlProfileVersionName, - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer, -}; -const updateOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/inVMAccessControlProfiles/{inVMAccessControlProfileName}/versions/{inVMAccessControlProfileVersionName}", - httpMethod: "PATCH", - responses: { - 200: { - bodyMapper: Mappers.GalleryInVMAccessControlProfileVersion, - }, - 201: { - bodyMapper: Mappers.GalleryInVMAccessControlProfileVersion, - }, - 202: { - bodyMapper: Mappers.GalleryInVMAccessControlProfileVersion, - }, - 204: { - bodyMapper: Mappers.GalleryInVMAccessControlProfileVersion, - }, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - requestBody: Parameters.galleryInVMAccessControlProfileVersion1, - queryParameters: [Parameters.apiVersion3], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.galleryName, - Parameters.inVMAccessControlProfileName1, - Parameters.inVMAccessControlProfileVersionName1, - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer, -}; -const getOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/inVMAccessControlProfiles/{inVMAccessControlProfileName}/versions/{inVMAccessControlProfileVersionName}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.GalleryInVMAccessControlProfileVersion, - }, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - queryParameters: [Parameters.apiVersion3], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.galleryName, - Parameters.inVMAccessControlProfileName1, - Parameters.inVMAccessControlProfileVersionName1, - ], - headerParameters: [Parameters.accept], - serializer, -}; -const deleteOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/inVMAccessControlProfiles/{inVMAccessControlProfileName}/versions/{inVMAccessControlProfileVersionName}", - httpMethod: "DELETE", - responses: { - 200: { - headersMapper: - Mappers.GalleryInVMAccessControlProfileVersionsDeleteHeaders, - }, - 201: { - headersMapper: - Mappers.GalleryInVMAccessControlProfileVersionsDeleteHeaders, - }, - 202: { - headersMapper: - Mappers.GalleryInVMAccessControlProfileVersionsDeleteHeaders, - }, - 204: { - headersMapper: - Mappers.GalleryInVMAccessControlProfileVersionsDeleteHeaders, - }, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - queryParameters: [Parameters.apiVersion3], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.galleryName, - Parameters.inVMAccessControlProfileName1, - Parameters.inVMAccessControlProfileVersionName1, - ], - headerParameters: [Parameters.accept], - serializer, -}; -const listByGalleryInVMAccessControlProfileOperationSpec: coreClient.OperationSpec = - { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/inVMAccessControlProfiles/{inVMAccessControlProfileName}/versions", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.GalleryInVMAccessControlProfileVersionList, - }, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - queryParameters: [Parameters.apiVersion3], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.galleryName1, - Parameters.inVMAccessControlProfileName2, - ], - headerParameters: [Parameters.accept], - serializer, - }; -const listByGalleryInVMAccessControlProfileNextOperationSpec: coreClient.OperationSpec = - { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.GalleryInVMAccessControlProfileVersionList, - }, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.nextLink, - Parameters.resourceGroupName, - Parameters.galleryName1, - Parameters.inVMAccessControlProfileName2, - ], - headerParameters: [Parameters.accept], - serializer, - }; diff --git a/sdk/compute/arm-compute/src/operations/galleryInVMAccessControlProfiles.ts b/sdk/compute/arm-compute/src/operations/galleryInVMAccessControlProfiles.ts deleted file mode 100644 index 6b5fc5b9d509..000000000000 --- a/sdk/compute/arm-compute/src/operations/galleryInVMAccessControlProfiles.ts +++ /dev/null @@ -1,688 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { GalleryInVMAccessControlProfiles } from "../operationsInterfaces"; -import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { ComputeManagementClient } from "../computeManagementClient"; -import { - SimplePollerLike, - OperationState, - createHttpPoller, -} from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; -import { - GalleryInVMAccessControlProfile, - GalleryInVMAccessControlProfilesListByGalleryNextOptionalParams, - GalleryInVMAccessControlProfilesListByGalleryOptionalParams, - GalleryInVMAccessControlProfilesListByGalleryResponse, - GalleryInVMAccessControlProfilesCreateOrUpdateOptionalParams, - GalleryInVMAccessControlProfilesCreateOrUpdateResponse, - GalleryInVMAccessControlProfileUpdate, - GalleryInVMAccessControlProfilesUpdateOptionalParams, - GalleryInVMAccessControlProfilesUpdateResponse, - GalleryInVMAccessControlProfilesGetOptionalParams, - GalleryInVMAccessControlProfilesGetResponse, - GalleryInVMAccessControlProfilesDeleteOptionalParams, - GalleryInVMAccessControlProfilesDeleteResponse, - GalleryInVMAccessControlProfilesListByGalleryNextResponse, -} from "../models"; - -/// -/** Class containing GalleryInVMAccessControlProfiles operations. */ -export class GalleryInVMAccessControlProfilesImpl - implements GalleryInVMAccessControlProfiles -{ - private readonly client: ComputeManagementClient; - - /** - * Initialize a new instance of the class GalleryInVMAccessControlProfiles class. - * @param client Reference to the service client - */ - constructor(client: ComputeManagementClient) { - this.client = client; - } - - /** - * List gallery inVMAccessControlProfiles in a gallery. - * @param resourceGroupName The name of the resource group. - * @param galleryName The name of the Shared Image Gallery from which the InVMAccessControlProfiles are - * to be listed. - * @param options The options parameters. - */ - public listByGallery( - resourceGroupName: string, - galleryName: string, - options?: GalleryInVMAccessControlProfilesListByGalleryOptionalParams, - ): PagedAsyncIterableIterator { - const iter = this.listByGalleryPagingAll( - resourceGroupName, - galleryName, - options, - ); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: (settings?: PageSettings) => { - if (settings?.maxPageSize) { - throw new Error("maxPageSize is not supported by this operation."); - } - return this.listByGalleryPagingPage( - resourceGroupName, - galleryName, - options, - settings, - ); - }, - }; - } - - private async *listByGalleryPagingPage( - resourceGroupName: string, - galleryName: string, - options?: GalleryInVMAccessControlProfilesListByGalleryOptionalParams, - settings?: PageSettings, - ): AsyncIterableIterator { - let result: GalleryInVMAccessControlProfilesListByGalleryResponse; - let continuationToken = settings?.continuationToken; - if (!continuationToken) { - result = await this._listByGallery( - resourceGroupName, - galleryName, - options, - ); - let page = result.value || []; - continuationToken = result.nextLink; - setContinuationToken(page, continuationToken); - yield page; - } - while (continuationToken) { - result = await this._listByGalleryNext( - resourceGroupName, - galleryName, - continuationToken, - options, - ); - continuationToken = result.nextLink; - let page = result.value || []; - setContinuationToken(page, continuationToken); - yield page; - } - } - - private async *listByGalleryPagingAll( - resourceGroupName: string, - galleryName: string, - options?: GalleryInVMAccessControlProfilesListByGalleryOptionalParams, - ): AsyncIterableIterator { - for await (const page of this.listByGalleryPagingPage( - resourceGroupName, - galleryName, - options, - )) { - yield* page; - } - } - - /** - * Create or update a gallery inVMAccessControlProfile. - * @param resourceGroupName The name of the resource group. - * @param galleryName The name of the Shared Image Gallery in which the InVMAccessControlProfile is to - * be created. - * @param inVMAccessControlProfileName The name of the gallery inVMAccessControlProfile to be created - * or updated. The allowed characters are alphabets and numbers with dots, dashes, and periods allowed - * in the middle. The maximum length is 80 characters. - * @param galleryInVMAccessControlProfile Parameters supplied to the create or update gallery - * inVMAccessControlProfile operation. - * @param options The options parameters. - */ - async beginCreateOrUpdate( - resourceGroupName: string, - galleryName: string, - inVMAccessControlProfileName: string, - galleryInVMAccessControlProfile: GalleryInVMAccessControlProfile, - options?: GalleryInVMAccessControlProfilesCreateOrUpdateOptionalParams, - ): Promise< - SimplePollerLike< - OperationState, - GalleryInVMAccessControlProfilesCreateOrUpdateResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec, - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec, - ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown, - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback, - }, - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON(), - }, - }; - }; - - const lro = createLroSpec({ - sendOperationFn, - args: { - resourceGroupName, - galleryName, - inVMAccessControlProfileName, - galleryInVMAccessControlProfile, - options, - }, - spec: createOrUpdateOperationSpec, - }); - const poller = await createHttpPoller< - GalleryInVMAccessControlProfilesCreateOrUpdateResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - }); - await poller.poll(); - return poller; - } - - /** - * Create or update a gallery inVMAccessControlProfile. - * @param resourceGroupName The name of the resource group. - * @param galleryName The name of the Shared Image Gallery in which the InVMAccessControlProfile is to - * be created. - * @param inVMAccessControlProfileName The name of the gallery inVMAccessControlProfile to be created - * or updated. The allowed characters are alphabets and numbers with dots, dashes, and periods allowed - * in the middle. The maximum length is 80 characters. - * @param galleryInVMAccessControlProfile Parameters supplied to the create or update gallery - * inVMAccessControlProfile operation. - * @param options The options parameters. - */ - async beginCreateOrUpdateAndWait( - resourceGroupName: string, - galleryName: string, - inVMAccessControlProfileName: string, - galleryInVMAccessControlProfile: GalleryInVMAccessControlProfile, - options?: GalleryInVMAccessControlProfilesCreateOrUpdateOptionalParams, - ): Promise { - const poller = await this.beginCreateOrUpdate( - resourceGroupName, - galleryName, - inVMAccessControlProfileName, - galleryInVMAccessControlProfile, - options, - ); - return poller.pollUntilDone(); - } - - /** - * Update a gallery inVMAccessControlProfile. - * @param resourceGroupName The name of the resource group. - * @param galleryName The name of the Shared Image Gallery in which the InVMAccessControlProfile is to - * be updated. - * @param inVMAccessControlProfileName The name of the gallery inVMAccessControlProfile to be updated. - * The allowed characters are alphabets and numbers with dots, dashes, and periods allowed in the - * middle. The maximum length is 80 characters. - * @param galleryInVMAccessControlProfile Parameters supplied to the update gallery - * inVMAccessControlProfile operation. - * @param options The options parameters. - */ - async beginUpdate( - resourceGroupName: string, - galleryName: string, - inVMAccessControlProfileName: string, - galleryInVMAccessControlProfile: GalleryInVMAccessControlProfileUpdate, - options?: GalleryInVMAccessControlProfilesUpdateOptionalParams, - ): Promise< - SimplePollerLike< - OperationState, - GalleryInVMAccessControlProfilesUpdateResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec, - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec, - ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown, - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback, - }, - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON(), - }, - }; - }; - - const lro = createLroSpec({ - sendOperationFn, - args: { - resourceGroupName, - galleryName, - inVMAccessControlProfileName, - galleryInVMAccessControlProfile, - options, - }, - spec: updateOperationSpec, - }); - const poller = await createHttpPoller< - GalleryInVMAccessControlProfilesUpdateResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - }); - await poller.poll(); - return poller; - } - - /** - * Update a gallery inVMAccessControlProfile. - * @param resourceGroupName The name of the resource group. - * @param galleryName The name of the Shared Image Gallery in which the InVMAccessControlProfile is to - * be updated. - * @param inVMAccessControlProfileName The name of the gallery inVMAccessControlProfile to be updated. - * The allowed characters are alphabets and numbers with dots, dashes, and periods allowed in the - * middle. The maximum length is 80 characters. - * @param galleryInVMAccessControlProfile Parameters supplied to the update gallery - * inVMAccessControlProfile operation. - * @param options The options parameters. - */ - async beginUpdateAndWait( - resourceGroupName: string, - galleryName: string, - inVMAccessControlProfileName: string, - galleryInVMAccessControlProfile: GalleryInVMAccessControlProfileUpdate, - options?: GalleryInVMAccessControlProfilesUpdateOptionalParams, - ): Promise { - const poller = await this.beginUpdate( - resourceGroupName, - galleryName, - inVMAccessControlProfileName, - galleryInVMAccessControlProfile, - options, - ); - return poller.pollUntilDone(); - } - - /** - * Retrieves information about a gallery inVMAccessControlProfile. - * @param resourceGroupName The name of the resource group. - * @param galleryName The name of the Shared Image Gallery from which the InVMAccessControlProfiles are - * to be retrieved. - * @param inVMAccessControlProfileName The name of the gallery inVMAccessControlProfile to be - * retrieved. - * @param options The options parameters. - */ - get( - resourceGroupName: string, - galleryName: string, - inVMAccessControlProfileName: string, - options?: GalleryInVMAccessControlProfilesGetOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, galleryName, inVMAccessControlProfileName, options }, - getOperationSpec, - ); - } - - /** - * Delete a gallery inVMAccessControlProfile. - * @param resourceGroupName The name of the resource group. - * @param galleryName he name of the Shared Image Gallery in which the InVMAccessControlProfile - * resides. - * @param inVMAccessControlProfileName The name of the gallery inVMAccessControlProfile to be deleted. - * @param options The options parameters. - */ - async beginDelete( - resourceGroupName: string, - galleryName: string, - inVMAccessControlProfileName: string, - options?: GalleryInVMAccessControlProfilesDeleteOptionalParams, - ): Promise< - SimplePollerLike< - OperationState, - GalleryInVMAccessControlProfilesDeleteResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec, - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec, - ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown, - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback, - }, - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON(), - }, - }; - }; - - const lro = createLroSpec({ - sendOperationFn, - args: { - resourceGroupName, - galleryName, - inVMAccessControlProfileName, - options, - }, - spec: deleteOperationSpec, - }); - const poller = await createHttpPoller< - GalleryInVMAccessControlProfilesDeleteResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - }); - await poller.poll(); - return poller; - } - - /** - * Delete a gallery inVMAccessControlProfile. - * @param resourceGroupName The name of the resource group. - * @param galleryName he name of the Shared Image Gallery in which the InVMAccessControlProfile - * resides. - * @param inVMAccessControlProfileName The name of the gallery inVMAccessControlProfile to be deleted. - * @param options The options parameters. - */ - async beginDeleteAndWait( - resourceGroupName: string, - galleryName: string, - inVMAccessControlProfileName: string, - options?: GalleryInVMAccessControlProfilesDeleteOptionalParams, - ): Promise { - const poller = await this.beginDelete( - resourceGroupName, - galleryName, - inVMAccessControlProfileName, - options, - ); - return poller.pollUntilDone(); - } - - /** - * List gallery inVMAccessControlProfiles in a gallery. - * @param resourceGroupName The name of the resource group. - * @param galleryName The name of the Shared Image Gallery from which the InVMAccessControlProfiles are - * to be listed. - * @param options The options parameters. - */ - private _listByGallery( - resourceGroupName: string, - galleryName: string, - options?: GalleryInVMAccessControlProfilesListByGalleryOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, galleryName, options }, - listByGalleryOperationSpec, - ); - } - - /** - * ListByGalleryNext - * @param resourceGroupName The name of the resource group. - * @param galleryName The name of the Shared Image Gallery from which the InVMAccessControlProfiles are - * to be listed. - * @param nextLink The nextLink from the previous successful call to the ListByGallery method. - * @param options The options parameters. - */ - private _listByGalleryNext( - resourceGroupName: string, - galleryName: string, - nextLink: string, - options?: GalleryInVMAccessControlProfilesListByGalleryNextOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, galleryName, nextLink, options }, - listByGalleryNextOperationSpec, - ); - } -} -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/inVMAccessControlProfiles/{inVMAccessControlProfileName}", - httpMethod: "PUT", - responses: { - 200: { - bodyMapper: Mappers.GalleryInVMAccessControlProfile, - }, - 201: { - bodyMapper: Mappers.GalleryInVMAccessControlProfile, - }, - 202: { - bodyMapper: Mappers.GalleryInVMAccessControlProfile, - }, - 204: { - bodyMapper: Mappers.GalleryInVMAccessControlProfile, - }, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - requestBody: Parameters.galleryInVMAccessControlProfile, - queryParameters: [Parameters.apiVersion3], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.galleryName1, - Parameters.inVMAccessControlProfileName, - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer, -}; -const updateOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/inVMAccessControlProfiles/{inVMAccessControlProfileName}", - httpMethod: "PATCH", - responses: { - 200: { - bodyMapper: Mappers.GalleryInVMAccessControlProfile, - }, - 201: { - bodyMapper: Mappers.GalleryInVMAccessControlProfile, - }, - 202: { - bodyMapper: Mappers.GalleryInVMAccessControlProfile, - }, - 204: { - bodyMapper: Mappers.GalleryInVMAccessControlProfile, - }, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - requestBody: Parameters.galleryInVMAccessControlProfile1, - queryParameters: [Parameters.apiVersion3], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.galleryName, - Parameters.inVMAccessControlProfileName1, - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer, -}; -const getOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/inVMAccessControlProfiles/{inVMAccessControlProfileName}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.GalleryInVMAccessControlProfile, - }, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - queryParameters: [Parameters.apiVersion3], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.galleryName, - Parameters.inVMAccessControlProfileName1, - ], - headerParameters: [Parameters.accept], - serializer, -}; -const deleteOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/inVMAccessControlProfiles/{inVMAccessControlProfileName}", - httpMethod: "DELETE", - responses: { - 200: { - headersMapper: Mappers.GalleryInVMAccessControlProfilesDeleteHeaders, - }, - 201: { - headersMapper: Mappers.GalleryInVMAccessControlProfilesDeleteHeaders, - }, - 202: { - headersMapper: Mappers.GalleryInVMAccessControlProfilesDeleteHeaders, - }, - 204: { - headersMapper: Mappers.GalleryInVMAccessControlProfilesDeleteHeaders, - }, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - queryParameters: [Parameters.apiVersion3], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.galleryName, - Parameters.inVMAccessControlProfileName1, - ], - headerParameters: [Parameters.accept], - serializer, -}; -const listByGalleryOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/inVMAccessControlProfiles", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.GalleryInVMAccessControlProfileList, - }, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - queryParameters: [Parameters.apiVersion3], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.galleryName1, - ], - headerParameters: [Parameters.accept], - serializer, -}; -const listByGalleryNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.GalleryInVMAccessControlProfileList, - }, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.nextLink, - Parameters.resourceGroupName, - Parameters.galleryName1, - ], - headerParameters: [Parameters.accept], - serializer, -}; diff --git a/sdk/compute/arm-compute/src/operations/index.ts b/sdk/compute/arm-compute/src/operations/index.ts index a5d61a4df502..502684dc464f 100644 --- a/sdk/compute/arm-compute/src/operations/index.ts +++ b/sdk/compute/arm-compute/src/operations/index.ts @@ -43,10 +43,7 @@ export * from "./galleryImages"; export * from "./galleryImageVersions"; export * from "./galleryApplications"; export * from "./galleryApplicationVersions"; -export * from "./softDeletedResource"; export * from "./gallerySharingProfile"; -export * from "./galleryInVMAccessControlProfiles"; -export * from "./galleryInVMAccessControlProfileVersions"; export * from "./sharedGalleries"; export * from "./sharedGalleryImages"; export * from "./sharedGalleryImageVersions"; diff --git a/sdk/compute/arm-compute/src/operations/softDeletedResource.ts b/sdk/compute/arm-compute/src/operations/softDeletedResource.ts deleted file mode 100644 index f95ad5267a75..000000000000 --- a/sdk/compute/arm-compute/src/operations/softDeletedResource.ts +++ /dev/null @@ -1,243 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { SoftDeletedResource } from "../operationsInterfaces"; -import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { ComputeManagementClient } from "../computeManagementClient"; -import { - GallerySoftDeletedResource, - SoftDeletedResourceListByArtifactNameNextOptionalParams, - SoftDeletedResourceListByArtifactNameOptionalParams, - SoftDeletedResourceListByArtifactNameResponse, - SoftDeletedResourceListByArtifactNameNextResponse, -} from "../models"; - -/// -/** Class containing SoftDeletedResource operations. */ -export class SoftDeletedResourceImpl implements SoftDeletedResource { - private readonly client: ComputeManagementClient; - - /** - * Initialize a new instance of the class SoftDeletedResource class. - * @param client Reference to the service client - */ - constructor(client: ComputeManagementClient) { - this.client = client; - } - - /** - * List soft-deleted resources of an artifact in the gallery, such as soft-deleted gallery image - * version of an image. - * @param resourceGroupName The name of the resource group. - * @param galleryName The name of the Gallery in which the soft-deleted resources resides. - * @param artifactType The type of the artifact to be listed, such as gallery image version. - * @param artifactName The artifact name to be listed. If artifact type is Images, then the artifact - * name should be the gallery image name. - * @param options The options parameters. - */ - public listByArtifactName( - resourceGroupName: string, - galleryName: string, - artifactType: string, - artifactName: string, - options?: SoftDeletedResourceListByArtifactNameOptionalParams, - ): PagedAsyncIterableIterator { - const iter = this.listByArtifactNamePagingAll( - resourceGroupName, - galleryName, - artifactType, - artifactName, - options, - ); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: (settings?: PageSettings) => { - if (settings?.maxPageSize) { - throw new Error("maxPageSize is not supported by this operation."); - } - return this.listByArtifactNamePagingPage( - resourceGroupName, - galleryName, - artifactType, - artifactName, - options, - settings, - ); - }, - }; - } - - private async *listByArtifactNamePagingPage( - resourceGroupName: string, - galleryName: string, - artifactType: string, - artifactName: string, - options?: SoftDeletedResourceListByArtifactNameOptionalParams, - settings?: PageSettings, - ): AsyncIterableIterator { - let result: SoftDeletedResourceListByArtifactNameResponse; - let continuationToken = settings?.continuationToken; - if (!continuationToken) { - result = await this._listByArtifactName( - resourceGroupName, - galleryName, - artifactType, - artifactName, - options, - ); - let page = result.value || []; - continuationToken = result.nextLink; - setContinuationToken(page, continuationToken); - yield page; - } - while (continuationToken) { - result = await this._listByArtifactNameNext( - resourceGroupName, - galleryName, - artifactType, - artifactName, - continuationToken, - options, - ); - continuationToken = result.nextLink; - let page = result.value || []; - setContinuationToken(page, continuationToken); - yield page; - } - } - - private async *listByArtifactNamePagingAll( - resourceGroupName: string, - galleryName: string, - artifactType: string, - artifactName: string, - options?: SoftDeletedResourceListByArtifactNameOptionalParams, - ): AsyncIterableIterator { - for await (const page of this.listByArtifactNamePagingPage( - resourceGroupName, - galleryName, - artifactType, - artifactName, - options, - )) { - yield* page; - } - } - - /** - * List soft-deleted resources of an artifact in the gallery, such as soft-deleted gallery image - * version of an image. - * @param resourceGroupName The name of the resource group. - * @param galleryName The name of the Gallery in which the soft-deleted resources resides. - * @param artifactType The type of the artifact to be listed, such as gallery image version. - * @param artifactName The artifact name to be listed. If artifact type is Images, then the artifact - * name should be the gallery image name. - * @param options The options parameters. - */ - private _listByArtifactName( - resourceGroupName: string, - galleryName: string, - artifactType: string, - artifactName: string, - options?: SoftDeletedResourceListByArtifactNameOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, galleryName, artifactType, artifactName, options }, - listByArtifactNameOperationSpec, - ); - } - - /** - * ListByArtifactNameNext - * @param resourceGroupName The name of the resource group. - * @param galleryName The name of the Gallery in which the soft-deleted resources resides. - * @param artifactType The type of the artifact to be listed, such as gallery image version. - * @param artifactName The artifact name to be listed. If artifact type is Images, then the artifact - * name should be the gallery image name. - * @param nextLink The nextLink from the previous successful call to the ListByArtifactName method. - * @param options The options parameters. - */ - private _listByArtifactNameNext( - resourceGroupName: string, - galleryName: string, - artifactType: string, - artifactName: string, - nextLink: string, - options?: SoftDeletedResourceListByArtifactNameNextOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - galleryName, - artifactType, - artifactName, - nextLink, - options, - }, - listByArtifactNameNextOperationSpec, - ); - } -} -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const listByArtifactNameOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/softDeletedArtifactTypes/{artifactType}/artifacts/{artifactName}/versions", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.GallerySoftDeletedResourceList, - }, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - queryParameters: [Parameters.apiVersion3], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.galleryName1, - Parameters.artifactType, - Parameters.artifactName, - ], - headerParameters: [Parameters.accept], - serializer, -}; -const listByArtifactNameNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.GallerySoftDeletedResourceList, - }, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.nextLink, - Parameters.resourceGroupName, - Parameters.galleryName1, - Parameters.artifactType, - Parameters.artifactName, - ], - headerParameters: [Parameters.accept], - serializer, -}; diff --git a/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMs.ts b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMs.ts index 609a8050fe31..8a18e8a731cc 100644 --- a/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMs.ts +++ b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMs.ts @@ -759,8 +759,7 @@ export class VirtualMachineScaleSetVMsImpl /** * Power off (stop) a virtual machine in a VM scale set. Note that resources are still attached and you * are getting charged for the resources. Instead, use deallocate to release resources and avoid - * charges. Additionally, this operation is not allowed on a virtual machine that is being deallocated - * or already has been deallocated. + * charges. * @param resourceGroupName The name of the resource group. * @param vmScaleSetName The name of the VM scale set. * @param instanceId The instance ID of the virtual machine. @@ -826,8 +825,7 @@ export class VirtualMachineScaleSetVMsImpl /** * Power off (stop) a virtual machine in a VM scale set. Note that resources are still attached and you * are getting charged for the resources. Instead, use deallocate to release resources and avoid - * charges. Additionally, this operation is not allowed on a virtual machine that is being deallocated - * or already has been deallocated. + * charges. * @param resourceGroupName The name of the resource group. * @param vmScaleSetName The name of the VM scale set. * @param instanceId The instance ID of the virtual machine. diff --git a/sdk/compute/arm-compute/src/operations/virtualMachineScaleSets.ts b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSets.ts index 190769c79f30..7e46bf7821f2 100644 --- a/sdk/compute/arm-compute/src/operations/virtualMachineScaleSets.ts +++ b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSets.ts @@ -987,8 +987,7 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { /** * Power off (stop) one or more virtual machines in a VM scale set. Note that resources are still * attached and you are getting charged for the resources. Instead, use deallocate to release resources - * and avoid charges. Additionally, this operation is not allowed on virtual machines in a VM scale set - * that are being deallocated or have already been deallocated. + * and avoid charges. * @param resourceGroupName The name of the resource group. * @param vmScaleSetName The name of the VM scale set. * @param options The options parameters. @@ -1052,8 +1051,7 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { /** * Power off (stop) one or more virtual machines in a VM scale set. Note that resources are still * attached and you are getting charged for the resources. Instead, use deallocate to release resources - * and avoid charges. Additionally, this operation is not allowed on virtual machines in a VM scale set - * that are being deallocated or have already been deallocated. + * and avoid charges. * @param resourceGroupName The name of the resource group. * @param vmScaleSetName The name of the VM scale set. * @param options The options parameters. diff --git a/sdk/compute/arm-compute/src/operations/virtualMachines.ts b/sdk/compute/arm-compute/src/operations/virtualMachines.ts index 5fb59e67ab15..030ffa8c6a39 100644 --- a/sdk/compute/arm-compute/src/operations/virtualMachines.ts +++ b/sdk/compute/arm-compute/src/operations/virtualMachines.ts @@ -977,8 +977,7 @@ export class VirtualMachinesImpl implements VirtualMachines { /** * The operation to power off (stop) a virtual machine. The virtual machine can be restarted with the - * same provisioned resources. You are still charged for this virtual machine. NOTE: This operation is - * not allowed on a virtual machine that is being deallocated or has already been deallocated. + * same provisioned resources. You are still charged for this virtual machine. * @param resourceGroupName The name of the resource group. * @param vmName The name of the virtual machine. * @param options The options parameters. @@ -1041,8 +1040,7 @@ export class VirtualMachinesImpl implements VirtualMachines { /** * The operation to power off (stop) a virtual machine. The virtual machine can be restarted with the - * same provisioned resources. You are still charged for this virtual machine. NOTE: This operation is - * not allowed on a virtual machine that is being deallocated or has already been deallocated. + * same provisioned resources. You are still charged for this virtual machine. * @param resourceGroupName The name of the resource group. * @param vmName The name of the virtual machine. * @param options The options parameters. diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/galleryInVMAccessControlProfileVersions.ts b/sdk/compute/arm-compute/src/operationsInterfaces/galleryInVMAccessControlProfileVersions.ts deleted file mode 100644 index 0f8c89f8ee15..000000000000 --- a/sdk/compute/arm-compute/src/operationsInterfaces/galleryInVMAccessControlProfileVersions.ts +++ /dev/null @@ -1,204 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { SimplePollerLike, OperationState } from "@azure/core-lro"; -import { - GalleryInVMAccessControlProfileVersion, - GalleryInVMAccessControlProfileVersionsListByGalleryInVMAccessControlProfileOptionalParams, - GalleryInVMAccessControlProfileVersionsCreateOrUpdateOptionalParams, - GalleryInVMAccessControlProfileVersionsCreateOrUpdateResponse, - GalleryInVMAccessControlProfileVersionUpdate, - GalleryInVMAccessControlProfileVersionsUpdateOptionalParams, - GalleryInVMAccessControlProfileVersionsUpdateResponse, - GalleryInVMAccessControlProfileVersionsGetOptionalParams, - GalleryInVMAccessControlProfileVersionsGetResponse, - GalleryInVMAccessControlProfileVersionsDeleteOptionalParams, - GalleryInVMAccessControlProfileVersionsDeleteResponse, -} from "../models"; - -/// -/** Interface representing a GalleryInVMAccessControlProfileVersions. */ -export interface GalleryInVMAccessControlProfileVersions { - /** - * List gallery inVMAccessControlProfile versions in a gallery inVMAccessControlProfile - * @param resourceGroupName The name of the resource group. - * @param galleryName The name of the Shared Image Gallery in which the inVMAccessControlProfile - * resides. - * @param inVMAccessControlProfileName The name of the gallery inVMAccessControlProfile from which the - * inVMAccessControlProfile versions are to be listed. - * @param options The options parameters. - */ - listByGalleryInVMAccessControlProfile( - resourceGroupName: string, - galleryName: string, - inVMAccessControlProfileName: string, - options?: GalleryInVMAccessControlProfileVersionsListByGalleryInVMAccessControlProfileOptionalParams, - ): PagedAsyncIterableIterator; - /** - * Create or update a gallery inVMAccessControlProfile version. - * @param resourceGroupName The name of the resource group. - * @param galleryName The name of the Shared Image Gallery in which the inVMAccessControlProfile - * resides. - * @param inVMAccessControlProfileName The name of the gallery inVMAccessControlProfile in which the - * inVMAccessControlProfile version is to be created. - * @param inVMAccessControlProfileVersionName The name of the gallery inVMAccessControlProfile version - * to be created. Needs to follow semantic version name pattern: The allowed characters are digit and - * period. Digits must be within the range of a 32-bit integer. Format: - * .. - * @param galleryInVMAccessControlProfileVersion Parameters supplied to the create or update gallery - * inVMAccessControlProfile version operation. - * @param options The options parameters. - */ - beginCreateOrUpdate( - resourceGroupName: string, - galleryName: string, - inVMAccessControlProfileName: string, - inVMAccessControlProfileVersionName: string, - galleryInVMAccessControlProfileVersion: GalleryInVMAccessControlProfileVersion, - options?: GalleryInVMAccessControlProfileVersionsCreateOrUpdateOptionalParams, - ): Promise< - SimplePollerLike< - OperationState, - GalleryInVMAccessControlProfileVersionsCreateOrUpdateResponse - > - >; - /** - * Create or update a gallery inVMAccessControlProfile version. - * @param resourceGroupName The name of the resource group. - * @param galleryName The name of the Shared Image Gallery in which the inVMAccessControlProfile - * resides. - * @param inVMAccessControlProfileName The name of the gallery inVMAccessControlProfile in which the - * inVMAccessControlProfile version is to be created. - * @param inVMAccessControlProfileVersionName The name of the gallery inVMAccessControlProfile version - * to be created. Needs to follow semantic version name pattern: The allowed characters are digit and - * period. Digits must be within the range of a 32-bit integer. Format: - * .. - * @param galleryInVMAccessControlProfileVersion Parameters supplied to the create or update gallery - * inVMAccessControlProfile version operation. - * @param options The options parameters. - */ - beginCreateOrUpdateAndWait( - resourceGroupName: string, - galleryName: string, - inVMAccessControlProfileName: string, - inVMAccessControlProfileVersionName: string, - galleryInVMAccessControlProfileVersion: GalleryInVMAccessControlProfileVersion, - options?: GalleryInVMAccessControlProfileVersionsCreateOrUpdateOptionalParams, - ): Promise; - /** - * Update a gallery inVMAccessControlProfile version. - * @param resourceGroupName The name of the resource group. - * @param galleryName The name of the Shared Image Gallery in which the inVMAccessControlProfile - * resides. - * @param inVMAccessControlProfileName The name of the gallery inVMAccessControlProfile in which the - * inVMAccessControlProfile version is to be updated. - * @param inVMAccessControlProfileVersionName The name of the gallery inVMAccessControlProfile version - * to be updated. Needs to follow semantic version name pattern: The allowed characters are digit and - * period. Digits must be within the range of a 32-bit integer. Format: - * .. - * @param galleryInVMAccessControlProfileVersion Parameters supplied to the update gallery - * inVMAccessControlProfile version operation. - * @param options The options parameters. - */ - beginUpdate( - resourceGroupName: string, - galleryName: string, - inVMAccessControlProfileName: string, - inVMAccessControlProfileVersionName: string, - galleryInVMAccessControlProfileVersion: GalleryInVMAccessControlProfileVersionUpdate, - options?: GalleryInVMAccessControlProfileVersionsUpdateOptionalParams, - ): Promise< - SimplePollerLike< - OperationState, - GalleryInVMAccessControlProfileVersionsUpdateResponse - > - >; - /** - * Update a gallery inVMAccessControlProfile version. - * @param resourceGroupName The name of the resource group. - * @param galleryName The name of the Shared Image Gallery in which the inVMAccessControlProfile - * resides. - * @param inVMAccessControlProfileName The name of the gallery inVMAccessControlProfile in which the - * inVMAccessControlProfile version is to be updated. - * @param inVMAccessControlProfileVersionName The name of the gallery inVMAccessControlProfile version - * to be updated. Needs to follow semantic version name pattern: The allowed characters are digit and - * period. Digits must be within the range of a 32-bit integer. Format: - * .. - * @param galleryInVMAccessControlProfileVersion Parameters supplied to the update gallery - * inVMAccessControlProfile version operation. - * @param options The options parameters. - */ - beginUpdateAndWait( - resourceGroupName: string, - galleryName: string, - inVMAccessControlProfileName: string, - inVMAccessControlProfileVersionName: string, - galleryInVMAccessControlProfileVersion: GalleryInVMAccessControlProfileVersionUpdate, - options?: GalleryInVMAccessControlProfileVersionsUpdateOptionalParams, - ): Promise; - /** - * Retrieves information about a gallery inVMAccessControlProfile version. - * @param resourceGroupName The name of the resource group. - * @param galleryName The name of the Shared Image Gallery in which the inVMAccessControlProfile - * resides. - * @param inVMAccessControlProfileName The name of the gallery inVMAccessControlProfile in which the - * inVMAccessControlProfile version resides. - * @param inVMAccessControlProfileVersionName The name of the gallery inVMAccessControlProfile version - * to be retrieved. - * @param options The options parameters. - */ - get( - resourceGroupName: string, - galleryName: string, - inVMAccessControlProfileName: string, - inVMAccessControlProfileVersionName: string, - options?: GalleryInVMAccessControlProfileVersionsGetOptionalParams, - ): Promise; - /** - * Delete a gallery inVMAccessControlProfile version. - * @param resourceGroupName The name of the resource group. - * @param galleryName The name of the Shared Image Gallery in which the inVMAccessControlProfile - * resides. - * @param inVMAccessControlProfileName The name of the gallery inVMAccessControlProfile in which the - * inVMAccessControlProfile version resides. - * @param inVMAccessControlProfileVersionName The name of the gallery inVMAccessControlProfile version - * to be deleted. - * @param options The options parameters. - */ - beginDelete( - resourceGroupName: string, - galleryName: string, - inVMAccessControlProfileName: string, - inVMAccessControlProfileVersionName: string, - options?: GalleryInVMAccessControlProfileVersionsDeleteOptionalParams, - ): Promise< - SimplePollerLike< - OperationState, - GalleryInVMAccessControlProfileVersionsDeleteResponse - > - >; - /** - * Delete a gallery inVMAccessControlProfile version. - * @param resourceGroupName The name of the resource group. - * @param galleryName The name of the Shared Image Gallery in which the inVMAccessControlProfile - * resides. - * @param inVMAccessControlProfileName The name of the gallery inVMAccessControlProfile in which the - * inVMAccessControlProfile version resides. - * @param inVMAccessControlProfileVersionName The name of the gallery inVMAccessControlProfile version - * to be deleted. - * @param options The options parameters. - */ - beginDeleteAndWait( - resourceGroupName: string, - galleryName: string, - inVMAccessControlProfileName: string, - inVMAccessControlProfileVersionName: string, - options?: GalleryInVMAccessControlProfileVersionsDeleteOptionalParams, - ): Promise; -} diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/galleryInVMAccessControlProfiles.ts b/sdk/compute/arm-compute/src/operationsInterfaces/galleryInVMAccessControlProfiles.ts deleted file mode 100644 index 08e2b356f848..000000000000 --- a/sdk/compute/arm-compute/src/operationsInterfaces/galleryInVMAccessControlProfiles.ts +++ /dev/null @@ -1,174 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { SimplePollerLike, OperationState } from "@azure/core-lro"; -import { - GalleryInVMAccessControlProfile, - GalleryInVMAccessControlProfilesListByGalleryOptionalParams, - GalleryInVMAccessControlProfilesCreateOrUpdateOptionalParams, - GalleryInVMAccessControlProfilesCreateOrUpdateResponse, - GalleryInVMAccessControlProfileUpdate, - GalleryInVMAccessControlProfilesUpdateOptionalParams, - GalleryInVMAccessControlProfilesUpdateResponse, - GalleryInVMAccessControlProfilesGetOptionalParams, - GalleryInVMAccessControlProfilesGetResponse, - GalleryInVMAccessControlProfilesDeleteOptionalParams, - GalleryInVMAccessControlProfilesDeleteResponse, -} from "../models"; - -/// -/** Interface representing a GalleryInVMAccessControlProfiles. */ -export interface GalleryInVMAccessControlProfiles { - /** - * List gallery inVMAccessControlProfiles in a gallery. - * @param resourceGroupName The name of the resource group. - * @param galleryName The name of the Shared Image Gallery from which the InVMAccessControlProfiles are - * to be listed. - * @param options The options parameters. - */ - listByGallery( - resourceGroupName: string, - galleryName: string, - options?: GalleryInVMAccessControlProfilesListByGalleryOptionalParams, - ): PagedAsyncIterableIterator; - /** - * Create or update a gallery inVMAccessControlProfile. - * @param resourceGroupName The name of the resource group. - * @param galleryName The name of the Shared Image Gallery in which the InVMAccessControlProfile is to - * be created. - * @param inVMAccessControlProfileName The name of the gallery inVMAccessControlProfile to be created - * or updated. The allowed characters are alphabets and numbers with dots, dashes, and periods allowed - * in the middle. The maximum length is 80 characters. - * @param galleryInVMAccessControlProfile Parameters supplied to the create or update gallery - * inVMAccessControlProfile operation. - * @param options The options parameters. - */ - beginCreateOrUpdate( - resourceGroupName: string, - galleryName: string, - inVMAccessControlProfileName: string, - galleryInVMAccessControlProfile: GalleryInVMAccessControlProfile, - options?: GalleryInVMAccessControlProfilesCreateOrUpdateOptionalParams, - ): Promise< - SimplePollerLike< - OperationState, - GalleryInVMAccessControlProfilesCreateOrUpdateResponse - > - >; - /** - * Create or update a gallery inVMAccessControlProfile. - * @param resourceGroupName The name of the resource group. - * @param galleryName The name of the Shared Image Gallery in which the InVMAccessControlProfile is to - * be created. - * @param inVMAccessControlProfileName The name of the gallery inVMAccessControlProfile to be created - * or updated. The allowed characters are alphabets and numbers with dots, dashes, and periods allowed - * in the middle. The maximum length is 80 characters. - * @param galleryInVMAccessControlProfile Parameters supplied to the create or update gallery - * inVMAccessControlProfile operation. - * @param options The options parameters. - */ - beginCreateOrUpdateAndWait( - resourceGroupName: string, - galleryName: string, - inVMAccessControlProfileName: string, - galleryInVMAccessControlProfile: GalleryInVMAccessControlProfile, - options?: GalleryInVMAccessControlProfilesCreateOrUpdateOptionalParams, - ): Promise; - /** - * Update a gallery inVMAccessControlProfile. - * @param resourceGroupName The name of the resource group. - * @param galleryName The name of the Shared Image Gallery in which the InVMAccessControlProfile is to - * be updated. - * @param inVMAccessControlProfileName The name of the gallery inVMAccessControlProfile to be updated. - * The allowed characters are alphabets and numbers with dots, dashes, and periods allowed in the - * middle. The maximum length is 80 characters. - * @param galleryInVMAccessControlProfile Parameters supplied to the update gallery - * inVMAccessControlProfile operation. - * @param options The options parameters. - */ - beginUpdate( - resourceGroupName: string, - galleryName: string, - inVMAccessControlProfileName: string, - galleryInVMAccessControlProfile: GalleryInVMAccessControlProfileUpdate, - options?: GalleryInVMAccessControlProfilesUpdateOptionalParams, - ): Promise< - SimplePollerLike< - OperationState, - GalleryInVMAccessControlProfilesUpdateResponse - > - >; - /** - * Update a gallery inVMAccessControlProfile. - * @param resourceGroupName The name of the resource group. - * @param galleryName The name of the Shared Image Gallery in which the InVMAccessControlProfile is to - * be updated. - * @param inVMAccessControlProfileName The name of the gallery inVMAccessControlProfile to be updated. - * The allowed characters are alphabets and numbers with dots, dashes, and periods allowed in the - * middle. The maximum length is 80 characters. - * @param galleryInVMAccessControlProfile Parameters supplied to the update gallery - * inVMAccessControlProfile operation. - * @param options The options parameters. - */ - beginUpdateAndWait( - resourceGroupName: string, - galleryName: string, - inVMAccessControlProfileName: string, - galleryInVMAccessControlProfile: GalleryInVMAccessControlProfileUpdate, - options?: GalleryInVMAccessControlProfilesUpdateOptionalParams, - ): Promise; - /** - * Retrieves information about a gallery inVMAccessControlProfile. - * @param resourceGroupName The name of the resource group. - * @param galleryName The name of the Shared Image Gallery from which the InVMAccessControlProfiles are - * to be retrieved. - * @param inVMAccessControlProfileName The name of the gallery inVMAccessControlProfile to be - * retrieved. - * @param options The options parameters. - */ - get( - resourceGroupName: string, - galleryName: string, - inVMAccessControlProfileName: string, - options?: GalleryInVMAccessControlProfilesGetOptionalParams, - ): Promise; - /** - * Delete a gallery inVMAccessControlProfile. - * @param resourceGroupName The name of the resource group. - * @param galleryName he name of the Shared Image Gallery in which the InVMAccessControlProfile - * resides. - * @param inVMAccessControlProfileName The name of the gallery inVMAccessControlProfile to be deleted. - * @param options The options parameters. - */ - beginDelete( - resourceGroupName: string, - galleryName: string, - inVMAccessControlProfileName: string, - options?: GalleryInVMAccessControlProfilesDeleteOptionalParams, - ): Promise< - SimplePollerLike< - OperationState, - GalleryInVMAccessControlProfilesDeleteResponse - > - >; - /** - * Delete a gallery inVMAccessControlProfile. - * @param resourceGroupName The name of the resource group. - * @param galleryName he name of the Shared Image Gallery in which the InVMAccessControlProfile - * resides. - * @param inVMAccessControlProfileName The name of the gallery inVMAccessControlProfile to be deleted. - * @param options The options parameters. - */ - beginDeleteAndWait( - resourceGroupName: string, - galleryName: string, - inVMAccessControlProfileName: string, - options?: GalleryInVMAccessControlProfilesDeleteOptionalParams, - ): Promise; -} diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/index.ts b/sdk/compute/arm-compute/src/operationsInterfaces/index.ts index a5d61a4df502..502684dc464f 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/index.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/index.ts @@ -43,10 +43,7 @@ export * from "./galleryImages"; export * from "./galleryImageVersions"; export * from "./galleryApplications"; export * from "./galleryApplicationVersions"; -export * from "./softDeletedResource"; export * from "./gallerySharingProfile"; -export * from "./galleryInVMAccessControlProfiles"; -export * from "./galleryInVMAccessControlProfileVersions"; export * from "./sharedGalleries"; export * from "./sharedGalleryImages"; export * from "./sharedGalleryImageVersions"; diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/softDeletedResource.ts b/sdk/compute/arm-compute/src/operationsInterfaces/softDeletedResource.ts deleted file mode 100644 index 7e00f5ff512f..000000000000 --- a/sdk/compute/arm-compute/src/operationsInterfaces/softDeletedResource.ts +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { - GallerySoftDeletedResource, - SoftDeletedResourceListByArtifactNameOptionalParams, -} from "../models"; - -/// -/** Interface representing a SoftDeletedResource. */ -export interface SoftDeletedResource { - /** - * List soft-deleted resources of an artifact in the gallery, such as soft-deleted gallery image - * version of an image. - * @param resourceGroupName The name of the resource group. - * @param galleryName The name of the Gallery in which the soft-deleted resources resides. - * @param artifactType The type of the artifact to be listed, such as gallery image version. - * @param artifactName The artifact name to be listed. If artifact type is Images, then the artifact - * name should be the gallery image name. - * @param options The options parameters. - */ - listByArtifactName( - resourceGroupName: string, - galleryName: string, - artifactType: string, - artifactName: string, - options?: SoftDeletedResourceListByArtifactNameOptionalParams, - ): PagedAsyncIterableIterator; -} diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineScaleSetVMs.ts b/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineScaleSetVMs.ts index f2aa7a1f4e1e..faba210cac60 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineScaleSetVMs.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineScaleSetVMs.ts @@ -258,8 +258,7 @@ export interface VirtualMachineScaleSetVMs { /** * Power off (stop) a virtual machine in a VM scale set. Note that resources are still attached and you * are getting charged for the resources. Instead, use deallocate to release resources and avoid - * charges. Additionally, this operation is not allowed on a virtual machine that is being deallocated - * or already has been deallocated. + * charges. * @param resourceGroupName The name of the resource group. * @param vmScaleSetName The name of the VM scale set. * @param instanceId The instance ID of the virtual machine. @@ -274,8 +273,7 @@ export interface VirtualMachineScaleSetVMs { /** * Power off (stop) a virtual machine in a VM scale set. Note that resources are still attached and you * are getting charged for the resources. Instead, use deallocate to release resources and avoid - * charges. Additionally, this operation is not allowed on a virtual machine that is being deallocated - * or already has been deallocated. + * charges. * @param resourceGroupName The name of the resource group. * @param vmScaleSetName The name of the VM scale set. * @param instanceId The instance ID of the virtual machine. diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineScaleSets.ts b/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineScaleSets.ts index 761011917648..719d183aa34b 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineScaleSets.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineScaleSets.ts @@ -263,8 +263,7 @@ export interface VirtualMachineScaleSets { /** * Power off (stop) one or more virtual machines in a VM scale set. Note that resources are still * attached and you are getting charged for the resources. Instead, use deallocate to release resources - * and avoid charges. Additionally, this operation is not allowed on virtual machines in a VM scale set - * that are being deallocated or have already been deallocated. + * and avoid charges. * @param resourceGroupName The name of the resource group. * @param vmScaleSetName The name of the VM scale set. * @param options The options parameters. @@ -277,8 +276,7 @@ export interface VirtualMachineScaleSets { /** * Power off (stop) one or more virtual machines in a VM scale set. Note that resources are still * attached and you are getting charged for the resources. Instead, use deallocate to release resources - * and avoid charges. Additionally, this operation is not allowed on virtual machines in a VM scale set - * that are being deallocated or have already been deallocated. + * and avoid charges. * @param resourceGroupName The name of the resource group. * @param vmScaleSetName The name of the VM scale set. * @param options The options parameters. diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachines.ts b/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachines.ts index cc1d51397a6c..8d62cf5b7cee 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachines.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachines.ts @@ -302,8 +302,7 @@ export interface VirtualMachines { ): Promise; /** * The operation to power off (stop) a virtual machine. The virtual machine can be restarted with the - * same provisioned resources. You are still charged for this virtual machine. NOTE: This operation is - * not allowed on a virtual machine that is being deallocated or has already been deallocated. + * same provisioned resources. You are still charged for this virtual machine. * @param resourceGroupName The name of the resource group. * @param vmName The name of the virtual machine. * @param options The options parameters. @@ -315,8 +314,7 @@ export interface VirtualMachines { ): Promise, void>>; /** * The operation to power off (stop) a virtual machine. The virtual machine can be restarted with the - * same provisioned resources. You are still charged for this virtual machine. NOTE: This operation is - * not allowed on a virtual machine that is being deallocated or has already been deallocated. + * same provisioned resources. You are still charged for this virtual machine. * @param resourceGroupName The name of the resource group. * @param vmName The name of the virtual machine. * @param options The options parameters. diff --git a/sdk/compute/arm-compute/test/sampleTest.ts b/sdk/compute/arm-compute/test/sampleTest.ts new file mode 100644 index 000000000000..d64be981b694 --- /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 75dfa0b6bb75..b35d05ad6e9d 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"