diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index 2717e1cc089a..074d1fb0092e 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -2539,7 +2539,7 @@ packages: version: 0.0.0 '@rush-temp/arm-compute-1@file:projects/arm-compute-1.tgz': - resolution: {integrity: sha512-+5OIMFGOO7wYraHlemO6xgruWtmMPlwwzgDpZTX5grrIqWsycoRz6xVfdtDyTnkAaGhIs1WK+GCa6kSFitjWEA==, tarball: file:projects/arm-compute-1.tgz} + resolution: {integrity: sha512-aWGh3WNyXXloCBbocc7mu3oIEqNXsyyWKARQmRCoc1xndUEoQhiUfuJL8enBN9I624xmxlRYwJ1BbttQ2XQwgw==, 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': @@ -3011,7 +3011,7 @@ packages: version: 0.0.0 '@rush-temp/arm-neonpostgres@file:projects/arm-neonpostgres.tgz': - resolution: {integrity: sha512-OtXXTb+uPR318DgtfGcJtyHzGZZ5oQX90KyjNacOYuhEWuIJIUcsLn04uv95PuGyPRHgfxab6KQuvbbQP01bZg==, tarball: file:projects/arm-neonpostgres.tgz} + resolution: {integrity: sha512-L8Ds78VicqhwuDixYIPondccS799PPo+Pi9QJX/2pyFxe0X/XR2IyGugTKfSYKpw+0IgzRPHkm4gD7vHdwaMGA==, tarball: file:projects/arm-neonpostgres.tgz} version: 0.0.0 '@rush-temp/arm-netapp@file:projects/arm-netapp.tgz': @@ -3055,7 +3055,7 @@ packages: version: 0.0.0 '@rush-temp/arm-onlineexperimentation@file:projects/arm-onlineexperimentation.tgz': - resolution: {integrity: sha512-Ka51HXcNEvnUww7Esvt9pmOxtOgv+j8kzPLdhZNbxW6EIU421b17dogFm+R7eIuO0qmvyFU8uFSQvjBR1mOtMg==, tarball: file:projects/arm-onlineexperimentation.tgz} + resolution: {integrity: sha512-Vkh2S9ZAmS4zGSrBEG1dTaZIfX12rXpMsKp7wON09kOepFmTZB/baFSrirAVr95Z5Py9nssxxg9CqpCaG+ACDQ==, tarball: file:projects/arm-onlineexperimentation.tgz} version: 0.0.0 '@rush-temp/arm-operationalinsights@file:projects/arm-operationalinsights.tgz': @@ -3299,7 +3299,7 @@ packages: version: 0.0.0 '@rush-temp/arm-standbypool@file:projects/arm-standbypool.tgz': - resolution: {integrity: sha512-hPjDZihoXZyyh3Xx8WMytkWghTMax6FXVZhkSxui0/h/4PyJVYYoLUUW3D5SVYcQl199BiJTfL+lirMheaCC3w==, tarball: file:projects/arm-standbypool.tgz} + resolution: {integrity: sha512-X55eNz0DVw0Hg01VkpxiCtH98S4zEimC0DkZnrYTrdRpcvQCdGICwxN2HxpfOXJ87nRqpkFR+Q5hz491lqSvhA==, tarball: file:projects/arm-standbypool.tgz} version: 0.0.0 '@rush-temp/arm-storage-profile-2020-09-01-hybrid@file:projects/arm-storage-profile-2020-09-01-hybrid.tgz': @@ -3407,7 +3407,7 @@ packages: version: 0.0.0 '@rush-temp/arm-workloadssapvirtualinstance@file:projects/arm-workloadssapvirtualinstance.tgz': - resolution: {integrity: sha512-cZYJ+xGR5WS7ypyKPsR6DqBqh0bRxFU88zE0wtLgbm5A7zU3CKAmvUb1VXos2+h9/QG3Iv3ynZwgi3+dWOPRDQ==, tarball: file:projects/arm-workloadssapvirtualinstance.tgz} + resolution: {integrity: sha512-mF+/PA4G+AuNhRlU8tjAr/4iEHmKve/CYJug8HHxI0FNDn0rJloTuancni28vgk29t9QvSq/gd3yyBtWS7l6hg==, tarball: file:projects/arm-workloadssapvirtualinstance.tgz} version: 0.0.0 '@rush-temp/arm-workspaces@file:projects/arm-workspaces.tgz': @@ -10588,7 +10588,6 @@ snapshots: '@rush-temp/arm-compute-1@file:projects/arm-compute-1.tgz(@types/debug@4.1.12)(tsx@4.19.3)(vite@6.3.2(@types/node@22.7.9)(tsx@4.19.3)(yaml@2.7.1))(yaml@2.7.1)': dependencies: - '@azure/arm-network': 32.2.0 '@azure/core-lro': 2.7.2 '@types/node': 18.19.86 '@vitest/browser': 3.1.2(playwright@1.52.0)(vite@6.3.2(@types/node@22.7.9)(tsx@4.19.3)(yaml@2.7.1))(vitest@3.1.2) @@ -17205,7 +17204,6 @@ snapshots: dotenv: 16.5.0 eslint: 9.25.0 playwright: 1.52.0 - prettier: 3.5.3 tslib: 2.8.1 typescript: 5.8.3 vitest: 3.1.2(@types/debug@4.1.12)(@types/node@18.19.86)(@vitest/browser@3.1.2)(tsx@4.19.3)(yaml@2.7.1) diff --git a/sdk/compute/arm-compute/CHANGELOG.md b/sdk/compute/arm-compute/CHANGELOG.md index 1f55f92c323d..7312e3d2c5ab 100644 --- a/sdk/compute/arm-compute/CHANGELOG.md +++ b/sdk/compute/arm-compute/CHANGELOG.md @@ -1,5 +1,119 @@ # Release History +## 23.0.0 (2025-04-24) + +### Features Added + + - Added operation group GalleryScripts + - Added operation group GalleryScriptVersions + - Added Interface GalleryScript + - Added Interface GalleryScriptList + - Added Interface GalleryScriptParameter + - Added Interface GalleryScriptProperties + - Added Interface GalleryScriptsCreateOrUpdateHeaders + - Added Interface GalleryScriptsCreateOrUpdateOptionalParams + - Added Interface GalleryScriptsDeleteHeaders + - Added Interface GalleryScriptsDeleteOptionalParams + - Added Interface GalleryScriptsGetOptionalParams + - Added Interface GalleryScriptsListByGalleryNextOptionalParams + - Added Interface GalleryScriptsListByGalleryOptionalParams + - Added Interface GalleryScriptsUpdateHeaders + - Added Interface GalleryScriptsUpdateOptionalParams + - Added Interface GalleryScriptUpdate + - Added Interface GalleryScriptVersion + - Added Interface GalleryScriptVersionList + - Added Interface GalleryScriptVersionProperties + - Added Interface GalleryScriptVersionPublishingProfile + - Added Interface GalleryScriptVersionSafetyProfile + - Added Interface GalleryScriptVersionsCreateOrUpdateHeaders + - Added Interface GalleryScriptVersionsCreateOrUpdateOptionalParams + - Added Interface GalleryScriptVersionsDeleteHeaders + - Added Interface GalleryScriptVersionsDeleteOptionalParams + - Added Interface GalleryScriptVersionsGetOptionalParams + - Added Interface GalleryScriptVersionsListByGalleryScriptNextOptionalParams + - Added Interface GalleryScriptVersionsListByGalleryScriptOptionalParams + - Added Interface GalleryScriptVersionsUpdateHeaders + - Added Interface GalleryScriptVersionsUpdateOptionalParams + - Added Interface GalleryScriptVersionUpdate + - Added Interface GenericGalleryParameter + - Added Interface ScriptSource + - Added Type Alias GalleryScriptParameterType + - Added Type Alias GalleryScriptsCreateOrUpdateResponse + - Added Type Alias GalleryScriptsDeleteResponse + - Added Type Alias GalleryScriptsGetResponse + - Added Type Alias GalleryScriptsListByGalleryNextResponse + - Added Type Alias GalleryScriptsListByGalleryResponse + - Added Type Alias GalleryScriptsUpdateResponse + - Added Type Alias GalleryScriptVersionsCreateOrUpdateResponse + - Added Type Alias GalleryScriptVersionsDeleteResponse + - Added Type Alias GalleryScriptVersionsGetResponse + - Added Type Alias GalleryScriptVersionsListByGalleryScriptNextResponse + - Added Type Alias GalleryScriptVersionsListByGalleryScriptResponse + - Added Type Alias GalleryScriptVersionsUpdateResponse + +### Breaking Changes + + - Operation Galleries.beginCreateOrUpdate has a new signature + - Operation Galleries.beginCreateOrUpdateAndWait has a new signature + - Operation Galleries.beginDelete has a new signature + - Operation Galleries.beginDeleteAndWait has a new signature + - Operation Galleries.beginUpdate has a new signature + - Operation Galleries.beginUpdateAndWait has a new signature + - Operation Galleries.get has a new signature + - Operation GalleryApplications.beginCreateOrUpdate has a new signature + - Operation GalleryApplications.beginCreateOrUpdateAndWait has a new signature + - Operation GalleryApplications.beginDelete has a new signature + - Operation GalleryApplications.beginDeleteAndWait has a new signature + - Operation GalleryApplications.beginUpdate has a new signature + - Operation GalleryApplications.beginUpdateAndWait has a new signature + - Operation GalleryApplications.get has a new signature + - Operation GalleryApplications.listByGallery has a new signature + - Operation GalleryApplicationVersions.beginCreateOrUpdate has a new signature + - Operation GalleryApplicationVersions.beginCreateOrUpdateAndWait has a new signature + - Operation GalleryApplicationVersions.beginDelete has a new signature + - Operation GalleryApplicationVersions.beginDeleteAndWait has a new signature + - Operation GalleryApplicationVersions.beginUpdate has a new signature + - Operation GalleryApplicationVersions.beginUpdateAndWait has a new signature + - Operation GalleryApplicationVersions.get has a new signature + - Operation GalleryApplicationVersions.listByGalleryApplication has a new signature + - Operation GalleryImages.beginCreateOrUpdate has a new signature + - Operation GalleryImages.beginCreateOrUpdateAndWait has a new signature + - Operation GalleryImages.beginDelete has a new signature + - Operation GalleryImages.beginDeleteAndWait has a new signature + - Operation GalleryImages.beginUpdate has a new signature + - Operation GalleryImages.beginUpdateAndWait has a new signature + - Operation GalleryImages.get has a new signature + - Operation GalleryImages.listByGallery has a new signature + - Operation GalleryImageVersions.beginCreateOrUpdate has a new signature + - Operation GalleryImageVersions.beginCreateOrUpdateAndWait has a new signature + - Operation GalleryImageVersions.beginDelete has a new signature + - Operation GalleryImageVersions.beginDeleteAndWait has a new signature + - Operation GalleryImageVersions.beginUpdate has a new signature + - Operation GalleryImageVersions.beginUpdateAndWait has a new signature + - Operation GalleryImageVersions.get has a new signature + - Operation GalleryImageVersions.listByGalleryImage has a new signature + - Operation GalleryInVMAccessControlProfiles.beginCreateOrUpdate has a new signature + - Operation GalleryInVMAccessControlProfiles.beginCreateOrUpdateAndWait has a new signature + - Operation GalleryInVMAccessControlProfiles.beginDelete has a new signature + - Operation GalleryInVMAccessControlProfiles.beginDeleteAndWait has a new signature + - Operation GalleryInVMAccessControlProfiles.beginUpdate has a new signature + - Operation GalleryInVMAccessControlProfiles.beginUpdateAndWait has a new signature + - Operation GalleryInVMAccessControlProfiles.get has a new signature + - Operation GalleryInVMAccessControlProfiles.listByGallery has a new signature + - Operation GalleryInVMAccessControlProfileVersions.beginCreateOrUpdate has a new signature + - Operation GalleryInVMAccessControlProfileVersions.beginCreateOrUpdateAndWait has a new signature + - Operation GalleryInVMAccessControlProfileVersions.beginDelete has a new signature + - Operation GalleryInVMAccessControlProfileVersions.beginDeleteAndWait has a new signature + - Operation GalleryInVMAccessControlProfileVersions.beginUpdate has a new signature + - Operation GalleryInVMAccessControlProfileVersions.beginUpdateAndWait has a new signature + - Operation GalleryInVMAccessControlProfileVersions.get has a new signature + - Operation GalleryInVMAccessControlProfileVersions.listByGalleryInVMAccessControlProfile has a new signature + - Operation GallerySharingProfile.beginUpdate has a new signature + - Operation GallerySharingProfile.beginUpdateAndWait has a new signature + - Operation SoftDeletedResource.listByArtifactName has a new signature + - Class ComputeManagementClient has a new signature + + ## 22.4.0 (2025-03-18) ### Features Added diff --git a/sdk/compute/arm-compute/README.md b/sdk/compute/arm-compute/README.md index 20986e6926c2..9d6112dc8ff6 100644 --- a/sdk/compute/arm-compute/README.md +++ b/sdk/compute/arm-compute/README.md @@ -63,11 +63,10 @@ For browser environments, use the `InteractiveBrowserCredential` from the `@azur import { InteractiveBrowserCredential } from "@azure/identity"; import { ComputeManagementClient } from "@azure/arm-compute"; -const subscriptionId = "00000000-0000-0000-0000-000000000000"; const credential = new InteractiveBrowserCredential({ tenantId: "", - clientId: "", -}); + clientId: "" + }); const client = new ComputeManagementClient(credential, subscriptionId); ``` @@ -106,6 +105,7 @@ If you'd like to contribute to this library, please read the [contributing guide - [Microsoft Azure SDK for JavaScript](https://github.com/Azure/azure-sdk-for-js) + [azure_cli]: https://learn.microsoft.com/cli/azure [azure_sub]: https://azure.microsoft.com/free/ [azure_sub]: https://azure.microsoft.com/free/ diff --git a/sdk/compute/arm-compute/_meta.json b/sdk/compute/arm-compute/_meta.json index b30c2f5cd2d7..f1ffac8e1150 100644 --- a/sdk/compute/arm-compute/_meta.json +++ b/sdk/compute/arm-compute/_meta.json @@ -1,8 +1,8 @@ { - "commit": "cecb65f56ec5291e7fe88d62048bdb717e33e834", + "commit": "143cf20b499eadd29cd06d5910a47e39b9d9f04e", "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.36 --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.21", - "use": "@autorest/typescript@6.0.36" + "release_tool": "@azure-tools/js-sdk-release-tools@2.7.26", + "use": "@autorest/typescript@^6.0.12" } \ No newline at end of file diff --git a/sdk/compute/arm-compute/api-extractor.json b/sdk/compute/arm-compute/api-extractor.json index 4b2f21ee926a..a101626eb08d 100644 --- a/sdk/compute/arm-compute/api-extractor.json +++ b/sdk/compute/arm-compute/api-extractor.json @@ -1,6 +1,6 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "mainEntryPointFilePath": "dist/esm/index.d.ts", + "mainEntryPointFilePath": "./dist-esm/src/index.d.ts", "docModel": { "enabled": true }, @@ -11,7 +11,7 @@ "dtsRollup": { "enabled": true, "untrimmedFilePath": "", - "publicTrimmedFilePath": "dist/arm-compute.d.ts" + "publicTrimmedFilePath": "./types/arm-compute.d.ts" }, "messages": { "tsdocMessageReporting": { @@ -28,4 +28,4 @@ } } } -} +} \ No newline at end of file diff --git a/sdk/compute/arm-compute/package.json b/sdk/compute/arm-compute/package.json index 320fdd5d7651..af49f0613219 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.4.0", + "version": "23.0.0", "engines": { "node": ">=18.0.0" }, @@ -25,21 +25,20 @@ ], "license": "MIT", "main": "./dist/commonjs/index.js", - "module": "./dist/esm/index.js", + "module": "./dist-esm/src/index.js", "types": "./dist/commonjs/index.d.ts", "devDependencies": { "@azure-tools/test-credential": "^2.0.0", "@azure-tools/test-recorder": "^4.1.0", "@azure-tools/test-utils-vitest": "^1.0.0", - "@azure/arm-network": "^32.2.0", "@azure/dev-tool": "^1.0.0", - "@azure/identity": "^4.8.0", + "@azure/identity": "^4.9.1", "@azure/logger": "^1.1.4", "@types/node": "^18.0.0", "@vitest/browser": "^3.0.9", "@vitest/coverage-istanbul": "^3.0.9", "dotenv": "^16.0.0", - "playwright": "^1.51.1", + "playwright": "^1.52.0", "typescript": "~5.8.2", "vitest": "^3.0.9" }, @@ -72,7 +71,7 @@ "integration-test:browser": "echo skipped", "integration-test:node": "dev-tool run test:vitest --esm", "lint": "echo skipped", - "minify": "echo skipped", + "minify": "dev-tool run vendored uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js", "pack": "npm pack 2>&1", "prepack": "npm run build", "test": "npm run integration-test", @@ -94,14 +93,6 @@ }, "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://learn.microsoft.com/javascript/api/@azure/arm-compute?view=azure-node-preview" - }, "type": "module", "tshy": { "project": "./tsconfig.src.json", @@ -142,4 +133,4 @@ } } } -} +} \ 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 aa2d929091c8..42551df882c7 100644 --- a/sdk/compute/arm-compute/review/arm-compute.api.md +++ b/sdk/compute/arm-compute/review/arm-compute.api.md @@ -1161,7 +1161,7 @@ export interface CommunityGalleryMetadata { export class ComputeManagementClient extends coreClient.ServiceClient { // (undocumented) $host: string; - constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: ComputeManagementClientOptionalParams); + constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, galleryName: string, galleryScriptName: string, galleryScriptVersionName: string, options?: ComputeManagementClientOptionalParams); // (undocumented) availabilitySets: AvailabilitySets; // (undocumented) @@ -1211,6 +1211,16 @@ export class ComputeManagementClient extends coreClient.ServiceClient { // (undocumented) galleryInVMAccessControlProfileVersions: GalleryInVMAccessControlProfileVersions; // (undocumented) + galleryName: string; + // (undocumented) + galleryScriptName: string; + // (undocumented) + galleryScripts: GalleryScripts; + // (undocumented) + galleryScriptVersionName: string; + // (undocumented) + galleryScriptVersions: GalleryScriptVersions; + // (undocumented) gallerySharingProfile: GallerySharingProfile; // (undocumented) images: Images; @@ -2369,13 +2379,13 @@ export type FileFormat = string; // @public export interface Galleries { - beginCreateOrUpdate(resourceGroupName: string, galleryName: string, gallery: Gallery, options?: GalleriesCreateOrUpdateOptionalParams): Promise, GalleriesCreateOrUpdateResponse>>; - beginCreateOrUpdateAndWait(resourceGroupName: string, galleryName: string, gallery: Gallery, options?: GalleriesCreateOrUpdateOptionalParams): Promise; - beginDelete(resourceGroupName: string, galleryName: string, options?: GalleriesDeleteOptionalParams): Promise, void>>; - beginDeleteAndWait(resourceGroupName: string, galleryName: string, options?: GalleriesDeleteOptionalParams): Promise; - beginUpdate(resourceGroupName: string, galleryName: string, gallery: GalleryUpdate, options?: GalleriesUpdateOptionalParams): Promise, GalleriesUpdateResponse>>; - beginUpdateAndWait(resourceGroupName: string, galleryName: string, gallery: GalleryUpdate, options?: GalleriesUpdateOptionalParams): Promise; - get(resourceGroupName: string, galleryName: string, options?: GalleriesGetOptionalParams): Promise; + beginCreateOrUpdate(resourceGroupName: string, gallery: Gallery, options?: GalleriesCreateOrUpdateOptionalParams): Promise, GalleriesCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, gallery: Gallery, options?: GalleriesCreateOrUpdateOptionalParams): Promise; + beginDelete(resourceGroupName: string, options?: GalleriesDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, options?: GalleriesDeleteOptionalParams): Promise; + beginUpdate(resourceGroupName: string, gallery: GalleryUpdate, options?: GalleriesUpdateOptionalParams): Promise, GalleriesUpdateResponse>>; + beginUpdateAndWait(resourceGroupName: string, gallery: GalleryUpdate, options?: GalleriesUpdateOptionalParams): Promise; + get(resourceGroupName: string, options?: GalleriesGetOptionalParams): Promise; list(options?: GalleriesListOptionalParams): PagedAsyncIterableIterator; listByResourceGroup(resourceGroupName: string, options?: GalleriesListByResourceGroupOptionalParams): PagedAsyncIterableIterator; } @@ -2491,14 +2501,14 @@ export interface GalleryApplicationList { // @public export interface GalleryApplications { - beginCreateOrUpdate(resourceGroupName: string, galleryName: string, galleryApplicationName: string, galleryApplication: GalleryApplication, options?: GalleryApplicationsCreateOrUpdateOptionalParams): Promise, GalleryApplicationsCreateOrUpdateResponse>>; - beginCreateOrUpdateAndWait(resourceGroupName: string, galleryName: string, galleryApplicationName: string, galleryApplication: GalleryApplication, options?: GalleryApplicationsCreateOrUpdateOptionalParams): Promise; - beginDelete(resourceGroupName: string, galleryName: string, galleryApplicationName: string, options?: GalleryApplicationsDeleteOptionalParams): Promise, void>>; - beginDeleteAndWait(resourceGroupName: string, galleryName: string, galleryApplicationName: string, options?: GalleryApplicationsDeleteOptionalParams): Promise; - beginUpdate(resourceGroupName: string, galleryName: string, galleryApplicationName: string, galleryApplication: GalleryApplicationUpdate, options?: GalleryApplicationsUpdateOptionalParams): Promise, GalleryApplicationsUpdateResponse>>; - beginUpdateAndWait(resourceGroupName: string, galleryName: string, galleryApplicationName: string, galleryApplication: GalleryApplicationUpdate, options?: GalleryApplicationsUpdateOptionalParams): Promise; - get(resourceGroupName: string, galleryName: string, galleryApplicationName: string, options?: GalleryApplicationsGetOptionalParams): Promise; - listByGallery(resourceGroupName: string, galleryName: string, options?: GalleryApplicationsListByGalleryOptionalParams): PagedAsyncIterableIterator; + beginCreateOrUpdate(resourceGroupName: string, galleryApplicationName: string, galleryApplication: GalleryApplication, options?: GalleryApplicationsCreateOrUpdateOptionalParams): Promise, GalleryApplicationsCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, galleryApplicationName: string, galleryApplication: GalleryApplication, options?: GalleryApplicationsCreateOrUpdateOptionalParams): Promise; + beginDelete(resourceGroupName: string, galleryApplicationName: string, options?: GalleryApplicationsDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, galleryApplicationName: string, options?: GalleryApplicationsDeleteOptionalParams): Promise; + beginUpdate(resourceGroupName: string, galleryApplicationName: string, galleryApplication: GalleryApplicationUpdate, options?: GalleryApplicationsUpdateOptionalParams): Promise, GalleryApplicationsUpdateResponse>>; + beginUpdateAndWait(resourceGroupName: string, galleryApplicationName: string, galleryApplication: GalleryApplicationUpdate, options?: GalleryApplicationsUpdateOptionalParams): Promise; + get(resourceGroupName: string, galleryApplicationName: string, options?: GalleryApplicationsGetOptionalParams): Promise; + listByGallery(resourceGroupName: string, options?: GalleryApplicationsListByGalleryOptionalParams): PagedAsyncIterableIterator; } // @public @@ -2589,14 +2599,14 @@ export interface GalleryApplicationVersionPublishingProfile extends GalleryArtif // @public export interface GalleryApplicationVersions { - beginCreateOrUpdate(resourceGroupName: string, galleryName: string, galleryApplicationName: string, galleryApplicationVersionName: string, galleryApplicationVersion: GalleryApplicationVersion, options?: GalleryApplicationVersionsCreateOrUpdateOptionalParams): Promise, GalleryApplicationVersionsCreateOrUpdateResponse>>; - beginCreateOrUpdateAndWait(resourceGroupName: string, galleryName: string, galleryApplicationName: string, galleryApplicationVersionName: string, galleryApplicationVersion: GalleryApplicationVersion, options?: GalleryApplicationVersionsCreateOrUpdateOptionalParams): Promise; - beginDelete(resourceGroupName: string, galleryName: string, galleryApplicationName: string, galleryApplicationVersionName: string, options?: GalleryApplicationVersionsDeleteOptionalParams): Promise, void>>; - beginDeleteAndWait(resourceGroupName: string, galleryName: string, galleryApplicationName: string, galleryApplicationVersionName: string, options?: GalleryApplicationVersionsDeleteOptionalParams): Promise; - beginUpdate(resourceGroupName: string, galleryName: string, galleryApplicationName: string, galleryApplicationVersionName: string, galleryApplicationVersion: GalleryApplicationVersionUpdate, options?: GalleryApplicationVersionsUpdateOptionalParams): Promise, GalleryApplicationVersionsUpdateResponse>>; - beginUpdateAndWait(resourceGroupName: string, galleryName: string, galleryApplicationName: string, galleryApplicationVersionName: string, galleryApplicationVersion: GalleryApplicationVersionUpdate, options?: GalleryApplicationVersionsUpdateOptionalParams): Promise; - get(resourceGroupName: string, galleryName: string, galleryApplicationName: string, galleryApplicationVersionName: string, options?: GalleryApplicationVersionsGetOptionalParams): Promise; - listByGalleryApplication(resourceGroupName: string, galleryName: string, galleryApplicationName: string, options?: GalleryApplicationVersionsListByGalleryApplicationOptionalParams): PagedAsyncIterableIterator; + beginCreateOrUpdate(resourceGroupName: string, galleryApplicationName: string, galleryApplicationVersionName: string, galleryApplicationVersion: GalleryApplicationVersion, options?: GalleryApplicationVersionsCreateOrUpdateOptionalParams): Promise, GalleryApplicationVersionsCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, galleryApplicationName: string, galleryApplicationVersionName: string, galleryApplicationVersion: GalleryApplicationVersion, options?: GalleryApplicationVersionsCreateOrUpdateOptionalParams): Promise; + beginDelete(resourceGroupName: string, galleryApplicationName: string, galleryApplicationVersionName: string, options?: GalleryApplicationVersionsDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, galleryApplicationName: string, galleryApplicationVersionName: string, options?: GalleryApplicationVersionsDeleteOptionalParams): Promise; + beginUpdate(resourceGroupName: string, galleryApplicationName: string, galleryApplicationVersionName: string, galleryApplicationVersion: GalleryApplicationVersionUpdate, options?: GalleryApplicationVersionsUpdateOptionalParams): Promise, GalleryApplicationVersionsUpdateResponse>>; + beginUpdateAndWait(resourceGroupName: string, galleryApplicationName: string, galleryApplicationVersionName: string, galleryApplicationVersion: GalleryApplicationVersionUpdate, options?: GalleryApplicationVersionsUpdateOptionalParams): Promise; + get(resourceGroupName: string, galleryApplicationName: string, galleryApplicationVersionName: string, options?: GalleryApplicationVersionsGetOptionalParams): Promise; + listByGalleryApplication(resourceGroupName: string, galleryApplicationName: string, options?: GalleryApplicationVersionsListByGalleryApplicationOptionalParams): PagedAsyncIterableIterator; } // @public @@ -2778,14 +2788,14 @@ export interface GalleryImageList { // @public export interface GalleryImages { - beginCreateOrUpdate(resourceGroupName: string, galleryName: string, galleryImageName: string, galleryImage: GalleryImage, options?: GalleryImagesCreateOrUpdateOptionalParams): Promise, GalleryImagesCreateOrUpdateResponse>>; - beginCreateOrUpdateAndWait(resourceGroupName: string, galleryName: string, galleryImageName: string, galleryImage: GalleryImage, options?: GalleryImagesCreateOrUpdateOptionalParams): Promise; - beginDelete(resourceGroupName: string, galleryName: string, galleryImageName: string, options?: GalleryImagesDeleteOptionalParams): Promise, void>>; - beginDeleteAndWait(resourceGroupName: string, galleryName: string, galleryImageName: string, options?: GalleryImagesDeleteOptionalParams): Promise; - beginUpdate(resourceGroupName: string, galleryName: string, galleryImageName: string, galleryImage: GalleryImageUpdate, options?: GalleryImagesUpdateOptionalParams): Promise, GalleryImagesUpdateResponse>>; - beginUpdateAndWait(resourceGroupName: string, galleryName: string, galleryImageName: string, galleryImage: GalleryImageUpdate, options?: GalleryImagesUpdateOptionalParams): Promise; - get(resourceGroupName: string, galleryName: string, galleryImageName: string, options?: GalleryImagesGetOptionalParams): Promise; - listByGallery(resourceGroupName: string, galleryName: string, options?: GalleryImagesListByGalleryOptionalParams): PagedAsyncIterableIterator; + beginCreateOrUpdate(resourceGroupName: string, galleryImageName: string, galleryImage: GalleryImage, options?: GalleryImagesCreateOrUpdateOptionalParams): Promise, GalleryImagesCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, galleryImageName: string, galleryImage: GalleryImage, options?: GalleryImagesCreateOrUpdateOptionalParams): Promise; + beginDelete(resourceGroupName: string, galleryImageName: string, options?: GalleryImagesDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, galleryImageName: string, options?: GalleryImagesDeleteOptionalParams): Promise; + beginUpdate(resourceGroupName: string, galleryImageName: string, galleryImage: GalleryImageUpdate, options?: GalleryImagesUpdateOptionalParams): Promise, GalleryImagesUpdateResponse>>; + beginUpdateAndWait(resourceGroupName: string, galleryImageName: string, galleryImage: GalleryImageUpdate, options?: GalleryImagesUpdateOptionalParams): Promise; + get(resourceGroupName: string, galleryImageName: string, options?: GalleryImagesGetOptionalParams): Promise; + listByGallery(resourceGroupName: string, options?: GalleryImagesListByGalleryOptionalParams): PagedAsyncIterableIterator; } // @public @@ -2877,14 +2887,14 @@ export interface GalleryImageVersionPublishingProfile extends GalleryArtifactPub // @public export interface GalleryImageVersions { - beginCreateOrUpdate(resourceGroupName: string, galleryName: string, galleryImageName: string, galleryImageVersionName: string, galleryImageVersion: GalleryImageVersion, options?: GalleryImageVersionsCreateOrUpdateOptionalParams): Promise, GalleryImageVersionsCreateOrUpdateResponse>>; - beginCreateOrUpdateAndWait(resourceGroupName: string, galleryName: string, galleryImageName: string, galleryImageVersionName: string, galleryImageVersion: GalleryImageVersion, options?: GalleryImageVersionsCreateOrUpdateOptionalParams): Promise; - beginDelete(resourceGroupName: string, galleryName: string, galleryImageName: string, galleryImageVersionName: string, options?: GalleryImageVersionsDeleteOptionalParams): Promise, void>>; - beginDeleteAndWait(resourceGroupName: string, galleryName: string, galleryImageName: string, galleryImageVersionName: string, options?: GalleryImageVersionsDeleteOptionalParams): Promise; - beginUpdate(resourceGroupName: string, galleryName: string, galleryImageName: string, galleryImageVersionName: string, galleryImageVersion: GalleryImageVersionUpdate, options?: GalleryImageVersionsUpdateOptionalParams): Promise, GalleryImageVersionsUpdateResponse>>; - beginUpdateAndWait(resourceGroupName: string, galleryName: string, galleryImageName: string, galleryImageVersionName: string, galleryImageVersion: GalleryImageVersionUpdate, options?: GalleryImageVersionsUpdateOptionalParams): Promise; - get(resourceGroupName: string, galleryName: string, galleryImageName: string, galleryImageVersionName: string, options?: GalleryImageVersionsGetOptionalParams): Promise; - listByGalleryImage(resourceGroupName: string, galleryName: string, galleryImageName: string, options?: GalleryImageVersionsListByGalleryImageOptionalParams): PagedAsyncIterableIterator; + beginCreateOrUpdate(resourceGroupName: string, galleryImageName: string, galleryImageVersionName: string, galleryImageVersion: GalleryImageVersion, options?: GalleryImageVersionsCreateOrUpdateOptionalParams): Promise, GalleryImageVersionsCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, galleryImageName: string, galleryImageVersionName: string, galleryImageVersion: GalleryImageVersion, options?: GalleryImageVersionsCreateOrUpdateOptionalParams): Promise; + beginDelete(resourceGroupName: string, galleryImageName: string, galleryImageVersionName: string, options?: GalleryImageVersionsDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, galleryImageName: string, galleryImageVersionName: string, options?: GalleryImageVersionsDeleteOptionalParams): Promise; + beginUpdate(resourceGroupName: string, galleryImageName: string, galleryImageVersionName: string, galleryImageVersion: GalleryImageVersionUpdate, options?: GalleryImageVersionsUpdateOptionalParams): Promise, GalleryImageVersionsUpdateResponse>>; + beginUpdateAndWait(resourceGroupName: string, galleryImageName: string, galleryImageVersionName: string, galleryImageVersion: GalleryImageVersionUpdate, options?: GalleryImageVersionsUpdateOptionalParams): Promise; + get(resourceGroupName: string, galleryImageName: string, galleryImageVersionName: string, options?: GalleryImageVersionsGetOptionalParams): Promise; + listByGalleryImage(resourceGroupName: string, galleryImageName: string, options?: GalleryImageVersionsListByGalleryImageOptionalParams): PagedAsyncIterableIterator; } // @public @@ -2985,14 +2995,14 @@ export interface GalleryInVMAccessControlProfileProperties extends GalleryResour // @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; + beginCreateOrUpdate(resourceGroupName: string, inVMAccessControlProfileName: string, galleryInVMAccessControlProfile: GalleryInVMAccessControlProfile, options?: GalleryInVMAccessControlProfilesCreateOrUpdateOptionalParams): Promise, GalleryInVMAccessControlProfilesCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, inVMAccessControlProfileName: string, galleryInVMAccessControlProfile: GalleryInVMAccessControlProfile, options?: GalleryInVMAccessControlProfilesCreateOrUpdateOptionalParams): Promise; + beginDelete(resourceGroupName: string, inVMAccessControlProfileName: string, options?: GalleryInVMAccessControlProfilesDeleteOptionalParams): Promise, GalleryInVMAccessControlProfilesDeleteResponse>>; + beginDeleteAndWait(resourceGroupName: string, inVMAccessControlProfileName: string, options?: GalleryInVMAccessControlProfilesDeleteOptionalParams): Promise; + beginUpdate(resourceGroupName: string, inVMAccessControlProfileName: string, galleryInVMAccessControlProfile: GalleryInVMAccessControlProfileUpdate, options?: GalleryInVMAccessControlProfilesUpdateOptionalParams): Promise, GalleryInVMAccessControlProfilesUpdateResponse>>; + beginUpdateAndWait(resourceGroupName: string, inVMAccessControlProfileName: string, galleryInVMAccessControlProfile: GalleryInVMAccessControlProfileUpdate, options?: GalleryInVMAccessControlProfilesUpdateOptionalParams): Promise; + get(resourceGroupName: string, inVMAccessControlProfileName: string, options?: GalleryInVMAccessControlProfilesGetOptionalParams): Promise; + listByGallery(resourceGroupName: string, options?: GalleryInVMAccessControlProfilesListByGalleryOptionalParams): PagedAsyncIterableIterator; } // @public @@ -3083,14 +3093,14 @@ export interface GalleryInVMAccessControlProfileVersionProperties extends Galler // @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; + beginCreateOrUpdate(resourceGroupName: string, inVMAccessControlProfileName: string, inVMAccessControlProfileVersionName: string, galleryInVMAccessControlProfileVersion: GalleryInVMAccessControlProfileVersion, options?: GalleryInVMAccessControlProfileVersionsCreateOrUpdateOptionalParams): Promise, GalleryInVMAccessControlProfileVersionsCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, inVMAccessControlProfileName: string, inVMAccessControlProfileVersionName: string, galleryInVMAccessControlProfileVersion: GalleryInVMAccessControlProfileVersion, options?: GalleryInVMAccessControlProfileVersionsCreateOrUpdateOptionalParams): Promise; + beginDelete(resourceGroupName: string, inVMAccessControlProfileName: string, inVMAccessControlProfileVersionName: string, options?: GalleryInVMAccessControlProfileVersionsDeleteOptionalParams): Promise, GalleryInVMAccessControlProfileVersionsDeleteResponse>>; + beginDeleteAndWait(resourceGroupName: string, inVMAccessControlProfileName: string, inVMAccessControlProfileVersionName: string, options?: GalleryInVMAccessControlProfileVersionsDeleteOptionalParams): Promise; + beginUpdate(resourceGroupName: string, inVMAccessControlProfileName: string, inVMAccessControlProfileVersionName: string, galleryInVMAccessControlProfileVersion: GalleryInVMAccessControlProfileVersionUpdate, options?: GalleryInVMAccessControlProfileVersionsUpdateOptionalParams): Promise, GalleryInVMAccessControlProfileVersionsUpdateResponse>>; + beginUpdateAndWait(resourceGroupName: string, inVMAccessControlProfileName: string, inVMAccessControlProfileVersionName: string, galleryInVMAccessControlProfileVersion: GalleryInVMAccessControlProfileVersionUpdate, options?: GalleryInVMAccessControlProfileVersionsUpdateOptionalParams): Promise; + get(resourceGroupName: string, inVMAccessControlProfileName: string, inVMAccessControlProfileVersionName: string, options?: GalleryInVMAccessControlProfileVersionsGetOptionalParams): Promise; + listByGalleryInVMAccessControlProfile(resourceGroupName: string, inVMAccessControlProfileName: string, options?: GalleryInVMAccessControlProfileVersionsListByGalleryInVMAccessControlProfileOptionalParams): PagedAsyncIterableIterator; } // @public @@ -3189,13 +3199,238 @@ export interface GalleryResourceProfileVersionPropertiesBase { targetLocations?: TargetRegion[]; } +// @public +export interface GalleryScript extends Resource { + properties?: GalleryScriptProperties; +} + +// @public +export interface GalleryScriptList { + nextLink?: string; + value: GalleryScript[]; +} + +// @public +export interface GalleryScriptParameter extends GenericGalleryParameter { + enumValues?: string[]; + maxValue?: string; + minValue?: string; + type?: GalleryScriptParameterType; +} + +// @public +export type GalleryScriptParameterType = "String" | "Int" | "Double" | "Boolean" | "Enum"; + +// @public +export interface GalleryScriptProperties { + description?: string; + endOfLifeDate?: Date; + eula?: string; + privacyStatementUri?: string; + readonly provisioningState?: GalleryProvisioningState; + releaseNoteUri?: string; + supportedOSType: OperatingSystemTypes; +} + +// @public +export interface GalleryScripts { + beginCreateOrUpdate(resourceGroupName: string, galleryScript: GalleryScript, options?: GalleryScriptsCreateOrUpdateOptionalParams): Promise, GalleryScriptsCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, galleryScript: GalleryScript, options?: GalleryScriptsCreateOrUpdateOptionalParams): Promise; + beginDelete(resourceGroupName: string, options?: GalleryScriptsDeleteOptionalParams): Promise, GalleryScriptsDeleteResponse>>; + beginDeleteAndWait(resourceGroupName: string, options?: GalleryScriptsDeleteOptionalParams): Promise; + beginUpdate(resourceGroupName: string, galleryScript: GalleryScriptUpdate, options?: GalleryScriptsUpdateOptionalParams): Promise, GalleryScriptsUpdateResponse>>; + beginUpdateAndWait(resourceGroupName: string, galleryScript: GalleryScriptUpdate, options?: GalleryScriptsUpdateOptionalParams): Promise; + get(resourceGroupName: string, options?: GalleryScriptsGetOptionalParams): Promise; + listByGallery(resourceGroupName: string, options?: GalleryScriptsListByGalleryOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface GalleryScriptsCreateOrUpdateHeaders { + azureAsyncOperation?: string; +} + +// @public +export interface GalleryScriptsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type GalleryScriptsCreateOrUpdateResponse = GalleryScriptsCreateOrUpdateHeaders & GalleryScript; + +// @public +export interface GalleryScriptsDeleteHeaders { + azureAsyncOperation?: string; + location?: string; +} + +// @public +export interface GalleryScriptsDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type GalleryScriptsDeleteResponse = GalleryScriptsDeleteHeaders; + +// @public +export interface GalleryScriptsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type GalleryScriptsGetResponse = GalleryScript; + +// @public +export interface GalleryScriptsListByGalleryNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type GalleryScriptsListByGalleryNextResponse = GalleryScriptList; + +// @public +export interface GalleryScriptsListByGalleryOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type GalleryScriptsListByGalleryResponse = GalleryScriptList; + +// @public +export interface GalleryScriptsUpdateHeaders { + azureAsyncOperation?: string; + location?: string; +} + +// @public +export interface GalleryScriptsUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type GalleryScriptsUpdateResponse = GalleryScript; + +// @public +export interface GalleryScriptUpdate extends UpdateResourceDefinition { + properties?: GalleryScriptProperties; +} + +// @public +export interface GalleryScriptVersion extends Resource { + properties?: GalleryScriptVersionProperties; +} + +// @public +export interface GalleryScriptVersionList { + nextLink?: string; + value: GalleryScriptVersion[]; +} + +// @public +export interface GalleryScriptVersionProperties { + readonly provisioningState?: GalleryProvisioningState; + publishingProfile: GalleryScriptVersionPublishingProfile; + readonly replicationStatus?: ReplicationStatus; + safetyProfile?: GalleryScriptVersionSafetyProfile; +} + +// @public +export interface GalleryScriptVersionPublishingProfile extends GalleryArtifactPublishingProfileBase { + source: ScriptSource; +} + +// @public +export interface GalleryScriptVersions { + beginCreateOrUpdate(resourceGroupName: string, galleryScriptVersion: GalleryScriptVersion, options?: GalleryScriptVersionsCreateOrUpdateOptionalParams): Promise, GalleryScriptVersionsCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, galleryScriptVersion: GalleryScriptVersion, options?: GalleryScriptVersionsCreateOrUpdateOptionalParams): Promise; + beginDelete(resourceGroupName: string, options?: GalleryScriptVersionsDeleteOptionalParams): Promise, GalleryScriptVersionsDeleteResponse>>; + beginDeleteAndWait(resourceGroupName: string, options?: GalleryScriptVersionsDeleteOptionalParams): Promise; + beginUpdate(resourceGroupName: string, galleryScriptVersion: GalleryScriptVersionUpdate, options?: GalleryScriptVersionsUpdateOptionalParams): Promise, GalleryScriptVersionsUpdateResponse>>; + beginUpdateAndWait(resourceGroupName: string, galleryScriptVersion: GalleryScriptVersionUpdate, options?: GalleryScriptVersionsUpdateOptionalParams): Promise; + get(resourceGroupName: string, options?: GalleryScriptVersionsGetOptionalParams): Promise; + listByGalleryScript(resourceGroupName: string, options?: GalleryScriptVersionsListByGalleryScriptOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface GalleryScriptVersionSafetyProfile extends GalleryArtifactSafetyProfileBase { +} + +// @public +export interface GalleryScriptVersionsCreateOrUpdateHeaders { + azureAsyncOperation?: string; +} + +// @public +export interface GalleryScriptVersionsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type GalleryScriptVersionsCreateOrUpdateResponse = GalleryScriptVersionsCreateOrUpdateHeaders & GalleryScriptVersion; + +// @public +export interface GalleryScriptVersionsDeleteHeaders { + azureAsyncOperation?: string; + location?: string; +} + +// @public +export interface GalleryScriptVersionsDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type GalleryScriptVersionsDeleteResponse = GalleryScriptVersionsDeleteHeaders; + +// @public +export interface GalleryScriptVersionsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type GalleryScriptVersionsGetResponse = GalleryScriptVersion; + +// @public +export interface GalleryScriptVersionsListByGalleryScriptNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type GalleryScriptVersionsListByGalleryScriptNextResponse = GalleryScriptVersionList; + +// @public +export interface GalleryScriptVersionsListByGalleryScriptOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type GalleryScriptVersionsListByGalleryScriptResponse = GalleryScriptVersionList; + +// @public +export interface GalleryScriptVersionsUpdateHeaders { + azureAsyncOperation?: string; + location?: string; +} + +// @public +export interface GalleryScriptVersionsUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type GalleryScriptVersionsUpdateResponse = GalleryScriptVersion; + +// @public +export interface GalleryScriptVersionUpdate extends UpdateResourceDefinition { + properties?: GalleryScriptVersionProperties; +} + // @public export type GallerySharingPermissionTypes = string; // @public export interface GallerySharingProfile { - beginUpdate(resourceGroupName: string, galleryName: string, sharingUpdate: SharingUpdate, options?: GallerySharingProfileUpdateOptionalParams): Promise, GallerySharingProfileUpdateResponse>>; - beginUpdateAndWait(resourceGroupName: string, galleryName: string, sharingUpdate: SharingUpdate, options?: GallerySharingProfileUpdateOptionalParams): Promise; + beginUpdate(resourceGroupName: string, sharingUpdate: SharingUpdate, options?: GallerySharingProfileUpdateOptionalParams): Promise, GallerySharingProfileUpdateResponse>>; + beginUpdateAndWait(resourceGroupName: string, sharingUpdate: SharingUpdate, options?: GallerySharingProfileUpdateOptionalParams): Promise; } // @public @@ -3240,6 +3475,14 @@ export interface GalleryUpdate extends UpdateResourceDefinition { softDeletePolicy?: SoftDeletePolicy; } +// @public +export interface GenericGalleryParameter { + defaultValue?: string; + description?: string; + name: string; + required?: boolean; +} + // @public export function getContinuationToken(page: unknown): string | undefined; @@ -5760,6 +6003,12 @@ export interface ScheduledEventsProfile { terminateNotificationProfile?: TerminateNotificationProfile; } +// @public +export interface ScriptSource { + parameters?: GalleryScriptParameter[]; + scriptLink: string; +} + // @public export type SecurityEncryptionTypes = string; @@ -6183,7 +6432,7 @@ export type SoftDeletedArtifactTypes = string; // @public export interface SoftDeletedResource { - listByArtifactName(resourceGroupName: string, galleryName: string, artifactType: string, artifactName: string, options?: SoftDeletedResourceListByArtifactNameOptionalParams): PagedAsyncIterableIterator; + listByArtifactName(resourceGroupName: string, artifactType: string, artifactName: string, options?: SoftDeletedResourceListByArtifactNameOptionalParams): PagedAsyncIterableIterator; } // @public diff --git a/sdk/compute/arm-compute/src/computeManagementClient.ts b/sdk/compute/arm-compute/src/computeManagementClient.ts index 683c1cfeec02..e02ac9e5f94d 100644 --- a/sdk/compute/arm-compute/src/computeManagementClient.ts +++ b/sdk/compute/arm-compute/src/computeManagementClient.ts @@ -47,6 +47,8 @@ import { GalleryImageVersionsImpl, GalleryApplicationsImpl, GalleryApplicationVersionsImpl, + GalleryScriptsImpl, + GalleryScriptVersionsImpl, SoftDeletedResourceImpl, GallerySharingProfileImpl, GalleryInVMAccessControlProfilesImpl, @@ -101,6 +103,8 @@ import { GalleryImageVersions, GalleryApplications, GalleryApplicationVersions, + GalleryScripts, + GalleryScriptVersions, SoftDeletedResource, GallerySharingProfile, GalleryInVMAccessControlProfiles, @@ -122,17 +126,30 @@ import { ComputeManagementClientOptionalParams } from "./models/index.js"; export class ComputeManagementClient extends coreClient.ServiceClient { $host: string; subscriptionId: string; + galleryName: string; + galleryScriptName: string; + galleryScriptVersionName: string; /** * Initializes a new instance of the ComputeManagementClient class. * @param credentials Subscription credentials which uniquely identify client subscription. * @param subscriptionId Subscription credentials which uniquely identify Microsoft Azure subscription. * The subscription ID forms part of the URI for every service call. + * @param galleryName The name of the Shared Image Gallery where Image Definitions or other artifacts + * reside. + * @param galleryScriptName The name of the gallery Script Definition in which the Script Version is to + * be created. + * @param galleryScriptVersionName The name of the gallery Script 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 options The parameter options */ constructor( credentials: coreAuth.TokenCredential, subscriptionId: string, + galleryName: string, + galleryScriptName: string, + galleryScriptVersionName: string, options?: ComputeManagementClientOptionalParams, ) { if (credentials === undefined) { @@ -141,6 +158,15 @@ export class ComputeManagementClient extends coreClient.ServiceClient { if (subscriptionId === undefined) { throw new Error("'subscriptionId' cannot be null"); } + if (galleryName === undefined) { + throw new Error("'galleryName' cannot be null"); + } + if (galleryScriptName === undefined) { + throw new Error("'galleryScriptName' cannot be null"); + } + if (galleryScriptVersionName === undefined) { + throw new Error("'galleryScriptVersionName' cannot be null"); + } // Initializing default values for options if (!options) { @@ -151,7 +177,7 @@ export class ComputeManagementClient extends coreClient.ServiceClient { credential: credentials, }; - const packageDetails = `azsdk-js-arm-compute/22.4.0`; + const packageDetails = `azsdk-js-arm-compute/23.0.0`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -202,6 +228,9 @@ export class ComputeManagementClient extends coreClient.ServiceClient { } // Parameter assignments this.subscriptionId = subscriptionId; + this.galleryName = galleryName; + this.galleryScriptName = galleryScriptName; + this.galleryScriptVersionName = galleryScriptVersionName; // Assigning values to Constant parameters this.$host = options.$host || "https://management.azure.com"; @@ -250,6 +279,8 @@ export class ComputeManagementClient extends coreClient.ServiceClient { this.galleryImageVersions = new GalleryImageVersionsImpl(this); this.galleryApplications = new GalleryApplicationsImpl(this); this.galleryApplicationVersions = new GalleryApplicationVersionsImpl(this); + this.galleryScripts = new GalleryScriptsImpl(this); + this.galleryScriptVersions = new GalleryScriptVersionsImpl(this); this.softDeletedResource = new SoftDeletedResourceImpl(this); this.gallerySharingProfile = new GallerySharingProfileImpl(this); this.galleryInVMAccessControlProfiles = @@ -310,6 +341,8 @@ export class ComputeManagementClient extends coreClient.ServiceClient { galleryImageVersions: GalleryImageVersions; galleryApplications: GalleryApplications; galleryApplicationVersions: GalleryApplicationVersions; + galleryScripts: GalleryScripts; + galleryScriptVersions: GalleryScriptVersions; softDeletedResource: SoftDeletedResource; gallerySharingProfile: GallerySharingProfile; galleryInVMAccessControlProfiles: GalleryInVMAccessControlProfiles; diff --git a/sdk/compute/arm-compute/src/models/index.ts b/sdk/compute/arm-compute/src/models/index.ts index adf0588c27b9..be728fc182e5 100644 --- a/sdk/compute/arm-compute/src/models/index.ts +++ b/sdk/compute/arm-compute/src/models/index.ts @@ -4252,6 +4252,65 @@ export interface UserArtifactSettings { scriptBehaviorAfterReboot?: GalleryApplicationScriptRebootBehavior; } +/** Describes the properties of a gallery Script Definition. */ +export interface GalleryScriptProperties { + /** The description of this gallery Script Definition resource. This property is updatable. */ + description?: string; + /** The Eula agreement (End User License Agreement) for the gallery Script Definition. */ + eula?: string; + /** The privacy statement uri. */ + privacyStatementUri?: string; + /** The release note uri. */ + releaseNoteUri?: string; + /** The end of life date of the gallery Script Definition. This property can be used for decommissioning purposes. This property is updatable. */ + endOfLifeDate?: Date; + /** This property allows you to specify the supported type of the OS that application is built for. Possible values are: **Windows,** **Linux.** */ + supportedOSType: OperatingSystemTypes; + /** + * 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; +} + +/** Describes the properties of a gallery script version. */ +export interface GalleryScriptVersionProperties { + /** The publishing profile of a gallery image version. */ + publishingProfile: GalleryScriptVersionPublishingProfile; + /** The safety profile of the Gallery Script Version. */ + safetyProfile?: GalleryScriptVersionSafetyProfile; + /** + * 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 source script from which the Script Version is going to be created. */ +export interface ScriptSource { + /** Required. The link of the source script, it must be a readable storage blob with SAS URI or publicly accessible URI or managed identity enabled. */ + scriptLink: string; + /** Optional. Any input parameters that needs to passed to the script and are accessed within the script for its execution. */ + parameters?: GalleryScriptParameter[]; +} + +/** The definition of a generic gallery parameter. */ +export interface GenericGalleryParameter { + /** The name of the parameter.. */ + name: string; + /** Indicates whether this parameter must be passed. */ + required?: boolean; + /** The default value of the parameter, only applies to string types. */ + defaultValue?: string; + /** A description to help users understand what this parameter means */ + description?: string; +} + /** The List Galleries operation response. */ export interface GalleryList { /** A list of galleries. */ @@ -4294,6 +4353,22 @@ export interface GalleryApplicationVersionList { nextLink?: string; } +/** The List Gallery Scripts operation response. */ +export interface GalleryScriptList { + /** A list of Gallery Scripts. */ + value: GalleryScript[]; + /** The uri to fetch the next page of Script Definitions in the Gallery. Call ListNext() with this to fetch the next page of gallery Script Definitions. */ + nextLink?: string; +} + +/** The List Gallery Script version operation response. */ +export interface GalleryScriptVersionList { + /** A list of gallery Script Versions. */ + value: GalleryScriptVersion[]; + /** The uri to fetch the next page of gallery Script Versions. Call ListNext() with this to fetch the next page of gallery Script Versions. */ + nextLink?: string; +} + /** The List Soft-deleted Resources operation response. */ export interface GallerySoftDeletedResourceList { /** A list of soft-deleted resources. */ @@ -6364,6 +6439,18 @@ export interface GalleryApplicationVersion extends Resource { readonly replicationStatus?: ReplicationStatus; } +/** Specifies information about the gallery Script Definition that you want to create or update. */ +export interface GalleryScript extends Resource { + /** Describes the properties of a gallery Script Definition. */ + properties?: GalleryScriptProperties; +} + +/** Specifies information about the gallery Script Version that you want to create or update. */ +export interface GalleryScriptVersion extends Resource { + /** Describes the properties of a gallery script version. */ + properties?: GalleryScriptVersionProperties; +} + /** The details information of soft-deleted resource. */ export interface GallerySoftDeletedResource extends Resource { /** arm id of the soft-deleted resource */ @@ -7095,6 +7182,18 @@ export interface GalleryApplicationVersionUpdate readonly replicationStatus?: ReplicationStatus; } +/** Specifies information about the gallery Script Definition that you want to update. */ +export interface GalleryScriptUpdate extends UpdateResourceDefinition { + /** Describes the properties of a gallery Script Definition. */ + properties?: GalleryScriptProperties; +} + +/** Specifies information about the gallery Script Version that you want to update. */ +export interface GalleryScriptVersionUpdate extends UpdateResourceDefinition { + /** Describes the properties of a gallery script version. */ + properties?: GalleryScriptVersionProperties; +} + /** Specifies information about the gallery inVMAccessControlProfile that you want to update. */ export interface GalleryInVMAccessControlProfileUpdate extends UpdateResourceDefinition { @@ -7152,6 +7251,13 @@ export interface GalleryApplicationVersionPublishingProfile customActions?: GalleryApplicationCustomAction[]; } +/** The publishing profile of a gallery image version. */ +export interface GalleryScriptVersionPublishingProfile + extends GalleryArtifactPublishingProfileBase { + /** The source script from which the Script Version is going to be created. */ + source: ScriptSource; +} + /** Contains encryption settings for an OS disk image. */ export interface OSDiskImageEncryption extends DiskImageEncryption { /** This property specifies the security profile of an OS disk image. */ @@ -7211,6 +7317,22 @@ export interface GalleryImageVersionSafetyProfile export interface GalleryApplicationVersionSafetyProfile extends GalleryArtifactSafetyProfileBase {} +/** The safety profile of the Gallery Script Version. */ +export interface GalleryScriptVersionSafetyProfile + extends GalleryArtifactSafetyProfileBase {} + +/** The definition of a parameter that can be passed to a script of a Gallery Script Version. */ +export interface GalleryScriptParameter extends GenericGalleryParameter { + /** Specifies the type of the Gallery Script parameter. Possible values are: String, Int, Double, Boolean, Enum */ + type?: GalleryScriptParameterType; + /** The minimum value of parameter. */ + minValue?: string; + /** The minimum value of parameter. */ + maxValue?: string; + /** A list of permissible values. Only applicable values are from 'enum' values defined in 'GalleryScriptParameter'. */ + enumValues?: string[]; +} + /** Describes the properties of a gallery inVMAccessControlProfile. */ export interface GalleryInVMAccessControlProfileProperties extends GalleryResourceProfilePropertiesBase { @@ -7417,6 +7539,50 @@ export interface DedicatedHostsRedeployHeaders { location?: string; } +/** Defines headers for GalleryScripts_createOrUpdate operation. */ +export interface GalleryScriptsCreateOrUpdateHeaders { + /** Link to the asynchronous operation resource that would have status of the operation. */ + azureAsyncOperation?: string; +} + +/** Defines headers for GalleryScripts_update operation. */ +export interface GalleryScriptsUpdateHeaders { + /** Location header that points to a URL where the ongoing asynchronous operation can be monitored. */ + location?: string; + /** Link to the asynchronous operation resource that would have status of the operation. */ + azureAsyncOperation?: string; +} + +/** Defines headers for GalleryScripts_delete operation. */ +export interface GalleryScriptsDeleteHeaders { + /** Location header that points to a URL where the ongoing asynchronous operation can be monitored. */ + location?: string; + /** Link to the asynchronous operation resource that would have status of the operation. */ + azureAsyncOperation?: string; +} + +/** Defines headers for GalleryScriptVersions_createOrUpdate operation. */ +export interface GalleryScriptVersionsCreateOrUpdateHeaders { + /** Link to the asynchronous operation resource that would have status of the operation. */ + azureAsyncOperation?: string; +} + +/** Defines headers for GalleryScriptVersions_update operation. */ +export interface GalleryScriptVersionsUpdateHeaders { + /** Location header that points to a URL where the ongoing asynchronous operation can be monitored. */ + location?: string; + /** Link to the asynchronous operation resource that would have status of the operation. */ + azureAsyncOperation?: string; +} + +/** Defines headers for GalleryScriptVersions_delete operation. */ +export interface GalleryScriptVersionsDeleteHeaders { + /** Location header that points to a URL where the ongoing asynchronous operation can be monitored. */ + location?: string; + /** Link to the asynchronous operation resource that would have status of the operation. */ + azureAsyncOperation?: string; +} + /** Defines headers for GalleryInVMAccessControlProfiles_delete operation. */ export interface GalleryInVMAccessControlProfilesDeleteHeaders { location?: string; @@ -10467,6 +10633,13 @@ export type GalleryApplicationCustomActionParameterType = | "String" | "ConfigurationDataBlob" | "LogOutputBlob"; +/** Defines values for GalleryScriptParameterType. */ +export type GalleryScriptParameterType = + | "String" + | "Int" + | "Double" + | "Boolean" + | "Enum"; /** Defines values for EndpointTypes. */ export type EndpointTypes = "WireServer" | "IMDS"; @@ -13236,6 +13409,125 @@ export interface GalleryApplicationVersionsListByGalleryApplicationNextOptionalP export type GalleryApplicationVersionsListByGalleryApplicationNextResponse = GalleryApplicationVersionList; +/** Optional parameters. */ +export interface GalleryScriptsCreateOrUpdateOptionalParams + 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 GalleryScriptsCreateOrUpdateResponse = + GalleryScriptsCreateOrUpdateHeaders & GalleryScript; + +/** Optional parameters. */ +export interface GalleryScriptsUpdateOptionalParams + 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 GalleryScriptsUpdateResponse = GalleryScript; + +/** Optional parameters. */ +export interface GalleryScriptsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type GalleryScriptsGetResponse = GalleryScript; + +/** Optional parameters. */ +export interface GalleryScriptsDeleteOptionalParams + 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 GalleryScriptsDeleteResponse = GalleryScriptsDeleteHeaders; + +/** Optional parameters. */ +export interface GalleryScriptsListByGalleryOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByGallery operation. */ +export type GalleryScriptsListByGalleryResponse = GalleryScriptList; + +/** Optional parameters. */ +export interface GalleryScriptsListByGalleryNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByGalleryNext operation. */ +export type GalleryScriptsListByGalleryNextResponse = GalleryScriptList; + +/** Optional parameters. */ +export interface GalleryScriptVersionsCreateOrUpdateOptionalParams + 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 GalleryScriptVersionsCreateOrUpdateResponse = + GalleryScriptVersionsCreateOrUpdateHeaders & GalleryScriptVersion; + +/** Optional parameters. */ +export interface GalleryScriptVersionsUpdateOptionalParams + 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 GalleryScriptVersionsUpdateResponse = GalleryScriptVersion; + +/** Optional parameters. */ +export interface GalleryScriptVersionsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type GalleryScriptVersionsGetResponse = GalleryScriptVersion; + +/** Optional parameters. */ +export interface GalleryScriptVersionsDeleteOptionalParams + 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 GalleryScriptVersionsDeleteResponse = + GalleryScriptVersionsDeleteHeaders; + +/** Optional parameters. */ +export interface GalleryScriptVersionsListByGalleryScriptOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByGalleryScript operation. */ +export type GalleryScriptVersionsListByGalleryScriptResponse = + GalleryScriptVersionList; + +/** Optional parameters. */ +export interface GalleryScriptVersionsListByGalleryScriptNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByGalleryScriptNext operation. */ +export type GalleryScriptVersionsListByGalleryScriptNextResponse = + GalleryScriptVersionList; + /** Optional parameters. */ export interface SoftDeletedResourceListByArtifactNameOptionalParams extends coreClient.OperationOptions {} diff --git a/sdk/compute/arm-compute/src/models/mappers.ts b/sdk/compute/arm-compute/src/models/mappers.ts index 998a002eb422..d8b694885a4a 100644 --- a/sdk/compute/arm-compute/src/models/mappers.ts +++ b/sdk/compute/arm-compute/src/models/mappers.ts @@ -11228,6 +11228,159 @@ export const UserArtifactSettings: coreClient.CompositeMapper = { }, }; +export const GalleryScriptProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "GalleryScriptProperties", + modelProperties: { + description: { + serializedName: "description", + type: { + name: "String", + }, + }, + eula: { + serializedName: "eula", + type: { + name: "String", + }, + }, + privacyStatementUri: { + serializedName: "privacyStatementUri", + type: { + name: "String", + }, + }, + releaseNoteUri: { + serializedName: "releaseNoteUri", + type: { + name: "String", + }, + }, + endOfLifeDate: { + serializedName: "endOfLifeDate", + type: { + name: "DateTime", + }, + }, + supportedOSType: { + serializedName: "supportedOSType", + required: true, + type: { + name: "Enum", + allowedValues: ["Windows", "Linux"], + }, + }, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, +}; + +export const GalleryScriptVersionProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "GalleryScriptVersionProperties", + modelProperties: { + publishingProfile: { + serializedName: "publishingProfile", + type: { + name: "Composite", + className: "GalleryScriptVersionPublishingProfile", + }, + }, + safetyProfile: { + serializedName: "safetyProfile", + type: { + name: "Composite", + className: "GalleryScriptVersionSafetyProfile", + }, + }, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, + type: { + name: "String", + }, + }, + replicationStatus: { + serializedName: "replicationStatus", + type: { + name: "Composite", + className: "ReplicationStatus", + }, + }, + }, + }, +}; + +export const ScriptSource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ScriptSource", + modelProperties: { + scriptLink: { + serializedName: "scriptLink", + required: true, + type: { + name: "String", + }, + }, + parameters: { + serializedName: "parameters", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "GalleryScriptParameter", + }, + }, + }, + }, + }, + }, +}; + +export const GenericGalleryParameter: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "GenericGalleryParameter", + modelProperties: { + name: { + serializedName: "name", + required: true, + type: { + name: "String", + }, + }, + required: { + serializedName: "required", + type: { + name: "Boolean", + }, + }, + defaultValue: { + serializedName: "defaultValue", + type: { + name: "String", + }, + }, + description: { + serializedName: "description", + type: { + name: "String", + }, + }, + }, + }, +}; + export const GalleryList: coreClient.CompositeMapper = { type: { name: "Composite", @@ -11375,6 +11528,62 @@ export const GalleryApplicationVersionList: coreClient.CompositeMapper = { }, }; +export const GalleryScriptList: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "GalleryScriptList", + modelProperties: { + value: { + serializedName: "value", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "GalleryScript", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const GalleryScriptVersionList: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "GalleryScriptVersionList", + modelProperties: { + value: { + serializedName: "value", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "GalleryScriptVersion", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String", + }, + }, + }, + }, +}; + export const GallerySoftDeletedResourceList: coreClient.CompositeMapper = { type: { name: "Composite", @@ -16496,6 +16705,40 @@ export const GalleryApplicationVersion: coreClient.CompositeMapper = { }, }; +export const GalleryScript: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "GalleryScript", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "GalleryScriptProperties", + }, + }, + }, + }, +}; + +export const GalleryScriptVersion: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "GalleryScriptVersion", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "GalleryScriptVersionProperties", + }, + }, + }, + }, +}; + export const GallerySoftDeletedResource: coreClient.CompositeMapper = { type: { name: "Composite", @@ -18391,6 +18634,40 @@ export const GalleryApplicationVersionUpdate: coreClient.CompositeMapper = { }, }; +export const GalleryScriptUpdate: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "GalleryScriptUpdate", + modelProperties: { + ...UpdateResourceDefinition.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "GalleryScriptProperties", + }, + }, + }, + }, +}; + +export const GalleryScriptVersionUpdate: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "GalleryScriptVersionUpdate", + modelProperties: { + ...UpdateResourceDefinition.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "GalleryScriptVersionProperties", + }, + }, + }, + }, +}; + export const GalleryInVMAccessControlProfileUpdate: coreClient.CompositeMapper = { type: { @@ -18546,6 +18823,24 @@ export const GalleryApplicationVersionPublishingProfile: coreClient.CompositeMap }, }; +export const GalleryScriptVersionPublishingProfile: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "GalleryScriptVersionPublishingProfile", + modelProperties: { + ...GalleryArtifactPublishingProfileBase.type.modelProperties, + source: { + serializedName: "source", + type: { + name: "Composite", + className: "ScriptSource", + }, + }, + }, + }, + }; + export const OSDiskImageEncryption: coreClient.CompositeMapper = { type: { name: "Composite", @@ -18698,6 +18993,56 @@ export const GalleryApplicationVersionSafetyProfile: coreClient.CompositeMapper }, }; +export const GalleryScriptVersionSafetyProfile: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "GalleryScriptVersionSafetyProfile", + modelProperties: { + ...GalleryArtifactSafetyProfileBase.type.modelProperties, + }, + }, +}; + +export const GalleryScriptParameter: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "GalleryScriptParameter", + modelProperties: { + ...GenericGalleryParameter.type.modelProperties, + type: { + serializedName: "type", + type: { + name: "Enum", + allowedValues: ["String", "Int", "Double", "Boolean", "Enum"], + }, + }, + minValue: { + serializedName: "minValue", + type: { + name: "String", + }, + }, + maxValue: { + serializedName: "maxValue", + type: { + name: "String", + }, + }, + enumValues: { + serializedName: "enumValues", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + }, + }, +}; + export const GalleryInVMAccessControlProfileProperties: coreClient.CompositeMapper = { type: { @@ -19350,6 +19695,121 @@ export const DedicatedHostsRedeployHeaders: coreClient.CompositeMapper = { }, }; +export const GalleryScriptsCreateOrUpdateHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "GalleryScriptsCreateOrUpdateHeaders", + modelProperties: { + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const GalleryScriptsUpdateHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "GalleryScriptsUpdateHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const GalleryScriptsDeleteHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "GalleryScriptsDeleteHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const GalleryScriptVersionsCreateOrUpdateHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "GalleryScriptVersionsCreateOrUpdateHeaders", + modelProperties: { + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const GalleryScriptVersionsUpdateHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "GalleryScriptVersionsUpdateHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const GalleryScriptVersionsDeleteHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "GalleryScriptVersionsDeleteHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String", + }, + }, + }, + }, +}; + export const GalleryInVMAccessControlProfilesDeleteHeaders: coreClient.CompositeMapper = { type: { diff --git a/sdk/compute/arm-compute/src/models/parameters.ts b/sdk/compute/arm-compute/src/models/parameters.ts index dc068b449e61..4014e44a0142 100644 --- a/sdk/compute/arm-compute/src/models/parameters.ts +++ b/sdk/compute/arm-compute/src/models/parameters.ts @@ -81,6 +81,10 @@ import { GalleryApplicationUpdate as GalleryApplicationUpdateMapper, GalleryApplicationVersion as GalleryApplicationVersionMapper, GalleryApplicationVersionUpdate as GalleryApplicationVersionUpdateMapper, + GalleryScript as GalleryScriptMapper, + GalleryScriptUpdate as GalleryScriptUpdateMapper, + GalleryScriptVersion as GalleryScriptVersionMapper, + GalleryScriptVersionUpdate as GalleryScriptVersionUpdateMapper, SharingUpdate as SharingUpdateMapper, GalleryInVMAccessControlProfile as GalleryInVMAccessControlProfileMapper, GalleryInVMAccessControlProfileUpdate as GalleryInVMAccessControlProfileUpdateMapper, @@ -1191,6 +1195,9 @@ export const gallery: OperationParameter = { export const galleryName: OperationURLParameter = { parameterPath: "galleryName", mapper: { + constraints: { + Pattern: new RegExp("^[a-zA-Z0-9]+([_]?[a-zA-Z0-9]+)*$"), + }, serializedName: "galleryName", required: true, type: { @@ -1202,7 +1209,7 @@ export const galleryName: OperationURLParameter = { export const apiVersion3: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2024-03-03", + defaultValue: "2025-03-03", isConstant: true, serializedName: "api-version", type: { @@ -1330,13 +1337,42 @@ export const galleryApplicationVersion1: OperationParameter = { mapper: GalleryApplicationVersionUpdateMapper, }; -export const galleryName1: OperationURLParameter = { - parameterPath: "galleryName", +export const galleryScript: OperationParameter = { + parameterPath: "galleryScript", + mapper: GalleryScriptMapper, +}; + +export const galleryScriptName: OperationURLParameter = { + parameterPath: "galleryScriptName", mapper: { constraints: { Pattern: new RegExp("^[a-zA-Z0-9]+([_]?[a-zA-Z0-9]+)*$"), }, - serializedName: "galleryName", + serializedName: "galleryScriptName", + required: true, + type: { + name: "String", + }, + }, +}; + +export const galleryScript1: OperationParameter = { + parameterPath: "galleryScript", + mapper: GalleryScriptUpdateMapper, +}; + +export const galleryScriptVersion: OperationParameter = { + parameterPath: "galleryScriptVersion", + mapper: GalleryScriptVersionMapper, +}; + +export const galleryScriptVersionName: OperationURLParameter = { + parameterPath: "galleryScriptVersionName", + mapper: { + constraints: { + Pattern: new RegExp("^[0-9]+\\.[0-9]+\\.[0-9]+$"), + }, + serializedName: "galleryScriptVersionName", required: true, type: { name: "String", @@ -1344,6 +1380,11 @@ export const galleryName1: OperationURLParameter = { }, }; +export const galleryScriptVersion1: OperationParameter = { + parameterPath: "galleryScriptVersion", + mapper: GalleryScriptVersionUpdateMapper, +}; + export const artifactType: OperationURLParameter = { parameterPath: "artifactType", mapper: { diff --git a/sdk/compute/arm-compute/src/operations/galleries.ts b/sdk/compute/arm-compute/src/operations/galleries.ts index 0c98cc7b2375..a427377ee235 100644 --- a/sdk/compute/arm-compute/src/operations/galleries.ts +++ b/sdk/compute/arm-compute/src/operations/galleries.ts @@ -178,14 +178,11 @@ export class GalleriesImpl implements Galleries { /** * Create or update a Shared Image Gallery. * @param resourceGroupName The name of the resource group. - * @param galleryName The name of the Shared Image Gallery. The allowed characters are alphabets and - * numbers with dots and periods allowed in the middle. The maximum length is 80 characters. * @param gallery Parameters supplied to the create or update Shared Image Gallery operation. * @param options The options parameters. */ async beginCreateOrUpdate( resourceGroupName: string, - galleryName: string, gallery: Gallery, options?: GalleriesCreateOrUpdateOptionalParams, ): Promise< @@ -234,7 +231,7 @@ export class GalleriesImpl implements Galleries { const lro = createLroSpec({ sendOperationFn, - args: { resourceGroupName, galleryName, gallery, options }, + args: { resourceGroupName, gallery, options }, spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< @@ -251,20 +248,16 @@ export class GalleriesImpl implements Galleries { /** * Create or update a Shared Image Gallery. * @param resourceGroupName The name of the resource group. - * @param galleryName The name of the Shared Image Gallery. The allowed characters are alphabets and - * numbers with dots and periods allowed in the middle. The maximum length is 80 characters. * @param gallery Parameters supplied to the create or update Shared Image Gallery operation. * @param options The options parameters. */ async beginCreateOrUpdateAndWait( resourceGroupName: string, - galleryName: string, gallery: Gallery, options?: GalleriesCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, - galleryName, gallery, options, ); @@ -274,14 +267,11 @@ export class GalleriesImpl implements Galleries { /** * Update a Shared Image Gallery. * @param resourceGroupName The name of the resource group. - * @param galleryName The name of the Shared Image Gallery. The allowed characters are alphabets and - * numbers with dots and periods allowed in the middle. The maximum length is 80 characters. * @param gallery Parameters supplied to the update Shared Image Gallery operation. * @param options The options parameters. */ async beginUpdate( resourceGroupName: string, - galleryName: string, gallery: GalleryUpdate, options?: GalleriesUpdateOptionalParams, ): Promise< @@ -330,7 +320,7 @@ export class GalleriesImpl implements Galleries { const lro = createLroSpec({ sendOperationFn, - args: { resourceGroupName, galleryName, gallery, options }, + args: { resourceGroupName, gallery, options }, spec: updateOperationSpec, }); const poller = await createHttpPoller< @@ -347,39 +337,29 @@ export class GalleriesImpl implements Galleries { /** * Update a Shared Image Gallery. * @param resourceGroupName The name of the resource group. - * @param galleryName The name of the Shared Image Gallery. The allowed characters are alphabets and - * numbers with dots and periods allowed in the middle. The maximum length is 80 characters. * @param gallery Parameters supplied to the update Shared Image Gallery operation. * @param options The options parameters. */ async beginUpdateAndWait( resourceGroupName: string, - galleryName: string, gallery: GalleryUpdate, options?: GalleriesUpdateOptionalParams, ): Promise { - const poller = await this.beginUpdate( - resourceGroupName, - galleryName, - gallery, - options, - ); + const poller = await this.beginUpdate(resourceGroupName, gallery, options); return poller.pollUntilDone(); } /** * Retrieves information about a Shared Image Gallery. * @param resourceGroupName The name of the resource group. - * @param galleryName The name of the Shared Image Gallery. * @param options The options parameters. */ get( resourceGroupName: string, - galleryName: string, options?: GalleriesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( - { resourceGroupName, galleryName, options }, + { resourceGroupName, options }, getOperationSpec, ); } @@ -387,12 +367,10 @@ export class GalleriesImpl implements Galleries { /** * Delete a Shared Image Gallery. * @param resourceGroupName The name of the resource group. - * @param galleryName The name of the Shared Image Gallery to be deleted. * @param options The options parameters. */ async beginDelete( resourceGroupName: string, - galleryName: string, options?: GalleriesDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( @@ -435,7 +413,7 @@ export class GalleriesImpl implements Galleries { const lro = createLroSpec({ sendOperationFn, - args: { resourceGroupName, galleryName, options }, + args: { resourceGroupName, options }, spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { @@ -449,19 +427,13 @@ export class GalleriesImpl implements Galleries { /** * Delete a Shared Image Gallery. * @param resourceGroupName The name of the resource group. - * @param galleryName The name of the Shared Image Gallery to be deleted. * @param options The options parameters. */ async beginDeleteAndWait( resourceGroupName: string, - galleryName: string, options?: GalleriesDeleteOptionalParams, ): Promise { - const poller = await this.beginDelete( - resourceGroupName, - galleryName, - options, - ); + const poller = await this.beginDelete(resourceGroupName, options); return poller.pollUntilDone(); } diff --git a/sdk/compute/arm-compute/src/operations/galleryApplicationVersions.ts b/sdk/compute/arm-compute/src/operations/galleryApplicationVersions.ts index 93f037652a1a..a74de1e2abcd 100644 --- a/sdk/compute/arm-compute/src/operations/galleryApplicationVersions.ts +++ b/sdk/compute/arm-compute/src/operations/galleryApplicationVersions.ts @@ -53,21 +53,17 @@ export class GalleryApplicationVersionsImpl /** * List gallery Application Versions in a gallery Application Definition. * @param resourceGroupName The name of the resource group. - * @param galleryName The name of the Shared Application Gallery in which the Application Definition - * resides. * @param galleryApplicationName The name of the Shared Application Gallery Application Definition from * which the Application Versions are to be listed. * @param options The options parameters. */ public listByGalleryApplication( resourceGroupName: string, - galleryName: string, galleryApplicationName: string, options?: GalleryApplicationVersionsListByGalleryApplicationOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByGalleryApplicationPagingAll( resourceGroupName, - galleryName, galleryApplicationName, options, ); @@ -84,7 +80,6 @@ export class GalleryApplicationVersionsImpl } return this.listByGalleryApplicationPagingPage( resourceGroupName, - galleryName, galleryApplicationName, options, settings, @@ -95,7 +90,6 @@ export class GalleryApplicationVersionsImpl private async *listByGalleryApplicationPagingPage( resourceGroupName: string, - galleryName: string, galleryApplicationName: string, options?: GalleryApplicationVersionsListByGalleryApplicationOptionalParams, settings?: PageSettings, @@ -105,7 +99,6 @@ export class GalleryApplicationVersionsImpl if (!continuationToken) { result = await this._listByGalleryApplication( resourceGroupName, - galleryName, galleryApplicationName, options, ); @@ -117,7 +110,6 @@ export class GalleryApplicationVersionsImpl while (continuationToken) { result = await this._listByGalleryApplicationNext( resourceGroupName, - galleryName, galleryApplicationName, continuationToken, options, @@ -131,13 +123,11 @@ export class GalleryApplicationVersionsImpl private async *listByGalleryApplicationPagingAll( resourceGroupName: string, - galleryName: string, galleryApplicationName: string, options?: GalleryApplicationVersionsListByGalleryApplicationOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByGalleryApplicationPagingPage( resourceGroupName, - galleryName, galleryApplicationName, options, )) { @@ -148,8 +138,6 @@ export class GalleryApplicationVersionsImpl /** * Create or update a gallery Application Version. * @param resourceGroupName The name of the resource group. - * @param galleryName The name of the Shared Application Gallery in which the Application Definition - * resides. * @param galleryApplicationName The name of the gallery Application Definition in which the * Application Version is to be created. * @param galleryApplicationVersionName The name of the gallery Application Version to be created. @@ -161,7 +149,6 @@ export class GalleryApplicationVersionsImpl */ async beginCreateOrUpdate( resourceGroupName: string, - galleryName: string, galleryApplicationName: string, galleryApplicationVersionName: string, galleryApplicationVersion: GalleryApplicationVersion, @@ -214,7 +201,6 @@ export class GalleryApplicationVersionsImpl sendOperationFn, args: { resourceGroupName, - galleryName, galleryApplicationName, galleryApplicationVersionName, galleryApplicationVersion, @@ -236,8 +222,6 @@ export class GalleryApplicationVersionsImpl /** * Create or update a gallery Application Version. * @param resourceGroupName The name of the resource group. - * @param galleryName The name of the Shared Application Gallery in which the Application Definition - * resides. * @param galleryApplicationName The name of the gallery Application Definition in which the * Application Version is to be created. * @param galleryApplicationVersionName The name of the gallery Application Version to be created. @@ -249,7 +233,6 @@ export class GalleryApplicationVersionsImpl */ async beginCreateOrUpdateAndWait( resourceGroupName: string, - galleryName: string, galleryApplicationName: string, galleryApplicationVersionName: string, galleryApplicationVersion: GalleryApplicationVersion, @@ -257,7 +240,6 @@ export class GalleryApplicationVersionsImpl ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, - galleryName, galleryApplicationName, galleryApplicationVersionName, galleryApplicationVersion, @@ -269,8 +251,6 @@ export class GalleryApplicationVersionsImpl /** * Update a gallery Application Version. * @param resourceGroupName The name of the resource group. - * @param galleryName The name of the Shared Application Gallery in which the Application Definition - * resides. * @param galleryApplicationName The name of the gallery Application Definition in which the * Application Version is to be updated. * @param galleryApplicationVersionName The name of the gallery Application Version to be updated. @@ -282,7 +262,6 @@ export class GalleryApplicationVersionsImpl */ async beginUpdate( resourceGroupName: string, - galleryName: string, galleryApplicationName: string, galleryApplicationVersionName: string, galleryApplicationVersion: GalleryApplicationVersionUpdate, @@ -335,7 +314,6 @@ export class GalleryApplicationVersionsImpl sendOperationFn, args: { resourceGroupName, - galleryName, galleryApplicationName, galleryApplicationVersionName, galleryApplicationVersion, @@ -357,8 +335,6 @@ export class GalleryApplicationVersionsImpl /** * Update a gallery Application Version. * @param resourceGroupName The name of the resource group. - * @param galleryName The name of the Shared Application Gallery in which the Application Definition - * resides. * @param galleryApplicationName The name of the gallery Application Definition in which the * Application Version is to be updated. * @param galleryApplicationVersionName The name of the gallery Application Version to be updated. @@ -370,7 +346,6 @@ export class GalleryApplicationVersionsImpl */ async beginUpdateAndWait( resourceGroupName: string, - galleryName: string, galleryApplicationName: string, galleryApplicationVersionName: string, galleryApplicationVersion: GalleryApplicationVersionUpdate, @@ -378,7 +353,6 @@ export class GalleryApplicationVersionsImpl ): Promise { const poller = await this.beginUpdate( resourceGroupName, - galleryName, galleryApplicationName, galleryApplicationVersionName, galleryApplicationVersion, @@ -390,8 +364,6 @@ export class GalleryApplicationVersionsImpl /** * Retrieves information about a gallery Application Version. * @param resourceGroupName The name of the resource group. - * @param galleryName The name of the Shared Application Gallery in which the Application Definition - * resides. * @param galleryApplicationName The name of the gallery Application Definition in which the * Application Version resides. * @param galleryApplicationVersionName The name of the gallery Application Version to be retrieved. @@ -399,7 +371,6 @@ export class GalleryApplicationVersionsImpl */ get( resourceGroupName: string, - galleryName: string, galleryApplicationName: string, galleryApplicationVersionName: string, options?: GalleryApplicationVersionsGetOptionalParams, @@ -407,7 +378,6 @@ export class GalleryApplicationVersionsImpl return this.client.sendOperationRequest( { resourceGroupName, - galleryName, galleryApplicationName, galleryApplicationVersionName, options, @@ -419,8 +389,6 @@ export class GalleryApplicationVersionsImpl /** * Delete a gallery Application Version. * @param resourceGroupName The name of the resource group. - * @param galleryName The name of the Shared Application Gallery in which the Application Definition - * resides. * @param galleryApplicationName The name of the gallery Application Definition in which the * Application Version resides. * @param galleryApplicationVersionName The name of the gallery Application Version to be deleted. @@ -428,7 +396,6 @@ export class GalleryApplicationVersionsImpl */ async beginDelete( resourceGroupName: string, - galleryName: string, galleryApplicationName: string, galleryApplicationVersionName: string, options?: GalleryApplicationVersionsDeleteOptionalParams, @@ -475,7 +442,6 @@ export class GalleryApplicationVersionsImpl sendOperationFn, args: { resourceGroupName, - galleryName, galleryApplicationName, galleryApplicationVersionName, options, @@ -493,8 +459,6 @@ export class GalleryApplicationVersionsImpl /** * Delete a gallery Application Version. * @param resourceGroupName The name of the resource group. - * @param galleryName The name of the Shared Application Gallery in which the Application Definition - * resides. * @param galleryApplicationName The name of the gallery Application Definition in which the * Application Version resides. * @param galleryApplicationVersionName The name of the gallery Application Version to be deleted. @@ -502,14 +466,12 @@ export class GalleryApplicationVersionsImpl */ async beginDeleteAndWait( resourceGroupName: string, - galleryName: string, galleryApplicationName: string, galleryApplicationVersionName: string, options?: GalleryApplicationVersionsDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, - galleryName, galleryApplicationName, galleryApplicationVersionName, options, @@ -520,20 +482,17 @@ export class GalleryApplicationVersionsImpl /** * List gallery Application Versions in a gallery Application Definition. * @param resourceGroupName The name of the resource group. - * @param galleryName The name of the Shared Application Gallery in which the Application Definition - * resides. * @param galleryApplicationName The name of the Shared Application Gallery Application Definition from * which the Application Versions are to be listed. * @param options The options parameters. */ private _listByGalleryApplication( resourceGroupName: string, - galleryName: string, galleryApplicationName: string, options?: GalleryApplicationVersionsListByGalleryApplicationOptionalParams, ): Promise { return this.client.sendOperationRequest( - { resourceGroupName, galleryName, galleryApplicationName, options }, + { resourceGroupName, galleryApplicationName, options }, listByGalleryApplicationOperationSpec, ); } @@ -541,8 +500,6 @@ export class GalleryApplicationVersionsImpl /** * ListByGalleryApplicationNext * @param resourceGroupName The name of the resource group. - * @param galleryName The name of the Shared Application Gallery in which the Application Definition - * resides. * @param galleryApplicationName The name of the Shared Application Gallery Application Definition from * which the Application Versions are to be listed. * @param nextLink The nextLink from the previous successful call to the ListByGalleryApplication @@ -551,19 +508,12 @@ export class GalleryApplicationVersionsImpl */ private _listByGalleryApplicationNext( resourceGroupName: string, - galleryName: string, galleryApplicationName: string, nextLink: string, options?: GalleryApplicationVersionsListByGalleryApplicationNextOptionalParams, ): Promise { return this.client.sendOperationRequest( - { - resourceGroupName, - galleryName, - galleryApplicationName, - nextLink, - options, - }, + { resourceGroupName, galleryApplicationName, nextLink, options }, listByGalleryApplicationNextOperationSpec, ); } diff --git a/sdk/compute/arm-compute/src/operations/galleryApplications.ts b/sdk/compute/arm-compute/src/operations/galleryApplications.ts index ff6a086e6755..8977f72137be 100644 --- a/sdk/compute/arm-compute/src/operations/galleryApplications.ts +++ b/sdk/compute/arm-compute/src/operations/galleryApplications.ts @@ -51,20 +51,13 @@ export class GalleryApplicationsImpl implements GalleryApplications { /** * List gallery Application Definitions in a gallery. * @param resourceGroupName The name of the resource group. - * @param galleryName The name of the Shared Application Gallery from which Application Definitions are - * to be listed. * @param options The options parameters. */ public listByGallery( resourceGroupName: string, - galleryName: string, options?: GalleryApplicationsListByGalleryOptionalParams, ): PagedAsyncIterableIterator { - const iter = this.listByGalleryPagingAll( - resourceGroupName, - galleryName, - options, - ); + const iter = this.listByGalleryPagingAll(resourceGroupName, options); return { next() { return iter.next(); @@ -78,7 +71,6 @@ export class GalleryApplicationsImpl implements GalleryApplications { } return this.listByGalleryPagingPage( resourceGroupName, - galleryName, options, settings, ); @@ -88,18 +80,13 @@ export class GalleryApplicationsImpl implements GalleryApplications { private async *listByGalleryPagingPage( resourceGroupName: string, - galleryName: string, options?: GalleryApplicationsListByGalleryOptionalParams, settings?: PageSettings, ): AsyncIterableIterator { let result: GalleryApplicationsListByGalleryResponse; let continuationToken = settings?.continuationToken; if (!continuationToken) { - result = await this._listByGallery( - resourceGroupName, - galleryName, - options, - ); + result = await this._listByGallery(resourceGroupName, options); let page = result.value || []; continuationToken = result.nextLink; setContinuationToken(page, continuationToken); @@ -108,7 +95,6 @@ export class GalleryApplicationsImpl implements GalleryApplications { while (continuationToken) { result = await this._listByGalleryNext( resourceGroupName, - galleryName, continuationToken, options, ); @@ -121,12 +107,10 @@ export class GalleryApplicationsImpl implements GalleryApplications { private async *listByGalleryPagingAll( resourceGroupName: string, - galleryName: string, options?: GalleryApplicationsListByGalleryOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByGalleryPagingPage( resourceGroupName, - galleryName, options, )) { yield* page; @@ -136,8 +120,6 @@ export class GalleryApplicationsImpl implements GalleryApplications { /** * Create or update a gallery Application Definition. * @param resourceGroupName The name of the resource group. - * @param galleryName The name of the Shared Application Gallery in which the Application Definition is - * to be created. * @param galleryApplicationName The name of the gallery Application Definition 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. @@ -146,7 +128,6 @@ export class GalleryApplicationsImpl implements GalleryApplications { */ async beginCreateOrUpdate( resourceGroupName: string, - galleryName: string, galleryApplicationName: string, galleryApplication: GalleryApplication, options?: GalleryApplicationsCreateOrUpdateOptionalParams, @@ -198,7 +179,6 @@ export class GalleryApplicationsImpl implements GalleryApplications { sendOperationFn, args: { resourceGroupName, - galleryName, galleryApplicationName, galleryApplication, options, @@ -219,8 +199,6 @@ export class GalleryApplicationsImpl implements GalleryApplications { /** * Create or update a gallery Application Definition. * @param resourceGroupName The name of the resource group. - * @param galleryName The name of the Shared Application Gallery in which the Application Definition is - * to be created. * @param galleryApplicationName The name of the gallery Application Definition 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. @@ -229,14 +207,12 @@ export class GalleryApplicationsImpl implements GalleryApplications { */ async beginCreateOrUpdateAndWait( resourceGroupName: string, - galleryName: string, galleryApplicationName: string, galleryApplication: GalleryApplication, options?: GalleryApplicationsCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, - galleryName, galleryApplicationName, galleryApplication, options, @@ -247,8 +223,6 @@ export class GalleryApplicationsImpl implements GalleryApplications { /** * Update a gallery Application Definition. * @param resourceGroupName The name of the resource group. - * @param galleryName The name of the Shared Application Gallery in which the Application Definition is - * to be updated. * @param galleryApplicationName The name of the gallery Application Definition 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. @@ -257,7 +231,6 @@ export class GalleryApplicationsImpl implements GalleryApplications { */ async beginUpdate( resourceGroupName: string, - galleryName: string, galleryApplicationName: string, galleryApplication: GalleryApplicationUpdate, options?: GalleryApplicationsUpdateOptionalParams, @@ -309,7 +282,6 @@ export class GalleryApplicationsImpl implements GalleryApplications { sendOperationFn, args: { resourceGroupName, - galleryName, galleryApplicationName, galleryApplication, options, @@ -330,8 +302,6 @@ export class GalleryApplicationsImpl implements GalleryApplications { /** * Update a gallery Application Definition. * @param resourceGroupName The name of the resource group. - * @param galleryName The name of the Shared Application Gallery in which the Application Definition is - * to be updated. * @param galleryApplicationName The name of the gallery Application Definition 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. @@ -340,14 +310,12 @@ export class GalleryApplicationsImpl implements GalleryApplications { */ async beginUpdateAndWait( resourceGroupName: string, - galleryName: string, galleryApplicationName: string, galleryApplication: GalleryApplicationUpdate, options?: GalleryApplicationsUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, - galleryName, galleryApplicationName, galleryApplication, options, @@ -358,19 +326,16 @@ export class GalleryApplicationsImpl implements GalleryApplications { /** * Retrieves information about a gallery Application Definition. * @param resourceGroupName The name of the resource group. - * @param galleryName The name of the Shared Application Gallery from which the Application Definitions - * are to be retrieved. * @param galleryApplicationName The name of the gallery Application Definition to be retrieved. * @param options The options parameters. */ get( resourceGroupName: string, - galleryName: string, galleryApplicationName: string, options?: GalleryApplicationsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( - { resourceGroupName, galleryName, galleryApplicationName, options }, + { resourceGroupName, galleryApplicationName, options }, getOperationSpec, ); } @@ -378,14 +343,11 @@ export class GalleryApplicationsImpl implements GalleryApplications { /** * Delete a gallery Application. * @param resourceGroupName The name of the resource group. - * @param galleryName The name of the Shared Application Gallery in which the Application Definition is - * to be deleted. * @param galleryApplicationName The name of the gallery Application Definition to be deleted. * @param options The options parameters. */ async beginDelete( resourceGroupName: string, - galleryName: string, galleryApplicationName: string, options?: GalleryApplicationsDeleteOptionalParams, ): Promise, void>> { @@ -429,7 +391,7 @@ export class GalleryApplicationsImpl implements GalleryApplications { const lro = createLroSpec({ sendOperationFn, - args: { resourceGroupName, galleryName, galleryApplicationName, options }, + args: { resourceGroupName, galleryApplicationName, options }, spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { @@ -443,20 +405,16 @@ export class GalleryApplicationsImpl implements GalleryApplications { /** * Delete a gallery Application. * @param resourceGroupName The name of the resource group. - * @param galleryName The name of the Shared Application Gallery in which the Application Definition is - * to be deleted. * @param galleryApplicationName The name of the gallery Application Definition to be deleted. * @param options The options parameters. */ async beginDeleteAndWait( resourceGroupName: string, - galleryName: string, galleryApplicationName: string, options?: GalleryApplicationsDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, - galleryName, galleryApplicationName, options, ); @@ -466,17 +424,14 @@ export class GalleryApplicationsImpl implements GalleryApplications { /** * List gallery Application Definitions in a gallery. * @param resourceGroupName The name of the resource group. - * @param galleryName The name of the Shared Application Gallery from which Application Definitions are - * to be listed. * @param options The options parameters. */ private _listByGallery( resourceGroupName: string, - galleryName: string, options?: GalleryApplicationsListByGalleryOptionalParams, ): Promise { return this.client.sendOperationRequest( - { resourceGroupName, galleryName, options }, + { resourceGroupName, options }, listByGalleryOperationSpec, ); } @@ -484,19 +439,16 @@ export class GalleryApplicationsImpl implements GalleryApplications { /** * ListByGalleryNext * @param resourceGroupName The name of the resource group. - * @param galleryName The name of the Shared Application Gallery from which Application Definitions 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?: GalleryApplicationsListByGalleryNextOptionalParams, ): Promise { return this.client.sendOperationRequest( - { resourceGroupName, galleryName, nextLink, options }, + { resourceGroupName, nextLink, options }, listByGalleryNextOperationSpec, ); } diff --git a/sdk/compute/arm-compute/src/operations/galleryImageVersions.ts b/sdk/compute/arm-compute/src/operations/galleryImageVersions.ts index 2527a0c837a8..027cd8ddcd2f 100644 --- a/sdk/compute/arm-compute/src/operations/galleryImageVersions.ts +++ b/sdk/compute/arm-compute/src/operations/galleryImageVersions.ts @@ -51,20 +51,17 @@ export class GalleryImageVersionsImpl implements GalleryImageVersions { /** * List gallery image versions in a gallery image definition. * @param resourceGroupName The name of the resource group. - * @param galleryName The name of the Shared Image Gallery in which the Image Definition resides. * @param galleryImageName The name of the Shared Image Gallery Image Definition from which the Image * Versions are to be listed. * @param options The options parameters. */ public listByGalleryImage( resourceGroupName: string, - galleryName: string, galleryImageName: string, options?: GalleryImageVersionsListByGalleryImageOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByGalleryImagePagingAll( resourceGroupName, - galleryName, galleryImageName, options, ); @@ -81,7 +78,6 @@ export class GalleryImageVersionsImpl implements GalleryImageVersions { } return this.listByGalleryImagePagingPage( resourceGroupName, - galleryName, galleryImageName, options, settings, @@ -92,7 +88,6 @@ export class GalleryImageVersionsImpl implements GalleryImageVersions { private async *listByGalleryImagePagingPage( resourceGroupName: string, - galleryName: string, galleryImageName: string, options?: GalleryImageVersionsListByGalleryImageOptionalParams, settings?: PageSettings, @@ -102,7 +97,6 @@ export class GalleryImageVersionsImpl implements GalleryImageVersions { if (!continuationToken) { result = await this._listByGalleryImage( resourceGroupName, - galleryName, galleryImageName, options, ); @@ -114,7 +108,6 @@ export class GalleryImageVersionsImpl implements GalleryImageVersions { while (continuationToken) { result = await this._listByGalleryImageNext( resourceGroupName, - galleryName, galleryImageName, continuationToken, options, @@ -128,13 +121,11 @@ export class GalleryImageVersionsImpl implements GalleryImageVersions { private async *listByGalleryImagePagingAll( resourceGroupName: string, - galleryName: string, galleryImageName: string, options?: GalleryImageVersionsListByGalleryImageOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByGalleryImagePagingPage( resourceGroupName, - galleryName, galleryImageName, options, )) { @@ -145,7 +136,6 @@ export class GalleryImageVersionsImpl implements GalleryImageVersions { /** * Create or update a gallery image version. * @param resourceGroupName The name of the resource group. - * @param galleryName The name of the Shared Image Gallery in which the Image Definition resides. * @param galleryImageName The name of the gallery image definition in which the Image Version is to be * created. * @param galleryImageVersionName The name of the gallery image version to be created. Needs to follow @@ -157,7 +147,6 @@ export class GalleryImageVersionsImpl implements GalleryImageVersions { */ async beginCreateOrUpdate( resourceGroupName: string, - galleryName: string, galleryImageName: string, galleryImageVersionName: string, galleryImageVersion: GalleryImageVersion, @@ -210,7 +199,6 @@ export class GalleryImageVersionsImpl implements GalleryImageVersions { sendOperationFn, args: { resourceGroupName, - galleryName, galleryImageName, galleryImageVersionName, galleryImageVersion, @@ -232,7 +220,6 @@ export class GalleryImageVersionsImpl implements GalleryImageVersions { /** * Create or update a gallery image version. * @param resourceGroupName The name of the resource group. - * @param galleryName The name of the Shared Image Gallery in which the Image Definition resides. * @param galleryImageName The name of the gallery image definition in which the Image Version is to be * created. * @param galleryImageVersionName The name of the gallery image version to be created. Needs to follow @@ -244,7 +231,6 @@ export class GalleryImageVersionsImpl implements GalleryImageVersions { */ async beginCreateOrUpdateAndWait( resourceGroupName: string, - galleryName: string, galleryImageName: string, galleryImageVersionName: string, galleryImageVersion: GalleryImageVersion, @@ -252,7 +238,6 @@ export class GalleryImageVersionsImpl implements GalleryImageVersions { ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, - galleryName, galleryImageName, galleryImageVersionName, galleryImageVersion, @@ -264,7 +249,6 @@ export class GalleryImageVersionsImpl implements GalleryImageVersions { /** * Update a gallery image version. * @param resourceGroupName The name of the resource group. - * @param galleryName The name of the Shared Image Gallery in which the Image Definition resides. * @param galleryImageName The name of the gallery image definition in which the Image Version is to be * updated. * @param galleryImageVersionName The name of the gallery image version to be updated. Needs to follow @@ -275,7 +259,6 @@ export class GalleryImageVersionsImpl implements GalleryImageVersions { */ async beginUpdate( resourceGroupName: string, - galleryName: string, galleryImageName: string, galleryImageVersionName: string, galleryImageVersion: GalleryImageVersionUpdate, @@ -328,7 +311,6 @@ export class GalleryImageVersionsImpl implements GalleryImageVersions { sendOperationFn, args: { resourceGroupName, - galleryName, galleryImageName, galleryImageVersionName, galleryImageVersion, @@ -350,7 +332,6 @@ export class GalleryImageVersionsImpl implements GalleryImageVersions { /** * Update a gallery image version. * @param resourceGroupName The name of the resource group. - * @param galleryName The name of the Shared Image Gallery in which the Image Definition resides. * @param galleryImageName The name of the gallery image definition in which the Image Version is to be * updated. * @param galleryImageVersionName The name of the gallery image version to be updated. Needs to follow @@ -361,7 +342,6 @@ export class GalleryImageVersionsImpl implements GalleryImageVersions { */ async beginUpdateAndWait( resourceGroupName: string, - galleryName: string, galleryImageName: string, galleryImageVersionName: string, galleryImageVersion: GalleryImageVersionUpdate, @@ -369,7 +349,6 @@ export class GalleryImageVersionsImpl implements GalleryImageVersions { ): Promise { const poller = await this.beginUpdate( resourceGroupName, - galleryName, galleryImageName, galleryImageVersionName, galleryImageVersion, @@ -381,26 +360,18 @@ export class GalleryImageVersionsImpl implements GalleryImageVersions { /** * Retrieves information about a gallery image version. * @param resourceGroupName The name of the resource group. - * @param galleryName The name of the Shared Image Gallery in which the Image Definition resides. * @param galleryImageName The name of the gallery image definition in which the Image Version resides. * @param galleryImageVersionName The name of the gallery image version to be retrieved. * @param options The options parameters. */ get( resourceGroupName: string, - galleryName: string, galleryImageName: string, galleryImageVersionName: string, options?: GalleryImageVersionsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( - { - resourceGroupName, - galleryName, - galleryImageName, - galleryImageVersionName, - options, - }, + { resourceGroupName, galleryImageName, galleryImageVersionName, options }, getOperationSpec, ); } @@ -408,14 +379,12 @@ export class GalleryImageVersionsImpl implements GalleryImageVersions { /** * Delete a gallery image version. * @param resourceGroupName The name of the resource group. - * @param galleryName The name of the Shared Image Gallery in which the Image Definition resides. * @param galleryImageName The name of the gallery image definition in which the Image Version resides. * @param galleryImageVersionName The name of the gallery image version to be deleted. * @param options The options parameters. */ async beginDelete( resourceGroupName: string, - galleryName: string, galleryImageName: string, galleryImageVersionName: string, options?: GalleryImageVersionsDeleteOptionalParams, @@ -462,7 +431,6 @@ export class GalleryImageVersionsImpl implements GalleryImageVersions { sendOperationFn, args: { resourceGroupName, - galleryName, galleryImageName, galleryImageVersionName, options, @@ -480,21 +448,18 @@ export class GalleryImageVersionsImpl implements GalleryImageVersions { /** * Delete a gallery image version. * @param resourceGroupName The name of the resource group. - * @param galleryName The name of the Shared Image Gallery in which the Image Definition resides. * @param galleryImageName The name of the gallery image definition in which the Image Version resides. * @param galleryImageVersionName The name of the gallery image version to be deleted. * @param options The options parameters. */ async beginDeleteAndWait( resourceGroupName: string, - galleryName: string, galleryImageName: string, galleryImageVersionName: string, options?: GalleryImageVersionsDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, - galleryName, galleryImageName, galleryImageVersionName, options, @@ -505,19 +470,17 @@ export class GalleryImageVersionsImpl implements GalleryImageVersions { /** * List gallery image versions in a gallery image definition. * @param resourceGroupName The name of the resource group. - * @param galleryName The name of the Shared Image Gallery in which the Image Definition resides. * @param galleryImageName The name of the Shared Image Gallery Image Definition from which the Image * Versions are to be listed. * @param options The options parameters. */ private _listByGalleryImage( resourceGroupName: string, - galleryName: string, galleryImageName: string, options?: GalleryImageVersionsListByGalleryImageOptionalParams, ): Promise { return this.client.sendOperationRequest( - { resourceGroupName, galleryName, galleryImageName, options }, + { resourceGroupName, galleryImageName, options }, listByGalleryImageOperationSpec, ); } @@ -525,7 +488,6 @@ export class GalleryImageVersionsImpl implements GalleryImageVersions { /** * ListByGalleryImageNext * @param resourceGroupName The name of the resource group. - * @param galleryName The name of the Shared Image Gallery in which the Image Definition resides. * @param galleryImageName The name of the Shared Image Gallery Image Definition from which the Image * Versions are to be listed. * @param nextLink The nextLink from the previous successful call to the ListByGalleryImage method. @@ -533,13 +495,12 @@ export class GalleryImageVersionsImpl implements GalleryImageVersions { */ private _listByGalleryImageNext( resourceGroupName: string, - galleryName: string, galleryImageName: string, nextLink: string, options?: GalleryImageVersionsListByGalleryImageNextOptionalParams, ): Promise { return this.client.sendOperationRequest( - { resourceGroupName, galleryName, galleryImageName, nextLink, options }, + { resourceGroupName, galleryImageName, nextLink, options }, listByGalleryImageNextOperationSpec, ); } diff --git a/sdk/compute/arm-compute/src/operations/galleryImages.ts b/sdk/compute/arm-compute/src/operations/galleryImages.ts index 7843783d68db..5e7b640934d4 100644 --- a/sdk/compute/arm-compute/src/operations/galleryImages.ts +++ b/sdk/compute/arm-compute/src/operations/galleryImages.ts @@ -51,20 +51,13 @@ export class GalleryImagesImpl implements GalleryImages { /** * List gallery image definitions in a gallery. * @param resourceGroupName The name of the resource group. - * @param galleryName The name of the Shared Image Gallery from which Image Definitions are to be - * listed. * @param options The options parameters. */ public listByGallery( resourceGroupName: string, - galleryName: string, options?: GalleryImagesListByGalleryOptionalParams, ): PagedAsyncIterableIterator { - const iter = this.listByGalleryPagingAll( - resourceGroupName, - galleryName, - options, - ); + const iter = this.listByGalleryPagingAll(resourceGroupName, options); return { next() { return iter.next(); @@ -78,7 +71,6 @@ export class GalleryImagesImpl implements GalleryImages { } return this.listByGalleryPagingPage( resourceGroupName, - galleryName, options, settings, ); @@ -88,18 +80,13 @@ export class GalleryImagesImpl implements GalleryImages { private async *listByGalleryPagingPage( resourceGroupName: string, - galleryName: string, options?: GalleryImagesListByGalleryOptionalParams, settings?: PageSettings, ): AsyncIterableIterator { let result: GalleryImagesListByGalleryResponse; let continuationToken = settings?.continuationToken; if (!continuationToken) { - result = await this._listByGallery( - resourceGroupName, - galleryName, - options, - ); + result = await this._listByGallery(resourceGroupName, options); let page = result.value || []; continuationToken = result.nextLink; setContinuationToken(page, continuationToken); @@ -108,7 +95,6 @@ export class GalleryImagesImpl implements GalleryImages { while (continuationToken) { result = await this._listByGalleryNext( resourceGroupName, - galleryName, continuationToken, options, ); @@ -121,12 +107,10 @@ export class GalleryImagesImpl implements GalleryImages { private async *listByGalleryPagingAll( resourceGroupName: string, - galleryName: string, options?: GalleryImagesListByGalleryOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByGalleryPagingPage( resourceGroupName, - galleryName, options, )) { yield* page; @@ -136,8 +120,6 @@ export class GalleryImagesImpl implements GalleryImages { /** * Create or update a gallery image definition. * @param resourceGroupName The name of the resource group. - * @param galleryName The name of the Shared Image Gallery in which the Image Definition is to be - * created. * @param galleryImageName The name of the gallery image definition 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. @@ -146,7 +128,6 @@ export class GalleryImagesImpl implements GalleryImages { */ async beginCreateOrUpdate( resourceGroupName: string, - galleryName: string, galleryImageName: string, galleryImage: GalleryImage, options?: GalleryImagesCreateOrUpdateOptionalParams, @@ -196,13 +177,7 @@ export class GalleryImagesImpl implements GalleryImages { const lro = createLroSpec({ sendOperationFn, - args: { - resourceGroupName, - galleryName, - galleryImageName, - galleryImage, - options, - }, + args: { resourceGroupName, galleryImageName, galleryImage, options }, spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< @@ -219,8 +194,6 @@ export class GalleryImagesImpl implements GalleryImages { /** * Create or update a gallery image definition. * @param resourceGroupName The name of the resource group. - * @param galleryName The name of the Shared Image Gallery in which the Image Definition is to be - * created. * @param galleryImageName The name of the gallery image definition 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. @@ -229,14 +202,12 @@ export class GalleryImagesImpl implements GalleryImages { */ async beginCreateOrUpdateAndWait( resourceGroupName: string, - galleryName: string, galleryImageName: string, galleryImage: GalleryImage, options?: GalleryImagesCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, - galleryName, galleryImageName, galleryImage, options, @@ -247,8 +218,6 @@ export class GalleryImagesImpl implements GalleryImages { /** * Update a gallery image definition. * @param resourceGroupName The name of the resource group. - * @param galleryName The name of the Shared Image Gallery in which the Image Definition is to be - * updated. * @param galleryImageName The name of the gallery image definition 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. @@ -257,7 +226,6 @@ export class GalleryImagesImpl implements GalleryImages { */ async beginUpdate( resourceGroupName: string, - galleryName: string, galleryImageName: string, galleryImage: GalleryImageUpdate, options?: GalleryImagesUpdateOptionalParams, @@ -307,13 +275,7 @@ export class GalleryImagesImpl implements GalleryImages { const lro = createLroSpec({ sendOperationFn, - args: { - resourceGroupName, - galleryName, - galleryImageName, - galleryImage, - options, - }, + args: { resourceGroupName, galleryImageName, galleryImage, options }, spec: updateOperationSpec, }); const poller = await createHttpPoller< @@ -330,8 +292,6 @@ export class GalleryImagesImpl implements GalleryImages { /** * Update a gallery image definition. * @param resourceGroupName The name of the resource group. - * @param galleryName The name of the Shared Image Gallery in which the Image Definition is to be - * updated. * @param galleryImageName The name of the gallery image definition 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. @@ -340,14 +300,12 @@ export class GalleryImagesImpl implements GalleryImages { */ async beginUpdateAndWait( resourceGroupName: string, - galleryName: string, galleryImageName: string, galleryImage: GalleryImageUpdate, options?: GalleryImagesUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, - galleryName, galleryImageName, galleryImage, options, @@ -358,19 +316,16 @@ export class GalleryImagesImpl implements GalleryImages { /** * Retrieves information about a gallery image definition. * @param resourceGroupName The name of the resource group. - * @param galleryName The name of the Shared Image Gallery from which the Image Definitions are to be - * retrieved. * @param galleryImageName The name of the gallery image definition to be retrieved. * @param options The options parameters. */ get( resourceGroupName: string, - galleryName: string, galleryImageName: string, options?: GalleryImagesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( - { resourceGroupName, galleryName, galleryImageName, options }, + { resourceGroupName, galleryImageName, options }, getOperationSpec, ); } @@ -378,14 +333,11 @@ export class GalleryImagesImpl implements GalleryImages { /** * Delete a gallery image. * @param resourceGroupName The name of the resource group. - * @param galleryName The name of the Shared Image Gallery in which the Image Definition is to be - * deleted. * @param galleryImageName The name of the gallery image definition to be deleted. * @param options The options parameters. */ async beginDelete( resourceGroupName: string, - galleryName: string, galleryImageName: string, options?: GalleryImagesDeleteOptionalParams, ): Promise, void>> { @@ -429,7 +381,7 @@ export class GalleryImagesImpl implements GalleryImages { const lro = createLroSpec({ sendOperationFn, - args: { resourceGroupName, galleryName, galleryImageName, options }, + args: { resourceGroupName, galleryImageName, options }, spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { @@ -443,20 +395,16 @@ export class GalleryImagesImpl implements GalleryImages { /** * Delete a gallery image. * @param resourceGroupName The name of the resource group. - * @param galleryName The name of the Shared Image Gallery in which the Image Definition is to be - * deleted. * @param galleryImageName The name of the gallery image definition to be deleted. * @param options The options parameters. */ async beginDeleteAndWait( resourceGroupName: string, - galleryName: string, galleryImageName: string, options?: GalleryImagesDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, - galleryName, galleryImageName, options, ); @@ -466,17 +414,14 @@ export class GalleryImagesImpl implements GalleryImages { /** * List gallery image definitions in a gallery. * @param resourceGroupName The name of the resource group. - * @param galleryName The name of the Shared Image Gallery from which Image Definitions are to be - * listed. * @param options The options parameters. */ private _listByGallery( resourceGroupName: string, - galleryName: string, options?: GalleryImagesListByGalleryOptionalParams, ): Promise { return this.client.sendOperationRequest( - { resourceGroupName, galleryName, options }, + { resourceGroupName, options }, listByGalleryOperationSpec, ); } @@ -484,19 +429,16 @@ export class GalleryImagesImpl implements GalleryImages { /** * ListByGalleryNext * @param resourceGroupName The name of the resource group. - * @param galleryName The name of the Shared Image Gallery from which Image Definitions 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?: GalleryImagesListByGalleryNextOptionalParams, ): Promise { return this.client.sendOperationRequest( - { resourceGroupName, galleryName, nextLink, options }, + { resourceGroupName, nextLink, options }, listByGalleryNextOperationSpec, ); } diff --git a/sdk/compute/arm-compute/src/operations/galleryInVMAccessControlProfileVersions.ts b/sdk/compute/arm-compute/src/operations/galleryInVMAccessControlProfileVersions.ts index 9bc0a4a20e42..75344b37b8aa 100644 --- a/sdk/compute/arm-compute/src/operations/galleryInVMAccessControlProfileVersions.ts +++ b/sdk/compute/arm-compute/src/operations/galleryInVMAccessControlProfileVersions.ts @@ -54,21 +54,17 @@ export class GalleryInVMAccessControlProfileVersionsImpl /** * 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, ); @@ -85,7 +81,6 @@ export class GalleryInVMAccessControlProfileVersionsImpl } return this.listByGalleryInVMAccessControlProfilePagingPage( resourceGroupName, - galleryName, inVMAccessControlProfileName, options, settings, @@ -96,7 +91,6 @@ export class GalleryInVMAccessControlProfileVersionsImpl private async *listByGalleryInVMAccessControlProfilePagingPage( resourceGroupName: string, - galleryName: string, inVMAccessControlProfileName: string, options?: GalleryInVMAccessControlProfileVersionsListByGalleryInVMAccessControlProfileOptionalParams, settings?: PageSettings, @@ -106,7 +100,6 @@ export class GalleryInVMAccessControlProfileVersionsImpl if (!continuationToken) { result = await this._listByGalleryInVMAccessControlProfile( resourceGroupName, - galleryName, inVMAccessControlProfileName, options, ); @@ -118,7 +111,6 @@ export class GalleryInVMAccessControlProfileVersionsImpl while (continuationToken) { result = await this._listByGalleryInVMAccessControlProfileNext( resourceGroupName, - galleryName, inVMAccessControlProfileName, continuationToken, options, @@ -132,13 +124,11 @@ export class GalleryInVMAccessControlProfileVersionsImpl private async *listByGalleryInVMAccessControlProfilePagingAll( resourceGroupName: string, - galleryName: string, inVMAccessControlProfileName: string, options?: GalleryInVMAccessControlProfileVersionsListByGalleryInVMAccessControlProfileOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByGalleryInVMAccessControlProfilePagingPage( resourceGroupName, - galleryName, inVMAccessControlProfileName, options, )) { @@ -149,8 +139,6 @@ export class GalleryInVMAccessControlProfileVersionsImpl /** * 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 @@ -163,7 +151,6 @@ export class GalleryInVMAccessControlProfileVersionsImpl */ async beginCreateOrUpdate( resourceGroupName: string, - galleryName: string, inVMAccessControlProfileName: string, inVMAccessControlProfileVersionName: string, galleryInVMAccessControlProfileVersion: GalleryInVMAccessControlProfileVersion, @@ -216,7 +203,6 @@ export class GalleryInVMAccessControlProfileVersionsImpl sendOperationFn, args: { resourceGroupName, - galleryName, inVMAccessControlProfileName, inVMAccessControlProfileVersionName, galleryInVMAccessControlProfileVersion, @@ -238,8 +224,6 @@ export class GalleryInVMAccessControlProfileVersionsImpl /** * 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 @@ -252,7 +236,6 @@ export class GalleryInVMAccessControlProfileVersionsImpl */ async beginCreateOrUpdateAndWait( resourceGroupName: string, - galleryName: string, inVMAccessControlProfileName: string, inVMAccessControlProfileVersionName: string, galleryInVMAccessControlProfileVersion: GalleryInVMAccessControlProfileVersion, @@ -260,7 +243,6 @@ export class GalleryInVMAccessControlProfileVersionsImpl ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, - galleryName, inVMAccessControlProfileName, inVMAccessControlProfileVersionName, galleryInVMAccessControlProfileVersion, @@ -272,8 +254,6 @@ export class GalleryInVMAccessControlProfileVersionsImpl /** * 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 @@ -286,7 +266,6 @@ export class GalleryInVMAccessControlProfileVersionsImpl */ async beginUpdate( resourceGroupName: string, - galleryName: string, inVMAccessControlProfileName: string, inVMAccessControlProfileVersionName: string, galleryInVMAccessControlProfileVersion: GalleryInVMAccessControlProfileVersionUpdate, @@ -339,7 +318,6 @@ export class GalleryInVMAccessControlProfileVersionsImpl sendOperationFn, args: { resourceGroupName, - galleryName, inVMAccessControlProfileName, inVMAccessControlProfileVersionName, galleryInVMAccessControlProfileVersion, @@ -361,8 +339,6 @@ export class GalleryInVMAccessControlProfileVersionsImpl /** * 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 @@ -375,7 +351,6 @@ export class GalleryInVMAccessControlProfileVersionsImpl */ async beginUpdateAndWait( resourceGroupName: string, - galleryName: string, inVMAccessControlProfileName: string, inVMAccessControlProfileVersionName: string, galleryInVMAccessControlProfileVersion: GalleryInVMAccessControlProfileVersionUpdate, @@ -383,7 +358,6 @@ export class GalleryInVMAccessControlProfileVersionsImpl ): Promise { const poller = await this.beginUpdate( resourceGroupName, - galleryName, inVMAccessControlProfileName, inVMAccessControlProfileVersionName, galleryInVMAccessControlProfileVersion, @@ -395,8 +369,6 @@ export class GalleryInVMAccessControlProfileVersionsImpl /** * 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 @@ -405,7 +377,6 @@ export class GalleryInVMAccessControlProfileVersionsImpl */ get( resourceGroupName: string, - galleryName: string, inVMAccessControlProfileName: string, inVMAccessControlProfileVersionName: string, options?: GalleryInVMAccessControlProfileVersionsGetOptionalParams, @@ -413,7 +384,6 @@ export class GalleryInVMAccessControlProfileVersionsImpl return this.client.sendOperationRequest( { resourceGroupName, - galleryName, inVMAccessControlProfileName, inVMAccessControlProfileVersionName, options, @@ -425,8 +395,6 @@ export class GalleryInVMAccessControlProfileVersionsImpl /** * 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 @@ -435,7 +403,6 @@ export class GalleryInVMAccessControlProfileVersionsImpl */ async beginDelete( resourceGroupName: string, - galleryName: string, inVMAccessControlProfileName: string, inVMAccessControlProfileVersionName: string, options?: GalleryInVMAccessControlProfileVersionsDeleteOptionalParams, @@ -487,7 +454,6 @@ export class GalleryInVMAccessControlProfileVersionsImpl sendOperationFn, args: { resourceGroupName, - galleryName, inVMAccessControlProfileName, inVMAccessControlProfileVersionName, options, @@ -508,8 +474,6 @@ export class GalleryInVMAccessControlProfileVersionsImpl /** * 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 @@ -518,14 +482,12 @@ export class GalleryInVMAccessControlProfileVersionsImpl */ async beginDeleteAndWait( resourceGroupName: string, - galleryName: string, inVMAccessControlProfileName: string, inVMAccessControlProfileVersionName: string, options?: GalleryInVMAccessControlProfileVersionsDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, - galleryName, inVMAccessControlProfileName, inVMAccessControlProfileVersionName, options, @@ -536,20 +498,17 @@ export class GalleryInVMAccessControlProfileVersionsImpl /** * 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 }, + { resourceGroupName, inVMAccessControlProfileName, options }, listByGalleryInVMAccessControlProfileOperationSpec, ); } @@ -557,8 +516,6 @@ export class GalleryInVMAccessControlProfileVersionsImpl /** * 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 @@ -567,19 +524,12 @@ export class GalleryInVMAccessControlProfileVersionsImpl */ private _listByGalleryInVMAccessControlProfileNext( resourceGroupName: string, - galleryName: string, inVMAccessControlProfileName: string, nextLink: string, options?: GalleryInVMAccessControlProfileVersionsListByGalleryInVMAccessControlProfileNextOptionalParams, ): Promise { return this.client.sendOperationRequest( - { - resourceGroupName, - galleryName, - inVMAccessControlProfileName, - nextLink, - options, - }, + { resourceGroupName, inVMAccessControlProfileName, nextLink, options }, listByGalleryInVMAccessControlProfileNextOperationSpec, ); } @@ -613,7 +563,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.galleryName1, + Parameters.galleryName, Parameters.inVMAccessControlProfileName, Parameters.inVMAccessControlProfileVersionName, ], @@ -731,7 +681,7 @@ const listByGalleryInVMAccessControlProfileOperationSpec: coreClient.OperationSp Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.galleryName1, + Parameters.galleryName, Parameters.inVMAccessControlProfileName2, ], headerParameters: [Parameters.accept], @@ -754,7 +704,7 @@ const listByGalleryInVMAccessControlProfileNextOperationSpec: coreClient.Operati Parameters.subscriptionId, Parameters.nextLink, Parameters.resourceGroupName, - Parameters.galleryName1, + Parameters.galleryName, Parameters.inVMAccessControlProfileName2, ], headerParameters: [Parameters.accept], diff --git a/sdk/compute/arm-compute/src/operations/galleryInVMAccessControlProfiles.ts b/sdk/compute/arm-compute/src/operations/galleryInVMAccessControlProfiles.ts index 2092a15d780c..539a2f88f6fb 100644 --- a/sdk/compute/arm-compute/src/operations/galleryInVMAccessControlProfiles.ts +++ b/sdk/compute/arm-compute/src/operations/galleryInVMAccessControlProfiles.ts @@ -54,20 +54,13 @@ export class GalleryInVMAccessControlProfilesImpl /** * 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, - ); + const iter = this.listByGalleryPagingAll(resourceGroupName, options); return { next() { return iter.next(); @@ -81,7 +74,6 @@ export class GalleryInVMAccessControlProfilesImpl } return this.listByGalleryPagingPage( resourceGroupName, - galleryName, options, settings, ); @@ -91,18 +83,13 @@ export class GalleryInVMAccessControlProfilesImpl 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, - ); + result = await this._listByGallery(resourceGroupName, options); let page = result.value || []; continuationToken = result.nextLink; setContinuationToken(page, continuationToken); @@ -111,7 +98,6 @@ export class GalleryInVMAccessControlProfilesImpl while (continuationToken) { result = await this._listByGalleryNext( resourceGroupName, - galleryName, continuationToken, options, ); @@ -124,12 +110,10 @@ export class GalleryInVMAccessControlProfilesImpl private async *listByGalleryPagingAll( resourceGroupName: string, - galleryName: string, options?: GalleryInVMAccessControlProfilesListByGalleryOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByGalleryPagingPage( resourceGroupName, - galleryName, options, )) { yield* page; @@ -139,8 +123,6 @@ export class GalleryInVMAccessControlProfilesImpl /** * 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. @@ -150,7 +132,6 @@ export class GalleryInVMAccessControlProfilesImpl */ async beginCreateOrUpdate( resourceGroupName: string, - galleryName: string, inVMAccessControlProfileName: string, galleryInVMAccessControlProfile: GalleryInVMAccessControlProfile, options?: GalleryInVMAccessControlProfilesCreateOrUpdateOptionalParams, @@ -202,7 +183,6 @@ export class GalleryInVMAccessControlProfilesImpl sendOperationFn, args: { resourceGroupName, - galleryName, inVMAccessControlProfileName, galleryInVMAccessControlProfile, options, @@ -223,8 +203,6 @@ export class GalleryInVMAccessControlProfilesImpl /** * 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. @@ -234,14 +212,12 @@ export class GalleryInVMAccessControlProfilesImpl */ async beginCreateOrUpdateAndWait( resourceGroupName: string, - galleryName: string, inVMAccessControlProfileName: string, galleryInVMAccessControlProfile: GalleryInVMAccessControlProfile, options?: GalleryInVMAccessControlProfilesCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, - galleryName, inVMAccessControlProfileName, galleryInVMAccessControlProfile, options, @@ -252,8 +228,6 @@ export class GalleryInVMAccessControlProfilesImpl /** * 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. @@ -263,7 +237,6 @@ export class GalleryInVMAccessControlProfilesImpl */ async beginUpdate( resourceGroupName: string, - galleryName: string, inVMAccessControlProfileName: string, galleryInVMAccessControlProfile: GalleryInVMAccessControlProfileUpdate, options?: GalleryInVMAccessControlProfilesUpdateOptionalParams, @@ -315,7 +288,6 @@ export class GalleryInVMAccessControlProfilesImpl sendOperationFn, args: { resourceGroupName, - galleryName, inVMAccessControlProfileName, galleryInVMAccessControlProfile, options, @@ -336,8 +308,6 @@ export class GalleryInVMAccessControlProfilesImpl /** * 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. @@ -347,14 +317,12 @@ export class GalleryInVMAccessControlProfilesImpl */ async beginUpdateAndWait( resourceGroupName: string, - galleryName: string, inVMAccessControlProfileName: string, galleryInVMAccessControlProfile: GalleryInVMAccessControlProfileUpdate, options?: GalleryInVMAccessControlProfilesUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, - galleryName, inVMAccessControlProfileName, galleryInVMAccessControlProfile, options, @@ -365,20 +333,17 @@ export class GalleryInVMAccessControlProfilesImpl /** * 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 }, + { resourceGroupName, inVMAccessControlProfileName, options }, getOperationSpec, ); } @@ -386,14 +351,11 @@ export class GalleryInVMAccessControlProfilesImpl /** * 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< @@ -442,12 +404,7 @@ export class GalleryInVMAccessControlProfilesImpl const lro = createLroSpec({ sendOperationFn, - args: { - resourceGroupName, - galleryName, - inVMAccessControlProfileName, - options, - }, + args: { resourceGroupName, inVMAccessControlProfileName, options }, spec: deleteOperationSpec, }); const poller = await createHttpPoller< @@ -464,20 +421,16 @@ export class GalleryInVMAccessControlProfilesImpl /** * 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, ); @@ -487,17 +440,14 @@ export class GalleryInVMAccessControlProfilesImpl /** * 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 }, + { resourceGroupName, options }, listByGalleryOperationSpec, ); } @@ -505,19 +455,16 @@ export class GalleryInVMAccessControlProfilesImpl /** * 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 }, + { resourceGroupName, nextLink, options }, listByGalleryNextOperationSpec, ); } @@ -551,7 +498,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.galleryName1, + Parameters.galleryName, Parameters.inVMAccessControlProfileName, ], headerParameters: [Parameters.accept, Parameters.contentType], @@ -660,7 +607,7 @@ const listByGalleryOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.galleryName1, + Parameters.galleryName, ], headerParameters: [Parameters.accept], serializer, @@ -681,7 +628,7 @@ const listByGalleryNextOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.nextLink, Parameters.resourceGroupName, - Parameters.galleryName1, + Parameters.galleryName, ], headerParameters: [Parameters.accept], serializer, diff --git a/sdk/compute/arm-compute/src/operations/galleryScriptVersions.ts b/sdk/compute/arm-compute/src/operations/galleryScriptVersions.ts new file mode 100644 index 000000000000..f58a95fdd5bf --- /dev/null +++ b/sdk/compute/arm-compute/src/operations/galleryScriptVersions.ts @@ -0,0 +1,604 @@ +/* + * 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.js"; +import { GalleryScriptVersions } from "../operationsInterfaces/index.js"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { ComputeManagementClient } from "../computeManagementClient.js"; +import { + SimplePollerLike, + OperationState, + createHttpPoller, +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl.js"; +import { + GalleryScriptVersion, + GalleryScriptVersionsListByGalleryScriptNextOptionalParams, + GalleryScriptVersionsListByGalleryScriptOptionalParams, + GalleryScriptVersionsListByGalleryScriptResponse, + GalleryScriptVersionsCreateOrUpdateOptionalParams, + GalleryScriptVersionsCreateOrUpdateResponse, + GalleryScriptVersionUpdate, + GalleryScriptVersionsUpdateOptionalParams, + GalleryScriptVersionsUpdateResponse, + GalleryScriptVersionsGetOptionalParams, + GalleryScriptVersionsGetResponse, + GalleryScriptVersionsDeleteOptionalParams, + GalleryScriptVersionsDeleteResponse, + GalleryScriptVersionsListByGalleryScriptNextResponse, +} from "../models/index.js"; + +/// +/** Class containing GalleryScriptVersions operations. */ +export class GalleryScriptVersionsImpl implements GalleryScriptVersions { + private readonly client: ComputeManagementClient; + + /** + * Initialize a new instance of the class GalleryScriptVersions class. + * @param client Reference to the service client + */ + constructor(client: ComputeManagementClient) { + this.client = client; + } + + /** + * List gallery Script Versions in a gallery Script Definition. + * @param resourceGroupName The name of the resource group. + * @param options The options parameters. + */ + public listByGalleryScript( + resourceGroupName: string, + options?: GalleryScriptVersionsListByGalleryScriptOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listByGalleryScriptPagingAll(resourceGroupName, 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.listByGalleryScriptPagingPage( + resourceGroupName, + options, + settings, + ); + }, + }; + } + + private async *listByGalleryScriptPagingPage( + resourceGroupName: string, + options?: GalleryScriptVersionsListByGalleryScriptOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: GalleryScriptVersionsListByGalleryScriptResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByGalleryScript(resourceGroupName, options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByGalleryScriptNext( + resourceGroupName, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByGalleryScriptPagingAll( + resourceGroupName: string, + options?: GalleryScriptVersionsListByGalleryScriptOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listByGalleryScriptPagingPage( + resourceGroupName, + options, + )) { + yield* page; + } + } + + /** + * Create or update a gallery Script Version. Script versions helps save different states/iterations of + * a Gallery script. They are referred in format: .. + * @param resourceGroupName The name of the resource group. + * @param galleryScriptVersion Parameters supplied to the create or update gallery Script Version + * operation. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + galleryScriptVersion: GalleryScriptVersion, + options?: GalleryScriptVersionsCreateOrUpdateOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + GalleryScriptVersionsCreateOrUpdateResponse + > + > { + 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, galleryScriptVersion, options }, + spec: createOrUpdateOperationSpec, + }); + const poller = await createHttpPoller< + GalleryScriptVersionsCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + }); + await poller.poll(); + return poller; + } + + /** + * Create or update a gallery Script Version. Script versions helps save different states/iterations of + * a Gallery script. They are referred in format: .. + * @param resourceGroupName The name of the resource group. + * @param galleryScriptVersion Parameters supplied to the create or update gallery Script Version + * operation. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + galleryScriptVersion: GalleryScriptVersion, + options?: GalleryScriptVersionsCreateOrUpdateOptionalParams, + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + galleryScriptVersion, + options, + ); + return poller.pollUntilDone(); + } + + /** + * Update a gallery Script Version. + * @param resourceGroupName The name of the resource group. + * @param galleryScriptVersion Parameters supplied to the update gallery Script Version operation. + * @param options The options parameters. + */ + async beginUpdate( + resourceGroupName: string, + galleryScriptVersion: GalleryScriptVersionUpdate, + options?: GalleryScriptVersionsUpdateOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + GalleryScriptVersionsUpdateResponse + > + > { + 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, galleryScriptVersion, options }, + spec: updateOperationSpec, + }); + const poller = await createHttpPoller< + GalleryScriptVersionsUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + }); + await poller.poll(); + return poller; + } + + /** + * Update a gallery Script Version. + * @param resourceGroupName The name of the resource group. + * @param galleryScriptVersion Parameters supplied to the update gallery Script Version operation. + * @param options The options parameters. + */ + async beginUpdateAndWait( + resourceGroupName: string, + galleryScriptVersion: GalleryScriptVersionUpdate, + options?: GalleryScriptVersionsUpdateOptionalParams, + ): Promise { + const poller = await this.beginUpdate( + resourceGroupName, + galleryScriptVersion, + options, + ); + return poller.pollUntilDone(); + } + + /** + * Retrieves information about a gallery Script Version. + * @param resourceGroupName The name of the resource group. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + options?: GalleryScriptVersionsGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, options }, + getOperationSpec, + ); + } + + /** + * Delete a gallery Script Version. + * @param resourceGroupName The name of the resource group. + * @param options The options parameters. + */ + async beginDelete( + resourceGroupName: string, + options?: GalleryScriptVersionsDeleteOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + GalleryScriptVersionsDeleteResponse + > + > { + 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, options }, + spec: deleteOperationSpec, + }); + const poller = await createHttpPoller< + GalleryScriptVersionsDeleteResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + }); + await poller.poll(); + return poller; + } + + /** + * Delete a gallery Script Version. + * @param resourceGroupName The name of the resource group. + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + options?: GalleryScriptVersionsDeleteOptionalParams, + ): Promise { + const poller = await this.beginDelete(resourceGroupName, options); + return poller.pollUntilDone(); + } + + /** + * List gallery Script Versions in a gallery Script Definition. + * @param resourceGroupName The name of the resource group. + * @param options The options parameters. + */ + private _listByGalleryScript( + resourceGroupName: string, + options?: GalleryScriptVersionsListByGalleryScriptOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, options }, + listByGalleryScriptOperationSpec, + ); + } + + /** + * ListByGalleryScriptNext + * @param resourceGroupName The name of the resource group. + * @param nextLink The nextLink from the previous successful call to the ListByGalleryScript method. + * @param options The options parameters. + */ + private _listByGalleryScriptNext( + resourceGroupName: string, + nextLink: string, + options?: GalleryScriptVersionsListByGalleryScriptNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, nextLink, options }, + listByGalleryScriptNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/scripts/{galleryScriptName}/versions/{galleryScriptVersionName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.GalleryScriptVersion, + headersMapper: Mappers.GalleryScriptVersionsCreateOrUpdateHeaders, + }, + 201: { + bodyMapper: Mappers.GalleryScriptVersion, + headersMapper: Mappers.GalleryScriptVersionsCreateOrUpdateHeaders, + }, + 202: { + bodyMapper: Mappers.GalleryScriptVersion, + headersMapper: Mappers.GalleryScriptVersionsCreateOrUpdateHeaders, + }, + 204: { + bodyMapper: Mappers.GalleryScriptVersion, + headersMapper: Mappers.GalleryScriptVersionsCreateOrUpdateHeaders, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + requestBody: Parameters.galleryScriptVersion, + queryParameters: [Parameters.apiVersion3], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.galleryName, + Parameters.galleryScriptName, + Parameters.galleryScriptVersionName, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/scripts/{galleryScriptName}/versions/{galleryScriptVersionName}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.GalleryScriptVersion, + }, + 201: { + bodyMapper: Mappers.GalleryScriptVersion, + }, + 202: { + bodyMapper: Mappers.GalleryScriptVersion, + }, + 204: { + bodyMapper: Mappers.GalleryScriptVersion, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + requestBody: Parameters.galleryScriptVersion1, + queryParameters: [Parameters.apiVersion3], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.galleryName, + Parameters.galleryScriptName, + Parameters.galleryScriptVersionName, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/scripts/{galleryScriptName}/versions/{galleryScriptVersionName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.GalleryScriptVersion, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + queryParameters: [Parameters.apiVersion3], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.galleryName, + Parameters.galleryScriptName, + Parameters.galleryScriptVersionName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/scripts/{galleryScriptName}/versions/{galleryScriptVersionName}", + httpMethod: "DELETE", + responses: { + 200: { + headersMapper: Mappers.GalleryScriptVersionsDeleteHeaders, + }, + 201: { + headersMapper: Mappers.GalleryScriptVersionsDeleteHeaders, + }, + 202: { + headersMapper: Mappers.GalleryScriptVersionsDeleteHeaders, + }, + 204: { + headersMapper: Mappers.GalleryScriptVersionsDeleteHeaders, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + queryParameters: [Parameters.apiVersion3], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.galleryName, + Parameters.galleryScriptName, + Parameters.galleryScriptVersionName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listByGalleryScriptOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/scripts/{galleryScriptName}/versions", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.GalleryScriptVersionList, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + queryParameters: [Parameters.apiVersion3], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.galleryName, + Parameters.galleryScriptName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listByGalleryScriptNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.GalleryScriptVersionList, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.resourceGroupName, + Parameters.galleryName, + Parameters.galleryScriptName, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/compute/arm-compute/src/operations/galleryScripts.ts b/sdk/compute/arm-compute/src/operations/galleryScripts.ts new file mode 100644 index 000000000000..2a59bb943935 --- /dev/null +++ b/sdk/compute/arm-compute/src/operations/galleryScripts.ts @@ -0,0 +1,596 @@ +/* + * 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.js"; +import { GalleryScripts } from "../operationsInterfaces/index.js"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { ComputeManagementClient } from "../computeManagementClient.js"; +import { + SimplePollerLike, + OperationState, + createHttpPoller, +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl.js"; +import { + GalleryScript, + GalleryScriptsListByGalleryNextOptionalParams, + GalleryScriptsListByGalleryOptionalParams, + GalleryScriptsListByGalleryResponse, + GalleryScriptsCreateOrUpdateOptionalParams, + GalleryScriptsCreateOrUpdateResponse, + GalleryScriptUpdate, + GalleryScriptsUpdateOptionalParams, + GalleryScriptsUpdateResponse, + GalleryScriptsGetOptionalParams, + GalleryScriptsGetResponse, + GalleryScriptsDeleteOptionalParams, + GalleryScriptsDeleteResponse, + GalleryScriptsListByGalleryNextResponse, +} from "../models/index.js"; + +/// +/** Class containing GalleryScripts operations. */ +export class GalleryScriptsImpl implements GalleryScripts { + private readonly client: ComputeManagementClient; + + /** + * Initialize a new instance of the class GalleryScripts class. + * @param client Reference to the service client + */ + constructor(client: ComputeManagementClient) { + this.client = client; + } + + /** + * List gallery Script Definitions in a gallery. + * @param resourceGroupName The name of the resource group. + * @param options The options parameters. + */ + public listByGallery( + resourceGroupName: string, + options?: GalleryScriptsListByGalleryOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listByGalleryPagingAll(resourceGroupName, 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, + options, + settings, + ); + }, + }; + } + + private async *listByGalleryPagingPage( + resourceGroupName: string, + options?: GalleryScriptsListByGalleryOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: GalleryScriptsListByGalleryResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByGallery(resourceGroupName, options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByGalleryNext( + resourceGroupName, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByGalleryPagingAll( + resourceGroupName: string, + options?: GalleryScriptsListByGalleryOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listByGalleryPagingPage( + resourceGroupName, + options, + )) { + yield* page; + } + } + + /** + * Create or update a Gallery Script Definition. Gallery scripts allow the storage, sharing and reuse + * of common scripts + * @param resourceGroupName The name of the resource group. + * @param galleryScript Parameters supplied to the create or update gallery Script operation. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + galleryScript: GalleryScript, + options?: GalleryScriptsCreateOrUpdateOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + GalleryScriptsCreateOrUpdateResponse + > + > { + 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, galleryScript, options }, + spec: createOrUpdateOperationSpec, + }); + const poller = await createHttpPoller< + GalleryScriptsCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + }); + await poller.poll(); + return poller; + } + + /** + * Create or update a Gallery Script Definition. Gallery scripts allow the storage, sharing and reuse + * of common scripts + * @param resourceGroupName The name of the resource group. + * @param galleryScript Parameters supplied to the create or update gallery Script operation. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + galleryScript: GalleryScript, + options?: GalleryScriptsCreateOrUpdateOptionalParams, + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + galleryScript, + options, + ); + return poller.pollUntilDone(); + } + + /** + * Update a gallery Script Definition. + * @param resourceGroupName The name of the resource group. + * @param galleryScript Parameters supplied to the update gallery Script operation. + * @param options The options parameters. + */ + async beginUpdate( + resourceGroupName: string, + galleryScript: GalleryScriptUpdate, + options?: GalleryScriptsUpdateOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + GalleryScriptsUpdateResponse + > + > { + 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, galleryScript, options }, + spec: updateOperationSpec, + }); + const poller = await createHttpPoller< + GalleryScriptsUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + }); + await poller.poll(); + return poller; + } + + /** + * Update a gallery Script Definition. + * @param resourceGroupName The name of the resource group. + * @param galleryScript Parameters supplied to the update gallery Script operation. + * @param options The options parameters. + */ + async beginUpdateAndWait( + resourceGroupName: string, + galleryScript: GalleryScriptUpdate, + options?: GalleryScriptsUpdateOptionalParams, + ): Promise { + const poller = await this.beginUpdate( + resourceGroupName, + galleryScript, + options, + ); + return poller.pollUntilDone(); + } + + /** + * Retrieves information about a gallery Script Definition. + * @param resourceGroupName The name of the resource group. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + options?: GalleryScriptsGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, options }, + getOperationSpec, + ); + } + + /** + * Delete a gallery Script. + * @param resourceGroupName The name of the resource group. + * @param options The options parameters. + */ + async beginDelete( + resourceGroupName: string, + options?: GalleryScriptsDeleteOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + GalleryScriptsDeleteResponse + > + > { + 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, options }, + spec: deleteOperationSpec, + }); + const poller = await createHttpPoller< + GalleryScriptsDeleteResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + }); + await poller.poll(); + return poller; + } + + /** + * Delete a gallery Script. + * @param resourceGroupName The name of the resource group. + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + options?: GalleryScriptsDeleteOptionalParams, + ): Promise { + const poller = await this.beginDelete(resourceGroupName, options); + return poller.pollUntilDone(); + } + + /** + * List gallery Script Definitions in a gallery. + * @param resourceGroupName The name of the resource group. + * @param options The options parameters. + */ + private _listByGallery( + resourceGroupName: string, + options?: GalleryScriptsListByGalleryOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, options }, + listByGalleryOperationSpec, + ); + } + + /** + * ListByGalleryNext + * @param resourceGroupName The name of the resource group. + * @param nextLink The nextLink from the previous successful call to the ListByGallery method. + * @param options The options parameters. + */ + private _listByGalleryNext( + resourceGroupName: string, + nextLink: string, + options?: GalleryScriptsListByGalleryNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, 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}/scripts/{galleryScriptName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.GalleryScript, + headersMapper: Mappers.GalleryScriptsCreateOrUpdateHeaders, + }, + 201: { + bodyMapper: Mappers.GalleryScript, + headersMapper: Mappers.GalleryScriptsCreateOrUpdateHeaders, + }, + 202: { + bodyMapper: Mappers.GalleryScript, + headersMapper: Mappers.GalleryScriptsCreateOrUpdateHeaders, + }, + 204: { + bodyMapper: Mappers.GalleryScript, + headersMapper: Mappers.GalleryScriptsCreateOrUpdateHeaders, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + requestBody: Parameters.galleryScript, + queryParameters: [Parameters.apiVersion3], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.galleryName, + Parameters.galleryScriptName, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/scripts/{galleryScriptName}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.GalleryScript, + }, + 201: { + bodyMapper: Mappers.GalleryScript, + }, + 202: { + bodyMapper: Mappers.GalleryScript, + }, + 204: { + bodyMapper: Mappers.GalleryScript, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + requestBody: Parameters.galleryScript1, + queryParameters: [Parameters.apiVersion3], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.galleryName, + Parameters.galleryScriptName, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/scripts/{galleryScriptName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.GalleryScript, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + queryParameters: [Parameters.apiVersion3], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.galleryName, + Parameters.galleryScriptName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/scripts/{galleryScriptName}", + httpMethod: "DELETE", + responses: { + 200: { + headersMapper: Mappers.GalleryScriptsDeleteHeaders, + }, + 201: { + headersMapper: Mappers.GalleryScriptsDeleteHeaders, + }, + 202: { + headersMapper: Mappers.GalleryScriptsDeleteHeaders, + }, + 204: { + headersMapper: Mappers.GalleryScriptsDeleteHeaders, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + queryParameters: [Parameters.apiVersion3], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.galleryName, + Parameters.galleryScriptName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listByGalleryOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/scripts", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.GalleryScriptList, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + queryParameters: [Parameters.apiVersion3], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.galleryName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listByGalleryNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.GalleryScriptList, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.resourceGroupName, + Parameters.galleryName, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/compute/arm-compute/src/operations/gallerySharingProfile.ts b/sdk/compute/arm-compute/src/operations/gallerySharingProfile.ts index e98a201a911f..a186ee0ebc2b 100644 --- a/sdk/compute/arm-compute/src/operations/gallerySharingProfile.ts +++ b/sdk/compute/arm-compute/src/operations/gallerySharingProfile.ts @@ -38,13 +38,11 @@ export class GallerySharingProfileImpl implements GallerySharingProfile { /** * Update sharing profile of a gallery. * @param resourceGroupName The name of the resource group. - * @param galleryName The name of the Shared Image Gallery. * @param sharingUpdate Parameters supplied to the update gallery sharing profile. * @param options The options parameters. */ async beginUpdate( resourceGroupName: string, - galleryName: string, sharingUpdate: SharingUpdate, options?: GallerySharingProfileUpdateOptionalParams, ): Promise< @@ -93,7 +91,7 @@ export class GallerySharingProfileImpl implements GallerySharingProfile { const lro = createLroSpec({ sendOperationFn, - args: { resourceGroupName, galleryName, sharingUpdate, options }, + args: { resourceGroupName, sharingUpdate, options }, spec: updateOperationSpec, }); const poller = await createHttpPoller< @@ -110,19 +108,16 @@ export class GallerySharingProfileImpl implements GallerySharingProfile { /** * Update sharing profile of a gallery. * @param resourceGroupName The name of the resource group. - * @param galleryName The name of the Shared Image Gallery. * @param sharingUpdate Parameters supplied to the update gallery sharing profile. * @param options The options parameters. */ async beginUpdateAndWait( resourceGroupName: string, - galleryName: string, sharingUpdate: SharingUpdate, options?: GallerySharingProfileUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, - galleryName, sharingUpdate, options, ); diff --git a/sdk/compute/arm-compute/src/operations/index.ts b/sdk/compute/arm-compute/src/operations/index.ts index 8539b5250386..a63ddc05f741 100644 --- a/sdk/compute/arm-compute/src/operations/index.ts +++ b/sdk/compute/arm-compute/src/operations/index.ts @@ -43,6 +43,8 @@ export * from "./galleryImages.js"; export * from "./galleryImageVersions.js"; export * from "./galleryApplications.js"; export * from "./galleryApplicationVersions.js"; +export * from "./galleryScripts.js"; +export * from "./galleryScriptVersions.js"; export * from "./softDeletedResource.js"; export * from "./gallerySharingProfile.js"; export * from "./galleryInVMAccessControlProfiles.js"; diff --git a/sdk/compute/arm-compute/src/operations/softDeletedResource.ts b/sdk/compute/arm-compute/src/operations/softDeletedResource.ts index 302719e70663..3459dda12d90 100644 --- a/sdk/compute/arm-compute/src/operations/softDeletedResource.ts +++ b/sdk/compute/arm-compute/src/operations/softDeletedResource.ts @@ -38,7 +38,6 @@ export class SoftDeletedResourceImpl implements 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. @@ -46,14 +45,12 @@ export class SoftDeletedResourceImpl implements SoftDeletedResource { */ public listByArtifactName( resourceGroupName: string, - galleryName: string, artifactType: string, artifactName: string, options?: SoftDeletedResourceListByArtifactNameOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByArtifactNamePagingAll( resourceGroupName, - galleryName, artifactType, artifactName, options, @@ -71,7 +68,6 @@ export class SoftDeletedResourceImpl implements SoftDeletedResource { } return this.listByArtifactNamePagingPage( resourceGroupName, - galleryName, artifactType, artifactName, options, @@ -83,7 +79,6 @@ export class SoftDeletedResourceImpl implements SoftDeletedResource { private async *listByArtifactNamePagingPage( resourceGroupName: string, - galleryName: string, artifactType: string, artifactName: string, options?: SoftDeletedResourceListByArtifactNameOptionalParams, @@ -94,7 +89,6 @@ export class SoftDeletedResourceImpl implements SoftDeletedResource { if (!continuationToken) { result = await this._listByArtifactName( resourceGroupName, - galleryName, artifactType, artifactName, options, @@ -107,7 +101,6 @@ export class SoftDeletedResourceImpl implements SoftDeletedResource { while (continuationToken) { result = await this._listByArtifactNameNext( resourceGroupName, - galleryName, artifactType, artifactName, continuationToken, @@ -122,14 +115,12 @@ export class SoftDeletedResourceImpl implements SoftDeletedResource { 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, @@ -142,7 +133,6 @@ export class SoftDeletedResourceImpl implements 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. @@ -150,13 +140,12 @@ export class SoftDeletedResourceImpl implements SoftDeletedResource { */ private _listByArtifactName( resourceGroupName: string, - galleryName: string, artifactType: string, artifactName: string, options?: SoftDeletedResourceListByArtifactNameOptionalParams, ): Promise { return this.client.sendOperationRequest( - { resourceGroupName, galleryName, artifactType, artifactName, options }, + { resourceGroupName, artifactType, artifactName, options }, listByArtifactNameOperationSpec, ); } @@ -164,7 +153,6 @@ export class SoftDeletedResourceImpl implements SoftDeletedResource { /** * 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. @@ -173,21 +161,13 @@ export class SoftDeletedResourceImpl implements SoftDeletedResource { */ 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, - }, + { resourceGroupName, artifactType, artifactName, nextLink, options }, listByArtifactNameNextOperationSpec, ); } @@ -211,7 +191,7 @@ const listByArtifactNameOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.galleryName1, + Parameters.galleryName, Parameters.artifactType, Parameters.artifactName, ], @@ -234,7 +214,7 @@ const listByArtifactNameNextOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.nextLink, Parameters.resourceGroupName, - Parameters.galleryName1, + Parameters.galleryName, Parameters.artifactType, Parameters.artifactName, ], diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/galleries.ts b/sdk/compute/arm-compute/src/operationsInterfaces/galleries.ts index 886a0856480a..00e289549182 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/galleries.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/galleries.ts @@ -44,14 +44,11 @@ export interface Galleries { /** * Create or update a Shared Image Gallery. * @param resourceGroupName The name of the resource group. - * @param galleryName The name of the Shared Image Gallery. The allowed characters are alphabets and - * numbers with dots and periods allowed in the middle. The maximum length is 80 characters. * @param gallery Parameters supplied to the create or update Shared Image Gallery operation. * @param options The options parameters. */ beginCreateOrUpdate( resourceGroupName: string, - galleryName: string, gallery: Gallery, options?: GalleriesCreateOrUpdateOptionalParams, ): Promise< @@ -63,28 +60,22 @@ export interface Galleries { /** * Create or update a Shared Image Gallery. * @param resourceGroupName The name of the resource group. - * @param galleryName The name of the Shared Image Gallery. The allowed characters are alphabets and - * numbers with dots and periods allowed in the middle. The maximum length is 80 characters. * @param gallery Parameters supplied to the create or update Shared Image Gallery operation. * @param options The options parameters. */ beginCreateOrUpdateAndWait( resourceGroupName: string, - galleryName: string, gallery: Gallery, options?: GalleriesCreateOrUpdateOptionalParams, ): Promise; /** * Update a Shared Image Gallery. * @param resourceGroupName The name of the resource group. - * @param galleryName The name of the Shared Image Gallery. The allowed characters are alphabets and - * numbers with dots and periods allowed in the middle. The maximum length is 80 characters. * @param gallery Parameters supplied to the update Shared Image Gallery operation. * @param options The options parameters. */ beginUpdate( resourceGroupName: string, - galleryName: string, gallery: GalleryUpdate, options?: GalleriesUpdateOptionalParams, ): Promise< @@ -96,48 +87,39 @@ export interface Galleries { /** * Update a Shared Image Gallery. * @param resourceGroupName The name of the resource group. - * @param galleryName The name of the Shared Image Gallery. The allowed characters are alphabets and - * numbers with dots and periods allowed in the middle. The maximum length is 80 characters. * @param gallery Parameters supplied to the update Shared Image Gallery operation. * @param options The options parameters. */ beginUpdateAndWait( resourceGroupName: string, - galleryName: string, gallery: GalleryUpdate, options?: GalleriesUpdateOptionalParams, ): Promise; /** * Retrieves information about a Shared Image Gallery. * @param resourceGroupName The name of the resource group. - * @param galleryName The name of the Shared Image Gallery. * @param options The options parameters. */ get( resourceGroupName: string, - galleryName: string, options?: GalleriesGetOptionalParams, ): Promise; /** * Delete a Shared Image Gallery. * @param resourceGroupName The name of the resource group. - * @param galleryName The name of the Shared Image Gallery to be deleted. * @param options The options parameters. */ beginDelete( resourceGroupName: string, - galleryName: string, options?: GalleriesDeleteOptionalParams, ): Promise, void>>; /** * Delete a Shared Image Gallery. * @param resourceGroupName The name of the resource group. - * @param galleryName The name of the Shared Image Gallery to be deleted. * @param options The options parameters. */ beginDeleteAndWait( resourceGroupName: string, - galleryName: string, options?: GalleriesDeleteOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/galleryApplicationVersions.ts b/sdk/compute/arm-compute/src/operationsInterfaces/galleryApplicationVersions.ts index 95085c4b646e..e940d1d14cb6 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/galleryApplicationVersions.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/galleryApplicationVersions.ts @@ -27,23 +27,18 @@ export interface GalleryApplicationVersions { /** * List gallery Application Versions in a gallery Application Definition. * @param resourceGroupName The name of the resource group. - * @param galleryName The name of the Shared Application Gallery in which the Application Definition - * resides. * @param galleryApplicationName The name of the Shared Application Gallery Application Definition from * which the Application Versions are to be listed. * @param options The options parameters. */ listByGalleryApplication( resourceGroupName: string, - galleryName: string, galleryApplicationName: string, options?: GalleryApplicationVersionsListByGalleryApplicationOptionalParams, ): PagedAsyncIterableIterator; /** * Create or update a gallery Application Version. * @param resourceGroupName The name of the resource group. - * @param galleryName The name of the Shared Application Gallery in which the Application Definition - * resides. * @param galleryApplicationName The name of the gallery Application Definition in which the * Application Version is to be created. * @param galleryApplicationVersionName The name of the gallery Application Version to be created. @@ -55,7 +50,6 @@ export interface GalleryApplicationVersions { */ beginCreateOrUpdate( resourceGroupName: string, - galleryName: string, galleryApplicationName: string, galleryApplicationVersionName: string, galleryApplicationVersion: GalleryApplicationVersion, @@ -69,8 +63,6 @@ export interface GalleryApplicationVersions { /** * Create or update a gallery Application Version. * @param resourceGroupName The name of the resource group. - * @param galleryName The name of the Shared Application Gallery in which the Application Definition - * resides. * @param galleryApplicationName The name of the gallery Application Definition in which the * Application Version is to be created. * @param galleryApplicationVersionName The name of the gallery Application Version to be created. @@ -82,7 +74,6 @@ export interface GalleryApplicationVersions { */ beginCreateOrUpdateAndWait( resourceGroupName: string, - galleryName: string, galleryApplicationName: string, galleryApplicationVersionName: string, galleryApplicationVersion: GalleryApplicationVersion, @@ -91,8 +82,6 @@ export interface GalleryApplicationVersions { /** * Update a gallery Application Version. * @param resourceGroupName The name of the resource group. - * @param galleryName The name of the Shared Application Gallery in which the Application Definition - * resides. * @param galleryApplicationName The name of the gallery Application Definition in which the * Application Version is to be updated. * @param galleryApplicationVersionName The name of the gallery Application Version to be updated. @@ -104,7 +93,6 @@ export interface GalleryApplicationVersions { */ beginUpdate( resourceGroupName: string, - galleryName: string, galleryApplicationName: string, galleryApplicationVersionName: string, galleryApplicationVersion: GalleryApplicationVersionUpdate, @@ -118,8 +106,6 @@ export interface GalleryApplicationVersions { /** * Update a gallery Application Version. * @param resourceGroupName The name of the resource group. - * @param galleryName The name of the Shared Application Gallery in which the Application Definition - * resides. * @param galleryApplicationName The name of the gallery Application Definition in which the * Application Version is to be updated. * @param galleryApplicationVersionName The name of the gallery Application Version to be updated. @@ -131,7 +117,6 @@ export interface GalleryApplicationVersions { */ beginUpdateAndWait( resourceGroupName: string, - galleryName: string, galleryApplicationName: string, galleryApplicationVersionName: string, galleryApplicationVersion: GalleryApplicationVersionUpdate, @@ -140,8 +125,6 @@ export interface GalleryApplicationVersions { /** * Retrieves information about a gallery Application Version. * @param resourceGroupName The name of the resource group. - * @param galleryName The name of the Shared Application Gallery in which the Application Definition - * resides. * @param galleryApplicationName The name of the gallery Application Definition in which the * Application Version resides. * @param galleryApplicationVersionName The name of the gallery Application Version to be retrieved. @@ -149,7 +132,6 @@ export interface GalleryApplicationVersions { */ get( resourceGroupName: string, - galleryName: string, galleryApplicationName: string, galleryApplicationVersionName: string, options?: GalleryApplicationVersionsGetOptionalParams, @@ -157,8 +139,6 @@ export interface GalleryApplicationVersions { /** * Delete a gallery Application Version. * @param resourceGroupName The name of the resource group. - * @param galleryName The name of the Shared Application Gallery in which the Application Definition - * resides. * @param galleryApplicationName The name of the gallery Application Definition in which the * Application Version resides. * @param galleryApplicationVersionName The name of the gallery Application Version to be deleted. @@ -166,7 +146,6 @@ export interface GalleryApplicationVersions { */ beginDelete( resourceGroupName: string, - galleryName: string, galleryApplicationName: string, galleryApplicationVersionName: string, options?: GalleryApplicationVersionsDeleteOptionalParams, @@ -174,8 +153,6 @@ export interface GalleryApplicationVersions { /** * Delete a gallery Application Version. * @param resourceGroupName The name of the resource group. - * @param galleryName The name of the Shared Application Gallery in which the Application Definition - * resides. * @param galleryApplicationName The name of the gallery Application Definition in which the * Application Version resides. * @param galleryApplicationVersionName The name of the gallery Application Version to be deleted. @@ -183,7 +160,6 @@ export interface GalleryApplicationVersions { */ beginDeleteAndWait( resourceGroupName: string, - galleryName: string, galleryApplicationName: string, galleryApplicationVersionName: string, options?: GalleryApplicationVersionsDeleteOptionalParams, diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/galleryApplications.ts b/sdk/compute/arm-compute/src/operationsInterfaces/galleryApplications.ts index 60cd2c566fc8..7b17bdeefdf3 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/galleryApplications.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/galleryApplications.ts @@ -27,20 +27,15 @@ export interface GalleryApplications { /** * List gallery Application Definitions in a gallery. * @param resourceGroupName The name of the resource group. - * @param galleryName The name of the Shared Application Gallery from which Application Definitions are - * to be listed. * @param options The options parameters. */ listByGallery( resourceGroupName: string, - galleryName: string, options?: GalleryApplicationsListByGalleryOptionalParams, ): PagedAsyncIterableIterator; /** * Create or update a gallery Application Definition. * @param resourceGroupName The name of the resource group. - * @param galleryName The name of the Shared Application Gallery in which the Application Definition is - * to be created. * @param galleryApplicationName The name of the gallery Application Definition 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. @@ -49,7 +44,6 @@ export interface GalleryApplications { */ beginCreateOrUpdate( resourceGroupName: string, - galleryName: string, galleryApplicationName: string, galleryApplication: GalleryApplication, options?: GalleryApplicationsCreateOrUpdateOptionalParams, @@ -62,8 +56,6 @@ export interface GalleryApplications { /** * Create or update a gallery Application Definition. * @param resourceGroupName The name of the resource group. - * @param galleryName The name of the Shared Application Gallery in which the Application Definition is - * to be created. * @param galleryApplicationName The name of the gallery Application Definition 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. @@ -72,7 +64,6 @@ export interface GalleryApplications { */ beginCreateOrUpdateAndWait( resourceGroupName: string, - galleryName: string, galleryApplicationName: string, galleryApplication: GalleryApplication, options?: GalleryApplicationsCreateOrUpdateOptionalParams, @@ -80,8 +71,6 @@ export interface GalleryApplications { /** * Update a gallery Application Definition. * @param resourceGroupName The name of the resource group. - * @param galleryName The name of the Shared Application Gallery in which the Application Definition is - * to be updated. * @param galleryApplicationName The name of the gallery Application Definition 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. @@ -90,7 +79,6 @@ export interface GalleryApplications { */ beginUpdate( resourceGroupName: string, - galleryName: string, galleryApplicationName: string, galleryApplication: GalleryApplicationUpdate, options?: GalleryApplicationsUpdateOptionalParams, @@ -103,8 +91,6 @@ export interface GalleryApplications { /** * Update a gallery Application Definition. * @param resourceGroupName The name of the resource group. - * @param galleryName The name of the Shared Application Gallery in which the Application Definition is - * to be updated. * @param galleryApplicationName The name of the gallery Application Definition 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. @@ -113,7 +99,6 @@ export interface GalleryApplications { */ beginUpdateAndWait( resourceGroupName: string, - galleryName: string, galleryApplicationName: string, galleryApplication: GalleryApplicationUpdate, options?: GalleryApplicationsUpdateOptionalParams, @@ -121,42 +106,33 @@ export interface GalleryApplications { /** * Retrieves information about a gallery Application Definition. * @param resourceGroupName The name of the resource group. - * @param galleryName The name of the Shared Application Gallery from which the Application Definitions - * are to be retrieved. * @param galleryApplicationName The name of the gallery Application Definition to be retrieved. * @param options The options parameters. */ get( resourceGroupName: string, - galleryName: string, galleryApplicationName: string, options?: GalleryApplicationsGetOptionalParams, ): Promise; /** * Delete a gallery Application. * @param resourceGroupName The name of the resource group. - * @param galleryName The name of the Shared Application Gallery in which the Application Definition is - * to be deleted. * @param galleryApplicationName The name of the gallery Application Definition to be deleted. * @param options The options parameters. */ beginDelete( resourceGroupName: string, - galleryName: string, galleryApplicationName: string, options?: GalleryApplicationsDeleteOptionalParams, ): Promise, void>>; /** * Delete a gallery Application. * @param resourceGroupName The name of the resource group. - * @param galleryName The name of the Shared Application Gallery in which the Application Definition is - * to be deleted. * @param galleryApplicationName The name of the gallery Application Definition to be deleted. * @param options The options parameters. */ beginDeleteAndWait( resourceGroupName: string, - galleryName: string, galleryApplicationName: string, options?: GalleryApplicationsDeleteOptionalParams, ): Promise; diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/galleryImageVersions.ts b/sdk/compute/arm-compute/src/operationsInterfaces/galleryImageVersions.ts index 59c808ce22ef..56d123c26108 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/galleryImageVersions.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/galleryImageVersions.ts @@ -27,21 +27,18 @@ export interface GalleryImageVersions { /** * List gallery image versions in a gallery image definition. * @param resourceGroupName The name of the resource group. - * @param galleryName The name of the Shared Image Gallery in which the Image Definition resides. * @param galleryImageName The name of the Shared Image Gallery Image Definition from which the Image * Versions are to be listed. * @param options The options parameters. */ listByGalleryImage( resourceGroupName: string, - galleryName: string, galleryImageName: string, options?: GalleryImageVersionsListByGalleryImageOptionalParams, ): PagedAsyncIterableIterator; /** * Create or update a gallery image version. * @param resourceGroupName The name of the resource group. - * @param galleryName The name of the Shared Image Gallery in which the Image Definition resides. * @param galleryImageName The name of the gallery image definition in which the Image Version is to be * created. * @param galleryImageVersionName The name of the gallery image version to be created. Needs to follow @@ -53,7 +50,6 @@ export interface GalleryImageVersions { */ beginCreateOrUpdate( resourceGroupName: string, - galleryName: string, galleryImageName: string, galleryImageVersionName: string, galleryImageVersion: GalleryImageVersion, @@ -67,7 +63,6 @@ export interface GalleryImageVersions { /** * Create or update a gallery image version. * @param resourceGroupName The name of the resource group. - * @param galleryName The name of the Shared Image Gallery in which the Image Definition resides. * @param galleryImageName The name of the gallery image definition in which the Image Version is to be * created. * @param galleryImageVersionName The name of the gallery image version to be created. Needs to follow @@ -79,7 +74,6 @@ export interface GalleryImageVersions { */ beginCreateOrUpdateAndWait( resourceGroupName: string, - galleryName: string, galleryImageName: string, galleryImageVersionName: string, galleryImageVersion: GalleryImageVersion, @@ -88,7 +82,6 @@ export interface GalleryImageVersions { /** * Update a gallery image version. * @param resourceGroupName The name of the resource group. - * @param galleryName The name of the Shared Image Gallery in which the Image Definition resides. * @param galleryImageName The name of the gallery image definition in which the Image Version is to be * updated. * @param galleryImageVersionName The name of the gallery image version to be updated. Needs to follow @@ -99,7 +92,6 @@ export interface GalleryImageVersions { */ beginUpdate( resourceGroupName: string, - galleryName: string, galleryImageName: string, galleryImageVersionName: string, galleryImageVersion: GalleryImageVersionUpdate, @@ -113,7 +105,6 @@ export interface GalleryImageVersions { /** * Update a gallery image version. * @param resourceGroupName The name of the resource group. - * @param galleryName The name of the Shared Image Gallery in which the Image Definition resides. * @param galleryImageName The name of the gallery image definition in which the Image Version is to be * updated. * @param galleryImageVersionName The name of the gallery image version to be updated. Needs to follow @@ -124,7 +115,6 @@ export interface GalleryImageVersions { */ beginUpdateAndWait( resourceGroupName: string, - galleryName: string, galleryImageName: string, galleryImageVersionName: string, galleryImageVersion: GalleryImageVersionUpdate, @@ -133,14 +123,12 @@ export interface GalleryImageVersions { /** * Retrieves information about a gallery image version. * @param resourceGroupName The name of the resource group. - * @param galleryName The name of the Shared Image Gallery in which the Image Definition resides. * @param galleryImageName The name of the gallery image definition in which the Image Version resides. * @param galleryImageVersionName The name of the gallery image version to be retrieved. * @param options The options parameters. */ get( resourceGroupName: string, - galleryName: string, galleryImageName: string, galleryImageVersionName: string, options?: GalleryImageVersionsGetOptionalParams, @@ -148,14 +136,12 @@ export interface GalleryImageVersions { /** * Delete a gallery image version. * @param resourceGroupName The name of the resource group. - * @param galleryName The name of the Shared Image Gallery in which the Image Definition resides. * @param galleryImageName The name of the gallery image definition in which the Image Version resides. * @param galleryImageVersionName The name of the gallery image version to be deleted. * @param options The options parameters. */ beginDelete( resourceGroupName: string, - galleryName: string, galleryImageName: string, galleryImageVersionName: string, options?: GalleryImageVersionsDeleteOptionalParams, @@ -163,14 +149,12 @@ export interface GalleryImageVersions { /** * Delete a gallery image version. * @param resourceGroupName The name of the resource group. - * @param galleryName The name of the Shared Image Gallery in which the Image Definition resides. * @param galleryImageName The name of the gallery image definition in which the Image Version resides. * @param galleryImageVersionName The name of the gallery image version to be deleted. * @param options The options parameters. */ beginDeleteAndWait( resourceGroupName: string, - galleryName: string, galleryImageName: string, galleryImageVersionName: string, options?: GalleryImageVersionsDeleteOptionalParams, diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/galleryImages.ts b/sdk/compute/arm-compute/src/operationsInterfaces/galleryImages.ts index afe8bf4ab9e2..1b9a15c1cfc6 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/galleryImages.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/galleryImages.ts @@ -27,20 +27,15 @@ export interface GalleryImages { /** * List gallery image definitions in a gallery. * @param resourceGroupName The name of the resource group. - * @param galleryName The name of the Shared Image Gallery from which Image Definitions are to be - * listed. * @param options The options parameters. */ listByGallery( resourceGroupName: string, - galleryName: string, options?: GalleryImagesListByGalleryOptionalParams, ): PagedAsyncIterableIterator; /** * Create or update a gallery image definition. * @param resourceGroupName The name of the resource group. - * @param galleryName The name of the Shared Image Gallery in which the Image Definition is to be - * created. * @param galleryImageName The name of the gallery image definition 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. @@ -49,7 +44,6 @@ export interface GalleryImages { */ beginCreateOrUpdate( resourceGroupName: string, - galleryName: string, galleryImageName: string, galleryImage: GalleryImage, options?: GalleryImagesCreateOrUpdateOptionalParams, @@ -62,8 +56,6 @@ export interface GalleryImages { /** * Create or update a gallery image definition. * @param resourceGroupName The name of the resource group. - * @param galleryName The name of the Shared Image Gallery in which the Image Definition is to be - * created. * @param galleryImageName The name of the gallery image definition 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. @@ -72,7 +64,6 @@ export interface GalleryImages { */ beginCreateOrUpdateAndWait( resourceGroupName: string, - galleryName: string, galleryImageName: string, galleryImage: GalleryImage, options?: GalleryImagesCreateOrUpdateOptionalParams, @@ -80,8 +71,6 @@ export interface GalleryImages { /** * Update a gallery image definition. * @param resourceGroupName The name of the resource group. - * @param galleryName The name of the Shared Image Gallery in which the Image Definition is to be - * updated. * @param galleryImageName The name of the gallery image definition 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. @@ -90,7 +79,6 @@ export interface GalleryImages { */ beginUpdate( resourceGroupName: string, - galleryName: string, galleryImageName: string, galleryImage: GalleryImageUpdate, options?: GalleryImagesUpdateOptionalParams, @@ -103,8 +91,6 @@ export interface GalleryImages { /** * Update a gallery image definition. * @param resourceGroupName The name of the resource group. - * @param galleryName The name of the Shared Image Gallery in which the Image Definition is to be - * updated. * @param galleryImageName The name of the gallery image definition 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. @@ -113,7 +99,6 @@ export interface GalleryImages { */ beginUpdateAndWait( resourceGroupName: string, - galleryName: string, galleryImageName: string, galleryImage: GalleryImageUpdate, options?: GalleryImagesUpdateOptionalParams, @@ -121,42 +106,33 @@ export interface GalleryImages { /** * Retrieves information about a gallery image definition. * @param resourceGroupName The name of the resource group. - * @param galleryName The name of the Shared Image Gallery from which the Image Definitions are to be - * retrieved. * @param galleryImageName The name of the gallery image definition to be retrieved. * @param options The options parameters. */ get( resourceGroupName: string, - galleryName: string, galleryImageName: string, options?: GalleryImagesGetOptionalParams, ): Promise; /** * Delete a gallery image. * @param resourceGroupName The name of the resource group. - * @param galleryName The name of the Shared Image Gallery in which the Image Definition is to be - * deleted. * @param galleryImageName The name of the gallery image definition to be deleted. * @param options The options parameters. */ beginDelete( resourceGroupName: string, - galleryName: string, galleryImageName: string, options?: GalleryImagesDeleteOptionalParams, ): Promise, void>>; /** * Delete a gallery image. * @param resourceGroupName The name of the resource group. - * @param galleryName The name of the Shared Image Gallery in which the Image Definition is to be - * deleted. * @param galleryImageName The name of the gallery image definition to be deleted. * @param options The options parameters. */ beginDeleteAndWait( resourceGroupName: string, - galleryName: string, galleryImageName: string, options?: GalleryImagesDeleteOptionalParams, ): Promise; diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/galleryInVMAccessControlProfileVersions.ts b/sdk/compute/arm-compute/src/operationsInterfaces/galleryInVMAccessControlProfileVersions.ts index b6a7e92ce7f8..326a38094114 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/galleryInVMAccessControlProfileVersions.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/galleryInVMAccessControlProfileVersions.ts @@ -28,23 +28,18 @@ 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 @@ -57,7 +52,6 @@ export interface GalleryInVMAccessControlProfileVersions { */ beginCreateOrUpdate( resourceGroupName: string, - galleryName: string, inVMAccessControlProfileName: string, inVMAccessControlProfileVersionName: string, galleryInVMAccessControlProfileVersion: GalleryInVMAccessControlProfileVersion, @@ -71,8 +65,6 @@ export interface GalleryInVMAccessControlProfileVersions { /** * 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 @@ -85,7 +77,6 @@ export interface GalleryInVMAccessControlProfileVersions { */ beginCreateOrUpdateAndWait( resourceGroupName: string, - galleryName: string, inVMAccessControlProfileName: string, inVMAccessControlProfileVersionName: string, galleryInVMAccessControlProfileVersion: GalleryInVMAccessControlProfileVersion, @@ -94,8 +85,6 @@ export interface GalleryInVMAccessControlProfileVersions { /** * 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 @@ -108,7 +97,6 @@ export interface GalleryInVMAccessControlProfileVersions { */ beginUpdate( resourceGroupName: string, - galleryName: string, inVMAccessControlProfileName: string, inVMAccessControlProfileVersionName: string, galleryInVMAccessControlProfileVersion: GalleryInVMAccessControlProfileVersionUpdate, @@ -122,8 +110,6 @@ export interface GalleryInVMAccessControlProfileVersions { /** * 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 @@ -136,7 +122,6 @@ export interface GalleryInVMAccessControlProfileVersions { */ beginUpdateAndWait( resourceGroupName: string, - galleryName: string, inVMAccessControlProfileName: string, inVMAccessControlProfileVersionName: string, galleryInVMAccessControlProfileVersion: GalleryInVMAccessControlProfileVersionUpdate, @@ -145,8 +130,6 @@ export interface GalleryInVMAccessControlProfileVersions { /** * 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 @@ -155,7 +138,6 @@ export interface GalleryInVMAccessControlProfileVersions { */ get( resourceGroupName: string, - galleryName: string, inVMAccessControlProfileName: string, inVMAccessControlProfileVersionName: string, options?: GalleryInVMAccessControlProfileVersionsGetOptionalParams, @@ -163,8 +145,6 @@ export interface GalleryInVMAccessControlProfileVersions { /** * 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 @@ -173,7 +153,6 @@ export interface GalleryInVMAccessControlProfileVersions { */ beginDelete( resourceGroupName: string, - galleryName: string, inVMAccessControlProfileName: string, inVMAccessControlProfileVersionName: string, options?: GalleryInVMAccessControlProfileVersionsDeleteOptionalParams, @@ -186,8 +165,6 @@ export interface GalleryInVMAccessControlProfileVersions { /** * 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 @@ -196,7 +173,6 @@ export interface GalleryInVMAccessControlProfileVersions { */ beginDeleteAndWait( resourceGroupName: string, - galleryName: string, inVMAccessControlProfileName: string, inVMAccessControlProfileVersionName: string, options?: GalleryInVMAccessControlProfileVersionsDeleteOptionalParams, diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/galleryInVMAccessControlProfiles.ts b/sdk/compute/arm-compute/src/operationsInterfaces/galleryInVMAccessControlProfiles.ts index 569040fee563..022b9a06f5f0 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/galleryInVMAccessControlProfiles.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/galleryInVMAccessControlProfiles.ts @@ -28,20 +28,15 @@ 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. @@ -51,7 +46,6 @@ export interface GalleryInVMAccessControlProfiles { */ beginCreateOrUpdate( resourceGroupName: string, - galleryName: string, inVMAccessControlProfileName: string, galleryInVMAccessControlProfile: GalleryInVMAccessControlProfile, options?: GalleryInVMAccessControlProfilesCreateOrUpdateOptionalParams, @@ -64,8 +58,6 @@ export interface GalleryInVMAccessControlProfiles { /** * 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. @@ -75,7 +67,6 @@ export interface GalleryInVMAccessControlProfiles { */ beginCreateOrUpdateAndWait( resourceGroupName: string, - galleryName: string, inVMAccessControlProfileName: string, galleryInVMAccessControlProfile: GalleryInVMAccessControlProfile, options?: GalleryInVMAccessControlProfilesCreateOrUpdateOptionalParams, @@ -83,8 +74,6 @@ export interface GalleryInVMAccessControlProfiles { /** * 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. @@ -94,7 +83,6 @@ export interface GalleryInVMAccessControlProfiles { */ beginUpdate( resourceGroupName: string, - galleryName: string, inVMAccessControlProfileName: string, galleryInVMAccessControlProfile: GalleryInVMAccessControlProfileUpdate, options?: GalleryInVMAccessControlProfilesUpdateOptionalParams, @@ -107,8 +95,6 @@ export interface GalleryInVMAccessControlProfiles { /** * 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. @@ -118,7 +104,6 @@ export interface GalleryInVMAccessControlProfiles { */ beginUpdateAndWait( resourceGroupName: string, - galleryName: string, inVMAccessControlProfileName: string, galleryInVMAccessControlProfile: GalleryInVMAccessControlProfileUpdate, options?: GalleryInVMAccessControlProfilesUpdateOptionalParams, @@ -126,29 +111,23 @@ export interface GalleryInVMAccessControlProfiles { /** * 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< @@ -160,14 +139,11 @@ export interface GalleryInVMAccessControlProfiles { /** * 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/galleryScriptVersions.ts b/sdk/compute/arm-compute/src/operationsInterfaces/galleryScriptVersions.ts new file mode 100644 index 000000000000..733a28542086 --- /dev/null +++ b/sdk/compute/arm-compute/src/operationsInterfaces/galleryScriptVersions.ts @@ -0,0 +1,127 @@ +/* + * 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 { + GalleryScriptVersion, + GalleryScriptVersionsListByGalleryScriptOptionalParams, + GalleryScriptVersionsCreateOrUpdateOptionalParams, + GalleryScriptVersionsCreateOrUpdateResponse, + GalleryScriptVersionUpdate, + GalleryScriptVersionsUpdateOptionalParams, + GalleryScriptVersionsUpdateResponse, + GalleryScriptVersionsGetOptionalParams, + GalleryScriptVersionsGetResponse, + GalleryScriptVersionsDeleteOptionalParams, + GalleryScriptVersionsDeleteResponse, +} from "../models/index.js"; + +/// +/** Interface representing a GalleryScriptVersions. */ +export interface GalleryScriptVersions { + /** + * List gallery Script Versions in a gallery Script Definition. + * @param resourceGroupName The name of the resource group. + * @param options The options parameters. + */ + listByGalleryScript( + resourceGroupName: string, + options?: GalleryScriptVersionsListByGalleryScriptOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Create or update a gallery Script Version. Script versions helps save different states/iterations of + * a Gallery script. They are referred in format: .. + * @param resourceGroupName The name of the resource group. + * @param galleryScriptVersion Parameters supplied to the create or update gallery Script Version + * operation. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + galleryScriptVersion: GalleryScriptVersion, + options?: GalleryScriptVersionsCreateOrUpdateOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + GalleryScriptVersionsCreateOrUpdateResponse + > + >; + /** + * Create or update a gallery Script Version. Script versions helps save different states/iterations of + * a Gallery script. They are referred in format: .. + * @param resourceGroupName The name of the resource group. + * @param galleryScriptVersion Parameters supplied to the create or update gallery Script Version + * operation. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + galleryScriptVersion: GalleryScriptVersion, + options?: GalleryScriptVersionsCreateOrUpdateOptionalParams, + ): Promise; + /** + * Update a gallery Script Version. + * @param resourceGroupName The name of the resource group. + * @param galleryScriptVersion Parameters supplied to the update gallery Script Version operation. + * @param options The options parameters. + */ + beginUpdate( + resourceGroupName: string, + galleryScriptVersion: GalleryScriptVersionUpdate, + options?: GalleryScriptVersionsUpdateOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + GalleryScriptVersionsUpdateResponse + > + >; + /** + * Update a gallery Script Version. + * @param resourceGroupName The name of the resource group. + * @param galleryScriptVersion Parameters supplied to the update gallery Script Version operation. + * @param options The options parameters. + */ + beginUpdateAndWait( + resourceGroupName: string, + galleryScriptVersion: GalleryScriptVersionUpdate, + options?: GalleryScriptVersionsUpdateOptionalParams, + ): Promise; + /** + * Retrieves information about a gallery Script Version. + * @param resourceGroupName The name of the resource group. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + options?: GalleryScriptVersionsGetOptionalParams, + ): Promise; + /** + * Delete a gallery Script Version. + * @param resourceGroupName The name of the resource group. + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + options?: GalleryScriptVersionsDeleteOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + GalleryScriptVersionsDeleteResponse + > + >; + /** + * Delete a gallery Script Version. + * @param resourceGroupName The name of the resource group. + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + options?: GalleryScriptVersionsDeleteOptionalParams, + ): Promise; +} diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/galleryScripts.ts b/sdk/compute/arm-compute/src/operationsInterfaces/galleryScripts.ts new file mode 100644 index 000000000000..c7c18b6f51cd --- /dev/null +++ b/sdk/compute/arm-compute/src/operationsInterfaces/galleryScripts.ts @@ -0,0 +1,125 @@ +/* + * 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 { + GalleryScript, + GalleryScriptsListByGalleryOptionalParams, + GalleryScriptsCreateOrUpdateOptionalParams, + GalleryScriptsCreateOrUpdateResponse, + GalleryScriptUpdate, + GalleryScriptsUpdateOptionalParams, + GalleryScriptsUpdateResponse, + GalleryScriptsGetOptionalParams, + GalleryScriptsGetResponse, + GalleryScriptsDeleteOptionalParams, + GalleryScriptsDeleteResponse, +} from "../models/index.js"; + +/// +/** Interface representing a GalleryScripts. */ +export interface GalleryScripts { + /** + * List gallery Script Definitions in a gallery. + * @param resourceGroupName The name of the resource group. + * @param options The options parameters. + */ + listByGallery( + resourceGroupName: string, + options?: GalleryScriptsListByGalleryOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Create or update a Gallery Script Definition. Gallery scripts allow the storage, sharing and reuse + * of common scripts + * @param resourceGroupName The name of the resource group. + * @param galleryScript Parameters supplied to the create or update gallery Script operation. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + galleryScript: GalleryScript, + options?: GalleryScriptsCreateOrUpdateOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + GalleryScriptsCreateOrUpdateResponse + > + >; + /** + * Create or update a Gallery Script Definition. Gallery scripts allow the storage, sharing and reuse + * of common scripts + * @param resourceGroupName The name of the resource group. + * @param galleryScript Parameters supplied to the create or update gallery Script operation. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + galleryScript: GalleryScript, + options?: GalleryScriptsCreateOrUpdateOptionalParams, + ): Promise; + /** + * Update a gallery Script Definition. + * @param resourceGroupName The name of the resource group. + * @param galleryScript Parameters supplied to the update gallery Script operation. + * @param options The options parameters. + */ + beginUpdate( + resourceGroupName: string, + galleryScript: GalleryScriptUpdate, + options?: GalleryScriptsUpdateOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + GalleryScriptsUpdateResponse + > + >; + /** + * Update a gallery Script Definition. + * @param resourceGroupName The name of the resource group. + * @param galleryScript Parameters supplied to the update gallery Script operation. + * @param options The options parameters. + */ + beginUpdateAndWait( + resourceGroupName: string, + galleryScript: GalleryScriptUpdate, + options?: GalleryScriptsUpdateOptionalParams, + ): Promise; + /** + * Retrieves information about a gallery Script Definition. + * @param resourceGroupName The name of the resource group. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + options?: GalleryScriptsGetOptionalParams, + ): Promise; + /** + * Delete a gallery Script. + * @param resourceGroupName The name of the resource group. + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + options?: GalleryScriptsDeleteOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + GalleryScriptsDeleteResponse + > + >; + /** + * Delete a gallery Script. + * @param resourceGroupName The name of the resource group. + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + options?: GalleryScriptsDeleteOptionalParams, + ): Promise; +} diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/gallerySharingProfile.ts b/sdk/compute/arm-compute/src/operationsInterfaces/gallerySharingProfile.ts index 85497f7fa519..ded2779524bc 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/gallerySharingProfile.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/gallerySharingProfile.ts @@ -18,13 +18,11 @@ export interface GallerySharingProfile { /** * Update sharing profile of a gallery. * @param resourceGroupName The name of the resource group. - * @param galleryName The name of the Shared Image Gallery. * @param sharingUpdate Parameters supplied to the update gallery sharing profile. * @param options The options parameters. */ beginUpdate( resourceGroupName: string, - galleryName: string, sharingUpdate: SharingUpdate, options?: GallerySharingProfileUpdateOptionalParams, ): Promise< @@ -36,13 +34,11 @@ export interface GallerySharingProfile { /** * Update sharing profile of a gallery. * @param resourceGroupName The name of the resource group. - * @param galleryName The name of the Shared Image Gallery. * @param sharingUpdate Parameters supplied to the update gallery sharing profile. * @param options The options parameters. */ beginUpdateAndWait( resourceGroupName: string, - galleryName: string, sharingUpdate: SharingUpdate, options?: GallerySharingProfileUpdateOptionalParams, ): Promise; diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/index.ts b/sdk/compute/arm-compute/src/operationsInterfaces/index.ts index 8539b5250386..a63ddc05f741 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/index.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/index.ts @@ -43,6 +43,8 @@ export * from "./galleryImages.js"; export * from "./galleryImageVersions.js"; export * from "./galleryApplications.js"; export * from "./galleryApplicationVersions.js"; +export * from "./galleryScripts.js"; +export * from "./galleryScriptVersions.js"; export * from "./softDeletedResource.js"; export * from "./gallerySharingProfile.js"; export * from "./galleryInVMAccessControlProfiles.js"; diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/softDeletedResource.ts b/sdk/compute/arm-compute/src/operationsInterfaces/softDeletedResource.ts index 86d05c323fc7..a5699da752c0 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/softDeletedResource.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/softDeletedResource.ts @@ -19,7 +19,6 @@ 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. @@ -27,7 +26,6 @@ export interface SoftDeletedResource { */ listByArtifactName( resourceGroupName: string, - galleryName: string, artifactType: string, artifactName: string, options?: SoftDeletedResourceListByArtifactNameOptionalParams, diff --git a/sdk/compute/arm-compute/test/sampleTest.ts b/sdk/compute/arm-compute/test/sampleTest.ts new file mode 100644 index 000000000000..a1cf7c25afd2 --- /dev/null +++ b/sdk/compute/arm-compute/test/sampleTest.ts @@ -0,0 +1,40 @@ +/* + * 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, +} from "@azure-tools/test-recorder"; + +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 (ctx) => { + recorder = new Recorder(ctx); + await recorder.start(recorderOptions); + }); + + afterEach(async () => { + await recorder.stop(); + }); + + it("sample test", async function () { + console.log("Hi, I'm a test!"); + }); +}); diff --git a/sdk/compute/arm-compute/test/snippets.spec.ts b/sdk/compute/arm-compute/test/snippets.spec.ts index ae04f692da50..6512cfb8985c 100644 --- a/sdk/compute/arm-compute/test/snippets.spec.ts +++ b/sdk/compute/arm-compute/test/snippets.spec.ts @@ -6,9 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - import { ComputeManagementClient } from "../src/index.js"; import { DefaultAzureCredential, diff --git a/sdk/compute/arm-compute/tsconfig.json b/sdk/compute/arm-compute/tsconfig.json index 19ceb382b521..59ea83c046bf 100644 --- a/sdk/compute/arm-compute/tsconfig.json +++ b/sdk/compute/arm-compute/tsconfig.json @@ -3,11 +3,8 @@ { "path": "./tsconfig.src.json" }, - { - "path": "./tsconfig.samples.json" - }, { "path": "./tsconfig.test.json" } ] -} +} \ No newline at end of file