From f4c1fb37fb1cca176df0162f87d777d3f1a17d3b Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Wed, 22 May 2024 06:08:12 +0000 Subject: [PATCH] CodeGen from PR 28788 in Azure/azure-rest-api-specs Merge ecd49e5324ad3954547fb2ca49c62c4f918d9d06 into a4067aabf97f8cb2be4a35a26ca8604e497134e8 --- common/config/rush/pnpm-lock.yaml | 789 +++---- sdk/changes/arm-changes/CHANGELOG.md | 20 +- sdk/changes/arm-changes/LICENSE | 2 +- sdk/changes/arm-changes/_meta.json | 8 +- sdk/changes/arm-changes/package.json | 31 +- .../arm-changes/review/arm-changes.api.md | 2 - sdk/changes/arm-changes/src/changesClient.ts | 29 +- sdk/changes/arm-changes/src/models/index.ts | 7 +- sdk/changes/arm-changes/src/models/mappers.ts | 178 +- .../arm-changes/src/models/parameters.ts | 76 +- .../arm-changes/src/operations/changes.ts | 81 +- .../src/operationsInterfaces/changes.ts | 6 +- sdk/changes/arm-changes/src/pagingHelper.ts | 10 +- sdk/changes/arm-changes/test/sampleTest.ts | 12 +- sdk/changes/arm-changes/tsconfig.json | 16 +- sdk/features/arm-features/CHANGELOG.md | 19 +- sdk/features/arm-features/LICENSE | 2 +- sdk/features/arm-features/_meta.json | 10 +- sdk/features/arm-features/package.json | 31 +- .../arm-features/review/arm-features.api.md | 3 +- .../arm-features/src/featureClient.ts | 91 +- sdk/features/arm-features/src/models/index.ts | 22 +- .../arm-features/src/models/mappers.ts | 424 ++-- .../arm-features/src/models/parameters.ts | 64 +- .../arm-features/src/operations/features.ts | 132 +- .../subscriptionFeatureRegistrations.ts | 144 +- .../src/operationsInterfaces/features.ts | 12 +- .../subscriptionFeatureRegistrations.ts | 12 +- sdk/features/arm-features/src/pagingHelper.ts | 10 +- sdk/features/arm-features/test/sampleTest.ts | 43 + sdk/features/arm-features/tsconfig.json | 9 +- sdk/links/arm-links/CHANGELOG.md | 21 +- sdk/links/arm-links/LICENSE | 2 +- sdk/links/arm-links/_meta.json | 10 +- sdk/links/arm-links/package.json | 22 +- sdk/links/arm-links/review/arm-links.api.md | 4 +- .../arm-links/src/managementLinkClient.ts | 49 +- sdk/links/arm-links/src/models/index.ts | 5 +- sdk/links/arm-links/src/models/mappers.ts | 122 +- sdk/links/arm-links/src/models/parameters.ts | 64 +- .../arm-links/src/operations/operations.ts | 29 +- .../arm-links/src/operations/resourceLinks.ts | 92 +- .../src/operationsInterfaces/operations.ts | 2 +- .../src/operationsInterfaces/resourceLinks.ts | 12 +- sdk/links/arm-links/src/pagingHelper.ts | 10 +- sdk/links/arm-links/test/sampleTest.ts | 43 + sdk/links/arm-links/tsconfig.json | 12 +- sdk/locks/arm-locks/CHANGELOG.md | 23 +- sdk/locks/arm-locks/LICENSE | 2 +- sdk/locks/arm-locks/_meta.json | 8 +- sdk/locks/arm-locks/package.json | 31 +- sdk/locks/arm-locks/review/arm-locks.api.md | 7 +- .../arm-locks/src/managementLockClient.ts | 51 +- sdk/locks/arm-locks/src/models/index.ts | 57 +- sdk/locks/arm-locks/src/models/mappers.ts | 204 +- sdk/locks/arm-locks/src/models/parameters.ts | 90 +- .../src/operations/authorizationOperations.ts | 33 +- .../src/operations/managementLocks.ts | 444 ++-- .../authorizationOperations.ts | 4 +- .../operationsInterfaces/managementLocks.ts | 34 +- sdk/locks/arm-locks/src/pagingHelper.ts | 10 +- sdk/locks/arm-locks/test/sampleTest.ts | 43 + sdk/locks/arm-locks/tsconfig.json | 10 +- .../arm-managedapplications/CHANGELOG.md | 115 +- .../arm-managedapplications/LICENSE | 2 +- .../arm-managedapplications/_meta.json | 10 +- .../arm-managedapplications/package.json | 28 +- .../review/arm-managedapplications.api.md | 574 +---- .../src/applicationClient.ts | 79 +- .../arm-managedapplications/src/lroImpl.ts | 6 +- .../src/models/index.ts | 1058 +-------- .../src/models/mappers.ts | 1640 +++----------- .../src/models/parameters.ts | 152 +- .../src/operations/applicationDefinitions.ts | 674 +++--- .../src/operations/applications.ts | 815 ++----- .../src/operations/index.ts | 1 - .../src/operations/jitRequests.ts | 366 --- .../applicationDefinitions.ts | 102 +- .../src/operationsInterfaces/applications.ts | 162 +- .../src/operationsInterfaces/index.ts | 1 - .../src/operationsInterfaces/jitRequests.ts | 110 - .../src/pagingHelper.ts | 2 +- .../test/sampleTest.ts | 43 + .../arm-managedapplications/tsconfig.json | 13 +- sdk/policy/arm-policy/CHANGELOG.md | 157 +- sdk/policy/arm-policy/LICENSE | 2 +- sdk/policy/arm-policy/README.md | 2 +- sdk/policy/arm-policy/_meta.json | 10 +- sdk/policy/arm-policy/package.json | 29 +- .../arm-policy/review/arm-policy.api.md | 598 ++++- sdk/policy/arm-policy/src/models/index.ts | 1586 +++++++++---- sdk/policy/arm-policy/src/models/mappers.ts | 1874 ++++++++++----- .../arm-policy/src/models/parameters.ts | 404 ++-- .../src/operations/dataPolicyManifests.ts | 44 +- sdk/policy/arm-policy/src/operations/index.ts | 6 +- .../src/operations/policyAssignments.ts | 308 ++- .../operations/policyDefinitionVersions.ts | 792 +++++++ .../src/operations/policyDefinitions.ts | 249 +- .../src/operations/policyExemptions.ts | 285 ++- .../operations/policySetDefinitionVersions.ts | 797 +++++++ .../src/operations/policySetDefinitions.ts | 253 +-- .../src/operations/variableValues.ts | 607 +++++ .../arm-policy/src/operations/variables.ts | 541 +++++ .../dataPolicyManifests.ts | 6 +- .../src/operationsInterfaces/index.ts | 6 +- .../operationsInterfaces/policyAssignments.ts | 26 +- .../policyDefinitionVersions.ts | 150 ++ .../operationsInterfaces/policyDefinitions.ts | 34 +- .../operationsInterfaces/policyExemptions.ts | 36 +- .../policySetDefinitionVersions.ts | 155 ++ .../policySetDefinitions.ts | 34 +- .../operationsInterfaces/variableValues.ts | 135 ++ .../src/operationsInterfaces/variables.ts | 116 + sdk/policy/arm-policy/src/pagingHelper.ts | 2 +- sdk/policy/arm-policy/src/policyClient.ts | 100 +- sdk/policy/arm-policy/test/sampleTest.ts | 43 + sdk/policy/arm-policy/tsconfig.json | 11 +- .../arm-resources-subscriptions/LICENSE | 2 +- .../arm-resources-subscriptions/_meta.json | 8 +- .../arm-resources-subscriptions/package.json | 26 +- .../src/models/index.ts | 10 +- .../src/models/mappers.ts | 638 +++--- .../src/models/parameters.ts | 50 +- .../src/operations/operations.ts | 32 +- .../src/operations/subscriptions.ts | 81 +- .../src/operations/tenants.ts | 32 +- .../src/operationsInterfaces/operations.ts | 2 +- .../src/operationsInterfaces/subscriptions.ts | 10 +- .../src/operationsInterfaces/tenants.ts | 2 +- .../src/pagingHelper.ts | 2 +- .../src/subscriptionClient.ts | 41 +- .../test/sampleTest.ts | 43 + .../arm-resources-subscriptions/tsconfig.json | 15 +- sdk/resources/arm-resources/CHANGELOG.md | 47 +- sdk/resources/arm-resources/LICENSE | 2 +- sdk/resources/arm-resources/_meta.json | 10 +- sdk/resources/arm-resources/package.json | 26 +- .../arm-resources/review/arm-resources.api.md | 71 +- sdk/resources/arm-resources/src/lroImpl.ts | 6 +- .../arm-resources/src/models/index.ts | 180 +- .../arm-resources/src/models/mappers.ts | 2017 +++++++++-------- .../arm-resources/src/models/parameters.ts | 196 +- .../src/operations/deploymentOperations.ts | 314 ++- .../src/operations/deployments.ts | 1540 ++++++------- .../src/operations/operations.ts | 32 +- .../src/operations/providerResourceTypes.ts | 19 +- .../arm-resources/src/operations/providers.ts | 163 +- .../src/operations/resourceGroups.ts | 175 +- .../arm-resources/src/operations/resources.ts | 488 ++-- .../src/operations/tagsOperations.ts | 390 +++- .../deploymentOperations.ts | 22 +- .../src/operationsInterfaces/deployments.ts | 130 +- .../src/operationsInterfaces/operations.ts | 2 +- .../providerResourceTypes.ts | 4 +- .../src/operationsInterfaces/providers.ts | 23 +- .../operationsInterfaces/resourceGroups.ts | 20 +- .../src/operationsInterfaces/resources.ts | 50 +- .../operationsInterfaces/tagsOperations.ts | 71 +- .../arm-resources/src/pagingHelper.ts | 2 +- .../src/resourceManagementClient.ts | 55 +- .../arm-resources/test/sampleTest.ts | 43 + sdk/resources/arm-resources/tsconfig.json | 10 +- .../CHANGELOG.md | 4 +- .../arm-resourcesdeploymentstacks/LICENSE | 2 +- .../arm-resourcesdeploymentstacks/README.md | 4 +- .../arm-resourcesdeploymentstacks/_meta.json | 8 +- .../package.json | 28 +- .../arm-resourcesdeploymentstacks.api.md | 159 +- .../src/deploymentStacksClient.ts | 37 +- .../src/lroImpl.ts | 6 +- .../src/models/index.ts | 347 ++- .../src/models/mappers.ts | 832 ++++--- .../src/models/parameters.ts | 97 +- .../src/operations/deploymentStacks.ts | 998 +++++--- .../operationsInterfaces/deploymentStacks.ts | 225 +- .../src/pagingHelper.ts | 2 +- .../test/sampleTest.ts | 43 + .../tsconfig.json | 17 +- .../arm-templatespecs/CHANGELOG.md | 40 +- sdk/templatespecs/arm-templatespecs/LICENSE | 2 +- .../arm-templatespecs/_meta.json | 10 +- .../arm-templatespecs/package.json | 31 +- .../review/arm-templatespecs.api.md | 53 +- .../arm-templatespecs/src/models/index.ts | 63 +- .../arm-templatespecs/src/models/mappers.ts | 274 +-- .../src/models/parameters.ts | 80 +- .../src/operations/templateSpecVersions.ts | 295 ++- .../src/operations/templateSpecs.ts | 304 ++- .../templateSpecVersions.ts | 35 +- .../src/operationsInterfaces/templateSpecs.ts | 33 +- .../arm-templatespecs/src/pagingHelper.ts | 10 +- .../src/templateSpecsClient.ts | 51 +- .../arm-templatespecs/test/sampleTest.ts | 12 +- .../arm-templatespecs/tsconfig.json | 16 +- 194 files changed, 17488 insertions(+), 12928 deletions(-) create mode 100644 sdk/features/arm-features/test/sampleTest.ts create mode 100644 sdk/links/arm-links/test/sampleTest.ts create mode 100644 sdk/locks/arm-locks/test/sampleTest.ts delete mode 100644 sdk/managedapplications/arm-managedapplications/src/operations/jitRequests.ts delete mode 100644 sdk/managedapplications/arm-managedapplications/src/operationsInterfaces/jitRequests.ts create mode 100644 sdk/managedapplications/arm-managedapplications/test/sampleTest.ts create mode 100644 sdk/policy/arm-policy/src/operations/policyDefinitionVersions.ts create mode 100644 sdk/policy/arm-policy/src/operations/policySetDefinitionVersions.ts create mode 100644 sdk/policy/arm-policy/src/operations/variableValues.ts create mode 100644 sdk/policy/arm-policy/src/operations/variables.ts create mode 100644 sdk/policy/arm-policy/src/operationsInterfaces/policyDefinitionVersions.ts create mode 100644 sdk/policy/arm-policy/src/operationsInterfaces/policySetDefinitionVersions.ts create mode 100644 sdk/policy/arm-policy/src/operationsInterfaces/variableValues.ts create mode 100644 sdk/policy/arm-policy/src/operationsInterfaces/variables.ts create mode 100644 sdk/policy/arm-policy/test/sampleTest.ts create mode 100644 sdk/resources-subscriptions/arm-resources-subscriptions/test/sampleTest.ts create mode 100644 sdk/resources/arm-resources/test/sampleTest.ts create mode 100644 sdk/resourcesdeploymentstacks/arm-resourcesdeploymentstacks/test/sampleTest.ts diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index 000d057575487..d006a445cee1f 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -11250,7 +11250,7 @@ packages: dev: false file:projects/abort-controller.tgz: - resolution: {integrity: sha512-QZ0E3RZB7pUg1bZN5ItGSjX9TUZc+boHlKqirCXSsH8IzCA8TBWImWCYFzXDIMhnk5DZQZUd7+S5MoTWtNqANA==, tarball: file:projects/abort-controller.tgz} + resolution: {integrity: sha512-QyNMkQBrSPMQA1WJFyuFJMd14vykwwDw7955MmKvLopfcjj+sewnzO4+bIaNC9DwROFRiY8oHGD1HZc7fABncg==, tarball: file:projects/abort-controller.tgz} name: '@rush-temp/abort-controller' version: 0.0.0 dependencies: @@ -11282,7 +11282,7 @@ packages: dev: false file:projects/agrifood-farming.tgz: - resolution: {integrity: sha512-HZSx6lhjPi5qHvHdGJccgLOkO81zZ1uPpbrb/XHkIDJYEgZKztojGreO4E/YfNCWywHBz9HcH2VwcnXG5Dd3kw==, tarball: file:projects/agrifood-farming.tgz} + resolution: {integrity: sha512-YIKoS//F+JC5Z5U03+oik6ddqcAUnyYDkanBpy0t6pKx/mrIkSpw+lVv575Mt911JnxS4GzjMskGBwtoelNVSw==, tarball: file:projects/agrifood-farming.tgz} name: '@rush-temp/agrifood-farming' version: 0.0.0 dependencies: @@ -11329,7 +11329,7 @@ packages: dev: false file:projects/ai-anomaly-detector.tgz: - resolution: {integrity: sha512-iCAJGraXxuPI6HnvhvqvAEsc6J/bDEv5oJf79EEH+aEgVxoX7j8l2utPd3HZUQcS0fy6PvZS0SoKxaV8o6kleQ==, tarball: file:projects/ai-anomaly-detector.tgz} + resolution: {integrity: sha512-NIN7uMdpYqfkcL6RqgMwImlrU/cYjQaUThas3kTdOiyYJVB1+i88KSNP0vkn5yhiHuA9Tg/PagvkiBisV+NEtg==, tarball: file:projects/ai-anomaly-detector.tgz} name: '@rush-temp/ai-anomaly-detector' version: 0.0.0 dependencies: @@ -11376,7 +11376,7 @@ packages: dev: false file:projects/ai-content-safety.tgz: - resolution: {integrity: sha512-TMcjYfnMtjYkygH9JvMeRQ6/0tushS9oAbPiK8HQXvgfqAdEHfIX14eABYavFiBPOUiuodNriCrXF3OsnHroaQ==, tarball: file:projects/ai-content-safety.tgz} + resolution: {integrity: sha512-e3gc7GLlQFLoH5AOBQKbXBDg0CiRDL+HTvlQgKgoMuays937daJUZ0bPNahhGiUVmD39PmmcPRSKWNJaFSE9LQ==, tarball: file:projects/ai-content-safety.tgz} name: '@rush-temp/ai-content-safety' version: 0.0.0 dependencies: @@ -11421,7 +11421,7 @@ packages: dev: false file:projects/ai-document-intelligence.tgz: - resolution: {integrity: sha512-F0qhC9gs36W1qaV+CqxLt36IB8nHJlEzUNxix/VzmLKtD8V3mniIkpshChzYiebnJNjbxpwGTq+xt/bouutU6Q==, tarball: file:projects/ai-document-intelligence.tgz} + resolution: {integrity: sha512-O9KnUHux32czxiSlcW374f0zP9DdGzzXaabJZuYiomrLGUU8201g6s26DKRzcgsNL/JG8eq4M67mikOYiSnkkg==, tarball: file:projects/ai-document-intelligence.tgz} name: '@rush-temp/ai-document-intelligence' version: 0.0.0 dependencies: @@ -11468,7 +11468,7 @@ packages: dev: false file:projects/ai-document-translator.tgz: - resolution: {integrity: sha512-Vf7Fo170U5+VKVsZlQB7o8PSsjaoROE5O1knRdMAx6HvIvBT8J8DLMk2MLcxLbLn/u4SNu6DdB21AwyIVf6Nog==, tarball: file:projects/ai-document-translator.tgz} + resolution: {integrity: sha512-bFjyePKkhsvdY3PQfILXwbzQ3dSKvIvWNz7di+J9n2dunU3VEE35QNWt92V8rBFVsTyjblGqdbEFRPVg+U9wtA==, tarball: file:projects/ai-document-translator.tgz} name: '@rush-temp/ai-document-translator' version: 0.0.0 dependencies: @@ -11513,7 +11513,7 @@ packages: dev: false file:projects/ai-form-recognizer.tgz: - resolution: {integrity: sha512-8YLmzSpFghgvblc3nHGSAkb1t99w6YFPK5LwycwDzoXSbm8v34TaMe//RC/A73OjaLJt6peCDSsXkVU/KcJddA==, tarball: file:projects/ai-form-recognizer.tgz} + resolution: {integrity: sha512-K9BlR/HQSbQPbwEAgCqPPDIKEZ30WKLt+Xteh9jEsA7pImFX1nYLBqJIhG+jw/JVMhRkOmtaDsl+RN0FOJmKCw==, tarball: file:projects/ai-form-recognizer.tgz} name: '@rush-temp/ai-form-recognizer' version: 0.0.0 dependencies: @@ -11562,7 +11562,7 @@ packages: dev: false file:projects/ai-language-conversations.tgz: - resolution: {integrity: sha512-y38041Ljdkb8VoAZ0hkf5qCrl6nTVeoQogPMipCxamrWXrj1aYBGgyVmuefZvI/P17kXE9I81zqrrrawYnGm4Q==, tarball: file:projects/ai-language-conversations.tgz} + resolution: {integrity: sha512-brgEmjbbi4zBMY2W4ori3NJoiMNFUXTlPqW9v90z6vD+nai+GQzAzYO6IzMl1WC8A4kSdImKXePvK8BWRXY2Zg==, tarball: file:projects/ai-language-conversations.tgz} name: '@rush-temp/ai-language-conversations' version: 0.0.0 dependencies: @@ -11612,7 +11612,7 @@ packages: dev: false file:projects/ai-language-text.tgz: - resolution: {integrity: sha512-4Mp2wIsSdCqKIdF6x5Muz0VeTwNMNJuLAyYFP0u6MMi54YjG6YN7AO0/Ojy8irIhKHYjMtYgyzcjVBQKUsmY9A==, tarball: file:projects/ai-language-text.tgz} + resolution: {integrity: sha512-y6j25M99pYlSstK3r+7DsGkfbXzx7DlAcWfiy9EWcHzp7/BRZ/Dg177z5S4lohg+Jd/9JGGFaxpNIcECH1HTNA==, tarball: file:projects/ai-language-text.tgz} name: '@rush-temp/ai-language-text' version: 0.0.0 dependencies: @@ -11661,7 +11661,7 @@ packages: dev: false file:projects/ai-language-textauthoring.tgz: - resolution: {integrity: sha512-6nr5OO05e+OLV++CpNwQeJiDe117qAcNaLsW6+TUEB5JlgfPV7GQjflepC9nW0UP7bM/Usjxe/1D5/uqJQA9Vg==, tarball: file:projects/ai-language-textauthoring.tgz} + resolution: {integrity: sha512-4SPopXyXGIBZl/+zClplXf5AcN8/WSICaaI+51NQ56xccla9T+K+UtJJPjfq763q1BAiAPGLOYyJRW0UDmh1aQ==, tarball: file:projects/ai-language-textauthoring.tgz} name: '@rush-temp/ai-language-textauthoring' version: 0.0.0 dependencies: @@ -11688,7 +11688,7 @@ packages: dev: false file:projects/ai-metrics-advisor.tgz: - resolution: {integrity: sha512-eGjg+bP9U9y4AsSuJTTQJXr1k2csDmjD/6ZZnySt0KkrjJheCO4xh22geeSvkuEJBHyodoDy8YDN+LhOuggx7w==, tarball: file:projects/ai-metrics-advisor.tgz} + resolution: {integrity: sha512-XIzn2uwGPF4f/p7zQ16REsiz9ONPfc2nt0aL/G1p+7kavtRwesAc6zjNxx5kmQu07IuN1GOaW75za3EsfiGcoQ==, tarball: file:projects/ai-metrics-advisor.tgz} name: '@rush-temp/ai-metrics-advisor' version: 0.0.0 dependencies: @@ -11733,7 +11733,7 @@ packages: dev: false file:projects/ai-text-analytics.tgz: - resolution: {integrity: sha512-aisDCcckty5/Qw10RuHTrbDf8kf0WgTR1WcAgQ9REcu9h8Gmm3YHaom0CYHiFmIz1zk4RTII4RUQcthYbFM5pg==, tarball: file:projects/ai-text-analytics.tgz} + resolution: {integrity: sha512-ihwgmnQpcNkQOaZssCcb7vo90Q9NGp8yw3GIFrbsaq7jeOzo51oplw/C7+gWVMc97eRI2ohE7uVygaIfOiwAug==, tarball: file:projects/ai-text-analytics.tgz} name: '@rush-temp/ai-text-analytics' version: 0.0.0 dependencies: @@ -11781,7 +11781,7 @@ packages: dev: false file:projects/ai-translation-text.tgz: - resolution: {integrity: sha512-TwO9ZrOIhwXstbhTsU9mTvzm6Cr7Gaa+HDt/4CkUsyRXyltW97WSQ0czdMoZS3+icSErRJYRprBS2IyO04KoZA==, tarball: file:projects/ai-translation-text.tgz} + resolution: {integrity: sha512-nGLU9Cy/C48q4NQH/g2PCch0u+lw/vQjTssiVpNKc+NOFKQliTF/TFkkXevsAcanh8elPXKT1gp560CEBD44rw==, tarball: file:projects/ai-translation-text.tgz} name: '@rush-temp/ai-translation-text' version: 0.0.0 dependencies: @@ -11826,7 +11826,7 @@ packages: dev: false file:projects/ai-vision-face.tgz: - resolution: {integrity: sha512-MSxrXH46y77Vn7DU26EJAGrJC1s103JsoEI1EBVxa7c0CR33/H6ZkXRoDt8SRWW6pE5AFdqEKG8YShN2DMh2Ug==, tarball: file:projects/ai-vision-face.tgz} + resolution: {integrity: sha512-soAai5Dkj4Dh+EhIwfe6NNkFmTnw5os6uc5zrCu0Ld0qeI++SCZz9x7gAIvQPcb9buL7DrJ02mz0JiL3TzWvUQ==, tarball: file:projects/ai-vision-face.tgz} name: '@rush-temp/ai-vision-face' version: 0.0.0 dependencies: @@ -11865,7 +11865,7 @@ packages: dev: false file:projects/ai-vision-image-analysis.tgz: - resolution: {integrity: sha512-XoJviqs0EVB+5vHHC8cukN0rC+ze+fdGdhtyfyR949LXDZa/9npCnpu1cuZFaPoSK0eu+vYxOJi/kZA3Ar6Tag==, tarball: file:projects/ai-vision-image-analysis.tgz} + resolution: {integrity: sha512-iTZJIfDxQPc54T9fL9/8QK4wb+1w/2+K7eh2MZn903yAG08gnhXzLXk6rC+VlqEaiItmLZr7RLBHWmKGaYsGYQ==, tarball: file:projects/ai-vision-image-analysis.tgz} name: '@rush-temp/ai-vision-image-analysis' version: 0.0.0 dependencies: @@ -11910,7 +11910,7 @@ packages: dev: false file:projects/api-management-custom-widgets-scaffolder.tgz: - resolution: {integrity: sha512-JbBeeqxT29/SMna+CRVXEaTh6A23O9GMDd8djYxz5bdFEhWxGwqvYVos0V/6pp82Ohmp57shkbg0t9y5urOubA==, tarball: file:projects/api-management-custom-widgets-scaffolder.tgz} + resolution: {integrity: sha512-lMLjThvDdunhTGs97/cZydb8QqJM9THIOU83yszP/TU5pRgQgJ1hbTSkENYZevGdnRvo2KF8u4tkRepwT+GBzg==, tarball: file:projects/api-management-custom-widgets-scaffolder.tgz} name: '@rush-temp/api-management-custom-widgets-scaffolder' version: 0.0.0 dependencies: @@ -11952,7 +11952,7 @@ packages: dev: false file:projects/api-management-custom-widgets-tools.tgz: - resolution: {integrity: sha512-fRrbQBQLd8yZNoZLM2bVchzax18ri041vIt9m42eFaLioP1KZesMVobBkEqf6qVhFOn47TMju9SFMfSMmQ3Idw==, tarball: file:projects/api-management-custom-widgets-tools.tgz} + resolution: {integrity: sha512-pjIub72PGhWxnGf2w/fDNSFgqU/Kx6xZrbxUAYMRypxSCuPhERVPDT6tu2bakNa6o31u5NPuEm2lg5VtIfS7eA==, tarball: file:projects/api-management-custom-widgets-tools.tgz} name: '@rush-temp/api-management-custom-widgets-tools' version: 0.0.0 dependencies: @@ -11989,7 +11989,7 @@ packages: dev: false file:projects/app-configuration.tgz: - resolution: {integrity: sha512-xS3GFMp6rhn0j3PLEFnWq5O0vL8ANSw5a3DM5JT3jdITPTBd2iJC/9Ntyh9aj74yMz13rGal+w17Px+qOKhaxA==, tarball: file:projects/app-configuration.tgz} + resolution: {integrity: sha512-VNYxYcU7mbxAE0503atyo5jvkr/g0b8GVZBcE2JTFh6VMWXHZRtaUmwTPYmHFwwJ7Lr5mubT1GKvpTvfUJCq6w==, tarball: file:projects/app-configuration.tgz} name: '@rush-temp/app-configuration' version: 0.0.0 dependencies: @@ -12031,7 +12031,7 @@ packages: dev: false file:projects/arm-advisor.tgz: - resolution: {integrity: sha512-4n/AKXjIFLfkmxdcXVmi6ZsOeyVJe7MhJVu9hmVAPf1C5fTOZDqCjKDiZ6UoySFVQwA5J9SeSvrt4DEaNrK5xw==, tarball: file:projects/arm-advisor.tgz} + resolution: {integrity: sha512-0hN4zHzXqSx4Sv/N3QEL7ahjbTXvrmO05r3y6GPMNq+6AlLl7uHTAD6DfCHpSYlaV+lLQq+ODveQKUSYx3Ya4w==, tarball: file:projects/arm-advisor.tgz} name: '@rush-temp/arm-advisor' version: 0.0.0 dependencies: @@ -12059,7 +12059,7 @@ packages: dev: false file:projects/arm-agrifood.tgz: - resolution: {integrity: sha512-46uFsEF53m7H7vEkK9M5QgqcBxKNw0odYTixjlf6I7kkjGFgQX0388Yjd8eTdsBbAI6HY59uaJPHWEzAVkatwQ==, tarball: file:projects/arm-agrifood.tgz} + resolution: {integrity: sha512-DtgnjSI/ClXFSU+VynFUq66VKFdk9zXSpKyCZ9zCoo97F7+ZTQY7p1idG+HPAMiluIyUugPBfDW2IQN/hFFVrg==, tarball: file:projects/arm-agrifood.tgz} name: '@rush-temp/arm-agrifood' version: 0.0.0 dependencies: @@ -12088,7 +12088,7 @@ packages: dev: false file:projects/arm-analysisservices.tgz: - resolution: {integrity: sha512-hpMtD6tCsrz/UQkre+nKHCWWEiOkl287AIdOzU3FRO+frq8fvZ2dJ4ROs9XAPmvv7V3YittnVVxyWUhGILmhjw==, tarball: file:projects/arm-analysisservices.tgz} + resolution: {integrity: sha512-5BpkKa44miE0VH587+jqxINWYLsMGmM3Bkg6QBfGdVwqFgrq4sZKSPpquoPLt4K/nQnHUBTs3RNpMZuP+UQYWA==, tarball: file:projects/arm-analysisservices.tgz} name: '@rush-temp/arm-analysisservices' version: 0.0.0 dependencies: @@ -12117,7 +12117,7 @@ packages: dev: false file:projects/arm-apicenter.tgz: - resolution: {integrity: sha512-/PQPMfrsBKFGoVPRTpVmlLoV9j5cYZjNYxLUj9B9+VL7CljtvIKIQvNW1frmOA9UBD/tMpU1hO54Skv0zof/9Q==, tarball: file:projects/arm-apicenter.tgz} + resolution: {integrity: sha512-03HM2Bx6+knOBc8hvWGtEOupSEUOWeNfVxcu5OcyKKQc96xXOtLbIFXkUQM8QImTyT90ryRzaeyB9pRrK0ssIw==, tarball: file:projects/arm-apicenter.tgz} name: '@rush-temp/arm-apicenter' version: 0.0.0 dependencies: @@ -12147,7 +12147,7 @@ packages: dev: false file:projects/arm-apimanagement.tgz: - resolution: {integrity: sha512-qw5NGvTpjnkp19UXOPslhDhzsuhT/c8l0XerShkRA4hUdQnVRbVjiUSvAIa6j29dhykPU5Gd2T0RNz8VIFPHbg==, tarball: file:projects/arm-apimanagement.tgz} + resolution: {integrity: sha512-VcsQqKmS1ZQKutAnylSiR0i6H+AvZAiVdbhJC89+73jAN10m424/aT5LlI+vikD3yyfSiRxKfD60qauCRzKFog==, tarball: file:projects/arm-apimanagement.tgz} name: '@rush-temp/arm-apimanagement' version: 0.0.0 dependencies: @@ -12177,7 +12177,7 @@ packages: dev: false file:projects/arm-appcomplianceautomation.tgz: - resolution: {integrity: sha512-kAYEheOc/6MjuSrvSaoxOGHfmMj8PuZDQfyjnzLdHloUtPaczM7hixmZtqAcUJcPvq42U7Rycq3QtgWf34yA5g==, tarball: file:projects/arm-appcomplianceautomation.tgz} + resolution: {integrity: sha512-9sn969aZYnAGicmEOTkxX3+sAgDLqVugjhsuu9OEzop8QVFY3xk+YjH1Tg8DoAcDQ9NRg106o/8cMhJSFyrsFg==, tarball: file:projects/arm-appcomplianceautomation.tgz} name: '@rush-temp/arm-appcomplianceautomation' version: 0.0.0 dependencies: @@ -12206,7 +12206,7 @@ packages: dev: false file:projects/arm-appconfiguration.tgz: - resolution: {integrity: sha512-iapgi1DwZGcDL6Oy1VNg80Nl4xWiQ1LiTinbcnY53ACteC3jP5QxMWa7R6GJtU9xOgTtPWHTXX9Zutw1tc2dvg==, tarball: file:projects/arm-appconfiguration.tgz} + resolution: {integrity: sha512-vhMz0aVWBB5i61Y4ed6CiBDJkOBrIr+qoDLxUXas47SkbyrA03rEQ0TbNkQAP22ragEVSAD+XK400hLSOjsL2Q==, tarball: file:projects/arm-appconfiguration.tgz} name: '@rush-temp/arm-appconfiguration' version: 0.0.0 dependencies: @@ -12236,7 +12236,7 @@ packages: dev: false file:projects/arm-appcontainers.tgz: - resolution: {integrity: sha512-aO1U72geingTSGhKO7bj/QxqeyF1suw86Rc/hnIGj5a91e+41mwTX0p0JW/d0MNelVfXwWfNJIgbRvVibllqhA==, tarball: file:projects/arm-appcontainers.tgz} + resolution: {integrity: sha512-5CdbeO1IFlnvg6IK3AmC4+lAcpYv1ETJE91Yfpk33AzVi90PPVlmnZ8i0pMBkUdYWl9rqxeZHwEZf7YK/vULcQ==, tarball: file:projects/arm-appcontainers.tgz} name: '@rush-temp/arm-appcontainers' version: 0.0.0 dependencies: @@ -12266,7 +12266,7 @@ packages: dev: false file:projects/arm-appinsights.tgz: - resolution: {integrity: sha512-0vRtSGFW0eqMFp4ErlCMkiCGYqeCsmfegVz3R2EjMyqS+vydUI5OKtQWRgG3c8kacxbeC3lh7pDz87w2v3f9bQ==, tarball: file:projects/arm-appinsights.tgz} + resolution: {integrity: sha512-0pblb4YxNqqK85WDJh+AURSCDOFrMozw6E7NM0pw4eB4AQ3iRz2UlTgyx+Z/Sb56uZVM7gTUxFtj3AiSWUZoVA==, tarball: file:projects/arm-appinsights.tgz} name: '@rush-temp/arm-appinsights' version: 0.0.0 dependencies: @@ -12293,7 +12293,7 @@ packages: dev: false file:projects/arm-appplatform.tgz: - resolution: {integrity: sha512-a2FqK4wHZahTc6S8Mdj9sMUw+Hp9dscWJhJQBGCnxGlTkl7Z5yMgGT8oR1TJR8AfvrWlRCeqNeu8KAioPcS0wQ==, tarball: file:projects/arm-appplatform.tgz} + resolution: {integrity: sha512-tR5b5dY+3RToVwVjqVz9TjAeeusanyWLdjba0PKXInK5vfFDtlq3MmQsdk0uRcGleUw4wQgwY/zWHYfz5x7jOA==, tarball: file:projects/arm-appplatform.tgz} name: '@rush-temp/arm-appplatform' version: 0.0.0 dependencies: @@ -12323,7 +12323,7 @@ packages: dev: false file:projects/arm-appservice-1.tgz: - resolution: {integrity: sha512-6tSKM0h7zjubB649Rf1vVd4OruJ4ogoqN60KPnqFZ7+31XWb3uFTlw51mdUSYv1oEPs/sEDTi2b/opNsJ7VMeA==, tarball: file:projects/arm-appservice-1.tgz} + resolution: {integrity: sha512-ty0dMNeEV6BYj7X9wqgW86iHPuaXcM0lAES4/XffcGi7IzZVfuzg0li8Vena/FOmW2SlqDDmxT0/RJNMNnLKaQ==, tarball: file:projects/arm-appservice-1.tgz} name: '@rush-temp/arm-appservice-1' version: 0.0.0 dependencies: @@ -12353,7 +12353,7 @@ packages: dev: false file:projects/arm-appservice-profile-2020-09-01-hybrid.tgz: - resolution: {integrity: sha512-whUX2YPHhh1/1B8yijOZ+MVaMny4mzXsvIeYbeTimDlH5dH4rZyo5NCfoNa2tP7cPqKMYuMmS7TR+CZH+JhH6g==, tarball: file:projects/arm-appservice-profile-2020-09-01-hybrid.tgz} + resolution: {integrity: sha512-Apz1K4e7aesryi0AOP34AxNltFvAPsP45TV+2XenHAxNl5ygfZT+CFnFOFZfJCNgk/Ewh/QqL6vQIRvzr4MDwQ==, tarball: file:projects/arm-appservice-profile-2020-09-01-hybrid.tgz} name: '@rush-temp/arm-appservice-profile-2020-09-01-hybrid' version: 0.0.0 dependencies: @@ -12383,7 +12383,7 @@ packages: dev: false file:projects/arm-appservice.tgz: - resolution: {integrity: sha512-TZ+pwPsX4jXB9tKeA/BvuZ5VLmc9U5zyHyMwzJKzvqkwfOX9hRW3UvW4k3kVftlX2Rqrn4fFQwVZiZjfXMOfIg==, tarball: file:projects/arm-appservice.tgz} + resolution: {integrity: sha512-tlVIi+9KEEe1c396LdNzAp1KE387pmk8aLu1cjg2G3KjYdp5f2WVI7L9H8RNGCtTrwPv2Hg97Z8txnwe5E9YjQ==, tarball: file:projects/arm-appservice.tgz} name: '@rush-temp/arm-appservice' version: 0.0.0 dependencies: @@ -12429,7 +12429,7 @@ packages: dev: false file:projects/arm-astro.tgz: - resolution: {integrity: sha512-PKjfzziOiYxgAA0a4ZIpFY1qlLuIzQ3CzkIZNyk6vQuPRRVq61xoNhM3FyQvtXJkitiCb8Loh/30YyL/QiPHgA==, tarball: file:projects/arm-astro.tgz} + resolution: {integrity: sha512-ma2TgG60LV1yItrVF4C7B087d+k0tSs/jjPfArugBJUka1AKfJddjKblL+1nWra/V3GjdtON7mif9wzTcfcV9Q==, tarball: file:projects/arm-astro.tgz} name: '@rush-temp/arm-astro' version: 0.0.0 dependencies: @@ -12459,7 +12459,7 @@ packages: dev: false file:projects/arm-attestation.tgz: - resolution: {integrity: sha512-4F9tLM3y4f0vvq49n1pSLDJaEUcKZ9QIvKMrtH5egIdNeYgh7vLYM9rfpMHJTA2CiowYWyg7sgPXa5JDmkEvlg==, tarball: file:projects/arm-attestation.tgz} + resolution: {integrity: sha512-ZpKkQ7nL15UcYHsPuO94vmMWx5YvBUls1OY/j9MFmof1LP8FgPACfD9TIScidhM7ZAkN5l+zMlwRTB6mWIIE1g==, tarball: file:projects/arm-attestation.tgz} name: '@rush-temp/arm-attestation' version: 0.0.0 dependencies: @@ -12486,7 +12486,7 @@ packages: dev: false file:projects/arm-authorization-profile-2020-09-01-hybrid.tgz: - resolution: {integrity: sha512-DqP28/Rs+gO7bSS66OpdWldz09504z1uzoDKQM9PZqR7pcaMxNObnRPjM2vlfGRsPBLvWjKBlunHBG9fXYbesg==, tarball: file:projects/arm-authorization-profile-2020-09-01-hybrid.tgz} + resolution: {integrity: sha512-M1upRU0MOdHmzaU4l4K2SxdJ0CJOAyPbSMEEh7yZqAoC/I7IkfB+JA0x4uwqUMJq9ivHLpZQG8VLrpfRMhaUQA==, tarball: file:projects/arm-authorization-profile-2020-09-01-hybrid.tgz} name: '@rush-temp/arm-authorization-profile-2020-09-01-hybrid' version: 0.0.0 dependencies: @@ -12514,7 +12514,7 @@ packages: dev: false file:projects/arm-authorization.tgz: - resolution: {integrity: sha512-qSxeQYBN1XKMBYY+cVj3+biEV06litUjNR+KOol+ZtCSj241Y0oP13JrlE0SrxPXYYaOj+U4GKcDqbBhwF/RKA==, tarball: file:projects/arm-authorization.tgz} + resolution: {integrity: sha512-nfy8arolZejYYp2RM3UjjrMiHyykaAPVfBXzGEF+xf+vOPVvf8kWakESduqWY8HghbMnGE/Nf5q5ge8GDm97Wg==, tarball: file:projects/arm-authorization.tgz} name: '@rush-temp/arm-authorization' version: 0.0.0 dependencies: @@ -12544,7 +12544,7 @@ packages: dev: false file:projects/arm-automanage.tgz: - resolution: {integrity: sha512-lq87gvc5pAYa1/MAeQLaviX9fc33iq/2D/pi4gteOf+bbx6NZJOWKSAiWthJGosZutv3ds3nBQ91GwiWdQMWRg==, tarball: file:projects/arm-automanage.tgz} + resolution: {integrity: sha512-ds3ivqdQDfHHDy09XwQWiCSKLtbh2eLK02WzJHAwLe/AUYSsmrrAKwbxWchjWmJKsBGLOxPelHDUBhseIBZBRg==, tarball: file:projects/arm-automanage.tgz} name: '@rush-temp/arm-automanage' version: 0.0.0 dependencies: @@ -12572,7 +12572,7 @@ packages: dev: false file:projects/arm-automation.tgz: - resolution: {integrity: sha512-Hop/T9O6fMv+7I96zSAL5BNao3YeUE19LGUDuBJZZR+tPbL6meodzAaEoZhSrFgepY1RmPxonuMN3X0UGtYniw==, tarball: file:projects/arm-automation.tgz} + resolution: {integrity: sha512-SJQRTguNauleDan4YtWkjJC3DD+VtCOUnljoO8htFtIith3PluNsMFT9oOxiHrqsv8+wJ20KDZ17mjwYyNq95g==, tarball: file:projects/arm-automation.tgz} name: '@rush-temp/arm-automation' version: 0.0.0 dependencies: @@ -12602,7 +12602,7 @@ packages: dev: false file:projects/arm-avs.tgz: - resolution: {integrity: sha512-mTOS9gnSgQeVjaXOODq73/MxYLvfL+gotRZ8G7yixnLelChfDK96qyaYnIBluZLAKQJ+UNyYjpNla4YhheFrQg==, tarball: file:projects/arm-avs.tgz} + resolution: {integrity: sha512-a18JtfHB9CiIXMyh+bqd1UHcjJqfomgibayRWgUemCeH6t9W7PWHYlIq5+0V/8MtjuJa2Mjrc0v8npl2t50qTA==, tarball: file:projects/arm-avs.tgz} name: '@rush-temp/arm-avs' version: 0.0.0 dependencies: @@ -12632,7 +12632,7 @@ packages: dev: false file:projects/arm-azureadexternalidentities.tgz: - resolution: {integrity: sha512-nmhJXSdVKJJdhkfFDcGdVj770fTQDy/Sl6ShPydOJzvpHG4+pudqysik4HW/ftlEVmlAm+KcRKTviSsxIpWy9A==, tarball: file:projects/arm-azureadexternalidentities.tgz} + resolution: {integrity: sha512-TU9BGdnHF5ib87zgQHQyDr+ftp0o3af8SaTG9v55+D7Wz4NKEME5j2DqK1i1jnUUBobtlCj8DidS/8Mm/8ElRw==, tarball: file:projects/arm-azureadexternalidentities.tgz} name: '@rush-temp/arm-azureadexternalidentities' version: 0.0.0 dependencies: @@ -12661,7 +12661,7 @@ packages: dev: false file:projects/arm-azurestack.tgz: - resolution: {integrity: sha512-hu9x6gVISMUJx6VDeZAQbWxQEvdOVB+DmzRVkhgYVIZr+BzbWtaj1IHuLZM6h+3PPYhfGyls303vnPb32TKehw==, tarball: file:projects/arm-azurestack.tgz} + resolution: {integrity: sha512-+XjcjuES/pBub1qxpRJVJc/rh5MDzvt7x2lL/+1HqhN0TUgzoUq/vYv+hgRtvFQTLJGOHULccTBvQGJAqsZFCA==, tarball: file:projects/arm-azurestack.tgz} name: '@rush-temp/arm-azurestack' version: 0.0.0 dependencies: @@ -12688,7 +12688,7 @@ packages: dev: false file:projects/arm-azurestackhci.tgz: - resolution: {integrity: sha512-nLRq05d5Sl0851EDg18dmJ13RSjc6ieZKCcIdB8ilS8v8SuHFZxFKh/5gZvgVGFBFgOZNwVPUKZ3tezWk/JVPA==, tarball: file:projects/arm-azurestackhci.tgz} + resolution: {integrity: sha512-YKx28o5Lmc3QIWJT1D6EJ+xHmCIa88iiRl0fkmzS6ri1ZpaD1jbt5YBmT9H/F18wPQ/D2dR9bhtiaq9ht6mWdw==, tarball: file:projects/arm-azurestackhci.tgz} name: '@rush-temp/arm-azurestackhci' version: 0.0.0 dependencies: @@ -12718,7 +12718,7 @@ packages: dev: false file:projects/arm-baremetalinfrastructure.tgz: - resolution: {integrity: sha512-guuc6MMlWahsA5b57gRskL4v1prXdCAmWiFo4Rv0ANpF22qAxrMRV/5i8O3oCZSv8ExdgSVBj+BmLVBR+BWsQQ==, tarball: file:projects/arm-baremetalinfrastructure.tgz} + resolution: {integrity: sha512-MHM8KKCWsz6p5pWBa+ni+wEtDRS87r3T1RalaYNjWicFwj4PNIA4bps3AgXnrMMgJqZlVO0JNgp1EKbSfeX48g==, tarball: file:projects/arm-baremetalinfrastructure.tgz} name: '@rush-temp/arm-baremetalinfrastructure' version: 0.0.0 dependencies: @@ -12748,7 +12748,7 @@ packages: dev: false file:projects/arm-batch.tgz: - resolution: {integrity: sha512-EHowwGdBPNvp4oIMAOQXNPSFr3mMko7qfWr43Q4eH+sNBj6YPft0k+USkWyOQ2lcKOTBF0SddisrOUd/7jn0bw==, tarball: file:projects/arm-batch.tgz} + resolution: {integrity: sha512-sJ7cHVAQxUZ+/gkh1e4dSMSXKQmT0whaTnswSrfXCr0MYW6LbfDKwEyRIkW6Yet6hzIIdAB9erddf8zdxjbNfg==, tarball: file:projects/arm-batch.tgz} name: '@rush-temp/arm-batch' version: 0.0.0 dependencies: @@ -12778,7 +12778,7 @@ packages: dev: false file:projects/arm-billing.tgz: - resolution: {integrity: sha512-uY/GXYonZIqqgk7DLTkc9ejZQ4MMaKn6T1hH2/WAKbblDvxubI/oWYWEPrUxveAObAZEaDOI8cBctfrzLeeeeA==, tarball: file:projects/arm-billing.tgz} + resolution: {integrity: sha512-GUc3kXnlOoK2tGKsyEPEy4M39kkRrFUB0a4Ja+LlRsX5ia1/b6RuIjliBf+ArgsGtN4mQtgbNQRSrAkfp9f4vw==, tarball: file:projects/arm-billing.tgz} name: '@rush-temp/arm-billing' version: 0.0.0 dependencies: @@ -12807,7 +12807,7 @@ packages: dev: false file:projects/arm-billingbenefits.tgz: - resolution: {integrity: sha512-3ZtaCA+1LSMf5cMqtZLXjir3NvjaE1Zz0JRdo1SeGdG2net0Wl8OXL/LgHqme/M+vNVfet7uv2yw8pB2u5Gixw==, tarball: file:projects/arm-billingbenefits.tgz} + resolution: {integrity: sha512-Eq6rb2WZ6pvbw8caLmTH6C6HiU/Ku9XkC0181tbgMf+MASmsIj3sM3FvE2l0Hmlc546wRkX2w3YBBfJcGw/ZVA==, tarball: file:projects/arm-billingbenefits.tgz} name: '@rush-temp/arm-billingbenefits' version: 0.0.0 dependencies: @@ -12836,7 +12836,7 @@ packages: dev: false file:projects/arm-botservice.tgz: - resolution: {integrity: sha512-G2MhZd6mXFj8U2E72/U9LSL1iqHv1nqlgcL5otZR8wq4KBhpVSaRRDHx5LpW9TOlQ+OzP1Ydnko/Mu0oKWvYHg==, tarball: file:projects/arm-botservice.tgz} + resolution: {integrity: sha512-6lrDqa5ijtWtJ3ROUk0vnTfTQ3Iiu1M4JM0Ar7xYAbXd1nv1i1Ggb8mJuJhQ+iCVMHNs5eXMFVEZgiMNJ4TsaA==, tarball: file:projects/arm-botservice.tgz} name: '@rush-temp/arm-botservice' version: 0.0.0 dependencies: @@ -12866,7 +12866,7 @@ packages: dev: false file:projects/arm-cdn.tgz: - resolution: {integrity: sha512-bwve/TRV3QK91p0HCg5fYZ6H5mIFIChusBt+s2G8r5WTs2xGhvcxANsFimxkUTSK0I21bmqNvJO5pxx94YH3IQ==, tarball: file:projects/arm-cdn.tgz} + resolution: {integrity: sha512-cQZtpoog9FVwc/Tf9gqbv3f4tdMFO2hdnY24eGUAGqnJP7G8THm88e3NAA0WBfphlR/nC1HbfbBgFfM8GnsazQ==, tarball: file:projects/arm-cdn.tgz} name: '@rush-temp/arm-cdn' version: 0.0.0 dependencies: @@ -12896,7 +12896,7 @@ packages: dev: false file:projects/arm-changeanalysis.tgz: - resolution: {integrity: sha512-RopFbyzc+xCSkChS/TRZS2/Jc2gz20n+Ci7IEF5yf/HVOW1hk2o2zbI97LUh3R0E7Vah4VRdmJcC10/PiND7YA==, tarball: file:projects/arm-changeanalysis.tgz} + resolution: {integrity: sha512-ZDolxwkx6zE6VYo6pBRoC0hMViB4ZTb+vwtK2IU0mw2/Wbi95um2IyzP90c/QBSvLam/DC8xRVdVWNgUhkOVmw==, tarball: file:projects/arm-changeanalysis.tgz} name: '@rush-temp/arm-changeanalysis' version: 0.0.0 dependencies: @@ -12923,7 +12923,7 @@ packages: dev: false file:projects/arm-changes.tgz: - resolution: {integrity: sha512-lCTdOatplptheBSSJBDGoqHZ07REfY+HjVeUJFqyZq7O5tBs7T3C4B647gztgwRGwCdpZuLhbzoOUnAVuLmjhg==, tarball: file:projects/arm-changes.tgz} + resolution: {integrity: sha512-iTahnuSA5FW4xTnIp0IPc13hlmRw3qbE7cqYAs9gJlBjX9ZdAcr0qEm3B4BA0ZImWbu6+mOkwB/APfY0gU0rmw==, tarball: file:projects/arm-changes.tgz} name: '@rush-temp/arm-changes' version: 0.0.0 dependencies: @@ -12936,11 +12936,13 @@ packages: '@types/node': 18.19.33 chai: 4.3.10 cross-env: 7.0.3 + dotenv: 16.4.5 mkdirp: 3.0.1 mocha: 10.4.0 rimraf: 5.0.7 ts-node: 10.9.2(@types/node@18.19.33)(typescript@5.4.5) tslib: 2.6.2 + tsx: 4.10.5 typescript: 5.4.5 uglify-js: 3.17.4 transitivePeerDependencies: @@ -12950,7 +12952,7 @@ packages: dev: false file:projects/arm-chaos.tgz: - resolution: {integrity: sha512-sU++TWVH6yYx7AlGU2P9vb3zgV7ZHXauGcyqEXDafNPavJvz0Efq82cqOxNDVKcgEPJ3LAQGvhA6uf+mXQ9xcw==, tarball: file:projects/arm-chaos.tgz} + resolution: {integrity: sha512-Tvz4NRZorCynnGHunqsg1GsvC+JKyZcFABURmpXYX+YTYUzW/0u7zIU/qC07St3KZLKxsmHl0J2GHQe9vOtj3g==, tarball: file:projects/arm-chaos.tgz} name: '@rush-temp/arm-chaos' version: 0.0.0 dependencies: @@ -12981,7 +12983,7 @@ packages: dev: false file:projects/arm-cognitiveservices.tgz: - resolution: {integrity: sha512-eVHMyz50I9iAgHKmvGnFcHSKt+Ue/BO14h5QVcn4hWRJj8MMS+AiGKdcmy5xAGW4/l7AZrY/MJPaLQUB05CgYQ==, tarball: file:projects/arm-cognitiveservices.tgz} + resolution: {integrity: sha512-d4L6DkRzWiD0z713gSD3attJGYO5hJ5ym37WbWbf4vjAeN/xQo5V54cvj+LwNb2448qVaHgnzNFDklpZMRSvCQ==, tarball: file:projects/arm-cognitiveservices.tgz} name: '@rush-temp/arm-cognitiveservices' version: 0.0.0 dependencies: @@ -13011,7 +13013,7 @@ packages: dev: false file:projects/arm-commerce-profile-2020-09-01-hybrid.tgz: - resolution: {integrity: sha512-sYqIy6shQSmpsDwAucMGZHPyztLjnpwGjHI9CC3iUQwgc58EbwAqe/Cv1SkfJLYRlVSVcvmpRVB650I8StaXIQ==, tarball: file:projects/arm-commerce-profile-2020-09-01-hybrid.tgz} + resolution: {integrity: sha512-eimMoCEXqNCN/uBQ2qYqOdVWXXytkbDm8lijw+G5qw6Zj4g80mVWTHebNU/mzfqM/LdlBIjgKQTlgY0tC1l44A==, tarball: file:projects/arm-commerce-profile-2020-09-01-hybrid.tgz} name: '@rush-temp/arm-commerce-profile-2020-09-01-hybrid' version: 0.0.0 dependencies: @@ -13039,7 +13041,7 @@ packages: dev: false file:projects/arm-commerce.tgz: - resolution: {integrity: sha512-5iiFDyT1o4aX4V2+FSHDPgjUYJWw1laPRpXWUlj7i+aWysMwqTsgvNdcip0Ov2sYb4nTxE6xET58qGwVaXobwg==, tarball: file:projects/arm-commerce.tgz} + resolution: {integrity: sha512-UkGfaswQUf4IrCsIafxZm1pZdm6ARzhwuWY7wdHS9UNPKBOUN/s33ajLHYgswGxeCWMF9yM0bpKtB2CdwcRoSg==, tarball: file:projects/arm-commerce.tgz} name: '@rush-temp/arm-commerce' version: 0.0.0 dependencies: @@ -13066,7 +13068,7 @@ packages: dev: false file:projects/arm-commitmentplans.tgz: - resolution: {integrity: sha512-vCIt4Y3MOl70j9eEj/Aa7Xvigmyqzh4/l8fMJznWdTQWoieCbu3IYhF9gqkBdMPitdiBbIZTBngAbxpCSYNFoA==, tarball: file:projects/arm-commitmentplans.tgz} + resolution: {integrity: sha512-HcWHFGs3LkI2cObWbHBgyLbtkUANRx/CcpQB94Ij1bRecNnKlECSYUWO/Sbaa/KuM0gRC4Qe5qMhF8hJZx6TCw==, tarball: file:projects/arm-commitmentplans.tgz} name: '@rush-temp/arm-commitmentplans' version: 0.0.0 dependencies: @@ -13093,7 +13095,7 @@ packages: dev: false file:projects/arm-communication.tgz: - resolution: {integrity: sha512-SZl0h9qRxxIedVdvEXUmJ6SzYggsek9T0HjDpWWQH8/WaU4kPP7tOUDOvVwGmu4Y1HfZ+J8TMfxCxEz2a7hJPA==, tarball: file:projects/arm-communication.tgz} + resolution: {integrity: sha512-ZHGKr0y2aKvxmZ/n9R1GveuVTXpxuuGCxF72dfIDbWY2f057+xVojBh5RUi0a6DvQwA3qxwrztZ8DSNRxsKDVQ==, tarball: file:projects/arm-communication.tgz} name: '@rush-temp/arm-communication' version: 0.0.0 dependencies: @@ -13123,7 +13125,7 @@ packages: dev: false file:projects/arm-compute-1.tgz: - resolution: {integrity: sha512-Nn/kOyVC0eXuzUaWD8RBfQc4AhoMhISBWsOp0zBylsW+/394F4R5EMZ6sLYSPedqK8323hZYJM0E2Q0oTK4Aqw==, tarball: file:projects/arm-compute-1.tgz} + resolution: {integrity: sha512-D5urrfqEdVKKBCW/Z9tNK8m9M56W0IjKOhRWCutVSUoAziqB/JuRP0KCKgaqomEeDX4j0xQwXSmWo7SueqNpkw==, tarball: file:projects/arm-compute-1.tgz} name: '@rush-temp/arm-compute-1' version: 0.0.0 dependencies: @@ -13154,7 +13156,7 @@ packages: dev: false file:projects/arm-compute-profile-2020-09-01-hybrid.tgz: - resolution: {integrity: sha512-QgesjisprNmFJvRUxfjNj3jmTMGggBQkSzFAlxOBrddPmmrxgOpiR77b8MBLg1bxtP5C4IfNYS3CqIOYVwNIag==, tarball: file:projects/arm-compute-profile-2020-09-01-hybrid.tgz} + resolution: {integrity: sha512-WXIdu4X6gR2UKY3M1JON39/Zpau9HOvduoeYJCTD08tUa3j0UgOhQRm5Vup1M8rGfVVvmBTHXiP5MIyEIhUr8A==, tarball: file:projects/arm-compute-profile-2020-09-01-hybrid.tgz} name: '@rush-temp/arm-compute-profile-2020-09-01-hybrid' version: 0.0.0 dependencies: @@ -13184,7 +13186,7 @@ packages: dev: false file:projects/arm-compute.tgz: - resolution: {integrity: sha512-ayS77Ztox2i7yCBld3HpfQ/618UH6P2ImLR3rDlI3t5O0hxfxTWMhXl3CnJ33znD7o2aiFof/z5kc30RCkGTpw==, tarball: file:projects/arm-compute.tgz} + resolution: {integrity: sha512-C6YIc6rBW1tCZ2KOCe58SuxgPbwwX76X1koD4na8WgV4/LvapBROHlZ/ZiWziK+7wCMn7msg2yIvisJf17Fsxw==, tarball: file:projects/arm-compute.tgz} name: '@rush-temp/arm-compute' version: 0.0.0 dependencies: @@ -13231,7 +13233,7 @@ packages: dev: false file:projects/arm-confidentialledger.tgz: - resolution: {integrity: sha512-PxPlIFyWJfww6m8WDQSiJb1g8FQrGOqqFgj06zGEKXlXJPpOxY9x0kvfFk0ZLV4t2XKf2VTdjhZTZjfjx9xSwg==, tarball: file:projects/arm-confidentialledger.tgz} + resolution: {integrity: sha512-vw9tyQrxgn/u61pr4GtAF1R4zmQ/UP0ORXJHKQ5rc757o8tOo76WWTZCJHT9FUYA8ciTSoTNShTHeRxb1YRfaQ==, tarball: file:projects/arm-confidentialledger.tgz} name: '@rush-temp/arm-confidentialledger' version: 0.0.0 dependencies: @@ -13262,7 +13264,7 @@ packages: dev: false file:projects/arm-confluent.tgz: - resolution: {integrity: sha512-+zshbbjMcl87yuPPlnT6evvsRpYvqbYCilnNxKhbyDwcXqi6EBlFn+1kQWot9jo2qCd5QaIMk9+QbC9HUWqzZw==, tarball: file:projects/arm-confluent.tgz} + resolution: {integrity: sha512-+x51mU5Nar6WM4zihTTvonFGKpdVivQ+zw3fJsagt4qxTyrE9DUeGONQPC5H02e5+eQIJ2COHosU/ke7E6Ij+g==, tarball: file:projects/arm-confluent.tgz} name: '@rush-temp/arm-confluent' version: 0.0.0 dependencies: @@ -13292,7 +13294,7 @@ packages: dev: false file:projects/arm-connectedvmware.tgz: - resolution: {integrity: sha512-+UeqKircD5Uz4XV7Na6l7fr7zkqsT2eB/Ky+0iqK3aN3xcwIu08empCUBbUarkR8tviLZy95Tq6gro+KJgBabA==, tarball: file:projects/arm-connectedvmware.tgz} + resolution: {integrity: sha512-Apk/DxbCgdHvRMIYCXkTFXP6JWehXKX1OmAHOad/B9d5GcVp3/5tbWCKG1BBj7pOyQrsZgfhpo7imy1pY9/yoQ==, tarball: file:projects/arm-connectedvmware.tgz} name: '@rush-temp/arm-connectedvmware' version: 0.0.0 dependencies: @@ -13322,7 +13324,7 @@ packages: dev: false file:projects/arm-consumption.tgz: - resolution: {integrity: sha512-7z4Dk0TnOxXF7frKJzg5I8P/nZWmexC9OjcIghnHSwT6CLgXr9GHC8okGAnFeOocRjp24jQMjsdwVV+wD+IDZw==, tarball: file:projects/arm-consumption.tgz} + resolution: {integrity: sha512-v6xA9WG28R+kxnnTRE3IG7q11bNX9BKXbyDUw4DNejhOUqUc3UjUh43v+QGbxR92ExYVQ0EReN7q7j/kqDNjVg==, tarball: file:projects/arm-consumption.tgz} name: '@rush-temp/arm-consumption' version: 0.0.0 dependencies: @@ -13350,7 +13352,7 @@ packages: dev: false file:projects/arm-containerinstance.tgz: - resolution: {integrity: sha512-WCTpwaTBk262FJ78fGedaNxIDTi+FQuiTh7iHD0h+ghDy24TdE9srZsqyzjcg+NserV5qLL/eFfvzCRHT4Ntuw==, tarball: file:projects/arm-containerinstance.tgz} + resolution: {integrity: sha512-3mMkcPusCa6a8iJROcHsObRjtQcIKv4XuP6KasQgRi19s9En+rJNzuodSfsiQj+dwVghRtzyUj+ofZL8lIVkXg==, tarball: file:projects/arm-containerinstance.tgz} name: '@rush-temp/arm-containerinstance' version: 0.0.0 dependencies: @@ -13380,7 +13382,7 @@ packages: dev: false file:projects/arm-containerregistry.tgz: - resolution: {integrity: sha512-MolrfLN9TrbxtKNL6RN5yNImxfPjPZe+1iBqcqJt2e0m8xZTIPKK+wy3ZyedtadqLWggDAwZmV1uOLcJfHBSxA==, tarball: file:projects/arm-containerregistry.tgz} + resolution: {integrity: sha512-7CgRwvWspXFXdo0FJswk4HgHC939oqEKHFY8r2b8Xo6lNNEHl51XtafQ69Kf27z/skI9S0R1OXzC0Wfmt8ynqQ==, tarball: file:projects/arm-containerregistry.tgz} name: '@rush-temp/arm-containerregistry' version: 0.0.0 dependencies: @@ -13410,7 +13412,7 @@ packages: dev: false file:projects/arm-containerservice-1.tgz: - resolution: {integrity: sha512-lcy1x8kEIaWqqfZ0ujELtUSa5U9RRUE5n7yWw/6eMTrdLZbjSVuzz8qn9YaVf3Ml7qmzu4wCWLSzBd9apa9ucw==, tarball: file:projects/arm-containerservice-1.tgz} + resolution: {integrity: sha512-bVKsJu2e9fy1EjBEN/vO7eFlpm02g8DwmZ/rKGqmwz/LOtUJtSMCSLhmlhl95Y17ywnvCwm/fi0nLhsH1kVHEw==, tarball: file:projects/arm-containerservice-1.tgz} name: '@rush-temp/arm-containerservice-1' version: 0.0.0 dependencies: @@ -13441,7 +13443,7 @@ packages: dev: false file:projects/arm-containerservice.tgz: - resolution: {integrity: sha512-CugJuth+DWxuFenbrg5aYFGuYp6oWV6OTjXdGeoj1lPTCMJUO5iXcrzxG6gLeYDiPNC2YGMaLICTMmjcQH0v7w==, tarball: file:projects/arm-containerservice.tgz} + resolution: {integrity: sha512-PCEUlYKqJyQwq4Hj7lXk67hx3+fLgVmfCqGDgCANbT/FK+P+xhIj1TYfJYctwB7YmfMR6BYBWHZHzG5EKJnhKQ==, tarball: file:projects/arm-containerservice.tgz} name: '@rush-temp/arm-containerservice' version: 0.0.0 dependencies: @@ -13487,7 +13489,7 @@ packages: dev: false file:projects/arm-containerservicefleet.tgz: - resolution: {integrity: sha512-eZDi4o28ImZGOR+0BYb6YSxyKcd0DNRbEAIMSPxuA0meW1NZE6ldd4QAkJBjSEsJSw4qyRJeMFvhJ17oXke0Fg==, tarball: file:projects/arm-containerservicefleet.tgz} + resolution: {integrity: sha512-Cnu4qtNd8Ac7bC0Hz6iYfW4kbaMOSUdykobQER2UKfJEbxWbBCt39xujI0DUCl6xRldNkq4Vr2xOK8vwf6tprw==, tarball: file:projects/arm-containerservicefleet.tgz} name: '@rush-temp/arm-containerservicefleet' version: 0.0.0 dependencies: @@ -13517,7 +13519,7 @@ packages: dev: false file:projects/arm-cosmosdb.tgz: - resolution: {integrity: sha512-MBnV/yL0ri+7ZnXoqtKJQficryQtw0NgOh3d5zdiW7/HYYpSnF65IohykUO2vOzwjEmce25okqBqoNGpjXel3A==, tarball: file:projects/arm-cosmosdb.tgz} + resolution: {integrity: sha512-0GmexNX2WYEF5vM92xms5x6JnwsC9yCxEitcsOehf2mgK1deh+VhSyRevXLfsZNoPFp78GRmlmDazc0xsRjLqA==, tarball: file:projects/arm-cosmosdb.tgz} name: '@rush-temp/arm-cosmosdb' version: 0.0.0 dependencies: @@ -13547,7 +13549,7 @@ packages: dev: false file:projects/arm-cosmosdbforpostgresql.tgz: - resolution: {integrity: sha512-VHujh2x7NL1et6EcueAdTBTV84QviU89M+wexmWGaC4ZVEMIFMKpOESnhnAIKM4Y1FCxGFj30Sad0UshUOTaDQ==, tarball: file:projects/arm-cosmosdbforpostgresql.tgz} + resolution: {integrity: sha512-wd2KsqFf8doHQnsNxYh160NFeM9Dn5W9io2YVkFFU5xniloidALVDFJc07JXOQkI2mEEk1Q09sxGg8K/cU0VPQ==, tarball: file:projects/arm-cosmosdbforpostgresql.tgz} name: '@rush-temp/arm-cosmosdbforpostgresql' version: 0.0.0 dependencies: @@ -13577,7 +13579,7 @@ packages: dev: false file:projects/arm-costmanagement.tgz: - resolution: {integrity: sha512-6V1wMP6Y4nBoEEffsFzr7kWK7qphUzQlk4EnFwUGafn02wFFxyDgx9wcdwQlP7rrjIx8QPLN2oEzt8bWgU9ILQ==, tarball: file:projects/arm-costmanagement.tgz} + resolution: {integrity: sha512-KcErI+4j55rRFTkKW6MANtjeMaQtxQHtWlbqwOPw46wTS6HKqy9YqtyKRe4MTmZ6XkcCCpVaJc/CiE1pHk3OhA==, tarball: file:projects/arm-costmanagement.tgz} name: '@rush-temp/arm-costmanagement' version: 0.0.0 dependencies: @@ -13607,7 +13609,7 @@ packages: dev: false file:projects/arm-customerinsights.tgz: - resolution: {integrity: sha512-YmwjtMTKmzpTQkqVmb+ZTQ8Kvf06d2EaxqmPUyNPpKU9ds8txurhoDOgPghrj+lZuvYkm57aq3avJUfVaKL9Jw==, tarball: file:projects/arm-customerinsights.tgz} + resolution: {integrity: sha512-sDKJ0LkulPFnlZ/GEut59G5P/jp3dhD8GRZx2KakC9dppmxyRUIkz0Opa9ksbFUSPwT1+ttaXwQ7i5L6wOA/Cw==, tarball: file:projects/arm-customerinsights.tgz} name: '@rush-temp/arm-customerinsights' version: 0.0.0 dependencies: @@ -13636,7 +13638,7 @@ packages: dev: false file:projects/arm-dashboard.tgz: - resolution: {integrity: sha512-tKQ0zRFpV3V/0bf6QpyeBONJSH0W9SAbmKgD4uE8H0HU7zv9310fH84kPTWq+spin4d2NjUd8YnCdUbMIh98HA==, tarball: file:projects/arm-dashboard.tgz} + resolution: {integrity: sha512-ltP+T71iJ+sPFehN6Cj6Fq01oLvbjQHOMNEcDlGCI6aBHlWnpJ6tTnkoUhIJb25z39+FNI4B8R1IsyeuTkTRFA==, tarball: file:projects/arm-dashboard.tgz} name: '@rush-temp/arm-dashboard' version: 0.0.0 dependencies: @@ -13666,7 +13668,7 @@ packages: dev: false file:projects/arm-databox.tgz: - resolution: {integrity: sha512-snUXe8dRruI803cP/dmoxiTZekgs9AtM3KxKbukIe1jXZl+WZP1/dwlwuWV6b0ZUdM0dF5NhPQc/ZHAK4NQ32A==, tarball: file:projects/arm-databox.tgz} + resolution: {integrity: sha512-8QeMKJtTyDYFHj3wEdpFpEeoGH06JGhgyWXQHeLrK0lDXYF7dmYBy7lh5cT9E5tOUSElD7CMoR4pFvHr+qAo2A==, tarball: file:projects/arm-databox.tgz} name: '@rush-temp/arm-databox' version: 0.0.0 dependencies: @@ -13696,7 +13698,7 @@ packages: dev: false file:projects/arm-databoxedge-profile-2020-09-01-hybrid.tgz: - resolution: {integrity: sha512-lEscrgwUaJMfxAqMj2F1udK2fx1SZ8aUxg5yii1Li60IEwQBtp0LxIeoo9FaaV4I5GCRs9RlFm6RHiB7lpUWyA==, tarball: file:projects/arm-databoxedge-profile-2020-09-01-hybrid.tgz} + resolution: {integrity: sha512-zMSXvOkHZPQkNJmAL/7KaWDcs0dz743OmclpuMZCKp67rN3Mob4saRJreWV7voQO6XWLs0Jq2jOb8gVDsN1/fQ==, tarball: file:projects/arm-databoxedge-profile-2020-09-01-hybrid.tgz} name: '@rush-temp/arm-databoxedge-profile-2020-09-01-hybrid' version: 0.0.0 dependencies: @@ -13726,7 +13728,7 @@ packages: dev: false file:projects/arm-databoxedge.tgz: - resolution: {integrity: sha512-u659UHJSXGrhBl0omxiJbpFtpkPndFD7J+nXByTfOSa4j5o38O8WA18Ba/8xI4iWvrw+0Ox+yZxgfuQazGEsPg==, tarball: file:projects/arm-databoxedge.tgz} + resolution: {integrity: sha512-nyhPt4fzPfbcf+HnUWwMupeK8xB4Ut1A3fHELerAn3i8iKINx6Hg89Zz09noCvhiL+02R/mmlsQFN/M4YTXAyg==, tarball: file:projects/arm-databoxedge.tgz} name: '@rush-temp/arm-databoxedge' version: 0.0.0 dependencies: @@ -13755,7 +13757,7 @@ packages: dev: false file:projects/arm-databricks.tgz: - resolution: {integrity: sha512-a/puaALij3Tah7sNgeeYJ6aRnJ734NzRGq7A/zbbNXCxIHDy/QrPBNbB1IeYQlANv1KD7ycAH20lW7Y8NvQQYQ==, tarball: file:projects/arm-databricks.tgz} + resolution: {integrity: sha512-lMdYf/Z7WhXhcAsNzhapfOG3nhgXiu6YUtvIADLHoER4qfaBkDpQ55MOc9YFiEW4nX6E+9/LVohiCkjrc3Eibg==, tarball: file:projects/arm-databricks.tgz} name: '@rush-temp/arm-databricks' version: 0.0.0 dependencies: @@ -13785,7 +13787,7 @@ packages: dev: false file:projects/arm-datacatalog.tgz: - resolution: {integrity: sha512-Ra3wEWxRKYAtX8ykcEp915iHKHRRZS04euo0VwENXd5aXjhuUJbqm0mj9kD4YGxVKoE0osbzw44G9/5NyidB6Q==, tarball: file:projects/arm-datacatalog.tgz} + resolution: {integrity: sha512-eJSf81DsGvWlXj1NSij3KPFlguH/eMZSIUFtz+3cSsYxiedE4DBn453fgeHVJFxgfWoYsAkCLALvAnDTwscw1g==, tarball: file:projects/arm-datacatalog.tgz} name: '@rush-temp/arm-datacatalog' version: 0.0.0 dependencies: @@ -13814,7 +13816,7 @@ packages: dev: false file:projects/arm-datadog.tgz: - resolution: {integrity: sha512-nOd/hVOhSZAZsLEAxd+UjcP4KvvTurGl6eqqVWY0OjiRd/PyFkMbtaITibwS2HPW22m9HmlKfNNyekI5qt7bOA==, tarball: file:projects/arm-datadog.tgz} + resolution: {integrity: sha512-iQ8KtMGT45+VQFGh3ulDeiE+uJhkSBl6HmfrhTr76FCscJhvSMktI1QmgEfZoFRink5Xmm3o5yklk7QlV8hkmQ==, tarball: file:projects/arm-datadog.tgz} name: '@rush-temp/arm-datadog' version: 0.0.0 dependencies: @@ -13844,7 +13846,7 @@ packages: dev: false file:projects/arm-datafactory.tgz: - resolution: {integrity: sha512-VDuETRwbnM4xjDPT4pjRJkjAMZBoWUIOx1VX4OSZ2AIMvKsr+TUDFyzzPAOixloCEMIFIDjyRaG9DCCDvgPsGQ==, tarball: file:projects/arm-datafactory.tgz} + resolution: {integrity: sha512-FjLDdtqvucdf/sqBmRdcmjjBylhFV45VRdzHbMBlSWE75MMDyUOPINbmv0X0FYEZo0RhqcUQwqfSpVQA1AAM4g==, tarball: file:projects/arm-datafactory.tgz} name: '@rush-temp/arm-datafactory' version: 0.0.0 dependencies: @@ -13874,7 +13876,7 @@ packages: dev: false file:projects/arm-datalake-analytics.tgz: - resolution: {integrity: sha512-AMSYDgYccWyW/UIAynADo5Ewt6K5RQMFjv2MEA9xgOBXq+g469U+Hir7r5a5gvaVcPyQCJfHCNxVjjTv/+rHiQ==, tarball: file:projects/arm-datalake-analytics.tgz} + resolution: {integrity: sha512-vKXRT+CQplO68riVniiSLXMDDoVYfwcfR+fcg3NHiAimADXhQe2V2Dih1MN031mkJjZErxzi4xD01BqG8C1Kew==, tarball: file:projects/arm-datalake-analytics.tgz} name: '@rush-temp/arm-datalake-analytics' version: 0.0.0 dependencies: @@ -13903,7 +13905,7 @@ packages: dev: false file:projects/arm-datamigration.tgz: - resolution: {integrity: sha512-VLjPktB+2zBqGv48KYV8FpZnsNys1jPA7cHSZU83dbjPv63CJTvKCX1AUB03rv/P25tJiJF6qvb4DJAsxBemLQ==, tarball: file:projects/arm-datamigration.tgz} + resolution: {integrity: sha512-+VMNTU22qzKTLQ94Kau820B3Y5TvMfa1rWbuH2s4G/1nLJYoHaAzV+ajv+UYrkPYyKdtA+1+Y8UtMp0FF5//CQ==, tarball: file:projects/arm-datamigration.tgz} name: '@rush-temp/arm-datamigration' version: 0.0.0 dependencies: @@ -13932,7 +13934,7 @@ packages: dev: false file:projects/arm-dataprotection.tgz: - resolution: {integrity: sha512-F7qlpUrI5wiqm2I1jBVsA42a1mW2k3PvbwFO37g4db40TQhXVVdnTDtDtFKzVpXtSbtH0z6YgTKXJiPv9y0mpQ==, tarball: file:projects/arm-dataprotection.tgz} + resolution: {integrity: sha512-+nt63ddgjPdgZJBqZMuMSxon5cePtnG3tCDhPH10ByO/IhZCJK7CrboEjIIJ5/fIO0juwI3j4B3pMFSTnglNUg==, tarball: file:projects/arm-dataprotection.tgz} name: '@rush-temp/arm-dataprotection' version: 0.0.0 dependencies: @@ -13962,7 +13964,7 @@ packages: dev: false file:projects/arm-defendereasm.tgz: - resolution: {integrity: sha512-HcgsirIIZynG70wdTGMbmYOYdS63gpbnZcWg4Y80k88ELhOC9NRvkGjWPJeMrhzoMX8Jh0CmIFzTwSL5wVDtjg==, tarball: file:projects/arm-defendereasm.tgz} + resolution: {integrity: sha512-IbBJX+hNSDUJgF1WKrOP4URCzZ9khaY6oss4/QDv90TPxd4LleJYLGIkkQtpRvVaUR4S8HaQPFx0O+nrCz2DYw==, tarball: file:projects/arm-defendereasm.tgz} name: '@rush-temp/arm-defendereasm' version: 0.0.0 dependencies: @@ -13992,7 +13994,7 @@ packages: dev: false file:projects/arm-deploymentmanager.tgz: - resolution: {integrity: sha512-Bm46oafgnuo6Ebu8/Jpn90Fv5cXrfv3suZW+Na57iup6cvWjqcV0h1B435KVJvQHspV77UBfMRX2lRYGM9d1iw==, tarball: file:projects/arm-deploymentmanager.tgz} + resolution: {integrity: sha512-QOXOZmT9PsI11iE7MIupB4GLj1EQ+3x5WwyeqNKnLex7nxsOJ9xXbqQL3MtlT+asX6Z4ds4BnxXIfHB7XHWaMQ==, tarball: file:projects/arm-deploymentmanager.tgz} name: '@rush-temp/arm-deploymentmanager' version: 0.0.0 dependencies: @@ -14021,7 +14023,7 @@ packages: dev: false file:projects/arm-desktopvirtualization.tgz: - resolution: {integrity: sha512-/YWvP5NfU3QE2dkMZKrs5x6DcKR1paPJ6ISX9XDtNUaiD4O+cpPPkDOM/YdknHiSPq6/v/kdPDMaIAl/POev5g==, tarball: file:projects/arm-desktopvirtualization.tgz} + resolution: {integrity: sha512-g1LYZ8+LQpok5ISdWIEG3l400smC8D1TPrcFULQ02XAiNtIMvpFW/IYvhDmsksC4tHRITRYXc7KgDioJOFIluA==, tarball: file:projects/arm-desktopvirtualization.tgz} name: '@rush-temp/arm-desktopvirtualization' version: 0.0.0 dependencies: @@ -14049,7 +14051,7 @@ packages: dev: false file:projects/arm-devcenter.tgz: - resolution: {integrity: sha512-J97BX6K+lMu4HJhmixnsP7RDmH+WceVUEVVVNmnD1AL7NsSQNffeB08FTlOY9gp+lC6OH7BOjg9eAvTFouzFrQ==, tarball: file:projects/arm-devcenter.tgz} + resolution: {integrity: sha512-RfoFaKu+F1HRy0q1C7nnZe8xxIAuhLCYcu3m/KXmP1D3WhCBPfoIN1hWWTgZdOq28A8V9zHr3o3SbxgltsJMUA==, tarball: file:projects/arm-devcenter.tgz} name: '@rush-temp/arm-devcenter' version: 0.0.0 dependencies: @@ -14080,7 +14082,7 @@ packages: dev: false file:projects/arm-devhub.tgz: - resolution: {integrity: sha512-B9u6Zgdya9u5MxIOugcDp27+KM2Nq7vrXeLfBMGgE8N51mc3VfCeOjRt1evb+iUV8Px2V+3sQaJoSWTx//l4nA==, tarball: file:projects/arm-devhub.tgz} + resolution: {integrity: sha512-ihxaGfsco83NJ/QMJXTAMXdAh0VDeFACvo3+2bu+HNAK8u1DZ5nGOwcrQ4dw/vebel8muS3NX1LmsrkGHMvayQ==, tarball: file:projects/arm-devhub.tgz} name: '@rush-temp/arm-devhub' version: 0.0.0 dependencies: @@ -14108,7 +14110,7 @@ packages: dev: false file:projects/arm-deviceprovisioningservices.tgz: - resolution: {integrity: sha512-fPXigdpTLteooNYED9V1N2UlxNAXrmfBomjjXZ2q2JcyF3EoUYxDoTKHWeS0yO4QZpnbwzOWe+eZozqkzTzpgQ==, tarball: file:projects/arm-deviceprovisioningservices.tgz} + resolution: {integrity: sha512-q3tf5V9yIuxRvQ1sohYMHue4Qwik4tEIU3ayIWRoKk2CreKt5erqtdNV3xw/JYBh7T5uNxtMJ0MqZy57efFmQw==, tarball: file:projects/arm-deviceprovisioningservices.tgz} name: '@rush-temp/arm-deviceprovisioningservices' version: 0.0.0 dependencies: @@ -14138,7 +14140,7 @@ packages: dev: false file:projects/arm-deviceregistry.tgz: - resolution: {integrity: sha512-toHqmdPrJICQwcFEKLymTrqxLBiROPBFSa6j0i/JVmlHkInLdy2GlSWkF6CZ7E38vA1XOEE3jhWGQBprSFqUPA==, tarball: file:projects/arm-deviceregistry.tgz} + resolution: {integrity: sha512-GMatDE35xznBxFn9laqbhVBpsD9fWlvPw44+kLqxvtOAH3cJRWVPTOwT4NjQ3aUJ0rMmVbwoEE0CqEzNpmy+SA==, tarball: file:projects/arm-deviceregistry.tgz} name: '@rush-temp/arm-deviceregistry' version: 0.0.0 dependencies: @@ -14169,7 +14171,7 @@ packages: dev: false file:projects/arm-deviceupdate.tgz: - resolution: {integrity: sha512-2JWF01Gx7PkrE6+TuHEfLEifSrFT70mZhKvNsumHbhfjVnqxdr1Ez8iKwufg612TsOs625BbhqSmKeXjnvhKkg==, tarball: file:projects/arm-deviceupdate.tgz} + resolution: {integrity: sha512-nGATzy00/K1b/tEtCbAXAu63eUHBWS91PfiuLRFq7BhRDoqQGs7HWfQpbyZH8bP4VrMNUBuBxvMyMVLIi4dDaw==, tarball: file:projects/arm-deviceupdate.tgz} name: '@rush-temp/arm-deviceupdate' version: 0.0.0 dependencies: @@ -14199,7 +14201,7 @@ packages: dev: false file:projects/arm-devspaces.tgz: - resolution: {integrity: sha512-4S6jJOao/eo9J1EnWIE/vkYtlYLRsTdMWryGe6ILyq3JGfQj7LIvuB9gT6r3yVI4oDhzo25/u7lVUTMSLhJ/wQ==, tarball: file:projects/arm-devspaces.tgz} + resolution: {integrity: sha512-9iDDxpR5zqvJlS3n6zW+onhkxIJk+YmFsUWyBecH12XIrj0gMN+f5E/NqCiXkAD4TH5Y12bZlkouAhOFsOMlag==, tarball: file:projects/arm-devspaces.tgz} name: '@rush-temp/arm-devspaces' version: 0.0.0 dependencies: @@ -14228,7 +14230,7 @@ packages: dev: false file:projects/arm-devtestlabs.tgz: - resolution: {integrity: sha512-2M5eXFlLwhRRPBoIg+5NeZQJbn+PehVoMHr3Yj8AJxZRq8eV5ph/KDAZGgQu7+5wXOvkJlYqFu0H1FOYux7utw==, tarball: file:projects/arm-devtestlabs.tgz} + resolution: {integrity: sha512-t1o0kYdnLvFZzDXA0IsUxO46u8AT0BphgYNJ8tzHlO9fCjB044Sqb6M+UVTQdfrOT7WBwsrnr8WrcEHWp1UGPQ==, tarball: file:projects/arm-devtestlabs.tgz} name: '@rush-temp/arm-devtestlabs' version: 0.0.0 dependencies: @@ -14257,7 +14259,7 @@ packages: dev: false file:projects/arm-digitaltwins.tgz: - resolution: {integrity: sha512-YplI71s7/1v8NZTIpVuqS/JrwfFBbDS+FyMUA9cyJpJwFXrjxlIUa2N96dg114SXVU+ayOBFn/Zwa/TbrKEE3Q==, tarball: file:projects/arm-digitaltwins.tgz} + resolution: {integrity: sha512-EranoD4p+qG/E2PzoeFNBhJSbzWwTFEd1AlLI6ryAQAZVBVyx5Z+AlLuube9/XqdHSD06c1zF8Hsfqx3ZBnjmg==, tarball: file:projects/arm-digitaltwins.tgz} name: '@rush-temp/arm-digitaltwins' version: 0.0.0 dependencies: @@ -14287,7 +14289,7 @@ packages: dev: false file:projects/arm-dns-profile-2020-09-01-hybrid.tgz: - resolution: {integrity: sha512-puTccKzXOg2TcqUeWjD1P433WWa9p2JLLU5gTxNbf2NK11GHXbOQMtHBeaYLJCH0eggjJ+j0ZTEtulMwzALvFA==, tarball: file:projects/arm-dns-profile-2020-09-01-hybrid.tgz} + resolution: {integrity: sha512-7D54OU32Z0KkJgHsAxsuznXvlUxm1xwPMywRnqpFHcguO/Jhfs5UHuPquo/SotN/Z9mzy/n/dratn9chbrZksg==, tarball: file:projects/arm-dns-profile-2020-09-01-hybrid.tgz} name: '@rush-temp/arm-dns-profile-2020-09-01-hybrid' version: 0.0.0 dependencies: @@ -14317,7 +14319,7 @@ packages: dev: false file:projects/arm-dns.tgz: - resolution: {integrity: sha512-2TpCBBHq/YII1z/4AI02OfdYVvsfR3fnThp0yrz2pa+YZDFlVnF9iSaQjY9y0nf+GrNxS4+LQfuhmGKnQ8GASQ==, tarball: file:projects/arm-dns.tgz} + resolution: {integrity: sha512-YO3sDFIvn4Bpgl5ZpOPrq1Ek8f+5I4UqyWmTHZL1SF+Mi5a5IsVVmsXxsG0kXxnMHTnYVUDzyld/LRdbHPxOVQ==, tarball: file:projects/arm-dns.tgz} name: '@rush-temp/arm-dns' version: 0.0.0 dependencies: @@ -14346,7 +14348,7 @@ packages: dev: false file:projects/arm-dnsresolver.tgz: - resolution: {integrity: sha512-WPnP45iTq+XsrYZEkIwvKNwFk8nb6av2qRb2TK8gXul69suB1JGPAypeGRp+fzCAPPTxSS5ZpnGupey77mof9A==, tarball: file:projects/arm-dnsresolver.tgz} + resolution: {integrity: sha512-QLLTYoBkr1z0LoEvmgvOwY3Q3fIKhcVbDbzxy9kA3Vs9RuTrppPTIO+tqaWyhJnYI45L+hIh4htum1trJgWW9Q==, tarball: file:projects/arm-dnsresolver.tgz} name: '@rush-temp/arm-dnsresolver' version: 0.0.0 dependencies: @@ -14376,7 +14378,7 @@ packages: dev: false file:projects/arm-domainservices.tgz: - resolution: {integrity: sha512-y2TwdjdgZtrSqxhNdXa1fh+adR4GN7sM9381MIVTTTnfq7VteJdjHiyI2zP+28+yd/OBs3Pn/HquQ56JnD5MOw==, tarball: file:projects/arm-domainservices.tgz} + resolution: {integrity: sha512-UNquG1uLduui/bsLZFDb21AWnzrgWBaXJ5hdsXRF/VyZITYcOUFyPauGAFPGPI2p2BHVSil2+/v09cf+czteqA==, tarball: file:projects/arm-domainservices.tgz} name: '@rush-temp/arm-domainservices' version: 0.0.0 dependencies: @@ -14405,7 +14407,7 @@ packages: dev: false file:projects/arm-dynatrace.tgz: - resolution: {integrity: sha512-+hGk+JXugRBu9sBFrGl0JfIT+PrySTodjHD9fr2ArwL2bqFL8UFwlH3n9MtH0+LOG7U2CN5yW4/OgFVALiSwng==, tarball: file:projects/arm-dynatrace.tgz} + resolution: {integrity: sha512-R9SJXYpYB2Ua8EAwEwWv6QTjiwwFS8i5QsjF0D/8HJtZNlqOZaLX4vx6x7tQYw41vl+469wJSbncWe4C+6ZqnQ==, tarball: file:projects/arm-dynatrace.tgz} name: '@rush-temp/arm-dynatrace' version: 0.0.0 dependencies: @@ -14435,7 +14437,7 @@ packages: dev: false file:projects/arm-education.tgz: - resolution: {integrity: sha512-Qqlz8rELb2bWq/KLoxlwYoiWaQ8Ehd1+NdINgMK+nYfp3D7xHm0ozOdE1xf0Wxz/YZYOZqjaLk+HNt9dbm9WpQ==, tarball: file:projects/arm-education.tgz} + resolution: {integrity: sha512-C0LxLuYw4xahWek1OKlHKI718dMNZPLNGL3/PyLtoucSmLXjn/yhgUxE04bh5mdE+A9odMHRjJ78bEm40qhdtQ==, tarball: file:projects/arm-education.tgz} name: '@rush-temp/arm-education' version: 0.0.0 dependencies: @@ -14463,7 +14465,7 @@ packages: dev: false file:projects/arm-elastic.tgz: - resolution: {integrity: sha512-iLn+bFeBy1IO4fdGJcsg49SIxyRpijW4N+dlh+Fvy0ShqpRbpWFqjQ4EWgWMTd98uVfUqEZpYFk1z2ZSCoZjDg==, tarball: file:projects/arm-elastic.tgz} + resolution: {integrity: sha512-2B0zGaJ5R4SA8txjmWWLOg5phXICznoiWTjz+RuM8G5P/x9KTmTTP9T3UizRBhwyC3LbIF16PNQKkWWnHWxqrg==, tarball: file:projects/arm-elastic.tgz} name: '@rush-temp/arm-elastic' version: 0.0.0 dependencies: @@ -14493,7 +14495,7 @@ packages: dev: false file:projects/arm-elasticsan.tgz: - resolution: {integrity: sha512-ljH3lrw4sb4HnyYgXpTMgKqV8xPeLtvbPiyKElZz5Yhcqj5H/dyIK4f/C5lvvb2x1n+mMG3IARBr5N2ivP3xbw==, tarball: file:projects/arm-elasticsan.tgz} + resolution: {integrity: sha512-zvCkdQoyVuG4Zx5O9Y7AiTArUfOedmG5bzM8AzpDQafNtr+vlV1/ZPOLjYBI8kslwSwnPLC3KQRrAL5NcqKeMg==, tarball: file:projects/arm-elasticsan.tgz} name: '@rush-temp/arm-elasticsan' version: 0.0.0 dependencies: @@ -14523,7 +14525,7 @@ packages: dev: false file:projects/arm-eventgrid.tgz: - resolution: {integrity: sha512-SBg+EdbHb3brYOJEg7K3FncdcRqpw3Kjok97H7YEp1+LLiR1Kkr8IpM/N/VM1O3SL1OESMaruN9Z3l76jtSghg==, tarball: file:projects/arm-eventgrid.tgz} + resolution: {integrity: sha512-VAKwwYr2niyvPwPy+YZcblxWLPOtNBAm+ew5isJGF+VslMXttOcPrpxO2HLfloWhyNVE+lnDYRY/eI3MpwJ7cw==, tarball: file:projects/arm-eventgrid.tgz} name: '@rush-temp/arm-eventgrid' version: 0.0.0 dependencies: @@ -14553,7 +14555,7 @@ packages: dev: false file:projects/arm-eventhub-profile-2020-09-01-hybrid.tgz: - resolution: {integrity: sha512-qzVdVaTfgLtst7T/pk5XOxLdepfarqRUjlrmWO2iQtOm+Arww0HRSsKWMnuQ5WhzT4+BoZ09Ksawo5Zs1tUT4w==, tarball: file:projects/arm-eventhub-profile-2020-09-01-hybrid.tgz} + resolution: {integrity: sha512-E3MXCJtV2hnEmKIaglR6PDVVMTxuJzWvN02riT70/oSCJZf3+Bn/8/mYhlpcNa9bWpCvyhbVSM6Akh+pALArkQ==, tarball: file:projects/arm-eventhub-profile-2020-09-01-hybrid.tgz} name: '@rush-temp/arm-eventhub-profile-2020-09-01-hybrid' version: 0.0.0 dependencies: @@ -14583,7 +14585,7 @@ packages: dev: false file:projects/arm-eventhub.tgz: - resolution: {integrity: sha512-PCnuzFGByYDof8EOomRy2CjenUACmyHYNCmeGoZ1z/k59Lc5LwbiFtT0CIkYYEPepoDjsoOgExOj9n1qmpmoTA==, tarball: file:projects/arm-eventhub.tgz} + resolution: {integrity: sha512-eFi8c4l061RY7uVhCUlUqLaQLpc+7+pTotzkTuTsJTZMCuDJ1H7eKE3UVAx7vz0eifrk8kTIBs7akMD9VQulmA==, tarball: file:projects/arm-eventhub.tgz} name: '@rush-temp/arm-eventhub' version: 0.0.0 dependencies: @@ -14614,7 +14616,7 @@ packages: dev: false file:projects/arm-extendedlocation.tgz: - resolution: {integrity: sha512-1ZMyToYOdRG+YJmL8+gLt49n8RlSMT9b+mXkKI5u4HK4sWWK8cWYstGJkMJN1MPsBFtBUbbrtAMZLd28LJUNTQ==, tarball: file:projects/arm-extendedlocation.tgz} + resolution: {integrity: sha512-LceP/1USDcz1tf2RhWdc2I3t/uPElqMNAfyaaHRexOheV8vNKpJn7ObPzzGS8goLShsHkI9n9u0joVIjimA/6w==, tarball: file:projects/arm-extendedlocation.tgz} name: '@rush-temp/arm-extendedlocation' version: 0.0.0 dependencies: @@ -14644,7 +14646,7 @@ packages: dev: false file:projects/arm-features.tgz: - resolution: {integrity: sha512-PDygRDKd4PLZjk48aP0A+r6ubtXejTobxaGdKjPTsbIrkggyNV8xE4vY3WYGG7AnD1e8iHlqBZrFqgp7az8MHw==, tarball: file:projects/arm-features.tgz} + resolution: {integrity: sha512-YUHQQ/guwsqtpwhR97J2nF/1XZ6tjcJ004Q7JnWZ3+WMEGkchP/ALzZ9zPpvkzX+vGiIShU+ItVncv+ViDyDFQ==, tarball: file:projects/arm-features.tgz} name: '@rush-temp/arm-features' version: 0.0.0 dependencies: @@ -14657,11 +14659,13 @@ packages: '@types/node': 18.19.33 chai: 4.3.10 cross-env: 7.0.3 + dotenv: 16.4.5 mkdirp: 3.0.1 mocha: 10.4.0 rimraf: 5.0.7 ts-node: 10.9.2(@types/node@18.19.33)(typescript@5.4.5) tslib: 2.6.2 + tsx: 4.10.5 typescript: 5.4.5 uglify-js: 3.17.4 transitivePeerDependencies: @@ -14671,7 +14675,7 @@ packages: dev: false file:projects/arm-fluidrelay.tgz: - resolution: {integrity: sha512-u5WlYU1+A90w9J/pf2ga5HqM5hYMlWcGdhi3EtS/m9L2r7hExnEQuqtDLHW8QJfvpWllmpQFYMymM6rrYEWJzQ==, tarball: file:projects/arm-fluidrelay.tgz} + resolution: {integrity: sha512-vCmPCN35aDh3Wnd3ssJsZsU2ir1ZM1rB7ksraiQlJn/E5LngbWoLpiE3dftRPl93v9Ly6i1AOTti8M6z9KgHiQ==, tarball: file:projects/arm-fluidrelay.tgz} name: '@rush-temp/arm-fluidrelay' version: 0.0.0 dependencies: @@ -14699,7 +14703,7 @@ packages: dev: false file:projects/arm-frontdoor.tgz: - resolution: {integrity: sha512-oW3bKOjWUopBurqelzxq8dDR1lpyOZvdAVzw2gHfUQmN0WPQoY5iTk2qrlRvhmyNyls4hcICNBGqy8JhC8z5jg==, tarball: file:projects/arm-frontdoor.tgz} + resolution: {integrity: sha512-ILJlWJMp6OJ4jHz5v1pI665HzCytXl0zdwlmWlNGcJIQxvP5+3sU4p40TyNLTpM/5pTCvi6inoZi+UqVFtEf/Q==, tarball: file:projects/arm-frontdoor.tgz} name: '@rush-temp/arm-frontdoor' version: 0.0.0 dependencies: @@ -14729,7 +14733,7 @@ packages: dev: false file:projects/arm-graphservices.tgz: - resolution: {integrity: sha512-IJ1lDOuVu6aQCmCOlIIKeHoRrz8b+4BM5PU7Jz6fkcHHhdzQA9ScDO/k4pGTT9wjLSebJ50JZfDJIgMU/D/Aig==, tarball: file:projects/arm-graphservices.tgz} + resolution: {integrity: sha512-5pY0z+IzynK0cSa5D3TclvPDBZ4nVcLMowdHbefQHH358A004ir9oy3FwmB+9QuYtI+E2wbQwA11eEoj6cGNWQ==, tarball: file:projects/arm-graphservices.tgz} name: '@rush-temp/arm-graphservices' version: 0.0.0 dependencies: @@ -14759,7 +14763,7 @@ packages: dev: false file:projects/arm-guestconfiguration.tgz: - resolution: {integrity: sha512-GTpbrpDPK7vVJRuni6sEBAm2ItIPX9M3wLAJZV76z6gHvXrIEO7iGXbSzsO2tT5RCGWLb40nEKZWSNS81UktxQ==, tarball: file:projects/arm-guestconfiguration.tgz} + resolution: {integrity: sha512-82nPs+USq76GjO07wOI/87RpOCdSVmx2EfMsqOzzOAGmG/cufZ667cRljuP6aAaFBoDmMHeC0axAZRKscjpNMA==, tarball: file:projects/arm-guestconfiguration.tgz} name: '@rush-temp/arm-guestconfiguration' version: 0.0.0 dependencies: @@ -14788,7 +14792,7 @@ packages: dev: false file:projects/arm-hanaonazure.tgz: - resolution: {integrity: sha512-9zK9QdmF4kyJn7ieuLlX6vDE4ZjALN9+djnWyxZeh1P9aCFCvvbTOMb+vLJ7qCKXmEeND8EESAAN8g7X8IYCLQ==, tarball: file:projects/arm-hanaonazure.tgz} + resolution: {integrity: sha512-Vu0e+PrWLwtu3aDDUWnhM/KSQDz6jFG+HH/4xyFtWPhSLaUJvXyLZQoqwFRBBAfBaeRpgMuMBy2gXS6hKgQkQA==, tarball: file:projects/arm-hanaonazure.tgz} name: '@rush-temp/arm-hanaonazure' version: 0.0.0 dependencies: @@ -14817,7 +14821,7 @@ packages: dev: false file:projects/arm-hardwaresecuritymodules.tgz: - resolution: {integrity: sha512-7uHWsKMvJispT4rmr8FPAkUCyH/GP1xkpgi7TCvtxf8lwb+LMETPMUlKhnxhNVEE5OnX0KNdBPayVGMHJABxhA==, tarball: file:projects/arm-hardwaresecuritymodules.tgz} + resolution: {integrity: sha512-B8yOjFh0QlXIjSTnH/1jdyEKOAwvXVhUF9ktcvkwVyGVII3fokmCkPBvSj7ZZEuic6prMpEcRho4f3BwisqZcA==, tarball: file:projects/arm-hardwaresecuritymodules.tgz} name: '@rush-temp/arm-hardwaresecuritymodules' version: 0.0.0 dependencies: @@ -14847,7 +14851,7 @@ packages: dev: false file:projects/arm-hdinsight.tgz: - resolution: {integrity: sha512-ZyIP4xbAU03gBLfnQevPPpfyXy4FrAax8p2tlebKdCttEN88Td3mgAdrssoyrh9FxcpLzJZitPEG/MUhT38eVQ==, tarball: file:projects/arm-hdinsight.tgz} + resolution: {integrity: sha512-l8bZjUD9fo4yL/LwVsR76ewzZqT+UnVCZYfMAEa826YgHu8hyA6FCe2P32f1YudoheCK/jiEi+q+j/UGw9r6dQ==, tarball: file:projects/arm-hdinsight.tgz} name: '@rush-temp/arm-hdinsight' version: 0.0.0 dependencies: @@ -14877,7 +14881,7 @@ packages: dev: false file:projects/arm-hdinsightcontainers.tgz: - resolution: {integrity: sha512-ciQ1bxN92AunEanZh6Mp95nC8De2mkQogcJn8J1W0oGu+IiGWDdRuxHVFrPBzX1SGm45QGvchG1mUwFG08YwdA==, tarball: file:projects/arm-hdinsightcontainers.tgz} + resolution: {integrity: sha512-ebovHn3mwM2YvBI2084wConhknoAW/+i9YmbLYcDXvgxJbEERTm6n3i3WyMl715K5s3LZ/CS3tkGcNeWTTWwOQ==, tarball: file:projects/arm-hdinsightcontainers.tgz} name: '@rush-temp/arm-hdinsightcontainers' version: 0.0.0 dependencies: @@ -14907,7 +14911,7 @@ packages: dev: false file:projects/arm-healthbot.tgz: - resolution: {integrity: sha512-7qYfHt322X4WPNtZ973Rxtv/YvX1ChYD99FMgiBnYjH7RrRGsSKf/tYy6NFcYdGS/PpPIUAbfLYebtT809WVfQ==, tarball: file:projects/arm-healthbot.tgz} + resolution: {integrity: sha512-bwEzqpTT6a0mEF9+qnv+oj1rPlRxMYA+YuorhxZ3HJ7U5THINWkGgcnpFzN+F6lXz86Hc/lLGhxTo5rejO88Mg==, tarball: file:projects/arm-healthbot.tgz} name: '@rush-temp/arm-healthbot' version: 0.0.0 dependencies: @@ -14936,7 +14940,7 @@ packages: dev: false file:projects/arm-healthcareapis.tgz: - resolution: {integrity: sha512-TiuR4qgo+USsnf2DH/GdkvI3G5t1q0gFodLt0bpkBxT5SC9HtoLHv7GAf0GCIUKEvC9xaLcy+b2rEVFyKejNgA==, tarball: file:projects/arm-healthcareapis.tgz} + resolution: {integrity: sha512-ZZG6IphyTnxwUp1EumB2DcHPIJnwPAh0wyAJwcS7FXQkkQ+6DQetAl4EZKsNZn97J4mFDxYTPVj87I0/aHsb4Q==, tarball: file:projects/arm-healthcareapis.tgz} name: '@rush-temp/arm-healthcareapis' version: 0.0.0 dependencies: @@ -14966,7 +14970,7 @@ packages: dev: false file:projects/arm-hybridcompute.tgz: - resolution: {integrity: sha512-ZfqlB0Yw4fWwm9BUOA5rrdHuumwmYzx4yROMTBAizwlUJFsVVLr4p6S6A4f4GIiFxbSRmo4IsWSdRvkJxv2jsQ==, tarball: file:projects/arm-hybridcompute.tgz} + resolution: {integrity: sha512-mmfeBdLwjyRq/b9FslE4Z4COEJz+m7G9c5PA0FrzsIikkh26uF7TBU4T33R1uEABDbL65NH7nCWOncCgaJcN1g==, tarball: file:projects/arm-hybridcompute.tgz} name: '@rush-temp/arm-hybridcompute' version: 0.0.0 dependencies: @@ -14996,7 +15000,7 @@ packages: dev: false file:projects/arm-hybridconnectivity.tgz: - resolution: {integrity: sha512-33NtGiydGaoaJo0Ppz2V3/zs7O2iSdb6OWSigm/qdeGJd8EAD139QdFANdPmuwZI0kqlAtjcXm1LebDkXZyV7w==, tarball: file:projects/arm-hybridconnectivity.tgz} + resolution: {integrity: sha512-7+68Vak09tR2Jtm/9GDiYXZrLDrhpIgT/vs9fglyzLCfLWtfbQBB/fDLXEDfuo2SBzakHrvqHG5tY2fjKDJ9Qw==, tarball: file:projects/arm-hybridconnectivity.tgz} name: '@rush-temp/arm-hybridconnectivity' version: 0.0.0 dependencies: @@ -15024,7 +15028,7 @@ packages: dev: false file:projects/arm-hybridcontainerservice.tgz: - resolution: {integrity: sha512-RyxNvLyR1d24qi3s8hhdx8guBAkNL+jjxjnO5OQziuU45RbDqHvZVKnfDtGuUPbT75AKOAQz4BrfO7R5Dk91UA==, tarball: file:projects/arm-hybridcontainerservice.tgz} + resolution: {integrity: sha512-x+Di4bCuVNPVdcT5b+RKelPq8gjUXFmRKiNxfAe6gbFgfT4xnHmiibrn4QTWa7MoqNZ09w0oT7umF+XA8peSSw==, tarball: file:projects/arm-hybridcontainerservice.tgz} name: '@rush-temp/arm-hybridcontainerservice' version: 0.0.0 dependencies: @@ -15054,7 +15058,7 @@ packages: dev: false file:projects/arm-hybridkubernetes.tgz: - resolution: {integrity: sha512-0KsVUz3FuHC1bP+QAHA+5VlJ5ZYrM4SfUe5+fdlZlQ21XEbO+Abu+IsbAdNVKpkhGVISyZHavRrmwvlXYLQdmg==, tarball: file:projects/arm-hybridkubernetes.tgz} + resolution: {integrity: sha512-4H0CBCABnvQSHE1Kb0R26LOvSdYspBxb45tkmRYbtfH3X2FSUHR+a3wW409c2kAUXqy2U1uHyrMPUH5RV4cXxg==, tarball: file:projects/arm-hybridkubernetes.tgz} name: '@rush-temp/arm-hybridkubernetes' version: 0.0.0 dependencies: @@ -15083,7 +15087,7 @@ packages: dev: false file:projects/arm-hybridnetwork.tgz: - resolution: {integrity: sha512-kXX+OtHL1SedKE6yxLGJE9ILA8dxw45WIn0Q245tG4OFdH5RH0J+/sqNSxncwFvcfOwcG1f+CRORrdtE8xHrjA==, tarball: file:projects/arm-hybridnetwork.tgz} + resolution: {integrity: sha512-lQGRhFmb4TRdfzg5Y7/2MW2RdLlLiIAGPX9kIRPHS+ylHcnXhua3KhEZx5blp5gDWNm1KszQy5vCjib7Z+nrKQ==, tarball: file:projects/arm-hybridnetwork.tgz} name: '@rush-temp/arm-hybridnetwork' version: 0.0.0 dependencies: @@ -15113,7 +15117,7 @@ packages: dev: false file:projects/arm-imagebuilder.tgz: - resolution: {integrity: sha512-WIFbfyzDSlkPsWCn5rHregkO4lhLVIdvNMuT8xKIoxK+gNNLM7dBfzlGLz0kZ+vYoaNTCCc8lClaiEqAF4PTOw==, tarball: file:projects/arm-imagebuilder.tgz} + resolution: {integrity: sha512-ZhLDWmh649eA5wl/RujEO16BLPS7sqyEVck9r08TJVhbmn1Ocq4qAYzGqTuEtxJ1i519baUaVhEHyRb+nkik1w==, tarball: file:projects/arm-imagebuilder.tgz} name: '@rush-temp/arm-imagebuilder' version: 0.0.0 dependencies: @@ -15143,7 +15147,7 @@ packages: dev: false file:projects/arm-iotcentral.tgz: - resolution: {integrity: sha512-liQqudKElxS9BDABTXg+hbiIBssUx0hntlGZ2dXBaBT3gfaT1NMcKWyobXA3n4ASvEuRK1N+SfWmgMLYPFeYiA==, tarball: file:projects/arm-iotcentral.tgz} + resolution: {integrity: sha512-v/ogpxgSA5N8SXbn0xiJ9oqH5jKi7NPJ9+/3GQq/Ty+SaJzeqM9zw7jO7rlDG8uNYGXku7oAvOSgJKSk/v3rzQ==, tarball: file:projects/arm-iotcentral.tgz} name: '@rush-temp/arm-iotcentral' version: 0.0.0 dependencies: @@ -15172,7 +15176,7 @@ packages: dev: false file:projects/arm-iotfirmwaredefense.tgz: - resolution: {integrity: sha512-jopwhyZ+7uOVInGm3CsJUVgAX1BVoP3wIf1ZS6zb0pN+92JaMQer/xstHaqVSKTXRrYs7yhCj8Tz6HTDxjf6KA==, tarball: file:projects/arm-iotfirmwaredefense.tgz} + resolution: {integrity: sha512-Zk2iSKiwE7QCDIfugks3ynB3bqbGoVqIvWEIL8pUYGFXXyy0tKvzHWP21TsgXrA1Q4GH1H4To4Gkw2JOzqZkjw==, tarball: file:projects/arm-iotfirmwaredefense.tgz} name: '@rush-temp/arm-iotfirmwaredefense' version: 0.0.0 dependencies: @@ -15200,7 +15204,7 @@ packages: dev: false file:projects/arm-iothub-profile-2020-09-01-hybrid.tgz: - resolution: {integrity: sha512-COAYXppMt5dZocsPTzpegFcmKcqWKujoIbOL13V3xaRiyDIpDRaQ1K/oaX54H/qX1iR6cSL6JYdECg36FC1a6g==, tarball: file:projects/arm-iothub-profile-2020-09-01-hybrid.tgz} + resolution: {integrity: sha512-jyUCOh0VdDHdgl63j93JutWuEgTI+QS0ZXUJV0z/iPqzbwtNukpM2Z6n41i4f0KLRHiMNcTOA7AozQVnd+2bGg==, tarball: file:projects/arm-iothub-profile-2020-09-01-hybrid.tgz} name: '@rush-temp/arm-iothub-profile-2020-09-01-hybrid' version: 0.0.0 dependencies: @@ -15230,7 +15234,7 @@ packages: dev: false file:projects/arm-iothub.tgz: - resolution: {integrity: sha512-F43wiZ9thTfu7Ct7O3BSuPksSdqerD1hZvGsZAseZo56cgOE93PGkFFswJDhtiaIcPIdJn13iUDb9tFlVRcDmQ==, tarball: file:projects/arm-iothub.tgz} + resolution: {integrity: sha512-qzrpMniqY5UOLJu6Qul+qsNs/YxhAwFbhzbmFWa6Wk0KGTv2rlUTBeECRFo8jXvMjqegIvLWZfF9adcjv9rzng==, tarball: file:projects/arm-iothub.tgz} name: '@rush-temp/arm-iothub' version: 0.0.0 dependencies: @@ -15260,7 +15264,7 @@ packages: dev: false file:projects/arm-keyvault-profile-2020-09-01-hybrid.tgz: - resolution: {integrity: sha512-eew0BowbeQlzkMjBteWwwGVPigBcMq78xpSZvEYZTi7WQtr4HOTa3KGZ/wftY9zZAiBdrltGEc8RRfR81WsXXA==, tarball: file:projects/arm-keyvault-profile-2020-09-01-hybrid.tgz} + resolution: {integrity: sha512-6v73zZsCGr5vuPFshEDnnnLHYFqMlaiL401X7aAOaUukcct1rCx9u2pd74oEXK6UrTWSsLvww9e3Qfq+TTRLyQ==, tarball: file:projects/arm-keyvault-profile-2020-09-01-hybrid.tgz} name: '@rush-temp/arm-keyvault-profile-2020-09-01-hybrid' version: 0.0.0 dependencies: @@ -15290,7 +15294,7 @@ packages: dev: false file:projects/arm-keyvault.tgz: - resolution: {integrity: sha512-FOZUSIU9l2ZnzhLqgVfLIYa1ImGzLa5vSKWMUa78miYmL58AeH0Lcd7BdCI88wkxHx/91yoWf5I9mDdXgsjSyw==, tarball: file:projects/arm-keyvault.tgz} + resolution: {integrity: sha512-JxoREum8qt0mgqccEQyh+jwm2JS0YW3y+B2wJTZYGfI6sWuLSWoqclrsduHpypukNim9zBamgeJp+yWCJl2hMw==, tarball: file:projects/arm-keyvault.tgz} name: '@rush-temp/arm-keyvault' version: 0.0.0 dependencies: @@ -15320,7 +15324,7 @@ packages: dev: false file:projects/arm-kubernetesconfiguration.tgz: - resolution: {integrity: sha512-sNMfT8bUuIFOOjivbf8DVXD8im2EnrMCpJOYGlqFdq0WVXtvuqSL+RvRYwga22RKOrMqx0CxhOXjARl23IknUg==, tarball: file:projects/arm-kubernetesconfiguration.tgz} + resolution: {integrity: sha512-4CVrbqbP0K039Jg6tzMgLFKZVHBKIPyzYAtU6DCyRYhfRr3vo6b1fM5OkdPJkzRoB2GvM2o/EtTAecCja0PvVw==, tarball: file:projects/arm-kubernetesconfiguration.tgz} name: '@rush-temp/arm-kubernetesconfiguration' version: 0.0.0 dependencies: @@ -15350,7 +15354,7 @@ packages: dev: false file:projects/arm-kusto.tgz: - resolution: {integrity: sha512-bpn7fTzekBnNCG92rgD67AvEAeo/w1jsN9tngbXe5blnSSf2ACGfVyTqRhIZYMOv9qIzD7Y4RS5IWDAMPHiiyA==, tarball: file:projects/arm-kusto.tgz} + resolution: {integrity: sha512-wgEkqVFCMyY1fnNp6LAfjVTbMgv/GzFNJSOyGbxR+8GHLibUywm+/v+DYjLLM4C1x/ABYyQRLXaBN4Pme9+U4w==, tarball: file:projects/arm-kusto.tgz} name: '@rush-temp/arm-kusto' version: 0.0.0 dependencies: @@ -15380,7 +15384,7 @@ packages: dev: false file:projects/arm-labservices.tgz: - resolution: {integrity: sha512-mZ2e61/KOfqChADFU5tuI3at+jyuVA1LMNhqo7SFFqGbjXsyVG2TQ5Uu1Bm85ef6EFhXniPdek6RN3evJQU7ag==, tarball: file:projects/arm-labservices.tgz} + resolution: {integrity: sha512-2zW93uneDWOYO8ashXN/HjDQXW20jM042fJfbELQSXyT4Z5YW4EX+7EgWl6om+ow2T0CIHCP/3IwwVQZo6e1FA==, tarball: file:projects/arm-labservices.tgz} name: '@rush-temp/arm-labservices' version: 0.0.0 dependencies: @@ -15410,7 +15414,7 @@ packages: dev: false file:projects/arm-largeinstance.tgz: - resolution: {integrity: sha512-SRGvwa08A10+l5p39hAoYSPy53bSQTN1tt6UQbxtONAgF41Owohqovxo1ZL7eIOGvneurzT7Ca6hnWvhO8ft5w==, tarball: file:projects/arm-largeinstance.tgz} + resolution: {integrity: sha512-1abtiKgkUMW2qO1wjuIr8t5p1ez5b5LxFjh7EIvLjgCjMtVWjAMsELkRKArhenZxc/T+RO3rb7vN6V6YOpn95A==, tarball: file:projects/arm-largeinstance.tgz} name: '@rush-temp/arm-largeinstance' version: 0.0.0 dependencies: @@ -15440,7 +15444,7 @@ packages: dev: false file:projects/arm-links.tgz: - resolution: {integrity: sha512-5NNtprQi+wxcF1uWx1lX6vzHVH6XnTUSDPZfJjmZzNPEqbFqq3RUyx9zspsA3u8O5xlOLF6sFqchtrIPuw5NNg==, tarball: file:projects/arm-links.tgz} + resolution: {integrity: sha512-sYdzxUAXBxXFbhVm9zYiNs9XkDcGWp00XapykoaBzRBzIZl6UgujxMQM1zh9/DF6xszTsHN3u3VFV2Ek79Q23A==, tarball: file:projects/arm-links.tgz} name: '@rush-temp/arm-links' version: 0.0.0 dependencies: @@ -15453,11 +15457,13 @@ packages: '@types/node': 18.19.33 chai: 4.3.10 cross-env: 7.0.3 + dotenv: 16.4.5 mkdirp: 3.0.1 mocha: 10.4.0 rimraf: 5.0.7 ts-node: 10.9.2(@types/node@18.19.33)(typescript@5.4.5) tslib: 2.6.2 + tsx: 4.10.5 typescript: 5.4.5 uglify-js: 3.17.4 transitivePeerDependencies: @@ -15467,7 +15473,7 @@ packages: dev: false file:projects/arm-loadtesting.tgz: - resolution: {integrity: sha512-5EwqshTURIlvMXdl5du4+0EynIMBGTz4vkldCVr8QiA7QNkRYuBiYJz2TOl8Q76e+JxHF7pzApuCu4uOFh1UCw==, tarball: file:projects/arm-loadtesting.tgz} + resolution: {integrity: sha512-R9wxgbMIt+wUjNBh7MmEgPv7KSok8rVVxay2iskhcb2XJXq/0WqgyGmgj4KRHBpGQI07X2n1vUCyb/dcfD2UIg==, tarball: file:projects/arm-loadtesting.tgz} name: '@rush-temp/arm-loadtesting' version: 0.0.0 dependencies: @@ -15497,7 +15503,7 @@ packages: dev: false file:projects/arm-locks-profile-2020-09-01-hybrid.tgz: - resolution: {integrity: sha512-kZM2uKjbiUzaGc7qL5ugE4qWtZCcPEFUPAXiQlHvxu6lmxZGTgbkOlsF/T1FSIHIDbX8IqMYQ43SADVgMlnyiw==, tarball: file:projects/arm-locks-profile-2020-09-01-hybrid.tgz} + resolution: {integrity: sha512-npkoRV8xErVzd0ryHMqN6upbZIkqVEvv8XB7BXYvuDUI3ETV3/M6zJoQSzH6B/LrUDjSf00zD0EYNVFrCqmLfQ==, tarball: file:projects/arm-locks-profile-2020-09-01-hybrid.tgz} name: '@rush-temp/arm-locks-profile-2020-09-01-hybrid' version: 0.0.0 dependencies: @@ -15525,7 +15531,7 @@ packages: dev: false file:projects/arm-locks.tgz: - resolution: {integrity: sha512-mjbmRTflf6ZXnghr4Wu9n5VP6ZUJmkWYb5dw5abniZggG64eSwVFqs3QaiF2WCtQASWpXZHQba6B1R2JKecECw==, tarball: file:projects/arm-locks.tgz} + resolution: {integrity: sha512-Vzq8YblAOqaaq8bPntGpW2VHqxzyM7x1T/Ky9O/gmy2rZl4gFP0aZ4LS1exW+HnfskBUkYnU66OCM1Sl23KPIw==, tarball: file:projects/arm-locks.tgz} name: '@rush-temp/arm-locks' version: 0.0.0 dependencies: @@ -15538,11 +15544,13 @@ packages: '@types/node': 18.19.33 chai: 4.3.10 cross-env: 7.0.3 + dotenv: 16.4.5 mkdirp: 3.0.1 mocha: 10.4.0 rimraf: 5.0.7 ts-node: 10.9.2(@types/node@18.19.33)(typescript@5.4.5) tslib: 2.6.2 + tsx: 4.10.5 typescript: 5.4.5 uglify-js: 3.17.4 transitivePeerDependencies: @@ -15552,7 +15560,7 @@ packages: dev: false file:projects/arm-logic.tgz: - resolution: {integrity: sha512-EhSy+1o6u8q6V71ortV0/hu4s+D10gJTfc500gC4pDb3oRfSFfnNf+axzX33J5/5cpkTu2bPGP0ecUMaMRZTYA==, tarball: file:projects/arm-logic.tgz} + resolution: {integrity: sha512-uQzWPw1Yv8eLy1hERsrva/xoO5iSp5MkmIpBjdITtc8mLuil1hS4zCl8xB/OYslqWykgfH5P8f1p+Gm2zdoOKA==, tarball: file:projects/arm-logic.tgz} name: '@rush-temp/arm-logic' version: 0.0.0 dependencies: @@ -15582,7 +15590,7 @@ packages: dev: false file:projects/arm-machinelearning.tgz: - resolution: {integrity: sha512-txwLl13jHtCTfSr4lFDnmQ6G5cYPfSZDXJ0c5DEiMdyYCljCrPSG963wECi5gKEBMUSKr6US3QgZciniHDXK+Q==, tarball: file:projects/arm-machinelearning.tgz} + resolution: {integrity: sha512-uCPIp7AMhEqGPHPznv1ukvdQzyf0SBdrfxHLdR1vv2+1F5CBmbo6zxe8XgNn5iEStn0W3KDOYMrdXHvqev575g==, tarball: file:projects/arm-machinelearning.tgz} name: '@rush-temp/arm-machinelearning' version: 0.0.0 dependencies: @@ -15611,7 +15619,7 @@ packages: dev: false file:projects/arm-machinelearningcompute.tgz: - resolution: {integrity: sha512-4fKtWqRorfXaqD06yzs3BPvUEK33lccaefiyoCi/31xwvbxv0Xm3WOHKGq4SmGlJnnZRLY7VeiVHQGSB95l3Yw==, tarball: file:projects/arm-machinelearningcompute.tgz} + resolution: {integrity: sha512-Pr2MlPj6JIdCJCtEBmXcOE7w90MHcYpc0frSs7BZDHZVlr8Mb4oAs7uee88YMC780SAflGanUuy2s1pDg0NJHg==, tarball: file:projects/arm-machinelearningcompute.tgz} name: '@rush-temp/arm-machinelearningcompute' version: 0.0.0 dependencies: @@ -15640,7 +15648,7 @@ packages: dev: false file:projects/arm-machinelearningexperimentation.tgz: - resolution: {integrity: sha512-JiD2oPcqdrXXjttSp0SyeVr6C4dKjcJkZNEN4PbG/zt4MGo3yjtZBHVJosg4o9tHeCL90auikg8PNbDiGRs22Q==, tarball: file:projects/arm-machinelearningexperimentation.tgz} + resolution: {integrity: sha512-2cVUdFg+jhB+MLfcDzRrV9urgLPTB4FSC9Ej7F8p6ltMc6VsuNacg1zhq5WcdfDxRotwJCsze1muba7lJPddPA==, tarball: file:projects/arm-machinelearningexperimentation.tgz} name: '@rush-temp/arm-machinelearningexperimentation' version: 0.0.0 dependencies: @@ -15668,7 +15676,7 @@ packages: dev: false file:projects/arm-maintenance.tgz: - resolution: {integrity: sha512-c22MZSqTTJTXzBDL/ecsmAZ7W/r3i1tlDE0NuXS3ye2IiUIXVbFy0v7tB3ouR/M7so9m2N8UGdpn5HJXCs0c2g==, tarball: file:projects/arm-maintenance.tgz} + resolution: {integrity: sha512-hbHRUZj5M0xrJTPhD0alFfmvcCylwflT+/kvdK3PEKcc8RgzdquUJTL7xVzIuZfENPcW+22w7tYb8sHtJYR/Ag==, tarball: file:projects/arm-maintenance.tgz} name: '@rush-temp/arm-maintenance' version: 0.0.0 dependencies: @@ -15693,7 +15701,7 @@ packages: dev: false file:projects/arm-managedapplications.tgz: - resolution: {integrity: sha512-2VyqpG1GcMKjP19wqZ78KLOFoZWjBGksMoE28rh5ZgmPRfz2uziHxCGVd8uIxn4hlKC5UdGQ9/pm8DX9i7CsyQ==, tarball: file:projects/arm-managedapplications.tgz} + resolution: {integrity: sha512-qL8Zv2UszDgvBv6c00RICm+pCTLD+hwTszhMEEB68W880b7TqRFKDRP4dxbZXObn55miQcsIjdGZFhpYM+zOxQ==, tarball: file:projects/arm-managedapplications.tgz} name: '@rush-temp/arm-managedapplications' version: 0.0.0 dependencies: @@ -15714,6 +15722,7 @@ packages: rimraf: 5.0.7 ts-node: 10.9.2(@types/node@18.19.33)(typescript@5.4.5) tslib: 2.6.2 + tsx: 4.10.5 typescript: 5.4.5 uglify-js: 3.17.4 transitivePeerDependencies: @@ -15723,7 +15732,7 @@ packages: dev: false file:projects/arm-managednetworkfabric.tgz: - resolution: {integrity: sha512-oTJQi0UNrEyd/N3Vf1l9Oz9TJuKrnzk8a+iBQIHDwce1xNxOtCxJ7IIVu5KJlyzkEoxINB1dxJGdDqqrzlr5vw==, tarball: file:projects/arm-managednetworkfabric.tgz} + resolution: {integrity: sha512-Yshd5V1ylytidTS9UQrr2IST7D37NN4f3XKkedKFkGwNKGPipF3VGOEuIdPiE22eJV6Esx/ZGJG2DGPj6vkHXQ==, tarball: file:projects/arm-managednetworkfabric.tgz} name: '@rush-temp/arm-managednetworkfabric' version: 0.0.0 dependencies: @@ -15753,7 +15762,7 @@ packages: dev: false file:projects/arm-managementgroups.tgz: - resolution: {integrity: sha512-vcRQc8Tj3wCWpRklJPUlA1K2+HXtRdUcsXa/gIYZA6G1Pm76A40545YsZiUriek9AxHvya6fUkED6HelVu7xNQ==, tarball: file:projects/arm-managementgroups.tgz} + resolution: {integrity: sha512-dTs5ht7anpkuJOI1Ll/tzI0YvT2luw5dqBTpM/9CSWZ7EO2J9sOn1Bn9mMXIml9w05wHVOUcxN5uMGqJq3kvaQ==, tarball: file:projects/arm-managementgroups.tgz} name: '@rush-temp/arm-managementgroups' version: 0.0.0 dependencies: @@ -15782,7 +15791,7 @@ packages: dev: false file:projects/arm-managementpartner.tgz: - resolution: {integrity: sha512-ZSHTa4THLaLN32eabB1MO3Ip5BR/eOdCeYLgDSQDItOXUZqAKlXb89YYUKdYBA2MWkif7c1vCi4UOAanf2H6+w==, tarball: file:projects/arm-managementpartner.tgz} + resolution: {integrity: sha512-ehiCqR0dzIEKHO3mi6tpKhDKovxqneE+buzfk8avTkteCqiUv8dBkAA1hCZxbMCm1MIiLelExELttwx1ST+cww==, tarball: file:projects/arm-managementpartner.tgz} name: '@rush-temp/arm-managementpartner' version: 0.0.0 dependencies: @@ -15810,7 +15819,7 @@ packages: dev: false file:projects/arm-maps.tgz: - resolution: {integrity: sha512-GCifC9yLva4dqyty06RQptzYuCev47p7e0WZNf88fJ3Qbb56laXOvM0MpLi0Tpv1GtgaYEOpAoM5o17u2JiiaQ==, tarball: file:projects/arm-maps.tgz} + resolution: {integrity: sha512-GY27bMXxjvyniMf3y7xwPQ73iZWeujAXu1oTAbBRL79cZrzFHeMpaqS2GUiof7JLu6pXg2XcW8vVqla1cEol5w==, tarball: file:projects/arm-maps.tgz} name: '@rush-temp/arm-maps' version: 0.0.0 dependencies: @@ -15838,7 +15847,7 @@ packages: dev: false file:projects/arm-mariadb.tgz: - resolution: {integrity: sha512-+pyF4nM7UOWcOP1ZissFsybkkLM/r2v1G+fPvWV4f7pBGDqhRHgH8qJ3JivqSpI8hsBHNX8DEcdGBPT8vEIrbA==, tarball: file:projects/arm-mariadb.tgz} + resolution: {integrity: sha512-N/HNyrlOZ5MvLUn/uII4OJiI+Z8csgFyaeXkqzjG4Lpnirao6wpwzuBQM33jwnPiT44ksG3YeNSxVvdDrgcEZA==, tarball: file:projects/arm-mariadb.tgz} name: '@rush-temp/arm-mariadb' version: 0.0.0 dependencies: @@ -15867,7 +15876,7 @@ packages: dev: false file:projects/arm-marketplaceordering.tgz: - resolution: {integrity: sha512-ANQmyDAjShNelT5M7ND1QZYpTo0+uFd/SP6kysNTNOyyX5ScNiYq8sItTsKe9V67rpFr69L+wYqmog5xUilgvg==, tarball: file:projects/arm-marketplaceordering.tgz} + resolution: {integrity: sha512-P+PmKuYxobQrMGJWkZwWuIq+3XmbBSX2i1Lap1fhT+RJ/MLAObDsKHpHH8iEyG4m/x66Fn7ccLE3+wKVqNtjnw==, tarball: file:projects/arm-marketplaceordering.tgz} name: '@rush-temp/arm-marketplaceordering' version: 0.0.0 dependencies: @@ -15895,7 +15904,7 @@ packages: dev: false file:projects/arm-mediaservices.tgz: - resolution: {integrity: sha512-4AWyKpM/JF27N34ss52OIrPSjaCLo1Q/MGg/kXSznZpvxy4eU1h3h2t72hDZKnEeS0NySMlk+16GYC7bmNbT9g==, tarball: file:projects/arm-mediaservices.tgz} + resolution: {integrity: sha512-m3mR/zUPGsuzSluz3JEG3S7SFx0N5l8S1f9LYtzEuGsy9lwA9Xg/STm2foIiNLyDc+eqv2nE3wsjt+CYrA4dJA==, tarball: file:projects/arm-mediaservices.tgz} name: '@rush-temp/arm-mediaservices' version: 0.0.0 dependencies: @@ -15925,7 +15934,7 @@ packages: dev: false file:projects/arm-migrate.tgz: - resolution: {integrity: sha512-Z9cyXCZTEXu2g+HJ2aVB8Nntq6X1owFcShWFeRwwAcahEmXXeAlUGIR9NOSXfOMSrUZXxQ+93zEmHml7voiQWg==, tarball: file:projects/arm-migrate.tgz} + resolution: {integrity: sha512-EsS1GvkgztGc6dhKLiNiKoE69zFVj5y18zLsh+Q8Yp1Fb2zUlcGPPRrHB00iLP4nQMQ6CnWMu9jCSUDDQL7Yyw==, tarball: file:projects/arm-migrate.tgz} name: '@rush-temp/arm-migrate' version: 0.0.0 dependencies: @@ -15953,7 +15962,7 @@ packages: dev: false file:projects/arm-migrationdiscoverysap.tgz: - resolution: {integrity: sha512-v0zAOwEAE/W61uyVkwoB7MgdW8XzfYmIIA8Oz6u9DoFzAaDf5XGtIgk50bnj93K6tBXRSCJ4zf4k3VLQL9CjTw==, tarball: file:projects/arm-migrationdiscoverysap.tgz} + resolution: {integrity: sha512-SaMywy514OIbO8uglvFt4/RpHEbC8lrLiHSPzFib/BtepfyCiy8PM1hTM3ZWM02LZ5ACmmwLe7OoHjb1pHvcXA==, tarball: file:projects/arm-migrationdiscoverysap.tgz} name: '@rush-temp/arm-migrationdiscoverysap' version: 0.0.0 dependencies: @@ -15983,7 +15992,7 @@ packages: dev: false file:projects/arm-mixedreality.tgz: - resolution: {integrity: sha512-VJUXWpYpcKBTTw+1liV8Jk0xgCvLt/MgKzzPTAMM+o/bJX3E1b/smDFnh5w6JWDCrbzu0+nRSNX84d6+U19lJQ==, tarball: file:projects/arm-mixedreality.tgz} + resolution: {integrity: sha512-5Vn/EXr5XUov9XuD2UYqduyPHiJ7Tko9dKKma4RRCQ1Uta6+127kscIJwzIR/Bk9ONR9OaDyE4cYLg6uMxy5ow==, tarball: file:projects/arm-mixedreality.tgz} name: '@rush-temp/arm-mixedreality' version: 0.0.0 dependencies: @@ -16010,7 +16019,7 @@ packages: dev: false file:projects/arm-mobilenetwork.tgz: - resolution: {integrity: sha512-oLlUZgJdQh72aFW6iJiCNSDNh5gx8080a1Di/9p94hjPuEnmEpM4irUJn+MoMq6MCzC1Ooadcyf1JZcw3sDlFw==, tarball: file:projects/arm-mobilenetwork.tgz} + resolution: {integrity: sha512-slUAJZvSsk1+EpqJ8YugCfBk8uqFbtwiB8oiq1+AZujWJgV6fjRqSVQFsF8NRrpMO+kqsGDWE87UM6RyJKvHbg==, tarball: file:projects/arm-mobilenetwork.tgz} name: '@rush-temp/arm-mobilenetwork' version: 0.0.0 dependencies: @@ -16040,7 +16049,7 @@ packages: dev: false file:projects/arm-monitor-profile-2020-09-01-hybrid.tgz: - resolution: {integrity: sha512-gYGqHxDXms9/ZY+T2PYwVCru7G3Cnqsx8Eo/GBLYU+LGJog0rDGzxap1krGfbahuVYASdQUSkRXHb2iqAfOBsA==, tarball: file:projects/arm-monitor-profile-2020-09-01-hybrid.tgz} + resolution: {integrity: sha512-mUeMDbFigcOs/MlAq31TLxGxgvVcgqFXbk+fbbX5qxZXUueq5UQvzXqMWWXM8RIMOZ/71xSpxFM9hAyX57vX4A==, tarball: file:projects/arm-monitor-profile-2020-09-01-hybrid.tgz} name: '@rush-temp/arm-monitor-profile-2020-09-01-hybrid' version: 0.0.0 dependencies: @@ -16068,7 +16077,7 @@ packages: dev: false file:projects/arm-monitor.tgz: - resolution: {integrity: sha512-09UUVoE80LzWIO+TnphdzZEp1ZdIy204GLs7DYKaLeSsj/GNrH11nrodNKsEPVGeCnG3AhlEWQdXqm8GDERgpA==, tarball: file:projects/arm-monitor.tgz} + resolution: {integrity: sha512-GxMkxv0+YNW6zXgoQP9xcN/gYWEWfPa6iWz6L0OkBDt8kyxprgmpsK3Dns5w5DssBUP8cwZ3l/RjRbfuhbdTiw==, tarball: file:projects/arm-monitor.tgz} name: '@rush-temp/arm-monitor' version: 0.0.0 dependencies: @@ -16098,7 +16107,7 @@ packages: dev: false file:projects/arm-msi.tgz: - resolution: {integrity: sha512-Y7Yc2DWhVYcE4zITuEA9QQ0KRQqNINQK5jfmTUvnJKkQ7i7Vz9UNFsuybhc7pMCY8fGyxY7WF+N3eV4qbMUl4A==, tarball: file:projects/arm-msi.tgz} + resolution: {integrity: sha512-juxLKgAMkdEBvXGWk86rXFrvuN3Czp+aAQ2uKjYMLkUG08vFvIYhgjcrPkiJU4BmTwLmr7Q9kiT0y+wpy4681A==, tarball: file:projects/arm-msi.tgz} name: '@rush-temp/arm-msi' version: 0.0.0 dependencies: @@ -16126,7 +16135,7 @@ packages: dev: false file:projects/arm-mysql-flexible.tgz: - resolution: {integrity: sha512-49rhWGCbko/ckP4uMwImY+XtPqAEuQxtSjaLK/cvWW/3n1VKS48T3gbNASQZgf6VnXlzfZwrLfc7gXZL+rMDpg==, tarball: file:projects/arm-mysql-flexible.tgz} + resolution: {integrity: sha512-yS3m42609T+EiBycy+D7W/xkeQp1SrtQTGTbP1AScRgiuvdu66KhXSD9DzOz5eXQsfJVtOeQ13ts+igbdrkMKQ==, tarball: file:projects/arm-mysql-flexible.tgz} name: '@rush-temp/arm-mysql-flexible' version: 0.0.0 dependencies: @@ -16156,7 +16165,7 @@ packages: dev: false file:projects/arm-mysql.tgz: - resolution: {integrity: sha512-3TJM5a2Qd8EeSIlKeKS39TyHde6bOLNK6gKmjFq7SkQSdEcqBX5vCfcG4p0WDw/+gKaA/MUzn8qF3m2CBgzf3Q==, tarball: file:projects/arm-mysql.tgz} + resolution: {integrity: sha512-nAVcgMcvjQSDpa+465azHocSkEPlaxd6GtkJZscPa7tTpkAz7oT5I9CjnenYDp9lXvok0u6TnOPxfmZ7tQG2lA==, tarball: file:projects/arm-mysql.tgz} name: '@rush-temp/arm-mysql' version: 0.0.0 dependencies: @@ -16185,7 +16194,7 @@ packages: dev: false file:projects/arm-netapp.tgz: - resolution: {integrity: sha512-da8kMQISQml4NC4xJk261SDxaiIvPqfjuYYNlaldDY/DFy5glQxCZtgXBQMUJq4ug0iO2BlxBUVxvpvtR7mpyg==, tarball: file:projects/arm-netapp.tgz} + resolution: {integrity: sha512-nTeu4weXUJ9ehkBOHDtMY/cjBLt15EGYqMxpWSplA/9psrd/24Q/aTzvG6VgXHe1rzWfTe15bWwoRz/0xKXydA==, tarball: file:projects/arm-netapp.tgz} name: '@rush-temp/arm-netapp' version: 0.0.0 dependencies: @@ -16215,7 +16224,7 @@ packages: dev: false file:projects/arm-network-1.tgz: - resolution: {integrity: sha512-P0n6tUfbodiXYxvWI+EnYalaMc9HHM9JAlsiVO7atPdEyIDsA8I688l3nIfVAEEjpXpMaRvTXj7K1Z7TYrT+3A==, tarball: file:projects/arm-network-1.tgz} + resolution: {integrity: sha512-wEi3DraOYti+jaS9TaMu2Q7c+lVH+QZvohyYfbMto/rTNUTpg0evOwuRIhQcH2wDaGsiMMqA2nGegsQCn0yv0g==, tarball: file:projects/arm-network-1.tgz} name: '@rush-temp/arm-network-1' version: 0.0.0 dependencies: @@ -16245,7 +16254,7 @@ packages: dev: false file:projects/arm-network-profile-2020-09-01-hybrid.tgz: - resolution: {integrity: sha512-SvG/3Ds71axm6f+QfuqRKl/+rHADZn54u3X73unhO0QWWbI2TuE/nxV/4fMvaLdJGyGzB35BunOHPfNmJJDmbg==, tarball: file:projects/arm-network-profile-2020-09-01-hybrid.tgz} + resolution: {integrity: sha512-6UCazr/RscZFdpZZ1C4gh883WtXZJENsdhuVjeqOClo1Xh8++bPhs+iIPpZquRnzqiBLfnVY+0YEZMfp4DX8tw==, tarball: file:projects/arm-network-profile-2020-09-01-hybrid.tgz} name: '@rush-temp/arm-network-profile-2020-09-01-hybrid' version: 0.0.0 dependencies: @@ -16275,7 +16284,7 @@ packages: dev: false file:projects/arm-network.tgz: - resolution: {integrity: sha512-X0RkQ24Ptrta1BE/uUqf3sEwwzvi4tU4VZjhaDbQ1lXo3btD3QIFZ74D/yYGLoThzYqfVoMHJ0UFalKK9O+6dg==, tarball: file:projects/arm-network.tgz} + resolution: {integrity: sha512-s8TB5L7quHqZ+9d4ii7AdWrFxH8muUUzJq5WOEE6oIL40AIJoxlY/ZYN+BsA3oxOz5zoK3fvH+uG2T1y+GjqJQ==, tarball: file:projects/arm-network.tgz} name: '@rush-temp/arm-network' version: 0.0.0 dependencies: @@ -16321,7 +16330,7 @@ packages: dev: false file:projects/arm-networkanalytics.tgz: - resolution: {integrity: sha512-slnWBVpxw1dS7QIII5hBWkK2GoqDVy2BvohOuTSHDmJntEUvZvE4bcSR3ZiCOI1oIIA7PBWh4KVrSVQTHzgdAg==, tarball: file:projects/arm-networkanalytics.tgz} + resolution: {integrity: sha512-lLJd4/hABEwTZVahFDVcatGi4B1yO+cC41BEAE0Tk6tAIjNf0xbpfq5fjil0R6pCjTKm9aCJcpwSXmD74aeuhg==, tarball: file:projects/arm-networkanalytics.tgz} name: '@rush-temp/arm-networkanalytics' version: 0.0.0 dependencies: @@ -16351,7 +16360,7 @@ packages: dev: false file:projects/arm-networkcloud.tgz: - resolution: {integrity: sha512-lvZgPX3RMUmBKSRf7eXN+LirlVRXw0eQShBgZSYPHO0/r4LG2MLeHtyB0/rovC3oysUJw1Iq1Y01RDwyXdo3dg==, tarball: file:projects/arm-networkcloud.tgz} + resolution: {integrity: sha512-ijlDSaGTr47IHpVWSVwuy6goTfAb/Uxfyvtvp58nkmitytKt5t84WxbitlUUW4pPnv/3V6jyqSkPF7U88tZnrA==, tarball: file:projects/arm-networkcloud.tgz} name: '@rush-temp/arm-networkcloud' version: 0.0.0 dependencies: @@ -16381,7 +16390,7 @@ packages: dev: false file:projects/arm-networkfunction.tgz: - resolution: {integrity: sha512-s0Ey4RRYVM6wfkTmEwRtyH9B17rGFbvtqxL+QO1PUX13WcXI1K4F7Zs/3sIIj+BOSphlJHze4I6Q3GTG7sueNw==, tarball: file:projects/arm-networkfunction.tgz} + resolution: {integrity: sha512-hr888GcOBygLMmYWjrVS5gebE0w21XSQjFaLx7yQSx0J/yBBozBSZ7WA/X7Nsz6rG2qB8gE/nXw8gg4B6DA4Pg==, tarball: file:projects/arm-networkfunction.tgz} name: '@rush-temp/arm-networkfunction' version: 0.0.0 dependencies: @@ -16410,7 +16419,7 @@ packages: dev: false file:projects/arm-newrelicobservability.tgz: - resolution: {integrity: sha512-vx8WGfZY511F9Mf8zhCTL5hZgHcIV3wJ69R774P18DCwLoQRUtsW3QOpRFjxgq89lcY58BkpTqD/ltL7hnvneQ==, tarball: file:projects/arm-newrelicobservability.tgz} + resolution: {integrity: sha512-kdXO5tExkLuPBqPDGFLvlj6Ero/A+CAuYt+u8Neq4Wndd8D7N/a58AOo9laS4WxUSCi8+57pBKkiSFGehnLj2w==, tarball: file:projects/arm-newrelicobservability.tgz} name: '@rush-temp/arm-newrelicobservability' version: 0.0.0 dependencies: @@ -16440,7 +16449,7 @@ packages: dev: false file:projects/arm-nginx.tgz: - resolution: {integrity: sha512-jIddhfa43k50YepVWCQNLukwTW4oi+mIrDL67U226byMSFBh04XWh6/W27F78eaZw41FAjEVMggJQJbd0JGcLw==, tarball: file:projects/arm-nginx.tgz} + resolution: {integrity: sha512-VEsa80q55QvX2RToaUVNJEpGInjRPJE7SEOF4fT7f+HIQHDmiv0vnIF3G1uhpREAV6T7Mq5kHab1G8osdTPQAQ==, tarball: file:projects/arm-nginx.tgz} name: '@rush-temp/arm-nginx' version: 0.0.0 dependencies: @@ -16470,7 +16479,7 @@ packages: dev: false file:projects/arm-notificationhubs.tgz: - resolution: {integrity: sha512-ukqG0qcYHOoGLFAXiqaKM/aItkfCfrcMtOE84iUsdXvc6aHJTHXsrLO9gCF+PiR8SDpFF0NFCwfzvP0J2N+5qw==, tarball: file:projects/arm-notificationhubs.tgz} + resolution: {integrity: sha512-CFLzBmNzOHZhslniL/TUm5noJ4nPZ2oj80l6zVPkrD77JGbtczUaOzxPSXdQexa2XPa6hSmFUfUHvkUPhvKGtw==, tarball: file:projects/arm-notificationhubs.tgz} name: '@rush-temp/arm-notificationhubs' version: 0.0.0 dependencies: @@ -16500,7 +16509,7 @@ packages: dev: false file:projects/arm-oep.tgz: - resolution: {integrity: sha512-67fB7oz9f6H+BraPeYUSRiOVDR1F5xrh+JbINcxa7ptYz/4zJshguElxXcEBg7ZyHVzeE4+krS+15xo6FzpV5g==, tarball: file:projects/arm-oep.tgz} + resolution: {integrity: sha512-/R0GQoY1UNBAXEanM41umlrAcdkljv9hgryNj0c4Q1ozvP4udM0yCnn9IcfdUGZuKTSvqUYBwLuDZ1pLY6f4TA==, tarball: file:projects/arm-oep.tgz} name: '@rush-temp/arm-oep' version: 0.0.0 dependencies: @@ -16529,7 +16538,7 @@ packages: dev: false file:projects/arm-operationalinsights.tgz: - resolution: {integrity: sha512-sgljeojIGarB8Bd2zP7xCGOZOvz7qcjlyWjFI9Evtj+VsrBHGX1WFIl6AbGgZR9ERUoXj2Y3GYzvlLpcKCRgEQ==, tarball: file:projects/arm-operationalinsights.tgz} + resolution: {integrity: sha512-hXB82IJPZ+ol9Zfr5PgG7rh+Nutmk2lSEqMZW95NQMI3xPThYsH13g+tgaI7K2KitTD2VBeiFgh/DntuCf3Qqw==, tarball: file:projects/arm-operationalinsights.tgz} name: '@rush-temp/arm-operationalinsights' version: 0.0.0 dependencies: @@ -16559,7 +16568,7 @@ packages: dev: false file:projects/arm-operations.tgz: - resolution: {integrity: sha512-q2x6ndLC6coy0aHTEYL2ZMSywpcpVNbs0MqL/O+JGbeyamF1YMJHykbMjyg83PM56uSPxzNMLFI3pYqdbsp3gA==, tarball: file:projects/arm-operations.tgz} + resolution: {integrity: sha512-pIQra1/tX8tLRgyljVLKBUHzSshvtEu6f9j0X0uJhgLwXCUcOyAZSJGkQtCYXRfqR5AOUJYeewFJ+G97DN02oA==, tarball: file:projects/arm-operations.tgz} name: '@rush-temp/arm-operations' version: 0.0.0 dependencies: @@ -16588,7 +16597,7 @@ packages: dev: false file:projects/arm-orbital.tgz: - resolution: {integrity: sha512-XgaPFuu44TTP53vd6A8PBGRiID2WzXSAx3OYuo15MX2d3Ci02bMHSjsdJ9v1EIp7yFOjJLkJYYYa+C6arUr2AQ==, tarball: file:projects/arm-orbital.tgz} + resolution: {integrity: sha512-5R/ooM56PlrM6tZHDCd2Gbhj/dk54CFoNDfYyMdRdGEh1BXAhFNlNMhbfHqwTx7prY/uub1sywZAF9G4NEf9Sw==, tarball: file:projects/arm-orbital.tgz} name: '@rush-temp/arm-orbital' version: 0.0.0 dependencies: @@ -16618,7 +16627,7 @@ packages: dev: false file:projects/arm-paloaltonetworksngfw.tgz: - resolution: {integrity: sha512-W+/nuc9O6U93wD/Y5UzpCDzXwkMxJMLP9snCkv75J2XVqv4Y3A5J0X5GkfJ/X2RieM/rrfT/093peNxThVbGzQ==, tarball: file:projects/arm-paloaltonetworksngfw.tgz} + resolution: {integrity: sha512-kPZCjzy2lilHbWR9WTvT9vHrtyhlVo74kW7GVaC4KmuClG/7NLv6htQjWyOwmN619nV1e5Tt+LabezzrJj+ZoQ==, tarball: file:projects/arm-paloaltonetworksngfw.tgz} name: '@rush-temp/arm-paloaltonetworksngfw' version: 0.0.0 dependencies: @@ -16648,7 +16657,7 @@ packages: dev: false file:projects/arm-peering.tgz: - resolution: {integrity: sha512-KMl1ab84VdTYxE4wTctZDZ8Mljz3x0f+ITYS30M4J8IC6T0T1fN2HseENk9Aohmw6C2RpKgZhbpaw+SSwj4gDQ==, tarball: file:projects/arm-peering.tgz} + resolution: {integrity: sha512-4+FHl0yd8RfK63E1b6qXc6GVKDpKSdhkrWNyrjVW+UGbUxd89oobEz3uVocN2PLbFKk1XykX5M8P5tfXW0KMWw==, tarball: file:projects/arm-peering.tgz} name: '@rush-temp/arm-peering' version: 0.0.0 dependencies: @@ -16675,7 +16684,7 @@ packages: dev: false file:projects/arm-playwrighttesting.tgz: - resolution: {integrity: sha512-jvsyV0w0TVK3lV3+q7Jur8p5KsZBKJfMtkgQJ9NQeR2J2hfEWVB2xBZMlgEDOLw/xKRmt1DQzbGOXSwnVufpQA==, tarball: file:projects/arm-playwrighttesting.tgz} + resolution: {integrity: sha512-VCtjyZAd6HF4LRNwGZIb2aza8lYAhuYg0ZGzO79w6EWNSuab6US/ufZ7SHnM1IRL8ABUeFZH5yfQZ0qsPe0YcA==, tarball: file:projects/arm-playwrighttesting.tgz} name: '@rush-temp/arm-playwrighttesting' version: 0.0.0 dependencies: @@ -16705,7 +16714,7 @@ packages: dev: false file:projects/arm-policy-profile-2020-09-01-hybrid.tgz: - resolution: {integrity: sha512-+CVJ6VZJ+3b7sfDoEtVhLyiUe+W6zdpj/cdc4inXZA8mRW+3xqU3qr4/UsyzyqErpdhx8Z8fWihuGuvsc9TM2A==, tarball: file:projects/arm-policy-profile-2020-09-01-hybrid.tgz} + resolution: {integrity: sha512-wt2ZQ89QtMfiHgeEObNs3aTO9qSL3baSvG+qKcZHtrJSZeuL5g+LIPRfki1BEL/V1BiU5IamxaGoScqTmHhu1g==, tarball: file:projects/arm-policy-profile-2020-09-01-hybrid.tgz} name: '@rush-temp/arm-policy-profile-2020-09-01-hybrid' version: 0.0.0 dependencies: @@ -16733,7 +16742,7 @@ packages: dev: false file:projects/arm-policy.tgz: - resolution: {integrity: sha512-tevn+llcVa+h7PB9fDDZeQosXFFlgPvGVWeWtbAGzre7W5trMTmr0c96H5B5p1F8NZ+u1+bwE7zzhwhcOHFzKw==, tarball: file:projects/arm-policy.tgz} + resolution: {integrity: sha512-/AbdfRLGkG7oZZgmMKNsIN6FVZrMpeRv95eTKg09ntEzOPPobHN4c0PsOHmVe21oy4ENfRW955lUPhMqkQ8Beg==, tarball: file:projects/arm-policy.tgz} name: '@rush-temp/arm-policy' version: 0.0.0 dependencies: @@ -16752,6 +16761,7 @@ packages: rimraf: 5.0.7 ts-node: 10.9.2(@types/node@18.19.33)(typescript@5.4.5) tslib: 2.6.2 + tsx: 4.10.5 typescript: 5.4.5 uglify-js: 3.17.4 transitivePeerDependencies: @@ -16761,7 +16771,7 @@ packages: dev: false file:projects/arm-policyinsights.tgz: - resolution: {integrity: sha512-UfKMLXF/ipnrDcq4TwynZLFVaK9tfMdV9nxH8f3Jo0ke2G3XWh2d+kqhcEtdXv0EBpn9e0WB+Q4fJtROaCsbDg==, tarball: file:projects/arm-policyinsights.tgz} + resolution: {integrity: sha512-4Zoh6fnNuCkMt9E0p4s49SoSQp7Pm3/1UrEx9USsYoUJ9/ZOQsMnlRGsaqZMRBM7sLOBXlWM+etCOsP5xWoOxQ==, tarball: file:projects/arm-policyinsights.tgz} name: '@rush-temp/arm-policyinsights' version: 0.0.0 dependencies: @@ -16791,7 +16801,7 @@ packages: dev: false file:projects/arm-portal.tgz: - resolution: {integrity: sha512-FkDJkBIZ36EUmTExOygYZudg05zjFQOgjO10/t20fNADvVZwk8SnTwd8KEuvIIbTuFRj+5a117RerkrhGY2rzw==, tarball: file:projects/arm-portal.tgz} + resolution: {integrity: sha512-Uz0e9q4InfMO7xMab/rY9Ye+5gZr+WrkduLIllWqF8sIgbTEh9w1FyCvC5tUIAwA0/KZ2tOYANCzrxrYWsmgBg==, tarball: file:projects/arm-portal.tgz} name: '@rush-temp/arm-portal' version: 0.0.0 dependencies: @@ -16819,7 +16829,7 @@ packages: dev: false file:projects/arm-postgresql-flexible.tgz: - resolution: {integrity: sha512-CUbFXmQh6DciSrRNZEySqrGydRhdx6rCg519n8ZPUac3bje2HWwY9jXhENoI4JLuWRwB05caWt3w7gWQcj4QRg==, tarball: file:projects/arm-postgresql-flexible.tgz} + resolution: {integrity: sha512-zzcgPa1Hunj4Hu66k4NolAVYpvhcCVwPxQHpC1FtodosBgybNuf6t+U4t4Igz+2PO6gpo3HIGWaxSYcCrZnAJg==, tarball: file:projects/arm-postgresql-flexible.tgz} name: '@rush-temp/arm-postgresql-flexible' version: 0.0.0 dependencies: @@ -16849,7 +16859,7 @@ packages: dev: false file:projects/arm-postgresql.tgz: - resolution: {integrity: sha512-Y0k25n8HXyb/lOTZX1QAFrPlmEhqKkO+tr64olny8PPa6TLkMZivxJC8GZwku3MsaXmzBrvxZxLpmZF8Wn4xzQ==, tarball: file:projects/arm-postgresql.tgz} + resolution: {integrity: sha512-26Q3dnPk7WKt27UIfDwnSCmOfPaCSNwtRXgPiTuZdpeqTxeaTEuwYikJzIKzMKfuJg9UuH9dlwC9Xjo++X79bw==, tarball: file:projects/arm-postgresql.tgz} name: '@rush-temp/arm-postgresql' version: 0.0.0 dependencies: @@ -16878,7 +16888,7 @@ packages: dev: false file:projects/arm-powerbidedicated.tgz: - resolution: {integrity: sha512-dvSLDxvt5SFXvhcxVBWVIrYYRhX35n2MbI8fqsQVAXuRaGgdu28+UwTUrvG6T4lu4zxoPNJRnDbxDk3e2JOvFQ==, tarball: file:projects/arm-powerbidedicated.tgz} + resolution: {integrity: sha512-XmQAvxgm9s4UrXiZVVHsglTveeYkwaP0BsYNy633+s5Yyc3EnDm+legEkO6SetZs52OqHhiy5g9sY0bEf8UIqw==, tarball: file:projects/arm-powerbidedicated.tgz} name: '@rush-temp/arm-powerbidedicated' version: 0.0.0 dependencies: @@ -16908,7 +16918,7 @@ packages: dev: false file:projects/arm-powerbiembedded.tgz: - resolution: {integrity: sha512-ToKMpx4Np2fNZoeFArh2mDZo+KE1qSxNBJ4WhFgX4Gb5MxbHb374FKUd1twmkZfAIJSO5Kg/yhZrmgYHtKDFeg==, tarball: file:projects/arm-powerbiembedded.tgz} + resolution: {integrity: sha512-7p1NrmiRHonkjA1lzskPsp4gMevsRxbLRQ1y/d/eEWMJJw+WWaIlfNfzIPEFDOp0is7zUMRAGo+pqyHTDF6HIQ==, tarball: file:projects/arm-powerbiembedded.tgz} name: '@rush-temp/arm-powerbiembedded' version: 0.0.0 dependencies: @@ -16937,7 +16947,7 @@ packages: dev: false file:projects/arm-privatedns.tgz: - resolution: {integrity: sha512-OTeg4MOD1EfhZAgVLhDEFhA9j2tvnLIDI/CpUo7jRMTH/DKKXYC5y+EptiFKlh2gnp84AlxXhIc8P1NtoNVJiQ==, tarball: file:projects/arm-privatedns.tgz} + resolution: {integrity: sha512-XX/upsyOeVe+pwutokrJAbjS6FBKzy0vSINMXF357bORirkkD5zjMfQhjk5DrRmG9BlRSsaK88Q6+gF9EE5RWg==, tarball: file:projects/arm-privatedns.tgz} name: '@rush-temp/arm-privatedns' version: 0.0.0 dependencies: @@ -16967,7 +16977,7 @@ packages: dev: false file:projects/arm-purview.tgz: - resolution: {integrity: sha512-naRyqnZKSU320k5OZMtT53OB/O8WCb59y4lZKVh6rh6VIPJYh0zQGT52wCYLjVV3eSx7EWXeuJ8GiNKulH0b3g==, tarball: file:projects/arm-purview.tgz} + resolution: {integrity: sha512-uN1aSqCT6zuBzyEFvmC6lMPajX6WYjyR8tMgQ94xzA1+YBAoxJP6DFZqOtm/PLnWzGieYVi/FlBMH613jHdKmQ==, tarball: file:projects/arm-purview.tgz} name: '@rush-temp/arm-purview' version: 0.0.0 dependencies: @@ -16996,7 +17006,7 @@ packages: dev: false file:projects/arm-quantum.tgz: - resolution: {integrity: sha512-LG3bCRqDyrdDXRfaQWNoBK7iFdQ4QqN0+0bPoPfbxMOlas8xIBND+kmwPoq8PE1/aMs8+8U4UCH/6s7mGkMHbA==, tarball: file:projects/arm-quantum.tgz} + resolution: {integrity: sha512-JWcZ1aq6r6VOz8ER8AkRgtDgEi+yKvsqzG64iPIAumIg31xh5iPJB4QDrbUqc1C9vrHD8jyEI+9YiYmN8+t2Aw==, tarball: file:projects/arm-quantum.tgz} name: '@rush-temp/arm-quantum' version: 0.0.0 dependencies: @@ -17026,7 +17036,7 @@ packages: dev: false file:projects/arm-qumulo.tgz: - resolution: {integrity: sha512-J+JK5MpeGtm3Tp3zA0iEJj/++NMgjFNsI6x1wgsXzHm8wUYIVrrtZKsC5Z2XaTByQNZ3EcJLzjUxNTg+dCGTkA==, tarball: file:projects/arm-qumulo.tgz} + resolution: {integrity: sha512-en5X7IAftfR7D/KpQ/1gf/cPSJ2JF1kVTop/j6GgbynaJvYKyl49O67SGPTJYjUsNG9gRo+0CefGLGBtRSANzw==, tarball: file:projects/arm-qumulo.tgz} name: '@rush-temp/arm-qumulo' version: 0.0.0 dependencies: @@ -17056,7 +17066,7 @@ packages: dev: false file:projects/arm-quota.tgz: - resolution: {integrity: sha512-wEskdTED2UuHru5Ay5lYes6eC56jT+jR9uNLQfsOe/dFrDeRxw5rODFkvdVBz2Kv1COY4JmylFYJBRK0rpi0mg==, tarball: file:projects/arm-quota.tgz} + resolution: {integrity: sha512-kH13ggpSvR9YikQW8EwnlPf8qO+oRN8tZDiZDJwQRm1niSemDe1i2ZZ4dA8FXM9gfgu3MserjVWd51DIfMZyWg==, tarball: file:projects/arm-quota.tgz} name: '@rush-temp/arm-quota' version: 0.0.0 dependencies: @@ -17086,7 +17096,7 @@ packages: dev: false file:projects/arm-recoveryservices-siterecovery.tgz: - resolution: {integrity: sha512-NDknLKWM+Hy/DrMmHnNU59EbZ+2K7Abmdt2u5vMxc5HMf5vG+0r2y7JBr0UyUHek3UWEFrjohLCoaLrilZI08Q==, tarball: file:projects/arm-recoveryservices-siterecovery.tgz} + resolution: {integrity: sha512-VjGcZSfgYfFhRJvoLwGRmL5VFlWDLJZStlBWDpfZkS3S32TkBi/lcg0hldpA8JdxQFus9Q25fTZR98e0JMI/Ww==, tarball: file:projects/arm-recoveryservices-siterecovery.tgz} name: '@rush-temp/arm-recoveryservices-siterecovery' version: 0.0.0 dependencies: @@ -17116,7 +17126,7 @@ packages: dev: false file:projects/arm-recoveryservices.tgz: - resolution: {integrity: sha512-fWGyLHkNatNcZBXwueNZT1XGUbckK/OA86nfpNbnesEdnmvm+PRwscEiv0aCPc1dllKoWvf4ZsMi4/Pxf1nnKg==, tarball: file:projects/arm-recoveryservices.tgz} + resolution: {integrity: sha512-AQUuw6VmRac8IIQpWQWy20N7BUnU7OqYjRpHiaSgfdeuHgCzH6ZbRXzwfvG/gp8Ogl6qJMOXc+f2c6gCLDZ7Fw==, tarball: file:projects/arm-recoveryservices.tgz} name: '@rush-temp/arm-recoveryservices' version: 0.0.0 dependencies: @@ -17146,7 +17156,7 @@ packages: dev: false file:projects/arm-recoveryservicesbackup.tgz: - resolution: {integrity: sha512-u7THzIRGc205OMAdFyDdNxoKn5LJ4vUXCIZtHLftcbc/av+HWb6RFgobtQ2fq42KBAA5PN83FK7GHcQ3fFQP1w==, tarball: file:projects/arm-recoveryservicesbackup.tgz} + resolution: {integrity: sha512-7ehXELHOhtceRHxy6SUx5v+zkCIapTygDVAlkIcHPl7bBT7Trcj17AqD+zQaL5C8Bg8d5PgNbPBHdhiNxhyOdQ==, tarball: file:projects/arm-recoveryservicesbackup.tgz} name: '@rush-temp/arm-recoveryservicesbackup' version: 0.0.0 dependencies: @@ -17176,7 +17186,7 @@ packages: dev: false file:projects/arm-recoveryservicesdatareplication.tgz: - resolution: {integrity: sha512-oG7WIQK9XQUwjxRsZTcpJ8PwMBvwG5ta6WaBtFgYtLpXq1C3mIZ9Ss9SMKYxPuWLhVLHUrX6LVygge8zb1xHsQ==, tarball: file:projects/arm-recoveryservicesdatareplication.tgz} + resolution: {integrity: sha512-cmFZ4npjn0zuzYThNnmXR0yBs5v8VHaJe9uvKO9qyP4d0rSjeB33EnjQWor8RfX42bDiZg8PMXdrxI/KMhDKfg==, tarball: file:projects/arm-recoveryservicesdatareplication.tgz} name: '@rush-temp/arm-recoveryservicesdatareplication' version: 0.0.0 dependencies: @@ -17206,7 +17216,7 @@ packages: dev: false file:projects/arm-rediscache.tgz: - resolution: {integrity: sha512-VEnR353jUSEns94E5E/1hHPAUbET+R78dbG26RA9bhLaoxy9cTru0FFb94YcOXWQXQD2YsdEl2dOK2gfoOQ6QQ==, tarball: file:projects/arm-rediscache.tgz} + resolution: {integrity: sha512-bsUUIGGbARpHKxWQORBuhokwDbDv7u45R77/q8+eVMytO7ByoYIzBNKkuBcK7aRazp2alODk26+ywl8DVppV/g==, tarball: file:projects/arm-rediscache.tgz} name: '@rush-temp/arm-rediscache' version: 0.0.0 dependencies: @@ -17237,7 +17247,7 @@ packages: dev: false file:projects/arm-redisenterprisecache.tgz: - resolution: {integrity: sha512-u6sO2BtK95EdzTlC7nWVrKD2UpnbFpx5Qr/QjiQvYR9smWqJYAOwYMEKY32QTcOK4ssUhT+6okiS97wmohxsYQ==, tarball: file:projects/arm-redisenterprisecache.tgz} + resolution: {integrity: sha512-9TTyQ69S5/l1ylqkUhQ6CkByPdmUktNR3sjX/8F6LA+MvdY2fbHaVUq1zKiKiCJ35Z5tjF+w+WmKPqJo96FmeQ==, tarball: file:projects/arm-redisenterprisecache.tgz} name: '@rush-temp/arm-redisenterprisecache' version: 0.0.0 dependencies: @@ -17267,7 +17277,7 @@ packages: dev: false file:projects/arm-relay.tgz: - resolution: {integrity: sha512-Vi4vA4PXI4rTCSRxr2C7T/rJrI0GHL+MaPYpePOQHGahAtWb07ZLJDh2/r7BBNaYNdwajabwDPgjvuDU6Q/P7A==, tarball: file:projects/arm-relay.tgz} + resolution: {integrity: sha512-Zqgzz40DFauREo1j7XqX+R74RWPZA3p3FiMDpv570MLowSi5Mhs8QnRsPL54YigJC3NxEsmPdBUvAdq7OHX8Qg==, tarball: file:projects/arm-relay.tgz} name: '@rush-temp/arm-relay' version: 0.0.0 dependencies: @@ -17297,7 +17307,7 @@ packages: dev: false file:projects/arm-reservations.tgz: - resolution: {integrity: sha512-nhfEt9S8ABacYJOvv/83nx0GYKidVSAMtIxj9bk34JkvV4w5VxdXaW/FESO5AY10Gc+ifckAz0INVOgBBwEnqg==, tarball: file:projects/arm-reservations.tgz} + resolution: {integrity: sha512-OzQsNQDm/6PWpjCyGNeJ35E74VUS3i2ei5DiVfLcLFWQHMEf0C5rvbeLzvQC8mAQsumGrtz6zIHLhVxqtmvKCg==, tarball: file:projects/arm-reservations.tgz} name: '@rush-temp/arm-reservations' version: 0.0.0 dependencies: @@ -17327,7 +17337,7 @@ packages: dev: false file:projects/arm-resourceconnector.tgz: - resolution: {integrity: sha512-gubo3fpTtg1NlFiW032jiO9ioQSQjaMQu3j2rcmNuzJA6JiwikrES6MFzPZiZEwNrT8PZGUgfkcwHVer7u5dCg==, tarball: file:projects/arm-resourceconnector.tgz} + resolution: {integrity: sha512-E0kaGMCX7XZQ6uS7t7U0tBbJEDsctlXQbDn2ARVFO6Y+5/MJXF9Uh9S9EjrWv4bIdq+fS7T0/jDbceP6OMgz7Q==, tarball: file:projects/arm-resourceconnector.tgz} name: '@rush-temp/arm-resourceconnector' version: 0.0.0 dependencies: @@ -17357,7 +17367,7 @@ packages: dev: false file:projects/arm-resourcegraph.tgz: - resolution: {integrity: sha512-xHFRPk2FvCS6P3W55nwmqtCPtlIUAecrTemUK5CbCjL1HhDv8QLSIcBwvdhEJkPVY1ASUTAazpK0hgqpZed99A==, tarball: file:projects/arm-resourcegraph.tgz} + resolution: {integrity: sha512-Awh1eMRlSVtj+O95hp8UmrWIhX2B6lPIAj+qIhrIMZY5NZF5oNj1OJ4q8q7HLWvyEkWYY/NM3C4cHX5Gg4/UXA==, tarball: file:projects/arm-resourcegraph.tgz} name: '@rush-temp/arm-resourcegraph' version: 0.0.0 dependencies: @@ -17384,7 +17394,7 @@ packages: dev: false file:projects/arm-resourcehealth.tgz: - resolution: {integrity: sha512-hqLRvdXWAWDyn9MCjNPw2Mw4BNccxVwvrn9/s4KaCsH1UA80GnRMY1QpXFn5JW8gtzqLGwZaUZeP3W2N0U8ZQQ==, tarball: file:projects/arm-resourcehealth.tgz} + resolution: {integrity: sha512-wDVa/5RrLM4j+1dg2+JdFV2OS2m52vPfZU2bsJeNYuOPcRKb7PUMBw30TutKCtNoqn2/7WAT2KDsaL/rcl0Qww==, tarball: file:projects/arm-resourcehealth.tgz} name: '@rush-temp/arm-resourcehealth' version: 0.0.0 dependencies: @@ -17412,7 +17422,7 @@ packages: dev: false file:projects/arm-resourcemover.tgz: - resolution: {integrity: sha512-9wCHZxITBFlPcaq2It0gqtb4CgBxTGrSnpbhjD2YPIdVS2WUrFua35Twlg/hO01xEdeFUNmDkxqi6zSdKBC4sA==, tarball: file:projects/arm-resourcemover.tgz} + resolution: {integrity: sha512-MeIINjpmNDkst/xMp0da1fZYT8HUmm+31L1oeaOPNkyOrMaRYdPkrRhoMtGvVJbHxCaeVZW5wAMVyyY/qdO+5Q==, tarball: file:projects/arm-resourcemover.tgz} name: '@rush-temp/arm-resourcemover' version: 0.0.0 dependencies: @@ -17442,7 +17452,7 @@ packages: dev: false file:projects/arm-resources-profile-2020-09-01-hybrid.tgz: - resolution: {integrity: sha512-okC68UG2pfrVFsrNtwki3oozWSMdIo9vbceEYxWDTwW85Os3YrfTZI+DaZsVuz/r/0aHgSw+BHaqzr2reeArkw==, tarball: file:projects/arm-resources-profile-2020-09-01-hybrid.tgz} + resolution: {integrity: sha512-s/KxziXhUXvIPHRol4WFO98+YmQcu1+12hzqOQmL8Mm1lJ21+OawKt35e9c6IJn7otVfYAzdJmBXKMYvdty6mg==, tarball: file:projects/arm-resources-profile-2020-09-01-hybrid.tgz} name: '@rush-temp/arm-resources-profile-2020-09-01-hybrid' version: 0.0.0 dependencies: @@ -17472,7 +17482,7 @@ packages: dev: false file:projects/arm-resources-subscriptions.tgz: - resolution: {integrity: sha512-KAz1rCuiZoyikMdjlm82HBCEYtI+Qj5M023TW5gaALHdqObN4mSTPioBCHCNPlsSHs05zOgn7J3c2mjdMzzU1w==, tarball: file:projects/arm-resources-subscriptions.tgz} + resolution: {integrity: sha512-D5uF5iivH4dmF1mn4c7tGR3nq+O9wo0XU7p0Qb1AxBHw6CkqSrcaROZtDcmPZD8LqprwlCCSm3/l/cx4UdYq+w==, tarball: file:projects/arm-resources-subscriptions.tgz} name: '@rush-temp/arm-resources-subscriptions' version: 0.0.0 dependencies: @@ -17491,6 +17501,7 @@ packages: rimraf: 5.0.7 ts-node: 10.9.2(@types/node@18.19.33)(typescript@5.4.5) tslib: 2.6.2 + tsx: 4.10.5 typescript: 5.4.5 uglify-js: 3.17.4 transitivePeerDependencies: @@ -17500,7 +17511,7 @@ packages: dev: false file:projects/arm-resources.tgz: - resolution: {integrity: sha512-DK5fZoVVp/hHE7Wlc8eOgTLrwCxWtv8uIRraux9kliFGkcv4G6JMVy6276kHOd0Pw5mF4dDOMYoF1fnRzLerrA==, tarball: file:projects/arm-resources.tgz} + resolution: {integrity: sha512-iQTI0OKeODGLmOL4bhQ+mIHT8da7b2u72lXTPumhM/ALk1k2LZ4iLeQmIhZnoXD+vjJ88K8fKmt2Az1LMCcLZw==, tarball: file:projects/arm-resources.tgz} name: '@rush-temp/arm-resources' version: 0.0.0 dependencies: @@ -17521,6 +17532,7 @@ packages: rimraf: 5.0.7 ts-node: 10.9.2(@types/node@18.19.33)(typescript@5.4.5) tslib: 2.6.2 + tsx: 4.10.5 typescript: 5.4.5 uglify-js: 3.17.4 transitivePeerDependencies: @@ -17530,7 +17542,7 @@ packages: dev: false file:projects/arm-resourcesdeploymentstacks.tgz: - resolution: {integrity: sha512-vaLeR82fwmtOx04RBS0pepHbJXVE+qk6SeOg24ZMVUtcRRRzNrSoVtZHoMlAStoyimTEEDL4fTeRpxxmW0FqaQ==, tarball: file:projects/arm-resourcesdeploymentstacks.tgz} + resolution: {integrity: sha512-/wVYNT0oFuI/F2SMfZ0EdoT7KwkHNFaZhGc3nUMbS3yR/qa8ZsThIWkvQ6DGoPm+XAQmHI3MNOxbH3MBsvUKmQ==, tarball: file:projects/arm-resourcesdeploymentstacks.tgz} name: '@rush-temp/arm-resourcesdeploymentstacks' version: 0.0.0 dependencies: @@ -17551,6 +17563,7 @@ packages: rimraf: 5.0.7 ts-node: 10.9.2(@types/node@18.19.33)(typescript@5.4.5) tslib: 2.6.2 + tsx: 4.10.5 typescript: 5.4.5 uglify-js: 3.17.4 transitivePeerDependencies: @@ -17560,7 +17573,7 @@ packages: dev: false file:projects/arm-scvmm.tgz: - resolution: {integrity: sha512-wk1V8WEl1GhY4hvEhwiCTqSiN0Z9K0OjhDAM/T2TZklV2D/IBtLj80mSWD7vbfs2lA02gSGRaDfFEmDgFc4m6A==, tarball: file:projects/arm-scvmm.tgz} + resolution: {integrity: sha512-jeTWgpZeOaIkRq5tq7NaoT7aB80ygcHEtnU/H5cInqrN+vu1hga8duRaPyAPwonvvY33fz4S3Kiqqw3Tbd1IBg==, tarball: file:projects/arm-scvmm.tgz} name: '@rush-temp/arm-scvmm' version: 0.0.0 dependencies: @@ -17590,7 +17603,7 @@ packages: dev: false file:projects/arm-search.tgz: - resolution: {integrity: sha512-12cvCaslqBWdhOR+DPkVEsTM8iICi1eVltFeHp6W8ny4tBnBXEJ6AV8Ie9W5DNhBiq5fTX11hGsNU5dDpGgeEQ==, tarball: file:projects/arm-search.tgz} + resolution: {integrity: sha512-czQLEQQt8qZE/xx3DTrWf1w8e8QnKHKa6Xl3K32EO5oq3OwbAdY1EBtU1lmm7ooy/i+ZWJOOJItVxGABJzbrZw==, tarball: file:projects/arm-search.tgz} name: '@rush-temp/arm-search' version: 0.0.0 dependencies: @@ -17620,7 +17633,7 @@ packages: dev: false file:projects/arm-security.tgz: - resolution: {integrity: sha512-2vBN5Am03jIDkisfpDkibLkKhOJKwQ79q3b6suTJA9Kca1lzG/L0bAU4wbaqx15y3Sf0gLarmoc+bSQjeMXMVg==, tarball: file:projects/arm-security.tgz} + resolution: {integrity: sha512-dESEuK32eLQ6jl1f4REJzBJ4pB9loMu8LYZf/DedtSYVNQKWarggRyf7keZIqB+1QG/aGlLnE6hZZ/f31rRSOg==, tarball: file:projects/arm-security.tgz} name: '@rush-temp/arm-security' version: 0.0.0 dependencies: @@ -17651,7 +17664,7 @@ packages: dev: false file:projects/arm-securitydevops.tgz: - resolution: {integrity: sha512-7VP+xjC7SfISIr4TiLwoC9Ga3MGM/3eiT9IZKl7eH04aWPy7Skf2n5dWo9CZUAfdHXFiH2lUm+bAwu/Mk8fzLg==, tarball: file:projects/arm-securitydevops.tgz} + resolution: {integrity: sha512-YsLr0X/Qb4cxt70xx6MQnlrT4vasnZJxZ+7Dqh75sC623epcSnRO6+R2DeXVbcbSWLSMbpojRd+HpjaGDL8JBg==, tarball: file:projects/arm-securitydevops.tgz} name: '@rush-temp/arm-securitydevops' version: 0.0.0 dependencies: @@ -17681,7 +17694,7 @@ packages: dev: false file:projects/arm-securityinsight.tgz: - resolution: {integrity: sha512-XoDjznfDCpbW/oDhFqnOHgYDqGRiP1pzY9qRGOLa/Gv51OAOi35cQs6toeTZA2whfgWNsKVp8wxtdvuKr2ObMg==, tarball: file:projects/arm-securityinsight.tgz} + resolution: {integrity: sha512-7jlXfgEkaHLsFWl+AcYWzIW3z13MIdKV4PF+wjYAlmJ6OmnvQNpexslkGvkguWpxKXQJwChU7pWa+3tRMo6bzQ==, tarball: file:projects/arm-securityinsight.tgz} name: '@rush-temp/arm-securityinsight' version: 0.0.0 dependencies: @@ -17711,7 +17724,7 @@ packages: dev: false file:projects/arm-selfhelp.tgz: - resolution: {integrity: sha512-2hUPoU+gKUGR3eMSfcruhUC9Jv2icxCwcimPRk86Wskq2kETMxkklFwiI8y4E7OoJ8iftpbqBzp8RJTGlhdIaA==, tarball: file:projects/arm-selfhelp.tgz} + resolution: {integrity: sha512-Pn0xPEK+AyAnRIb2rRhJo7joLGsWHmWdB3u57ubZfZY1dxefWDzUMrWKpMv8r/YZqYuZ3QroHhpvP7+IwN7YPQ==, tarball: file:projects/arm-selfhelp.tgz} name: '@rush-temp/arm-selfhelp' version: 0.0.0 dependencies: @@ -17742,7 +17755,7 @@ packages: dev: false file:projects/arm-serialconsole.tgz: - resolution: {integrity: sha512-sewK0qoL//JqCcQuZKjWSnZ5hhK4VqIvHsPmkPs10mnxjaiXlJvXerUkzlHlDrS95HXMoHZcuwb//a1L8zswrg==, tarball: file:projects/arm-serialconsole.tgz} + resolution: {integrity: sha512-WeILsyd45/ywzHxyYqmXtflAR79LoIt5ncL5vgNENe1htk5YP4Zg2Ac3gP000L2pTx+d9ODAjVTkpMl0xqhWAQ==, tarball: file:projects/arm-serialconsole.tgz} name: '@rush-temp/arm-serialconsole' version: 0.0.0 dependencies: @@ -17769,7 +17782,7 @@ packages: dev: false file:projects/arm-servicebus.tgz: - resolution: {integrity: sha512-YRvmbxtMT5gUtrPLztYF4joVIKy1qnvpL2YzKMk641pUJ5Olok7AFpVyOyolA29CVOejYGxnmaqOu0x3ATf1+A==, tarball: file:projects/arm-servicebus.tgz} + resolution: {integrity: sha512-axh4NECqyvQewLwr5RlYMoJ4apoAM7Gg95CiRUSyuidG/1Uft7bttFKYWELS9YS2fcYgjqU4MHn/riVGRrv3fg==, tarball: file:projects/arm-servicebus.tgz} name: '@rush-temp/arm-servicebus' version: 0.0.0 dependencies: @@ -17799,7 +17812,7 @@ packages: dev: false file:projects/arm-servicefabric-1.tgz: - resolution: {integrity: sha512-omMAIhHV6H+a+9WkEocV2VTtMOLvKoPHTE6JtX6IBI4lQTYGWi/Idxehda+36tQzOPFy2fxbvAX0foLDVq7O5A==, tarball: file:projects/arm-servicefabric-1.tgz} + resolution: {integrity: sha512-BiZ6L6Benu3gc4nh+MZEQWNzKmGTBZ6KQkW/t0dsAbuYJjwo3yg+ZKv9gX5mzHdy+njyW9TBLfzrFOcbVfPxow==, tarball: file:projects/arm-servicefabric-1.tgz} name: '@rush-temp/arm-servicefabric-1' version: 0.0.0 dependencies: @@ -17829,7 +17842,7 @@ packages: dev: false file:projects/arm-servicefabric.tgz: - resolution: {integrity: sha512-lA0pdrClcfkUG2PO0mTlNzs7nK/5hoIldDE4iV9eIQoBa93vKvEXYJ0JhNjQ2xHAA/KGkE6qvgDuxjWPSKrF5Q==, tarball: file:projects/arm-servicefabric.tgz} + resolution: {integrity: sha512-JYWIjT+TstRhrbmqMWXqO4XUIBHafUsT1JqcrMywG9UN+LLybUZyUqW0IufPXMFa8r6r5+g++SCnFCl0gM8xzg==, tarball: file:projects/arm-servicefabric.tgz} name: '@rush-temp/arm-servicefabric' version: 0.0.0 dependencies: @@ -17875,7 +17888,7 @@ packages: dev: false file:projects/arm-servicefabricmesh.tgz: - resolution: {integrity: sha512-eqIDVkYoLNPtNhN8ad0PzzmZG3qLr7KJ47ddm3cKxMgWgfUhhArzKOy9gABscSaviRNZ1uBDhSVfGPylGSCDsg==, tarball: file:projects/arm-servicefabricmesh.tgz} + resolution: {integrity: sha512-T6sEWzGIyKSJMuUjXz08MCIrsv2YgbAL18thKKVkl6dLll/2ZsHqkw6ZyFT+OziMARhBWDqfWonN0aNDuI/UXA==, tarball: file:projects/arm-servicefabricmesh.tgz} name: '@rush-temp/arm-servicefabricmesh' version: 0.0.0 dependencies: @@ -17903,7 +17916,7 @@ packages: dev: false file:projects/arm-servicelinker.tgz: - resolution: {integrity: sha512-wdIGh6BHUsqYhBxuHSdGfzMwQZzSOMBBf0aMxu2ZZBsp0LhGmOQ0iC8ZYTh1irqJv25B41nZhteIHAb3MUsn+Q==, tarball: file:projects/arm-servicelinker.tgz} + resolution: {integrity: sha512-uKmGK/WjJHp5WV8jxU3FOYRYDV9Zg6KA9AvSFZJ+YXrjjVndOA8uNWzXwNOWLbDDWfBIt27JFNlhAE6jzhztTg==, tarball: file:projects/arm-servicelinker.tgz} name: '@rush-temp/arm-servicelinker' version: 0.0.0 dependencies: @@ -17933,7 +17946,7 @@ packages: dev: false file:projects/arm-servicemap.tgz: - resolution: {integrity: sha512-38POqclFYBeiOFevCdzDT6orHIbqstQiVBF/lINISJahsf5sniINdePeKQDgmBkeNnQe+Ha3rIFHrnLY+6sR/w==, tarball: file:projects/arm-servicemap.tgz} + resolution: {integrity: sha512-6RUYpKocHi9UaIzjrPU4I/60lvBlitc414KZu+YU4tUZoBDAPXQZXO9LuGyTyuheh6pHtsbZkFrYlacF5qYtGg==, tarball: file:projects/arm-servicemap.tgz} name: '@rush-temp/arm-servicemap' version: 0.0.0 dependencies: @@ -17961,7 +17974,7 @@ packages: dev: false file:projects/arm-servicenetworking.tgz: - resolution: {integrity: sha512-eCuZxtt5PU36HugZOkw1qOqD/FZABQhUr3dzgwkqaSnBpr4kklb+4jDh2oqfUw9qVGZMPuBRcJVCiHoOy6QKGw==, tarball: file:projects/arm-servicenetworking.tgz} + resolution: {integrity: sha512-rYEBxbAe2PP3o2BojmxRBIbP3FSsiTHUpbmUR2heoggfyGbnVPX6iS3nY+Hz7PrpSARDTY70JzLvoUT3XTTNWg==, tarball: file:projects/arm-servicenetworking.tgz} name: '@rush-temp/arm-servicenetworking' version: 0.0.0 dependencies: @@ -17991,7 +18004,7 @@ packages: dev: false file:projects/arm-signalr.tgz: - resolution: {integrity: sha512-8oM82J705NBisX9XMSfRclq1RzICRu+E7I5E/enG9YsPY5g5X1TEKAqMSJ1MtXZwwlgAx0fMzQTPQ01nPMw7bQ==, tarball: file:projects/arm-signalr.tgz} + resolution: {integrity: sha512-bVJcJyxkCshoHgttHBqYmpw45DtmUvuXULRyFY9/xg+K68+F8J2XPwiJtU5b12Z9iGLFrNbckjol72o1+LdOhw==, tarball: file:projects/arm-signalr.tgz} name: '@rush-temp/arm-signalr' version: 0.0.0 dependencies: @@ -18021,7 +18034,7 @@ packages: dev: false file:projects/arm-sphere.tgz: - resolution: {integrity: sha512-t7QrUdy9H9zZy1043PQ9RnGrSbFiW3Q6Vanw/3jfgaEYsh4A/RT+2HdmsqovWPh/VCV3wTiWTdrHaiuBG7zmdg==, tarball: file:projects/arm-sphere.tgz} + resolution: {integrity: sha512-a8XZBza5Lmh7gD6GF9YpRmjXEyBoRAgY7Cpq0tF0OpzOLlniApCqnJ4fPt02v2miueIo250nhy3QYmYxIViCAg==, tarball: file:projects/arm-sphere.tgz} name: '@rush-temp/arm-sphere' version: 0.0.0 dependencies: @@ -18051,7 +18064,7 @@ packages: dev: false file:projects/arm-springappdiscovery.tgz: - resolution: {integrity: sha512-IzofRQtHrYM2FSJvhvGMBEKFe/08jMG+DnRc246U8V7pAsCsXnsBP2++LcaLg2neFbe+UoScqJpS56QB+GdawQ==, tarball: file:projects/arm-springappdiscovery.tgz} + resolution: {integrity: sha512-bAB+/XUaz9E02/f93yfpFETKUiMHCxhGUwy6UhG/R5f63b7evQSQTEyb1r5gzrRgWOQBorbErJAsl2LNLM/Smg==, tarball: file:projects/arm-springappdiscovery.tgz} name: '@rush-temp/arm-springappdiscovery' version: 0.0.0 dependencies: @@ -18081,7 +18094,7 @@ packages: dev: false file:projects/arm-sql.tgz: - resolution: {integrity: sha512-tADKVKr2KgUjhWg4HMLiBvRzoqT735FYYoL+gSOswmL7NRQYhb6197fPlvKM32AmofYNb+f48hKb7j0WXOTBwg==, tarball: file:projects/arm-sql.tgz} + resolution: {integrity: sha512-yTN3DWeyyBKuf5JfYrs7+KYrw6CvCe5vEFpl19YUC17ZEsNDtlYKNlznthgur3E0O8Zbi8bXcZc94Ni4NeSOkQ==, tarball: file:projects/arm-sql.tgz} name: '@rush-temp/arm-sql' version: 0.0.0 dependencies: @@ -18111,7 +18124,7 @@ packages: dev: false file:projects/arm-sqlvirtualmachine.tgz: - resolution: {integrity: sha512-RnCeKRX2OFpjqRqjH80ijad+e0CeLl6xeGgoReu/FKEeiLslXMBTIh2hYNmBERCkY2mh/NR3sARta512kfOfqA==, tarball: file:projects/arm-sqlvirtualmachine.tgz} + resolution: {integrity: sha512-2xkxpXSZIkYM7g7C6s5+iKNBb5hmg2wS4HrNhD+eBwn3ed2ErvK+NbAQKRn8oa5m6UyL15IJuHXQnNyrpsd2OA==, tarball: file:projects/arm-sqlvirtualmachine.tgz} name: '@rush-temp/arm-sqlvirtualmachine' version: 0.0.0 dependencies: @@ -18141,7 +18154,7 @@ packages: dev: false file:projects/arm-standbypool.tgz: - resolution: {integrity: sha512-+o0rO2dCCLbj+2NRrFmfXwzFBZOy98O/4MxKPnTHTek0EPwR0LKZpAZ/V2NJQA/9VUB7nFUuLhFdoNj+746WUQ==, tarball: file:projects/arm-standbypool.tgz} + resolution: {integrity: sha512-BQaldyjX+Eyxs1JBGfqNVYEoGmUsqOitOnr1g8EWzzYTNNlpbp6nZJqXOEDhCKWP7uFZbz4xhId3W5bMpYMpww==, tarball: file:projects/arm-standbypool.tgz} name: '@rush-temp/arm-standbypool' version: 0.0.0 dependencies: @@ -18172,7 +18185,7 @@ packages: dev: false file:projects/arm-storage-profile-2020-09-01-hybrid.tgz: - resolution: {integrity: sha512-0CPFYsogaHFn8uJH7NjnOewYFJSv0MbzNKVh9c5nCQLsyleiio/OJUxsaZfs/tF4iLPV+PbPQxigalljfhp1WA==, tarball: file:projects/arm-storage-profile-2020-09-01-hybrid.tgz} + resolution: {integrity: sha512-H+eQpB0n0StajpR9RQJBqJA/8XhAbiOi8jVq438ccdC/VowrXs24LUSaDHbns8e/wXgSgOdkkSClcMi5vCOoLw==, tarball: file:projects/arm-storage-profile-2020-09-01-hybrid.tgz} name: '@rush-temp/arm-storage-profile-2020-09-01-hybrid' version: 0.0.0 dependencies: @@ -18202,7 +18215,7 @@ packages: dev: false file:projects/arm-storage.tgz: - resolution: {integrity: sha512-x6hu/nkzC4XCtAPRQz3c2uFh+SuqGmdlFjPGvmYtNbbkSFLt2X01dxNm+i+fhdteF5nrboraQymHWSSVEul1og==, tarball: file:projects/arm-storage.tgz} + resolution: {integrity: sha512-Dbww+oJFHkDel+MjnGLKiWG/X1XsUQrdPzGwdZiVb40EIIs+5dI2Ge/uuiNW7Wm5B1btiOUhG8bbJ3vlTX/xMA==, tarball: file:projects/arm-storage.tgz} name: '@rush-temp/arm-storage' version: 0.0.0 dependencies: @@ -18232,7 +18245,7 @@ packages: dev: false file:projects/arm-storageactions.tgz: - resolution: {integrity: sha512-Yjk94fKFktDMt2xiB8UovYuiJQnRN8EKX2mNh/SP0zgynxOR6ByxUT5IgQWchNaDdr/E0Rzg2Y6boJRf1N+lmw==, tarball: file:projects/arm-storageactions.tgz} + resolution: {integrity: sha512-52BOt5r0mcgSvrSHGx5/vqQJniOui9kc05Ys/RHLxWgMiiMOUxDR898doXz45EgURSHfuG+/Vyr9moTebro1IQ==, tarball: file:projects/arm-storageactions.tgz} name: '@rush-temp/arm-storageactions' version: 0.0.0 dependencies: @@ -18262,7 +18275,7 @@ packages: dev: false file:projects/arm-storagecache.tgz: - resolution: {integrity: sha512-UbC2fW2yNlSq5C56fbpimT3gOret2gaoPhAzPUXlcvKKXH/5OQ1LvoYcRXc3C7Kty+zOmUgtaG9Mxu3/QngX8A==, tarball: file:projects/arm-storagecache.tgz} + resolution: {integrity: sha512-u/gKYCn1AYdxTBipacMf2mCowKKEXLs+h8ndDNfbqold8YTOSstGUdfqB6uqMTSx8XovVeKFUJqmOOy55ufEWw==, tarball: file:projects/arm-storagecache.tgz} name: '@rush-temp/arm-storagecache' version: 0.0.0 dependencies: @@ -18292,7 +18305,7 @@ packages: dev: false file:projects/arm-storageimportexport.tgz: - resolution: {integrity: sha512-5535CDDeSUHJkLK+9PUsgfKd02OKMr8tBI3374GB73QNmKekn91vl5fTvlpA1MkqI97YGmjy/PEJHteF7Uo5Zw==, tarball: file:projects/arm-storageimportexport.tgz} + resolution: {integrity: sha512-fSXFx6l9FC2QNNVUSg7ltlpK0BWiuX/3aKjMsOh7w2ouDlHbg/mp21bUb/XTrSOZSRnd42utDhC/wfRd/qs2vg==, tarball: file:projects/arm-storageimportexport.tgz} name: '@rush-temp/arm-storageimportexport' version: 0.0.0 dependencies: @@ -18320,7 +18333,7 @@ packages: dev: false file:projects/arm-storagemover.tgz: - resolution: {integrity: sha512-/wGv4mhzV8Bb0dAJFWZUUJZ7jfmSQUXo5C9okmbFwj5CuZKY+bVKThVS9zulAWMmxL80Ci6iFBktADJuOB8RJg==, tarball: file:projects/arm-storagemover.tgz} + resolution: {integrity: sha512-rdanPDfg1WUJnqw6NTXyJGqTS47URKy+Xb4zFldadGPqcXCvH5Bv+jsdH/lWl8N8X+NaF9EhLQpMKWERkMsZdw==, tarball: file:projects/arm-storagemover.tgz} name: '@rush-temp/arm-storagemover' version: 0.0.0 dependencies: @@ -18350,7 +18363,7 @@ packages: dev: false file:projects/arm-storagesync.tgz: - resolution: {integrity: sha512-mG3t8ObtCotR0yNn9w7VQ1iieg/jmNWFeNDIGxE+KJ/LFFU9hU2AiClXohhXsN/yNqQn9oqUSq0uAktMtQAxMA==, tarball: file:projects/arm-storagesync.tgz} + resolution: {integrity: sha512-rUKAq62G/GxJvsqTOSQRzx+QP9SzeFRXWWS0f8nH5ISXThQqLh6WONBpMIioBUs8yUc6XrtUajAM9nALuN9hdg==, tarball: file:projects/arm-storagesync.tgz} name: '@rush-temp/arm-storagesync' version: 0.0.0 dependencies: @@ -18379,7 +18392,7 @@ packages: dev: false file:projects/arm-storsimple1200series.tgz: - resolution: {integrity: sha512-gGuAca1T3DQgHTxR9Z0uotNFcWRnZi3+A7/SpXeXuA5Jq+9A2An3sn3VPUEH1a+lMK3lJ2g5fbcnCDqQ6tmQSw==, tarball: file:projects/arm-storsimple1200series.tgz} + resolution: {integrity: sha512-Cm/AruveyxQ/4wyBLwAyg2Z7cHqprIEur2aLoWmd+GlBN2w1M+nFIc5B8JpAOSYBEByBVT8K0Tby157epvVn9A==, tarball: file:projects/arm-storsimple1200series.tgz} name: '@rush-temp/arm-storsimple1200series' version: 0.0.0 dependencies: @@ -18408,7 +18421,7 @@ packages: dev: false file:projects/arm-storsimple8000series.tgz: - resolution: {integrity: sha512-Yqa/VPTg+RoktUpZuciBvS4V5fgpD9kImwxdoCGnK2cmwiCRIinJMH12OYh/RfVyJxDZdy46PiFEkGzZokDTpA==, tarball: file:projects/arm-storsimple8000series.tgz} + resolution: {integrity: sha512-nIyKADpAwewZwspfwiort9CmqG5ghTHmGuv0USkllSxuyBMjOKX9VRUqoqGiuvRLQV85P0YqwoLF65l1MRlsvA==, tarball: file:projects/arm-storsimple8000series.tgz} name: '@rush-temp/arm-storsimple8000series' version: 0.0.0 dependencies: @@ -18437,7 +18450,7 @@ packages: dev: false file:projects/arm-streamanalytics.tgz: - resolution: {integrity: sha512-YGfULehNVf8yQ9gxMrHJqpr0zs9C+RiPtZUC/+kJ+xGEFSvaYVrfyW9klHwXyZYuqMNOWlJSlXnzu3GFyEqbaQ==, tarball: file:projects/arm-streamanalytics.tgz} + resolution: {integrity: sha512-jnr0X00qm8PV19g8piPM6nnsdpONkFVJ3QeMFx0FcVETMreGRmr2k1MBdDvCYwy9LgjPGihHwtdug1C8K1+XcA==, tarball: file:projects/arm-streamanalytics.tgz} name: '@rush-temp/arm-streamanalytics' version: 0.0.0 dependencies: @@ -18467,7 +18480,7 @@ packages: dev: false file:projects/arm-subscriptions-profile-2020-09-01-hybrid.tgz: - resolution: {integrity: sha512-6z8KqEUvJzd5HqNfwvED8v4DnxN4evWBbibcyjbPTiIAYG9S3eFf2LfbbOcZWUw9ur62nmeHB3HAEvlJeDpfDw==, tarball: file:projects/arm-subscriptions-profile-2020-09-01-hybrid.tgz} + resolution: {integrity: sha512-K95ot/NVMi+aytzoX/GtflqiEf/jnYXPim1XDB1PzReVPm0eyNANwYEtb/VNUxRwpmKxGKSflctRydWwKv5M4Q==, tarball: file:projects/arm-subscriptions-profile-2020-09-01-hybrid.tgz} name: '@rush-temp/arm-subscriptions-profile-2020-09-01-hybrid' version: 0.0.0 dependencies: @@ -18495,7 +18508,7 @@ packages: dev: false file:projects/arm-subscriptions.tgz: - resolution: {integrity: sha512-Zhtswu6Azp+klzAOV7wLEPZXYmsldK+/WAfAH4qPetVgXzT8zLOLpM9Ie4sYTnj075pNrxNVzvLb3YciMiA1NA==, tarball: file:projects/arm-subscriptions.tgz} + resolution: {integrity: sha512-5d5gQ2CnowRVJE4+e6mG3EpJI9MirPlYpRx+aab9vzOlk6wUdAkf7CveYC1DYdePtWkjOD2O+maLd2n4j6aT2Q==, tarball: file:projects/arm-subscriptions.tgz} name: '@rush-temp/arm-subscriptions' version: 0.0.0 dependencies: @@ -18524,7 +18537,7 @@ packages: dev: false file:projects/arm-support.tgz: - resolution: {integrity: sha512-j3zImbzUXJ8ODRB6twJZSZglUAKUIdpYIPmxeHOR+1U/YaKuE1ad4UnMNaxNt31aqFjsoHnZKvvfqk7+b7BG0Q==, tarball: file:projects/arm-support.tgz} + resolution: {integrity: sha512-EZx9LOr4FvnzC3bqcuWjHo1Opm4bDSGesycx1/D38K98O4Fq/vGs6M0pILw0rp6lhYHh5mNo9jtZw3Ssjm2NAg==, tarball: file:projects/arm-support.tgz} name: '@rush-temp/arm-support' version: 0.0.0 dependencies: @@ -18554,7 +18567,7 @@ packages: dev: false file:projects/arm-synapse.tgz: - resolution: {integrity: sha512-vV3WDA5trPdYZ4KnOppgnZP8EB1maUYEkVn4z/rERC5cjF7I80riha3OKJ8GKO6ULfcapiIK7X46DFCi8KCQCg==, tarball: file:projects/arm-synapse.tgz} + resolution: {integrity: sha512-8I4iVKSvQZmOWSSFWsqaBgvpDN2rw3Vjfb+I3x7q1e1R5jMdrHOrQez5dwrDgtI1UKCGDpi6AqI9tTC+Ro8gGA==, tarball: file:projects/arm-synapse.tgz} name: '@rush-temp/arm-synapse' version: 0.0.0 dependencies: @@ -18584,7 +18597,7 @@ packages: dev: false file:projects/arm-templatespecs.tgz: - resolution: {integrity: sha512-89LoIr/8OqGj9fB4IXEFBTgyxz5KzuYSoNXrxPHhl5aTdiI4KtMSsYclNE67Klw8Gc2CiTtcqoM4lm3Mzj1gGQ==, tarball: file:projects/arm-templatespecs.tgz} + resolution: {integrity: sha512-hjdT/X4QDOYvpQ458yE2UNS2N0s84JtmvQxCfk6FHGawkmlDgO5jUBeHMHXaFZkMlhoOrtakagILWDKvnO8Esg==, tarball: file:projects/arm-templatespecs.tgz} name: '@rush-temp/arm-templatespecs' version: 0.0.0 dependencies: @@ -18597,11 +18610,13 @@ packages: '@types/node': 18.19.33 chai: 4.3.10 cross-env: 7.0.3 + dotenv: 16.4.5 mkdirp: 3.0.1 mocha: 10.4.0 rimraf: 5.0.7 ts-node: 10.9.2(@types/node@18.19.33)(typescript@5.4.5) tslib: 2.6.2 + tsx: 4.10.5 typescript: 5.4.5 uglify-js: 3.17.4 transitivePeerDependencies: @@ -18611,7 +18626,7 @@ packages: dev: false file:projects/arm-timeseriesinsights.tgz: - resolution: {integrity: sha512-qnkkvmYPLux8evbgqjy8E48yAzW6uo335EKGeWaEZkZFWttz+NDrXx1AxDS1G64LuOb88M9i1b4e2g21mw6fXA==, tarball: file:projects/arm-timeseriesinsights.tgz} + resolution: {integrity: sha512-TePtcNhUU/by9QGgfBE7gV/HZnoOfB8zz9FqRE4k9jBw1dGOB1ZA7wpvWAKfSlMScs4SXDkxzIkuCmS4YP02RQ==, tarball: file:projects/arm-timeseriesinsights.tgz} name: '@rush-temp/arm-timeseriesinsights' version: 0.0.0 dependencies: @@ -18641,7 +18656,7 @@ packages: dev: false file:projects/arm-trafficmanager.tgz: - resolution: {integrity: sha512-pkmH7BWa5ICZaXmvUpsrnnLA3cWxXfTi+v0LcQLvj+FDAgLA1DMLy7eKEsofUPzgK3V7m/Bhqa97GH0CRswDRw==, tarball: file:projects/arm-trafficmanager.tgz} + resolution: {integrity: sha512-f6J0LlmjkuJqcI8gOx3XE7gYdUIonXGsd6AyBIEQOybJwRwiKy9JivZqIGdddQT2d/ztoQJSm9iosmgsYIRqag==, tarball: file:projects/arm-trafficmanager.tgz} name: '@rush-temp/arm-trafficmanager' version: 0.0.0 dependencies: @@ -18669,7 +18684,7 @@ packages: dev: false file:projects/arm-visualstudio.tgz: - resolution: {integrity: sha512-TDlAYlbpZa56iSFTG6JHAB81hQN3woPURzZKAX04qecRLYtG7+dDc43gpOGXr9scxYZyh/DgjUKxTbFlbMxZ1Q==, tarball: file:projects/arm-visualstudio.tgz} + resolution: {integrity: sha512-mRbTbNgi2nXKcvTqwmZzGUFZRhdZO/wvEWitn+qNa5AKo004pW4lFcStP/0wNAWbU9FxOz2/19HJcJAU7JN73g==, tarball: file:projects/arm-visualstudio.tgz} name: '@rush-temp/arm-visualstudio' version: 0.0.0 dependencies: @@ -18698,7 +18713,7 @@ packages: dev: false file:projects/arm-vmwarecloudsimple.tgz: - resolution: {integrity: sha512-q0gKszre4tmW2WC8ICjZv1GfnaQYuWovhpOGynCpTfvthbCNlAvyZy/uD4v7qFZ/DNjvfyIRDwL08FIJSP438A==, tarball: file:projects/arm-vmwarecloudsimple.tgz} + resolution: {integrity: sha512-mLljWv06iYqz0igUp3jqjyVPR7BiCcJxzvy29ImESgckI5/B43LAeOElM4Mcqm2MUL7iJzqtvVxdJOM6hRz9cQ==, tarball: file:projects/arm-vmwarecloudsimple.tgz} name: '@rush-temp/arm-vmwarecloudsimple' version: 0.0.0 dependencies: @@ -18728,7 +18743,7 @@ packages: dev: false file:projects/arm-voiceservices.tgz: - resolution: {integrity: sha512-NEqCLnoH034PyRhZoRcOaK7hYhbDaJLI/pYPHnut6fKIX156C4xZSv0SxZEsnngCsB6QwrtYoZVpxG9y0qIpEA==, tarball: file:projects/arm-voiceservices.tgz} + resolution: {integrity: sha512-9QZ6Qdx8TcgynoOzSFCOJK5X/67bv7XwBlJK3MjfUFIHlb3siF3NUrpw2x6Rk54wS5J029nKFbk0NWHehDQvrw==, tarball: file:projects/arm-voiceservices.tgz} name: '@rush-temp/arm-voiceservices' version: 0.0.0 dependencies: @@ -18758,7 +18773,7 @@ packages: dev: false file:projects/arm-webpubsub.tgz: - resolution: {integrity: sha512-3ggrHyfxhwhbBH8YNlHt7Bc/lvpZWqB1wLAMHrZbn/fUYwDEETwDTeA/x7842cnFzPp1DmbgSQBrznw6boSs0A==, tarball: file:projects/arm-webpubsub.tgz} + resolution: {integrity: sha512-Royoi1sbidwFMB2pWwZ0FSWrn+64GU/OluE27Bnu4KRHL/px7AGUynDMJxVC6JXyAy3jBlFEf2FP9+z4xYw2Sw==, tarball: file:projects/arm-webpubsub.tgz} name: '@rush-temp/arm-webpubsub' version: 0.0.0 dependencies: @@ -18788,7 +18803,7 @@ packages: dev: false file:projects/arm-webservices.tgz: - resolution: {integrity: sha512-fMfdnEnNJAk/ks1WuOF9xRwj65EyDuuJAV8tt0l/ouMmZGTOh9D1oT8kf7VOfE2S+j7EmaAtmS4CAbvHGuKE/Q==, tarball: file:projects/arm-webservices.tgz} + resolution: {integrity: sha512-C2/6j40wC05SRexUHBhbHkp5nzcdXHxVKs+40TH5jkfIe3UEd+hdBwUrXYD15elyhdWnCSBvwTmqo9/5e0XQ4Q==, tarball: file:projects/arm-webservices.tgz} name: '@rush-temp/arm-webservices' version: 0.0.0 dependencies: @@ -18817,7 +18832,7 @@ packages: dev: false file:projects/arm-workloads.tgz: - resolution: {integrity: sha512-4yjeKRL4+UqsnT1uCyP/mtMCE0a3tK/VU6ajQ9/MJl1LQ0ZEVgkB/Ik1qse1g80flhynf76DleZTVnpLnfrEEA==, tarball: file:projects/arm-workloads.tgz} + resolution: {integrity: sha512-aztLYedZiCg3pSlXx+CcWr5Y/qRy2Ht9siOHF7K/ij1WTqIuKMtz++On9A4rwiHxM/wJHeFUZvoLrMu/69HvVQ==, tarball: file:projects/arm-workloads.tgz} name: '@rush-temp/arm-workloads' version: 0.0.0 dependencies: @@ -18847,7 +18862,7 @@ packages: dev: false file:projects/arm-workloadssapvirtualinstance.tgz: - resolution: {integrity: sha512-6rX1UaHWQKXyOjzxwo/N2Sws14UfuU6MLdT18jTonfjVmFajTcpwVSz0xUOpCuf7hxUxGWxWuPRs7Y5vpXAFhg==, tarball: file:projects/arm-workloadssapvirtualinstance.tgz} + resolution: {integrity: sha512-tls24fzfDvRQiFskdWtT1/pGZyjlKXz3hfSCS4UMwCtlOy53jlhxyu1hXdUFDND0j9G2BKZCCJv3PmH7yBjT9w==, tarball: file:projects/arm-workloadssapvirtualinstance.tgz} name: '@rush-temp/arm-workloadssapvirtualinstance' version: 0.0.0 dependencies: @@ -18877,7 +18892,7 @@ packages: dev: false file:projects/arm-workspaces.tgz: - resolution: {integrity: sha512-g/ofzNN/gEh2H4nL3PZ77hHaARGgzCKbitvJ3VGp3r+JA9/e1dXq49CHWEjxaE3f6kmiR5Vuqmo9HqRn/3O3ng==, tarball: file:projects/arm-workspaces.tgz} + resolution: {integrity: sha512-epOWyxlK63o6PEll1bioPaLRwC+JMhCiaqb2KhQszufgP/NR65DiuUvJzscmP34asd7jJFTrP3WDLLSNMtIbjQ==, tarball: file:projects/arm-workspaces.tgz} name: '@rush-temp/arm-workspaces' version: 0.0.0 dependencies: @@ -18904,7 +18919,7 @@ packages: dev: false file:projects/attestation.tgz: - resolution: {integrity: sha512-Rhw6hDb4VTtUNH6gZ8DtOzx5h0Xc6GP8GHU6/Gn5uEqfZhO1gYO9oET6HblY+38a8xiinKx3jJrV9HFfj67kOw==, tarball: file:projects/attestation.tgz} + resolution: {integrity: sha512-BdzWdiyPO0s1506Cho1/SbZne6RqZHWcwKoNDpGmLIj0v+b92KWfBGGiVBH22qhk14yrs2uEPVkx83eNMZhrWg==, tarball: file:projects/attestation.tgz} name: '@rush-temp/attestation' version: 0.0.0 dependencies: @@ -18955,7 +18970,7 @@ packages: dev: false file:projects/communication-alpha-ids.tgz: - resolution: {integrity: sha512-ZnA1LD8oAtWgDUs3UwmgGfhJUulvZgVq9PtuO4oZc6qp+uW3dMqruFXTyfjcoXTJzcC3gM+yjHW5phc98jqBdg==, tarball: file:projects/communication-alpha-ids.tgz} + resolution: {integrity: sha512-GF2Y6y1LoPqC+KnWroIE8asHHFig/mWM+DqVNGBwDnU8ynjelMfr1L3YlD6lFqYfX1Qt82zi1QNwOTYBXFtj+g==, tarball: file:projects/communication-alpha-ids.tgz} name: '@rush-temp/communication-alpha-ids' version: 0.0.0 dependencies: @@ -18999,7 +19014,7 @@ packages: dev: false file:projects/communication-call-automation.tgz: - resolution: {integrity: sha512-N1TW9xs7zjhhmXOxnBlFrFJJCwm6Ee64UfhhZBhODbuH3hv/4uc+yb5t8QnaQZ0TJKsR2ai7D3rDOGvCVaQapw==, tarball: file:projects/communication-call-automation.tgz} + resolution: {integrity: sha512-zbGPNdUKPA/qhxd9WpepAa04xDLeLo0BDjFwJeLHbujy4YtI0rYNw/Q5yVKVCPvfEYTzrC4K1THhbq4fdXi0wA==, tarball: file:projects/communication-call-automation.tgz} name: '@rush-temp/communication-call-automation' version: 0.0.0 dependencies: @@ -19046,7 +19061,7 @@ packages: dev: false file:projects/communication-chat.tgz: - resolution: {integrity: sha512-LsbGjr9EW8VTWF/5INwJsD2jzswejO0PtWkeP9T3VW/gU7HjW6IrwSw0pvEeJJqgSAES/He5SJVkvmUrZRCpww==, tarball: file:projects/communication-chat.tgz} + resolution: {integrity: sha512-h6dvMTxQFeEy8XBMaCkCh6Gxx0qLmbaiijdxSHEYHP7M0e7X7v4ElVQ2ly+JgcGV/dNGYNCy6HW/37dMZvgl3g==, tarball: file:projects/communication-chat.tgz} name: '@rush-temp/communication-chat' version: 0.0.0 dependencies: @@ -19097,7 +19112,7 @@ packages: dev: false file:projects/communication-common.tgz: - resolution: {integrity: sha512-Y8j8dX2CZGGFAcNCg+HrM+n+lU4nRM/1ZeBiZgv1fOrCiVWgzjkOoZwe1CmSq/N7tyWxdayM77hvsG3Zr4bgsQ==, tarball: file:projects/communication-common.tgz} + resolution: {integrity: sha512-sc5Yo633aPaKeB93osm1BvDxZT1OyiLJZuN1ItnFgtAdXvT+zWegqoMhHhxM/1GoLnB6534XcdLFdJxmmJgf6A==, tarball: file:projects/communication-common.tgz} name: '@rush-temp/communication-common' version: 0.0.0 dependencies: @@ -19143,7 +19158,7 @@ packages: dev: false file:projects/communication-email.tgz: - resolution: {integrity: sha512-xRXEkhvXJ87SIsPLCjUr6ud+ZM5mcngwOy4k1vYemoPXeNeGrtT8xa4Xjfj+AcTZqGcSu0KnT7WN0ADTOOWUuA==, tarball: file:projects/communication-email.tgz} + resolution: {integrity: sha512-D13CUlblsMJD8aC/cT3mTzdScvSfvWy25TB2x1QaEryto9C2z7dljtTiDjoz1Ealg0KYWSiOp4Mo3qrVOuIOQw==, tarball: file:projects/communication-email.tgz} name: '@rush-temp/communication-email' version: 0.0.0 dependencies: @@ -19184,7 +19199,7 @@ packages: dev: false file:projects/communication-identity.tgz: - resolution: {integrity: sha512-4uqritVAYrFiioxH1rcq++mNWQawH3Ya+tY9B2qnrQutVUoXDZbOraOzGFb2sLlGhnzMrbtbShIrT28f4urQ2w==, tarball: file:projects/communication-identity.tgz} + resolution: {integrity: sha512-z+MBBl+IbW9YEWr0VGAdLEOaNssDhbjCnMi0F21Y/gaNpT9F3+BUDqmrQWeEZKcKCqDuJ+yHAKJM2uVDA0jh5w==, tarball: file:projects/communication-identity.tgz} name: '@rush-temp/communication-identity' version: 0.0.0 dependencies: @@ -19232,7 +19247,7 @@ packages: dev: false file:projects/communication-job-router-1.tgz: - resolution: {integrity: sha512-Q7ue32A+VikgZLbtUgyCWy6tj5LXwZDPJObBTmqCoWjgZvR7VoPeQsq+v/gmRpfgDEMhi8HQgHhuwDSacc7scw==, tarball: file:projects/communication-job-router-1.tgz} + resolution: {integrity: sha512-4Zrxzq4OXaj8cyD4+81bBTbEkzz3GZ/5Z7z9gCmt+pfqg3Srhp8K2DW3q5dRBA+qVp+41BHgemcYbgd6i3pSdA==, tarball: file:projects/communication-job-router-1.tgz} name: '@rush-temp/communication-job-router-1' version: 0.0.0 dependencies: @@ -19280,7 +19295,7 @@ packages: dev: false file:projects/communication-job-router.tgz: - resolution: {integrity: sha512-klta9bUdKjEnFpgRl+pyiBywhL61h9GHA7JltubD+8jeYvHJGdh8tR7nP8ctKTnHOSlEExiXOiWeBS63ASDuSQ==, tarball: file:projects/communication-job-router.tgz} + resolution: {integrity: sha512-sokqMYxVny5WF+K0xQNX2QXfXpm/HIAYnJhCJvGRg7Dtmw188Opz5FaEbNQJqTE9QR63BLvwPxwl2QhcdjXxhQ==, tarball: file:projects/communication-job-router.tgz} name: '@rush-temp/communication-job-router' version: 0.0.0 dependencies: @@ -19325,7 +19340,7 @@ packages: dev: false file:projects/communication-messages.tgz: - resolution: {integrity: sha512-bkn+U65q9nFSnYE8eLlstXs2qP2MaBaj4gWnQugCP3v+yqFgruH49Qn11wSQbXp4wPQfHZQK27w72xsYimr+ig==, tarball: file:projects/communication-messages.tgz} + resolution: {integrity: sha512-5FcJe41Mudz8/IS2m7PJybNtgtQSs8o3s+MxwqZcqJFtzBgNVSOgf+jHz+sD4x2hmoFoRrwmpBB3+wXqTEjaQw==, tarball: file:projects/communication-messages.tgz} name: '@rush-temp/communication-messages' version: 0.0.0 dependencies: @@ -19370,7 +19385,7 @@ packages: dev: false file:projects/communication-phone-numbers.tgz: - resolution: {integrity: sha512-JyBIVbh2ijFasLIuIo0IMPLyNd+Dr2v4Bl5+9rbh0Ky03HSzpmaU+l6DrYLNxMQe6Q/tE5ulOqy5kLgkITdpVw==, tarball: file:projects/communication-phone-numbers.tgz} + resolution: {integrity: sha512-Blk4AkEcr08EuTm/70Q9gHSSIaUP2USjZ67OseUtfWbCLPl+Nv/lQt8Nx8ko2FLzvLy/Ac7ZhljIasYQWyEEgA==, tarball: file:projects/communication-phone-numbers.tgz} name: '@rush-temp/communication-phone-numbers' version: 0.0.0 dependencies: @@ -19416,7 +19431,7 @@ packages: dev: false file:projects/communication-recipient-verification.tgz: - resolution: {integrity: sha512-iyzED4F1Ik+GblZhhrQVVCwrH8YuQPZ0p9CPZ/CSZHhhLoBeFxb8uvrKzFTTJTBhTIZZW6WynbllbsGU7WmaEQ==, tarball: file:projects/communication-recipient-verification.tgz} + resolution: {integrity: sha512-8mpiZ0/bBqFOYDyyCeAYWtIAIxxfvO8PMTKWGp1UxaN4Uug6d7S5UkemGEgHPXN4vsqe0T6u0Mt/MCUZFCO54A==, tarball: file:projects/communication-recipient-verification.tgz} name: '@rush-temp/communication-recipient-verification' version: 0.0.0 dependencies: @@ -19463,7 +19478,7 @@ packages: dev: false file:projects/communication-rooms.tgz: - resolution: {integrity: sha512-Hnl1LryTZTWTMT/hIKgFiJWa0vEym8WxNWMAr/DyMfUyjv2aEXT/LyqXQRsk7vuoAlfIE4cTvw4/EPbW/kM+uQ==, tarball: file:projects/communication-rooms.tgz} + resolution: {integrity: sha512-Hu1/wYt6JgeyEXDmykDMHA56FQxQcru2ehmExw596bBCb/erO6/C2SB4kCeDQ35aqt6cLcYBk8546gV8AF8KYQ==, tarball: file:projects/communication-rooms.tgz} name: '@rush-temp/communication-rooms' version: 0.0.0 dependencies: @@ -19498,7 +19513,7 @@ packages: dev: false file:projects/communication-short-codes.tgz: - resolution: {integrity: sha512-nn0V5SjYh82u7vuTx2WnEM069Hj+/v2i3njb8HWq/FQqEf7p+fSYttd2KzZ0QrsSrd76Z97zVhS/B8kRC9K/eA==, tarball: file:projects/communication-short-codes.tgz} + resolution: {integrity: sha512-N7gyHOC9iCgWZU6oVmTWqZ/8Rutgi6PBaAC3LK1PTBuTzxOhf/JzbrDQIzjPz30HiUE8UcxuwTvrQsPo0njPnw==, tarball: file:projects/communication-short-codes.tgz} name: '@rush-temp/communication-short-codes' version: 0.0.0 dependencies: @@ -19545,7 +19560,7 @@ packages: dev: false file:projects/communication-sms.tgz: - resolution: {integrity: sha512-hZyEGlHw4xSJazQOWmInKIfJ8fI5o0pPbZoVELotvsLviaAAmlMOleqL9QcSv1FgJyQGiWzuO6kNSHkoLCaJEA==, tarball: file:projects/communication-sms.tgz} + resolution: {integrity: sha512-MSRrfLDHFBDg93Suonv+kjnRRgTckoqXbSt+BjvxbiVYrobfgZeSbdVC7NYgNUhgYUx21AIc3xtTAg1HPgPGaw==, tarball: file:projects/communication-sms.tgz} name: '@rush-temp/communication-sms' version: 0.0.0 dependencies: @@ -19591,7 +19606,7 @@ packages: dev: false file:projects/communication-tiering.tgz: - resolution: {integrity: sha512-2AL9IUANZ+489U+yQsSmb29MF3KABWOmCyic5fpxbceYT69214dg05xnN1MIJ7zeu6HJEHgKLJf0CIIcRPv99w==, tarball: file:projects/communication-tiering.tgz} + resolution: {integrity: sha512-dU2612VMzblJyslu5Dv9cyeulP0W81HJXM1H2Nmo6lQYlbIxajCQnFUBX9BiW/f0WGtRR+R1vODJrgLoIbdXsw==, tarball: file:projects/communication-tiering.tgz} name: '@rush-temp/communication-tiering' version: 0.0.0 dependencies: @@ -19638,7 +19653,7 @@ packages: dev: false file:projects/communication-toll-free-verification.tgz: - resolution: {integrity: sha512-UhvIgPBuDKu+1RxioiHSLtyUQ7c7p+NixOJKPrnynlEm018oPZWrCnOWtXGoTVGvL1Kw+fRldF6OLAYHaeQSJg==, tarball: file:projects/communication-toll-free-verification.tgz} + resolution: {integrity: sha512-Ambimp5suKuebfSdRyVJjisXoHr58EL2Kl3oZjb+YbnoK4G3tt6QRk0FHyFC3/43l09R2Lo8Q840s2KwL6CWWA==, tarball: file:projects/communication-toll-free-verification.tgz} name: '@rush-temp/communication-toll-free-verification' version: 0.0.0 dependencies: @@ -19682,7 +19697,7 @@ packages: dev: false file:projects/confidential-ledger.tgz: - resolution: {integrity: sha512-M0m48BzBGnd0MOmj43UP91bmuHVxg0hPJAwQtFKiR/KWl2gwi1iznqCgqawWwarlRjcYhc9oILcnMEm6/3RWng==, tarball: file:projects/confidential-ledger.tgz} + resolution: {integrity: sha512-Ut50MU+bo4Sg9A2zSxUweR+O54hwTaZrh6JlkPY9T4+A+gb8lnJV3UKCw6YR4AK0RxeN1tgLPbxJUKiFW4xDkA==, tarball: file:projects/confidential-ledger.tgz} name: '@rush-temp/confidential-ledger' version: 0.0.0 dependencies: @@ -19712,7 +19727,7 @@ packages: dev: false file:projects/container-registry.tgz: - resolution: {integrity: sha512-Qy8TPCg6SNZLFu00dOFCCPe6DrUKM5RSAdNFkkCgdN4M6hzW9+MOVjQLb3KJBF+4uij3KdcxUcS50YQolhWuug==, tarball: file:projects/container-registry.tgz} + resolution: {integrity: sha512-TVzF8wfZ9XkRLVQLfhS4QLnR5qqwhIEUGWyetdwcAOL1Ew/C0QfARPJhtBRdr+8WsgY1gD+Vik5kwrh9WXlbMA==, tarball: file:projects/container-registry.tgz} name: '@rush-temp/container-registry' version: 0.0.0 dependencies: @@ -19757,7 +19772,7 @@ packages: dev: false file:projects/core-amqp.tgz: - resolution: {integrity: sha512-YH9Sn/bpoMO2RGgcFoNEKODpSzeekOk4egmdY06ziD6DRqrkAeNWLPAcKCcnO9N2kANNDcyZtXIiNRh9VE2XzA==, tarball: file:projects/core-amqp.tgz} + resolution: {integrity: sha512-6zOn7oCE3NYk9+sT/DFda1fdSa4OzmN6XaJF2zZb2L+3WQ+huO+cN1B8goQwJKVm99jc7E9Kjl4SfBJ7qUBWKg==, tarball: file:projects/core-amqp.tgz} name: '@rush-temp/core-amqp' version: 0.0.0 dependencies: @@ -19805,7 +19820,7 @@ packages: dev: false file:projects/core-auth.tgz: - resolution: {integrity: sha512-bCOyafzGH2z9gBKkzcjSR75mz1NHyYMERMSALiTOJDpeC8FuoGsCDrSOmR9/v+m2I55d6rygWYZk9VnB1q7jIw==, tarball: file:projects/core-auth.tgz} + resolution: {integrity: sha512-2jHUts5dcKEnt+X6MBU+aZe9MYqqoL5RM3rthz7wNMaW8caKbsnRJBa6b0ssWBn9GONdpjlc3TW3UevQSO75Fw==, tarball: file:projects/core-auth.tgz} name: '@rush-temp/core-auth' version: 0.0.0 dependencies: @@ -19837,7 +19852,7 @@ packages: dev: false file:projects/core-client-1.tgz: - resolution: {integrity: sha512-vFG3Xm6fMnllPJx8cckEsmZlTfc33U5U44I/EqT762Ueazm/sjd9XkOTNL3pFyz521bkjd195kDerHz6i1caqg==, tarball: file:projects/core-client-1.tgz} + resolution: {integrity: sha512-/RbXu9ILL43rbtkkPxC7xzA/gaoRE2FHHSHf/bwI3VT9zANOZAQsuYl5d0n+lwYW4Vad8fHxP7d1d7xe13a4eQ==, tarball: file:projects/core-client-1.tgz} name: '@rush-temp/core-client-1' version: 0.0.0 dependencies: @@ -19869,7 +19884,7 @@ packages: dev: false file:projects/core-client.tgz: - resolution: {integrity: sha512-9Y4Hv03ZUSxtVhWnB/7WjSi1hkaOM+KrxsR2j5QNYDFQgw+48tdNqEG85DA2le+mGNkLYD2Dm01gCcZ8tqt/dg==, tarball: file:projects/core-client.tgz} + resolution: {integrity: sha512-yHmavRIV6m8bfVDcpSOg7Q4ClPBzVriudR4lWN8C7c49gdQlyAnLNZoVCSdCTIO50ReoXsUPJ30++ktn2QXPew==, tarball: file:projects/core-client.tgz} name: '@rush-temp/core-client' version: 0.0.0 dependencies: @@ -19901,7 +19916,7 @@ packages: dev: false file:projects/core-http-compat.tgz: - resolution: {integrity: sha512-A7+R5Qx1Mq5u/5Ik5NiAthd1iaJRACoMZRQZra3kLXKbNhnuKBiORudmXWacniG8I3R5oBcATYdTrKdBZePOYA==, tarball: file:projects/core-http-compat.tgz} + resolution: {integrity: sha512-+ylx8gtst4Br/PciJYHYedyWYuZipQTeBTQVSKJIlthFF15rvLC+qWb9efu8r8sRK8m8q4VutW0vLkwZsq1QDw==, tarball: file:projects/core-http-compat.tgz} name: '@rush-temp/core-http-compat' version: 0.0.0 dependencies: @@ -19932,7 +19947,7 @@ packages: dev: false file:projects/core-lro.tgz: - resolution: {integrity: sha512-xNfjfxr11dP/YNkxldpQJXR4ULuN4LX2v9Bg/+/Xqd4A0Feh+c4o59Liofcbq8JRKJx9oM8c1OkJh/qbSb0Dcg==, tarball: file:projects/core-lro.tgz} + resolution: {integrity: sha512-y/TVvGrjbUii7Z0EVLiMJgYERMfr1mMl4iKBCps0DuaxsoV22moL12T5ZIsDwqEOAL/kKJDmBY6pqyNgU46Z6A==, tarball: file:projects/core-lro.tgz} name: '@rush-temp/core-lro' version: 0.0.0 dependencies: @@ -19964,7 +19979,7 @@ packages: dev: false file:projects/core-paging.tgz: - resolution: {integrity: sha512-JDsLQhIMx3gZeamuiAl2GQPTST/XnBwbyGK1qssPbnNiHQLpgW9pvdPixPuDp9hbLRROu1/nAPeN3hLyVDJ3SA==, tarball: file:projects/core-paging.tgz} + resolution: {integrity: sha512-olnU6yyiLN4KfwHZo51n60/ofrHacm8SHiwHtzdT8oxmiKT0b65KIAjwDo0R2/bO4yklcljuigppn09fExJRtg==, tarball: file:projects/core-paging.tgz} name: '@rush-temp/core-paging' version: 0.0.0 dependencies: @@ -19996,7 +20011,7 @@ packages: dev: false file:projects/core-rest-pipeline.tgz: - resolution: {integrity: sha512-4Ldthvl/QZZ2NOY3YcN85PYPZzVRUV8KE9rJgtbsUM5Lx3nv+TXJ8ms/r/FdYBxEalqwgfqR9FeMcLrKldfByA==, tarball: file:projects/core-rest-pipeline.tgz} + resolution: {integrity: sha512-JR+kVww42bMncvfSWGE2wAYwPbrYrTDwTN1E8aEGR+tOXPc/cnnlFu4A6muRyEkTW5MSYpMtmEG6No6nMmcJyQ==, tarball: file:projects/core-rest-pipeline.tgz} name: '@rush-temp/core-rest-pipeline' version: 0.0.0 dependencies: @@ -20030,7 +20045,7 @@ packages: dev: false file:projects/core-sse.tgz: - resolution: {integrity: sha512-q/WK/OEeGAqY9Z1InykYCwTDXlvYwMpuXtcaJf3CRFduO5uTNIAzE6Oow/g+MZj4PScJsb8um0OoA6yEbbcZtw==, tarball: file:projects/core-sse.tgz} + resolution: {integrity: sha512-DrUF1P0l7NtmOD7JTTCJDefaJxaaRTVm8uk0tkvrtAlGhq9zt8b4v+N5cGdOczuf/pnIK1hYQFayR5JI45Q4/w==, tarball: file:projects/core-sse.tgz} name: '@rush-temp/core-sse' version: 0.0.0 dependencies: @@ -20063,7 +20078,7 @@ packages: dev: false file:projects/core-tracing.tgz: - resolution: {integrity: sha512-ZnVM5XObxvdJpujx8hFYgwyujkVN4I/lmFEIYHBHPMIqz9op1ExD3fbWZ24UdS0sjwRVbfA2Iw5oCugAe3YG5g==, tarball: file:projects/core-tracing.tgz} + resolution: {integrity: sha512-U6ADeP6ytcDUCRx8HfzEqgNbj5GNKnrFSRUc2T98avvLzp58Li8KwVbeSkmNBQeSx5sp6+CkAkJOAWpG6soivQ==, tarball: file:projects/core-tracing.tgz} name: '@rush-temp/core-tracing' version: 0.0.0 dependencies: @@ -20095,7 +20110,7 @@ packages: dev: false file:projects/core-util.tgz: - resolution: {integrity: sha512-BEIq8Mts7uMOT797uhwA/DTD2NA/nYRMNaBJ8REjpZi0TXSxiXwVc2snguaPiAWAiLZl0RLtlGxtVlnAEGLbEw==, tarball: file:projects/core-util.tgz} + resolution: {integrity: sha512-eFRLe6IZejZwNUDxBC9JbG5JsrROVa8lLQT9wJepgRc/T6VHsigrHvQMmwHYA9ybp9n2r+uourgLjbryEe2qSQ==, tarball: file:projects/core-util.tgz} name: '@rush-temp/core-util' version: 0.0.0 dependencies: @@ -20127,7 +20142,7 @@ packages: dev: false file:projects/core-xml.tgz: - resolution: {integrity: sha512-7S8nEgU5KmSWmitmBY9gh0xLZHoVS/ixSWHNptOvY93kUj4EDoncE7cDQSwvsTZw4W9B1ydQbw6kyThRL97K1w==, tarball: file:projects/core-xml.tgz} + resolution: {integrity: sha512-G55wb8/1rk0vblDuHVaXdJGDka97QRcINhcimpcpB0vEACFY8BA1kipqe6fOzHTI+YPHHyCEz24/0rf650+tdw==, tarball: file:projects/core-xml.tgz} name: '@rush-temp/core-xml' version: 0.0.0 dependencies: @@ -20161,7 +20176,7 @@ packages: dev: false file:projects/cosmos.tgz: - resolution: {integrity: sha512-k8stQJDSHPXhmgkSNs/ulMJwPPnxXB/w5BgGtOWu9J9M+rjtGoPTiPsuwsNrUHEuz9xvroMdxbKLNJNXiHLu9A==, tarball: file:projects/cosmos.tgz} + resolution: {integrity: sha512-0v1bmTFRgXFJPRDMAZQPfOaYLBR7C71jqvceC2m0mWwR9ljvQKx2bxjAH3a6luieWIP22zOv1ozmYLm5c5coYA==, tarball: file:projects/cosmos.tgz} name: '@rush-temp/cosmos' version: 0.0.0 dependencies: @@ -20202,7 +20217,7 @@ packages: dev: false file:projects/data-tables.tgz: - resolution: {integrity: sha512-u5oqhA0j9Jw6vMUVntv72ZZkCudLYAaBulp6PIT9RSv14NumLHGLyREQnGDAXBXqmbe9+Vz4czFSwVtatqK4ng==, tarball: file:projects/data-tables.tgz} + resolution: {integrity: sha512-gy8athc1GjMM8SXSFbd/T97YL32IqLca+oEKELuftNQgXbdBcPqhXVZhLB1lsuKOdCvdw48N0MZWkitpAVC4Ag==, tarball: file:projects/data-tables.tgz} name: '@rush-temp/data-tables' version: 0.0.0 dependencies: @@ -20246,7 +20261,7 @@ packages: dev: false file:projects/defender-easm.tgz: - resolution: {integrity: sha512-o5DbhNz+IhKlcyejPVDXxvbYCVRV4MbYLR8iy+T2GJcnbtzj6ItonNv9UHUSBxdykBbFKdBSahgL5RZNyZ+o/g==, tarball: file:projects/defender-easm.tgz} + resolution: {integrity: sha512-3tDPav1BNGHWZC3iq29Shix/tC94el7P/kvaoROponvav7SVw00sNIt6D2Qu05uh05zohWkshB2LLPQ37bBxSA==, tarball: file:projects/defender-easm.tgz} name: '@rush-temp/defender-easm' version: 0.0.0 dependencies: @@ -20293,7 +20308,7 @@ packages: dev: false file:projects/dev-tool.tgz: - resolution: {integrity: sha512-mf1EMMPr+3cw+PHiJF9hmKT/H5T6Xi5lwY7NG+UWQGabk7qPuduoRwkQpG207CwH56Yrs1pan2Qs9AGWI1s+JA==, tarball: file:projects/dev-tool.tgz} + resolution: {integrity: sha512-Xef6yFTzkzY5FP/Q6/WfIxVXCW8Dn+le7XOCIXXnMxFNHI18pWKGWZQuvhH8kHO/dkyA2s7npvIVKW4PKas5gg==, tarball: file:projects/dev-tool.tgz} name: '@rush-temp/dev-tool' version: 0.0.0 dependencies: @@ -20360,7 +20375,7 @@ packages: dev: false file:projects/developer-devcenter.tgz: - resolution: {integrity: sha512-GmxMLOmDadXhKvnOdsH2Yu8R2d8uulBFBScnAB9FuP0MspimnFFQh4OJYXM4XPP1tssIafKxASgSmBseS/YDPw==, tarball: file:projects/developer-devcenter.tgz} + resolution: {integrity: sha512-wslzkw8iSADqg3l0cBRPkXOgv20hUZbu9fNn/+ejt3YQYRL0rElOKnKaptx4cZ4aYRrktBLxd7QNb7716511qg==, tarball: file:projects/developer-devcenter.tgz} name: '@rush-temp/developer-devcenter' version: 0.0.0 dependencies: @@ -20407,7 +20422,7 @@ packages: dev: false file:projects/digital-twins-core.tgz: - resolution: {integrity: sha512-PJUP7UgpEbZGTQ2O+RmNmdnzVDBCNVeeTIcIVPZdlt5X+x9GLI7AtGmy+Ne0szQ5mY/4OYVndrQtbVf2QXGjJA==, tarball: file:projects/digital-twins-core.tgz} + resolution: {integrity: sha512-rSgOH3WBvx7so7vtqYJXGpZtGY71AVPK4c5+KST8HR6/jNKWnG6+FExO7iO1063PAXwqXcGroTUlIwY+ZSILmg==, tarball: file:projects/digital-twins-core.tgz} name: '@rush-temp/digital-twins-core' version: 0.0.0 dependencies: @@ -20453,7 +20468,7 @@ packages: dev: false file:projects/eslint-plugin-azure-sdk-helper.tgz: - resolution: {integrity: sha512-kRAOQE31wzflYYlkqF/owv9V8ejpolAkmcglKEucRqNuhNQ4eP/YDYvCo+Wm+8cFYZNuEaucT6h6rnBVUyEOLg==, tarball: file:projects/eslint-plugin-azure-sdk-helper.tgz} + resolution: {integrity: sha512-KJA0P5zFDMNhEWk63glsLOa3iJawc8eyQV8qntv+3TJoS0GFTZM/eRq/EnDj7y2k12owOZz+YrfzNVVnHkgk2g==, tarball: file:projects/eslint-plugin-azure-sdk-helper.tgz} name: '@rush-temp/eslint-plugin-azure-sdk-helper' version: 0.0.0 dependencies: @@ -20480,7 +20495,7 @@ packages: dev: false file:projects/eslint-plugin-azure-sdk.tgz: - resolution: {integrity: sha512-xRRhvi+SVAszKGJ0D4R+iF4l4rxU4TGxNSBXqGmQLtBMn14PlJlm0VHT9fIDaZ37yRPxvcSxx6eyp9aUOpfNcw==, tarball: file:projects/eslint-plugin-azure-sdk.tgz} + resolution: {integrity: sha512-WGqzkBzU2qeGjkYSzGB7zapp3iM001jblIdHZfkwHBT33MdQba5s+Do5ZnZPu5ILi7SBfu0WO4VntiF2q3poBA==, tarball: file:projects/eslint-plugin-azure-sdk.tgz} name: '@rush-temp/eslint-plugin-azure-sdk' version: 0.0.0 dependencies: @@ -20529,7 +20544,7 @@ packages: dev: false file:projects/event-hubs.tgz: - resolution: {integrity: sha512-PpKO2F0cVbAVmlibkwgzGv7LAJybNpc54lujfc8vgMw5RU1hNDPjaeOIj+P/Aa89+63EO23YxwRa86vWvTW9dw==, tarball: file:projects/event-hubs.tgz} + resolution: {integrity: sha512-mqaUvspYjI39cRH2RmYrcdoQn1iuukp9jA99HUktWUo36N2kg71xY9WAoXqvqYRq+e6BCgK4bBTN+QSdGXoCsA==, tarball: file:projects/event-hubs.tgz} name: '@rush-temp/event-hubs' version: 0.0.0 dependencies: @@ -20589,7 +20604,7 @@ packages: dev: false file:projects/eventgrid-namespaces.tgz: - resolution: {integrity: sha512-oiAWRRrmoR318AbKUXkaM+AW7To7EFZf05Wp4V8YwEcQy7LYB90eocuN7mC1EuYRW13TepAqcXQVPgfU7KQFVg==, tarball: file:projects/eventgrid-namespaces.tgz} + resolution: {integrity: sha512-6FHPXRSxkd2/Fh9+Bng4fN1qa444kTwMwKyD/l1KZiinlOYPXYWM5RIv1sSu46x5x64m7HD/kL0bfPqHB0Ul8w==, tarball: file:projects/eventgrid-namespaces.tgz} name: '@rush-temp/eventgrid-namespaces' version: 0.0.0 dependencies: @@ -20636,7 +20651,7 @@ packages: dev: false file:projects/eventgrid.tgz: - resolution: {integrity: sha512-7shUAEcQDMj67CrgI4QjwcXp5+eOrVvZUZ6vlz057PfpLWBwR7wwkMk7d9K34QWHyP+TT8kNUdmx2NfLMvWjaQ==, tarball: file:projects/eventgrid.tgz} + resolution: {integrity: sha512-v1UvBWcby0gwLiwBXSIMOZep3JZZ3kjxfIrwOpW45agBs9Nl08f8GLA34bnYRS6TpGY/nIPTN0fVCBUj+IU8MQ==, tarball: file:projects/eventgrid.tgz} name: '@rush-temp/eventgrid' version: 0.0.0 dependencies: @@ -20679,7 +20694,7 @@ packages: dev: false file:projects/eventhubs-checkpointstore-blob.tgz: - resolution: {integrity: sha512-gYOpBSzMBs/wUWGwU9ze5PTN+2Iz66I1Cplmz4PZ1tPyEx6QZRVc3gZabi2vfiGY8EEJM/zsOtmcxdTY57WejA==, tarball: file:projects/eventhubs-checkpointstore-blob.tgz} + resolution: {integrity: sha512-M+p6/rXzuCFLHAR5nGfvEDTn8znmr+2HQIWTSHVreJWIZu3wtCUeNHELFTQl4cmRw1pJFdE/94rH8BNmv2yk8w==, tarball: file:projects/eventhubs-checkpointstore-blob.tgz} name: '@rush-temp/eventhubs-checkpointstore-blob' version: 0.0.0 dependencies: @@ -20728,7 +20743,7 @@ packages: dev: false file:projects/eventhubs-checkpointstore-table.tgz: - resolution: {integrity: sha512-fDjdl55fWeyQcCEjqJAAAJdefgTioeDwLK9uWdQHdFPBBlYFPfgOBkd5+SwSU0MXItniMhYsfl+WcIVmPayL7Q==, tarball: file:projects/eventhubs-checkpointstore-table.tgz} + resolution: {integrity: sha512-YrNAGcbEHO/3iYMoX2Pr8lxgfx53Ggel7ub3N105kO0R2xTmS3z79ygC+wz9LpgQdPy7UtGgJEdiVQOJ99GDzw==, tarball: file:projects/eventhubs-checkpointstore-table.tgz} name: '@rush-temp/eventhubs-checkpointstore-table' version: 0.0.0 dependencies: @@ -20774,7 +20789,7 @@ packages: dev: false file:projects/functions-authentication-events.tgz: - resolution: {integrity: sha512-EBHC9eBFDkiTeu6Z+7AIxNE0TL6kjyQY4hGULO1CWsDF10RHW2+fDdb/OJ+zJQz/oVkShyMx/yzf2Ezt7AHfKg==, tarball: file:projects/functions-authentication-events.tgz} + resolution: {integrity: sha512-4mFhWOZES5SUB/2diTQQPQHRdO988Ns5UnRNV5r8disbYVg660Dd5X3Xq66Ry55mK2Bt0sfz1qOH9AHfkIOblw==, tarball: file:projects/functions-authentication-events.tgz} name: '@rush-temp/functions-authentication-events' version: 0.0.0 dependencies: @@ -20819,7 +20834,7 @@ packages: dev: false file:projects/health-insights-cancerprofiling.tgz: - resolution: {integrity: sha512-knSmGvR2vrh2PC6vk+0kTQ3FRRmD31neBGDCABqATHfI+NKzAY1KUJ6iBd4syBA9upFFkBRjYOT74l3P9tCASw==, tarball: file:projects/health-insights-cancerprofiling.tgz} + resolution: {integrity: sha512-288H2dapTauMnvVvXaD3DjwWR0zP6W/s/C8KiAZ5a+C1pf+ykPzQXZ0sl5E+0oj5P4AHkTiE1Nz2VbSPYRBzmw==, tarball: file:projects/health-insights-cancerprofiling.tgz} name: '@rush-temp/health-insights-cancerprofiling' version: 0.0.0 dependencies: @@ -20866,7 +20881,7 @@ packages: dev: false file:projects/health-insights-clinicalmatching.tgz: - resolution: {integrity: sha512-ikoz79TFUl/5jnayf0QfpcN6DfPm1LTsPgiIGoHklWAfV7OComuUkvYdhVEuZ8222CPNC1IPpn7C5z4noWS8qw==, tarball: file:projects/health-insights-clinicalmatching.tgz} + resolution: {integrity: sha512-RLEY5FsCQo/L6FJDqOZEuc25wMPACvXA3He6z5a2F/XDXJ1qB/Q7LQ2nZO2stf0dTXYCb1HIyP/xNIubhM1EEg==, tarball: file:projects/health-insights-clinicalmatching.tgz} name: '@rush-temp/health-insights-clinicalmatching' version: 0.0.0 dependencies: @@ -20913,7 +20928,7 @@ packages: dev: false file:projects/health-insights-radiologyinsights.tgz: - resolution: {integrity: sha512-xAM2kqKp9eRjzuQV4Obk+hv02S1J/DHcxuTLipVVPUSYsGU7neDsoxlhre/XmxAei7GhKj8mW1MeULxae54+fw==, tarball: file:projects/health-insights-radiologyinsights.tgz} + resolution: {integrity: sha512-y6flqr0Wkug13wsvIqyVnZqI54GZXtYQSmUT+ABT25Swnp98+h//aSe8WKoVI6OH3dyPrBfv6WfaUA06huxS/g==, tarball: file:projects/health-insights-radiologyinsights.tgz} name: '@rush-temp/health-insights-radiologyinsights' version: 0.0.0 dependencies: @@ -20960,7 +20975,7 @@ packages: dev: false file:projects/identity-broker.tgz: - resolution: {integrity: sha512-57sXv2WiScpT3AbpWmzAzUjdtGy63ukxyB0m4iS8K6R21n8o0+KXZU7siFFV7hRldzj2xUxYMMpgdedI0yrCXg==, tarball: file:projects/identity-broker.tgz} + resolution: {integrity: sha512-tsHuwfE3D/j446P8b5L9clN8QIamS8ilfn4nyHklU/DKRLeyzaqDyAgZ4HKsChBBXHIoEjLn3KI53u8ZnfnQmg==, tarball: file:projects/identity-broker.tgz} name: '@rush-temp/identity-broker' version: 0.0.0 dependencies: @@ -20988,7 +21003,7 @@ packages: dev: false file:projects/identity-cache-persistence.tgz: - resolution: {integrity: sha512-4d18eroBNxUQK0rIm4Hr+jf72gFG/Z2qtApwp+a0wqxR0GANOHZzm2W59mZg7bDIXqFTXYboB1jJ8lSc8tIOQw==, tarball: file:projects/identity-cache-persistence.tgz} + resolution: {integrity: sha512-2G9g3YR5pYi1MUour7OL2JV4u/AH2T3omZCaKA+IKr0AKQ71dM0jCof85MbC/l+dPOStytLq08M1U/46KBzbIw==, tarball: file:projects/identity-cache-persistence.tgz} name: '@rush-temp/identity-cache-persistence' version: 0.0.0 dependencies: @@ -21024,7 +21039,7 @@ packages: dev: false file:projects/identity-vscode.tgz: - resolution: {integrity: sha512-+bunzAGa/7EawRgBUQXKh92PeI0vIVxGaQW+lWZ5IMc+oDjGmlG2Ei/EIgkAW9jzJVhckCwk2/D7frXysJIYig==, tarball: file:projects/identity-vscode.tgz} + resolution: {integrity: sha512-IGrhmoRUb2ZhgG/m2deIfPIUSrehNpuyNwWRdOm8ims7ain7PQgpy9CSPMIcsq49LzRCllq9y9NcQ+D7fsHHZw==, tarball: file:projects/identity-vscode.tgz} name: '@rush-temp/identity-vscode' version: 0.0.0 dependencies: @@ -21059,7 +21074,7 @@ packages: dev: false file:projects/identity.tgz: - resolution: {integrity: sha512-u1dbgoew26XEWD36lWOTrU9z1fEV4bdc+pqGBG6ACxWJKXnWhxJH6WjdBsSFxI3SYtd8zcudAexxSdy+B0EOuQ==, tarball: file:projects/identity.tgz} + resolution: {integrity: sha512-hByUR/HYHlfBSNb+6QYjcOuIxsu1J1jbdR7YRiSdbXIZfjQ9ovVR5MaEwYVI5no6azfCiiBcEHdnVtn/rVx8Aw==, tarball: file:projects/identity.tgz} name: '@rush-temp/identity' version: 0.0.0 dependencies: @@ -21116,7 +21131,7 @@ packages: dev: false file:projects/iot-device-update.tgz: - resolution: {integrity: sha512-y8igara0nPLv+Svp/d4sVOePSqCMhQ4D4ls+qvYe7PK/dnKa0KHMLpD1mOOxck8cHng/0k4oxysdMlJKLp/JFA==, tarball: file:projects/iot-device-update.tgz} + resolution: {integrity: sha512-aLWF455OqyXe4AEKo503tZcquAANip3wKtTHmt218aCDpiH6yU9zVMO+fDGguF8y6wOTEajliTKG5YZgr8/aQQ==, tarball: file:projects/iot-device-update.tgz} name: '@rush-temp/iot-device-update' version: 0.0.0 dependencies: @@ -21163,7 +21178,7 @@ packages: dev: false file:projects/iot-modelsrepository.tgz: - resolution: {integrity: sha512-Z3r0s0MPewb2f8rUylf2xeUBdiM5MK9AFevBkBU/9z99pUjZyh1kvAk9zj0TQbHEJpuaGAw6fdFxvaZd0ye4gw==, tarball: file:projects/iot-modelsrepository.tgz} + resolution: {integrity: sha512-Mj6YTGX+Prxqr38w409U9syJ9cjHNcGTPFA41c21gposz3Sy25mD9hx/wwBFX4U1GsL5Jqub2g8aVyjtyd/IZg==, tarball: file:projects/iot-modelsrepository.tgz} name: '@rush-temp/iot-modelsrepository' version: 0.0.0 dependencies: @@ -21207,7 +21222,7 @@ packages: dev: false file:projects/keyvault-admin.tgz: - resolution: {integrity: sha512-vONPnewx6q8BuPkbnPduyYeHlChDqYqJO70vANam6CsFMN4zAyHWuHRCe7PchtOSgx0vzkl/YvG09kl2V7zuZA==, tarball: file:projects/keyvault-admin.tgz} + resolution: {integrity: sha512-WCiJvP3In04vn6vdmkeDvCYcJ9/Ze4JCmcc3ALCi1EMXt9/ZS7KDOBIY/f0mvvBlX+6Mo0jJrIrEBVedJNoISw==, tarball: file:projects/keyvault-admin.tgz} name: '@rush-temp/keyvault-admin' version: 0.0.0 dependencies: @@ -21240,7 +21255,7 @@ packages: dev: false file:projects/keyvault-certificates.tgz: - resolution: {integrity: sha512-Qwd98s2iMN4ZDxh8XLsert9imux/RrQnUV1NVwzxAaNd7K6dvhZOcOgsZrJQ/rSOkyM9/sVldVGEY/thRFecLw==, tarball: file:projects/keyvault-certificates.tgz} + resolution: {integrity: sha512-S23dQdwK1jnJwX1XoGiLrntDpG1kJRsPeXvbWo9WEZhOll+1zYWqGGDGj4trhDsIgDjBI+9zLDFSi/E1zg5jbw==, tarball: file:projects/keyvault-certificates.tgz} name: '@rush-temp/keyvault-certificates' version: 0.0.0 dependencies: @@ -21286,7 +21301,7 @@ packages: dev: false file:projects/keyvault-common.tgz: - resolution: {integrity: sha512-HZlDlQ+CmWc57EMgQAnEVW6T0KCD1aB0F26iV62uWvFFfGtPgNeT5H0f8YGTt64qnyWjVKcSch5RRReLmFY4GA==, tarball: file:projects/keyvault-common.tgz} + resolution: {integrity: sha512-qUpo5LZ1iwi7FQf6Qq0xYShwVlUb01cXDQ0jskosTo96ckDRMiX6G9edfJT8WgB2472yPcRa0XHshz6qwbasUA==, tarball: file:projects/keyvault-common.tgz} name: '@rush-temp/keyvault-common' version: 0.0.0 dependencies: @@ -21314,7 +21329,7 @@ packages: dev: false file:projects/keyvault-keys.tgz: - resolution: {integrity: sha512-aS1vKYQKlF2GV2cfqHc1H2/k3VoGwG1E/lTr5W/K91RgiyX2B3pRx2h3Ti7LIKRYvCiEEiMPk0jB+p0RuRVHoA==, tarball: file:projects/keyvault-keys.tgz} + resolution: {integrity: sha512-H3cD63NehEEMN5/3s3Jvf2SBccKPUYojw6Xz02NboizdtyksVK6rjGUgXxCSuLUnF49tqHdT4Jt41m8icLEYNg==, tarball: file:projects/keyvault-keys.tgz} name: '@rush-temp/keyvault-keys' version: 0.0.0 dependencies: @@ -21361,7 +21376,7 @@ packages: dev: false file:projects/keyvault-secrets.tgz: - resolution: {integrity: sha512-z6heC9EfNP0bWwSpepGq5HGqDkmDNBlekUq/6tEHK3EnjyJiUJHTHecq3gjY1BNt0H6c5HkKiu09x4LGtwAtew==, tarball: file:projects/keyvault-secrets.tgz} + resolution: {integrity: sha512-agHy9pw+tLm0Tpepc9C2TLz+IStKOHE8tOvHN88mDWl5beuZGRslN/jsfaog4bkeTRganPYOZqLBaLsg3/auHA==, tarball: file:projects/keyvault-secrets.tgz} name: '@rush-temp/keyvault-secrets' version: 0.0.0 dependencies: @@ -21405,7 +21420,7 @@ packages: dev: false file:projects/load-testing.tgz: - resolution: {integrity: sha512-6V0S3pIyGB+gIDspR+XRRlf8pRE5pi5HHGL29serWXBPDGM8D17jBuSQjwUvchKURVRy0VJad/sAnvtrqrzrzg==, tarball: file:projects/load-testing.tgz} + resolution: {integrity: sha512-cr2hScfeQgVdRAGOZcg1M9J7yX/6xehSxOEAxWsT+cVngt4TNdhYQUPtiN1oKuTKm9PswgXar0DQPrOJxtdKCQ==, tarball: file:projects/load-testing.tgz} name: '@rush-temp/load-testing' version: 0.0.0 dependencies: @@ -21454,7 +21469,7 @@ packages: dev: false file:projects/logger.tgz: - resolution: {integrity: sha512-DXdgDzzwRLpM45GbytE0xo7X2nzZEMBB4fXm6sQdzhx/oqi24eMMVOdHnXZ3UtgoOaHTKni5cgnEaW7ySJQxQQ==, tarball: file:projects/logger.tgz} + resolution: {integrity: sha512-wUuLbeDFqwh0hlDLDLsgXWTp0Z7UBbV23hPR/iw4e2RcSkQDF4MqJrUYkm7hNIuLkgUfiJU+OAXWySbftzu0Ig==, tarball: file:projects/logger.tgz} name: '@rush-temp/logger' version: 0.0.0 dependencies: @@ -21487,7 +21502,7 @@ packages: dev: false file:projects/maps-common.tgz: - resolution: {integrity: sha512-C0UH1u82g5SVN6aUh9HpbrTEV4yg+LR3zGsgGq+5DOlDQ7rLz2tyaKCf1hT13B5+xlko38jYB2sguwE8kAMs7w==, tarball: file:projects/maps-common.tgz} + resolution: {integrity: sha512-AQCdfMgx3/Vv0dlAhhnYTyIojwZlQr3joRLHxJB93H/fdUG4IFwvZggRjos0ckEzURgZjHQIwHFZwibS3S+G+g==, tarball: file:projects/maps-common.tgz} name: '@rush-temp/maps-common' version: 0.0.0 dependencies: @@ -21506,7 +21521,7 @@ packages: dev: false file:projects/maps-geolocation.tgz: - resolution: {integrity: sha512-+GGM8Da7UTLzmFpgdpBJNyRR8zf6kkYU/P+upwTKKPW4HSPTYTHJzv2F+AWSSNHCTHbEWukJItbmI9tAGMPP+g==, tarball: file:projects/maps-geolocation.tgz} + resolution: {integrity: sha512-Vm5Xi0fjf0xWw/Pthatr5dyiRt3z8+2b94gkiXFovEVfHEw9GE/mK72GGfi0EbzM1FTEoi4Y/exce+xLalTXAw==, tarball: file:projects/maps-geolocation.tgz} name: '@rush-temp/maps-geolocation' version: 0.0.0 dependencies: @@ -21552,7 +21567,7 @@ packages: dev: false file:projects/maps-render.tgz: - resolution: {integrity: sha512-v6aRlzZOvEjMpc4gkHkN5gAEzZCbb97P4Hc+icaPTPjqWFiKMKKTnhkvL0KtWfxBhfhYtTpVIb9yVlDG+VKJEQ==, tarball: file:projects/maps-render.tgz} + resolution: {integrity: sha512-+tq/A1pRzI6g2fcoVGFf4jGjoHEIDUX9LuOK4083oiPQ1roC7fFiGyhQaPmcbtpxPRQWT0KDfimXW3PWV5riFA==, tarball: file:projects/maps-render.tgz} name: '@rush-temp/maps-render' version: 0.0.0 dependencies: @@ -21598,7 +21613,7 @@ packages: dev: false file:projects/maps-route.tgz: - resolution: {integrity: sha512-f9kfTahoWAyKRaF4L8SKN3HUuHvSCaj+8IsSd/IpuuJ02PnDGBvLGdIxlgXEQCq4mia4mRTFIr6OoeYijp1gKg==, tarball: file:projects/maps-route.tgz} + resolution: {integrity: sha512-j6DD5KKmszXmTFhDqaKq6hDAWqtE6R1TON8TvF29nNSB0d0SCmAgyX/rJ5+bs615v7+wAL6/Hf35Ecg5KBZt7A==, tarball: file:projects/maps-route.tgz} name: '@rush-temp/maps-route' version: 0.0.0 dependencies: @@ -21645,7 +21660,7 @@ packages: dev: false file:projects/maps-search.tgz: - resolution: {integrity: sha512-4fwjw3YuPIQGvLdzaAPAbtkMHG4zkZ1lO2N+dVAXgOHYpABOELJaLfOBuFdy1jkuaysZEzd57ZbvxY/xU4VVMw==, tarball: file:projects/maps-search.tgz} + resolution: {integrity: sha512-7bpzMAvBQnyBwmflWrakVxhggSwFrhkR9+KmnLTa54w+l/Kk16Tf2NIv80TwaX/Waudp0amU1wz6bXAwUjl3cw==, tarball: file:projects/maps-search.tgz} name: '@rush-temp/maps-search' version: 0.0.0 dependencies: @@ -21692,7 +21707,7 @@ packages: dev: false file:projects/mixed-reality-authentication.tgz: - resolution: {integrity: sha512-xr6cEWU7r4iiDGpHx7qlntr8DF7G4y9SzSC0dVANd4KOIBuUQJc769wGoAFJJk+kZjpuE9ooAj//C9uV2FW7MA==, tarball: file:projects/mixed-reality-authentication.tgz} + resolution: {integrity: sha512-no5+L3eIuY6tuBpXwmnhEkVFcLcrz6I16PnheCRki3VmGKpUOlNV1BHT8f3cd9Oly7air1Typgc54Fc7tAw2nA==, tarball: file:projects/mixed-reality-authentication.tgz} name: '@rush-temp/mixed-reality-authentication' version: 0.0.0 dependencies: @@ -21735,7 +21750,7 @@ packages: dev: false file:projects/mixed-reality-remote-rendering.tgz: - resolution: {integrity: sha512-N27o70P/K3PKkRMvzfLRMEdA4PbiyZWKSJpT3+yiVs4qChH+UtljaLAQwaFeHXqQ/UoG3y6igQruvSnAbJAlkA==, tarball: file:projects/mixed-reality-remote-rendering.tgz} + resolution: {integrity: sha512-dhjLeKoVTB8SwN5a2jvZXDNI57wZyva66dPPrWY/s5UC8nXg9z4nsDYW7GP56qY+I8h9HXsSC43mFycIjw/dEg==, tarball: file:projects/mixed-reality-remote-rendering.tgz} name: '@rush-temp/mixed-reality-remote-rendering' version: 0.0.0 dependencies: @@ -21783,7 +21798,7 @@ packages: dev: false file:projects/mock-hub.tgz: - resolution: {integrity: sha512-2u15yJgthiFRvamHInxtcoPhxPynLh1lNdXF95NDdXlt4Eoqn1RumKuzrSX/PzIQEVU+OUrNAi9EmktTV395/A==, tarball: file:projects/mock-hub.tgz} + resolution: {integrity: sha512-HdkufUS5H4Ypr/1+cJ8EQcD9C30Jir9slYsZjgs9wCBhPHBtn8wOer0XDhSTJ4W4JnuR2XE3zc5JyHGeRZ2HKA==, tarball: file:projects/mock-hub.tgz} name: '@rush-temp/mock-hub' version: 0.0.0 dependencies: @@ -21803,7 +21818,7 @@ packages: dev: false file:projects/monitor-ingestion.tgz: - resolution: {integrity: sha512-fL3tQObZwLkNWleudftXuNCTXkiQN9BlzFvrqCaWJ9Jhs1fu5SrVLqUF+xZal1RgAqIqgAfPU4tgM688LnLd7A==, tarball: file:projects/monitor-ingestion.tgz} + resolution: {integrity: sha512-71XPUWsMg3wyJysCxcZmGn4dIaq57JdD4D8E1VBKBhmkVF0VwZ1r7ExZ3dtry0fKdoGY4MzcCH8jNpiAGIuHow==, tarball: file:projects/monitor-ingestion.tgz} name: '@rush-temp/monitor-ingestion' version: 0.0.0 dependencies: @@ -21852,7 +21867,7 @@ packages: dev: false file:projects/monitor-opentelemetry-exporter.tgz: - resolution: {integrity: sha512-RBEpLP5B1aAAf4iTK9r4N6g77n24F4zeaVZ0z9E6PFacbszFJ3h9I08r+w7KjSPKITOquC0+otdOJw2j/zsxvw==, tarball: file:projects/monitor-opentelemetry-exporter.tgz} + resolution: {integrity: sha512-iie/rpe9LvtyvBe5k+GaiVbKLqF3yO0+teFYtkSZteiXveFT/6MDpCyJn4R4a1+rvWAV+/6BrRezi7Lr5o56zA==, tarball: file:projects/monitor-opentelemetry-exporter.tgz} name: '@rush-temp/monitor-opentelemetry-exporter' version: 0.0.0 dependencies: @@ -21887,7 +21902,7 @@ packages: dev: false file:projects/monitor-opentelemetry.tgz: - resolution: {integrity: sha512-h+uhqPeVXpFWuwP2hECZ/VtNUBMda9US9itPi481shpCIS9lIXaTElGhR6+cdiasEfBgjOn5OW1jRks01yP2vw==, tarball: file:projects/monitor-opentelemetry.tgz} + resolution: {integrity: sha512-GsO6DeOxamDDxLohJX/Yaqdwm3R0YtMJaJAn3HS+AP2bcqWhCl/g4uq6lOh6WeNFNeKSaVM1izJTSXmjCdc/TA==, tarball: file:projects/monitor-opentelemetry.tgz} name: '@rush-temp/monitor-opentelemetry' version: 0.0.0 dependencies: @@ -21935,7 +21950,7 @@ packages: dev: false file:projects/monitor-query.tgz: - resolution: {integrity: sha512-HbWJ6LVOP5aHHrp0Ve4YP6TJ1sbzFMenebQu2Uy1OlsxjjxfZr0FbSj20aHxliyVxMGhMN107PL9YeoLqExrYQ==, tarball: file:projects/monitor-query.tgz} + resolution: {integrity: sha512-J/R5iGViGOeLIG0E1dTE8IHbzqXlfYF61wQUF2n7DEw7hwfM5x0Og2TPxF4sED+NgMBlYuedpxxQkVRx1Sb0eA==, tarball: file:projects/monitor-query.tgz} name: '@rush-temp/monitor-query' version: 0.0.0 dependencies: @@ -21980,7 +21995,7 @@ packages: dev: false file:projects/notification-hubs.tgz: - resolution: {integrity: sha512-VNk6zld7/oXfKhhFjUhDzBuspNUuYcbRRgewl8i/i/8UPWGgjvlqo9PLlm4/HvOKfdCFpSeYM/iAkxZosIC1Dg==, tarball: file:projects/notification-hubs.tgz} + resolution: {integrity: sha512-95O/bVHpvyMqV8yRtAWbqJbZU81KlQiQeT1EpLbV0bDZgz+xsZfHx5zBv77SwgUp8zwcT4Cu8iVq5PK50mSQHQ==, tarball: file:projects/notification-hubs.tgz} name: '@rush-temp/notification-hubs' version: 0.0.0 dependencies: @@ -22015,7 +22030,7 @@ packages: dev: false file:projects/openai-1.tgz: - resolution: {integrity: sha512-/hEWC93Y6dGctnxyu7/GluD2agiwmTNkPA3VqRdb59ocDjHt93+5RXdTWrVl3kFWgk1vzbf/4tgnG3M936ScvQ==, tarball: file:projects/openai-1.tgz} + resolution: {integrity: sha512-HX1Au1r6w5Y7cjcWqQmxe9iXgNvlFncM8w52xZt5l18mOqenpc8GWnauBGG2uFzCOJgjzOtmD1hILq5deq3WiQ==, tarball: file:projects/openai-1.tgz} name: '@rush-temp/openai-1' version: 0.0.0 dependencies: @@ -22060,7 +22075,7 @@ packages: dev: false file:projects/openai-assistants.tgz: - resolution: {integrity: sha512-HHjJ5/7nk0PjHl396f+p6z0wjxj4uT7/y0fgFnDn+/zt7UYZ5SAgH3p+hpPBbCWvLdw1JwRoks29LsOtTjDxQA==, tarball: file:projects/openai-assistants.tgz} + resolution: {integrity: sha512-wy+4izUGCLqL3oOVK5YwSrO/s8Hz2iRGEaQCOCsHlo6MfHw9K1wvZrqoVJh8jUtzygqZb8aygHLrHOZhtEeU6Q==, tarball: file:projects/openai-assistants.tgz} name: '@rush-temp/openai-assistants' version: 0.0.0 dependencies: @@ -22103,7 +22118,7 @@ packages: dev: false file:projects/openai.tgz: - resolution: {integrity: sha512-cokO7nL3WDl/VR3sTwekw0uMmjIjAIhpKruJjOkH5usVY3Hdaf+DKXY8PMTK3v8HuyGk8gulKTXofnQ0DxV2BQ==, tarball: file:projects/openai.tgz} + resolution: {integrity: sha512-e4pnCjShYvb0POzp1ehbHeltH9nSgLS8h2uBIaV1g8Fb+XFzgKMOS3WRn4Y6CsM9dIccAcUQ/InvnX1L3SL8bg==, tarball: file:projects/openai.tgz} name: '@rush-temp/openai' version: 0.0.0 dependencies: @@ -22125,7 +22140,7 @@ packages: dev: false file:projects/opentelemetry-instrumentation-azure-sdk.tgz: - resolution: {integrity: sha512-JZIZCjOmPbiKTkvQF7JtUNfbomWa6GE4a9ot6hvFA8PQmwN3WPb+0u7iEPt/rMIAASE+a6JkgHchQ+Q4PgOujA==, tarball: file:projects/opentelemetry-instrumentation-azure-sdk.tgz} + resolution: {integrity: sha512-vSVMVXdzHUQm/Ie+sV7/GgYfpw/co4bYdoyUd2I/IlRnm3VEMcMq8qnwU6SeWfYHvJBcGyPFh0/lI/hIY4hI7A==, tarball: file:projects/opentelemetry-instrumentation-azure-sdk.tgz} name: '@rush-temp/opentelemetry-instrumentation-azure-sdk' version: 0.0.0 dependencies: @@ -22169,7 +22184,7 @@ packages: dev: false file:projects/perf-ai-form-recognizer.tgz: - resolution: {integrity: sha512-ZEtTPnvyzdglFoCqn01JTvsOb325W4uINZxdHD/WxSin4L7mF4BmDYIYW1g0h0BDh4jRxqHTDn8beKxvVTMDhw==, tarball: file:projects/perf-ai-form-recognizer.tgz} + resolution: {integrity: sha512-jJ9yUz/wkp5aCq/JdNw9nQceFCSFZ4ZIrtO8Z1qUB9a5K4OCfYxX2L7xMFVFuwZG4ui0JKiBMzCQvpa/b5KlXw==, tarball: file:projects/perf-ai-form-recognizer.tgz} name: '@rush-temp/perf-ai-form-recognizer' version: 0.0.0 dependencies: @@ -22188,7 +22203,7 @@ packages: dev: false file:projects/perf-ai-language-text.tgz: - resolution: {integrity: sha512-FOyZLxDpzMeSUgh+by2vxRJy7A99mTEyeJrSx9UU4XMzjs+HxmRen4e/g+uPAu6Xy5PxrNz65Gc1deZ+EaBzxQ==, tarball: file:projects/perf-ai-language-text.tgz} + resolution: {integrity: sha512-Ezgs32oa+CFBKE/U+wsHmW7re9+AzSYxgqr0kUWjV3B2+uEDi4edGTf9LQdaQLjACpgL2EiqRue8lB8U2aoLZA==, tarball: file:projects/perf-ai-language-text.tgz} name: '@rush-temp/perf-ai-language-text' version: 0.0.0 dependencies: @@ -22207,7 +22222,7 @@ packages: dev: false file:projects/perf-ai-metrics-advisor.tgz: - resolution: {integrity: sha512-EI0v5BNYVGw+UEvxRTVY/Yg2Intp7uxcy3dcfHSzdbdxwfBKj/S3xdOTC3eJ9hPu2kd1OWJZ1A6K6OQENIIO+Q==, tarball: file:projects/perf-ai-metrics-advisor.tgz} + resolution: {integrity: sha512-FK3uwYwVG4JU0E55VPDHuHChwsuKHlDeBJ0xSAhvytpFRTdaBaZhVZgbEIi8M0Iu9kUKuKhtnLXtX2acK/givQ==, tarball: file:projects/perf-ai-metrics-advisor.tgz} name: '@rush-temp/perf-ai-metrics-advisor' version: 0.0.0 dependencies: @@ -22225,7 +22240,7 @@ packages: dev: false file:projects/perf-ai-text-analytics.tgz: - resolution: {integrity: sha512-a9EE2n2VBdwwJH3aWAfl4IAB6AG01qWhfv7AYoiEUkKNwFrr8j9m4ZW5VNKPnMjPFytIc7rfrygQrhffVzcNcg==, tarball: file:projects/perf-ai-text-analytics.tgz} + resolution: {integrity: sha512-COpqmIBzIBiBUxxxoftoMOQLNatd+D1Z8q6j1um6ZjC8RXldZ1dOcAmy8E8JhGTlzuW0dWDJX1HteJ0gruYhsg==, tarball: file:projects/perf-ai-text-analytics.tgz} name: '@rush-temp/perf-ai-text-analytics' version: 0.0.0 dependencies: @@ -22244,7 +22259,7 @@ packages: dev: false file:projects/perf-app-configuration.tgz: - resolution: {integrity: sha512-mBRrscrjyagQGNmhRBeA0zYUchSX3PKH40/VJsKpHAuGawxZeVymmoEjA3uQCblY8YYyF6b3rST9ifn8RYbKMQ==, tarball: file:projects/perf-app-configuration.tgz} + resolution: {integrity: sha512-m6LgfVtYJ9nxqnIXXiKcHgyvgBf5B185zWW7JPbbeVfQVmr5Xdzqkz0WXWc+CcTF++NpwNEspjcZORfD0IXTeQ==, tarball: file:projects/perf-app-configuration.tgz} name: '@rush-temp/perf-app-configuration' version: 0.0.0 dependencies: @@ -22263,7 +22278,7 @@ packages: dev: false file:projects/perf-container-registry.tgz: - resolution: {integrity: sha512-gR4YkZbX7kyqHh9gh/Vbo90HQPdw08Pt0GiAZdrPdM1FW1mVIoR5BeIIC3H9Fb82/LQ1I+oFg+FY2VIQNZb4kA==, tarball: file:projects/perf-container-registry.tgz} + resolution: {integrity: sha512-QL4EkBV+8EEZG1EmfGH87489mjfmN3k4niRUwi/C+aSiieE5QhTgFxgpu0MZTP3mHWpaGIbou3rGs0E/pRRN7A==, tarball: file:projects/perf-container-registry.tgz} name: '@rush-temp/perf-container-registry' version: 0.0.0 dependencies: @@ -22281,7 +22296,7 @@ packages: dev: false file:projects/perf-core-rest-pipeline.tgz: - resolution: {integrity: sha512-ZHZpAZ/Qz808jXB7P/dLhwmYFufP164O0TLqxpmqfXcaHphgpik5b4x5xMKXrb4WFT61XNFDvFXrdJf1Az7rYA==, tarball: file:projects/perf-core-rest-pipeline.tgz} + resolution: {integrity: sha512-t2vMC8YRmC3A5o9WHN80EqNbvUyLuYFoyewBkEsgx6ju9gI/nqhmSw9dqdT4fINFnzul/n4bFHJWAWPIhVToHQ==, tarball: file:projects/perf-core-rest-pipeline.tgz} name: '@rush-temp/perf-core-rest-pipeline' version: 0.0.0 dependencies: @@ -22303,7 +22318,7 @@ packages: dev: false file:projects/perf-data-tables.tgz: - resolution: {integrity: sha512-FYo4ko2VEcSKWnaLMm6WsCAUMI4LcXN428YMm2iUorgWvWyeado13sbE+SHjSKgzkh26eUXB0bupEEdQKKc7bg==, tarball: file:projects/perf-data-tables.tgz} + resolution: {integrity: sha512-FkJCM5n7DYsf2lzR3Ag2tqxiVn8GU6bZpAuZNIK6BZXLByrUUf8dk7NDYPXHwhs2NaZORzdXy6yNlLqJRHmWgw==, tarball: file:projects/perf-data-tables.tgz} name: '@rush-temp/perf-data-tables' version: 0.0.0 dependencies: @@ -22321,7 +22336,7 @@ packages: dev: false file:projects/perf-event-hubs.tgz: - resolution: {integrity: sha512-my2s1O4skXXIMxC89ecO1/eZlR3+IgNj4XN5vu3JG3a48TKuxiOw/EcTuaeFktt6xMo1dciv+LuYurbFSWh64A==, tarball: file:projects/perf-event-hubs.tgz} + resolution: {integrity: sha512-NtzbPTiRsQgWkCn0a8gkN0J+aKl4Dfl/K1fvOT4QfwzAWf3qaXtbmqvd9laMHajWej+1wo+Vu7tGLPM6hqpfZg==, tarball: file:projects/perf-event-hubs.tgz} name: '@rush-temp/perf-event-hubs' version: 0.0.0 dependencies: @@ -22342,7 +22357,7 @@ packages: dev: false file:projects/perf-eventgrid.tgz: - resolution: {integrity: sha512-a0a/rYZ7+OJo2V1ZNGNpyTkAPxxvTv+KFu7BUyms81FuggrrECUsybfwz3mbG8nIoh8UEB+BY5OXuyN48ZbZ0w==, tarball: file:projects/perf-eventgrid.tgz} + resolution: {integrity: sha512-mB74n6wsIzYFESIifHaaO32a80MTYZNkvhYb5rrHuzjTlqcZKfanZuBPdVAFHjy1m/KZeHVjX5CzY/rFpdD8sw==, tarball: file:projects/perf-eventgrid.tgz} name: '@rush-temp/perf-eventgrid' version: 0.0.0 dependencies: @@ -22360,7 +22375,7 @@ packages: dev: false file:projects/perf-identity.tgz: - resolution: {integrity: sha512-ls/twm+EOl5T0doFYMzDYU4JDQicBKNmr5A7HCHU8vxxzyIqibsMazv/4xtbYLrrdnxDr/wPJrUK5JIHwrBrfQ==, tarball: file:projects/perf-identity.tgz} + resolution: {integrity: sha512-XQArYtGAFPoEcI0kX2NbZE/gZ3mJxu+QEc56gZGoi3OkSLe8FfhrtrNJUMDlGdKaT3/LA5zA2R6exke5K2X4AA==, tarball: file:projects/perf-identity.tgz} name: '@rush-temp/perf-identity' version: 0.0.0 dependencies: @@ -22380,7 +22395,7 @@ packages: dev: false file:projects/perf-keyvault-certificates.tgz: - resolution: {integrity: sha512-MXHTJ5JP994gH9DA96KFQnYMHy0Isj5pWo2Idxs27Bw98WDXrU7CnRfSgxShc9RHwasnrj+ViyH4HTZiuzjdhQ==, tarball: file:projects/perf-keyvault-certificates.tgz} + resolution: {integrity: sha512-q3Uawn8d+iWGS1I45oh3pad1uR1ddbdtMWp08IxrNtovicdTBFVPTsk4upBNXdr+8bTbrVQcz87h42ke1UFsdg==, tarball: file:projects/perf-keyvault-certificates.tgz} name: '@rush-temp/perf-keyvault-certificates' version: 0.0.0 dependencies: @@ -22401,7 +22416,7 @@ packages: dev: false file:projects/perf-keyvault-keys.tgz: - resolution: {integrity: sha512-fp+0/ckF+tA4Fl0ZJTc5VLqRX39uwYuiSPqI2KTo6/FhkmW1Xj0nWAZoyp3KnNW7o2GmZLWnpmc7j0gWWDpkgQ==, tarball: file:projects/perf-keyvault-keys.tgz} + resolution: {integrity: sha512-CgY3i6+Vb6q/jmerEl84jsdSWMDM0leoZ5fZyBagT+IdtCCiO1oNSF94bh9ZBA0Mz3wR5cHzkD5Ty0ZicbtgxA==, tarball: file:projects/perf-keyvault-keys.tgz} name: '@rush-temp/perf-keyvault-keys' version: 0.0.0 dependencies: @@ -22422,7 +22437,7 @@ packages: dev: false file:projects/perf-keyvault-secrets.tgz: - resolution: {integrity: sha512-StJodfvLmN9ey/bqM3Y9hDshqy0B4wnon1KG9QiDV+th/oHSNZr0t8FXMXlH2ujdXLQ1N+f9pIwSXNQ/BypwmQ==, tarball: file:projects/perf-keyvault-secrets.tgz} + resolution: {integrity: sha512-JNWbkcZXkYmiUDl+KOXClXm4O4Af6bvgGEKh74FF/V6hRXe3Rs8ZyGujRD8dl8Q95TZ1mUcNGb4ukVfmX54VBw==, tarball: file:projects/perf-keyvault-secrets.tgz} name: '@rush-temp/perf-keyvault-secrets' version: 0.0.0 dependencies: @@ -22443,7 +22458,7 @@ packages: dev: false file:projects/perf-monitor-ingestion.tgz: - resolution: {integrity: sha512-2o8F1n6D0379E3Iygs3YuJNRHpml3bMIRh+7j71Ps/SE+6joKl7yXKky887BVuCS1RWCZ9vPRvWLmWGOGWLELw==, tarball: file:projects/perf-monitor-ingestion.tgz} + resolution: {integrity: sha512-VSOX6oZ+RlNALvdf5G5811p/m/sh1itoj2Rzf8IjWp4Um5Z6njZXM2sq1bjIQ9DOExSm7cA28AnB1xtxBKJ6fA==, tarball: file:projects/perf-monitor-ingestion.tgz} name: '@rush-temp/perf-monitor-ingestion' version: 0.0.0 dependencies: @@ -22462,7 +22477,7 @@ packages: dev: false file:projects/perf-monitor-opentelemetry.tgz: - resolution: {integrity: sha512-CcTaHO08tDr9UWe44ob9/YIl4PpsYsQ7GczD6UAprlHR/Rcb3+XP2VKktNr4QcUZhsu6KHM8Dui6KbLmtmUtMg==, tarball: file:projects/perf-monitor-opentelemetry.tgz} + resolution: {integrity: sha512-eLx2R+XBiqJCqDFDTLwL3/4neUY2xwvAykDkdnfFnRW0UKOK1I2Ja0erfXoOv+zKFigtLM4JLlYWp8t21LZkqw==, tarball: file:projects/perf-monitor-opentelemetry.tgz} name: '@rush-temp/perf-monitor-opentelemetry' version: 0.0.0 dependencies: @@ -22480,7 +22495,7 @@ packages: dev: false file:projects/perf-monitor-query.tgz: - resolution: {integrity: sha512-NNujDSiATIKn6j+HuDYdmKbkRzYrmq/o49zE5cWlmRjDip3Q5hSdY8fu7SMZ0C6Ru9ef2bfoNnj94DJBEnVfeA==, tarball: file:projects/perf-monitor-query.tgz} + resolution: {integrity: sha512-8KBD9rNLXhW7FoU0LgG615jeq7LYO2BHefUWi7LOlTxAejj1cfky7Dl+ViRGC8d7AoO7zUbXDYy0i+8W0Bp2Pw==, tarball: file:projects/perf-monitor-query.tgz} name: '@rush-temp/perf-monitor-query' version: 0.0.0 dependencies: @@ -22499,7 +22514,7 @@ packages: dev: false file:projects/perf-schema-registry-avro.tgz: - resolution: {integrity: sha512-3mr3ScRWDMFMjuiRuoDnfxAd3YriipKc3H5bORI34h9F0/QiuM3ZaQsbtRtH4UyUH+cEjsWMvKbcCkz6v4FI/g==, tarball: file:projects/perf-schema-registry-avro.tgz} + resolution: {integrity: sha512-q2myGYlOV//vWupwQiXpWaO8J7mIP2LS2xmgWEQuMSAnt4UIjBvPP9aLI8g0vu6fEbs/Vjf27ItzkWQ0UJV4Gg==, tarball: file:projects/perf-schema-registry-avro.tgz} name: '@rush-temp/perf-schema-registry-avro' version: 0.0.0 dependencies: @@ -22518,7 +22533,7 @@ packages: dev: false file:projects/perf-search-documents.tgz: - resolution: {integrity: sha512-QjbYe2HFEPsUWbmsPR+bXUhrk3PUxrcX4nYmiH4vQfvV2nV/rwh7lqpXSmxoiFRIqpFcXVGmPB2S+oNMeHP27w==, tarball: file:projects/perf-search-documents.tgz} + resolution: {integrity: sha512-Nl48GSRKt/yg0loArEeALXH5kKYSrL8cPs3vfwx7PdY2o/5KVxu7PNzadEIbhyg7sRu+FPR+/0SqwEY0zJreSQ==, tarball: file:projects/perf-search-documents.tgz} name: '@rush-temp/perf-search-documents' version: 0.0.0 dependencies: @@ -22538,7 +22553,7 @@ packages: dev: false file:projects/perf-service-bus.tgz: - resolution: {integrity: sha512-X95Hh6NnKKUcwXClbV9iQIxP+1FeXIRs0AvD3NXMctlvTTHFwCmy8MrjwSbOZmbzedg6oVE+8rEBdl4nQpeyZQ==, tarball: file:projects/perf-service-bus.tgz} + resolution: {integrity: sha512-uzOm6V4LesEx4etYTgPNSvTFLhdwb/HC7kDOTUJuD3YgCwu6SO1psK1q+yC7Y7hjXk9ZreKmSE3kpzcMuNIXLA==, tarball: file:projects/perf-service-bus.tgz} name: '@rush-temp/perf-service-bus' version: 0.0.0 dependencies: @@ -22558,7 +22573,7 @@ packages: dev: false file:projects/perf-storage-blob.tgz: - resolution: {integrity: sha512-gnVzxlY1vrAzRzZwxxYq0IpU2a7YPUY19+GM3mhITC1zWOgyJG34mkJgcxO7zIXPJe/4cVUQju5/2ffQ2SpU8w==, tarball: file:projects/perf-storage-blob.tgz} + resolution: {integrity: sha512-Jz4y+ZPirsfYMZ3A9Z5rHD8rqG2tX72FvG7+PCkVuaWszL5814GhXAO1HgHovagQzFYyqtYTmlBod4jiR8D2UA==, tarball: file:projects/perf-storage-blob.tgz} name: '@rush-temp/perf-storage-blob' version: 0.0.0 dependencies: @@ -22576,7 +22591,7 @@ packages: dev: false file:projects/perf-storage-file-datalake.tgz: - resolution: {integrity: sha512-IqNMSbO7Zr0HoLvLmtadH8jS8exN3/o/yV+wmm82TAfGWzvo+H/AAHsbDQwE9KOUnfGzeprtrXw/cAW2+m75DA==, tarball: file:projects/perf-storage-file-datalake.tgz} + resolution: {integrity: sha512-tofYs152ezkrv4HoggV0PK6q2THSgnPEtsXjU2xPX1ptV8015o1pNMb0Ida/CgHlFccTKmcWgq3xH2iA10fNyA==, tarball: file:projects/perf-storage-file-datalake.tgz} name: '@rush-temp/perf-storage-file-datalake' version: 0.0.0 dependencies: @@ -22596,7 +22611,7 @@ packages: dev: false file:projects/perf-storage-file-share.tgz: - resolution: {integrity: sha512-R//6vCw8iYaZIH9hz0Cdc+eL42f8/wFyQPERFgqX1m5pjAOs67OLZsURMisUTvRa3GfDLxf34WD0G5CAVVhNgA==, tarball: file:projects/perf-storage-file-share.tgz} + resolution: {integrity: sha512-PDcmow06NkRgxBuWrX0v469wUEPB33LC6ZoQNxG/G9lPwNJ9mv7RbP3jF0OFmdWS+K9gAbfPd554MHJ1nrSRvA==, tarball: file:projects/perf-storage-file-share.tgz} name: '@rush-temp/perf-storage-file-share' version: 0.0.0 dependencies: @@ -22616,7 +22631,7 @@ packages: dev: false file:projects/perf-template.tgz: - resolution: {integrity: sha512-wIgc9CTNbRy3/eZOC3EW1WpqPO/hqhVYGUIyb0QRFZtcnCNWOaXDf1jHTQWXuqnZigGkMi8I1R1plBvQS6XWcA==, tarball: file:projects/perf-template.tgz} + resolution: {integrity: sha512-gA0gzz4ta8i7VVDmi6MhYqsuWBxFX1Zu7r6Wcqt0DXRo7RUhlLoqXN4R/OTlCuSCXAwi+tXK67DBUpjn6s0Yww==, tarball: file:projects/perf-template.tgz} name: '@rush-temp/perf-template' version: 0.0.0 dependencies: @@ -22636,7 +22651,7 @@ packages: dev: false file:projects/purview-administration.tgz: - resolution: {integrity: sha512-KDYSKwHBdzABEFtMqb/2/6Vsnm5XvuVwSMXMb8zd/tDm8BH65dRAw6t9EEq8EocAYC6vRsyRoebpA+dcSgD2dA==, tarball: file:projects/purview-administration.tgz} + resolution: {integrity: sha512-KPCSRJo1TvsE63C2gWyD6YnTLYlp6MCg02IZEOhWQlvxzqXn9zRXkK4HYy9UOMsla5np0LWOICy9UI7ay9XB0Q==, tarball: file:projects/purview-administration.tgz} name: '@rush-temp/purview-administration' version: 0.0.0 dependencies: @@ -22680,7 +22695,7 @@ packages: dev: false file:projects/purview-catalog.tgz: - resolution: {integrity: sha512-BasykcFDPWO54MdS4LxZnSz1/WXbCwYjCvsY6iC+eFrF8k2y8lawUok37Be6gHA1IYOrnkngsAtLRc2EDS5ptg==, tarball: file:projects/purview-catalog.tgz} + resolution: {integrity: sha512-CEFBMxpRhBnH5GUGC1cetUyAwbPjLhQrubT1PEVmH3m1K7y/RjvNA/C1584nhRAcKCXkiTpz9ZrlPnHKcpksnA==, tarball: file:projects/purview-catalog.tgz} name: '@rush-temp/purview-catalog' version: 0.0.0 dependencies: @@ -22725,7 +22740,7 @@ packages: dev: false file:projects/purview-datamap.tgz: - resolution: {integrity: sha512-U53eAUPumCqhhoEb2TP7D6wjo7SIJA8oEFckjyWVD5sMat2mJ1Q9nO84wsisMDExbLCm3hK6uw7AP2E3iF8WNg==, tarball: file:projects/purview-datamap.tgz} + resolution: {integrity: sha512-F2Hg3geCAheNIHTiNghPPFJT+vkTULOn2YwU8I4mV07rpOECFjad5dh1POzEW81Sh9RzXtLWtXiL5HkSB2MmpA==, tarball: file:projects/purview-datamap.tgz} name: '@rush-temp/purview-datamap' version: 0.0.0 dependencies: @@ -22770,7 +22785,7 @@ packages: dev: false file:projects/purview-scanning.tgz: - resolution: {integrity: sha512-Esa2SINTL5mzkjpbXRoqvR72fityNkJaKI7tAeRm+fmESRFszjbXyk8+GW2t3LoL8YJUjrmgjh+3A1Ul/B2OOA==, tarball: file:projects/purview-scanning.tgz} + resolution: {integrity: sha512-MAFAgiwcmwLLmw5X+8HNE2xqkJwdUqqFKKeJLKodKVtjVhQO97L5jX3GqNozoXAS7eZjnQdi+P5k1PfbXq1S8Q==, tarball: file:projects/purview-scanning.tgz} name: '@rush-temp/purview-scanning' version: 0.0.0 dependencies: @@ -22814,7 +22829,7 @@ packages: dev: false file:projects/purview-sharing.tgz: - resolution: {integrity: sha512-p/+v9ovncMASEn/elUdJQ3wSheixHdZ6HB6wFvmSnRydQ0O9CLCtp6nORpe6dS3JVTFGR7LFWMUDM3Ew5U5x4A==, tarball: file:projects/purview-sharing.tgz} + resolution: {integrity: sha512-OVvpxQ/+9KDikIR6Hp5zmD+Xn69DfQhdFSq6mI6mu2DPDNurxAsjfRqA3JNnOOu8cIYvc3ExWMT+kAhz1brwPw==, tarball: file:projects/purview-sharing.tgz} name: '@rush-temp/purview-sharing' version: 0.0.0 dependencies: @@ -22861,7 +22876,7 @@ packages: dev: false file:projects/purview-workflow.tgz: - resolution: {integrity: sha512-ycpLTjwvL7FMcfvDTdvqlsTVqvAYzZ9u/J9PY0DAxzBs0+UQ5XzitubNi3F5RJrJ7WnztZeiexDaQl9rDiAkjg==, tarball: file:projects/purview-workflow.tgz} + resolution: {integrity: sha512-tLXH0ktZlWU1psUBOOAGcooyXT9CrRwD5E/vOW8hlW8VTWee0w43JxAZQdOe239tUQ6jww3a4b7kVe9CmtZQXQ==, tarball: file:projects/purview-workflow.tgz} name: '@rush-temp/purview-workflow' version: 0.0.0 dependencies: @@ -22906,7 +22921,7 @@ packages: dev: false file:projects/quantum-jobs.tgz: - resolution: {integrity: sha512-RtmI/ZJbREK0zj0aS3BtL1vnG39a0w/+fXI3EnN00gmltxPE9OXYYG6+SOIwaHFdEwBUbOfDTg/w/uo6YoGhRA==, tarball: file:projects/quantum-jobs.tgz} + resolution: {integrity: sha512-AsjNDZ4WiCTmdOLuUTvK0S00F8q5LfUP0U+KE++QzjntPqpT9Zcv3svszyU2UI1mfdHAhLP6Km0A6Go42n5mIQ==, tarball: file:projects/quantum-jobs.tgz} name: '@rush-temp/quantum-jobs' version: 0.0.0 dependencies: @@ -22953,7 +22968,7 @@ packages: dev: false file:projects/schema-registry-avro.tgz: - resolution: {integrity: sha512-Eq/e1qWzLdtru4Z3ROP30OjcMGDFfmdnlJM8ojayLHuwzqCLKAm0stHaBWbRgMYt8q3sFcbxMF/R9V6mqfJtwg==, tarball: file:projects/schema-registry-avro.tgz} + resolution: {integrity: sha512-Oh6qAF6SwMj17y8Wwv481WdcsoFOlWIQtshCitVeFN1kw5aYpjg464zDAuVJD3CG0cfEIRu/ZMZ6j32x+uXO+g==, tarball: file:projects/schema-registry-avro.tgz} name: '@rush-temp/schema-registry-avro' version: 0.0.0 dependencies: @@ -23005,7 +23020,7 @@ packages: dev: false file:projects/schema-registry-json.tgz: - resolution: {integrity: sha512-MR7BqzMim61d9FZGwBZPEeGUPDudpOqLgmCPqKvuP5HWFj+NcxqQluBndBCEuMvvkqt09ISWHF4R7uRB37944w==, tarball: file:projects/schema-registry-json.tgz} + resolution: {integrity: sha512-2ACA1zRgwS8SZN8tVRVL/crU+Kgq7u+hWkZkoPHaPL2eqUzdr0vwhvCIaYC58rtzgSVEe3oz5Db4wzWCQQ4+XA==, tarball: file:projects/schema-registry-json.tgz} name: '@rush-temp/schema-registry-json' version: 0.0.0 dependencies: @@ -23047,7 +23062,7 @@ packages: dev: false file:projects/schema-registry.tgz: - resolution: {integrity: sha512-P/MYVOZ8olpk/mJGxAyIQlOVUHudt+chAEPJ5/r+bvAi1I6nlArtZiysn4FGn+NpuqCYWhkZ5FJF4o091v0NGA==, tarball: file:projects/schema-registry.tgz} + resolution: {integrity: sha512-+YnP25zUKS/ECbiyOu5DgVWOWU2dtcP1BdbCEOLhqUADLWHr87svidmifiWtTzzsZ9szo93RQoiCY68gB7wJ3w==, tarball: file:projects/schema-registry.tgz} name: '@rush-temp/schema-registry' version: 0.0.0 dependencies: @@ -23087,7 +23102,7 @@ packages: dev: false file:projects/search-documents.tgz: - resolution: {integrity: sha512-rrxywwpWHVWVIv7Xm1kK1gQpHwQtlKpjdItNlFBJ600vjwKLzDyUxhiYSlfl8daICjJdig+n84lophu77HkSVg==, tarball: file:projects/search-documents.tgz} + resolution: {integrity: sha512-ZQw9u4Cswfsr15dSmjXDySU+O0a3VCOUz4Z9H0T1vp7oRfNKRtJNRiuiELp/JzKh7vhfrne0gei7Yw2qpmiVYQ==, tarball: file:projects/search-documents.tgz} name: '@rush-temp/search-documents' version: 0.0.0 dependencies: @@ -23133,7 +23148,7 @@ packages: dev: false file:projects/service-bus.tgz: - resolution: {integrity: sha512-WG7g0jbZEzquiFZRRmglUIxIpufyvpP00sh85uXCrY2jOvXv6/TeLCFpZc8zAaikJCIA7LGG3zDjnaT/DCjRBg==, tarball: file:projects/service-bus.tgz} + resolution: {integrity: sha512-guFuPSIa6bzJKKN6outYPg5wcqGt1i6kQFtqI5HJpVdWaaWDOxClo6iMvlKImY73KXiqdr1quXRmGwhj0LPdQQ==, tarball: file:projects/service-bus.tgz} name: '@rush-temp/service-bus' version: 0.0.0 dependencies: @@ -23195,7 +23210,7 @@ packages: dev: false file:projects/storage-blob-changefeed.tgz: - resolution: {integrity: sha512-Gp+UCjBva4S3RMBJDYFU1CzkmZuF8s3mQZrL2hh4smDJx69QPAeC7WUqjNnFF2pIV1O2m6Gb3LnOc+5nINptmQ==, tarball: file:projects/storage-blob-changefeed.tgz} + resolution: {integrity: sha512-aBxHdMHdi62S2QnkF/0ydoiHnP4+8aOQTo7yWrcBdKIeIwodAlV6yfQtbLKV3gCCtTVs0SX5lVRvWpBEVDyDBw==, tarball: file:projects/storage-blob-changefeed.tgz} name: '@rush-temp/storage-blob-changefeed' version: 0.0.0 dependencies: @@ -23245,7 +23260,7 @@ packages: dev: false file:projects/storage-blob.tgz: - resolution: {integrity: sha512-wnGBKBpHtPKawBixChAIefVI/HwYcuTpMz8TZr+5RXnHuRfYsMpuG29+py4NOLjlGpajyTQOKSu65UBr0j0L1Q==, tarball: file:projects/storage-blob.tgz} + resolution: {integrity: sha512-c4s3EabfteDM9U4zR8YFc/Lu11dKz9+tKdGeJWNaXcx9wA2G/COc0joc679ORNHtNsFoDiq2JgF7jWdwKloRQw==, tarball: file:projects/storage-blob.tgz} name: '@rush-temp/storage-blob' version: 0.0.0 dependencies: @@ -23293,7 +23308,7 @@ packages: dev: false file:projects/storage-file-datalake.tgz: - resolution: {integrity: sha512-l5d/VFvoQi+yTOZpDmkxEARAxNQ6G/2WLjHInWGill+aMGhocaCLGsJGJQkXGW3XBxYGFM5YwCE6+rv1OCeu0Q==, tarball: file:projects/storage-file-datalake.tgz} + resolution: {integrity: sha512-yccTud/hEEpuvVe0QuLp2u3hxfg26DJZGliE4E1Ds3kOGWvIw52dQhG3i1mhLr+2cFtFmCHI52Hnl8krGpLPWw==, tarball: file:projects/storage-file-datalake.tgz} name: '@rush-temp/storage-file-datalake' version: 0.0.0 dependencies: @@ -23344,7 +23359,7 @@ packages: dev: false file:projects/storage-file-share.tgz: - resolution: {integrity: sha512-MW+5yYNjh6VHSAnniJUV9p5BGYQXhl93jwFf4T5ubHNSDH2MpYFFyj2Z3hK5q8WW3m/Pq0muMBY6BZW0rqYEnA==, tarball: file:projects/storage-file-share.tgz} + resolution: {integrity: sha512-XjuSsYRRKpbjrhuYUAE5YSI3Yg5/5ThWWQkp1cX5BIfoFGo/ee1Gqslr964QxaPldabqRguoa7VzaWIE8/EXgA==, tarball: file:projects/storage-file-share.tgz} name: '@rush-temp/storage-file-share' version: 0.0.0 dependencies: @@ -23393,7 +23408,7 @@ packages: dev: false file:projects/storage-internal-avro.tgz: - resolution: {integrity: sha512-IxiPSZBWFNOFu/spFMWhJfWFPr0Hmv0ymxPvFxd2rzzErBq7FtCLXG50WN3lF4NKAnJz0Zq1g/PCmfDm1A7QrQ==, tarball: file:projects/storage-internal-avro.tgz} + resolution: {integrity: sha512-4t/mfNU3cPSFrda4xICXkHWwpvKP2FvGrl6qNlY7mPGhZMoll8c2UfMdFYPEfXhRG3tFNYO3EG58wZjhvsU1uw==, tarball: file:projects/storage-internal-avro.tgz} name: '@rush-temp/storage-internal-avro' version: 0.0.0 dependencies: @@ -23436,7 +23451,7 @@ packages: dev: false file:projects/storage-queue.tgz: - resolution: {integrity: sha512-j9Zm8Z5bzsZ9pM/1R/NbUlfhf6xOrszxeHvCeG7fH/CUcMdTT3s9/z5wRv0r2ujQKuemsR1phYFqVI8G1QaPxw==, tarball: file:projects/storage-queue.tgz} + resolution: {integrity: sha512-aIPOBCE1n/QbVe+umwvnHs/JIIQLHvTEjNEs4DrthRrXr9FA18nAk4I4Qw8ckT3VsqAnVqqhSWMtrsF2Xv+pqA==, tarball: file:projects/storage-queue.tgz} name: '@rush-temp/storage-queue' version: 0.0.0 dependencies: @@ -23481,7 +23496,7 @@ packages: dev: false file:projects/synapse-access-control-1.tgz: - resolution: {integrity: sha512-wsawV3NYrXi5EvnkoUa5lW26x9ixfhWek/7GGy6cqjbLEoV9HKEwrW/PGTSa11nuflfUUJdnh/kE9/ZZnqhZFw==, tarball: file:projects/synapse-access-control-1.tgz} + resolution: {integrity: sha512-zaGVyaIBrK9tyHMXDLtaDoWtN5InTtO9YGwxNjkx9I+tk8Ks0j34GLoX43BvtX/ToQMIKrOeci7NnboJ7tXj3g==, tarball: file:projects/synapse-access-control-1.tgz} name: '@rush-temp/synapse-access-control-1' version: 0.0.0 dependencies: @@ -23527,7 +23542,7 @@ packages: dev: false file:projects/synapse-access-control.tgz: - resolution: {integrity: sha512-8vnpsFHik+27ge9j3KertZQ1W5W10SEpK5bQYQ5kUc+sj3XsIZMCkpMStwKqrIhJzd3yckQGlkLVOyigm0Udyw==, tarball: file:projects/synapse-access-control.tgz} + resolution: {integrity: sha512-5knc1WqJIw8b6eAEt8Bm88703RybGKDOMqJ7vGbnrMWooXjDmBUrc9DBrTjNjM6UHooqh1ChriAJ4iZW6GvFYg==, tarball: file:projects/synapse-access-control.tgz} name: '@rush-temp/synapse-access-control' version: 0.0.0 dependencies: @@ -23576,7 +23591,7 @@ packages: dev: false file:projects/synapse-artifacts.tgz: - resolution: {integrity: sha512-1L9Y4NbZCbyR1JQvXEuiynGBkIPnq8/bQndWVRdWqpcZQtr8m/q3O9qNUp4f+MWc+EUQlA08pWKVtrQgrwsVSg==, tarball: file:projects/synapse-artifacts.tgz} + resolution: {integrity: sha512-8V1BRLBWq3IS+QOGT37+/xcsBDa2x70z3zDrsjlP/8aZCFIVNHMPCgZNqMXK3Q3/B5AtjfZmj07Z6+BoTZejjQ==, tarball: file:projects/synapse-artifacts.tgz} name: '@rush-temp/synapse-artifacts' version: 0.0.0 dependencies: @@ -23627,7 +23642,7 @@ packages: dev: false file:projects/synapse-managed-private-endpoints.tgz: - resolution: {integrity: sha512-xI5pnusbNS3YF1Kt3Jqo2WfZ8/Zzn9bA5YheXdjSK1SlyzB4duH7sa+GqoYegd4sJiDO5RGk2FRIcrnc+LXiRA==, tarball: file:projects/synapse-managed-private-endpoints.tgz} + resolution: {integrity: sha512-t716orNaK2a57kim6vchh856W1ZJL+N1AeM5/MCjo+IyqJ7G/2xANrw2f6nA1jQhw9gYY4ltAjuXEpsRgwln0w==, tarball: file:projects/synapse-managed-private-endpoints.tgz} name: '@rush-temp/synapse-managed-private-endpoints' version: 0.0.0 dependencies: @@ -23670,7 +23685,7 @@ packages: dev: false file:projects/synapse-monitoring.tgz: - resolution: {integrity: sha512-JGvFLQaloQ6ooq4FDGXLE2VOq0E5LYF2B2S62zMKPb9lRl4px2Wk1JfjapwIzTck3vi5YNqLUQuI5ar3rRyYFQ==, tarball: file:projects/synapse-monitoring.tgz} + resolution: {integrity: sha512-dNdbppT+aoNAi1B0ihGofcFFQt/eEwx5XAC4Pm8QdFfpuAmdstaF//8q2h5z3DO4/hXNorIU1ZKiyXrczMsZlQ==, tarball: file:projects/synapse-monitoring.tgz} name: '@rush-temp/synapse-monitoring' version: 0.0.0 dependencies: @@ -23707,7 +23722,7 @@ packages: dev: false file:projects/synapse-spark.tgz: - resolution: {integrity: sha512-rgCNFUjX6R35CqxPoZxj/3N3ffGSQ6/TSTJHxHTmLGDSzS7KFVUuK1Sztw/pRGhTTSEBAMa/DZjV7lkIQOMdwQ==, tarball: file:projects/synapse-spark.tgz} + resolution: {integrity: sha512-1SsLxCbj4g1CxyXOyjA00O6fX4nso1IVDAllOlEypk2TMCKGMn8NVm15c3UTU0OILHMYDoukiCUpFvjpFYzC5g==, tarball: file:projects/synapse-spark.tgz} name: '@rush-temp/synapse-spark' version: 0.0.0 dependencies: @@ -23750,7 +23765,7 @@ packages: dev: false file:projects/template-dpg.tgz: - resolution: {integrity: sha512-era64OOVVbq7t8sO6CuyVXIMzWBhkJQuVHIYTqjH0jyQPkgbo8waOhwsfEz0sK7dGChhDniYlwP+vnFp/lu6lg==, tarball: file:projects/template-dpg.tgz} + resolution: {integrity: sha512-ssjfeFbOjK+WKB4w5KiaKD7rO6agOIPv/73YxRx53BQ1M/C54JDGijoIvphGhdZqRLO+25x57AphmNqTolhFBw==, tarball: file:projects/template-dpg.tgz} name: '@rush-temp/template-dpg' version: 0.0.0 dependencies: @@ -23793,7 +23808,7 @@ packages: dev: false file:projects/template.tgz: - resolution: {integrity: sha512-Z4jVfdc6F0pVx6TKZMxewtMI9hglqb9vQndoRzYF3+EzAwIulmw5+ukixt9UQSrUD/swoIgx6mxtVmHitSle7A==, tarball: file:projects/template.tgz} + resolution: {integrity: sha512-eKSJx2ZXbvSb94L5as0GWfbmA8IA9lw0+6yl/kFid2b/7OEmkuF5sguhxjIV85c+JaIBHYr1qmC/SNngPH9m/A==, tarball: file:projects/template.tgz} name: '@rush-temp/template' version: 0.0.0 dependencies: @@ -23831,7 +23846,7 @@ packages: dev: false file:projects/test-credential.tgz: - resolution: {integrity: sha512-cnqkP/8hJEC4wKnBQfZ4fJ7b5ycRsqA2iDWtEAYjJL90rRBIImhPwOGK5o2FMGQTyPeHPqtiL8oK4X7AOpwxKA==, tarball: file:projects/test-credential.tgz} + resolution: {integrity: sha512-8Ote+CSTzRrooFVH8YydipORldevCZKRiGewr+LUGX/d9GrYCCYjEHT4nz1lnINoXT0eSqu1NOpZHkeR46b8Lg==, tarball: file:projects/test-credential.tgz} name: '@rush-temp/test-credential' version: 0.0.0 dependencies: @@ -23850,7 +23865,7 @@ packages: dev: false file:projects/test-perf.tgz: - resolution: {integrity: sha512-ZwPBFlm7U2LjZCUqsJJrNubufkZA5WPNQvRqlj9yXXYaSrtQtcV8LutkBWMy3BTFP3QlPU/7Omj/MeLt7BNnBA==, tarball: file:projects/test-perf.tgz} + resolution: {integrity: sha512-eCcCwe+SGSmOt4GBA750BoYWLV7cnEc5E2Dn6D7aoszG9JtCnI1lsY66kFo5D4uLPzM1Kxoud6l5El9oCDyP2Q==, tarball: file:projects/test-perf.tgz} name: '@rush-temp/test-perf' version: 0.0.0 dependencies: @@ -23878,7 +23893,7 @@ packages: dev: false file:projects/test-recorder.tgz: - resolution: {integrity: sha512-qlOsal3Yvx1QrCLwKsxTE0dg1WKpjeZG9zhgNpFb1A9DUVTCb1DoHeUUFzNqDYd4CcLbcd1CTfFcl2UxLPyo7g==, tarball: file:projects/test-recorder.tgz} + resolution: {integrity: sha512-qfNIYuEB3D4HDHkMw51pBk0eN5HDsimcSbFBgI+UQtAn9RByPq+Ho52w6O3NwBmn/fSKvKh/4JR18PLTzCeRoQ==, tarball: file:projects/test-recorder.tgz} name: '@rush-temp/test-recorder' version: 0.0.0 dependencies: @@ -23914,7 +23929,7 @@ packages: dev: false file:projects/test-utils.tgz: - resolution: {integrity: sha512-u4u9CDY3LLHpKg7655DGRsaWaieW93zWY7S0K3e+VOzqwMfGtVPCynsjQ0pfH+7yWl2YuR4HA6Frnitfauq4JQ==, tarball: file:projects/test-utils.tgz} + resolution: {integrity: sha512-uf7jHfyR4w/5UiwsXP0XKAcm5RUaMgEfNS5No5hvB41Z64MtXXiHugen9N81PYuiEV5u9uXnMJ10YVJj4BD7Eg==, tarball: file:projects/test-utils.tgz} name: '@rush-temp/test-utils' version: 0.0.0 dependencies: @@ -23951,7 +23966,7 @@ packages: dev: false file:projects/ts-http-runtime.tgz: - resolution: {integrity: sha512-HXO7Lv/cwgn5X1kgOUzXUWEG4amdxRLrjwPFBKX/R7Zg7k3GjyTgDJTQ+pQkkc9rZd28xI+4EfnOKVulDojROQ==, tarball: file:projects/ts-http-runtime.tgz} + resolution: {integrity: sha512-K3f2DI85IyC5yyUspHmIy8YQrixNXouxaU7eeoLhs1YxuzeMseUGyR8NLS36w2iGkbgl8rLLh71cyd8oBCYjJA==, tarball: file:projects/ts-http-runtime.tgz} name: '@rush-temp/ts-http-runtime' version: 0.0.0 dependencies: @@ -23986,7 +24001,7 @@ packages: dev: false file:projects/vite-plugin-browser-test-map.tgz: - resolution: {integrity: sha512-qKZHdG8f3LTACHV3PdZsjAm8dC+A9GyANO24iYg7ATkihTPXf4nO8l7RR9Ur1bHkDyqqMq2AIosv0QhEH5pvnQ==, tarball: file:projects/vite-plugin-browser-test-map.tgz} + resolution: {integrity: sha512-mCraP3jfWR4/X9V0+o2LLCczyZ/MvB7LfMgdSJ+K2Fg0eg4CmjhL4QaQi24JrhG8BgqVmM7GumlmMkbafTwomA==, tarball: file:projects/vite-plugin-browser-test-map.tgz} name: '@rush-temp/vite-plugin-browser-test-map' version: 0.0.0 dependencies: @@ -24001,7 +24016,7 @@ packages: dev: false file:projects/web-pubsub-client-protobuf.tgz: - resolution: {integrity: sha512-78fsp+vmAxIE74iuFyRs0e7ryMjsgjK8DcivkyXZcH7WcvTCSpE+ufZ3g5y3wrjHxdfjUlytkmBYzBT8zlAafQ==, tarball: file:projects/web-pubsub-client-protobuf.tgz} + resolution: {integrity: sha512-Jiw3fDmmnF4baE9kfiYq+B+SQ354zM68svrpq3agVGpfIjXESUr+flBL5YhEn66fTKRfGTNvKqbIE1pupKP31w==, tarball: file:projects/web-pubsub-client-protobuf.tgz} name: '@rush-temp/web-pubsub-client-protobuf' version: 0.0.0 dependencies: @@ -24060,7 +24075,7 @@ packages: dev: false file:projects/web-pubsub-client.tgz: - resolution: {integrity: sha512-m+IY0VupXTyW3MIox9verksiyHQ4IxqeiUML2XtKJ/kB+g4xhSE2Xrr42HnL3izL9FLVxJrodBQXy/jVvFfakQ==, tarball: file:projects/web-pubsub-client.tgz} + resolution: {integrity: sha512-laYMEsCoTMSHz8WCDoiMDTWcYwDkFzS7+IaUT//G+gU4Zzv2KcQXOxs/PMVQyropNz6/NK/EisjJPVo0rxsYgQ==, tarball: file:projects/web-pubsub-client.tgz} name: '@rush-temp/web-pubsub-client' version: 0.0.0 dependencies: @@ -24114,7 +24129,7 @@ packages: dev: false file:projects/web-pubsub-express.tgz: - resolution: {integrity: sha512-F6zi+OEVdbjyA9WHbPYJ5IPxwqV4GftEL9ts0Un9XI69az7MRx4AzDqjBT2fMRRQqBev8nwSsFuaFjO/Ie5cDg==, tarball: file:projects/web-pubsub-express.tgz} + resolution: {integrity: sha512-JkCH8kWGJZffxvML9ilscmbLpAoEidWvxMaYI5na4tpbB/g/Zh1T6NnrGRgI3kQAu9O8XmCqd8I33ZreroQdJA==, tarball: file:projects/web-pubsub-express.tgz} name: '@rush-temp/web-pubsub-express' version: 0.0.0 dependencies: @@ -24149,7 +24164,7 @@ packages: dev: false file:projects/web-pubsub.tgz: - resolution: {integrity: sha512-swVtqxuR+FDz54JwOA4JSKFgsdum+CM+AmqBVg9d/yu5CNE0pdKDC86iMql1cV3jV+VYgIDn13ga/4F066soxw==, tarball: file:projects/web-pubsub.tgz} + resolution: {integrity: sha512-1+KD+A58E+Y1LQ+uhKwGoubA0zOZZC9wk0XqRgLGxe4g/VJ6UQ4ukAp3zMqDOKHVshFZGcu2uq/yxcVaS85Rsw==, tarball: file:projects/web-pubsub.tgz} name: '@rush-temp/web-pubsub' version: 0.0.0 dependencies: diff --git a/sdk/changes/arm-changes/CHANGELOG.md b/sdk/changes/arm-changes/CHANGELOG.md index db1b40734fda2..5d862cf7531da 100644 --- a/sdk/changes/arm-changes/CHANGELOG.md +++ b/sdk/changes/arm-changes/CHANGELOG.md @@ -1,15 +1,13 @@ # Release History + +## 2.0.0 (2024-05-22) + +**Breaking Changes** -## 1.1.1 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed - -### Other Changes - + - Interface ChangesListNextOptionalParams no longer has parameter skipToken + - Interface ChangesListNextOptionalParams no longer has parameter top + + ## 1.1.0 (2022-11-17) **Features** @@ -19,4 +17,4 @@ ## 1.0.0 (2022-05-09) -The package of @azure/arm-changes is using our next generation design principles. To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/js/mgmt/quickstart ). +The package of @azure/arm-changes is using our next generation design principles. To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/js/mgmt/quickstart). diff --git a/sdk/changes/arm-changes/LICENSE b/sdk/changes/arm-changes/LICENSE index 5d1d36e0af80c..7d59347409658 100644 --- a/sdk/changes/arm-changes/LICENSE +++ b/sdk/changes/arm-changes/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2022 Microsoft +Copyright (c) 2024 Microsoft Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/sdk/changes/arm-changes/_meta.json b/sdk/changes/arm-changes/_meta.json index 1bf4df7407301..6f675c5d5d6aa 100644 --- a/sdk/changes/arm-changes/_meta.json +++ b/sdk/changes/arm-changes/_meta.json @@ -1,8 +1,8 @@ { - "commit": "20df2424a278ca19437e437a7dbf3a7857a0dd9d", + "commit": "61db561c7b16295a74a39fa76e58967fb0c621d7", "readme": "specification/resources/resource-manager/readme.md", - "autorest_command": "autorest --version=3.8.4 --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\\resources\\resource-manager\\readme.md --use=@autorest/typescript@6.0.0-rc.3.20221108.1 --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/resources/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.4.2", - "use": "@autorest/typescript@6.0.0-rc.3.20221108.1" + "release_tool": "@azure-tools/js-sdk-release-tools@2.7.9", + "use": "@autorest/typescript@^6.0.12" } \ No newline at end of file diff --git a/sdk/changes/arm-changes/package.json b/sdk/changes/arm-changes/package.json index fb0eca3fe0ca1..506286801dc0c 100644 --- a/sdk/changes/arm-changes/package.json +++ b/sdk/changes/arm-changes/package.json @@ -3,15 +3,15 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for ChangesClient.", - "version": "1.1.1", + "version": "2.0.0", "engines": { "node": ">=18.0.0" }, "dependencies": { "@azure/core-paging": "^1.2.0", - "@azure/core-client": "^1.6.1", - "@azure/core-auth": "^1.3.0", - "@azure/core-rest-pipeline": "^1.8.0", + "@azure/core-client": "^1.7.0", + "@azure/core-auth": "^1.6.0", + "@azure/core-rest-pipeline": "^1.14.0", "tslib": "^2.2.0" }, "keywords": [ @@ -30,20 +30,21 @@ "mkdirp": "^3.0.1", "typescript": "~5.4.5", "uglify-js": "^3.4.9", - "rimraf": "^5.0.5", + "rimraf": "^5.0.0", + "dotenv": "^16.0.0", + "@azure/dev-tool": "^1.0.0", "@azure/identity": "^4.0.1", "@azure-tools/test-recorder": "^3.0.0", "@azure-tools/test-credential": "^1.0.0", "mocha": "^10.0.0", + "@types/mocha": "^10.0.0", + "tsx": "^4.7.1", "@types/chai": "^4.2.8", "chai": "^4.2.0", "cross-env": "^7.0.2", "@types/node": "^18.0.0", - "@azure/dev-tool": "^1.0.0", - "ts-node": "^10.0.0", - "@types/mocha": "^10.0.0" + "ts-node": "^10.0.0" }, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/changes/arm-changes", "repository": { "type": "git", "url": "https://github.com/Azure/azure-sdk-for-js.git" @@ -75,7 +76,6 @@ "pack": "npm pack 2>&1", "extract-api": "dev-tool run extract-api", "lint": "echo skipped", - "audit": "echo skipped", "clean": "rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log", "build:node": "echo skipped", "build:browser": "echo skipped", @@ -104,12 +104,5 @@ ] }, "autoPublish": true, - "//sampleConfiguration": { - "productName": "", - "productSlugs": [ - "azure" - ], - "disableDocsMs": true, - "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-changes?view=azure-node-preview" - } -} + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/changes/arm-changes" +} \ No newline at end of file diff --git a/sdk/changes/arm-changes/review/arm-changes.api.md b/sdk/changes/arm-changes/review/arm-changes.api.md index d28e3c8b3d3cf..7f23d1894d556 100644 --- a/sdk/changes/arm-changes/review/arm-changes.api.md +++ b/sdk/changes/arm-changes/review/arm-changes.api.md @@ -85,8 +85,6 @@ export type ChangesGetResponse = ChangeResourceResult; // @public export interface ChangesListNextOptionalParams extends coreClient.OperationOptions { - skipToken?: string; - top?: number; } // @public diff --git a/sdk/changes/arm-changes/src/changesClient.ts b/sdk/changes/arm-changes/src/changesClient.ts index 446f9a2b2c666..8f1fb8337fe6d 100644 --- a/sdk/changes/arm-changes/src/changesClient.ts +++ b/sdk/changes/arm-changes/src/changesClient.ts @@ -11,7 +11,7 @@ import * as coreRestPipeline from "@azure/core-rest-pipeline"; import { PipelineRequest, PipelineResponse, - SendRequest + SendRequest, } from "@azure/core-rest-pipeline"; import * as coreAuth from "@azure/core-auth"; import { ChangesImpl } from "./operations"; @@ -33,7 +33,7 @@ export class ChangesClient extends coreClient.ServiceClient { constructor( credentials: coreAuth.TokenCredential, subscriptionId: string, - options?: ChangesClientOptionalParams + options?: ChangesClientOptionalParams, ) { if (credentials === undefined) { throw new Error("'credentials' cannot be null"); @@ -48,10 +48,10 @@ export class ChangesClient extends coreClient.ServiceClient { } const defaults: ChangesClientOptionalParams = { requestContentType: "application/json; charset=utf-8", - credential: credentials + credential: credentials, }; - const packageDetails = `azsdk-js-arm-changes/1.1.1`; + const packageDetails = `azsdk-js-arm-changes/2.0.0`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -61,20 +61,21 @@ export class ChangesClient extends coreClient.ServiceClient { ...defaults, ...options, userAgentOptions: { - userAgentPrefix + userAgentPrefix, }, endpoint: - options.endpoint ?? options.baseUri ?? "https://management.azure.com" + options.endpoint ?? options.baseUri ?? "https://management.azure.com", }; super(optionsWithDefaults); let bearerTokenAuthenticationPolicyFound: boolean = false; if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) { - const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies(); + const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = + options.pipeline.getOrderedPolicies(); bearerTokenAuthenticationPolicyFound = pipelinePolicies.some( (pipelinePolicy) => pipelinePolicy.name === - coreRestPipeline.bearerTokenAuthenticationPolicyName + coreRestPipeline.bearerTokenAuthenticationPolicyName, ); } if ( @@ -84,7 +85,7 @@ export class ChangesClient extends coreClient.ServiceClient { !bearerTokenAuthenticationPolicyFound ) { this.pipeline.removePolicy({ - name: coreRestPipeline.bearerTokenAuthenticationPolicyName + name: coreRestPipeline.bearerTokenAuthenticationPolicyName, }); this.pipeline.addPolicy( coreRestPipeline.bearerTokenAuthenticationPolicy({ @@ -94,9 +95,9 @@ export class ChangesClient extends coreClient.ServiceClient { `${optionsWithDefaults.endpoint}/.default`, challengeCallbacks: { authorizeRequestOnChallenge: - coreClient.authorizeRequestOnClaimChallenge - } - }) + coreClient.authorizeRequestOnClaimChallenge, + }, + }), ); } // Parameter assignments @@ -118,7 +119,7 @@ export class ChangesClient extends coreClient.ServiceClient { name: "CustomApiVersionPolicy", async sendRequest( request: PipelineRequest, - next: SendRequest + next: SendRequest, ): Promise { const param = request.url.split("?"); if (param.length > 1) { @@ -132,7 +133,7 @@ export class ChangesClient extends coreClient.ServiceClient { request.url = param[0] + "?" + newParams.join("&"); } return next(request); - } + }, }; this.pipeline.addPolicy(apiVersionPolicy); } diff --git a/sdk/changes/arm-changes/src/models/index.ts b/sdk/changes/arm-changes/src/models/index.ts index ad228aaa3b0bb..ee8b8a2235567 100644 --- a/sdk/changes/arm-changes/src/models/index.ts +++ b/sdk/changes/arm-changes/src/models/index.ts @@ -192,12 +192,7 @@ export type ChangesGetResponse = ChangeResourceResult; /** Optional parameters. */ export interface ChangesListNextOptionalParams - extends coreClient.OperationOptions { - /** (Optional) Set the maximum number of results per response. */ - top?: number; - /** (Optional) The page-continuation token */ - skipToken?: string; -} + extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ export type ChangesListNextResponse = ChangeResourceListResult; diff --git a/sdk/changes/arm-changes/src/models/mappers.ts b/sdk/changes/arm-changes/src/models/mappers.ts index 440d712243532..576f47c739dfc 100644 --- a/sdk/changes/arm-changes/src/models/mappers.ts +++ b/sdk/changes/arm-changes/src/models/mappers.ts @@ -16,8 +16,8 @@ export const ChangeResourceListResult: coreClient.CompositeMapper = { nextLink: { serializedName: "nextLink", type: { - name: "String" - } + name: "String", + }, }, value: { serializedName: "value", @@ -26,13 +26,13 @@ export const ChangeResourceListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ChangeResourceResult" - } - } - } - } - } - } + className: "ChangeResourceResult", + }, + }, + }, + }, + }, + }, }; export const ChangeProperties: coreClient.CompositeMapper = { @@ -44,40 +44,40 @@ export const ChangeProperties: coreClient.CompositeMapper = { serializedName: "targetResourceId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, targetResourceType: { serializedName: "targetResourceType", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, changeType: { serializedName: "changeType", readOnly: true, type: { name: "Enum", - allowedValues: ["Update", "Delete", "Create"] - } + allowedValues: ["Update", "Delete", "Create"], + }, }, changeAttributes: { serializedName: "changeAttributes", type: { name: "Composite", - className: "ChangeAttributes" - } + className: "ChangeAttributes", + }, }, changes: { serializedName: "changes", type: { name: "Dictionary", - value: { type: { name: "Composite", className: "ChangeBase" } } - } - } - } - } + value: { type: { name: "Composite", className: "ChangeBase" } }, + }, + }, + }, + }, }; export const ChangeAttributes: coreClient.CompositeMapper = { @@ -89,39 +89,39 @@ export const ChangeAttributes: coreClient.CompositeMapper = { serializedName: "correlationId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, timestamp: { serializedName: "timestamp", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, changesCount: { serializedName: "changesCount", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, previousResourceSnapshotId: { serializedName: "previousResourceSnapshotId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, newResourceSnapshotId: { serializedName: "newResourceSnapshotId", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ChangeBase: coreClient.CompositeMapper = { @@ -134,33 +134,33 @@ export const ChangeBase: coreClient.CompositeMapper = { readOnly: true, type: { name: "Enum", - allowedValues: ["Update", "Insert", "Remove"] - } + allowedValues: ["Update", "Insert", "Remove"], + }, }, changeCategory: { serializedName: "changeCategory", readOnly: true, type: { name: "Enum", - allowedValues: ["User", "System"] - } + allowedValues: ["User", "System"], + }, }, previousValue: { serializedName: "previousValue", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, newValue: { serializedName: "newValue", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const Resource: coreClient.CompositeMapper = { @@ -172,25 +172,25 @@ export const Resource: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ErrorResponse: coreClient.CompositeMapper = { @@ -202,11 +202,11 @@ export const ErrorResponse: coreClient.CompositeMapper = { serializedName: "error", type: { name: "Composite", - className: "ErrorDetail" - } - } - } - } + className: "ErrorDetail", + }, + }, + }, + }, }; export const ErrorDetail: coreClient.CompositeMapper = { @@ -218,22 +218,22 @@ export const ErrorDetail: coreClient.CompositeMapper = { serializedName: "code", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, message: { serializedName: "message", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, target: { serializedName: "target", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, details: { serializedName: "details", @@ -243,10 +243,10 @@ export const ErrorDetail: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ErrorDetail" - } - } - } + className: "ErrorDetail", + }, + }, + }, }, additionalInfo: { serializedName: "additionalInfo", @@ -256,13 +256,13 @@ export const ErrorDetail: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ErrorAdditionalInfo" - } - } - } - } - } - } + className: "ErrorAdditionalInfo", + }, + }, + }, + }, + }, + }, }; export const ErrorAdditionalInfo: coreClient.CompositeMapper = { @@ -274,19 +274,19 @@ export const ErrorAdditionalInfo: coreClient.CompositeMapper = { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, info: { serializedName: "info", readOnly: true, type: { name: "Dictionary", - value: { type: { name: "any" } } - } - } - } - } + value: { type: { name: "any" } }, + }, + }, + }, + }, }; export const ChangeResourceResult: coreClient.CompositeMapper = { @@ -299,9 +299,9 @@ export const ChangeResourceResult: coreClient.CompositeMapper = { serializedName: "properties", type: { name: "Composite", - className: "ChangeProperties" - } - } - } - } + className: "ChangeProperties", + }, + }, + }, + }, }; diff --git a/sdk/changes/arm-changes/src/models/parameters.ts b/sdk/changes/arm-changes/src/models/parameters.ts index 8d270640fffcc..993d6cabbfeb1 100644 --- a/sdk/changes/arm-changes/src/models/parameters.ts +++ b/sdk/changes/arm-changes/src/models/parameters.ts @@ -9,7 +9,7 @@ import { OperationParameter, OperationURLParameter, - OperationQueryParameter + OperationQueryParameter, } from "@azure/core-client"; export const accept: OperationParameter = { @@ -19,9 +19,9 @@ export const accept: OperationParameter = { isConstant: true, serializedName: "Accept", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const $host: OperationURLParameter = { @@ -30,10 +30,10 @@ export const $host: OperationURLParameter = { serializedName: "$host", required: true, type: { - name: "String" - } + name: "String", + }, }, - skipEncoding: true + skipEncoding: true, }; export const subscriptionId: OperationURLParameter = { @@ -42,9 +42,9 @@ export const subscriptionId: OperationURLParameter = { serializedName: "subscriptionId", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const resourceGroupName: OperationURLParameter = { @@ -53,9 +53,9 @@ export const resourceGroupName: OperationURLParameter = { serializedName: "resourceGroupName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const resourceProviderNamespace: OperationURLParameter = { @@ -64,9 +64,9 @@ export const resourceProviderNamespace: OperationURLParameter = { serializedName: "resourceProviderNamespace", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const resourceType: OperationURLParameter = { @@ -75,9 +75,9 @@ export const resourceType: OperationURLParameter = { serializedName: "resourceType", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const resourceName: OperationURLParameter = { @@ -86,9 +86,9 @@ export const resourceName: OperationURLParameter = { serializedName: "resourceName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const apiVersion: OperationQueryParameter = { @@ -98,9 +98,9 @@ export const apiVersion: OperationQueryParameter = { isConstant: true, serializedName: "api-version", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const top: OperationQueryParameter = { @@ -109,13 +109,13 @@ export const top: OperationQueryParameter = { defaultValue: 100, constraints: { InclusiveMaximum: 100, - InclusiveMinimum: 1 + InclusiveMinimum: 1, }, serializedName: "$top", type: { - name: "Number" - } - } + name: "Number", + }, + }, }; export const skipToken: OperationQueryParameter = { @@ -123,9 +123,9 @@ export const skipToken: OperationQueryParameter = { mapper: { serializedName: "$skipToken", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const changeResourceId: OperationURLParameter = { @@ -134,9 +134,9 @@ export const changeResourceId: OperationURLParameter = { serializedName: "changeResourceId", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const nextLink: OperationURLParameter = { @@ -145,8 +145,8 @@ export const nextLink: OperationURLParameter = { serializedName: "nextLink", required: true, type: { - name: "String" - } + name: "String", + }, }, - skipEncoding: true + skipEncoding: true, }; diff --git a/sdk/changes/arm-changes/src/operations/changes.ts b/sdk/changes/arm-changes/src/operations/changes.ts index 7c5e470c5ae03..d3dd32c9fbd67 100644 --- a/sdk/changes/arm-changes/src/operations/changes.ts +++ b/sdk/changes/arm-changes/src/operations/changes.ts @@ -20,7 +20,7 @@ import { ChangesListResponse, ChangesGetOptionalParams, ChangesGetResponse, - ChangesListNextResponse + ChangesListNextResponse, } from "../models"; /// @@ -49,14 +49,14 @@ export class ChangesImpl implements Changes { resourceProviderNamespace: string, resourceType: string, resourceName: string, - options?: ChangesListOptionalParams + options?: ChangesListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll( resourceGroupName, resourceProviderNamespace, resourceType, resourceName, - options + options, ); return { next() { @@ -75,9 +75,9 @@ export class ChangesImpl implements Changes { resourceType, resourceName, options, - settings + settings, ); - } + }, }; } @@ -87,7 +87,7 @@ export class ChangesImpl implements Changes { resourceType: string, resourceName: string, options?: ChangesListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ChangesListResponse; let continuationToken = settings?.continuationToken; @@ -97,7 +97,7 @@ export class ChangesImpl implements Changes { resourceProviderNamespace, resourceType, resourceName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -111,7 +111,7 @@ export class ChangesImpl implements Changes { resourceType, resourceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -125,14 +125,14 @@ export class ChangesImpl implements Changes { resourceProviderNamespace: string, resourceType: string, resourceName: string, - options?: ChangesListOptionalParams + options?: ChangesListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, resourceProviderNamespace, resourceType, resourceName, - options + options, )) { yield* page; } @@ -151,7 +151,7 @@ export class ChangesImpl implements Changes { resourceProviderNamespace: string, resourceType: string, resourceName: string, - options?: ChangesListOptionalParams + options?: ChangesListOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -159,9 +159,9 @@ export class ChangesImpl implements Changes { resourceProviderNamespace, resourceType, resourceName, - options + options, }, - listOperationSpec + listOperationSpec, ); } @@ -180,7 +180,7 @@ export class ChangesImpl implements Changes { resourceType: string, resourceName: string, changeResourceId: string, - options?: ChangesGetOptionalParams + options?: ChangesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -189,9 +189,9 @@ export class ChangesImpl implements Changes { resourceType, resourceName, changeResourceId, - options + options, }, - getOperationSpec + getOperationSpec, ); } @@ -210,7 +210,7 @@ export class ChangesImpl implements Changes { resourceType: string, resourceName: string, nextLink: string, - options?: ChangesListNextOptionalParams + options?: ChangesListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -219,9 +219,9 @@ export class ChangesImpl implements Changes { resourceType, resourceName, nextLink, - options + options, }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -229,21 +229,20 @@ export class ChangesImpl implements Changes { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}/providers/Microsoft.Resources/changes", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}/providers/Microsoft.Resources/changes", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ChangeResourceListResult + bodyMapper: Mappers.ChangeResourceListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ Parameters.apiVersion, Parameters.top, - Parameters.skipToken + Parameters.skipToken, ], urlParameters: [ Parameters.$host, @@ -251,22 +250,21 @@ const listOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.resourceProviderNamespace, Parameters.resourceType, - Parameters.resourceName + Parameters.resourceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}/providers/Microsoft.Resources/changes/{changeResourceId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}/providers/Microsoft.Resources/changes/{changeResourceId}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ChangeResourceResult + bodyMapper: Mappers.ChangeResourceResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -276,27 +274,22 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceProviderNamespace, Parameters.resourceType, Parameters.resourceName, - Parameters.changeResourceId + Parameters.changeResourceId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ChangeResourceListResult + bodyMapper: Mappers.ChangeResourceListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - queryParameters: [ - Parameters.apiVersion, - Parameters.top, - Parameters.skipToken - ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -304,8 +297,8 @@ const listNextOperationSpec: coreClient.OperationSpec = { Parameters.resourceProviderNamespace, Parameters.resourceType, Parameters.resourceName, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/changes/arm-changes/src/operationsInterfaces/changes.ts b/sdk/changes/arm-changes/src/operationsInterfaces/changes.ts index b873985b4b21f..d862c902ff43f 100644 --- a/sdk/changes/arm-changes/src/operationsInterfaces/changes.ts +++ b/sdk/changes/arm-changes/src/operationsInterfaces/changes.ts @@ -11,7 +11,7 @@ import { ChangeResourceResult, ChangesListOptionalParams, ChangesGetOptionalParams, - ChangesGetResponse + ChangesGetResponse, } from "../models"; /// @@ -30,7 +30,7 @@ export interface Changes { resourceProviderNamespace: string, resourceType: string, resourceName: string, - options?: ChangesListOptionalParams + options?: ChangesListOptionalParams, ): PagedAsyncIterableIterator; /** * Obtains the specified change resource for the target resource @@ -47,6 +47,6 @@ export interface Changes { resourceType: string, resourceName: string, changeResourceId: string, - options?: ChangesGetOptionalParams + options?: ChangesGetOptionalParams, ): Promise; } diff --git a/sdk/changes/arm-changes/src/pagingHelper.ts b/sdk/changes/arm-changes/src/pagingHelper.ts index d85fc13bce1ed..205cccc265927 100644 --- a/sdk/changes/arm-changes/src/pagingHelper.ts +++ b/sdk/changes/arm-changes/src/pagingHelper.ts @@ -13,11 +13,11 @@ export interface PageInfo { const pageMap = new WeakMap(); /** - * Given a result page from a pageable operation, returns a - * continuation token that can be used to begin paging from + * Given the last `.value` produced by the `byPage` iterator, + * returns a continuation token that can be used to begin paging from * that point later. - * @param page A result object from calling .byPage() on a paged operation. - * @returns The continuation token that can be passed into byPage(). + * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator. + * @returns The continuation token that can be passed into byPage() during future calls. */ export function getContinuationToken(page: unknown): string | undefined { if (typeof page !== "object" || page === null) { @@ -28,7 +28,7 @@ export function getContinuationToken(page: unknown): string | undefined { export function setContinuationToken( page: unknown, - continuationToken: string | undefined + continuationToken: string | undefined, ): void { if (typeof page !== "object" || page === null || !continuationToken) { return; diff --git a/sdk/changes/arm-changes/test/sampleTest.ts b/sdk/changes/arm-changes/test/sampleTest.ts index 25aeb3ebcc367..d64be981b6946 100644 --- a/sdk/changes/arm-changes/test/sampleTest.ts +++ b/sdk/changes/arm-changes/test/sampleTest.ts @@ -9,7 +9,7 @@ import { Recorder, RecorderStartOptions, - env + env, } from "@azure-tools/test-recorder"; import { assert } from "chai"; import { Context } from "mocha"; @@ -18,26 +18,26 @@ 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" + SUBSCRIPTION_ID: "azure_subscription_id", }; const recorderOptions: RecorderStartOptions = { - envSetupForPlayback: replaceableVariables + envSetupForPlayback: replaceableVariables, }; describe("My test", () => { let recorder: Recorder; - beforeEach(async function(this: Context) { + beforeEach(async function (this: Context) { recorder = new Recorder(this.currentTest); await recorder.start(recorderOptions); }); - afterEach(async function() { + afterEach(async function () { await recorder.stop(); }); - it("sample test", async function() { + it("sample test", async function () { console.log("Hi, I'm a test!"); }); }); diff --git a/sdk/changes/arm-changes/tsconfig.json b/sdk/changes/arm-changes/tsconfig.json index 017e8571316c6..1d8c9012bfbd5 100644 --- a/sdk/changes/arm-changes/tsconfig.json +++ b/sdk/changes/arm-changes/tsconfig.json @@ -15,17 +15,19 @@ ], "declaration": true, "outDir": "./dist-esm", - "importHelpers": true, - "paths": { - "@azure/arm-changes": [ - "./src/index" - ] - } + "importHelpers": true }, "include": [ "./src/**/*.ts", "./test/**/*.ts", - "samples-dev/**/*.ts" + "./test/**/*.ts", + "./test/**/*.ts", + "./test/**/*.ts", + "./test/**/*.ts", + "./test/**/*.ts", + "./test/**/*.ts", + "./test/**/*.ts", + "./test/**/*.ts" ], "exclude": [ "node_modules" diff --git a/sdk/features/arm-features/CHANGELOG.md b/sdk/features/arm-features/CHANGELOG.md index 88e4ece629695..ad925ec356770 100644 --- a/sdk/features/arm-features/CHANGELOG.md +++ b/sdk/features/arm-features/CHANGELOG.md @@ -1,15 +1,12 @@ # Release History + +## 4.0.0 (2024-05-22) + +**Breaking Changes** -## 3.1.1 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed - -### Other Changes - + - Class FeatureClient has a new signature + + ## 3.1.0 (2022-11-22) **Features** @@ -30,4 +27,4 @@ To understand the detail of the change, please refer to [Changelog](https://aka. To migrate the existing applications to the latest version, please refer to [Migration Guide](https://aka.ms/js-track2-migration-guide). -To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/js/mgmt/quickstart ). +To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/js/mgmt/quickstart). diff --git a/sdk/features/arm-features/LICENSE b/sdk/features/arm-features/LICENSE index 5d1d36e0af80c..7d59347409658 100644 --- a/sdk/features/arm-features/LICENSE +++ b/sdk/features/arm-features/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2022 Microsoft +Copyright (c) 2024 Microsoft Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/sdk/features/arm-features/_meta.json b/sdk/features/arm-features/_meta.json index 4b98b8203a1f2..6f675c5d5d6aa 100644 --- a/sdk/features/arm-features/_meta.json +++ b/sdk/features/arm-features/_meta.json @@ -1,8 +1,8 @@ { - "commit": "a42f1b58607091c4f255ead152a8ef323fa0b280", - "readme": "specification\\resources\\resource-manager\\readme.md", - "autorest_command": "autorest --version=3.8.4 --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\\resources\\resource-manager\\readme.md --use=@autorest/typescript@6.0.0-rc.3.20221108.1 --generate-sample=true", + "commit": "61db561c7b16295a74a39fa76e58967fb0c621d7", + "readme": "specification/resources/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=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/resources/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.4.2", - "use": "@autorest/typescript@6.0.0-rc.3.20221108.1" + "release_tool": "@azure-tools/js-sdk-release-tools@2.7.9", + "use": "@autorest/typescript@^6.0.12" } \ No newline at end of file diff --git a/sdk/features/arm-features/package.json b/sdk/features/arm-features/package.json index 8e17b4ad26a94..3db85c21b7ae9 100644 --- a/sdk/features/arm-features/package.json +++ b/sdk/features/arm-features/package.json @@ -3,15 +3,15 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for FeatureClient.", - "version": "3.1.1", + "version": "4.0.0", "engines": { "node": ">=18.0.0" }, "dependencies": { "@azure/core-paging": "^1.2.0", - "@azure/core-client": "^1.6.1", - "@azure/core-auth": "^1.3.0", - "@azure/core-rest-pipeline": "^1.8.0", + "@azure/core-client": "^1.7.0", + "@azure/core-auth": "^1.6.0", + "@azure/core-rest-pipeline": "^1.14.0", "tslib": "^2.2.0" }, "keywords": [ @@ -30,20 +30,21 @@ "mkdirp": "^3.0.1", "typescript": "~5.4.5", "uglify-js": "^3.4.9", - "rimraf": "^5.0.5", + "rimraf": "^5.0.0", + "dotenv": "^16.0.0", + "@azure/dev-tool": "^1.0.0", "@azure/identity": "^4.0.1", "@azure-tools/test-recorder": "^3.0.0", "@azure-tools/test-credential": "^1.0.0", "mocha": "^10.0.0", + "@types/mocha": "^10.0.0", + "tsx": "^4.7.1", "@types/chai": "^4.2.8", "chai": "^4.2.0", "cross-env": "^7.0.2", "@types/node": "^18.0.0", - "@azure/dev-tool": "^1.0.0", - "ts-node": "^10.0.0", - "@types/mocha": "^10.0.0" + "ts-node": "^10.0.0" }, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/features/arm-features", "repository": { "type": "git", "url": "https://github.com/Azure/azure-sdk-for-js.git" @@ -75,7 +76,6 @@ "pack": "npm pack 2>&1", "extract-api": "dev-tool run extract-api", "lint": "echo skipped", - "audit": "echo skipped", "clean": "rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log", "build:node": "echo skipped", "build:browser": "echo skipped", @@ -104,12 +104,5 @@ ] }, "autoPublish": true, - "//sampleConfiguration": { - "productName": "", - "productSlugs": [ - "azure" - ], - "disableDocsMs": true, - "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-features?view=azure-node-preview" - } -} + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/features/arm-features" +} \ No newline at end of file diff --git a/sdk/features/arm-features/review/arm-features.api.md b/sdk/features/arm-features/review/arm-features.api.md index 89f95f5724528..b011cb9640a55 100644 --- a/sdk/features/arm-features/review/arm-features.api.md +++ b/sdk/features/arm-features/review/arm-features.api.md @@ -34,6 +34,7 @@ export class FeatureClient extends coreClient.ServiceClient { // (undocumented) $host: string; constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: FeatureClientOptionalParams); + constructor(credentials: coreAuth.TokenCredential, options?: FeatureClientOptionalParams); // (undocumented) apiVersion: string; // (undocumented) @@ -42,7 +43,7 @@ export class FeatureClient extends coreClient.ServiceClient { // (undocumented) subscriptionFeatureRegistrations: SubscriptionFeatureRegistrations; // (undocumented) - subscriptionId: string; + subscriptionId?: string; } // @public diff --git a/sdk/features/arm-features/src/featureClient.ts b/sdk/features/arm-features/src/featureClient.ts index 895c1fb0c8efb..290786081c17f 100644 --- a/sdk/features/arm-features/src/featureClient.ts +++ b/sdk/features/arm-features/src/featureClient.ts @@ -11,18 +11,18 @@ import * as coreRestPipeline from "@azure/core-rest-pipeline"; import { PipelineRequest, PipelineResponse, - SendRequest + SendRequest, } from "@azure/core-rest-pipeline"; import * as coreAuth from "@azure/core-auth"; import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; import { setContinuationToken } from "./pagingHelper"; import { FeaturesImpl, - SubscriptionFeatureRegistrationsImpl + SubscriptionFeatureRegistrationsImpl, } from "./operations"; import { Features, - SubscriptionFeatureRegistrations + SubscriptionFeatureRegistrations, } from "./operationsInterfaces"; import * as Parameters from "./models/parameters"; import * as Mappers from "./models/mappers"; @@ -32,14 +32,14 @@ import { ListOperationsNextOptionalParams, ListOperationsOptionalParams, ListOperationsResponse, - ListOperationsNextResponse + ListOperationsNextResponse, } from "./models"; /// export class FeatureClient extends coreClient.ServiceClient { $host: string; apiVersion: string; - subscriptionId: string; + subscriptionId?: string; /** * Initializes a new instance of the FeatureClient class. @@ -50,13 +50,27 @@ export class FeatureClient extends coreClient.ServiceClient { constructor( credentials: coreAuth.TokenCredential, subscriptionId: string, - options?: FeatureClientOptionalParams + options?: FeatureClientOptionalParams, + ); + constructor( + credentials: coreAuth.TokenCredential, + options?: FeatureClientOptionalParams, + ); + constructor( + credentials: coreAuth.TokenCredential, + subscriptionIdOrOptions?: FeatureClientOptionalParams | string, + options?: FeatureClientOptionalParams, ) { if (credentials === undefined) { throw new Error("'credentials' cannot be null"); } - if (subscriptionId === undefined) { - throw new Error("'subscriptionId' cannot be null"); + + let subscriptionId: string | undefined; + + if (typeof subscriptionIdOrOptions === "string") { + subscriptionId = subscriptionIdOrOptions; + } else if (typeof subscriptionIdOrOptions === "object") { + options = subscriptionIdOrOptions; } // Initializing default values for options @@ -65,10 +79,10 @@ export class FeatureClient extends coreClient.ServiceClient { } const defaults: FeatureClientOptionalParams = { requestContentType: "application/json; charset=utf-8", - credential: credentials + credential: credentials, }; - const packageDetails = `azsdk-js-arm-features/3.1.1`; + const packageDetails = `azsdk-js-arm-features/4.0.0`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -78,20 +92,21 @@ export class FeatureClient extends coreClient.ServiceClient { ...defaults, ...options, userAgentOptions: { - userAgentPrefix + userAgentPrefix, }, endpoint: - options.endpoint ?? options.baseUri ?? "https://management.azure.com" + options.endpoint ?? options.baseUri ?? "https://management.azure.com", }; super(optionsWithDefaults); let bearerTokenAuthenticationPolicyFound: boolean = false; if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) { - const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies(); + const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = + options.pipeline.getOrderedPolicies(); bearerTokenAuthenticationPolicyFound = pipelinePolicies.some( (pipelinePolicy) => pipelinePolicy.name === - coreRestPipeline.bearerTokenAuthenticationPolicyName + coreRestPipeline.bearerTokenAuthenticationPolicyName, ); } if ( @@ -101,7 +116,7 @@ export class FeatureClient extends coreClient.ServiceClient { !bearerTokenAuthenticationPolicyFound ) { this.pipeline.removePolicy({ - name: coreRestPipeline.bearerTokenAuthenticationPolicyName + name: coreRestPipeline.bearerTokenAuthenticationPolicyName, }); this.pipeline.addPolicy( coreRestPipeline.bearerTokenAuthenticationPolicy({ @@ -111,9 +126,9 @@ export class FeatureClient extends coreClient.ServiceClient { `${optionsWithDefaults.endpoint}/.default`, challengeCallbacks: { authorizeRequestOnChallenge: - coreClient.authorizeRequestOnClaimChallenge - } - }) + coreClient.authorizeRequestOnClaimChallenge, + }, + }), ); } // Parameter assignments @@ -123,9 +138,8 @@ export class FeatureClient extends coreClient.ServiceClient { this.$host = options.$host || "https://management.azure.com"; this.apiVersion = options.apiVersion || "2021-07-01"; this.features = new FeaturesImpl(this); - this.subscriptionFeatureRegistrations = new SubscriptionFeatureRegistrationsImpl( - this - ); + this.subscriptionFeatureRegistrations = + new SubscriptionFeatureRegistrationsImpl(this); this.addCustomApiVersionPolicy(options.apiVersion); } @@ -138,7 +152,7 @@ export class FeatureClient extends coreClient.ServiceClient { name: "CustomApiVersionPolicy", async sendRequest( request: PipelineRequest, - next: SendRequest + next: SendRequest, ): Promise { const param = request.url.split("?"); if (param.length > 1) { @@ -152,7 +166,7 @@ export class FeatureClient extends coreClient.ServiceClient { request.url = param[0] + "?" + newParams.join("&"); } return next(request); - } + }, }; this.pipeline.addPolicy(apiVersionPolicy); } @@ -162,7 +176,7 @@ export class FeatureClient extends coreClient.ServiceClient { * @param options The options parameters. */ public listOperations( - options?: ListOperationsOptionalParams + options?: ListOperationsOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listOperationsPagingAll(options); return { @@ -177,13 +191,13 @@ export class FeatureClient extends coreClient.ServiceClient { throw new Error("maxPageSize is not supported by this operation."); } return this.listOperationsPagingPage(options, settings); - } + }, }; } private async *listOperationsPagingPage( options?: ListOperationsOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ListOperationsResponse; let continuationToken = settings?.continuationToken; @@ -204,7 +218,7 @@ export class FeatureClient extends coreClient.ServiceClient { } private async *listOperationsPagingAll( - options?: ListOperationsOptionalParams + options?: ListOperationsOptionalParams, ): AsyncIterableIterator { for await (const page of this.listOperationsPagingPage(options)) { yield* page; @@ -216,7 +230,7 @@ export class FeatureClient extends coreClient.ServiceClient { * @param options The options parameters. */ private _listOperations( - options?: ListOperationsOptionalParams + options?: ListOperationsOptionalParams, ): Promise { return this.sendOperationRequest({ options }, listOperationsOperationSpec); } @@ -228,11 +242,11 @@ export class FeatureClient extends coreClient.ServiceClient { */ private _listOperationsNext( nextLink: string, - options?: ListOperationsNextOptionalParams + options?: ListOperationsNextOptionalParams, ): Promise { return this.sendOperationRequest( { nextLink, options }, - listOperationsNextOperationSpec + listOperationsNextOperationSpec, ); } @@ -247,30 +261,29 @@ const listOperationsOperationSpec: coreClient.OperationSpec = { httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.OperationListResult + bodyMapper: Mappers.OperationListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOperationsNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.OperationListResult + bodyMapper: Mappers.OperationListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.nextLink], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/features/arm-features/src/models/index.ts b/sdk/features/arm-features/src/models/index.ts index 860adc9f14faa..ffc973d8b47df 100644 --- a/sdk/features/arm-features/src/models/index.ts +++ b/sdk/features/arm-features/src/models/index.ts @@ -216,7 +216,7 @@ export enum KnownSubscriptionFeatureRegistrationState { /** Unregistering */ Unregistering = "Unregistering", /** Unregistered */ - Unregistered = "Unregistered" + Unregistered = "Unregistered", } /** @@ -241,7 +241,7 @@ export enum KnownSubscriptionFeatureRegistrationApprovalType { /** ApprovalRequired */ ApprovalRequired = "ApprovalRequired", /** AutoApproval */ - AutoApproval = "AutoApproval" + AutoApproval = "AutoApproval", } /** @@ -323,7 +323,8 @@ export interface SubscriptionFeatureRegistrationsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type SubscriptionFeatureRegistrationsGetResponse = SubscriptionFeatureRegistration; +export type SubscriptionFeatureRegistrationsGetResponse = + SubscriptionFeatureRegistration; /** Optional parameters. */ export interface SubscriptionFeatureRegistrationsCreateOrUpdateOptionalParams @@ -333,7 +334,8 @@ export interface SubscriptionFeatureRegistrationsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type SubscriptionFeatureRegistrationsCreateOrUpdateResponse = SubscriptionFeatureRegistration; +export type SubscriptionFeatureRegistrationsCreateOrUpdateResponse = + SubscriptionFeatureRegistration; /** Optional parameters. */ export interface SubscriptionFeatureRegistrationsDeleteOptionalParams @@ -344,28 +346,32 @@ export interface SubscriptionFeatureRegistrationsListBySubscriptionOptionalParam extends coreClient.OperationOptions {} /** Contains response data for the listBySubscription operation. */ -export type SubscriptionFeatureRegistrationsListBySubscriptionResponse = SubscriptionFeatureRegistrationList; +export type SubscriptionFeatureRegistrationsListBySubscriptionResponse = + SubscriptionFeatureRegistrationList; /** Optional parameters. */ export interface SubscriptionFeatureRegistrationsListAllBySubscriptionOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listAllBySubscription operation. */ -export type SubscriptionFeatureRegistrationsListAllBySubscriptionResponse = SubscriptionFeatureRegistrationList; +export type SubscriptionFeatureRegistrationsListAllBySubscriptionResponse = + SubscriptionFeatureRegistrationList; /** Optional parameters. */ export interface SubscriptionFeatureRegistrationsListBySubscriptionNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listBySubscriptionNext operation. */ -export type SubscriptionFeatureRegistrationsListBySubscriptionNextResponse = SubscriptionFeatureRegistrationList; +export type SubscriptionFeatureRegistrationsListBySubscriptionNextResponse = + SubscriptionFeatureRegistrationList; /** Optional parameters. */ export interface SubscriptionFeatureRegistrationsListAllBySubscriptionNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listAllBySubscriptionNext operation. */ -export type SubscriptionFeatureRegistrationsListAllBySubscriptionNextResponse = SubscriptionFeatureRegistrationList; +export type SubscriptionFeatureRegistrationsListAllBySubscriptionNextResponse = + SubscriptionFeatureRegistrationList; /** Optional parameters. */ export interface FeatureClientOptionalParams diff --git a/sdk/features/arm-features/src/models/mappers.ts b/sdk/features/arm-features/src/models/mappers.ts index 3c1185f9501a1..d94745c231832 100644 --- a/sdk/features/arm-features/src/models/mappers.ts +++ b/sdk/features/arm-features/src/models/mappers.ts @@ -20,19 +20,19 @@ export const OperationListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Operation" - } - } - } + className: "Operation", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const Operation: coreClient.CompositeMapper = { @@ -43,18 +43,18 @@ export const Operation: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, display: { serializedName: "display", type: { name: "Composite", - className: "OperationDisplay" - } - } - } - } + className: "OperationDisplay", + }, + }, + }, + }, }; export const OperationDisplay: coreClient.CompositeMapper = { @@ -65,23 +65,23 @@ export const OperationDisplay: coreClient.CompositeMapper = { provider: { serializedName: "provider", type: { - name: "String" - } + name: "String", + }, }, resource: { serializedName: "resource", type: { - name: "String" - } + name: "String", + }, }, operation: { serializedName: "operation", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ErrorResponse: coreClient.CompositeMapper = { @@ -93,11 +93,11 @@ export const ErrorResponse: coreClient.CompositeMapper = { serializedName: "error", type: { name: "Composite", - className: "ErrorDefinition" - } - } - } - } + className: "ErrorDefinition", + }, + }, + }, + }, }; export const ErrorDefinition: coreClient.CompositeMapper = { @@ -109,15 +109,15 @@ export const ErrorDefinition: coreClient.CompositeMapper = { serializedName: "code", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, message: { serializedName: "message", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, details: { serializedName: "details", @@ -126,13 +126,13 @@ export const ErrorDefinition: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ErrorDefinition" - } - } - } - } - } - } + className: "ErrorDefinition", + }, + }, + }, + }, + }, + }, }; export const FeatureOperationsListResult: coreClient.CompositeMapper = { @@ -147,19 +147,19 @@ export const FeatureOperationsListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "FeatureResult" - } - } - } + className: "FeatureResult", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const FeatureResult: coreClient.CompositeMapper = { @@ -170,30 +170,30 @@ export const FeatureResult: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, properties: { serializedName: "properties", type: { name: "Composite", - className: "FeatureProperties" - } + className: "FeatureProperties", + }, }, id: { serializedName: "id", type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const FeatureProperties: coreClient.CompositeMapper = { @@ -204,123 +204,127 @@ export const FeatureProperties: coreClient.CompositeMapper = { state: { serializedName: "state", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const SubscriptionFeatureRegistrationProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SubscriptionFeatureRegistrationProperties", - modelProperties: { - tenantId: { - serializedName: "tenantId", - readOnly: true, - type: { - name: "String" - } - }, - subscriptionId: { - serializedName: "subscriptionId", - readOnly: true, - type: { - name: "String" - } - }, - featureName: { - serializedName: "featureName", - readOnly: true, - type: { - name: "String" - } - }, - displayName: { - serializedName: "displayName", - readOnly: true, - type: { - name: "String" - } - }, - providerNamespace: { - serializedName: "providerNamespace", - readOnly: true, - type: { - name: "String" - } - }, - state: { - serializedName: "state", - type: { - name: "String" - } - }, - authorizationProfile: { - serializedName: "authorizationProfile", - type: { - name: "Composite", - className: "AuthorizationProfile" - } - }, - metadata: { - serializedName: "metadata", - type: { - name: "Dictionary", - value: { type: { name: "String" }, constraints: { MaxLength: 1000 } } - } - }, - releaseDate: { - serializedName: "releaseDate", - readOnly: true, - type: { - name: "DateTime" - } - }, - registrationDate: { - serializedName: "registrationDate", - readOnly: true, - type: { - name: "DateTime" - } - }, - documentationLink: { - constraints: { - MaxLength: 1000 +export const SubscriptionFeatureRegistrationProperties: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "SubscriptionFeatureRegistrationProperties", + modelProperties: { + tenantId: { + serializedName: "tenantId", + readOnly: true, + type: { + name: "String", + }, }, - serializedName: "documentationLink", - readOnly: true, - type: { - name: "String" - } - }, - approvalType: { - serializedName: "approvalType", - readOnly: true, - type: { - name: "String" - } - }, - shouldFeatureDisplayInPortal: { - defaultValue: false, - serializedName: "shouldFeatureDisplayInPortal", - type: { - name: "Boolean" - } - }, - description: { - constraints: { - MaxLength: 1000 + subscriptionId: { + serializedName: "subscriptionId", + readOnly: true, + type: { + name: "String", + }, }, - serializedName: "description", - type: { - name: "String" - } - } - } - } -}; + featureName: { + serializedName: "featureName", + readOnly: true, + type: { + name: "String", + }, + }, + displayName: { + serializedName: "displayName", + readOnly: true, + type: { + name: "String", + }, + }, + providerNamespace: { + serializedName: "providerNamespace", + readOnly: true, + type: { + name: "String", + }, + }, + state: { + serializedName: "state", + type: { + name: "String", + }, + }, + authorizationProfile: { + serializedName: "authorizationProfile", + type: { + name: "Composite", + className: "AuthorizationProfile", + }, + }, + metadata: { + serializedName: "metadata", + type: { + name: "Dictionary", + value: { + type: { name: "String" }, + constraints: { MaxLength: 1000 }, + }, + }, + }, + releaseDate: { + serializedName: "releaseDate", + readOnly: true, + type: { + name: "DateTime", + }, + }, + registrationDate: { + serializedName: "registrationDate", + readOnly: true, + type: { + name: "DateTime", + }, + }, + documentationLink: { + constraints: { + MaxLength: 1000, + }, + serializedName: "documentationLink", + readOnly: true, + type: { + name: "String", + }, + }, + approvalType: { + serializedName: "approvalType", + readOnly: true, + type: { + name: "String", + }, + }, + shouldFeatureDisplayInPortal: { + defaultValue: false, + serializedName: "shouldFeatureDisplayInPortal", + type: { + name: "Boolean", + }, + }, + description: { + constraints: { + MaxLength: 1000, + }, + serializedName: "description", + type: { + name: "String", + }, + }, + }, + }, + }; export const AuthorizationProfile: coreClient.CompositeMapper = { type: { @@ -331,39 +335,39 @@ export const AuthorizationProfile: coreClient.CompositeMapper = { serializedName: "requestedTime", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, requester: { serializedName: "requester", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, requesterObjectId: { serializedName: "requesterObjectId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, approvedTime: { serializedName: "approvedTime", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, approver: { serializedName: "approver", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ProxyResource: coreClient.CompositeMapper = { @@ -375,25 +379,25 @@ export const ProxyResource: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SubscriptionFeatureRegistrationList: coreClient.CompositeMapper = { @@ -404,8 +408,8 @@ export const SubscriptionFeatureRegistrationList: coreClient.CompositeMapper = { nextLink: { serializedName: "nextLink", type: { - name: "String" - } + name: "String", + }, }, value: { serializedName: "value", @@ -414,13 +418,13 @@ export const SubscriptionFeatureRegistrationList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SubscriptionFeatureRegistration" - } - } - } - } - } - } + className: "SubscriptionFeatureRegistration", + }, + }, + }, + }, + }, + }, }; export const SubscriptionFeatureRegistration: coreClient.CompositeMapper = { @@ -433,9 +437,9 @@ export const SubscriptionFeatureRegistration: coreClient.CompositeMapper = { serializedName: "properties", type: { name: "Composite", - className: "SubscriptionFeatureRegistrationProperties" - } - } - } - } + className: "SubscriptionFeatureRegistrationProperties", + }, + }, + }, + }, }; diff --git a/sdk/features/arm-features/src/models/parameters.ts b/sdk/features/arm-features/src/models/parameters.ts index 66885213a589c..ca6e7083189ab 100644 --- a/sdk/features/arm-features/src/models/parameters.ts +++ b/sdk/features/arm-features/src/models/parameters.ts @@ -9,7 +9,7 @@ import { OperationParameter, OperationURLParameter, - OperationQueryParameter + OperationQueryParameter, } from "@azure/core-client"; import { SubscriptionFeatureRegistration as SubscriptionFeatureRegistrationMapper } from "../models/mappers"; @@ -20,9 +20,9 @@ export const accept: OperationParameter = { isConstant: true, serializedName: "Accept", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const $host: OperationURLParameter = { @@ -31,10 +31,10 @@ export const $host: OperationURLParameter = { serializedName: "$host", required: true, type: { - name: "String" - } + name: "String", + }, }, - skipEncoding: true + skipEncoding: true, }; export const apiVersion: OperationQueryParameter = { @@ -44,9 +44,9 @@ export const apiVersion: OperationQueryParameter = { isConstant: true, serializedName: "api-version", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const nextLink: OperationURLParameter = { @@ -55,10 +55,10 @@ export const nextLink: OperationURLParameter = { serializedName: "nextLink", required: true, type: { - name: "String" - } + name: "String", + }, }, - skipEncoding: true + skipEncoding: true, }; export const subscriptionId: OperationURLParameter = { @@ -67,9 +67,9 @@ export const subscriptionId: OperationURLParameter = { serializedName: "subscriptionId", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const resourceProviderNamespace: OperationURLParameter = { @@ -78,9 +78,9 @@ export const resourceProviderNamespace: OperationURLParameter = { serializedName: "resourceProviderNamespace", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const featureName: OperationURLParameter = { @@ -89,9 +89,9 @@ export const featureName: OperationURLParameter = { serializedName: "featureName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const accept1: OperationParameter = { @@ -101,9 +101,9 @@ export const accept1: OperationParameter = { isConstant: true, serializedName: "Accept", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const providerNamespace: OperationURLParameter = { @@ -112,9 +112,9 @@ export const providerNamespace: OperationURLParameter = { serializedName: "providerNamespace", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const contentType: OperationParameter = { @@ -124,12 +124,12 @@ export const contentType: OperationParameter = { isConstant: true, serializedName: "Content-Type", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const subscriptionFeatureRegistrationType: OperationParameter = { parameterPath: ["options", "subscriptionFeatureRegistrationType"], - mapper: SubscriptionFeatureRegistrationMapper + mapper: SubscriptionFeatureRegistrationMapper, }; diff --git a/sdk/features/arm-features/src/operations/features.ts b/sdk/features/arm-features/src/operations/features.ts index 10868cc7160d4..4b7c42a472c3f 100644 --- a/sdk/features/arm-features/src/operations/features.ts +++ b/sdk/features/arm-features/src/operations/features.ts @@ -28,7 +28,7 @@ import { FeaturesUnregisterOptionalParams, FeaturesUnregisterResponse, FeaturesListAllNextResponse, - FeaturesListNextResponse + FeaturesListNextResponse, } from "../models"; /// @@ -49,7 +49,7 @@ export class FeaturesImpl implements Features { * @param options The options parameters. */ public listAll( - options?: FeaturesListAllOptionalParams + options?: FeaturesListAllOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listAllPagingAll(options); return { @@ -64,13 +64,13 @@ export class FeaturesImpl implements Features { throw new Error("maxPageSize is not supported by this operation."); } return this.listAllPagingPage(options, settings); - } + }, }; } private async *listAllPagingPage( options?: FeaturesListAllOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: FeaturesListAllResponse; let continuationToken = settings?.continuationToken; @@ -91,7 +91,7 @@ export class FeaturesImpl implements Features { } private async *listAllPagingAll( - options?: FeaturesListAllOptionalParams + options?: FeaturesListAllOptionalParams, ): AsyncIterableIterator { for await (const page of this.listAllPagingPage(options)) { yield* page; @@ -106,7 +106,7 @@ export class FeaturesImpl implements Features { */ public list( resourceProviderNamespace: string, - options?: FeaturesListOptionalParams + options?: FeaturesListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(resourceProviderNamespace, options); return { @@ -123,16 +123,16 @@ export class FeaturesImpl implements Features { return this.listPagingPage( resourceProviderNamespace, options, - settings + settings, ); - } + }, }; } private async *listPagingPage( resourceProviderNamespace: string, options?: FeaturesListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: FeaturesListResponse; let continuationToken = settings?.continuationToken; @@ -147,7 +147,7 @@ export class FeaturesImpl implements Features { result = await this._listNext( resourceProviderNamespace, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -158,11 +158,11 @@ export class FeaturesImpl implements Features { private async *listPagingAll( resourceProviderNamespace: string, - options?: FeaturesListOptionalParams + options?: FeaturesListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceProviderNamespace, - options + options, )) { yield* page; } @@ -173,7 +173,7 @@ export class FeaturesImpl implements Features { * @param options The options parameters. */ private _listAll( - options?: FeaturesListAllOptionalParams + options?: FeaturesListAllOptionalParams, ): Promise { return this.client.sendOperationRequest({ options }, listAllOperationSpec); } @@ -186,11 +186,11 @@ export class FeaturesImpl implements Features { */ private _list( resourceProviderNamespace: string, - options?: FeaturesListOptionalParams + options?: FeaturesListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceProviderNamespace, options }, - listOperationSpec + listOperationSpec, ); } @@ -203,11 +203,11 @@ export class FeaturesImpl implements Features { get( resourceProviderNamespace: string, featureName: string, - options?: FeaturesGetOptionalParams + options?: FeaturesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceProviderNamespace, featureName, options }, - getOperationSpec + getOperationSpec, ); } @@ -220,11 +220,11 @@ export class FeaturesImpl implements Features { register( resourceProviderNamespace: string, featureName: string, - options?: FeaturesRegisterOptionalParams + options?: FeaturesRegisterOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceProviderNamespace, featureName, options }, - registerOperationSpec + registerOperationSpec, ); } @@ -237,11 +237,11 @@ export class FeaturesImpl implements Features { unregister( resourceProviderNamespace: string, featureName: string, - options?: FeaturesUnregisterOptionalParams + options?: FeaturesUnregisterOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceProviderNamespace, featureName, options }, - unregisterOperationSpec + unregisterOperationSpec, ); } @@ -252,11 +252,11 @@ export class FeaturesImpl implements Features { */ private _listAllNext( nextLink: string, - options?: FeaturesListAllNextOptionalParams + options?: FeaturesListAllNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listAllNextOperationSpec + listAllNextOperationSpec, ); } @@ -269,11 +269,11 @@ export class FeaturesImpl implements Features { private _listNext( resourceProviderNamespace: string, nextLink: string, - options?: FeaturesListNextOptionalParams + options?: FeaturesListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceProviderNamespace, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -285,142 +285,136 @@ const listAllOperationSpec: coreClient.OperationSpec = { httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.FeatureOperationsListResult + bodyMapper: Mappers.FeatureOperationsListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Features/providers/{resourceProviderNamespace}/features", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Features/providers/{resourceProviderNamespace}/features", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.FeatureOperationsListResult + bodyMapper: Mappers.FeatureOperationsListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceProviderNamespace + Parameters.resourceProviderNamespace, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Features/providers/{resourceProviderNamespace}/features/{featureName}", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Features/providers/{resourceProviderNamespace}/features/{featureName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.FeatureResult + bodyMapper: Mappers.FeatureResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceProviderNamespace, - Parameters.featureName + Parameters.featureName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const registerOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Features/providers/{resourceProviderNamespace}/features/{featureName}/register", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Features/providers/{resourceProviderNamespace}/features/{featureName}/register", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.FeatureResult + bodyMapper: Mappers.FeatureResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceProviderNamespace, - Parameters.featureName + Parameters.featureName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const unregisterOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Features/providers/{resourceProviderNamespace}/features/{featureName}/unregister", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Features/providers/{resourceProviderNamespace}/features/{featureName}/unregister", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.FeatureResult + bodyMapper: Mappers.FeatureResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceProviderNamespace, - Parameters.featureName + Parameters.featureName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listAllNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.FeatureOperationsListResult + bodyMapper: Mappers.FeatureOperationsListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.nextLink, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.FeatureOperationsListResult + bodyMapper: Mappers.FeatureOperationsListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.nextLink, Parameters.subscriptionId, - Parameters.resourceProviderNamespace + Parameters.resourceProviderNamespace, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/features/arm-features/src/operations/subscriptionFeatureRegistrations.ts b/sdk/features/arm-features/src/operations/subscriptionFeatureRegistrations.ts index 134cc5bdc4d71..b759ac7b5f448 100644 --- a/sdk/features/arm-features/src/operations/subscriptionFeatureRegistrations.ts +++ b/sdk/features/arm-features/src/operations/subscriptionFeatureRegistrations.ts @@ -27,13 +27,14 @@ import { SubscriptionFeatureRegistrationsCreateOrUpdateResponse, SubscriptionFeatureRegistrationsDeleteOptionalParams, SubscriptionFeatureRegistrationsListBySubscriptionNextResponse, - SubscriptionFeatureRegistrationsListAllBySubscriptionNextResponse + SubscriptionFeatureRegistrationsListAllBySubscriptionNextResponse, } from "../models"; /// /** Class containing SubscriptionFeatureRegistrations operations. */ export class SubscriptionFeatureRegistrationsImpl - implements SubscriptionFeatureRegistrations { + implements SubscriptionFeatureRegistrations +{ private readonly client: FeatureClient; /** @@ -51,7 +52,7 @@ export class SubscriptionFeatureRegistrationsImpl */ public listBySubscription( providerNamespace: string, - options?: SubscriptionFeatureRegistrationsListBySubscriptionOptionalParams + options?: SubscriptionFeatureRegistrationsListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listBySubscriptionPagingAll(providerNamespace, options); return { @@ -68,16 +69,16 @@ export class SubscriptionFeatureRegistrationsImpl return this.listBySubscriptionPagingPage( providerNamespace, options, - settings + settings, ); - } + }, }; } private async *listBySubscriptionPagingPage( providerNamespace: string, options?: SubscriptionFeatureRegistrationsListBySubscriptionOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: SubscriptionFeatureRegistrationsListBySubscriptionResponse; let continuationToken = settings?.continuationToken; @@ -92,7 +93,7 @@ export class SubscriptionFeatureRegistrationsImpl result = await this._listBySubscriptionNext( providerNamespace, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -103,11 +104,11 @@ export class SubscriptionFeatureRegistrationsImpl private async *listBySubscriptionPagingAll( providerNamespace: string, - options?: SubscriptionFeatureRegistrationsListBySubscriptionOptionalParams + options?: SubscriptionFeatureRegistrationsListBySubscriptionOptionalParams, ): AsyncIterableIterator { for await (const page of this.listBySubscriptionPagingPage( providerNamespace, - options + options, )) { yield* page; } @@ -118,7 +119,7 @@ export class SubscriptionFeatureRegistrationsImpl * @param options The options parameters. */ public listAllBySubscription( - options?: SubscriptionFeatureRegistrationsListAllBySubscriptionOptionalParams + options?: SubscriptionFeatureRegistrationsListAllBySubscriptionOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listAllBySubscriptionPagingAll(options); return { @@ -133,13 +134,13 @@ export class SubscriptionFeatureRegistrationsImpl throw new Error("maxPageSize is not supported by this operation."); } return this.listAllBySubscriptionPagingPage(options, settings); - } + }, }; } private async *listAllBySubscriptionPagingPage( options?: SubscriptionFeatureRegistrationsListAllBySubscriptionOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: SubscriptionFeatureRegistrationsListAllBySubscriptionResponse; let continuationToken = settings?.continuationToken; @@ -153,7 +154,7 @@ export class SubscriptionFeatureRegistrationsImpl while (continuationToken) { result = await this._listAllBySubscriptionNext( continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -163,7 +164,7 @@ export class SubscriptionFeatureRegistrationsImpl } private async *listAllBySubscriptionPagingAll( - options?: SubscriptionFeatureRegistrationsListAllBySubscriptionOptionalParams + options?: SubscriptionFeatureRegistrationsListAllBySubscriptionOptionalParams, ): AsyncIterableIterator { for await (const page of this.listAllBySubscriptionPagingPage(options)) { yield* page; @@ -179,11 +180,11 @@ export class SubscriptionFeatureRegistrationsImpl get( providerNamespace: string, featureName: string, - options?: SubscriptionFeatureRegistrationsGetOptionalParams + options?: SubscriptionFeatureRegistrationsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { providerNamespace, featureName, options }, - getOperationSpec + getOperationSpec, ); } @@ -196,11 +197,11 @@ export class SubscriptionFeatureRegistrationsImpl createOrUpdate( providerNamespace: string, featureName: string, - options?: SubscriptionFeatureRegistrationsCreateOrUpdateOptionalParams + options?: SubscriptionFeatureRegistrationsCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { providerNamespace, featureName, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -213,11 +214,11 @@ export class SubscriptionFeatureRegistrationsImpl delete( providerNamespace: string, featureName: string, - options?: SubscriptionFeatureRegistrationsDeleteOptionalParams + options?: SubscriptionFeatureRegistrationsDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { providerNamespace, featureName, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -228,11 +229,11 @@ export class SubscriptionFeatureRegistrationsImpl */ private _listBySubscription( providerNamespace: string, - options?: SubscriptionFeatureRegistrationsListBySubscriptionOptionalParams + options?: SubscriptionFeatureRegistrationsListBySubscriptionOptionalParams, ): Promise { return this.client.sendOperationRequest( { providerNamespace, options }, - listBySubscriptionOperationSpec + listBySubscriptionOperationSpec, ); } @@ -241,11 +242,11 @@ export class SubscriptionFeatureRegistrationsImpl * @param options The options parameters. */ private _listAllBySubscription( - options?: SubscriptionFeatureRegistrationsListAllBySubscriptionOptionalParams + options?: SubscriptionFeatureRegistrationsListAllBySubscriptionOptionalParams, ): Promise { return this.client.sendOperationRequest( { options }, - listAllBySubscriptionOperationSpec + listAllBySubscriptionOperationSpec, ); } @@ -258,11 +259,11 @@ export class SubscriptionFeatureRegistrationsImpl private _listBySubscriptionNext( providerNamespace: string, nextLink: string, - options?: SubscriptionFeatureRegistrationsListBySubscriptionNextOptionalParams + options?: SubscriptionFeatureRegistrationsListBySubscriptionNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { providerNamespace, nextLink, options }, - listBySubscriptionNextOperationSpec + listBySubscriptionNextOperationSpec, ); } @@ -273,13 +274,11 @@ export class SubscriptionFeatureRegistrationsImpl */ private _listAllBySubscriptionNext( nextLink: string, - options?: SubscriptionFeatureRegistrationsListAllBySubscriptionNextOptionalParams - ): Promise< - SubscriptionFeatureRegistrationsListAllBySubscriptionNextResponse - > { + options?: SubscriptionFeatureRegistrationsListAllBySubscriptionNextOptionalParams, + ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listAllBySubscriptionNextOperationSpec + listAllBySubscriptionNextOperationSpec, ); } } @@ -287,38 +286,36 @@ export class SubscriptionFeatureRegistrationsImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Features/featureProviders/{providerNamespace}/subscriptionFeatureRegistrations/{featureName}", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Features/featureProviders/{providerNamespace}/subscriptionFeatureRegistrations/{featureName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SubscriptionFeatureRegistration + bodyMapper: Mappers.SubscriptionFeatureRegistration, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.featureName, - Parameters.providerNamespace + Parameters.providerNamespace, ], headerParameters: [Parameters.accept1], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Features/featureProviders/{providerNamespace}/subscriptionFeatureRegistrations/{featureName}", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Features/featureProviders/{providerNamespace}/subscriptionFeatureRegistrations/{featureName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.SubscriptionFeatureRegistration + bodyMapper: Mappers.SubscriptionFeatureRegistration, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.subscriptionFeatureRegistrationType, queryParameters: [Parameters.apiVersion], @@ -326,109 +323,104 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.featureName, - Parameters.providerNamespace + Parameters.providerNamespace, ], headerParameters: [Parameters.accept1, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Features/featureProviders/{providerNamespace}/subscriptionFeatureRegistrations/{featureName}", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Features/featureProviders/{providerNamespace}/subscriptionFeatureRegistrations/{featureName}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.featureName, - Parameters.providerNamespace + Parameters.providerNamespace, ], headerParameters: [Parameters.accept1], - serializer + serializer, }; const listBySubscriptionOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Features/featureProviders/{providerNamespace}/subscriptionFeatureRegistrations", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Features/featureProviders/{providerNamespace}/subscriptionFeatureRegistrations", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SubscriptionFeatureRegistrationList + bodyMapper: Mappers.SubscriptionFeatureRegistrationList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.providerNamespace + Parameters.providerNamespace, ], headerParameters: [Parameters.accept1], - serializer + serializer, }; const listAllBySubscriptionOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Features/subscriptionFeatureRegistrations", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Features/subscriptionFeatureRegistrations", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SubscriptionFeatureRegistrationList + bodyMapper: Mappers.SubscriptionFeatureRegistrationList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept1], - serializer + serializer, }; const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SubscriptionFeatureRegistrationList + bodyMapper: Mappers.SubscriptionFeatureRegistrationList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.nextLink, Parameters.subscriptionId, - Parameters.providerNamespace + Parameters.providerNamespace, ], headerParameters: [Parameters.accept1], - serializer + serializer, }; const listAllBySubscriptionNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SubscriptionFeatureRegistrationList + bodyMapper: Mappers.SubscriptionFeatureRegistrationList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.nextLink, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept1], - serializer + serializer, }; diff --git a/sdk/features/arm-features/src/operationsInterfaces/features.ts b/sdk/features/arm-features/src/operationsInterfaces/features.ts index 7a3cc838021e0..178c08aa76b2e 100644 --- a/sdk/features/arm-features/src/operationsInterfaces/features.ts +++ b/sdk/features/arm-features/src/operationsInterfaces/features.ts @@ -16,7 +16,7 @@ import { FeaturesRegisterOptionalParams, FeaturesRegisterResponse, FeaturesUnregisterOptionalParams, - FeaturesUnregisterResponse + FeaturesUnregisterResponse, } from "../models"; /// @@ -27,7 +27,7 @@ export interface Features { * @param options The options parameters. */ listAll( - options?: FeaturesListAllOptionalParams + options?: FeaturesListAllOptionalParams, ): PagedAsyncIterableIterator; /** * Gets all the preview features in a provider namespace that are available through AFEC for the @@ -37,7 +37,7 @@ export interface Features { */ list( resourceProviderNamespace: string, - options?: FeaturesListOptionalParams + options?: FeaturesListOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the preview feature with the specified name. @@ -48,7 +48,7 @@ export interface Features { get( resourceProviderNamespace: string, featureName: string, - options?: FeaturesGetOptionalParams + options?: FeaturesGetOptionalParams, ): Promise; /** * Registers the preview feature for the subscription. @@ -59,7 +59,7 @@ export interface Features { register( resourceProviderNamespace: string, featureName: string, - options?: FeaturesRegisterOptionalParams + options?: FeaturesRegisterOptionalParams, ): Promise; /** * Unregisters the preview feature for the subscription. @@ -70,6 +70,6 @@ export interface Features { unregister( resourceProviderNamespace: string, featureName: string, - options?: FeaturesUnregisterOptionalParams + options?: FeaturesUnregisterOptionalParams, ): Promise; } diff --git a/sdk/features/arm-features/src/operationsInterfaces/subscriptionFeatureRegistrations.ts b/sdk/features/arm-features/src/operationsInterfaces/subscriptionFeatureRegistrations.ts index ec8a9085f9234..456a5e0a4b5d8 100644 --- a/sdk/features/arm-features/src/operationsInterfaces/subscriptionFeatureRegistrations.ts +++ b/sdk/features/arm-features/src/operationsInterfaces/subscriptionFeatureRegistrations.ts @@ -15,7 +15,7 @@ import { SubscriptionFeatureRegistrationsGetResponse, SubscriptionFeatureRegistrationsCreateOrUpdateOptionalParams, SubscriptionFeatureRegistrationsCreateOrUpdateResponse, - SubscriptionFeatureRegistrationsDeleteOptionalParams + SubscriptionFeatureRegistrationsDeleteOptionalParams, } from "../models"; /// @@ -28,14 +28,14 @@ export interface SubscriptionFeatureRegistrations { */ listBySubscription( providerNamespace: string, - options?: SubscriptionFeatureRegistrationsListBySubscriptionOptionalParams + options?: SubscriptionFeatureRegistrationsListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator; /** * Returns subscription feature registrations for given subscription. * @param options The options parameters. */ listAllBySubscription( - options?: SubscriptionFeatureRegistrationsListAllBySubscriptionOptionalParams + options?: SubscriptionFeatureRegistrationsListAllBySubscriptionOptionalParams, ): PagedAsyncIterableIterator; /** * Returns a feature registration @@ -46,7 +46,7 @@ export interface SubscriptionFeatureRegistrations { get( providerNamespace: string, featureName: string, - options?: SubscriptionFeatureRegistrationsGetOptionalParams + options?: SubscriptionFeatureRegistrationsGetOptionalParams, ): Promise; /** * Create or update a feature registration. @@ -57,7 +57,7 @@ export interface SubscriptionFeatureRegistrations { createOrUpdate( providerNamespace: string, featureName: string, - options?: SubscriptionFeatureRegistrationsCreateOrUpdateOptionalParams + options?: SubscriptionFeatureRegistrationsCreateOrUpdateOptionalParams, ): Promise; /** * Deletes a feature registration @@ -68,6 +68,6 @@ export interface SubscriptionFeatureRegistrations { delete( providerNamespace: string, featureName: string, - options?: SubscriptionFeatureRegistrationsDeleteOptionalParams + options?: SubscriptionFeatureRegistrationsDeleteOptionalParams, ): Promise; } diff --git a/sdk/features/arm-features/src/pagingHelper.ts b/sdk/features/arm-features/src/pagingHelper.ts index d85fc13bce1ed..205cccc265927 100644 --- a/sdk/features/arm-features/src/pagingHelper.ts +++ b/sdk/features/arm-features/src/pagingHelper.ts @@ -13,11 +13,11 @@ export interface PageInfo { const pageMap = new WeakMap(); /** - * Given a result page from a pageable operation, returns a - * continuation token that can be used to begin paging from + * Given the last `.value` produced by the `byPage` iterator, + * returns a continuation token that can be used to begin paging from * that point later. - * @param page A result object from calling .byPage() on a paged operation. - * @returns The continuation token that can be passed into byPage(). + * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator. + * @returns The continuation token that can be passed into byPage() during future calls. */ export function getContinuationToken(page: unknown): string | undefined { if (typeof page !== "object" || page === null) { @@ -28,7 +28,7 @@ export function getContinuationToken(page: unknown): string | undefined { export function setContinuationToken( page: unknown, - continuationToken: string | undefined + continuationToken: string | undefined, ): void { if (typeof page !== "object" || page === null || !continuationToken) { return; diff --git a/sdk/features/arm-features/test/sampleTest.ts b/sdk/features/arm-features/test/sampleTest.ts new file mode 100644 index 0000000000000..d64be981b6946 --- /dev/null +++ b/sdk/features/arm-features/test/sampleTest.ts @@ -0,0 +1,43 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { + Recorder, + RecorderStartOptions, + env, +} from "@azure-tools/test-recorder"; +import { assert } from "chai"; +import { Context } from "mocha"; + +const replaceableVariables: Record = { + AZURE_CLIENT_ID: "azure_client_id", + AZURE_CLIENT_SECRET: "azure_client_secret", + AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888", + SUBSCRIPTION_ID: "azure_subscription_id", +}; + +const recorderOptions: RecorderStartOptions = { + envSetupForPlayback: replaceableVariables, +}; + +describe("My test", () => { + let recorder: Recorder; + + beforeEach(async function (this: Context) { + recorder = new Recorder(this.currentTest); + await recorder.start(recorderOptions); + }); + + afterEach(async function () { + await recorder.stop(); + }); + + it("sample test", async function () { + console.log("Hi, I'm a test!"); + }); +}); diff --git a/sdk/features/arm-features/tsconfig.json b/sdk/features/arm-features/tsconfig.json index 7acef300dd3d1..69cd824d326e2 100644 --- a/sdk/features/arm-features/tsconfig.json +++ b/sdk/features/arm-features/tsconfig.json @@ -15,17 +15,12 @@ ], "declaration": true, "outDir": "./dist-esm", - "importHelpers": true, - "paths": { - "@azure/arm-features": [ - "./src/index" - ] - } + "importHelpers": true }, "include": [ "./src/**/*.ts", "./test/**/*.ts", - "samples-dev/**/*.ts" + "./test/**/*.ts" ], "exclude": [ "node_modules" diff --git a/sdk/links/arm-links/CHANGELOG.md b/sdk/links/arm-links/CHANGELOG.md index f6cffaa5891fe..814010e632bf3 100644 --- a/sdk/links/arm-links/CHANGELOG.md +++ b/sdk/links/arm-links/CHANGELOG.md @@ -1,15 +1,12 @@ # Release History - -## 2.0.2 (2022-11-22) - -**Features** - --  Exposes `getContinuationToken` helper function to extract continuation token - -**Bugs Fixed** -  -- A series of small bug fixs relevant to authentication and apiVersion policy - + +## 3.0.0 (2024-05-22) + +**Breaking Changes** + + - Class ManagementLinkClient has a new signature + - Interface ResourceLinksListAtSubscriptionNextOptionalParams no longer has parameter filter + ## 2.0.1 (2022-04-18) **features** @@ -24,4 +21,4 @@ To understand the detail of the change, please refer to [Changelog](https://aka. To migrate the existing applications to the latest version, please refer to [Migration Guide](https://aka.ms/js-track2-migration-guide). -To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/js/mgmt/quickstart ). +To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/js/mgmt/quickstart). diff --git a/sdk/links/arm-links/LICENSE b/sdk/links/arm-links/LICENSE index 5d1d36e0af80c..7d59347409658 100644 --- a/sdk/links/arm-links/LICENSE +++ b/sdk/links/arm-links/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2022 Microsoft +Copyright (c) 2024 Microsoft Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/sdk/links/arm-links/_meta.json b/sdk/links/arm-links/_meta.json index 4b98b8203a1f2..6f675c5d5d6aa 100644 --- a/sdk/links/arm-links/_meta.json +++ b/sdk/links/arm-links/_meta.json @@ -1,8 +1,8 @@ { - "commit": "a42f1b58607091c4f255ead152a8ef323fa0b280", - "readme": "specification\\resources\\resource-manager\\readme.md", - "autorest_command": "autorest --version=3.8.4 --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\\resources\\resource-manager\\readme.md --use=@autorest/typescript@6.0.0-rc.3.20221108.1 --generate-sample=true", + "commit": "61db561c7b16295a74a39fa76e58967fb0c621d7", + "readme": "specification/resources/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=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/resources/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.4.2", - "use": "@autorest/typescript@6.0.0-rc.3.20221108.1" + "release_tool": "@azure-tools/js-sdk-release-tools@2.7.9", + "use": "@autorest/typescript@^6.0.12" } \ No newline at end of file diff --git a/sdk/links/arm-links/package.json b/sdk/links/arm-links/package.json index 5b8d1b333be64..50c95bc510997 100644 --- a/sdk/links/arm-links/package.json +++ b/sdk/links/arm-links/package.json @@ -3,15 +3,15 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for ManagementLinkClient.", - "version": "2.0.2", + "version": "3.0.0", "engines": { "node": ">=18.0.0" }, "dependencies": { "@azure/core-paging": "^1.2.0", - "@azure/core-client": "^1.6.1", - "@azure/core-auth": "^1.3.0", - "@azure/core-rest-pipeline": "^1.8.0", + "@azure/core-client": "^1.7.0", + "@azure/core-auth": "^1.6.0", + "@azure/core-rest-pipeline": "^1.14.0", "tslib": "^2.2.0" }, "keywords": [ @@ -30,21 +30,21 @@ "mkdirp": "^3.0.1", "typescript": "~5.4.5", "uglify-js": "^3.4.9", - "rimraf": "^5.0.5", + "rimraf": "^5.0.0", + "dotenv": "^16.0.0", + "@azure/dev-tool": "^1.0.0", "@azure/identity": "^4.0.1", "@azure-tools/test-recorder": "^3.0.0", "@azure-tools/test-credential": "^1.0.0", "mocha": "^10.0.0", "@types/mocha": "^10.0.0", + "tsx": "^4.7.1", "@types/chai": "^4.2.8", "chai": "^4.2.0", "cross-env": "^7.0.2", - "@azure/arm-resources": "^5.0.0", "@types/node": "^18.0.0", - "@azure/dev-tool": "^1.0.0", "ts-node": "^10.0.0" }, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/links/arm-links", "repository": { "type": "git", "url": "https://github.com/Azure/azure-sdk-for-js.git" @@ -76,7 +76,6 @@ "pack": "npm pack 2>&1", "extract-api": "dev-tool run extract-api", "lint": "echo skipped", - "audit": "echo skipped", "clean": "rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log", "build:node": "echo skipped", "build:browser": "echo skipped", @@ -104,5 +103,6 @@ } ] }, - "autoPublish": true -} + "autoPublish": true, + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/links/arm-links" +} \ No newline at end of file diff --git a/sdk/links/arm-links/review/arm-links.api.md b/sdk/links/arm-links/review/arm-links.api.md index 0bbbaff74a79d..a021f89e39ad1 100644 --- a/sdk/links/arm-links/review/arm-links.api.md +++ b/sdk/links/arm-links/review/arm-links.api.md @@ -16,6 +16,7 @@ export class ManagementLinkClient extends coreClient.ServiceClient { // (undocumented) $host: string; constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: ManagementLinkClientOptionalParams); + constructor(credentials: coreAuth.TokenCredential, options?: ManagementLinkClientOptionalParams); // (undocumented) apiVersion: string; // (undocumented) @@ -23,7 +24,7 @@ export class ManagementLinkClient extends coreClient.ServiceClient { // (undocumented) resourceLinks: ResourceLinks; // (undocumented) - subscriptionId: string; + subscriptionId?: string; } // @public @@ -141,7 +142,6 @@ export type ResourceLinksListAtSourceScopeResponse = ResourceLinkResult; // @public export interface ResourceLinksListAtSubscriptionNextOptionalParams extends coreClient.OperationOptions { - filter?: string; } // @public diff --git a/sdk/links/arm-links/src/managementLinkClient.ts b/sdk/links/arm-links/src/managementLinkClient.ts index ba642926cc865..f590a11f9014e 100644 --- a/sdk/links/arm-links/src/managementLinkClient.ts +++ b/sdk/links/arm-links/src/managementLinkClient.ts @@ -11,7 +11,7 @@ import * as coreRestPipeline from "@azure/core-rest-pipeline"; import { PipelineRequest, PipelineResponse, - SendRequest + SendRequest, } from "@azure/core-rest-pipeline"; import * as coreAuth from "@azure/core-auth"; import { OperationsImpl, ResourceLinksImpl } from "./operations"; @@ -21,7 +21,7 @@ import { ManagementLinkClientOptionalParams } from "./models"; export class ManagementLinkClient extends coreClient.ServiceClient { $host: string; apiVersion: string; - subscriptionId: string; + subscriptionId?: string; /** * Initializes a new instance of the ManagementLinkClient class. @@ -32,13 +32,27 @@ export class ManagementLinkClient extends coreClient.ServiceClient { constructor( credentials: coreAuth.TokenCredential, subscriptionId: string, - options?: ManagementLinkClientOptionalParams + options?: ManagementLinkClientOptionalParams, + ); + constructor( + credentials: coreAuth.TokenCredential, + options?: ManagementLinkClientOptionalParams, + ); + constructor( + credentials: coreAuth.TokenCredential, + subscriptionIdOrOptions?: ManagementLinkClientOptionalParams | string, + options?: ManagementLinkClientOptionalParams, ) { if (credentials === undefined) { throw new Error("'credentials' cannot be null"); } - if (subscriptionId === undefined) { - throw new Error("'subscriptionId' cannot be null"); + + let subscriptionId: string | undefined; + + if (typeof subscriptionIdOrOptions === "string") { + subscriptionId = subscriptionIdOrOptions; + } else if (typeof subscriptionIdOrOptions === "object") { + options = subscriptionIdOrOptions; } // Initializing default values for options @@ -47,10 +61,10 @@ export class ManagementLinkClient extends coreClient.ServiceClient { } const defaults: ManagementLinkClientOptionalParams = { requestContentType: "application/json; charset=utf-8", - credential: credentials + credential: credentials, }; - const packageDetails = `azsdk-js-arm-links/2.0.2`; + const packageDetails = `azsdk-js-arm-links/3.0.0`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -60,20 +74,21 @@ export class ManagementLinkClient extends coreClient.ServiceClient { ...defaults, ...options, userAgentOptions: { - userAgentPrefix + userAgentPrefix, }, endpoint: - options.endpoint ?? options.baseUri ?? "https://management.azure.com" + options.endpoint ?? options.baseUri ?? "https://management.azure.com", }; super(optionsWithDefaults); let bearerTokenAuthenticationPolicyFound: boolean = false; if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) { - const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies(); + const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = + options.pipeline.getOrderedPolicies(); bearerTokenAuthenticationPolicyFound = pipelinePolicies.some( (pipelinePolicy) => pipelinePolicy.name === - coreRestPipeline.bearerTokenAuthenticationPolicyName + coreRestPipeline.bearerTokenAuthenticationPolicyName, ); } if ( @@ -83,7 +98,7 @@ export class ManagementLinkClient extends coreClient.ServiceClient { !bearerTokenAuthenticationPolicyFound ) { this.pipeline.removePolicy({ - name: coreRestPipeline.bearerTokenAuthenticationPolicyName + name: coreRestPipeline.bearerTokenAuthenticationPolicyName, }); this.pipeline.addPolicy( coreRestPipeline.bearerTokenAuthenticationPolicy({ @@ -93,9 +108,9 @@ export class ManagementLinkClient extends coreClient.ServiceClient { `${optionsWithDefaults.endpoint}/.default`, challengeCallbacks: { authorizeRequestOnChallenge: - coreClient.authorizeRequestOnClaimChallenge - } - }) + coreClient.authorizeRequestOnClaimChallenge, + }, + }), ); } // Parameter assignments @@ -118,7 +133,7 @@ export class ManagementLinkClient extends coreClient.ServiceClient { name: "CustomApiVersionPolicy", async sendRequest( request: PipelineRequest, - next: SendRequest + next: SendRequest, ): Promise { const param = request.url.split("?"); if (param.length > 1) { @@ -132,7 +147,7 @@ export class ManagementLinkClient extends coreClient.ServiceClient { request.url = param[0] + "?" + newParams.join("&"); } return next(request); - } + }, }; this.pipeline.addPolicy(apiVersionPolicy); } diff --git a/sdk/links/arm-links/src/models/index.ts b/sdk/links/arm-links/src/models/index.ts index 1a730f96d3e2b..1788384b5787d 100644 --- a/sdk/links/arm-links/src/models/index.ts +++ b/sdk/links/arm-links/src/models/index.ts @@ -138,10 +138,7 @@ export type ResourceLinksListAtSourceScopeResponse = ResourceLinkResult; /** Optional parameters. */ export interface ResourceLinksListAtSubscriptionNextOptionalParams - extends coreClient.OperationOptions { - /** The filter to apply on the list resource links operation. The supported filter for list resource links is targetId. For example, $filter=targetId eq {value} */ - filter?: string; -} + extends coreClient.OperationOptions {} /** Contains response data for the listAtSubscriptionNext operation. */ export type ResourceLinksListAtSubscriptionNextResponse = ResourceLinkResult; diff --git a/sdk/links/arm-links/src/models/mappers.ts b/sdk/links/arm-links/src/models/mappers.ts index 6dc8e79de7891..36b97b7c05e83 100644 --- a/sdk/links/arm-links/src/models/mappers.ts +++ b/sdk/links/arm-links/src/models/mappers.ts @@ -20,19 +20,19 @@ export const OperationListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Operation" - } - } - } + className: "Operation", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const Operation: coreClient.CompositeMapper = { @@ -43,18 +43,18 @@ export const Operation: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, display: { serializedName: "display", type: { name: "Composite", - className: "OperationDisplay" - } - } - } - } + className: "OperationDisplay", + }, + }, + }, + }, }; export const OperationDisplay: coreClient.CompositeMapper = { @@ -65,29 +65,29 @@ export const OperationDisplay: coreClient.CompositeMapper = { provider: { serializedName: "provider", type: { - name: "String" - } + name: "String", + }, }, resource: { serializedName: "resource", type: { - name: "String" - } + name: "String", + }, }, operation: { serializedName: "operation", type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "description", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ResourceLink: coreClient.CompositeMapper = { @@ -99,33 +99,33 @@ export const ResourceLink: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { name: "Dictionary", - value: { type: { name: "any" } } - } + value: { type: { name: "any" } }, + }, }, properties: { serializedName: "properties", type: { name: "Composite", - className: "ResourceLinkProperties" - } - } - } - } + className: "ResourceLinkProperties", + }, + }, + }, + }, }; export const ResourceLinkProperties: coreClient.CompositeMapper = { @@ -137,24 +137,24 @@ export const ResourceLinkProperties: coreClient.CompositeMapper = { serializedName: "sourceId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, targetId: { serializedName: "targetId", required: true, type: { - name: "String" - } + name: "String", + }, }, notes: { serializedName: "notes", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ResourceLinkResult: coreClient.CompositeMapper = { @@ -170,20 +170,20 @@ export const ResourceLinkResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ResourceLink" - } - } - } + className: "ResourceLink", + }, + }, + }, }, nextLink: { serializedName: "nextLink", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ResourceLinkFilter: coreClient.CompositeMapper = { @@ -195,9 +195,9 @@ export const ResourceLinkFilter: coreClient.CompositeMapper = { serializedName: "targetId", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; diff --git a/sdk/links/arm-links/src/models/parameters.ts b/sdk/links/arm-links/src/models/parameters.ts index 20df95fc66e0f..44c21908922b5 100644 --- a/sdk/links/arm-links/src/models/parameters.ts +++ b/sdk/links/arm-links/src/models/parameters.ts @@ -9,7 +9,7 @@ import { OperationParameter, OperationURLParameter, - OperationQueryParameter + OperationQueryParameter, } from "@azure/core-client"; import { ResourceLink as ResourceLinkMapper } from "../models/mappers"; @@ -20,9 +20,9 @@ export const accept: OperationParameter = { isConstant: true, serializedName: "Accept", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const $host: OperationURLParameter = { @@ -31,10 +31,10 @@ export const $host: OperationURLParameter = { serializedName: "$host", required: true, type: { - name: "String" - } + name: "String", + }, }, - skipEncoding: true + skipEncoding: true, }; export const apiVersion: OperationQueryParameter = { @@ -44,9 +44,9 @@ export const apiVersion: OperationQueryParameter = { isConstant: true, serializedName: "api-version", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const nextLink: OperationURLParameter = { @@ -55,10 +55,10 @@ export const nextLink: OperationURLParameter = { serializedName: "nextLink", required: true, type: { - name: "String" - } + name: "String", + }, }, - skipEncoding: true + skipEncoding: true, }; export const linkId: OperationURLParameter = { @@ -67,10 +67,10 @@ export const linkId: OperationURLParameter = { serializedName: "linkId", required: true, type: { - name: "String" - } + name: "String", + }, }, - skipEncoding: true + skipEncoding: true, }; export const contentType: OperationParameter = { @@ -80,14 +80,14 @@ export const contentType: OperationParameter = { isConstant: true, serializedName: "Content-Type", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters: OperationParameter = { parameterPath: "parameters", - mapper: ResourceLinkMapper + mapper: ResourceLinkMapper, }; export const filter: OperationQueryParameter = { @@ -95,9 +95,9 @@ export const filter: OperationQueryParameter = { mapper: { serializedName: "$filter", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const subscriptionId: OperationURLParameter = { @@ -106,9 +106,9 @@ export const subscriptionId: OperationURLParameter = { serializedName: "subscriptionId", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const scope: OperationURLParameter = { @@ -117,10 +117,10 @@ export const scope: OperationURLParameter = { serializedName: "scope", required: true, type: { - name: "String" - } + name: "String", + }, }, - skipEncoding: true + skipEncoding: true, }; export const filter1: OperationQueryParameter = { @@ -130,7 +130,7 @@ export const filter1: OperationQueryParameter = { isConstant: true, serializedName: "$filter", type: { - name: "String" - } - } + name: "String", + }, + }, }; diff --git a/sdk/links/arm-links/src/operations/operations.ts b/sdk/links/arm-links/src/operations/operations.ts index 26969f581fd66..6598589debb11 100644 --- a/sdk/links/arm-links/src/operations/operations.ts +++ b/sdk/links/arm-links/src/operations/operations.ts @@ -18,7 +18,7 @@ import { OperationsListNextOptionalParams, OperationsListOptionalParams, OperationsListResponse, - OperationsListNextResponse + OperationsListNextResponse, } from "../models"; /// @@ -39,7 +39,7 @@ export class OperationsImpl implements Operations { * @param options The options parameters. */ public list( - options?: OperationsListOptionalParams + options?: OperationsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(options); return { @@ -54,13 +54,13 @@ export class OperationsImpl implements Operations { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(options, settings); - } + }, }; } private async *listPagingPage( options?: OperationsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: OperationsListResponse; let continuationToken = settings?.continuationToken; @@ -81,7 +81,7 @@ export class OperationsImpl implements Operations { } private async *listPagingAll( - options?: OperationsListOptionalParams + options?: OperationsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(options)) { yield* page; @@ -93,7 +93,7 @@ export class OperationsImpl implements Operations { * @param options The options parameters. */ private _list( - options?: OperationsListOptionalParams + options?: OperationsListOptionalParams, ): Promise { return this.client.sendOperationRequest({ options }, listOperationSpec); } @@ -105,11 +105,11 @@ export class OperationsImpl implements Operations { */ private _listNext( nextLink: string, - options?: OperationsListNextOptionalParams + options?: OperationsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -121,24 +121,23 @@ const listOperationSpec: coreClient.OperationSpec = { httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.OperationListResult - } + bodyMapper: Mappers.OperationListResult, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.OperationListResult - } + bodyMapper: Mappers.OperationListResult, + }, }, - queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.nextLink], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/links/arm-links/src/operations/resourceLinks.ts b/sdk/links/arm-links/src/operations/resourceLinks.ts index 4585f8d526f0e..431fe5f9303af 100644 --- a/sdk/links/arm-links/src/operations/resourceLinks.ts +++ b/sdk/links/arm-links/src/operations/resourceLinks.ts @@ -27,7 +27,7 @@ import { ResourceLinksGetOptionalParams, ResourceLinksGetResponse, ResourceLinksListAtSubscriptionNextResponse, - ResourceLinksListAtSourceScopeNextResponse + ResourceLinksListAtSourceScopeNextResponse, } from "../models"; /// @@ -48,7 +48,7 @@ export class ResourceLinksImpl implements ResourceLinks { * @param options The options parameters. */ public listAtSubscription( - options?: ResourceLinksListAtSubscriptionOptionalParams + options?: ResourceLinksListAtSubscriptionOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listAtSubscriptionPagingAll(options); return { @@ -63,13 +63,13 @@ export class ResourceLinksImpl implements ResourceLinks { throw new Error("maxPageSize is not supported by this operation."); } return this.listAtSubscriptionPagingPage(options, settings); - } + }, }; } private async *listAtSubscriptionPagingPage( options?: ResourceLinksListAtSubscriptionOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ResourceLinksListAtSubscriptionResponse; let continuationToken = settings?.continuationToken; @@ -90,7 +90,7 @@ export class ResourceLinksImpl implements ResourceLinks { } private async *listAtSubscriptionPagingAll( - options?: ResourceLinksListAtSubscriptionOptionalParams + options?: ResourceLinksListAtSubscriptionOptionalParams, ): AsyncIterableIterator { for await (const page of this.listAtSubscriptionPagingPage(options)) { yield* page; @@ -106,7 +106,7 @@ export class ResourceLinksImpl implements ResourceLinks { */ public listAtSourceScope( scope: string, - options?: ResourceLinksListAtSourceScopeOptionalParams + options?: ResourceLinksListAtSourceScopeOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listAtSourceScopePagingAll(scope, options); return { @@ -121,14 +121,14 @@ export class ResourceLinksImpl implements ResourceLinks { throw new Error("maxPageSize is not supported by this operation."); } return this.listAtSourceScopePagingPage(scope, options, settings); - } + }, }; } private async *listAtSourceScopePagingPage( scope: string, options?: ResourceLinksListAtSourceScopeOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ResourceLinksListAtSourceScopeResponse; let continuationToken = settings?.continuationToken; @@ -143,7 +143,7 @@ export class ResourceLinksImpl implements ResourceLinks { result = await this._listAtSourceScopeNext( scope, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -154,7 +154,7 @@ export class ResourceLinksImpl implements ResourceLinks { private async *listAtSourceScopePagingAll( scope: string, - options?: ResourceLinksListAtSourceScopeOptionalParams + options?: ResourceLinksListAtSourceScopeOptionalParams, ): AsyncIterableIterator { for await (const page of this.listAtSourceScopePagingPage(scope, options)) { yield* page; @@ -171,11 +171,11 @@ export class ResourceLinksImpl implements ResourceLinks { */ delete( linkId: string, - options?: ResourceLinksDeleteOptionalParams + options?: ResourceLinksDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { linkId, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -191,11 +191,11 @@ export class ResourceLinksImpl implements ResourceLinks { createOrUpdate( linkId: string, parameters: ResourceLink, - options?: ResourceLinksCreateOrUpdateOptionalParams + options?: ResourceLinksCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { linkId, parameters, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -207,11 +207,11 @@ export class ResourceLinksImpl implements ResourceLinks { */ get( linkId: string, - options?: ResourceLinksGetOptionalParams + options?: ResourceLinksGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { linkId, options }, - getOperationSpec + getOperationSpec, ); } @@ -220,11 +220,11 @@ export class ResourceLinksImpl implements ResourceLinks { * @param options The options parameters. */ private _listAtSubscription( - options?: ResourceLinksListAtSubscriptionOptionalParams + options?: ResourceLinksListAtSubscriptionOptionalParams, ): Promise { return this.client.sendOperationRequest( { options }, - listAtSubscriptionOperationSpec + listAtSubscriptionOperationSpec, ); } @@ -237,11 +237,11 @@ export class ResourceLinksImpl implements ResourceLinks { */ private _listAtSourceScope( scope: string, - options?: ResourceLinksListAtSourceScopeOptionalParams + options?: ResourceLinksListAtSourceScopeOptionalParams, ): Promise { return this.client.sendOperationRequest( { scope, options }, - listAtSourceScopeOperationSpec + listAtSourceScopeOperationSpec, ); } @@ -252,11 +252,11 @@ export class ResourceLinksImpl implements ResourceLinks { */ private _listAtSubscriptionNext( nextLink: string, - options?: ResourceLinksListAtSubscriptionNextOptionalParams + options?: ResourceLinksListAtSubscriptionNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listAtSubscriptionNextOperationSpec + listAtSubscriptionNextOperationSpec, ); } @@ -271,11 +271,11 @@ export class ResourceLinksImpl implements ResourceLinks { private _listAtSourceScopeNext( scope: string, nextLink: string, - options?: ResourceLinksListAtSourceScopeNextOptionalParams + options?: ResourceLinksListAtSourceScopeNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { scope, nextLink, options }, - listAtSourceScopeNextOperationSpec + listAtSourceScopeNextOperationSpec, ); } } @@ -288,92 +288,90 @@ const deleteOperationSpec: coreClient.OperationSpec = { responses: { 200: {}, 204: {} }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.linkId], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { path: "/{linkId}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.ResourceLink + bodyMapper: Mappers.ResourceLink, }, 201: { - bodyMapper: Mappers.ResourceLink - } + bodyMapper: Mappers.ResourceLink, + }, }, requestBody: Parameters.parameters, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.linkId], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { path: "/{linkId}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ResourceLink - } + bodyMapper: Mappers.ResourceLink, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.linkId], headerParameters: [Parameters.accept], - serializer + serializer, }; const listAtSubscriptionOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/providers/Microsoft.Resources/links", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ResourceLinkResult - } + bodyMapper: Mappers.ResourceLinkResult, + }, }, queryParameters: [Parameters.apiVersion, Parameters.filter], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const listAtSourceScopeOperationSpec: coreClient.OperationSpec = { path: "/{scope}/providers/Microsoft.Resources/links", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ResourceLinkResult - } + bodyMapper: Mappers.ResourceLinkResult, + }, }, queryParameters: [Parameters.apiVersion, Parameters.filter1], urlParameters: [Parameters.$host, Parameters.scope], headerParameters: [Parameters.accept], - serializer + serializer, }; const listAtSubscriptionNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ResourceLinkResult - } + bodyMapper: Mappers.ResourceLinkResult, + }, }, - queryParameters: [Parameters.apiVersion, Parameters.filter], urlParameters: [ Parameters.$host, Parameters.nextLink, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listAtSourceScopeNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ResourceLinkResult - } + bodyMapper: Mappers.ResourceLinkResult, + }, }, - queryParameters: [Parameters.apiVersion, Parameters.filter1], urlParameters: [Parameters.$host, Parameters.nextLink, Parameters.scope], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/links/arm-links/src/operationsInterfaces/operations.ts b/sdk/links/arm-links/src/operationsInterfaces/operations.ts index ac34435954c03..65cdf8035ab0b 100644 --- a/sdk/links/arm-links/src/operationsInterfaces/operations.ts +++ b/sdk/links/arm-links/src/operationsInterfaces/operations.ts @@ -17,6 +17,6 @@ export interface Operations { * @param options The options parameters. */ list( - options?: OperationsListOptionalParams + options?: OperationsListOptionalParams, ): PagedAsyncIterableIterator; } diff --git a/sdk/links/arm-links/src/operationsInterfaces/resourceLinks.ts b/sdk/links/arm-links/src/operationsInterfaces/resourceLinks.ts index cbfea5e366a8d..05080a73183b9 100644 --- a/sdk/links/arm-links/src/operationsInterfaces/resourceLinks.ts +++ b/sdk/links/arm-links/src/operationsInterfaces/resourceLinks.ts @@ -15,7 +15,7 @@ import { ResourceLinksCreateOrUpdateOptionalParams, ResourceLinksCreateOrUpdateResponse, ResourceLinksGetOptionalParams, - ResourceLinksGetResponse + ResourceLinksGetResponse, } from "../models"; /// @@ -26,7 +26,7 @@ export interface ResourceLinks { * @param options The options parameters. */ listAtSubscription( - options?: ResourceLinksListAtSubscriptionOptionalParams + options?: ResourceLinksListAtSubscriptionOptionalParams, ): PagedAsyncIterableIterator; /** * Gets a list of resource links at and below the specified source scope. @@ -37,7 +37,7 @@ export interface ResourceLinks { */ listAtSourceScope( scope: string, - options?: ResourceLinksListAtSourceScopeOptionalParams + options?: ResourceLinksListAtSourceScopeOptionalParams, ): PagedAsyncIterableIterator; /** * Deletes a resource link with the specified ID. @@ -49,7 +49,7 @@ export interface ResourceLinks { */ delete( linkId: string, - options?: ResourceLinksDeleteOptionalParams + options?: ResourceLinksDeleteOptionalParams, ): Promise; /** * Creates or updates a resource link between the specified resources. @@ -63,7 +63,7 @@ export interface ResourceLinks { createOrUpdate( linkId: string, parameters: ResourceLink, - options?: ResourceLinksCreateOrUpdateOptionalParams + options?: ResourceLinksCreateOrUpdateOptionalParams, ): Promise; /** * Gets a resource link with the specified ID. @@ -73,6 +73,6 @@ export interface ResourceLinks { */ get( linkId: string, - options?: ResourceLinksGetOptionalParams + options?: ResourceLinksGetOptionalParams, ): Promise; } diff --git a/sdk/links/arm-links/src/pagingHelper.ts b/sdk/links/arm-links/src/pagingHelper.ts index d85fc13bce1ed..205cccc265927 100644 --- a/sdk/links/arm-links/src/pagingHelper.ts +++ b/sdk/links/arm-links/src/pagingHelper.ts @@ -13,11 +13,11 @@ export interface PageInfo { const pageMap = new WeakMap(); /** - * Given a result page from a pageable operation, returns a - * continuation token that can be used to begin paging from + * Given the last `.value` produced by the `byPage` iterator, + * returns a continuation token that can be used to begin paging from * that point later. - * @param page A result object from calling .byPage() on a paged operation. - * @returns The continuation token that can be passed into byPage(). + * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator. + * @returns The continuation token that can be passed into byPage() during future calls. */ export function getContinuationToken(page: unknown): string | undefined { if (typeof page !== "object" || page === null) { @@ -28,7 +28,7 @@ export function getContinuationToken(page: unknown): string | undefined { export function setContinuationToken( page: unknown, - continuationToken: string | undefined + continuationToken: string | undefined, ): void { if (typeof page !== "object" || page === null || !continuationToken) { return; diff --git a/sdk/links/arm-links/test/sampleTest.ts b/sdk/links/arm-links/test/sampleTest.ts new file mode 100644 index 0000000000000..d64be981b6946 --- /dev/null +++ b/sdk/links/arm-links/test/sampleTest.ts @@ -0,0 +1,43 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { + Recorder, + RecorderStartOptions, + env, +} from "@azure-tools/test-recorder"; +import { assert } from "chai"; +import { Context } from "mocha"; + +const replaceableVariables: Record = { + AZURE_CLIENT_ID: "azure_client_id", + AZURE_CLIENT_SECRET: "azure_client_secret", + AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888", + SUBSCRIPTION_ID: "azure_subscription_id", +}; + +const recorderOptions: RecorderStartOptions = { + envSetupForPlayback: replaceableVariables, +}; + +describe("My test", () => { + let recorder: Recorder; + + beforeEach(async function (this: Context) { + recorder = new Recorder(this.currentTest); + await recorder.start(recorderOptions); + }); + + afterEach(async function () { + await recorder.stop(); + }); + + it("sample test", async function () { + console.log("Hi, I'm a test!"); + }); +}); diff --git a/sdk/links/arm-links/tsconfig.json b/sdk/links/arm-links/tsconfig.json index 433cb8777ded4..24ca8ae4e47e9 100644 --- a/sdk/links/arm-links/tsconfig.json +++ b/sdk/links/arm-links/tsconfig.json @@ -15,23 +15,15 @@ ], "declaration": true, "outDir": "./dist-esm", - "importHelpers": true, - "paths": { - "@azure/arm-links": [ - "./src/index" - ] - } + "importHelpers": true }, "include": [ "./src/**/*.ts", "./test/**/*.ts", - "samples-dev/**/*.ts", "./test/**/*.ts", - "samples-dev/**/*.ts", "./test/**/*.ts", - "samples-dev/**/*.ts", "./test/**/*.ts", - "samples-dev/**/*.ts" + "./test/**/*.ts" ], "exclude": [ "node_modules" diff --git a/sdk/locks/arm-locks/CHANGELOG.md b/sdk/locks/arm-locks/CHANGELOG.md index 835304c0dafec..aa8a6c4dce5da 100644 --- a/sdk/locks/arm-locks/CHANGELOG.md +++ b/sdk/locks/arm-locks/CHANGELOG.md @@ -1,15 +1,16 @@ # Release History + +## 3.0.0 (2024-05-22) + +**Breaking Changes** -## 2.1.1 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed - -### Other Changes - + - Class ManagementLockClient has a new signature + - Interface ManagementLocksListAtResourceGroupLevelNextOptionalParams no longer has parameter filter + - Interface ManagementLocksListAtResourceLevelNextOptionalParams no longer has parameter filter + - Interface ManagementLocksListAtSubscriptionLevelNextOptionalParams no longer has parameter filter + - Interface ManagementLocksListByScopeNextOptionalParams no longer has parameter filter + + ## 2.1.0 (2022-11-22) **Features** @@ -31,4 +32,4 @@ To understand the detail of the change, please refer to [Changelog](https://aka. To migrate the existing applications to the latest version, please refer to [Migration Guide](https://aka.ms/js-track2-migration-guide). -To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/js/mgmt/quickstart ). +To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/js/mgmt/quickstart). diff --git a/sdk/locks/arm-locks/LICENSE b/sdk/locks/arm-locks/LICENSE index 5d1d36e0af80c..7d59347409658 100644 --- a/sdk/locks/arm-locks/LICENSE +++ b/sdk/locks/arm-locks/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2022 Microsoft +Copyright (c) 2024 Microsoft Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/sdk/locks/arm-locks/_meta.json b/sdk/locks/arm-locks/_meta.json index c7ad3e56f3019..6f675c5d5d6aa 100644 --- a/sdk/locks/arm-locks/_meta.json +++ b/sdk/locks/arm-locks/_meta.json @@ -1,8 +1,8 @@ { - "commit": "a42f1b58607091c4f255ead152a8ef323fa0b280", + "commit": "61db561c7b16295a74a39fa76e58967fb0c621d7", "readme": "specification/resources/resource-manager/readme.md", - "autorest_command": "autorest --version=3.8.4 --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\\resources\\resource-manager\\readme.md --use=@autorest/typescript@6.0.0-rc.3.20221108.1 --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/resources/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.4.2", - "use": "@autorest/typescript@6.0.0-rc.3.20221108.1" + "release_tool": "@azure-tools/js-sdk-release-tools@2.7.9", + "use": "@autorest/typescript@^6.0.12" } \ No newline at end of file diff --git a/sdk/locks/arm-locks/package.json b/sdk/locks/arm-locks/package.json index 8940475440b84..2897fedeb921a 100644 --- a/sdk/locks/arm-locks/package.json +++ b/sdk/locks/arm-locks/package.json @@ -3,15 +3,15 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for ManagementLockClient.", - "version": "2.1.1", + "version": "3.0.0", "engines": { "node": ">=18.0.0" }, "dependencies": { "@azure/core-paging": "^1.2.0", - "@azure/core-client": "^1.6.1", - "@azure/core-auth": "^1.3.0", - "@azure/core-rest-pipeline": "^1.8.0", + "@azure/core-client": "^1.7.0", + "@azure/core-auth": "^1.6.0", + "@azure/core-rest-pipeline": "^1.14.0", "tslib": "^2.2.0" }, "keywords": [ @@ -30,20 +30,21 @@ "mkdirp": "^3.0.1", "typescript": "~5.4.5", "uglify-js": "^3.4.9", - "rimraf": "^5.0.5", + "rimraf": "^5.0.0", + "dotenv": "^16.0.0", + "@azure/dev-tool": "^1.0.0", "@azure/identity": "^4.0.1", "@azure-tools/test-recorder": "^3.0.0", "@azure-tools/test-credential": "^1.0.0", "mocha": "^10.0.0", + "@types/mocha": "^10.0.0", + "tsx": "^4.7.1", "@types/chai": "^4.2.8", "chai": "^4.2.0", "cross-env": "^7.0.2", "@types/node": "^18.0.0", - "@azure/dev-tool": "^1.0.0", - "ts-node": "^10.0.0", - "@types/mocha": "^10.0.0" + "ts-node": "^10.0.0" }, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/locks/arm-locks", "repository": { "type": "git", "url": "https://github.com/Azure/azure-sdk-for-js.git" @@ -75,7 +76,6 @@ "pack": "npm pack 2>&1", "extract-api": "dev-tool run extract-api", "lint": "echo skipped", - "audit": "echo skipped", "clean": "rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log", "build:node": "echo skipped", "build:browser": "echo skipped", @@ -104,12 +104,5 @@ ] }, "autoPublish": true, - "//sampleConfiguration": { - "productName": "", - "productSlugs": [ - "azure" - ], - "disableDocsMs": true, - "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-locks?view=azure-node-preview" - } -} + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/locks/arm-locks" +} \ No newline at end of file diff --git a/sdk/locks/arm-locks/review/arm-locks.api.md b/sdk/locks/arm-locks/review/arm-locks.api.md index f0af237b239b8..6e803bc7ceafc 100644 --- a/sdk/locks/arm-locks/review/arm-locks.api.md +++ b/sdk/locks/arm-locks/review/arm-locks.api.md @@ -76,6 +76,7 @@ export class ManagementLockClient extends coreClient.ServiceClient { // (undocumented) $host: string; constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: ManagementLockClientOptionalParams); + constructor(credentials: coreAuth.TokenCredential, options?: ManagementLockClientOptionalParams); // (undocumented) apiVersion: string; // (undocumented) @@ -83,7 +84,7 @@ export class ManagementLockClient extends coreClient.ServiceClient { // (undocumented) managementLocks: ManagementLocks; // (undocumented) - subscriptionId: string; + subscriptionId?: string; } // @public @@ -209,7 +210,6 @@ export type ManagementLocksGetByScopeResponse = ManagementLockObject; // @public export interface ManagementLocksListAtResourceGroupLevelNextOptionalParams extends coreClient.OperationOptions { - filter?: string; } // @public @@ -225,7 +225,6 @@ export type ManagementLocksListAtResourceGroupLevelResponse = ManagementLockList // @public export interface ManagementLocksListAtResourceLevelNextOptionalParams extends coreClient.OperationOptions { - filter?: string; } // @public @@ -241,7 +240,6 @@ export type ManagementLocksListAtResourceLevelResponse = ManagementLockListResul // @public export interface ManagementLocksListAtSubscriptionLevelNextOptionalParams extends coreClient.OperationOptions { - filter?: string; } // @public @@ -257,7 +255,6 @@ export type ManagementLocksListAtSubscriptionLevelResponse = ManagementLockListR // @public export interface ManagementLocksListByScopeNextOptionalParams extends coreClient.OperationOptions { - filter?: string; } // @public diff --git a/sdk/locks/arm-locks/src/managementLockClient.ts b/sdk/locks/arm-locks/src/managementLockClient.ts index 1f0594596368d..7c4d1d2b46321 100644 --- a/sdk/locks/arm-locks/src/managementLockClient.ts +++ b/sdk/locks/arm-locks/src/managementLockClient.ts @@ -11,20 +11,20 @@ import * as coreRestPipeline from "@azure/core-rest-pipeline"; import { PipelineRequest, PipelineResponse, - SendRequest + SendRequest, } from "@azure/core-rest-pipeline"; import * as coreAuth from "@azure/core-auth"; import { AuthorizationOperationsImpl, ManagementLocksImpl } from "./operations"; import { AuthorizationOperations, - ManagementLocks + ManagementLocks, } from "./operationsInterfaces"; import { ManagementLockClientOptionalParams } from "./models"; export class ManagementLockClient extends coreClient.ServiceClient { $host: string; apiVersion: string; - subscriptionId: string; + subscriptionId?: string; /** * Initializes a new instance of the ManagementLockClient class. @@ -35,13 +35,27 @@ export class ManagementLockClient extends coreClient.ServiceClient { constructor( credentials: coreAuth.TokenCredential, subscriptionId: string, - options?: ManagementLockClientOptionalParams + options?: ManagementLockClientOptionalParams, + ); + constructor( + credentials: coreAuth.TokenCredential, + options?: ManagementLockClientOptionalParams, + ); + constructor( + credentials: coreAuth.TokenCredential, + subscriptionIdOrOptions?: ManagementLockClientOptionalParams | string, + options?: ManagementLockClientOptionalParams, ) { if (credentials === undefined) { throw new Error("'credentials' cannot be null"); } - if (subscriptionId === undefined) { - throw new Error("'subscriptionId' cannot be null"); + + let subscriptionId: string | undefined; + + if (typeof subscriptionIdOrOptions === "string") { + subscriptionId = subscriptionIdOrOptions; + } else if (typeof subscriptionIdOrOptions === "object") { + options = subscriptionIdOrOptions; } // Initializing default values for options @@ -50,10 +64,10 @@ export class ManagementLockClient extends coreClient.ServiceClient { } const defaults: ManagementLockClientOptionalParams = { requestContentType: "application/json; charset=utf-8", - credential: credentials + credential: credentials, }; - const packageDetails = `azsdk-js-arm-locks/2.1.1`; + const packageDetails = `azsdk-js-arm-locks/3.0.0`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -63,20 +77,21 @@ export class ManagementLockClient extends coreClient.ServiceClient { ...defaults, ...options, userAgentOptions: { - userAgentPrefix + userAgentPrefix, }, endpoint: - options.endpoint ?? options.baseUri ?? "https://management.azure.com" + options.endpoint ?? options.baseUri ?? "https://management.azure.com", }; super(optionsWithDefaults); let bearerTokenAuthenticationPolicyFound: boolean = false; if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) { - const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies(); + const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = + options.pipeline.getOrderedPolicies(); bearerTokenAuthenticationPolicyFound = pipelinePolicies.some( (pipelinePolicy) => pipelinePolicy.name === - coreRestPipeline.bearerTokenAuthenticationPolicyName + coreRestPipeline.bearerTokenAuthenticationPolicyName, ); } if ( @@ -86,7 +101,7 @@ export class ManagementLockClient extends coreClient.ServiceClient { !bearerTokenAuthenticationPolicyFound ) { this.pipeline.removePolicy({ - name: coreRestPipeline.bearerTokenAuthenticationPolicyName + name: coreRestPipeline.bearerTokenAuthenticationPolicyName, }); this.pipeline.addPolicy( coreRestPipeline.bearerTokenAuthenticationPolicy({ @@ -96,9 +111,9 @@ export class ManagementLockClient extends coreClient.ServiceClient { `${optionsWithDefaults.endpoint}/.default`, challengeCallbacks: { authorizeRequestOnChallenge: - coreClient.authorizeRequestOnClaimChallenge - } - }) + coreClient.authorizeRequestOnClaimChallenge, + }, + }), ); } // Parameter assignments @@ -121,7 +136,7 @@ export class ManagementLockClient extends coreClient.ServiceClient { name: "CustomApiVersionPolicy", async sendRequest( request: PipelineRequest, - next: SendRequest + next: SendRequest, ): Promise { const param = request.url.split("?"); if (param.length > 1) { @@ -135,7 +150,7 @@ export class ManagementLockClient extends coreClient.ServiceClient { request.url = param[0] + "?" + newParams.join("&"); } return next(request); - } + }, }; this.pipeline.addPolicy(apiVersionPolicy); } diff --git a/sdk/locks/arm-locks/src/models/index.ts b/sdk/locks/arm-locks/src/models/index.ts index c95cb1af614b0..4354ad8880fb5 100644 --- a/sdk/locks/arm-locks/src/models/index.ts +++ b/sdk/locks/arm-locks/src/models/index.ts @@ -150,7 +150,7 @@ export enum KnownLockLevel { /** CanNotDelete */ CanNotDelete = "CanNotDelete", /** ReadOnly */ - ReadOnly = "ReadOnly" + ReadOnly = "ReadOnly", } /** @@ -173,7 +173,7 @@ export enum KnownCreatedByType { /** ManagedIdentity */ ManagedIdentity = "ManagedIdentity", /** Key */ - Key = "Key" + Key = "Key", } /** @@ -207,7 +207,8 @@ export interface ManagementLocksCreateOrUpdateAtResourceGroupLevelOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdateAtResourceGroupLevel operation. */ -export type ManagementLocksCreateOrUpdateAtResourceGroupLevelResponse = ManagementLockObject; +export type ManagementLocksCreateOrUpdateAtResourceGroupLevelResponse = + ManagementLockObject; /** Optional parameters. */ export interface ManagementLocksDeleteAtResourceGroupLevelOptionalParams @@ -218,7 +219,8 @@ export interface ManagementLocksGetAtResourceGroupLevelOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getAtResourceGroupLevel operation. */ -export type ManagementLocksGetAtResourceGroupLevelResponse = ManagementLockObject; +export type ManagementLocksGetAtResourceGroupLevelResponse = + ManagementLockObject; /** Optional parameters. */ export interface ManagementLocksCreateOrUpdateByScopeOptionalParams @@ -243,7 +245,8 @@ export interface ManagementLocksCreateOrUpdateAtResourceLevelOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdateAtResourceLevel operation. */ -export type ManagementLocksCreateOrUpdateAtResourceLevelResponse = ManagementLockObject; +export type ManagementLocksCreateOrUpdateAtResourceLevelResponse = + ManagementLockObject; /** Optional parameters. */ export interface ManagementLocksDeleteAtResourceLevelOptionalParams @@ -261,7 +264,8 @@ export interface ManagementLocksCreateOrUpdateAtSubscriptionLevelOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdateAtSubscriptionLevel operation. */ -export type ManagementLocksCreateOrUpdateAtSubscriptionLevelResponse = ManagementLockObject; +export type ManagementLocksCreateOrUpdateAtSubscriptionLevelResponse = + ManagementLockObject; /** Optional parameters. */ export interface ManagementLocksDeleteAtSubscriptionLevelOptionalParams @@ -272,7 +276,8 @@ export interface ManagementLocksGetAtSubscriptionLevelOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getAtSubscriptionLevel operation. */ -export type ManagementLocksGetAtSubscriptionLevelResponse = ManagementLockObject; +export type ManagementLocksGetAtSubscriptionLevelResponse = + ManagementLockObject; /** Optional parameters. */ export interface ManagementLocksListAtResourceGroupLevelOptionalParams @@ -282,7 +287,8 @@ export interface ManagementLocksListAtResourceGroupLevelOptionalParams } /** Contains response data for the listAtResourceGroupLevel operation. */ -export type ManagementLocksListAtResourceGroupLevelResponse = ManagementLockListResult; +export type ManagementLocksListAtResourceGroupLevelResponse = + ManagementLockListResult; /** Optional parameters. */ export interface ManagementLocksListAtResourceLevelOptionalParams @@ -292,7 +298,8 @@ export interface ManagementLocksListAtResourceLevelOptionalParams } /** Contains response data for the listAtResourceLevel operation. */ -export type ManagementLocksListAtResourceLevelResponse = ManagementLockListResult; +export type ManagementLocksListAtResourceLevelResponse = + ManagementLockListResult; /** Optional parameters. */ export interface ManagementLocksListAtSubscriptionLevelOptionalParams @@ -302,7 +309,8 @@ export interface ManagementLocksListAtSubscriptionLevelOptionalParams } /** Contains response data for the listAtSubscriptionLevel operation. */ -export type ManagementLocksListAtSubscriptionLevelResponse = ManagementLockListResult; +export type ManagementLocksListAtSubscriptionLevelResponse = + ManagementLockListResult; /** Optional parameters. */ export interface ManagementLocksListByScopeOptionalParams @@ -316,40 +324,31 @@ export type ManagementLocksListByScopeResponse = ManagementLockListResult; /** Optional parameters. */ export interface ManagementLocksListAtResourceGroupLevelNextOptionalParams - extends coreClient.OperationOptions { - /** The filter to apply on the operation. */ - filter?: string; -} + extends coreClient.OperationOptions {} /** Contains response data for the listAtResourceGroupLevelNext operation. */ -export type ManagementLocksListAtResourceGroupLevelNextResponse = ManagementLockListResult; +export type ManagementLocksListAtResourceGroupLevelNextResponse = + ManagementLockListResult; /** Optional parameters. */ export interface ManagementLocksListAtResourceLevelNextOptionalParams - extends coreClient.OperationOptions { - /** The filter to apply on the operation. */ - filter?: string; -} + extends coreClient.OperationOptions {} /** Contains response data for the listAtResourceLevelNext operation. */ -export type ManagementLocksListAtResourceLevelNextResponse = ManagementLockListResult; +export type ManagementLocksListAtResourceLevelNextResponse = + ManagementLockListResult; /** Optional parameters. */ export interface ManagementLocksListAtSubscriptionLevelNextOptionalParams - extends coreClient.OperationOptions { - /** The filter to apply on the operation. */ - filter?: string; -} + extends coreClient.OperationOptions {} /** Contains response data for the listAtSubscriptionLevelNext operation. */ -export type ManagementLocksListAtSubscriptionLevelNextResponse = ManagementLockListResult; +export type ManagementLocksListAtSubscriptionLevelNextResponse = + ManagementLockListResult; /** Optional parameters. */ export interface ManagementLocksListByScopeNextOptionalParams - extends coreClient.OperationOptions { - /** The filter to apply on the operation. */ - filter?: string; -} + extends coreClient.OperationOptions {} /** Contains response data for the listByScopeNext operation. */ export type ManagementLocksListByScopeNextResponse = ManagementLockListResult; diff --git a/sdk/locks/arm-locks/src/models/mappers.ts b/sdk/locks/arm-locks/src/models/mappers.ts index f165718080fdf..989b7a5612361 100644 --- a/sdk/locks/arm-locks/src/models/mappers.ts +++ b/sdk/locks/arm-locks/src/models/mappers.ts @@ -20,19 +20,19 @@ export const OperationListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Operation" - } - } - } + className: "Operation", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const Operation: coreClient.CompositeMapper = { @@ -43,18 +43,18 @@ export const Operation: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, display: { serializedName: "display", type: { name: "Composite", - className: "OperationDisplay" - } - } - } - } + className: "OperationDisplay", + }, + }, + }, + }, }; export const OperationDisplay: coreClient.CompositeMapper = { @@ -65,23 +65,23 @@ export const OperationDisplay: coreClient.CompositeMapper = { provider: { serializedName: "provider", type: { - name: "String" - } + name: "String", + }, }, resource: { serializedName: "resource", type: { - name: "String" - } + name: "String", + }, }, operation: { serializedName: "operation", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ErrorResponse: coreClient.CompositeMapper = { @@ -93,11 +93,11 @@ export const ErrorResponse: coreClient.CompositeMapper = { serializedName: "error", type: { name: "Composite", - className: "ErrorDetail" - } - } - } - } + className: "ErrorDetail", + }, + }, + }, + }, }; export const ErrorDetail: coreClient.CompositeMapper = { @@ -109,22 +109,22 @@ export const ErrorDetail: coreClient.CompositeMapper = { serializedName: "code", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, message: { serializedName: "message", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, target: { serializedName: "target", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, details: { serializedName: "details", @@ -134,10 +134,10 @@ export const ErrorDetail: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ErrorDetail" - } - } - } + className: "ErrorDetail", + }, + }, + }, }, additionalInfo: { serializedName: "additionalInfo", @@ -147,13 +147,13 @@ export const ErrorDetail: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ErrorAdditionalInfo" - } - } - } - } - } - } + className: "ErrorAdditionalInfo", + }, + }, + }, + }, + }, + }, }; export const ErrorAdditionalInfo: coreClient.CompositeMapper = { @@ -165,19 +165,19 @@ export const ErrorAdditionalInfo: coreClient.CompositeMapper = { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, info: { serializedName: "info", readOnly: true, type: { name: "Dictionary", - value: { type: { name: "any" } } - } - } - } - } + value: { type: { name: "any" } }, + }, + }, + }, + }, }; export const ManagementLockObject: coreClient.CompositeMapper = { @@ -189,42 +189,42 @@ export const ManagementLockObject: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, systemData: { serializedName: "systemData", type: { name: "Composite", - className: "SystemData" - } + className: "SystemData", + }, }, level: { serializedName: "properties.level", required: true, type: { - name: "String" - } + name: "String", + }, }, notes: { serializedName: "properties.notes", type: { - name: "String" - } + name: "String", + }, }, owners: { serializedName: "properties.owners", @@ -233,13 +233,13 @@ export const ManagementLockObject: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ManagementLockOwner" - } - } - } - } - } - } + className: "ManagementLockOwner", + }, + }, + }, + }, + }, + }, }; export const ManagementLockOwner: coreClient.CompositeMapper = { @@ -250,11 +250,11 @@ export const ManagementLockOwner: coreClient.CompositeMapper = { applicationId: { serializedName: "applicationId", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SystemData: coreClient.CompositeMapper = { @@ -265,41 +265,41 @@ export const SystemData: coreClient.CompositeMapper = { createdBy: { serializedName: "createdBy", type: { - name: "String" - } + name: "String", + }, }, createdByType: { serializedName: "createdByType", type: { - name: "String" - } + name: "String", + }, }, createdAt: { serializedName: "createdAt", type: { - name: "DateTime" - } + name: "DateTime", + }, }, lastModifiedBy: { serializedName: "lastModifiedBy", type: { - name: "String" - } + name: "String", + }, }, lastModifiedByType: { serializedName: "lastModifiedByType", type: { - name: "String" - } + name: "String", + }, }, lastModifiedAt: { serializedName: "lastModifiedAt", type: { - name: "DateTime" - } - } - } - } + name: "DateTime", + }, + }, + }, + }, }; export const ManagementLockListResult: coreClient.CompositeMapper = { @@ -314,17 +314,17 @@ export const ManagementLockListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ManagementLockObject" - } - } - } + className: "ManagementLockObject", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; diff --git a/sdk/locks/arm-locks/src/models/parameters.ts b/sdk/locks/arm-locks/src/models/parameters.ts index 6df49f707d766..ad894173542df 100644 --- a/sdk/locks/arm-locks/src/models/parameters.ts +++ b/sdk/locks/arm-locks/src/models/parameters.ts @@ -9,7 +9,7 @@ import { OperationParameter, OperationURLParameter, - OperationQueryParameter + OperationQueryParameter, } from "@azure/core-client"; import { ManagementLockObject as ManagementLockObjectMapper } from "../models/mappers"; @@ -20,9 +20,9 @@ export const accept: OperationParameter = { isConstant: true, serializedName: "Accept", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const $host: OperationURLParameter = { @@ -31,10 +31,10 @@ export const $host: OperationURLParameter = { serializedName: "$host", required: true, type: { - name: "String" - } + name: "String", + }, }, - skipEncoding: true + skipEncoding: true, }; export const apiVersion: OperationQueryParameter = { @@ -44,9 +44,9 @@ export const apiVersion: OperationQueryParameter = { isConstant: true, serializedName: "api-version", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const nextLink: OperationURLParameter = { @@ -55,10 +55,10 @@ export const nextLink: OperationURLParameter = { serializedName: "nextLink", required: true, type: { - name: "String" - } + name: "String", + }, }, - skipEncoding: true + skipEncoding: true, }; export const contentType: OperationParameter = { @@ -68,14 +68,14 @@ export const contentType: OperationParameter = { isConstant: true, serializedName: "Content-Type", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters: OperationParameter = { parameterPath: "parameters", - mapper: ManagementLockObjectMapper + mapper: ManagementLockObjectMapper, }; export const resourceGroupName: OperationURLParameter = { @@ -84,14 +84,14 @@ export const resourceGroupName: OperationURLParameter = { constraints: { Pattern: new RegExp("^[-\\w\\._\\(\\)]+$"), MaxLength: 90, - MinLength: 1 + MinLength: 1, }, serializedName: "resourceGroupName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const lockName: OperationURLParameter = { @@ -100,9 +100,9 @@ export const lockName: OperationURLParameter = { serializedName: "lockName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const subscriptionId: OperationURLParameter = { @@ -111,9 +111,9 @@ export const subscriptionId: OperationURLParameter = { serializedName: "subscriptionId", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const scope: OperationURLParameter = { @@ -122,9 +122,9 @@ export const scope: OperationURLParameter = { serializedName: "scope", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const resourceProviderNamespace: OperationURLParameter = { @@ -133,9 +133,9 @@ export const resourceProviderNamespace: OperationURLParameter = { serializedName: "resourceProviderNamespace", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parentResourcePath: OperationURLParameter = { @@ -144,10 +144,10 @@ export const parentResourcePath: OperationURLParameter = { serializedName: "parentResourcePath", required: true, type: { - name: "String" - } + name: "String", + }, }, - skipEncoding: true + skipEncoding: true, }; export const resourceType: OperationURLParameter = { @@ -156,10 +156,10 @@ export const resourceType: OperationURLParameter = { serializedName: "resourceType", required: true, type: { - name: "String" - } + name: "String", + }, }, - skipEncoding: true + skipEncoding: true, }; export const resourceName: OperationURLParameter = { @@ -168,9 +168,9 @@ export const resourceName: OperationURLParameter = { serializedName: "resourceName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const filter: OperationQueryParameter = { @@ -178,7 +178,7 @@ export const filter: OperationQueryParameter = { mapper: { serializedName: "$filter", type: { - name: "String" - } - } + name: "String", + }, + }, }; diff --git a/sdk/locks/arm-locks/src/operations/authorizationOperations.ts b/sdk/locks/arm-locks/src/operations/authorizationOperations.ts index 7a5256074de55..b796f4a56d4e9 100644 --- a/sdk/locks/arm-locks/src/operations/authorizationOperations.ts +++ b/sdk/locks/arm-locks/src/operations/authorizationOperations.ts @@ -18,7 +18,7 @@ import { AuthorizationOperationsListNextOptionalParams, AuthorizationOperationsListOptionalParams, AuthorizationOperationsListResponse, - AuthorizationOperationsListNextResponse + AuthorizationOperationsListNextResponse, } from "../models"; /// @@ -39,7 +39,7 @@ export class AuthorizationOperationsImpl implements AuthorizationOperations { * @param options The options parameters. */ public list( - options?: AuthorizationOperationsListOptionalParams + options?: AuthorizationOperationsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(options); return { @@ -54,13 +54,13 @@ export class AuthorizationOperationsImpl implements AuthorizationOperations { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(options, settings); - } + }, }; } private async *listPagingPage( options?: AuthorizationOperationsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: AuthorizationOperationsListResponse; let continuationToken = settings?.continuationToken; @@ -81,7 +81,7 @@ export class AuthorizationOperationsImpl implements AuthorizationOperations { } private async *listPagingAll( - options?: AuthorizationOperationsListOptionalParams + options?: AuthorizationOperationsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(options)) { yield* page; @@ -93,7 +93,7 @@ export class AuthorizationOperationsImpl implements AuthorizationOperations { * @param options The options parameters. */ private _list( - options?: AuthorizationOperationsListOptionalParams + options?: AuthorizationOperationsListOptionalParams, ): Promise { return this.client.sendOperationRequest({ options }, listOperationSpec); } @@ -105,11 +105,11 @@ export class AuthorizationOperationsImpl implements AuthorizationOperations { */ private _listNext( nextLink: string, - options?: AuthorizationOperationsListNextOptionalParams + options?: AuthorizationOperationsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -121,30 +121,29 @@ const listOperationSpec: coreClient.OperationSpec = { httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.OperationListResult + bodyMapper: Mappers.OperationListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.OperationListResult + bodyMapper: Mappers.OperationListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.nextLink], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/locks/arm-locks/src/operations/managementLocks.ts b/sdk/locks/arm-locks/src/operations/managementLocks.ts index 3669b5d87ac07..303e858788a5d 100644 --- a/sdk/locks/arm-locks/src/operations/managementLocks.ts +++ b/sdk/locks/arm-locks/src/operations/managementLocks.ts @@ -50,7 +50,7 @@ import { ManagementLocksListAtResourceGroupLevelNextResponse, ManagementLocksListAtResourceLevelNextResponse, ManagementLocksListAtSubscriptionLevelNextResponse, - ManagementLocksListByScopeNextResponse + ManagementLocksListByScopeNextResponse, } from "../models"; /// @@ -73,11 +73,11 @@ export class ManagementLocksImpl implements ManagementLocks { */ public listAtResourceGroupLevel( resourceGroupName: string, - options?: ManagementLocksListAtResourceGroupLevelOptionalParams + options?: ManagementLocksListAtResourceGroupLevelOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listAtResourceGroupLevelPagingAll( resourceGroupName, - options + options, ); return { next() { @@ -93,16 +93,16 @@ export class ManagementLocksImpl implements ManagementLocks { return this.listAtResourceGroupLevelPagingPage( resourceGroupName, options, - settings + settings, ); - } + }, }; } private async *listAtResourceGroupLevelPagingPage( resourceGroupName: string, options?: ManagementLocksListAtResourceGroupLevelOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ManagementLocksListAtResourceGroupLevelResponse; let continuationToken = settings?.continuationToken; @@ -117,7 +117,7 @@ export class ManagementLocksImpl implements ManagementLocks { result = await this._listAtResourceGroupLevelNext( resourceGroupName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -128,11 +128,11 @@ export class ManagementLocksImpl implements ManagementLocks { private async *listAtResourceGroupLevelPagingAll( resourceGroupName: string, - options?: ManagementLocksListAtResourceGroupLevelOptionalParams + options?: ManagementLocksListAtResourceGroupLevelOptionalParams, ): AsyncIterableIterator { for await (const page of this.listAtResourceGroupLevelPagingPage( resourceGroupName, - options + options, )) { yield* page; } @@ -154,7 +154,7 @@ export class ManagementLocksImpl implements ManagementLocks { parentResourcePath: string, resourceType: string, resourceName: string, - options?: ManagementLocksListAtResourceLevelOptionalParams + options?: ManagementLocksListAtResourceLevelOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listAtResourceLevelPagingAll( resourceGroupName, @@ -162,7 +162,7 @@ export class ManagementLocksImpl implements ManagementLocks { parentResourcePath, resourceType, resourceName, - options + options, ); return { next() { @@ -182,9 +182,9 @@ export class ManagementLocksImpl implements ManagementLocks { resourceType, resourceName, options, - settings + settings, ); - } + }, }; } @@ -195,7 +195,7 @@ export class ManagementLocksImpl implements ManagementLocks { resourceType: string, resourceName: string, options?: ManagementLocksListAtResourceLevelOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ManagementLocksListAtResourceLevelResponse; let continuationToken = settings?.continuationToken; @@ -206,7 +206,7 @@ export class ManagementLocksImpl implements ManagementLocks { parentResourcePath, resourceType, resourceName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -221,7 +221,7 @@ export class ManagementLocksImpl implements ManagementLocks { resourceType, resourceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -236,7 +236,7 @@ export class ManagementLocksImpl implements ManagementLocks { parentResourcePath: string, resourceType: string, resourceName: string, - options?: ManagementLocksListAtResourceLevelOptionalParams + options?: ManagementLocksListAtResourceLevelOptionalParams, ): AsyncIterableIterator { for await (const page of this.listAtResourceLevelPagingPage( resourceGroupName, @@ -244,7 +244,7 @@ export class ManagementLocksImpl implements ManagementLocks { parentResourcePath, resourceType, resourceName, - options + options, )) { yield* page; } @@ -255,7 +255,7 @@ export class ManagementLocksImpl implements ManagementLocks { * @param options The options parameters. */ public listAtSubscriptionLevel( - options?: ManagementLocksListAtSubscriptionLevelOptionalParams + options?: ManagementLocksListAtSubscriptionLevelOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listAtSubscriptionLevelPagingAll(options); return { @@ -270,13 +270,13 @@ export class ManagementLocksImpl implements ManagementLocks { throw new Error("maxPageSize is not supported by this operation."); } return this.listAtSubscriptionLevelPagingPage(options, settings); - } + }, }; } private async *listAtSubscriptionLevelPagingPage( options?: ManagementLocksListAtSubscriptionLevelOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ManagementLocksListAtSubscriptionLevelResponse; let continuationToken = settings?.continuationToken; @@ -290,7 +290,7 @@ export class ManagementLocksImpl implements ManagementLocks { while (continuationToken) { result = await this._listAtSubscriptionLevelNext( continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -300,7 +300,7 @@ export class ManagementLocksImpl implements ManagementLocks { } private async *listAtSubscriptionLevelPagingAll( - options?: ManagementLocksListAtSubscriptionLevelOptionalParams + options?: ManagementLocksListAtSubscriptionLevelOptionalParams, ): AsyncIterableIterator { for await (const page of this.listAtSubscriptionLevelPagingPage(options)) { yield* page; @@ -318,7 +318,7 @@ export class ManagementLocksImpl implements ManagementLocks { */ public listByScope( scope: string, - options?: ManagementLocksListByScopeOptionalParams + options?: ManagementLocksListByScopeOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByScopePagingAll(scope, options); return { @@ -333,14 +333,14 @@ export class ManagementLocksImpl implements ManagementLocks { throw new Error("maxPageSize is not supported by this operation."); } return this.listByScopePagingPage(scope, options, settings); - } + }, }; } private async *listByScopePagingPage( scope: string, options?: ManagementLocksListByScopeOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ManagementLocksListByScopeResponse; let continuationToken = settings?.continuationToken; @@ -362,7 +362,7 @@ export class ManagementLocksImpl implements ManagementLocks { private async *listByScopePagingAll( scope: string, - options?: ManagementLocksListByScopeOptionalParams + options?: ManagementLocksListByScopeOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByScopePagingPage(scope, options)) { yield* page; @@ -384,11 +384,11 @@ export class ManagementLocksImpl implements ManagementLocks { resourceGroupName: string, lockName: string, parameters: ManagementLockObject, - options?: ManagementLocksCreateOrUpdateAtResourceGroupLevelOptionalParams + options?: ManagementLocksCreateOrUpdateAtResourceGroupLevelOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, lockName, parameters, options }, - createOrUpdateAtResourceGroupLevelOperationSpec + createOrUpdateAtResourceGroupLevelOperationSpec, ); } @@ -403,11 +403,11 @@ export class ManagementLocksImpl implements ManagementLocks { deleteAtResourceGroupLevel( resourceGroupName: string, lockName: string, - options?: ManagementLocksDeleteAtResourceGroupLevelOptionalParams + options?: ManagementLocksDeleteAtResourceGroupLevelOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, lockName, options }, - deleteAtResourceGroupLevelOperationSpec + deleteAtResourceGroupLevelOperationSpec, ); } @@ -420,11 +420,11 @@ export class ManagementLocksImpl implements ManagementLocks { getAtResourceGroupLevel( resourceGroupName: string, lockName: string, - options?: ManagementLocksGetAtResourceGroupLevelOptionalParams + options?: ManagementLocksGetAtResourceGroupLevelOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, lockName, options }, - getAtResourceGroupLevelOperationSpec + getAtResourceGroupLevelOperationSpec, ); } @@ -443,11 +443,11 @@ export class ManagementLocksImpl implements ManagementLocks { scope: string, lockName: string, parameters: ManagementLockObject, - options?: ManagementLocksCreateOrUpdateByScopeOptionalParams + options?: ManagementLocksCreateOrUpdateByScopeOptionalParams, ): Promise { return this.client.sendOperationRequest( { scope, lockName, parameters, options }, - createOrUpdateByScopeOperationSpec + createOrUpdateByScopeOperationSpec, ); } @@ -460,11 +460,11 @@ export class ManagementLocksImpl implements ManagementLocks { deleteByScope( scope: string, lockName: string, - options?: ManagementLocksDeleteByScopeOptionalParams + options?: ManagementLocksDeleteByScopeOptionalParams, ): Promise { return this.client.sendOperationRequest( { scope, lockName, options }, - deleteByScopeOperationSpec + deleteByScopeOperationSpec, ); } @@ -477,11 +477,11 @@ export class ManagementLocksImpl implements ManagementLocks { getByScope( scope: string, lockName: string, - options?: ManagementLocksGetByScopeOptionalParams + options?: ManagementLocksGetByScopeOptionalParams, ): Promise { return this.client.sendOperationRequest( { scope, lockName, options }, - getByScopeOperationSpec + getByScopeOperationSpec, ); } @@ -508,7 +508,7 @@ export class ManagementLocksImpl implements ManagementLocks { resourceName: string, lockName: string, parameters: ManagementLockObject, - options?: ManagementLocksCreateOrUpdateAtResourceLevelOptionalParams + options?: ManagementLocksCreateOrUpdateAtResourceLevelOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -519,9 +519,9 @@ export class ManagementLocksImpl implements ManagementLocks { resourceName, lockName, parameters, - options + options, }, - createOrUpdateAtResourceLevelOperationSpec + createOrUpdateAtResourceLevelOperationSpec, ); } @@ -546,7 +546,7 @@ export class ManagementLocksImpl implements ManagementLocks { resourceType: string, resourceName: string, lockName: string, - options?: ManagementLocksDeleteAtResourceLevelOptionalParams + options?: ManagementLocksDeleteAtResourceLevelOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -556,9 +556,9 @@ export class ManagementLocksImpl implements ManagementLocks { resourceType, resourceName, lockName, - options + options, }, - deleteAtResourceLevelOperationSpec + deleteAtResourceLevelOperationSpec, ); } @@ -579,7 +579,7 @@ export class ManagementLocksImpl implements ManagementLocks { resourceType: string, resourceName: string, lockName: string, - options?: ManagementLocksGetAtResourceLevelOptionalParams + options?: ManagementLocksGetAtResourceLevelOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -589,9 +589,9 @@ export class ManagementLocksImpl implements ManagementLocks { resourceType, resourceName, lockName, - options + options, }, - getAtResourceLevelOperationSpec + getAtResourceLevelOperationSpec, ); } @@ -608,11 +608,11 @@ export class ManagementLocksImpl implements ManagementLocks { createOrUpdateAtSubscriptionLevel( lockName: string, parameters: ManagementLockObject, - options?: ManagementLocksCreateOrUpdateAtSubscriptionLevelOptionalParams + options?: ManagementLocksCreateOrUpdateAtSubscriptionLevelOptionalParams, ): Promise { return this.client.sendOperationRequest( { lockName, parameters, options }, - createOrUpdateAtSubscriptionLevelOperationSpec + createOrUpdateAtSubscriptionLevelOperationSpec, ); } @@ -625,11 +625,11 @@ export class ManagementLocksImpl implements ManagementLocks { */ deleteAtSubscriptionLevel( lockName: string, - options?: ManagementLocksDeleteAtSubscriptionLevelOptionalParams + options?: ManagementLocksDeleteAtSubscriptionLevelOptionalParams, ): Promise { return this.client.sendOperationRequest( { lockName, options }, - deleteAtSubscriptionLevelOperationSpec + deleteAtSubscriptionLevelOperationSpec, ); } @@ -640,11 +640,11 @@ export class ManagementLocksImpl implements ManagementLocks { */ getAtSubscriptionLevel( lockName: string, - options?: ManagementLocksGetAtSubscriptionLevelOptionalParams + options?: ManagementLocksGetAtSubscriptionLevelOptionalParams, ): Promise { return this.client.sendOperationRequest( { lockName, options }, - getAtSubscriptionLevelOperationSpec + getAtSubscriptionLevelOperationSpec, ); } @@ -655,11 +655,11 @@ export class ManagementLocksImpl implements ManagementLocks { */ private _listAtResourceGroupLevel( resourceGroupName: string, - options?: ManagementLocksListAtResourceGroupLevelOptionalParams + options?: ManagementLocksListAtResourceGroupLevelOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, - listAtResourceGroupLevelOperationSpec + listAtResourceGroupLevelOperationSpec, ); } @@ -679,7 +679,7 @@ export class ManagementLocksImpl implements ManagementLocks { parentResourcePath: string, resourceType: string, resourceName: string, - options?: ManagementLocksListAtResourceLevelOptionalParams + options?: ManagementLocksListAtResourceLevelOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -688,9 +688,9 @@ export class ManagementLocksImpl implements ManagementLocks { parentResourcePath, resourceType, resourceName, - options + options, }, - listAtResourceLevelOperationSpec + listAtResourceLevelOperationSpec, ); } @@ -699,11 +699,11 @@ export class ManagementLocksImpl implements ManagementLocks { * @param options The options parameters. */ private _listAtSubscriptionLevel( - options?: ManagementLocksListAtSubscriptionLevelOptionalParams + options?: ManagementLocksListAtSubscriptionLevelOptionalParams, ): Promise { return this.client.sendOperationRequest( { options }, - listAtSubscriptionLevelOperationSpec + listAtSubscriptionLevelOperationSpec, ); } @@ -718,11 +718,11 @@ export class ManagementLocksImpl implements ManagementLocks { */ private _listByScope( scope: string, - options?: ManagementLocksListByScopeOptionalParams + options?: ManagementLocksListByScopeOptionalParams, ): Promise { return this.client.sendOperationRequest( { scope, options }, - listByScopeOperationSpec + listByScopeOperationSpec, ); } @@ -736,11 +736,11 @@ export class ManagementLocksImpl implements ManagementLocks { private _listAtResourceGroupLevelNext( resourceGroupName: string, nextLink: string, - options?: ManagementLocksListAtResourceGroupLevelNextOptionalParams + options?: ManagementLocksListAtResourceGroupLevelNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, nextLink, options }, - listAtResourceGroupLevelNextOperationSpec + listAtResourceGroupLevelNextOperationSpec, ); } @@ -762,7 +762,7 @@ export class ManagementLocksImpl implements ManagementLocks { resourceType: string, resourceName: string, nextLink: string, - options?: ManagementLocksListAtResourceLevelNextOptionalParams + options?: ManagementLocksListAtResourceLevelNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -772,9 +772,9 @@ export class ManagementLocksImpl implements ManagementLocks { resourceType, resourceName, nextLink, - options + options, }, - listAtResourceLevelNextOperationSpec + listAtResourceLevelNextOperationSpec, ); } @@ -786,11 +786,11 @@ export class ManagementLocksImpl implements ManagementLocks { */ private _listAtSubscriptionLevelNext( nextLink: string, - options?: ManagementLocksListAtSubscriptionLevelNextOptionalParams + options?: ManagementLocksListAtSubscriptionLevelNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listAtSubscriptionLevelNextOperationSpec + listAtSubscriptionLevelNextOperationSpec, ); } @@ -807,107 +807,105 @@ export class ManagementLocksImpl implements ManagementLocks { private _listByScopeNext( scope: string, nextLink: string, - options?: ManagementLocksListByScopeNextOptionalParams + options?: ManagementLocksListByScopeNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { scope, nextLink, options }, - listByScopeNextOperationSpec + listByScopeNextOperationSpec, ); } } // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); -const createOrUpdateAtResourceGroupLevelOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Authorization/locks/{lockName}", - httpMethod: "PUT", - responses: { - 200: { - bodyMapper: Mappers.ManagementLockObject - }, - 201: { - bodyMapper: Mappers.ManagementLockObject +const createOrUpdateAtResourceGroupLevelOperationSpec: coreClient.OperationSpec = + { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Authorization/locks/{lockName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.ManagementLockObject, + }, + 201: { + bodyMapper: Mappers.ManagementLockObject, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - requestBody: Parameters.parameters, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.resourceGroupName, - Parameters.lockName, - Parameters.subscriptionId - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer -}; + requestBody: Parameters.parameters, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.lockName, + Parameters.subscriptionId, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, + }; const deleteAtResourceGroupLevelOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Authorization/locks/{lockName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Authorization/locks/{lockName}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.lockName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getAtResourceGroupLevelOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Authorization/locks/{lockName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Authorization/locks/{lockName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ManagementLockObject + bodyMapper: Mappers.ManagementLockObject, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.lockName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateByScopeOperationSpec: coreClient.OperationSpec = { path: "/{scope}/providers/Microsoft.Authorization/locks/{lockName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.ManagementLockObject + bodyMapper: Mappers.ManagementLockObject, }, 201: { - bodyMapper: Mappers.ManagementLockObject + bodyMapper: Mappers.ManagementLockObject, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.parameters, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.lockName, Parameters.scope], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteByScopeOperationSpec: coreClient.OperationSpec = { path: "/{scope}/providers/Microsoft.Authorization/locks/{lockName}", @@ -916,44 +914,43 @@ const deleteByScopeOperationSpec: coreClient.OperationSpec = { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.lockName, Parameters.scope], headerParameters: [Parameters.accept], - serializer + serializer, }; const getByScopeOperationSpec: coreClient.OperationSpec = { path: "/{scope}/providers/Microsoft.Authorization/locks/{lockName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ManagementLockObject + bodyMapper: Mappers.ManagementLockObject, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.lockName, Parameters.scope], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateAtResourceLevelOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/locks/{lockName}", + path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/locks/{lockName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.ManagementLockObject + bodyMapper: Mappers.ManagementLockObject, }, 201: { - bodyMapper: Mappers.ManagementLockObject + bodyMapper: Mappers.ManagementLockObject, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.parameters, queryParameters: [Parameters.apiVersion], @@ -965,22 +962,21 @@ const createOrUpdateAtResourceLevelOperationSpec: coreClient.OperationSpec = { Parameters.resourceProviderNamespace, Parameters.parentResourcePath, Parameters.resourceType, - Parameters.resourceName + Parameters.resourceName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteAtResourceLevelOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/locks/{lockName}", + path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/locks/{lockName}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -991,22 +987,21 @@ const deleteAtResourceLevelOperationSpec: coreClient.OperationSpec = { Parameters.resourceProviderNamespace, Parameters.parentResourcePath, Parameters.resourceType, - Parameters.resourceName + Parameters.resourceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getAtResourceLevelOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/locks/{lockName}", + path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/locks/{lockName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ManagementLockObject + bodyMapper: Mappers.ManagementLockObject, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -1017,110 +1012,106 @@ const getAtResourceLevelOperationSpec: coreClient.OperationSpec = { Parameters.resourceProviderNamespace, Parameters.parentResourcePath, Parameters.resourceType, - Parameters.resourceName + Parameters.resourceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; -const createOrUpdateAtSubscriptionLevelOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/locks/{lockName}", - httpMethod: "PUT", - responses: { - 200: { - bodyMapper: Mappers.ManagementLockObject - }, - 201: { - bodyMapper: Mappers.ManagementLockObject +const createOrUpdateAtSubscriptionLevelOperationSpec: coreClient.OperationSpec = + { + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/locks/{lockName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.ManagementLockObject, + }, + 201: { + bodyMapper: Mappers.ManagementLockObject, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - requestBody: Parameters.parameters, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.lockName, - Parameters.subscriptionId - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer -}; + requestBody: Parameters.parameters, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.lockName, + Parameters.subscriptionId, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, + }; const deleteAtSubscriptionLevelOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/locks/{lockName}", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/locks/{lockName}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.lockName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getAtSubscriptionLevelOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/locks/{lockName}", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/locks/{lockName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ManagementLockObject + bodyMapper: Mappers.ManagementLockObject, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.lockName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listAtResourceGroupLevelOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Authorization/locks", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Authorization/locks", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ManagementLockListResult + bodyMapper: Mappers.ManagementLockListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion, Parameters.filter], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listAtResourceLevelOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/locks", + path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/locks", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ManagementLockListResult + bodyMapper: Mappers.ManagementLockListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion, Parameters.filter], urlParameters: [ @@ -1130,77 +1121,74 @@ const listAtResourceLevelOperationSpec: coreClient.OperationSpec = { Parameters.resourceProviderNamespace, Parameters.parentResourcePath, Parameters.resourceType, - Parameters.resourceName + Parameters.resourceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listAtSubscriptionLevelOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/locks", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/locks", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ManagementLockListResult + bodyMapper: Mappers.ManagementLockListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion, Parameters.filter], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByScopeOperationSpec: coreClient.OperationSpec = { path: "/{scope}/providers/Microsoft.Authorization/locks", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ManagementLockListResult + bodyMapper: Mappers.ManagementLockListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion, Parameters.filter], urlParameters: [Parameters.$host, Parameters.scope], headerParameters: [Parameters.accept], - serializer + serializer, }; const listAtResourceGroupLevelNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ManagementLockListResult + bodyMapper: Mappers.ManagementLockListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - queryParameters: [Parameters.apiVersion, Parameters.filter], urlParameters: [ Parameters.$host, Parameters.nextLink, Parameters.resourceGroupName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listAtResourceLevelNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ManagementLockListResult + bodyMapper: Mappers.ManagementLockListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - queryParameters: [Parameters.apiVersion, Parameters.filter], urlParameters: [ Parameters.$host, Parameters.nextLink, @@ -1209,44 +1197,42 @@ const listAtResourceLevelNextOperationSpec: coreClient.OperationSpec = { Parameters.resourceProviderNamespace, Parameters.parentResourcePath, Parameters.resourceType, - Parameters.resourceName + Parameters.resourceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listAtSubscriptionLevelNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ManagementLockListResult + bodyMapper: Mappers.ManagementLockListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - queryParameters: [Parameters.apiVersion, Parameters.filter], urlParameters: [ Parameters.$host, Parameters.nextLink, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByScopeNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ManagementLockListResult + bodyMapper: Mappers.ManagementLockListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - queryParameters: [Parameters.apiVersion, Parameters.filter], urlParameters: [Parameters.$host, Parameters.nextLink, Parameters.scope], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/locks/arm-locks/src/operationsInterfaces/authorizationOperations.ts b/sdk/locks/arm-locks/src/operationsInterfaces/authorizationOperations.ts index 9e806d13345f1..3e59bef63ca86 100644 --- a/sdk/locks/arm-locks/src/operationsInterfaces/authorizationOperations.ts +++ b/sdk/locks/arm-locks/src/operationsInterfaces/authorizationOperations.ts @@ -9,7 +9,7 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { Operation, - AuthorizationOperationsListOptionalParams + AuthorizationOperationsListOptionalParams, } from "../models"; /// @@ -20,6 +20,6 @@ export interface AuthorizationOperations { * @param options The options parameters. */ list( - options?: AuthorizationOperationsListOptionalParams + options?: AuthorizationOperationsListOptionalParams, ): PagedAsyncIterableIterator; } diff --git a/sdk/locks/arm-locks/src/operationsInterfaces/managementLocks.ts b/sdk/locks/arm-locks/src/operationsInterfaces/managementLocks.ts index 7ffff412119f6..91f5d56bacf3b 100644 --- a/sdk/locks/arm-locks/src/operationsInterfaces/managementLocks.ts +++ b/sdk/locks/arm-locks/src/operationsInterfaces/managementLocks.ts @@ -32,7 +32,7 @@ import { ManagementLocksCreateOrUpdateAtSubscriptionLevelResponse, ManagementLocksDeleteAtSubscriptionLevelOptionalParams, ManagementLocksGetAtSubscriptionLevelOptionalParams, - ManagementLocksGetAtSubscriptionLevelResponse + ManagementLocksGetAtSubscriptionLevelResponse, } from "../models"; /// @@ -45,7 +45,7 @@ export interface ManagementLocks { */ listAtResourceGroupLevel( resourceGroupName: string, - options?: ManagementLocksListAtResourceGroupLevelOptionalParams + options?: ManagementLocksListAtResourceGroupLevelOptionalParams, ): PagedAsyncIterableIterator; /** * Gets all the management locks for a resource or any level below resource. @@ -63,14 +63,14 @@ export interface ManagementLocks { parentResourcePath: string, resourceType: string, resourceName: string, - options?: ManagementLocksListAtResourceLevelOptionalParams + options?: ManagementLocksListAtResourceLevelOptionalParams, ): PagedAsyncIterableIterator; /** * Gets all the management locks for a subscription. * @param options The options parameters. */ listAtSubscriptionLevel( - options?: ManagementLocksListAtSubscriptionLevelOptionalParams + options?: ManagementLocksListAtSubscriptionLevelOptionalParams, ): PagedAsyncIterableIterator; /** * Gets all the management locks for a scope. @@ -83,7 +83,7 @@ export interface ManagementLocks { */ listByScope( scope: string, - options?: ManagementLocksListByScopeOptionalParams + options?: ManagementLocksListByScopeOptionalParams, ): PagedAsyncIterableIterator; /** * When you apply a lock at a parent scope, all child resources inherit the same lock. To create @@ -100,7 +100,7 @@ export interface ManagementLocks { resourceGroupName: string, lockName: string, parameters: ManagementLockObject, - options?: ManagementLocksCreateOrUpdateAtResourceGroupLevelOptionalParams + options?: ManagementLocksCreateOrUpdateAtResourceGroupLevelOptionalParams, ): Promise; /** * To delete management locks, you must have access to Microsoft.Authorization/* or @@ -113,7 +113,7 @@ export interface ManagementLocks { deleteAtResourceGroupLevel( resourceGroupName: string, lockName: string, - options?: ManagementLocksDeleteAtResourceGroupLevelOptionalParams + options?: ManagementLocksDeleteAtResourceGroupLevelOptionalParams, ): Promise; /** * Gets a management lock at the resource group level. @@ -124,7 +124,7 @@ export interface ManagementLocks { getAtResourceGroupLevel( resourceGroupName: string, lockName: string, - options?: ManagementLocksGetAtResourceGroupLevelOptionalParams + options?: ManagementLocksGetAtResourceGroupLevelOptionalParams, ): Promise; /** * Create or update a management lock by scope. @@ -141,7 +141,7 @@ export interface ManagementLocks { scope: string, lockName: string, parameters: ManagementLockObject, - options?: ManagementLocksCreateOrUpdateByScopeOptionalParams + options?: ManagementLocksCreateOrUpdateByScopeOptionalParams, ): Promise; /** * Delete a management lock by scope. @@ -152,7 +152,7 @@ export interface ManagementLocks { deleteByScope( scope: string, lockName: string, - options?: ManagementLocksDeleteByScopeOptionalParams + options?: ManagementLocksDeleteByScopeOptionalParams, ): Promise; /** * Get a management lock by scope. @@ -163,7 +163,7 @@ export interface ManagementLocks { getByScope( scope: string, lockName: string, - options?: ManagementLocksGetByScopeOptionalParams + options?: ManagementLocksGetByScopeOptionalParams, ): Promise; /** * When you apply a lock at a parent scope, all child resources inherit the same lock. To create @@ -188,7 +188,7 @@ export interface ManagementLocks { resourceName: string, lockName: string, parameters: ManagementLockObject, - options?: ManagementLocksCreateOrUpdateAtResourceLevelOptionalParams + options?: ManagementLocksCreateOrUpdateAtResourceLevelOptionalParams, ): Promise; /** * To delete management locks, you must have access to Microsoft.Authorization/* or @@ -211,7 +211,7 @@ export interface ManagementLocks { resourceType: string, resourceName: string, lockName: string, - options?: ManagementLocksDeleteAtResourceLevelOptionalParams + options?: ManagementLocksDeleteAtResourceLevelOptionalParams, ): Promise; /** * Get the management lock of a resource or any level below resource. @@ -230,7 +230,7 @@ export interface ManagementLocks { resourceType: string, resourceName: string, lockName: string, - options?: ManagementLocksGetAtResourceLevelOptionalParams + options?: ManagementLocksGetAtResourceLevelOptionalParams, ): Promise; /** * When you apply a lock at a parent scope, all child resources inherit the same lock. To create @@ -245,7 +245,7 @@ export interface ManagementLocks { createOrUpdateAtSubscriptionLevel( lockName: string, parameters: ManagementLockObject, - options?: ManagementLocksCreateOrUpdateAtSubscriptionLevelOptionalParams + options?: ManagementLocksCreateOrUpdateAtSubscriptionLevelOptionalParams, ): Promise; /** * To delete management locks, you must have access to Microsoft.Authorization/* or @@ -256,7 +256,7 @@ export interface ManagementLocks { */ deleteAtSubscriptionLevel( lockName: string, - options?: ManagementLocksDeleteAtSubscriptionLevelOptionalParams + options?: ManagementLocksDeleteAtSubscriptionLevelOptionalParams, ): Promise; /** * Gets a management lock at the subscription level. @@ -265,6 +265,6 @@ export interface ManagementLocks { */ getAtSubscriptionLevel( lockName: string, - options?: ManagementLocksGetAtSubscriptionLevelOptionalParams + options?: ManagementLocksGetAtSubscriptionLevelOptionalParams, ): Promise; } diff --git a/sdk/locks/arm-locks/src/pagingHelper.ts b/sdk/locks/arm-locks/src/pagingHelper.ts index d85fc13bce1ed..205cccc265927 100644 --- a/sdk/locks/arm-locks/src/pagingHelper.ts +++ b/sdk/locks/arm-locks/src/pagingHelper.ts @@ -13,11 +13,11 @@ export interface PageInfo { const pageMap = new WeakMap(); /** - * Given a result page from a pageable operation, returns a - * continuation token that can be used to begin paging from + * Given the last `.value` produced by the `byPage` iterator, + * returns a continuation token that can be used to begin paging from * that point later. - * @param page A result object from calling .byPage() on a paged operation. - * @returns The continuation token that can be passed into byPage(). + * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator. + * @returns The continuation token that can be passed into byPage() during future calls. */ export function getContinuationToken(page: unknown): string | undefined { if (typeof page !== "object" || page === null) { @@ -28,7 +28,7 @@ export function getContinuationToken(page: unknown): string | undefined { export function setContinuationToken( page: unknown, - continuationToken: string | undefined + continuationToken: string | undefined, ): void { if (typeof page !== "object" || page === null || !continuationToken) { return; diff --git a/sdk/locks/arm-locks/test/sampleTest.ts b/sdk/locks/arm-locks/test/sampleTest.ts new file mode 100644 index 0000000000000..d64be981b6946 --- /dev/null +++ b/sdk/locks/arm-locks/test/sampleTest.ts @@ -0,0 +1,43 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { + Recorder, + RecorderStartOptions, + env, +} from "@azure-tools/test-recorder"; +import { assert } from "chai"; +import { Context } from "mocha"; + +const replaceableVariables: Record = { + AZURE_CLIENT_ID: "azure_client_id", + AZURE_CLIENT_SECRET: "azure_client_secret", + AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888", + SUBSCRIPTION_ID: "azure_subscription_id", +}; + +const recorderOptions: RecorderStartOptions = { + envSetupForPlayback: replaceableVariables, +}; + +describe("My test", () => { + let recorder: Recorder; + + beforeEach(async function (this: Context) { + recorder = new Recorder(this.currentTest); + await recorder.start(recorderOptions); + }); + + afterEach(async function () { + await recorder.stop(); + }); + + it("sample test", async function () { + console.log("Hi, I'm a test!"); + }); +}); diff --git a/sdk/locks/arm-locks/tsconfig.json b/sdk/locks/arm-locks/tsconfig.json index 6b255a60b747d..8292b80f5b3ff 100644 --- a/sdk/locks/arm-locks/tsconfig.json +++ b/sdk/locks/arm-locks/tsconfig.json @@ -15,19 +15,13 @@ ], "declaration": true, "outDir": "./dist-esm", - "importHelpers": true, - "paths": { - "@azure/arm-locks": [ - "./src/index" - ] - } + "importHelpers": true }, "include": [ "./src/**/*.ts", "./test/**/*.ts", - "samples-dev/**/*.ts", "./test/**/*.ts", - "samples-dev/**/*.ts" + "./test/**/*.ts" ], "exclude": [ "node_modules" diff --git a/sdk/managedapplications/arm-managedapplications/CHANGELOG.md b/sdk/managedapplications/arm-managedapplications/CHANGELOG.md index 6fbeb26cf5f5b..343e9224608de 100644 --- a/sdk/managedapplications/arm-managedapplications/CHANGELOG.md +++ b/sdk/managedapplications/arm-managedapplications/CHANGELOG.md @@ -1,5 +1,118 @@ # Release History +## 4.0.0 (2024-05-22) + +**Features** + + - Added operation ApplicationDefinitions.beginCreateOrUpdate + - Added operation ApplicationDefinitions.beginCreateOrUpdateAndWait + - Added operation ApplicationDefinitions.beginCreateOrUpdateById + - Added operation ApplicationDefinitions.beginCreateOrUpdateByIdAndWait + - Added operation ApplicationDefinitions.beginDelete + - Added operation ApplicationDefinitions.beginDeleteAndWait + - Added operation ApplicationDefinitions.beginDeleteById + - Added operation ApplicationDefinitions.beginDeleteByIdAndWait + - Added operation Applications.update + - Added operation Applications.updateById + - Added Interface ApplicationProviderAuthorization + - Interface ApplicationDefinitionsCreateOrUpdateByIdOptionalParams has a new optional parameter resumeFrom + - Interface ApplicationDefinitionsCreateOrUpdateByIdOptionalParams has a new optional parameter updateIntervalInMs + - Interface ApplicationDefinitionsCreateOrUpdateOptionalParams has a new optional parameter resumeFrom + - Interface ApplicationDefinitionsCreateOrUpdateOptionalParams has a new optional parameter updateIntervalInMs + - Interface ApplicationDefinitionsDeleteByIdOptionalParams has a new optional parameter resumeFrom + - Interface ApplicationDefinitionsDeleteByIdOptionalParams has a new optional parameter updateIntervalInMs + - Interface ApplicationDefinitionsDeleteOptionalParams has a new optional parameter resumeFrom + - Interface ApplicationDefinitionsDeleteOptionalParams has a new optional parameter updateIntervalInMs + - Interface ErrorResponse has a new optional parameter errorCode + - Interface ErrorResponse has a new optional parameter errorMessage + - Interface ErrorResponse has a new optional parameter httpStatus + - Interface GenericResource has a new optional parameter identity + - Enum KnownProvisioningState has a new value Created + - Enum KnownProvisioningState has a new value Creating + - Enum KnownProvisioningState has a new value Ready + +**Breaking Changes** + + - Removed operation group JitRequests + - Removed operation ApplicationDefinitions.createOrUpdate + - Removed operation ApplicationDefinitions.createOrUpdateById + - Removed operation ApplicationDefinitions.delete + - Removed operation ApplicationDefinitions.deleteById + - Removed operation ApplicationDefinitions.listBySubscription + - Removed operation ApplicationDefinitions.update + - Removed operation ApplicationDefinitions.updateById + - Removed operation Applications.beginRefreshPermissions + - Removed operation Applications.beginRefreshPermissionsAndWait + - Removed operation Applications.beginUpdate + - Removed operation Applications.beginUpdateAccess + - Removed operation Applications.beginUpdateAccessAndWait + - Removed operation Applications.beginUpdateAndWait + - Removed operation Applications.beginUpdateById + - Removed operation Applications.beginUpdateByIdAndWait + - Removed operation Applications.listAllowedUpgradePlans + - Removed operation Applications.listTokens + - Interface Application no longer has parameter artifacts + - Interface Application no longer has parameter authorizations + - Interface Application no longer has parameter billingDetails + - Interface Application no longer has parameter createdBy + - Interface Application no longer has parameter customerSupport + - Interface Application no longer has parameter jitAccessPolicy + - Interface Application no longer has parameter managementMode + - Interface Application no longer has parameter publisherTenantId + - Interface Application no longer has parameter supportUrls + - Interface Application no longer has parameter updatedBy + - Interface ApplicationDefinition no longer has parameter deploymentPolicy + - Interface ApplicationDefinition no longer has parameter lockingPolicy + - Interface ApplicationDefinition no longer has parameter managementPolicy + - Interface ApplicationDefinition no longer has parameter notificationPolicy + - Interface ApplicationDefinition no longer has parameter policies + - Interface ApplicationDefinition no longer has parameter storageAccountId + - Interface ApplicationPatchable no longer has parameter artifacts + - Interface ApplicationPatchable no longer has parameter authorizations + - Interface ApplicationPatchable no longer has parameter billingDetails + - Interface ApplicationPatchable no longer has parameter createdBy + - Interface ApplicationPatchable no longer has parameter customerSupport + - Interface ApplicationPatchable no longer has parameter jitAccessPolicy + - Interface ApplicationPatchable no longer has parameter managementMode + - Interface ApplicationPatchable no longer has parameter publisherTenantId + - Interface ApplicationPatchable no longer has parameter supportUrls + - Interface ApplicationPatchable no longer has parameter updatedBy + - Interface ApplicationsUpdateByIdOptionalParams no longer has parameter resumeFrom + - Interface ApplicationsUpdateByIdOptionalParams no longer has parameter updateIntervalInMs + - Interface ApplicationsUpdateOptionalParams no longer has parameter resumeFrom + - Interface ApplicationsUpdateOptionalParams no longer has parameter updateIntervalInMs + - Interface ErrorResponse no longer has parameter error + - Interface Identity no longer has parameter userAssignedIdentities + - Interface Operation no longer has parameter actionType + - Interface Operation no longer has parameter isDataAction + - Interface Operation no longer has parameter origin + - Interface OperationDisplay no longer has parameter description + - Interface Resource no longer has parameter systemData + - Parameter managedResourceGroupId of interface Application is now required + - Parameter authorizations of interface ApplicationDefinition is now required + - Type of parameter name of interface ApplicationArtifact is changed from ApplicationArtifactName to string + - Type of parameter artifacts of interface ApplicationDefinition is changed from ApplicationDefinitionArtifact[] to ApplicationArtifact[] + - Type of parameter authorizations of interface ApplicationDefinition is changed from ApplicationAuthorization[] to ApplicationProviderAuthorization[] + - Type of parameter isEnabled of interface ApplicationDefinition is changed from boolean to string + - Type of parameter parameters of interface ApplicationsUpdateByIdOptionalParams is changed from ApplicationPatchable to Application + - Type of parameter type of interface Identity is changed from ResourceIdentityType to "SystemAssigned" + - Class ApplicationClient no longer has parameter jitRequests + - Removed Enum KnownActionType + - Removed Enum KnownApplicationArtifactName + - Removed Enum KnownApplicationDefinitionArtifactName + - Removed Enum KnownApplicationManagementMode + - Removed Enum KnownCreatedByType + - Removed Enum KnownDeploymentMode + - Removed Enum KnownJitApprovalMode + - Removed Enum KnownJitApproverType + - Removed Enum KnownJitRequestState + - Removed Enum KnownJitSchedulingType + - Removed Enum KnownOrigin + - Removed Enum KnownStatus + - Removed Enum KnownSubstatus + - Enum KnownProvisioningState no longer has value NotSpecified + + ## 3.0.0 (2023-09-06) **Features** @@ -207,4 +320,4 @@ To understand the detail of the change, please refer to [Changelog](https://aka. To migrate the existing applications to the latest version, please refer to [Migration Guide](https://aka.ms/js-track2-migration-guide). -To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/js/mgmt/quickstart ). +To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/js/mgmt/quickstart). diff --git a/sdk/managedapplications/arm-managedapplications/LICENSE b/sdk/managedapplications/arm-managedapplications/LICENSE index 3a1d9b6f24f73..7d59347409658 100644 --- a/sdk/managedapplications/arm-managedapplications/LICENSE +++ b/sdk/managedapplications/arm-managedapplications/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2023 Microsoft +Copyright (c) 2024 Microsoft Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/sdk/managedapplications/arm-managedapplications/_meta.json b/sdk/managedapplications/arm-managedapplications/_meta.json index 91d39c38b2295..6f675c5d5d6aa 100644 --- a/sdk/managedapplications/arm-managedapplications/_meta.json +++ b/sdk/managedapplications/arm-managedapplications/_meta.json @@ -1,8 +1,8 @@ { - "commit": "baa82396a21dcc1c79a6aeea185589749515012d", - "readme": "specification/solutions/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\\solutions\\resource-manager\\readme.md --use=@autorest/typescript@6.0.8 --generate-sample=true", + "commit": "61db561c7b16295a74a39fa76e58967fb0c621d7", + "readme": "specification/resources/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=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/resources/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.2", - "use": "@autorest/typescript@6.0.8" + "release_tool": "@azure-tools/js-sdk-release-tools@2.7.9", + "use": "@autorest/typescript@^6.0.12" } \ No newline at end of file diff --git a/sdk/managedapplications/arm-managedapplications/package.json b/sdk/managedapplications/arm-managedapplications/package.json index d136d99050f51..02fed51af5e8f 100644 --- a/sdk/managedapplications/arm-managedapplications/package.json +++ b/sdk/managedapplications/arm-managedapplications/package.json @@ -3,7 +3,7 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for ApplicationClient.", - "version": "3.0.0", + "version": "4.0.0", "engines": { "node": ">=18.0.0" }, @@ -12,8 +12,8 @@ "@azure/abort-controller": "^1.0.0", "@azure/core-paging": "^1.2.0", "@azure/core-client": "^1.7.0", - "@azure/core-auth": "^1.3.0", - "@azure/core-rest-pipeline": "^1.12.0", + "@azure/core-auth": "^1.6.0", + "@azure/core-rest-pipeline": "^1.14.0", "tslib": "^2.2.0" }, "keywords": [ @@ -32,19 +32,20 @@ "mkdirp": "^3.0.1", "typescript": "~5.4.5", "uglify-js": "^3.4.9", - "rimraf": "^5.0.5", + "rimraf": "^5.0.0", "dotenv": "^16.0.0", + "@azure/dev-tool": "^1.0.0", "@azure/identity": "^4.0.1", "@azure-tools/test-recorder": "^3.0.0", "@azure-tools/test-credential": "^1.0.0", "mocha": "^10.0.0", + "@types/mocha": "^10.0.0", + "tsx": "^4.7.1", "@types/chai": "^4.2.8", "chai": "^4.2.0", "cross-env": "^7.0.2", "@types/node": "^18.0.0", - "ts-node": "^10.0.0", - "@azure/dev-tool": "^1.0.0", - "@types/mocha": "^10.0.0" + "ts-node": "^10.0.0" }, "repository": { "type": "git", @@ -77,7 +78,6 @@ "pack": "npm pack 2>&1", "extract-api": "dev-tool run extract-api", "lint": "echo skipped", - "audit": "echo skipped", "clean": "rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log", "build:node": "echo skipped", "build:browser": "echo skipped", @@ -106,13 +106,5 @@ ] }, "autoPublish": true, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/managedapplications/arm-managedapplications", - "//sampleConfiguration": { - "productName": "", - "productSlugs": [ - "azure" - ], - "disableDocsMs": true, - "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-managedapplications?view=azure-node-preview" - } -} + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/managedapplications/arm-managedapplications" +} \ No newline at end of file diff --git a/sdk/managedapplications/arm-managedapplications/review/arm-managedapplications.api.md b/sdk/managedapplications/arm-managedapplications/review/arm-managedapplications.api.md index 1d237eded7960..5e482eb6142fc 100644 --- a/sdk/managedapplications/arm-managedapplications/review/arm-managedapplications.api.md +++ b/sdk/managedapplications/arm-managedapplications/review/arm-managedapplications.api.md @@ -10,59 +10,26 @@ import { OperationState } from '@azure/core-lro'; import { PagedAsyncIterableIterator } from '@azure/core-paging'; import { SimplePollerLike } from '@azure/core-lro'; -// @public -export type ActionType = string; - -// @public -export interface AllowedUpgradePlansResult { - value?: Plan[]; -} - // @public export interface Application extends GenericResource { applicationDefinitionId?: string; - readonly artifacts?: ApplicationArtifact[]; - readonly authorizations?: ApplicationAuthorization[]; - readonly billingDetails?: ApplicationBillingDetailsDefinition; - readonly createdBy?: ApplicationClientDetails; - readonly customerSupport?: ApplicationPackageContact; - identity?: Identity; - jitAccessPolicy?: ApplicationJitAccessPolicy; kind: string; - managedResourceGroupId?: string; - readonly managementMode?: ApplicationManagementMode; + managedResourceGroupId: string; readonly outputs?: Record; parameters?: Record; plan?: Plan; readonly provisioningState?: ProvisioningState; - readonly publisherTenantId?: string; - readonly supportUrls?: ApplicationPackageSupportUrls; - readonly updatedBy?: ApplicationClientDetails; } // @public export interface ApplicationArtifact { - name: ApplicationArtifactName; - type: ApplicationArtifactType; - uri: string; -} - -// @public -export type ApplicationArtifactName = string; - -// @public -export type ApplicationArtifactType = "NotSpecified" | "Template" | "Custom"; - -// @public -export interface ApplicationAuthorization { - principalId: string; - roleDefinitionId: string; + name?: string; + type?: ApplicationArtifactType; + uri?: string; } // @public -export interface ApplicationBillingDetailsDefinition { - resourceUsageId?: string; -} +export type ApplicationArtifactType = "Template" | "Custom"; // @public (undocumented) export class ApplicationClient extends coreClient.ServiceClient { @@ -76,20 +43,11 @@ export class ApplicationClient extends coreClient.ServiceClient { applicationDefinitions: ApplicationDefinitions; // (undocumented) applications: Applications; - // (undocumented) - jitRequests: JitRequests; listOperations(options?: ListOperationsOptionalParams): PagedAsyncIterableIterator; // (undocumented) subscriptionId?: string; } -// @public -export interface ApplicationClientDetails { - applicationId?: string; - oid?: string; - puid?: string; -} - // @public export interface ApplicationClientOptionalParams extends coreClient.ServiceClientOptions { $host?: string; @@ -99,62 +57,42 @@ export interface ApplicationClientOptionalParams extends coreClient.ServiceClien // @public export interface ApplicationDefinition extends GenericResource { - artifacts?: ApplicationDefinitionArtifact[]; - authorizations?: ApplicationAuthorization[]; + artifacts?: ApplicationArtifact[]; + authorizations: ApplicationProviderAuthorization[]; createUiDefinition?: Record; - deploymentPolicy?: ApplicationDeploymentPolicy; description?: string; displayName?: string; - isEnabled?: boolean; - lockingPolicy?: ApplicationPackageLockingPolicyDefinition; + isEnabled?: string; lockLevel: ApplicationLockLevel; mainTemplate?: Record; - managementPolicy?: ApplicationManagementPolicy; - notificationPolicy?: ApplicationNotificationPolicy; packageFileUri?: string; - policies?: ApplicationPolicy[]; - storageAccountId?: string; } -// @public -export interface ApplicationDefinitionArtifact { - name: ApplicationDefinitionArtifactName; - type: ApplicationArtifactType; - uri: string; -} - -// @public -export type ApplicationDefinitionArtifactName = string; - // @public export interface ApplicationDefinitionListResult { nextLink?: string; value?: ApplicationDefinition[]; } -// @public -export interface ApplicationDefinitionPatchable { - tags?: { - [propertyName: string]: string; - }; -} - // @public export interface ApplicationDefinitions { - createOrUpdate(resourceGroupName: string, applicationDefinitionName: string, parameters: ApplicationDefinition, options?: ApplicationDefinitionsCreateOrUpdateOptionalParams): Promise; - createOrUpdateById(resourceGroupName: string, applicationDefinitionName: string, parameters: ApplicationDefinition, options?: ApplicationDefinitionsCreateOrUpdateByIdOptionalParams): Promise; - delete(resourceGroupName: string, applicationDefinitionName: string, options?: ApplicationDefinitionsDeleteOptionalParams): Promise; - deleteById(resourceGroupName: string, applicationDefinitionName: string, options?: ApplicationDefinitionsDeleteByIdOptionalParams): Promise; + beginCreateOrUpdate(resourceGroupName: string, applicationDefinitionName: string, parameters: ApplicationDefinition, options?: ApplicationDefinitionsCreateOrUpdateOptionalParams): Promise, ApplicationDefinitionsCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, applicationDefinitionName: string, parameters: ApplicationDefinition, options?: ApplicationDefinitionsCreateOrUpdateOptionalParams): Promise; + beginCreateOrUpdateById(resourceGroupName: string, applicationDefinitionName: string, parameters: ApplicationDefinition, options?: ApplicationDefinitionsCreateOrUpdateByIdOptionalParams): Promise, ApplicationDefinitionsCreateOrUpdateByIdResponse>>; + beginCreateOrUpdateByIdAndWait(resourceGroupName: string, applicationDefinitionName: string, parameters: ApplicationDefinition, options?: ApplicationDefinitionsCreateOrUpdateByIdOptionalParams): Promise; + beginDelete(resourceGroupName: string, applicationDefinitionName: string, options?: ApplicationDefinitionsDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, applicationDefinitionName: string, options?: ApplicationDefinitionsDeleteOptionalParams): Promise; + beginDeleteById(resourceGroupName: string, applicationDefinitionName: string, options?: ApplicationDefinitionsDeleteByIdOptionalParams): Promise, void>>; + beginDeleteByIdAndWait(resourceGroupName: string, applicationDefinitionName: string, options?: ApplicationDefinitionsDeleteByIdOptionalParams): Promise; get(resourceGroupName: string, applicationDefinitionName: string, options?: ApplicationDefinitionsGetOptionalParams): Promise; getById(resourceGroupName: string, applicationDefinitionName: string, options?: ApplicationDefinitionsGetByIdOptionalParams): Promise; listByResourceGroup(resourceGroupName: string, options?: ApplicationDefinitionsListByResourceGroupOptionalParams): PagedAsyncIterableIterator; - listBySubscription(options?: ApplicationDefinitionsListBySubscriptionOptionalParams): PagedAsyncIterableIterator; - update(resourceGroupName: string, applicationDefinitionName: string, parameters: ApplicationDefinitionPatchable, options?: ApplicationDefinitionsUpdateOptionalParams): Promise; - updateById(resourceGroupName: string, applicationDefinitionName: string, parameters: ApplicationDefinitionPatchable, options?: ApplicationDefinitionsUpdateByIdOptionalParams): Promise; } // @public export interface ApplicationDefinitionsCreateOrUpdateByIdOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; } // @public @@ -162,6 +100,8 @@ export type ApplicationDefinitionsCreateOrUpdateByIdResponse = ApplicationDefini // @public export interface ApplicationDefinitionsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; } // @public @@ -169,10 +109,14 @@ export type ApplicationDefinitionsCreateOrUpdateResponse = ApplicationDefinition // @public export interface ApplicationDefinitionsDeleteByIdOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; } // @public export interface ApplicationDefinitionsDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; } // @public @@ -203,47 +147,6 @@ export interface ApplicationDefinitionsListByResourceGroupOptionalParams extends // @public export type ApplicationDefinitionsListByResourceGroupResponse = ApplicationDefinitionListResult; -// @public -export interface ApplicationDefinitionsListBySubscriptionNextOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type ApplicationDefinitionsListBySubscriptionNextResponse = ApplicationDefinitionListResult; - -// @public -export interface ApplicationDefinitionsListBySubscriptionOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type ApplicationDefinitionsListBySubscriptionResponse = ApplicationDefinitionListResult; - -// @public -export interface ApplicationDefinitionsUpdateByIdOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type ApplicationDefinitionsUpdateByIdResponse = ApplicationDefinition; - -// @public -export interface ApplicationDefinitionsUpdateOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type ApplicationDefinitionsUpdateResponse = ApplicationDefinition; - -// @public -export interface ApplicationDeploymentPolicy { - deploymentMode: DeploymentMode; -} - -// @public -export interface ApplicationJitAccessPolicy { - jitAccessEnabled: boolean; - jitApprovalMode?: JitApprovalMode; - jitApprovers?: JitApproverDefinition[]; - maximumJitAccessDuration?: string; -} - // @public export interface ApplicationListResult { nextLink?: string; @@ -253,70 +156,21 @@ export interface ApplicationListResult { // @public export type ApplicationLockLevel = "CanNotDelete" | "ReadOnly" | "None"; -// @public -export type ApplicationManagementMode = string; - -// @public -export interface ApplicationManagementPolicy { - mode?: ApplicationManagementMode; -} - -// @public -export interface ApplicationNotificationEndpoint { - uri: string; -} - -// @public -export interface ApplicationNotificationPolicy { - notificationEndpoints: ApplicationNotificationEndpoint[]; -} - -// @public -export interface ApplicationPackageContact { - contactName?: string; - email: string; - phone: string; -} - -// @public -export interface ApplicationPackageLockingPolicyDefinition { - allowedActions?: string[]; - allowedDataActions?: string[]; -} - -// @public -export interface ApplicationPackageSupportUrls { - governmentCloud?: string; - publicAzure?: string; -} - // @public export interface ApplicationPatchable extends GenericResource { applicationDefinitionId?: string; - readonly artifacts?: ApplicationArtifact[]; - readonly authorizations?: ApplicationAuthorization[]; - readonly billingDetails?: ApplicationBillingDetailsDefinition; - readonly createdBy?: ApplicationClientDetails; - readonly customerSupport?: ApplicationPackageContact; - identity?: Identity; - jitAccessPolicy?: ApplicationJitAccessPolicy; kind?: string; managedResourceGroupId?: string; - readonly managementMode?: ApplicationManagementMode; readonly outputs?: Record; parameters?: Record; plan?: PlanPatchable; readonly provisioningState?: ProvisioningState; - readonly publisherTenantId?: string; - readonly supportUrls?: ApplicationPackageSupportUrls; - readonly updatedBy?: ApplicationClientDetails; } // @public -export interface ApplicationPolicy { - name?: string; - parameters?: string; - policyDefinitionId?: string; +export interface ApplicationProviderAuthorization { + principalId: string; + roleDefinitionId: string; } // @public @@ -329,20 +183,12 @@ export interface Applications { beginDeleteAndWait(resourceGroupName: string, applicationName: string, options?: ApplicationsDeleteOptionalParams): Promise; beginDeleteById(applicationId: string, options?: ApplicationsDeleteByIdOptionalParams): Promise, void>>; beginDeleteByIdAndWait(applicationId: string, options?: ApplicationsDeleteByIdOptionalParams): Promise; - beginRefreshPermissions(resourceGroupName: string, applicationName: string, options?: ApplicationsRefreshPermissionsOptionalParams): Promise, void>>; - beginRefreshPermissionsAndWait(resourceGroupName: string, applicationName: string, options?: ApplicationsRefreshPermissionsOptionalParams): Promise; - beginUpdate(resourceGroupName: string, applicationName: string, options?: ApplicationsUpdateOptionalParams): Promise, ApplicationsUpdateResponse>>; - beginUpdateAccess(resourceGroupName: string, applicationName: string, parameters: UpdateAccessDefinition, options?: ApplicationsUpdateAccessOptionalParams): Promise, void>>; - beginUpdateAccessAndWait(resourceGroupName: string, applicationName: string, parameters: UpdateAccessDefinition, options?: ApplicationsUpdateAccessOptionalParams): Promise; - beginUpdateAndWait(resourceGroupName: string, applicationName: string, options?: ApplicationsUpdateOptionalParams): Promise; - beginUpdateById(applicationId: string, options?: ApplicationsUpdateByIdOptionalParams): Promise, ApplicationsUpdateByIdResponse>>; - beginUpdateByIdAndWait(applicationId: string, options?: ApplicationsUpdateByIdOptionalParams): Promise; get(resourceGroupName: string, applicationName: string, options?: ApplicationsGetOptionalParams): Promise; getById(applicationId: string, options?: ApplicationsGetByIdOptionalParams): Promise; - listAllowedUpgradePlans(resourceGroupName: string, applicationName: string, options?: ApplicationsListAllowedUpgradePlansOptionalParams): Promise; listByResourceGroup(resourceGroupName: string, options?: ApplicationsListByResourceGroupOptionalParams): PagedAsyncIterableIterator; listBySubscription(options?: ApplicationsListBySubscriptionOptionalParams): PagedAsyncIterableIterator; - listTokens(resourceGroupName: string, applicationName: string, parameters: ListTokenRequest, options?: ApplicationsListTokensOptionalParams): Promise; + update(resourceGroupName: string, applicationName: string, options?: ApplicationsUpdateOptionalParams): Promise; + updateById(applicationId: string, options?: ApplicationsUpdateByIdOptionalParams): Promise; } // @public @@ -389,13 +235,6 @@ export interface ApplicationsGetOptionalParams extends coreClient.OperationOptio // @public export type ApplicationsGetResponse = Application; -// @public -export interface ApplicationsListAllowedUpgradePlansOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type ApplicationsListAllowedUpgradePlansResponse = AllowedUpgradePlansResult; - // @public export interface ApplicationsListByResourceGroupNextOptionalParams extends coreClient.OperationOptions { } @@ -424,73 +263,32 @@ export interface ApplicationsListBySubscriptionOptionalParams extends coreClient // @public export type ApplicationsListBySubscriptionResponse = ApplicationListResult; -// @public -export interface ApplicationsListTokensOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type ApplicationsListTokensResponse = ManagedIdentityTokenResult; - -// @public -export interface ApplicationsRefreshPermissionsOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export interface ApplicationsUpdateAccessOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - // @public export interface ApplicationsUpdateByIdOptionalParams extends coreClient.OperationOptions { - parameters?: ApplicationPatchable; - resumeFrom?: string; - updateIntervalInMs?: number; + parameters?: Application; } // @public -export type ApplicationsUpdateByIdResponse = ApplicationPatchable; +export type ApplicationsUpdateByIdResponse = Application; // @public export interface ApplicationsUpdateOptionalParams extends coreClient.OperationOptions { parameters?: ApplicationPatchable; - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type ApplicationsUpdateResponse = ApplicationPatchable; - -// @public -export type CreatedByType = string; - -// @public -export type DeploymentMode = string; - -// @public -export interface ErrorAdditionalInfo { - readonly info?: Record; - readonly type?: string; } // @public -export interface ErrorDetail { - readonly additionalInfo?: ErrorAdditionalInfo[]; - readonly code?: string; - readonly details?: ErrorDetail[]; - readonly message?: string; - readonly target?: string; -} +export type ApplicationsUpdateResponse = Application; // @public export interface ErrorResponse { - error?: ErrorDetail; + errorCode?: string; + errorMessage?: string; + httpStatus?: string; } // @public export interface GenericResource extends Resource { + identity?: Identity; managedBy?: string; sku?: Sku; } @@ -502,241 +300,24 @@ export function getContinuationToken(page: unknown): string | undefined; export interface Identity { readonly principalId?: string; readonly tenantId?: string; - type?: ResourceIdentityType; - userAssignedIdentities?: { - [propertyName: string]: UserAssignedResourceIdentity; - }; -} - -// @public -export type JitApprovalMode = string; - -// @public -export interface JitApproverDefinition { - displayName?: string; - id: string; - type?: JitApproverType; -} - -// @public -export type JitApproverType = string; - -// @public -export interface JitAuthorizationPolicies { - principalId: string; - roleDefinitionId: string; -} - -// @public -export interface JitRequestDefinition extends Resource { - applicationResourceId?: string; - readonly createdBy?: ApplicationClientDetails; - jitAuthorizationPolicies?: JitAuthorizationPolicies[]; - readonly jitRequestState?: JitRequestState; - jitSchedulingPolicy?: JitSchedulingPolicy; - readonly provisioningState?: ProvisioningState; - readonly publisherTenantId?: string; - readonly updatedBy?: ApplicationClientDetails; -} - -// @public -export interface JitRequestDefinitionListResult { - nextLink?: string; - value?: JitRequestDefinition[]; -} - -// @public -export interface JitRequestMetadata { - originRequestId?: string; - requestorId?: string; - subjectDisplayName?: string; - tenantDisplayName?: string; -} - -// @public -export interface JitRequestPatchable { - tags?: { - [propertyName: string]: string; - }; -} - -// @public -export interface JitRequests { - beginCreateOrUpdate(resourceGroupName: string, jitRequestName: string, parameters: JitRequestDefinition, options?: JitRequestsCreateOrUpdateOptionalParams): Promise, JitRequestsCreateOrUpdateResponse>>; - beginCreateOrUpdateAndWait(resourceGroupName: string, jitRequestName: string, parameters: JitRequestDefinition, options?: JitRequestsCreateOrUpdateOptionalParams): Promise; - delete(resourceGroupName: string, jitRequestName: string, options?: JitRequestsDeleteOptionalParams): Promise; - get(resourceGroupName: string, jitRequestName: string, options?: JitRequestsGetOptionalParams): Promise; - listByResourceGroup(resourceGroupName: string, options?: JitRequestsListByResourceGroupOptionalParams): Promise; - listBySubscription(options?: JitRequestsListBySubscriptionOptionalParams): Promise; - update(resourceGroupName: string, jitRequestName: string, parameters: JitRequestPatchable, options?: JitRequestsUpdateOptionalParams): Promise; -} - -// @public -export interface JitRequestsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type JitRequestsCreateOrUpdateResponse = JitRequestDefinition; - -// @public -export interface JitRequestsDeleteOptionalParams extends coreClient.OperationOptions { -} - -// @public -export interface JitRequestsGetOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type JitRequestsGetResponse = JitRequestDefinition; - -// @public -export interface JitRequestsListByResourceGroupOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type JitRequestsListByResourceGroupResponse = JitRequestDefinitionListResult; - -// @public -export interface JitRequestsListBySubscriptionOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type JitRequestsListBySubscriptionResponse = JitRequestDefinitionListResult; - -// @public -export type JitRequestState = string; - -// @public -export interface JitRequestsUpdateOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type JitRequestsUpdateResponse = JitRequestDefinition; - -// @public -export interface JitSchedulingPolicy { - duration: string; - startTime: Date; - type: JitSchedulingType; -} - -// @public -export type JitSchedulingType = string; - -// @public -export enum KnownActionType { - Internal = "Internal" -} - -// @public -export enum KnownApplicationArtifactName { - Authorizations = "Authorizations", - CustomRoleDefinition = "CustomRoleDefinition", - NotSpecified = "NotSpecified", - ViewDefinition = "ViewDefinition" -} - -// @public -export enum KnownApplicationDefinitionArtifactName { - ApplicationResourceTemplate = "ApplicationResourceTemplate", - CreateUiDefinition = "CreateUiDefinition", - MainTemplateParameters = "MainTemplateParameters", - NotSpecified = "NotSpecified" -} - -// @public -export enum KnownApplicationManagementMode { - Managed = "Managed", - NotSpecified = "NotSpecified", - Unmanaged = "Unmanaged" -} - -// @public -export enum KnownCreatedByType { - Application = "Application", - Key = "Key", - ManagedIdentity = "ManagedIdentity", - User = "User" -} - -// @public -export enum KnownDeploymentMode { - Complete = "Complete", - Incremental = "Incremental", - NotSpecified = "NotSpecified" -} - -// @public -export enum KnownJitApprovalMode { - AutoApprove = "AutoApprove", - ManualApprove = "ManualApprove", - NotSpecified = "NotSpecified" -} - -// @public -export enum KnownJitApproverType { - Group = "group", - User = "user" -} - -// @public -export enum KnownJitRequestState { - Approved = "Approved", - Canceled = "Canceled", - Denied = "Denied", - Expired = "Expired", - Failed = "Failed", - NotSpecified = "NotSpecified", - Pending = "Pending", - Timeout = "Timeout" -} - -// @public -export enum KnownJitSchedulingType { - NotSpecified = "NotSpecified", - Once = "Once", - Recurring = "Recurring" -} - -// @public -export enum KnownOrigin { - System = "system", - User = "user", - UserSystem = "user,system" + type?: "SystemAssigned"; } // @public export enum KnownProvisioningState { Accepted = "Accepted", Canceled = "Canceled", + Created = "Created", + Creating = "Creating", Deleted = "Deleted", Deleting = "Deleting", Failed = "Failed", - NotSpecified = "NotSpecified", + Ready = "Ready", Running = "Running", Succeeded = "Succeeded", Updating = "Updating" } -// @public -export enum KnownStatus { - Elevate = "Elevate", - NotSpecified = "NotSpecified", - Remove = "Remove" -} - -// @public -export enum KnownSubstatus { - Approved = "Approved", - Denied = "Denied", - Expired = "Expired", - Failed = "Failed", - NotSpecified = "NotSpecified", - Timeout = "Timeout" -} - // @public export interface ListOperationsNextOptionalParams extends coreClient.OperationOptions { } @@ -751,54 +332,25 @@ export interface ListOperationsOptionalParams extends coreClient.OperationOption // @public export type ListOperationsResponse = OperationListResult; -// @public -export interface ListTokenRequest { - authorizationAudience?: string; - userAssignedIdentities?: string[]; -} - -// @public -export interface ManagedIdentityToken { - accessToken?: string; - authorizationAudience?: string; - expiresIn?: string; - expiresOn?: string; - notBefore?: string; - resourceId?: string; - tokenType?: string; -} - -// @public -export interface ManagedIdentityTokenResult { - value?: ManagedIdentityToken[]; -} - // @public export interface Operation { - readonly actionType?: ActionType; display?: OperationDisplay; - readonly isDataAction?: boolean; - readonly name?: string; - readonly origin?: Origin; + name?: string; } // @public export interface OperationDisplay { - readonly description?: string; - readonly operation?: string; - readonly provider?: string; - readonly resource?: string; + operation?: string; + provider?: string; + resource?: string; } // @public export interface OperationListResult { - readonly nextLink?: string; - readonly value?: Operation[]; + nextLink?: string; + value?: Operation[]; } -// @public -export type Origin = string; - // @public export interface Plan { name: string; @@ -825,16 +377,12 @@ export interface Resource { readonly id?: string; location?: string; readonly name?: string; - readonly systemData?: SystemData; tags?: { [propertyName: string]: string; }; readonly type?: string; } -// @public -export type ResourceIdentityType = "SystemAssigned" | "UserAssigned" | "SystemAssigned, UserAssigned" | "None"; - // @public export interface Sku { capacity?: number; @@ -845,36 +393,6 @@ export interface Sku { tier?: string; } -// @public -export type Status = string; - -// @public -export type Substatus = string; - -// @public -export interface SystemData { - createdAt?: Date; - createdBy?: string; - createdByType?: CreatedByType; - lastModifiedAt?: Date; - lastModifiedBy?: string; - lastModifiedByType?: CreatedByType; -} - -// @public -export interface UpdateAccessDefinition { - approver?: string; - metadata: JitRequestMetadata; - status: Status; - subStatus: Substatus; -} - -// @public -export interface UserAssignedResourceIdentity { - readonly principalId?: string; - readonly tenantId?: string; -} - // (No @packageDocumentation comment for this package) ``` diff --git a/sdk/managedapplications/arm-managedapplications/src/applicationClient.ts b/sdk/managedapplications/arm-managedapplications/src/applicationClient.ts index 1f70f932a0880..f19fb0c0accfa 100644 --- a/sdk/managedapplications/arm-managedapplications/src/applicationClient.ts +++ b/sdk/managedapplications/arm-managedapplications/src/applicationClient.ts @@ -11,21 +11,13 @@ import * as coreRestPipeline from "@azure/core-rest-pipeline"; import { PipelineRequest, PipelineResponse, - SendRequest + SendRequest, } from "@azure/core-rest-pipeline"; import * as coreAuth from "@azure/core-auth"; import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; import { setContinuationToken } from "./pagingHelper"; -import { - ApplicationsImpl, - ApplicationDefinitionsImpl, - JitRequestsImpl -} from "./operations"; -import { - Applications, - ApplicationDefinitions, - JitRequests -} from "./operationsInterfaces"; +import { ApplicationsImpl, ApplicationDefinitionsImpl } from "./operations"; +import { Applications, ApplicationDefinitions } from "./operationsInterfaces"; import * as Parameters from "./models/parameters"; import * as Mappers from "./models/mappers"; import { @@ -34,7 +26,7 @@ import { ListOperationsNextOptionalParams, ListOperationsOptionalParams, ListOperationsResponse, - ListOperationsNextResponse + ListOperationsNextResponse, } from "./models"; /// @@ -52,16 +44,16 @@ export class ApplicationClient extends coreClient.ServiceClient { constructor( credentials: coreAuth.TokenCredential, subscriptionId: string, - options?: ApplicationClientOptionalParams + options?: ApplicationClientOptionalParams, ); constructor( credentials: coreAuth.TokenCredential, - options?: ApplicationClientOptionalParams + options?: ApplicationClientOptionalParams, ); constructor( credentials: coreAuth.TokenCredential, subscriptionIdOrOptions?: ApplicationClientOptionalParams | string, - options?: ApplicationClientOptionalParams + options?: ApplicationClientOptionalParams, ) { if (credentials === undefined) { throw new Error("'credentials' cannot be null"); @@ -81,10 +73,10 @@ export class ApplicationClient extends coreClient.ServiceClient { } const defaults: ApplicationClientOptionalParams = { requestContentType: "application/json; charset=utf-8", - credential: credentials + credential: credentials, }; - const packageDetails = `azsdk-js-arm-managedapplications/3.0.0`; + const packageDetails = `azsdk-js-arm-managedapplications/4.0.0`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -94,20 +86,21 @@ export class ApplicationClient extends coreClient.ServiceClient { ...defaults, ...options, userAgentOptions: { - userAgentPrefix + userAgentPrefix, }, endpoint: - options.endpoint ?? options.baseUri ?? "https://management.azure.com" + options.endpoint ?? options.baseUri ?? "https://management.azure.com", }; super(optionsWithDefaults); let bearerTokenAuthenticationPolicyFound: boolean = false; if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) { - const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies(); + const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = + options.pipeline.getOrderedPolicies(); bearerTokenAuthenticationPolicyFound = pipelinePolicies.some( (pipelinePolicy) => pipelinePolicy.name === - coreRestPipeline.bearerTokenAuthenticationPolicyName + coreRestPipeline.bearerTokenAuthenticationPolicyName, ); } if ( @@ -117,7 +110,7 @@ export class ApplicationClient extends coreClient.ServiceClient { !bearerTokenAuthenticationPolicyFound ) { this.pipeline.removePolicy({ - name: coreRestPipeline.bearerTokenAuthenticationPolicyName + name: coreRestPipeline.bearerTokenAuthenticationPolicyName, }); this.pipeline.addPolicy( coreRestPipeline.bearerTokenAuthenticationPolicy({ @@ -127,9 +120,9 @@ export class ApplicationClient extends coreClient.ServiceClient { `${optionsWithDefaults.endpoint}/.default`, challengeCallbacks: { authorizeRequestOnChallenge: - coreClient.authorizeRequestOnClaimChallenge - } - }) + coreClient.authorizeRequestOnClaimChallenge, + }, + }), ); } // Parameter assignments @@ -137,10 +130,9 @@ export class ApplicationClient extends coreClient.ServiceClient { // Assigning values to Constant parameters this.$host = options.$host || "https://management.azure.com"; - this.apiVersion = options.apiVersion || "2021-07-01"; + this.apiVersion = options.apiVersion || "2018-06-01"; this.applications = new ApplicationsImpl(this); this.applicationDefinitions = new ApplicationDefinitionsImpl(this); - this.jitRequests = new JitRequestsImpl(this); this.addCustomApiVersionPolicy(options.apiVersion); } @@ -153,7 +145,7 @@ export class ApplicationClient extends coreClient.ServiceClient { name: "CustomApiVersionPolicy", async sendRequest( request: PipelineRequest, - next: SendRequest + next: SendRequest, ): Promise { const param = request.url.split("?"); if (param.length > 1) { @@ -167,7 +159,7 @@ export class ApplicationClient extends coreClient.ServiceClient { request.url = param[0] + "?" + newParams.join("&"); } return next(request); - } + }, }; this.pipeline.addPolicy(apiVersionPolicy); } @@ -177,7 +169,7 @@ export class ApplicationClient extends coreClient.ServiceClient { * @param options The options parameters. */ public listOperations( - options?: ListOperationsOptionalParams + options?: ListOperationsOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listOperationsPagingAll(options); return { @@ -192,13 +184,13 @@ export class ApplicationClient extends coreClient.ServiceClient { throw new Error("maxPageSize is not supported by this operation."); } return this.listOperationsPagingPage(options, settings); - } + }, }; } private async *listOperationsPagingPage( options?: ListOperationsOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ListOperationsResponse; let continuationToken = settings?.continuationToken; @@ -219,7 +211,7 @@ export class ApplicationClient extends coreClient.ServiceClient { } private async *listOperationsPagingAll( - options?: ListOperationsOptionalParams + options?: ListOperationsOptionalParams, ): AsyncIterableIterator { for await (const page of this.listOperationsPagingPage(options)) { yield* page; @@ -231,7 +223,7 @@ export class ApplicationClient extends coreClient.ServiceClient { * @param options The options parameters. */ private _listOperations( - options?: ListOperationsOptionalParams + options?: ListOperationsOptionalParams, ): Promise { return this.sendOperationRequest({ options }, listOperationsOperationSpec); } @@ -243,17 +235,16 @@ export class ApplicationClient extends coreClient.ServiceClient { */ private _listOperationsNext( nextLink: string, - options?: ListOperationsNextOptionalParams + options?: ListOperationsNextOptionalParams, ): Promise { return this.sendOperationRequest( { nextLink, options }, - listOperationsNextOperationSpec + listOperationsNextOperationSpec, ); } applications: Applications; applicationDefinitions: ApplicationDefinitions; - jitRequests: JitRequests; } // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); @@ -263,29 +254,23 @@ const listOperationsOperationSpec: coreClient.OperationSpec = { httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.OperationListResult + bodyMapper: Mappers.OperationListResult, }, - default: { - bodyMapper: Mappers.ErrorResponse - } }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOperationsNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.OperationListResult + bodyMapper: Mappers.OperationListResult, }, - default: { - bodyMapper: Mappers.ErrorResponse - } }, urlParameters: [Parameters.$host, Parameters.nextLink], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/managedapplications/arm-managedapplications/src/lroImpl.ts b/sdk/managedapplications/arm-managedapplications/src/lroImpl.ts index dd803cd5e28c3..b27f5ac7209be 100644 --- a/sdk/managedapplications/arm-managedapplications/src/lroImpl.ts +++ b/sdk/managedapplications/arm-managedapplications/src/lroImpl.ts @@ -28,15 +28,15 @@ export function createLroSpec(inputs: { sendInitialRequest: () => sendOperationFn(args, spec), sendPollRequest: ( path: string, - options?: { abortSignal?: AbortSignalLike } + options?: { abortSignal?: AbortSignalLike }, ) => { const { requestBody, ...restSpec } = spec; return sendOperationFn(args, { ...restSpec, httpMethod: "GET", path, - abortSignal: options?.abortSignal + abortSignal: options?.abortSignal, }); - } + }, }; } diff --git a/sdk/managedapplications/arm-managedapplications/src/models/index.ts b/sdk/managedapplications/arm-managedapplications/src/models/index.ts index 0882498520ef9..c0cd856834c9b 100644 --- a/sdk/managedapplications/arm-managedapplications/src/models/index.ts +++ b/sdk/managedapplications/arm-managedapplications/src/models/index.ts @@ -8,191 +8,30 @@ import * as coreClient from "@azure/core-client"; -/** A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of results. */ +/** Result of the request to list Microsoft.Solutions operations. It contains a list of operations and a URL link to get the next set of results. */ export interface OperationListResult { - /** - * List of operations supported by the resource provider - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly value?: Operation[]; - /** - * URL to get the next set of operation list results (if there are any). - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly nextLink?: string; + /** List of Microsoft.Solutions operations. */ + value?: Operation[]; + /** URL to get the next set of operation list results if there are any. */ + nextLink?: string; } -/** Details of a REST API operation, returned from the Resource Provider Operations API */ +/** Microsoft.Solutions operation */ export interface Operation { - /** - * The name of the operation, as per Resource-Based Access Control (RBAC). Examples: "Microsoft.Compute/virtualMachines/write", "Microsoft.Compute/virtualMachines/capture/action" - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly name?: string; - /** - * Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for ARM/control-plane operations. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly isDataAction?: boolean; - /** Localized display information for this particular operation. */ + /** Operation name: {provider}/{resource}/{operation} */ + name?: string; + /** The object that represents the operation. */ display?: OperationDisplay; - /** - * The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is "user,system" - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly origin?: Origin; - /** - * Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly actionType?: ActionType; } -/** Localized display information for this particular operation. */ +/** The object that represents the operation. */ export interface OperationDisplay { - /** - * The localized friendly form of the resource provider name, e.g. "Microsoft Monitoring Insights" or "Microsoft Compute". - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly provider?: string; - /** - * The localized friendly name of the resource type related to this operation. E.g. "Virtual Machines" or "Job Schedule Collections". - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly resource?: string; - /** - * The concise, localized friendly name for the operation; suitable for dropdowns. E.g. "Create or Update Virtual Machine", "Restart Virtual Machine". - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly operation?: string; - /** - * The short, localized friendly description of the operation; suitable for tool tips and detailed views. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly description?: string; -} - -/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */ -export interface ErrorResponse { - /** The error object. */ - error?: ErrorDetail; -} - -/** The error detail. */ -export interface ErrorDetail { - /** - * The error code. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly code?: string; - /** - * The error message. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly message?: string; - /** - * The error target. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly target?: string; - /** - * The error details. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly details?: ErrorDetail[]; - /** - * The error additional info. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly additionalInfo?: ErrorAdditionalInfo[]; -} - -/** The resource management error additional info. */ -export interface ErrorAdditionalInfo { - /** - * The additional info type. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly type?: string; - /** - * The additional info. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly info?: Record; -} - -/** Managed application billing details definition. */ -export interface ApplicationBillingDetailsDefinition { - /** The managed application resource usage Id. */ - resourceUsageId?: string; -} - -/** Managed application Jit access policy. */ -export interface ApplicationJitAccessPolicy { - /** Whether the JIT access is enabled. */ - jitAccessEnabled: boolean; - /** JIT approval mode. */ - jitApprovalMode?: JitApprovalMode; - /** The JIT approvers */ - jitApprovers?: JitApproverDefinition[]; - /** The maximum duration JIT access is granted. This is an ISO8601 time period value. */ - maximumJitAccessDuration?: string; -} - -/** JIT approver definition. */ -export interface JitApproverDefinition { - /** The approver service principal Id. */ - id: string; - /** The approver type. */ - type?: JitApproverType; - /** The approver display name. */ - displayName?: string; -} - -/** The managed application provider authorization. */ -export interface ApplicationAuthorization { - /** The provider's principal identifier. This is the identity that the provider will use to call ARM to manage the managed application resources. */ - principalId: string; - /** The provider's role definition identifier. This role will define all the permissions that the provider must have on the managed application's container resource group. This role definition cannot have permission to delete the resource group. */ - roleDefinitionId: string; -} - -/** The application package contact information. */ -export interface ApplicationPackageContact { - /** The contact name. */ - contactName?: string; - /** The contact email. */ - email: string; - /** The contact phone number. */ - phone: string; -} - -/** The appliance package support URLs. */ -export interface ApplicationPackageSupportUrls { - /** The public azure support URL. */ - publicAzure?: string; - /** The government cloud support URL. */ - governmentCloud?: string; -} - -/** Managed application artifact. */ -export interface ApplicationArtifact { - /** The managed application artifact name. */ - name: ApplicationArtifactName; - /** The managed application artifact blob uri. */ - uri: string; - /** The managed application artifact type. */ - type: ApplicationArtifactType; -} - -/** The application client details to track the entity creating/updating the managed app resource. */ -export interface ApplicationClientDetails { - /** The client Oid. */ - oid?: string; - /** The client Puid */ - puid?: string; - /** The client application Id. */ - applicationId?: string; + /** Service provider: Microsoft.Solutions */ + provider?: string; + /** Resource on which the operation is performed: Application, JitRequest, etc. */ + resource?: string; + /** Operation type: Read, write, delete, etc. */ + operation?: string; } /** Plan for the managed application. */ @@ -209,40 +48,6 @@ export interface Plan { version: string; } -/** Identity for the resource. */ -export interface Identity { - /** - * The principal ID of resource identity. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly principalId?: string; - /** - * The tenant ID of resource. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly tenantId?: string; - /** The identity type. */ - type?: ResourceIdentityType; - /** The list of user identities associated with the resource. The user identity dictionary key references will be resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. */ - userAssignedIdentities?: { - [propertyName: string]: UserAssignedResourceIdentity; - }; -} - -/** Represents the user assigned identity that is contained within the UserAssignedIdentities dictionary on ResourceIdentity */ -export interface UserAssignedResourceIdentity { - /** - * The principal id of user assigned identity. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly principalId?: string; - /** - * The tenant id of user assigned identity. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly tenantId?: string; -} - /** SKU for the resource. */ export interface Sku { /** The SKU name. */ @@ -259,6 +64,22 @@ export interface Sku { capacity?: number; } +/** Identity for the resource. */ +export interface Identity { + /** + * The principal ID of resource identity. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly principalId?: string; + /** + * The tenant ID of resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly tenantId?: string; + /** The identity type. */ + type?: "SystemAssigned"; +} + /** Resource information. */ export interface Resource { /** @@ -280,27 +101,16 @@ export interface Resource { location?: string; /** Resource tags */ tags?: { [propertyName: string]: string }; - /** - * Metadata pertaining to creation and last modification of the resource. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly systemData?: SystemData; } -/** Metadata pertaining to creation and last modification of the resource. */ -export interface SystemData { - /** The identity that created the resource. */ - createdBy?: string; - /** The type of identity that created the resource. */ - createdByType?: CreatedByType; - /** The timestamp of resource creation (UTC). */ - createdAt?: Date; - /** The identity that last modified the resource. */ - lastModifiedBy?: string; - /** The type of identity that last modified the resource. */ - lastModifiedByType?: CreatedByType; - /** The timestamp of resource last modification (UTC) */ - lastModifiedAt?: Date; +/** Error response indicates managed application is not able to process the incoming request. The reason is provided in the error message. */ +export interface ErrorResponse { + /** Http status code. */ + httpStatus?: string; + /** Error code. */ + errorCode?: string; + /** Error message indicating why the operation failed. */ + errorMessage?: string; } /** Plan for the managed application. */ @@ -317,62 +127,22 @@ export interface PlanPatchable { version?: string; } -/** Application definition artifact. */ -export interface ApplicationDefinitionArtifact { - /** The managed application definition artifact name. */ - name: ApplicationDefinitionArtifactName; - /** The managed application definition artifact blob uri. */ - uri: string; - /** The managed application definition artifact type. */ - type: ApplicationArtifactType; -} - -/** Managed application notification policy. */ -export interface ApplicationNotificationPolicy { - /** The managed application notification endpoint. */ - notificationEndpoints: ApplicationNotificationEndpoint[]; -} - -/** Managed application notification endpoint. */ -export interface ApplicationNotificationEndpoint { - /** The managed application notification endpoint uri. */ - uri: string; -} - -/** Managed application locking policy. */ -export interface ApplicationPackageLockingPolicyDefinition { - /** The deny assignment excluded actions. */ - allowedActions?: string[]; - /** The deny assignment excluded data actions. */ - allowedDataActions?: string[]; -} - -/** Managed application deployment policy. */ -export interface ApplicationDeploymentPolicy { - /** The managed application deployment mode. */ - deploymentMode: DeploymentMode; -} - -/** Managed application management policy. */ -export interface ApplicationManagementPolicy { - /** The managed application management mode. */ - mode?: ApplicationManagementMode; +/** The managed application provider authorization. */ +export interface ApplicationProviderAuthorization { + /** The provider's principal identifier. This is the identity that the provider will use to call ARM to manage the managed application resources. */ + principalId: string; + /** The provider's role definition identifier. This role will define all the permissions that the provider must have on the managed application's container resource group. This role definition cannot have permission to delete the resource group. */ + roleDefinitionId: string; } -/** Managed application policy. */ -export interface ApplicationPolicy { - /** The policy name */ +/** Managed application artifact. */ +export interface ApplicationArtifact { + /** The managed application artifact name. */ name?: string; - /** The policy definition Id. */ - policyDefinitionId?: string; - /** The policy parameters. */ - parameters?: string; -} - -/** Information about an application definition request. */ -export interface ApplicationDefinitionPatchable { - /** Application definition tags */ - tags?: { [propertyName: string]: string }; + /** The managed application artifact blob uri. */ + uri?: string; + /** The managed application artifact type. */ + type?: ApplicationArtifactType; } /** List of managed application definitions. */ @@ -391,141 +161,14 @@ export interface ApplicationListResult { nextLink?: string; } -/** The JIT authorization policies. */ -export interface JitAuthorizationPolicies { - /** The the principal id that will be granted JIT access. */ - principalId: string; - /** The role definition id that will be granted to the Principal. */ - roleDefinitionId: string; -} - -/** The JIT scheduling policies. */ -export interface JitSchedulingPolicy { - /** The type of JIT schedule. */ - type: JitSchedulingType; - /** The required duration of the JIT request. */ - duration: string; - /** The start time of the request. */ - startTime: Date; -} - -/** Information about JIT request. */ -export interface JitRequestPatchable { - /** Jit request tags */ - tags?: { [propertyName: string]: string }; -} - -/** List of JIT requests. */ -export interface JitRequestDefinitionListResult { - /** The array of Jit request definition. */ - value?: JitRequestDefinition[]; - /** The URL to use for getting the next set of results. */ - nextLink?: string; -} - -/** The array of plan. */ -export interface AllowedUpgradePlansResult { - /** The array of plans. */ - value?: Plan[]; -} - -/** Update access request definition. */ -export interface UpdateAccessDefinition { - /** The approver name. */ - approver?: string; - /** The JIT request metadata. */ - metadata: JitRequestMetadata; - /** The JIT status. */ - status: Status; - /** The JIT status. */ - subStatus: Substatus; -} - -/** The JIT request metadata. */ -export interface JitRequestMetadata { - /** The origin request id. */ - originRequestId?: string; - /** The requestor id. */ - requestorId?: string; - /** The publisher's tenant name. */ - tenantDisplayName?: string; - /** The subject display name. */ - subjectDisplayName?: string; -} - -/** List token request body. */ -export interface ListTokenRequest { - /** The authorization audience. */ - authorizationAudience?: string; - /** The user assigned identities. */ - userAssignedIdentities?: string[]; -} - -/** The array of managed identity tokens. */ -export interface ManagedIdentityTokenResult { - /** The array of managed identity tokens. */ - value?: ManagedIdentityToken[]; -} - -/** The managed identity token for the managed app resource. */ -export interface ManagedIdentityToken { - /** The requested access token. */ - accessToken?: string; - /** The number of seconds the access token will be valid. */ - expiresIn?: string; - /** The timespan when the access token expires. This is represented as the number of seconds from epoch. */ - expiresOn?: string; - /** The timespan when the access token takes effect. This is represented as the number of seconds from epoch. */ - notBefore?: string; - /** The aud (audience) the access token was request for. This is the same as what was provided in the listTokens request. */ - authorizationAudience?: string; - /** The Azure resource ID for the issued token. This is either the managed application ID or the user-assigned identity ID. */ - resourceId?: string; - /** The type of the token. */ - tokenType?: string; -} - /** Resource information. */ export interface GenericResource extends Resource { /** ID of the resource that manages this resource. */ managedBy?: string; /** The SKU of the resource. */ sku?: Sku; -} - -/** Information about JIT request definition. */ -export interface JitRequestDefinition extends Resource { - /** The parent application id. */ - applicationResourceId?: string; - /** - * The publisher tenant id. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly publisherTenantId?: string; - /** The JIT authorization policies. */ - jitAuthorizationPolicies?: JitAuthorizationPolicies[]; - /** The JIT request properties. */ - jitSchedulingPolicy?: JitSchedulingPolicy; - /** - * The JIT request provisioning state. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly provisioningState?: ProvisioningState; - /** - * The JIT request state. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly jitRequestState?: JitRequestState; - /** - * The client entity that created the JIT request. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly createdBy?: ApplicationClientDetails; - /** - * The client entity that last updated the JIT request. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly updatedBy?: ApplicationClientDetails; + /** The identity of the resource. */ + identity?: Identity; } /** Information about managed application. */ @@ -534,10 +177,8 @@ export interface Application extends GenericResource { plan?: Plan; /** The kind of the managed application. Allowed values are MarketPlace and ServiceCatalog. */ kind: string; - /** The identity of the resource. */ - identity?: Identity; /** The managed resource group Id. */ - managedResourceGroupId?: string; + managedResourceGroupId: string; /** The fully qualified path of managed application definition Id. */ applicationDefinitionId?: string; /** Name and value pairs that define the managed application parameters. It can be a JObject or a well formed JSON string. */ @@ -552,53 +193,6 @@ export interface Application extends GenericResource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly provisioningState?: ProvisioningState; - /** - * The managed application billing details. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly billingDetails?: ApplicationBillingDetailsDefinition; - /** The managed application Jit access policy. */ - jitAccessPolicy?: ApplicationJitAccessPolicy; - /** - * The publisher tenant Id. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly publisherTenantId?: string; - /** - * The read-only authorizations property that is retrieved from the application package. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly authorizations?: ApplicationAuthorization[]; - /** - * The managed application management mode. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly managementMode?: ApplicationManagementMode; - /** - * The read-only customer support property that is retrieved from the application package. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly customerSupport?: ApplicationPackageContact; - /** - * The read-only support URLs property that is retrieved from the application package. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly supportUrls?: ApplicationPackageSupportUrls; - /** - * The collection of managed application artifacts. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly artifacts?: ApplicationArtifact[]; - /** - * The client entity that created the JIT request. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly createdBy?: ApplicationClientDetails; - /** - * The client entity that last updated the JIT request. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly updatedBy?: ApplicationClientDetails; } /** Information about managed application. */ @@ -607,8 +201,6 @@ export interface ApplicationPatchable extends GenericResource { plan?: PlanPatchable; /** The kind of the managed application. Allowed values are MarketPlace and ServiceCatalog. */ kind?: string; - /** The identity of the resource. */ - identity?: Identity; /** The managed resource group Id. */ managedResourceGroupId?: string; /** The fully qualified path of managed application definition Id. */ @@ -625,53 +217,6 @@ export interface ApplicationPatchable extends GenericResource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly provisioningState?: ProvisioningState; - /** - * The managed application billing details. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly billingDetails?: ApplicationBillingDetailsDefinition; - /** The managed application Jit access policy. */ - jitAccessPolicy?: ApplicationJitAccessPolicy; - /** - * The publisher tenant Id. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly publisherTenantId?: string; - /** - * The read-only authorizations property that is retrieved from the application package. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly authorizations?: ApplicationAuthorization[]; - /** - * The managed application management mode. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly managementMode?: ApplicationManagementMode; - /** - * The read-only customer support property that is retrieved from the application package. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly customerSupport?: ApplicationPackageContact; - /** - * The read-only support URLs property that is retrieved from the application package. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly supportUrls?: ApplicationPackageSupportUrls; - /** - * The collection of managed application artifacts. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly artifacts?: ApplicationArtifact[]; - /** - * The client entity that created the JIT request. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly createdBy?: ApplicationClientDetails; - /** - * The client entity that last updated the JIT request. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly updatedBy?: ApplicationClientDetails; } /** Information about managed application definition. */ @@ -681,77 +226,33 @@ export interface ApplicationDefinition extends GenericResource { /** The managed application definition display name. */ displayName?: string; /** A value indicating whether the package is enabled or not. */ - isEnabled?: boolean; + isEnabled?: string; /** The managed application provider authorizations. */ - authorizations?: ApplicationAuthorization[]; + authorizations: ApplicationProviderAuthorization[]; /** The collection of managed application artifacts. The portal will use the files specified as artifacts to construct the user experience of creating a managed application from a managed application definition. */ - artifacts?: ApplicationDefinitionArtifact[]; + artifacts?: ApplicationArtifact[]; /** The managed application definition description. */ description?: string; /** The managed application definition package file Uri. Use this element */ packageFileUri?: string; - /** The storage account id for bring your own storage scenario. */ - storageAccountId?: string; /** The inline main template json which has resources to be provisioned. It can be a JObject or well-formed JSON string. */ mainTemplate?: Record; /** The createUiDefinition json for the backing template with Microsoft.Solutions/applications resource. It can be a JObject or well-formed JSON string. */ createUiDefinition?: Record; - /** The managed application notification policy. */ - notificationPolicy?: ApplicationNotificationPolicy; - /** The managed application locking policy. */ - lockingPolicy?: ApplicationPackageLockingPolicyDefinition; - /** The managed application deployment policy. */ - deploymentPolicy?: ApplicationDeploymentPolicy; - /** The managed application management policy that determines publisher's access to the managed resource group. */ - managementPolicy?: ApplicationManagementPolicy; - /** The managed application provider policies. */ - policies?: ApplicationPolicy[]; -} - -/** Known values of {@link Origin} that the service accepts. */ -export enum KnownOrigin { - /** User */ - User = "user", - /** System */ - System = "system", - /** UserSystem */ - UserSystem = "user,system" } -/** - * Defines values for Origin. \ - * {@link KnownOrigin} can be used interchangeably with Origin, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **user** \ - * **system** \ - * **user,system** - */ -export type Origin = string; - -/** Known values of {@link ActionType} that the service accepts. */ -export enum KnownActionType { - /** Internal */ - Internal = "Internal" -} - -/** - * Defines values for ActionType. \ - * {@link KnownActionType} can be used interchangeably with ActionType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Internal** - */ -export type ActionType = string; - /** Known values of {@link ProvisioningState} that the service accepts. */ export enum KnownProvisioningState { - /** NotSpecified */ - NotSpecified = "NotSpecified", /** Accepted */ Accepted = "Accepted", /** Running */ Running = "Running", + /** Ready */ + Ready = "Ready", + /** Creating */ + Creating = "Creating", + /** Created */ + Created = "Created", /** Deleting */ Deleting = "Deleting", /** Deleted */ @@ -763,7 +264,7 @@ export enum KnownProvisioningState { /** Succeeded */ Succeeded = "Succeeded", /** Updating */ - Updating = "Updating" + Updating = "Updating", } /** @@ -771,9 +272,11 @@ export enum KnownProvisioningState { * {@link KnownProvisioningState} can be used interchangeably with ProvisioningState, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **NotSpecified** \ * **Accepted** \ * **Running** \ + * **Ready** \ + * **Creating** \ + * **Created** \ * **Deleting** \ * **Deleted** \ * **Canceled** \ @@ -782,277 +285,10 @@ export enum KnownProvisioningState { * **Updating** */ export type ProvisioningState = string; - -/** Known values of {@link JitApprovalMode} that the service accepts. */ -export enum KnownJitApprovalMode { - /** NotSpecified */ - NotSpecified = "NotSpecified", - /** AutoApprove */ - AutoApprove = "AutoApprove", - /** ManualApprove */ - ManualApprove = "ManualApprove" -} - -/** - * Defines values for JitApprovalMode. \ - * {@link KnownJitApprovalMode} can be used interchangeably with JitApprovalMode, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **NotSpecified** \ - * **AutoApprove** \ - * **ManualApprove** - */ -export type JitApprovalMode = string; - -/** Known values of {@link JitApproverType} that the service accepts. */ -export enum KnownJitApproverType { - /** User */ - User = "user", - /** Group */ - Group = "group" -} - -/** - * Defines values for JitApproverType. \ - * {@link KnownJitApproverType} can be used interchangeably with JitApproverType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **user** \ - * **group** - */ -export type JitApproverType = string; - -/** Known values of {@link ApplicationManagementMode} that the service accepts. */ -export enum KnownApplicationManagementMode { - /** NotSpecified */ - NotSpecified = "NotSpecified", - /** Unmanaged */ - Unmanaged = "Unmanaged", - /** Managed */ - Managed = "Managed" -} - -/** - * Defines values for ApplicationManagementMode. \ - * {@link KnownApplicationManagementMode} can be used interchangeably with ApplicationManagementMode, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **NotSpecified** \ - * **Unmanaged** \ - * **Managed** - */ -export type ApplicationManagementMode = string; - -/** Known values of {@link ApplicationArtifactName} that the service accepts. */ -export enum KnownApplicationArtifactName { - /** NotSpecified */ - NotSpecified = "NotSpecified", - /** ViewDefinition */ - ViewDefinition = "ViewDefinition", - /** Authorizations */ - Authorizations = "Authorizations", - /** CustomRoleDefinition */ - CustomRoleDefinition = "CustomRoleDefinition" -} - -/** - * Defines values for ApplicationArtifactName. \ - * {@link KnownApplicationArtifactName} can be used interchangeably with ApplicationArtifactName, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **NotSpecified** \ - * **ViewDefinition** \ - * **Authorizations** \ - * **CustomRoleDefinition** - */ -export type ApplicationArtifactName = string; - -/** Known values of {@link CreatedByType} that the service accepts. */ -export enum KnownCreatedByType { - /** User */ - User = "User", - /** Application */ - Application = "Application", - /** ManagedIdentity */ - ManagedIdentity = "ManagedIdentity", - /** Key */ - Key = "Key" -} - -/** - * Defines values for CreatedByType. \ - * {@link KnownCreatedByType} can be used interchangeably with CreatedByType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **User** \ - * **Application** \ - * **ManagedIdentity** \ - * **Key** - */ -export type CreatedByType = string; - -/** Known values of {@link ApplicationDefinitionArtifactName} that the service accepts. */ -export enum KnownApplicationDefinitionArtifactName { - /** NotSpecified */ - NotSpecified = "NotSpecified", - /** ApplicationResourceTemplate */ - ApplicationResourceTemplate = "ApplicationResourceTemplate", - /** CreateUiDefinition */ - CreateUiDefinition = "CreateUiDefinition", - /** MainTemplateParameters */ - MainTemplateParameters = "MainTemplateParameters" -} - -/** - * Defines values for ApplicationDefinitionArtifactName. \ - * {@link KnownApplicationDefinitionArtifactName} can be used interchangeably with ApplicationDefinitionArtifactName, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **NotSpecified** \ - * **ApplicationResourceTemplate** \ - * **CreateUiDefinition** \ - * **MainTemplateParameters** - */ -export type ApplicationDefinitionArtifactName = string; - -/** Known values of {@link DeploymentMode} that the service accepts. */ -export enum KnownDeploymentMode { - /** NotSpecified */ - NotSpecified = "NotSpecified", - /** Incremental */ - Incremental = "Incremental", - /** Complete */ - Complete = "Complete" -} - -/** - * Defines values for DeploymentMode. \ - * {@link KnownDeploymentMode} can be used interchangeably with DeploymentMode, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **NotSpecified** \ - * **Incremental** \ - * **Complete** - */ -export type DeploymentMode = string; - -/** Known values of {@link JitSchedulingType} that the service accepts. */ -export enum KnownJitSchedulingType { - /** NotSpecified */ - NotSpecified = "NotSpecified", - /** Once */ - Once = "Once", - /** Recurring */ - Recurring = "Recurring" -} - -/** - * Defines values for JitSchedulingType. \ - * {@link KnownJitSchedulingType} can be used interchangeably with JitSchedulingType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **NotSpecified** \ - * **Once** \ - * **Recurring** - */ -export type JitSchedulingType = string; - -/** Known values of {@link JitRequestState} that the service accepts. */ -export enum KnownJitRequestState { - /** NotSpecified */ - NotSpecified = "NotSpecified", - /** Pending */ - Pending = "Pending", - /** Approved */ - Approved = "Approved", - /** Denied */ - Denied = "Denied", - /** Failed */ - Failed = "Failed", - /** Canceled */ - Canceled = "Canceled", - /** Expired */ - Expired = "Expired", - /** Timeout */ - Timeout = "Timeout" -} - -/** - * Defines values for JitRequestState. \ - * {@link KnownJitRequestState} can be used interchangeably with JitRequestState, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **NotSpecified** \ - * **Pending** \ - * **Approved** \ - * **Denied** \ - * **Failed** \ - * **Canceled** \ - * **Expired** \ - * **Timeout** - */ -export type JitRequestState = string; - -/** Known values of {@link Status} that the service accepts. */ -export enum KnownStatus { - /** NotSpecified */ - NotSpecified = "NotSpecified", - /** Elevate */ - Elevate = "Elevate", - /** Remove */ - Remove = "Remove" -} - -/** - * Defines values for Status. \ - * {@link KnownStatus} can be used interchangeably with Status, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **NotSpecified** \ - * **Elevate** \ - * **Remove** - */ -export type Status = string; - -/** Known values of {@link Substatus} that the service accepts. */ -export enum KnownSubstatus { - /** NotSpecified */ - NotSpecified = "NotSpecified", - /** Approved */ - Approved = "Approved", - /** Denied */ - Denied = "Denied", - /** Failed */ - Failed = "Failed", - /** Expired */ - Expired = "Expired", - /** Timeout */ - Timeout = "Timeout" -} - -/** - * Defines values for Substatus. \ - * {@link KnownSubstatus} can be used interchangeably with Substatus, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **NotSpecified** \ - * **Approved** \ - * **Denied** \ - * **Failed** \ - * **Expired** \ - * **Timeout** - */ -export type Substatus = string; -/** Defines values for ApplicationArtifactType. */ -export type ApplicationArtifactType = "NotSpecified" | "Template" | "Custom"; -/** Defines values for ResourceIdentityType. */ -export type ResourceIdentityType = - | "SystemAssigned" - | "UserAssigned" - | "SystemAssigned, UserAssigned" - | "None"; /** Defines values for ApplicationLockLevel. */ export type ApplicationLockLevel = "CanNotDelete" | "ReadOnly" | "None"; +/** Defines values for ApplicationArtifactType. */ +export type ApplicationArtifactType = "Template" | "Custom"; /** Optional parameters. */ export interface ListOperationsOptionalParams @@ -1101,14 +337,10 @@ export interface ApplicationsUpdateOptionalParams extends coreClient.OperationOptions { /** Parameters supplied to update an existing managed application. */ parameters?: ApplicationPatchable; - /** 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 ApplicationsUpdateResponse = ApplicationPatchable; +export type ApplicationsUpdateResponse = Application; /** Optional parameters. */ export interface ApplicationsListByResourceGroupOptionalParams @@ -1156,47 +388,11 @@ export type ApplicationsCreateOrUpdateByIdResponse = Application; export interface ApplicationsUpdateByIdOptionalParams extends coreClient.OperationOptions { /** Parameters supplied to update an existing managed application. */ - parameters?: ApplicationPatchable; - /** 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; + parameters?: Application; } /** Contains response data for the updateById operation. */ -export type ApplicationsUpdateByIdResponse = ApplicationPatchable; - -/** Optional parameters. */ -export interface ApplicationsRefreshPermissionsOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Optional parameters. */ -export interface ApplicationsListAllowedUpgradePlansOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listAllowedUpgradePlans operation. */ -export type ApplicationsListAllowedUpgradePlansResponse = AllowedUpgradePlansResult; - -/** Optional parameters. */ -export interface ApplicationsUpdateAccessOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Optional parameters. */ -export interface ApplicationsListTokensOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listTokens operation. */ -export type ApplicationsListTokensResponse = ManagedIdentityTokenResult; +export type ApplicationsUpdateByIdResponse = Application; /** Optional parameters. */ export interface ApplicationsListByResourceGroupNextOptionalParams @@ -1221,35 +417,33 @@ export type ApplicationDefinitionsGetResponse = ApplicationDefinition; /** Optional parameters. */ export interface ApplicationDefinitionsDeleteOptionalParams - extends coreClient.OperationOptions {} + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} /** Optional parameters. */ export interface ApplicationDefinitionsCreateOrUpdateOptionalParams - extends coreClient.OperationOptions {} + 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 ApplicationDefinitionsCreateOrUpdateResponse = ApplicationDefinition; - -/** Optional parameters. */ -export interface ApplicationDefinitionsUpdateOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the update operation. */ -export type ApplicationDefinitionsUpdateResponse = ApplicationDefinition; +export type ApplicationDefinitionsCreateOrUpdateResponse = + ApplicationDefinition; /** Optional parameters. */ export interface ApplicationDefinitionsListByResourceGroupOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByResourceGroup operation. */ -export type ApplicationDefinitionsListByResourceGroupResponse = ApplicationDefinitionListResult; - -/** Optional parameters. */ -export interface ApplicationDefinitionsListBySubscriptionOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listBySubscription operation. */ -export type ApplicationDefinitionsListBySubscriptionResponse = ApplicationDefinitionListResult; +export type ApplicationDefinitionsListByResourceGroupResponse = + ApplicationDefinitionListResult; /** Optional parameters. */ export interface ApplicationDefinitionsGetByIdOptionalParams @@ -1260,45 +454,15 @@ export type ApplicationDefinitionsGetByIdResponse = ApplicationDefinition; /** Optional parameters. */ export interface ApplicationDefinitionsDeleteByIdOptionalParams - extends coreClient.OperationOptions {} + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} /** Optional parameters. */ export interface ApplicationDefinitionsCreateOrUpdateByIdOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the createOrUpdateById operation. */ -export type ApplicationDefinitionsCreateOrUpdateByIdResponse = ApplicationDefinition; - -/** Optional parameters. */ -export interface ApplicationDefinitionsUpdateByIdOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the updateById operation. */ -export type ApplicationDefinitionsUpdateByIdResponse = ApplicationDefinition; - -/** Optional parameters. */ -export interface ApplicationDefinitionsListByResourceGroupNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByResourceGroupNext operation. */ -export type ApplicationDefinitionsListByResourceGroupNextResponse = ApplicationDefinitionListResult; - -/** Optional parameters. */ -export interface ApplicationDefinitionsListBySubscriptionNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listBySubscriptionNext operation. */ -export type ApplicationDefinitionsListBySubscriptionNextResponse = ApplicationDefinitionListResult; - -/** Optional parameters. */ -export interface JitRequestsGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type JitRequestsGetResponse = JitRequestDefinition; - -/** Optional parameters. */ -export interface JitRequestsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -1306,33 +470,17 @@ export interface JitRequestsCreateOrUpdateOptionalParams resumeFrom?: string; } -/** Contains response data for the createOrUpdate operation. */ -export type JitRequestsCreateOrUpdateResponse = JitRequestDefinition; - -/** Optional parameters. */ -export interface JitRequestsUpdateOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the update operation. */ -export type JitRequestsUpdateResponse = JitRequestDefinition; - -/** Optional parameters. */ -export interface JitRequestsDeleteOptionalParams - extends coreClient.OperationOptions {} - -/** Optional parameters. */ -export interface JitRequestsListBySubscriptionOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listBySubscription operation. */ -export type JitRequestsListBySubscriptionResponse = JitRequestDefinitionListResult; +/** Contains response data for the createOrUpdateById operation. */ +export type ApplicationDefinitionsCreateOrUpdateByIdResponse = + ApplicationDefinition; /** Optional parameters. */ -export interface JitRequestsListByResourceGroupOptionalParams +export interface ApplicationDefinitionsListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroup operation. */ -export type JitRequestsListByResourceGroupResponse = JitRequestDefinitionListResult; +/** Contains response data for the listByResourceGroupNext operation. */ +export type ApplicationDefinitionsListByResourceGroupNextResponse = + ApplicationDefinitionListResult; /** Optional parameters. */ export interface ApplicationClientOptionalParams diff --git a/sdk/managedapplications/arm-managedapplications/src/models/mappers.ts b/sdk/managedapplications/arm-managedapplications/src/models/mappers.ts index 1e96dd7defa88..0eab0d3cac203 100644 --- a/sdk/managedapplications/arm-managedapplications/src/models/mappers.ts +++ b/sdk/managedapplications/arm-managedapplications/src/models/mappers.ts @@ -15,26 +15,24 @@ export const OperationListResult: coreClient.CompositeMapper = { modelProperties: { value: { serializedName: "value", - readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "Operation" - } - } - } + className: "Operation", + }, + }, + }, }, nextLink: { serializedName: "nextLink", - readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const Operation: coreClient.CompositeMapper = { @@ -44,41 +42,19 @@ export const Operation: coreClient.CompositeMapper = { modelProperties: { name: { serializedName: "name", - readOnly: true, type: { - name: "String" - } - }, - isDataAction: { - serializedName: "isDataAction", - readOnly: true, - type: { - name: "Boolean" - } + name: "String", + }, }, display: { serializedName: "display", type: { name: "Composite", - className: "OperationDisplay" - } - }, - origin: { - serializedName: "origin", - readOnly: true, - type: { - name: "String" - } + className: "OperationDisplay", + }, }, - actionType: { - serializedName: "actionType", - readOnly: true, - type: { - name: "String" - } - } - } - } + }, + }, }; export const OperationDisplay: coreClient.CompositeMapper = { @@ -88,344 +64,24 @@ export const OperationDisplay: coreClient.CompositeMapper = { modelProperties: { provider: { serializedName: "provider", - readOnly: true, type: { - name: "String" - } + name: "String", + }, }, resource: { serializedName: "resource", - readOnly: true, type: { - name: "String" - } + name: "String", + }, }, operation: { serializedName: "operation", - readOnly: true, - type: { - name: "String" - } - }, - description: { - serializedName: "description", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const ErrorResponse: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ErrorResponse", - modelProperties: { - error: { - serializedName: "error", - type: { - name: "Composite", - className: "ErrorDetail" - } - } - } - } -}; - -export const ErrorDetail: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ErrorDetail", - modelProperties: { - code: { - serializedName: "code", - readOnly: true, - type: { - name: "String" - } - }, - message: { - serializedName: "message", - readOnly: true, - type: { - name: "String" - } - }, - target: { - serializedName: "target", - readOnly: true, - type: { - name: "String" - } - }, - details: { - serializedName: "details", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ErrorDetail" - } - } - } - }, - additionalInfo: { - serializedName: "additionalInfo", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ErrorAdditionalInfo" - } - } - } - } - } - } -}; - -export const ErrorAdditionalInfo: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ErrorAdditionalInfo", - modelProperties: { - type: { - serializedName: "type", - readOnly: true, - type: { - name: "String" - } - }, - info: { - serializedName: "info", - readOnly: true, - type: { - name: "Dictionary", - value: { type: { name: "any" } } - } - } - } - } -}; - -export const ApplicationBillingDetailsDefinition: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ApplicationBillingDetailsDefinition", - modelProperties: { - resourceUsageId: { - serializedName: "resourceUsageId", - type: { - name: "String" - } - } - } - } -}; - -export const ApplicationJitAccessPolicy: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ApplicationJitAccessPolicy", - modelProperties: { - jitAccessEnabled: { - serializedName: "jitAccessEnabled", - required: true, - type: { - name: "Boolean" - } - }, - jitApprovalMode: { - serializedName: "jitApprovalMode", - type: { - name: "String" - } - }, - jitApprovers: { - serializedName: "jitApprovers", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "JitApproverDefinition" - } - } - } - }, - maximumJitAccessDuration: { - serializedName: "maximumJitAccessDuration", - type: { - name: "String" - } - } - } - } -}; - -export const JitApproverDefinition: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "JitApproverDefinition", - modelProperties: { - id: { - serializedName: "id", - required: true, - type: { - name: "String" - } - }, - type: { - serializedName: "type", - type: { - name: "String" - } - }, - displayName: { - serializedName: "displayName", - type: { - name: "String" - } - } - } - } -}; - -export const ApplicationAuthorization: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ApplicationAuthorization", - modelProperties: { - principalId: { - serializedName: "principalId", - required: true, type: { - name: "String" - } - }, - roleDefinitionId: { - serializedName: "roleDefinitionId", - required: true, - type: { - name: "String" - } - } - } - } -}; - -export const ApplicationPackageContact: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ApplicationPackageContact", - modelProperties: { - contactName: { - serializedName: "contactName", - type: { - name: "String" - } - }, - email: { - serializedName: "email", - required: true, - type: { - name: "String" - } - }, - phone: { - serializedName: "phone", - required: true, - type: { - name: "String" - } - } - } - } -}; - -export const ApplicationPackageSupportUrls: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ApplicationPackageSupportUrls", - modelProperties: { - publicAzure: { - serializedName: "publicAzure", - type: { - name: "String" - } - }, - governmentCloud: { - serializedName: "governmentCloud", - type: { - name: "String" - } - } - } - } -}; - -export const ApplicationArtifact: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ApplicationArtifact", - modelProperties: { - name: { - serializedName: "name", - required: true, - type: { - name: "String" - } - }, - uri: { - serializedName: "uri", - required: true, - type: { - name: "String" - } - }, - type: { - serializedName: "type", - required: true, - type: { - name: "Enum", - allowedValues: ["NotSpecified", "Template", "Custom"] - } - } - } - } -}; - -export const ApplicationClientDetails: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ApplicationClientDetails", - modelProperties: { - oid: { - serializedName: "oid", - type: { - name: "String" - } - }, - puid: { - serializedName: "puid", - type: { - name: "String" - } + name: "String", + }, }, - applicationId: { - serializedName: "applicationId", - type: { - name: "String" - } - } - } - } + }, + }, }; export const Plan: coreClient.CompositeMapper = { @@ -437,108 +93,38 @@ export const Plan: coreClient.CompositeMapper = { serializedName: "name", required: true, type: { - name: "String" - } + name: "String", + }, }, publisher: { serializedName: "publisher", required: true, type: { - name: "String" - } + name: "String", + }, }, product: { serializedName: "product", required: true, type: { - name: "String" - } + name: "String", + }, }, promotionCode: { serializedName: "promotionCode", type: { - name: "String" - } + name: "String", + }, }, version: { serializedName: "version", required: true, type: { - name: "String" - } - } - } - } -}; - -export const Identity: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "Identity", - modelProperties: { - principalId: { - serializedName: "principalId", - readOnly: true, - type: { - name: "String" - } - }, - tenantId: { - serializedName: "tenantId", - readOnly: true, - type: { - name: "String" - } - }, - type: { - serializedName: "type", - type: { - name: "Enum", - allowedValues: [ - "SystemAssigned", - "UserAssigned", - "SystemAssigned, UserAssigned", - "None" - ] - } - }, - userAssignedIdentities: { - serializedName: "userAssignedIdentities", - type: { - name: "Dictionary", - value: { - type: { - name: "Composite", - className: "UserAssignedResourceIdentity" - } - } - } - } - } - } -}; - -export const UserAssignedResourceIdentity: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "UserAssignedResourceIdentity", - modelProperties: { - principalId: { - serializedName: "principalId", - readOnly: true, - type: { - name: "String" - } + name: "String", + }, }, - tenantId: { - serializedName: "tenantId", - readOnly: true, - type: { - name: "String" - } - } - } - } + }, + }, }; export const Sku: coreClient.CompositeMapper = { @@ -550,621 +136,238 @@ export const Sku: coreClient.CompositeMapper = { serializedName: "name", required: true, type: { - name: "String" - } + name: "String", + }, }, tier: { serializedName: "tier", type: { - name: "String" - } + name: "String", + }, }, size: { serializedName: "size", type: { - name: "String" - } + name: "String", + }, }, family: { serializedName: "family", type: { - name: "String" - } + name: "String", + }, }, model: { serializedName: "model", type: { - name: "String" - } + name: "String", + }, }, capacity: { serializedName: "capacity", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; -export const Resource: coreClient.CompositeMapper = { +export const Identity: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Resource", + className: "Identity", modelProperties: { - id: { - serializedName: "id", + principalId: { + serializedName: "principalId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, - name: { - serializedName: "name", + tenantId: { + serializedName: "tenantId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { + defaultValue: "SystemAssigned", + isConstant: true, serializedName: "type", - readOnly: true, type: { - name: "String" - } - }, - location: { - serializedName: "location", - type: { - name: "String" - } - }, - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } + name: "String", + }, }, - systemData: { - serializedName: "systemData", - type: { - name: "Composite", - className: "SystemData" - } - } - } - } + }, + }, }; -export const SystemData: coreClient.CompositeMapper = { +export const Resource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SystemData", + className: "Resource", modelProperties: { - createdBy: { - serializedName: "createdBy", - type: { - name: "String" - } - }, - createdByType: { - serializedName: "createdByType", - type: { - name: "String" - } - }, - createdAt: { - serializedName: "createdAt", - type: { - name: "DateTime" - } - }, - lastModifiedBy: { - serializedName: "lastModifiedBy", - type: { - name: "String" - } - }, - lastModifiedByType: { - serializedName: "lastModifiedByType", + id: { + serializedName: "id", + readOnly: true, type: { - name: "String" - } + name: "String", + }, }, - lastModifiedAt: { - serializedName: "lastModifiedAt", - type: { - name: "DateTime" - } - } - } - } -}; - -export const PlanPatchable: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PlanPatchable", - modelProperties: { name: { serializedName: "name", + readOnly: true, type: { - name: "String" - } - }, - publisher: { - serializedName: "publisher", - type: { - name: "String" - } - }, - product: { - serializedName: "product", - type: { - name: "String" - } - }, - promotionCode: { - serializedName: "promotionCode", - type: { - name: "String" - } - }, - version: { - serializedName: "version", - type: { - name: "String" - } - } - } - } -}; - -export const ApplicationDefinitionArtifact: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ApplicationDefinitionArtifact", - modelProperties: { - name: { - serializedName: "name", - required: true, - type: { - name: "String" - } - }, - uri: { - serializedName: "uri", - required: true, - type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", - required: true, - type: { - name: "Enum", - allowedValues: ["NotSpecified", "Template", "Custom"] - } - } - } - } -}; - -export const ApplicationNotificationPolicy: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ApplicationNotificationPolicy", - modelProperties: { - notificationEndpoints: { - serializedName: "notificationEndpoints", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ApplicationNotificationEndpoint" - } - } - } - } - } - } -}; - -export const ApplicationNotificationEndpoint: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ApplicationNotificationEndpoint", - modelProperties: { - uri: { - serializedName: "uri", - required: true, - type: { - name: "String" - } - } - } - } -}; - -export const ApplicationPackageLockingPolicyDefinition: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ApplicationPackageLockingPolicyDefinition", - modelProperties: { - allowedActions: { - serializedName: "allowedActions", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - allowedDataActions: { - serializedName: "allowedDataActions", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } - } - } -}; - -export const ApplicationDeploymentPolicy: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ApplicationDeploymentPolicy", - modelProperties: { - deploymentMode: { - serializedName: "deploymentMode", - required: true, - type: { - name: "String" - } - } - } - } -}; - -export const ApplicationManagementPolicy: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ApplicationManagementPolicy", - modelProperties: { - mode: { - serializedName: "mode", - type: { - name: "String" - } - } - } - } -}; - -export const ApplicationPolicy: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ApplicationPolicy", - modelProperties: { - name: { - serializedName: "name", + readOnly: true, type: { - name: "String" - } + name: "String", + }, }, - policyDefinitionId: { - serializedName: "policyDefinitionId", + location: { + serializedName: "location", type: { - name: "String" - } + name: "String", + }, }, - parameters: { - serializedName: "parameters", - type: { - name: "String" - } - } - } - } -}; - -export const ApplicationDefinitionPatchable: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ApplicationDefinitionPatchable", - modelProperties: { tags: { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } -}; - -export const ApplicationDefinitionListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ApplicationDefinitionListResult", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ApplicationDefinition" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const ApplicationListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ApplicationListResult", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Application" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const JitAuthorizationPolicies: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "JitAuthorizationPolicies", - modelProperties: { - principalId: { - serializedName: "principalId", - required: true, - type: { - name: "String" - } - }, - roleDefinitionId: { - serializedName: "roleDefinitionId", - required: true, - type: { - name: "String" - } - } - } - } -}; - -export const JitSchedulingPolicy: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "JitSchedulingPolicy", - modelProperties: { - type: { - serializedName: "type", - required: true, - type: { - name: "String" - } - }, - duration: { - serializedName: "duration", - required: true, - type: { - name: "TimeSpan" - } + value: { type: { name: "String" } }, + }, }, - startTime: { - serializedName: "startTime", - required: true, - type: { - name: "DateTime" - } - } - } - } + }, + }, }; -export const JitRequestPatchable: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "JitRequestPatchable", - modelProperties: { - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } -}; - -export const JitRequestDefinitionListResult: coreClient.CompositeMapper = { +export const ErrorResponse: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JitRequestDefinitionListResult", + className: "ErrorResponse", modelProperties: { - value: { - serializedName: "value", + httpStatus: { + serializedName: "httpStatus", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "JitRequestDefinition" - } - } - } + name: "String", + }, }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const AllowedUpgradePlansResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AllowedUpgradePlansResult", - modelProperties: { - value: { - serializedName: "value", + errorCode: { + serializedName: "errorCode", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Plan" - } - } - } - } - } - } + name: "String", + }, + }, + errorMessage: { + serializedName: "errorMessage", + type: { + name: "String", + }, + }, + }, + }, }; -export const UpdateAccessDefinition: coreClient.CompositeMapper = { +export const PlanPatchable: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UpdateAccessDefinition", + className: "PlanPatchable", modelProperties: { - approver: { - serializedName: "approver", + name: { + serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, - metadata: { - serializedName: "metadata", + publisher: { + serializedName: "publisher", type: { - name: "Composite", - className: "JitRequestMetadata" - } + name: "String", + }, }, - status: { - serializedName: "status", - required: true, + product: { + serializedName: "product", type: { - name: "String" - } + name: "String", + }, }, - subStatus: { - serializedName: "subStatus", - required: true, + promotionCode: { + serializedName: "promotionCode", + type: { + name: "String", + }, + }, + version: { + serializedName: "version", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const JitRequestMetadata: coreClient.CompositeMapper = { +export const ApplicationProviderAuthorization: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JitRequestMetadata", + className: "ApplicationProviderAuthorization", modelProperties: { - originRequestId: { - serializedName: "originRequestId", - type: { - name: "String" - } - }, - requestorId: { - serializedName: "requestorId", + principalId: { + serializedName: "principalId", + required: true, type: { - name: "String" - } + name: "String", + }, }, - tenantDisplayName: { - serializedName: "tenantDisplayName", + roleDefinitionId: { + serializedName: "roleDefinitionId", + required: true, type: { - name: "String" - } + name: "String", + }, }, - subjectDisplayName: { - serializedName: "subjectDisplayName", - type: { - name: "String" - } - } - } - } + }, + }, }; -export const ListTokenRequest: coreClient.CompositeMapper = { +export const ApplicationArtifact: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ListTokenRequest", + className: "ApplicationArtifact", modelProperties: { - authorizationAudience: { - serializedName: "authorizationAudience", + name: { + serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, - userAssignedIdentities: { - serializedName: "userAssignedIdentities", + uri: { + serializedName: "uri", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + type: { + serializedName: "type", + type: { + name: "Enum", + allowedValues: ["Template", "Custom"], + }, + }, + }, + }, }; -export const ManagedIdentityTokenResult: coreClient.CompositeMapper = { +export const ApplicationDefinitionListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedIdentityTokenResult", + className: "ApplicationDefinitionListResult", modelProperties: { value: { serializedName: "value", @@ -1173,64 +376,46 @@ export const ManagedIdentityTokenResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ManagedIdentityToken" - } - } - } - } - } - } + className: "ApplicationDefinition", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String", + }, + }, + }, + }, }; -export const ManagedIdentityToken: coreClient.CompositeMapper = { +export const ApplicationListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedIdentityToken", + className: "ApplicationListResult", modelProperties: { - accessToken: { - serializedName: "accessToken", - type: { - name: "String" - } - }, - expiresIn: { - serializedName: "expiresIn", - type: { - name: "String" - } - }, - expiresOn: { - serializedName: "expiresOn", - type: { - name: "String" - } - }, - notBefore: { - serializedName: "notBefore", - type: { - name: "String" - } - }, - authorizationAudience: { - serializedName: "authorizationAudience", + value: { + serializedName: "value", type: { - name: "String" - } + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Application", + }, + }, + }, }, - resourceId: { - serializedName: "resourceId", + nextLink: { + serializedName: "nextLink", type: { - name: "String" - } + name: "String", + }, }, - tokenType: { - serializedName: "tokenType", - type: { - name: "String" - } - } - } - } + }, + }, }; export const GenericResource: coreClient.CompositeMapper = { @@ -1242,88 +427,25 @@ export const GenericResource: coreClient.CompositeMapper = { managedBy: { serializedName: "managedBy", type: { - name: "String" - } + name: "String", + }, }, sku: { serializedName: "sku", type: { name: "Composite", - className: "Sku" - } - } - } - } -}; - -export const JitRequestDefinition: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "JitRequestDefinition", - modelProperties: { - ...Resource.type.modelProperties, - applicationResourceId: { - serializedName: "properties.applicationResourceId", - type: { - name: "String" - } - }, - publisherTenantId: { - serializedName: "properties.publisherTenantId", - readOnly: true, - type: { - name: "String" - } - }, - jitAuthorizationPolicies: { - serializedName: "properties.jitAuthorizationPolicies", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "JitAuthorizationPolicies" - } - } - } - }, - jitSchedulingPolicy: { - serializedName: "properties.jitSchedulingPolicy", - type: { - name: "Composite", - className: "JitSchedulingPolicy" - } - }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, - type: { - name: "String" - } - }, - jitRequestState: { - serializedName: "properties.jitRequestState", - readOnly: true, - type: { - name: "String" - } + className: "Sku", + }, }, - createdBy: { - serializedName: "properties.createdBy", + identity: { + serializedName: "identity", type: { name: "Composite", - className: "ApplicationClientDetails" - } + className: "Identity", + }, }, - updatedBy: { - serializedName: "properties.updatedBy", - type: { - name: "Composite", - className: "ApplicationClientDetails" - } - } - } - } + }, + }, }; export const Application: coreClient.CompositeMapper = { @@ -1336,144 +458,56 @@ export const Application: coreClient.CompositeMapper = { serializedName: "plan", type: { name: "Composite", - className: "Plan" - } + className: "Plan", + }, }, kind: { constraints: { - Pattern: new RegExp("^[-\\w\\._,\\(\\)]+$") + Pattern: new RegExp("^[-\\w\\._,\\(\\)]+$"), }, serializedName: "kind", required: true, type: { - name: "String" - } - }, - identity: { - serializedName: "identity", - type: { - name: "Composite", - className: "Identity" - } + name: "String", + }, }, managedResourceGroupId: { serializedName: "properties.managedResourceGroupId", + required: true, type: { - name: "String" - } + name: "String", + }, }, applicationDefinitionId: { serializedName: "properties.applicationDefinitionId", type: { - name: "String" - } + name: "String", + }, }, parameters: { serializedName: "properties.parameters", type: { name: "Dictionary", - value: { type: { name: "any" } } - } + value: { type: { name: "any" } }, + }, }, outputs: { serializedName: "properties.outputs", readOnly: true, type: { name: "Dictionary", - value: { type: { name: "any" } } - } + value: { type: { name: "any" } }, + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } - }, - billingDetails: { - serializedName: "properties.billingDetails", - type: { - name: "Composite", - className: "ApplicationBillingDetailsDefinition" - } - }, - jitAccessPolicy: { - serializedName: "properties.jitAccessPolicy", - type: { - name: "Composite", - className: "ApplicationJitAccessPolicy" - } - }, - publisherTenantId: { - serializedName: "properties.publisherTenantId", - readOnly: true, - type: { - name: "String" - } - }, - authorizations: { - serializedName: "properties.authorizations", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ApplicationAuthorization" - } - } - } - }, - managementMode: { - serializedName: "properties.managementMode", - readOnly: true, - type: { - name: "String" - } - }, - customerSupport: { - serializedName: "properties.customerSupport", - type: { - name: "Composite", - className: "ApplicationPackageContact" - } - }, - supportUrls: { - serializedName: "properties.supportUrls", - type: { - name: "Composite", - className: "ApplicationPackageSupportUrls" - } - }, - artifacts: { - serializedName: "properties.artifacts", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ApplicationArtifact" - } - } - } - }, - createdBy: { - serializedName: "properties.createdBy", - type: { - name: "Composite", - className: "ApplicationClientDetails" - } + name: "String", + }, }, - updatedBy: { - serializedName: "properties.updatedBy", - type: { - name: "Composite", - className: "ApplicationClientDetails" - } - } - } - } + }, + }, }; export const ApplicationPatchable: coreClient.CompositeMapper = { @@ -1486,143 +520,54 @@ export const ApplicationPatchable: coreClient.CompositeMapper = { serializedName: "plan", type: { name: "Composite", - className: "PlanPatchable" - } + className: "PlanPatchable", + }, }, kind: { constraints: { - Pattern: new RegExp("^[-\\w\\._,\\(\\)]+$") + Pattern: new RegExp("^[-\\w\\._,\\(\\)]+$"), }, serializedName: "kind", type: { - name: "String" - } - }, - identity: { - serializedName: "identity", - type: { - name: "Composite", - className: "Identity" - } + name: "String", + }, }, managedResourceGroupId: { serializedName: "properties.managedResourceGroupId", type: { - name: "String" - } + name: "String", + }, }, applicationDefinitionId: { serializedName: "properties.applicationDefinitionId", type: { - name: "String" - } + name: "String", + }, }, parameters: { serializedName: "properties.parameters", type: { name: "Dictionary", - value: { type: { name: "any" } } - } + value: { type: { name: "any" } }, + }, }, outputs: { serializedName: "properties.outputs", readOnly: true, type: { name: "Dictionary", - value: { type: { name: "any" } } - } + value: { type: { name: "any" } }, + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } - }, - billingDetails: { - serializedName: "properties.billingDetails", - type: { - name: "Composite", - className: "ApplicationBillingDetailsDefinition" - } - }, - jitAccessPolicy: { - serializedName: "properties.jitAccessPolicy", - type: { - name: "Composite", - className: "ApplicationJitAccessPolicy" - } - }, - publisherTenantId: { - serializedName: "properties.publisherTenantId", - readOnly: true, - type: { - name: "String" - } - }, - authorizations: { - serializedName: "properties.authorizations", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ApplicationAuthorization" - } - } - } - }, - managementMode: { - serializedName: "properties.managementMode", - readOnly: true, - type: { - name: "String" - } - }, - customerSupport: { - serializedName: "properties.customerSupport", - type: { - name: "Composite", - className: "ApplicationPackageContact" - } - }, - supportUrls: { - serializedName: "properties.supportUrls", - type: { - name: "Composite", - className: "ApplicationPackageSupportUrls" - } - }, - artifacts: { - serializedName: "properties.artifacts", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ApplicationArtifact" - } - } - } - }, - createdBy: { - serializedName: "properties.createdBy", - type: { - name: "Composite", - className: "ApplicationClientDetails" - } + name: "String", + }, }, - updatedBy: { - serializedName: "properties.updatedBy", - type: { - name: "Composite", - className: "ApplicationClientDetails" - } - } - } - } + }, + }, }; export const ApplicationDefinition: coreClient.CompositeMapper = { @@ -1636,32 +581,33 @@ export const ApplicationDefinition: coreClient.CompositeMapper = { required: true, type: { name: "Enum", - allowedValues: ["CanNotDelete", "ReadOnly", "None"] - } + allowedValues: ["CanNotDelete", "ReadOnly", "None"], + }, }, displayName: { serializedName: "properties.displayName", type: { - name: "String" - } + name: "String", + }, }, isEnabled: { serializedName: "properties.isEnabled", type: { - name: "Boolean" - } + name: "String", + }, }, authorizations: { serializedName: "properties.authorizations", + required: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "ApplicationAuthorization" - } - } - } + className: "ApplicationProviderAuthorization", + }, + }, + }, }, artifacts: { serializedName: "properties.artifacts", @@ -1670,83 +616,37 @@ export const ApplicationDefinition: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ApplicationDefinitionArtifact" - } - } - } + className: "ApplicationArtifact", + }, + }, + }, }, description: { serializedName: "properties.description", type: { - name: "String" - } + name: "String", + }, }, packageFileUri: { serializedName: "properties.packageFileUri", type: { - name: "String" - } - }, - storageAccountId: { - serializedName: "properties.storageAccountId", - type: { - name: "String" - } + name: "String", + }, }, mainTemplate: { serializedName: "properties.mainTemplate", type: { name: "Dictionary", - value: { type: { name: "any" } } - } + value: { type: { name: "any" } }, + }, }, createUiDefinition: { serializedName: "properties.createUiDefinition", type: { name: "Dictionary", - value: { type: { name: "any" } } - } - }, - notificationPolicy: { - serializedName: "properties.notificationPolicy", - type: { - name: "Composite", - className: "ApplicationNotificationPolicy" - } - }, - lockingPolicy: { - serializedName: "properties.lockingPolicy", - type: { - name: "Composite", - className: "ApplicationPackageLockingPolicyDefinition" - } - }, - deploymentPolicy: { - serializedName: "properties.deploymentPolicy", - type: { - name: "Composite", - className: "ApplicationDeploymentPolicy" - } - }, - managementPolicy: { - serializedName: "properties.managementPolicy", - type: { - name: "Composite", - className: "ApplicationManagementPolicy" - } + value: { type: { name: "any" } }, + }, }, - policies: { - serializedName: "properties.policies", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ApplicationPolicy" - } - } - } - } - } - } + }, + }, }; diff --git a/sdk/managedapplications/arm-managedapplications/src/models/parameters.ts b/sdk/managedapplications/arm-managedapplications/src/models/parameters.ts index 86f119d130c63..4f221152bf0fb 100644 --- a/sdk/managedapplications/arm-managedapplications/src/models/parameters.ts +++ b/sdk/managedapplications/arm-managedapplications/src/models/parameters.ts @@ -9,17 +9,12 @@ import { OperationParameter, OperationURLParameter, - OperationQueryParameter + OperationQueryParameter, } from "@azure/core-client"; import { Application as ApplicationMapper, ApplicationPatchable as ApplicationPatchableMapper, - UpdateAccessDefinition as UpdateAccessDefinitionMapper, - ListTokenRequest as ListTokenRequestMapper, ApplicationDefinition as ApplicationDefinitionMapper, - ApplicationDefinitionPatchable as ApplicationDefinitionPatchableMapper, - JitRequestDefinition as JitRequestDefinitionMapper, - JitRequestPatchable as JitRequestPatchableMapper } from "../models/mappers"; export const accept: OperationParameter = { @@ -29,9 +24,9 @@ export const accept: OperationParameter = { isConstant: true, serializedName: "Accept", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const $host: OperationURLParameter = { @@ -40,22 +35,22 @@ export const $host: OperationURLParameter = { serializedName: "$host", required: true, type: { - name: "String" - } + name: "String", + }, }, - skipEncoding: true + skipEncoding: true, }; export const apiVersion: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2021-07-01", + defaultValue: "2018-06-01", isConstant: true, serializedName: "api-version", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const nextLink: OperationURLParameter = { @@ -64,39 +59,26 @@ export const nextLink: OperationURLParameter = { serializedName: "nextLink", required: true, type: { - name: "String" - } - }, - skipEncoding: true -}; - -export const subscriptionId: OperationURLParameter = { - parameterPath: "subscriptionId", - mapper: { - constraints: { - MinLength: 1 + name: "String", }, - serializedName: "subscriptionId", - required: true, - type: { - name: "String" - } - } + }, + skipEncoding: true, }; export const resourceGroupName: OperationURLParameter = { parameterPath: "resourceGroupName", mapper: { constraints: { + Pattern: new RegExp("^[-\\w\\._\\(\\)]+$"), MaxLength: 90, - MinLength: 1 + MinLength: 1, }, serializedName: "resourceGroupName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const applicationName: OperationURLParameter = { @@ -104,14 +86,25 @@ export const applicationName: OperationURLParameter = { mapper: { constraints: { MaxLength: 64, - MinLength: 3 + MinLength: 3, }, serializedName: "applicationName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, +}; + +export const subscriptionId: OperationURLParameter = { + parameterPath: "subscriptionId", + mapper: { + serializedName: "subscriptionId", + required: true, + type: { + name: "String", + }, + }, }; export const contentType: OperationParameter = { @@ -121,19 +114,19 @@ export const contentType: OperationParameter = { isConstant: true, serializedName: "Content-Type", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters: OperationParameter = { parameterPath: "parameters", - mapper: ApplicationMapper + mapper: ApplicationMapper, }; export const parameters1: OperationParameter = { parameterPath: ["options", "parameters"], - mapper: ApplicationPatchableMapper + mapper: ApplicationPatchableMapper, }; export const applicationId: OperationURLParameter = { @@ -142,20 +135,15 @@ export const applicationId: OperationURLParameter = { serializedName: "applicationId", required: true, type: { - name: "String" - } + name: "String", + }, }, - skipEncoding: true + skipEncoding: true, }; export const parameters2: OperationParameter = { - parameterPath: "parameters", - mapper: UpdateAccessDefinitionMapper -}; - -export const parameters3: OperationParameter = { - parameterPath: "parameters", - mapper: ListTokenRequestMapper + parameterPath: ["options", "parameters"], + mapper: ApplicationMapper, }; export const applicationDefinitionName: OperationURLParameter = { @@ -163,59 +151,17 @@ export const applicationDefinitionName: OperationURLParameter = { mapper: { constraints: { MaxLength: 64, - MinLength: 3 + MinLength: 3, }, serializedName: "applicationDefinitionName", required: true, type: { - name: "String" - } - } -}; - -export const parameters4: OperationParameter = { - parameterPath: "parameters", - mapper: ApplicationDefinitionMapper -}; - -export const parameters5: OperationParameter = { - parameterPath: "parameters", - mapper: ApplicationDefinitionPatchableMapper -}; - -export const resourceGroupName1: OperationURLParameter = { - parameterPath: "resourceGroupName", - mapper: { - constraints: { - Pattern: new RegExp("^[-\\w\\._\\(\\)]+$"), - MaxLength: 90, - MinLength: 1 + name: "String", }, - serializedName: "resourceGroupName", - required: true, - type: { - name: "String" - } - } -}; - -export const jitRequestName: OperationURLParameter = { - parameterPath: "jitRequestName", - mapper: { - serializedName: "jitRequestName", - required: true, - type: { - name: "String" - } - } -}; - -export const parameters6: OperationParameter = { - parameterPath: "parameters", - mapper: JitRequestDefinitionMapper + }, }; -export const parameters7: OperationParameter = { +export const parameters3: OperationParameter = { parameterPath: "parameters", - mapper: JitRequestPatchableMapper + mapper: ApplicationDefinitionMapper, }; diff --git a/sdk/managedapplications/arm-managedapplications/src/operations/applicationDefinitions.ts b/sdk/managedapplications/arm-managedapplications/src/operations/applicationDefinitions.ts index 079ec224a1111..65449d00f2052 100644 --- a/sdk/managedapplications/arm-managedapplications/src/operations/applicationDefinitions.ts +++ b/sdk/managedapplications/arm-managedapplications/src/operations/applicationDefinitions.ts @@ -13,31 +13,28 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { ApplicationClient } from "../applicationClient"; +import { + SimplePollerLike, + OperationState, + createHttpPoller, +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { ApplicationDefinition, ApplicationDefinitionsListByResourceGroupNextOptionalParams, ApplicationDefinitionsListByResourceGroupOptionalParams, ApplicationDefinitionsListByResourceGroupResponse, - ApplicationDefinitionsListBySubscriptionNextOptionalParams, - ApplicationDefinitionsListBySubscriptionOptionalParams, - ApplicationDefinitionsListBySubscriptionResponse, ApplicationDefinitionsGetOptionalParams, ApplicationDefinitionsGetResponse, ApplicationDefinitionsDeleteOptionalParams, ApplicationDefinitionsCreateOrUpdateOptionalParams, ApplicationDefinitionsCreateOrUpdateResponse, - ApplicationDefinitionPatchable, - ApplicationDefinitionsUpdateOptionalParams, - ApplicationDefinitionsUpdateResponse, ApplicationDefinitionsGetByIdOptionalParams, ApplicationDefinitionsGetByIdResponse, ApplicationDefinitionsDeleteByIdOptionalParams, ApplicationDefinitionsCreateOrUpdateByIdOptionalParams, ApplicationDefinitionsCreateOrUpdateByIdResponse, - ApplicationDefinitionsUpdateByIdOptionalParams, - ApplicationDefinitionsUpdateByIdResponse, ApplicationDefinitionsListByResourceGroupNextResponse, - ApplicationDefinitionsListBySubscriptionNextResponse } from "../models"; /// @@ -60,7 +57,7 @@ export class ApplicationDefinitionsImpl implements ApplicationDefinitions { */ public listByResourceGroup( resourceGroupName: string, - options?: ApplicationDefinitionsListByResourceGroupOptionalParams + options?: ApplicationDefinitionsListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); return { @@ -77,16 +74,16 @@ export class ApplicationDefinitionsImpl implements ApplicationDefinitions { return this.listByResourceGroupPagingPage( resourceGroupName, options, - settings + settings, ); - } + }, }; } private async *listByResourceGroupPagingPage( resourceGroupName: string, options?: ApplicationDefinitionsListByResourceGroupOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ApplicationDefinitionsListByResourceGroupResponse; let continuationToken = settings?.continuationToken; @@ -101,7 +98,7 @@ export class ApplicationDefinitionsImpl implements ApplicationDefinitions { result = await this._listByResourceGroupNext( resourceGroupName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -112,70 +109,16 @@ export class ApplicationDefinitionsImpl implements ApplicationDefinitions { private async *listByResourceGroupPagingAll( resourceGroupName: string, - options?: ApplicationDefinitionsListByResourceGroupOptionalParams + options?: ApplicationDefinitionsListByResourceGroupOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByResourceGroupPagingPage( resourceGroupName, - options + options, )) { yield* page; } } - /** - * Lists all the application definitions within a subscription. - * @param options The options parameters. - */ - public listBySubscription( - options?: ApplicationDefinitionsListBySubscriptionOptionalParams - ): PagedAsyncIterableIterator { - const iter = this.listBySubscriptionPagingAll(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.listBySubscriptionPagingPage(options, settings); - } - }; - } - - private async *listBySubscriptionPagingPage( - options?: ApplicationDefinitionsListBySubscriptionOptionalParams, - settings?: PageSettings - ): AsyncIterableIterator { - let result: ApplicationDefinitionsListBySubscriptionResponse; - let continuationToken = settings?.continuationToken; - if (!continuationToken) { - result = await this._listBySubscription(options); - let page = result.value || []; - continuationToken = result.nextLink; - setContinuationToken(page, continuationToken); - yield page; - } - while (continuationToken) { - result = await this._listBySubscriptionNext(continuationToken, options); - continuationToken = result.nextLink; - let page = result.value || []; - setContinuationToken(page, continuationToken); - yield page; - } - } - - private async *listBySubscriptionPagingAll( - options?: ApplicationDefinitionsListBySubscriptionOptionalParams - ): AsyncIterableIterator { - for await (const page of this.listBySubscriptionPagingPage(options)) { - yield* page; - } - } - /** * Gets the managed application definition. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -185,67 +128,192 @@ export class ApplicationDefinitionsImpl implements ApplicationDefinitions { get( resourceGroupName: string, applicationDefinitionName: string, - options?: ApplicationDefinitionsGetOptionalParams + options?: ApplicationDefinitionsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, applicationDefinitionName, options }, - getOperationSpec + getOperationSpec, ); } /** * Deletes the managed application definition. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param applicationDefinitionName The name of the managed application definition. + * @param applicationDefinitionName The name of the managed application definition to delete. * @param options The options parameters. */ - delete( + async beginDelete( resourceGroupName: string, applicationDefinitionName: string, - options?: ApplicationDefinitionsDeleteOptionalParams + options?: ApplicationDefinitionsDeleteOptionalParams, + ): Promise, void>> { + 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, applicationDefinitionName, options }, + spec: deleteOperationSpec, + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + }); + await poller.poll(); + return poller; + } + + /** + * Deletes the managed application definition. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param applicationDefinitionName The name of the managed application definition to delete. + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + applicationDefinitionName: string, + options?: ApplicationDefinitionsDeleteOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, applicationDefinitionName, options }, - deleteOperationSpec + const poller = await this.beginDelete( + resourceGroupName, + applicationDefinitionName, + options, ); + return poller.pollUntilDone(); } /** - * Creates or updates a managed application definition. + * Creates a new managed application definition. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationDefinitionName The name of the managed application definition. * @param parameters Parameters supplied to the create or update an managed application definition. * @param options The options parameters. */ - createOrUpdate( + async beginCreateOrUpdate( resourceGroupName: string, applicationDefinitionName: string, parameters: ApplicationDefinition, - options?: ApplicationDefinitionsCreateOrUpdateOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, applicationDefinitionName, parameters, options }, - createOrUpdateOperationSpec - ); + options?: ApplicationDefinitionsCreateOrUpdateOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + ApplicationDefinitionsCreateOrUpdateResponse + > + > { + 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, + applicationDefinitionName, + parameters, + options, + }, + spec: createOrUpdateOperationSpec, + }); + const poller = await createHttpPoller< + ApplicationDefinitionsCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + }); + await poller.poll(); + return poller; } /** - * Updates the managed application definition. + * Creates a new managed application definition. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationDefinitionName The name of the managed application definition. - * @param parameters Parameters supplied to the update a managed application definition. + * @param parameters Parameters supplied to the create or update an managed application definition. * @param options The options parameters. */ - update( + async beginCreateOrUpdateAndWait( resourceGroupName: string, applicationDefinitionName: string, - parameters: ApplicationDefinitionPatchable, - options?: ApplicationDefinitionsUpdateOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, applicationDefinitionName, parameters, options }, - updateOperationSpec + parameters: ApplicationDefinition, + options?: ApplicationDefinitionsCreateOrUpdateOptionalParams, + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + applicationDefinitionName, + parameters, + options, ); + return poller.pollUntilDone(); } /** @@ -255,42 +323,91 @@ export class ApplicationDefinitionsImpl implements ApplicationDefinitions { */ private _listByResourceGroup( resourceGroupName: string, - options?: ApplicationDefinitionsListByResourceGroupOptionalParams + options?: ApplicationDefinitionsListByResourceGroupOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, - listByResourceGroupOperationSpec + listByResourceGroupOperationSpec, ); } /** - * Lists all the application definitions within a subscription. + * Gets the managed application definition. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param applicationDefinitionName The name of the managed application definition. * @param options The options parameters. */ - private _listBySubscription( - options?: ApplicationDefinitionsListBySubscriptionOptionalParams - ): Promise { + getById( + resourceGroupName: string, + applicationDefinitionName: string, + options?: ApplicationDefinitionsGetByIdOptionalParams, + ): Promise { return this.client.sendOperationRequest( - { options }, - listBySubscriptionOperationSpec + { resourceGroupName, applicationDefinitionName, options }, + getByIdOperationSpec, ); } /** - * Gets the managed application definition. + * Deletes the managed application definition. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationDefinitionName The name of the managed application definition. * @param options The options parameters. */ - getById( + async beginDeleteById( resourceGroupName: string, applicationDefinitionName: string, - options?: ApplicationDefinitionsGetByIdOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, applicationDefinitionName, options }, - getByIdOperationSpec - ); + options?: ApplicationDefinitionsDeleteByIdOptionalParams, + ): Promise, void>> { + 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, applicationDefinitionName, options }, + spec: deleteByIdOperationSpec, + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + }); + await poller.poll(); + return poller; } /** @@ -299,53 +416,116 @@ export class ApplicationDefinitionsImpl implements ApplicationDefinitions { * @param applicationDefinitionName The name of the managed application definition. * @param options The options parameters. */ - deleteById( + async beginDeleteByIdAndWait( resourceGroupName: string, applicationDefinitionName: string, - options?: ApplicationDefinitionsDeleteByIdOptionalParams + options?: ApplicationDefinitionsDeleteByIdOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, applicationDefinitionName, options }, - deleteByIdOperationSpec + const poller = await this.beginDeleteById( + resourceGroupName, + applicationDefinitionName, + options, ); + return poller.pollUntilDone(); } /** - * Creates or updates a managed application definition. + * Creates a new managed application definition. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationDefinitionName The name of the managed application definition. * @param parameters Parameters supplied to the create or update a managed application definition. * @param options The options parameters. */ - createOrUpdateById( + async beginCreateOrUpdateById( resourceGroupName: string, applicationDefinitionName: string, parameters: ApplicationDefinition, - options?: ApplicationDefinitionsCreateOrUpdateByIdOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, applicationDefinitionName, parameters, options }, - createOrUpdateByIdOperationSpec - ); + options?: ApplicationDefinitionsCreateOrUpdateByIdOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + ApplicationDefinitionsCreateOrUpdateByIdResponse + > + > { + 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, + applicationDefinitionName, + parameters, + options, + }, + spec: createOrUpdateByIdOperationSpec, + }); + const poller = await createHttpPoller< + ApplicationDefinitionsCreateOrUpdateByIdResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + }); + await poller.poll(); + return poller; } /** - * Updates the managed application definition. + * Creates a new managed application definition. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationDefinitionName The name of the managed application definition. - * @param parameters Parameters supplied to the update a managed application definition. + * @param parameters Parameters supplied to the create or update a managed application definition. * @param options The options parameters. */ - updateById( + async beginCreateOrUpdateByIdAndWait( resourceGroupName: string, applicationDefinitionName: string, - parameters: ApplicationDefinitionPatchable, - options?: ApplicationDefinitionsUpdateByIdOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, applicationDefinitionName, parameters, options }, - updateByIdOperationSpec + parameters: ApplicationDefinition, + options?: ApplicationDefinitionsCreateOrUpdateByIdOptionalParams, + ): Promise { + const poller = await this.beginCreateOrUpdateById( + resourceGroupName, + applicationDefinitionName, + parameters, + options, ); + return poller.pollUntilDone(); } /** @@ -357,26 +537,11 @@ export class ApplicationDefinitionsImpl implements ApplicationDefinitions { private _listByResourceGroupNext( resourceGroupName: string, nextLink: string, - options?: ApplicationDefinitionsListByResourceGroupNextOptionalParams + options?: ApplicationDefinitionsListByResourceGroupNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, nextLink, options }, - listByResourceGroupNextOperationSpec - ); - } - - /** - * ListBySubscriptionNext - * @param nextLink The nextLink from the previous successful call to the ListBySubscription method. - * @param options The options parameters. - */ - private _listBySubscriptionNext( - nextLink: string, - options?: ApplicationDefinitionsListBySubscriptionNextOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { nextLink, options }, - listBySubscriptionNextOperationSpec + listByResourceGroupNextOperationSpec, ); } } @@ -384,269 +549,194 @@ export class ApplicationDefinitionsImpl implements ApplicationDefinitions { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applicationDefinitions/{applicationDefinitionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applicationDefinitions/{applicationDefinitionName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ApplicationDefinition + bodyMapper: Mappers.ApplicationDefinition, }, 404: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.applicationDefinitionName + Parameters.subscriptionId, + Parameters.applicationDefinitionName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applicationDefinitions/{applicationDefinitionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applicationDefinitions/{applicationDefinitionName}", httpMethod: "DELETE", responses: { 200: {}, + 201: {}, + 202: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.applicationDefinitionName + Parameters.subscriptionId, + Parameters.applicationDefinitionName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applicationDefinitions/{applicationDefinitionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applicationDefinitions/{applicationDefinitionName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.ApplicationDefinition + bodyMapper: Mappers.ApplicationDefinition, }, 201: { - bodyMapper: Mappers.ApplicationDefinition + bodyMapper: Mappers.ApplicationDefinition, }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - requestBody: Parameters.parameters4, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.applicationDefinitionName - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer -}; -const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applicationDefinitions/{applicationDefinitionName}", - httpMethod: "PATCH", - responses: { - 200: { - bodyMapper: Mappers.ApplicationDefinition + 202: { + bodyMapper: Mappers.ApplicationDefinition, + }, + 204: { + bodyMapper: Mappers.ApplicationDefinition, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters5, + requestBody: Parameters.parameters3, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.applicationDefinitionName + Parameters.subscriptionId, + Parameters.applicationDefinitionName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listByResourceGroupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applicationDefinitions", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applicationDefinitions", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ApplicationDefinitionListResult + bodyMapper: Mappers.ApplicationDefinitionListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, + Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.resourceGroupName ], headerParameters: [Parameters.accept], - serializer -}; -const listBySubscriptionOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Solutions/applicationDefinitions", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.ApplicationDefinitionListResult - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [Parameters.$host, Parameters.subscriptionId], - headerParameters: [Parameters.accept], - serializer + serializer, }; const getByIdOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applicationDefinitions/{applicationDefinitionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applicationDefinitions/{applicationDefinitionName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ApplicationDefinition + bodyMapper: Mappers.ApplicationDefinition, }, 404: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, + Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.applicationDefinitionName, - Parameters.resourceGroupName1 ], headerParameters: [Parameters.accept], - serializer + serializer, }; const deleteByIdOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applicationDefinitions/{applicationDefinitionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applicationDefinitions/{applicationDefinitionName}", httpMethod: "DELETE", responses: { 200: {}, + 201: {}, + 202: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, + Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.applicationDefinitionName, - Parameters.resourceGroupName1 ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateByIdOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applicationDefinitions/{applicationDefinitionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applicationDefinitions/{applicationDefinitionName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.ApplicationDefinition + bodyMapper: Mappers.ApplicationDefinition, }, 201: { - bodyMapper: Mappers.ApplicationDefinition + bodyMapper: Mappers.ApplicationDefinition, }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - requestBody: Parameters.parameters4, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.applicationDefinitionName, - Parameters.resourceGroupName1 - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer -}; -const updateByIdOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applicationDefinitions/{applicationDefinitionName}", - httpMethod: "PATCH", - responses: { - 200: { - bodyMapper: Mappers.ApplicationDefinition + 202: { + bodyMapper: Mappers.ApplicationDefinition, + }, + 204: { + bodyMapper: Mappers.ApplicationDefinition, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters5, + requestBody: Parameters.parameters3, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.applicationDefinitionName + Parameters.subscriptionId, + Parameters.applicationDefinitionName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ApplicationDefinitionListResult + bodyMapper: Mappers.ApplicationDefinitionListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } - }, - urlParameters: [ - Parameters.$host, - Parameters.nextLink, - Parameters.subscriptionId, - Parameters.resourceGroupName - ], - headerParameters: [Parameters.accept], - serializer -}; -const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.ApplicationDefinitionListResult + bodyMapper: Mappers.ErrorResponse, }, - default: { - bodyMapper: Mappers.ErrorResponse - } }, urlParameters: [ Parameters.$host, Parameters.nextLink, - Parameters.subscriptionId + Parameters.resourceGroupName, + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/managedapplications/arm-managedapplications/src/operations/applications.ts b/sdk/managedapplications/arm-managedapplications/src/operations/applications.ts index 7b4ccff523faf..fc81599db9211 100644 --- a/sdk/managedapplications/arm-managedapplications/src/operations/applications.ts +++ b/sdk/managedapplications/arm-managedapplications/src/operations/applications.ts @@ -16,7 +16,7 @@ import { ApplicationClient } from "../applicationClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -41,16 +41,8 @@ import { ApplicationsCreateOrUpdateByIdResponse, ApplicationsUpdateByIdOptionalParams, ApplicationsUpdateByIdResponse, - ApplicationsRefreshPermissionsOptionalParams, - ApplicationsListAllowedUpgradePlansOptionalParams, - ApplicationsListAllowedUpgradePlansResponse, - UpdateAccessDefinition, - ApplicationsUpdateAccessOptionalParams, - ListTokenRequest, - ApplicationsListTokensOptionalParams, - ApplicationsListTokensResponse, ApplicationsListByResourceGroupNextResponse, - ApplicationsListBySubscriptionNextResponse + ApplicationsListBySubscriptionNextResponse, } from "../models"; /// @@ -67,13 +59,13 @@ export class ApplicationsImpl implements Applications { } /** - * Lists all the applications within a resource group. + * Gets all the applications within a resource group. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param options The options parameters. */ public listByResourceGroup( resourceGroupName: string, - options?: ApplicationsListByResourceGroupOptionalParams + options?: ApplicationsListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); return { @@ -90,16 +82,16 @@ export class ApplicationsImpl implements Applications { return this.listByResourceGroupPagingPage( resourceGroupName, options, - settings + settings, ); - } + }, }; } private async *listByResourceGroupPagingPage( resourceGroupName: string, options?: ApplicationsListByResourceGroupOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ApplicationsListByResourceGroupResponse; let continuationToken = settings?.continuationToken; @@ -114,7 +106,7 @@ export class ApplicationsImpl implements Applications { result = await this._listByResourceGroupNext( resourceGroupName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -125,22 +117,22 @@ export class ApplicationsImpl implements Applications { private async *listByResourceGroupPagingAll( resourceGroupName: string, - options?: ApplicationsListByResourceGroupOptionalParams + options?: ApplicationsListByResourceGroupOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByResourceGroupPagingPage( resourceGroupName, - options + options, )) { yield* page; } } /** - * Lists all the applications within a subscription. + * Gets all the applications within a subscription. * @param options The options parameters. */ public listBySubscription( - options?: ApplicationsListBySubscriptionOptionalParams + options?: ApplicationsListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listBySubscriptionPagingAll(options); return { @@ -155,13 +147,13 @@ export class ApplicationsImpl implements Applications { throw new Error("maxPageSize is not supported by this operation."); } return this.listBySubscriptionPagingPage(options, settings); - } + }, }; } private async *listBySubscriptionPagingPage( options?: ApplicationsListBySubscriptionOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ApplicationsListBySubscriptionResponse; let continuationToken = settings?.continuationToken; @@ -182,7 +174,7 @@ export class ApplicationsImpl implements Applications { } private async *listBySubscriptionPagingAll( - options?: ApplicationsListBySubscriptionOptionalParams + options?: ApplicationsListBySubscriptionOptionalParams, ): AsyncIterableIterator { for await (const page of this.listBySubscriptionPagingPage(options)) { yield* page; @@ -198,11 +190,11 @@ export class ApplicationsImpl implements Applications { get( resourceGroupName: string, applicationName: string, - options?: ApplicationsGetOptionalParams + options?: ApplicationsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, applicationName, options }, - getOperationSpec + getOperationSpec, ); } @@ -215,25 +207,24 @@ export class ApplicationsImpl implements Applications { async beginDelete( resourceGroupName: string, applicationName: string, - options?: ApplicationsDeleteOptionalParams + options?: ApplicationsDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -242,8 +233,8 @@ export class ApplicationsImpl implements Applications { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -251,20 +242,19 @@ export class ApplicationsImpl implements Applications { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, applicationName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" }); await poller.poll(); return poller; @@ -279,18 +269,18 @@ export class ApplicationsImpl implements Applications { async beginDeleteAndWait( resourceGroupName: string, applicationName: string, - options?: ApplicationsDeleteOptionalParams + options?: ApplicationsDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, applicationName, - options + options, ); return poller.pollUntilDone(); } /** - * Creates or updates a managed application. + * Creates a new managed application. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationName The name of the managed application. * @param parameters Parameters supplied to the create or update a managed application. @@ -300,7 +290,7 @@ export class ApplicationsImpl implements Applications { resourceGroupName: string, applicationName: string, parameters: Application, - options?: ApplicationsCreateOrUpdateOptionalParams + options?: ApplicationsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -309,21 +299,20 @@ export class ApplicationsImpl implements Applications { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -332,8 +321,8 @@ export class ApplicationsImpl implements Applications { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -341,15 +330,15 @@ export class ApplicationsImpl implements Applications { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, applicationName, parameters, options }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< ApplicationsCreateOrUpdateResponse, @@ -357,14 +346,13 @@ export class ApplicationsImpl implements Applications { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" }); await poller.poll(); return poller; } /** - * Creates or updates a managed application. + * Creates a new managed application. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationName The name of the managed application. * @param parameters Parameters supplied to the create or update a managed application. @@ -374,133 +362,60 @@ export class ApplicationsImpl implements Applications { resourceGroupName: string, applicationName: string, parameters: Application, - options?: ApplicationsCreateOrUpdateOptionalParams + options?: ApplicationsCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, applicationName, parameters, - options + options, ); return poller.pollUntilDone(); } /** - * Updates an existing managed application. + * Updates an existing managed application. The only value that can be updated via PATCH currently is + * the tags. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationName The name of the managed application. * @param options The options parameters. */ - async beginUpdate( + update( resourceGroupName: string, applicationName: string, - options?: ApplicationsUpdateOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - ApplicationsUpdateResponse - > - > { - 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, applicationName, options }, - spec: updateOperationSpec - }); - const poller = await createHttpPoller< - ApplicationsUpdateResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" - }); - await poller.poll(); - return poller; - } - - /** - * Updates an existing managed application. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param applicationName The name of the managed application. - * @param options The options parameters. - */ - async beginUpdateAndWait( - resourceGroupName: string, - applicationName: string, - options?: ApplicationsUpdateOptionalParams + options?: ApplicationsUpdateOptionalParams, ): Promise { - const poller = await this.beginUpdate( - resourceGroupName, - applicationName, - options + return this.client.sendOperationRequest( + { resourceGroupName, applicationName, options }, + updateOperationSpec, ); - return poller.pollUntilDone(); } /** - * Lists all the applications within a resource group. + * Gets all the applications within a resource group. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param options The options parameters. */ private _listByResourceGroup( resourceGroupName: string, - options?: ApplicationsListByResourceGroupOptionalParams + options?: ApplicationsListByResourceGroupOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, - listByResourceGroupOperationSpec + listByResourceGroupOperationSpec, ); } /** - * Lists all the applications within a subscription. + * Gets all the applications within a subscription. * @param options The options parameters. */ private _listBySubscription( - options?: ApplicationsListBySubscriptionOptionalParams + options?: ApplicationsListBySubscriptionOptionalParams, ): Promise { return this.client.sendOperationRequest( { options }, - listBySubscriptionOperationSpec + listBySubscriptionOperationSpec, ); } @@ -513,11 +428,11 @@ export class ApplicationsImpl implements Applications { */ getById( applicationId: string, - options?: ApplicationsGetByIdOptionalParams + options?: ApplicationsGetByIdOptionalParams, ): Promise { return this.client.sendOperationRequest( { applicationId, options }, - getByIdOperationSpec + getByIdOperationSpec, ); } @@ -530,25 +445,24 @@ export class ApplicationsImpl implements Applications { */ async beginDeleteById( applicationId: string, - options?: ApplicationsDeleteByIdOptionalParams + options?: ApplicationsDeleteByIdOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -557,8 +471,8 @@ export class ApplicationsImpl implements Applications { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -566,20 +480,19 @@ export class ApplicationsImpl implements Applications { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { applicationId, options }, - spec: deleteByIdOperationSpec + spec: deleteByIdOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" }); await poller.poll(); return poller; @@ -594,14 +507,14 @@ export class ApplicationsImpl implements Applications { */ async beginDeleteByIdAndWait( applicationId: string, - options?: ApplicationsDeleteByIdOptionalParams + options?: ApplicationsDeleteByIdOptionalParams, ): Promise { const poller = await this.beginDeleteById(applicationId, options); return poller.pollUntilDone(); } /** - * Creates or updates a managed application. + * Creates a new managed application. * @param applicationId The fully qualified ID of the managed application, including the managed * application name and the managed application resource type. Use the format, * /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applications/{application-name} @@ -611,7 +524,7 @@ export class ApplicationsImpl implements Applications { async beginCreateOrUpdateById( applicationId: string, parameters: Application, - options?: ApplicationsCreateOrUpdateByIdOptionalParams + options?: ApplicationsCreateOrUpdateByIdOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -620,21 +533,20 @@ export class ApplicationsImpl implements Applications { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -643,8 +555,8 @@ export class ApplicationsImpl implements Applications { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -652,15 +564,15 @@ export class ApplicationsImpl implements Applications { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { applicationId, parameters, options }, - spec: createOrUpdateByIdOperationSpec + spec: createOrUpdateByIdOperationSpec, }); const poller = await createHttpPoller< ApplicationsCreateOrUpdateByIdResponse, @@ -668,14 +580,13 @@ export class ApplicationsImpl implements Applications { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" }); await poller.poll(); return poller; } /** - * Creates or updates a managed application. + * Creates a new managed application. * @param applicationId The fully qualified ID of the managed application, including the managed * application name and the managed application resource type. Use the format, * /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applications/{application-name} @@ -685,307 +596,31 @@ export class ApplicationsImpl implements Applications { async beginCreateOrUpdateByIdAndWait( applicationId: string, parameters: Application, - options?: ApplicationsCreateOrUpdateByIdOptionalParams + options?: ApplicationsCreateOrUpdateByIdOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdateById( applicationId, parameters, - options + options, ); return poller.pollUntilDone(); } /** - * Updates an existing managed application. + * Updates an existing managed application. The only value that can be updated via PATCH currently is + * the tags. * @param applicationId The fully qualified ID of the managed application, including the managed * application name and the managed application resource type. Use the format, * /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applications/{application-name} * @param options The options parameters. */ - async beginUpdateById( + updateById( applicationId: string, - options?: ApplicationsUpdateByIdOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - ApplicationsUpdateByIdResponse - > - > { - 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: { applicationId, options }, - spec: updateByIdOperationSpec - }); - const poller = await createHttpPoller< - ApplicationsUpdateByIdResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" - }); - await poller.poll(); - return poller; - } - - /** - * Updates an existing managed application. - * @param applicationId The fully qualified ID of the managed application, including the managed - * application name and the managed application resource type. Use the format, - * /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applications/{application-name} - * @param options The options parameters. - */ - async beginUpdateByIdAndWait( - applicationId: string, - options?: ApplicationsUpdateByIdOptionalParams + options?: ApplicationsUpdateByIdOptionalParams, ): Promise { - const poller = await this.beginUpdateById(applicationId, options); - return poller.pollUntilDone(); - } - - /** - * Refresh Permissions for application. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param applicationName The name of the managed application. - * @param options The options parameters. - */ - async beginRefreshPermissions( - resourceGroupName: string, - applicationName: string, - options?: ApplicationsRefreshPermissionsOptionalParams - ): Promise, void>> { - 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, applicationName, options }, - spec: refreshPermissionsOperationSpec - }); - const poller = await createHttpPoller>(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" - }); - await poller.poll(); - return poller; - } - - /** - * Refresh Permissions for application. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param applicationName The name of the managed application. - * @param options The options parameters. - */ - async beginRefreshPermissionsAndWait( - resourceGroupName: string, - applicationName: string, - options?: ApplicationsRefreshPermissionsOptionalParams - ): Promise { - const poller = await this.beginRefreshPermissions( - resourceGroupName, - applicationName, - options - ); - return poller.pollUntilDone(); - } - - /** - * List allowed upgrade plans for application. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param applicationName The name of the managed application. - * @param options The options parameters. - */ - listAllowedUpgradePlans( - resourceGroupName: string, - applicationName: string, - options?: ApplicationsListAllowedUpgradePlansOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, applicationName, options }, - listAllowedUpgradePlansOperationSpec - ); - } - - /** - * Update access for application. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param applicationName The name of the managed application. - * @param parameters Request body parameters to list tokens. - * @param options The options parameters. - */ - async beginUpdateAccess( - resourceGroupName: string, - applicationName: string, - parameters: UpdateAccessDefinition, - options?: ApplicationsUpdateAccessOptionalParams - ): Promise, void>> { - 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, applicationName, parameters, options }, - spec: updateAccessOperationSpec - }); - const poller = await createHttpPoller>(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" - }); - await poller.poll(); - return poller; - } - - /** - * Update access for application. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param applicationName The name of the managed application. - * @param parameters Request body parameters to list tokens. - * @param options The options parameters. - */ - async beginUpdateAccessAndWait( - resourceGroupName: string, - applicationName: string, - parameters: UpdateAccessDefinition, - options?: ApplicationsUpdateAccessOptionalParams - ): Promise { - const poller = await this.beginUpdateAccess( - resourceGroupName, - applicationName, - parameters, - options - ); - return poller.pollUntilDone(); - } - - /** - * List tokens for application. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param applicationName The name of the managed application. - * @param parameters Request body parameters to list tokens. - * @param options The options parameters. - */ - listTokens( - resourceGroupName: string, - applicationName: string, - parameters: ListTokenRequest, - options?: ApplicationsListTokensOptionalParams - ): Promise { return this.client.sendOperationRequest( - { resourceGroupName, applicationName, parameters, options }, - listTokensOperationSpec + { applicationId, options }, + updateByIdOperationSpec, ); } @@ -998,11 +633,11 @@ export class ApplicationsImpl implements Applications { private _listByResourceGroupNext( resourceGroupName: string, nextLink: string, - options?: ApplicationsListByResourceGroupNextOptionalParams + options?: ApplicationsListByResourceGroupNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, nextLink, options }, - listByResourceGroupNextOperationSpec + listByResourceGroupNextOperationSpec, ); } @@ -1013,11 +648,11 @@ export class ApplicationsImpl implements Applications { */ private _listBySubscriptionNext( nextLink: string, - options?: ApplicationsListBySubscriptionNextOptionalParams + options?: ApplicationsListBySubscriptionNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listBySubscriptionNextOperationSpec + listBySubscriptionNextOperationSpec, ); } } @@ -1025,31 +660,29 @@ export class ApplicationsImpl implements Applications { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications/{applicationName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications/{applicationName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.Application + bodyMapper: Mappers.Application, }, 404: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.applicationName + Parameters.applicationName, + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications/{applicationName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications/{applicationName}", httpMethod: "DELETE", responses: { 200: {}, @@ -1057,139 +690,126 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.applicationName + Parameters.applicationName, + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications/{applicationName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications/{applicationName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.Application + bodyMapper: Mappers.Application, }, 201: { - bodyMapper: Mappers.Application + bodyMapper: Mappers.Application, }, 202: { - bodyMapper: Mappers.Application + bodyMapper: Mappers.Application, }, 204: { - bodyMapper: Mappers.Application + bodyMapper: Mappers.Application, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.parameters, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.applicationName + Parameters.applicationName, + Parameters.subscriptionId, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications/{applicationName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications/{applicationName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.ApplicationPatchable - }, - 201: { - bodyMapper: Mappers.ApplicationPatchable - }, - 202: { - bodyMapper: Mappers.ApplicationPatchable - }, - 204: { - bodyMapper: Mappers.ApplicationPatchable + bodyMapper: Mappers.Application, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.parameters1, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.applicationName + Parameters.applicationName, + Parameters.subscriptionId, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listByResourceGroupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ApplicationListResult + bodyMapper: Mappers.ApplicationListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, + Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.resourceGroupName ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listBySubscriptionOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Solutions/applications", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Solutions/applications", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ApplicationListResult + bodyMapper: Mappers.ApplicationListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const getByIdOperationSpec: coreClient.OperationSpec = { path: "/{applicationId}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.Application + bodyMapper: Mappers.Application, }, 404: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.applicationId], headerParameters: [Parameters.accept], - serializer + serializer, }; const deleteByIdOperationSpec: coreClient.OperationSpec = { path: "/{applicationId}", @@ -1200,198 +820,95 @@ const deleteByIdOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.applicationId], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateByIdOperationSpec: coreClient.OperationSpec = { path: "/{applicationId}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.Application + bodyMapper: Mappers.Application, }, 201: { - bodyMapper: Mappers.Application + bodyMapper: Mappers.Application, }, 202: { - bodyMapper: Mappers.Application + bodyMapper: Mappers.Application, }, 204: { - bodyMapper: Mappers.Application + bodyMapper: Mappers.Application, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.parameters, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.applicationId], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateByIdOperationSpec: coreClient.OperationSpec = { path: "/{applicationId}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.ApplicationPatchable - }, - 201: { - bodyMapper: Mappers.ApplicationPatchable - }, - 202: { - bodyMapper: Mappers.ApplicationPatchable + bodyMapper: Mappers.Application, }, - 204: { - bodyMapper: Mappers.ApplicationPatchable - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - requestBody: Parameters.parameters1, - queryParameters: [Parameters.apiVersion], - urlParameters: [Parameters.$host, Parameters.applicationId], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer -}; -const refreshPermissionsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications/{applicationName}/refreshPermissions", - httpMethod: "POST", - responses: { - 200: {}, - 201: {}, - 202: {}, - 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.applicationName - ], - headerParameters: [Parameters.accept], - serializer -}; -const listAllowedUpgradePlansOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications/{applicationName}/listAllowedUpgradePlans", - httpMethod: "POST", - responses: { - 200: { - bodyMapper: Mappers.AllowedUpgradePlansResult + bodyMapper: Mappers.ErrorResponse, }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.applicationName - ], - headerParameters: [Parameters.accept], - serializer -}; -const updateAccessOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications/{applicationName}/updateAccess", - httpMethod: "POST", - responses: { - 200: {}, - 201: {}, - 202: {}, - 204: {}, - default: { - bodyMapper: Mappers.ErrorResponse - } }, requestBody: Parameters.parameters2, queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.applicationName - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer -}; -const listTokensOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications/{applicationName}/listTokens", - httpMethod: "POST", - responses: { - 200: { - bodyMapper: Mappers.ManagedIdentityTokenResult - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - requestBody: Parameters.parameters3, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.applicationName - ], + urlParameters: [Parameters.$host, Parameters.applicationId], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ApplicationListResult + bodyMapper: Mappers.ApplicationListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.nextLink, + Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.resourceGroupName ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ApplicationListResult + bodyMapper: Mappers.ApplicationListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.nextLink, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/managedapplications/arm-managedapplications/src/operations/index.ts b/sdk/managedapplications/arm-managedapplications/src/operations/index.ts index 63259e0e45c43..6ca98c210b1ce 100644 --- a/sdk/managedapplications/arm-managedapplications/src/operations/index.ts +++ b/sdk/managedapplications/arm-managedapplications/src/operations/index.ts @@ -8,4 +8,3 @@ export * from "./applications"; export * from "./applicationDefinitions"; -export * from "./jitRequests"; diff --git a/sdk/managedapplications/arm-managedapplications/src/operations/jitRequests.ts b/sdk/managedapplications/arm-managedapplications/src/operations/jitRequests.ts deleted file mode 100644 index 1005d0e2b1459..0000000000000 --- a/sdk/managedapplications/arm-managedapplications/src/operations/jitRequests.ts +++ /dev/null @@ -1,366 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { JitRequests } from "../operationsInterfaces"; -import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { ApplicationClient } from "../applicationClient"; -import { - SimplePollerLike, - OperationState, - createHttpPoller -} from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; -import { - JitRequestsGetOptionalParams, - JitRequestsGetResponse, - JitRequestDefinition, - JitRequestsCreateOrUpdateOptionalParams, - JitRequestsCreateOrUpdateResponse, - JitRequestPatchable, - JitRequestsUpdateOptionalParams, - JitRequestsUpdateResponse, - JitRequestsDeleteOptionalParams, - JitRequestsListBySubscriptionOptionalParams, - JitRequestsListBySubscriptionResponse, - JitRequestsListByResourceGroupOptionalParams, - JitRequestsListByResourceGroupResponse -} from "../models"; - -/** Class containing JitRequests operations. */ -export class JitRequestsImpl implements JitRequests { - private readonly client: ApplicationClient; - - /** - * Initialize a new instance of the class JitRequests class. - * @param client Reference to the service client - */ - constructor(client: ApplicationClient) { - this.client = client; - } - - /** - * Gets the JIT request. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param jitRequestName The name of the JIT request. - * @param options The options parameters. - */ - get( - resourceGroupName: string, - jitRequestName: string, - options?: JitRequestsGetOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, jitRequestName, options }, - getOperationSpec - ); - } - - /** - * Creates or updates the JIT request. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param jitRequestName The name of the JIT request. - * @param parameters Parameters supplied to the update JIT request. - * @param options The options parameters. - */ - async beginCreateOrUpdate( - resourceGroupName: string, - jitRequestName: string, - parameters: JitRequestDefinition, - options?: JitRequestsCreateOrUpdateOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - JitRequestsCreateOrUpdateResponse - > - > { - 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, jitRequestName, parameters, options }, - spec: createOrUpdateOperationSpec - }); - const poller = await createHttpPoller< - JitRequestsCreateOrUpdateResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" - }); - await poller.poll(); - return poller; - } - - /** - * Creates or updates the JIT request. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param jitRequestName The name of the JIT request. - * @param parameters Parameters supplied to the update JIT request. - * @param options The options parameters. - */ - async beginCreateOrUpdateAndWait( - resourceGroupName: string, - jitRequestName: string, - parameters: JitRequestDefinition, - options?: JitRequestsCreateOrUpdateOptionalParams - ): Promise { - const poller = await this.beginCreateOrUpdate( - resourceGroupName, - jitRequestName, - parameters, - options - ); - return poller.pollUntilDone(); - } - - /** - * Updates the JIT request. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param jitRequestName The name of the JIT request. - * @param parameters Parameters supplied to the update JIT request. - * @param options The options parameters. - */ - update( - resourceGroupName: string, - jitRequestName: string, - parameters: JitRequestPatchable, - options?: JitRequestsUpdateOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, jitRequestName, parameters, options }, - updateOperationSpec - ); - } - - /** - * Deletes the JIT request. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param jitRequestName The name of the JIT request. - * @param options The options parameters. - */ - delete( - resourceGroupName: string, - jitRequestName: string, - options?: JitRequestsDeleteOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, jitRequestName, options }, - deleteOperationSpec - ); - } - - /** - * Lists all JIT requests within the subscription. - * @param options The options parameters. - */ - listBySubscription( - options?: JitRequestsListBySubscriptionOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { options }, - listBySubscriptionOperationSpec - ); - } - - /** - * Lists all JIT requests within the resource group. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param options The options parameters. - */ - listByResourceGroup( - resourceGroupName: string, - options?: JitRequestsListByResourceGroupOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, options }, - listByResourceGroupOperationSpec - ); - } -} -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/jitRequests/{jitRequestName}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.JitRequestDefinition - }, - 404: {}, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.jitRequestName - ], - headerParameters: [Parameters.accept], - serializer -}; -const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/jitRequests/{jitRequestName}", - httpMethod: "PUT", - responses: { - 200: { - bodyMapper: Mappers.JitRequestDefinition - }, - 201: { - bodyMapper: Mappers.JitRequestDefinition - }, - 202: { - bodyMapper: Mappers.JitRequestDefinition - }, - 204: { - bodyMapper: Mappers.JitRequestDefinition - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - requestBody: Parameters.parameters6, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.jitRequestName - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer -}; -const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/jitRequests/{jitRequestName}", - httpMethod: "PATCH", - responses: { - 200: { - bodyMapper: Mappers.JitRequestDefinition - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - requestBody: Parameters.parameters7, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.jitRequestName - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer -}; -const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/jitRequests/{jitRequestName}", - httpMethod: "DELETE", - responses: { - 200: {}, - 204: {}, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.jitRequestName - ], - headerParameters: [Parameters.accept], - serializer -}; -const listBySubscriptionOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Solutions/jitRequests", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.JitRequestDefinitionListResult - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [Parameters.$host, Parameters.subscriptionId], - headerParameters: [Parameters.accept], - serializer -}; -const listByResourceGroupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/jitRequests", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.JitRequestDefinitionListResult - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName - ], - headerParameters: [Parameters.accept], - serializer -}; diff --git a/sdk/managedapplications/arm-managedapplications/src/operationsInterfaces/applicationDefinitions.ts b/sdk/managedapplications/arm-managedapplications/src/operationsInterfaces/applicationDefinitions.ts index f170bdb34088a..c02623e9b6609 100644 --- a/sdk/managedapplications/arm-managedapplications/src/operationsInterfaces/applicationDefinitions.ts +++ b/sdk/managedapplications/arm-managedapplications/src/operationsInterfaces/applicationDefinitions.ts @@ -7,25 +7,20 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { ApplicationDefinition, ApplicationDefinitionsListByResourceGroupOptionalParams, - ApplicationDefinitionsListBySubscriptionOptionalParams, ApplicationDefinitionsGetOptionalParams, ApplicationDefinitionsGetResponse, ApplicationDefinitionsDeleteOptionalParams, ApplicationDefinitionsCreateOrUpdateOptionalParams, ApplicationDefinitionsCreateOrUpdateResponse, - ApplicationDefinitionPatchable, - ApplicationDefinitionsUpdateOptionalParams, - ApplicationDefinitionsUpdateResponse, ApplicationDefinitionsGetByIdOptionalParams, ApplicationDefinitionsGetByIdResponse, ApplicationDefinitionsDeleteByIdOptionalParams, ApplicationDefinitionsCreateOrUpdateByIdOptionalParams, ApplicationDefinitionsCreateOrUpdateByIdResponse, - ApplicationDefinitionsUpdateByIdOptionalParams, - ApplicationDefinitionsUpdateByIdResponse } from "../models"; /// @@ -38,14 +33,7 @@ export interface ApplicationDefinitions { */ listByResourceGroup( resourceGroupName: string, - options?: ApplicationDefinitionsListByResourceGroupOptionalParams - ): PagedAsyncIterableIterator; - /** - * Lists all the application definitions within a subscription. - * @param options The options parameters. - */ - listBySubscription( - options?: ApplicationDefinitionsListBySubscriptionOptionalParams + options?: ApplicationDefinitionsListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the managed application definition. @@ -56,45 +44,61 @@ export interface ApplicationDefinitions { get( resourceGroupName: string, applicationDefinitionName: string, - options?: ApplicationDefinitionsGetOptionalParams + options?: ApplicationDefinitionsGetOptionalParams, ): Promise; /** * Deletes the managed application definition. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param applicationDefinitionName The name of the managed application definition. + * @param applicationDefinitionName The name of the managed application definition to delete. + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + applicationDefinitionName: string, + options?: ApplicationDefinitionsDeleteOptionalParams, + ): Promise, void>>; + /** + * Deletes the managed application definition. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param applicationDefinitionName The name of the managed application definition to delete. * @param options The options parameters. */ - delete( + beginDeleteAndWait( resourceGroupName: string, applicationDefinitionName: string, - options?: ApplicationDefinitionsDeleteOptionalParams + options?: ApplicationDefinitionsDeleteOptionalParams, ): Promise; /** - * Creates or updates a managed application definition. + * Creates a new managed application definition. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationDefinitionName The name of the managed application definition. * @param parameters Parameters supplied to the create or update an managed application definition. * @param options The options parameters. */ - createOrUpdate( + beginCreateOrUpdate( resourceGroupName: string, applicationDefinitionName: string, parameters: ApplicationDefinition, - options?: ApplicationDefinitionsCreateOrUpdateOptionalParams - ): Promise; + options?: ApplicationDefinitionsCreateOrUpdateOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + ApplicationDefinitionsCreateOrUpdateResponse + > + >; /** - * Updates the managed application definition. + * Creates a new managed application definition. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationDefinitionName The name of the managed application definition. - * @param parameters Parameters supplied to the update a managed application definition. + * @param parameters Parameters supplied to the create or update an managed application definition. * @param options The options parameters. */ - update( + beginCreateOrUpdateAndWait( resourceGroupName: string, applicationDefinitionName: string, - parameters: ApplicationDefinitionPatchable, - options?: ApplicationDefinitionsUpdateOptionalParams - ): Promise; + parameters: ApplicationDefinition, + options?: ApplicationDefinitionsCreateOrUpdateOptionalParams, + ): Promise; /** * Gets the managed application definition. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -104,7 +108,7 @@ export interface ApplicationDefinitions { getById( resourceGroupName: string, applicationDefinitionName: string, - options?: ApplicationDefinitionsGetByIdOptionalParams + options?: ApplicationDefinitionsGetByIdOptionalParams, ): Promise; /** * Deletes the managed application definition. @@ -112,35 +116,51 @@ export interface ApplicationDefinitions { * @param applicationDefinitionName The name of the managed application definition. * @param options The options parameters. */ - deleteById( + beginDeleteById( + resourceGroupName: string, + applicationDefinitionName: string, + options?: ApplicationDefinitionsDeleteByIdOptionalParams, + ): Promise, void>>; + /** + * Deletes the managed application definition. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param applicationDefinitionName The name of the managed application definition. + * @param options The options parameters. + */ + beginDeleteByIdAndWait( resourceGroupName: string, applicationDefinitionName: string, - options?: ApplicationDefinitionsDeleteByIdOptionalParams + options?: ApplicationDefinitionsDeleteByIdOptionalParams, ): Promise; /** - * Creates or updates a managed application definition. + * Creates a new managed application definition. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationDefinitionName The name of the managed application definition. * @param parameters Parameters supplied to the create or update a managed application definition. * @param options The options parameters. */ - createOrUpdateById( + beginCreateOrUpdateById( resourceGroupName: string, applicationDefinitionName: string, parameters: ApplicationDefinition, - options?: ApplicationDefinitionsCreateOrUpdateByIdOptionalParams - ): Promise; + options?: ApplicationDefinitionsCreateOrUpdateByIdOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + ApplicationDefinitionsCreateOrUpdateByIdResponse + > + >; /** - * Updates the managed application definition. + * Creates a new managed application definition. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationDefinitionName The name of the managed application definition. - * @param parameters Parameters supplied to the update a managed application definition. + * @param parameters Parameters supplied to the create or update a managed application definition. * @param options The options parameters. */ - updateById( + beginCreateOrUpdateByIdAndWait( resourceGroupName: string, applicationDefinitionName: string, - parameters: ApplicationDefinitionPatchable, - options?: ApplicationDefinitionsUpdateByIdOptionalParams - ): Promise; + parameters: ApplicationDefinition, + options?: ApplicationDefinitionsCreateOrUpdateByIdOptionalParams, + ): Promise; } diff --git a/sdk/managedapplications/arm-managedapplications/src/operationsInterfaces/applications.ts b/sdk/managedapplications/arm-managedapplications/src/operationsInterfaces/applications.ts index 7a1527981881d..1bb8d4321782b 100644 --- a/sdk/managedapplications/arm-managedapplications/src/operationsInterfaces/applications.ts +++ b/sdk/managedapplications/arm-managedapplications/src/operationsInterfaces/applications.ts @@ -26,34 +26,26 @@ import { ApplicationsCreateOrUpdateByIdResponse, ApplicationsUpdateByIdOptionalParams, ApplicationsUpdateByIdResponse, - ApplicationsRefreshPermissionsOptionalParams, - ApplicationsListAllowedUpgradePlansOptionalParams, - ApplicationsListAllowedUpgradePlansResponse, - UpdateAccessDefinition, - ApplicationsUpdateAccessOptionalParams, - ListTokenRequest, - ApplicationsListTokensOptionalParams, - ApplicationsListTokensResponse } from "../models"; /// /** Interface representing a Applications. */ export interface Applications { /** - * Lists all the applications within a resource group. + * Gets all the applications within a resource group. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param options The options parameters. */ listByResourceGroup( resourceGroupName: string, - options?: ApplicationsListByResourceGroupOptionalParams + options?: ApplicationsListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator; /** - * Lists all the applications within a subscription. + * Gets all the applications within a subscription. * @param options The options parameters. */ listBySubscription( - options?: ApplicationsListBySubscriptionOptionalParams + options?: ApplicationsListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the managed application. @@ -64,7 +56,7 @@ export interface Applications { get( resourceGroupName: string, applicationName: string, - options?: ApplicationsGetOptionalParams + options?: ApplicationsGetOptionalParams, ): Promise; /** * Deletes the managed application. @@ -75,7 +67,7 @@ export interface Applications { beginDelete( resourceGroupName: string, applicationName: string, - options?: ApplicationsDeleteOptionalParams + options?: ApplicationsDeleteOptionalParams, ): Promise, void>>; /** * Deletes the managed application. @@ -86,10 +78,10 @@ export interface Applications { beginDeleteAndWait( resourceGroupName: string, applicationName: string, - options?: ApplicationsDeleteOptionalParams + options?: ApplicationsDeleteOptionalParams, ): Promise; /** - * Creates or updates a managed application. + * Creates a new managed application. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationName The name of the managed application. * @param parameters Parameters supplied to the create or update a managed application. @@ -99,7 +91,7 @@ export interface Applications { resourceGroupName: string, applicationName: string, parameters: Application, - options?: ApplicationsCreateOrUpdateOptionalParams + options?: ApplicationsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -107,7 +99,7 @@ export interface Applications { > >; /** - * Creates or updates a managed application. + * Creates a new managed application. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationName The name of the managed application. * @param parameters Parameters supplied to the create or update a managed application. @@ -117,34 +109,19 @@ export interface Applications { resourceGroupName: string, applicationName: string, parameters: Application, - options?: ApplicationsCreateOrUpdateOptionalParams + options?: ApplicationsCreateOrUpdateOptionalParams, ): Promise; /** - * Updates an existing managed application. + * Updates an existing managed application. The only value that can be updated via PATCH currently is + * the tags. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param applicationName The name of the managed application. * @param options The options parameters. */ - beginUpdate( + update( resourceGroupName: string, applicationName: string, - options?: ApplicationsUpdateOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - ApplicationsUpdateResponse - > - >; - /** - * Updates an existing managed application. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param applicationName The name of the managed application. - * @param options The options parameters. - */ - beginUpdateAndWait( - resourceGroupName: string, - applicationName: string, - options?: ApplicationsUpdateOptionalParams + options?: ApplicationsUpdateOptionalParams, ): Promise; /** * Gets the managed application. @@ -155,7 +132,7 @@ export interface Applications { */ getById( applicationId: string, - options?: ApplicationsGetByIdOptionalParams + options?: ApplicationsGetByIdOptionalParams, ): Promise; /** * Deletes the managed application. @@ -166,7 +143,7 @@ export interface Applications { */ beginDeleteById( applicationId: string, - options?: ApplicationsDeleteByIdOptionalParams + options?: ApplicationsDeleteByIdOptionalParams, ): Promise, void>>; /** * Deletes the managed application. @@ -177,10 +154,10 @@ export interface Applications { */ beginDeleteByIdAndWait( applicationId: string, - options?: ApplicationsDeleteByIdOptionalParams + options?: ApplicationsDeleteByIdOptionalParams, ): Promise; /** - * Creates or updates a managed application. + * Creates a new managed application. * @param applicationId The fully qualified ID of the managed application, including the managed * application name and the managed application resource type. Use the format, * /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applications/{application-name} @@ -190,7 +167,7 @@ export interface Applications { beginCreateOrUpdateById( applicationId: string, parameters: Application, - options?: ApplicationsCreateOrUpdateByIdOptionalParams + options?: ApplicationsCreateOrUpdateByIdOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -198,7 +175,7 @@ export interface Applications { > >; /** - * Creates or updates a managed application. + * Creates a new managed application. * @param applicationId The fully qualified ID of the managed application, including the managed * application name and the managed application resource type. Use the format, * /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applications/{application-name} @@ -208,105 +185,18 @@ export interface Applications { beginCreateOrUpdateByIdAndWait( applicationId: string, parameters: Application, - options?: ApplicationsCreateOrUpdateByIdOptionalParams + options?: ApplicationsCreateOrUpdateByIdOptionalParams, ): Promise; /** - * Updates an existing managed application. - * @param applicationId The fully qualified ID of the managed application, including the managed - * application name and the managed application resource type. Use the format, - * /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applications/{application-name} - * @param options The options parameters. - */ - beginUpdateById( - applicationId: string, - options?: ApplicationsUpdateByIdOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - ApplicationsUpdateByIdResponse - > - >; - /** - * Updates an existing managed application. + * Updates an existing managed application. The only value that can be updated via PATCH currently is + * the tags. * @param applicationId The fully qualified ID of the managed application, including the managed * application name and the managed application resource type. Use the format, * /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applications/{application-name} * @param options The options parameters. */ - beginUpdateByIdAndWait( + updateById( applicationId: string, - options?: ApplicationsUpdateByIdOptionalParams + options?: ApplicationsUpdateByIdOptionalParams, ): Promise; - /** - * Refresh Permissions for application. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param applicationName The name of the managed application. - * @param options The options parameters. - */ - beginRefreshPermissions( - resourceGroupName: string, - applicationName: string, - options?: ApplicationsRefreshPermissionsOptionalParams - ): Promise, void>>; - /** - * Refresh Permissions for application. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param applicationName The name of the managed application. - * @param options The options parameters. - */ - beginRefreshPermissionsAndWait( - resourceGroupName: string, - applicationName: string, - options?: ApplicationsRefreshPermissionsOptionalParams - ): Promise; - /** - * List allowed upgrade plans for application. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param applicationName The name of the managed application. - * @param options The options parameters. - */ - listAllowedUpgradePlans( - resourceGroupName: string, - applicationName: string, - options?: ApplicationsListAllowedUpgradePlansOptionalParams - ): Promise; - /** - * Update access for application. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param applicationName The name of the managed application. - * @param parameters Request body parameters to list tokens. - * @param options The options parameters. - */ - beginUpdateAccess( - resourceGroupName: string, - applicationName: string, - parameters: UpdateAccessDefinition, - options?: ApplicationsUpdateAccessOptionalParams - ): Promise, void>>; - /** - * Update access for application. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param applicationName The name of the managed application. - * @param parameters Request body parameters to list tokens. - * @param options The options parameters. - */ - beginUpdateAccessAndWait( - resourceGroupName: string, - applicationName: string, - parameters: UpdateAccessDefinition, - options?: ApplicationsUpdateAccessOptionalParams - ): Promise; - /** - * List tokens for application. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param applicationName The name of the managed application. - * @param parameters Request body parameters to list tokens. - * @param options The options parameters. - */ - listTokens( - resourceGroupName: string, - applicationName: string, - parameters: ListTokenRequest, - options?: ApplicationsListTokensOptionalParams - ): Promise; } diff --git a/sdk/managedapplications/arm-managedapplications/src/operationsInterfaces/index.ts b/sdk/managedapplications/arm-managedapplications/src/operationsInterfaces/index.ts index 63259e0e45c43..6ca98c210b1ce 100644 --- a/sdk/managedapplications/arm-managedapplications/src/operationsInterfaces/index.ts +++ b/sdk/managedapplications/arm-managedapplications/src/operationsInterfaces/index.ts @@ -8,4 +8,3 @@ export * from "./applications"; export * from "./applicationDefinitions"; -export * from "./jitRequests"; diff --git a/sdk/managedapplications/arm-managedapplications/src/operationsInterfaces/jitRequests.ts b/sdk/managedapplications/arm-managedapplications/src/operationsInterfaces/jitRequests.ts deleted file mode 100644 index 980b0f074b76c..0000000000000 --- a/sdk/managedapplications/arm-managedapplications/src/operationsInterfaces/jitRequests.ts +++ /dev/null @@ -1,110 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { SimplePollerLike, OperationState } from "@azure/core-lro"; -import { - JitRequestsGetOptionalParams, - JitRequestsGetResponse, - JitRequestDefinition, - JitRequestsCreateOrUpdateOptionalParams, - JitRequestsCreateOrUpdateResponse, - JitRequestPatchable, - JitRequestsUpdateOptionalParams, - JitRequestsUpdateResponse, - JitRequestsDeleteOptionalParams, - JitRequestsListBySubscriptionOptionalParams, - JitRequestsListBySubscriptionResponse, - JitRequestsListByResourceGroupOptionalParams, - JitRequestsListByResourceGroupResponse -} from "../models"; - -/** Interface representing a JitRequests. */ -export interface JitRequests { - /** - * Gets the JIT request. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param jitRequestName The name of the JIT request. - * @param options The options parameters. - */ - get( - resourceGroupName: string, - jitRequestName: string, - options?: JitRequestsGetOptionalParams - ): Promise; - /** - * Creates or updates the JIT request. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param jitRequestName The name of the JIT request. - * @param parameters Parameters supplied to the update JIT request. - * @param options The options parameters. - */ - beginCreateOrUpdate( - resourceGroupName: string, - jitRequestName: string, - parameters: JitRequestDefinition, - options?: JitRequestsCreateOrUpdateOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - JitRequestsCreateOrUpdateResponse - > - >; - /** - * Creates or updates the JIT request. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param jitRequestName The name of the JIT request. - * @param parameters Parameters supplied to the update JIT request. - * @param options The options parameters. - */ - beginCreateOrUpdateAndWait( - resourceGroupName: string, - jitRequestName: string, - parameters: JitRequestDefinition, - options?: JitRequestsCreateOrUpdateOptionalParams - ): Promise; - /** - * Updates the JIT request. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param jitRequestName The name of the JIT request. - * @param parameters Parameters supplied to the update JIT request. - * @param options The options parameters. - */ - update( - resourceGroupName: string, - jitRequestName: string, - parameters: JitRequestPatchable, - options?: JitRequestsUpdateOptionalParams - ): Promise; - /** - * Deletes the JIT request. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param jitRequestName The name of the JIT request. - * @param options The options parameters. - */ - delete( - resourceGroupName: string, - jitRequestName: string, - options?: JitRequestsDeleteOptionalParams - ): Promise; - /** - * Lists all JIT requests within the subscription. - * @param options The options parameters. - */ - listBySubscription( - options?: JitRequestsListBySubscriptionOptionalParams - ): Promise; - /** - * Lists all JIT requests within the resource group. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param options The options parameters. - */ - listByResourceGroup( - resourceGroupName: string, - options?: JitRequestsListByResourceGroupOptionalParams - ): Promise; -} diff --git a/sdk/managedapplications/arm-managedapplications/src/pagingHelper.ts b/sdk/managedapplications/arm-managedapplications/src/pagingHelper.ts index 269a2b9814b51..205cccc265927 100644 --- a/sdk/managedapplications/arm-managedapplications/src/pagingHelper.ts +++ b/sdk/managedapplications/arm-managedapplications/src/pagingHelper.ts @@ -28,7 +28,7 @@ export function getContinuationToken(page: unknown): string | undefined { export function setContinuationToken( page: unknown, - continuationToken: string | undefined + continuationToken: string | undefined, ): void { if (typeof page !== "object" || page === null || !continuationToken) { return; diff --git a/sdk/managedapplications/arm-managedapplications/test/sampleTest.ts b/sdk/managedapplications/arm-managedapplications/test/sampleTest.ts new file mode 100644 index 0000000000000..d64be981b6946 --- /dev/null +++ b/sdk/managedapplications/arm-managedapplications/test/sampleTest.ts @@ -0,0 +1,43 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { + Recorder, + RecorderStartOptions, + env, +} from "@azure-tools/test-recorder"; +import { assert } from "chai"; +import { Context } from "mocha"; + +const replaceableVariables: Record = { + AZURE_CLIENT_ID: "azure_client_id", + AZURE_CLIENT_SECRET: "azure_client_secret", + AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888", + SUBSCRIPTION_ID: "azure_subscription_id", +}; + +const recorderOptions: RecorderStartOptions = { + envSetupForPlayback: replaceableVariables, +}; + +describe("My test", () => { + let recorder: Recorder; + + beforeEach(async function (this: Context) { + recorder = new Recorder(this.currentTest); + await recorder.start(recorderOptions); + }); + + afterEach(async function () { + await recorder.stop(); + }); + + it("sample test", async function () { + console.log("Hi, I'm a test!"); + }); +}); diff --git a/sdk/managedapplications/arm-managedapplications/tsconfig.json b/sdk/managedapplications/arm-managedapplications/tsconfig.json index 8c28d0f9be7e7..5e2d9266f9164 100644 --- a/sdk/managedapplications/arm-managedapplications/tsconfig.json +++ b/sdk/managedapplications/arm-managedapplications/tsconfig.json @@ -15,17 +15,16 @@ ], "declaration": true, "outDir": "./dist-esm", - "importHelpers": true, - "paths": { - "@azure/arm-managedapplications": [ - "./src/index" - ] - } + "importHelpers": true }, "include": [ "./src/**/*.ts", "./test/**/*.ts", - "samples-dev/**/*.ts" + "./test/**/*.ts", + "./test/**/*.ts", + "./test/**/*.ts", + "./test/**/*.ts", + "./test/**/*.ts" ], "exclude": [ "node_modules" diff --git a/sdk/policy/arm-policy/CHANGELOG.md b/sdk/policy/arm-policy/CHANGELOG.md index 9d692e9e24f57..fe8014da99e70 100644 --- a/sdk/policy/arm-policy/CHANGELOG.md +++ b/sdk/policy/arm-policy/CHANGELOG.md @@ -1,15 +1,150 @@ # Release History + +## 6.0.0-beta.1 (2024-05-22) +Compared with version 5.1.0 + +**Features** -## 5.1.1 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed - -### Other Changes - + - Added operation group PolicyDefinitionVersions + - Added operation group PolicySetDefinitionVersions + - Added operation group Variables + - Added operation group VariableValues + - Added operation PolicyExemptions.update + - Added Interface Override + - Added Interface PolicyDefinitionVersion + - Added Interface PolicyDefinitionVersionListResult + - Added Interface PolicyDefinitionVersionsCreateOrUpdateAtManagementGroupOptionalParams + - Added Interface PolicyDefinitionVersionsCreateOrUpdateOptionalParams + - Added Interface PolicyDefinitionVersionsDeleteAtManagementGroupOptionalParams + - Added Interface PolicyDefinitionVersionsDeleteOptionalParams + - Added Interface PolicyDefinitionVersionsGetAtManagementGroupOptionalParams + - Added Interface PolicyDefinitionVersionsGetBuiltInOptionalParams + - Added Interface PolicyDefinitionVersionsGetOptionalParams + - Added Interface PolicyDefinitionVersionsListAllAtManagementGroupOptionalParams + - Added Interface PolicyDefinitionVersionsListAllBuiltinsOptionalParams + - Added Interface PolicyDefinitionVersionsListAllOptionalParams + - Added Interface PolicyDefinitionVersionsListBuiltInNextOptionalParams + - Added Interface PolicyDefinitionVersionsListBuiltInOptionalParams + - Added Interface PolicyDefinitionVersionsListByManagementGroupNextOptionalParams + - Added Interface PolicyDefinitionVersionsListByManagementGroupOptionalParams + - Added Interface PolicyDefinitionVersionsListNextOptionalParams + - Added Interface PolicyDefinitionVersionsListOptionalParams + - Added Interface PolicyExemptionsUpdateOptionalParams + - Added Interface PolicyExemptionUpdate + - Added Interface PolicySetDefinitionVersion + - Added Interface PolicySetDefinitionVersionListResult + - Added Interface PolicySetDefinitionVersionsCreateOrUpdateAtManagementGroupOptionalParams + - Added Interface PolicySetDefinitionVersionsCreateOrUpdateOptionalParams + - Added Interface PolicySetDefinitionVersionsDeleteAtManagementGroupOptionalParams + - Added Interface PolicySetDefinitionVersionsDeleteOptionalParams + - Added Interface PolicySetDefinitionVersionsGetAtManagementGroupOptionalParams + - Added Interface PolicySetDefinitionVersionsGetBuiltInOptionalParams + - Added Interface PolicySetDefinitionVersionsGetOptionalParams + - Added Interface PolicySetDefinitionVersionsListAllAtManagementGroupOptionalParams + - Added Interface PolicySetDefinitionVersionsListAllBuiltinsOptionalParams + - Added Interface PolicySetDefinitionVersionsListAllOptionalParams + - Added Interface PolicySetDefinitionVersionsListBuiltInNextOptionalParams + - Added Interface PolicySetDefinitionVersionsListBuiltInOptionalParams + - Added Interface PolicySetDefinitionVersionsListByManagementGroupNextOptionalParams + - Added Interface PolicySetDefinitionVersionsListByManagementGroupOptionalParams + - Added Interface PolicySetDefinitionVersionsListNextOptionalParams + - Added Interface PolicySetDefinitionVersionsListOptionalParams + - Added Interface PolicyVariableColumn + - Added Interface PolicyVariableValueColumnValue + - Added Interface ResourceSelector + - Added Interface Selector + - Added Interface Variable + - Added Interface VariableListResult + - Added Interface VariablesCreateOrUpdateAtManagementGroupOptionalParams + - Added Interface VariablesCreateOrUpdateOptionalParams + - Added Interface VariablesDeleteAtManagementGroupOptionalParams + - Added Interface VariablesDeleteOptionalParams + - Added Interface VariablesGetAtManagementGroupOptionalParams + - Added Interface VariablesGetOptionalParams + - Added Interface VariablesListForManagementGroupNextOptionalParams + - Added Interface VariablesListForManagementGroupOptionalParams + - Added Interface VariablesListNextOptionalParams + - Added Interface VariablesListOptionalParams + - Added Interface VariableValue + - Added Interface VariableValueListResult + - Added Interface VariableValuesCreateOrUpdateAtManagementGroupOptionalParams + - Added Interface VariableValuesCreateOrUpdateOptionalParams + - Added Interface VariableValuesDeleteAtManagementGroupOptionalParams + - Added Interface VariableValuesDeleteOptionalParams + - Added Interface VariableValuesGetAtManagementGroupOptionalParams + - Added Interface VariableValuesGetOptionalParams + - Added Interface VariableValuesListForManagementGroupNextOptionalParams + - Added Interface VariableValuesListForManagementGroupOptionalParams + - Added Interface VariableValuesListNextOptionalParams + - Added Interface VariableValuesListOptionalParams + - Added Type Alias AssignmentScopeValidation + - Added Type Alias OverrideKind + - Added Type Alias PolicyDefinitionVersionsCreateOrUpdateAtManagementGroupResponse + - Added Type Alias PolicyDefinitionVersionsCreateOrUpdateResponse + - Added Type Alias PolicyDefinitionVersionsGetAtManagementGroupResponse + - Added Type Alias PolicyDefinitionVersionsGetBuiltInResponse + - Added Type Alias PolicyDefinitionVersionsGetResponse + - Added Type Alias PolicyDefinitionVersionsListAllAtManagementGroupResponse + - Added Type Alias PolicyDefinitionVersionsListAllBuiltinsResponse + - Added Type Alias PolicyDefinitionVersionsListAllResponse + - Added Type Alias PolicyDefinitionVersionsListBuiltInNextResponse + - Added Type Alias PolicyDefinitionVersionsListBuiltInResponse + - Added Type Alias PolicyDefinitionVersionsListByManagementGroupNextResponse + - Added Type Alias PolicyDefinitionVersionsListByManagementGroupResponse + - Added Type Alias PolicyDefinitionVersionsListNextResponse + - Added Type Alias PolicyDefinitionVersionsListResponse + - Added Type Alias PolicyExemptionsUpdateResponse + - Added Type Alias PolicySetDefinitionVersionsCreateOrUpdateAtManagementGroupResponse + - Added Type Alias PolicySetDefinitionVersionsCreateOrUpdateResponse + - Added Type Alias PolicySetDefinitionVersionsGetAtManagementGroupResponse + - Added Type Alias PolicySetDefinitionVersionsGetBuiltInResponse + - Added Type Alias PolicySetDefinitionVersionsGetResponse + - Added Type Alias PolicySetDefinitionVersionsListAllAtManagementGroupResponse + - Added Type Alias PolicySetDefinitionVersionsListAllBuiltinsResponse + - Added Type Alias PolicySetDefinitionVersionsListAllResponse + - Added Type Alias PolicySetDefinitionVersionsListBuiltInNextResponse + - Added Type Alias PolicySetDefinitionVersionsListBuiltInResponse + - Added Type Alias PolicySetDefinitionVersionsListByManagementGroupNextResponse + - Added Type Alias PolicySetDefinitionVersionsListByManagementGroupResponse + - Added Type Alias PolicySetDefinitionVersionsListNextResponse + - Added Type Alias PolicySetDefinitionVersionsListResponse + - Added Type Alias SelectorKind + - Added Type Alias VariablesCreateOrUpdateAtManagementGroupResponse + - Added Type Alias VariablesCreateOrUpdateResponse + - Added Type Alias VariablesGetAtManagementGroupResponse + - Added Type Alias VariablesGetResponse + - Added Type Alias VariablesListForManagementGroupNextResponse + - Added Type Alias VariablesListForManagementGroupResponse + - Added Type Alias VariablesListNextResponse + - Added Type Alias VariablesListResponse + - Added Type Alias VariableValuesCreateOrUpdateAtManagementGroupResponse + - Added Type Alias VariableValuesCreateOrUpdateResponse + - Added Type Alias VariableValuesGetAtManagementGroupResponse + - Added Type Alias VariableValuesGetResponse + - Added Type Alias VariableValuesListForManagementGroupNextResponse + - Added Type Alias VariableValuesListForManagementGroupResponse + - Added Type Alias VariableValuesListNextResponse + - Added Type Alias VariableValuesListResponse + - Interface ParameterDefinitionsValue has a new optional parameter schema + - Interface PolicyAssignment has a new optional parameter overrides + - Interface PolicyAssignment has a new optional parameter resourceSelectors + - Interface PolicyAssignmentUpdate has a new optional parameter overrides + - Interface PolicyAssignmentUpdate has a new optional parameter resourceSelectors + - Interface PolicyDefinition has a new optional parameter version + - Interface PolicyDefinition has a new optional parameter versions + - Interface PolicyExemption has a new optional parameter assignmentScopeValidation + - Interface PolicyExemption has a new optional parameter resourceSelectors + - Interface PolicySetDefinition has a new optional parameter version + - Interface PolicySetDefinition has a new optional parameter versions + - Added Enum KnownAssignmentScopeValidation + - Added Enum KnownOverrideKind + - Added Enum KnownSelectorKind + +**Breaking Changes** + + - Class PolicyClient has a new signature + + ## 5.1.0 (2023-05-18) **Features** @@ -70,4 +205,4 @@ To understand the detail of the change, please refer to [Changelog](https://aka. To migrate the existing applications to the latest version, please refer to [Migration Guide](https://aka.ms/js-track2-migration-guide). -To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/js/mgmt/quickstart ). +To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/js/mgmt/quickstart). diff --git a/sdk/policy/arm-policy/LICENSE b/sdk/policy/arm-policy/LICENSE index 3a1d9b6f24f73..7d59347409658 100644 --- a/sdk/policy/arm-policy/LICENSE +++ b/sdk/policy/arm-policy/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2023 Microsoft +Copyright (c) 2024 Microsoft Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/sdk/policy/arm-policy/README.md b/sdk/policy/arm-policy/README.md index 09f248c27622c..328b65c052228 100644 --- a/sdk/policy/arm-policy/README.md +++ b/sdk/policy/arm-policy/README.md @@ -6,7 +6,7 @@ To manage and control access to your resources, you can define customized polici [Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/policy/arm-policy) | [Package (NPM)](https://www.npmjs.com/package/@azure/arm-policy) | -[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-policy) | +[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-policy?view=azure-node-preview) | [Samples](https://github.com/Azure-Samples/azure-samples-js-management) ## Getting started diff --git a/sdk/policy/arm-policy/_meta.json b/sdk/policy/arm-policy/_meta.json index 6878746ca2061..6f675c5d5d6aa 100644 --- a/sdk/policy/arm-policy/_meta.json +++ b/sdk/policy/arm-policy/_meta.json @@ -1,8 +1,8 @@ { - "commit": "a42f1b58607091c4f255ead152a8ef323fa0b280", - "readme": "specification\\resources\\resource-manager\\readme.md", - "autorest_command": "autorest --version=3.9.3 --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\\resources\\resource-manager\\readme.md --use=@autorest/typescript@6.0.2 --generate-sample=true", + "commit": "61db561c7b16295a74a39fa76e58967fb0c621d7", + "readme": "specification/resources/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=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/resources/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.6.2", - "use": "@autorest/typescript@6.0.2" + "release_tool": "@azure-tools/js-sdk-release-tools@2.7.9", + "use": "@autorest/typescript@^6.0.12" } \ No newline at end of file diff --git a/sdk/policy/arm-policy/package.json b/sdk/policy/arm-policy/package.json index b9f3f27e2553c..66a2e6014e939 100644 --- a/sdk/policy/arm-policy/package.json +++ b/sdk/policy/arm-policy/package.json @@ -3,15 +3,15 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for PolicyClient.", - "version": "5.1.1", + "version": "6.0.0-beta.1", "engines": { "node": ">=18.0.0" }, "dependencies": { "@azure/core-paging": "^1.2.0", "@azure/core-client": "^1.7.0", - "@azure/core-auth": "^1.3.0", - "@azure/core-rest-pipeline": "^1.8.0", + "@azure/core-auth": "^1.6.0", + "@azure/core-rest-pipeline": "^1.14.0", "tslib": "^2.2.0" }, "keywords": [ @@ -30,20 +30,20 @@ "mkdirp": "^3.0.1", "typescript": "~5.4.5", "uglify-js": "^3.4.9", - "rimraf": "^5.0.5", + "rimraf": "^5.0.0", "dotenv": "^16.0.0", + "@azure/dev-tool": "^1.0.0", "@azure/identity": "^4.0.1", "@azure-tools/test-recorder": "^3.0.0", "@azure-tools/test-credential": "^1.0.0", "mocha": "^10.0.0", + "@types/mocha": "^10.0.0", + "tsx": "^4.7.1", "@types/chai": "^4.2.8", "chai": "^4.2.0", "cross-env": "^7.0.2", "@types/node": "^18.0.0", - "@azure/dev-tool": "^1.0.0", - "@azure/arm-managementgroups": "^2.0.1", - "ts-node": "^10.0.0", - "@types/mocha": "^10.0.0" + "ts-node": "^10.0.0" }, "repository": { "type": "git", @@ -76,7 +76,6 @@ "pack": "npm pack 2>&1", "extract-api": "dev-tool run extract-api", "lint": "echo skipped", - "audit": "echo skipped", "clean": "rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log", "build:node": "echo skipped", "build:browser": "echo skipped", @@ -105,13 +104,5 @@ ] }, "autoPublish": true, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/policy/arm-policy", - "//sampleConfiguration": { - "productName": "", - "productSlugs": [ - "azure" - ], - "disableDocsMs": true, - "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-policy?view=azure-node-preview" - } -} + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/policy/arm-policy" +} \ No newline at end of file diff --git a/sdk/policy/arm-policy/review/arm-policy.api.md b/sdk/policy/arm-policy/review/arm-policy.api.md index 906abdb54c43f..ec0492f3ee3d4 100644 --- a/sdk/policy/arm-policy/review/arm-policy.api.md +++ b/sdk/policy/arm-policy/review/arm-policy.api.md @@ -51,6 +51,9 @@ export type AliasPatternType = "NotSpecified" | "Extract"; // @public export type AliasType = "NotSpecified" | "PlainText" | "Mask"; +// @public +export type AssignmentScopeValidation = string; + // @public export interface CloudError { error?: ErrorResponse; @@ -174,6 +177,12 @@ export enum KnownAliasPathTokenType { String = "String" } +// @public +export enum KnownAssignmentScopeValidation { + Default = "Default", + DoNotValidate = "DoNotValidate" +} + // @public export enum KnownCreatedByType { Application = "Application", @@ -194,6 +203,11 @@ export enum KnownExemptionCategory { Waiver = "Waiver" } +// @public +export enum KnownOverrideKind { + PolicyEffect = "policyEffect" +} + // @public export enum KnownParameterType { Array = "Array", @@ -213,17 +227,36 @@ export enum KnownPolicyType { Static = "Static" } +// @public +export enum KnownSelectorKind { + PolicyDefinitionReferenceId = "policyDefinitionReferenceId", + ResourceLocation = "resourceLocation", + ResourceType = "resourceType", + ResourceWithoutLocation = "resourceWithoutLocation" +} + // @public export interface NonComplianceMessage { message: string; policyDefinitionReferenceId?: string; } +// @public +export interface Override { + kind?: OverrideKind; + selectors?: Selector[]; + value?: string; +} + +// @public +export type OverrideKind = string; + // @public export interface ParameterDefinitionsValue { allowedValues?: any[]; defaultValue?: any; metadata?: ParameterDefinitionsValueMetadata; + schema?: any; type?: ParameterType; } @@ -256,10 +289,12 @@ export interface PolicyAssignment { readonly name?: string; nonComplianceMessages?: NonComplianceMessage[]; notScopes?: string[]; + overrides?: Override[]; parameters?: { [propertyName: string]: ParameterValuesValue; }; policyDefinitionId?: string; + resourceSelectors?: ResourceSelector[]; readonly scope?: string; readonly systemData?: SystemData; readonly type?: string; @@ -407,30 +442,46 @@ export interface PolicyAssignmentsUpdateOptionalParams extends coreClient.Operat // @public export type PolicyAssignmentsUpdateResponse = PolicyAssignment; -// @public (undocumented) +// @public export interface PolicyAssignmentUpdate { identity?: Identity; location?: string; + overrides?: Override[]; + resourceSelectors?: ResourceSelector[]; } // @public (undocumented) export class PolicyClient extends coreClient.ServiceClient { // (undocumented) $host: string; - constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: PolicyClientOptionalParams); - constructor(credentials: coreAuth.TokenCredential, options?: PolicyClientOptionalParams); + constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, policyDefinitionName: string, policyDefinitionVersion: string, policySetDefinitionName: string, options?: PolicyClientOptionalParams); + constructor(credentials: coreAuth.TokenCredential, policyDefinitionName: string, policyDefinitionVersion: string, policySetDefinitionName: string, options?: PolicyClientOptionalParams); // (undocumented) dataPolicyManifests: DataPolicyManifests; // (undocumented) policyAssignments: PolicyAssignments; // (undocumented) + policyDefinitionName: string; + // (undocumented) policyDefinitions: PolicyDefinitions; // (undocumented) + policyDefinitionVersion: string; + // (undocumented) + policyDefinitionVersions: PolicyDefinitionVersions; + // (undocumented) policyExemptions: PolicyExemptions; // (undocumented) + policySetDefinitionName: string; + // (undocumented) policySetDefinitions: PolicySetDefinitions; // (undocumented) + policySetDefinitionVersions: PolicySetDefinitionVersions; + // (undocumented) subscriptionId?: string; + // (undocumented) + variables: Variables; + // (undocumented) + variableValues: VariableValues; } // @public @@ -454,6 +505,8 @@ export interface PolicyDefinition { policyType?: PolicyType; readonly systemData?: SystemData; readonly type?: string; + version?: string; + versions?: string[]; } // @public @@ -484,11 +537,11 @@ export interface PolicyDefinitionReference { // @public export interface PolicyDefinitions { createOrUpdate(policyDefinitionName: string, parameters: PolicyDefinition, options?: PolicyDefinitionsCreateOrUpdateOptionalParams): Promise; - createOrUpdateAtManagementGroup(policyDefinitionName: string, managementGroupId: string, parameters: PolicyDefinition, options?: PolicyDefinitionsCreateOrUpdateAtManagementGroupOptionalParams): Promise; + createOrUpdateAtManagementGroup(managementGroupId: string, policyDefinitionName: string, parameters: PolicyDefinition, options?: PolicyDefinitionsCreateOrUpdateAtManagementGroupOptionalParams): Promise; delete(policyDefinitionName: string, options?: PolicyDefinitionsDeleteOptionalParams): Promise; - deleteAtManagementGroup(policyDefinitionName: string, managementGroupId: string, options?: PolicyDefinitionsDeleteAtManagementGroupOptionalParams): Promise; + deleteAtManagementGroup(managementGroupId: string, policyDefinitionName: string, options?: PolicyDefinitionsDeleteAtManagementGroupOptionalParams): Promise; get(policyDefinitionName: string, options?: PolicyDefinitionsGetOptionalParams): Promise; - getAtManagementGroup(policyDefinitionName: string, managementGroupId: string, options?: PolicyDefinitionsGetAtManagementGroupOptionalParams): Promise; + getAtManagementGroup(managementGroupId: string, policyDefinitionName: string, options?: PolicyDefinitionsGetAtManagementGroupOptionalParams): Promise; getBuiltIn(policyDefinitionName: string, options?: PolicyDefinitionsGetBuiltInOptionalParams): Promise; list(options?: PolicyDefinitionsListOptionalParams): PagedAsyncIterableIterator; listBuiltIn(options?: PolicyDefinitionsListBuiltInOptionalParams): PagedAsyncIterableIterator; @@ -586,8 +639,159 @@ export interface PolicyDefinitionsListOptionalParams extends coreClient.Operatio // @public export type PolicyDefinitionsListResponse = PolicyDefinitionListResult; +// @public +export interface PolicyDefinitionVersion { + description?: string; + displayName?: string; + readonly id?: string; + metadata?: any; + mode?: string; + readonly name?: string; + parameters?: { + [propertyName: string]: ParameterDefinitionsValue; + }; + policyRule?: any; + policyType?: PolicyType; + readonly systemData?: SystemData; + readonly type?: string; + version?: string; +} + +// @public +export interface PolicyDefinitionVersionListResult { + nextLink?: string; + value?: PolicyDefinitionVersion[]; +} + +// @public +export interface PolicyDefinitionVersions { + createOrUpdate(parameters: PolicyDefinitionVersion, options?: PolicyDefinitionVersionsCreateOrUpdateOptionalParams): Promise; + createOrUpdateAtManagementGroup(managementGroupName: string, parameters: PolicyDefinitionVersion, options?: PolicyDefinitionVersionsCreateOrUpdateAtManagementGroupOptionalParams): Promise; + delete(options?: PolicyDefinitionVersionsDeleteOptionalParams): Promise; + deleteAtManagementGroup(managementGroupName: string, options?: PolicyDefinitionVersionsDeleteAtManagementGroupOptionalParams): Promise; + get(options?: PolicyDefinitionVersionsGetOptionalParams): Promise; + getAtManagementGroup(managementGroupName: string, options?: PolicyDefinitionVersionsGetAtManagementGroupOptionalParams): Promise; + getBuiltIn(options?: PolicyDefinitionVersionsGetBuiltInOptionalParams): Promise; + list(options?: PolicyDefinitionVersionsListOptionalParams): PagedAsyncIterableIterator; + listAll(options?: PolicyDefinitionVersionsListAllOptionalParams): Promise; + listAllAtManagementGroup(managementGroupName: string, options?: PolicyDefinitionVersionsListAllAtManagementGroupOptionalParams): Promise; + listAllBuiltins(options?: PolicyDefinitionVersionsListAllBuiltinsOptionalParams): Promise; + listBuiltIn(options?: PolicyDefinitionVersionsListBuiltInOptionalParams): PagedAsyncIterableIterator; + listByManagementGroup(managementGroupName: string, options?: PolicyDefinitionVersionsListByManagementGroupOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface PolicyDefinitionVersionsCreateOrUpdateAtManagementGroupOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type PolicyDefinitionVersionsCreateOrUpdateAtManagementGroupResponse = PolicyDefinitionVersion; + +// @public +export interface PolicyDefinitionVersionsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type PolicyDefinitionVersionsCreateOrUpdateResponse = PolicyDefinitionVersion; + +// @public +export interface PolicyDefinitionVersionsDeleteAtManagementGroupOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface PolicyDefinitionVersionsDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface PolicyDefinitionVersionsGetAtManagementGroupOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type PolicyDefinitionVersionsGetAtManagementGroupResponse = PolicyDefinitionVersion; + +// @public +export interface PolicyDefinitionVersionsGetBuiltInOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type PolicyDefinitionVersionsGetBuiltInResponse = PolicyDefinitionVersion; + +// @public +export interface PolicyDefinitionVersionsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type PolicyDefinitionVersionsGetResponse = PolicyDefinitionVersion; + +// @public +export interface PolicyDefinitionVersionsListAllAtManagementGroupOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type PolicyDefinitionVersionsListAllAtManagementGroupResponse = PolicyDefinitionVersionListResult; + +// @public +export interface PolicyDefinitionVersionsListAllBuiltinsOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type PolicyDefinitionVersionsListAllBuiltinsResponse = PolicyDefinitionVersionListResult; + +// @public +export interface PolicyDefinitionVersionsListAllOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type PolicyDefinitionVersionsListAllResponse = PolicyDefinitionVersionListResult; + +// @public +export interface PolicyDefinitionVersionsListBuiltInNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type PolicyDefinitionVersionsListBuiltInNextResponse = PolicyDefinitionVersionListResult; + +// @public +export interface PolicyDefinitionVersionsListBuiltInOptionalParams extends coreClient.OperationOptions { + top?: number; +} + +// @public +export type PolicyDefinitionVersionsListBuiltInResponse = PolicyDefinitionVersionListResult; + +// @public +export interface PolicyDefinitionVersionsListByManagementGroupNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type PolicyDefinitionVersionsListByManagementGroupNextResponse = PolicyDefinitionVersionListResult; + +// @public +export interface PolicyDefinitionVersionsListByManagementGroupOptionalParams extends coreClient.OperationOptions { + top?: number; +} + +// @public +export type PolicyDefinitionVersionsListByManagementGroupResponse = PolicyDefinitionVersionListResult; + +// @public +export interface PolicyDefinitionVersionsListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type PolicyDefinitionVersionsListNextResponse = PolicyDefinitionVersionListResult; + +// @public +export interface PolicyDefinitionVersionsListOptionalParams extends coreClient.OperationOptions { + top?: number; +} + +// @public +export type PolicyDefinitionVersionsListResponse = PolicyDefinitionVersionListResult; + // @public export interface PolicyExemption { + assignmentScopeValidation?: AssignmentScopeValidation; description?: string; displayName?: string; exemptionCategory: ExemptionCategory; @@ -597,6 +801,7 @@ export interface PolicyExemption { readonly name?: string; policyAssignmentId: string; policyDefinitionReferenceIds?: string[]; + resourceSelectors?: ResourceSelector[]; readonly systemData?: SystemData; readonly type?: string; } @@ -616,6 +821,7 @@ export interface PolicyExemptions { listForManagementGroup(managementGroupId: string, options?: PolicyExemptionsListForManagementGroupOptionalParams): PagedAsyncIterableIterator; listForResource(resourceGroupName: string, resourceProviderNamespace: string, parentResourcePath: string, resourceType: string, resourceName: string, options?: PolicyExemptionsListForResourceOptionalParams): PagedAsyncIterableIterator; listForResourceGroup(resourceGroupName: string, options?: PolicyExemptionsListForResourceGroupOptionalParams): PagedAsyncIterableIterator; + update(scope: string, policyExemptionName: string, parameters: PolicyExemptionUpdate, options?: PolicyExemptionsUpdateOptionalParams): Promise; } // @public @@ -696,6 +902,19 @@ export interface PolicyExemptionsListOptionalParams extends coreClient.Operation // @public export type PolicyExemptionsListResponse = PolicyExemptionListResult; +// @public +export interface PolicyExemptionsUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type PolicyExemptionsUpdateResponse = PolicyExemption; + +// @public +export interface PolicyExemptionUpdate { + assignmentScopeValidation?: AssignmentScopeValidation; + resourceSelectors?: ResourceSelector[]; +} + // @public export interface PolicySetDefinition { description?: string; @@ -711,6 +930,8 @@ export interface PolicySetDefinition { policyType?: PolicyType; readonly systemData?: SystemData; readonly type?: string; + version?: string; + versions?: string[]; } // @public @@ -722,11 +943,11 @@ export interface PolicySetDefinitionListResult { // @public export interface PolicySetDefinitions { createOrUpdate(policySetDefinitionName: string, parameters: PolicySetDefinition, options?: PolicySetDefinitionsCreateOrUpdateOptionalParams): Promise; - createOrUpdateAtManagementGroup(policySetDefinitionName: string, managementGroupId: string, parameters: PolicySetDefinition, options?: PolicySetDefinitionsCreateOrUpdateAtManagementGroupOptionalParams): Promise; + createOrUpdateAtManagementGroup(managementGroupId: string, policySetDefinitionName: string, parameters: PolicySetDefinition, options?: PolicySetDefinitionsCreateOrUpdateAtManagementGroupOptionalParams): Promise; delete(policySetDefinitionName: string, options?: PolicySetDefinitionsDeleteOptionalParams): Promise; - deleteAtManagementGroup(policySetDefinitionName: string, managementGroupId: string, options?: PolicySetDefinitionsDeleteAtManagementGroupOptionalParams): Promise; + deleteAtManagementGroup(managementGroupId: string, policySetDefinitionName: string, options?: PolicySetDefinitionsDeleteAtManagementGroupOptionalParams): Promise; get(policySetDefinitionName: string, options?: PolicySetDefinitionsGetOptionalParams): Promise; - getAtManagementGroup(policySetDefinitionName: string, managementGroupId: string, options?: PolicySetDefinitionsGetAtManagementGroupOptionalParams): Promise; + getAtManagementGroup(managementGroupId: string, policySetDefinitionName: string, options?: PolicySetDefinitionsGetAtManagementGroupOptionalParams): Promise; getBuiltIn(policySetDefinitionName: string, options?: PolicySetDefinitionsGetBuiltInOptionalParams): Promise; list(options?: PolicySetDefinitionsListOptionalParams): PagedAsyncIterableIterator; listBuiltIn(options?: PolicySetDefinitionsListBuiltInOptionalParams): PagedAsyncIterableIterator; @@ -824,18 +1045,195 @@ export interface PolicySetDefinitionsListOptionalParams extends coreClient.Opera // @public export type PolicySetDefinitionsListResponse = PolicySetDefinitionListResult; +// @public +export interface PolicySetDefinitionVersion { + description?: string; + displayName?: string; + readonly id?: string; + metadata?: any; + readonly name?: string; + parameters?: { + [propertyName: string]: ParameterDefinitionsValue; + }; + policyDefinitionGroups?: PolicyDefinitionGroup[]; + policyDefinitions?: PolicyDefinitionReference[]; + policyType?: PolicyType; + readonly systemData?: SystemData; + readonly type?: string; + version?: string; +} + +// @public +export interface PolicySetDefinitionVersionListResult { + nextLink?: string; + value?: PolicySetDefinitionVersion[]; +} + +// @public +export interface PolicySetDefinitionVersions { + createOrUpdate(parameters: PolicySetDefinitionVersion, options?: PolicySetDefinitionVersionsCreateOrUpdateOptionalParams): Promise; + createOrUpdateAtManagementGroup(managementGroupName: string, parameters: PolicySetDefinitionVersion, options?: PolicySetDefinitionVersionsCreateOrUpdateAtManagementGroupOptionalParams): Promise; + delete(options?: PolicySetDefinitionVersionsDeleteOptionalParams): Promise; + deleteAtManagementGroup(managementGroupName: string, options?: PolicySetDefinitionVersionsDeleteAtManagementGroupOptionalParams): Promise; + get(options?: PolicySetDefinitionVersionsGetOptionalParams): Promise; + getAtManagementGroup(managementGroupName: string, options?: PolicySetDefinitionVersionsGetAtManagementGroupOptionalParams): Promise; + getBuiltIn(options?: PolicySetDefinitionVersionsGetBuiltInOptionalParams): Promise; + list(options?: PolicySetDefinitionVersionsListOptionalParams): PagedAsyncIterableIterator; + listAll(options?: PolicySetDefinitionVersionsListAllOptionalParams): Promise; + listAllAtManagementGroup(managementGroupName: string, options?: PolicySetDefinitionVersionsListAllAtManagementGroupOptionalParams): Promise; + listAllBuiltins(options?: PolicySetDefinitionVersionsListAllBuiltinsOptionalParams): Promise; + listBuiltIn(options?: PolicySetDefinitionVersionsListBuiltInOptionalParams): PagedAsyncIterableIterator; + listByManagementGroup(managementGroupName: string, options?: PolicySetDefinitionVersionsListByManagementGroupOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface PolicySetDefinitionVersionsCreateOrUpdateAtManagementGroupOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type PolicySetDefinitionVersionsCreateOrUpdateAtManagementGroupResponse = PolicySetDefinitionVersion; + +// @public +export interface PolicySetDefinitionVersionsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type PolicySetDefinitionVersionsCreateOrUpdateResponse = PolicySetDefinitionVersion; + +// @public +export interface PolicySetDefinitionVersionsDeleteAtManagementGroupOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface PolicySetDefinitionVersionsDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface PolicySetDefinitionVersionsGetAtManagementGroupOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type PolicySetDefinitionVersionsGetAtManagementGroupResponse = PolicySetDefinitionVersion; + +// @public +export interface PolicySetDefinitionVersionsGetBuiltInOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type PolicySetDefinitionVersionsGetBuiltInResponse = PolicySetDefinitionVersion; + +// @public +export interface PolicySetDefinitionVersionsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type PolicySetDefinitionVersionsGetResponse = PolicySetDefinitionVersion; + +// @public +export interface PolicySetDefinitionVersionsListAllAtManagementGroupOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type PolicySetDefinitionVersionsListAllAtManagementGroupResponse = PolicySetDefinitionVersionListResult; + +// @public +export interface PolicySetDefinitionVersionsListAllBuiltinsOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type PolicySetDefinitionVersionsListAllBuiltinsResponse = PolicySetDefinitionVersionListResult; + +// @public +export interface PolicySetDefinitionVersionsListAllOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type PolicySetDefinitionVersionsListAllResponse = PolicySetDefinitionVersionListResult; + +// @public +export interface PolicySetDefinitionVersionsListBuiltInNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type PolicySetDefinitionVersionsListBuiltInNextResponse = PolicySetDefinitionVersionListResult; + +// @public +export interface PolicySetDefinitionVersionsListBuiltInOptionalParams extends coreClient.OperationOptions { + top?: number; +} + +// @public +export type PolicySetDefinitionVersionsListBuiltInResponse = PolicySetDefinitionVersionListResult; + +// @public +export interface PolicySetDefinitionVersionsListByManagementGroupNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type PolicySetDefinitionVersionsListByManagementGroupNextResponse = PolicySetDefinitionVersionListResult; + +// @public +export interface PolicySetDefinitionVersionsListByManagementGroupOptionalParams extends coreClient.OperationOptions { + top?: number; +} + +// @public +export type PolicySetDefinitionVersionsListByManagementGroupResponse = PolicySetDefinitionVersionListResult; + +// @public +export interface PolicySetDefinitionVersionsListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type PolicySetDefinitionVersionsListNextResponse = PolicySetDefinitionVersionListResult; + +// @public +export interface PolicySetDefinitionVersionsListOptionalParams extends coreClient.OperationOptions { + top?: number; +} + +// @public +export type PolicySetDefinitionVersionsListResponse = PolicySetDefinitionVersionListResult; + // @public export type PolicyType = string; +// @public +export interface PolicyVariableColumn { + columnName: string; +} + +// @public +export interface PolicyVariableValueColumnValue { + columnName: string; + columnValue: any; +} + // @public export type ResourceIdentityType = "SystemAssigned" | "UserAssigned" | "None"; +// @public +export interface ResourceSelector { + name?: string; + selectors?: Selector[]; +} + // @public export interface ResourceTypeAliases { aliases?: Alias[]; resourceType?: string; } +// @public +export interface Selector { + in?: string[]; + kind?: SelectorKind; + notIn?: string[]; +} + +// @public +export type SelectorKind = string; + // @public export interface SystemData { createdAt?: Date; @@ -852,6 +1250,188 @@ export interface UserAssignedIdentitiesValue { readonly principalId?: string; } +// @public +export interface Variable { + columns: PolicyVariableColumn[]; + readonly id?: string; + readonly name?: string; + readonly systemData?: SystemData; + readonly type?: string; +} + +// @public +export interface VariableListResult { + readonly nextLink?: string; + value?: Variable[]; +} + +// @public +export interface Variables { + createOrUpdate(variableName: string, parameters: Variable, options?: VariablesCreateOrUpdateOptionalParams): Promise; + createOrUpdateAtManagementGroup(managementGroupId: string, variableName: string, parameters: Variable, options?: VariablesCreateOrUpdateAtManagementGroupOptionalParams): Promise; + delete(variableName: string, options?: VariablesDeleteOptionalParams): Promise; + deleteAtManagementGroup(managementGroupId: string, variableName: string, options?: VariablesDeleteAtManagementGroupOptionalParams): Promise; + get(variableName: string, options?: VariablesGetOptionalParams): Promise; + getAtManagementGroup(managementGroupId: string, variableName: string, options?: VariablesGetAtManagementGroupOptionalParams): Promise; + list(options?: VariablesListOptionalParams): PagedAsyncIterableIterator; + listForManagementGroup(managementGroupId: string, options?: VariablesListForManagementGroupOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface VariablesCreateOrUpdateAtManagementGroupOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type VariablesCreateOrUpdateAtManagementGroupResponse = Variable; + +// @public +export interface VariablesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type VariablesCreateOrUpdateResponse = Variable; + +// @public +export interface VariablesDeleteAtManagementGroupOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface VariablesDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface VariablesGetAtManagementGroupOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type VariablesGetAtManagementGroupResponse = Variable; + +// @public +export interface VariablesGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type VariablesGetResponse = Variable; + +// @public +export interface VariablesListForManagementGroupNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type VariablesListForManagementGroupNextResponse = VariableListResult; + +// @public +export interface VariablesListForManagementGroupOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type VariablesListForManagementGroupResponse = VariableListResult; + +// @public +export interface VariablesListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type VariablesListNextResponse = VariableListResult; + +// @public +export interface VariablesListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type VariablesListResponse = VariableListResult; + +// @public +export interface VariableValue { + readonly id?: string; + readonly name?: string; + readonly systemData?: SystemData; + readonly type?: string; + values: PolicyVariableValueColumnValue[]; +} + +// @public +export interface VariableValueListResult { + readonly nextLink?: string; + value?: VariableValue[]; +} + +// @public +export interface VariableValues { + createOrUpdate(variableName: string, variableValueName: string, parameters: VariableValue, options?: VariableValuesCreateOrUpdateOptionalParams): Promise; + createOrUpdateAtManagementGroup(managementGroupId: string, variableName: string, variableValueName: string, parameters: VariableValue, options?: VariableValuesCreateOrUpdateAtManagementGroupOptionalParams): Promise; + delete(variableName: string, variableValueName: string, options?: VariableValuesDeleteOptionalParams): Promise; + deleteAtManagementGroup(managementGroupId: string, variableName: string, variableValueName: string, options?: VariableValuesDeleteAtManagementGroupOptionalParams): Promise; + get(variableName: string, variableValueName: string, options?: VariableValuesGetOptionalParams): Promise; + getAtManagementGroup(managementGroupId: string, variableName: string, variableValueName: string, options?: VariableValuesGetAtManagementGroupOptionalParams): Promise; + list(variableName: string, options?: VariableValuesListOptionalParams): PagedAsyncIterableIterator; + listForManagementGroup(managementGroupId: string, variableName: string, options?: VariableValuesListForManagementGroupOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface VariableValuesCreateOrUpdateAtManagementGroupOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type VariableValuesCreateOrUpdateAtManagementGroupResponse = VariableValue; + +// @public +export interface VariableValuesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type VariableValuesCreateOrUpdateResponse = VariableValue; + +// @public +export interface VariableValuesDeleteAtManagementGroupOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface VariableValuesDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface VariableValuesGetAtManagementGroupOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type VariableValuesGetAtManagementGroupResponse = VariableValue; + +// @public +export interface VariableValuesGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type VariableValuesGetResponse = VariableValue; + +// @public +export interface VariableValuesListForManagementGroupNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type VariableValuesListForManagementGroupNextResponse = VariableValueListResult; + +// @public +export interface VariableValuesListForManagementGroupOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type VariableValuesListForManagementGroupResponse = VariableValueListResult; + +// @public +export interface VariableValuesListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type VariableValuesListNextResponse = VariableValueListResult; + +// @public +export interface VariableValuesListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type VariableValuesListResponse = VariableValueListResult; + // (No @packageDocumentation comment for this package) ``` diff --git a/sdk/policy/arm-policy/src/models/index.ts b/sdk/policy/arm-policy/src/models/index.ts index 43f12f5884531..e560c82aaf932 100644 --- a/sdk/policy/arm-policy/src/models/index.ts +++ b/sdk/policy/arm-policy/src/models/index.ts @@ -185,100 +185,74 @@ export interface DataPolicyManifestListResult { nextLink?: string; } -/** The policy assignment. */ -export interface PolicyAssignment { +/** The policy definition. */ +export interface PolicyDefinition { /** - * The ID of the policy assignment. + * The ID of the policy definition. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly id?: string; /** - * The type of the policy assignment. + * The name of the policy definition. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly type?: string; + readonly name?: string; /** - * The name of the policy assignment. + * The type of the resource (Microsoft.Authorization/policyDefinitions). * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly name?: string; - /** The location of the policy assignment. Only required when utilizing managed identity. */ - location?: string; - /** The managed identity associated with the policy assignment. */ - identity?: Identity; + readonly type?: string; /** * The system metadata relating to this resource. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly systemData?: SystemData; - /** The display name of the policy assignment. */ + /** The type of policy definition. Possible values are NotSpecified, BuiltIn, Custom, and Static. */ + policyType?: PolicyType; + /** The policy definition mode. Some examples are All, Indexed, Microsoft.KeyVault.Data. */ + mode?: string; + /** The display name of the policy definition. */ displayName?: string; - /** The ID of the policy definition or policy set definition being assigned. */ - policyDefinitionId?: string; - /** - * The scope for the policy assignment. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly scope?: string; - /** The policy's excluded scopes. */ - notScopes?: string[]; - /** The parameter values for the assigned policy rule. The keys are the parameter names. */ - parameters?: { [propertyName: string]: ParameterValuesValue }; - /** This message will be part of response in case of policy violation. */ + /** The policy definition description. */ description?: string; - /** The policy assignment metadata. Metadata is an open ended object and is typically a collection of key value pairs. */ + /** The policy rule. */ + policyRule?: any; + /** The policy definition metadata. Metadata is an open ended object and is typically a collection of key value pairs. */ metadata?: any; - /** The policy assignment enforcement mode. Possible values are Default and DoNotEnforce. */ - enforcementMode?: EnforcementMode; - /** The messages that describe why a resource is non-compliant with the policy. */ - nonComplianceMessages?: NonComplianceMessage[]; -} - -/** The value of a parameter. */ -export interface ParameterValuesValue { - /** The value of the parameter. */ - value?: any; -} - -/** A message that describes why a resource is non-compliant with the policy. This is shown in 'deny' error messages and on resource's non-compliant compliance results. */ -export interface NonComplianceMessage { - /** A message that describes why a resource is non-compliant with the policy. This is shown in 'deny' error messages and on resource's non-compliant compliance results. */ - message: string; - /** The policy definition reference ID within a policy set definition the message is intended for. This is only applicable if the policy assignment assigns a policy set definition. If this is not provided the message applies to all policies assigned by this policy assignment. */ - policyDefinitionReferenceId?: string; + /** The parameter definitions for parameters used in the policy rule. The keys are the parameter names. */ + parameters?: { [propertyName: string]: ParameterDefinitionsValue }; + /** The policy definition version in #.#.# format. */ + version?: string; + /** A list of available versions for this policy definition. */ + versions?: string[]; } -/** Identity for the resource. Policy assignments support a maximum of one identity. That is either a system assigned identity or a single user assigned identity. */ -export interface Identity { - /** - * The principal ID of the resource identity. This property will only be provided for a system assigned identity - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly principalId?: string; - /** - * The tenant ID of the resource identity. This property will only be provided for a system assigned identity - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly tenantId?: string; - /** The identity type. This is the only required field when adding a system or user assigned identity to a resource. */ - type?: ResourceIdentityType; - /** The user identity associated with the policy. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. */ - userAssignedIdentities?: { - [propertyName: string]: UserAssignedIdentitiesValue; - }; +/** The definition of a parameter that can be provided to the policy. */ +export interface ParameterDefinitionsValue { + /** The data type of the parameter. */ + type?: ParameterType; + /** The allowed values for the parameter. */ + allowedValues?: any[]; + /** The default value for the parameter if no value is provided. */ + defaultValue?: any; + /** Provides validation of parameter inputs during assignment using a self-defined JSON schema. This property is only supported for object-type parameters and follows the Json.NET Schema 2019-09 implementation. You can learn more about using schemas at https://json-schema.org/ and test draft schemas at https://www.jsonschemavalidator.net/. */ + schema?: any; + /** General metadata for the parameter. */ + metadata?: ParameterDefinitionsValueMetadata; } -export interface UserAssignedIdentitiesValue { - /** - * The principal id of user assigned identity. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly principalId?: string; - /** - * The client id of user assigned identity. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly clientId?: string; +/** General metadata for the parameter. */ +export interface ParameterDefinitionsValueMetadata { + /** Describes unknown properties. The value of an unknown property can be of "any" type. */ + [property: string]: any; + /** The display name for the parameter. */ + displayName?: string; + /** The description of the parameter. */ + description?: string; + /** Used when assigning the policy definition through the portal. Provides a context aware list of values for the user to choose from. */ + strongType?: string; + /** Set to true to have Azure portal create role assignments on the resource ID or resource scope value of this parameter during policy assignment. This property is useful in case you wish to assign permissions outside the assignment scope. */ + assignPermissions?: boolean; } /** Metadata pertaining to creation and last modification of the resource. */ @@ -297,35 +271,36 @@ export interface SystemData { lastModifiedAt?: Date; } -export interface PolicyAssignmentUpdate { - /** The location of the policy assignment. Only required when utilizing managed identity. */ - location?: string; - /** The managed identity associated with the policy assignment. */ - identity?: Identity; +/** List of policy definitions. */ +export interface PolicyDefinitionListResult { + /** An array of policy definitions. */ + value?: PolicyDefinition[]; + /** The URL to use for getting the next set of results. */ + nextLink?: string; } -/** List of policy assignments. */ -export interface PolicyAssignmentListResult { - /** An array of policy assignments. */ - value?: PolicyAssignment[]; +/** List of policy definition versions. */ +export interface PolicyDefinitionVersionListResult { + /** An array of policy definitions versions. */ + value?: PolicyDefinitionVersion[]; /** The URL to use for getting the next set of results. */ nextLink?: string; } -/** The policy definition. */ -export interface PolicyDefinition { +/** The ID of the policy definition version. */ +export interface PolicyDefinitionVersion { /** - * The ID of the policy definition. + * The ID of the policy definition version. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly id?: string; /** - * The name of the policy definition. + * The name of the policy definition version. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly name?: string; /** - * The type of the resource (Microsoft.Authorization/policyDefinitions). + * The type of the resource (Microsoft.Authorization/policyDefinitions/versions). * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly type?: string; @@ -348,40 +323,8 @@ export interface PolicyDefinition { metadata?: any; /** The parameter definitions for parameters used in the policy rule. The keys are the parameter names. */ parameters?: { [propertyName: string]: ParameterDefinitionsValue }; -} - -/** The definition of a parameter that can be provided to the policy. */ -export interface ParameterDefinitionsValue { - /** The data type of the parameter. */ - type?: ParameterType; - /** The allowed values for the parameter. */ - allowedValues?: any[]; - /** The default value for the parameter if no value is provided. */ - defaultValue?: any; - /** General metadata for the parameter. */ - metadata?: ParameterDefinitionsValueMetadata; -} - -/** General metadata for the parameter. */ -export interface ParameterDefinitionsValueMetadata { - /** Describes unknown properties. The value of an unknown property can be of "any" type. */ - [property: string]: any; - /** The display name for the parameter. */ - displayName?: string; - /** The description of the parameter. */ - description?: string; - /** Used when assigning the policy definition through the portal. Provides a context aware list of values for the user to choose from. */ - strongType?: string; - /** Set to true to have Azure portal create role assignments on the resource ID or resource scope value of this parameter during policy assignment. This property is useful in case you wish to assign permissions outside the assignment scope. */ - assignPermissions?: boolean; -} - -/** List of policy definitions. */ -export interface PolicyDefinitionListResult { - /** An array of policy definitions. */ - value?: PolicyDefinition[]; - /** The URL to use for getting the next set of results. */ - nextLink?: string; + /** The policy definition version in #.#.# format. */ + version?: string; } /** The policy set definition. */ @@ -406,7 +349,7 @@ export interface PolicySetDefinition { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly systemData?: SystemData; - /** The type of policy definition. Possible values are NotSpecified, BuiltIn, Custom, and Static. */ + /** The type of policy set definition. Possible values are NotSpecified, BuiltIn, Custom, and Static. */ policyType?: PolicyType; /** The display name of the policy set definition. */ displayName?: string; @@ -420,6 +363,10 @@ export interface PolicySetDefinition { policyDefinitions?: PolicyDefinitionReference[]; /** The metadata describing groups of policy definition references within the policy set definition. */ policyDefinitionGroups?: PolicyDefinitionGroup[]; + /** The policy set definition version in #.#.# format. */ + version?: string; + /** A list of available versions for this policy set definition. */ + versions?: string[]; } /** The policy definition reference. */ @@ -434,6 +381,12 @@ export interface PolicyDefinitionReference { groupNames?: string[]; } +/** The value of a parameter. */ +export interface ParameterValuesValue { + /** The value of the parameter. */ + value?: any; +} + /** The policy definition group. */ export interface PolicyDefinitionGroup { /** The name of the group. */ @@ -456,87 +409,377 @@ export interface PolicySetDefinitionListResult { nextLink?: string; } -/** The policy exemption. */ -export interface PolicyExemption { - /** - * Azure Resource Manager metadata containing createdBy and modifiedBy information. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly systemData?: SystemData; +/** List of policy set definition versions. */ +export interface PolicySetDefinitionVersionListResult { + /** An array of policy set definition versions. */ + value?: PolicySetDefinitionVersion[]; + /** The URL to use for getting the next set of results. */ + nextLink?: string; +} + +/** The policy set definition version. */ +export interface PolicySetDefinitionVersion { /** - * The ID of the policy exemption. + * The ID of the policy set definition version. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly id?: string; /** - * The name of the policy exemption. + * The name of the policy set definition version. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly name?: string; /** - * The type of the resource (Microsoft.Authorization/policyExemptions). + * The type of the resource (Microsoft.Authorization/policySetDefinitions/versions). * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly type?: string; - /** The ID of the policy assignment that is being exempted. */ - policyAssignmentId: string; - /** The policy definition reference ID list when the associated policy assignment is an assignment of a policy set definition. */ - policyDefinitionReferenceIds?: string[]; - /** The policy exemption category. Possible values are Waiver and Mitigated. */ - exemptionCategory: ExemptionCategory; - /** The expiration date and time (in UTC ISO 8601 format yyyy-MM-ddTHH:mm:ssZ) of the policy exemption. */ - expiresOn?: Date; - /** The display name of the policy exemption. */ + /** + * The system metadata relating to this resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly systemData?: SystemData; + /** The type of policy definition. Possible values are NotSpecified, BuiltIn, Custom, and Static. */ + policyType?: PolicyType; + /** The display name of the policy set definition. */ displayName?: string; - /** The description of the policy exemption. */ + /** The policy set definition description. */ description?: string; - /** The policy exemption metadata. Metadata is an open ended object and is typically a collection of key value pairs. */ + /** The policy set definition metadata. Metadata is an open ended object and is typically a collection of key value pairs. */ metadata?: any; + /** The policy set definition parameters that can be used in policy definition references. */ + parameters?: { [propertyName: string]: ParameterDefinitionsValue }; + /** An array of policy definition references. */ + policyDefinitions?: PolicyDefinitionReference[]; + /** The metadata describing groups of policy definition references within the policy set definition. */ + policyDefinitionGroups?: PolicyDefinitionGroup[]; + /** The policy set definition version in #.#.# format. */ + version?: string; } -/** List of policy exemptions. */ -export interface PolicyExemptionListResult { - /** An array of policy exemptions. */ - value?: PolicyExemption[]; +/** The policy assignment. */ +export interface PolicyAssignment { /** - * The URL to use for getting the next set of results. + * The ID of the policy assignment. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; -} - -/** Known values of {@link AliasPathTokenType} that the service accepts. */ -export enum KnownAliasPathTokenType { - /** The token type is not specified. */ - NotSpecified = "NotSpecified", - /** The token type can be anything. */ - Any = "Any", - /** The token type is string. */ - String = "String", - /** The token type is object. */ - Object = "Object", - /** The token type is array. */ - Array = "Array", - /** The token type is integer. */ - Integer = "Integer", - /** The token type is number. */ - Number = "Number", - /** The token type is boolean. */ - Boolean = "Boolean" -} - -/** - * Defines values for AliasPathTokenType. \ - * {@link KnownAliasPathTokenType} can be used interchangeably with AliasPathTokenType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **NotSpecified**: The token type is not specified. \ - * **Any**: The token type can be anything. \ - * **String**: The token type is string. \ - * **Object**: The token type is object. \ - * **Array**: The token type is array. \ - * **Integer**: The token type is integer. \ - * **Number**: The token type is number. \ + readonly id?: string; + /** + * The type of the policy assignment. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly type?: string; + /** + * The name of the policy assignment. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly name?: string; + /** The location of the policy assignment. Only required when utilizing managed identity. */ + location?: string; + /** The managed identity associated with the policy assignment. */ + identity?: Identity; + /** + * The system metadata relating to this resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly systemData?: SystemData; + /** The display name of the policy assignment. */ + displayName?: string; + /** The ID of the policy definition or policy set definition being assigned. */ + policyDefinitionId?: string; + /** + * The scope for the policy assignment. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly scope?: string; + /** The policy's excluded scopes. */ + notScopes?: string[]; + /** The parameter values for the assigned policy rule. The keys are the parameter names. */ + parameters?: { [propertyName: string]: ParameterValuesValue }; + /** This message will be part of response in case of policy violation. */ + description?: string; + /** The policy assignment metadata. Metadata is an open ended object and is typically a collection of key value pairs. */ + metadata?: any; + /** The policy assignment enforcement mode. Possible values are Default and DoNotEnforce. */ + enforcementMode?: EnforcementMode; + /** The messages that describe why a resource is non-compliant with the policy. */ + nonComplianceMessages?: NonComplianceMessage[]; + /** The resource selector list to filter policies by resource properties. */ + resourceSelectors?: ResourceSelector[]; + /** The policy property value override. */ + overrides?: Override[]; +} + +/** A message that describes why a resource is non-compliant with the policy. This is shown in 'deny' error messages and on resource's non-compliant compliance results. */ +export interface NonComplianceMessage { + /** A message that describes why a resource is non-compliant with the policy. This is shown in 'deny' error messages and on resource's non-compliant compliance results. */ + message: string; + /** The policy definition reference ID within a policy set definition the message is intended for. This is only applicable if the policy assignment assigns a policy set definition. If this is not provided the message applies to all policies assigned by this policy assignment. */ + policyDefinitionReferenceId?: string; +} + +/** The resource selector to filter policies by resource properties. */ +export interface ResourceSelector { + /** The name of the resource selector. */ + name?: string; + /** The list of the selector expressions. */ + selectors?: Selector[]; +} + +/** The selector expression. */ +export interface Selector { + /** The selector kind. */ + kind?: SelectorKind; + /** The list of values to filter in. */ + in?: string[]; + /** The list of values to filter out. */ + notIn?: string[]; +} + +/** The policy property value override. */ +export interface Override { + /** The override kind. */ + kind?: OverrideKind; + /** The value to override the policy property. */ + value?: string; + /** The list of the selector expressions. */ + selectors?: Selector[]; +} + +/** Identity for the resource. Policy assignments support a maximum of one identity. That is either a system assigned identity or a single user assigned identity. */ +export interface Identity { + /** + * The principal ID of the resource identity. This property will only be provided for a system assigned identity + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly principalId?: string; + /** + * The tenant ID of the resource identity. This property will only be provided for a system assigned identity + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly tenantId?: string; + /** The identity type. This is the only required field when adding a system or user assigned identity to a resource. */ + type?: ResourceIdentityType; + /** The user identity associated with the policy. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. */ + userAssignedIdentities?: { + [propertyName: string]: UserAssignedIdentitiesValue; + }; +} + +export interface UserAssignedIdentitiesValue { + /** + * The principal id of user assigned identity. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly principalId?: string; + /** + * The client id of user assigned identity. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly clientId?: string; +} + +/** The policy assignment for Patch request. */ +export interface PolicyAssignmentUpdate { + /** The location of the policy assignment. Only required when utilizing managed identity. */ + location?: string; + /** The managed identity associated with the policy assignment. */ + identity?: Identity; + /** The resource selector list to filter policies by resource properties. */ + resourceSelectors?: ResourceSelector[]; + /** The policy property value override. */ + overrides?: Override[]; +} + +/** List of policy assignments. */ +export interface PolicyAssignmentListResult { + /** An array of policy assignments. */ + value?: PolicyAssignment[]; + /** The URL to use for getting the next set of results. */ + nextLink?: string; +} + +/** The policy exemption. */ +export interface PolicyExemption { + /** + * Azure Resource Manager metadata containing createdBy and modifiedBy information. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly systemData?: SystemData; + /** + * The ID of the policy exemption. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly id?: string; + /** + * The name of the policy exemption. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly name?: string; + /** + * The type of the resource (Microsoft.Authorization/policyExemptions). + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly type?: string; + /** The ID of the policy assignment that is being exempted. */ + policyAssignmentId: string; + /** The policy definition reference ID list when the associated policy assignment is an assignment of a policy set definition. */ + policyDefinitionReferenceIds?: string[]; + /** The policy exemption category. Possible values are Waiver and Mitigated. */ + exemptionCategory: ExemptionCategory; + /** The expiration date and time (in UTC ISO 8601 format yyyy-MM-ddTHH:mm:ssZ) of the policy exemption. */ + expiresOn?: Date; + /** The display name of the policy exemption. */ + displayName?: string; + /** The description of the policy exemption. */ + description?: string; + /** The policy exemption metadata. Metadata is an open ended object and is typically a collection of key value pairs. */ + metadata?: any; + /** The resource selector list to filter policies by resource properties. */ + resourceSelectors?: ResourceSelector[]; + /** The option whether validate the exemption is at or under the assignment scope. */ + assignmentScopeValidation?: AssignmentScopeValidation; +} + +/** The policy exemption for Patch request. */ +export interface PolicyExemptionUpdate { + /** The resource selector list to filter policies by resource properties. */ + resourceSelectors?: ResourceSelector[]; + /** The option whether validate the exemption is at or under the assignment scope. */ + assignmentScopeValidation?: AssignmentScopeValidation; +} + +/** List of policy exemptions. */ +export interface PolicyExemptionListResult { + /** An array of policy exemptions. */ + value?: PolicyExemption[]; + /** + * The URL to use for getting the next set of results. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly nextLink?: string; +} + +/** The variable. */ +export interface Variable { + /** + * Azure Resource Manager metadata containing createdBy and modifiedBy information. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly systemData?: SystemData; + /** + * The ID of the variable. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly id?: string; + /** + * The name of the variable. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly name?: string; + /** + * The type of the resource (Microsoft.Authorization/variables). + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly type?: string; + /** Variable column definitions. */ + columns: PolicyVariableColumn[]; +} + +/** The variable column. */ +export interface PolicyVariableColumn { + /** The name of this policy variable column. */ + columnName: string; +} + +/** List of variables. */ +export interface VariableListResult { + /** An array of variables. */ + value?: Variable[]; + /** + * The URL to use for getting the next set of results. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly nextLink?: string; +} + +/** The variable value. */ +export interface VariableValue { + /** + * Azure Resource Manager metadata containing createdBy and modifiedBy information. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly systemData?: SystemData; + /** + * The ID of the variable. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly id?: string; + /** + * The name of the variable. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly name?: string; + /** + * The type of the resource (Microsoft.Authorization/variables/values). + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly type?: string; + /** Variable value column value array. */ + values: PolicyVariableValueColumnValue[]; +} + +/** The name value tuple for this variable value column. */ +export interface PolicyVariableValueColumnValue { + /** Column name for the variable value */ + columnName: string; + /** Column value for the variable value; this can be an integer, double, boolean, null or a string. */ + columnValue: any; +} + +/** List of variable values. */ +export interface VariableValueListResult { + /** An array of variable values. */ + value?: VariableValue[]; + /** + * The URL to use for getting the next set of results. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly nextLink?: string; +} + +/** Known values of {@link AliasPathTokenType} that the service accepts. */ +export enum KnownAliasPathTokenType { + /** The token type is not specified. */ + NotSpecified = "NotSpecified", + /** The token type can be anything. */ + Any = "Any", + /** The token type is string. */ + String = "String", + /** The token type is object. */ + Object = "Object", + /** The token type is array. */ + Array = "Array", + /** The token type is integer. */ + Integer = "Integer", + /** The token type is number. */ + Number = "Number", + /** The token type is boolean. */ + Boolean = "Boolean", +} + +/** + * Defines values for AliasPathTokenType. \ + * {@link KnownAliasPathTokenType} can be used interchangeably with AliasPathTokenType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **NotSpecified**: The token type is not specified. \ + * **Any**: The token type can be anything. \ + * **String**: The token type is string. \ + * **Object**: The token type is object. \ + * **Array**: The token type is array. \ + * **Integer**: The token type is integer. \ + * **Number**: The token type is number. \ * **Boolean**: The token type is boolean. */ export type AliasPathTokenType = string; @@ -546,7 +789,7 @@ export enum KnownAliasPathAttributes { /** The token that the alias path is referring to has no attributes. */ None = "None", /** The token that the alias path is referring to is modifiable by policies with 'modify' effect. */ - Modifiable = "Modifiable" + Modifiable = "Modifiable", } /** @@ -559,48 +802,6 @@ export enum KnownAliasPathAttributes { */ export type AliasPathAttributes = string; -/** Known values of {@link EnforcementMode} that the service accepts. */ -export enum KnownEnforcementMode { - /** The policy effect is enforced during resource creation or update. */ - Default = "Default", - /** The policy effect is not enforced during resource creation or update. */ - DoNotEnforce = "DoNotEnforce" -} - -/** - * Defines values for EnforcementMode. \ - * {@link KnownEnforcementMode} can be used interchangeably with EnforcementMode, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Default**: The policy effect is enforced during resource creation or update. \ - * **DoNotEnforce**: The policy effect is not enforced during resource creation or update. - */ -export type EnforcementMode = string; - -/** Known values of {@link CreatedByType} that the service accepts. */ -export enum KnownCreatedByType { - /** User */ - User = "User", - /** Application */ - Application = "Application", - /** ManagedIdentity */ - ManagedIdentity = "ManagedIdentity", - /** Key */ - Key = "Key" -} - -/** - * Defines values for CreatedByType. \ - * {@link KnownCreatedByType} can be used interchangeably with CreatedByType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **User** \ - * **Application** \ - * **ManagedIdentity** \ - * **Key** - */ -export type CreatedByType = string; - /** Known values of {@link PolicyType} that the service accepts. */ export enum KnownPolicyType { /** NotSpecified */ @@ -610,7 +811,7 @@ export enum KnownPolicyType { /** Custom */ Custom = "Custom", /** Static */ - Static = "Static" + Static = "Static", } /** @@ -640,71 +841,637 @@ export enum KnownParameterType { /** Float */ Float = "Float", /** DateTime */ - DateTime = "DateTime" + DateTime = "DateTime", +} + +/** + * Defines values for ParameterType. \ + * {@link KnownParameterType} can be used interchangeably with ParameterType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **String** \ + * **Array** \ + * **Object** \ + * **Boolean** \ + * **Integer** \ + * **Float** \ + * **DateTime** + */ +export type ParameterType = string; + +/** Known values of {@link CreatedByType} that the service accepts. */ +export enum KnownCreatedByType { + /** User */ + User = "User", + /** Application */ + Application = "Application", + /** ManagedIdentity */ + ManagedIdentity = "ManagedIdentity", + /** Key */ + Key = "Key", +} + +/** + * Defines values for CreatedByType. \ + * {@link KnownCreatedByType} can be used interchangeably with CreatedByType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **User** \ + * **Application** \ + * **ManagedIdentity** \ + * **Key** + */ +export type CreatedByType = string; + +/** Known values of {@link EnforcementMode} that the service accepts. */ +export enum KnownEnforcementMode { + /** The policy effect is enforced during resource creation or update. */ + Default = "Default", + /** The policy effect is not enforced during resource creation or update. */ + DoNotEnforce = "DoNotEnforce", +} + +/** + * Defines values for EnforcementMode. \ + * {@link KnownEnforcementMode} can be used interchangeably with EnforcementMode, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Default**: The policy effect is enforced during resource creation or update. \ + * **DoNotEnforce**: The policy effect is not enforced during resource creation or update. + */ +export type EnforcementMode = string; + +/** Known values of {@link SelectorKind} that the service accepts. */ +export enum KnownSelectorKind { + /** The selector kind to filter policies by the resource location. */ + ResourceLocation = "resourceLocation", + /** The selector kind to filter policies by the resource type. */ + ResourceType = "resourceType", + /** The selector kind to filter policies by the resource without location. */ + ResourceWithoutLocation = "resourceWithoutLocation", + /** The selector kind to filter policies by the policy definition reference ID. */ + PolicyDefinitionReferenceId = "policyDefinitionReferenceId", +} + +/** + * Defines values for SelectorKind. \ + * {@link KnownSelectorKind} can be used interchangeably with SelectorKind, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **resourceLocation**: The selector kind to filter policies by the resource location. \ + * **resourceType**: The selector kind to filter policies by the resource type. \ + * **resourceWithoutLocation**: The selector kind to filter policies by the resource without location. \ + * **policyDefinitionReferenceId**: The selector kind to filter policies by the policy definition reference ID. + */ +export type SelectorKind = string; + +/** Known values of {@link OverrideKind} that the service accepts. */ +export enum KnownOverrideKind { + /** It will override the policy effect type. */ + PolicyEffect = "policyEffect", +} + +/** + * Defines values for OverrideKind. \ + * {@link KnownOverrideKind} can be used interchangeably with OverrideKind, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **policyEffect**: It will override the policy effect type. + */ +export type OverrideKind = string; + +/** Known values of {@link ExemptionCategory} that the service accepts. */ +export enum KnownExemptionCategory { + /** This category of exemptions usually means the scope is not applicable for the policy. */ + Waiver = "Waiver", + /** This category of exemptions usually means the mitigation actions have been applied to the scope. */ + Mitigated = "Mitigated", +} + +/** + * Defines values for ExemptionCategory. \ + * {@link KnownExemptionCategory} can be used interchangeably with ExemptionCategory, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Waiver**: This category of exemptions usually means the scope is not applicable for the policy. \ + * **Mitigated**: This category of exemptions usually means the mitigation actions have been applied to the scope. + */ +export type ExemptionCategory = string; + +/** Known values of {@link AssignmentScopeValidation} that the service accepts. */ +export enum KnownAssignmentScopeValidation { + /** This option will validate the exemption is at or under the assignment scope. */ + Default = "Default", + /** This option will bypass the validation the exemption scope is at or under the policy assignment scope. */ + DoNotValidate = "DoNotValidate", +} + +/** + * Defines values for AssignmentScopeValidation. \ + * {@link KnownAssignmentScopeValidation} can be used interchangeably with AssignmentScopeValidation, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Default**: This option will validate the exemption is at or under the assignment scope. \ + * **DoNotValidate**: This option will bypass the validation the exemption scope is at or under the policy assignment scope. + */ +export type AssignmentScopeValidation = string; +/** Defines values for AliasPatternType. */ +export type AliasPatternType = "NotSpecified" | "Extract"; +/** Defines values for AliasType. */ +export type AliasType = "NotSpecified" | "PlainText" | "Mask"; +/** Defines values for ResourceIdentityType. */ +export type ResourceIdentityType = "SystemAssigned" | "UserAssigned" | "None"; + +/** Optional parameters. */ +export interface DataPolicyManifestsGetByPolicyModeOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getByPolicyMode operation. */ +export type DataPolicyManifestsGetByPolicyModeResponse = DataPolicyManifest; + +/** Optional parameters. */ +export interface DataPolicyManifestsListOptionalParams + extends coreClient.OperationOptions { + /** The filter to apply on the operation. Valid values for $filter are: "namespace eq '{value}'". If $filter is not provided, no filtering is performed. If $filter=namespace eq '{value}' is provided, the returned list only includes all data policy manifests that have a namespace matching the provided value. */ + filter?: string; +} + +/** Contains response data for the list operation. */ +export type DataPolicyManifestsListResponse = DataPolicyManifestListResult; + +/** Optional parameters. */ +export interface DataPolicyManifestsListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type DataPolicyManifestsListNextResponse = DataPolicyManifestListResult; + +/** Optional parameters. */ +export interface PolicyDefinitionsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the createOrUpdate operation. */ +export type PolicyDefinitionsCreateOrUpdateResponse = PolicyDefinition; + +/** Optional parameters. */ +export interface PolicyDefinitionsDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface PolicyDefinitionsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type PolicyDefinitionsGetResponse = PolicyDefinition; + +/** Optional parameters. */ +export interface PolicyDefinitionsGetBuiltInOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getBuiltIn operation. */ +export type PolicyDefinitionsGetBuiltInResponse = PolicyDefinition; + +/** Optional parameters. */ +export interface PolicyDefinitionsCreateOrUpdateAtManagementGroupOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the createOrUpdateAtManagementGroup operation. */ +export type PolicyDefinitionsCreateOrUpdateAtManagementGroupResponse = + PolicyDefinition; + +/** Optional parameters. */ +export interface PolicyDefinitionsDeleteAtManagementGroupOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface PolicyDefinitionsGetAtManagementGroupOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getAtManagementGroup operation. */ +export type PolicyDefinitionsGetAtManagementGroupResponse = PolicyDefinition; + +/** Optional parameters. */ +export interface PolicyDefinitionsListOptionalParams + extends coreClient.OperationOptions { + /** The filter to apply on the operation. Valid values for $filter are: 'atExactScope()', 'policyType -eq {value}' or 'category eq '{value}''. If $filter is not provided, no filtering is performed. If $filter=atExactScope() is provided, the returned list only includes all policy definitions that at the given scope. If $filter='policyType -eq {value}' is provided, the returned list only includes all policy definitions whose type match the {value}. Possible policyType values are NotSpecified, BuiltIn, Custom, and Static. If $filter='category -eq {value}' is provided, the returned list only includes all policy definitions whose category match the {value}. */ + filter?: string; + /** Maximum number of records to return. When the $top filter is not provided, it will return 500 records. */ + top?: number; +} + +/** Contains response data for the list operation. */ +export type PolicyDefinitionsListResponse = PolicyDefinitionListResult; + +/** Optional parameters. */ +export interface PolicyDefinitionsListBuiltInOptionalParams + extends coreClient.OperationOptions { + /** The filter to apply on the operation. Valid values for $filter are: 'atExactScope()', 'policyType -eq {value}' or 'category eq '{value}''. If $filter is not provided, no filtering is performed. If $filter=atExactScope() is provided, the returned list only includes all policy definitions that at the given scope. If $filter='policyType -eq {value}' is provided, the returned list only includes all policy definitions whose type match the {value}. Possible policyType values are NotSpecified, BuiltIn, Custom, and Static. If $filter='category -eq {value}' is provided, the returned list only includes all policy definitions whose category match the {value}. */ + filter?: string; + /** Maximum number of records to return. When the $top filter is not provided, it will return 500 records. */ + top?: number; +} + +/** Contains response data for the listBuiltIn operation. */ +export type PolicyDefinitionsListBuiltInResponse = PolicyDefinitionListResult; + +/** Optional parameters. */ +export interface PolicyDefinitionsListByManagementGroupOptionalParams + extends coreClient.OperationOptions { + /** The filter to apply on the operation. Valid values for $filter are: 'atExactScope()', 'policyType -eq {value}' or 'category eq '{value}''. If $filter is not provided, no filtering is performed. If $filter=atExactScope() is provided, the returned list only includes all policy definitions that at the given scope. If $filter='policyType -eq {value}' is provided, the returned list only includes all policy definitions whose type match the {value}. Possible policyType values are NotSpecified, BuiltIn, Custom, and Static. If $filter='category -eq {value}' is provided, the returned list only includes all policy definitions whose category match the {value}. */ + filter?: string; + /** Maximum number of records to return. When the $top filter is not provided, it will return 500 records. */ + top?: number; +} + +/** Contains response data for the listByManagementGroup operation. */ +export type PolicyDefinitionsListByManagementGroupResponse = + PolicyDefinitionListResult; + +/** Optional parameters. */ +export interface PolicyDefinitionsListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type PolicyDefinitionsListNextResponse = PolicyDefinitionListResult; + +/** Optional parameters. */ +export interface PolicyDefinitionsListBuiltInNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listBuiltInNext operation. */ +export type PolicyDefinitionsListBuiltInNextResponse = + PolicyDefinitionListResult; + +/** Optional parameters. */ +export interface PolicyDefinitionsListByManagementGroupNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByManagementGroupNext operation. */ +export type PolicyDefinitionsListByManagementGroupNextResponse = + PolicyDefinitionListResult; + +/** Optional parameters. */ +export interface PolicyDefinitionVersionsListAllBuiltinsOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listAllBuiltins operation. */ +export type PolicyDefinitionVersionsListAllBuiltinsResponse = + PolicyDefinitionVersionListResult; + +/** Optional parameters. */ +export interface PolicyDefinitionVersionsListAllAtManagementGroupOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listAllAtManagementGroup operation. */ +export type PolicyDefinitionVersionsListAllAtManagementGroupResponse = + PolicyDefinitionVersionListResult; + +/** Optional parameters. */ +export interface PolicyDefinitionVersionsListAllOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listAll operation. */ +export type PolicyDefinitionVersionsListAllResponse = + PolicyDefinitionVersionListResult; + +/** Optional parameters. */ +export interface PolicyDefinitionVersionsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the createOrUpdate operation. */ +export type PolicyDefinitionVersionsCreateOrUpdateResponse = + PolicyDefinitionVersion; + +/** Optional parameters. */ +export interface PolicyDefinitionVersionsDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface PolicyDefinitionVersionsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type PolicyDefinitionVersionsGetResponse = PolicyDefinitionVersion; + +/** Optional parameters. */ +export interface PolicyDefinitionVersionsGetBuiltInOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getBuiltIn operation. */ +export type PolicyDefinitionVersionsGetBuiltInResponse = + PolicyDefinitionVersion; + +/** Optional parameters. */ +export interface PolicyDefinitionVersionsCreateOrUpdateAtManagementGroupOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the createOrUpdateAtManagementGroup operation. */ +export type PolicyDefinitionVersionsCreateOrUpdateAtManagementGroupResponse = + PolicyDefinitionVersion; + +/** Optional parameters. */ +export interface PolicyDefinitionVersionsDeleteAtManagementGroupOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface PolicyDefinitionVersionsGetAtManagementGroupOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getAtManagementGroup operation. */ +export type PolicyDefinitionVersionsGetAtManagementGroupResponse = + PolicyDefinitionVersion; + +/** Optional parameters. */ +export interface PolicyDefinitionVersionsListOptionalParams + extends coreClient.OperationOptions { + /** Maximum number of records to return. When the $top filter is not provided, it will return 500 records. */ + top?: number; +} + +/** Contains response data for the list operation. */ +export type PolicyDefinitionVersionsListResponse = + PolicyDefinitionVersionListResult; + +/** Optional parameters. */ +export interface PolicyDefinitionVersionsListBuiltInOptionalParams + extends coreClient.OperationOptions { + /** Maximum number of records to return. When the $top filter is not provided, it will return 500 records. */ + top?: number; +} + +/** Contains response data for the listBuiltIn operation. */ +export type PolicyDefinitionVersionsListBuiltInResponse = + PolicyDefinitionVersionListResult; + +/** Optional parameters. */ +export interface PolicyDefinitionVersionsListByManagementGroupOptionalParams + extends coreClient.OperationOptions { + /** Maximum number of records to return. When the $top filter is not provided, it will return 500 records. */ + top?: number; +} + +/** Contains response data for the listByManagementGroup operation. */ +export type PolicyDefinitionVersionsListByManagementGroupResponse = + PolicyDefinitionVersionListResult; + +/** Optional parameters. */ +export interface PolicyDefinitionVersionsListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type PolicyDefinitionVersionsListNextResponse = + PolicyDefinitionVersionListResult; + +/** Optional parameters. */ +export interface PolicyDefinitionVersionsListBuiltInNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listBuiltInNext operation. */ +export type PolicyDefinitionVersionsListBuiltInNextResponse = + PolicyDefinitionVersionListResult; + +/** Optional parameters. */ +export interface PolicyDefinitionVersionsListByManagementGroupNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByManagementGroupNext operation. */ +export type PolicyDefinitionVersionsListByManagementGroupNextResponse = + PolicyDefinitionVersionListResult; + +/** Optional parameters. */ +export interface PolicySetDefinitionsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the createOrUpdate operation. */ +export type PolicySetDefinitionsCreateOrUpdateResponse = PolicySetDefinition; + +/** Optional parameters. */ +export interface PolicySetDefinitionsDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface PolicySetDefinitionsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type PolicySetDefinitionsGetResponse = PolicySetDefinition; + +/** Optional parameters. */ +export interface PolicySetDefinitionsGetBuiltInOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getBuiltIn operation. */ +export type PolicySetDefinitionsGetBuiltInResponse = PolicySetDefinition; + +/** Optional parameters. */ +export interface PolicySetDefinitionsListOptionalParams + extends coreClient.OperationOptions { + /** The filter to apply on the operation. Valid values for $filter are: 'atExactScope()', 'policyType -eq {value}' or 'category eq '{value}''. If $filter is not provided, no filtering is performed. If $filter=atExactScope() is provided, the returned list only includes all policy set definitions that at the given scope. If $filter='policyType -eq {value}' is provided, the returned list only includes all policy set definitions whose type match the {value}. Possible policyType values are NotSpecified, BuiltIn, Custom, and Static. If $filter='category -eq {value}' is provided, the returned list only includes all policy set definitions whose category match the {value}. */ + filter?: string; + /** Maximum number of records to return. When the $top filter is not provided, it will return 500 records. */ + top?: number; +} + +/** Contains response data for the list operation. */ +export type PolicySetDefinitionsListResponse = PolicySetDefinitionListResult; + +/** Optional parameters. */ +export interface PolicySetDefinitionsListBuiltInOptionalParams + extends coreClient.OperationOptions { + /** The filter to apply on the operation. Valid values for $filter are: 'atExactScope()', 'policyType -eq {value}' or 'category eq '{value}''. If $filter is not provided, no filtering is performed. If $filter=atExactScope() is provided, the returned list only includes all policy set definitions that at the given scope. If $filter='policyType -eq {value}' is provided, the returned list only includes all policy set definitions whose type match the {value}. Possible policyType values are NotSpecified, BuiltIn, Custom, and Static. If $filter='category -eq {value}' is provided, the returned list only includes all policy set definitions whose category match the {value}. */ + filter?: string; + /** Maximum number of records to return. When the $top filter is not provided, it will return 500 records. */ + top?: number; +} + +/** Contains response data for the listBuiltIn operation. */ +export type PolicySetDefinitionsListBuiltInResponse = + PolicySetDefinitionListResult; + +/** Optional parameters. */ +export interface PolicySetDefinitionsCreateOrUpdateAtManagementGroupOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the createOrUpdateAtManagementGroup operation. */ +export type PolicySetDefinitionsCreateOrUpdateAtManagementGroupResponse = + PolicySetDefinition; + +/** Optional parameters. */ +export interface PolicySetDefinitionsDeleteAtManagementGroupOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface PolicySetDefinitionsGetAtManagementGroupOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getAtManagementGroup operation. */ +export type PolicySetDefinitionsGetAtManagementGroupResponse = + PolicySetDefinition; + +/** Optional parameters. */ +export interface PolicySetDefinitionsListByManagementGroupOptionalParams + extends coreClient.OperationOptions { + /** The filter to apply on the operation. Valid values for $filter are: 'atExactScope()', 'policyType -eq {value}' or 'category eq '{value}''. If $filter is not provided, no filtering is performed. If $filter=atExactScope() is provided, the returned list only includes all policy set definitions that at the given scope. If $filter='policyType -eq {value}' is provided, the returned list only includes all policy set definitions whose type match the {value}. Possible policyType values are NotSpecified, BuiltIn, Custom, and Static. If $filter='category -eq {value}' is provided, the returned list only includes all policy set definitions whose category match the {value}. */ + filter?: string; + /** Maximum number of records to return. When the $top filter is not provided, it will return 500 records. */ + top?: number; +} + +/** Contains response data for the listByManagementGroup operation. */ +export type PolicySetDefinitionsListByManagementGroupResponse = + PolicySetDefinitionListResult; + +/** Optional parameters. */ +export interface PolicySetDefinitionsListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type PolicySetDefinitionsListNextResponse = + PolicySetDefinitionListResult; + +/** Optional parameters. */ +export interface PolicySetDefinitionsListBuiltInNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listBuiltInNext operation. */ +export type PolicySetDefinitionsListBuiltInNextResponse = + PolicySetDefinitionListResult; + +/** Optional parameters. */ +export interface PolicySetDefinitionsListByManagementGroupNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByManagementGroupNext operation. */ +export type PolicySetDefinitionsListByManagementGroupNextResponse = + PolicySetDefinitionListResult; + +/** Optional parameters. */ +export interface PolicySetDefinitionVersionsListAllBuiltinsOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listAllBuiltins operation. */ +export type PolicySetDefinitionVersionsListAllBuiltinsResponse = + PolicySetDefinitionVersionListResult; + +/** Optional parameters. */ +export interface PolicySetDefinitionVersionsListAllAtManagementGroupOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listAllAtManagementGroup operation. */ +export type PolicySetDefinitionVersionsListAllAtManagementGroupResponse = + PolicySetDefinitionVersionListResult; + +/** Optional parameters. */ +export interface PolicySetDefinitionVersionsListAllOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listAll operation. */ +export type PolicySetDefinitionVersionsListAllResponse = + PolicySetDefinitionVersionListResult; + +/** Optional parameters. */ +export interface PolicySetDefinitionVersionsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the createOrUpdate operation. */ +export type PolicySetDefinitionVersionsCreateOrUpdateResponse = + PolicySetDefinitionVersion; + +/** Optional parameters. */ +export interface PolicySetDefinitionVersionsDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface PolicySetDefinitionVersionsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type PolicySetDefinitionVersionsGetResponse = PolicySetDefinitionVersion; + +/** Optional parameters. */ +export interface PolicySetDefinitionVersionsGetBuiltInOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getBuiltIn operation. */ +export type PolicySetDefinitionVersionsGetBuiltInResponse = + PolicySetDefinitionVersion; + +/** Optional parameters. */ +export interface PolicySetDefinitionVersionsListOptionalParams + extends coreClient.OperationOptions { + /** Maximum number of records to return. When the $top filter is not provided, it will return 500 records. */ + top?: number; +} + +/** Contains response data for the list operation. */ +export type PolicySetDefinitionVersionsListResponse = + PolicySetDefinitionVersionListResult; + +/** Optional parameters. */ +export interface PolicySetDefinitionVersionsListBuiltInOptionalParams + extends coreClient.OperationOptions { + /** Maximum number of records to return. When the $top filter is not provided, it will return 500 records. */ + top?: number; } -/** - * Defines values for ParameterType. \ - * {@link KnownParameterType} can be used interchangeably with ParameterType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **String** \ - * **Array** \ - * **Object** \ - * **Boolean** \ - * **Integer** \ - * **Float** \ - * **DateTime** - */ -export type ParameterType = string; +/** Contains response data for the listBuiltIn operation. */ +export type PolicySetDefinitionVersionsListBuiltInResponse = + PolicySetDefinitionVersionListResult; -/** Known values of {@link ExemptionCategory} that the service accepts. */ -export enum KnownExemptionCategory { - /** This category of exemptions usually means the scope is not applicable for the policy. */ - Waiver = "Waiver", - /** This category of exemptions usually means the mitigation actions have been applied to the scope. */ - Mitigated = "Mitigated" -} +/** Optional parameters. */ +export interface PolicySetDefinitionVersionsCreateOrUpdateAtManagementGroupOptionalParams + extends coreClient.OperationOptions {} -/** - * Defines values for ExemptionCategory. \ - * {@link KnownExemptionCategory} can be used interchangeably with ExemptionCategory, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Waiver**: This category of exemptions usually means the scope is not applicable for the policy. \ - * **Mitigated**: This category of exemptions usually means the mitigation actions have been applied to the scope. - */ -export type ExemptionCategory = string; -/** Defines values for AliasPatternType. */ -export type AliasPatternType = "NotSpecified" | "Extract"; -/** Defines values for AliasType. */ -export type AliasType = "NotSpecified" | "PlainText" | "Mask"; -/** Defines values for ResourceIdentityType. */ -export type ResourceIdentityType = "SystemAssigned" | "UserAssigned" | "None"; +/** Contains response data for the createOrUpdateAtManagementGroup operation. */ +export type PolicySetDefinitionVersionsCreateOrUpdateAtManagementGroupResponse = + PolicySetDefinitionVersion; /** Optional parameters. */ -export interface DataPolicyManifestsGetByPolicyModeOptionalParams +export interface PolicySetDefinitionVersionsDeleteAtManagementGroupOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getByPolicyMode operation. */ -export type DataPolicyManifestsGetByPolicyModeResponse = DataPolicyManifest; +/** Optional parameters. */ +export interface PolicySetDefinitionVersionsGetAtManagementGroupOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getAtManagementGroup operation. */ +export type PolicySetDefinitionVersionsGetAtManagementGroupResponse = + PolicySetDefinitionVersion; /** Optional parameters. */ -export interface DataPolicyManifestsListOptionalParams +export interface PolicySetDefinitionVersionsListByManagementGroupOptionalParams extends coreClient.OperationOptions { - /** The filter to apply on the operation. Valid values for $filter are: "namespace eq '{value}'". If $filter is not provided, no filtering is performed. If $filter=namespace eq '{value}' is provided, the returned list only includes all data policy manifests that have a namespace matching the provided value. */ - filter?: string; + /** Maximum number of records to return. When the $top filter is not provided, it will return 500 records. */ + top?: number; } -/** Contains response data for the list operation. */ -export type DataPolicyManifestsListResponse = DataPolicyManifestListResult; +/** Contains response data for the listByManagementGroup operation. */ +export type PolicySetDefinitionVersionsListByManagementGroupResponse = + PolicySetDefinitionVersionListResult; /** Optional parameters. */ -export interface DataPolicyManifestsListNextOptionalParams +export interface PolicySetDefinitionVersionsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type DataPolicyManifestsListNextResponse = DataPolicyManifestListResult; +export type PolicySetDefinitionVersionsListNextResponse = + PolicySetDefinitionVersionListResult; + +/** Optional parameters. */ +export interface PolicySetDefinitionVersionsListBuiltInNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listBuiltInNext operation. */ +export type PolicySetDefinitionVersionsListBuiltInNextResponse = + PolicySetDefinitionVersionListResult; + +/** Optional parameters. */ +export interface PolicySetDefinitionVersionsListByManagementGroupNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByManagementGroupNext operation. */ +export type PolicySetDefinitionVersionsListByManagementGroupNextResponse = + PolicySetDefinitionVersionListResult; /** Optional parameters. */ export interface PolicyAssignmentsDeleteOptionalParams @@ -744,7 +1511,8 @@ export interface PolicyAssignmentsListForResourceGroupOptionalParams } /** Contains response data for the listForResourceGroup operation. */ -export type PolicyAssignmentsListForResourceGroupResponse = PolicyAssignmentListResult; +export type PolicyAssignmentsListForResourceGroupResponse = + PolicyAssignmentListResult; /** Optional parameters. */ export interface PolicyAssignmentsListForResourceOptionalParams @@ -756,7 +1524,8 @@ export interface PolicyAssignmentsListForResourceOptionalParams } /** Contains response data for the listForResource operation. */ -export type PolicyAssignmentsListForResourceResponse = PolicyAssignmentListResult; +export type PolicyAssignmentsListForResourceResponse = + PolicyAssignmentListResult; /** Optional parameters. */ export interface PolicyAssignmentsListForManagementGroupOptionalParams @@ -768,7 +1537,8 @@ export interface PolicyAssignmentsListForManagementGroupOptionalParams } /** Contains response data for the listForManagementGroup operation. */ -export type PolicyAssignmentsListForManagementGroupResponse = PolicyAssignmentListResult; +export type PolicyAssignmentsListForManagementGroupResponse = + PolicyAssignmentListResult; /** Optional parameters. */ export interface PolicyAssignmentsListOptionalParams @@ -815,21 +1585,24 @@ export interface PolicyAssignmentsListForResourceGroupNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listForResourceGroupNext operation. */ -export type PolicyAssignmentsListForResourceGroupNextResponse = PolicyAssignmentListResult; +export type PolicyAssignmentsListForResourceGroupNextResponse = + PolicyAssignmentListResult; /** Optional parameters. */ export interface PolicyAssignmentsListForResourceNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listForResourceNext operation. */ -export type PolicyAssignmentsListForResourceNextResponse = PolicyAssignmentListResult; +export type PolicyAssignmentsListForResourceNextResponse = + PolicyAssignmentListResult; /** Optional parameters. */ export interface PolicyAssignmentsListForManagementGroupNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listForManagementGroupNext operation. */ -export type PolicyAssignmentsListForManagementGroupNextResponse = PolicyAssignmentListResult; +export type PolicyAssignmentsListForManagementGroupNextResponse = + PolicyAssignmentListResult; /** Optional parameters. */ export interface PolicyAssignmentsListNextOptionalParams @@ -839,290 +1612,233 @@ export interface PolicyAssignmentsListNextOptionalParams export type PolicyAssignmentsListNextResponse = PolicyAssignmentListResult; /** Optional parameters. */ -export interface PolicyDefinitionsCreateOrUpdateOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the createOrUpdate operation. */ -export type PolicyDefinitionsCreateOrUpdateResponse = PolicyDefinition; - -/** Optional parameters. */ -export interface PolicyDefinitionsDeleteOptionalParams +export interface PolicyExemptionsDeleteOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface PolicyDefinitionsGetOptionalParams +export interface PolicyExemptionsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type PolicyDefinitionsGetResponse = PolicyDefinition; +/** Contains response data for the createOrUpdate operation. */ +export type PolicyExemptionsCreateOrUpdateResponse = PolicyExemption; /** Optional parameters. */ -export interface PolicyDefinitionsGetBuiltInOptionalParams +export interface PolicyExemptionsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getBuiltIn operation. */ -export type PolicyDefinitionsGetBuiltInResponse = PolicyDefinition; +/** Contains response data for the get operation. */ +export type PolicyExemptionsGetResponse = PolicyExemption; /** Optional parameters. */ -export interface PolicyDefinitionsCreateOrUpdateAtManagementGroupOptionalParams +export interface PolicyExemptionsUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdateAtManagementGroup operation. */ -export type PolicyDefinitionsCreateOrUpdateAtManagementGroupResponse = PolicyDefinition; - -/** Optional parameters. */ -export interface PolicyDefinitionsDeleteAtManagementGroupOptionalParams - extends coreClient.OperationOptions {} +/** Contains response data for the update operation. */ +export type PolicyExemptionsUpdateResponse = PolicyExemption; /** Optional parameters. */ -export interface PolicyDefinitionsGetAtManagementGroupOptionalParams - extends coreClient.OperationOptions {} +export interface PolicyExemptionsListOptionalParams + extends coreClient.OperationOptions { + /** The filter to apply on the operation. Valid values for $filter are: 'atScope()', 'atExactScope()', 'excludeExpired()' or 'policyAssignmentId eq '{value}''. If $filter is not provided, no filtering is performed. If $filter is not provided, the unfiltered list includes all policy exemptions associated with the scope, including those that apply directly or apply from containing scopes. If $filter=atScope() is provided, the returned list only includes all policy exemptions that apply to the scope, which is everything in the unfiltered list except those applied to sub scopes contained within the given scope. If $filter=atExactScope() is provided, the returned list only includes all policy exemptions that at the given scope. If $filter=excludeExpired() is provided, the returned list only includes all policy exemptions that either haven't expired or didn't set expiration date. If $filter=policyAssignmentId eq '{value}' is provided. the returned list only includes all policy exemptions that are associated with the give policyAssignmentId. */ + filter?: string; +} -/** Contains response data for the getAtManagementGroup operation. */ -export type PolicyDefinitionsGetAtManagementGroupResponse = PolicyDefinition; +/** Contains response data for the list operation. */ +export type PolicyExemptionsListResponse = PolicyExemptionListResult; /** Optional parameters. */ -export interface PolicyDefinitionsListOptionalParams +export interface PolicyExemptionsListForResourceGroupOptionalParams extends coreClient.OperationOptions { - /** The filter to apply on the operation. Valid values for $filter are: 'atExactScope()', 'policyType -eq {value}' or 'category eq '{value}''. If $filter is not provided, no filtering is performed. If $filter=atExactScope() is provided, the returned list only includes all policy definitions that at the given scope. If $filter='policyType -eq {value}' is provided, the returned list only includes all policy definitions whose type match the {value}. Possible policyType values are NotSpecified, BuiltIn, Custom, and Static. If $filter='category -eq {value}' is provided, the returned list only includes all policy definitions whose category match the {value}. */ + /** The filter to apply on the operation. Valid values for $filter are: 'atScope()', 'atExactScope()', 'excludeExpired()' or 'policyAssignmentId eq '{value}''. If $filter is not provided, no filtering is performed. If $filter is not provided, the unfiltered list includes all policy exemptions associated with the scope, including those that apply directly or apply from containing scopes. If $filter=atScope() is provided, the returned list only includes all policy exemptions that apply to the scope, which is everything in the unfiltered list except those applied to sub scopes contained within the given scope. If $filter=atExactScope() is provided, the returned list only includes all policy exemptions that at the given scope. If $filter=excludeExpired() is provided, the returned list only includes all policy exemptions that either haven't expired or didn't set expiration date. If $filter=policyAssignmentId eq '{value}' is provided. the returned list only includes all policy exemptions that are associated with the give policyAssignmentId. */ filter?: string; - /** Maximum number of records to return. When the $top filter is not provided, it will return 500 records. */ - top?: number; } -/** Contains response data for the list operation. */ -export type PolicyDefinitionsListResponse = PolicyDefinitionListResult; +/** Contains response data for the listForResourceGroup operation. */ +export type PolicyExemptionsListForResourceGroupResponse = + PolicyExemptionListResult; /** Optional parameters. */ -export interface PolicyDefinitionsListBuiltInOptionalParams +export interface PolicyExemptionsListForResourceOptionalParams extends coreClient.OperationOptions { - /** The filter to apply on the operation. Valid values for $filter are: 'atExactScope()', 'policyType -eq {value}' or 'category eq '{value}''. If $filter is not provided, no filtering is performed. If $filter=atExactScope() is provided, the returned list only includes all policy definitions that at the given scope. If $filter='policyType -eq {value}' is provided, the returned list only includes all policy definitions whose type match the {value}. Possible policyType values are NotSpecified, BuiltIn, Custom, and Static. If $filter='category -eq {value}' is provided, the returned list only includes all policy definitions whose category match the {value}. */ + /** The filter to apply on the operation. Valid values for $filter are: 'atScope()', 'atExactScope()', 'excludeExpired()' or 'policyAssignmentId eq '{value}''. If $filter is not provided, no filtering is performed. If $filter is not provided, the unfiltered list includes all policy exemptions associated with the scope, including those that apply directly or apply from containing scopes. If $filter=atScope() is provided, the returned list only includes all policy exemptions that apply to the scope, which is everything in the unfiltered list except those applied to sub scopes contained within the given scope. If $filter=atExactScope() is provided, the returned list only includes all policy exemptions that at the given scope. If $filter=excludeExpired() is provided, the returned list only includes all policy exemptions that either haven't expired or didn't set expiration date. If $filter=policyAssignmentId eq '{value}' is provided. the returned list only includes all policy exemptions that are associated with the give policyAssignmentId. */ filter?: string; - /** Maximum number of records to return. When the $top filter is not provided, it will return 500 records. */ - top?: number; } -/** Contains response data for the listBuiltIn operation. */ -export type PolicyDefinitionsListBuiltInResponse = PolicyDefinitionListResult; +/** Contains response data for the listForResource operation. */ +export type PolicyExemptionsListForResourceResponse = PolicyExemptionListResult; /** Optional parameters. */ -export interface PolicyDefinitionsListByManagementGroupOptionalParams +export interface PolicyExemptionsListForManagementGroupOptionalParams extends coreClient.OperationOptions { - /** The filter to apply on the operation. Valid values for $filter are: 'atExactScope()', 'policyType -eq {value}' or 'category eq '{value}''. If $filter is not provided, no filtering is performed. If $filter=atExactScope() is provided, the returned list only includes all policy definitions that at the given scope. If $filter='policyType -eq {value}' is provided, the returned list only includes all policy definitions whose type match the {value}. Possible policyType values are NotSpecified, BuiltIn, Custom, and Static. If $filter='category -eq {value}' is provided, the returned list only includes all policy definitions whose category match the {value}. */ + /** The filter to apply on the operation. Valid values for $filter are: 'atScope()', 'atExactScope()', 'excludeExpired()' or 'policyAssignmentId eq '{value}''. If $filter is not provided, no filtering is performed. If $filter is not provided, the unfiltered list includes all policy exemptions associated with the scope, including those that apply directly or apply from containing scopes. If $filter=atScope() is provided, the returned list only includes all policy exemptions that apply to the scope, which is everything in the unfiltered list except those applied to sub scopes contained within the given scope. If $filter=atExactScope() is provided, the returned list only includes all policy exemptions that at the given scope. If $filter=excludeExpired() is provided, the returned list only includes all policy exemptions that either haven't expired or didn't set expiration date. If $filter=policyAssignmentId eq '{value}' is provided. the returned list only includes all policy exemptions that are associated with the give policyAssignmentId. */ filter?: string; - /** Maximum number of records to return. When the $top filter is not provided, it will return 500 records. */ - top?: number; } -/** Contains response data for the listByManagementGroup operation. */ -export type PolicyDefinitionsListByManagementGroupResponse = PolicyDefinitionListResult; +/** Contains response data for the listForManagementGroup operation. */ +export type PolicyExemptionsListForManagementGroupResponse = + PolicyExemptionListResult; /** Optional parameters. */ -export interface PolicyDefinitionsListNextOptionalParams +export interface PolicyExemptionsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type PolicyDefinitionsListNextResponse = PolicyDefinitionListResult; +export type PolicyExemptionsListNextResponse = PolicyExemptionListResult; /** Optional parameters. */ -export interface PolicyDefinitionsListBuiltInNextOptionalParams +export interface PolicyExemptionsListForResourceGroupNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listBuiltInNext operation. */ -export type PolicyDefinitionsListBuiltInNextResponse = PolicyDefinitionListResult; +/** Contains response data for the listForResourceGroupNext operation. */ +export type PolicyExemptionsListForResourceGroupNextResponse = + PolicyExemptionListResult; /** Optional parameters. */ -export interface PolicyDefinitionsListByManagementGroupNextOptionalParams +export interface PolicyExemptionsListForResourceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByManagementGroupNext operation. */ -export type PolicyDefinitionsListByManagementGroupNextResponse = PolicyDefinitionListResult; +/** Contains response data for the listForResourceNext operation. */ +export type PolicyExemptionsListForResourceNextResponse = + PolicyExemptionListResult; /** Optional parameters. */ -export interface PolicySetDefinitionsCreateOrUpdateOptionalParams +export interface PolicyExemptionsListForManagementGroupNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type PolicySetDefinitionsCreateOrUpdateResponse = PolicySetDefinition; +/** Contains response data for the listForManagementGroupNext operation. */ +export type PolicyExemptionsListForManagementGroupNextResponse = + PolicyExemptionListResult; /** Optional parameters. */ -export interface PolicySetDefinitionsDeleteOptionalParams +export interface VariablesDeleteOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface PolicySetDefinitionsGetOptionalParams +export interface VariablesCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type PolicySetDefinitionsGetResponse = PolicySetDefinition; +/** Contains response data for the createOrUpdate operation. */ +export type VariablesCreateOrUpdateResponse = Variable; /** Optional parameters. */ -export interface PolicySetDefinitionsGetBuiltInOptionalParams +export interface VariablesGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getBuiltIn operation. */ -export type PolicySetDefinitionsGetBuiltInResponse = PolicySetDefinition; - -/** Optional parameters. */ -export interface PolicySetDefinitionsListOptionalParams - extends coreClient.OperationOptions { - /** The filter to apply on the operation. Valid values for $filter are: 'atExactScope()', 'policyType -eq {value}' or 'category eq '{value}''. If $filter is not provided, no filtering is performed. If $filter=atExactScope() is provided, the returned list only includes all policy set definitions that at the given scope. If $filter='policyType -eq {value}' is provided, the returned list only includes all policy set definitions whose type match the {value}. Possible policyType values are NotSpecified, BuiltIn, Custom, and Static. If $filter='category -eq {value}' is provided, the returned list only includes all policy set definitions whose category match the {value}. */ - filter?: string; - /** Maximum number of records to return. When the $top filter is not provided, it will return 500 records. */ - top?: number; -} - -/** Contains response data for the list operation. */ -export type PolicySetDefinitionsListResponse = PolicySetDefinitionListResult; +/** Contains response data for the get operation. */ +export type VariablesGetResponse = Variable; /** Optional parameters. */ -export interface PolicySetDefinitionsListBuiltInOptionalParams - extends coreClient.OperationOptions { - /** The filter to apply on the operation. Valid values for $filter are: 'atExactScope()', 'policyType -eq {value}' or 'category eq '{value}''. If $filter is not provided, no filtering is performed. If $filter=atExactScope() is provided, the returned list only includes all policy set definitions that at the given scope. If $filter='policyType -eq {value}' is provided, the returned list only includes all policy set definitions whose type match the {value}. Possible policyType values are NotSpecified, BuiltIn, Custom, and Static. If $filter='category -eq {value}' is provided, the returned list only includes all policy set definitions whose category match the {value}. */ - filter?: string; - /** Maximum number of records to return. When the $top filter is not provided, it will return 500 records. */ - top?: number; -} - -/** Contains response data for the listBuiltIn operation. */ -export type PolicySetDefinitionsListBuiltInResponse = PolicySetDefinitionListResult; +export interface VariablesDeleteAtManagementGroupOptionalParams + extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface PolicySetDefinitionsCreateOrUpdateAtManagementGroupOptionalParams +export interface VariablesCreateOrUpdateAtManagementGroupOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdateAtManagementGroup operation. */ -export type PolicySetDefinitionsCreateOrUpdateAtManagementGroupResponse = PolicySetDefinition; - -/** Optional parameters. */ -export interface PolicySetDefinitionsDeleteAtManagementGroupOptionalParams - extends coreClient.OperationOptions {} +export type VariablesCreateOrUpdateAtManagementGroupResponse = Variable; /** Optional parameters. */ -export interface PolicySetDefinitionsGetAtManagementGroupOptionalParams +export interface VariablesGetAtManagementGroupOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getAtManagementGroup operation. */ -export type PolicySetDefinitionsGetAtManagementGroupResponse = PolicySetDefinition; +export type VariablesGetAtManagementGroupResponse = Variable; /** Optional parameters. */ -export interface PolicySetDefinitionsListByManagementGroupOptionalParams - extends coreClient.OperationOptions { - /** The filter to apply on the operation. Valid values for $filter are: 'atExactScope()', 'policyType -eq {value}' or 'category eq '{value}''. If $filter is not provided, no filtering is performed. If $filter=atExactScope() is provided, the returned list only includes all policy set definitions that at the given scope. If $filter='policyType -eq {value}' is provided, the returned list only includes all policy set definitions whose type match the {value}. Possible policyType values are NotSpecified, BuiltIn, Custom, and Static. If $filter='category -eq {value}' is provided, the returned list only includes all policy set definitions whose category match the {value}. */ - filter?: string; - /** Maximum number of records to return. When the $top filter is not provided, it will return 500 records. */ - top?: number; -} +export interface VariablesListOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByManagementGroup operation. */ -export type PolicySetDefinitionsListByManagementGroupResponse = PolicySetDefinitionListResult; +/** Contains response data for the list operation. */ +export type VariablesListResponse = VariableListResult; /** Optional parameters. */ -export interface PolicySetDefinitionsListNextOptionalParams +export interface VariablesListForManagementGroupOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type PolicySetDefinitionsListNextResponse = PolicySetDefinitionListResult; +/** Contains response data for the listForManagementGroup operation. */ +export type VariablesListForManagementGroupResponse = VariableListResult; /** Optional parameters. */ -export interface PolicySetDefinitionsListBuiltInNextOptionalParams +export interface VariablesListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listBuiltInNext operation. */ -export type PolicySetDefinitionsListBuiltInNextResponse = PolicySetDefinitionListResult; +/** Contains response data for the listNext operation. */ +export type VariablesListNextResponse = VariableListResult; /** Optional parameters. */ -export interface PolicySetDefinitionsListByManagementGroupNextOptionalParams +export interface VariablesListForManagementGroupNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByManagementGroupNext operation. */ -export type PolicySetDefinitionsListByManagementGroupNextResponse = PolicySetDefinitionListResult; +/** Contains response data for the listForManagementGroupNext operation. */ +export type VariablesListForManagementGroupNextResponse = VariableListResult; /** Optional parameters. */ -export interface PolicyExemptionsDeleteOptionalParams +export interface VariableValuesDeleteOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface PolicyExemptionsCreateOrUpdateOptionalParams +export interface VariableValuesCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ -export type PolicyExemptionsCreateOrUpdateResponse = PolicyExemption; +export type VariableValuesCreateOrUpdateResponse = VariableValue; /** Optional parameters. */ -export interface PolicyExemptionsGetOptionalParams +export interface VariableValuesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type PolicyExemptionsGetResponse = PolicyExemption; +export type VariableValuesGetResponse = VariableValue; /** Optional parameters. */ -export interface PolicyExemptionsListOptionalParams - extends coreClient.OperationOptions { - /** The filter to apply on the operation. Valid values for $filter are: 'atScope()', 'atExactScope()', 'excludeExpired()' or 'policyAssignmentId eq '{value}''. If $filter is not provided, no filtering is performed. If $filter is not provided, the unfiltered list includes all policy exemptions associated with the scope, including those that apply directly or apply from containing scopes. If $filter=atScope() is provided, the returned list only includes all policy exemptions that apply to the scope, which is everything in the unfiltered list except those applied to sub scopes contained within the given scope. If $filter=atExactScope() is provided, the returned list only includes all policy exemptions that at the given scope. If $filter=excludeExpired() is provided, the returned list only includes all policy exemptions that either haven't expired or didn't set expiration date. If $filter=policyAssignmentId eq '{value}' is provided. the returned list only includes all policy exemptions that are associated with the give policyAssignmentId. */ - filter?: string; -} +export interface VariableValuesListOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type PolicyExemptionsListResponse = PolicyExemptionListResult; - -/** Optional parameters. */ -export interface PolicyExemptionsListForResourceGroupOptionalParams - extends coreClient.OperationOptions { - /** The filter to apply on the operation. Valid values for $filter are: 'atScope()', 'atExactScope()', 'excludeExpired()' or 'policyAssignmentId eq '{value}''. If $filter is not provided, no filtering is performed. If $filter is not provided, the unfiltered list includes all policy exemptions associated with the scope, including those that apply directly or apply from containing scopes. If $filter=atScope() is provided, the returned list only includes all policy exemptions that apply to the scope, which is everything in the unfiltered list except those applied to sub scopes contained within the given scope. If $filter=atExactScope() is provided, the returned list only includes all policy exemptions that at the given scope. If $filter=excludeExpired() is provided, the returned list only includes all policy exemptions that either haven't expired or didn't set expiration date. If $filter=policyAssignmentId eq '{value}' is provided. the returned list only includes all policy exemptions that are associated with the give policyAssignmentId. */ - filter?: string; -} - -/** Contains response data for the listForResourceGroup operation. */ -export type PolicyExemptionsListForResourceGroupResponse = PolicyExemptionListResult; +export type VariableValuesListResponse = VariableValueListResult; /** Optional parameters. */ -export interface PolicyExemptionsListForResourceOptionalParams - extends coreClient.OperationOptions { - /** The filter to apply on the operation. Valid values for $filter are: 'atScope()', 'atExactScope()', 'excludeExpired()' or 'policyAssignmentId eq '{value}''. If $filter is not provided, no filtering is performed. If $filter is not provided, the unfiltered list includes all policy exemptions associated with the scope, including those that apply directly or apply from containing scopes. If $filter=atScope() is provided, the returned list only includes all policy exemptions that apply to the scope, which is everything in the unfiltered list except those applied to sub scopes contained within the given scope. If $filter=atExactScope() is provided, the returned list only includes all policy exemptions that at the given scope. If $filter=excludeExpired() is provided, the returned list only includes all policy exemptions that either haven't expired or didn't set expiration date. If $filter=policyAssignmentId eq '{value}' is provided. the returned list only includes all policy exemptions that are associated with the give policyAssignmentId. */ - filter?: string; -} +export interface VariableValuesListForManagementGroupOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listForResource operation. */ -export type PolicyExemptionsListForResourceResponse = PolicyExemptionListResult; +/** Contains response data for the listForManagementGroup operation. */ +export type VariableValuesListForManagementGroupResponse = + VariableValueListResult; /** Optional parameters. */ -export interface PolicyExemptionsListForManagementGroupOptionalParams - extends coreClient.OperationOptions { - /** The filter to apply on the operation. Valid values for $filter are: 'atScope()', 'atExactScope()', 'excludeExpired()' or 'policyAssignmentId eq '{value}''. If $filter is not provided, no filtering is performed. If $filter is not provided, the unfiltered list includes all policy exemptions associated with the scope, including those that apply directly or apply from containing scopes. If $filter=atScope() is provided, the returned list only includes all policy exemptions that apply to the scope, which is everything in the unfiltered list except those applied to sub scopes contained within the given scope. If $filter=atExactScope() is provided, the returned list only includes all policy exemptions that at the given scope. If $filter=excludeExpired() is provided, the returned list only includes all policy exemptions that either haven't expired or didn't set expiration date. If $filter=policyAssignmentId eq '{value}' is provided. the returned list only includes all policy exemptions that are associated with the give policyAssignmentId. */ - filter?: string; -} - -/** Contains response data for the listForManagementGroup operation. */ -export type PolicyExemptionsListForManagementGroupResponse = PolicyExemptionListResult; +export interface VariableValuesDeleteAtManagementGroupOptionalParams + extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface PolicyExemptionsListNextOptionalParams +export interface VariableValuesCreateOrUpdateAtManagementGroupOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type PolicyExemptionsListNextResponse = PolicyExemptionListResult; +/** Contains response data for the createOrUpdateAtManagementGroup operation. */ +export type VariableValuesCreateOrUpdateAtManagementGroupResponse = + VariableValue; /** Optional parameters. */ -export interface PolicyExemptionsListForResourceGroupNextOptionalParams +export interface VariableValuesGetAtManagementGroupOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listForResourceGroupNext operation. */ -export type PolicyExemptionsListForResourceGroupNextResponse = PolicyExemptionListResult; +/** Contains response data for the getAtManagementGroup operation. */ +export type VariableValuesGetAtManagementGroupResponse = VariableValue; /** Optional parameters. */ -export interface PolicyExemptionsListForResourceNextOptionalParams +export interface VariableValuesListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listForResourceNext operation. */ -export type PolicyExemptionsListForResourceNextResponse = PolicyExemptionListResult; +/** Contains response data for the listNext operation. */ +export type VariableValuesListNextResponse = VariableValueListResult; /** Optional parameters. */ -export interface PolicyExemptionsListForManagementGroupNextOptionalParams +export interface VariableValuesListForManagementGroupNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listForManagementGroupNext operation. */ -export type PolicyExemptionsListForManagementGroupNextResponse = PolicyExemptionListResult; +export type VariableValuesListForManagementGroupNextResponse = + VariableValueListResult; /** Optional parameters. */ export interface PolicyClientOptionalParams diff --git a/sdk/policy/arm-policy/src/models/mappers.ts b/sdk/policy/arm-policy/src/models/mappers.ts index 118f4863c37e2..c014072d391c4 100644 --- a/sdk/policy/arm-policy/src/models/mappers.ts +++ b/sdk/policy/arm-policy/src/models/mappers.ts @@ -17,22 +17,22 @@ export const DataPolicyManifest: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, namespaces: { serializedName: "properties.namespaces", @@ -40,22 +40,22 @@ export const DataPolicyManifest: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, policyMode: { serializedName: "properties.policyMode", type: { - name: "String" - } + name: "String", + }, }, isBuiltInOnly: { serializedName: "properties.isBuiltInOnly", type: { - name: "Boolean" - } + name: "Boolean", + }, }, resourceTypeAliases: { serializedName: "properties.resourceTypeAliases", @@ -64,10 +64,10 @@ export const DataPolicyManifest: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ResourceTypeAliases" - } - } - } + className: "ResourceTypeAliases", + }, + }, + }, }, effects: { serializedName: "properties.effects", @@ -76,10 +76,10 @@ export const DataPolicyManifest: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "DataEffect" - } - } - } + className: "DataEffect", + }, + }, + }, }, fieldValues: { serializedName: "properties.fieldValues", @@ -87,10 +87,10 @@ export const DataPolicyManifest: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, standard: { serializedName: "properties.resourceFunctions.standard", @@ -98,10 +98,10 @@ export const DataPolicyManifest: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, custom: { serializedName: "properties.resourceFunctions.custom", @@ -110,13 +110,13 @@ export const DataPolicyManifest: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "DataManifestCustomResourceFunctionDefinition" - } - } - } - } - } - } + className: "DataManifestCustomResourceFunctionDefinition", + }, + }, + }, + }, + }, + }, }; export const ResourceTypeAliases: coreClient.CompositeMapper = { @@ -127,8 +127,8 @@ export const ResourceTypeAliases: coreClient.CompositeMapper = { resourceType: { serializedName: "resourceType", type: { - name: "String" - } + name: "String", + }, }, aliases: { serializedName: "aliases", @@ -137,13 +137,13 @@ export const ResourceTypeAliases: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Alias" - } - } - } - } - } - } + className: "Alias", + }, + }, + }, + }, + }, + }, }; export const Alias: coreClient.CompositeMapper = { @@ -154,8 +154,8 @@ export const Alias: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, paths: { serializedName: "paths", @@ -164,40 +164,40 @@ export const Alias: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "AliasPath" - } - } - } + className: "AliasPath", + }, + }, + }, }, type: { serializedName: "type", type: { name: "Enum", - allowedValues: ["NotSpecified", "PlainText", "Mask"] - } + allowedValues: ["NotSpecified", "PlainText", "Mask"], + }, }, defaultPath: { serializedName: "defaultPath", type: { - name: "String" - } + name: "String", + }, }, defaultPattern: { serializedName: "defaultPattern", type: { name: "Composite", - className: "AliasPattern" - } + className: "AliasPattern", + }, }, defaultMetadata: { serializedName: "defaultMetadata", type: { name: "Composite", - className: "AliasPathMetadata" - } - } - } - } + className: "AliasPathMetadata", + }, + }, + }, + }, }; export const AliasPath: coreClient.CompositeMapper = { @@ -208,8 +208,8 @@ export const AliasPath: coreClient.CompositeMapper = { path: { serializedName: "path", type: { - name: "String" - } + name: "String", + }, }, apiVersions: { serializedName: "apiVersions", @@ -217,27 +217,27 @@ export const AliasPath: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, pattern: { serializedName: "pattern", type: { name: "Composite", - className: "AliasPattern" - } + className: "AliasPattern", + }, }, metadata: { serializedName: "metadata", type: { name: "Composite", - className: "AliasPathMetadata" - } - } - } - } + className: "AliasPathMetadata", + }, + }, + }, + }, }; export const AliasPattern: coreClient.CompositeMapper = { @@ -248,24 +248,24 @@ export const AliasPattern: coreClient.CompositeMapper = { phrase: { serializedName: "phrase", type: { - name: "String" - } + name: "String", + }, }, variable: { serializedName: "variable", type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", type: { name: "Enum", - allowedValues: ["NotSpecified", "Extract"] - } - } - } - } + allowedValues: ["NotSpecified", "Extract"], + }, + }, + }, + }, }; export const AliasPathMetadata: coreClient.CompositeMapper = { @@ -277,18 +277,18 @@ export const AliasPathMetadata: coreClient.CompositeMapper = { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, attributes: { serializedName: "attributes", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const DataEffect: coreClient.CompositeMapper = { @@ -299,57 +299,58 @@ export const DataEffect: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, detailsSchema: { serializedName: "detailsSchema", type: { - name: "any" - } - } - } - } -}; - -export const DataManifestCustomResourceFunctionDefinition: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DataManifestCustomResourceFunctionDefinition", - modelProperties: { - name: { - serializedName: "name", - type: { - name: "String" - } - }, - fullyQualifiedResourceType: { - serializedName: "fullyQualifiedResourceType", - type: { - name: "String" - } + name: "any", + }, }, - defaultProperties: { - serializedName: "defaultProperties", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - allowCustomProperties: { - serializedName: "allowCustomProperties", - type: { - name: "Boolean" - } - } - } - } + }, + }, }; +export const DataManifestCustomResourceFunctionDefinition: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "DataManifestCustomResourceFunctionDefinition", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String", + }, + }, + fullyQualifiedResourceType: { + serializedName: "fullyQualifiedResourceType", + type: { + name: "String", + }, + }, + defaultProperties: { + serializedName: "defaultProperties", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + allowCustomProperties: { + serializedName: "allowCustomProperties", + type: { + name: "Boolean", + }, + }, + }, + }, + }; + export const CloudError: coreClient.CompositeMapper = { type: { name: "Composite", @@ -359,11 +360,11 @@ export const CloudError: coreClient.CompositeMapper = { serializedName: "error", type: { name: "Composite", - className: "ErrorResponse" - } - } - } - } + className: "ErrorResponse", + }, + }, + }, + }, }; export const ErrorResponse: coreClient.CompositeMapper = { @@ -375,22 +376,22 @@ export const ErrorResponse: coreClient.CompositeMapper = { serializedName: "code", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, message: { serializedName: "message", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, target: { serializedName: "target", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, details: { serializedName: "details", @@ -400,10 +401,10 @@ export const ErrorResponse: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ErrorResponse" - } - } - } + className: "ErrorResponse", + }, + }, + }, }, additionalInfo: { serializedName: "additionalInfo", @@ -413,13 +414,13 @@ export const ErrorResponse: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ErrorAdditionalInfo" - } - } - } - } - } - } + className: "ErrorAdditionalInfo", + }, + }, + }, + }, + }, + }, }; export const ErrorAdditionalInfo: coreClient.CompositeMapper = { @@ -431,18 +432,18 @@ export const ErrorAdditionalInfo: coreClient.CompositeMapper = { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, info: { serializedName: "info", readOnly: true, type: { - name: "any" - } - } - } - } + name: "any", + }, + }, + }, + }, }; export const DataPolicyManifestListResult: coreClient.CompositeMapper = { @@ -457,241 +458,198 @@ export const DataPolicyManifestListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "DataPolicyManifest" - } - } - } + className: "DataPolicyManifest", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const PolicyAssignment: coreClient.CompositeMapper = { +export const PolicyDefinition: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PolicyAssignment", + className: "PolicyDefinition", modelProperties: { id: { serializedName: "id", readOnly: true, type: { - name: "String" - } - }, - type: { - serializedName: "type", - readOnly: true, - type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } - }, - location: { - serializedName: "location", - type: { - name: "String" - } + name: "String", + }, }, - identity: { - serializedName: "identity", + type: { + serializedName: "type", + readOnly: true, type: { - name: "Composite", - className: "Identity" - } + name: "String", + }, }, systemData: { serializedName: "systemData", type: { name: "Composite", - className: "SystemData" - } + className: "SystemData", + }, + }, + policyType: { + serializedName: "properties.policyType", + type: { + name: "String", + }, + }, + mode: { + defaultValue: "Indexed", + serializedName: "properties.mode", + type: { + name: "String", + }, }, displayName: { serializedName: "properties.displayName", type: { - name: "String" - } + name: "String", + }, }, - policyDefinitionId: { - serializedName: "properties.policyDefinitionId", + description: { + serializedName: "properties.description", type: { - name: "String" - } + name: "String", + }, }, - scope: { - serializedName: "properties.scope", - readOnly: true, + policyRule: { + serializedName: "properties.policyRule", type: { - name: "String" - } + name: "any", + }, }, - notScopes: { - serializedName: "properties.notScopes", + metadata: { + serializedName: "properties.metadata", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } + name: "any", + }, }, parameters: { serializedName: "properties.parameters", type: { name: "Dictionary", value: { - type: { name: "Composite", className: "ParameterValuesValue" } - } - } - }, - description: { - serializedName: "properties.description", - type: { - name: "String" - } - }, - metadata: { - serializedName: "properties.metadata", - type: { - name: "any" - } + type: { name: "Composite", className: "ParameterDefinitionsValue" }, + }, + }, }, - enforcementMode: { - defaultValue: "Default", - serializedName: "properties.enforcementMode", + version: { + serializedName: "properties.version", type: { - name: "String" - } + name: "String", + }, }, - nonComplianceMessages: { - serializedName: "properties.nonComplianceMessages", + versions: { + serializedName: "properties.versions", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "NonComplianceMessage" - } - } - } - } - } - } -}; - -export const ParameterValuesValue: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ParameterValuesValue", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "any" - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; -export const NonComplianceMessage: coreClient.CompositeMapper = { +export const ParameterDefinitionsValue: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NonComplianceMessage", + className: "ParameterDefinitionsValue", modelProperties: { - message: { - serializedName: "message", - required: true, + type: { + serializedName: "type", type: { - name: "String" - } + name: "String", + }, }, - policyDefinitionReferenceId: { - serializedName: "policyDefinitionReferenceId", - type: { - name: "String" - } - } - } - } -}; - -export const Identity: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "Identity", - modelProperties: { - principalId: { - serializedName: "principalId", - readOnly: true, + allowedValues: { + serializedName: "allowedValues", type: { - name: "String" - } + name: "Sequence", + element: { + type: { + name: "any", + }, + }, + }, }, - tenantId: { - serializedName: "tenantId", - readOnly: true, + defaultValue: { + serializedName: "defaultValue", type: { - name: "String" - } + name: "any", + }, }, - type: { - serializedName: "type", + schema: { + serializedName: "schema", type: { - name: "Enum", - allowedValues: ["SystemAssigned", "UserAssigned", "None"] - } + name: "any", + }, }, - userAssignedIdentities: { - serializedName: "userAssignedIdentities", + metadata: { + serializedName: "metadata", type: { - name: "Dictionary", - value: { - type: { - name: "Composite", - className: "UserAssignedIdentitiesValue" - } - } - } - } - } - } + name: "Composite", + className: "ParameterDefinitionsValueMetadata", + }, + }, + }, + }, }; -export const UserAssignedIdentitiesValue: coreClient.CompositeMapper = { +export const ParameterDefinitionsValueMetadata: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UserAssignedIdentitiesValue", + className: "ParameterDefinitionsValueMetadata", + additionalProperties: { type: { name: "Object" } }, modelProperties: { - principalId: { - serializedName: "principalId", - readOnly: true, + displayName: { + serializedName: "displayName", type: { - name: "String" - } + name: "String", + }, }, - clientId: { - serializedName: "clientId", - readOnly: true, + description: { + serializedName: "description", + type: { + name: "String", + }, + }, + strongType: { + serializedName: "strongType", + type: { + name: "String", + }, + }, + assignPermissions: { + serializedName: "assignPermissions", type: { - name: "String" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const SystemData: coreClient.CompositeMapper = { @@ -702,69 +660,74 @@ export const SystemData: coreClient.CompositeMapper = { createdBy: { serializedName: "createdBy", type: { - name: "String" - } + name: "String", + }, }, createdByType: { serializedName: "createdByType", type: { - name: "String" - } + name: "String", + }, }, createdAt: { serializedName: "createdAt", type: { - name: "DateTime" - } + name: "DateTime", + }, }, lastModifiedBy: { serializedName: "lastModifiedBy", type: { - name: "String" - } + name: "String", + }, }, lastModifiedByType: { serializedName: "lastModifiedByType", type: { - name: "String" - } + name: "String", + }, }, lastModifiedAt: { serializedName: "lastModifiedAt", type: { - name: "DateTime" - } - } - } - } + name: "DateTime", + }, + }, + }, + }, }; -export const PolicyAssignmentUpdate: coreClient.CompositeMapper = { +export const PolicyDefinitionListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PolicyAssignmentUpdate", + className: "PolicyDefinitionListResult", modelProperties: { - location: { - serializedName: "location", + value: { + serializedName: "value", type: { - name: "String" - } + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PolicyDefinition", + }, + }, + }, }, - identity: { - serializedName: "identity", + nextLink: { + serializedName: "nextLink", type: { - name: "Composite", - className: "Identity" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const PolicyAssignmentListResult: coreClient.CompositeMapper = { +export const PolicyDefinitionVersionListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PolicyAssignmentListResult", + className: "PolicyDefinitionVersionListResult", modelProperties: { value: { serializedName: "value", @@ -773,202 +736,108 @@ export const PolicyAssignmentListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "PolicyAssignment" - } - } - } + className: "PolicyDefinitionVersion", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const PolicyDefinition: coreClient.CompositeMapper = { +export const PolicyDefinitionVersion: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PolicyDefinition", + className: "PolicyDefinitionVersion", modelProperties: { id: { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, systemData: { serializedName: "systemData", type: { name: "Composite", - className: "SystemData" - } + className: "SystemData", + }, }, policyType: { serializedName: "properties.policyType", type: { - name: "String" - } + name: "String", + }, }, mode: { defaultValue: "Indexed", serializedName: "properties.mode", type: { - name: "String" - } + name: "String", + }, }, displayName: { serializedName: "properties.displayName", type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "properties.description", type: { - name: "String" - } + name: "String", + }, }, policyRule: { serializedName: "properties.policyRule", type: { - name: "any" - } + name: "any", + }, }, metadata: { serializedName: "properties.metadata", type: { - name: "any" - } + name: "any", + }, }, parameters: { serializedName: "properties.parameters", type: { name: "Dictionary", value: { - type: { name: "Composite", className: "ParameterDefinitionsValue" } - } - } - } - } - } -}; - -export const ParameterDefinitionsValue: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ParameterDefinitionsValue", - modelProperties: { - type: { - serializedName: "type", - type: { - name: "String" - } - }, - allowedValues: { - serializedName: "allowedValues", - type: { - name: "Sequence", - element: { - type: { - name: "any" - } - } - } - }, - defaultValue: { - serializedName: "defaultValue", - type: { - name: "any" - } - }, - metadata: { - serializedName: "metadata", - type: { - name: "Composite", - className: "ParameterDefinitionsValueMetadata" - } - } - } - } -}; - -export const ParameterDefinitionsValueMetadata: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ParameterDefinitionsValueMetadata", - additionalProperties: { type: { name: "Object" } }, - modelProperties: { - displayName: { - serializedName: "displayName", - type: { - name: "String" - } + type: { name: "Composite", className: "ParameterDefinitionsValue" }, + }, + }, }, - description: { - serializedName: "description", - type: { - name: "String" - } - }, - strongType: { - serializedName: "strongType", - type: { - name: "String" - } - }, - assignPermissions: { - serializedName: "assignPermissions", - type: { - name: "Boolean" - } - } - } - } -}; - -export const PolicyDefinitionListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PolicyDefinitionListResult", - modelProperties: { - value: { - serializedName: "value", + version: { + serializedName: "properties.version", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PolicyDefinition" - } - } - } + name: "String", + }, }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } + }, + }, }; export const PolicySetDefinition: coreClient.CompositeMapper = { @@ -980,62 +849,62 @@ export const PolicySetDefinition: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, systemData: { serializedName: "systemData", type: { name: "Composite", - className: "SystemData" - } + className: "SystemData", + }, }, policyType: { serializedName: "properties.policyType", type: { - name: "String" - } + name: "String", + }, }, displayName: { serializedName: "properties.displayName", type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "properties.description", type: { - name: "String" - } + name: "String", + }, }, metadata: { serializedName: "properties.metadata", type: { - name: "any" - } + name: "any", + }, }, parameters: { serializedName: "properties.parameters", type: { name: "Dictionary", value: { - type: { name: "Composite", className: "ParameterDefinitionsValue" } - } - } + type: { name: "Composite", className: "ParameterDefinitionsValue" }, + }, + }, }, policyDefinitions: { serializedName: "properties.policyDefinitions", @@ -1044,10 +913,10 @@ export const PolicySetDefinition: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "PolicyDefinitionReference" - } - } - } + className: "PolicyDefinitionReference", + }, + }, + }, }, policyDefinitionGroups: { serializedName: "properties.policyDefinitionGroups", @@ -1056,41 +925,58 @@ export const PolicySetDefinition: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "PolicyDefinitionGroup" - } - } - } - } - } - } -}; - -export const PolicyDefinitionReference: coreClient.CompositeMapper = { - type: { - name: "Composite", + className: "PolicyDefinitionGroup", + }, + }, + }, + }, + version: { + serializedName: "properties.version", + type: { + name: "String", + }, + }, + versions: { + serializedName: "properties.versions", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + }, + }, +}; + +export const PolicyDefinitionReference: coreClient.CompositeMapper = { + type: { + name: "Composite", className: "PolicyDefinitionReference", modelProperties: { policyDefinitionId: { serializedName: "policyDefinitionId", required: true, type: { - name: "String" - } + name: "String", + }, }, parameters: { serializedName: "parameters", type: { name: "Dictionary", value: { - type: { name: "Composite", className: "ParameterValuesValue" } - } - } + type: { name: "Composite", className: "ParameterValuesValue" }, + }, + }, }, policyDefinitionReferenceId: { serializedName: "policyDefinitionReferenceId", type: { - name: "String" - } + name: "String", + }, }, groupNames: { serializedName: "groupNames", @@ -1098,13 +984,28 @@ export const PolicyDefinitionReference: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, +}; + +export const ParameterValuesValue: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ParameterValuesValue", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "any", + }, + }, + }, + }, }; export const PolicyDefinitionGroup: coreClient.CompositeMapper = { @@ -1116,35 +1017,35 @@ export const PolicyDefinitionGroup: coreClient.CompositeMapper = { serializedName: "name", required: true, type: { - name: "String" - } + name: "String", + }, }, displayName: { serializedName: "displayName", type: { - name: "String" - } + name: "String", + }, }, category: { serializedName: "category", type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "description", type: { - name: "String" - } + name: "String", + }, }, additionalMetadataId: { serializedName: "additionalMetadataId", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PolicySetDefinitionListResult: coreClient.CompositeMapper = { @@ -1159,19 +1060,548 @@ export const PolicySetDefinitionListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "PolicySetDefinition" - } - } - } + className: "PolicySetDefinition", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, +}; + +export const PolicySetDefinitionVersionListResult: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "PolicySetDefinitionVersionListResult", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PolicySetDefinitionVersion", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const PolicySetDefinitionVersion: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PolicySetDefinitionVersion", + modelProperties: { + id: { + serializedName: "id", + readOnly: true, + type: { + name: "String", + }, + }, + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String", + }, + }, + type: { + serializedName: "type", + readOnly: true, + type: { + name: "String", + }, + }, + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData", + }, + }, + policyType: { + serializedName: "properties.policyType", + type: { + name: "String", + }, + }, + displayName: { + serializedName: "properties.displayName", + type: { + name: "String", + }, + }, + description: { + serializedName: "properties.description", + type: { + name: "String", + }, + }, + metadata: { + serializedName: "properties.metadata", + type: { + name: "any", + }, + }, + parameters: { + serializedName: "properties.parameters", + type: { + name: "Dictionary", + value: { + type: { name: "Composite", className: "ParameterDefinitionsValue" }, + }, + }, + }, + policyDefinitions: { + serializedName: "properties.policyDefinitions", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PolicyDefinitionReference", + }, + }, + }, + }, + policyDefinitionGroups: { + serializedName: "properties.policyDefinitionGroups", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PolicyDefinitionGroup", + }, + }, + }, + }, + version: { + serializedName: "properties.version", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const PolicyAssignment: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PolicyAssignment", + modelProperties: { + id: { + serializedName: "id", + readOnly: true, + type: { + name: "String", + }, + }, + type: { + serializedName: "type", + readOnly: true, + type: { + name: "String", + }, + }, + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String", + }, + }, + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "Identity", + }, + }, + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData", + }, + }, + displayName: { + serializedName: "properties.displayName", + type: { + name: "String", + }, + }, + policyDefinitionId: { + serializedName: "properties.policyDefinitionId", + type: { + name: "String", + }, + }, + scope: { + serializedName: "properties.scope", + readOnly: true, + type: { + name: "String", + }, + }, + notScopes: { + serializedName: "properties.notScopes", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + parameters: { + serializedName: "properties.parameters", + type: { + name: "Dictionary", + value: { + type: { name: "Composite", className: "ParameterValuesValue" }, + }, + }, + }, + description: { + serializedName: "properties.description", + type: { + name: "String", + }, + }, + metadata: { + serializedName: "properties.metadata", + type: { + name: "any", + }, + }, + enforcementMode: { + defaultValue: "Default", + serializedName: "properties.enforcementMode", + type: { + name: "String", + }, + }, + nonComplianceMessages: { + serializedName: "properties.nonComplianceMessages", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NonComplianceMessage", + }, + }, + }, + }, + resourceSelectors: { + serializedName: "properties.resourceSelectors", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ResourceSelector", + }, + }, + }, + }, + overrides: { + serializedName: "properties.overrides", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Override", + }, + }, + }, + }, + }, + }, +}; + +export const NonComplianceMessage: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NonComplianceMessage", + modelProperties: { + message: { + serializedName: "message", + required: true, + type: { + name: "String", + }, + }, + policyDefinitionReferenceId: { + serializedName: "policyDefinitionReferenceId", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const ResourceSelector: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ResourceSelector", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String", + }, + }, + selectors: { + serializedName: "selectors", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Selector", + }, + }, + }, + }, + }, + }, +}; + +export const Selector: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Selector", + modelProperties: { + kind: { + serializedName: "kind", + type: { + name: "String", + }, + }, + in: { + serializedName: "in", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + notIn: { + serializedName: "notIn", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + }, + }, +}; + +export const Override: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Override", + modelProperties: { + kind: { + serializedName: "kind", + type: { + name: "String", + }, + }, + value: { + serializedName: "value", + type: { + name: "String", + }, + }, + selectors: { + serializedName: "selectors", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Selector", + }, + }, + }, + }, + }, + }, +}; + +export const Identity: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Identity", + modelProperties: { + principalId: { + serializedName: "principalId", + readOnly: true, + type: { + name: "String", + }, + }, + tenantId: { + serializedName: "tenantId", + readOnly: true, + type: { + name: "String", + }, + }, + type: { + serializedName: "type", + type: { + name: "Enum", + allowedValues: ["SystemAssigned", "UserAssigned", "None"], + }, + }, + userAssignedIdentities: { + serializedName: "userAssignedIdentities", + type: { + name: "Dictionary", + value: { + type: { + name: "Composite", + className: "UserAssignedIdentitiesValue", + }, + }, + }, + }, + }, + }, +}; + +export const UserAssignedIdentitiesValue: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "UserAssignedIdentitiesValue", + modelProperties: { + principalId: { + serializedName: "principalId", + readOnly: true, + type: { + name: "String", + }, + }, + clientId: { + serializedName: "clientId", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, +}; + +export const PolicyAssignmentUpdate: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PolicyAssignmentUpdate", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "Identity", + }, + }, + resourceSelectors: { + serializedName: "properties.resourceSelectors", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ResourceSelector", + }, + }, + }, + }, + overrides: { + serializedName: "properties.overrides", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Override", + }, + }, + }, + }, + }, + }, +}; + +export const PolicyAssignmentListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PolicyAssignmentListResult", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PolicyAssignment", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String", + }, + }, + }, + }, }; export const PolicyExemption: coreClient.CompositeMapper = { @@ -1183,36 +1613,36 @@ export const PolicyExemption: coreClient.CompositeMapper = { serializedName: "systemData", type: { name: "Composite", - className: "SystemData" - } + className: "SystemData", + }, }, id: { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, policyAssignmentId: { serializedName: "properties.policyAssignmentId", required: true, type: { - name: "String" - } + name: "String", + }, }, policyDefinitionReferenceIds: { serializedName: "properties.policyDefinitionReferenceIds", @@ -1220,44 +1650,89 @@ export const PolicyExemption: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, exemptionCategory: { serializedName: "properties.exemptionCategory", required: true, type: { - name: "String" - } + name: "String", + }, }, expiresOn: { serializedName: "properties.expiresOn", type: { - name: "DateTime" - } + name: "DateTime", + }, }, displayName: { serializedName: "properties.displayName", type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "properties.description", type: { - name: "String" - } + name: "String", + }, }, metadata: { serializedName: "properties.metadata", type: { - name: "any" - } - } - } - } + name: "any", + }, + }, + resourceSelectors: { + serializedName: "properties.resourceSelectors", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ResourceSelector", + }, + }, + }, + }, + assignmentScopeValidation: { + serializedName: "properties.assignmentScopeValidation", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const PolicyExemptionUpdate: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PolicyExemptionUpdate", + modelProperties: { + resourceSelectors: { + serializedName: "properties.resourceSelectors", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ResourceSelector", + }, + }, + }, + }, + assignmentScopeValidation: { + serializedName: "properties.assignmentScopeValidation", + type: { + name: "String", + }, + }, + }, + }, }; export const PolicyExemptionListResult: coreClient.CompositeMapper = { @@ -1272,18 +1747,213 @@ export const PolicyExemptionListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "PolicyExemption" - } - } - } + className: "PolicyExemption", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, +}; + +export const Variable: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Variable", + modelProperties: { + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData", + }, + }, + id: { + serializedName: "id", + readOnly: true, + type: { + name: "String", + }, + }, + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String", + }, + }, + type: { + serializedName: "type", + readOnly: true, + type: { + name: "String", + }, + }, + columns: { + serializedName: "properties.columns", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PolicyVariableColumn", + }, + }, + }, + }, + }, + }, +}; + +export const PolicyVariableColumn: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PolicyVariableColumn", + modelProperties: { + columnName: { + serializedName: "columnName", + required: true, + type: { + name: "String", + }, + }, + }, + }, +}; + +export const VariableListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VariableListResult", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Variable", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, +}; + +export const VariableValue: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VariableValue", + modelProperties: { + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData", + }, + }, + id: { + serializedName: "id", + readOnly: true, + type: { + name: "String", + }, + }, + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String", + }, + }, + type: { + serializedName: "type", + readOnly: true, + type: { + name: "String", + }, + }, + values: { + serializedName: "properties.values", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PolicyVariableValueColumnValue", + }, + }, + }, + }, + }, + }, +}; + +export const PolicyVariableValueColumnValue: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PolicyVariableValueColumnValue", + modelProperties: { + columnName: { + serializedName: "columnName", + required: true, + type: { + name: "String", + }, + }, + columnValue: { + serializedName: "columnValue", + required: true, + type: { + name: "any", + }, + }, + }, + }, +}; + +export const VariableValueListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VariableValueListResult", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VariableValue", + }, + }, + }, }, nextLink: { serializedName: "nextLink", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; diff --git a/sdk/policy/arm-policy/src/models/parameters.ts b/sdk/policy/arm-policy/src/models/parameters.ts index 89eaa4fbd9a6f..9af1a2a191e42 100644 --- a/sdk/policy/arm-policy/src/models/parameters.ts +++ b/sdk/policy/arm-policy/src/models/parameters.ts @@ -9,14 +9,19 @@ import { OperationParameter, OperationURLParameter, - OperationQueryParameter + OperationQueryParameter, } from "@azure/core-client"; import { - PolicyAssignment as PolicyAssignmentMapper, - PolicyAssignmentUpdate as PolicyAssignmentUpdateMapper, PolicyDefinition as PolicyDefinitionMapper, + PolicyDefinitionVersion as PolicyDefinitionVersionMapper, PolicySetDefinition as PolicySetDefinitionMapper, - PolicyExemption as PolicyExemptionMapper + PolicySetDefinitionVersion as PolicySetDefinitionVersionMapper, + PolicyAssignment as PolicyAssignmentMapper, + PolicyAssignmentUpdate as PolicyAssignmentUpdateMapper, + PolicyExemption as PolicyExemptionMapper, + PolicyExemptionUpdate as PolicyExemptionUpdateMapper, + Variable as VariableMapper, + VariableValue as VariableValueMapper, } from "../models/mappers"; export const accept: OperationParameter = { @@ -26,9 +31,9 @@ export const accept: OperationParameter = { isConstant: true, serializedName: "Accept", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const $host: OperationURLParameter = { @@ -37,10 +42,10 @@ export const $host: OperationURLParameter = { serializedName: "$host", required: true, type: { - name: "String" - } + name: "String", + }, }, - skipEncoding: true + skipEncoding: true, }; export const policyMode: OperationURLParameter = { @@ -49,9 +54,9 @@ export const policyMode: OperationURLParameter = { serializedName: "policyMode", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const apiVersion: OperationQueryParameter = { @@ -61,9 +66,9 @@ export const apiVersion: OperationQueryParameter = { isConstant: true, serializedName: "api-version", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const filter: OperationQueryParameter = { @@ -71,10 +76,10 @@ export const filter: OperationQueryParameter = { mapper: { serializedName: "$filter", type: { - name: "String" - } + name: "String", + }, }, - skipEncoding: true + skipEncoding: true, }; export const nextLink: OperationURLParameter = { @@ -83,108 +88,227 @@ export const nextLink: OperationURLParameter = { serializedName: "nextLink", required: true, type: { - name: "String" - } + name: "String", + }, }, - skipEncoding: true + skipEncoding: true, }; -export const scope: OperationURLParameter = { - parameterPath: "scope", +export const contentType: OperationParameter = { + parameterPath: ["options", "contentType"], mapper: { - serializedName: "scope", + defaultValue: "application/json", + isConstant: true, + serializedName: "Content-Type", + type: { + name: "String", + }, + }, +}; + +export const parameters: OperationParameter = { + parameterPath: "parameters", + mapper: PolicyDefinitionMapper, +}; + +export const subscriptionId: OperationURLParameter = { + parameterPath: "subscriptionId", + mapper: { + serializedName: "subscriptionId", required: true, type: { - name: "String" - } + name: "Uuid", + }, }, - skipEncoding: true }; -export const policyAssignmentName: OperationURLParameter = { - parameterPath: "policyAssignmentName", +export const policyDefinitionName: OperationURLParameter = { + parameterPath: "policyDefinitionName", mapper: { - serializedName: "policyAssignmentName", + constraints: { + Pattern: new RegExp("^[^<>*%&:\\?.+/]*[^<>*%&:\\?.+/ ]+$"), + }, + serializedName: "policyDefinitionName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const apiVersion1: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2021-06-01", + defaultValue: "2023-04-01", isConstant: true, serializedName: "api-version", type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const contentType: OperationParameter = { - parameterPath: ["options", "contentType"], +export const managementGroupId: OperationURLParameter = { + parameterPath: "managementGroupId", mapper: { - defaultValue: "application/json", - isConstant: true, - serializedName: "Content-Type", + serializedName: "managementGroupId", + required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters: OperationParameter = { - parameterPath: "parameters", - mapper: PolicyAssignmentMapper +export const top: OperationQueryParameter = { + parameterPath: ["options", "top"], + mapper: { + constraints: { + InclusiveMaximum: 1000, + InclusiveMinimum: 1, + }, + serializedName: "$top", + type: { + name: "Number", + }, + }, +}; + +export const managementGroupName: OperationURLParameter = { + parameterPath: "managementGroupName", + mapper: { + constraints: { + MaxLength: 90, + MinLength: 1, + }, + serializedName: "managementGroupName", + required: true, + type: { + name: "String", + }, + }, }; export const parameters1: OperationParameter = { parameterPath: "parameters", - mapper: PolicyAssignmentUpdateMapper + mapper: PolicyDefinitionVersionMapper, }; -export const resourceGroupName: OperationURLParameter = { - parameterPath: "resourceGroupName", +export const policyDefinitionName1: OperationURLParameter = { + parameterPath: "policyDefinitionName", mapper: { constraints: { - Pattern: new RegExp("^[-\\w\\._\\(\\)]+$"), - MaxLength: 90, - MinLength: 1 + Pattern: new RegExp("^[^<>*%&:\\?.+/]*[^<>*%&:\\?.+/ ]+$"), }, - serializedName: "resourceGroupName", + serializedName: "policyDefinitionName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const top: OperationQueryParameter = { - parameterPath: ["options", "top"], +export const policyDefinitionVersion: OperationURLParameter = { + parameterPath: "policyDefinitionVersion", mapper: { constraints: { - InclusiveMaximum: 1000, - InclusiveMinimum: 1 + Pattern: new RegExp("^\\d+\\.\\d+\\.\\d+$"), }, - serializedName: "$top", + serializedName: "policyDefinitionVersion", + required: true, type: { - name: "Number" - } - } + name: "String", + }, + }, }; -export const subscriptionId: OperationURLParameter = { - parameterPath: "subscriptionId", +export const parameters2: OperationParameter = { + parameterPath: "parameters", + mapper: PolicySetDefinitionMapper, +}; + +export const policySetDefinitionName: OperationURLParameter = { + parameterPath: "policySetDefinitionName", mapper: { - serializedName: "subscriptionId", + constraints: { + Pattern: new RegExp("^[^<>*%&:\\?.+/]*[^<>*%&:\\?.+/ ]+$"), + }, + serializedName: "policySetDefinitionName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, +}; + +export const parameters3: OperationParameter = { + parameterPath: "parameters", + mapper: PolicySetDefinitionVersionMapper, +}; + +export const policySetDefinitionName1: OperationURLParameter = { + parameterPath: "policySetDefinitionName", + mapper: { + constraints: { + Pattern: new RegExp("^[^<>*%&:\\?.+/]*[^<>*%&:\\?.+/ ]+$"), + }, + serializedName: "policySetDefinitionName", + required: true, + type: { + name: "String", + }, + }, +}; + +export const scope: OperationURLParameter = { + parameterPath: "scope", + mapper: { + serializedName: "scope", + required: true, + type: { + name: "String", + }, + }, + skipEncoding: true, +}; + +export const policyAssignmentName: OperationURLParameter = { + parameterPath: "policyAssignmentName", + mapper: { + constraints: { + Pattern: new RegExp("^[^<>*%&:\\?.+/]*[^<>*%&:\\?.+/ ]+$"), + }, + serializedName: "policyAssignmentName", + required: true, + type: { + name: "String", + }, + }, +}; + +export const parameters4: OperationParameter = { + parameterPath: "parameters", + mapper: PolicyAssignmentMapper, +}; + +export const parameters5: OperationParameter = { + parameterPath: "parameters", + mapper: PolicyAssignmentUpdateMapper, +}; + +export const resourceGroupName: OperationURLParameter = { + parameterPath: "resourceGroupName", + mapper: { + constraints: { + Pattern: new RegExp("^[-\\w\\._\\(\\)]+$"), + MaxLength: 90, + MinLength: 1, + }, + serializedName: "resourceGroupName", + required: true, + type: { + name: "String", + }, + }, }; export const resourceProviderNamespace: OperationURLParameter = { @@ -193,9 +317,9 @@ export const resourceProviderNamespace: OperationURLParameter = { serializedName: "resourceProviderNamespace", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parentResourcePath: OperationURLParameter = { @@ -204,10 +328,10 @@ export const parentResourcePath: OperationURLParameter = { serializedName: "parentResourcePath", required: true, type: { - name: "String" - } + name: "String", + }, }, - skipEncoding: true + skipEncoding: true, }; export const resourceType: OperationURLParameter = { @@ -216,32 +340,24 @@ export const resourceType: OperationURLParameter = { serializedName: "resourceType", required: true, type: { - name: "String" - } + name: "String", + }, }, - skipEncoding: true + skipEncoding: true, }; export const resourceName: OperationURLParameter = { parameterPath: "resourceName", mapper: { + constraints: { + Pattern: new RegExp("^.+$"), + }, serializedName: "resourceName", required: true, type: { - name: "String" - } - } -}; - -export const managementGroupId: OperationURLParameter = { - parameterPath: "managementGroupId", - mapper: { - serializedName: "managementGroupId", - required: true, - type: { - name: "String" - } - } + name: "String", + }, + }, }; export const policyAssignmentId: OperationURLParameter = { @@ -250,68 +366,96 @@ export const policyAssignmentId: OperationURLParameter = { serializedName: "policyAssignmentId", required: true, type: { - name: "String" - } + name: "String", + }, }, - skipEncoding: true + skipEncoding: true, }; -export const parameters2: OperationParameter = { - parameterPath: "parameters", - mapper: PolicyDefinitionMapper +export const policyExemptionName: OperationURLParameter = { + parameterPath: "policyExemptionName", + mapper: { + serializedName: "policyExemptionName", + required: true, + type: { + name: "String", + }, + }, }; -export const policyDefinitionName: OperationURLParameter = { - parameterPath: "policyDefinitionName", +export const apiVersion2: OperationQueryParameter = { + parameterPath: "apiVersion", mapper: { - serializedName: "policyDefinitionName", - required: true, + defaultValue: "2022-07-01-preview", + isConstant: true, + serializedName: "api-version", type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters3: OperationParameter = { +export const parameters6: OperationParameter = { parameterPath: "parameters", - mapper: PolicySetDefinitionMapper + mapper: PolicyExemptionMapper, }; -export const policySetDefinitionName: OperationURLParameter = { - parameterPath: "policySetDefinitionName", +export const parameters7: OperationParameter = { + parameterPath: "parameters", + mapper: PolicyExemptionUpdateMapper, +}; + +export const resourceName1: OperationURLParameter = { + parameterPath: "resourceName", mapper: { - serializedName: "policySetDefinitionName", + serializedName: "resourceName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const policyExemptionName: OperationURLParameter = { - parameterPath: "policyExemptionName", +export const variableName: OperationURLParameter = { + parameterPath: "variableName", mapper: { - serializedName: "policyExemptionName", + serializedName: "variableName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const apiVersion2: OperationQueryParameter = { +export const apiVersion3: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2020-07-01-preview", + defaultValue: "2022-08-01-preview", isConstant: true, serializedName: "api-version", type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters4: OperationParameter = { +export const parameters8: OperationParameter = { + parameterPath: "parameters", + mapper: VariableMapper, +}; + +export const variableValueName: OperationURLParameter = { + parameterPath: "variableValueName", + mapper: { + serializedName: "variableValueName", + required: true, + type: { + name: "String", + }, + }, +}; + +export const parameters9: OperationParameter = { parameterPath: "parameters", - mapper: PolicyExemptionMapper + mapper: VariableValueMapper, }; diff --git a/sdk/policy/arm-policy/src/operations/dataPolicyManifests.ts b/sdk/policy/arm-policy/src/operations/dataPolicyManifests.ts index 9f4abd98aba30..a833a2a1b6d8f 100644 --- a/sdk/policy/arm-policy/src/operations/dataPolicyManifests.ts +++ b/sdk/policy/arm-policy/src/operations/dataPolicyManifests.ts @@ -20,7 +20,7 @@ import { DataPolicyManifestsListResponse, DataPolicyManifestsGetByPolicyModeOptionalParams, DataPolicyManifestsGetByPolicyModeResponse, - DataPolicyManifestsListNextResponse + DataPolicyManifestsListNextResponse, } from "../models"; /// @@ -45,7 +45,7 @@ export class DataPolicyManifestsImpl implements DataPolicyManifests { * @param options The options parameters. */ public list( - options?: DataPolicyManifestsListOptionalParams + options?: DataPolicyManifestsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(options); return { @@ -60,13 +60,13 @@ export class DataPolicyManifestsImpl implements DataPolicyManifests { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(options, settings); - } + }, }; } private async *listPagingPage( options?: DataPolicyManifestsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: DataPolicyManifestsListResponse; let continuationToken = settings?.continuationToken; @@ -87,7 +87,7 @@ export class DataPolicyManifestsImpl implements DataPolicyManifests { } private async *listPagingAll( - options?: DataPolicyManifestsListOptionalParams + options?: DataPolicyManifestsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(options)) { yield* page; @@ -101,11 +101,11 @@ export class DataPolicyManifestsImpl implements DataPolicyManifests { */ getByPolicyMode( policyMode: string, - options?: DataPolicyManifestsGetByPolicyModeOptionalParams + options?: DataPolicyManifestsGetByPolicyModeOptionalParams, ): Promise { return this.client.sendOperationRequest( { policyMode, options }, - getByPolicyModeOperationSpec + getByPolicyModeOperationSpec, ); } @@ -118,7 +118,7 @@ export class DataPolicyManifestsImpl implements DataPolicyManifests { * @param options The options parameters. */ private _list( - options?: DataPolicyManifestsListOptionalParams + options?: DataPolicyManifestsListOptionalParams, ): Promise { return this.client.sendOperationRequest({ options }, listOperationSpec); } @@ -130,11 +130,11 @@ export class DataPolicyManifestsImpl implements DataPolicyManifests { */ private _listNext( nextLink: string, - options?: DataPolicyManifestsListNextOptionalParams + options?: DataPolicyManifestsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -146,45 +146,45 @@ const getByPolicyModeOperationSpec: coreClient.OperationSpec = { httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DataPolicyManifest + bodyMapper: Mappers.DataPolicyManifest, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.policyMode], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { path: "/providers/Microsoft.Authorization/dataPolicyManifests", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DataPolicyManifestListResult + bodyMapper: Mappers.DataPolicyManifestListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion, Parameters.filter], urlParameters: [Parameters.$host], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DataPolicyManifestListResult + bodyMapper: Mappers.DataPolicyManifestListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [Parameters.$host, Parameters.nextLink], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/policy/arm-policy/src/operations/index.ts b/sdk/policy/arm-policy/src/operations/index.ts index eff8c4c2a63aa..7df2dc295a87c 100644 --- a/sdk/policy/arm-policy/src/operations/index.ts +++ b/sdk/policy/arm-policy/src/operations/index.ts @@ -7,7 +7,11 @@ */ export * from "./dataPolicyManifests"; -export * from "./policyAssignments"; export * from "./policyDefinitions"; +export * from "./policyDefinitionVersions"; export * from "./policySetDefinitions"; +export * from "./policySetDefinitionVersions"; +export * from "./policyAssignments"; export * from "./policyExemptions"; +export * from "./variables"; +export * from "./variableValues"; diff --git a/sdk/policy/arm-policy/src/operations/policyAssignments.ts b/sdk/policy/arm-policy/src/operations/policyAssignments.ts index 7711d4d9b20b7..3b2c310fe728e 100644 --- a/sdk/policy/arm-policy/src/operations/policyAssignments.ts +++ b/sdk/policy/arm-policy/src/operations/policyAssignments.ts @@ -47,7 +47,7 @@ import { PolicyAssignmentsListForResourceGroupNextResponse, PolicyAssignmentsListForResourceNextResponse, PolicyAssignmentsListForManagementGroupNextResponse, - PolicyAssignmentsListNextResponse + PolicyAssignmentsListNextResponse, } from "../models"; /// @@ -80,7 +80,7 @@ export class PolicyAssignmentsImpl implements PolicyAssignments { */ public listForResourceGroup( resourceGroupName: string, - options?: PolicyAssignmentsListForResourceGroupOptionalParams + options?: PolicyAssignmentsListForResourceGroupOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listForResourceGroupPagingAll(resourceGroupName, options); return { @@ -97,16 +97,16 @@ export class PolicyAssignmentsImpl implements PolicyAssignments { return this.listForResourceGroupPagingPage( resourceGroupName, options, - settings + settings, ); - } + }, }; } private async *listForResourceGroupPagingPage( resourceGroupName: string, options?: PolicyAssignmentsListForResourceGroupOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: PolicyAssignmentsListForResourceGroupResponse; let continuationToken = settings?.continuationToken; @@ -121,7 +121,7 @@ export class PolicyAssignmentsImpl implements PolicyAssignments { result = await this._listForResourceGroupNext( resourceGroupName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -132,11 +132,11 @@ export class PolicyAssignmentsImpl implements PolicyAssignments { private async *listForResourceGroupPagingAll( resourceGroupName: string, - options?: PolicyAssignmentsListForResourceGroupOptionalParams + options?: PolicyAssignmentsListForResourceGroupOptionalParams, ): AsyncIterableIterator { for await (const page of this.listForResourceGroupPagingPage( resourceGroupName, - options + options, )) { yield* page; } @@ -180,7 +180,7 @@ export class PolicyAssignmentsImpl implements PolicyAssignments { parentResourcePath: string, resourceType: string, resourceName: string, - options?: PolicyAssignmentsListForResourceOptionalParams + options?: PolicyAssignmentsListForResourceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listForResourcePagingAll( resourceGroupName, @@ -188,7 +188,7 @@ export class PolicyAssignmentsImpl implements PolicyAssignments { parentResourcePath, resourceType, resourceName, - options + options, ); return { next() { @@ -208,9 +208,9 @@ export class PolicyAssignmentsImpl implements PolicyAssignments { resourceType, resourceName, options, - settings + settings, ); - } + }, }; } @@ -221,7 +221,7 @@ export class PolicyAssignmentsImpl implements PolicyAssignments { resourceType: string, resourceName: string, options?: PolicyAssignmentsListForResourceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: PolicyAssignmentsListForResourceResponse; let continuationToken = settings?.continuationToken; @@ -232,7 +232,7 @@ export class PolicyAssignmentsImpl implements PolicyAssignments { parentResourcePath, resourceType, resourceName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -247,7 +247,7 @@ export class PolicyAssignmentsImpl implements PolicyAssignments { resourceType, resourceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -262,7 +262,7 @@ export class PolicyAssignmentsImpl implements PolicyAssignments { parentResourcePath: string, resourceType: string, resourceName: string, - options?: PolicyAssignmentsListForResourceOptionalParams + options?: PolicyAssignmentsListForResourceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listForResourcePagingPage( resourceGroupName, @@ -270,7 +270,7 @@ export class PolicyAssignmentsImpl implements PolicyAssignments { parentResourcePath, resourceType, resourceName, - options + options, )) { yield* page; } @@ -290,11 +290,11 @@ export class PolicyAssignmentsImpl implements PolicyAssignments { */ public listForManagementGroup( managementGroupId: string, - options?: PolicyAssignmentsListForManagementGroupOptionalParams + options?: PolicyAssignmentsListForManagementGroupOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listForManagementGroupPagingAll( managementGroupId, - options + options, ); return { next() { @@ -310,16 +310,16 @@ export class PolicyAssignmentsImpl implements PolicyAssignments { return this.listForManagementGroupPagingPage( managementGroupId, options, - settings + settings, ); - } + }, }; } private async *listForManagementGroupPagingPage( managementGroupId: string, options?: PolicyAssignmentsListForManagementGroupOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: PolicyAssignmentsListForManagementGroupResponse; let continuationToken = settings?.continuationToken; @@ -334,7 +334,7 @@ export class PolicyAssignmentsImpl implements PolicyAssignments { result = await this._listForManagementGroupNext( managementGroupId, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -345,11 +345,11 @@ export class PolicyAssignmentsImpl implements PolicyAssignments { private async *listForManagementGroupPagingAll( managementGroupId: string, - options?: PolicyAssignmentsListForManagementGroupOptionalParams + options?: PolicyAssignmentsListForManagementGroupOptionalParams, ): AsyncIterableIterator { for await (const page of this.listForManagementGroupPagingPage( managementGroupId, - options + options, )) { yield* page; } @@ -370,7 +370,7 @@ export class PolicyAssignmentsImpl implements PolicyAssignments { * @param options The options parameters. */ public list( - options?: PolicyAssignmentsListOptionalParams + options?: PolicyAssignmentsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(options); return { @@ -385,13 +385,13 @@ export class PolicyAssignmentsImpl implements PolicyAssignments { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(options, settings); - } + }, }; } private async *listPagingPage( options?: PolicyAssignmentsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: PolicyAssignmentsListResponse; let continuationToken = settings?.continuationToken; @@ -412,7 +412,7 @@ export class PolicyAssignmentsImpl implements PolicyAssignments { } private async *listPagingAll( - options?: PolicyAssignmentsListOptionalParams + options?: PolicyAssignmentsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(options)) { yield* page; @@ -434,11 +434,11 @@ export class PolicyAssignmentsImpl implements PolicyAssignments { delete( scope: string, policyAssignmentName: string, - options?: PolicyAssignmentsDeleteOptionalParams + options?: PolicyAssignmentsDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { scope, policyAssignmentName, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -459,11 +459,11 @@ export class PolicyAssignmentsImpl implements PolicyAssignments { scope: string, policyAssignmentName: string, parameters: PolicyAssignment, - options?: PolicyAssignmentsCreateOptionalParams + options?: PolicyAssignmentsCreateOptionalParams, ): Promise { return this.client.sendOperationRequest( { scope, policyAssignmentName, parameters, options }, - createOperationSpec + createOperationSpec, ); } @@ -480,11 +480,11 @@ export class PolicyAssignmentsImpl implements PolicyAssignments { get( scope: string, policyAssignmentName: string, - options?: PolicyAssignmentsGetOptionalParams + options?: PolicyAssignmentsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { scope, policyAssignmentName, options }, - getOperationSpec + getOperationSpec, ); } @@ -505,11 +505,11 @@ export class PolicyAssignmentsImpl implements PolicyAssignments { scope: string, policyAssignmentName: string, parameters: PolicyAssignmentUpdate, - options?: PolicyAssignmentsUpdateOptionalParams + options?: PolicyAssignmentsUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { scope, policyAssignmentName, parameters, options }, - updateOperationSpec + updateOperationSpec, ); } @@ -530,11 +530,11 @@ export class PolicyAssignmentsImpl implements PolicyAssignments { */ private _listForResourceGroup( resourceGroupName: string, - options?: PolicyAssignmentsListForResourceGroupOptionalParams + options?: PolicyAssignmentsListForResourceGroupOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, - listForResourceGroupOperationSpec + listForResourceGroupOperationSpec, ); } @@ -576,7 +576,7 @@ export class PolicyAssignmentsImpl implements PolicyAssignments { parentResourcePath: string, resourceType: string, resourceName: string, - options?: PolicyAssignmentsListForResourceOptionalParams + options?: PolicyAssignmentsListForResourceOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -585,9 +585,9 @@ export class PolicyAssignmentsImpl implements PolicyAssignments { parentResourcePath, resourceType, resourceName, - options + options, }, - listForResourceOperationSpec + listForResourceOperationSpec, ); } @@ -605,11 +605,11 @@ export class PolicyAssignmentsImpl implements PolicyAssignments { */ private _listForManagementGroup( managementGroupId: string, - options?: PolicyAssignmentsListForManagementGroupOptionalParams + options?: PolicyAssignmentsListForManagementGroupOptionalParams, ): Promise { return this.client.sendOperationRequest( { managementGroupId, options }, - listForManagementGroupOperationSpec + listForManagementGroupOperationSpec, ); } @@ -628,7 +628,7 @@ export class PolicyAssignmentsImpl implements PolicyAssignments { * @param options The options parameters. */ private _list( - options?: PolicyAssignmentsListOptionalParams + options?: PolicyAssignmentsListOptionalParams, ): Promise { return this.client.sendOperationRequest({ options }, listOperationSpec); } @@ -647,11 +647,11 @@ export class PolicyAssignmentsImpl implements PolicyAssignments { */ deleteById( policyAssignmentId: string, - options?: PolicyAssignmentsDeleteByIdOptionalParams + options?: PolicyAssignmentsDeleteByIdOptionalParams, ): Promise { return this.client.sendOperationRequest( { policyAssignmentId, options }, - deleteByIdOperationSpec + deleteByIdOperationSpec, ); } @@ -673,11 +673,11 @@ export class PolicyAssignmentsImpl implements PolicyAssignments { createById( policyAssignmentId: string, parameters: PolicyAssignment, - options?: PolicyAssignmentsCreateByIdOptionalParams + options?: PolicyAssignmentsCreateByIdOptionalParams, ): Promise { return this.client.sendOperationRequest( { policyAssignmentId, parameters, options }, - createByIdOperationSpec + createByIdOperationSpec, ); } @@ -695,11 +695,11 @@ export class PolicyAssignmentsImpl implements PolicyAssignments { */ getById( policyAssignmentId: string, - options?: PolicyAssignmentsGetByIdOptionalParams + options?: PolicyAssignmentsGetByIdOptionalParams, ): Promise { return this.client.sendOperationRequest( { policyAssignmentId, options }, - getByIdOperationSpec + getByIdOperationSpec, ); } @@ -721,11 +721,11 @@ export class PolicyAssignmentsImpl implements PolicyAssignments { updateById( policyAssignmentId: string, parameters: PolicyAssignmentUpdate, - options?: PolicyAssignmentsUpdateByIdOptionalParams + options?: PolicyAssignmentsUpdateByIdOptionalParams, ): Promise { return this.client.sendOperationRequest( { policyAssignmentId, parameters, options }, - updateByIdOperationSpec + updateByIdOperationSpec, ); } @@ -738,11 +738,11 @@ export class PolicyAssignmentsImpl implements PolicyAssignments { private _listForResourceGroupNext( resourceGroupName: string, nextLink: string, - options?: PolicyAssignmentsListForResourceGroupNextOptionalParams + options?: PolicyAssignmentsListForResourceGroupNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, nextLink, options }, - listForResourceGroupNextOperationSpec + listForResourceGroupNextOperationSpec, ); } @@ -765,7 +765,7 @@ export class PolicyAssignmentsImpl implements PolicyAssignments { resourceType: string, resourceName: string, nextLink: string, - options?: PolicyAssignmentsListForResourceNextOptionalParams + options?: PolicyAssignmentsListForResourceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -775,9 +775,9 @@ export class PolicyAssignmentsImpl implements PolicyAssignments { resourceType, resourceName, nextLink, - options + options, }, - listForResourceNextOperationSpec + listForResourceNextOperationSpec, ); } @@ -790,11 +790,11 @@ export class PolicyAssignmentsImpl implements PolicyAssignments { private _listForManagementGroupNext( managementGroupId: string, nextLink: string, - options?: PolicyAssignmentsListForManagementGroupNextOptionalParams + options?: PolicyAssignmentsListForManagementGroupNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { managementGroupId, nextLink, options }, - listForManagementGroupNextOperationSpec + listForManagementGroupNextOperationSpec, ); } @@ -805,11 +805,11 @@ export class PolicyAssignmentsImpl implements PolicyAssignments { */ private _listNext( nextLink: string, - options?: PolicyAssignmentsListNextOptionalParams + options?: PolicyAssignmentsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -817,322 +817,314 @@ export class PolicyAssignmentsImpl implements PolicyAssignments { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}", + path: "/{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}", httpMethod: "DELETE", responses: { 200: { - bodyMapper: Mappers.PolicyAssignment + bodyMapper: Mappers.PolicyAssignment, }, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.scope, - Parameters.policyAssignmentName + Parameters.policyAssignmentName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOperationSpec: coreClient.OperationSpec = { - path: - "/{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}", + path: "/{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}", httpMethod: "PUT", responses: { 201: { - bodyMapper: Mappers.PolicyAssignment + bodyMapper: Mappers.PolicyAssignment, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, - requestBody: Parameters.parameters, + requestBody: Parameters.parameters4, queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.scope, - Parameters.policyAssignmentName + Parameters.policyAssignmentName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}", + path: "/{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PolicyAssignment + bodyMapper: Mappers.PolicyAssignment, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.scope, - Parameters.policyAssignmentName + Parameters.policyAssignmentName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}", + path: "/{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.PolicyAssignment + bodyMapper: Mappers.PolicyAssignment, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, - requestBody: Parameters.parameters1, + requestBody: Parameters.parameters5, queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.scope, - Parameters.policyAssignmentName + Parameters.policyAssignmentName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listForResourceGroupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Authorization/policyAssignments", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Authorization/policyAssignments", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PolicyAssignmentListResult + bodyMapper: Mappers.PolicyAssignmentListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.filter, Parameters.apiVersion1, Parameters.top], urlParameters: [ Parameters.$host, + Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.subscriptionId ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listForResourceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/policyAssignments", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/policyAssignments", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PolicyAssignmentListResult + bodyMapper: Mappers.PolicyAssignmentListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.filter, Parameters.apiVersion1, Parameters.top], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.resourceProviderNamespace, Parameters.parentResourcePath, Parameters.resourceType, - Parameters.resourceName + Parameters.resourceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listForManagementGroupOperationSpec: coreClient.OperationSpec = { - path: - "/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Authorization/policyAssignments", + path: "/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Authorization/policyAssignments", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PolicyAssignmentListResult + bodyMapper: Mappers.PolicyAssignmentListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.filter, Parameters.apiVersion1, Parameters.top], urlParameters: [Parameters.$host, Parameters.managementGroupId], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyAssignments", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyAssignments", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PolicyAssignmentListResult + bodyMapper: Mappers.PolicyAssignmentListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.filter, Parameters.apiVersion1, Parameters.top], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const deleteByIdOperationSpec: coreClient.OperationSpec = { path: "/{policyAssignmentId}", httpMethod: "DELETE", responses: { 200: { - bodyMapper: Mappers.PolicyAssignment + bodyMapper: Mappers.PolicyAssignment, }, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion1], urlParameters: [Parameters.$host, Parameters.policyAssignmentId], headerParameters: [Parameters.accept], - serializer + serializer, }; const createByIdOperationSpec: coreClient.OperationSpec = { path: "/{policyAssignmentId}", httpMethod: "PUT", responses: { 201: { - bodyMapper: Mappers.PolicyAssignment + bodyMapper: Mappers.PolicyAssignment, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, - requestBody: Parameters.parameters, + requestBody: Parameters.parameters4, queryParameters: [Parameters.apiVersion1], urlParameters: [Parameters.$host, Parameters.policyAssignmentId], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const getByIdOperationSpec: coreClient.OperationSpec = { path: "/{policyAssignmentId}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PolicyAssignment + bodyMapper: Mappers.PolicyAssignment, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion1], urlParameters: [Parameters.$host, Parameters.policyAssignmentId], headerParameters: [Parameters.accept], - serializer + serializer, }; const updateByIdOperationSpec: coreClient.OperationSpec = { path: "/{policyAssignmentId}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.PolicyAssignment + bodyMapper: Mappers.PolicyAssignment, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, - requestBody: Parameters.parameters1, + requestBody: Parameters.parameters5, queryParameters: [Parameters.apiVersion1], urlParameters: [Parameters.$host, Parameters.policyAssignmentId], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listForResourceGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PolicyAssignmentListResult + bodyMapper: Mappers.PolicyAssignmentListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.nextLink, + Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.subscriptionId ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listForResourceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PolicyAssignmentListResult + bodyMapper: Mappers.PolicyAssignmentListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.nextLink, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.resourceProviderNamespace, Parameters.parentResourcePath, Parameters.resourceType, - Parameters.resourceName + Parameters.resourceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listForManagementGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PolicyAssignmentListResult + bodyMapper: Mappers.PolicyAssignmentListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.nextLink, - Parameters.managementGroupId + Parameters.managementGroupId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PolicyAssignmentListResult + bodyMapper: Mappers.PolicyAssignmentListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.nextLink, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/policy/arm-policy/src/operations/policyDefinitionVersions.ts b/sdk/policy/arm-policy/src/operations/policyDefinitionVersions.ts new file mode 100644 index 0000000000000..093c39374fb02 --- /dev/null +++ b/sdk/policy/arm-policy/src/operations/policyDefinitionVersions.ts @@ -0,0 +1,792 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { PolicyDefinitionVersions } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { PolicyClient } from "../policyClient"; +import { + PolicyDefinitionVersion, + PolicyDefinitionVersionsListNextOptionalParams, + PolicyDefinitionVersionsListOptionalParams, + PolicyDefinitionVersionsListResponse, + PolicyDefinitionVersionsListBuiltInNextOptionalParams, + PolicyDefinitionVersionsListBuiltInOptionalParams, + PolicyDefinitionVersionsListBuiltInResponse, + PolicyDefinitionVersionsListByManagementGroupNextOptionalParams, + PolicyDefinitionVersionsListByManagementGroupOptionalParams, + PolicyDefinitionVersionsListByManagementGroupResponse, + PolicyDefinitionVersionsListAllBuiltinsOptionalParams, + PolicyDefinitionVersionsListAllBuiltinsResponse, + PolicyDefinitionVersionsListAllAtManagementGroupOptionalParams, + PolicyDefinitionVersionsListAllAtManagementGroupResponse, + PolicyDefinitionVersionsListAllOptionalParams, + PolicyDefinitionVersionsListAllResponse, + PolicyDefinitionVersionsCreateOrUpdateOptionalParams, + PolicyDefinitionVersionsCreateOrUpdateResponse, + PolicyDefinitionVersionsDeleteOptionalParams, + PolicyDefinitionVersionsGetOptionalParams, + PolicyDefinitionVersionsGetResponse, + PolicyDefinitionVersionsGetBuiltInOptionalParams, + PolicyDefinitionVersionsGetBuiltInResponse, + PolicyDefinitionVersionsCreateOrUpdateAtManagementGroupOptionalParams, + PolicyDefinitionVersionsCreateOrUpdateAtManagementGroupResponse, + PolicyDefinitionVersionsDeleteAtManagementGroupOptionalParams, + PolicyDefinitionVersionsGetAtManagementGroupOptionalParams, + PolicyDefinitionVersionsGetAtManagementGroupResponse, + PolicyDefinitionVersionsListNextResponse, + PolicyDefinitionVersionsListBuiltInNextResponse, + PolicyDefinitionVersionsListByManagementGroupNextResponse, +} from "../models"; + +/// +/** Class containing PolicyDefinitionVersions operations. */ +export class PolicyDefinitionVersionsImpl implements PolicyDefinitionVersions { + private readonly client: PolicyClient; + + /** + * Initialize a new instance of the class PolicyDefinitionVersions class. + * @param client Reference to the service client + */ + constructor(client: PolicyClient) { + this.client = client; + } + + /** + * This operation retrieves a list of all the policy definition versions for the given policy + * definition. + * @param options The options parameters. + */ + public list( + options?: PolicyDefinitionVersionsListOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(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.listPagingPage(options, settings); + }, + }; + } + + private async *listPagingPage( + options?: PolicyDefinitionVersionsListOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: PolicyDefinitionVersionsListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list(options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext(continuationToken, options); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + options?: PolicyDefinitionVersionsListOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listPagingPage(options)) { + yield* page; + } + } + + /** + * This operation retrieves a list of all the built-in policy definition versions for the given policy + * definition. + * @param options The options parameters. + */ + public listBuiltIn( + options?: PolicyDefinitionVersionsListBuiltInOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listBuiltInPagingAll(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.listBuiltInPagingPage(options, settings); + }, + }; + } + + private async *listBuiltInPagingPage( + options?: PolicyDefinitionVersionsListBuiltInOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: PolicyDefinitionVersionsListBuiltInResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listBuiltIn(options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listBuiltInNext(continuationToken, options); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listBuiltInPagingAll( + options?: PolicyDefinitionVersionsListBuiltInOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listBuiltInPagingPage(options)) { + yield* page; + } + } + + /** + * This operation retrieves a list of all the policy definition versions for the given policy + * definition in the given management group. + * @param managementGroupName The name of the management group. The name is case insensitive. + * @param options The options parameters. + */ + public listByManagementGroup( + managementGroupName: string, + options?: PolicyDefinitionVersionsListByManagementGroupOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listByManagementGroupPagingAll( + managementGroupName, + 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.listByManagementGroupPagingPage( + managementGroupName, + options, + settings, + ); + }, + }; + } + + private async *listByManagementGroupPagingPage( + managementGroupName: string, + options?: PolicyDefinitionVersionsListByManagementGroupOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: PolicyDefinitionVersionsListByManagementGroupResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByManagementGroup(managementGroupName, options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByManagementGroupNext( + managementGroupName, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByManagementGroupPagingAll( + managementGroupName: string, + options?: PolicyDefinitionVersionsListByManagementGroupOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listByManagementGroupPagingPage( + managementGroupName, + options, + )) { + yield* page; + } + } + + /** + * This operation lists all the built-in policy definition versions for all built-in policy + * definitions. + * @param options The options parameters. + */ + listAllBuiltins( + options?: PolicyDefinitionVersionsListAllBuiltinsOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { options }, + listAllBuiltinsOperationSpec, + ); + } + + /** + * This operation lists all the policy definition versions for all policy definitions at the management + * group scope. + * @param managementGroupName The name of the management group. The name is case insensitive. + * @param options The options parameters. + */ + listAllAtManagementGroup( + managementGroupName: string, + options?: PolicyDefinitionVersionsListAllAtManagementGroupOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { managementGroupName, options }, + listAllAtManagementGroupOperationSpec, + ); + } + + /** + * This operation lists all the policy definition versions for all policy definitions within a + * subscription. + * @param options The options parameters. + */ + listAll( + options?: PolicyDefinitionVersionsListAllOptionalParams, + ): Promise { + return this.client.sendOperationRequest({ options }, listAllOperationSpec); + } + + /** + * This operation creates or updates a policy definition in the given subscription with the given name. + * @param parameters The policy definition properties. + * @param options The options parameters. + */ + createOrUpdate( + parameters: PolicyDefinitionVersion, + options?: PolicyDefinitionVersionsCreateOrUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { parameters, options }, + createOrUpdateOperationSpec, + ); + } + + /** + * This operation deletes the policy definition version in the given subscription with the given name. + * @param options The options parameters. + */ + delete( + options?: PolicyDefinitionVersionsDeleteOptionalParams, + ): Promise { + return this.client.sendOperationRequest({ options }, deleteOperationSpec); + } + + /** + * This operation retrieves the policy definition version in the given subscription with the given + * name. + * @param options The options parameters. + */ + get( + options?: PolicyDefinitionVersionsGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest({ options }, getOperationSpec); + } + + /** + * This operation retrieves the built-in policy definition version with the given name. + * @param options The options parameters. + */ + getBuiltIn( + options?: PolicyDefinitionVersionsGetBuiltInOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { options }, + getBuiltInOperationSpec, + ); + } + + /** + * This operation creates or updates a policy definition version in the given management group with the + * given name. + * @param managementGroupName The name of the management group. The name is case insensitive. + * @param parameters The policy definition properties. + * @param options The options parameters. + */ + createOrUpdateAtManagementGroup( + managementGroupName: string, + parameters: PolicyDefinitionVersion, + options?: PolicyDefinitionVersionsCreateOrUpdateAtManagementGroupOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { managementGroupName, parameters, options }, + createOrUpdateAtManagementGroupOperationSpec, + ); + } + + /** + * This operation deletes the policy definition in the given management group with the given name. + * @param managementGroupName The name of the management group. The name is case insensitive. + * @param options The options parameters. + */ + deleteAtManagementGroup( + managementGroupName: string, + options?: PolicyDefinitionVersionsDeleteAtManagementGroupOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { managementGroupName, options }, + deleteAtManagementGroupOperationSpec, + ); + } + + /** + * This operation retrieves the policy definition version in the given management group with the given + * name. + * @param managementGroupName The name of the management group. The name is case insensitive. + * @param options The options parameters. + */ + getAtManagementGroup( + managementGroupName: string, + options?: PolicyDefinitionVersionsGetAtManagementGroupOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { managementGroupName, options }, + getAtManagementGroupOperationSpec, + ); + } + + /** + * This operation retrieves a list of all the policy definition versions for the given policy + * definition. + * @param options The options parameters. + */ + private _list( + options?: PolicyDefinitionVersionsListOptionalParams, + ): Promise { + return this.client.sendOperationRequest({ options }, listOperationSpec); + } + + /** + * This operation retrieves a list of all the built-in policy definition versions for the given policy + * definition. + * @param options The options parameters. + */ + private _listBuiltIn( + options?: PolicyDefinitionVersionsListBuiltInOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { options }, + listBuiltInOperationSpec, + ); + } + + /** + * This operation retrieves a list of all the policy definition versions for the given policy + * definition in the given management group. + * @param managementGroupName The name of the management group. The name is case insensitive. + * @param options The options parameters. + */ + private _listByManagementGroup( + managementGroupName: string, + options?: PolicyDefinitionVersionsListByManagementGroupOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { managementGroupName, options }, + listByManagementGroupOperationSpec, + ); + } + + /** + * ListNext + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + nextLink: string, + options?: PolicyDefinitionVersionsListNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { nextLink, options }, + listNextOperationSpec, + ); + } + + /** + * ListBuiltInNext + * @param nextLink The nextLink from the previous successful call to the ListBuiltIn method. + * @param options The options parameters. + */ + private _listBuiltInNext( + nextLink: string, + options?: PolicyDefinitionVersionsListBuiltInNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { nextLink, options }, + listBuiltInNextOperationSpec, + ); + } + + /** + * ListByManagementGroupNext + * @param managementGroupName The name of the management group. The name is case insensitive. + * @param nextLink The nextLink from the previous successful call to the ListByManagementGroup method. + * @param options The options parameters. + */ + private _listByManagementGroupNext( + managementGroupName: string, + nextLink: string, + options?: PolicyDefinitionVersionsListByManagementGroupNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { managementGroupName, nextLink, options }, + listByManagementGroupNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listAllBuiltinsOperationSpec: coreClient.OperationSpec = { + path: "/providers/Microsoft.Authorization/listPolicyDefinitionVersions", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.PolicyDefinitionVersionListResult, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + queryParameters: [Parameters.apiVersion1], + urlParameters: [Parameters.$host], + headerParameters: [Parameters.accept], + serializer, +}; +const listAllAtManagementGroupOperationSpec: coreClient.OperationSpec = { + path: "/providers/Microsoft.Management/managementGroups/{managementGroupName}/providers/Microsoft.Authorization/listPolicyDefinitionVersions", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.PolicyDefinitionVersionListResult, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + queryParameters: [Parameters.apiVersion1], + urlParameters: [Parameters.$host, Parameters.managementGroupName], + headerParameters: [Parameters.accept], + serializer, +}; +const listAllOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/listPolicyDefinitionVersions", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.PolicyDefinitionVersionListResult, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + queryParameters: [Parameters.apiVersion1], + urlParameters: [Parameters.$host, Parameters.subscriptionId], + headerParameters: [Parameters.accept], + serializer, +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}/versions/{policyDefinitionVersion}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.PolicyDefinitionVersion, + }, + 201: { + bodyMapper: Mappers.PolicyDefinitionVersion, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + requestBody: Parameters.parameters1, + queryParameters: [Parameters.apiVersion1], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.policyDefinitionName1, + Parameters.policyDefinitionVersion, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}/versions/{policyDefinitionVersion}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + queryParameters: [Parameters.apiVersion1], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.policyDefinitionName1, + Parameters.policyDefinitionVersion, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}/versions/{policyDefinitionVersion}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PolicyDefinitionVersion, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + queryParameters: [Parameters.apiVersion1], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.policyDefinitionName1, + Parameters.policyDefinitionVersion, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getBuiltInOperationSpec: coreClient.OperationSpec = { + path: "/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}/versions/{policyDefinitionVersion}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PolicyDefinitionVersion, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + queryParameters: [Parameters.apiVersion1], + urlParameters: [ + Parameters.$host, + Parameters.policyDefinitionName1, + Parameters.policyDefinitionVersion, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const createOrUpdateAtManagementGroupOperationSpec: coreClient.OperationSpec = { + path: "/providers/Microsoft.Management/managementGroups/{managementGroupName}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}/versions/{policyDefinitionVersion}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.PolicyDefinitionVersion, + }, + 201: { + bodyMapper: Mappers.PolicyDefinitionVersion, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + requestBody: Parameters.parameters1, + queryParameters: [Parameters.apiVersion1], + urlParameters: [ + Parameters.$host, + Parameters.managementGroupName, + Parameters.policyDefinitionName1, + Parameters.policyDefinitionVersion, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const deleteAtManagementGroupOperationSpec: coreClient.OperationSpec = { + path: "/providers/Microsoft.Management/managementGroups/{managementGroupName}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}/versions/{policyDefinitionVersion}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + queryParameters: [Parameters.apiVersion1], + urlParameters: [ + Parameters.$host, + Parameters.managementGroupName, + Parameters.policyDefinitionName1, + Parameters.policyDefinitionVersion, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getAtManagementGroupOperationSpec: coreClient.OperationSpec = { + path: "/providers/Microsoft.Management/managementGroups/{managementGroupName}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}/versions/{policyDefinitionVersion}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PolicyDefinitionVersion, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + queryParameters: [Parameters.apiVersion1], + urlParameters: [ + Parameters.$host, + Parameters.managementGroupName, + Parameters.policyDefinitionName1, + Parameters.policyDefinitionVersion, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}/versions", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PolicyDefinitionVersionListResult, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + queryParameters: [Parameters.apiVersion1, Parameters.top], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.policyDefinitionName1, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listBuiltInOperationSpec: coreClient.OperationSpec = { + path: "/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}/versions", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PolicyDefinitionVersionListResult, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + queryParameters: [Parameters.apiVersion1, Parameters.top], + urlParameters: [Parameters.$host, Parameters.policyDefinitionName1], + headerParameters: [Parameters.accept], + serializer, +}; +const listByManagementGroupOperationSpec: coreClient.OperationSpec = { + path: "/providers/Microsoft.Management/managementGroups/{managementGroupName}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}/versions", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PolicyDefinitionVersionListResult, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + queryParameters: [Parameters.apiVersion1, Parameters.top], + urlParameters: [ + Parameters.$host, + Parameters.managementGroupName, + Parameters.policyDefinitionName1, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PolicyDefinitionVersionListResult, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.nextLink, + Parameters.subscriptionId, + Parameters.policyDefinitionName1, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listBuiltInNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PolicyDefinitionVersionListResult, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.nextLink, + Parameters.policyDefinitionName1, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listByManagementGroupNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PolicyDefinitionVersionListResult, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.nextLink, + Parameters.managementGroupName, + Parameters.policyDefinitionName1, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/policy/arm-policy/src/operations/policyDefinitions.ts b/sdk/policy/arm-policy/src/operations/policyDefinitions.ts index 32335b3819ffb..eb799344eff26 100644 --- a/sdk/policy/arm-policy/src/operations/policyDefinitions.ts +++ b/sdk/policy/arm-policy/src/operations/policyDefinitions.ts @@ -38,7 +38,7 @@ import { PolicyDefinitionsGetAtManagementGroupResponse, PolicyDefinitionsListNextResponse, PolicyDefinitionsListBuiltInNextResponse, - PolicyDefinitionsListByManagementGroupNextResponse + PolicyDefinitionsListByManagementGroupNextResponse, } from "../models"; /// @@ -68,7 +68,7 @@ export class PolicyDefinitionsImpl implements PolicyDefinitions { * @param options The options parameters. */ public list( - options?: PolicyDefinitionsListOptionalParams + options?: PolicyDefinitionsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(options); return { @@ -83,13 +83,13 @@ export class PolicyDefinitionsImpl implements PolicyDefinitions { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(options, settings); - } + }, }; } private async *listPagingPage( options?: PolicyDefinitionsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: PolicyDefinitionsListResponse; let continuationToken = settings?.continuationToken; @@ -110,7 +110,7 @@ export class PolicyDefinitionsImpl implements PolicyDefinitions { } private async *listPagingAll( - options?: PolicyDefinitionsListOptionalParams + options?: PolicyDefinitionsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(options)) { yield* page; @@ -126,7 +126,7 @@ export class PolicyDefinitionsImpl implements PolicyDefinitions { * @param options The options parameters. */ public listBuiltIn( - options?: PolicyDefinitionsListBuiltInOptionalParams + options?: PolicyDefinitionsListBuiltInOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listBuiltInPagingAll(options); return { @@ -141,13 +141,13 @@ export class PolicyDefinitionsImpl implements PolicyDefinitions { throw new Error("maxPageSize is not supported by this operation."); } return this.listBuiltInPagingPage(options, settings); - } + }, }; } private async *listBuiltInPagingPage( options?: PolicyDefinitionsListBuiltInOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: PolicyDefinitionsListBuiltInResponse; let continuationToken = settings?.continuationToken; @@ -168,7 +168,7 @@ export class PolicyDefinitionsImpl implements PolicyDefinitions { } private async *listBuiltInPagingAll( - options?: PolicyDefinitionsListBuiltInOptionalParams + options?: PolicyDefinitionsListBuiltInOptionalParams, ): AsyncIterableIterator { for await (const page of this.listBuiltInPagingPage(options)) { yield* page; @@ -191,11 +191,11 @@ export class PolicyDefinitionsImpl implements PolicyDefinitions { */ public listByManagementGroup( managementGroupId: string, - options?: PolicyDefinitionsListByManagementGroupOptionalParams + options?: PolicyDefinitionsListByManagementGroupOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByManagementGroupPagingAll( managementGroupId, - options + options, ); return { next() { @@ -211,16 +211,16 @@ export class PolicyDefinitionsImpl implements PolicyDefinitions { return this.listByManagementGroupPagingPage( managementGroupId, options, - settings + settings, ); - } + }, }; } private async *listByManagementGroupPagingPage( managementGroupId: string, options?: PolicyDefinitionsListByManagementGroupOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: PolicyDefinitionsListByManagementGroupResponse; let continuationToken = settings?.continuationToken; @@ -235,7 +235,7 @@ export class PolicyDefinitionsImpl implements PolicyDefinitions { result = await this._listByManagementGroupNext( managementGroupId, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -246,11 +246,11 @@ export class PolicyDefinitionsImpl implements PolicyDefinitions { private async *listByManagementGroupPagingAll( managementGroupId: string, - options?: PolicyDefinitionsListByManagementGroupOptionalParams + options?: PolicyDefinitionsListByManagementGroupOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByManagementGroupPagingPage( managementGroupId, - options + options, )) { yield* page; } @@ -265,11 +265,11 @@ export class PolicyDefinitionsImpl implements PolicyDefinitions { createOrUpdate( policyDefinitionName: string, parameters: PolicyDefinition, - options?: PolicyDefinitionsCreateOrUpdateOptionalParams + options?: PolicyDefinitionsCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { policyDefinitionName, parameters, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -280,11 +280,11 @@ export class PolicyDefinitionsImpl implements PolicyDefinitions { */ delete( policyDefinitionName: string, - options?: PolicyDefinitionsDeleteOptionalParams + options?: PolicyDefinitionsDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { policyDefinitionName, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -295,11 +295,11 @@ export class PolicyDefinitionsImpl implements PolicyDefinitions { */ get( policyDefinitionName: string, - options?: PolicyDefinitionsGetOptionalParams + options?: PolicyDefinitionsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { policyDefinitionName, options }, - getOperationSpec + getOperationSpec, ); } @@ -310,65 +310,65 @@ export class PolicyDefinitionsImpl implements PolicyDefinitions { */ getBuiltIn( policyDefinitionName: string, - options?: PolicyDefinitionsGetBuiltInOptionalParams + options?: PolicyDefinitionsGetBuiltInOptionalParams, ): Promise { return this.client.sendOperationRequest( { policyDefinitionName, options }, - getBuiltInOperationSpec + getBuiltInOperationSpec, ); } /** * This operation creates or updates a policy definition in the given management group with the given * name. - * @param policyDefinitionName The name of the policy definition to create. * @param managementGroupId The ID of the management group. + * @param policyDefinitionName The name of the policy definition to create. * @param parameters The policy definition properties. * @param options The options parameters. */ createOrUpdateAtManagementGroup( - policyDefinitionName: string, managementGroupId: string, + policyDefinitionName: string, parameters: PolicyDefinition, - options?: PolicyDefinitionsCreateOrUpdateAtManagementGroupOptionalParams + options?: PolicyDefinitionsCreateOrUpdateAtManagementGroupOptionalParams, ): Promise { return this.client.sendOperationRequest( - { policyDefinitionName, managementGroupId, parameters, options }, - createOrUpdateAtManagementGroupOperationSpec + { managementGroupId, policyDefinitionName, parameters, options }, + createOrUpdateAtManagementGroupOperationSpec, ); } /** * This operation deletes the policy definition in the given management group with the given name. - * @param policyDefinitionName The name of the policy definition to delete. * @param managementGroupId The ID of the management group. + * @param policyDefinitionName The name of the policy definition to delete. * @param options The options parameters. */ deleteAtManagementGroup( - policyDefinitionName: string, managementGroupId: string, - options?: PolicyDefinitionsDeleteAtManagementGroupOptionalParams + policyDefinitionName: string, + options?: PolicyDefinitionsDeleteAtManagementGroupOptionalParams, ): Promise { return this.client.sendOperationRequest( - { policyDefinitionName, managementGroupId, options }, - deleteAtManagementGroupOperationSpec + { managementGroupId, policyDefinitionName, options }, + deleteAtManagementGroupOperationSpec, ); } /** * This operation retrieves the policy definition in the given management group with the given name. - * @param policyDefinitionName The name of the policy definition to get. * @param managementGroupId The ID of the management group. + * @param policyDefinitionName The name of the policy definition to get. * @param options The options parameters. */ getAtManagementGroup( - policyDefinitionName: string, managementGroupId: string, - options?: PolicyDefinitionsGetAtManagementGroupOptionalParams + policyDefinitionName: string, + options?: PolicyDefinitionsGetAtManagementGroupOptionalParams, ): Promise { return this.client.sendOperationRequest( - { policyDefinitionName, managementGroupId, options }, - getAtManagementGroupOperationSpec + { managementGroupId, policyDefinitionName, options }, + getAtManagementGroupOperationSpec, ); } @@ -386,7 +386,7 @@ export class PolicyDefinitionsImpl implements PolicyDefinitions { * @param options The options parameters. */ private _list( - options?: PolicyDefinitionsListOptionalParams + options?: PolicyDefinitionsListOptionalParams, ): Promise { return this.client.sendOperationRequest({ options }, listOperationSpec); } @@ -400,11 +400,11 @@ export class PolicyDefinitionsImpl implements PolicyDefinitions { * @param options The options parameters. */ private _listBuiltIn( - options?: PolicyDefinitionsListBuiltInOptionalParams + options?: PolicyDefinitionsListBuiltInOptionalParams, ): Promise { return this.client.sendOperationRequest( { options }, - listBuiltInOperationSpec + listBuiltInOperationSpec, ); } @@ -424,11 +424,11 @@ export class PolicyDefinitionsImpl implements PolicyDefinitions { */ private _listByManagementGroup( managementGroupId: string, - options?: PolicyDefinitionsListByManagementGroupOptionalParams + options?: PolicyDefinitionsListByManagementGroupOptionalParams, ): Promise { return this.client.sendOperationRequest( { managementGroupId, options }, - listByManagementGroupOperationSpec + listByManagementGroupOperationSpec, ); } @@ -439,11 +439,11 @@ export class PolicyDefinitionsImpl implements PolicyDefinitions { */ private _listNext( nextLink: string, - options?: PolicyDefinitionsListNextOptionalParams + options?: PolicyDefinitionsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } @@ -454,11 +454,11 @@ export class PolicyDefinitionsImpl implements PolicyDefinitions { */ private _listBuiltInNext( nextLink: string, - options?: PolicyDefinitionsListBuiltInNextOptionalParams + options?: PolicyDefinitionsListBuiltInNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listBuiltInNextOperationSpec + listBuiltInNextOperationSpec, ); } @@ -471,11 +471,11 @@ export class PolicyDefinitionsImpl implements PolicyDefinitions { private _listByManagementGroupNext( managementGroupId: string, nextLink: string, - options?: PolicyDefinitionsListByManagementGroupNextOptionalParams + options?: PolicyDefinitionsListByManagementGroupNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { managementGroupId, nextLink, options }, - listByManagementGroupNextOperationSpec + listByManagementGroupNextOperationSpec, ); } } @@ -483,250 +483,241 @@ export class PolicyDefinitionsImpl implements PolicyDefinitions { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}", httpMethod: "PUT", responses: { 201: { - bodyMapper: Mappers.PolicyDefinition + bodyMapper: Mappers.PolicyDefinition, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, - requestBody: Parameters.parameters2, + requestBody: Parameters.parameters, queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.policyDefinitionName + Parameters.policyDefinitionName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.policyDefinitionName + Parameters.policyDefinitionName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PolicyDefinition + bodyMapper: Mappers.PolicyDefinition, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.policyDefinitionName + Parameters.policyDefinitionName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getBuiltInOperationSpec: coreClient.OperationSpec = { - path: - "/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}", + path: "/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PolicyDefinition + bodyMapper: Mappers.PolicyDefinition, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion1], urlParameters: [Parameters.$host, Parameters.policyDefinitionName], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateAtManagementGroupOperationSpec: coreClient.OperationSpec = { - path: - "/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}", + path: "/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}", httpMethod: "PUT", responses: { 201: { - bodyMapper: Mappers.PolicyDefinition + bodyMapper: Mappers.PolicyDefinition, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, - requestBody: Parameters.parameters2, + requestBody: Parameters.parameters, queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, + Parameters.policyDefinitionName, Parameters.managementGroupId, - Parameters.policyDefinitionName ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteAtManagementGroupOperationSpec: coreClient.OperationSpec = { - path: - "/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}", + path: "/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, + Parameters.policyDefinitionName, Parameters.managementGroupId, - Parameters.policyDefinitionName ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getAtManagementGroupOperationSpec: coreClient.OperationSpec = { - path: - "/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}", + path: "/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PolicyDefinition + bodyMapper: Mappers.PolicyDefinition, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, + Parameters.policyDefinitionName, Parameters.managementGroupId, - Parameters.policyDefinitionName ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyDefinitions", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyDefinitions", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PolicyDefinitionListResult + bodyMapper: Mappers.PolicyDefinitionListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.filter, Parameters.apiVersion1, Parameters.top], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const listBuiltInOperationSpec: coreClient.OperationSpec = { path: "/providers/Microsoft.Authorization/policyDefinitions", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PolicyDefinitionListResult + bodyMapper: Mappers.PolicyDefinitionListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.filter, Parameters.apiVersion1, Parameters.top], urlParameters: [Parameters.$host], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByManagementGroupOperationSpec: coreClient.OperationSpec = { - path: - "/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Authorization/policyDefinitions", + path: "/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Authorization/policyDefinitions", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PolicyDefinitionListResult + bodyMapper: Mappers.PolicyDefinitionListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.filter, Parameters.apiVersion1, Parameters.top], urlParameters: [Parameters.$host, Parameters.managementGroupId], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PolicyDefinitionListResult + bodyMapper: Mappers.PolicyDefinitionListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.nextLink, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listBuiltInNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PolicyDefinitionListResult + bodyMapper: Mappers.PolicyDefinitionListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [Parameters.$host, Parameters.nextLink], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByManagementGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PolicyDefinitionListResult + bodyMapper: Mappers.PolicyDefinitionListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.nextLink, - Parameters.managementGroupId + Parameters.managementGroupId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/policy/arm-policy/src/operations/policyExemptions.ts b/sdk/policy/arm-policy/src/operations/policyExemptions.ts index 917606661363f..0e80b8a1d2d5a 100644 --- a/sdk/policy/arm-policy/src/operations/policyExemptions.ts +++ b/sdk/policy/arm-policy/src/operations/policyExemptions.ts @@ -32,10 +32,13 @@ import { PolicyExemptionsCreateOrUpdateResponse, PolicyExemptionsGetOptionalParams, PolicyExemptionsGetResponse, + PolicyExemptionUpdate, + PolicyExemptionsUpdateOptionalParams, + PolicyExemptionsUpdateResponse, PolicyExemptionsListNextResponse, PolicyExemptionsListForResourceGroupNextResponse, PolicyExemptionsListForResourceNextResponse, - PolicyExemptionsListForManagementGroupNextResponse + PolicyExemptionsListForManagementGroupNextResponse, } from "../models"; /// @@ -61,7 +64,7 @@ export class PolicyExemptionsImpl implements PolicyExemptions { * @param options The options parameters. */ public list( - options?: PolicyExemptionsListOptionalParams + options?: PolicyExemptionsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(options); return { @@ -76,13 +79,13 @@ export class PolicyExemptionsImpl implements PolicyExemptions { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(options, settings); - } + }, }; } private async *listPagingPage( options?: PolicyExemptionsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: PolicyExemptionsListResponse; let continuationToken = settings?.continuationToken; @@ -103,7 +106,7 @@ export class PolicyExemptionsImpl implements PolicyExemptions { } private async *listPagingAll( - options?: PolicyExemptionsListOptionalParams + options?: PolicyExemptionsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(options)) { yield* page; @@ -122,7 +125,7 @@ export class PolicyExemptionsImpl implements PolicyExemptions { */ public listForResourceGroup( resourceGroupName: string, - options?: PolicyExemptionsListForResourceGroupOptionalParams + options?: PolicyExemptionsListForResourceGroupOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listForResourceGroupPagingAll(resourceGroupName, options); return { @@ -139,16 +142,16 @@ export class PolicyExemptionsImpl implements PolicyExemptions { return this.listForResourceGroupPagingPage( resourceGroupName, options, - settings + settings, ); - } + }, }; } private async *listForResourceGroupPagingPage( resourceGroupName: string, options?: PolicyExemptionsListForResourceGroupOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: PolicyExemptionsListForResourceGroupResponse; let continuationToken = settings?.continuationToken; @@ -163,7 +166,7 @@ export class PolicyExemptionsImpl implements PolicyExemptions { result = await this._listForResourceGroupNext( resourceGroupName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -174,11 +177,11 @@ export class PolicyExemptionsImpl implements PolicyExemptions { private async *listForResourceGroupPagingAll( resourceGroupName: string, - options?: PolicyExemptionsListForResourceGroupOptionalParams + options?: PolicyExemptionsListForResourceGroupOptionalParams, ): AsyncIterableIterator { for await (const page of this.listForResourceGroupPagingPage( resourceGroupName, - options + options, )) { yield* page; } @@ -216,7 +219,7 @@ export class PolicyExemptionsImpl implements PolicyExemptions { parentResourcePath: string, resourceType: string, resourceName: string, - options?: PolicyExemptionsListForResourceOptionalParams + options?: PolicyExemptionsListForResourceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listForResourcePagingAll( resourceGroupName, @@ -224,7 +227,7 @@ export class PolicyExemptionsImpl implements PolicyExemptions { parentResourcePath, resourceType, resourceName, - options + options, ); return { next() { @@ -244,9 +247,9 @@ export class PolicyExemptionsImpl implements PolicyExemptions { resourceType, resourceName, options, - settings + settings, ); - } + }, }; } @@ -257,7 +260,7 @@ export class PolicyExemptionsImpl implements PolicyExemptions { resourceType: string, resourceName: string, options?: PolicyExemptionsListForResourceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: PolicyExemptionsListForResourceResponse; let continuationToken = settings?.continuationToken; @@ -268,7 +271,7 @@ export class PolicyExemptionsImpl implements PolicyExemptions { parentResourcePath, resourceType, resourceName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -283,7 +286,7 @@ export class PolicyExemptionsImpl implements PolicyExemptions { resourceType, resourceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -298,7 +301,7 @@ export class PolicyExemptionsImpl implements PolicyExemptions { parentResourcePath: string, resourceType: string, resourceName: string, - options?: PolicyExemptionsListForResourceOptionalParams + options?: PolicyExemptionsListForResourceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listForResourcePagingPage( resourceGroupName, @@ -306,7 +309,7 @@ export class PolicyExemptionsImpl implements PolicyExemptions { parentResourcePath, resourceType, resourceName, - options + options, )) { yield* page; } @@ -323,11 +326,11 @@ export class PolicyExemptionsImpl implements PolicyExemptions { */ public listForManagementGroup( managementGroupId: string, - options?: PolicyExemptionsListForManagementGroupOptionalParams + options?: PolicyExemptionsListForManagementGroupOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listForManagementGroupPagingAll( managementGroupId, - options + options, ); return { next() { @@ -343,16 +346,16 @@ export class PolicyExemptionsImpl implements PolicyExemptions { return this.listForManagementGroupPagingPage( managementGroupId, options, - settings + settings, ); - } + }, }; } private async *listForManagementGroupPagingPage( managementGroupId: string, options?: PolicyExemptionsListForManagementGroupOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: PolicyExemptionsListForManagementGroupResponse; let continuationToken = settings?.continuationToken; @@ -367,7 +370,7 @@ export class PolicyExemptionsImpl implements PolicyExemptions { result = await this._listForManagementGroupNext( managementGroupId, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -378,11 +381,11 @@ export class PolicyExemptionsImpl implements PolicyExemptions { private async *listForManagementGroupPagingAll( managementGroupId: string, - options?: PolicyExemptionsListForManagementGroupOptionalParams + options?: PolicyExemptionsListForManagementGroupOptionalParams, ): AsyncIterableIterator { for await (const page of this.listForManagementGroupPagingPage( managementGroupId, - options + options, )) { yield* page; } @@ -403,11 +406,11 @@ export class PolicyExemptionsImpl implements PolicyExemptions { delete( scope: string, policyExemptionName: string, - options?: PolicyExemptionsDeleteOptionalParams + options?: PolicyExemptionsDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { scope, policyExemptionName, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -429,11 +432,11 @@ export class PolicyExemptionsImpl implements PolicyExemptions { scope: string, policyExemptionName: string, parameters: PolicyExemption, - options?: PolicyExemptionsCreateOrUpdateOptionalParams + options?: PolicyExemptionsCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { scope, policyExemptionName, parameters, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -450,11 +453,34 @@ export class PolicyExemptionsImpl implements PolicyExemptions { get( scope: string, policyExemptionName: string, - options?: PolicyExemptionsGetOptionalParams + options?: PolicyExemptionsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { scope, policyExemptionName, options }, - getOperationSpec + getOperationSpec, + ); + } + + /** + * This operation updates a policy exemption with the given scope and name. + * @param scope The scope of the policy exemption. Valid scopes are: management group (format: + * '/providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: + * '/subscriptions/{subscriptionId}'), resource group (format: + * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or resource (format: + * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}' + * @param policyExemptionName The name of the policy exemption to delete. + * @param parameters Parameters for policy exemption patch request. + * @param options The options parameters. + */ + update( + scope: string, + policyExemptionName: string, + parameters: PolicyExemptionUpdate, + options?: PolicyExemptionsUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { scope, policyExemptionName, parameters, options }, + updateOperationSpec, ); } @@ -468,7 +494,7 @@ export class PolicyExemptionsImpl implements PolicyExemptions { * @param options The options parameters. */ private _list( - options?: PolicyExemptionsListOptionalParams + options?: PolicyExemptionsListOptionalParams, ): Promise { return this.client.sendOperationRequest({ options }, listOperationSpec); } @@ -485,11 +511,11 @@ export class PolicyExemptionsImpl implements PolicyExemptions { */ private _listForResourceGroup( resourceGroupName: string, - options?: PolicyExemptionsListForResourceGroupOptionalParams + options?: PolicyExemptionsListForResourceGroupOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, - listForResourceGroupOperationSpec + listForResourceGroupOperationSpec, ); } @@ -525,7 +551,7 @@ export class PolicyExemptionsImpl implements PolicyExemptions { parentResourcePath: string, resourceType: string, resourceName: string, - options?: PolicyExemptionsListForResourceOptionalParams + options?: PolicyExemptionsListForResourceOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -534,9 +560,9 @@ export class PolicyExemptionsImpl implements PolicyExemptions { parentResourcePath, resourceType, resourceName, - options + options, }, - listForResourceOperationSpec + listForResourceOperationSpec, ); } @@ -551,11 +577,11 @@ export class PolicyExemptionsImpl implements PolicyExemptions { */ private _listForManagementGroup( managementGroupId: string, - options?: PolicyExemptionsListForManagementGroupOptionalParams + options?: PolicyExemptionsListForManagementGroupOptionalParams, ): Promise { return this.client.sendOperationRequest( { managementGroupId, options }, - listForManagementGroupOperationSpec + listForManagementGroupOperationSpec, ); } @@ -566,11 +592,11 @@ export class PolicyExemptionsImpl implements PolicyExemptions { */ private _listNext( nextLink: string, - options?: PolicyExemptionsListNextOptionalParams + options?: PolicyExemptionsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } @@ -583,11 +609,11 @@ export class PolicyExemptionsImpl implements PolicyExemptions { private _listForResourceGroupNext( resourceGroupName: string, nextLink: string, - options?: PolicyExemptionsListForResourceGroupNextOptionalParams + options?: PolicyExemptionsListForResourceGroupNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, nextLink, options }, - listForResourceGroupNextOperationSpec + listForResourceGroupNextOperationSpec, ); } @@ -610,7 +636,7 @@ export class PolicyExemptionsImpl implements PolicyExemptions { resourceType: string, resourceName: string, nextLink: string, - options?: PolicyExemptionsListForResourceNextOptionalParams + options?: PolicyExemptionsListForResourceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -620,9 +646,9 @@ export class PolicyExemptionsImpl implements PolicyExemptions { resourceType, resourceName, nextLink, - options + options, }, - listForResourceNextOperationSpec + listForResourceNextOperationSpec, ); } @@ -635,11 +661,11 @@ export class PolicyExemptionsImpl implements PolicyExemptions { private _listForManagementGroupNext( managementGroupId: string, nextLink: string, - options?: PolicyExemptionsListForManagementGroupNextOptionalParams + options?: PolicyExemptionsListForManagementGroupNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { managementGroupId, nextLink, options }, - listForManagementGroupNextOperationSpec + listForManagementGroupNextOperationSpec, ); } } @@ -647,231 +673,246 @@ export class PolicyExemptionsImpl implements PolicyExemptions { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/{scope}/providers/Microsoft.Authorization/policyExemptions/{policyExemptionName}", + path: "/{scope}/providers/Microsoft.Authorization/policyExemptions/{policyExemptionName}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion2], urlParameters: [ Parameters.$host, Parameters.scope, - Parameters.policyExemptionName + Parameters.policyExemptionName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/{scope}/providers/Microsoft.Authorization/policyExemptions/{policyExemptionName}", + path: "/{scope}/providers/Microsoft.Authorization/policyExemptions/{policyExemptionName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.PolicyExemption + bodyMapper: Mappers.PolicyExemption, }, 201: { - bodyMapper: Mappers.PolicyExemption + bodyMapper: Mappers.PolicyExemption, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, - requestBody: Parameters.parameters4, + requestBody: Parameters.parameters6, queryParameters: [Parameters.apiVersion2], urlParameters: [ Parameters.$host, Parameters.scope, - Parameters.policyExemptionName + Parameters.policyExemptionName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/{scope}/providers/Microsoft.Authorization/policyExemptions/{policyExemptionName}", + path: "/{scope}/providers/Microsoft.Authorization/policyExemptions/{policyExemptionName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PolicyExemption + bodyMapper: Mappers.PolicyExemption, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion2], urlParameters: [ Parameters.$host, Parameters.scope, - Parameters.policyExemptionName + Parameters.policyExemptionName, ], headerParameters: [Parameters.accept], - serializer + serializer, +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: "/{scope}/providers/Microsoft.Authorization/policyExemptions/{policyExemptionName}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.PolicyExemption, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + requestBody: Parameters.parameters7, + queryParameters: [Parameters.apiVersion2], + urlParameters: [ + Parameters.$host, + Parameters.scope, + Parameters.policyExemptionName, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, }; const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyExemptions", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyExemptions", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PolicyExemptionListResult + bodyMapper: Mappers.PolicyExemptionListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.filter, Parameters.apiVersion2], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const listForResourceGroupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Authorization/policyExemptions", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Authorization/policyExemptions", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PolicyExemptionListResult + bodyMapper: Mappers.PolicyExemptionListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.filter, Parameters.apiVersion2], urlParameters: [ Parameters.$host, + Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.subscriptionId ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listForResourceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/policyExemptions", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/policyExemptions", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PolicyExemptionListResult + bodyMapper: Mappers.PolicyExemptionListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.filter, Parameters.apiVersion2], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.resourceProviderNamespace, Parameters.parentResourcePath, Parameters.resourceType, - Parameters.resourceName + Parameters.resourceName1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listForManagementGroupOperationSpec: coreClient.OperationSpec = { - path: - "/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Authorization/policyExemptions", + path: "/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Authorization/policyExemptions", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PolicyExemptionListResult + bodyMapper: Mappers.PolicyExemptionListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.filter, Parameters.apiVersion2], urlParameters: [Parameters.$host, Parameters.managementGroupId], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PolicyExemptionListResult + bodyMapper: Mappers.PolicyExemptionListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.nextLink, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listForResourceGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PolicyExemptionListResult + bodyMapper: Mappers.PolicyExemptionListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.nextLink, + Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.subscriptionId ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listForResourceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PolicyExemptionListResult + bodyMapper: Mappers.PolicyExemptionListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.nextLink, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.resourceProviderNamespace, Parameters.parentResourcePath, Parameters.resourceType, - Parameters.resourceName + Parameters.resourceName1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listForManagementGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PolicyExemptionListResult + bodyMapper: Mappers.PolicyExemptionListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.nextLink, - Parameters.managementGroupId + Parameters.managementGroupId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/policy/arm-policy/src/operations/policySetDefinitionVersions.ts b/sdk/policy/arm-policy/src/operations/policySetDefinitionVersions.ts new file mode 100644 index 0000000000000..3b560bb77e4d8 --- /dev/null +++ b/sdk/policy/arm-policy/src/operations/policySetDefinitionVersions.ts @@ -0,0 +1,797 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { PolicySetDefinitionVersions } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { PolicyClient } from "../policyClient"; +import { + PolicySetDefinitionVersion, + PolicySetDefinitionVersionsListNextOptionalParams, + PolicySetDefinitionVersionsListOptionalParams, + PolicySetDefinitionVersionsListResponse, + PolicySetDefinitionVersionsListBuiltInNextOptionalParams, + PolicySetDefinitionVersionsListBuiltInOptionalParams, + PolicySetDefinitionVersionsListBuiltInResponse, + PolicySetDefinitionVersionsListByManagementGroupNextOptionalParams, + PolicySetDefinitionVersionsListByManagementGroupOptionalParams, + PolicySetDefinitionVersionsListByManagementGroupResponse, + PolicySetDefinitionVersionsListAllBuiltinsOptionalParams, + PolicySetDefinitionVersionsListAllBuiltinsResponse, + PolicySetDefinitionVersionsListAllAtManagementGroupOptionalParams, + PolicySetDefinitionVersionsListAllAtManagementGroupResponse, + PolicySetDefinitionVersionsListAllOptionalParams, + PolicySetDefinitionVersionsListAllResponse, + PolicySetDefinitionVersionsCreateOrUpdateOptionalParams, + PolicySetDefinitionVersionsCreateOrUpdateResponse, + PolicySetDefinitionVersionsDeleteOptionalParams, + PolicySetDefinitionVersionsGetOptionalParams, + PolicySetDefinitionVersionsGetResponse, + PolicySetDefinitionVersionsGetBuiltInOptionalParams, + PolicySetDefinitionVersionsGetBuiltInResponse, + PolicySetDefinitionVersionsCreateOrUpdateAtManagementGroupOptionalParams, + PolicySetDefinitionVersionsCreateOrUpdateAtManagementGroupResponse, + PolicySetDefinitionVersionsDeleteAtManagementGroupOptionalParams, + PolicySetDefinitionVersionsGetAtManagementGroupOptionalParams, + PolicySetDefinitionVersionsGetAtManagementGroupResponse, + PolicySetDefinitionVersionsListNextResponse, + PolicySetDefinitionVersionsListBuiltInNextResponse, + PolicySetDefinitionVersionsListByManagementGroupNextResponse, +} from "../models"; + +/// +/** Class containing PolicySetDefinitionVersions operations. */ +export class PolicySetDefinitionVersionsImpl + implements PolicySetDefinitionVersions +{ + private readonly client: PolicyClient; + + /** + * Initialize a new instance of the class PolicySetDefinitionVersions class. + * @param client Reference to the service client + */ + constructor(client: PolicyClient) { + this.client = client; + } + + /** + * This operation retrieves a list of all the policy set definition versions for the given policy set + * definition. + * @param options The options parameters. + */ + public list( + options?: PolicySetDefinitionVersionsListOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(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.listPagingPage(options, settings); + }, + }; + } + + private async *listPagingPage( + options?: PolicySetDefinitionVersionsListOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: PolicySetDefinitionVersionsListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list(options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext(continuationToken, options); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + options?: PolicySetDefinitionVersionsListOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listPagingPage(options)) { + yield* page; + } + } + + /** + * This operation retrieves a list of all the built-in policy set definition versions for the given + * built-in policy set definition. + * @param options The options parameters. + */ + public listBuiltIn( + options?: PolicySetDefinitionVersionsListBuiltInOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listBuiltInPagingAll(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.listBuiltInPagingPage(options, settings); + }, + }; + } + + private async *listBuiltInPagingPage( + options?: PolicySetDefinitionVersionsListBuiltInOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: PolicySetDefinitionVersionsListBuiltInResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listBuiltIn(options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listBuiltInNext(continuationToken, options); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listBuiltInPagingAll( + options?: PolicySetDefinitionVersionsListBuiltInOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listBuiltInPagingPage(options)) { + yield* page; + } + } + + /** + * This operation retrieves a list of all the policy set definition versions for the given policy set + * definition in a given management group. + * @param managementGroupName The name of the management group. The name is case insensitive. + * @param options The options parameters. + */ + public listByManagementGroup( + managementGroupName: string, + options?: PolicySetDefinitionVersionsListByManagementGroupOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listByManagementGroupPagingAll( + managementGroupName, + 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.listByManagementGroupPagingPage( + managementGroupName, + options, + settings, + ); + }, + }; + } + + private async *listByManagementGroupPagingPage( + managementGroupName: string, + options?: PolicySetDefinitionVersionsListByManagementGroupOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: PolicySetDefinitionVersionsListByManagementGroupResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByManagementGroup(managementGroupName, options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByManagementGroupNext( + managementGroupName, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByManagementGroupPagingAll( + managementGroupName: string, + options?: PolicySetDefinitionVersionsListByManagementGroupOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listByManagementGroupPagingPage( + managementGroupName, + options, + )) { + yield* page; + } + } + + /** + * This operation lists all the built-in policy set definition versions for all built-in policy set + * definitions. + * @param options The options parameters. + */ + listAllBuiltins( + options?: PolicySetDefinitionVersionsListAllBuiltinsOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { options }, + listAllBuiltinsOperationSpec, + ); + } + + /** + * This operation lists all the policy set definition versions for all policy set definitions at the + * management group scope. + * @param managementGroupName The name of the management group. The name is case insensitive. + * @param options The options parameters. + */ + listAllAtManagementGroup( + managementGroupName: string, + options?: PolicySetDefinitionVersionsListAllAtManagementGroupOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { managementGroupName, options }, + listAllAtManagementGroupOperationSpec, + ); + } + + /** + * This operation lists all the policy set definition versions for all policy set definitions within a + * subscription. + * @param options The options parameters. + */ + listAll( + options?: PolicySetDefinitionVersionsListAllOptionalParams, + ): Promise { + return this.client.sendOperationRequest({ options }, listAllOperationSpec); + } + + /** + * This operation creates or updates a policy set definition version in the given subscription with the + * given name and version. + * @param parameters The policy set definition properties. + * @param options The options parameters. + */ + createOrUpdate( + parameters: PolicySetDefinitionVersion, + options?: PolicySetDefinitionVersionsCreateOrUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { parameters, options }, + createOrUpdateOperationSpec, + ); + } + + /** + * This operation deletes the policy set definition version in the given subscription with the given + * name and version. + * @param options The options parameters. + */ + delete( + options?: PolicySetDefinitionVersionsDeleteOptionalParams, + ): Promise { + return this.client.sendOperationRequest({ options }, deleteOperationSpec); + } + + /** + * This operation retrieves the policy set definition version in the given subscription with the given + * name and version. + * @param options The options parameters. + */ + get( + options?: PolicySetDefinitionVersionsGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest({ options }, getOperationSpec); + } + + /** + * This operation retrieves the built-in policy set definition version with the given name and version. + * @param options The options parameters. + */ + getBuiltIn( + options?: PolicySetDefinitionVersionsGetBuiltInOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { options }, + getBuiltInOperationSpec, + ); + } + + /** + * This operation retrieves a list of all the policy set definition versions for the given policy set + * definition. + * @param options The options parameters. + */ + private _list( + options?: PolicySetDefinitionVersionsListOptionalParams, + ): Promise { + return this.client.sendOperationRequest({ options }, listOperationSpec); + } + + /** + * This operation retrieves a list of all the built-in policy set definition versions for the given + * built-in policy set definition. + * @param options The options parameters. + */ + private _listBuiltIn( + options?: PolicySetDefinitionVersionsListBuiltInOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { options }, + listBuiltInOperationSpec, + ); + } + + /** + * This operation creates or updates a policy set definition version in the given management group with + * the given name and version. + * @param managementGroupName The name of the management group. The name is case insensitive. + * @param parameters The policy set definition version properties. + * @param options The options parameters. + */ + createOrUpdateAtManagementGroup( + managementGroupName: string, + parameters: PolicySetDefinitionVersion, + options?: PolicySetDefinitionVersionsCreateOrUpdateAtManagementGroupOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { managementGroupName, parameters, options }, + createOrUpdateAtManagementGroupOperationSpec, + ); + } + + /** + * This operation deletes the policy set definition version in the given management group with the + * given name and version. + * @param managementGroupName The name of the management group. The name is case insensitive. + * @param options The options parameters. + */ + deleteAtManagementGroup( + managementGroupName: string, + options?: PolicySetDefinitionVersionsDeleteAtManagementGroupOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { managementGroupName, options }, + deleteAtManagementGroupOperationSpec, + ); + } + + /** + * This operation retrieves the policy set definition version in the given management group with the + * given name and version. + * @param managementGroupName The name of the management group. The name is case insensitive. + * @param options The options parameters. + */ + getAtManagementGroup( + managementGroupName: string, + options?: PolicySetDefinitionVersionsGetAtManagementGroupOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { managementGroupName, options }, + getAtManagementGroupOperationSpec, + ); + } + + /** + * This operation retrieves a list of all the policy set definition versions for the given policy set + * definition in a given management group. + * @param managementGroupName The name of the management group. The name is case insensitive. + * @param options The options parameters. + */ + private _listByManagementGroup( + managementGroupName: string, + options?: PolicySetDefinitionVersionsListByManagementGroupOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { managementGroupName, options }, + listByManagementGroupOperationSpec, + ); + } + + /** + * ListNext + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + nextLink: string, + options?: PolicySetDefinitionVersionsListNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { nextLink, options }, + listNextOperationSpec, + ); + } + + /** + * ListBuiltInNext + * @param nextLink The nextLink from the previous successful call to the ListBuiltIn method. + * @param options The options parameters. + */ + private _listBuiltInNext( + nextLink: string, + options?: PolicySetDefinitionVersionsListBuiltInNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { nextLink, options }, + listBuiltInNextOperationSpec, + ); + } + + /** + * ListByManagementGroupNext + * @param managementGroupName The name of the management group. The name is case insensitive. + * @param nextLink The nextLink from the previous successful call to the ListByManagementGroup method. + * @param options The options parameters. + */ + private _listByManagementGroupNext( + managementGroupName: string, + nextLink: string, + options?: PolicySetDefinitionVersionsListByManagementGroupNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { managementGroupName, nextLink, options }, + listByManagementGroupNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listAllBuiltinsOperationSpec: coreClient.OperationSpec = { + path: "/providers/Microsoft.Authorization/listPolicySetDefinitionVersions", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.PolicySetDefinitionVersionListResult, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + queryParameters: [Parameters.apiVersion1], + urlParameters: [Parameters.$host], + headerParameters: [Parameters.accept], + serializer, +}; +const listAllAtManagementGroupOperationSpec: coreClient.OperationSpec = { + path: "/providers/Microsoft.Management/managementGroups/{managementGroupName}/providers/Microsoft.Authorization/listPolicySetDefinitionVersions", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.PolicySetDefinitionVersionListResult, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + queryParameters: [Parameters.apiVersion1], + urlParameters: [Parameters.$host, Parameters.managementGroupName], + headerParameters: [Parameters.accept], + serializer, +}; +const listAllOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/listPolicySetDefinitionVersions", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.PolicySetDefinitionVersionListResult, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + queryParameters: [Parameters.apiVersion1], + urlParameters: [Parameters.$host, Parameters.subscriptionId], + headerParameters: [Parameters.accept], + serializer, +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}/versions/{policyDefinitionVersion}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.PolicySetDefinitionVersion, + }, + 201: { + bodyMapper: Mappers.PolicySetDefinitionVersion, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + requestBody: Parameters.parameters3, + queryParameters: [Parameters.apiVersion1], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.policyDefinitionVersion, + Parameters.policySetDefinitionName1, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}/versions/{policyDefinitionVersion}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + queryParameters: [Parameters.apiVersion1], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.policyDefinitionVersion, + Parameters.policySetDefinitionName1, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}/versions/{policyDefinitionVersion}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PolicySetDefinitionVersion, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + queryParameters: [Parameters.apiVersion1], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.policyDefinitionVersion, + Parameters.policySetDefinitionName1, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getBuiltInOperationSpec: coreClient.OperationSpec = { + path: "/providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}/versions/{policyDefinitionVersion}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PolicySetDefinitionVersion, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + queryParameters: [Parameters.apiVersion1], + urlParameters: [ + Parameters.$host, + Parameters.policyDefinitionVersion, + Parameters.policySetDefinitionName1, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}/versions", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PolicySetDefinitionVersionListResult, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + queryParameters: [Parameters.apiVersion1, Parameters.top], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.policySetDefinitionName1, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listBuiltInOperationSpec: coreClient.OperationSpec = { + path: "/providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}/versions", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PolicySetDefinitionVersionListResult, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + queryParameters: [Parameters.apiVersion1, Parameters.top], + urlParameters: [Parameters.$host, Parameters.policySetDefinitionName1], + headerParameters: [Parameters.accept], + serializer, +}; +const createOrUpdateAtManagementGroupOperationSpec: coreClient.OperationSpec = { + path: "/providers/Microsoft.Management/managementGroups/{managementGroupName}/providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}/versions/{policyDefinitionVersion}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.PolicySetDefinitionVersion, + }, + 201: { + bodyMapper: Mappers.PolicySetDefinitionVersion, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + requestBody: Parameters.parameters3, + queryParameters: [Parameters.apiVersion1], + urlParameters: [ + Parameters.$host, + Parameters.managementGroupName, + Parameters.policyDefinitionVersion, + Parameters.policySetDefinitionName1, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const deleteAtManagementGroupOperationSpec: coreClient.OperationSpec = { + path: "/providers/Microsoft.Management/managementGroups/{managementGroupName}/providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}/versions/{policyDefinitionVersion}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + queryParameters: [Parameters.apiVersion1], + urlParameters: [ + Parameters.$host, + Parameters.managementGroupName, + Parameters.policyDefinitionVersion, + Parameters.policySetDefinitionName1, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getAtManagementGroupOperationSpec: coreClient.OperationSpec = { + path: "/providers/Microsoft.Management/managementGroups/{managementGroupName}/providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}/versions/{policyDefinitionVersion}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PolicySetDefinitionVersion, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + queryParameters: [Parameters.apiVersion1], + urlParameters: [ + Parameters.$host, + Parameters.managementGroupName, + Parameters.policyDefinitionVersion, + Parameters.policySetDefinitionName1, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listByManagementGroupOperationSpec: coreClient.OperationSpec = { + path: "/providers/Microsoft.Management/managementGroups/{managementGroupName}/providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}/versions", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PolicySetDefinitionVersionListResult, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + queryParameters: [Parameters.apiVersion1, Parameters.top], + urlParameters: [ + Parameters.$host, + Parameters.managementGroupName, + Parameters.policySetDefinitionName1, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PolicySetDefinitionVersionListResult, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.nextLink, + Parameters.subscriptionId, + Parameters.policySetDefinitionName1, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listBuiltInNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PolicySetDefinitionVersionListResult, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.nextLink, + Parameters.policySetDefinitionName1, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listByManagementGroupNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PolicySetDefinitionVersionListResult, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.nextLink, + Parameters.managementGroupName, + Parameters.policySetDefinitionName1, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/policy/arm-policy/src/operations/policySetDefinitions.ts b/sdk/policy/arm-policy/src/operations/policySetDefinitions.ts index 0a2a26cd3d2d4..9198581a4d823 100644 --- a/sdk/policy/arm-policy/src/operations/policySetDefinitions.ts +++ b/sdk/policy/arm-policy/src/operations/policySetDefinitions.ts @@ -38,7 +38,7 @@ import { PolicySetDefinitionsGetAtManagementGroupResponse, PolicySetDefinitionsListNextResponse, PolicySetDefinitionsListBuiltInNextResponse, - PolicySetDefinitionsListByManagementGroupNextResponse + PolicySetDefinitionsListByManagementGroupNextResponse, } from "../models"; /// @@ -68,7 +68,7 @@ export class PolicySetDefinitionsImpl implements PolicySetDefinitions { * @param options The options parameters. */ public list( - options?: PolicySetDefinitionsListOptionalParams + options?: PolicySetDefinitionsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(options); return { @@ -83,13 +83,13 @@ export class PolicySetDefinitionsImpl implements PolicySetDefinitions { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(options, settings); - } + }, }; } private async *listPagingPage( options?: PolicySetDefinitionsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: PolicySetDefinitionsListResponse; let continuationToken = settings?.continuationToken; @@ -110,7 +110,7 @@ export class PolicySetDefinitionsImpl implements PolicySetDefinitions { } private async *listPagingAll( - options?: PolicySetDefinitionsListOptionalParams + options?: PolicySetDefinitionsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(options)) { yield* page; @@ -124,7 +124,7 @@ export class PolicySetDefinitionsImpl implements PolicySetDefinitions { * @param options The options parameters. */ public listBuiltIn( - options?: PolicySetDefinitionsListBuiltInOptionalParams + options?: PolicySetDefinitionsListBuiltInOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listBuiltInPagingAll(options); return { @@ -139,13 +139,13 @@ export class PolicySetDefinitionsImpl implements PolicySetDefinitions { throw new Error("maxPageSize is not supported by this operation."); } return this.listBuiltInPagingPage(options, settings); - } + }, }; } private async *listBuiltInPagingPage( options?: PolicySetDefinitionsListBuiltInOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: PolicySetDefinitionsListBuiltInResponse; let continuationToken = settings?.continuationToken; @@ -166,7 +166,7 @@ export class PolicySetDefinitionsImpl implements PolicySetDefinitions { } private async *listBuiltInPagingAll( - options?: PolicySetDefinitionsListBuiltInOptionalParams + options?: PolicySetDefinitionsListBuiltInOptionalParams, ): AsyncIterableIterator { for await (const page of this.listBuiltInPagingPage(options)) { yield* page; @@ -189,11 +189,11 @@ export class PolicySetDefinitionsImpl implements PolicySetDefinitions { */ public listByManagementGroup( managementGroupId: string, - options?: PolicySetDefinitionsListByManagementGroupOptionalParams + options?: PolicySetDefinitionsListByManagementGroupOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByManagementGroupPagingAll( managementGroupId, - options + options, ); return { next() { @@ -209,16 +209,16 @@ export class PolicySetDefinitionsImpl implements PolicySetDefinitions { return this.listByManagementGroupPagingPage( managementGroupId, options, - settings + settings, ); - } + }, }; } private async *listByManagementGroupPagingPage( managementGroupId: string, options?: PolicySetDefinitionsListByManagementGroupOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: PolicySetDefinitionsListByManagementGroupResponse; let continuationToken = settings?.continuationToken; @@ -233,7 +233,7 @@ export class PolicySetDefinitionsImpl implements PolicySetDefinitions { result = await this._listByManagementGroupNext( managementGroupId, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -244,11 +244,11 @@ export class PolicySetDefinitionsImpl implements PolicySetDefinitions { private async *listByManagementGroupPagingAll( managementGroupId: string, - options?: PolicySetDefinitionsListByManagementGroupOptionalParams + options?: PolicySetDefinitionsListByManagementGroupOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByManagementGroupPagingPage( managementGroupId, - options + options, )) { yield* page; } @@ -264,11 +264,11 @@ export class PolicySetDefinitionsImpl implements PolicySetDefinitions { createOrUpdate( policySetDefinitionName: string, parameters: PolicySetDefinition, - options?: PolicySetDefinitionsCreateOrUpdateOptionalParams + options?: PolicySetDefinitionsCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { policySetDefinitionName, parameters, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -279,11 +279,11 @@ export class PolicySetDefinitionsImpl implements PolicySetDefinitions { */ delete( policySetDefinitionName: string, - options?: PolicySetDefinitionsDeleteOptionalParams + options?: PolicySetDefinitionsDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { policySetDefinitionName, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -294,11 +294,11 @@ export class PolicySetDefinitionsImpl implements PolicySetDefinitions { */ get( policySetDefinitionName: string, - options?: PolicySetDefinitionsGetOptionalParams + options?: PolicySetDefinitionsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { policySetDefinitionName, options }, - getOperationSpec + getOperationSpec, ); } @@ -309,11 +309,11 @@ export class PolicySetDefinitionsImpl implements PolicySetDefinitions { */ getBuiltIn( policySetDefinitionName: string, - options?: PolicySetDefinitionsGetBuiltInOptionalParams + options?: PolicySetDefinitionsGetBuiltInOptionalParams, ): Promise { return this.client.sendOperationRequest( { policySetDefinitionName, options }, - getBuiltInOperationSpec + getBuiltInOperationSpec, ); } @@ -331,7 +331,7 @@ export class PolicySetDefinitionsImpl implements PolicySetDefinitions { * @param options The options parameters. */ private _list( - options?: PolicySetDefinitionsListOptionalParams + options?: PolicySetDefinitionsListOptionalParams, ): Promise { return this.client.sendOperationRequest({ options }, listOperationSpec); } @@ -343,66 +343,66 @@ export class PolicySetDefinitionsImpl implements PolicySetDefinitions { * @param options The options parameters. */ private _listBuiltIn( - options?: PolicySetDefinitionsListBuiltInOptionalParams + options?: PolicySetDefinitionsListBuiltInOptionalParams, ): Promise { return this.client.sendOperationRequest( { options }, - listBuiltInOperationSpec + listBuiltInOperationSpec, ); } /** * This operation creates or updates a policy set definition in the given management group with the * given name. - * @param policySetDefinitionName The name of the policy set definition to create. * @param managementGroupId The ID of the management group. + * @param policySetDefinitionName The name of the policy set definition to create. * @param parameters The policy set definition properties. * @param options The options parameters. */ createOrUpdateAtManagementGroup( - policySetDefinitionName: string, managementGroupId: string, + policySetDefinitionName: string, parameters: PolicySetDefinition, - options?: PolicySetDefinitionsCreateOrUpdateAtManagementGroupOptionalParams + options?: PolicySetDefinitionsCreateOrUpdateAtManagementGroupOptionalParams, ): Promise { return this.client.sendOperationRequest( - { policySetDefinitionName, managementGroupId, parameters, options }, - createOrUpdateAtManagementGroupOperationSpec + { managementGroupId, policySetDefinitionName, parameters, options }, + createOrUpdateAtManagementGroupOperationSpec, ); } /** * This operation deletes the policy set definition in the given management group with the given name. - * @param policySetDefinitionName The name of the policy set definition to delete. * @param managementGroupId The ID of the management group. + * @param policySetDefinitionName The name of the policy set definition to delete. * @param options The options parameters. */ deleteAtManagementGroup( - policySetDefinitionName: string, managementGroupId: string, - options?: PolicySetDefinitionsDeleteAtManagementGroupOptionalParams + policySetDefinitionName: string, + options?: PolicySetDefinitionsDeleteAtManagementGroupOptionalParams, ): Promise { return this.client.sendOperationRequest( - { policySetDefinitionName, managementGroupId, options }, - deleteAtManagementGroupOperationSpec + { managementGroupId, policySetDefinitionName, options }, + deleteAtManagementGroupOperationSpec, ); } /** * This operation retrieves the policy set definition in the given management group with the given * name. - * @param policySetDefinitionName The name of the policy set definition to get. * @param managementGroupId The ID of the management group. + * @param policySetDefinitionName The name of the policy set definition to get. * @param options The options parameters. */ getAtManagementGroup( - policySetDefinitionName: string, managementGroupId: string, - options?: PolicySetDefinitionsGetAtManagementGroupOptionalParams + policySetDefinitionName: string, + options?: PolicySetDefinitionsGetAtManagementGroupOptionalParams, ): Promise { return this.client.sendOperationRequest( - { policySetDefinitionName, managementGroupId, options }, - getAtManagementGroupOperationSpec + { managementGroupId, policySetDefinitionName, options }, + getAtManagementGroupOperationSpec, ); } @@ -422,11 +422,11 @@ export class PolicySetDefinitionsImpl implements PolicySetDefinitions { */ private _listByManagementGroup( managementGroupId: string, - options?: PolicySetDefinitionsListByManagementGroupOptionalParams + options?: PolicySetDefinitionsListByManagementGroupOptionalParams, ): Promise { return this.client.sendOperationRequest( { managementGroupId, options }, - listByManagementGroupOperationSpec + listByManagementGroupOperationSpec, ); } @@ -437,11 +437,11 @@ export class PolicySetDefinitionsImpl implements PolicySetDefinitions { */ private _listNext( nextLink: string, - options?: PolicySetDefinitionsListNextOptionalParams + options?: PolicySetDefinitionsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } @@ -452,11 +452,11 @@ export class PolicySetDefinitionsImpl implements PolicySetDefinitions { */ private _listBuiltInNext( nextLink: string, - options?: PolicySetDefinitionsListBuiltInNextOptionalParams + options?: PolicySetDefinitionsListBuiltInNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listBuiltInNextOperationSpec + listBuiltInNextOperationSpec, ); } @@ -469,11 +469,11 @@ export class PolicySetDefinitionsImpl implements PolicySetDefinitions { private _listByManagementGroupNext( managementGroupId: string, nextLink: string, - options?: PolicySetDefinitionsListByManagementGroupNextOptionalParams + options?: PolicySetDefinitionsListByManagementGroupNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { managementGroupId, nextLink, options }, - listByManagementGroupNextOperationSpec + listByManagementGroupNextOperationSpec, ); } } @@ -481,256 +481,247 @@ export class PolicySetDefinitionsImpl implements PolicySetDefinitions { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.PolicySetDefinition + bodyMapper: Mappers.PolicySetDefinition, }, 201: { - bodyMapper: Mappers.PolicySetDefinition + bodyMapper: Mappers.PolicySetDefinition, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, - requestBody: Parameters.parameters3, + requestBody: Parameters.parameters2, queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.policySetDefinitionName + Parameters.policySetDefinitionName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.policySetDefinitionName + Parameters.policySetDefinitionName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PolicySetDefinition + bodyMapper: Mappers.PolicySetDefinition, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.policySetDefinitionName + Parameters.policySetDefinitionName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getBuiltInOperationSpec: coreClient.OperationSpec = { - path: - "/providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}", + path: "/providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PolicySetDefinition + bodyMapper: Mappers.PolicySetDefinition, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion1], urlParameters: [Parameters.$host, Parameters.policySetDefinitionName], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policySetDefinitions", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policySetDefinitions", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PolicySetDefinitionListResult + bodyMapper: Mappers.PolicySetDefinitionListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.filter, Parameters.apiVersion1, Parameters.top], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const listBuiltInOperationSpec: coreClient.OperationSpec = { path: "/providers/Microsoft.Authorization/policySetDefinitions", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PolicySetDefinitionListResult + bodyMapper: Mappers.PolicySetDefinitionListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.filter, Parameters.apiVersion1, Parameters.top], urlParameters: [Parameters.$host], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateAtManagementGroupOperationSpec: coreClient.OperationSpec = { - path: - "/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}", + path: "/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.PolicySetDefinition + bodyMapper: Mappers.PolicySetDefinition, }, 201: { - bodyMapper: Mappers.PolicySetDefinition + bodyMapper: Mappers.PolicySetDefinition, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, - requestBody: Parameters.parameters3, + requestBody: Parameters.parameters2, queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.managementGroupId, - Parameters.policySetDefinitionName + Parameters.policySetDefinitionName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteAtManagementGroupOperationSpec: coreClient.OperationSpec = { - path: - "/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}", + path: "/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.managementGroupId, - Parameters.policySetDefinitionName + Parameters.policySetDefinitionName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getAtManagementGroupOperationSpec: coreClient.OperationSpec = { - path: - "/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}", + path: "/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PolicySetDefinition + bodyMapper: Mappers.PolicySetDefinition, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.managementGroupId, - Parameters.policySetDefinitionName + Parameters.policySetDefinitionName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByManagementGroupOperationSpec: coreClient.OperationSpec = { - path: - "/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Authorization/policySetDefinitions", + path: "/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Authorization/policySetDefinitions", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PolicySetDefinitionListResult + bodyMapper: Mappers.PolicySetDefinitionListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.filter, Parameters.apiVersion1, Parameters.top], urlParameters: [Parameters.$host, Parameters.managementGroupId], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PolicySetDefinitionListResult + bodyMapper: Mappers.PolicySetDefinitionListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.nextLink, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listBuiltInNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PolicySetDefinitionListResult + bodyMapper: Mappers.PolicySetDefinitionListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [Parameters.$host, Parameters.nextLink], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByManagementGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PolicySetDefinitionListResult + bodyMapper: Mappers.PolicySetDefinitionListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.nextLink, - Parameters.managementGroupId + Parameters.managementGroupId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/policy/arm-policy/src/operations/variableValues.ts b/sdk/policy/arm-policy/src/operations/variableValues.ts new file mode 100644 index 0000000000000..d6853dff0490d --- /dev/null +++ b/sdk/policy/arm-policy/src/operations/variableValues.ts @@ -0,0 +1,607 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { VariableValues } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { PolicyClient } from "../policyClient"; +import { + VariableValue, + VariableValuesListNextOptionalParams, + VariableValuesListOptionalParams, + VariableValuesListResponse, + VariableValuesListForManagementGroupNextOptionalParams, + VariableValuesListForManagementGroupOptionalParams, + VariableValuesListForManagementGroupResponse, + VariableValuesDeleteOptionalParams, + VariableValuesCreateOrUpdateOptionalParams, + VariableValuesCreateOrUpdateResponse, + VariableValuesGetOptionalParams, + VariableValuesGetResponse, + VariableValuesDeleteAtManagementGroupOptionalParams, + VariableValuesCreateOrUpdateAtManagementGroupOptionalParams, + VariableValuesCreateOrUpdateAtManagementGroupResponse, + VariableValuesGetAtManagementGroupOptionalParams, + VariableValuesGetAtManagementGroupResponse, + VariableValuesListNextResponse, + VariableValuesListForManagementGroupNextResponse, +} from "../models"; + +/// +/** Class containing VariableValues operations. */ +export class VariableValuesImpl implements VariableValues { + private readonly client: PolicyClient; + + /** + * Initialize a new instance of the class VariableValues class. + * @param client Reference to the service client + */ + constructor(client: PolicyClient) { + this.client = client; + } + + /** + * This operation retrieves the list of all variable values associated with the given variable that is + * at a subscription level. + * @param variableName The name of the variable to operate on. + * @param options The options parameters. + */ + public list( + variableName: string, + options?: VariableValuesListOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(variableName, 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.listPagingPage(variableName, options, settings); + }, + }; + } + + private async *listPagingPage( + variableName: string, + options?: VariableValuesListOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: VariableValuesListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list(variableName, options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext(variableName, continuationToken, options); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + variableName: string, + options?: VariableValuesListOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listPagingPage(variableName, options)) { + yield* page; + } + } + + /** + * This operation retrieves the list of all variable values applicable the variable indicated at the + * management group scope. + * @param managementGroupId The ID of the management group. + * @param variableName The name of the variable to operate on. + * @param options The options parameters. + */ + public listForManagementGroup( + managementGroupId: string, + variableName: string, + options?: VariableValuesListForManagementGroupOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listForManagementGroupPagingAll( + managementGroupId, + variableName, + 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.listForManagementGroupPagingPage( + managementGroupId, + variableName, + options, + settings, + ); + }, + }; + } + + private async *listForManagementGroupPagingPage( + managementGroupId: string, + variableName: string, + options?: VariableValuesListForManagementGroupOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: VariableValuesListForManagementGroupResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listForManagementGroup( + managementGroupId, + variableName, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listForManagementGroupNext( + managementGroupId, + variableName, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listForManagementGroupPagingAll( + managementGroupId: string, + variableName: string, + options?: VariableValuesListForManagementGroupOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listForManagementGroupPagingPage( + managementGroupId, + variableName, + options, + )) { + yield* page; + } + } + + /** + * This operation deletes a variable value, given its name, the subscription it was created in, and the + * variable it belongs to. The scope of a variable value is the part of its ID preceding + * '/providers/Microsoft.Authorization/variables/{variableName}'. + * @param variableName The name of the variable to operate on. + * @param variableValueName The name of the variable value to operate on. + * @param options The options parameters. + */ + delete( + variableName: string, + variableValueName: string, + options?: VariableValuesDeleteOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { variableName, variableValueName, options }, + deleteOperationSpec, + ); + } + + /** + * This operation creates or updates a variable value with the given subscription and name for a given + * variable. Variable values are scoped to the variable for which they are created for. + * @param variableName The name of the variable to operate on. + * @param variableValueName The name of the variable value to operate on. + * @param parameters Parameters for the variable value. + * @param options The options parameters. + */ + createOrUpdate( + variableName: string, + variableValueName: string, + parameters: VariableValue, + options?: VariableValuesCreateOrUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { variableName, variableValueName, parameters, options }, + createOrUpdateOperationSpec, + ); + } + + /** + * This operation retrieves a single variable value; given its name, subscription it was created at and + * the variable it's created for. + * @param variableName The name of the variable to operate on. + * @param variableValueName The name of the variable value to operate on. + * @param options The options parameters. + */ + get( + variableName: string, + variableValueName: string, + options?: VariableValuesGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { variableName, variableValueName, options }, + getOperationSpec, + ); + } + + /** + * This operation retrieves the list of all variable values associated with the given variable that is + * at a subscription level. + * @param variableName The name of the variable to operate on. + * @param options The options parameters. + */ + private _list( + variableName: string, + options?: VariableValuesListOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { variableName, options }, + listOperationSpec, + ); + } + + /** + * This operation retrieves the list of all variable values applicable the variable indicated at the + * management group scope. + * @param managementGroupId The ID of the management group. + * @param variableName The name of the variable to operate on. + * @param options The options parameters. + */ + private _listForManagementGroup( + managementGroupId: string, + variableName: string, + options?: VariableValuesListForManagementGroupOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { managementGroupId, variableName, options }, + listForManagementGroupOperationSpec, + ); + } + + /** + * This operation deletes a variable value, given its name, the management group it was created in, and + * the variable it belongs to. The scope of a variable value is the part of its ID preceding + * '/providers/Microsoft.Authorization/variables/{variableName}'. + * @param managementGroupId The ID of the management group. + * @param variableName The name of the variable to operate on. + * @param variableValueName The name of the variable value to operate on. + * @param options The options parameters. + */ + deleteAtManagementGroup( + managementGroupId: string, + variableName: string, + variableValueName: string, + options?: VariableValuesDeleteAtManagementGroupOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { managementGroupId, variableName, variableValueName, options }, + deleteAtManagementGroupOperationSpec, + ); + } + + /** + * This operation creates or updates a variable value with the given management group and name for a + * given variable. Variable values are scoped to the variable for which they are created for. + * @param managementGroupId The ID of the management group. + * @param variableName The name of the variable to operate on. + * @param variableValueName The name of the variable value to operate on. + * @param parameters Parameters for the variable value. + * @param options The options parameters. + */ + createOrUpdateAtManagementGroup( + managementGroupId: string, + variableName: string, + variableValueName: string, + parameters: VariableValue, + options?: VariableValuesCreateOrUpdateAtManagementGroupOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + managementGroupId, + variableName, + variableValueName, + parameters, + options, + }, + createOrUpdateAtManagementGroupOperationSpec, + ); + } + + /** + * This operation retrieves a single variable value; given its name, management group it was created + * at and the variable it's created for. + * @param managementGroupId The ID of the management group. + * @param variableName The name of the variable to operate on. + * @param variableValueName The name of the variable value to operate on. + * @param options The options parameters. + */ + getAtManagementGroup( + managementGroupId: string, + variableName: string, + variableValueName: string, + options?: VariableValuesGetAtManagementGroupOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { managementGroupId, variableName, variableValueName, options }, + getAtManagementGroupOperationSpec, + ); + } + + /** + * ListNext + * @param variableName The name of the variable to operate on. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + variableName: string, + nextLink: string, + options?: VariableValuesListNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { variableName, nextLink, options }, + listNextOperationSpec, + ); + } + + /** + * ListForManagementGroupNext + * @param managementGroupId The ID of the management group. + * @param variableName The name of the variable to operate on. + * @param nextLink The nextLink from the previous successful call to the ListForManagementGroup method. + * @param options The options parameters. + */ + private _listForManagementGroupNext( + managementGroupId: string, + variableName: string, + nextLink: string, + options?: VariableValuesListForManagementGroupNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { managementGroupId, variableName, nextLink, options }, + listForManagementGroupNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/variables/{variableName}/values/{variableValueName}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + queryParameters: [Parameters.apiVersion3], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.variableName, + Parameters.variableValueName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/variables/{variableName}/values/{variableValueName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.VariableValue, + }, + 201: { + bodyMapper: Mappers.VariableValue, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + requestBody: Parameters.parameters9, + queryParameters: [Parameters.apiVersion3], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.variableName, + Parameters.variableValueName, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/variables/{variableName}/values/{variableValueName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.VariableValue, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + queryParameters: [Parameters.apiVersion3], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.variableName, + Parameters.variableValueName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/variables/{variableName}/values", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.VariableValueListResult, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + queryParameters: [Parameters.apiVersion3], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.variableName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listForManagementGroupOperationSpec: coreClient.OperationSpec = { + path: "/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Authorization/variables/{variableName}/values", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.VariableValueListResult, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + queryParameters: [Parameters.apiVersion3], + urlParameters: [ + Parameters.$host, + Parameters.managementGroupId, + Parameters.variableName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const deleteAtManagementGroupOperationSpec: coreClient.OperationSpec = { + path: "/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Authorization/variables/{variableName}/values/{variableValueName}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + queryParameters: [Parameters.apiVersion3], + urlParameters: [ + Parameters.$host, + Parameters.managementGroupId, + Parameters.variableName, + Parameters.variableValueName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const createOrUpdateAtManagementGroupOperationSpec: coreClient.OperationSpec = { + path: "/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Authorization/variables/{variableName}/values/{variableValueName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.VariableValue, + }, + 201: { + bodyMapper: Mappers.VariableValue, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + requestBody: Parameters.parameters9, + queryParameters: [Parameters.apiVersion3], + urlParameters: [ + Parameters.$host, + Parameters.managementGroupId, + Parameters.variableName, + Parameters.variableValueName, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const getAtManagementGroupOperationSpec: coreClient.OperationSpec = { + path: "/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Authorization/variables/{variableName}/values/{variableValueName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.VariableValue, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + queryParameters: [Parameters.apiVersion3], + urlParameters: [ + Parameters.$host, + Parameters.managementGroupId, + Parameters.variableName, + Parameters.variableValueName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.VariableValueListResult, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.nextLink, + Parameters.subscriptionId, + Parameters.variableName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listForManagementGroupNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.VariableValueListResult, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.nextLink, + Parameters.managementGroupId, + Parameters.variableName, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/policy/arm-policy/src/operations/variables.ts b/sdk/policy/arm-policy/src/operations/variables.ts new file mode 100644 index 0000000000000..15efa95471c0a --- /dev/null +++ b/sdk/policy/arm-policy/src/operations/variables.ts @@ -0,0 +1,541 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { Variables } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { PolicyClient } from "../policyClient"; +import { + Variable, + VariablesListNextOptionalParams, + VariablesListOptionalParams, + VariablesListResponse, + VariablesListForManagementGroupNextOptionalParams, + VariablesListForManagementGroupOptionalParams, + VariablesListForManagementGroupResponse, + VariablesDeleteOptionalParams, + VariablesCreateOrUpdateOptionalParams, + VariablesCreateOrUpdateResponse, + VariablesGetOptionalParams, + VariablesGetResponse, + VariablesDeleteAtManagementGroupOptionalParams, + VariablesCreateOrUpdateAtManagementGroupOptionalParams, + VariablesCreateOrUpdateAtManagementGroupResponse, + VariablesGetAtManagementGroupOptionalParams, + VariablesGetAtManagementGroupResponse, + VariablesListNextResponse, + VariablesListForManagementGroupNextResponse, +} from "../models"; + +/// +/** Class containing Variables operations. */ +export class VariablesImpl implements Variables { + private readonly client: PolicyClient; + + /** + * Initialize a new instance of the class Variables class. + * @param client Reference to the service client + */ + constructor(client: PolicyClient) { + this.client = client; + } + + /** + * This operation retrieves the list of all variables associated with the given subscription. + * @param options The options parameters. + */ + public list( + options?: VariablesListOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(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.listPagingPage(options, settings); + }, + }; + } + + private async *listPagingPage( + options?: VariablesListOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: VariablesListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list(options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext(continuationToken, options); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + options?: VariablesListOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listPagingPage(options)) { + yield* page; + } + } + + /** + * This operation retrieves the list of all variables applicable to the management group. + * @param managementGroupId The ID of the management group. + * @param options The options parameters. + */ + public listForManagementGroup( + managementGroupId: string, + options?: VariablesListForManagementGroupOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listForManagementGroupPagingAll( + managementGroupId, + 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.listForManagementGroupPagingPage( + managementGroupId, + options, + settings, + ); + }, + }; + } + + private async *listForManagementGroupPagingPage( + managementGroupId: string, + options?: VariablesListForManagementGroupOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: VariablesListForManagementGroupResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listForManagementGroup(managementGroupId, options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listForManagementGroupNext( + managementGroupId, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listForManagementGroupPagingAll( + managementGroupId: string, + options?: VariablesListForManagementGroupOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listForManagementGroupPagingPage( + managementGroupId, + options, + )) { + yield* page; + } + } + + /** + * This operation deletes a variable, given its name and the subscription it was created in. The scope + * of a variable is the part of its ID preceding + * '/providers/Microsoft.Authorization/variables/{variableName}'. + * @param variableName The name of the variable to operate on. + * @param options The options parameters. + */ + delete( + variableName: string, + options?: VariablesDeleteOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { variableName, options }, + deleteOperationSpec, + ); + } + + /** + * This operation creates or updates a variable with the given subscription and name. Policy variables + * can only be used by a policy definition at the scope they are created or below. + * @param variableName The name of the variable to operate on. + * @param parameters Parameters for the variable. + * @param options The options parameters. + */ + createOrUpdate( + variableName: string, + parameters: Variable, + options?: VariablesCreateOrUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { variableName, parameters, options }, + createOrUpdateOperationSpec, + ); + } + + /** + * This operation retrieves a single variable, given its name and the subscription it was created at. + * @param variableName The name of the variable to operate on. + * @param options The options parameters. + */ + get( + variableName: string, + options?: VariablesGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { variableName, options }, + getOperationSpec, + ); + } + + /** + * This operation deletes a variable, given its name and the management group it was created in. The + * scope of a variable is the part of its ID preceding + * '/providers/Microsoft.Authorization/variables/{variableName}'. + * @param managementGroupId The ID of the management group. + * @param variableName The name of the variable to operate on. + * @param options The options parameters. + */ + deleteAtManagementGroup( + managementGroupId: string, + variableName: string, + options?: VariablesDeleteAtManagementGroupOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { managementGroupId, variableName, options }, + deleteAtManagementGroupOperationSpec, + ); + } + + /** + * This operation creates or updates a variable with the given management group and name. Policy + * variables can only be used by a policy definition at the scope they are created or below. + * @param managementGroupId The ID of the management group. + * @param variableName The name of the variable to operate on. + * @param parameters Parameters for the variable. + * @param options The options parameters. + */ + createOrUpdateAtManagementGroup( + managementGroupId: string, + variableName: string, + parameters: Variable, + options?: VariablesCreateOrUpdateAtManagementGroupOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { managementGroupId, variableName, parameters, options }, + createOrUpdateAtManagementGroupOperationSpec, + ); + } + + /** + * This operation retrieves a single variable, given its name and the management group it was created + * at. + * @param managementGroupId The ID of the management group. + * @param variableName The name of the variable to operate on. + * @param options The options parameters. + */ + getAtManagementGroup( + managementGroupId: string, + variableName: string, + options?: VariablesGetAtManagementGroupOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { managementGroupId, variableName, options }, + getAtManagementGroupOperationSpec, + ); + } + + /** + * This operation retrieves the list of all variables associated with the given subscription. + * @param options The options parameters. + */ + private _list( + options?: VariablesListOptionalParams, + ): Promise { + return this.client.sendOperationRequest({ options }, listOperationSpec); + } + + /** + * This operation retrieves the list of all variables applicable to the management group. + * @param managementGroupId The ID of the management group. + * @param options The options parameters. + */ + private _listForManagementGroup( + managementGroupId: string, + options?: VariablesListForManagementGroupOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { managementGroupId, options }, + listForManagementGroupOperationSpec, + ); + } + + /** + * ListNext + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + nextLink: string, + options?: VariablesListNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { nextLink, options }, + listNextOperationSpec, + ); + } + + /** + * ListForManagementGroupNext + * @param managementGroupId The ID of the management group. + * @param nextLink The nextLink from the previous successful call to the ListForManagementGroup method. + * @param options The options parameters. + */ + private _listForManagementGroupNext( + managementGroupId: string, + nextLink: string, + options?: VariablesListForManagementGroupNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { managementGroupId, nextLink, options }, + listForManagementGroupNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/variables/{variableName}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + queryParameters: [Parameters.apiVersion3], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.variableName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/variables/{variableName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.Variable, + }, + 201: { + bodyMapper: Mappers.Variable, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + requestBody: Parameters.parameters8, + queryParameters: [Parameters.apiVersion3], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.variableName, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/variables/{variableName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.Variable, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + queryParameters: [Parameters.apiVersion3], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.variableName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const deleteAtManagementGroupOperationSpec: coreClient.OperationSpec = { + path: "/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Authorization/variables/{variableName}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + queryParameters: [Parameters.apiVersion3], + urlParameters: [ + Parameters.$host, + Parameters.managementGroupId, + Parameters.variableName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const createOrUpdateAtManagementGroupOperationSpec: coreClient.OperationSpec = { + path: "/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Authorization/variables/{variableName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.Variable, + }, + 201: { + bodyMapper: Mappers.Variable, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + requestBody: Parameters.parameters8, + queryParameters: [Parameters.apiVersion3], + urlParameters: [ + Parameters.$host, + Parameters.managementGroupId, + Parameters.variableName, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const getAtManagementGroupOperationSpec: coreClient.OperationSpec = { + path: "/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Authorization/variables/{variableName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.Variable, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + queryParameters: [Parameters.apiVersion3], + urlParameters: [ + Parameters.$host, + Parameters.managementGroupId, + Parameters.variableName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/variables", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.VariableListResult, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + queryParameters: [Parameters.apiVersion3], + urlParameters: [Parameters.$host, Parameters.subscriptionId], + headerParameters: [Parameters.accept], + serializer, +}; +const listForManagementGroupOperationSpec: coreClient.OperationSpec = { + path: "/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Authorization/variables", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.VariableListResult, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + queryParameters: [Parameters.apiVersion3], + urlParameters: [Parameters.$host, Parameters.managementGroupId], + headerParameters: [Parameters.accept], + serializer, +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.VariableListResult, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.nextLink, + Parameters.subscriptionId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listForManagementGroupNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.VariableListResult, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.nextLink, + Parameters.managementGroupId, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/policy/arm-policy/src/operationsInterfaces/dataPolicyManifests.ts b/sdk/policy/arm-policy/src/operationsInterfaces/dataPolicyManifests.ts index f6c486278f947..6aaf98e959330 100644 --- a/sdk/policy/arm-policy/src/operationsInterfaces/dataPolicyManifests.ts +++ b/sdk/policy/arm-policy/src/operationsInterfaces/dataPolicyManifests.ts @@ -11,7 +11,7 @@ import { DataPolicyManifest, DataPolicyManifestsListOptionalParams, DataPolicyManifestsGetByPolicyModeOptionalParams, - DataPolicyManifestsGetByPolicyModeResponse + DataPolicyManifestsGetByPolicyModeResponse, } from "../models"; /// @@ -26,7 +26,7 @@ export interface DataPolicyManifests { * @param options The options parameters. */ list( - options?: DataPolicyManifestsListOptionalParams + options?: DataPolicyManifestsListOptionalParams, ): PagedAsyncIterableIterator; /** * This operation retrieves the data policy manifest with the given policy mode. @@ -35,6 +35,6 @@ export interface DataPolicyManifests { */ getByPolicyMode( policyMode: string, - options?: DataPolicyManifestsGetByPolicyModeOptionalParams + options?: DataPolicyManifestsGetByPolicyModeOptionalParams, ): Promise; } diff --git a/sdk/policy/arm-policy/src/operationsInterfaces/index.ts b/sdk/policy/arm-policy/src/operationsInterfaces/index.ts index eff8c4c2a63aa..7df2dc295a87c 100644 --- a/sdk/policy/arm-policy/src/operationsInterfaces/index.ts +++ b/sdk/policy/arm-policy/src/operationsInterfaces/index.ts @@ -7,7 +7,11 @@ */ export * from "./dataPolicyManifests"; -export * from "./policyAssignments"; export * from "./policyDefinitions"; +export * from "./policyDefinitionVersions"; export * from "./policySetDefinitions"; +export * from "./policySetDefinitionVersions"; +export * from "./policyAssignments"; export * from "./policyExemptions"; +export * from "./variables"; +export * from "./variableValues"; diff --git a/sdk/policy/arm-policy/src/operationsInterfaces/policyAssignments.ts b/sdk/policy/arm-policy/src/operationsInterfaces/policyAssignments.ts index 88b1af30048a5..f3faa8ecc08b7 100644 --- a/sdk/policy/arm-policy/src/operationsInterfaces/policyAssignments.ts +++ b/sdk/policy/arm-policy/src/operationsInterfaces/policyAssignments.ts @@ -29,7 +29,7 @@ import { PolicyAssignmentsGetByIdOptionalParams, PolicyAssignmentsGetByIdResponse, PolicyAssignmentsUpdateByIdOptionalParams, - PolicyAssignmentsUpdateByIdResponse + PolicyAssignmentsUpdateByIdResponse, } from "../models"; /// @@ -52,7 +52,7 @@ export interface PolicyAssignments { */ listForResourceGroup( resourceGroupName: string, - options?: PolicyAssignmentsListForResourceGroupOptionalParams + options?: PolicyAssignmentsListForResourceGroupOptionalParams, ): PagedAsyncIterableIterator; /** * This operation retrieves the list of all policy assignments associated with the specified resource @@ -92,7 +92,7 @@ export interface PolicyAssignments { parentResourcePath: string, resourceType: string, resourceName: string, - options?: PolicyAssignmentsListForResourceOptionalParams + options?: PolicyAssignmentsListForResourceOptionalParams, ): PagedAsyncIterableIterator; /** * This operation retrieves the list of all policy assignments applicable to the management group that @@ -108,7 +108,7 @@ export interface PolicyAssignments { */ listForManagementGroup( managementGroupId: string, - options?: PolicyAssignmentsListForManagementGroupOptionalParams + options?: PolicyAssignmentsListForManagementGroupOptionalParams, ): PagedAsyncIterableIterator; /** * This operation retrieves the list of all policy assignments associated with the given subscription @@ -125,7 +125,7 @@ export interface PolicyAssignments { * @param options The options parameters. */ list( - options?: PolicyAssignmentsListOptionalParams + options?: PolicyAssignmentsListOptionalParams, ): PagedAsyncIterableIterator; /** * This operation deletes a policy assignment, given its name and the scope it was created in. The @@ -142,7 +142,7 @@ export interface PolicyAssignments { delete( scope: string, policyAssignmentName: string, - options?: PolicyAssignmentsDeleteOptionalParams + options?: PolicyAssignmentsDeleteOptionalParams, ): Promise; /** * This operation creates or updates a policy assignment with the given scope and name. Policy @@ -161,7 +161,7 @@ export interface PolicyAssignments { scope: string, policyAssignmentName: string, parameters: PolicyAssignment, - options?: PolicyAssignmentsCreateOptionalParams + options?: PolicyAssignmentsCreateOptionalParams, ): Promise; /** * This operation retrieves a single policy assignment, given its name and the scope it was created at. @@ -176,7 +176,7 @@ export interface PolicyAssignments { get( scope: string, policyAssignmentName: string, - options?: PolicyAssignmentsGetOptionalParams + options?: PolicyAssignmentsGetOptionalParams, ): Promise; /** * This operation updates a policy assignment with the given scope and name. Policy assignments apply @@ -195,7 +195,7 @@ export interface PolicyAssignments { scope: string, policyAssignmentName: string, parameters: PolicyAssignmentUpdate, - options?: PolicyAssignmentsUpdateOptionalParams + options?: PolicyAssignmentsUpdateOptionalParams, ): Promise; /** * This operation deletes the policy with the given ID. Policy assignment IDs have this format: @@ -211,7 +211,7 @@ export interface PolicyAssignments { */ deleteById( policyAssignmentId: string, - options?: PolicyAssignmentsDeleteByIdOptionalParams + options?: PolicyAssignmentsDeleteByIdOptionalParams, ): Promise; /** * This operation creates or updates the policy assignment with the given ID. Policy assignments made @@ -231,7 +231,7 @@ export interface PolicyAssignments { createById( policyAssignmentId: string, parameters: PolicyAssignment, - options?: PolicyAssignmentsCreateByIdOptionalParams + options?: PolicyAssignmentsCreateByIdOptionalParams, ): Promise; /** * The operation retrieves the policy assignment with the given ID. Policy assignment IDs have this @@ -247,7 +247,7 @@ export interface PolicyAssignments { */ getById( policyAssignmentId: string, - options?: PolicyAssignmentsGetByIdOptionalParams + options?: PolicyAssignmentsGetByIdOptionalParams, ): Promise; /** * This operation updates the policy assignment with the given ID. Policy assignments made on a scope @@ -267,6 +267,6 @@ export interface PolicyAssignments { updateById( policyAssignmentId: string, parameters: PolicyAssignmentUpdate, - options?: PolicyAssignmentsUpdateByIdOptionalParams + options?: PolicyAssignmentsUpdateByIdOptionalParams, ): Promise; } diff --git a/sdk/policy/arm-policy/src/operationsInterfaces/policyDefinitionVersions.ts b/sdk/policy/arm-policy/src/operationsInterfaces/policyDefinitionVersions.ts new file mode 100644 index 0000000000000..2b0458b670e10 --- /dev/null +++ b/sdk/policy/arm-policy/src/operationsInterfaces/policyDefinitionVersions.ts @@ -0,0 +1,150 @@ +/* + * 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 { + PolicyDefinitionVersion, + PolicyDefinitionVersionsListOptionalParams, + PolicyDefinitionVersionsListBuiltInOptionalParams, + PolicyDefinitionVersionsListByManagementGroupOptionalParams, + PolicyDefinitionVersionsListAllBuiltinsOptionalParams, + PolicyDefinitionVersionsListAllBuiltinsResponse, + PolicyDefinitionVersionsListAllAtManagementGroupOptionalParams, + PolicyDefinitionVersionsListAllAtManagementGroupResponse, + PolicyDefinitionVersionsListAllOptionalParams, + PolicyDefinitionVersionsListAllResponse, + PolicyDefinitionVersionsCreateOrUpdateOptionalParams, + PolicyDefinitionVersionsCreateOrUpdateResponse, + PolicyDefinitionVersionsDeleteOptionalParams, + PolicyDefinitionVersionsGetOptionalParams, + PolicyDefinitionVersionsGetResponse, + PolicyDefinitionVersionsGetBuiltInOptionalParams, + PolicyDefinitionVersionsGetBuiltInResponse, + PolicyDefinitionVersionsCreateOrUpdateAtManagementGroupOptionalParams, + PolicyDefinitionVersionsCreateOrUpdateAtManagementGroupResponse, + PolicyDefinitionVersionsDeleteAtManagementGroupOptionalParams, + PolicyDefinitionVersionsGetAtManagementGroupOptionalParams, + PolicyDefinitionVersionsGetAtManagementGroupResponse, +} from "../models"; + +/// +/** Interface representing a PolicyDefinitionVersions. */ +export interface PolicyDefinitionVersions { + /** + * This operation retrieves a list of all the policy definition versions for the given policy + * definition. + * @param options The options parameters. + */ + list( + options?: PolicyDefinitionVersionsListOptionalParams, + ): PagedAsyncIterableIterator; + /** + * This operation retrieves a list of all the built-in policy definition versions for the given policy + * definition. + * @param options The options parameters. + */ + listBuiltIn( + options?: PolicyDefinitionVersionsListBuiltInOptionalParams, + ): PagedAsyncIterableIterator; + /** + * This operation retrieves a list of all the policy definition versions for the given policy + * definition in the given management group. + * @param managementGroupName The name of the management group. The name is case insensitive. + * @param options The options parameters. + */ + listByManagementGroup( + managementGroupName: string, + options?: PolicyDefinitionVersionsListByManagementGroupOptionalParams, + ): PagedAsyncIterableIterator; + /** + * This operation lists all the built-in policy definition versions for all built-in policy + * definitions. + * @param options The options parameters. + */ + listAllBuiltins( + options?: PolicyDefinitionVersionsListAllBuiltinsOptionalParams, + ): Promise; + /** + * This operation lists all the policy definition versions for all policy definitions at the management + * group scope. + * @param managementGroupName The name of the management group. The name is case insensitive. + * @param options The options parameters. + */ + listAllAtManagementGroup( + managementGroupName: string, + options?: PolicyDefinitionVersionsListAllAtManagementGroupOptionalParams, + ): Promise; + /** + * This operation lists all the policy definition versions for all policy definitions within a + * subscription. + * @param options The options parameters. + */ + listAll( + options?: PolicyDefinitionVersionsListAllOptionalParams, + ): Promise; + /** + * This operation creates or updates a policy definition in the given subscription with the given name. + * @param parameters The policy definition properties. + * @param options The options parameters. + */ + createOrUpdate( + parameters: PolicyDefinitionVersion, + options?: PolicyDefinitionVersionsCreateOrUpdateOptionalParams, + ): Promise; + /** + * This operation deletes the policy definition version in the given subscription with the given name. + * @param options The options parameters. + */ + delete(options?: PolicyDefinitionVersionsDeleteOptionalParams): Promise; + /** + * This operation retrieves the policy definition version in the given subscription with the given + * name. + * @param options The options parameters. + */ + get( + options?: PolicyDefinitionVersionsGetOptionalParams, + ): Promise; + /** + * This operation retrieves the built-in policy definition version with the given name. + * @param options The options parameters. + */ + getBuiltIn( + options?: PolicyDefinitionVersionsGetBuiltInOptionalParams, + ): Promise; + /** + * This operation creates or updates a policy definition version in the given management group with the + * given name. + * @param managementGroupName The name of the management group. The name is case insensitive. + * @param parameters The policy definition properties. + * @param options The options parameters. + */ + createOrUpdateAtManagementGroup( + managementGroupName: string, + parameters: PolicyDefinitionVersion, + options?: PolicyDefinitionVersionsCreateOrUpdateAtManagementGroupOptionalParams, + ): Promise; + /** + * This operation deletes the policy definition in the given management group with the given name. + * @param managementGroupName The name of the management group. The name is case insensitive. + * @param options The options parameters. + */ + deleteAtManagementGroup( + managementGroupName: string, + options?: PolicyDefinitionVersionsDeleteAtManagementGroupOptionalParams, + ): Promise; + /** + * This operation retrieves the policy definition version in the given management group with the given + * name. + * @param managementGroupName The name of the management group. The name is case insensitive. + * @param options The options parameters. + */ + getAtManagementGroup( + managementGroupName: string, + options?: PolicyDefinitionVersionsGetAtManagementGroupOptionalParams, + ): Promise; +} diff --git a/sdk/policy/arm-policy/src/operationsInterfaces/policyDefinitions.ts b/sdk/policy/arm-policy/src/operationsInterfaces/policyDefinitions.ts index 3a2ca8d77fd10..d9091718ecd83 100644 --- a/sdk/policy/arm-policy/src/operationsInterfaces/policyDefinitions.ts +++ b/sdk/policy/arm-policy/src/operationsInterfaces/policyDefinitions.ts @@ -23,7 +23,7 @@ import { PolicyDefinitionsCreateOrUpdateAtManagementGroupResponse, PolicyDefinitionsDeleteAtManagementGroupOptionalParams, PolicyDefinitionsGetAtManagementGroupOptionalParams, - PolicyDefinitionsGetAtManagementGroupResponse + PolicyDefinitionsGetAtManagementGroupResponse, } from "../models"; /// @@ -43,7 +43,7 @@ export interface PolicyDefinitions { * @param options The options parameters. */ list( - options?: PolicyDefinitionsListOptionalParams + options?: PolicyDefinitionsListOptionalParams, ): PagedAsyncIterableIterator; /** * This operation retrieves a list of all the built-in policy definitions that match the optional given @@ -54,7 +54,7 @@ export interface PolicyDefinitions { * @param options The options parameters. */ listBuiltIn( - options?: PolicyDefinitionsListBuiltInOptionalParams + options?: PolicyDefinitionsListBuiltInOptionalParams, ): PagedAsyncIterableIterator; /** * This operation retrieves a list of all the policy definitions in a given management group that match @@ -72,7 +72,7 @@ export interface PolicyDefinitions { */ listByManagementGroup( managementGroupId: string, - options?: PolicyDefinitionsListByManagementGroupOptionalParams + options?: PolicyDefinitionsListByManagementGroupOptionalParams, ): PagedAsyncIterableIterator; /** * This operation creates or updates a policy definition in the given subscription with the given name. @@ -83,7 +83,7 @@ export interface PolicyDefinitions { createOrUpdate( policyDefinitionName: string, parameters: PolicyDefinition, - options?: PolicyDefinitionsCreateOrUpdateOptionalParams + options?: PolicyDefinitionsCreateOrUpdateOptionalParams, ): Promise; /** * This operation deletes the policy definition in the given subscription with the given name. @@ -92,7 +92,7 @@ export interface PolicyDefinitions { */ delete( policyDefinitionName: string, - options?: PolicyDefinitionsDeleteOptionalParams + options?: PolicyDefinitionsDeleteOptionalParams, ): Promise; /** * This operation retrieves the policy definition in the given subscription with the given name. @@ -101,7 +101,7 @@ export interface PolicyDefinitions { */ get( policyDefinitionName: string, - options?: PolicyDefinitionsGetOptionalParams + options?: PolicyDefinitionsGetOptionalParams, ): Promise; /** * This operation retrieves the built-in policy definition with the given name. @@ -110,42 +110,42 @@ export interface PolicyDefinitions { */ getBuiltIn( policyDefinitionName: string, - options?: PolicyDefinitionsGetBuiltInOptionalParams + options?: PolicyDefinitionsGetBuiltInOptionalParams, ): Promise; /** * This operation creates or updates a policy definition in the given management group with the given * name. - * @param policyDefinitionName The name of the policy definition to create. * @param managementGroupId The ID of the management group. + * @param policyDefinitionName The name of the policy definition to create. * @param parameters The policy definition properties. * @param options The options parameters. */ createOrUpdateAtManagementGroup( - policyDefinitionName: string, managementGroupId: string, + policyDefinitionName: string, parameters: PolicyDefinition, - options?: PolicyDefinitionsCreateOrUpdateAtManagementGroupOptionalParams + options?: PolicyDefinitionsCreateOrUpdateAtManagementGroupOptionalParams, ): Promise; /** * This operation deletes the policy definition in the given management group with the given name. - * @param policyDefinitionName The name of the policy definition to delete. * @param managementGroupId The ID of the management group. + * @param policyDefinitionName The name of the policy definition to delete. * @param options The options parameters. */ deleteAtManagementGroup( - policyDefinitionName: string, managementGroupId: string, - options?: PolicyDefinitionsDeleteAtManagementGroupOptionalParams + policyDefinitionName: string, + options?: PolicyDefinitionsDeleteAtManagementGroupOptionalParams, ): Promise; /** * This operation retrieves the policy definition in the given management group with the given name. - * @param policyDefinitionName The name of the policy definition to get. * @param managementGroupId The ID of the management group. + * @param policyDefinitionName The name of the policy definition to get. * @param options The options parameters. */ getAtManagementGroup( - policyDefinitionName: string, managementGroupId: string, - options?: PolicyDefinitionsGetAtManagementGroupOptionalParams + policyDefinitionName: string, + options?: PolicyDefinitionsGetAtManagementGroupOptionalParams, ): Promise; } diff --git a/sdk/policy/arm-policy/src/operationsInterfaces/policyExemptions.ts b/sdk/policy/arm-policy/src/operationsInterfaces/policyExemptions.ts index 7fdc616015947..a4c133ceb2ea7 100644 --- a/sdk/policy/arm-policy/src/operationsInterfaces/policyExemptions.ts +++ b/sdk/policy/arm-policy/src/operationsInterfaces/policyExemptions.ts @@ -17,7 +17,10 @@ import { PolicyExemptionsCreateOrUpdateOptionalParams, PolicyExemptionsCreateOrUpdateResponse, PolicyExemptionsGetOptionalParams, - PolicyExemptionsGetResponse + PolicyExemptionsGetResponse, + PolicyExemptionUpdate, + PolicyExemptionsUpdateOptionalParams, + PolicyExemptionsUpdateResponse, } from "../models"; /// @@ -33,7 +36,7 @@ export interface PolicyExemptions { * @param options The options parameters. */ list( - options?: PolicyExemptionsListOptionalParams + options?: PolicyExemptionsListOptionalParams, ): PagedAsyncIterableIterator; /** * This operation retrieves the list of all policy exemptions associated with the given resource group @@ -47,7 +50,7 @@ export interface PolicyExemptions { */ listForResourceGroup( resourceGroupName: string, - options?: PolicyExemptionsListForResourceGroupOptionalParams + options?: PolicyExemptionsListForResourceGroupOptionalParams, ): PagedAsyncIterableIterator; /** * This operation retrieves the list of all policy exemptions associated with the specified resource in @@ -81,7 +84,7 @@ export interface PolicyExemptions { parentResourcePath: string, resourceType: string, resourceName: string, - options?: PolicyExemptionsListForResourceOptionalParams + options?: PolicyExemptionsListForResourceOptionalParams, ): PagedAsyncIterableIterator; /** * This operation retrieves the list of all policy exemptions applicable to the management group that @@ -94,7 +97,7 @@ export interface PolicyExemptions { */ listForManagementGroup( managementGroupId: string, - options?: PolicyExemptionsListForManagementGroupOptionalParams + options?: PolicyExemptionsListForManagementGroupOptionalParams, ): PagedAsyncIterableIterator; /** * This operation deletes a policy exemption, given its name and the scope it was created in. The scope @@ -111,7 +114,7 @@ export interface PolicyExemptions { delete( scope: string, policyExemptionName: string, - options?: PolicyExemptionsDeleteOptionalParams + options?: PolicyExemptionsDeleteOptionalParams, ): Promise; /** * This operation creates or updates a policy exemption with the given scope and name. Policy @@ -131,7 +134,7 @@ export interface PolicyExemptions { scope: string, policyExemptionName: string, parameters: PolicyExemption, - options?: PolicyExemptionsCreateOrUpdateOptionalParams + options?: PolicyExemptionsCreateOrUpdateOptionalParams, ): Promise; /** * This operation retrieves a single policy exemption, given its name and the scope it was created at. @@ -146,6 +149,23 @@ export interface PolicyExemptions { get( scope: string, policyExemptionName: string, - options?: PolicyExemptionsGetOptionalParams + options?: PolicyExemptionsGetOptionalParams, ): Promise; + /** + * This operation updates a policy exemption with the given scope and name. + * @param scope The scope of the policy exemption. Valid scopes are: management group (format: + * '/providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: + * '/subscriptions/{subscriptionId}'), resource group (format: + * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or resource (format: + * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}' + * @param policyExemptionName The name of the policy exemption to delete. + * @param parameters Parameters for policy exemption patch request. + * @param options The options parameters. + */ + update( + scope: string, + policyExemptionName: string, + parameters: PolicyExemptionUpdate, + options?: PolicyExemptionsUpdateOptionalParams, + ): Promise; } diff --git a/sdk/policy/arm-policy/src/operationsInterfaces/policySetDefinitionVersions.ts b/sdk/policy/arm-policy/src/operationsInterfaces/policySetDefinitionVersions.ts new file mode 100644 index 0000000000000..d34c855866d50 --- /dev/null +++ b/sdk/policy/arm-policy/src/operationsInterfaces/policySetDefinitionVersions.ts @@ -0,0 +1,155 @@ +/* + * 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 { + PolicySetDefinitionVersion, + PolicySetDefinitionVersionsListOptionalParams, + PolicySetDefinitionVersionsListBuiltInOptionalParams, + PolicySetDefinitionVersionsListByManagementGroupOptionalParams, + PolicySetDefinitionVersionsListAllBuiltinsOptionalParams, + PolicySetDefinitionVersionsListAllBuiltinsResponse, + PolicySetDefinitionVersionsListAllAtManagementGroupOptionalParams, + PolicySetDefinitionVersionsListAllAtManagementGroupResponse, + PolicySetDefinitionVersionsListAllOptionalParams, + PolicySetDefinitionVersionsListAllResponse, + PolicySetDefinitionVersionsCreateOrUpdateOptionalParams, + PolicySetDefinitionVersionsCreateOrUpdateResponse, + PolicySetDefinitionVersionsDeleteOptionalParams, + PolicySetDefinitionVersionsGetOptionalParams, + PolicySetDefinitionVersionsGetResponse, + PolicySetDefinitionVersionsGetBuiltInOptionalParams, + PolicySetDefinitionVersionsGetBuiltInResponse, + PolicySetDefinitionVersionsCreateOrUpdateAtManagementGroupOptionalParams, + PolicySetDefinitionVersionsCreateOrUpdateAtManagementGroupResponse, + PolicySetDefinitionVersionsDeleteAtManagementGroupOptionalParams, + PolicySetDefinitionVersionsGetAtManagementGroupOptionalParams, + PolicySetDefinitionVersionsGetAtManagementGroupResponse, +} from "../models"; + +/// +/** Interface representing a PolicySetDefinitionVersions. */ +export interface PolicySetDefinitionVersions { + /** + * This operation retrieves a list of all the policy set definition versions for the given policy set + * definition. + * @param options The options parameters. + */ + list( + options?: PolicySetDefinitionVersionsListOptionalParams, + ): PagedAsyncIterableIterator; + /** + * This operation retrieves a list of all the built-in policy set definition versions for the given + * built-in policy set definition. + * @param options The options parameters. + */ + listBuiltIn( + options?: PolicySetDefinitionVersionsListBuiltInOptionalParams, + ): PagedAsyncIterableIterator; + /** + * This operation retrieves a list of all the policy set definition versions for the given policy set + * definition in a given management group. + * @param managementGroupName The name of the management group. The name is case insensitive. + * @param options The options parameters. + */ + listByManagementGroup( + managementGroupName: string, + options?: PolicySetDefinitionVersionsListByManagementGroupOptionalParams, + ): PagedAsyncIterableIterator; + /** + * This operation lists all the built-in policy set definition versions for all built-in policy set + * definitions. + * @param options The options parameters. + */ + listAllBuiltins( + options?: PolicySetDefinitionVersionsListAllBuiltinsOptionalParams, + ): Promise; + /** + * This operation lists all the policy set definition versions for all policy set definitions at the + * management group scope. + * @param managementGroupName The name of the management group. The name is case insensitive. + * @param options The options parameters. + */ + listAllAtManagementGroup( + managementGroupName: string, + options?: PolicySetDefinitionVersionsListAllAtManagementGroupOptionalParams, + ): Promise; + /** + * This operation lists all the policy set definition versions for all policy set definitions within a + * subscription. + * @param options The options parameters. + */ + listAll( + options?: PolicySetDefinitionVersionsListAllOptionalParams, + ): Promise; + /** + * This operation creates or updates a policy set definition version in the given subscription with the + * given name and version. + * @param parameters The policy set definition properties. + * @param options The options parameters. + */ + createOrUpdate( + parameters: PolicySetDefinitionVersion, + options?: PolicySetDefinitionVersionsCreateOrUpdateOptionalParams, + ): Promise; + /** + * This operation deletes the policy set definition version in the given subscription with the given + * name and version. + * @param options The options parameters. + */ + delete( + options?: PolicySetDefinitionVersionsDeleteOptionalParams, + ): Promise; + /** + * This operation retrieves the policy set definition version in the given subscription with the given + * name and version. + * @param options The options parameters. + */ + get( + options?: PolicySetDefinitionVersionsGetOptionalParams, + ): Promise; + /** + * This operation retrieves the built-in policy set definition version with the given name and version. + * @param options The options parameters. + */ + getBuiltIn( + options?: PolicySetDefinitionVersionsGetBuiltInOptionalParams, + ): Promise; + /** + * This operation creates or updates a policy set definition version in the given management group with + * the given name and version. + * @param managementGroupName The name of the management group. The name is case insensitive. + * @param parameters The policy set definition version properties. + * @param options The options parameters. + */ + createOrUpdateAtManagementGroup( + managementGroupName: string, + parameters: PolicySetDefinitionVersion, + options?: PolicySetDefinitionVersionsCreateOrUpdateAtManagementGroupOptionalParams, + ): Promise; + /** + * This operation deletes the policy set definition version in the given management group with the + * given name and version. + * @param managementGroupName The name of the management group. The name is case insensitive. + * @param options The options parameters. + */ + deleteAtManagementGroup( + managementGroupName: string, + options?: PolicySetDefinitionVersionsDeleteAtManagementGroupOptionalParams, + ): Promise; + /** + * This operation retrieves the policy set definition version in the given management group with the + * given name and version. + * @param managementGroupName The name of the management group. The name is case insensitive. + * @param options The options parameters. + */ + getAtManagementGroup( + managementGroupName: string, + options?: PolicySetDefinitionVersionsGetAtManagementGroupOptionalParams, + ): Promise; +} diff --git a/sdk/policy/arm-policy/src/operationsInterfaces/policySetDefinitions.ts b/sdk/policy/arm-policy/src/operationsInterfaces/policySetDefinitions.ts index cec9ce2113221..a56c84a6b8bd4 100644 --- a/sdk/policy/arm-policy/src/operationsInterfaces/policySetDefinitions.ts +++ b/sdk/policy/arm-policy/src/operationsInterfaces/policySetDefinitions.ts @@ -23,7 +23,7 @@ import { PolicySetDefinitionsCreateOrUpdateAtManagementGroupResponse, PolicySetDefinitionsDeleteAtManagementGroupOptionalParams, PolicySetDefinitionsGetAtManagementGroupOptionalParams, - PolicySetDefinitionsGetAtManagementGroupResponse + PolicySetDefinitionsGetAtManagementGroupResponse, } from "../models"; /// @@ -43,7 +43,7 @@ export interface PolicySetDefinitions { * @param options The options parameters. */ list( - options?: PolicySetDefinitionsListOptionalParams + options?: PolicySetDefinitionsListOptionalParams, ): PagedAsyncIterableIterator; /** * This operation retrieves a list of all the built-in policy set definitions that match the optional @@ -52,7 +52,7 @@ export interface PolicySetDefinitions { * @param options The options parameters. */ listBuiltIn( - options?: PolicySetDefinitionsListBuiltInOptionalParams + options?: PolicySetDefinitionsListBuiltInOptionalParams, ): PagedAsyncIterableIterator; /** * This operation retrieves a list of all the policy set definitions in a given management group that @@ -70,7 +70,7 @@ export interface PolicySetDefinitions { */ listByManagementGroup( managementGroupId: string, - options?: PolicySetDefinitionsListByManagementGroupOptionalParams + options?: PolicySetDefinitionsListByManagementGroupOptionalParams, ): PagedAsyncIterableIterator; /** * This operation creates or updates a policy set definition in the given subscription with the given @@ -82,7 +82,7 @@ export interface PolicySetDefinitions { createOrUpdate( policySetDefinitionName: string, parameters: PolicySetDefinition, - options?: PolicySetDefinitionsCreateOrUpdateOptionalParams + options?: PolicySetDefinitionsCreateOrUpdateOptionalParams, ): Promise; /** * This operation deletes the policy set definition in the given subscription with the given name. @@ -91,7 +91,7 @@ export interface PolicySetDefinitions { */ delete( policySetDefinitionName: string, - options?: PolicySetDefinitionsDeleteOptionalParams + options?: PolicySetDefinitionsDeleteOptionalParams, ): Promise; /** * This operation retrieves the policy set definition in the given subscription with the given name. @@ -100,7 +100,7 @@ export interface PolicySetDefinitions { */ get( policySetDefinitionName: string, - options?: PolicySetDefinitionsGetOptionalParams + options?: PolicySetDefinitionsGetOptionalParams, ): Promise; /** * This operation retrieves the built-in policy set definition with the given name. @@ -109,43 +109,43 @@ export interface PolicySetDefinitions { */ getBuiltIn( policySetDefinitionName: string, - options?: PolicySetDefinitionsGetBuiltInOptionalParams + options?: PolicySetDefinitionsGetBuiltInOptionalParams, ): Promise; /** * This operation creates or updates a policy set definition in the given management group with the * given name. - * @param policySetDefinitionName The name of the policy set definition to create. * @param managementGroupId The ID of the management group. + * @param policySetDefinitionName The name of the policy set definition to create. * @param parameters The policy set definition properties. * @param options The options parameters. */ createOrUpdateAtManagementGroup( - policySetDefinitionName: string, managementGroupId: string, + policySetDefinitionName: string, parameters: PolicySetDefinition, - options?: PolicySetDefinitionsCreateOrUpdateAtManagementGroupOptionalParams + options?: PolicySetDefinitionsCreateOrUpdateAtManagementGroupOptionalParams, ): Promise; /** * This operation deletes the policy set definition in the given management group with the given name. - * @param policySetDefinitionName The name of the policy set definition to delete. * @param managementGroupId The ID of the management group. + * @param policySetDefinitionName The name of the policy set definition to delete. * @param options The options parameters. */ deleteAtManagementGroup( - policySetDefinitionName: string, managementGroupId: string, - options?: PolicySetDefinitionsDeleteAtManagementGroupOptionalParams + policySetDefinitionName: string, + options?: PolicySetDefinitionsDeleteAtManagementGroupOptionalParams, ): Promise; /** * This operation retrieves the policy set definition in the given management group with the given * name. - * @param policySetDefinitionName The name of the policy set definition to get. * @param managementGroupId The ID of the management group. + * @param policySetDefinitionName The name of the policy set definition to get. * @param options The options parameters. */ getAtManagementGroup( - policySetDefinitionName: string, managementGroupId: string, - options?: PolicySetDefinitionsGetAtManagementGroupOptionalParams + policySetDefinitionName: string, + options?: PolicySetDefinitionsGetAtManagementGroupOptionalParams, ): Promise; } diff --git a/sdk/policy/arm-policy/src/operationsInterfaces/variableValues.ts b/sdk/policy/arm-policy/src/operationsInterfaces/variableValues.ts new file mode 100644 index 0000000000000..485bf71450f18 --- /dev/null +++ b/sdk/policy/arm-policy/src/operationsInterfaces/variableValues.ts @@ -0,0 +1,135 @@ +/* + * 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 { + VariableValue, + VariableValuesListOptionalParams, + VariableValuesListForManagementGroupOptionalParams, + VariableValuesDeleteOptionalParams, + VariableValuesCreateOrUpdateOptionalParams, + VariableValuesCreateOrUpdateResponse, + VariableValuesGetOptionalParams, + VariableValuesGetResponse, + VariableValuesDeleteAtManagementGroupOptionalParams, + VariableValuesCreateOrUpdateAtManagementGroupOptionalParams, + VariableValuesCreateOrUpdateAtManagementGroupResponse, + VariableValuesGetAtManagementGroupOptionalParams, + VariableValuesGetAtManagementGroupResponse, +} from "../models"; + +/// +/** Interface representing a VariableValues. */ +export interface VariableValues { + /** + * This operation retrieves the list of all variable values associated with the given variable that is + * at a subscription level. + * @param variableName The name of the variable to operate on. + * @param options The options parameters. + */ + list( + variableName: string, + options?: VariableValuesListOptionalParams, + ): PagedAsyncIterableIterator; + /** + * This operation retrieves the list of all variable values applicable the variable indicated at the + * management group scope. + * @param managementGroupId The ID of the management group. + * @param variableName The name of the variable to operate on. + * @param options The options parameters. + */ + listForManagementGroup( + managementGroupId: string, + variableName: string, + options?: VariableValuesListForManagementGroupOptionalParams, + ): PagedAsyncIterableIterator; + /** + * This operation deletes a variable value, given its name, the subscription it was created in, and the + * variable it belongs to. The scope of a variable value is the part of its ID preceding + * '/providers/Microsoft.Authorization/variables/{variableName}'. + * @param variableName The name of the variable to operate on. + * @param variableValueName The name of the variable value to operate on. + * @param options The options parameters. + */ + delete( + variableName: string, + variableValueName: string, + options?: VariableValuesDeleteOptionalParams, + ): Promise; + /** + * This operation creates or updates a variable value with the given subscription and name for a given + * variable. Variable values are scoped to the variable for which they are created for. + * @param variableName The name of the variable to operate on. + * @param variableValueName The name of the variable value to operate on. + * @param parameters Parameters for the variable value. + * @param options The options parameters. + */ + createOrUpdate( + variableName: string, + variableValueName: string, + parameters: VariableValue, + options?: VariableValuesCreateOrUpdateOptionalParams, + ): Promise; + /** + * This operation retrieves a single variable value; given its name, subscription it was created at and + * the variable it's created for. + * @param variableName The name of the variable to operate on. + * @param variableValueName The name of the variable value to operate on. + * @param options The options parameters. + */ + get( + variableName: string, + variableValueName: string, + options?: VariableValuesGetOptionalParams, + ): Promise; + /** + * This operation deletes a variable value, given its name, the management group it was created in, and + * the variable it belongs to. The scope of a variable value is the part of its ID preceding + * '/providers/Microsoft.Authorization/variables/{variableName}'. + * @param managementGroupId The ID of the management group. + * @param variableName The name of the variable to operate on. + * @param variableValueName The name of the variable value to operate on. + * @param options The options parameters. + */ + deleteAtManagementGroup( + managementGroupId: string, + variableName: string, + variableValueName: string, + options?: VariableValuesDeleteAtManagementGroupOptionalParams, + ): Promise; + /** + * This operation creates or updates a variable value with the given management group and name for a + * given variable. Variable values are scoped to the variable for which they are created for. + * @param managementGroupId The ID of the management group. + * @param variableName The name of the variable to operate on. + * @param variableValueName The name of the variable value to operate on. + * @param parameters Parameters for the variable value. + * @param options The options parameters. + */ + createOrUpdateAtManagementGroup( + managementGroupId: string, + variableName: string, + variableValueName: string, + parameters: VariableValue, + options?: VariableValuesCreateOrUpdateAtManagementGroupOptionalParams, + ): Promise; + /** + * This operation retrieves a single variable value; given its name, management group it was created + * at and the variable it's created for. + * @param managementGroupId The ID of the management group. + * @param variableName The name of the variable to operate on. + * @param variableValueName The name of the variable value to operate on. + * @param options The options parameters. + */ + getAtManagementGroup( + managementGroupId: string, + variableName: string, + variableValueName: string, + options?: VariableValuesGetAtManagementGroupOptionalParams, + ): Promise; +} diff --git a/sdk/policy/arm-policy/src/operationsInterfaces/variables.ts b/sdk/policy/arm-policy/src/operationsInterfaces/variables.ts new file mode 100644 index 0000000000000..b79d825f904f2 --- /dev/null +++ b/sdk/policy/arm-policy/src/operationsInterfaces/variables.ts @@ -0,0 +1,116 @@ +/* + * 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 { + Variable, + VariablesListOptionalParams, + VariablesListForManagementGroupOptionalParams, + VariablesDeleteOptionalParams, + VariablesCreateOrUpdateOptionalParams, + VariablesCreateOrUpdateResponse, + VariablesGetOptionalParams, + VariablesGetResponse, + VariablesDeleteAtManagementGroupOptionalParams, + VariablesCreateOrUpdateAtManagementGroupOptionalParams, + VariablesCreateOrUpdateAtManagementGroupResponse, + VariablesGetAtManagementGroupOptionalParams, + VariablesGetAtManagementGroupResponse, +} from "../models"; + +/// +/** Interface representing a Variables. */ +export interface Variables { + /** + * This operation retrieves the list of all variables associated with the given subscription. + * @param options The options parameters. + */ + list( + options?: VariablesListOptionalParams, + ): PagedAsyncIterableIterator; + /** + * This operation retrieves the list of all variables applicable to the management group. + * @param managementGroupId The ID of the management group. + * @param options The options parameters. + */ + listForManagementGroup( + managementGroupId: string, + options?: VariablesListForManagementGroupOptionalParams, + ): PagedAsyncIterableIterator; + /** + * This operation deletes a variable, given its name and the subscription it was created in. The scope + * of a variable is the part of its ID preceding + * '/providers/Microsoft.Authorization/variables/{variableName}'. + * @param variableName The name of the variable to operate on. + * @param options The options parameters. + */ + delete( + variableName: string, + options?: VariablesDeleteOptionalParams, + ): Promise; + /** + * This operation creates or updates a variable with the given subscription and name. Policy variables + * can only be used by a policy definition at the scope they are created or below. + * @param variableName The name of the variable to operate on. + * @param parameters Parameters for the variable. + * @param options The options parameters. + */ + createOrUpdate( + variableName: string, + parameters: Variable, + options?: VariablesCreateOrUpdateOptionalParams, + ): Promise; + /** + * This operation retrieves a single variable, given its name and the subscription it was created at. + * @param variableName The name of the variable to operate on. + * @param options The options parameters. + */ + get( + variableName: string, + options?: VariablesGetOptionalParams, + ): Promise; + /** + * This operation deletes a variable, given its name and the management group it was created in. The + * scope of a variable is the part of its ID preceding + * '/providers/Microsoft.Authorization/variables/{variableName}'. + * @param managementGroupId The ID of the management group. + * @param variableName The name of the variable to operate on. + * @param options The options parameters. + */ + deleteAtManagementGroup( + managementGroupId: string, + variableName: string, + options?: VariablesDeleteAtManagementGroupOptionalParams, + ): Promise; + /** + * This operation creates or updates a variable with the given management group and name. Policy + * variables can only be used by a policy definition at the scope they are created or below. + * @param managementGroupId The ID of the management group. + * @param variableName The name of the variable to operate on. + * @param parameters Parameters for the variable. + * @param options The options parameters. + */ + createOrUpdateAtManagementGroup( + managementGroupId: string, + variableName: string, + parameters: Variable, + options?: VariablesCreateOrUpdateAtManagementGroupOptionalParams, + ): Promise; + /** + * This operation retrieves a single variable, given its name and the management group it was created + * at. + * @param managementGroupId The ID of the management group. + * @param variableName The name of the variable to operate on. + * @param options The options parameters. + */ + getAtManagementGroup( + managementGroupId: string, + variableName: string, + options?: VariablesGetAtManagementGroupOptionalParams, + ): Promise; +} diff --git a/sdk/policy/arm-policy/src/pagingHelper.ts b/sdk/policy/arm-policy/src/pagingHelper.ts index 269a2b9814b51..205cccc265927 100644 --- a/sdk/policy/arm-policy/src/pagingHelper.ts +++ b/sdk/policy/arm-policy/src/pagingHelper.ts @@ -28,7 +28,7 @@ export function getContinuationToken(page: unknown): string | undefined { export function setContinuationToken( page: unknown, - continuationToken: string | undefined + continuationToken: string | undefined, ): void { if (typeof page !== "object" || page === null || !continuationToken) { return; diff --git a/sdk/policy/arm-policy/src/policyClient.ts b/sdk/policy/arm-policy/src/policyClient.ts index 9188174e25d4e..f4aa3b9bde4db 100644 --- a/sdk/policy/arm-policy/src/policyClient.ts +++ b/sdk/policy/arm-policy/src/policyClient.ts @@ -11,55 +11,87 @@ import * as coreRestPipeline from "@azure/core-rest-pipeline"; import * as coreAuth from "@azure/core-auth"; import { DataPolicyManifestsImpl, - PolicyAssignmentsImpl, PolicyDefinitionsImpl, + PolicyDefinitionVersionsImpl, PolicySetDefinitionsImpl, - PolicyExemptionsImpl + PolicySetDefinitionVersionsImpl, + PolicyAssignmentsImpl, + PolicyExemptionsImpl, + VariablesImpl, + VariableValuesImpl, } from "./operations"; import { DataPolicyManifests, - PolicyAssignments, PolicyDefinitions, + PolicyDefinitionVersions, PolicySetDefinitions, - PolicyExemptions + PolicySetDefinitionVersions, + PolicyAssignments, + PolicyExemptions, + Variables, + VariableValues, } from "./operationsInterfaces"; import { PolicyClientOptionalParams } from "./models"; export class PolicyClient extends coreClient.ServiceClient { $host: string; subscriptionId?: string; + policyDefinitionName: string; + policyDefinitionVersion: string; + policySetDefinitionName: string; /** * Initializes a new instance of the PolicyClient class. * @param credentials Subscription credentials which uniquely identify client subscription. - * @param subscriptionId The ID of the target subscription. + * @param subscriptionId The ID of the target subscription. The value must be an UUID. + * @param policyDefinitionName The name of the policy definition. + * @param policyDefinitionVersion The policy definition version. The format is x.y.z where x is the + * major version number, y is the minor version number, and z is the patch number + * @param policySetDefinitionName The name of the policy set definition. * @param options The parameter options */ constructor( credentials: coreAuth.TokenCredential, subscriptionId: string, - options?: PolicyClientOptionalParams + policyDefinitionName: string, + policyDefinitionVersion: string, + policySetDefinitionName: string, + options?: PolicyClientOptionalParams, ); constructor( credentials: coreAuth.TokenCredential, - options?: PolicyClientOptionalParams + policyDefinitionName: string, + policyDefinitionVersion: string, + policySetDefinitionName: string, + options?: PolicyClientOptionalParams, ); constructor( credentials: coreAuth.TokenCredential, - subscriptionIdOrOptions?: string | PolicyClientOptionalParams, - options?: PolicyClientOptionalParams + policyDefinitionName: string, + policyDefinitionVersion: string, + policySetDefinitionName: string, + subscriptionIdOrOptions?: PolicyClientOptionalParams | string, + options?: PolicyClientOptionalParams, ) { if (credentials === undefined) { throw new Error("'credentials' cannot be null"); } + if (policyDefinitionName === undefined) { + throw new Error("'policyDefinitionName' cannot be null"); + } + if (policyDefinitionVersion === undefined) { + throw new Error("'policyDefinitionVersion' cannot be null"); + } + if (policySetDefinitionName === undefined) { + throw new Error("'policySetDefinitionName' cannot be null"); + } + let subscriptionId: string | undefined; - if (!subscriptionIdOrOptions !== undefined) { - if (typeof subscriptionIdOrOptions === "string") { - subscriptionId = subscriptionIdOrOptions; - } else if (typeof subscriptionIdOrOptions === "object") { - options = subscriptionIdOrOptions; - } + if (typeof subscriptionIdOrOptions === "string") { + subscriptionId = subscriptionIdOrOptions; + } else if (typeof subscriptionIdOrOptions === "object") { + options = subscriptionIdOrOptions; } // Initializing default values for options @@ -68,10 +100,10 @@ export class PolicyClient extends coreClient.ServiceClient { } const defaults: PolicyClientOptionalParams = { requestContentType: "application/json; charset=utf-8", - credential: credentials + credential: credentials, }; - const packageDetails = `azsdk-js-arm-policy/5.1.1`; + const packageDetails = `azsdk-js-arm-policy/6.0.0-beta.1`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -81,20 +113,21 @@ export class PolicyClient extends coreClient.ServiceClient { ...defaults, ...options, userAgentOptions: { - userAgentPrefix + userAgentPrefix, }, endpoint: - options.endpoint ?? options.baseUri ?? "https://management.azure.com" + options.endpoint ?? options.baseUri ?? "https://management.azure.com", }; super(optionsWithDefaults); let bearerTokenAuthenticationPolicyFound: boolean = false; if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) { - const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies(); + const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = + options.pipeline.getOrderedPolicies(); bearerTokenAuthenticationPolicyFound = pipelinePolicies.some( (pipelinePolicy) => pipelinePolicy.name === - coreRestPipeline.bearerTokenAuthenticationPolicyName + coreRestPipeline.bearerTokenAuthenticationPolicyName, ); } if ( @@ -104,7 +137,7 @@ export class PolicyClient extends coreClient.ServiceClient { !bearerTokenAuthenticationPolicyFound ) { this.pipeline.removePolicy({ - name: coreRestPipeline.bearerTokenAuthenticationPolicyName + name: coreRestPipeline.bearerTokenAuthenticationPolicyName, }); this.pipeline.addPolicy( coreRestPipeline.bearerTokenAuthenticationPolicy({ @@ -114,26 +147,39 @@ export class PolicyClient extends coreClient.ServiceClient { `${optionsWithDefaults.endpoint}/.default`, challengeCallbacks: { authorizeRequestOnChallenge: - coreClient.authorizeRequestOnClaimChallenge - } - }) + coreClient.authorizeRequestOnClaimChallenge, + }, + }), ); } // Parameter assignments this.subscriptionId = subscriptionId; + this.policyDefinitionName = policyDefinitionName; + this.policyDefinitionVersion = policyDefinitionVersion; + this.policySetDefinitionName = policySetDefinitionName; // Assigning values to Constant parameters this.$host = options.$host || "https://management.azure.com"; this.dataPolicyManifests = new DataPolicyManifestsImpl(this); - this.policyAssignments = new PolicyAssignmentsImpl(this); this.policyDefinitions = new PolicyDefinitionsImpl(this); + this.policyDefinitionVersions = new PolicyDefinitionVersionsImpl(this); this.policySetDefinitions = new PolicySetDefinitionsImpl(this); + this.policySetDefinitionVersions = new PolicySetDefinitionVersionsImpl( + this, + ); + this.policyAssignments = new PolicyAssignmentsImpl(this); this.policyExemptions = new PolicyExemptionsImpl(this); + this.variables = new VariablesImpl(this); + this.variableValues = new VariableValuesImpl(this); } dataPolicyManifests: DataPolicyManifests; - policyAssignments: PolicyAssignments; policyDefinitions: PolicyDefinitions; + policyDefinitionVersions: PolicyDefinitionVersions; policySetDefinitions: PolicySetDefinitions; + policySetDefinitionVersions: PolicySetDefinitionVersions; + policyAssignments: PolicyAssignments; policyExemptions: PolicyExemptions; + variables: Variables; + variableValues: VariableValues; } diff --git a/sdk/policy/arm-policy/test/sampleTest.ts b/sdk/policy/arm-policy/test/sampleTest.ts new file mode 100644 index 0000000000000..d64be981b6946 --- /dev/null +++ b/sdk/policy/arm-policy/test/sampleTest.ts @@ -0,0 +1,43 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { + Recorder, + RecorderStartOptions, + env, +} from "@azure-tools/test-recorder"; +import { assert } from "chai"; +import { Context } from "mocha"; + +const replaceableVariables: Record = { + AZURE_CLIENT_ID: "azure_client_id", + AZURE_CLIENT_SECRET: "azure_client_secret", + AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888", + SUBSCRIPTION_ID: "azure_subscription_id", +}; + +const recorderOptions: RecorderStartOptions = { + envSetupForPlayback: replaceableVariables, +}; + +describe("My test", () => { + let recorder: Recorder; + + beforeEach(async function (this: Context) { + recorder = new Recorder(this.currentTest); + await recorder.start(recorderOptions); + }); + + afterEach(async function () { + await recorder.stop(); + }); + + it("sample test", async function () { + console.log("Hi, I'm a test!"); + }); +}); diff --git a/sdk/policy/arm-policy/tsconfig.json b/sdk/policy/arm-policy/tsconfig.json index bf4c4a0243172..cd0af931e3e01 100644 --- a/sdk/policy/arm-policy/tsconfig.json +++ b/sdk/policy/arm-policy/tsconfig.json @@ -15,17 +15,14 @@ ], "declaration": true, "outDir": "./dist-esm", - "importHelpers": true, - "paths": { - "@azure/arm-policy": [ - "./src/index" - ] - } + "importHelpers": true }, "include": [ "./src/**/*.ts", "./test/**/*.ts", - "samples-dev/**/*.ts" + "./test/**/*.ts", + "./test/**/*.ts", + "./test/**/*.ts" ], "exclude": [ "node_modules" diff --git a/sdk/resources-subscriptions/arm-resources-subscriptions/LICENSE b/sdk/resources-subscriptions/arm-resources-subscriptions/LICENSE index 3a1d9b6f24f73..7d59347409658 100644 --- a/sdk/resources-subscriptions/arm-resources-subscriptions/LICENSE +++ b/sdk/resources-subscriptions/arm-resources-subscriptions/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2023 Microsoft +Copyright (c) 2024 Microsoft Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/sdk/resources-subscriptions/arm-resources-subscriptions/_meta.json b/sdk/resources-subscriptions/arm-resources-subscriptions/_meta.json index 0c611e34e91d0..6f675c5d5d6aa 100644 --- a/sdk/resources-subscriptions/arm-resources-subscriptions/_meta.json +++ b/sdk/resources-subscriptions/arm-resources-subscriptions/_meta.json @@ -1,8 +1,8 @@ { - "commit": "2b5927fd07bfb51809a06ca35b6142f63ba77bab", + "commit": "61db561c7b16295a74a39fa76e58967fb0c621d7", "readme": "specification/resources/resource-manager/readme.md", - "autorest_command": "autorest --version=3.9.3 --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\\resources\\resource-manager\\readme.md --use=@autorest/typescript@6.0.2 --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/resources/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.6.2", - "use": "@autorest/typescript@6.0.2" + "release_tool": "@azure-tools/js-sdk-release-tools@2.7.9", + "use": "@autorest/typescript@^6.0.12" } \ No newline at end of file diff --git a/sdk/resources-subscriptions/arm-resources-subscriptions/package.json b/sdk/resources-subscriptions/arm-resources-subscriptions/package.json index c2fad256f1350..f7434c15f64fe 100644 --- a/sdk/resources-subscriptions/arm-resources-subscriptions/package.json +++ b/sdk/resources-subscriptions/arm-resources-subscriptions/package.json @@ -10,8 +10,8 @@ "dependencies": { "@azure/core-paging": "^1.2.0", "@azure/core-client": "^1.7.0", - "@azure/core-auth": "^1.3.0", - "@azure/core-rest-pipeline": "^1.8.0", + "@azure/core-auth": "^1.6.0", + "@azure/core-rest-pipeline": "^1.14.0", "tslib": "^2.2.0" }, "keywords": [ @@ -30,19 +30,20 @@ "mkdirp": "^3.0.1", "typescript": "~5.4.5", "uglify-js": "^3.4.9", - "rimraf": "^5.0.5", + "rimraf": "^5.0.0", "dotenv": "^16.0.0", + "@azure/dev-tool": "^1.0.0", "@azure/identity": "^4.0.1", "@azure-tools/test-recorder": "^3.0.0", "@azure-tools/test-credential": "^1.0.0", "mocha": "^10.0.0", + "@types/mocha": "^10.0.0", + "tsx": "^4.7.1", "@types/chai": "^4.2.8", "chai": "^4.2.0", "cross-env": "^7.0.2", "@types/node": "^18.0.0", - "@azure/dev-tool": "^1.0.0", - "ts-node": "^10.0.0", - "@types/mocha": "^10.0.0" + "ts-node": "^10.0.0" }, "repository": { "type": "git", @@ -75,7 +76,6 @@ "pack": "npm pack 2>&1", "extract-api": "dev-tool run extract-api", "lint": "echo skipped", - "audit": "echo skipped", "clean": "rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log", "build:node": "echo skipped", "build:browser": "echo skipped", @@ -104,13 +104,5 @@ ] }, "autoPublish": true, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/resources-subscriptions/arm-resources-subscriptions", - "//sampleConfiguration": { - "productName": "", - "productSlugs": [ - "azure" - ], - "disableDocsMs": true, - "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-resources-subscriptions?view=azure-node-preview" - } -} + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/resources-subscriptions/arm-resources-subscriptions" +} \ No newline at end of file diff --git a/sdk/resources-subscriptions/arm-resources-subscriptions/src/models/index.ts b/sdk/resources-subscriptions/arm-resources-subscriptions/src/models/index.ts index 6db2ed8937c15..d1a0fe76aedca 100644 --- a/sdk/resources-subscriptions/arm-resources-subscriptions/src/models/index.ts +++ b/sdk/resources-subscriptions/arm-resources-subscriptions/src/models/index.ts @@ -528,7 +528,7 @@ export enum KnownOrigin { /** System */ System = "system", /** UserSystem */ - UserSystem = "user,system" + UserSystem = "user,system", } /** @@ -545,7 +545,7 @@ export type Origin = string; /** Known values of {@link ActionType} that the service accepts. */ export enum KnownActionType { /** Internal */ - Internal = "Internal" + Internal = "Internal", } /** @@ -562,7 +562,7 @@ export enum KnownRegionType { /** Physical */ Physical = "Physical", /** Logical */ - Logical = "Logical" + Logical = "Logical", } /** @@ -582,7 +582,7 @@ export enum KnownRegionCategory { /** Extended */ Extended = "Extended", /** Other */ - Other = "Other" + Other = "Other", } /** @@ -601,7 +601,7 @@ export enum KnownResourceNameStatus { /** Allowed */ Allowed = "Allowed", /** Reserved */ - Reserved = "Reserved" + Reserved = "Reserved", } /** diff --git a/sdk/resources-subscriptions/arm-resources-subscriptions/src/models/mappers.ts b/sdk/resources-subscriptions/arm-resources-subscriptions/src/models/mappers.ts index 5f6ca4b369aba..a6c3d0404f2ab 100644 --- a/sdk/resources-subscriptions/arm-resources-subscriptions/src/models/mappers.ts +++ b/sdk/resources-subscriptions/arm-resources-subscriptions/src/models/mappers.ts @@ -21,20 +21,20 @@ export const OperationListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Operation" - } - } - } + className: "Operation", + }, + }, + }, }, nextLink: { serializedName: "nextLink", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const Operation: coreClient.CompositeMapper = { @@ -46,39 +46,39 @@ export const Operation: coreClient.CompositeMapper = { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, isDataAction: { serializedName: "isDataAction", readOnly: true, type: { - name: "Boolean" - } + name: "Boolean", + }, }, display: { serializedName: "display", type: { name: "Composite", - className: "OperationDisplay" - } + className: "OperationDisplay", + }, }, origin: { serializedName: "origin", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, actionType: { serializedName: "actionType", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const OperationDisplay: coreClient.CompositeMapper = { @@ -90,32 +90,32 @@ export const OperationDisplay: coreClient.CompositeMapper = { serializedName: "provider", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, resource: { serializedName: "resource", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, operation: { serializedName: "operation", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "description", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const CloudError: coreClient.CompositeMapper = { @@ -127,11 +127,11 @@ export const CloudError: coreClient.CompositeMapper = { serializedName: "error", type: { name: "Composite", - className: "ErrorResponse" - } - } - } - } + className: "ErrorResponse", + }, + }, + }, + }, }; export const ErrorResponse: coreClient.CompositeMapper = { @@ -143,22 +143,22 @@ export const ErrorResponse: coreClient.CompositeMapper = { serializedName: "code", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, message: { serializedName: "message", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, target: { serializedName: "target", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, details: { serializedName: "details", @@ -168,10 +168,10 @@ export const ErrorResponse: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ErrorResponse" - } - } - } + className: "ErrorResponse", + }, + }, + }, }, additionalInfo: { serializedName: "additionalInfo", @@ -181,13 +181,13 @@ export const ErrorResponse: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ErrorAdditionalInfo" - } - } - } - } - } - } + className: "ErrorAdditionalInfo", + }, + }, + }, + }, + }, + }, }; export const ErrorAdditionalInfo: coreClient.CompositeMapper = { @@ -199,19 +199,19 @@ export const ErrorAdditionalInfo: coreClient.CompositeMapper = { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, info: { serializedName: "info", readOnly: true, type: { name: "Dictionary", - value: { type: { name: "any" } } - } - } - } - } + value: { type: { name: "any" } }, + }, + }, + }, + }, }; export const LocationListResult: coreClient.CompositeMapper = { @@ -226,13 +226,13 @@ export const LocationListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Location" - } - } - } - } - } - } + className: "Location", + }, + }, + }, + }, + }, + }, }; export const Location: coreClient.CompositeMapper = { @@ -244,51 +244,51 @@ export const Location: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, subscriptionId: { serializedName: "subscriptionId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { name: "Enum", - allowedValues: ["Region", "EdgeZone"] - } + allowedValues: ["Region", "EdgeZone"], + }, }, displayName: { serializedName: "displayName", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, regionalDisplayName: { serializedName: "regionalDisplayName", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, metadata: { serializedName: "metadata", type: { name: "Composite", - className: "LocationMetadata" - } + className: "LocationMetadata", + }, }, availabilityZoneMappings: { serializedName: "availabilityZoneMappings", @@ -297,13 +297,13 @@ export const Location: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "AvailabilityZoneMappings" - } - } - } - } - } - } + className: "AvailabilityZoneMappings", + }, + }, + }, + }, + }, + }, }; export const LocationMetadata: coreClient.CompositeMapper = { @@ -315,50 +315,50 @@ export const LocationMetadata: coreClient.CompositeMapper = { serializedName: "regionType", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, regionCategory: { serializedName: "regionCategory", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, geography: { serializedName: "geography", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, geographyGroup: { serializedName: "geographyGroup", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, longitude: { serializedName: "longitude", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, latitude: { serializedName: "latitude", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, physicalLocation: { serializedName: "physicalLocation", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, pairedRegion: { serializedName: "pairedRegion", @@ -367,20 +367,20 @@ export const LocationMetadata: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "PairedRegion" - } - } - } + className: "PairedRegion", + }, + }, + }, }, homeLocation: { serializedName: "homeLocation", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PairedRegion: coreClient.CompositeMapper = { @@ -392,25 +392,25 @@ export const PairedRegion: coreClient.CompositeMapper = { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, id: { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, subscriptionId: { serializedName: "subscriptionId", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const AvailabilityZoneMappings: coreClient.CompositeMapper = { @@ -422,18 +422,18 @@ export const AvailabilityZoneMappings: coreClient.CompositeMapper = { serializedName: "logicalZone", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, physicalZone: { serializedName: "physicalZone", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const Subscription: coreClient.CompositeMapper = { @@ -445,50 +445,56 @@ export const Subscription: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, subscriptionId: { serializedName: "subscriptionId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, displayName: { serializedName: "displayName", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, tenantId: { serializedName: "tenantId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, state: { serializedName: "state", readOnly: true, type: { name: "Enum", - allowedValues: ["Enabled", "Warned", "PastDue", "Disabled", "Deleted"] - } + allowedValues: [ + "Enabled", + "Warned", + "PastDue", + "Disabled", + "Deleted", + ], + }, }, subscriptionPolicies: { serializedName: "subscriptionPolicies", type: { name: "Composite", - className: "SubscriptionPolicies" - } + className: "SubscriptionPolicies", + }, }, authorizationSource: { serializedName: "authorizationSource", type: { - name: "String" - } + name: "String", + }, }, managedByTenants: { serializedName: "managedByTenants", @@ -497,20 +503,20 @@ export const Subscription: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ManagedByTenant" - } - } - } + className: "ManagedByTenant", + }, + }, + }, }, tags: { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } + value: { type: { name: "String" } }, + }, + }, + }, + }, }; export const SubscriptionPolicies: coreClient.CompositeMapper = { @@ -522,26 +528,26 @@ export const SubscriptionPolicies: coreClient.CompositeMapper = { serializedName: "locationPlacementId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, quotaId: { serializedName: "quotaId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, spendingLimit: { serializedName: "spendingLimit", readOnly: true, type: { name: "Enum", - allowedValues: ["On", "Off", "CurrentPeriodOff"] - } - } - } - } + allowedValues: ["On", "Off", "CurrentPeriodOff"], + }, + }, + }, + }, }; export const ManagedByTenant: coreClient.CompositeMapper = { @@ -553,11 +559,11 @@ export const ManagedByTenant: coreClient.CompositeMapper = { serializedName: "tenantId", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SubscriptionListResult: coreClient.CompositeMapper = { @@ -572,20 +578,20 @@ export const SubscriptionListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Subscription" - } - } - } + className: "Subscription", + }, + }, + }, }, nextLink: { serializedName: "nextLink", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const TenantListResult: coreClient.CompositeMapper = { @@ -600,20 +606,20 @@ export const TenantListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "TenantIdDescription" - } - } - } + className: "TenantIdDescription", + }, + }, + }, }, nextLink: { serializedName: "nextLink", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const TenantIdDescription: coreClient.CompositeMapper = { @@ -625,44 +631,44 @@ export const TenantIdDescription: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, tenantId: { serializedName: "tenantId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, tenantCategory: { serializedName: "tenantCategory", readOnly: true, type: { name: "Enum", - allowedValues: ["Home", "ProjectedBy", "ManagedBy"] - } + allowedValues: ["Home", "ProjectedBy", "ManagedBy"], + }, }, country: { serializedName: "country", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, countryCode: { serializedName: "countryCode", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, displayName: { serializedName: "displayName", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, domains: { serializedName: "domains", @@ -671,34 +677,34 @@ export const TenantIdDescription: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, defaultDomain: { serializedName: "defaultDomain", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, tenantType: { serializedName: "tenantType", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, tenantBrandingLogoUrl: { serializedName: "tenantBrandingLogoUrl", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const CheckZonePeersRequest: coreClient.CompositeMapper = { @@ -709,8 +715,8 @@ export const CheckZonePeersRequest: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } + name: "String", + }, }, subscriptionIds: { serializedName: "subscriptionIds", @@ -718,13 +724,13 @@ export const CheckZonePeersRequest: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const CheckZonePeersResult: coreClient.CompositeMapper = { @@ -736,14 +742,14 @@ export const CheckZonePeersResult: coreClient.CompositeMapper = { serializedName: "subscriptionId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, location: { serializedName: "location", type: { - name: "String" - } + name: "String", + }, }, availabilityZonePeers: { serializedName: "availabilityZonePeers", @@ -752,13 +758,13 @@ export const CheckZonePeersResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "AvailabilityZonePeers" - } - } - } - } - } - } + className: "AvailabilityZonePeers", + }, + }, + }, + }, + }, + }, }; export const AvailabilityZonePeers: coreClient.CompositeMapper = { @@ -770,8 +776,8 @@ export const AvailabilityZonePeers: coreClient.CompositeMapper = { serializedName: "availabilityZone", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, peers: { serializedName: "peers", @@ -780,13 +786,13 @@ export const AvailabilityZonePeers: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Peers" - } - } - } - } - } - } + className: "Peers", + }, + }, + }, + }, + }, + }, }; export const Peers: coreClient.CompositeMapper = { @@ -798,18 +804,18 @@ export const Peers: coreClient.CompositeMapper = { serializedName: "subscriptionId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, availabilityZone: { serializedName: "availabilityZone", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ErrorResponseAutoGenerated: coreClient.CompositeMapper = { @@ -821,11 +827,11 @@ export const ErrorResponseAutoGenerated: coreClient.CompositeMapper = { serializedName: "error", type: { name: "Composite", - className: "ErrorDetail" - } - } - } - } + className: "ErrorDetail", + }, + }, + }, + }, }; export const ErrorDetail: coreClient.CompositeMapper = { @@ -837,22 +843,22 @@ export const ErrorDetail: coreClient.CompositeMapper = { serializedName: "code", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, message: { serializedName: "message", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, target: { serializedName: "target", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, details: { serializedName: "details", @@ -862,10 +868,10 @@ export const ErrorDetail: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ErrorDetail" - } - } - } + className: "ErrorDetail", + }, + }, + }, }, additionalInfo: { serializedName: "additionalInfo", @@ -875,13 +881,13 @@ export const ErrorDetail: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ErrorAdditionalInfo" - } - } - } - } - } - } + className: "ErrorAdditionalInfo", + }, + }, + }, + }, + }, + }, }; export const ResourceName: coreClient.CompositeMapper = { @@ -893,18 +899,18 @@ export const ResourceName: coreClient.CompositeMapper = { serializedName: "name", required: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const CheckResourceNameResult: coreClient.CompositeMapper = { @@ -915,23 +921,23 @@ export const CheckResourceNameResult: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", type: { - name: "String" - } + name: "String", + }, }, status: { serializedName: "status", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const OperationAutoGenerated: coreClient.CompositeMapper = { @@ -942,39 +948,39 @@ export const OperationAutoGenerated: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, isDataAction: { serializedName: "isDataAction", readOnly: true, type: { - name: "Boolean" - } + name: "Boolean", + }, }, display: { serializedName: "display", type: { name: "Composite", - className: "OperationDisplayAutoGenerated" - } + className: "OperationDisplayAutoGenerated", + }, }, origin: { serializedName: "origin", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, actionType: { serializedName: "actionType", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const OperationDisplayAutoGenerated: coreClient.CompositeMapper = { @@ -985,29 +991,29 @@ export const OperationDisplayAutoGenerated: coreClient.CompositeMapper = { provider: { serializedName: "provider", type: { - name: "String" - } + name: "String", + }, }, resource: { serializedName: "resource", type: { - name: "String" - } + name: "String", + }, }, operation: { serializedName: "operation", type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "description", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const OperationListResultAutoGenerated: coreClient.CompositeMapper = { @@ -1022,17 +1028,17 @@ export const OperationListResultAutoGenerated: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "OperationAutoGenerated" - } - } - } + className: "OperationAutoGenerated", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; diff --git a/sdk/resources-subscriptions/arm-resources-subscriptions/src/models/parameters.ts b/sdk/resources-subscriptions/arm-resources-subscriptions/src/models/parameters.ts index 2d2011c70e744..965ef83a78853 100644 --- a/sdk/resources-subscriptions/arm-resources-subscriptions/src/models/parameters.ts +++ b/sdk/resources-subscriptions/arm-resources-subscriptions/src/models/parameters.ts @@ -9,11 +9,11 @@ import { OperationParameter, OperationURLParameter, - OperationQueryParameter + OperationQueryParameter, } from "@azure/core-client"; import { CheckZonePeersRequest as CheckZonePeersRequestMapper, - ResourceName as ResourceNameMapper + ResourceName as ResourceNameMapper, } from "../models/mappers"; export const accept: OperationParameter = { @@ -23,9 +23,9 @@ export const accept: OperationParameter = { isConstant: true, serializedName: "Accept", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const $host: OperationURLParameter = { @@ -34,10 +34,10 @@ export const $host: OperationURLParameter = { serializedName: "$host", required: true, type: { - name: "String" - } + name: "String", + }, }, - skipEncoding: true + skipEncoding: true, }; export const apiVersion: OperationQueryParameter = { @@ -47,9 +47,9 @@ export const apiVersion: OperationQueryParameter = { isConstant: true, serializedName: "api-version", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const nextLink: OperationURLParameter = { @@ -58,10 +58,10 @@ export const nextLink: OperationURLParameter = { serializedName: "nextLink", required: true, type: { - name: "String" - } + name: "String", + }, }, - skipEncoding: true + skipEncoding: true, }; export const subscriptionId: OperationURLParameter = { @@ -70,9 +70,9 @@ export const subscriptionId: OperationURLParameter = { serializedName: "subscriptionId", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const includeExtendedLocations: OperationQueryParameter = { @@ -80,9 +80,9 @@ export const includeExtendedLocations: OperationQueryParameter = { mapper: { serializedName: "includeExtendedLocations", type: { - name: "Boolean" - } - } + name: "Boolean", + }, + }, }; export const contentType: OperationParameter = { @@ -92,17 +92,17 @@ export const contentType: OperationParameter = { isConstant: true, serializedName: "Content-Type", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters: OperationParameter = { parameterPath: "parameters", - mapper: CheckZonePeersRequestMapper + mapper: CheckZonePeersRequestMapper, }; export const resourceNameDefinition: OperationParameter = { parameterPath: ["options", "resourceNameDefinition"], - mapper: ResourceNameMapper + mapper: ResourceNameMapper, }; diff --git a/sdk/resources-subscriptions/arm-resources-subscriptions/src/operations/operations.ts b/sdk/resources-subscriptions/arm-resources-subscriptions/src/operations/operations.ts index 3808ae14959af..9e27d8928e4d7 100644 --- a/sdk/resources-subscriptions/arm-resources-subscriptions/src/operations/operations.ts +++ b/sdk/resources-subscriptions/arm-resources-subscriptions/src/operations/operations.ts @@ -18,7 +18,7 @@ import { OperationsListNextOptionalParams, OperationsListOptionalParams, OperationsListResponse, - OperationsListNextResponse + OperationsListNextResponse, } from "../models"; /// @@ -39,7 +39,7 @@ export class OperationsImpl implements Operations { * @param options The options parameters. */ public list( - options?: OperationsListOptionalParams + options?: OperationsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(options); return { @@ -54,13 +54,13 @@ export class OperationsImpl implements Operations { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(options, settings); - } + }, }; } private async *listPagingPage( options?: OperationsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: OperationsListResponse; let continuationToken = settings?.continuationToken; @@ -81,7 +81,7 @@ export class OperationsImpl implements Operations { } private async *listPagingAll( - options?: OperationsListOptionalParams + options?: OperationsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(options)) { yield* page; @@ -93,7 +93,7 @@ export class OperationsImpl implements Operations { * @param options The options parameters. */ private _list( - options?: OperationsListOptionalParams + options?: OperationsListOptionalParams, ): Promise { return this.client.sendOperationRequest({ options }, listOperationSpec); } @@ -105,11 +105,11 @@ export class OperationsImpl implements Operations { */ private _listNext( nextLink: string, - options?: OperationsListNextOptionalParams + options?: OperationsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -121,29 +121,29 @@ const listOperationSpec: coreClient.OperationSpec = { httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.OperationListResult + bodyMapper: Mappers.OperationListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.OperationListResult + bodyMapper: Mappers.OperationListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [Parameters.$host, Parameters.nextLink], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/resources-subscriptions/arm-resources-subscriptions/src/operations/subscriptions.ts b/sdk/resources-subscriptions/arm-resources-subscriptions/src/operations/subscriptions.ts index 1221f4bb1b8f7..19c42462e4a58 100644 --- a/sdk/resources-subscriptions/arm-resources-subscriptions/src/operations/subscriptions.ts +++ b/sdk/resources-subscriptions/arm-resources-subscriptions/src/operations/subscriptions.ts @@ -26,7 +26,7 @@ import { CheckZonePeersRequest, SubscriptionsCheckZonePeersOptionalParams, SubscriptionsCheckZonePeersResponse, - SubscriptionsListNextResponse + SubscriptionsListNextResponse, } from "../models"; /// @@ -50,7 +50,7 @@ export class SubscriptionsImpl implements Subscriptions { */ public listLocations( subscriptionId: string, - options?: SubscriptionsListLocationsOptionalParams + options?: SubscriptionsListLocationsOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listLocationsPagingAll(subscriptionId, options); return { @@ -65,14 +65,14 @@ export class SubscriptionsImpl implements Subscriptions { throw new Error("maxPageSize is not supported by this operation."); } return this.listLocationsPagingPage(subscriptionId, options, settings); - } + }, }; } private async *listLocationsPagingPage( subscriptionId: string, options?: SubscriptionsListLocationsOptionalParams, - _settings?: PageSettings + _settings?: PageSettings, ): AsyncIterableIterator { let result: SubscriptionsListLocationsResponse; result = await this._listLocations(subscriptionId, options); @@ -81,11 +81,11 @@ export class SubscriptionsImpl implements Subscriptions { private async *listLocationsPagingAll( subscriptionId: string, - options?: SubscriptionsListLocationsOptionalParams + options?: SubscriptionsListLocationsOptionalParams, ): AsyncIterableIterator { for await (const page of this.listLocationsPagingPage( subscriptionId, - options + options, )) { yield* page; } @@ -96,7 +96,7 @@ export class SubscriptionsImpl implements Subscriptions { * @param options The options parameters. */ public list( - options?: SubscriptionsListOptionalParams + options?: SubscriptionsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(options); return { @@ -111,13 +111,13 @@ export class SubscriptionsImpl implements Subscriptions { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(options, settings); - } + }, }; } private async *listPagingPage( options?: SubscriptionsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: SubscriptionsListResponse; let continuationToken = settings?.continuationToken; @@ -138,7 +138,7 @@ export class SubscriptionsImpl implements Subscriptions { } private async *listPagingAll( - options?: SubscriptionsListOptionalParams + options?: SubscriptionsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(options)) { yield* page; @@ -153,11 +153,11 @@ export class SubscriptionsImpl implements Subscriptions { */ private _listLocations( subscriptionId: string, - options?: SubscriptionsListLocationsOptionalParams + options?: SubscriptionsListLocationsOptionalParams, ): Promise { return this.client.sendOperationRequest( { subscriptionId, options }, - listLocationsOperationSpec + listLocationsOperationSpec, ); } @@ -168,11 +168,11 @@ export class SubscriptionsImpl implements Subscriptions { */ get( subscriptionId: string, - options?: SubscriptionsGetOptionalParams + options?: SubscriptionsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { subscriptionId, options }, - getOperationSpec + getOperationSpec, ); } @@ -181,7 +181,7 @@ export class SubscriptionsImpl implements Subscriptions { * @param options The options parameters. */ private _list( - options?: SubscriptionsListOptionalParams + options?: SubscriptionsListOptionalParams, ): Promise { return this.client.sendOperationRequest({ options }, listOperationSpec); } @@ -195,11 +195,11 @@ export class SubscriptionsImpl implements Subscriptions { checkZonePeers( subscriptionId: string, parameters: CheckZonePeersRequest, - options?: SubscriptionsCheckZonePeersOptionalParams + options?: SubscriptionsCheckZonePeersOptionalParams, ): Promise { return this.client.sendOperationRequest( { subscriptionId, parameters, options }, - checkZonePeersOperationSpec + checkZonePeersOperationSpec, ); } @@ -210,11 +210,11 @@ export class SubscriptionsImpl implements Subscriptions { */ private _listNext( nextLink: string, - options?: SubscriptionsListNextOptionalParams + options?: SubscriptionsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -226,80 +226,79 @@ const listLocationsOperationSpec: coreClient.OperationSpec = { httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.LocationListResult + bodyMapper: Mappers.LocationListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion, Parameters.includeExtendedLocations], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.Subscription + bodyMapper: Mappers.Subscription, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { path: "/subscriptions", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SubscriptionListResult + bodyMapper: Mappers.SubscriptionListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host], headerParameters: [Parameters.accept], - serializer + serializer, }; const checkZonePeersOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Resources/checkZonePeers/", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Resources/checkZonePeers/", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.CheckZonePeersResult + bodyMapper: Mappers.CheckZonePeersResult, }, default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated - } + bodyMapper: Mappers.ErrorResponseAutoGenerated, + }, }, requestBody: Parameters.parameters, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SubscriptionListResult + bodyMapper: Mappers.SubscriptionListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [Parameters.$host, Parameters.nextLink], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/resources-subscriptions/arm-resources-subscriptions/src/operations/tenants.ts b/sdk/resources-subscriptions/arm-resources-subscriptions/src/operations/tenants.ts index e7ccb62eed12c..1ca29fe03ca3d 100644 --- a/sdk/resources-subscriptions/arm-resources-subscriptions/src/operations/tenants.ts +++ b/sdk/resources-subscriptions/arm-resources-subscriptions/src/operations/tenants.ts @@ -18,7 +18,7 @@ import { TenantsListNextOptionalParams, TenantsListOptionalParams, TenantsListResponse, - TenantsListNextResponse + TenantsListNextResponse, } from "../models"; /// @@ -39,7 +39,7 @@ export class TenantsImpl implements Tenants { * @param options The options parameters. */ public list( - options?: TenantsListOptionalParams + options?: TenantsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(options); return { @@ -54,13 +54,13 @@ export class TenantsImpl implements Tenants { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(options, settings); - } + }, }; } private async *listPagingPage( options?: TenantsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: TenantsListResponse; let continuationToken = settings?.continuationToken; @@ -81,7 +81,7 @@ export class TenantsImpl implements Tenants { } private async *listPagingAll( - options?: TenantsListOptionalParams + options?: TenantsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(options)) { yield* page; @@ -93,7 +93,7 @@ export class TenantsImpl implements Tenants { * @param options The options parameters. */ private _list( - options?: TenantsListOptionalParams + options?: TenantsListOptionalParams, ): Promise { return this.client.sendOperationRequest({ options }, listOperationSpec); } @@ -105,11 +105,11 @@ export class TenantsImpl implements Tenants { */ private _listNext( nextLink: string, - options?: TenantsListNextOptionalParams + options?: TenantsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -121,29 +121,29 @@ const listOperationSpec: coreClient.OperationSpec = { httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.TenantListResult + bodyMapper: Mappers.TenantListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.TenantListResult + bodyMapper: Mappers.TenantListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [Parameters.$host, Parameters.nextLink], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/resources-subscriptions/arm-resources-subscriptions/src/operationsInterfaces/operations.ts b/sdk/resources-subscriptions/arm-resources-subscriptions/src/operationsInterfaces/operations.ts index ac34435954c03..65cdf8035ab0b 100644 --- a/sdk/resources-subscriptions/arm-resources-subscriptions/src/operationsInterfaces/operations.ts +++ b/sdk/resources-subscriptions/arm-resources-subscriptions/src/operationsInterfaces/operations.ts @@ -17,6 +17,6 @@ export interface Operations { * @param options The options parameters. */ list( - options?: OperationsListOptionalParams + options?: OperationsListOptionalParams, ): PagedAsyncIterableIterator; } diff --git a/sdk/resources-subscriptions/arm-resources-subscriptions/src/operationsInterfaces/subscriptions.ts b/sdk/resources-subscriptions/arm-resources-subscriptions/src/operationsInterfaces/subscriptions.ts index 4142f4ea2482b..31d2bad21da2f 100644 --- a/sdk/resources-subscriptions/arm-resources-subscriptions/src/operationsInterfaces/subscriptions.ts +++ b/sdk/resources-subscriptions/arm-resources-subscriptions/src/operationsInterfaces/subscriptions.ts @@ -16,7 +16,7 @@ import { SubscriptionsGetResponse, CheckZonePeersRequest, SubscriptionsCheckZonePeersOptionalParams, - SubscriptionsCheckZonePeersResponse + SubscriptionsCheckZonePeersResponse, } from "../models"; /// @@ -30,14 +30,14 @@ export interface Subscriptions { */ listLocations( subscriptionId: string, - options?: SubscriptionsListLocationsOptionalParams + options?: SubscriptionsListLocationsOptionalParams, ): PagedAsyncIterableIterator; /** * Gets all subscriptions for a tenant. * @param options The options parameters. */ list( - options?: SubscriptionsListOptionalParams + options?: SubscriptionsListOptionalParams, ): PagedAsyncIterableIterator; /** * Gets details about a specified subscription. @@ -46,7 +46,7 @@ export interface Subscriptions { */ get( subscriptionId: string, - options?: SubscriptionsGetOptionalParams + options?: SubscriptionsGetOptionalParams, ): Promise; /** * Compares a subscriptions logical zone mapping @@ -57,6 +57,6 @@ export interface Subscriptions { checkZonePeers( subscriptionId: string, parameters: CheckZonePeersRequest, - options?: SubscriptionsCheckZonePeersOptionalParams + options?: SubscriptionsCheckZonePeersOptionalParams, ): Promise; } diff --git a/sdk/resources-subscriptions/arm-resources-subscriptions/src/operationsInterfaces/tenants.ts b/sdk/resources-subscriptions/arm-resources-subscriptions/src/operationsInterfaces/tenants.ts index 423790d0f0ac3..222c152ed5f10 100644 --- a/sdk/resources-subscriptions/arm-resources-subscriptions/src/operationsInterfaces/tenants.ts +++ b/sdk/resources-subscriptions/arm-resources-subscriptions/src/operationsInterfaces/tenants.ts @@ -17,6 +17,6 @@ export interface Tenants { * @param options The options parameters. */ list( - options?: TenantsListOptionalParams + options?: TenantsListOptionalParams, ): PagedAsyncIterableIterator; } diff --git a/sdk/resources-subscriptions/arm-resources-subscriptions/src/pagingHelper.ts b/sdk/resources-subscriptions/arm-resources-subscriptions/src/pagingHelper.ts index 269a2b9814b51..205cccc265927 100644 --- a/sdk/resources-subscriptions/arm-resources-subscriptions/src/pagingHelper.ts +++ b/sdk/resources-subscriptions/arm-resources-subscriptions/src/pagingHelper.ts @@ -28,7 +28,7 @@ export function getContinuationToken(page: unknown): string | undefined { export function setContinuationToken( page: unknown, - continuationToken: string | undefined + continuationToken: string | undefined, ): void { if (typeof page !== "object" || page === null || !continuationToken) { return; diff --git a/sdk/resources-subscriptions/arm-resources-subscriptions/src/subscriptionClient.ts b/sdk/resources-subscriptions/arm-resources-subscriptions/src/subscriptionClient.ts index 406ae23d19bfb..5952a6ef87462 100644 --- a/sdk/resources-subscriptions/arm-resources-subscriptions/src/subscriptionClient.ts +++ b/sdk/resources-subscriptions/arm-resources-subscriptions/src/subscriptionClient.ts @@ -11,7 +11,7 @@ import * as coreRestPipeline from "@azure/core-rest-pipeline"; import { PipelineRequest, PipelineResponse, - SendRequest + SendRequest, } from "@azure/core-rest-pipeline"; import * as coreAuth from "@azure/core-auth"; import { OperationsImpl, SubscriptionsImpl, TenantsImpl } from "./operations"; @@ -21,7 +21,7 @@ import * as Mappers from "./models/mappers"; import { SubscriptionClientOptionalParams, CheckResourceNameOptionalParams, - CheckResourceNameResponse + CheckResourceNameResponse, } from "./models"; export class SubscriptionClient extends coreClient.ServiceClient { @@ -35,7 +35,7 @@ export class SubscriptionClient extends coreClient.ServiceClient { */ constructor( credentials: coreAuth.TokenCredential, - options?: SubscriptionClientOptionalParams + options?: SubscriptionClientOptionalParams, ) { if (credentials === undefined) { throw new Error("'credentials' cannot be null"); @@ -47,7 +47,7 @@ export class SubscriptionClient extends coreClient.ServiceClient { } const defaults: SubscriptionClientOptionalParams = { requestContentType: "application/json; charset=utf-8", - credential: credentials + credential: credentials, }; const packageDetails = `azsdk-js-arm-resources-subscriptions/2.1.1`; @@ -60,20 +60,21 @@ export class SubscriptionClient extends coreClient.ServiceClient { ...defaults, ...options, userAgentOptions: { - userAgentPrefix + userAgentPrefix, }, endpoint: - options.endpoint ?? options.baseUri ?? "https://management.azure.com" + options.endpoint ?? options.baseUri ?? "https://management.azure.com", }; super(optionsWithDefaults); let bearerTokenAuthenticationPolicyFound: boolean = false; if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) { - const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies(); + const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = + options.pipeline.getOrderedPolicies(); bearerTokenAuthenticationPolicyFound = pipelinePolicies.some( (pipelinePolicy) => pipelinePolicy.name === - coreRestPipeline.bearerTokenAuthenticationPolicyName + coreRestPipeline.bearerTokenAuthenticationPolicyName, ); } if ( @@ -83,7 +84,7 @@ export class SubscriptionClient extends coreClient.ServiceClient { !bearerTokenAuthenticationPolicyFound ) { this.pipeline.removePolicy({ - name: coreRestPipeline.bearerTokenAuthenticationPolicyName + name: coreRestPipeline.bearerTokenAuthenticationPolicyName, }); this.pipeline.addPolicy( coreRestPipeline.bearerTokenAuthenticationPolicy({ @@ -93,9 +94,9 @@ export class SubscriptionClient extends coreClient.ServiceClient { `${optionsWithDefaults.endpoint}/.default`, challengeCallbacks: { authorizeRequestOnChallenge: - coreClient.authorizeRequestOnClaimChallenge - } - }) + coreClient.authorizeRequestOnClaimChallenge, + }, + }), ); } @@ -117,7 +118,7 @@ export class SubscriptionClient extends coreClient.ServiceClient { name: "CustomApiVersionPolicy", async sendRequest( request: PipelineRequest, - next: SendRequest + next: SendRequest, ): Promise { const param = request.url.split("?"); if (param.length > 1) { @@ -131,7 +132,7 @@ export class SubscriptionClient extends coreClient.ServiceClient { request.url = param[0] + "?" + newParams.join("&"); } return next(request); - } + }, }; this.pipeline.addPolicy(apiVersionPolicy); } @@ -142,11 +143,11 @@ export class SubscriptionClient extends coreClient.ServiceClient { * @param options The options parameters. */ checkResourceName( - options?: CheckResourceNameOptionalParams + options?: CheckResourceNameOptionalParams, ): Promise { return this.sendOperationRequest( { options }, - checkResourceNameOperationSpec + checkResourceNameOperationSpec, ); } @@ -162,16 +163,16 @@ const checkResourceNameOperationSpec: coreClient.OperationSpec = { httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.CheckResourceNameResult + bodyMapper: Mappers.CheckResourceNameResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.resourceNameDefinition, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; diff --git a/sdk/resources-subscriptions/arm-resources-subscriptions/test/sampleTest.ts b/sdk/resources-subscriptions/arm-resources-subscriptions/test/sampleTest.ts new file mode 100644 index 0000000000000..d64be981b6946 --- /dev/null +++ b/sdk/resources-subscriptions/arm-resources-subscriptions/test/sampleTest.ts @@ -0,0 +1,43 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { + Recorder, + RecorderStartOptions, + env, +} from "@azure-tools/test-recorder"; +import { assert } from "chai"; +import { Context } from "mocha"; + +const replaceableVariables: Record = { + AZURE_CLIENT_ID: "azure_client_id", + AZURE_CLIENT_SECRET: "azure_client_secret", + AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888", + SUBSCRIPTION_ID: "azure_subscription_id", +}; + +const recorderOptions: RecorderStartOptions = { + envSetupForPlayback: replaceableVariables, +}; + +describe("My test", () => { + let recorder: Recorder; + + beforeEach(async function (this: Context) { + recorder = new Recorder(this.currentTest); + await recorder.start(recorderOptions); + }); + + afterEach(async function () { + await recorder.stop(); + }); + + it("sample test", async function () { + console.log("Hi, I'm a test!"); + }); +}); diff --git a/sdk/resources-subscriptions/arm-resources-subscriptions/tsconfig.json b/sdk/resources-subscriptions/arm-resources-subscriptions/tsconfig.json index 32cefcc4d696d..615e06592f2b1 100644 --- a/sdk/resources-subscriptions/arm-resources-subscriptions/tsconfig.json +++ b/sdk/resources-subscriptions/arm-resources-subscriptions/tsconfig.json @@ -15,17 +15,18 @@ ], "declaration": true, "outDir": "./dist-esm", - "importHelpers": true, - "paths": { - "@azure/arm-resources-subscriptions": [ - "./src/index" - ] - } + "importHelpers": true }, "include": [ "./src/**/*.ts", "./test/**/*.ts", - "samples-dev/**/*.ts" + "./test/**/*.ts", + "./test/**/*.ts", + "./test/**/*.ts", + "./test/**/*.ts", + "./test/**/*.ts", + "./test/**/*.ts", + "./test/**/*.ts" ], "exclude": [ "node_modules" diff --git a/sdk/resources/arm-resources/CHANGELOG.md b/sdk/resources/arm-resources/CHANGELOG.md index 657dbf98ef5ee..83900b70367ac 100644 --- a/sdk/resources/arm-resources/CHANGELOG.md +++ b/sdk/resources/arm-resources/CHANGELOG.md @@ -1,15 +1,44 @@ # Release History + +## 6.0.0 (2024-05-22) + +**Features** -## 5.2.1 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed + - Added operation TagsOperations.beginCreateOrUpdateAtScope + - Added operation TagsOperations.beginCreateOrUpdateAtScopeAndWait + - Added operation TagsOperations.beginDeleteAtScope + - Added operation TagsOperations.beginDeleteAtScopeAndWait + - Added operation TagsOperations.beginUpdateAtScope + - Added operation TagsOperations.beginUpdateAtScopeAndWait + - Added Interface DeploymentParameter + - Added Interface KeyVaultParameterReference + - Added Interface KeyVaultReference + - Added Interface ResourceGroupsDeleteHeaders + - Added Interface TagsCreateOrUpdateAtScopeHeaders + - Added Interface TagsDeleteAtScopeHeaders + - Added Interface TagsUpdateAtScopeHeaders + - Added Type Alias ExportTemplateOutputFormat + - Interface ExportTemplateRequest has a new optional parameter outputFormat + - Interface ResourceGroupExportResult has a new optional parameter output + - Interface TagsCreateOrUpdateAtScopeOptionalParams has a new optional parameter resumeFrom + - Interface TagsCreateOrUpdateAtScopeOptionalParams has a new optional parameter updateIntervalInMs + - Interface TagsDeleteAtScopeOptionalParams has a new optional parameter resumeFrom + - Interface TagsDeleteAtScopeOptionalParams has a new optional parameter updateIntervalInMs + - Interface TagsUpdateAtScopeOptionalParams has a new optional parameter resumeFrom + - Interface TagsUpdateAtScopeOptionalParams has a new optional parameter updateIntervalInMs + - Added Enum KnownExportTemplateOutputFormat -### Other Changes +**Breaking Changes** + - Removed operation TagsOperations.createOrUpdateAtScope + - Removed operation TagsOperations.deleteAtScope + - Removed operation TagsOperations.updateAtScope + - Class ResourceManagementClient has a new signature + - Type of parameter parameters of interface DeploymentProperties is changed from Record to { + [propertyName: string]: DeploymentParameter; + } + + ## 5.2.0 (2023-03-13) **Features** @@ -63,4 +92,4 @@ To understand the detail of the change, please refer to [Changelog](https://aka. To migrate the existing applications to the latest version, please refer to [Migration Guide](https://aka.ms/js-track2-migration-guide). -To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/js/mgmt/quickstart ). +To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/js/mgmt/quickstart). diff --git a/sdk/resources/arm-resources/LICENSE b/sdk/resources/arm-resources/LICENSE index 3a1d9b6f24f73..7d59347409658 100644 --- a/sdk/resources/arm-resources/LICENSE +++ b/sdk/resources/arm-resources/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2023 Microsoft +Copyright (c) 2024 Microsoft Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/sdk/resources/arm-resources/_meta.json b/sdk/resources/arm-resources/_meta.json index e588fd1b883e5..6f675c5d5d6aa 100644 --- a/sdk/resources/arm-resources/_meta.json +++ b/sdk/resources/arm-resources/_meta.json @@ -1,8 +1,8 @@ { - "commit": "a42f1b58607091c4f255ead152a8ef323fa0b280", - "readme": "specification\\resources\\resource-manager\\readme.md", - "autorest_command": "autorest --version=3.9.3 --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\\resources\\resource-manager\\readme.md --use=@autorest/typescript@6.0.0-rc.9.20230306.1 --generate-sample=true", + "commit": "61db561c7b16295a74a39fa76e58967fb0c621d7", + "readme": "specification/resources/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=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/resources/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.6.2", - "use": "@autorest/typescript@6.0.0-rc.9.20230306.1" + "release_tool": "@azure-tools/js-sdk-release-tools@2.7.9", + "use": "@autorest/typescript@^6.0.12" } \ No newline at end of file diff --git a/sdk/resources/arm-resources/package.json b/sdk/resources/arm-resources/package.json index cc6de277b9a02..78e4292406434 100644 --- a/sdk/resources/arm-resources/package.json +++ b/sdk/resources/arm-resources/package.json @@ -3,17 +3,17 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for ResourceManagementClient.", - "version": "5.2.1", + "version": "6.0.0", "engines": { "node": ">=18.0.0" }, "dependencies": { - "@azure/core-lro": "^2.5.0", + "@azure/core-lro": "^2.5.4", "@azure/abort-controller": "^1.0.0", "@azure/core-paging": "^1.2.0", "@azure/core-client": "^1.7.0", - "@azure/core-auth": "^1.3.0", - "@azure/core-rest-pipeline": "^1.8.0", + "@azure/core-auth": "^1.6.0", + "@azure/core-rest-pipeline": "^1.14.0", "tslib": "^2.2.0" }, "keywords": [ @@ -32,18 +32,19 @@ "mkdirp": "^3.0.1", "typescript": "~5.4.5", "uglify-js": "^3.4.9", - "rimraf": "^5.0.5", + "rimraf": "^5.0.0", "dotenv": "^16.0.0", + "@azure/dev-tool": "^1.0.0", "@azure/identity": "^4.0.1", "@azure-tools/test-recorder": "^3.0.0", "@azure-tools/test-credential": "^1.0.0", "mocha": "^10.0.0", "@types/mocha": "^10.0.0", + "tsx": "^4.7.1", "@types/chai": "^4.2.8", "chai": "^4.2.0", "cross-env": "^7.0.2", "@types/node": "^18.0.0", - "@azure/dev-tool": "^1.0.0", "ts-node": "^10.0.0" }, "repository": { @@ -77,7 +78,6 @@ "pack": "npm pack 2>&1", "extract-api": "dev-tool run extract-api", "lint": "echo skipped", - "audit": "echo skipped", "clean": "rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log", "build:node": "echo skipped", "build:browser": "echo skipped", @@ -106,13 +106,5 @@ ] }, "autoPublish": true, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/resources/arm-resources", - "//sampleConfiguration": { - "productName": "", - "productSlugs": [ - "azure" - ], - "disableDocsMs": true, - "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-resources?view=azure-node-preview" - } -} + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/resources/arm-resources" +} \ No newline at end of file diff --git a/sdk/resources/arm-resources/review/arm-resources.api.md b/sdk/resources/arm-resources/review/arm-resources.api.md index 4d8eb74a80a85..0807af359ecbc 100644 --- a/sdk/resources/arm-resources/review/arm-resources.api.md +++ b/sdk/resources/arm-resources/review/arm-resources.api.md @@ -278,13 +278,21 @@ export interface DeploymentOperationsListResult { value?: DeploymentOperation[]; } +// @public +export interface DeploymentParameter { + reference?: KeyVaultParameterReference; + value?: any; +} + // @public export interface DeploymentProperties { debugSetting?: DebugSetting; expressionEvaluationOptions?: ExpressionEvaluationOptions; mode: DeploymentMode; onErrorDeployment?: OnErrorDeployment; - parameters?: Record; + parameters?: { + [propertyName: string]: DeploymentParameter; + }; parametersLink?: ParametersLink; template?: Record; templateLink?: TemplateLink; @@ -818,9 +826,13 @@ export interface ErrorResponse { readonly target?: string; } +// @public +export type ExportTemplateOutputFormat = string; + // @public export interface ExportTemplateRequest { options?: string; + outputFormat?: ExportTemplateOutputFormat; resources?: string[]; } @@ -889,6 +901,18 @@ export interface IdentityUserAssignedIdentitiesValue { readonly principalId?: string; } +// @public +export interface KeyVaultParameterReference { + keyVault: KeyVaultReference; + secretName: string; + secretVersion?: string; +} + +// @public +export interface KeyVaultReference { + id: string; +} + // @public export enum KnownAliasPathAttributes { Modifiable = "Modifiable", @@ -907,6 +931,12 @@ export enum KnownAliasPathTokenType { String = "String" } +// @public +export enum KnownExportTemplateOutputFormat { + Bicep = "Bicep", + Json = "Json" +} + // @public export enum KnownExpressionEvaluationOptionsScopeType { Inner = "Inner", @@ -1235,6 +1265,7 @@ export interface ResourceGroup { // @public export interface ResourceGroupExportResult { error?: ErrorResponse; + output?: string; template?: Record; } @@ -1294,6 +1325,11 @@ export interface ResourceGroupsCreateOrUpdateOptionalParams extends coreClient.O // @public export type ResourceGroupsCreateOrUpdateResponse = ResourceGroup; +// @public +export interface ResourceGroupsDeleteHeaders { + location?: string; +} + // @public export interface ResourceGroupsDeleteOptionalParams extends coreClient.OperationOptions { forceDeletionTypes?: string; @@ -1354,6 +1390,7 @@ export class ResourceManagementClient extends coreClient.ServiceClient { // (undocumented) $host: string; constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: ResourceManagementClientOptionalParams); + constructor(credentials: coreAuth.TokenCredential, options?: ResourceManagementClientOptionalParams); // (undocumented) apiVersion: string; // (undocumented) @@ -1371,7 +1408,7 @@ export class ResourceManagementClient extends coreClient.ServiceClient { // (undocumented) resources: Resources; // (undocumented) - subscriptionId: string; + subscriptionId?: string; // (undocumented) tagsOperations: TagsOperations; } @@ -1621,8 +1658,15 @@ export interface Tags { }; } +// @public +export interface TagsCreateOrUpdateAtScopeHeaders { + location?: string; +} + // @public export interface TagsCreateOrUpdateAtScopeOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; } // @public @@ -1642,8 +1686,15 @@ export interface TagsCreateOrUpdateValueOptionalParams extends coreClient.Operat // @public export type TagsCreateOrUpdateValueResponse = TagValue; +// @public +export interface TagsDeleteAtScopeHeaders { + location?: string; +} + // @public export interface TagsDeleteAtScopeOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; } // @public @@ -1683,15 +1734,18 @@ export interface TagsListResult { // @public export interface TagsOperations { + beginCreateOrUpdateAtScope(scope: string, parameters: TagsResource, options?: TagsCreateOrUpdateAtScopeOptionalParams): Promise, TagsCreateOrUpdateAtScopeResponse>>; + beginCreateOrUpdateAtScopeAndWait(scope: string, parameters: TagsResource, options?: TagsCreateOrUpdateAtScopeOptionalParams): Promise; + beginDeleteAtScope(scope: string, options?: TagsDeleteAtScopeOptionalParams): Promise, void>>; + beginDeleteAtScopeAndWait(scope: string, options?: TagsDeleteAtScopeOptionalParams): Promise; + beginUpdateAtScope(scope: string, parameters: TagsPatchResource, options?: TagsUpdateAtScopeOptionalParams): Promise, TagsUpdateAtScopeResponse>>; + beginUpdateAtScopeAndWait(scope: string, parameters: TagsPatchResource, options?: TagsUpdateAtScopeOptionalParams): Promise; createOrUpdate(tagName: string, options?: TagsCreateOrUpdateOptionalParams): Promise; - createOrUpdateAtScope(scope: string, parameters: TagsResource, options?: TagsCreateOrUpdateAtScopeOptionalParams): Promise; createOrUpdateValue(tagName: string, tagValue: string, options?: TagsCreateOrUpdateValueOptionalParams): Promise; delete(tagName: string, options?: TagsDeleteOptionalParams): Promise; - deleteAtScope(scope: string, options?: TagsDeleteAtScopeOptionalParams): Promise; deleteValue(tagName: string, tagValue: string, options?: TagsDeleteValueOptionalParams): Promise; getAtScope(scope: string, options?: TagsGetAtScopeOptionalParams): Promise; list(options?: TagsListOptionalParams): PagedAsyncIterableIterator; - updateAtScope(scope: string, parameters: TagsPatchResource, options?: TagsUpdateAtScopeOptionalParams): Promise; } // @public @@ -1711,8 +1765,15 @@ export interface TagsResource { readonly type?: string; } +// @public +export interface TagsUpdateAtScopeHeaders { + location?: string; +} + // @public export interface TagsUpdateAtScopeOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; } // @public diff --git a/sdk/resources/arm-resources/src/lroImpl.ts b/sdk/resources/arm-resources/src/lroImpl.ts index dd803cd5e28c3..b27f5ac7209be 100644 --- a/sdk/resources/arm-resources/src/lroImpl.ts +++ b/sdk/resources/arm-resources/src/lroImpl.ts @@ -28,15 +28,15 @@ export function createLroSpec(inputs: { sendInitialRequest: () => sendOperationFn(args, spec), sendPollRequest: ( path: string, - options?: { abortSignal?: AbortSignalLike } + options?: { abortSignal?: AbortSignalLike }, ) => { const { requestBody, ...restSpec } = spec; return sendOperationFn(args, { ...restSpec, httpMethod: "GET", path, - abortSignal: options?.abortSignal + abortSignal: options?.abortSignal, }); - } + }, }; } diff --git a/sdk/resources/arm-resources/src/models/index.ts b/sdk/resources/arm-resources/src/models/index.ts index 2c57cb76c1498..17083e06aa6a2 100644 --- a/sdk/resources/arm-resources/src/models/index.ts +++ b/sdk/resources/arm-resources/src/models/index.ts @@ -102,7 +102,7 @@ export interface DeploymentProperties { /** The URI of the template. Use either the templateLink property or the template property, but not both. */ templateLink?: TemplateLink; /** Name and value pairs that define the deployment parameters for the template. You use this element when you want to provide the parameter values directly in the request rather than link to an existing parameter file. Use either the parametersLink property or the parameters property, but not both. It can be a JObject or a well formed JSON string. */ - parameters?: Record; + parameters?: { [propertyName: string]: DeploymentParameter }; /** The URI of parameters file. You use this element to link to an existing parameters file. Use either the parametersLink property or the parameters property, but not both. */ parametersLink?: ParametersLink; /** The mode that is used to deploy resources. This value can be either Incremental or Complete. In Incremental mode, resources are deployed without deleting existing resources that are not included in the template. In Complete mode, resources are deployed and existing resources in the resource group that are not included in the template are deleted. Be careful when using Complete mode as you may unintentionally delete resources. */ @@ -129,6 +129,30 @@ export interface TemplateLink { queryString?: string; } +/** Deployment parameter for the template. */ +export interface DeploymentParameter { + /** Input value to the parameter . */ + value?: any; + /** Azure Key Vault parameter reference. */ + reference?: KeyVaultParameterReference; +} + +/** Azure Key Vault parameter reference. */ +export interface KeyVaultParameterReference { + /** Azure Key Vault reference. */ + keyVault: KeyVaultReference; + /** Azure Key Vault secret name. */ + secretName: string; + /** Azure Key Vault secret version. */ + secretVersion?: string; +} + +/** Azure Key Vault reference. */ +export interface KeyVaultReference { + /** Azure Key Vault resource id. */ + id: string; +} + /** Entity representing the reference to the deployment parameters. */ export interface ParametersLink { /** The URI of the parameters file. */ @@ -802,12 +826,16 @@ export interface ExportTemplateRequest { resources?: string[]; /** The export template options. A CSV-formatted list containing zero or more of the following: 'IncludeParameterDefaultValue', 'IncludeComments', 'SkipResourceNameParameterization', 'SkipAllParameterization' */ options?: string; + /** The output format for the exported resources. */ + outputFormat?: ExportTemplateOutputFormat; } /** Resource group export result. */ export interface ResourceGroupExportResult { - /** The template content. */ + /** The template content. Used if outputFormat is empty or set to 'Json'. */ template?: Record; + /** The formatted export content. Used if outputFormat is set to 'Bicep'. */ + output?: string; /** The template export error. */ error?: ErrorResponse; } @@ -1143,6 +1171,30 @@ export interface DeploymentsWhatIfHeaders { retryAfter?: string; } +/** Defines headers for ResourceGroups_delete operation. */ +export interface ResourceGroupsDeleteHeaders { + /** URL to get status of this long-running operation. */ + location?: string; +} + +/** Defines headers for Tags_createOrUpdateAtScope operation. */ +export interface TagsCreateOrUpdateAtScopeHeaders { + /** URL to get status of this long-running operation. */ + location?: string; +} + +/** Defines headers for Tags_updateAtScope operation. */ +export interface TagsUpdateAtScopeHeaders { + /** URL to get status of this long-running operation. */ + location?: string; +} + +/** Defines headers for Tags_deleteAtScope operation. */ +export interface TagsDeleteAtScopeHeaders { + /** URL to get status of this long-running operation. */ + location?: string; +} + /** Known values of {@link ExpressionEvaluationOptionsScopeType} that the service accepts. */ export enum KnownExpressionEvaluationOptionsScopeType { /** NotSpecified */ @@ -1150,7 +1202,7 @@ export enum KnownExpressionEvaluationOptionsScopeType { /** Outer */ Outer = "Outer", /** Inner */ - Inner = "Inner" + Inner = "Inner", } /** @@ -1189,7 +1241,7 @@ export enum KnownProvisioningState { /** Succeeded */ Succeeded = "Succeeded", /** Updating */ - Updating = "Updating" + Updating = "Updating", } /** @@ -1229,7 +1281,7 @@ export enum KnownAliasPathTokenType { /** The token type is number. */ Number = "Number", /** The token type is boolean. */ - Boolean = "Boolean" + Boolean = "Boolean", } /** @@ -1253,7 +1305,7 @@ export enum KnownAliasPathAttributes { /** The token that the alias path is referring to has no attributes. */ None = "None", /** The token that the alias path is referring to is modifiable by policies with 'modify' effect. */ - Modifiable = "Modifiable" + Modifiable = "Modifiable", } /** @@ -1275,7 +1327,7 @@ export enum KnownProviderAuthorizationConsentState { /** NotRequired */ NotRequired = "NotRequired", /** Consented */ - Consented = "Consented" + Consented = "Consented", } /** @@ -1293,7 +1345,7 @@ export type ProviderAuthorizationConsentState = string; /** Known values of {@link ExtendedLocationType} that the service accepts. */ export enum KnownExtendedLocationType { /** EdgeZone */ - EdgeZone = "EdgeZone" + EdgeZone = "EdgeZone", } /** @@ -1305,6 +1357,24 @@ export enum KnownExtendedLocationType { */ export type ExtendedLocationType = string; +/** Known values of {@link ExportTemplateOutputFormat} that the service accepts. */ +export enum KnownExportTemplateOutputFormat { + /** Json */ + Json = "Json", + /** Bicep */ + Bicep = "Bicep", +} + +/** + * Defines values for ExportTemplateOutputFormat. \ + * {@link KnownExportTemplateOutputFormat} can be used interchangeably with ExportTemplateOutputFormat, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Json** \ + * **Bicep** + */ +export type ExportTemplateOutputFormat = string; + /** Known values of {@link TagsPatchOperation} that the service accepts. */ export enum KnownTagsPatchOperation { /** The 'replace' option replaces the entire set of existing tags with a new set. */ @@ -1312,7 +1382,7 @@ export enum KnownTagsPatchOperation { /** The 'merge' option allows adding tags with new names and updating the values of tags with existing names. */ Merge = "Merge", /** The 'delete' option allows selectively deleting tags based on given names or name\/value pairs. */ - Delete = "Delete" + Delete = "Delete", } /** @@ -1526,7 +1596,8 @@ export interface DeploymentsExportTemplateAtTenantScopeOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the exportTemplateAtTenantScope operation. */ -export type DeploymentsExportTemplateAtTenantScopeResponse = DeploymentExportResult; +export type DeploymentsExportTemplateAtTenantScopeResponse = + DeploymentExportResult; /** Optional parameters. */ export interface DeploymentsListAtTenantScopeOptionalParams @@ -1568,7 +1639,8 @@ export interface DeploymentsCreateOrUpdateAtManagementGroupScopeOptionalParams } /** Contains response data for the createOrUpdateAtManagementGroupScope operation. */ -export type DeploymentsCreateOrUpdateAtManagementGroupScopeResponse = DeploymentExtended; +export type DeploymentsCreateOrUpdateAtManagementGroupScopeResponse = + DeploymentExtended; /** Optional parameters. */ export interface DeploymentsGetAtManagementGroupScopeOptionalParams @@ -1591,7 +1663,8 @@ export interface DeploymentsValidateAtManagementGroupScopeOptionalParams } /** Contains response data for the validateAtManagementGroupScope operation. */ -export type DeploymentsValidateAtManagementGroupScopeResponse = DeploymentValidateResult; +export type DeploymentsValidateAtManagementGroupScopeResponse = + DeploymentValidateResult; /** Optional parameters. */ export interface DeploymentsWhatIfAtManagementGroupScopeOptionalParams @@ -1603,14 +1676,16 @@ export interface DeploymentsWhatIfAtManagementGroupScopeOptionalParams } /** Contains response data for the whatIfAtManagementGroupScope operation. */ -export type DeploymentsWhatIfAtManagementGroupScopeResponse = WhatIfOperationResult; +export type DeploymentsWhatIfAtManagementGroupScopeResponse = + WhatIfOperationResult; /** Optional parameters. */ export interface DeploymentsExportTemplateAtManagementGroupScopeOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the exportTemplateAtManagementGroupScope operation. */ -export type DeploymentsExportTemplateAtManagementGroupScopeResponse = DeploymentExportResult; +export type DeploymentsExportTemplateAtManagementGroupScopeResponse = + DeploymentExportResult; /** Optional parameters. */ export interface DeploymentsListAtManagementGroupScopeOptionalParams @@ -1622,7 +1697,8 @@ export interface DeploymentsListAtManagementGroupScopeOptionalParams } /** Contains response data for the listAtManagementGroupScope operation. */ -export type DeploymentsListAtManagementGroupScopeResponse = DeploymentListResult; +export type DeploymentsListAtManagementGroupScopeResponse = + DeploymentListResult; /** Optional parameters. */ export interface DeploymentsDeleteAtSubscriptionScopeOptionalParams @@ -1652,7 +1728,8 @@ export interface DeploymentsCreateOrUpdateAtSubscriptionScopeOptionalParams } /** Contains response data for the createOrUpdateAtSubscriptionScope operation. */ -export type DeploymentsCreateOrUpdateAtSubscriptionScopeResponse = DeploymentExtended; +export type DeploymentsCreateOrUpdateAtSubscriptionScopeResponse = + DeploymentExtended; /** Optional parameters. */ export interface DeploymentsGetAtSubscriptionScopeOptionalParams @@ -1675,7 +1752,8 @@ export interface DeploymentsValidateAtSubscriptionScopeOptionalParams } /** Contains response data for the validateAtSubscriptionScope operation. */ -export type DeploymentsValidateAtSubscriptionScopeResponse = DeploymentValidateResult; +export type DeploymentsValidateAtSubscriptionScopeResponse = + DeploymentValidateResult; /** Optional parameters. */ export interface DeploymentsWhatIfAtSubscriptionScopeOptionalParams @@ -1687,14 +1765,16 @@ export interface DeploymentsWhatIfAtSubscriptionScopeOptionalParams } /** Contains response data for the whatIfAtSubscriptionScope operation. */ -export type DeploymentsWhatIfAtSubscriptionScopeResponse = WhatIfOperationResult; +export type DeploymentsWhatIfAtSubscriptionScopeResponse = + WhatIfOperationResult; /** Optional parameters. */ export interface DeploymentsExportTemplateAtSubscriptionScopeOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the exportTemplateAtSubscriptionScope operation. */ -export type DeploymentsExportTemplateAtSubscriptionScopeResponse = DeploymentExportResult; +export type DeploymentsExportTemplateAtSubscriptionScopeResponse = + DeploymentExportResult; /** Optional parameters. */ export interface DeploymentsListAtSubscriptionScopeOptionalParams @@ -1818,14 +1898,16 @@ export interface DeploymentsListAtManagementGroupScopeNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listAtManagementGroupScopeNext operation. */ -export type DeploymentsListAtManagementGroupScopeNextResponse = DeploymentListResult; +export type DeploymentsListAtManagementGroupScopeNextResponse = + DeploymentListResult; /** Optional parameters. */ export interface DeploymentsListAtSubscriptionScopeNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listAtSubscriptionScopeNext operation. */ -export type DeploymentsListAtSubscriptionScopeNextResponse = DeploymentListResult; +export type DeploymentsListAtSubscriptionScopeNextResponse = + DeploymentListResult; /** Optional parameters. */ export interface DeploymentsListByResourceGroupNextOptionalParams @@ -1963,7 +2045,7 @@ export interface ResourcesListOptionalParams extends coreClient.OperationOptions { /** The filter to apply on the operation.

Filter comparison operators include `eq` (equals) and `ne` (not equals) and may be used with the following properties: `location`, `resourceType`, `name`, `resourceGroup`, `identity`, `identity/principalId`, `plan`, `plan/publisher`, `plan/product`, `plan/name`, `plan/version`, and `plan/promotionCode`.

For example, to filter by a resource type, use `$filter=resourceType eq 'Microsoft.Network/virtualNetworks'`


`substringof(value, property)` can be used to filter for substrings of the following currently-supported properties: `name` and `resourceGroup`

For example, to get all resources with 'demo' anywhere in the resource name, use `$filter=substringof('demo', name)`

Multiple substring operations can also be combined using `and`/`or` operators.

Note that any truncated number of results queried via `$top` may also not be compatible when using a filter.


Resources can be filtered by tag names and values. For example, to filter for a tag name and value, use `$filter=tagName eq 'tag1' and tagValue eq 'Value1'`. Note that when resources are filtered by tag name and value, the original tags for each resource will not be returned in the results. Any list of additional properties queried via `$expand` may also not be compatible when filtering by tag names/values.

For tag names only, resources can be filtered by prefix using the following syntax: `$filter=startswith(tagName, 'depart')`. This query will return all resources with a tag name prefixed by the phrase `depart` (i.e.`department`, `departureDate`, `departureTime`, etc.)


Note that some properties can be combined when filtering resources, which include the following: `substringof() and/or resourceType`, `plan and plan/publisher and plan/name`, and `identity and identity/principalId`. */ filter?: string; - /** The number of results to return. If null is passed, returns all resources. */ + /** The number of recommendations per page if a paged version of this API is being used. */ top?: number; /** Comma-separated list of additional properties to be included in the response. Valid values include `createdTime`, `changedTime` and `provisioningState`. For example, `$expand=createdTime,changedTime`. */ expand?: string; @@ -2185,14 +2267,24 @@ export type TagsListResponse = TagsListResult; /** Optional parameters. */ export interface TagsCreateOrUpdateAtScopeOptionalParams - extends coreClient.OperationOptions {} + 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 createOrUpdateAtScope operation. */ export type TagsCreateOrUpdateAtScopeResponse = TagsResource; /** Optional parameters. */ export interface TagsUpdateAtScopeOptionalParams - extends coreClient.OperationOptions {} + 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 updateAtScope operation. */ export type TagsUpdateAtScopeResponse = TagsResource; @@ -2206,7 +2298,12 @@ export type TagsGetAtScopeResponse = TagsResource; /** Optional parameters. */ export interface TagsDeleteAtScopeOptionalParams - extends coreClient.OperationOptions {} + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} /** Optional parameters. */ export interface TagsListNextOptionalParams @@ -2230,7 +2327,8 @@ export interface DeploymentOperationsListAtScopeOptionalParams } /** Contains response data for the listAtScope operation. */ -export type DeploymentOperationsListAtScopeResponse = DeploymentOperationsListResult; +export type DeploymentOperationsListAtScopeResponse = + DeploymentOperationsListResult; /** Optional parameters. */ export interface DeploymentOperationsGetAtTenantScopeOptionalParams @@ -2247,14 +2345,16 @@ export interface DeploymentOperationsListAtTenantScopeOptionalParams } /** Contains response data for the listAtTenantScope operation. */ -export type DeploymentOperationsListAtTenantScopeResponse = DeploymentOperationsListResult; +export type DeploymentOperationsListAtTenantScopeResponse = + DeploymentOperationsListResult; /** Optional parameters. */ export interface DeploymentOperationsGetAtManagementGroupScopeOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getAtManagementGroupScope operation. */ -export type DeploymentOperationsGetAtManagementGroupScopeResponse = DeploymentOperation; +export type DeploymentOperationsGetAtManagementGroupScopeResponse = + DeploymentOperation; /** Optional parameters. */ export interface DeploymentOperationsListAtManagementGroupScopeOptionalParams @@ -2264,14 +2364,16 @@ export interface DeploymentOperationsListAtManagementGroupScopeOptionalParams } /** Contains response data for the listAtManagementGroupScope operation. */ -export type DeploymentOperationsListAtManagementGroupScopeResponse = DeploymentOperationsListResult; +export type DeploymentOperationsListAtManagementGroupScopeResponse = + DeploymentOperationsListResult; /** Optional parameters. */ export interface DeploymentOperationsGetAtSubscriptionScopeOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getAtSubscriptionScope operation. */ -export type DeploymentOperationsGetAtSubscriptionScopeResponse = DeploymentOperation; +export type DeploymentOperationsGetAtSubscriptionScopeResponse = + DeploymentOperation; /** Optional parameters. */ export interface DeploymentOperationsListAtSubscriptionScopeOptionalParams @@ -2281,7 +2383,8 @@ export interface DeploymentOperationsListAtSubscriptionScopeOptionalParams } /** Contains response data for the listAtSubscriptionScope operation. */ -export type DeploymentOperationsListAtSubscriptionScopeResponse = DeploymentOperationsListResult; +export type DeploymentOperationsListAtSubscriptionScopeResponse = + DeploymentOperationsListResult; /** Optional parameters. */ export interface DeploymentOperationsGetOptionalParams @@ -2305,35 +2408,40 @@ export interface DeploymentOperationsListAtScopeNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listAtScopeNext operation. */ -export type DeploymentOperationsListAtScopeNextResponse = DeploymentOperationsListResult; +export type DeploymentOperationsListAtScopeNextResponse = + DeploymentOperationsListResult; /** Optional parameters. */ export interface DeploymentOperationsListAtTenantScopeNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listAtTenantScopeNext operation. */ -export type DeploymentOperationsListAtTenantScopeNextResponse = DeploymentOperationsListResult; +export type DeploymentOperationsListAtTenantScopeNextResponse = + DeploymentOperationsListResult; /** Optional parameters. */ export interface DeploymentOperationsListAtManagementGroupScopeNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listAtManagementGroupScopeNext operation. */ -export type DeploymentOperationsListAtManagementGroupScopeNextResponse = DeploymentOperationsListResult; +export type DeploymentOperationsListAtManagementGroupScopeNextResponse = + DeploymentOperationsListResult; /** Optional parameters. */ export interface DeploymentOperationsListAtSubscriptionScopeNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listAtSubscriptionScopeNext operation. */ -export type DeploymentOperationsListAtSubscriptionScopeNextResponse = DeploymentOperationsListResult; +export type DeploymentOperationsListAtSubscriptionScopeNextResponse = + DeploymentOperationsListResult; /** Optional parameters. */ export interface DeploymentOperationsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type DeploymentOperationsListNextResponse = DeploymentOperationsListResult; +export type DeploymentOperationsListNextResponse = + DeploymentOperationsListResult; /** Optional parameters. */ export interface ResourceManagementClientOptionalParams diff --git a/sdk/resources/arm-resources/src/models/mappers.ts b/sdk/resources/arm-resources/src/models/mappers.ts index 851900fc83152..a1f5399cb544b 100644 --- a/sdk/resources/arm-resources/src/models/mappers.ts +++ b/sdk/resources/arm-resources/src/models/mappers.ts @@ -20,19 +20,19 @@ export const OperationListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Operation" - } - } - } + className: "Operation", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const Operation: coreClient.CompositeMapper = { @@ -43,18 +43,18 @@ export const Operation: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, display: { serializedName: "display", type: { name: "Composite", - className: "OperationDisplay" - } - } - } - } + className: "OperationDisplay", + }, + }, + }, + }, }; export const OperationDisplay: coreClient.CompositeMapper = { @@ -65,29 +65,29 @@ export const OperationDisplay: coreClient.CompositeMapper = { provider: { serializedName: "provider", type: { - name: "String" - } + name: "String", + }, }, resource: { serializedName: "resource", type: { - name: "String" - } + name: "String", + }, }, operation: { serializedName: "operation", type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "description", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const CloudError: coreClient.CompositeMapper = { @@ -99,11 +99,11 @@ export const CloudError: coreClient.CompositeMapper = { serializedName: "error", type: { name: "Composite", - className: "ErrorResponse" - } - } - } - } + className: "ErrorResponse", + }, + }, + }, + }, }; export const ErrorResponse: coreClient.CompositeMapper = { @@ -115,22 +115,22 @@ export const ErrorResponse: coreClient.CompositeMapper = { serializedName: "code", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, message: { serializedName: "message", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, target: { serializedName: "target", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, details: { serializedName: "details", @@ -140,10 +140,10 @@ export const ErrorResponse: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ErrorResponse" - } - } - } + className: "ErrorResponse", + }, + }, + }, }, additionalInfo: { serializedName: "additionalInfo", @@ -153,13 +153,13 @@ export const ErrorResponse: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ErrorAdditionalInfo" - } - } - } - } - } - } + className: "ErrorAdditionalInfo", + }, + }, + }, + }, + }, + }, }; export const ErrorAdditionalInfo: coreClient.CompositeMapper = { @@ -171,19 +171,19 @@ export const ErrorAdditionalInfo: coreClient.CompositeMapper = { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, info: { serializedName: "info", readOnly: true, type: { name: "Dictionary", - value: { type: { name: "any" } } - } - } - } - } + value: { type: { name: "any" } }, + }, + }, + }, + }, }; export const Deployment: coreClient.CompositeMapper = { @@ -194,25 +194,25 @@ export const Deployment: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } + name: "String", + }, }, properties: { serializedName: "properties", type: { name: "Composite", - className: "DeploymentProperties" - } + className: "DeploymentProperties", + }, }, tags: { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } + value: { type: { name: "String" } }, + }, + }, + }, + }, }; export const DeploymentProperties: coreClient.CompositeMapper = { @@ -224,61 +224,63 @@ export const DeploymentProperties: coreClient.CompositeMapper = { serializedName: "template", type: { name: "Dictionary", - value: { type: { name: "any" } } - } + value: { type: { name: "any" } }, + }, }, templateLink: { serializedName: "templateLink", type: { name: "Composite", - className: "TemplateLink" - } + className: "TemplateLink", + }, }, parameters: { serializedName: "parameters", type: { name: "Dictionary", - value: { type: { name: "any" } } - } + value: { + type: { name: "Composite", className: "DeploymentParameter" }, + }, + }, }, parametersLink: { serializedName: "parametersLink", type: { name: "Composite", - className: "ParametersLink" - } + className: "ParametersLink", + }, }, mode: { serializedName: "mode", required: true, type: { name: "Enum", - allowedValues: ["Incremental", "Complete"] - } + allowedValues: ["Incremental", "Complete"], + }, }, debugSetting: { serializedName: "debugSetting", type: { name: "Composite", - className: "DebugSetting" - } + className: "DebugSetting", + }, }, onErrorDeployment: { serializedName: "onErrorDeployment", type: { name: "Composite", - className: "OnErrorDeployment" - } + className: "OnErrorDeployment", + }, }, expressionEvaluationOptions: { serializedName: "expressionEvaluationOptions", type: { name: "Composite", - className: "ExpressionEvaluationOptions" - } - } - } - } + className: "ExpressionEvaluationOptions", + }, + }, + }, + }, }; export const TemplateLink: coreClient.CompositeMapper = { @@ -289,35 +291,102 @@ export const TemplateLink: coreClient.CompositeMapper = { uri: { serializedName: "uri", type: { - name: "String" - } + name: "String", + }, }, id: { serializedName: "id", type: { - name: "String" - } + name: "String", + }, }, relativePath: { serializedName: "relativePath", type: { - name: "String" - } + name: "String", + }, }, contentVersion: { serializedName: "contentVersion", type: { - name: "String" - } + name: "String", + }, }, queryString: { serializedName: "queryString", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, +}; + +export const DeploymentParameter: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DeploymentParameter", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "any", + }, + }, + reference: { + serializedName: "reference", + type: { + name: "Composite", + className: "KeyVaultParameterReference", + }, + }, + }, + }, +}; + +export const KeyVaultParameterReference: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "KeyVaultParameterReference", + modelProperties: { + keyVault: { + serializedName: "keyVault", + type: { + name: "Composite", + className: "KeyVaultReference", + }, + }, + secretName: { + serializedName: "secretName", + required: true, + type: { + name: "String", + }, + }, + secretVersion: { + serializedName: "secretVersion", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const KeyVaultReference: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "KeyVaultReference", + modelProperties: { + id: { + serializedName: "id", + required: true, + type: { + name: "String", + }, + }, + }, + }, }; export const ParametersLink: coreClient.CompositeMapper = { @@ -329,17 +398,17 @@ export const ParametersLink: coreClient.CompositeMapper = { serializedName: "uri", required: true, type: { - name: "String" - } + name: "String", + }, }, contentVersion: { serializedName: "contentVersion", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const DebugSetting: coreClient.CompositeMapper = { @@ -350,11 +419,11 @@ export const DebugSetting: coreClient.CompositeMapper = { detailLevel: { serializedName: "detailLevel", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const OnErrorDeployment: coreClient.CompositeMapper = { @@ -366,17 +435,17 @@ export const OnErrorDeployment: coreClient.CompositeMapper = { serializedName: "type", type: { name: "Enum", - allowedValues: ["LastSuccessful", "SpecificDeployment"] - } + allowedValues: ["LastSuccessful", "SpecificDeployment"], + }, }, deploymentName: { serializedName: "deploymentName", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ExpressionEvaluationOptions: coreClient.CompositeMapper = { @@ -387,11 +456,11 @@ export const ExpressionEvaluationOptions: coreClient.CompositeMapper = { scope: { serializedName: "scope", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const DeploymentExtended: coreClient.CompositeMapper = { @@ -403,45 +472,45 @@ export const DeploymentExtended: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, location: { serializedName: "location", type: { - name: "String" - } + name: "String", + }, }, properties: { serializedName: "properties", type: { name: "Composite", - className: "DeploymentPropertiesExtended" - } + className: "DeploymentPropertiesExtended", + }, }, tags: { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } + value: { type: { name: "String" } }, + }, + }, + }, + }, }; export const DeploymentPropertiesExtended: coreClient.CompositeMapper = { @@ -453,37 +522,37 @@ export const DeploymentPropertiesExtended: coreClient.CompositeMapper = { serializedName: "provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, correlationId: { serializedName: "correlationId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, timestamp: { serializedName: "timestamp", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, duration: { serializedName: "duration", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, outputs: { serializedName: "outputs", readOnly: true, type: { name: "Dictionary", - value: { type: { name: "any" } } - } + value: { type: { name: "any" } }, + }, }, providers: { serializedName: "providers", @@ -493,10 +562,10 @@ export const DeploymentPropertiesExtended: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Provider" - } - } - } + className: "Provider", + }, + }, + }, }, dependencies: { serializedName: "dependencies", @@ -506,61 +575,61 @@ export const DeploymentPropertiesExtended: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Dependency" - } - } - } + className: "Dependency", + }, + }, + }, }, templateLink: { serializedName: "templateLink", type: { name: "Composite", - className: "TemplateLink" - } + className: "TemplateLink", + }, }, parameters: { serializedName: "parameters", readOnly: true, type: { name: "Dictionary", - value: { type: { name: "any" } } - } + value: { type: { name: "any" } }, + }, }, parametersLink: { serializedName: "parametersLink", type: { name: "Composite", - className: "ParametersLink" - } + className: "ParametersLink", + }, }, mode: { serializedName: "mode", readOnly: true, type: { name: "Enum", - allowedValues: ["Incremental", "Complete"] - } + allowedValues: ["Incremental", "Complete"], + }, }, debugSetting: { serializedName: "debugSetting", type: { name: "Composite", - className: "DebugSetting" - } + className: "DebugSetting", + }, }, onErrorDeployment: { serializedName: "onErrorDeployment", type: { name: "Composite", - className: "OnErrorDeploymentExtended" - } + className: "OnErrorDeploymentExtended", + }, }, templateHash: { serializedName: "templateHash", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, outputResources: { serializedName: "outputResources", @@ -570,10 +639,10 @@ export const DeploymentPropertiesExtended: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ResourceReference" - } - } - } + className: "ResourceReference", + }, + }, + }, }, validatedResources: { serializedName: "validatedResources", @@ -583,20 +652,20 @@ export const DeploymentPropertiesExtended: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ResourceReference" - } - } - } + className: "ResourceReference", + }, + }, + }, }, error: { serializedName: "error", type: { name: "Composite", - className: "ErrorResponse" - } - } - } - } + className: "ErrorResponse", + }, + }, + }, + }, }; export const Provider: coreClient.CompositeMapper = { @@ -608,28 +677,28 @@ export const Provider: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, namespace: { serializedName: "namespace", type: { - name: "String" - } + name: "String", + }, }, registrationState: { serializedName: "registrationState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, registrationPolicy: { serializedName: "registrationPolicy", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, resourceTypes: { serializedName: "resourceTypes", @@ -639,19 +708,19 @@ export const Provider: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ProviderResourceType" - } - } - } + className: "ProviderResourceType", + }, + }, + }, }, providerAuthorizationConsentState: { serializedName: "providerAuthorizationConsentState", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ProviderResourceType: coreClient.CompositeMapper = { @@ -662,8 +731,8 @@ export const ProviderResourceType: coreClient.CompositeMapper = { resourceType: { serializedName: "resourceType", type: { - name: "String" - } + name: "String", + }, }, locations: { serializedName: "locations", @@ -671,10 +740,10 @@ export const ProviderResourceType: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, locationMappings: { serializedName: "locationMappings", @@ -683,10 +752,10 @@ export const ProviderResourceType: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ProviderExtendedLocation" - } - } - } + className: "ProviderExtendedLocation", + }, + }, + }, }, aliases: { serializedName: "aliases", @@ -695,10 +764,10 @@ export const ProviderResourceType: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Alias" - } - } - } + className: "Alias", + }, + }, + }, }, apiVersions: { serializedName: "apiVersions", @@ -706,17 +775,17 @@ export const ProviderResourceType: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, defaultApiVersion: { serializedName: "defaultApiVersion", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, zoneMappings: { serializedName: "zoneMappings", @@ -725,10 +794,10 @@ export const ProviderResourceType: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ZoneMapping" - } - } - } + className: "ZoneMapping", + }, + }, + }, }, apiProfiles: { serializedName: "apiProfiles", @@ -738,26 +807,26 @@ export const ProviderResourceType: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ApiProfile" - } - } - } + className: "ApiProfile", + }, + }, + }, }, capabilities: { serializedName: "capabilities", type: { - name: "String" - } + name: "String", + }, }, properties: { serializedName: "properties", type: { name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } + value: { type: { name: "String" } }, + }, + }, + }, + }, }; export const ProviderExtendedLocation: coreClient.CompositeMapper = { @@ -768,14 +837,14 @@ export const ProviderExtendedLocation: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", type: { - name: "String" - } + name: "String", + }, }, extendedLocations: { serializedName: "extendedLocations", @@ -783,13 +852,13 @@ export const ProviderExtendedLocation: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const Alias: coreClient.CompositeMapper = { @@ -800,8 +869,8 @@ export const Alias: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, paths: { serializedName: "paths", @@ -810,40 +879,40 @@ export const Alias: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "AliasPath" - } - } - } + className: "AliasPath", + }, + }, + }, }, type: { serializedName: "type", type: { name: "Enum", - allowedValues: ["NotSpecified", "PlainText", "Mask"] - } + allowedValues: ["NotSpecified", "PlainText", "Mask"], + }, }, defaultPath: { serializedName: "defaultPath", type: { - name: "String" - } + name: "String", + }, }, defaultPattern: { serializedName: "defaultPattern", type: { name: "Composite", - className: "AliasPattern" - } + className: "AliasPattern", + }, }, defaultMetadata: { serializedName: "defaultMetadata", type: { name: "Composite", - className: "AliasPathMetadata" - } - } - } - } + className: "AliasPathMetadata", + }, + }, + }, + }, }; export const AliasPath: coreClient.CompositeMapper = { @@ -854,8 +923,8 @@ export const AliasPath: coreClient.CompositeMapper = { path: { serializedName: "path", type: { - name: "String" - } + name: "String", + }, }, apiVersions: { serializedName: "apiVersions", @@ -863,27 +932,27 @@ export const AliasPath: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, pattern: { serializedName: "pattern", type: { name: "Composite", - className: "AliasPattern" - } + className: "AliasPattern", + }, }, metadata: { serializedName: "metadata", type: { name: "Composite", - className: "AliasPathMetadata" - } - } - } - } + className: "AliasPathMetadata", + }, + }, + }, + }, }; export const AliasPattern: coreClient.CompositeMapper = { @@ -894,24 +963,24 @@ export const AliasPattern: coreClient.CompositeMapper = { phrase: { serializedName: "phrase", type: { - name: "String" - } + name: "String", + }, }, variable: { serializedName: "variable", type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", type: { name: "Enum", - allowedValues: ["NotSpecified", "Extract"] - } - } - } - } + allowedValues: ["NotSpecified", "Extract"], + }, + }, + }, + }, }; export const AliasPathMetadata: coreClient.CompositeMapper = { @@ -923,18 +992,18 @@ export const AliasPathMetadata: coreClient.CompositeMapper = { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, attributes: { serializedName: "attributes", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ZoneMapping: coreClient.CompositeMapper = { @@ -945,8 +1014,8 @@ export const ZoneMapping: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } + name: "String", + }, }, zones: { serializedName: "zones", @@ -954,13 +1023,13 @@ export const ZoneMapping: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const ApiProfile: coreClient.CompositeMapper = { @@ -972,18 +1041,18 @@ export const ApiProfile: coreClient.CompositeMapper = { serializedName: "profileVersion", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, apiVersion: { serializedName: "apiVersion", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const Dependency: coreClient.CompositeMapper = { @@ -998,31 +1067,31 @@ export const Dependency: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "BasicDependency" - } - } - } + className: "BasicDependency", + }, + }, + }, }, id: { serializedName: "id", type: { - name: "String" - } + name: "String", + }, }, resourceType: { serializedName: "resourceType", type: { - name: "String" - } + name: "String", + }, }, resourceName: { serializedName: "resourceName", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const BasicDependency: coreClient.CompositeMapper = { @@ -1033,23 +1102,23 @@ export const BasicDependency: coreClient.CompositeMapper = { id: { serializedName: "id", type: { - name: "String" - } + name: "String", + }, }, resourceType: { serializedName: "resourceType", type: { - name: "String" - } + name: "String", + }, }, resourceName: { serializedName: "resourceName", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const OnErrorDeploymentExtended: coreClient.CompositeMapper = { @@ -1061,24 +1130,24 @@ export const OnErrorDeploymentExtended: coreClient.CompositeMapper = { serializedName: "provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", type: { name: "Enum", - allowedValues: ["LastSuccessful", "SpecificDeployment"] - } + allowedValues: ["LastSuccessful", "SpecificDeployment"], + }, }, deploymentName: { serializedName: "deploymentName", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ResourceReference: coreClient.CompositeMapper = { @@ -1090,11 +1159,11 @@ export const ResourceReference: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const DeploymentValidateResult: coreClient.CompositeMapper = { @@ -1106,18 +1175,18 @@ export const DeploymentValidateResult: coreClient.CompositeMapper = { serializedName: "error", type: { name: "Composite", - className: "ErrorResponse" - } + className: "ErrorResponse", + }, }, properties: { serializedName: "properties", type: { name: "Composite", - className: "DeploymentPropertiesExtended" - } - } - } - } + className: "DeploymentPropertiesExtended", + }, + }, + }, + }, }; export const DeploymentExportResult: coreClient.CompositeMapper = { @@ -1129,11 +1198,11 @@ export const DeploymentExportResult: coreClient.CompositeMapper = { serializedName: "template", type: { name: "Dictionary", - value: { type: { name: "any" } } - } - } - } - } + value: { type: { name: "any" } }, + }, + }, + }, + }, }; export const DeploymentListResult: coreClient.CompositeMapper = { @@ -1148,20 +1217,20 @@ export const DeploymentListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "DeploymentExtended" - } - } - } + className: "DeploymentExtended", + }, + }, + }, }, nextLink: { serializedName: "nextLink", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ScopedDeployment: coreClient.CompositeMapper = { @@ -1173,25 +1242,25 @@ export const ScopedDeployment: coreClient.CompositeMapper = { serializedName: "location", required: true, type: { - name: "String" - } + name: "String", + }, }, properties: { serializedName: "properties", type: { name: "Composite", - className: "DeploymentProperties" - } + className: "DeploymentProperties", + }, }, tags: { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } + value: { type: { name: "String" } }, + }, + }, + }, + }, }; export const ScopedDeploymentWhatIf: coreClient.CompositeMapper = { @@ -1203,18 +1272,18 @@ export const ScopedDeploymentWhatIf: coreClient.CompositeMapper = { serializedName: "location", required: true, type: { - name: "String" - } + name: "String", + }, }, properties: { serializedName: "properties", type: { name: "Composite", - className: "DeploymentWhatIfProperties" - } - } - } - } + className: "DeploymentWhatIfProperties", + }, + }, + }, + }, }; export const DeploymentWhatIfSettings: coreClient.CompositeMapper = { @@ -1226,11 +1295,11 @@ export const DeploymentWhatIfSettings: coreClient.CompositeMapper = { serializedName: "resultFormat", type: { name: "Enum", - allowedValues: ["ResourceIdOnly", "FullResourcePayloads"] - } - } - } - } + allowedValues: ["ResourceIdOnly", "FullResourcePayloads"], + }, + }, + }, + }, }; export const WhatIfOperationResult: coreClient.CompositeMapper = { @@ -1241,15 +1310,15 @@ export const WhatIfOperationResult: coreClient.CompositeMapper = { status: { serializedName: "status", type: { - name: "String" - } + name: "String", + }, }, error: { serializedName: "error", type: { name: "Composite", - className: "ErrorResponse" - } + className: "ErrorResponse", + }, }, changes: { serializedName: "properties.changes", @@ -1258,13 +1327,13 @@ export const WhatIfOperationResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "WhatIfChange" - } - } - } - } - } - } + className: "WhatIfChange", + }, + }, + }, + }, + }, + }, }; export const WhatIfChange: coreClient.CompositeMapper = { @@ -1276,8 +1345,8 @@ export const WhatIfChange: coreClient.CompositeMapper = { serializedName: "resourceId", required: true, type: { - name: "String" - } + name: "String", + }, }, changeType: { serializedName: "changeType", @@ -1291,29 +1360,29 @@ export const WhatIfChange: coreClient.CompositeMapper = { "Deploy", "NoChange", "Modify", - "Unsupported" - ] - } + "Unsupported", + ], + }, }, unsupportedReason: { serializedName: "unsupportedReason", type: { - name: "String" - } + name: "String", + }, }, before: { serializedName: "before", type: { name: "Dictionary", - value: { type: { name: "any" } } - } + value: { type: { name: "any" } }, + }, }, after: { serializedName: "after", type: { name: "Dictionary", - value: { type: { name: "any" } } - } + value: { type: { name: "any" } }, + }, }, delta: { serializedName: "delta", @@ -1322,13 +1391,13 @@ export const WhatIfChange: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "WhatIfPropertyChange" - } - } - } - } - } - } + className: "WhatIfPropertyChange", + }, + }, + }, + }, + }, + }, }; export const WhatIfPropertyChange: coreClient.CompositeMapper = { @@ -1340,30 +1409,30 @@ export const WhatIfPropertyChange: coreClient.CompositeMapper = { serializedName: "path", required: true, type: { - name: "String" - } + name: "String", + }, }, propertyChangeType: { serializedName: "propertyChangeType", required: true, type: { name: "Enum", - allowedValues: ["Create", "Delete", "Modify", "Array", "NoEffect"] - } + allowedValues: ["Create", "Delete", "Modify", "Array", "NoEffect"], + }, }, before: { serializedName: "before", type: { name: "Dictionary", - value: { type: { name: "any" } } - } + value: { type: { name: "any" } }, + }, }, after: { serializedName: "after", type: { name: "Dictionary", - value: { type: { name: "any" } } - } + value: { type: { name: "any" } }, + }, }, children: { serializedName: "children", @@ -1372,13 +1441,13 @@ export const WhatIfPropertyChange: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "WhatIfPropertyChange" - } - } - } - } - } - } + className: "WhatIfPropertyChange", + }, + }, + }, + }, + }, + }, }; export const DeploymentWhatIf: coreClient.CompositeMapper = { @@ -1389,18 +1458,18 @@ export const DeploymentWhatIf: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } + name: "String", + }, }, properties: { serializedName: "properties", type: { name: "Composite", - className: "DeploymentWhatIfProperties" - } - } - } - } + className: "DeploymentWhatIfProperties", + }, + }, + }, + }, }; export const ProviderPermissionListResult: coreClient.CompositeMapper = { @@ -1415,20 +1484,20 @@ export const ProviderPermissionListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ProviderPermission" - } - } - } + className: "ProviderPermission", + }, + }, + }, }, nextLink: { serializedName: "nextLink", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ProviderPermission: coreClient.CompositeMapper = { @@ -1439,31 +1508,31 @@ export const ProviderPermission: coreClient.CompositeMapper = { applicationId: { serializedName: "applicationId", type: { - name: "String" - } + name: "String", + }, }, roleDefinition: { serializedName: "roleDefinition", type: { name: "Composite", - className: "RoleDefinition" - } + className: "RoleDefinition", + }, }, managedByRoleDefinition: { serializedName: "managedByRoleDefinition", type: { name: "Composite", - className: "RoleDefinition" - } + className: "RoleDefinition", + }, }, providerAuthorizationConsentState: { serializedName: "providerAuthorizationConsentState", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const RoleDefinition: coreClient.CompositeMapper = { @@ -1474,20 +1543,20 @@ export const RoleDefinition: coreClient.CompositeMapper = { id: { serializedName: "id", type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, isServiceRole: { serializedName: "isServiceRole", type: { - name: "Boolean" - } + name: "Boolean", + }, }, permissions: { serializedName: "permissions", @@ -1496,10 +1565,10 @@ export const RoleDefinition: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Permission" - } - } - } + className: "Permission", + }, + }, + }, }, scopes: { serializedName: "scopes", @@ -1507,13 +1576,13 @@ export const RoleDefinition: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const Permission: coreClient.CompositeMapper = { @@ -1527,10 +1596,10 @@ export const Permission: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, notActions: { serializedName: "notActions", @@ -1538,10 +1607,10 @@ export const Permission: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, dataActions: { serializedName: "dataActions", @@ -1549,10 +1618,10 @@ export const Permission: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, notDataActions: { serializedName: "notDataActions", @@ -1560,13 +1629,13 @@ export const Permission: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const ProviderRegistrationRequest: coreClient.CompositeMapper = { @@ -1578,11 +1647,11 @@ export const ProviderRegistrationRequest: coreClient.CompositeMapper = { serializedName: "thirdPartyProviderConsent", type: { name: "Composite", - className: "ProviderConsentDefinition" - } - } - } - } + className: "ProviderConsentDefinition", + }, + }, + }, + }, }; export const ProviderConsentDefinition: coreClient.CompositeMapper = { @@ -1593,11 +1662,11 @@ export const ProviderConsentDefinition: coreClient.CompositeMapper = { consentToAuthorization: { serializedName: "consentToAuthorization", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const ProviderListResult: coreClient.CompositeMapper = { @@ -1612,20 +1681,20 @@ export const ProviderListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Provider" - } - } - } + className: "Provider", + }, + }, + }, }, nextLink: { serializedName: "nextLink", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ProviderResourceTypeListResult: coreClient.CompositeMapper = { @@ -1640,20 +1709,20 @@ export const ProviderResourceTypeListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ProviderResourceType" - } - } - } + className: "ProviderResourceType", + }, + }, + }, }, nextLink: { serializedName: "nextLink", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ResourceListResult: coreClient.CompositeMapper = { @@ -1668,20 +1737,20 @@ export const ResourceListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "GenericResourceExpanded" - } - } - } + className: "GenericResourceExpanded", + }, + }, + }, }, nextLink: { serializedName: "nextLink", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const Plan: coreClient.CompositeMapper = { @@ -1692,35 +1761,35 @@ export const Plan: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, publisher: { serializedName: "publisher", type: { - name: "String" - } + name: "String", + }, }, product: { serializedName: "product", type: { - name: "String" - } + name: "String", + }, }, promotionCode: { serializedName: "promotionCode", type: { - name: "String" - } + name: "String", + }, }, version: { serializedName: "version", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const Sku: coreClient.CompositeMapper = { @@ -1731,41 +1800,41 @@ export const Sku: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, tier: { serializedName: "tier", type: { - name: "String" - } + name: "String", + }, }, size: { serializedName: "size", type: { - name: "String" - } + name: "String", + }, }, family: { serializedName: "family", type: { - name: "String" - } + name: "String", + }, }, model: { serializedName: "model", type: { - name: "String" - } + name: "String", + }, }, capacity: { serializedName: "capacity", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const Identity: coreClient.CompositeMapper = { @@ -1777,15 +1846,15 @@ export const Identity: coreClient.CompositeMapper = { serializedName: "principalId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, tenantId: { serializedName: "tenantId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", @@ -1795,9 +1864,9 @@ export const Identity: coreClient.CompositeMapper = { "SystemAssigned", "UserAssigned", "SystemAssigned, UserAssigned", - "None" - ] - } + "None", + ], + }, }, userAssignedIdentities: { serializedName: "userAssignedIdentities", @@ -1806,13 +1875,13 @@ export const Identity: coreClient.CompositeMapper = { value: { type: { name: "Composite", - className: "IdentityUserAssignedIdentitiesValue" - } - } - } - } - } - } + className: "IdentityUserAssignedIdentitiesValue", + }, + }, + }, + }, + }, + }, }; export const IdentityUserAssignedIdentitiesValue: coreClient.CompositeMapper = { @@ -1824,18 +1893,18 @@ export const IdentityUserAssignedIdentitiesValue: coreClient.CompositeMapper = { serializedName: "principalId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, clientId: { serializedName: "clientId", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const Resource: coreClient.CompositeMapper = { @@ -1847,45 +1916,45 @@ export const Resource: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, location: { serializedName: "location", type: { - name: "String" - } + name: "String", + }, }, extendedLocation: { serializedName: "extendedLocation", type: { name: "Composite", - className: "ExtendedLocation" - } + className: "ExtendedLocation", + }, }, tags: { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } + value: { type: { name: "String" } }, + }, + }, + }, + }, }; export const ExtendedLocation: coreClient.CompositeMapper = { @@ -1896,17 +1965,17 @@ export const ExtendedLocation: coreClient.CompositeMapper = { type: { serializedName: "type", type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ResourceGroup: coreClient.CompositeMapper = { @@ -1918,52 +1987,52 @@ export const ResourceGroup: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, properties: { serializedName: "properties", type: { name: "Composite", - className: "ResourceGroupProperties" - } + className: "ResourceGroupProperties", + }, }, location: { serializedName: "location", required: true, type: { - name: "String" - } + name: "String", + }, }, managedBy: { serializedName: "managedBy", type: { - name: "String" - } + name: "String", + }, }, tags: { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } + value: { type: { name: "String" } }, + }, + }, + }, + }, }; export const ResourceGroupProperties: coreClient.CompositeMapper = { @@ -1975,11 +2044,11 @@ export const ResourceGroupProperties: coreClient.CompositeMapper = { serializedName: "provisioningState", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ResourceGroupPatchable: coreClient.CompositeMapper = { @@ -1990,31 +2059,31 @@ export const ResourceGroupPatchable: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, properties: { serializedName: "properties", type: { name: "Composite", - className: "ResourceGroupProperties" - } + className: "ResourceGroupProperties", + }, }, managedBy: { serializedName: "managedBy", type: { - name: "String" - } + name: "String", + }, }, tags: { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } + value: { type: { name: "String" } }, + }, + }, + }, + }, }; export const ExportTemplateRequest: coreClient.CompositeMapper = { @@ -2028,19 +2097,25 @@ export const ExportTemplateRequest: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, options: { serializedName: "options", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + outputFormat: { + serializedName: "outputFormat", + type: { + name: "String", + }, + }, + }, + }, }; export const ResourceGroupExportResult: coreClient.CompositeMapper = { @@ -2052,18 +2127,24 @@ export const ResourceGroupExportResult: coreClient.CompositeMapper = { serializedName: "template", type: { name: "Dictionary", - value: { type: { name: "any" } } - } + value: { type: { name: "any" } }, + }, + }, + output: { + serializedName: "output", + type: { + name: "String", + }, }, error: { serializedName: "error", type: { name: "Composite", - className: "ErrorResponse" - } - } - } - } + className: "ErrorResponse", + }, + }, + }, + }, }; export const ResourceGroupListResult: coreClient.CompositeMapper = { @@ -2078,20 +2159,20 @@ export const ResourceGroupListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ResourceGroup" - } - } - } + className: "ResourceGroup", + }, + }, + }, }, nextLink: { serializedName: "nextLink", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ResourcesMoveInfo: coreClient.CompositeMapper = { @@ -2105,19 +2186,19 @@ export const ResourcesMoveInfo: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, targetResourceGroup: { serializedName: "targetResourceGroup", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const TagValue: coreClient.CompositeMapper = { @@ -2129,24 +2210,24 @@ export const TagValue: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, tagValue: { serializedName: "tagValue", type: { - name: "String" - } + name: "String", + }, }, count: { serializedName: "count", type: { name: "Composite", - className: "TagCount" - } - } - } - } + className: "TagCount", + }, + }, + }, + }, }; export const TagCount: coreClient.CompositeMapper = { @@ -2157,17 +2238,17 @@ export const TagCount: coreClient.CompositeMapper = { type: { serializedName: "type", type: { - name: "String" - } + name: "String", + }, }, value: { serializedName: "value", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const TagDetails: coreClient.CompositeMapper = { @@ -2179,21 +2260,21 @@ export const TagDetails: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, tagName: { serializedName: "tagName", type: { - name: "String" - } + name: "String", + }, }, count: { serializedName: "count", type: { name: "Composite", - className: "TagCount" - } + className: "TagCount", + }, }, values: { serializedName: "values", @@ -2202,13 +2283,13 @@ export const TagDetails: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "TagValue" - } - } - } - } - } - } + className: "TagValue", + }, + }, + }, + }, + }, + }, }; export const TagsListResult: coreClient.CompositeMapper = { @@ -2223,20 +2304,20 @@ export const TagsListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "TagDetails" - } - } - } + className: "TagDetails", + }, + }, + }, }, nextLink: { serializedName: "nextLink", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const DeploymentOperation: coreClient.CompositeMapper = { @@ -2248,25 +2329,25 @@ export const DeploymentOperation: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, operationId: { serializedName: "operationId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, properties: { serializedName: "properties", type: { name: "Composite", - className: "DeploymentOperationProperties" - } - } - } - } + className: "DeploymentOperationProperties", + }, + }, + }, + }, }; export const DeploymentOperationProperties: coreClient.CompositeMapper = { @@ -2289,75 +2370,75 @@ export const DeploymentOperationProperties: coreClient.CompositeMapper = { "Action", "Read", "EvaluateDeploymentOutput", - "DeploymentCleanup" - ] - } + "DeploymentCleanup", + ], + }, }, provisioningState: { serializedName: "provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, timestamp: { serializedName: "timestamp", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, duration: { serializedName: "duration", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, serviceRequestId: { serializedName: "serviceRequestId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, statusCode: { serializedName: "statusCode", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, statusMessage: { serializedName: "statusMessage", type: { name: "Composite", - className: "StatusMessage" - } + className: "StatusMessage", + }, }, targetResource: { serializedName: "targetResource", type: { name: "Composite", - className: "TargetResource" - } + className: "TargetResource", + }, }, request: { serializedName: "request", type: { name: "Composite", - className: "HttpMessage" - } + className: "HttpMessage", + }, }, response: { serializedName: "response", type: { name: "Composite", - className: "HttpMessage" - } - } - } - } + className: "HttpMessage", + }, + }, + }, + }, }; export const StatusMessage: coreClient.CompositeMapper = { @@ -2368,18 +2449,18 @@ export const StatusMessage: coreClient.CompositeMapper = { status: { serializedName: "status", type: { - name: "String" - } + name: "String", + }, }, error: { serializedName: "error", type: { name: "Composite", - className: "ErrorResponse" - } - } - } - } + className: "ErrorResponse", + }, + }, + }, + }, }; export const TargetResource: coreClient.CompositeMapper = { @@ -2390,23 +2471,23 @@ export const TargetResource: coreClient.CompositeMapper = { id: { serializedName: "id", type: { - name: "String" - } + name: "String", + }, }, resourceName: { serializedName: "resourceName", type: { - name: "String" - } + name: "String", + }, }, resourceType: { serializedName: "resourceType", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const HttpMessage: coreClient.CompositeMapper = { @@ -2418,11 +2499,11 @@ export const HttpMessage: coreClient.CompositeMapper = { serializedName: "content", type: { name: "Dictionary", - value: { type: { name: "any" } } - } - } - } - } + value: { type: { name: "any" } }, + }, + }, + }, + }, }; export const DeploymentOperationsListResult: coreClient.CompositeMapper = { @@ -2437,20 +2518,20 @@ export const DeploymentOperationsListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "DeploymentOperation" - } - } - } + className: "DeploymentOperation", + }, + }, + }, }, nextLink: { serializedName: "nextLink", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const TemplateHashResult: coreClient.CompositeMapper = { @@ -2461,17 +2542,17 @@ export const TemplateHashResult: coreClient.CompositeMapper = { minifiedTemplate: { serializedName: "minifiedTemplate", type: { - name: "String" - } + name: "String", + }, }, templateHash: { serializedName: "templateHash", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const TagsResource: coreClient.CompositeMapper = { @@ -2483,32 +2564,32 @@ export const TagsResource: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, properties: { serializedName: "properties", type: { name: "Composite", - className: "Tags" - } - } - } - } + className: "Tags", + }, + }, + }, + }, }; export const Tags: coreClient.CompositeMapper = { @@ -2520,11 +2601,11 @@ export const Tags: coreClient.CompositeMapper = { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } + value: { type: { name: "String" } }, + }, + }, + }, + }, }; export const TagsPatchResource: coreClient.CompositeMapper = { @@ -2535,18 +2616,18 @@ export const TagsPatchResource: coreClient.CompositeMapper = { operation: { serializedName: "operation", type: { - name: "String" - } + name: "String", + }, }, properties: { serializedName: "properties", type: { name: "Composite", - className: "Tags" - } - } - } - } + className: "Tags", + }, + }, + }, + }, }; export const DeploymentExtendedFilter: coreClient.CompositeMapper = { @@ -2557,11 +2638,11 @@ export const DeploymentExtendedFilter: coreClient.CompositeMapper = { provisioningState: { serializedName: "provisioningState", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const GenericResourceFilter: coreClient.CompositeMapper = { @@ -2572,23 +2653,23 @@ export const GenericResourceFilter: coreClient.CompositeMapper = { resourceType: { serializedName: "resourceType", type: { - name: "String" - } + name: "String", + }, }, tagname: { serializedName: "tagname", type: { - name: "String" - } + name: "String", + }, }, tagvalue: { serializedName: "tagvalue", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ResourceGroupFilter: coreClient.CompositeMapper = { @@ -2599,57 +2680,58 @@ export const ResourceGroupFilter: coreClient.CompositeMapper = { tagName: { serializedName: "tagName", type: { - name: "String" - } + name: "String", + }, }, tagValue: { serializedName: "tagValue", type: { - name: "String" - } - } - } - } -}; - -export const ResourceProviderOperationDisplayProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ResourceProviderOperationDisplayProperties", - modelProperties: { - publisher: { - serializedName: "publisher", - type: { - name: "String" - } - }, - provider: { - serializedName: "provider", - type: { - name: "String" - } - }, - resource: { - serializedName: "resource", - type: { - name: "String" - } + name: "String", + }, }, - operation: { - serializedName: "operation", - type: { - name: "String" - } + }, + }, +}; + +export const ResourceProviderOperationDisplayProperties: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ResourceProviderOperationDisplayProperties", + modelProperties: { + publisher: { + serializedName: "publisher", + type: { + name: "String", + }, + }, + provider: { + serializedName: "provider", + type: { + name: "String", + }, + }, + resource: { + serializedName: "resource", + type: { + name: "String", + }, + }, + operation: { + serializedName: "operation", + type: { + name: "String", + }, + }, + description: { + serializedName: "description", + type: { + name: "String", + }, + }, }, - description: { - serializedName: "description", - type: { - name: "String" - } - } - } - } -}; + }, + }; export const SubResource: coreClient.CompositeMapper = { type: { @@ -2659,11 +2741,11 @@ export const SubResource: coreClient.CompositeMapper = { id: { serializedName: "id", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const DeploymentWhatIfProperties: coreClient.CompositeMapper = { @@ -2676,11 +2758,11 @@ export const DeploymentWhatIfProperties: coreClient.CompositeMapper = { serializedName: "whatIfSettings", type: { name: "Composite", - className: "DeploymentWhatIfSettings" - } - } - } - } + className: "DeploymentWhatIfSettings", + }, + }, + }, + }, }; export const GenericResource: coreClient.CompositeMapper = { @@ -2693,47 +2775,47 @@ export const GenericResource: coreClient.CompositeMapper = { serializedName: "plan", type: { name: "Composite", - className: "Plan" - } + className: "Plan", + }, }, properties: { serializedName: "properties", type: { name: "Dictionary", - value: { type: { name: "any" } } - } + value: { type: { name: "any" } }, + }, }, kind: { constraints: { - Pattern: new RegExp("^[-\\w\\._,\\(\\)]+$") + Pattern: new RegExp("^[-\\w\\._,\\(\\)]+$"), }, serializedName: "kind", type: { - name: "String" - } + name: "String", + }, }, managedBy: { serializedName: "managedBy", type: { - name: "String" - } + name: "String", + }, }, sku: { serializedName: "sku", type: { name: "Composite", - className: "Sku" - } + className: "Sku", + }, }, identity: { serializedName: "identity", type: { name: "Composite", - className: "Identity" - } - } - } - } + className: "Identity", + }, + }, + }, + }, }; export const GenericResourceExpanded: coreClient.CompositeMapper = { @@ -2746,107 +2828,170 @@ export const GenericResourceExpanded: coreClient.CompositeMapper = { serializedName: "createdTime", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, changedTime: { serializedName: "changedTime", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, provisioningState: { serializedName: "provisioningState", readOnly: true, type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const DeploymentsWhatIfAtTenantScopeHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "DeploymentsWhatIfAtTenantScopeHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + retryAfter: { + serializedName: "retry-after", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const DeploymentsWhatIfAtManagementGroupScopeHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "DeploymentsWhatIfAtManagementGroupScopeHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + retryAfter: { + serializedName: "retry-after", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const DeploymentsWhatIfAtSubscriptionScopeHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "DeploymentsWhatIfAtSubscriptionScopeHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + retryAfter: { + serializedName: "retry-after", + type: { + name: "String", + }, + }, + }, + }, + }; -export const DeploymentsWhatIfAtTenantScopeHeaders: coreClient.CompositeMapper = { +export const DeploymentsWhatIfHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DeploymentsWhatIfAtTenantScopeHeaders", + className: "DeploymentsWhatIfHeaders", modelProperties: { location: { serializedName: "location", type: { - name: "String" - } + name: "String", + }, }, retryAfter: { serializedName: "retry-after", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const DeploymentsWhatIfAtManagementGroupScopeHeaders: coreClient.CompositeMapper = { +export const ResourceGroupsDeleteHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DeploymentsWhatIfAtManagementGroupScopeHeaders", + className: "ResourceGroupsDeleteHeaders", modelProperties: { location: { serializedName: "location", type: { - name: "String" - } + name: "String", + }, }, - retryAfter: { - serializedName: "retry-after", - type: { - name: "String" - } - } - } - } + }, + }, }; -export const DeploymentsWhatIfAtSubscriptionScopeHeaders: coreClient.CompositeMapper = { +export const TagsCreateOrUpdateAtScopeHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DeploymentsWhatIfAtSubscriptionScopeHeaders", + className: "TagsCreateOrUpdateAtScopeHeaders", modelProperties: { location: { serializedName: "location", type: { - name: "String" - } + name: "String", + }, }, - retryAfter: { - serializedName: "retry-after", - type: { - name: "String" - } - } - } - } + }, + }, }; -export const DeploymentsWhatIfHeaders: coreClient.CompositeMapper = { +export const TagsUpdateAtScopeHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DeploymentsWhatIfHeaders", + className: "TagsUpdateAtScopeHeaders", modelProperties: { location: { serializedName: "location", type: { - name: "String" - } + name: "String", + }, }, - retryAfter: { - serializedName: "retry-after", + }, + }, +}; + +export const TagsDeleteAtScopeHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "TagsDeleteAtScopeHeaders", + modelProperties: { + location: { + serializedName: "location", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; diff --git a/sdk/resources/arm-resources/src/models/parameters.ts b/sdk/resources/arm-resources/src/models/parameters.ts index 4e19dc1f69197..8b56a4b9a356c 100644 --- a/sdk/resources/arm-resources/src/models/parameters.ts +++ b/sdk/resources/arm-resources/src/models/parameters.ts @@ -9,7 +9,7 @@ import { OperationParameter, OperationURLParameter, - OperationQueryParameter + OperationQueryParameter, } from "@azure/core-client"; import { Deployment as DeploymentMapper, @@ -23,7 +23,7 @@ import { ResourceGroupPatchable as ResourceGroupPatchableMapper, ExportTemplateRequest as ExportTemplateRequestMapper, TagsResource as TagsResourceMapper, - TagsPatchResource as TagsPatchResourceMapper + TagsPatchResource as TagsPatchResourceMapper, } from "../models/mappers"; export const accept: OperationParameter = { @@ -33,9 +33,9 @@ export const accept: OperationParameter = { isConstant: true, serializedName: "Accept", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const $host: OperationURLParameter = { @@ -44,22 +44,22 @@ export const $host: OperationURLParameter = { serializedName: "$host", required: true, type: { - name: "String" - } + name: "String", + }, }, - skipEncoding: true + skipEncoding: true, }; export const apiVersion: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2021-04-01", + defaultValue: "2024-03-01", isConstant: true, serializedName: "api-version", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const nextLink: OperationURLParameter = { @@ -68,10 +68,10 @@ export const nextLink: OperationURLParameter = { serializedName: "nextLink", required: true, type: { - name: "String" - } + name: "String", + }, }, - skipEncoding: true + skipEncoding: true, }; export const scope: OperationURLParameter = { @@ -80,10 +80,10 @@ export const scope: OperationURLParameter = { serializedName: "scope", required: true, type: { - name: "String" - } + name: "String", + }, }, - skipEncoding: true + skipEncoding: true, }; export const deploymentName: OperationURLParameter = { @@ -92,14 +92,14 @@ export const deploymentName: OperationURLParameter = { constraints: { Pattern: new RegExp("^[-\\w\\._\\(\\)]+$"), MaxLength: 64, - MinLength: 1 + MinLength: 1, }, serializedName: "deploymentName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const contentType: OperationParameter = { @@ -109,14 +109,14 @@ export const contentType: OperationParameter = { isConstant: true, serializedName: "Content-Type", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters: OperationParameter = { parameterPath: "parameters", - mapper: DeploymentMapper + mapper: DeploymentMapper, }; export const filter: OperationQueryParameter = { @@ -124,9 +124,9 @@ export const filter: OperationQueryParameter = { mapper: { serializedName: "$filter", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const top: OperationQueryParameter = { @@ -134,19 +134,19 @@ export const top: OperationQueryParameter = { mapper: { serializedName: "$top", type: { - name: "Number" - } - } + name: "Number", + }, + }, }; export const parameters1: OperationParameter = { parameterPath: "parameters", - mapper: ScopedDeploymentMapper + mapper: ScopedDeploymentMapper, }; export const parameters2: OperationParameter = { parameterPath: "parameters", - mapper: ScopedDeploymentWhatIfMapper + mapper: ScopedDeploymentWhatIfMapper, }; export const groupId: OperationURLParameter = { @@ -154,14 +154,14 @@ export const groupId: OperationURLParameter = { mapper: { constraints: { MaxLength: 90, - MinLength: 1 + MinLength: 1, }, serializedName: "groupId", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const subscriptionId: OperationURLParameter = { @@ -170,14 +170,14 @@ export const subscriptionId: OperationURLParameter = { serializedName: "subscriptionId", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters3: OperationParameter = { parameterPath: "parameters", - mapper: DeploymentWhatIfMapper + mapper: DeploymentWhatIfMapper, }; export const resourceGroupName: OperationURLParameter = { @@ -186,14 +186,14 @@ export const resourceGroupName: OperationURLParameter = { constraints: { Pattern: new RegExp("^[-\\w\\._\\(\\)]+$"), MaxLength: 90, - MinLength: 1 + MinLength: 1, }, serializedName: "resourceGroupName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const template: OperationParameter = { @@ -203,9 +203,9 @@ export const template: OperationParameter = { required: true, type: { name: "Dictionary", - value: { type: { name: "any" } } - } - } + value: { type: { name: "any" } }, + }, + }, }; export const resourceProviderNamespace: OperationURLParameter = { @@ -214,14 +214,14 @@ export const resourceProviderNamespace: OperationURLParameter = { serializedName: "resourceProviderNamespace", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const properties: OperationParameter = { parameterPath: ["options", "properties"], - mapper: ProviderRegistrationRequestMapper + mapper: ProviderRegistrationRequestMapper, }; export const expand: OperationQueryParameter = { @@ -229,14 +229,14 @@ export const expand: OperationQueryParameter = { mapper: { serializedName: "$expand", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters4: OperationParameter = { parameterPath: "parameters", - mapper: ResourcesMoveInfoMapper + mapper: ResourcesMoveInfoMapper, }; export const sourceResourceGroupName: OperationURLParameter = { @@ -245,14 +245,14 @@ export const sourceResourceGroupName: OperationURLParameter = { constraints: { Pattern: new RegExp("^[-\\w\\._\\(\\)]+$"), MaxLength: 90, - MinLength: 1 + MinLength: 1, }, serializedName: "sourceResourceGroupName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parentResourcePath: OperationURLParameter = { @@ -261,10 +261,10 @@ export const parentResourcePath: OperationURLParameter = { serializedName: "parentResourcePath", required: true, type: { - name: "String" - } + name: "String", + }, }, - skipEncoding: true + skipEncoding: true, }; export const resourceType: OperationURLParameter = { @@ -273,10 +273,10 @@ export const resourceType: OperationURLParameter = { serializedName: "resourceType", required: true, type: { - name: "String" - } + name: "String", + }, }, - skipEncoding: true + skipEncoding: true, }; export const resourceName: OperationURLParameter = { @@ -285,9 +285,9 @@ export const resourceName: OperationURLParameter = { serializedName: "resourceName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const apiVersion1: OperationQueryParameter = { @@ -296,14 +296,14 @@ export const apiVersion1: OperationQueryParameter = { serializedName: "api-version", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters5: OperationParameter = { parameterPath: "parameters", - mapper: GenericResourceMapper + mapper: GenericResourceMapper, }; export const resourceId: OperationURLParameter = { @@ -312,15 +312,15 @@ export const resourceId: OperationURLParameter = { serializedName: "resourceId", required: true, type: { - name: "String" - } + name: "String", + }, }, - skipEncoding: true + skipEncoding: true, }; export const parameters6: OperationParameter = { parameterPath: "parameters", - mapper: ResourceGroupMapper + mapper: ResourceGroupMapper, }; export const forceDeletionTypes: OperationQueryParameter = { @@ -328,19 +328,19 @@ export const forceDeletionTypes: OperationQueryParameter = { mapper: { serializedName: "forceDeletionTypes", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters7: OperationParameter = { parameterPath: "parameters", - mapper: ResourceGroupPatchableMapper + mapper: ResourceGroupPatchableMapper, }; export const parameters8: OperationParameter = { parameterPath: "parameters", - mapper: ExportTemplateRequestMapper + mapper: ExportTemplateRequestMapper, }; export const resourceGroupName1: OperationURLParameter = { @@ -348,14 +348,14 @@ export const resourceGroupName1: OperationURLParameter = { mapper: { constraints: { MaxLength: 90, - MinLength: 1 + MinLength: 1, }, serializedName: "resourceGroupName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const tagName: OperationURLParameter = { @@ -364,9 +364,9 @@ export const tagName: OperationURLParameter = { serializedName: "tagName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const tagValue: OperationURLParameter = { @@ -375,19 +375,19 @@ export const tagValue: OperationURLParameter = { serializedName: "tagValue", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters9: OperationParameter = { parameterPath: "parameters", - mapper: TagsResourceMapper + mapper: TagsResourceMapper, }; export const parameters10: OperationParameter = { parameterPath: "parameters", - mapper: TagsPatchResourceMapper + mapper: TagsPatchResourceMapper, }; export const operationId: OperationURLParameter = { @@ -396,7 +396,7 @@ export const operationId: OperationURLParameter = { serializedName: "operationId", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; diff --git a/sdk/resources/arm-resources/src/operations/deploymentOperations.ts b/sdk/resources/arm-resources/src/operations/deploymentOperations.ts index ac58be5489135..8bd436dfc7aa3 100644 --- a/sdk/resources/arm-resources/src/operations/deploymentOperations.ts +++ b/sdk/resources/arm-resources/src/operations/deploymentOperations.ts @@ -44,7 +44,7 @@ import { DeploymentOperationsListAtTenantScopeNextResponse, DeploymentOperationsListAtManagementGroupScopeNextResponse, DeploymentOperationsListAtSubscriptionScopeNextResponse, - DeploymentOperationsListNextResponse + DeploymentOperationsListNextResponse, } from "../models"; /// @@ -69,7 +69,7 @@ export class DeploymentOperationsImpl implements DeploymentOperations { public listAtScope( scope: string, deploymentName: string, - options?: DeploymentOperationsListAtScopeOptionalParams + options?: DeploymentOperationsListAtScopeOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listAtScopePagingAll(scope, deploymentName, options); return { @@ -87,9 +87,9 @@ export class DeploymentOperationsImpl implements DeploymentOperations { scope, deploymentName, options, - settings + settings, ); - } + }, }; } @@ -97,7 +97,7 @@ export class DeploymentOperationsImpl implements DeploymentOperations { scope: string, deploymentName: string, options?: DeploymentOperationsListAtScopeOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: DeploymentOperationsListAtScopeResponse; let continuationToken = settings?.continuationToken; @@ -113,7 +113,7 @@ export class DeploymentOperationsImpl implements DeploymentOperations { scope, deploymentName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -125,12 +125,12 @@ export class DeploymentOperationsImpl implements DeploymentOperations { private async *listAtScopePagingAll( scope: string, deploymentName: string, - options?: DeploymentOperationsListAtScopeOptionalParams + options?: DeploymentOperationsListAtScopeOptionalParams, ): AsyncIterableIterator { for await (const page of this.listAtScopePagingPage( scope, deploymentName, - options + options, )) { yield* page; } @@ -143,7 +143,7 @@ export class DeploymentOperationsImpl implements DeploymentOperations { */ public listAtTenantScope( deploymentName: string, - options?: DeploymentOperationsListAtTenantScopeOptionalParams + options?: DeploymentOperationsListAtTenantScopeOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listAtTenantScopePagingAll(deploymentName, options); return { @@ -160,16 +160,16 @@ export class DeploymentOperationsImpl implements DeploymentOperations { return this.listAtTenantScopePagingPage( deploymentName, options, - settings + settings, ); - } + }, }; } private async *listAtTenantScopePagingPage( deploymentName: string, options?: DeploymentOperationsListAtTenantScopeOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: DeploymentOperationsListAtTenantScopeResponse; let continuationToken = settings?.continuationToken; @@ -184,7 +184,7 @@ export class DeploymentOperationsImpl implements DeploymentOperations { result = await this._listAtTenantScopeNext( deploymentName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -195,11 +195,11 @@ export class DeploymentOperationsImpl implements DeploymentOperations { private async *listAtTenantScopePagingAll( deploymentName: string, - options?: DeploymentOperationsListAtTenantScopeOptionalParams + options?: DeploymentOperationsListAtTenantScopeOptionalParams, ): AsyncIterableIterator { for await (const page of this.listAtTenantScopePagingPage( deploymentName, - options + options, )) { yield* page; } @@ -214,12 +214,12 @@ export class DeploymentOperationsImpl implements DeploymentOperations { public listAtManagementGroupScope( groupId: string, deploymentName: string, - options?: DeploymentOperationsListAtManagementGroupScopeOptionalParams + options?: DeploymentOperationsListAtManagementGroupScopeOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listAtManagementGroupScopePagingAll( groupId, deploymentName, - options + options, ); return { next() { @@ -236,9 +236,9 @@ export class DeploymentOperationsImpl implements DeploymentOperations { groupId, deploymentName, options, - settings + settings, ); - } + }, }; } @@ -246,7 +246,7 @@ export class DeploymentOperationsImpl implements DeploymentOperations { groupId: string, deploymentName: string, options?: DeploymentOperationsListAtManagementGroupScopeOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: DeploymentOperationsListAtManagementGroupScopeResponse; let continuationToken = settings?.continuationToken; @@ -254,7 +254,7 @@ export class DeploymentOperationsImpl implements DeploymentOperations { result = await this._listAtManagementGroupScope( groupId, deploymentName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -266,7 +266,7 @@ export class DeploymentOperationsImpl implements DeploymentOperations { groupId, deploymentName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -278,12 +278,12 @@ export class DeploymentOperationsImpl implements DeploymentOperations { private async *listAtManagementGroupScopePagingAll( groupId: string, deploymentName: string, - options?: DeploymentOperationsListAtManagementGroupScopeOptionalParams + options?: DeploymentOperationsListAtManagementGroupScopeOptionalParams, ): AsyncIterableIterator { for await (const page of this.listAtManagementGroupScopePagingPage( groupId, deploymentName, - options + options, )) { yield* page; } @@ -296,7 +296,7 @@ export class DeploymentOperationsImpl implements DeploymentOperations { */ public listAtSubscriptionScope( deploymentName: string, - options?: DeploymentOperationsListAtSubscriptionScopeOptionalParams + options?: DeploymentOperationsListAtSubscriptionScopeOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listAtSubscriptionScopePagingAll(deploymentName, options); return { @@ -313,16 +313,16 @@ export class DeploymentOperationsImpl implements DeploymentOperations { return this.listAtSubscriptionScopePagingPage( deploymentName, options, - settings + settings, ); - } + }, }; } private async *listAtSubscriptionScopePagingPage( deploymentName: string, options?: DeploymentOperationsListAtSubscriptionScopeOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: DeploymentOperationsListAtSubscriptionScopeResponse; let continuationToken = settings?.continuationToken; @@ -337,7 +337,7 @@ export class DeploymentOperationsImpl implements DeploymentOperations { result = await this._listAtSubscriptionScopeNext( deploymentName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -348,11 +348,11 @@ export class DeploymentOperationsImpl implements DeploymentOperations { private async *listAtSubscriptionScopePagingAll( deploymentName: string, - options?: DeploymentOperationsListAtSubscriptionScopeOptionalParams + options?: DeploymentOperationsListAtSubscriptionScopeOptionalParams, ): AsyncIterableIterator { for await (const page of this.listAtSubscriptionScopePagingPage( deploymentName, - options + options, )) { yield* page; } @@ -367,7 +367,7 @@ export class DeploymentOperationsImpl implements DeploymentOperations { public list( resourceGroupName: string, deploymentName: string, - options?: DeploymentOperationsListOptionalParams + options?: DeploymentOperationsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(resourceGroupName, deploymentName, options); return { @@ -385,9 +385,9 @@ export class DeploymentOperationsImpl implements DeploymentOperations { resourceGroupName, deploymentName, options, - settings + settings, ); - } + }, }; } @@ -395,7 +395,7 @@ export class DeploymentOperationsImpl implements DeploymentOperations { resourceGroupName: string, deploymentName: string, options?: DeploymentOperationsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: DeploymentOperationsListResponse; let continuationToken = settings?.continuationToken; @@ -411,7 +411,7 @@ export class DeploymentOperationsImpl implements DeploymentOperations { resourceGroupName, deploymentName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -423,12 +423,12 @@ export class DeploymentOperationsImpl implements DeploymentOperations { private async *listPagingAll( resourceGroupName: string, deploymentName: string, - options?: DeploymentOperationsListOptionalParams + options?: DeploymentOperationsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, deploymentName, - options + options, )) { yield* page; } @@ -445,11 +445,11 @@ export class DeploymentOperationsImpl implements DeploymentOperations { scope: string, deploymentName: string, operationId: string, - options?: DeploymentOperationsGetAtScopeOptionalParams + options?: DeploymentOperationsGetAtScopeOptionalParams, ): Promise { return this.client.sendOperationRequest( { scope, deploymentName, operationId, options }, - getAtScopeOperationSpec + getAtScopeOperationSpec, ); } @@ -462,11 +462,11 @@ export class DeploymentOperationsImpl implements DeploymentOperations { private _listAtScope( scope: string, deploymentName: string, - options?: DeploymentOperationsListAtScopeOptionalParams + options?: DeploymentOperationsListAtScopeOptionalParams, ): Promise { return this.client.sendOperationRequest( { scope, deploymentName, options }, - listAtScopeOperationSpec + listAtScopeOperationSpec, ); } @@ -479,11 +479,11 @@ export class DeploymentOperationsImpl implements DeploymentOperations { getAtTenantScope( deploymentName: string, operationId: string, - options?: DeploymentOperationsGetAtTenantScopeOptionalParams + options?: DeploymentOperationsGetAtTenantScopeOptionalParams, ): Promise { return this.client.sendOperationRequest( { deploymentName, operationId, options }, - getAtTenantScopeOperationSpec + getAtTenantScopeOperationSpec, ); } @@ -494,11 +494,11 @@ export class DeploymentOperationsImpl implements DeploymentOperations { */ private _listAtTenantScope( deploymentName: string, - options?: DeploymentOperationsListAtTenantScopeOptionalParams + options?: DeploymentOperationsListAtTenantScopeOptionalParams, ): Promise { return this.client.sendOperationRequest( { deploymentName, options }, - listAtTenantScopeOperationSpec + listAtTenantScopeOperationSpec, ); } @@ -513,11 +513,11 @@ export class DeploymentOperationsImpl implements DeploymentOperations { groupId: string, deploymentName: string, operationId: string, - options?: DeploymentOperationsGetAtManagementGroupScopeOptionalParams + options?: DeploymentOperationsGetAtManagementGroupScopeOptionalParams, ): Promise { return this.client.sendOperationRequest( { groupId, deploymentName, operationId, options }, - getAtManagementGroupScopeOperationSpec + getAtManagementGroupScopeOperationSpec, ); } @@ -530,11 +530,11 @@ export class DeploymentOperationsImpl implements DeploymentOperations { private _listAtManagementGroupScope( groupId: string, deploymentName: string, - options?: DeploymentOperationsListAtManagementGroupScopeOptionalParams + options?: DeploymentOperationsListAtManagementGroupScopeOptionalParams, ): Promise { return this.client.sendOperationRequest( { groupId, deploymentName, options }, - listAtManagementGroupScopeOperationSpec + listAtManagementGroupScopeOperationSpec, ); } @@ -547,11 +547,11 @@ export class DeploymentOperationsImpl implements DeploymentOperations { getAtSubscriptionScope( deploymentName: string, operationId: string, - options?: DeploymentOperationsGetAtSubscriptionScopeOptionalParams + options?: DeploymentOperationsGetAtSubscriptionScopeOptionalParams, ): Promise { return this.client.sendOperationRequest( { deploymentName, operationId, options }, - getAtSubscriptionScopeOperationSpec + getAtSubscriptionScopeOperationSpec, ); } @@ -562,11 +562,11 @@ export class DeploymentOperationsImpl implements DeploymentOperations { */ private _listAtSubscriptionScope( deploymentName: string, - options?: DeploymentOperationsListAtSubscriptionScopeOptionalParams + options?: DeploymentOperationsListAtSubscriptionScopeOptionalParams, ): Promise { return this.client.sendOperationRequest( { deploymentName, options }, - listAtSubscriptionScopeOperationSpec + listAtSubscriptionScopeOperationSpec, ); } @@ -581,11 +581,11 @@ export class DeploymentOperationsImpl implements DeploymentOperations { resourceGroupName: string, deploymentName: string, operationId: string, - options?: DeploymentOperationsGetOptionalParams + options?: DeploymentOperationsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, deploymentName, operationId, options }, - getOperationSpec + getOperationSpec, ); } @@ -598,11 +598,11 @@ export class DeploymentOperationsImpl implements DeploymentOperations { private _list( resourceGroupName: string, deploymentName: string, - options?: DeploymentOperationsListOptionalParams + options?: DeploymentOperationsListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, deploymentName, options }, - listOperationSpec + listOperationSpec, ); } @@ -617,11 +617,11 @@ export class DeploymentOperationsImpl implements DeploymentOperations { scope: string, deploymentName: string, nextLink: string, - options?: DeploymentOperationsListAtScopeNextOptionalParams + options?: DeploymentOperationsListAtScopeNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { scope, deploymentName, nextLink, options }, - listAtScopeNextOperationSpec + listAtScopeNextOperationSpec, ); } @@ -634,11 +634,11 @@ export class DeploymentOperationsImpl implements DeploymentOperations { private _listAtTenantScopeNext( deploymentName: string, nextLink: string, - options?: DeploymentOperationsListAtTenantScopeNextOptionalParams + options?: DeploymentOperationsListAtTenantScopeNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { deploymentName, nextLink, options }, - listAtTenantScopeNextOperationSpec + listAtTenantScopeNextOperationSpec, ); } @@ -654,11 +654,11 @@ export class DeploymentOperationsImpl implements DeploymentOperations { groupId: string, deploymentName: string, nextLink: string, - options?: DeploymentOperationsListAtManagementGroupScopeNextOptionalParams + options?: DeploymentOperationsListAtManagementGroupScopeNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { groupId, deploymentName, nextLink, options }, - listAtManagementGroupScopeNextOperationSpec + listAtManagementGroupScopeNextOperationSpec, ); } @@ -672,11 +672,11 @@ export class DeploymentOperationsImpl implements DeploymentOperations { private _listAtSubscriptionScopeNext( deploymentName: string, nextLink: string, - options?: DeploymentOperationsListAtSubscriptionScopeNextOptionalParams + options?: DeploymentOperationsListAtSubscriptionScopeNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { deploymentName, nextLink, options }, - listAtSubscriptionScopeNextOperationSpec + listAtSubscriptionScopeNextOperationSpec, ); } @@ -691,11 +691,11 @@ export class DeploymentOperationsImpl implements DeploymentOperations { resourceGroupName: string, deploymentName: string, nextLink: string, - options?: DeploymentOperationsListNextOptionalParams + options?: DeploymentOperationsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, deploymentName, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -703,183 +703,174 @@ export class DeploymentOperationsImpl implements DeploymentOperations { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getAtScopeOperationSpec: coreClient.OperationSpec = { - path: - "/{scope}/providers/Microsoft.Resources/deployments/{deploymentName}/operations/{operationId}", + path: "/{scope}/providers/Microsoft.Resources/deployments/{deploymentName}/operations/{operationId}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DeploymentOperation + bodyMapper: Mappers.DeploymentOperation, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.scope, Parameters.deploymentName, - Parameters.operationId + Parameters.operationId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listAtScopeOperationSpec: coreClient.OperationSpec = { - path: - "/{scope}/providers/Microsoft.Resources/deployments/{deploymentName}/operations", + path: "/{scope}/providers/Microsoft.Resources/deployments/{deploymentName}/operations", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DeploymentOperationsListResult + bodyMapper: Mappers.DeploymentOperationsListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion, Parameters.top], urlParameters: [ Parameters.$host, Parameters.scope, - Parameters.deploymentName + Parameters.deploymentName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getAtTenantScopeOperationSpec: coreClient.OperationSpec = { - path: - "/providers/Microsoft.Resources/deployments/{deploymentName}/operations/{operationId}", + path: "/providers/Microsoft.Resources/deployments/{deploymentName}/operations/{operationId}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DeploymentOperation + bodyMapper: Mappers.DeploymentOperation, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.deploymentName, - Parameters.operationId + Parameters.operationId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listAtTenantScopeOperationSpec: coreClient.OperationSpec = { - path: - "/providers/Microsoft.Resources/deployments/{deploymentName}/operations", + path: "/providers/Microsoft.Resources/deployments/{deploymentName}/operations", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DeploymentOperationsListResult + bodyMapper: Mappers.DeploymentOperationsListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion, Parameters.top], urlParameters: [Parameters.$host, Parameters.deploymentName], headerParameters: [Parameters.accept], - serializer + serializer, }; const getAtManagementGroupScopeOperationSpec: coreClient.OperationSpec = { - path: - "/providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}/operations/{operationId}", + path: "/providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}/operations/{operationId}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DeploymentOperation + bodyMapper: Mappers.DeploymentOperation, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.deploymentName, Parameters.groupId, - Parameters.operationId + Parameters.operationId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listAtManagementGroupScopeOperationSpec: coreClient.OperationSpec = { - path: - "/providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}/operations", + path: "/providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}/operations", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DeploymentOperationsListResult + bodyMapper: Mappers.DeploymentOperationsListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion, Parameters.top], urlParameters: [ Parameters.$host, Parameters.deploymentName, - Parameters.groupId + Parameters.groupId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getAtSubscriptionScopeOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}/operations/{operationId}", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}/operations/{operationId}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DeploymentOperation + bodyMapper: Mappers.DeploymentOperation, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.deploymentName, Parameters.subscriptionId, - Parameters.operationId + Parameters.operationId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listAtSubscriptionScopeOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}/operations", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}/operations", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DeploymentOperationsListResult + bodyMapper: Mappers.DeploymentOperationsListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion, Parameters.top], urlParameters: [ Parameters.$host, Parameters.deploymentName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/deployments/{deploymentName}/operations/{operationId}", + path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/deployments/{deploymentName}/operations/{operationId}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DeploymentOperation + bodyMapper: Mappers.DeploymentOperation, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -887,130 +878,129 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.deploymentName, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.operationId + Parameters.operationId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/deployments/{deploymentName}/operations", + path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/deployments/{deploymentName}/operations", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DeploymentOperationsListResult + bodyMapper: Mappers.DeploymentOperationsListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion, Parameters.top], urlParameters: [ Parameters.$host, Parameters.deploymentName, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listAtScopeNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DeploymentOperationsListResult + bodyMapper: Mappers.DeploymentOperationsListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.nextLink, Parameters.scope, - Parameters.deploymentName + Parameters.deploymentName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listAtTenantScopeNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DeploymentOperationsListResult + bodyMapper: Mappers.DeploymentOperationsListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.nextLink, - Parameters.deploymentName + Parameters.deploymentName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listAtManagementGroupScopeNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DeploymentOperationsListResult + bodyMapper: Mappers.DeploymentOperationsListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.nextLink, Parameters.deploymentName, - Parameters.groupId + Parameters.groupId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listAtSubscriptionScopeNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DeploymentOperationsListResult + bodyMapper: Mappers.DeploymentOperationsListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.nextLink, Parameters.deploymentName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DeploymentOperationsListResult + bodyMapper: Mappers.DeploymentOperationsListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.nextLink, Parameters.deploymentName, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/resources/arm-resources/src/operations/deployments.ts b/sdk/resources/arm-resources/src/operations/deployments.ts index 16f7ba8fcda2a..558f0e0a30cf8 100644 --- a/sdk/resources/arm-resources/src/operations/deployments.ts +++ b/sdk/resources/arm-resources/src/operations/deployments.ts @@ -16,7 +16,7 @@ import { ResourceManagementClient } from "../resourceManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -114,7 +114,7 @@ import { DeploymentsListAtTenantScopeNextResponse, DeploymentsListAtManagementGroupScopeNextResponse, DeploymentsListAtSubscriptionScopeNextResponse, - DeploymentsListByResourceGroupNextResponse + DeploymentsListByResourceGroupNextResponse, } from "../models"; /// @@ -137,7 +137,7 @@ export class DeploymentsImpl implements Deployments { */ public listAtScope( scope: string, - options?: DeploymentsListAtScopeOptionalParams + options?: DeploymentsListAtScopeOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listAtScopePagingAll(scope, options); return { @@ -152,14 +152,14 @@ export class DeploymentsImpl implements Deployments { throw new Error("maxPageSize is not supported by this operation."); } return this.listAtScopePagingPage(scope, options, settings); - } + }, }; } private async *listAtScopePagingPage( scope: string, options?: DeploymentsListAtScopeOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: DeploymentsListAtScopeResponse; let continuationToken = settings?.continuationToken; @@ -181,7 +181,7 @@ export class DeploymentsImpl implements Deployments { private async *listAtScopePagingAll( scope: string, - options?: DeploymentsListAtScopeOptionalParams + options?: DeploymentsListAtScopeOptionalParams, ): AsyncIterableIterator { for await (const page of this.listAtScopePagingPage(scope, options)) { yield* page; @@ -193,7 +193,7 @@ export class DeploymentsImpl implements Deployments { * @param options The options parameters. */ public listAtTenantScope( - options?: DeploymentsListAtTenantScopeOptionalParams + options?: DeploymentsListAtTenantScopeOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listAtTenantScopePagingAll(options); return { @@ -208,13 +208,13 @@ export class DeploymentsImpl implements Deployments { throw new Error("maxPageSize is not supported by this operation."); } return this.listAtTenantScopePagingPage(options, settings); - } + }, }; } private async *listAtTenantScopePagingPage( options?: DeploymentsListAtTenantScopeOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: DeploymentsListAtTenantScopeResponse; let continuationToken = settings?.continuationToken; @@ -235,7 +235,7 @@ export class DeploymentsImpl implements Deployments { } private async *listAtTenantScopePagingAll( - options?: DeploymentsListAtTenantScopeOptionalParams + options?: DeploymentsListAtTenantScopeOptionalParams, ): AsyncIterableIterator { for await (const page of this.listAtTenantScopePagingPage(options)) { yield* page; @@ -249,7 +249,7 @@ export class DeploymentsImpl implements Deployments { */ public listAtManagementGroupScope( groupId: string, - options?: DeploymentsListAtManagementGroupScopeOptionalParams + options?: DeploymentsListAtManagementGroupScopeOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listAtManagementGroupScopePagingAll(groupId, options); return { @@ -266,16 +266,16 @@ export class DeploymentsImpl implements Deployments { return this.listAtManagementGroupScopePagingPage( groupId, options, - settings + settings, ); - } + }, }; } private async *listAtManagementGroupScopePagingPage( groupId: string, options?: DeploymentsListAtManagementGroupScopeOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: DeploymentsListAtManagementGroupScopeResponse; let continuationToken = settings?.continuationToken; @@ -290,7 +290,7 @@ export class DeploymentsImpl implements Deployments { result = await this._listAtManagementGroupScopeNext( groupId, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -301,11 +301,11 @@ export class DeploymentsImpl implements Deployments { private async *listAtManagementGroupScopePagingAll( groupId: string, - options?: DeploymentsListAtManagementGroupScopeOptionalParams + options?: DeploymentsListAtManagementGroupScopeOptionalParams, ): AsyncIterableIterator { for await (const page of this.listAtManagementGroupScopePagingPage( groupId, - options + options, )) { yield* page; } @@ -316,7 +316,7 @@ export class DeploymentsImpl implements Deployments { * @param options The options parameters. */ public listAtSubscriptionScope( - options?: DeploymentsListAtSubscriptionScopeOptionalParams + options?: DeploymentsListAtSubscriptionScopeOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listAtSubscriptionScopePagingAll(options); return { @@ -331,13 +331,13 @@ export class DeploymentsImpl implements Deployments { throw new Error("maxPageSize is not supported by this operation."); } return this.listAtSubscriptionScopePagingPage(options, settings); - } + }, }; } private async *listAtSubscriptionScopePagingPage( options?: DeploymentsListAtSubscriptionScopeOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: DeploymentsListAtSubscriptionScopeResponse; let continuationToken = settings?.continuationToken; @@ -351,7 +351,7 @@ export class DeploymentsImpl implements Deployments { while (continuationToken) { result = await this._listAtSubscriptionScopeNext( continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -361,7 +361,7 @@ export class DeploymentsImpl implements Deployments { } private async *listAtSubscriptionScopePagingAll( - options?: DeploymentsListAtSubscriptionScopeOptionalParams + options?: DeploymentsListAtSubscriptionScopeOptionalParams, ): AsyncIterableIterator { for await (const page of this.listAtSubscriptionScopePagingPage(options)) { yield* page; @@ -376,7 +376,7 @@ export class DeploymentsImpl implements Deployments { */ public listByResourceGroup( resourceGroupName: string, - options?: DeploymentsListByResourceGroupOptionalParams + options?: DeploymentsListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); return { @@ -393,16 +393,16 @@ export class DeploymentsImpl implements Deployments { return this.listByResourceGroupPagingPage( resourceGroupName, options, - settings + settings, ); - } + }, }; } private async *listByResourceGroupPagingPage( resourceGroupName: string, options?: DeploymentsListByResourceGroupOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: DeploymentsListByResourceGroupResponse; let continuationToken = settings?.continuationToken; @@ -417,7 +417,7 @@ export class DeploymentsImpl implements Deployments { result = await this._listByResourceGroupNext( resourceGroupName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -428,11 +428,11 @@ export class DeploymentsImpl implements Deployments { private async *listByResourceGroupPagingAll( resourceGroupName: string, - options?: DeploymentsListByResourceGroupOptionalParams + options?: DeploymentsListByResourceGroupOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByResourceGroupPagingPage( resourceGroupName, - options + options, )) { yield* page; } @@ -453,25 +453,24 @@ export class DeploymentsImpl implements Deployments { async beginDeleteAtScope( scope: string, deploymentName: string, - options?: DeploymentsDeleteAtScopeOptionalParams + options?: DeploymentsDeleteAtScopeOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -480,8 +479,8 @@ export class DeploymentsImpl implements Deployments { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -489,19 +488,19 @@ export class DeploymentsImpl implements Deployments { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { scope, deploymentName, options }, - spec: deleteAtScopeOperationSpec + spec: deleteAtScopeOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -522,12 +521,12 @@ export class DeploymentsImpl implements Deployments { async beginDeleteAtScopeAndWait( scope: string, deploymentName: string, - options?: DeploymentsDeleteAtScopeOptionalParams + options?: DeploymentsDeleteAtScopeOptionalParams, ): Promise { const poller = await this.beginDeleteAtScope( scope, deploymentName, - options + options, ); return poller.pollUntilDone(); } @@ -541,11 +540,11 @@ export class DeploymentsImpl implements Deployments { checkExistenceAtScope( scope: string, deploymentName: string, - options?: DeploymentsCheckExistenceAtScopeOptionalParams + options?: DeploymentsCheckExistenceAtScopeOptionalParams, ): Promise { return this.client.sendOperationRequest( { scope, deploymentName, options }, - checkExistenceAtScopeOperationSpec + checkExistenceAtScopeOperationSpec, ); } @@ -560,7 +559,7 @@ export class DeploymentsImpl implements Deployments { scope: string, deploymentName: string, parameters: Deployment, - options?: DeploymentsCreateOrUpdateAtScopeOptionalParams + options?: DeploymentsCreateOrUpdateAtScopeOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -569,21 +568,20 @@ export class DeploymentsImpl implements Deployments { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -592,8 +590,8 @@ export class DeploymentsImpl implements Deployments { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -601,22 +599,22 @@ export class DeploymentsImpl implements Deployments { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { scope, deploymentName, parameters, options }, - spec: createOrUpdateAtScopeOperationSpec + spec: createOrUpdateAtScopeOperationSpec, }); const poller = await createHttpPoller< DeploymentsCreateOrUpdateAtScopeResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -633,13 +631,13 @@ export class DeploymentsImpl implements Deployments { scope: string, deploymentName: string, parameters: Deployment, - options?: DeploymentsCreateOrUpdateAtScopeOptionalParams + options?: DeploymentsCreateOrUpdateAtScopeOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdateAtScope( scope, deploymentName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -653,11 +651,11 @@ export class DeploymentsImpl implements Deployments { getAtScope( scope: string, deploymentName: string, - options?: DeploymentsGetAtScopeOptionalParams + options?: DeploymentsGetAtScopeOptionalParams, ): Promise { return this.client.sendOperationRequest( { scope, deploymentName, options }, - getAtScopeOperationSpec + getAtScopeOperationSpec, ); } @@ -672,11 +670,11 @@ export class DeploymentsImpl implements Deployments { cancelAtScope( scope: string, deploymentName: string, - options?: DeploymentsCancelAtScopeOptionalParams + options?: DeploymentsCancelAtScopeOptionalParams, ): Promise { return this.client.sendOperationRequest( { scope, deploymentName, options }, - cancelAtScopeOperationSpec + cancelAtScopeOperationSpec, ); } @@ -692,7 +690,7 @@ export class DeploymentsImpl implements Deployments { scope: string, deploymentName: string, parameters: Deployment, - options?: DeploymentsValidateAtScopeOptionalParams + options?: DeploymentsValidateAtScopeOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -701,21 +699,20 @@ export class DeploymentsImpl implements Deployments { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -724,8 +721,8 @@ export class DeploymentsImpl implements Deployments { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -733,22 +730,22 @@ export class DeploymentsImpl implements Deployments { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { scope, deploymentName, parameters, options }, - spec: validateAtScopeOperationSpec + spec: validateAtScopeOperationSpec, }); const poller = await createHttpPoller< DeploymentsValidateAtScopeResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -766,13 +763,13 @@ export class DeploymentsImpl implements Deployments { scope: string, deploymentName: string, parameters: Deployment, - options?: DeploymentsValidateAtScopeOptionalParams + options?: DeploymentsValidateAtScopeOptionalParams, ): Promise { const poller = await this.beginValidateAtScope( scope, deploymentName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -786,11 +783,11 @@ export class DeploymentsImpl implements Deployments { exportTemplateAtScope( scope: string, deploymentName: string, - options?: DeploymentsExportTemplateAtScopeOptionalParams + options?: DeploymentsExportTemplateAtScopeOptionalParams, ): Promise { return this.client.sendOperationRequest( { scope, deploymentName, options }, - exportTemplateAtScopeOperationSpec + exportTemplateAtScopeOperationSpec, ); } @@ -801,11 +798,11 @@ export class DeploymentsImpl implements Deployments { */ private _listAtScope( scope: string, - options?: DeploymentsListAtScopeOptionalParams + options?: DeploymentsListAtScopeOptionalParams, ): Promise { return this.client.sendOperationRequest( { scope, options }, - listAtScopeOperationSpec + listAtScopeOperationSpec, ); } @@ -822,25 +819,24 @@ export class DeploymentsImpl implements Deployments { */ async beginDeleteAtTenantScope( deploymentName: string, - options?: DeploymentsDeleteAtTenantScopeOptionalParams + options?: DeploymentsDeleteAtTenantScopeOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -849,8 +845,8 @@ export class DeploymentsImpl implements Deployments { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -858,19 +854,19 @@ export class DeploymentsImpl implements Deployments { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { deploymentName, options }, - spec: deleteAtTenantScopeOperationSpec + spec: deleteAtTenantScopeOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -889,7 +885,7 @@ export class DeploymentsImpl implements Deployments { */ async beginDeleteAtTenantScopeAndWait( deploymentName: string, - options?: DeploymentsDeleteAtTenantScopeOptionalParams + options?: DeploymentsDeleteAtTenantScopeOptionalParams, ): Promise { const poller = await this.beginDeleteAtTenantScope(deploymentName, options); return poller.pollUntilDone(); @@ -902,11 +898,11 @@ export class DeploymentsImpl implements Deployments { */ checkExistenceAtTenantScope( deploymentName: string, - options?: DeploymentsCheckExistenceAtTenantScopeOptionalParams + options?: DeploymentsCheckExistenceAtTenantScopeOptionalParams, ): Promise { return this.client.sendOperationRequest( { deploymentName, options }, - checkExistenceAtTenantScopeOperationSpec + checkExistenceAtTenantScopeOperationSpec, ); } @@ -919,7 +915,7 @@ export class DeploymentsImpl implements Deployments { async beginCreateOrUpdateAtTenantScope( deploymentName: string, parameters: ScopedDeployment, - options?: DeploymentsCreateOrUpdateAtTenantScopeOptionalParams + options?: DeploymentsCreateOrUpdateAtTenantScopeOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -928,21 +924,20 @@ export class DeploymentsImpl implements Deployments { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -951,8 +946,8 @@ export class DeploymentsImpl implements Deployments { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -960,22 +955,22 @@ export class DeploymentsImpl implements Deployments { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { deploymentName, parameters, options }, - spec: createOrUpdateAtTenantScopeOperationSpec + spec: createOrUpdateAtTenantScopeOperationSpec, }); const poller = await createHttpPoller< DeploymentsCreateOrUpdateAtTenantScopeResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -990,12 +985,12 @@ export class DeploymentsImpl implements Deployments { async beginCreateOrUpdateAtTenantScopeAndWait( deploymentName: string, parameters: ScopedDeployment, - options?: DeploymentsCreateOrUpdateAtTenantScopeOptionalParams + options?: DeploymentsCreateOrUpdateAtTenantScopeOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdateAtTenantScope( deploymentName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -1007,11 +1002,11 @@ export class DeploymentsImpl implements Deployments { */ getAtTenantScope( deploymentName: string, - options?: DeploymentsGetAtTenantScopeOptionalParams + options?: DeploymentsGetAtTenantScopeOptionalParams, ): Promise { return this.client.sendOperationRequest( { deploymentName, options }, - getAtTenantScopeOperationSpec + getAtTenantScopeOperationSpec, ); } @@ -1024,11 +1019,11 @@ export class DeploymentsImpl implements Deployments { */ cancelAtTenantScope( deploymentName: string, - options?: DeploymentsCancelAtTenantScopeOptionalParams + options?: DeploymentsCancelAtTenantScopeOptionalParams, ): Promise { return this.client.sendOperationRequest( { deploymentName, options }, - cancelAtTenantScopeOperationSpec + cancelAtTenantScopeOperationSpec, ); } @@ -1042,7 +1037,7 @@ export class DeploymentsImpl implements Deployments { async beginValidateAtTenantScope( deploymentName: string, parameters: ScopedDeployment, - options?: DeploymentsValidateAtTenantScopeOptionalParams + options?: DeploymentsValidateAtTenantScopeOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -1051,21 +1046,20 @@ export class DeploymentsImpl implements Deployments { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -1074,8 +1068,8 @@ export class DeploymentsImpl implements Deployments { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1083,22 +1077,22 @@ export class DeploymentsImpl implements Deployments { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { deploymentName, parameters, options }, - spec: validateAtTenantScopeOperationSpec + spec: validateAtTenantScopeOperationSpec, }); const poller = await createHttpPoller< DeploymentsValidateAtTenantScopeResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -1114,12 +1108,12 @@ export class DeploymentsImpl implements Deployments { async beginValidateAtTenantScopeAndWait( deploymentName: string, parameters: ScopedDeployment, - options?: DeploymentsValidateAtTenantScopeOptionalParams + options?: DeploymentsValidateAtTenantScopeOptionalParams, ): Promise { const poller = await this.beginValidateAtTenantScope( deploymentName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -1133,7 +1127,7 @@ export class DeploymentsImpl implements Deployments { async beginWhatIfAtTenantScope( deploymentName: string, parameters: ScopedDeploymentWhatIf, - options?: DeploymentsWhatIfAtTenantScopeOptionalParams + options?: DeploymentsWhatIfAtTenantScopeOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -1142,21 +1136,20 @@ export class DeploymentsImpl implements Deployments { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -1165,8 +1158,8 @@ export class DeploymentsImpl implements Deployments { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1174,15 +1167,15 @@ export class DeploymentsImpl implements Deployments { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { deploymentName, parameters, options }, - spec: whatIfAtTenantScopeOperationSpec + spec: whatIfAtTenantScopeOperationSpec, }); const poller = await createHttpPoller< DeploymentsWhatIfAtTenantScopeResponse, @@ -1190,7 +1183,7 @@ export class DeploymentsImpl implements Deployments { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -1205,12 +1198,12 @@ export class DeploymentsImpl implements Deployments { async beginWhatIfAtTenantScopeAndWait( deploymentName: string, parameters: ScopedDeploymentWhatIf, - options?: DeploymentsWhatIfAtTenantScopeOptionalParams + options?: DeploymentsWhatIfAtTenantScopeOptionalParams, ): Promise { const poller = await this.beginWhatIfAtTenantScope( deploymentName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -1222,11 +1215,11 @@ export class DeploymentsImpl implements Deployments { */ exportTemplateAtTenantScope( deploymentName: string, - options?: DeploymentsExportTemplateAtTenantScopeOptionalParams + options?: DeploymentsExportTemplateAtTenantScopeOptionalParams, ): Promise { return this.client.sendOperationRequest( { deploymentName, options }, - exportTemplateAtTenantScopeOperationSpec + exportTemplateAtTenantScopeOperationSpec, ); } @@ -1235,11 +1228,11 @@ export class DeploymentsImpl implements Deployments { * @param options The options parameters. */ private _listAtTenantScope( - options?: DeploymentsListAtTenantScopeOptionalParams + options?: DeploymentsListAtTenantScopeOptionalParams, ): Promise { return this.client.sendOperationRequest( { options }, - listAtTenantScopeOperationSpec + listAtTenantScopeOperationSpec, ); } @@ -1258,25 +1251,24 @@ export class DeploymentsImpl implements Deployments { async beginDeleteAtManagementGroupScope( groupId: string, deploymentName: string, - options?: DeploymentsDeleteAtManagementGroupScopeOptionalParams + options?: DeploymentsDeleteAtManagementGroupScopeOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -1285,8 +1277,8 @@ export class DeploymentsImpl implements Deployments { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1294,19 +1286,19 @@ export class DeploymentsImpl implements Deployments { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { groupId, deploymentName, options }, - spec: deleteAtManagementGroupScopeOperationSpec + spec: deleteAtManagementGroupScopeOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -1327,12 +1319,12 @@ export class DeploymentsImpl implements Deployments { async beginDeleteAtManagementGroupScopeAndWait( groupId: string, deploymentName: string, - options?: DeploymentsDeleteAtManagementGroupScopeOptionalParams + options?: DeploymentsDeleteAtManagementGroupScopeOptionalParams, ): Promise { const poller = await this.beginDeleteAtManagementGroupScope( groupId, deploymentName, - options + options, ); return poller.pollUntilDone(); } @@ -1346,11 +1338,11 @@ export class DeploymentsImpl implements Deployments { checkExistenceAtManagementGroupScope( groupId: string, deploymentName: string, - options?: DeploymentsCheckExistenceAtManagementGroupScopeOptionalParams + options?: DeploymentsCheckExistenceAtManagementGroupScopeOptionalParams, ): Promise { return this.client.sendOperationRequest( { groupId, deploymentName, options }, - checkExistenceAtManagementGroupScopeOperationSpec + checkExistenceAtManagementGroupScopeOperationSpec, ); } @@ -1365,7 +1357,7 @@ export class DeploymentsImpl implements Deployments { groupId: string, deploymentName: string, parameters: ScopedDeployment, - options?: DeploymentsCreateOrUpdateAtManagementGroupScopeOptionalParams + options?: DeploymentsCreateOrUpdateAtManagementGroupScopeOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -1374,21 +1366,20 @@ export class DeploymentsImpl implements Deployments { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -1397,8 +1388,8 @@ export class DeploymentsImpl implements Deployments { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1406,22 +1397,22 @@ export class DeploymentsImpl implements Deployments { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { groupId, deploymentName, parameters, options }, - spec: createOrUpdateAtManagementGroupScopeOperationSpec + spec: createOrUpdateAtManagementGroupScopeOperationSpec, }); const poller = await createHttpPoller< DeploymentsCreateOrUpdateAtManagementGroupScopeResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -1438,13 +1429,13 @@ export class DeploymentsImpl implements Deployments { groupId: string, deploymentName: string, parameters: ScopedDeployment, - options?: DeploymentsCreateOrUpdateAtManagementGroupScopeOptionalParams + options?: DeploymentsCreateOrUpdateAtManagementGroupScopeOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdateAtManagementGroupScope( groupId, deploymentName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -1458,11 +1449,11 @@ export class DeploymentsImpl implements Deployments { getAtManagementGroupScope( groupId: string, deploymentName: string, - options?: DeploymentsGetAtManagementGroupScopeOptionalParams + options?: DeploymentsGetAtManagementGroupScopeOptionalParams, ): Promise { return this.client.sendOperationRequest( { groupId, deploymentName, options }, - getAtManagementGroupScopeOperationSpec + getAtManagementGroupScopeOperationSpec, ); } @@ -1477,11 +1468,11 @@ export class DeploymentsImpl implements Deployments { cancelAtManagementGroupScope( groupId: string, deploymentName: string, - options?: DeploymentsCancelAtManagementGroupScopeOptionalParams + options?: DeploymentsCancelAtManagementGroupScopeOptionalParams, ): Promise { return this.client.sendOperationRequest( { groupId, deploymentName, options }, - cancelAtManagementGroupScopeOperationSpec + cancelAtManagementGroupScopeOperationSpec, ); } @@ -1497,7 +1488,7 @@ export class DeploymentsImpl implements Deployments { groupId: string, deploymentName: string, parameters: ScopedDeployment, - options?: DeploymentsValidateAtManagementGroupScopeOptionalParams + options?: DeploymentsValidateAtManagementGroupScopeOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -1506,21 +1497,20 @@ export class DeploymentsImpl implements Deployments { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -1529,8 +1519,8 @@ export class DeploymentsImpl implements Deployments { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1538,22 +1528,22 @@ export class DeploymentsImpl implements Deployments { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { groupId, deploymentName, parameters, options }, - spec: validateAtManagementGroupScopeOperationSpec + spec: validateAtManagementGroupScopeOperationSpec, }); const poller = await createHttpPoller< DeploymentsValidateAtManagementGroupScopeResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -1571,13 +1561,13 @@ export class DeploymentsImpl implements Deployments { groupId: string, deploymentName: string, parameters: ScopedDeployment, - options?: DeploymentsValidateAtManagementGroupScopeOptionalParams + options?: DeploymentsValidateAtManagementGroupScopeOptionalParams, ): Promise { const poller = await this.beginValidateAtManagementGroupScope( groupId, deploymentName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -1594,7 +1584,7 @@ export class DeploymentsImpl implements Deployments { groupId: string, deploymentName: string, parameters: ScopedDeploymentWhatIf, - options?: DeploymentsWhatIfAtManagementGroupScopeOptionalParams + options?: DeploymentsWhatIfAtManagementGroupScopeOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -1603,21 +1593,20 @@ export class DeploymentsImpl implements Deployments { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -1626,8 +1615,8 @@ export class DeploymentsImpl implements Deployments { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1635,15 +1624,15 @@ export class DeploymentsImpl implements Deployments { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { groupId, deploymentName, parameters, options }, - spec: whatIfAtManagementGroupScopeOperationSpec + spec: whatIfAtManagementGroupScopeOperationSpec, }); const poller = await createHttpPoller< DeploymentsWhatIfAtManagementGroupScopeResponse, @@ -1651,7 +1640,7 @@ export class DeploymentsImpl implements Deployments { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -1669,13 +1658,13 @@ export class DeploymentsImpl implements Deployments { groupId: string, deploymentName: string, parameters: ScopedDeploymentWhatIf, - options?: DeploymentsWhatIfAtManagementGroupScopeOptionalParams + options?: DeploymentsWhatIfAtManagementGroupScopeOptionalParams, ): Promise { const poller = await this.beginWhatIfAtManagementGroupScope( groupId, deploymentName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -1689,11 +1678,11 @@ export class DeploymentsImpl implements Deployments { exportTemplateAtManagementGroupScope( groupId: string, deploymentName: string, - options?: DeploymentsExportTemplateAtManagementGroupScopeOptionalParams + options?: DeploymentsExportTemplateAtManagementGroupScopeOptionalParams, ): Promise { return this.client.sendOperationRequest( { groupId, deploymentName, options }, - exportTemplateAtManagementGroupScopeOperationSpec + exportTemplateAtManagementGroupScopeOperationSpec, ); } @@ -1704,11 +1693,11 @@ export class DeploymentsImpl implements Deployments { */ private _listAtManagementGroupScope( groupId: string, - options?: DeploymentsListAtManagementGroupScopeOptionalParams + options?: DeploymentsListAtManagementGroupScopeOptionalParams, ): Promise { return this.client.sendOperationRequest( { groupId, options }, - listAtManagementGroupScopeOperationSpec + listAtManagementGroupScopeOperationSpec, ); } @@ -1725,25 +1714,24 @@ export class DeploymentsImpl implements Deployments { */ async beginDeleteAtSubscriptionScope( deploymentName: string, - options?: DeploymentsDeleteAtSubscriptionScopeOptionalParams + options?: DeploymentsDeleteAtSubscriptionScopeOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -1752,8 +1740,8 @@ export class DeploymentsImpl implements Deployments { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1761,19 +1749,19 @@ export class DeploymentsImpl implements Deployments { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { deploymentName, options }, - spec: deleteAtSubscriptionScopeOperationSpec + spec: deleteAtSubscriptionScopeOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -1792,11 +1780,11 @@ export class DeploymentsImpl implements Deployments { */ async beginDeleteAtSubscriptionScopeAndWait( deploymentName: string, - options?: DeploymentsDeleteAtSubscriptionScopeOptionalParams + options?: DeploymentsDeleteAtSubscriptionScopeOptionalParams, ): Promise { const poller = await this.beginDeleteAtSubscriptionScope( deploymentName, - options + options, ); return poller.pollUntilDone(); } @@ -1808,11 +1796,11 @@ export class DeploymentsImpl implements Deployments { */ checkExistenceAtSubscriptionScope( deploymentName: string, - options?: DeploymentsCheckExistenceAtSubscriptionScopeOptionalParams + options?: DeploymentsCheckExistenceAtSubscriptionScopeOptionalParams, ): Promise { return this.client.sendOperationRequest( { deploymentName, options }, - checkExistenceAtSubscriptionScopeOperationSpec + checkExistenceAtSubscriptionScopeOperationSpec, ); } @@ -1825,7 +1813,7 @@ export class DeploymentsImpl implements Deployments { async beginCreateOrUpdateAtSubscriptionScope( deploymentName: string, parameters: Deployment, - options?: DeploymentsCreateOrUpdateAtSubscriptionScopeOptionalParams + options?: DeploymentsCreateOrUpdateAtSubscriptionScopeOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -1834,21 +1822,20 @@ export class DeploymentsImpl implements Deployments { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -1857,8 +1844,8 @@ export class DeploymentsImpl implements Deployments { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1866,22 +1853,22 @@ export class DeploymentsImpl implements Deployments { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { deploymentName, parameters, options }, - spec: createOrUpdateAtSubscriptionScopeOperationSpec + spec: createOrUpdateAtSubscriptionScopeOperationSpec, }); const poller = await createHttpPoller< DeploymentsCreateOrUpdateAtSubscriptionScopeResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -1896,12 +1883,12 @@ export class DeploymentsImpl implements Deployments { async beginCreateOrUpdateAtSubscriptionScopeAndWait( deploymentName: string, parameters: Deployment, - options?: DeploymentsCreateOrUpdateAtSubscriptionScopeOptionalParams + options?: DeploymentsCreateOrUpdateAtSubscriptionScopeOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdateAtSubscriptionScope( deploymentName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -1913,11 +1900,11 @@ export class DeploymentsImpl implements Deployments { */ getAtSubscriptionScope( deploymentName: string, - options?: DeploymentsGetAtSubscriptionScopeOptionalParams + options?: DeploymentsGetAtSubscriptionScopeOptionalParams, ): Promise { return this.client.sendOperationRequest( { deploymentName, options }, - getAtSubscriptionScopeOperationSpec + getAtSubscriptionScopeOperationSpec, ); } @@ -1930,11 +1917,11 @@ export class DeploymentsImpl implements Deployments { */ cancelAtSubscriptionScope( deploymentName: string, - options?: DeploymentsCancelAtSubscriptionScopeOptionalParams + options?: DeploymentsCancelAtSubscriptionScopeOptionalParams, ): Promise { return this.client.sendOperationRequest( { deploymentName, options }, - cancelAtSubscriptionScopeOperationSpec + cancelAtSubscriptionScopeOperationSpec, ); } @@ -1948,7 +1935,7 @@ export class DeploymentsImpl implements Deployments { async beginValidateAtSubscriptionScope( deploymentName: string, parameters: Deployment, - options?: DeploymentsValidateAtSubscriptionScopeOptionalParams + options?: DeploymentsValidateAtSubscriptionScopeOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -1957,21 +1944,20 @@ export class DeploymentsImpl implements Deployments { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -1980,8 +1966,8 @@ export class DeploymentsImpl implements Deployments { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1989,22 +1975,22 @@ export class DeploymentsImpl implements Deployments { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { deploymentName, parameters, options }, - spec: validateAtSubscriptionScopeOperationSpec + spec: validateAtSubscriptionScopeOperationSpec, }); const poller = await createHttpPoller< DeploymentsValidateAtSubscriptionScopeResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -2020,12 +2006,12 @@ export class DeploymentsImpl implements Deployments { async beginValidateAtSubscriptionScopeAndWait( deploymentName: string, parameters: Deployment, - options?: DeploymentsValidateAtSubscriptionScopeOptionalParams + options?: DeploymentsValidateAtSubscriptionScopeOptionalParams, ): Promise { const poller = await this.beginValidateAtSubscriptionScope( deploymentName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -2039,7 +2025,7 @@ export class DeploymentsImpl implements Deployments { async beginWhatIfAtSubscriptionScope( deploymentName: string, parameters: DeploymentWhatIf, - options?: DeploymentsWhatIfAtSubscriptionScopeOptionalParams + options?: DeploymentsWhatIfAtSubscriptionScopeOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -2048,21 +2034,20 @@ export class DeploymentsImpl implements Deployments { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -2071,8 +2056,8 @@ export class DeploymentsImpl implements Deployments { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -2080,15 +2065,15 @@ export class DeploymentsImpl implements Deployments { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { deploymentName, parameters, options }, - spec: whatIfAtSubscriptionScopeOperationSpec + spec: whatIfAtSubscriptionScopeOperationSpec, }); const poller = await createHttpPoller< DeploymentsWhatIfAtSubscriptionScopeResponse, @@ -2096,7 +2081,7 @@ export class DeploymentsImpl implements Deployments { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -2111,12 +2096,12 @@ export class DeploymentsImpl implements Deployments { async beginWhatIfAtSubscriptionScopeAndWait( deploymentName: string, parameters: DeploymentWhatIf, - options?: DeploymentsWhatIfAtSubscriptionScopeOptionalParams + options?: DeploymentsWhatIfAtSubscriptionScopeOptionalParams, ): Promise { const poller = await this.beginWhatIfAtSubscriptionScope( deploymentName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -2128,11 +2113,11 @@ export class DeploymentsImpl implements Deployments { */ exportTemplateAtSubscriptionScope( deploymentName: string, - options?: DeploymentsExportTemplateAtSubscriptionScopeOptionalParams + options?: DeploymentsExportTemplateAtSubscriptionScopeOptionalParams, ): Promise { return this.client.sendOperationRequest( { deploymentName, options }, - exportTemplateAtSubscriptionScopeOperationSpec + exportTemplateAtSubscriptionScopeOperationSpec, ); } @@ -2141,11 +2126,11 @@ export class DeploymentsImpl implements Deployments { * @param options The options parameters. */ private _listAtSubscriptionScope( - options?: DeploymentsListAtSubscriptionScopeOptionalParams + options?: DeploymentsListAtSubscriptionScopeOptionalParams, ): Promise { return this.client.sendOperationRequest( { options }, - listAtSubscriptionScopeOperationSpec + listAtSubscriptionScopeOperationSpec, ); } @@ -2166,25 +2151,24 @@ export class DeploymentsImpl implements Deployments { async beginDelete( resourceGroupName: string, deploymentName: string, - options?: DeploymentsDeleteOptionalParams + options?: DeploymentsDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -2193,8 +2177,8 @@ export class DeploymentsImpl implements Deployments { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -2202,19 +2186,19 @@ export class DeploymentsImpl implements Deployments { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, deploymentName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -2237,12 +2221,12 @@ export class DeploymentsImpl implements Deployments { async beginDeleteAndWait( resourceGroupName: string, deploymentName: string, - options?: DeploymentsDeleteOptionalParams + options?: DeploymentsDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, deploymentName, - options + options, ); return poller.pollUntilDone(); } @@ -2257,11 +2241,11 @@ export class DeploymentsImpl implements Deployments { checkExistence( resourceGroupName: string, deploymentName: string, - options?: DeploymentsCheckExistenceOptionalParams + options?: DeploymentsCheckExistenceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, deploymentName, options }, - checkExistenceOperationSpec + checkExistenceOperationSpec, ); } @@ -2277,7 +2261,7 @@ export class DeploymentsImpl implements Deployments { resourceGroupName: string, deploymentName: string, parameters: Deployment, - options?: DeploymentsCreateOrUpdateOptionalParams + options?: DeploymentsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -2286,21 +2270,20 @@ export class DeploymentsImpl implements Deployments { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -2309,8 +2292,8 @@ export class DeploymentsImpl implements Deployments { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -2318,22 +2301,22 @@ export class DeploymentsImpl implements Deployments { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, deploymentName, parameters, options }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< DeploymentsCreateOrUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -2351,13 +2334,13 @@ export class DeploymentsImpl implements Deployments { resourceGroupName: string, deploymentName: string, parameters: Deployment, - options?: DeploymentsCreateOrUpdateOptionalParams + options?: DeploymentsCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, deploymentName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -2371,11 +2354,11 @@ export class DeploymentsImpl implements Deployments { get( resourceGroupName: string, deploymentName: string, - options?: DeploymentsGetOptionalParams + options?: DeploymentsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, deploymentName, options }, - getOperationSpec + getOperationSpec, ); } @@ -2390,11 +2373,11 @@ export class DeploymentsImpl implements Deployments { cancel( resourceGroupName: string, deploymentName: string, - options?: DeploymentsCancelOptionalParams + options?: DeploymentsCancelOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, deploymentName, options }, - cancelOperationSpec + cancelOperationSpec, ); } @@ -2411,7 +2394,7 @@ export class DeploymentsImpl implements Deployments { resourceGroupName: string, deploymentName: string, parameters: Deployment, - options?: DeploymentsValidateOptionalParams + options?: DeploymentsValidateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -2420,21 +2403,20 @@ export class DeploymentsImpl implements Deployments { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -2443,8 +2425,8 @@ export class DeploymentsImpl implements Deployments { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -2452,22 +2434,22 @@ export class DeploymentsImpl implements Deployments { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, deploymentName, parameters, options }, - spec: validateOperationSpec + spec: validateOperationSpec, }); const poller = await createHttpPoller< DeploymentsValidateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -2486,13 +2468,13 @@ export class DeploymentsImpl implements Deployments { resourceGroupName: string, deploymentName: string, parameters: Deployment, - options?: DeploymentsValidateOptionalParams + options?: DeploymentsValidateOptionalParams, ): Promise { const poller = await this.beginValidate( resourceGroupName, deploymentName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -2509,7 +2491,7 @@ export class DeploymentsImpl implements Deployments { resourceGroupName: string, deploymentName: string, parameters: DeploymentWhatIf, - options?: DeploymentsWhatIfOptionalParams + options?: DeploymentsWhatIfOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -2518,21 +2500,20 @@ export class DeploymentsImpl implements Deployments { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -2541,8 +2522,8 @@ export class DeploymentsImpl implements Deployments { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -2550,15 +2531,15 @@ export class DeploymentsImpl implements Deployments { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, deploymentName, parameters, options }, - spec: whatIfOperationSpec + spec: whatIfOperationSpec, }); const poller = await createHttpPoller< DeploymentsWhatIfResponse, @@ -2566,7 +2547,7 @@ export class DeploymentsImpl implements Deployments { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -2584,13 +2565,13 @@ export class DeploymentsImpl implements Deployments { resourceGroupName: string, deploymentName: string, parameters: DeploymentWhatIf, - options?: DeploymentsWhatIfOptionalParams + options?: DeploymentsWhatIfOptionalParams, ): Promise { const poller = await this.beginWhatIf( resourceGroupName, deploymentName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -2604,11 +2585,11 @@ export class DeploymentsImpl implements Deployments { exportTemplate( resourceGroupName: string, deploymentName: string, - options?: DeploymentsExportTemplateOptionalParams + options?: DeploymentsExportTemplateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, deploymentName, options }, - exportTemplateOperationSpec + exportTemplateOperationSpec, ); } @@ -2620,11 +2601,11 @@ export class DeploymentsImpl implements Deployments { */ private _listByResourceGroup( resourceGroupName: string, - options?: DeploymentsListByResourceGroupOptionalParams + options?: DeploymentsListByResourceGroupOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, - listByResourceGroupOperationSpec + listByResourceGroupOperationSpec, ); } @@ -2635,11 +2616,11 @@ export class DeploymentsImpl implements Deployments { */ calculateTemplateHash( template: Record, - options?: DeploymentsCalculateTemplateHashOptionalParams + options?: DeploymentsCalculateTemplateHashOptionalParams, ): Promise { return this.client.sendOperationRequest( { template, options }, - calculateTemplateHashOperationSpec + calculateTemplateHashOperationSpec, ); } @@ -2652,11 +2633,11 @@ export class DeploymentsImpl implements Deployments { private _listAtScopeNext( scope: string, nextLink: string, - options?: DeploymentsListAtScopeNextOptionalParams + options?: DeploymentsListAtScopeNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { scope, nextLink, options }, - listAtScopeNextOperationSpec + listAtScopeNextOperationSpec, ); } @@ -2667,11 +2648,11 @@ export class DeploymentsImpl implements Deployments { */ private _listAtTenantScopeNext( nextLink: string, - options?: DeploymentsListAtTenantScopeNextOptionalParams + options?: DeploymentsListAtTenantScopeNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listAtTenantScopeNextOperationSpec + listAtTenantScopeNextOperationSpec, ); } @@ -2685,11 +2666,11 @@ export class DeploymentsImpl implements Deployments { private _listAtManagementGroupScopeNext( groupId: string, nextLink: string, - options?: DeploymentsListAtManagementGroupScopeNextOptionalParams + options?: DeploymentsListAtManagementGroupScopeNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { groupId, nextLink, options }, - listAtManagementGroupScopeNextOperationSpec + listAtManagementGroupScopeNextOperationSpec, ); } @@ -2701,11 +2682,11 @@ export class DeploymentsImpl implements Deployments { */ private _listAtSubscriptionScopeNext( nextLink: string, - options?: DeploymentsListAtSubscriptionScopeNextOptionalParams + options?: DeploymentsListAtSubscriptionScopeNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listAtSubscriptionScopeNextOperationSpec + listAtSubscriptionScopeNextOperationSpec, ); } @@ -2719,11 +2700,11 @@ export class DeploymentsImpl implements Deployments { private _listByResourceGroupNext( resourceGroupName: string, nextLink: string, - options?: DeploymentsListByResourceGroupNextOptionalParams + options?: DeploymentsListByResourceGroupNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, nextLink, options }, - listByResourceGroupNextOperationSpec + listByResourceGroupNextOperationSpec, ); } } @@ -2739,17 +2720,17 @@ const deleteAtScopeOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.scope, - Parameters.deploymentName + Parameters.deploymentName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const checkExistenceAtScopeOperationSpec: coreClient.OperationSpec = { path: "/{scope}/providers/Microsoft.Resources/deployments/{deploymentName}", @@ -2758,156 +2739,153 @@ const checkExistenceAtScopeOperationSpec: coreClient.OperationSpec = { 204: {}, 404: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.scope, - Parameters.deploymentName + Parameters.deploymentName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateAtScopeOperationSpec: coreClient.OperationSpec = { path: "/{scope}/providers/Microsoft.Resources/deployments/{deploymentName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.DeploymentExtended + bodyMapper: Mappers.DeploymentExtended, }, 201: { - bodyMapper: Mappers.DeploymentExtended + bodyMapper: Mappers.DeploymentExtended, }, 202: { - bodyMapper: Mappers.DeploymentExtended + bodyMapper: Mappers.DeploymentExtended, }, 204: { - bodyMapper: Mappers.DeploymentExtended + bodyMapper: Mappers.DeploymentExtended, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.scope, - Parameters.deploymentName + Parameters.deploymentName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const getAtScopeOperationSpec: coreClient.OperationSpec = { path: "/{scope}/providers/Microsoft.Resources/deployments/{deploymentName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DeploymentExtended + bodyMapper: Mappers.DeploymentExtended, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.scope, - Parameters.deploymentName + Parameters.deploymentName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const cancelAtScopeOperationSpec: coreClient.OperationSpec = { - path: - "/{scope}/providers/Microsoft.Resources/deployments/{deploymentName}/cancel", + path: "/{scope}/providers/Microsoft.Resources/deployments/{deploymentName}/cancel", httpMethod: "POST", responses: { 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.scope, - Parameters.deploymentName + Parameters.deploymentName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const validateAtScopeOperationSpec: coreClient.OperationSpec = { - path: - "/{scope}/providers/Microsoft.Resources/deployments/{deploymentName}/validate", + path: "/{scope}/providers/Microsoft.Resources/deployments/{deploymentName}/validate", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.DeploymentValidateResult + bodyMapper: Mappers.DeploymentValidateResult, }, 201: { - bodyMapper: Mappers.DeploymentValidateResult + bodyMapper: Mappers.DeploymentValidateResult, }, 202: { - bodyMapper: Mappers.DeploymentValidateResult + bodyMapper: Mappers.DeploymentValidateResult, }, 204: { - bodyMapper: Mappers.DeploymentValidateResult + bodyMapper: Mappers.DeploymentValidateResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.scope, - Parameters.deploymentName + Parameters.deploymentName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const exportTemplateAtScopeOperationSpec: coreClient.OperationSpec = { - path: - "/{scope}/providers/Microsoft.Resources/deployments/{deploymentName}/exportTemplate", + path: "/{scope}/providers/Microsoft.Resources/deployments/{deploymentName}/exportTemplate", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.DeploymentExportResult + bodyMapper: Mappers.DeploymentExportResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.scope, - Parameters.deploymentName + Parameters.deploymentName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listAtScopeOperationSpec: coreClient.OperationSpec = { path: "/{scope}/providers/Microsoft.Resources/deployments/", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DeploymentListResult + bodyMapper: Mappers.DeploymentListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.top], urlParameters: [Parameters.$host, Parameters.scope], headerParameters: [Parameters.accept], - serializer + serializer, }; const deleteAtTenantScopeOperationSpec: coreClient.OperationSpec = { path: "/providers/Microsoft.Resources/deployments/{deploymentName}", @@ -2918,13 +2896,13 @@ const deleteAtTenantScopeOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.deploymentName], headerParameters: [Parameters.accept], - serializer + serializer, }; const checkExistenceAtTenantScopeOperationSpec: coreClient.OperationSpec = { path: "/providers/Microsoft.Resources/deployments/{deploymentName}", @@ -2933,56 +2911,56 @@ const checkExistenceAtTenantScopeOperationSpec: coreClient.OperationSpec = { 204: {}, 404: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.deploymentName], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateAtTenantScopeOperationSpec: coreClient.OperationSpec = { path: "/providers/Microsoft.Resources/deployments/{deploymentName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.DeploymentExtended + bodyMapper: Mappers.DeploymentExtended, }, 201: { - bodyMapper: Mappers.DeploymentExtended + bodyMapper: Mappers.DeploymentExtended, }, 202: { - bodyMapper: Mappers.DeploymentExtended + bodyMapper: Mappers.DeploymentExtended, }, 204: { - bodyMapper: Mappers.DeploymentExtended + bodyMapper: Mappers.DeploymentExtended, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters1, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.deploymentName], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const getAtTenantScopeOperationSpec: coreClient.OperationSpec = { path: "/providers/Microsoft.Resources/deployments/{deploymentName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DeploymentExtended + bodyMapper: Mappers.DeploymentExtended, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.deploymentName], headerParameters: [Parameters.accept], - serializer + serializer, }; const cancelAtTenantScopeOperationSpec: coreClient.OperationSpec = { path: "/providers/Microsoft.Resources/deployments/{deploymentName}/cancel", @@ -2990,104 +2968,102 @@ const cancelAtTenantScopeOperationSpec: coreClient.OperationSpec = { responses: { 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.deploymentName], headerParameters: [Parameters.accept], - serializer + serializer, }; const validateAtTenantScopeOperationSpec: coreClient.OperationSpec = { path: "/providers/Microsoft.Resources/deployments/{deploymentName}/validate", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.DeploymentValidateResult + bodyMapper: Mappers.DeploymentValidateResult, }, 201: { - bodyMapper: Mappers.DeploymentValidateResult + bodyMapper: Mappers.DeploymentValidateResult, }, 202: { - bodyMapper: Mappers.DeploymentValidateResult + bodyMapper: Mappers.DeploymentValidateResult, }, 204: { - bodyMapper: Mappers.DeploymentValidateResult + bodyMapper: Mappers.DeploymentValidateResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters1, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.deploymentName], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const whatIfAtTenantScopeOperationSpec: coreClient.OperationSpec = { path: "/providers/Microsoft.Resources/deployments/{deploymentName}/whatIf", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.WhatIfOperationResult + bodyMapper: Mappers.WhatIfOperationResult, }, 201: { - bodyMapper: Mappers.WhatIfOperationResult + bodyMapper: Mappers.WhatIfOperationResult, }, 202: { - bodyMapper: Mappers.WhatIfOperationResult + bodyMapper: Mappers.WhatIfOperationResult, }, 204: { - bodyMapper: Mappers.WhatIfOperationResult + bodyMapper: Mappers.WhatIfOperationResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters2, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.deploymentName], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const exportTemplateAtTenantScopeOperationSpec: coreClient.OperationSpec = { - path: - "/providers/Microsoft.Resources/deployments/{deploymentName}/exportTemplate", + path: "/providers/Microsoft.Resources/deployments/{deploymentName}/exportTemplate", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.DeploymentExportResult + bodyMapper: Mappers.DeploymentExportResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.deploymentName], headerParameters: [Parameters.accept], - serializer + serializer, }; const listAtTenantScopeOperationSpec: coreClient.OperationSpec = { path: "/providers/Microsoft.Resources/deployments/", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DeploymentListResult + bodyMapper: Mappers.DeploymentListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.top], urlParameters: [Parameters.$host], headerParameters: [Parameters.accept], - serializer + serializer, }; const deleteAtManagementGroupScopeOperationSpec: coreClient.OperationSpec = { - path: - "/providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}", + path: "/providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}", httpMethod: "DELETE", responses: { 200: {}, @@ -3095,215 +3071,209 @@ const deleteAtManagementGroupScopeOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.deploymentName, - Parameters.groupId - ], - headerParameters: [Parameters.accept], - serializer -}; -const checkExistenceAtManagementGroupScopeOperationSpec: coreClient.OperationSpec = { - path: - "/providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}", - httpMethod: "HEAD", - responses: { - 204: {}, - 404: {}, - default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.deploymentName, - Parameters.groupId + Parameters.groupId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; -const createOrUpdateAtManagementGroupScopeOperationSpec: coreClient.OperationSpec = { - path: - "/providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}", - httpMethod: "PUT", - responses: { - 200: { - bodyMapper: Mappers.DeploymentExtended - }, - 201: { - bodyMapper: Mappers.DeploymentExtended - }, - 202: { - bodyMapper: Mappers.DeploymentExtended +const checkExistenceAtManagementGroupScopeOperationSpec: coreClient.OperationSpec = + { + path: "/providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}", + httpMethod: "HEAD", + responses: { + 204: {}, + 404: {}, + default: { + bodyMapper: Mappers.CloudError, + }, }, - 204: { - bodyMapper: Mappers.DeploymentExtended + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.deploymentName, + Parameters.groupId, + ], + headerParameters: [Parameters.accept], + serializer, + }; +const createOrUpdateAtManagementGroupScopeOperationSpec: coreClient.OperationSpec = + { + path: "/providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.DeploymentExtended, + }, + 201: { + bodyMapper: Mappers.DeploymentExtended, + }, + 202: { + bodyMapper: Mappers.DeploymentExtended, + }, + 204: { + bodyMapper: Mappers.DeploymentExtended, + }, + default: { + bodyMapper: Mappers.CloudError, + }, }, - default: { - bodyMapper: Mappers.CloudError - } - }, - requestBody: Parameters.parameters1, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.deploymentName, - Parameters.groupId - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer -}; + requestBody: Parameters.parameters1, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.deploymentName, + Parameters.groupId, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, + }; const getAtManagementGroupScopeOperationSpec: coreClient.OperationSpec = { - path: - "/providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}", + path: "/providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DeploymentExtended + bodyMapper: Mappers.DeploymentExtended, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.deploymentName, - Parameters.groupId + Parameters.groupId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const cancelAtManagementGroupScopeOperationSpec: coreClient.OperationSpec = { - path: - "/providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}/cancel", + path: "/providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}/cancel", httpMethod: "POST", responses: { 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.deploymentName, - Parameters.groupId + Parameters.groupId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const validateAtManagementGroupScopeOperationSpec: coreClient.OperationSpec = { - path: - "/providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}/validate", + path: "/providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}/validate", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.DeploymentValidateResult + bodyMapper: Mappers.DeploymentValidateResult, }, 201: { - bodyMapper: Mappers.DeploymentValidateResult + bodyMapper: Mappers.DeploymentValidateResult, }, 202: { - bodyMapper: Mappers.DeploymentValidateResult + bodyMapper: Mappers.DeploymentValidateResult, }, 204: { - bodyMapper: Mappers.DeploymentValidateResult + bodyMapper: Mappers.DeploymentValidateResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters1, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.deploymentName, - Parameters.groupId + Parameters.groupId, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const whatIfAtManagementGroupScopeOperationSpec: coreClient.OperationSpec = { - path: - "/providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}/whatIf", + path: "/providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}/whatIf", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.WhatIfOperationResult + bodyMapper: Mappers.WhatIfOperationResult, }, 201: { - bodyMapper: Mappers.WhatIfOperationResult + bodyMapper: Mappers.WhatIfOperationResult, }, 202: { - bodyMapper: Mappers.WhatIfOperationResult + bodyMapper: Mappers.WhatIfOperationResult, }, 204: { - bodyMapper: Mappers.WhatIfOperationResult + bodyMapper: Mappers.WhatIfOperationResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters2, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.deploymentName, - Parameters.groupId + Parameters.groupId, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; -const exportTemplateAtManagementGroupScopeOperationSpec: coreClient.OperationSpec = { - path: - "/providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}/exportTemplate", - httpMethod: "POST", - responses: { - 200: { - bodyMapper: Mappers.DeploymentExportResult +const exportTemplateAtManagementGroupScopeOperationSpec: coreClient.OperationSpec = + { + path: "/providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}/exportTemplate", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.DeploymentExportResult, + }, + default: { + bodyMapper: Mappers.CloudError, + }, }, - default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.deploymentName, - Parameters.groupId - ], - headerParameters: [Parameters.accept], - serializer -}; + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.deploymentName, + Parameters.groupId, + ], + headerParameters: [Parameters.accept], + serializer, + }; const listAtManagementGroupScopeOperationSpec: coreClient.OperationSpec = { - path: - "/providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/", + path: "/providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DeploymentListResult + bodyMapper: Mappers.DeploymentListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.top], urlParameters: [Parameters.$host, Parameters.groupId], headerParameters: [Parameters.accept], - serializer + serializer, }; const deleteAtSubscriptionScopeOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}", httpMethod: "DELETE", responses: { 200: {}, @@ -3311,215 +3281,209 @@ const deleteAtSubscriptionScopeOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.deploymentName, - Parameters.subscriptionId - ], - headerParameters: [Parameters.accept], - serializer -}; -const checkExistenceAtSubscriptionScopeOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}", - httpMethod: "HEAD", - responses: { - 204: {}, - 404: {}, - default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.deploymentName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; -const createOrUpdateAtSubscriptionScopeOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}", - httpMethod: "PUT", - responses: { - 200: { - bodyMapper: Mappers.DeploymentExtended - }, - 201: { - bodyMapper: Mappers.DeploymentExtended - }, - 202: { - bodyMapper: Mappers.DeploymentExtended +const checkExistenceAtSubscriptionScopeOperationSpec: coreClient.OperationSpec = + { + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}", + httpMethod: "HEAD", + responses: { + 204: {}, + 404: {}, + default: { + bodyMapper: Mappers.CloudError, + }, }, - 204: { - bodyMapper: Mappers.DeploymentExtended + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.deploymentName, + Parameters.subscriptionId, + ], + headerParameters: [Parameters.accept], + serializer, + }; +const createOrUpdateAtSubscriptionScopeOperationSpec: coreClient.OperationSpec = + { + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.DeploymentExtended, + }, + 201: { + bodyMapper: Mappers.DeploymentExtended, + }, + 202: { + bodyMapper: Mappers.DeploymentExtended, + }, + 204: { + bodyMapper: Mappers.DeploymentExtended, + }, + default: { + bodyMapper: Mappers.CloudError, + }, }, - default: { - bodyMapper: Mappers.CloudError - } - }, - requestBody: Parameters.parameters, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.deploymentName, - Parameters.subscriptionId - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer -}; + requestBody: Parameters.parameters, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.deploymentName, + Parameters.subscriptionId, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, + }; const getAtSubscriptionScopeOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DeploymentExtended + bodyMapper: Mappers.DeploymentExtended, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.deploymentName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const cancelAtSubscriptionScopeOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}/cancel", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}/cancel", httpMethod: "POST", responses: { 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.deploymentName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const validateAtSubscriptionScopeOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}/validate", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}/validate", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.DeploymentValidateResult + bodyMapper: Mappers.DeploymentValidateResult, }, 201: { - bodyMapper: Mappers.DeploymentValidateResult + bodyMapper: Mappers.DeploymentValidateResult, }, 202: { - bodyMapper: Mappers.DeploymentValidateResult + bodyMapper: Mappers.DeploymentValidateResult, }, 204: { - bodyMapper: Mappers.DeploymentValidateResult + bodyMapper: Mappers.DeploymentValidateResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.deploymentName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const whatIfAtSubscriptionScopeOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}/whatIf", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}/whatIf", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.WhatIfOperationResult + bodyMapper: Mappers.WhatIfOperationResult, }, 201: { - bodyMapper: Mappers.WhatIfOperationResult + bodyMapper: Mappers.WhatIfOperationResult, }, 202: { - bodyMapper: Mappers.WhatIfOperationResult + bodyMapper: Mappers.WhatIfOperationResult, }, 204: { - bodyMapper: Mappers.WhatIfOperationResult + bodyMapper: Mappers.WhatIfOperationResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters3, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.deploymentName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; -const exportTemplateAtSubscriptionScopeOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}/exportTemplate", - httpMethod: "POST", - responses: { - 200: { - bodyMapper: Mappers.DeploymentExportResult +const exportTemplateAtSubscriptionScopeOperationSpec: coreClient.OperationSpec = + { + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}/exportTemplate", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.DeploymentExportResult, + }, + default: { + bodyMapper: Mappers.CloudError, + }, }, - default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.deploymentName, - Parameters.subscriptionId - ], - headerParameters: [Parameters.accept], - serializer -}; + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.deploymentName, + Parameters.subscriptionId, + ], + headerParameters: [Parameters.accept], + serializer, + }; const listAtSubscriptionScopeOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DeploymentListResult + bodyMapper: Mappers.DeploymentListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.top], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}", + path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}", httpMethod: "DELETE", responses: { 200: {}, @@ -3527,60 +3491,58 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.deploymentName, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const checkExistenceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}", + path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}", httpMethod: "HEAD", responses: { 204: {}, 404: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.deploymentName, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}", + path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.DeploymentExtended + bodyMapper: Mappers.DeploymentExtended, }, 201: { - bodyMapper: Mappers.DeploymentExtended + bodyMapper: Mappers.DeploymentExtended, }, 202: { - bodyMapper: Mappers.DeploymentExtended + bodyMapper: Mappers.DeploymentExtended, }, 204: { - bodyMapper: Mappers.DeploymentExtended + bodyMapper: Mappers.DeploymentExtended, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters, queryParameters: [Parameters.apiVersion], @@ -3588,74 +3550,71 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.deploymentName, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}", + path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DeploymentExtended + bodyMapper: Mappers.DeploymentExtended, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.deploymentName, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const cancelOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}/cancel", + path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}/cancel", httpMethod: "POST", responses: { 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.deploymentName, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const validateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}/validate", + path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}/validate", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.DeploymentValidateResult + bodyMapper: Mappers.DeploymentValidateResult, }, 201: { - bodyMapper: Mappers.DeploymentValidateResult + bodyMapper: Mappers.DeploymentValidateResult, }, 202: { - bodyMapper: Mappers.DeploymentValidateResult + bodyMapper: Mappers.DeploymentValidateResult, }, 204: { - bodyMapper: Mappers.DeploymentValidateResult + bodyMapper: Mappers.DeploymentValidateResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters, queryParameters: [Parameters.apiVersion], @@ -3663,32 +3622,31 @@ const validateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.deploymentName, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const whatIfOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}/whatIf", + path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}/whatIf", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.WhatIfOperationResult + bodyMapper: Mappers.WhatIfOperationResult, }, 201: { - bodyMapper: Mappers.WhatIfOperationResult + bodyMapper: Mappers.WhatIfOperationResult, }, 202: { - bodyMapper: Mappers.WhatIfOperationResult + bodyMapper: Mappers.WhatIfOperationResult, }, 204: { - bodyMapper: Mappers.WhatIfOperationResult + bodyMapper: Mappers.WhatIfOperationResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters3, queryParameters: [Parameters.apiVersion], @@ -3696,154 +3654,152 @@ const whatIfOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.deploymentName, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const exportTemplateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}/exportTemplate", + path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}/exportTemplate", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.DeploymentExportResult + bodyMapper: Mappers.DeploymentExportResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.deploymentName, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/", + path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DeploymentListResult + bodyMapper: Mappers.DeploymentListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.top], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const calculateTemplateHashOperationSpec: coreClient.OperationSpec = { path: "/providers/Microsoft.Resources/calculateTemplateHash", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.TemplateHashResult + bodyMapper: Mappers.TemplateHashResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.template, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listAtScopeNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DeploymentListResult + bodyMapper: Mappers.DeploymentListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [Parameters.$host, Parameters.nextLink, Parameters.scope], headerParameters: [Parameters.accept], - serializer + serializer, }; const listAtTenantScopeNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DeploymentListResult + bodyMapper: Mappers.DeploymentListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [Parameters.$host, Parameters.nextLink], headerParameters: [Parameters.accept], - serializer + serializer, }; const listAtManagementGroupScopeNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DeploymentListResult + bodyMapper: Mappers.DeploymentListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [Parameters.$host, Parameters.nextLink, Parameters.groupId], headerParameters: [Parameters.accept], - serializer + serializer, }; const listAtSubscriptionScopeNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DeploymentListResult + bodyMapper: Mappers.DeploymentListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.nextLink, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DeploymentListResult + bodyMapper: Mappers.DeploymentListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.nextLink, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/resources/arm-resources/src/operations/operations.ts b/sdk/resources/arm-resources/src/operations/operations.ts index e218ad6bc0b61..9d870ab061e53 100644 --- a/sdk/resources/arm-resources/src/operations/operations.ts +++ b/sdk/resources/arm-resources/src/operations/operations.ts @@ -18,7 +18,7 @@ import { OperationsListNextOptionalParams, OperationsListOptionalParams, OperationsListResponse, - OperationsListNextResponse + OperationsListNextResponse, } from "../models"; /// @@ -39,7 +39,7 @@ export class OperationsImpl implements Operations { * @param options The options parameters. */ public list( - options?: OperationsListOptionalParams + options?: OperationsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(options); return { @@ -54,13 +54,13 @@ export class OperationsImpl implements Operations { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(options, settings); - } + }, }; } private async *listPagingPage( options?: OperationsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: OperationsListResponse; let continuationToken = settings?.continuationToken; @@ -81,7 +81,7 @@ export class OperationsImpl implements Operations { } private async *listPagingAll( - options?: OperationsListOptionalParams + options?: OperationsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(options)) { yield* page; @@ -93,7 +93,7 @@ export class OperationsImpl implements Operations { * @param options The options parameters. */ private _list( - options?: OperationsListOptionalParams + options?: OperationsListOptionalParams, ): Promise { return this.client.sendOperationRequest({ options }, listOperationSpec); } @@ -105,11 +105,11 @@ export class OperationsImpl implements Operations { */ private _listNext( nextLink: string, - options?: OperationsListNextOptionalParams + options?: OperationsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -121,29 +121,29 @@ const listOperationSpec: coreClient.OperationSpec = { httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.OperationListResult + bodyMapper: Mappers.OperationListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.OperationListResult + bodyMapper: Mappers.OperationListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [Parameters.$host, Parameters.nextLink], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/resources/arm-resources/src/operations/providerResourceTypes.ts b/sdk/resources/arm-resources/src/operations/providerResourceTypes.ts index 4384a10c5ae47..6faf65f7c9838 100644 --- a/sdk/resources/arm-resources/src/operations/providerResourceTypes.ts +++ b/sdk/resources/arm-resources/src/operations/providerResourceTypes.ts @@ -13,7 +13,7 @@ import * as Parameters from "../models/parameters"; import { ResourceManagementClient } from "../resourceManagementClient"; import { ProviderResourceTypesListOptionalParams, - ProviderResourceTypesListResponse + ProviderResourceTypesListResponse, } from "../models"; /** Class containing ProviderResourceTypes operations. */ @@ -35,11 +35,11 @@ export class ProviderResourceTypesImpl implements ProviderResourceTypes { */ list( resourceProviderNamespace: string, - options?: ProviderResourceTypesListOptionalParams + options?: ProviderResourceTypesListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceProviderNamespace, options }, - listOperationSpec + listOperationSpec, ); } } @@ -47,23 +47,22 @@ export class ProviderResourceTypesImpl implements ProviderResourceTypes { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/{resourceProviderNamespace}/resourceTypes", + path: "/subscriptions/{subscriptionId}/providers/{resourceProviderNamespace}/resourceTypes", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ProviderResourceTypeListResult + bodyMapper: Mappers.ProviderResourceTypeListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion, Parameters.expand], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceProviderNamespace + Parameters.resourceProviderNamespace, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/resources/arm-resources/src/operations/providers.ts b/sdk/resources/arm-resources/src/operations/providers.ts index 3d1d40950154e..6f146c8404bc4 100644 --- a/sdk/resources/arm-resources/src/operations/providers.ts +++ b/sdk/resources/arm-resources/src/operations/providers.ts @@ -33,7 +33,7 @@ import { ProvidersGetAtTenantScopeOptionalParams, ProvidersGetAtTenantScopeResponse, ProvidersListNextResponse, - ProvidersListAtTenantScopeNextResponse + ProvidersListAtTenantScopeNextResponse, } from "../models"; /// @@ -54,7 +54,7 @@ export class ProvidersImpl implements Providers { * @param options The options parameters. */ public list( - options?: ProvidersListOptionalParams + options?: ProvidersListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(options); return { @@ -69,13 +69,13 @@ export class ProvidersImpl implements Providers { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(options, settings); - } + }, }; } private async *listPagingPage( options?: ProvidersListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ProvidersListResponse; let continuationToken = settings?.continuationToken; @@ -96,7 +96,7 @@ export class ProvidersImpl implements Providers { } private async *listPagingAll( - options?: ProvidersListOptionalParams + options?: ProvidersListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(options)) { yield* page; @@ -108,7 +108,7 @@ export class ProvidersImpl implements Providers { * @param options The options parameters. */ public listAtTenantScope( - options?: ProvidersListAtTenantScopeOptionalParams + options?: ProvidersListAtTenantScopeOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listAtTenantScopePagingAll(options); return { @@ -123,13 +123,13 @@ export class ProvidersImpl implements Providers { throw new Error("maxPageSize is not supported by this operation."); } return this.listAtTenantScopePagingPage(options, settings); - } + }, }; } private async *listAtTenantScopePagingPage( options?: ProvidersListAtTenantScopeOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ProvidersListAtTenantScopeResponse; let continuationToken = settings?.continuationToken; @@ -150,7 +150,7 @@ export class ProvidersImpl implements Providers { } private async *listAtTenantScopePagingAll( - options?: ProvidersListAtTenantScopeOptionalParams + options?: ProvidersListAtTenantScopeOptionalParams, ): AsyncIterableIterator { for await (const page of this.listAtTenantScopePagingPage(options)) { yield* page; @@ -164,16 +164,19 @@ export class ProvidersImpl implements Providers { */ unregister( resourceProviderNamespace: string, - options?: ProvidersUnregisterOptionalParams + options?: ProvidersUnregisterOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceProviderNamespace, options }, - unregisterOperationSpec + unregisterOperationSpec, ); } /** - * Registers a management group with a resource provider. + * Registers a management group with a resource provider. Use this operation to register a resource + * provider with resource types that can be deployed at the management group scope. It does not + * recursively register subscriptions within the management group. Instead, you must register + * subscriptions individually. * @param resourceProviderNamespace The namespace of the resource provider to register. * @param groupId The management group ID. * @param options The options parameters. @@ -181,11 +184,11 @@ export class ProvidersImpl implements Providers { registerAtManagementGroupScope( resourceProviderNamespace: string, groupId: string, - options?: ProvidersRegisterAtManagementGroupScopeOptionalParams + options?: ProvidersRegisterAtManagementGroupScopeOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceProviderNamespace, groupId, options }, - registerAtManagementGroupScopeOperationSpec + registerAtManagementGroupScopeOperationSpec, ); } @@ -196,11 +199,11 @@ export class ProvidersImpl implements Providers { */ providerPermissions( resourceProviderNamespace: string, - options?: ProvidersProviderPermissionsOptionalParams + options?: ProvidersProviderPermissionsOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceProviderNamespace, options }, - providerPermissionsOperationSpec + providerPermissionsOperationSpec, ); } @@ -211,11 +214,11 @@ export class ProvidersImpl implements Providers { */ register( resourceProviderNamespace: string, - options?: ProvidersRegisterOptionalParams + options?: ProvidersRegisterOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceProviderNamespace, options }, - registerOperationSpec + registerOperationSpec, ); } @@ -224,7 +227,7 @@ export class ProvidersImpl implements Providers { * @param options The options parameters. */ private _list( - options?: ProvidersListOptionalParams + options?: ProvidersListOptionalParams, ): Promise { return this.client.sendOperationRequest({ options }, listOperationSpec); } @@ -234,11 +237,11 @@ export class ProvidersImpl implements Providers { * @param options The options parameters. */ private _listAtTenantScope( - options?: ProvidersListAtTenantScopeOptionalParams + options?: ProvidersListAtTenantScopeOptionalParams, ): Promise { return this.client.sendOperationRequest( { options }, - listAtTenantScopeOperationSpec + listAtTenantScopeOperationSpec, ); } @@ -249,11 +252,11 @@ export class ProvidersImpl implements Providers { */ get( resourceProviderNamespace: string, - options?: ProvidersGetOptionalParams + options?: ProvidersGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceProviderNamespace, options }, - getOperationSpec + getOperationSpec, ); } @@ -264,11 +267,11 @@ export class ProvidersImpl implements Providers { */ getAtTenantScope( resourceProviderNamespace: string, - options?: ProvidersGetAtTenantScopeOptionalParams + options?: ProvidersGetAtTenantScopeOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceProviderNamespace, options }, - getAtTenantScopeOperationSpec + getAtTenantScopeOperationSpec, ); } @@ -279,11 +282,11 @@ export class ProvidersImpl implements Providers { */ private _listNext( nextLink: string, - options?: ProvidersListNextOptionalParams + options?: ProvidersListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } @@ -294,11 +297,11 @@ export class ProvidersImpl implements Providers { */ private _listAtTenantScopeNext( nextLink: string, - options?: ProvidersListAtTenantScopeNextOptionalParams + options?: ProvidersListAtTenantScopeNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listAtTenantScopeNextOperationSpec + listAtTenantScopeNextOperationSpec, ); } } @@ -306,188 +309,184 @@ export class ProvidersImpl implements Providers { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const unregisterOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/{resourceProviderNamespace}/unregister", + path: "/subscriptions/{subscriptionId}/providers/{resourceProviderNamespace}/unregister", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.Provider + bodyMapper: Mappers.Provider, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceProviderNamespace + Parameters.resourceProviderNamespace, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const registerAtManagementGroupScopeOperationSpec: coreClient.OperationSpec = { - path: - "/providers/Microsoft.Management/managementGroups/{groupId}/providers/{resourceProviderNamespace}/register", + path: "/providers/Microsoft.Management/managementGroups/{groupId}/providers/{resourceProviderNamespace}/register", httpMethod: "POST", responses: { 200: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.groupId, - Parameters.resourceProviderNamespace + Parameters.resourceProviderNamespace, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const providerPermissionsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/{resourceProviderNamespace}/providerPermissions", + path: "/subscriptions/{subscriptionId}/providers/{resourceProviderNamespace}/providerPermissions", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ProviderPermissionListResult + bodyMapper: Mappers.ProviderPermissionListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceProviderNamespace + Parameters.resourceProviderNamespace, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const registerOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/{resourceProviderNamespace}/register", + path: "/subscriptions/{subscriptionId}/providers/{resourceProviderNamespace}/register", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.Provider + bodyMapper: Mappers.Provider, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.properties, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceProviderNamespace + Parameters.resourceProviderNamespace, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/providers", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ProviderListResult + bodyMapper: Mappers.ProviderListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion, Parameters.expand], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const listAtTenantScopeOperationSpec: coreClient.OperationSpec = { path: "/providers", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ProviderListResult + bodyMapper: Mappers.ProviderListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion, Parameters.expand], urlParameters: [Parameters.$host], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/providers/{resourceProviderNamespace}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.Provider + bodyMapper: Mappers.Provider, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion, Parameters.expand], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceProviderNamespace + Parameters.resourceProviderNamespace, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getAtTenantScopeOperationSpec: coreClient.OperationSpec = { path: "/providers/{resourceProviderNamespace}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.Provider + bodyMapper: Mappers.Provider, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion, Parameters.expand], urlParameters: [Parameters.$host, Parameters.resourceProviderNamespace], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ProviderListResult + bodyMapper: Mappers.ProviderListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.nextLink, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listAtTenantScopeNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ProviderListResult + bodyMapper: Mappers.ProviderListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [Parameters.$host, Parameters.nextLink], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/resources/arm-resources/src/operations/resourceGroups.ts b/sdk/resources/arm-resources/src/operations/resourceGroups.ts index 4550f443c26da..b987724988b02 100644 --- a/sdk/resources/arm-resources/src/operations/resourceGroups.ts +++ b/sdk/resources/arm-resources/src/operations/resourceGroups.ts @@ -16,7 +16,7 @@ import { ResourceManagementClient } from "../resourceManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -37,7 +37,7 @@ import { ExportTemplateRequest, ResourceGroupsExportTemplateOptionalParams, ResourceGroupsExportTemplateResponse, - ResourceGroupsListNextResponse + ResourceGroupsListNextResponse, } from "../models"; /// @@ -58,7 +58,7 @@ export class ResourceGroupsImpl implements ResourceGroups { * @param options The options parameters. */ public list( - options?: ResourceGroupsListOptionalParams + options?: ResourceGroupsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(options); return { @@ -73,13 +73,13 @@ export class ResourceGroupsImpl implements ResourceGroups { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(options, settings); - } + }, }; } private async *listPagingPage( options?: ResourceGroupsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ResourceGroupsListResponse; let continuationToken = settings?.continuationToken; @@ -100,7 +100,7 @@ export class ResourceGroupsImpl implements ResourceGroups { } private async *listPagingAll( - options?: ResourceGroupsListOptionalParams + options?: ResourceGroupsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(options)) { yield* page; @@ -114,11 +114,11 @@ export class ResourceGroupsImpl implements ResourceGroups { */ checkExistence( resourceGroupName: string, - options?: ResourceGroupsCheckExistenceOptionalParams + options?: ResourceGroupsCheckExistenceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, - checkExistenceOperationSpec + checkExistenceOperationSpec, ); } @@ -133,11 +133,11 @@ export class ResourceGroupsImpl implements ResourceGroups { createOrUpdate( resourceGroupName: string, parameters: ResourceGroup, - options?: ResourceGroupsCreateOrUpdateOptionalParams + options?: ResourceGroupsCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, parameters, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -149,25 +149,24 @@ export class ResourceGroupsImpl implements ResourceGroups { */ async beginDelete( resourceGroupName: string, - options?: ResourceGroupsDeleteOptionalParams + options?: ResourceGroupsDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -176,8 +175,8 @@ export class ResourceGroupsImpl implements ResourceGroups { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -185,19 +184,19 @@ export class ResourceGroupsImpl implements ResourceGroups { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -211,7 +210,7 @@ export class ResourceGroupsImpl implements ResourceGroups { */ async beginDeleteAndWait( resourceGroupName: string, - options?: ResourceGroupsDeleteOptionalParams + options?: ResourceGroupsDeleteOptionalParams, ): Promise { const poller = await this.beginDelete(resourceGroupName, options); return poller.pollUntilDone(); @@ -224,11 +223,11 @@ export class ResourceGroupsImpl implements ResourceGroups { */ get( resourceGroupName: string, - options?: ResourceGroupsGetOptionalParams + options?: ResourceGroupsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, - getOperationSpec + getOperationSpec, ); } @@ -243,11 +242,11 @@ export class ResourceGroupsImpl implements ResourceGroups { update( resourceGroupName: string, parameters: ResourceGroupPatchable, - options?: ResourceGroupsUpdateOptionalParams + options?: ResourceGroupsUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, parameters, options }, - updateOperationSpec + updateOperationSpec, ); } @@ -260,7 +259,7 @@ export class ResourceGroupsImpl implements ResourceGroups { async beginExportTemplate( resourceGroupName: string, parameters: ExportTemplateRequest, - options?: ResourceGroupsExportTemplateOptionalParams + options?: ResourceGroupsExportTemplateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -269,21 +268,20 @@ export class ResourceGroupsImpl implements ResourceGroups { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -292,8 +290,8 @@ export class ResourceGroupsImpl implements ResourceGroups { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -301,15 +299,15 @@ export class ResourceGroupsImpl implements ResourceGroups { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, parameters, options }, - spec: exportTemplateOperationSpec + spec: exportTemplateOperationSpec, }); const poller = await createHttpPoller< ResourceGroupsExportTemplateResponse, @@ -317,7 +315,7 @@ export class ResourceGroupsImpl implements ResourceGroups { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -332,12 +330,12 @@ export class ResourceGroupsImpl implements ResourceGroups { async beginExportTemplateAndWait( resourceGroupName: string, parameters: ExportTemplateRequest, - options?: ResourceGroupsExportTemplateOptionalParams + options?: ResourceGroupsExportTemplateOptionalParams, ): Promise { const poller = await this.beginExportTemplate( resourceGroupName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -347,7 +345,7 @@ export class ResourceGroupsImpl implements ResourceGroups { * @param options The options parameters. */ private _list( - options?: ResourceGroupsListOptionalParams + options?: ResourceGroupsListOptionalParams, ): Promise { return this.client.sendOperationRequest({ options }, listOperationSpec); } @@ -359,11 +357,11 @@ export class ResourceGroupsImpl implements ResourceGroups { */ private _listNext( nextLink: string, - options?: ResourceGroupsListNextOptionalParams + options?: ResourceGroupsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -377,42 +375,42 @@ const checkExistenceOperationSpec: coreClient.OperationSpec = { 204: {}, 404: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.ResourceGroup + bodyMapper: Mappers.ResourceGroup, }, 201: { - bodyMapper: Mappers.ResourceGroup + bodyMapper: Mappers.ResourceGroup, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters6, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}", @@ -423,124 +421,123 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion, Parameters.forceDeletionTypes], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ResourceGroup + bodyMapper: Mappers.ResourceGroup, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.ResourceGroup + bodyMapper: Mappers.ResourceGroup, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters7, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const exportTemplateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/exportTemplate", + path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/exportTemplate", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.ResourceGroupExportResult + bodyMapper: Mappers.ResourceGroupExportResult, }, 201: { - bodyMapper: Mappers.ResourceGroupExportResult + bodyMapper: Mappers.ResourceGroupExportResult, }, 202: { - bodyMapper: Mappers.ResourceGroupExportResult + bodyMapper: Mappers.ResourceGroupExportResult, }, 204: { - bodyMapper: Mappers.ResourceGroupExportResult + bodyMapper: Mappers.ResourceGroupExportResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters8, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName1 + Parameters.resourceGroupName1, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourcegroups", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ResourceGroupListResult + bodyMapper: Mappers.ResourceGroupListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion, Parameters.filter, Parameters.top], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ResourceGroupListResult + bodyMapper: Mappers.ResourceGroupListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.nextLink, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/resources/arm-resources/src/operations/resources.ts b/sdk/resources/arm-resources/src/operations/resources.ts index 71347bd79aaf9..97bd2b8b970d4 100644 --- a/sdk/resources/arm-resources/src/operations/resources.ts +++ b/sdk/resources/arm-resources/src/operations/resources.ts @@ -16,7 +16,7 @@ import { ResourceManagementClient } from "../resourceManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -50,7 +50,7 @@ import { ResourcesGetByIdOptionalParams, ResourcesGetByIdResponse, ResourcesListByResourceGroupNextResponse, - ResourcesListNextResponse + ResourcesListNextResponse, } from "../models"; /// @@ -73,7 +73,7 @@ export class ResourcesImpl implements Resources { */ public listByResourceGroup( resourceGroupName: string, - options?: ResourcesListByResourceGroupOptionalParams + options?: ResourcesListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); return { @@ -90,16 +90,16 @@ export class ResourcesImpl implements Resources { return this.listByResourceGroupPagingPage( resourceGroupName, options, - settings + settings, ); - } + }, }; } private async *listByResourceGroupPagingPage( resourceGroupName: string, options?: ResourcesListByResourceGroupOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ResourcesListByResourceGroupResponse; let continuationToken = settings?.continuationToken; @@ -114,7 +114,7 @@ export class ResourcesImpl implements Resources { result = await this._listByResourceGroupNext( resourceGroupName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -125,11 +125,11 @@ export class ResourcesImpl implements Resources { private async *listByResourceGroupPagingAll( resourceGroupName: string, - options?: ResourcesListByResourceGroupOptionalParams + options?: ResourcesListByResourceGroupOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByResourceGroupPagingPage( resourceGroupName, - options + options, )) { yield* page; } @@ -140,7 +140,7 @@ export class ResourcesImpl implements Resources { * @param options The options parameters. */ public list( - options?: ResourcesListOptionalParams + options?: ResourcesListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(options); return { @@ -155,13 +155,13 @@ export class ResourcesImpl implements Resources { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(options, settings); - } + }, }; } private async *listPagingPage( options?: ResourcesListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ResourcesListResponse; let continuationToken = settings?.continuationToken; @@ -182,7 +182,7 @@ export class ResourcesImpl implements Resources { } private async *listPagingAll( - options?: ResourcesListOptionalParams + options?: ResourcesListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(options)) { yield* page; @@ -196,11 +196,11 @@ export class ResourcesImpl implements Resources { */ private _listByResourceGroup( resourceGroupName: string, - options?: ResourcesListByResourceGroupOptionalParams + options?: ResourcesListByResourceGroupOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, - listByResourceGroupOperationSpec + listByResourceGroupOperationSpec, ); } @@ -217,25 +217,24 @@ export class ResourcesImpl implements Resources { async beginMoveResources( sourceResourceGroupName: string, parameters: ResourcesMoveInfo, - options?: ResourcesMoveResourcesOptionalParams + options?: ResourcesMoveResourcesOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -244,8 +243,8 @@ export class ResourcesImpl implements Resources { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -253,19 +252,19 @@ export class ResourcesImpl implements Resources { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { sourceResourceGroupName, parameters, options }, - spec: moveResourcesOperationSpec + spec: moveResourcesOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -284,12 +283,12 @@ export class ResourcesImpl implements Resources { async beginMoveResourcesAndWait( sourceResourceGroupName: string, parameters: ResourcesMoveInfo, - options?: ResourcesMoveResourcesOptionalParams + options?: ResourcesMoveResourcesOptionalParams, ): Promise { const poller = await this.beginMoveResources( sourceResourceGroupName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -309,25 +308,24 @@ export class ResourcesImpl implements Resources { async beginValidateMoveResources( sourceResourceGroupName: string, parameters: ResourcesMoveInfo, - options?: ResourcesValidateMoveResourcesOptionalParams + options?: ResourcesValidateMoveResourcesOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -336,8 +334,8 @@ export class ResourcesImpl implements Resources { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -345,19 +343,19 @@ export class ResourcesImpl implements Resources { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { sourceResourceGroupName, parameters, options }, - spec: validateMoveResourcesOperationSpec + spec: validateMoveResourcesOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -378,12 +376,12 @@ export class ResourcesImpl implements Resources { async beginValidateMoveResourcesAndWait( sourceResourceGroupName: string, parameters: ResourcesMoveInfo, - options?: ResourcesValidateMoveResourcesOptionalParams + options?: ResourcesValidateMoveResourcesOptionalParams, ): Promise { const poller = await this.beginValidateMoveResources( sourceResourceGroupName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -393,7 +391,7 @@ export class ResourcesImpl implements Resources { * @param options The options parameters. */ private _list( - options?: ResourcesListOptionalParams + options?: ResourcesListOptionalParams, ): Promise { return this.client.sendOperationRequest({ options }, listOperationSpec); } @@ -416,7 +414,7 @@ export class ResourcesImpl implements Resources { resourceType: string, resourceName: string, apiVersion: string, - options?: ResourcesCheckExistenceOptionalParams + options?: ResourcesCheckExistenceOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -426,9 +424,9 @@ export class ResourcesImpl implements Resources { resourceType, resourceName, apiVersion, - options + options, }, - checkExistenceOperationSpec + checkExistenceOperationSpec, ); } @@ -450,25 +448,24 @@ export class ResourcesImpl implements Resources { resourceType: string, resourceName: string, apiVersion: string, - options?: ResourcesDeleteOptionalParams + options?: ResourcesDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -477,8 +474,8 @@ export class ResourcesImpl implements Resources { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -486,8 +483,8 @@ export class ResourcesImpl implements Resources { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -500,13 +497,13 @@ export class ResourcesImpl implements Resources { resourceType, resourceName, apiVersion, - options + options, }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -530,7 +527,7 @@ export class ResourcesImpl implements Resources { resourceType: string, resourceName: string, apiVersion: string, - options?: ResourcesDeleteOptionalParams + options?: ResourcesDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, @@ -539,7 +536,7 @@ export class ResourcesImpl implements Resources { resourceType, resourceName, apiVersion, - options + options, ); return poller.pollUntilDone(); } @@ -564,7 +561,7 @@ export class ResourcesImpl implements Resources { resourceName: string, apiVersion: string, parameters: GenericResource, - options?: ResourcesCreateOrUpdateOptionalParams + options?: ResourcesCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -573,21 +570,20 @@ export class ResourcesImpl implements Resources { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -596,8 +592,8 @@ export class ResourcesImpl implements Resources { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -605,8 +601,8 @@ export class ResourcesImpl implements Resources { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -620,16 +616,16 @@ export class ResourcesImpl implements Resources { resourceName, apiVersion, parameters, - options + options, }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< ResourcesCreateOrUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -655,7 +651,7 @@ export class ResourcesImpl implements Resources { resourceName: string, apiVersion: string, parameters: GenericResource, - options?: ResourcesCreateOrUpdateOptionalParams + options?: ResourcesCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, @@ -665,7 +661,7 @@ export class ResourcesImpl implements Resources { resourceName, apiVersion, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -690,7 +686,7 @@ export class ResourcesImpl implements Resources { resourceName: string, apiVersion: string, parameters: GenericResource, - options?: ResourcesUpdateOptionalParams + options?: ResourcesUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -699,21 +695,20 @@ export class ResourcesImpl implements Resources { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -722,8 +717,8 @@ export class ResourcesImpl implements Resources { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -731,8 +726,8 @@ export class ResourcesImpl implements Resources { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -746,16 +741,16 @@ export class ResourcesImpl implements Resources { resourceName, apiVersion, parameters, - options + options, }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< ResourcesUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -781,7 +776,7 @@ export class ResourcesImpl implements Resources { resourceName: string, apiVersion: string, parameters: GenericResource, - options?: ResourcesUpdateOptionalParams + options?: ResourcesUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, @@ -791,7 +786,7 @@ export class ResourcesImpl implements Resources { resourceName, apiVersion, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -814,7 +809,7 @@ export class ResourcesImpl implements Resources { resourceType: string, resourceName: string, apiVersion: string, - options?: ResourcesGetOptionalParams + options?: ResourcesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -824,14 +819,16 @@ export class ResourcesImpl implements Resources { resourceType, resourceName, apiVersion, - options + options, }, - getOperationSpec + getOperationSpec, ); } /** - * Checks by ID whether a resource exists. + * Checks by ID whether a resource exists. This API currently works only for a limited set of Resource + * providers. In the event that a Resource provider does not implement this API, ARM will respond with + * a 405. The alternative then is to use the GET API to check for the existence of the resource. * @param resourceId The fully qualified ID of the resource, including the resource name and resource * type. Use the format, * /subscriptions/{guid}/resourceGroups/{resource-group-name}/{resource-provider-namespace}/{resource-type}/{resource-name} @@ -841,11 +838,11 @@ export class ResourcesImpl implements Resources { checkExistenceById( resourceId: string, apiVersion: string, - options?: ResourcesCheckExistenceByIdOptionalParams + options?: ResourcesCheckExistenceByIdOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceId, apiVersion, options }, - checkExistenceByIdOperationSpec + checkExistenceByIdOperationSpec, ); } @@ -860,25 +857,24 @@ export class ResourcesImpl implements Resources { async beginDeleteById( resourceId: string, apiVersion: string, - options?: ResourcesDeleteByIdOptionalParams + options?: ResourcesDeleteByIdOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -887,8 +883,8 @@ export class ResourcesImpl implements Resources { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -896,19 +892,19 @@ export class ResourcesImpl implements Resources { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceId, apiVersion, options }, - spec: deleteByIdOperationSpec + spec: deleteByIdOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -925,7 +921,7 @@ export class ResourcesImpl implements Resources { async beginDeleteByIdAndWait( resourceId: string, apiVersion: string, - options?: ResourcesDeleteByIdOptionalParams + options?: ResourcesDeleteByIdOptionalParams, ): Promise { const poller = await this.beginDeleteById(resourceId, apiVersion, options); return poller.pollUntilDone(); @@ -944,7 +940,7 @@ export class ResourcesImpl implements Resources { resourceId: string, apiVersion: string, parameters: GenericResource, - options?: ResourcesCreateOrUpdateByIdOptionalParams + options?: ResourcesCreateOrUpdateByIdOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -953,21 +949,20 @@ export class ResourcesImpl implements Resources { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -976,8 +971,8 @@ export class ResourcesImpl implements Resources { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -985,22 +980,22 @@ export class ResourcesImpl implements Resources { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceId, apiVersion, parameters, options }, - spec: createOrUpdateByIdOperationSpec + spec: createOrUpdateByIdOperationSpec, }); const poller = await createHttpPoller< ResourcesCreateOrUpdateByIdResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -1019,13 +1014,13 @@ export class ResourcesImpl implements Resources { resourceId: string, apiVersion: string, parameters: GenericResource, - options?: ResourcesCreateOrUpdateByIdOptionalParams + options?: ResourcesCreateOrUpdateByIdOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdateById( resourceId, apiVersion, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -1043,7 +1038,7 @@ export class ResourcesImpl implements Resources { resourceId: string, apiVersion: string, parameters: GenericResource, - options?: ResourcesUpdateByIdOptionalParams + options?: ResourcesUpdateByIdOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -1052,21 +1047,20 @@ export class ResourcesImpl implements Resources { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -1075,8 +1069,8 @@ export class ResourcesImpl implements Resources { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1084,22 +1078,22 @@ export class ResourcesImpl implements Resources { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceId, apiVersion, parameters, options }, - spec: updateByIdOperationSpec + spec: updateByIdOperationSpec, }); const poller = await createHttpPoller< ResourcesUpdateByIdResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -1118,13 +1112,13 @@ export class ResourcesImpl implements Resources { resourceId: string, apiVersion: string, parameters: GenericResource, - options?: ResourcesUpdateByIdOptionalParams + options?: ResourcesUpdateByIdOptionalParams, ): Promise { const poller = await this.beginUpdateById( resourceId, apiVersion, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -1140,11 +1134,11 @@ export class ResourcesImpl implements Resources { getById( resourceId: string, apiVersion: string, - options?: ResourcesGetByIdOptionalParams + options?: ResourcesGetByIdOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceId, apiVersion, options }, - getByIdOperationSpec + getByIdOperationSpec, ); } @@ -1157,11 +1151,11 @@ export class ResourcesImpl implements Resources { private _listByResourceGroupNext( resourceGroupName: string, nextLink: string, - options?: ResourcesListByResourceGroupNextOptionalParams + options?: ResourcesListByResourceGroupNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, nextLink, options }, - listByResourceGroupNextOperationSpec + listByResourceGroupNextOperationSpec, ); } @@ -1172,11 +1166,11 @@ export class ResourcesImpl implements Resources { */ private _listNext( nextLink: string, - options?: ResourcesListNextOptionalParams + options?: ResourcesListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -1184,34 +1178,32 @@ export class ResourcesImpl implements Resources { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByResourceGroupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/resources", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/resources", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ResourceListResult + bodyMapper: Mappers.ResourceListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [ Parameters.apiVersion, Parameters.filter, Parameters.top, - Parameters.expand + Parameters.expand, ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const moveResourcesOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{sourceResourceGroupName}/moveResources", + path: "/subscriptions/{subscriptionId}/resourceGroups/{sourceResourceGroupName}/moveResources", httpMethod: "POST", responses: { 200: {}, @@ -1219,23 +1211,22 @@ const moveResourcesOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters4, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.sourceResourceGroupName + Parameters.sourceResourceGroupName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const validateMoveResourcesOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{sourceResourceGroupName}/validateMoveResources", + path: "/subscriptions/{subscriptionId}/resourceGroups/{sourceResourceGroupName}/validateMoveResources", httpMethod: "POST", responses: { 200: {}, @@ -1243,51 +1234,50 @@ const validateMoveResourcesOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters4, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.sourceResourceGroupName + Parameters.sourceResourceGroupName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resources", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ResourceListResult + bodyMapper: Mappers.ResourceListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [ Parameters.apiVersion, Parameters.filter, Parameters.top, - Parameters.expand + Parameters.expand, ], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const checkExistenceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}", + path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}", httpMethod: "HEAD", responses: { 204: {}, 404: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion1], urlParameters: [ @@ -1297,14 +1287,13 @@ const checkExistenceOperationSpec: coreClient.OperationSpec = { Parameters.resourceProviderNamespace, Parameters.parentResourcePath, Parameters.resourceType, - Parameters.resourceName + Parameters.resourceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}", + path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}", httpMethod: "DELETE", responses: { 200: {}, @@ -1312,8 +1301,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion1], urlParameters: [ @@ -1323,31 +1312,30 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceProviderNamespace, Parameters.parentResourcePath, Parameters.resourceType, - Parameters.resourceName + Parameters.resourceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}", + path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.GenericResource + bodyMapper: Mappers.GenericResource, }, 201: { - bodyMapper: Mappers.GenericResource + bodyMapper: Mappers.GenericResource, }, 202: { - bodyMapper: Mappers.GenericResource + bodyMapper: Mappers.GenericResource, }, 204: { - bodyMapper: Mappers.GenericResource + bodyMapper: Mappers.GenericResource, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters5, queryParameters: [Parameters.apiVersion1], @@ -1358,32 +1346,31 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.resourceProviderNamespace, Parameters.parentResourcePath, Parameters.resourceType, - Parameters.resourceName + Parameters.resourceName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}", + path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.GenericResource + bodyMapper: Mappers.GenericResource, }, 201: { - bodyMapper: Mappers.GenericResource + bodyMapper: Mappers.GenericResource, }, 202: { - bodyMapper: Mappers.GenericResource + bodyMapper: Mappers.GenericResource, }, 204: { - bodyMapper: Mappers.GenericResource + bodyMapper: Mappers.GenericResource, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters5, queryParameters: [Parameters.apiVersion1], @@ -1394,23 +1381,22 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.resourceProviderNamespace, Parameters.parentResourcePath, Parameters.resourceType, - Parameters.resourceName + Parameters.resourceName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}", + path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.GenericResource + bodyMapper: Mappers.GenericResource, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion1], urlParameters: [ @@ -1420,10 +1406,10 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceProviderNamespace, Parameters.parentResourcePath, Parameters.resourceType, - Parameters.resourceName + Parameters.resourceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const checkExistenceByIdOperationSpec: coreClient.OperationSpec = { path: "/{resourceId}", @@ -1432,13 +1418,13 @@ const checkExistenceByIdOperationSpec: coreClient.OperationSpec = { 204: {}, 404: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion1], urlParameters: [Parameters.$host, Parameters.resourceId], headerParameters: [Parameters.accept], - serializer + serializer, }; const deleteByIdOperationSpec: coreClient.OperationSpec = { path: "/{resourceId}", @@ -1449,120 +1435,120 @@ const deleteByIdOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion1], urlParameters: [Parameters.$host, Parameters.resourceId], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateByIdOperationSpec: coreClient.OperationSpec = { path: "/{resourceId}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.GenericResource + bodyMapper: Mappers.GenericResource, }, 201: { - bodyMapper: Mappers.GenericResource + bodyMapper: Mappers.GenericResource, }, 202: { - bodyMapper: Mappers.GenericResource + bodyMapper: Mappers.GenericResource, }, 204: { - bodyMapper: Mappers.GenericResource + bodyMapper: Mappers.GenericResource, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters5, queryParameters: [Parameters.apiVersion1], urlParameters: [Parameters.$host, Parameters.resourceId], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateByIdOperationSpec: coreClient.OperationSpec = { path: "/{resourceId}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.GenericResource + bodyMapper: Mappers.GenericResource, }, 201: { - bodyMapper: Mappers.GenericResource + bodyMapper: Mappers.GenericResource, }, 202: { - bodyMapper: Mappers.GenericResource + bodyMapper: Mappers.GenericResource, }, 204: { - bodyMapper: Mappers.GenericResource + bodyMapper: Mappers.GenericResource, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters5, queryParameters: [Parameters.apiVersion1], urlParameters: [Parameters.$host, Parameters.resourceId], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const getByIdOperationSpec: coreClient.OperationSpec = { path: "/{resourceId}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.GenericResource + bodyMapper: Mappers.GenericResource, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion1], urlParameters: [Parameters.$host, Parameters.resourceId], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ResourceListResult + bodyMapper: Mappers.ResourceListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.nextLink, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ResourceListResult + bodyMapper: Mappers.ResourceListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.nextLink, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/resources/arm-resources/src/operations/tagsOperations.ts b/sdk/resources/arm-resources/src/operations/tagsOperations.ts index 121ce4e824ecb..75b249d8872f3 100644 --- a/sdk/resources/arm-resources/src/operations/tagsOperations.ts +++ b/sdk/resources/arm-resources/src/operations/tagsOperations.ts @@ -13,6 +13,12 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { ResourceManagementClient } from "../resourceManagementClient"; +import { + SimplePollerLike, + OperationState, + createHttpPoller, +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { TagDetails, TagsListNextOptionalParams, @@ -33,7 +39,7 @@ import { TagsGetAtScopeOptionalParams, TagsGetAtScopeResponse, TagsDeleteAtScopeOptionalParams, - TagsListNextResponse + TagsListNextResponse, } from "../models"; /// @@ -57,7 +63,7 @@ export class TagsOperationsImpl implements TagsOperations { * @param options The options parameters. */ public list( - options?: TagsListOptionalParams + options?: TagsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(options); return { @@ -72,13 +78,13 @@ export class TagsOperationsImpl implements TagsOperations { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(options, settings); - } + }, }; } private async *listPagingPage( options?: TagsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: TagsListResponse; let continuationToken = settings?.continuationToken; @@ -99,7 +105,7 @@ export class TagsOperationsImpl implements TagsOperations { } private async *listPagingAll( - options?: TagsListOptionalParams + options?: TagsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(options)) { yield* page; @@ -117,11 +123,11 @@ export class TagsOperationsImpl implements TagsOperations { deleteValue( tagName: string, tagValue: string, - options?: TagsDeleteValueOptionalParams + options?: TagsDeleteValueOptionalParams, ): Promise { return this.client.sendOperationRequest( { tagName, tagValue, options }, - deleteValueOperationSpec + deleteValueOperationSpec, ); } @@ -135,11 +141,11 @@ export class TagsOperationsImpl implements TagsOperations { createOrUpdateValue( tagName: string, tagValue: string, - options?: TagsCreateOrUpdateValueOptionalParams + options?: TagsCreateOrUpdateValueOptionalParams, ): Promise { return this.client.sendOperationRequest( { tagName, tagValue, options }, - createOrUpdateValueOperationSpec + createOrUpdateValueOperationSpec, ); } @@ -152,11 +158,11 @@ export class TagsOperationsImpl implements TagsOperations { */ createOrUpdate( tagName: string, - options?: TagsCreateOrUpdateOptionalParams + options?: TagsCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { tagName, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -170,7 +176,7 @@ export class TagsOperationsImpl implements TagsOperations { delete(tagName: string, options?: TagsDeleteOptionalParams): Promise { return this.client.sendOperationRequest( { tagName, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -192,15 +198,162 @@ export class TagsOperationsImpl implements TagsOperations { * @param parameters Wrapper resource for tags API requests and responses. * @param options The options parameters. */ - createOrUpdateAtScope( + async beginCreateOrUpdateAtScope( scope: string, parameters: TagsResource, - options?: TagsCreateOrUpdateAtScopeOptionalParams + options?: TagsCreateOrUpdateAtScopeOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + TagsCreateOrUpdateAtScopeResponse + > + > { + 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: { scope, parameters, options }, + spec: createOrUpdateAtScopeOperationSpec, + }); + const poller = await createHttpPoller< + TagsCreateOrUpdateAtScopeResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + }); + await poller.poll(); + return poller; + } + + /** + * This operation allows adding or replacing the entire set of tags on the specified resource or + * subscription. The specified entity can have a maximum of 50 tags. + * @param scope The resource scope. + * @param parameters Wrapper resource for tags API requests and responses. + * @param options The options parameters. + */ + async beginCreateOrUpdateAtScopeAndWait( + scope: string, + parameters: TagsResource, + options?: TagsCreateOrUpdateAtScopeOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { scope, parameters, options }, - createOrUpdateAtScopeOperationSpec + const poller = await this.beginCreateOrUpdateAtScope( + scope, + parameters, + options, ); + return poller.pollUntilDone(); + } + + /** + * This operation allows replacing, merging or selectively deleting tags on the specified resource or + * subscription. The specified entity can have a maximum of 50 tags at the end of the operation. The + * 'replace' option replaces the entire set of existing tags with a new set. The 'merge' option allows + * adding tags with new names and updating the values of tags with existing names. The 'delete' option + * allows selectively deleting tags based on given names or name/value pairs. + * @param scope The resource scope. + * @param parameters Wrapper resource for tags patch API request only. + * @param options The options parameters. + */ + async beginUpdateAtScope( + scope: string, + parameters: TagsPatchResource, + options?: TagsUpdateAtScopeOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + TagsUpdateAtScopeResponse + > + > { + 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: { scope, parameters, options }, + spec: updateAtScopeOperationSpec, + }); + const poller = await createHttpPoller< + TagsUpdateAtScopeResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + }); + await poller.poll(); + return poller; } /** @@ -213,15 +366,13 @@ export class TagsOperationsImpl implements TagsOperations { * @param parameters Wrapper resource for tags patch API request only. * @param options The options parameters. */ - updateAtScope( + async beginUpdateAtScopeAndWait( scope: string, parameters: TagsPatchResource, - options?: TagsUpdateAtScopeOptionalParams + options?: TagsUpdateAtScopeOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { scope, parameters, options }, - updateAtScopeOperationSpec - ); + const poller = await this.beginUpdateAtScope(scope, parameters, options); + return poller.pollUntilDone(); } /** @@ -231,11 +382,11 @@ export class TagsOperationsImpl implements TagsOperations { */ getAtScope( scope: string, - options?: TagsGetAtScopeOptionalParams + options?: TagsGetAtScopeOptionalParams, ): Promise { return this.client.sendOperationRequest( { scope, options }, - getAtScopeOperationSpec + getAtScopeOperationSpec, ); } @@ -244,14 +395,72 @@ export class TagsOperationsImpl implements TagsOperations { * @param scope The resource scope. * @param options The options parameters. */ - deleteAtScope( + async beginDeleteAtScope( + scope: string, + options?: TagsDeleteAtScopeOptionalParams, + ): Promise, void>> { + 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: { scope, options }, + spec: deleteAtScopeOperationSpec, + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + }); + await poller.poll(); + return poller; + } + + /** + * Deletes the entire set of tags on a resource or subscription. + * @param scope The resource scope. + * @param options The options parameters. + */ + async beginDeleteAtScopeAndWait( scope: string, - options?: TagsDeleteAtScopeOptionalParams + options?: TagsDeleteAtScopeOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { scope, options }, - deleteAtScopeOperationSpec - ); + const poller = await this.beginDeleteAtScope(scope, options); + return poller.pollUntilDone(); } /** @@ -261,11 +470,11 @@ export class TagsOperationsImpl implements TagsOperations { */ private _listNext( nextLink: string, - options?: TagsListNextOptionalParams + options?: TagsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -273,73 +482,71 @@ export class TagsOperationsImpl implements TagsOperations { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const deleteValueOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/tagNames/{tagName}/tagValues/{tagValue}", + path: "/subscriptions/{subscriptionId}/tagNames/{tagName}/tagValues/{tagValue}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.tagName, - Parameters.tagValue + Parameters.tagValue, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateValueOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/tagNames/{tagName}/tagValues/{tagValue}", + path: "/subscriptions/{subscriptionId}/tagNames/{tagName}/tagValues/{tagValue}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.TagValue + bodyMapper: Mappers.TagValue, }, 201: { - bodyMapper: Mappers.TagValue + bodyMapper: Mappers.TagValue, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.tagName, - Parameters.tagValue + Parameters.tagValue, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/tagNames/{tagName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.TagDetails + bodyMapper: Mappers.TagDetails, }, 201: { - bodyMapper: Mappers.TagDetails + bodyMapper: Mappers.TagDetails, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.tagName + Parameters.tagName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/tagNames/{tagName}", @@ -348,116 +555,137 @@ const deleteOperationSpec: coreClient.OperationSpec = { 200: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.tagName + Parameters.tagName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/tagNames", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.TagsListResult + bodyMapper: Mappers.TagsListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateAtScopeOperationSpec: coreClient.OperationSpec = { path: "/{scope}/providers/Microsoft.Resources/tags/default", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.TagsResource + bodyMapper: Mappers.TagsResource, + }, + 201: { + bodyMapper: Mappers.TagsResource, + }, + 202: { + bodyMapper: Mappers.TagsResource, + }, + 204: { + bodyMapper: Mappers.TagsResource, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters9, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.scope], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateAtScopeOperationSpec: coreClient.OperationSpec = { path: "/{scope}/providers/Microsoft.Resources/tags/default", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.TagsResource + bodyMapper: Mappers.TagsResource, + }, + 201: { + bodyMapper: Mappers.TagsResource, + }, + 202: { + bodyMapper: Mappers.TagsResource, + }, + 204: { + bodyMapper: Mappers.TagsResource, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters10, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.scope], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const getAtScopeOperationSpec: coreClient.OperationSpec = { path: "/{scope}/providers/Microsoft.Resources/tags/default", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.TagsResource + bodyMapper: Mappers.TagsResource, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.scope], headerParameters: [Parameters.accept], - serializer + serializer, }; const deleteAtScopeOperationSpec: coreClient.OperationSpec = { path: "/{scope}/providers/Microsoft.Resources/tags/default", httpMethod: "DELETE", responses: { 200: {}, + 201: {}, + 202: {}, + 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.scope], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.TagsListResult + bodyMapper: Mappers.TagsListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.nextLink, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/resources/arm-resources/src/operationsInterfaces/deploymentOperations.ts b/sdk/resources/arm-resources/src/operationsInterfaces/deploymentOperations.ts index f55d69614dd82..4327062e0dde8 100644 --- a/sdk/resources/arm-resources/src/operationsInterfaces/deploymentOperations.ts +++ b/sdk/resources/arm-resources/src/operationsInterfaces/deploymentOperations.ts @@ -23,7 +23,7 @@ import { DeploymentOperationsGetAtSubscriptionScopeOptionalParams, DeploymentOperationsGetAtSubscriptionScopeResponse, DeploymentOperationsGetOptionalParams, - DeploymentOperationsGetResponse + DeploymentOperationsGetResponse, } from "../models"; /// @@ -38,7 +38,7 @@ export interface DeploymentOperations { listAtScope( scope: string, deploymentName: string, - options?: DeploymentOperationsListAtScopeOptionalParams + options?: DeploymentOperationsListAtScopeOptionalParams, ): PagedAsyncIterableIterator; /** * Gets all deployments operations for a deployment. @@ -47,7 +47,7 @@ export interface DeploymentOperations { */ listAtTenantScope( deploymentName: string, - options?: DeploymentOperationsListAtTenantScopeOptionalParams + options?: DeploymentOperationsListAtTenantScopeOptionalParams, ): PagedAsyncIterableIterator; /** * Gets all deployments operations for a deployment. @@ -58,7 +58,7 @@ export interface DeploymentOperations { listAtManagementGroupScope( groupId: string, deploymentName: string, - options?: DeploymentOperationsListAtManagementGroupScopeOptionalParams + options?: DeploymentOperationsListAtManagementGroupScopeOptionalParams, ): PagedAsyncIterableIterator; /** * Gets all deployments operations for a deployment. @@ -67,7 +67,7 @@ export interface DeploymentOperations { */ listAtSubscriptionScope( deploymentName: string, - options?: DeploymentOperationsListAtSubscriptionScopeOptionalParams + options?: DeploymentOperationsListAtSubscriptionScopeOptionalParams, ): PagedAsyncIterableIterator; /** * Gets all deployments operations for a deployment. @@ -78,7 +78,7 @@ export interface DeploymentOperations { list( resourceGroupName: string, deploymentName: string, - options?: DeploymentOperationsListOptionalParams + options?: DeploymentOperationsListOptionalParams, ): PagedAsyncIterableIterator; /** * Gets a deployments operation. @@ -91,7 +91,7 @@ export interface DeploymentOperations { scope: string, deploymentName: string, operationId: string, - options?: DeploymentOperationsGetAtScopeOptionalParams + options?: DeploymentOperationsGetAtScopeOptionalParams, ): Promise; /** * Gets a deployments operation. @@ -102,7 +102,7 @@ export interface DeploymentOperations { getAtTenantScope( deploymentName: string, operationId: string, - options?: DeploymentOperationsGetAtTenantScopeOptionalParams + options?: DeploymentOperationsGetAtTenantScopeOptionalParams, ): Promise; /** * Gets a deployments operation. @@ -115,7 +115,7 @@ export interface DeploymentOperations { groupId: string, deploymentName: string, operationId: string, - options?: DeploymentOperationsGetAtManagementGroupScopeOptionalParams + options?: DeploymentOperationsGetAtManagementGroupScopeOptionalParams, ): Promise; /** * Gets a deployments operation. @@ -126,7 +126,7 @@ export interface DeploymentOperations { getAtSubscriptionScope( deploymentName: string, operationId: string, - options?: DeploymentOperationsGetAtSubscriptionScopeOptionalParams + options?: DeploymentOperationsGetAtSubscriptionScopeOptionalParams, ): Promise; /** * Gets a deployments operation. @@ -139,6 +139,6 @@ export interface DeploymentOperations { resourceGroupName: string, deploymentName: string, operationId: string, - options?: DeploymentOperationsGetOptionalParams + options?: DeploymentOperationsGetOptionalParams, ): Promise; } diff --git a/sdk/resources/arm-resources/src/operationsInterfaces/deployments.ts b/sdk/resources/arm-resources/src/operationsInterfaces/deployments.ts index 360326afc4d21..a8f929c639979 100644 --- a/sdk/resources/arm-resources/src/operationsInterfaces/deployments.ts +++ b/sdk/resources/arm-resources/src/operationsInterfaces/deployments.ts @@ -88,7 +88,7 @@ import { DeploymentsExportTemplateOptionalParams, DeploymentsExportTemplateResponse, DeploymentsCalculateTemplateHashOptionalParams, - DeploymentsCalculateTemplateHashResponse + DeploymentsCalculateTemplateHashResponse, } from "../models"; /// @@ -101,14 +101,14 @@ export interface Deployments { */ listAtScope( scope: string, - options?: DeploymentsListAtScopeOptionalParams + options?: DeploymentsListAtScopeOptionalParams, ): PagedAsyncIterableIterator; /** * Get all the deployments at the tenant scope. * @param options The options parameters. */ listAtTenantScope( - options?: DeploymentsListAtTenantScopeOptionalParams + options?: DeploymentsListAtTenantScopeOptionalParams, ): PagedAsyncIterableIterator; /** * Get all the deployments for a management group. @@ -117,14 +117,14 @@ export interface Deployments { */ listAtManagementGroupScope( groupId: string, - options?: DeploymentsListAtManagementGroupScopeOptionalParams + options?: DeploymentsListAtManagementGroupScopeOptionalParams, ): PagedAsyncIterableIterator; /** * Get all the deployments for a subscription. * @param options The options parameters. */ listAtSubscriptionScope( - options?: DeploymentsListAtSubscriptionScopeOptionalParams + options?: DeploymentsListAtSubscriptionScopeOptionalParams, ): PagedAsyncIterableIterator; /** * Get all the deployments for a resource group. @@ -134,7 +134,7 @@ export interface Deployments { */ listByResourceGroup( resourceGroupName: string, - options?: DeploymentsListByResourceGroupOptionalParams + options?: DeploymentsListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator; /** * A template deployment that is currently running cannot be deleted. Deleting a template deployment @@ -151,7 +151,7 @@ export interface Deployments { beginDeleteAtScope( scope: string, deploymentName: string, - options?: DeploymentsDeleteAtScopeOptionalParams + options?: DeploymentsDeleteAtScopeOptionalParams, ): Promise, void>>; /** * A template deployment that is currently running cannot be deleted. Deleting a template deployment @@ -168,7 +168,7 @@ export interface Deployments { beginDeleteAtScopeAndWait( scope: string, deploymentName: string, - options?: DeploymentsDeleteAtScopeOptionalParams + options?: DeploymentsDeleteAtScopeOptionalParams, ): Promise; /** * Checks whether the deployment exists. @@ -179,7 +179,7 @@ export interface Deployments { checkExistenceAtScope( scope: string, deploymentName: string, - options?: DeploymentsCheckExistenceAtScopeOptionalParams + options?: DeploymentsCheckExistenceAtScopeOptionalParams, ): Promise; /** * You can provide the template and parameters directly in the request or link to JSON files. @@ -192,7 +192,7 @@ export interface Deployments { scope: string, deploymentName: string, parameters: Deployment, - options?: DeploymentsCreateOrUpdateAtScopeOptionalParams + options?: DeploymentsCreateOrUpdateAtScopeOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -210,7 +210,7 @@ export interface Deployments { scope: string, deploymentName: string, parameters: Deployment, - options?: DeploymentsCreateOrUpdateAtScopeOptionalParams + options?: DeploymentsCreateOrUpdateAtScopeOptionalParams, ): Promise; /** * Gets a deployment. @@ -221,7 +221,7 @@ export interface Deployments { getAtScope( scope: string, deploymentName: string, - options?: DeploymentsGetAtScopeOptionalParams + options?: DeploymentsGetAtScopeOptionalParams, ): Promise; /** * You can cancel a deployment only if the provisioningState is Accepted or Running. After the @@ -234,7 +234,7 @@ export interface Deployments { cancelAtScope( scope: string, deploymentName: string, - options?: DeploymentsCancelAtScopeOptionalParams + options?: DeploymentsCancelAtScopeOptionalParams, ): Promise; /** * Validates whether the specified template is syntactically correct and will be accepted by Azure @@ -248,7 +248,7 @@ export interface Deployments { scope: string, deploymentName: string, parameters: Deployment, - options?: DeploymentsValidateAtScopeOptionalParams + options?: DeploymentsValidateAtScopeOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -267,7 +267,7 @@ export interface Deployments { scope: string, deploymentName: string, parameters: Deployment, - options?: DeploymentsValidateAtScopeOptionalParams + options?: DeploymentsValidateAtScopeOptionalParams, ): Promise; /** * Exports the template used for specified deployment. @@ -278,7 +278,7 @@ export interface Deployments { exportTemplateAtScope( scope: string, deploymentName: string, - options?: DeploymentsExportTemplateAtScopeOptionalParams + options?: DeploymentsExportTemplateAtScopeOptionalParams, ): Promise; /** * A template deployment that is currently running cannot be deleted. Deleting a template deployment @@ -293,7 +293,7 @@ export interface Deployments { */ beginDeleteAtTenantScope( deploymentName: string, - options?: DeploymentsDeleteAtTenantScopeOptionalParams + options?: DeploymentsDeleteAtTenantScopeOptionalParams, ): Promise, void>>; /** * A template deployment that is currently running cannot be deleted. Deleting a template deployment @@ -308,7 +308,7 @@ export interface Deployments { */ beginDeleteAtTenantScopeAndWait( deploymentName: string, - options?: DeploymentsDeleteAtTenantScopeOptionalParams + options?: DeploymentsDeleteAtTenantScopeOptionalParams, ): Promise; /** * Checks whether the deployment exists. @@ -317,7 +317,7 @@ export interface Deployments { */ checkExistenceAtTenantScope( deploymentName: string, - options?: DeploymentsCheckExistenceAtTenantScopeOptionalParams + options?: DeploymentsCheckExistenceAtTenantScopeOptionalParams, ): Promise; /** * You can provide the template and parameters directly in the request or link to JSON files. @@ -328,7 +328,7 @@ export interface Deployments { beginCreateOrUpdateAtTenantScope( deploymentName: string, parameters: ScopedDeployment, - options?: DeploymentsCreateOrUpdateAtTenantScopeOptionalParams + options?: DeploymentsCreateOrUpdateAtTenantScopeOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -344,7 +344,7 @@ export interface Deployments { beginCreateOrUpdateAtTenantScopeAndWait( deploymentName: string, parameters: ScopedDeployment, - options?: DeploymentsCreateOrUpdateAtTenantScopeOptionalParams + options?: DeploymentsCreateOrUpdateAtTenantScopeOptionalParams, ): Promise; /** * Gets a deployment. @@ -353,7 +353,7 @@ export interface Deployments { */ getAtTenantScope( deploymentName: string, - options?: DeploymentsGetAtTenantScopeOptionalParams + options?: DeploymentsGetAtTenantScopeOptionalParams, ): Promise; /** * You can cancel a deployment only if the provisioningState is Accepted or Running. After the @@ -364,7 +364,7 @@ export interface Deployments { */ cancelAtTenantScope( deploymentName: string, - options?: DeploymentsCancelAtTenantScopeOptionalParams + options?: DeploymentsCancelAtTenantScopeOptionalParams, ): Promise; /** * Validates whether the specified template is syntactically correct and will be accepted by Azure @@ -376,7 +376,7 @@ export interface Deployments { beginValidateAtTenantScope( deploymentName: string, parameters: ScopedDeployment, - options?: DeploymentsValidateAtTenantScopeOptionalParams + options?: DeploymentsValidateAtTenantScopeOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -393,7 +393,7 @@ export interface Deployments { beginValidateAtTenantScopeAndWait( deploymentName: string, parameters: ScopedDeployment, - options?: DeploymentsValidateAtTenantScopeOptionalParams + options?: DeploymentsValidateAtTenantScopeOptionalParams, ): Promise; /** * Returns changes that will be made by the deployment if executed at the scope of the tenant group. @@ -404,7 +404,7 @@ export interface Deployments { beginWhatIfAtTenantScope( deploymentName: string, parameters: ScopedDeploymentWhatIf, - options?: DeploymentsWhatIfAtTenantScopeOptionalParams + options?: DeploymentsWhatIfAtTenantScopeOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -420,7 +420,7 @@ export interface Deployments { beginWhatIfAtTenantScopeAndWait( deploymentName: string, parameters: ScopedDeploymentWhatIf, - options?: DeploymentsWhatIfAtTenantScopeOptionalParams + options?: DeploymentsWhatIfAtTenantScopeOptionalParams, ): Promise; /** * Exports the template used for specified deployment. @@ -429,7 +429,7 @@ export interface Deployments { */ exportTemplateAtTenantScope( deploymentName: string, - options?: DeploymentsExportTemplateAtTenantScopeOptionalParams + options?: DeploymentsExportTemplateAtTenantScopeOptionalParams, ): Promise; /** * A template deployment that is currently running cannot be deleted. Deleting a template deployment @@ -446,7 +446,7 @@ export interface Deployments { beginDeleteAtManagementGroupScope( groupId: string, deploymentName: string, - options?: DeploymentsDeleteAtManagementGroupScopeOptionalParams + options?: DeploymentsDeleteAtManagementGroupScopeOptionalParams, ): Promise, void>>; /** * A template deployment that is currently running cannot be deleted. Deleting a template deployment @@ -463,7 +463,7 @@ export interface Deployments { beginDeleteAtManagementGroupScopeAndWait( groupId: string, deploymentName: string, - options?: DeploymentsDeleteAtManagementGroupScopeOptionalParams + options?: DeploymentsDeleteAtManagementGroupScopeOptionalParams, ): Promise; /** * Checks whether the deployment exists. @@ -474,7 +474,7 @@ export interface Deployments { checkExistenceAtManagementGroupScope( groupId: string, deploymentName: string, - options?: DeploymentsCheckExistenceAtManagementGroupScopeOptionalParams + options?: DeploymentsCheckExistenceAtManagementGroupScopeOptionalParams, ): Promise; /** * You can provide the template and parameters directly in the request or link to JSON files. @@ -487,7 +487,7 @@ export interface Deployments { groupId: string, deploymentName: string, parameters: ScopedDeployment, - options?: DeploymentsCreateOrUpdateAtManagementGroupScopeOptionalParams + options?: DeploymentsCreateOrUpdateAtManagementGroupScopeOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -505,7 +505,7 @@ export interface Deployments { groupId: string, deploymentName: string, parameters: ScopedDeployment, - options?: DeploymentsCreateOrUpdateAtManagementGroupScopeOptionalParams + options?: DeploymentsCreateOrUpdateAtManagementGroupScopeOptionalParams, ): Promise; /** * Gets a deployment. @@ -516,7 +516,7 @@ export interface Deployments { getAtManagementGroupScope( groupId: string, deploymentName: string, - options?: DeploymentsGetAtManagementGroupScopeOptionalParams + options?: DeploymentsGetAtManagementGroupScopeOptionalParams, ): Promise; /** * You can cancel a deployment only if the provisioningState is Accepted or Running. After the @@ -529,7 +529,7 @@ export interface Deployments { cancelAtManagementGroupScope( groupId: string, deploymentName: string, - options?: DeploymentsCancelAtManagementGroupScopeOptionalParams + options?: DeploymentsCancelAtManagementGroupScopeOptionalParams, ): Promise; /** * Validates whether the specified template is syntactically correct and will be accepted by Azure @@ -543,7 +543,7 @@ export interface Deployments { groupId: string, deploymentName: string, parameters: ScopedDeployment, - options?: DeploymentsValidateAtManagementGroupScopeOptionalParams + options?: DeploymentsValidateAtManagementGroupScopeOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -562,7 +562,7 @@ export interface Deployments { groupId: string, deploymentName: string, parameters: ScopedDeployment, - options?: DeploymentsValidateAtManagementGroupScopeOptionalParams + options?: DeploymentsValidateAtManagementGroupScopeOptionalParams, ): Promise; /** * Returns changes that will be made by the deployment if executed at the scope of the management @@ -576,7 +576,7 @@ export interface Deployments { groupId: string, deploymentName: string, parameters: ScopedDeploymentWhatIf, - options?: DeploymentsWhatIfAtManagementGroupScopeOptionalParams + options?: DeploymentsWhatIfAtManagementGroupScopeOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -595,7 +595,7 @@ export interface Deployments { groupId: string, deploymentName: string, parameters: ScopedDeploymentWhatIf, - options?: DeploymentsWhatIfAtManagementGroupScopeOptionalParams + options?: DeploymentsWhatIfAtManagementGroupScopeOptionalParams, ): Promise; /** * Exports the template used for specified deployment. @@ -606,7 +606,7 @@ export interface Deployments { exportTemplateAtManagementGroupScope( groupId: string, deploymentName: string, - options?: DeploymentsExportTemplateAtManagementGroupScopeOptionalParams + options?: DeploymentsExportTemplateAtManagementGroupScopeOptionalParams, ): Promise; /** * A template deployment that is currently running cannot be deleted. Deleting a template deployment @@ -621,7 +621,7 @@ export interface Deployments { */ beginDeleteAtSubscriptionScope( deploymentName: string, - options?: DeploymentsDeleteAtSubscriptionScopeOptionalParams + options?: DeploymentsDeleteAtSubscriptionScopeOptionalParams, ): Promise, void>>; /** * A template deployment that is currently running cannot be deleted. Deleting a template deployment @@ -636,7 +636,7 @@ export interface Deployments { */ beginDeleteAtSubscriptionScopeAndWait( deploymentName: string, - options?: DeploymentsDeleteAtSubscriptionScopeOptionalParams + options?: DeploymentsDeleteAtSubscriptionScopeOptionalParams, ): Promise; /** * Checks whether the deployment exists. @@ -645,7 +645,7 @@ export interface Deployments { */ checkExistenceAtSubscriptionScope( deploymentName: string, - options?: DeploymentsCheckExistenceAtSubscriptionScopeOptionalParams + options?: DeploymentsCheckExistenceAtSubscriptionScopeOptionalParams, ): Promise; /** * You can provide the template and parameters directly in the request or link to JSON files. @@ -656,7 +656,7 @@ export interface Deployments { beginCreateOrUpdateAtSubscriptionScope( deploymentName: string, parameters: Deployment, - options?: DeploymentsCreateOrUpdateAtSubscriptionScopeOptionalParams + options?: DeploymentsCreateOrUpdateAtSubscriptionScopeOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -672,7 +672,7 @@ export interface Deployments { beginCreateOrUpdateAtSubscriptionScopeAndWait( deploymentName: string, parameters: Deployment, - options?: DeploymentsCreateOrUpdateAtSubscriptionScopeOptionalParams + options?: DeploymentsCreateOrUpdateAtSubscriptionScopeOptionalParams, ): Promise; /** * Gets a deployment. @@ -681,7 +681,7 @@ export interface Deployments { */ getAtSubscriptionScope( deploymentName: string, - options?: DeploymentsGetAtSubscriptionScopeOptionalParams + options?: DeploymentsGetAtSubscriptionScopeOptionalParams, ): Promise; /** * You can cancel a deployment only if the provisioningState is Accepted or Running. After the @@ -692,7 +692,7 @@ export interface Deployments { */ cancelAtSubscriptionScope( deploymentName: string, - options?: DeploymentsCancelAtSubscriptionScopeOptionalParams + options?: DeploymentsCancelAtSubscriptionScopeOptionalParams, ): Promise; /** * Validates whether the specified template is syntactically correct and will be accepted by Azure @@ -704,7 +704,7 @@ export interface Deployments { beginValidateAtSubscriptionScope( deploymentName: string, parameters: Deployment, - options?: DeploymentsValidateAtSubscriptionScopeOptionalParams + options?: DeploymentsValidateAtSubscriptionScopeOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -721,7 +721,7 @@ export interface Deployments { beginValidateAtSubscriptionScopeAndWait( deploymentName: string, parameters: Deployment, - options?: DeploymentsValidateAtSubscriptionScopeOptionalParams + options?: DeploymentsValidateAtSubscriptionScopeOptionalParams, ): Promise; /** * Returns changes that will be made by the deployment if executed at the scope of the subscription. @@ -732,7 +732,7 @@ export interface Deployments { beginWhatIfAtSubscriptionScope( deploymentName: string, parameters: DeploymentWhatIf, - options?: DeploymentsWhatIfAtSubscriptionScopeOptionalParams + options?: DeploymentsWhatIfAtSubscriptionScopeOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -748,7 +748,7 @@ export interface Deployments { beginWhatIfAtSubscriptionScopeAndWait( deploymentName: string, parameters: DeploymentWhatIf, - options?: DeploymentsWhatIfAtSubscriptionScopeOptionalParams + options?: DeploymentsWhatIfAtSubscriptionScopeOptionalParams, ): Promise; /** * Exports the template used for specified deployment. @@ -757,7 +757,7 @@ export interface Deployments { */ exportTemplateAtSubscriptionScope( deploymentName: string, - options?: DeploymentsExportTemplateAtSubscriptionScopeOptionalParams + options?: DeploymentsExportTemplateAtSubscriptionScopeOptionalParams, ): Promise; /** * A template deployment that is currently running cannot be deleted. Deleting a template deployment @@ -776,7 +776,7 @@ export interface Deployments { beginDelete( resourceGroupName: string, deploymentName: string, - options?: DeploymentsDeleteOptionalParams + options?: DeploymentsDeleteOptionalParams, ): Promise, void>>; /** * A template deployment that is currently running cannot be deleted. Deleting a template deployment @@ -795,7 +795,7 @@ export interface Deployments { beginDeleteAndWait( resourceGroupName: string, deploymentName: string, - options?: DeploymentsDeleteOptionalParams + options?: DeploymentsDeleteOptionalParams, ): Promise; /** * Checks whether the deployment exists. @@ -807,7 +807,7 @@ export interface Deployments { checkExistence( resourceGroupName: string, deploymentName: string, - options?: DeploymentsCheckExistenceOptionalParams + options?: DeploymentsCheckExistenceOptionalParams, ): Promise; /** * You can provide the template and parameters directly in the request or link to JSON files. @@ -821,7 +821,7 @@ export interface Deployments { resourceGroupName: string, deploymentName: string, parameters: Deployment, - options?: DeploymentsCreateOrUpdateOptionalParams + options?: DeploymentsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -840,7 +840,7 @@ export interface Deployments { resourceGroupName: string, deploymentName: string, parameters: Deployment, - options?: DeploymentsCreateOrUpdateOptionalParams + options?: DeploymentsCreateOrUpdateOptionalParams, ): Promise; /** * Gets a deployment. @@ -851,7 +851,7 @@ export interface Deployments { get( resourceGroupName: string, deploymentName: string, - options?: DeploymentsGetOptionalParams + options?: DeploymentsGetOptionalParams, ): Promise; /** * You can cancel a deployment only if the provisioningState is Accepted or Running. After the @@ -864,7 +864,7 @@ export interface Deployments { cancel( resourceGroupName: string, deploymentName: string, - options?: DeploymentsCancelOptionalParams + options?: DeploymentsCancelOptionalParams, ): Promise; /** * Validates whether the specified template is syntactically correct and will be accepted by Azure @@ -879,7 +879,7 @@ export interface Deployments { resourceGroupName: string, deploymentName: string, parameters: Deployment, - options?: DeploymentsValidateOptionalParams + options?: DeploymentsValidateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -899,7 +899,7 @@ export interface Deployments { resourceGroupName: string, deploymentName: string, parameters: Deployment, - options?: DeploymentsValidateOptionalParams + options?: DeploymentsValidateOptionalParams, ): Promise; /** * Returns changes that will be made by the deployment if executed at the scope of the resource group. @@ -913,7 +913,7 @@ export interface Deployments { resourceGroupName: string, deploymentName: string, parameters: DeploymentWhatIf, - options?: DeploymentsWhatIfOptionalParams + options?: DeploymentsWhatIfOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -932,7 +932,7 @@ export interface Deployments { resourceGroupName: string, deploymentName: string, parameters: DeploymentWhatIf, - options?: DeploymentsWhatIfOptionalParams + options?: DeploymentsWhatIfOptionalParams, ): Promise; /** * Exports the template used for specified deployment. @@ -943,7 +943,7 @@ export interface Deployments { exportTemplate( resourceGroupName: string, deploymentName: string, - options?: DeploymentsExportTemplateOptionalParams + options?: DeploymentsExportTemplateOptionalParams, ): Promise; /** * Calculate the hash of the given template. @@ -952,6 +952,6 @@ export interface Deployments { */ calculateTemplateHash( template: Record, - options?: DeploymentsCalculateTemplateHashOptionalParams + options?: DeploymentsCalculateTemplateHashOptionalParams, ): Promise; } diff --git a/sdk/resources/arm-resources/src/operationsInterfaces/operations.ts b/sdk/resources/arm-resources/src/operationsInterfaces/operations.ts index ac34435954c03..65cdf8035ab0b 100644 --- a/sdk/resources/arm-resources/src/operationsInterfaces/operations.ts +++ b/sdk/resources/arm-resources/src/operationsInterfaces/operations.ts @@ -17,6 +17,6 @@ export interface Operations { * @param options The options parameters. */ list( - options?: OperationsListOptionalParams + options?: OperationsListOptionalParams, ): PagedAsyncIterableIterator; } diff --git a/sdk/resources/arm-resources/src/operationsInterfaces/providerResourceTypes.ts b/sdk/resources/arm-resources/src/operationsInterfaces/providerResourceTypes.ts index f7010e50bd64c..0e4c5c2f6dcb0 100644 --- a/sdk/resources/arm-resources/src/operationsInterfaces/providerResourceTypes.ts +++ b/sdk/resources/arm-resources/src/operationsInterfaces/providerResourceTypes.ts @@ -8,7 +8,7 @@ import { ProviderResourceTypesListOptionalParams, - ProviderResourceTypesListResponse + ProviderResourceTypesListResponse, } from "../models"; /** Interface representing a ProviderResourceTypes. */ @@ -20,6 +20,6 @@ export interface ProviderResourceTypes { */ list( resourceProviderNamespace: string, - options?: ProviderResourceTypesListOptionalParams + options?: ProviderResourceTypesListOptionalParams, ): Promise; } diff --git a/sdk/resources/arm-resources/src/operationsInterfaces/providers.ts b/sdk/resources/arm-resources/src/operationsInterfaces/providers.ts index ee8f17fce3c83..9f74bdab23077 100644 --- a/sdk/resources/arm-resources/src/operationsInterfaces/providers.ts +++ b/sdk/resources/arm-resources/src/operationsInterfaces/providers.ts @@ -21,7 +21,7 @@ import { ProvidersGetOptionalParams, ProvidersGetResponse, ProvidersGetAtTenantScopeOptionalParams, - ProvidersGetAtTenantScopeResponse + ProvidersGetAtTenantScopeResponse, } from "../models"; /// @@ -32,14 +32,14 @@ export interface Providers { * @param options The options parameters. */ list( - options?: ProvidersListOptionalParams + options?: ProvidersListOptionalParams, ): PagedAsyncIterableIterator; /** * Gets all resource providers for the tenant. * @param options The options parameters. */ listAtTenantScope( - options?: ProvidersListAtTenantScopeOptionalParams + options?: ProvidersListAtTenantScopeOptionalParams, ): PagedAsyncIterableIterator; /** * Unregisters a subscription from a resource provider. @@ -48,10 +48,13 @@ export interface Providers { */ unregister( resourceProviderNamespace: string, - options?: ProvidersUnregisterOptionalParams + options?: ProvidersUnregisterOptionalParams, ): Promise; /** - * Registers a management group with a resource provider. + * Registers a management group with a resource provider. Use this operation to register a resource + * provider with resource types that can be deployed at the management group scope. It does not + * recursively register subscriptions within the management group. Instead, you must register + * subscriptions individually. * @param resourceProviderNamespace The namespace of the resource provider to register. * @param groupId The management group ID. * @param options The options parameters. @@ -59,7 +62,7 @@ export interface Providers { registerAtManagementGroupScope( resourceProviderNamespace: string, groupId: string, - options?: ProvidersRegisterAtManagementGroupScopeOptionalParams + options?: ProvidersRegisterAtManagementGroupScopeOptionalParams, ): Promise; /** * Get the provider permissions. @@ -68,7 +71,7 @@ export interface Providers { */ providerPermissions( resourceProviderNamespace: string, - options?: ProvidersProviderPermissionsOptionalParams + options?: ProvidersProviderPermissionsOptionalParams, ): Promise; /** * Registers a subscription with a resource provider. @@ -77,7 +80,7 @@ export interface Providers { */ register( resourceProviderNamespace: string, - options?: ProvidersRegisterOptionalParams + options?: ProvidersRegisterOptionalParams, ): Promise; /** * Gets the specified resource provider. @@ -86,7 +89,7 @@ export interface Providers { */ get( resourceProviderNamespace: string, - options?: ProvidersGetOptionalParams + options?: ProvidersGetOptionalParams, ): Promise; /** * Gets the specified resource provider at the tenant level. @@ -95,6 +98,6 @@ export interface Providers { */ getAtTenantScope( resourceProviderNamespace: string, - options?: ProvidersGetAtTenantScopeOptionalParams + options?: ProvidersGetAtTenantScopeOptionalParams, ): Promise; } diff --git a/sdk/resources/arm-resources/src/operationsInterfaces/resourceGroups.ts b/sdk/resources/arm-resources/src/operationsInterfaces/resourceGroups.ts index e7803b565192a..3b58da505d026 100644 --- a/sdk/resources/arm-resources/src/operationsInterfaces/resourceGroups.ts +++ b/sdk/resources/arm-resources/src/operationsInterfaces/resourceGroups.ts @@ -23,7 +23,7 @@ import { ResourceGroupsUpdateResponse, ExportTemplateRequest, ResourceGroupsExportTemplateOptionalParams, - ResourceGroupsExportTemplateResponse + ResourceGroupsExportTemplateResponse, } from "../models"; /// @@ -34,7 +34,7 @@ export interface ResourceGroups { * @param options The options parameters. */ list( - options?: ResourceGroupsListOptionalParams + options?: ResourceGroupsListOptionalParams, ): PagedAsyncIterableIterator; /** * Checks whether a resource group exists. @@ -43,7 +43,7 @@ export interface ResourceGroups { */ checkExistence( resourceGroupName: string, - options?: ResourceGroupsCheckExistenceOptionalParams + options?: ResourceGroupsCheckExistenceOptionalParams, ): Promise; /** * Creates or updates a resource group. @@ -56,7 +56,7 @@ export interface ResourceGroups { createOrUpdate( resourceGroupName: string, parameters: ResourceGroup, - options?: ResourceGroupsCreateOrUpdateOptionalParams + options?: ResourceGroupsCreateOrUpdateOptionalParams, ): Promise; /** * When you delete a resource group, all of its resources are also deleted. Deleting a resource group @@ -66,7 +66,7 @@ export interface ResourceGroups { */ beginDelete( resourceGroupName: string, - options?: ResourceGroupsDeleteOptionalParams + options?: ResourceGroupsDeleteOptionalParams, ): Promise, void>>; /** * When you delete a resource group, all of its resources are also deleted. Deleting a resource group @@ -76,7 +76,7 @@ export interface ResourceGroups { */ beginDeleteAndWait( resourceGroupName: string, - options?: ResourceGroupsDeleteOptionalParams + options?: ResourceGroupsDeleteOptionalParams, ): Promise; /** * Gets a resource group. @@ -85,7 +85,7 @@ export interface ResourceGroups { */ get( resourceGroupName: string, - options?: ResourceGroupsGetOptionalParams + options?: ResourceGroupsGetOptionalParams, ): Promise; /** * Resource groups can be updated through a simple PATCH operation to a group address. The format of @@ -98,7 +98,7 @@ export interface ResourceGroups { update( resourceGroupName: string, parameters: ResourceGroupPatchable, - options?: ResourceGroupsUpdateOptionalParams + options?: ResourceGroupsUpdateOptionalParams, ): Promise; /** * Captures the specified resource group as a template. @@ -109,7 +109,7 @@ export interface ResourceGroups { beginExportTemplate( resourceGroupName: string, parameters: ExportTemplateRequest, - options?: ResourceGroupsExportTemplateOptionalParams + options?: ResourceGroupsExportTemplateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -125,6 +125,6 @@ export interface ResourceGroups { beginExportTemplateAndWait( resourceGroupName: string, parameters: ExportTemplateRequest, - options?: ResourceGroupsExportTemplateOptionalParams + options?: ResourceGroupsExportTemplateOptionalParams, ): Promise; } diff --git a/sdk/resources/arm-resources/src/operationsInterfaces/resources.ts b/sdk/resources/arm-resources/src/operationsInterfaces/resources.ts index 4a0e0e0452bed..15fa5db00db3e 100644 --- a/sdk/resources/arm-resources/src/operationsInterfaces/resources.ts +++ b/sdk/resources/arm-resources/src/operationsInterfaces/resources.ts @@ -33,7 +33,7 @@ import { ResourcesUpdateByIdOptionalParams, ResourcesUpdateByIdResponse, ResourcesGetByIdOptionalParams, - ResourcesGetByIdResponse + ResourcesGetByIdResponse, } from "../models"; /// @@ -46,14 +46,14 @@ export interface Resources { */ listByResourceGroup( resourceGroupName: string, - options?: ResourcesListByResourceGroupOptionalParams + options?: ResourcesListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator; /** * Get all the resources in a subscription. * @param options The options parameters. */ list( - options?: ResourcesListOptionalParams + options?: ResourcesListOptionalParams, ): PagedAsyncIterableIterator; /** * The resources to be moved must be in the same source resource group in the source subscription being @@ -68,7 +68,7 @@ export interface Resources { beginMoveResources( sourceResourceGroupName: string, parameters: ResourcesMoveInfo, - options?: ResourcesMoveResourcesOptionalParams + options?: ResourcesMoveResourcesOptionalParams, ): Promise, void>>; /** * The resources to be moved must be in the same source resource group in the source subscription being @@ -83,7 +83,7 @@ export interface Resources { beginMoveResourcesAndWait( sourceResourceGroupName: string, parameters: ResourcesMoveInfo, - options?: ResourcesMoveResourcesOptionalParams + options?: ResourcesMoveResourcesOptionalParams, ): Promise; /** * This operation checks whether the specified resources can be moved to the target. The resources to @@ -100,7 +100,7 @@ export interface Resources { beginValidateMoveResources( sourceResourceGroupName: string, parameters: ResourcesMoveInfo, - options?: ResourcesValidateMoveResourcesOptionalParams + options?: ResourcesValidateMoveResourcesOptionalParams, ): Promise, void>>; /** * This operation checks whether the specified resources can be moved to the target. The resources to @@ -117,7 +117,7 @@ export interface Resources { beginValidateMoveResourcesAndWait( sourceResourceGroupName: string, parameters: ResourcesMoveInfo, - options?: ResourcesValidateMoveResourcesOptionalParams + options?: ResourcesValidateMoveResourcesOptionalParams, ): Promise; /** * Checks whether a resource exists. @@ -137,7 +137,7 @@ export interface Resources { resourceType: string, resourceName: string, apiVersion: string, - options?: ResourcesCheckExistenceOptionalParams + options?: ResourcesCheckExistenceOptionalParams, ): Promise; /** * Deletes a resource. @@ -157,7 +157,7 @@ export interface Resources { resourceType: string, resourceName: string, apiVersion: string, - options?: ResourcesDeleteOptionalParams + options?: ResourcesDeleteOptionalParams, ): Promise, void>>; /** * Deletes a resource. @@ -177,7 +177,7 @@ export interface Resources { resourceType: string, resourceName: string, apiVersion: string, - options?: ResourcesDeleteOptionalParams + options?: ResourcesDeleteOptionalParams, ): Promise; /** * Creates a resource. @@ -199,7 +199,7 @@ export interface Resources { resourceName: string, apiVersion: string, parameters: GenericResource, - options?: ResourcesCreateOrUpdateOptionalParams + options?: ResourcesCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -226,7 +226,7 @@ export interface Resources { resourceName: string, apiVersion: string, parameters: GenericResource, - options?: ResourcesCreateOrUpdateOptionalParams + options?: ResourcesCreateOrUpdateOptionalParams, ): Promise; /** * Updates a resource. @@ -248,7 +248,7 @@ export interface Resources { resourceName: string, apiVersion: string, parameters: GenericResource, - options?: ResourcesUpdateOptionalParams + options?: ResourcesUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -275,7 +275,7 @@ export interface Resources { resourceName: string, apiVersion: string, parameters: GenericResource, - options?: ResourcesUpdateOptionalParams + options?: ResourcesUpdateOptionalParams, ): Promise; /** * Gets a resource. @@ -295,10 +295,12 @@ export interface Resources { resourceType: string, resourceName: string, apiVersion: string, - options?: ResourcesGetOptionalParams + options?: ResourcesGetOptionalParams, ): Promise; /** - * Checks by ID whether a resource exists. + * Checks by ID whether a resource exists. This API currently works only for a limited set of Resource + * providers. In the event that a Resource provider does not implement this API, ARM will respond with + * a 405. The alternative then is to use the GET API to check for the existence of the resource. * @param resourceId The fully qualified ID of the resource, including the resource name and resource * type. Use the format, * /subscriptions/{guid}/resourceGroups/{resource-group-name}/{resource-provider-namespace}/{resource-type}/{resource-name} @@ -308,7 +310,7 @@ export interface Resources { checkExistenceById( resourceId: string, apiVersion: string, - options?: ResourcesCheckExistenceByIdOptionalParams + options?: ResourcesCheckExistenceByIdOptionalParams, ): Promise; /** * Deletes a resource by ID. @@ -321,7 +323,7 @@ export interface Resources { beginDeleteById( resourceId: string, apiVersion: string, - options?: ResourcesDeleteByIdOptionalParams + options?: ResourcesDeleteByIdOptionalParams, ): Promise, void>>; /** * Deletes a resource by ID. @@ -334,7 +336,7 @@ export interface Resources { beginDeleteByIdAndWait( resourceId: string, apiVersion: string, - options?: ResourcesDeleteByIdOptionalParams + options?: ResourcesDeleteByIdOptionalParams, ): Promise; /** * Create a resource by ID. @@ -349,7 +351,7 @@ export interface Resources { resourceId: string, apiVersion: string, parameters: GenericResource, - options?: ResourcesCreateOrUpdateByIdOptionalParams + options?: ResourcesCreateOrUpdateByIdOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -369,7 +371,7 @@ export interface Resources { resourceId: string, apiVersion: string, parameters: GenericResource, - options?: ResourcesCreateOrUpdateByIdOptionalParams + options?: ResourcesCreateOrUpdateByIdOptionalParams, ): Promise; /** * Updates a resource by ID. @@ -384,7 +386,7 @@ export interface Resources { resourceId: string, apiVersion: string, parameters: GenericResource, - options?: ResourcesUpdateByIdOptionalParams + options?: ResourcesUpdateByIdOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -404,7 +406,7 @@ export interface Resources { resourceId: string, apiVersion: string, parameters: GenericResource, - options?: ResourcesUpdateByIdOptionalParams + options?: ResourcesUpdateByIdOptionalParams, ): Promise; /** * Gets a resource by ID. @@ -417,6 +419,6 @@ export interface Resources { getById( resourceId: string, apiVersion: string, - options?: ResourcesGetByIdOptionalParams + options?: ResourcesGetByIdOptionalParams, ): Promise; } diff --git a/sdk/resources/arm-resources/src/operationsInterfaces/tagsOperations.ts b/sdk/resources/arm-resources/src/operationsInterfaces/tagsOperations.ts index 134193a3164fe..a3f1cc1e0c370 100644 --- a/sdk/resources/arm-resources/src/operationsInterfaces/tagsOperations.ts +++ b/sdk/resources/arm-resources/src/operationsInterfaces/tagsOperations.ts @@ -7,6 +7,7 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { TagDetails, TagsListOptionalParams, @@ -24,7 +25,7 @@ import { TagsUpdateAtScopeResponse, TagsGetAtScopeOptionalParams, TagsGetAtScopeResponse, - TagsDeleteAtScopeOptionalParams + TagsDeleteAtScopeOptionalParams, } from "../models"; /// @@ -38,7 +39,7 @@ export interface TagsOperations { * @param options The options parameters. */ list( - options?: TagsListOptionalParams + options?: TagsListOptionalParams, ): PagedAsyncIterableIterator; /** * This operation allows deleting a value from the list of predefined values for an existing predefined @@ -51,7 +52,7 @@ export interface TagsOperations { deleteValue( tagName: string, tagValue: string, - options?: TagsDeleteValueOptionalParams + options?: TagsDeleteValueOptionalParams, ): Promise; /** * This operation allows adding a value to the list of predefined values for an existing predefined tag @@ -63,7 +64,7 @@ export interface TagsOperations { createOrUpdateValue( tagName: string, tagValue: string, - options?: TagsCreateOrUpdateValueOptionalParams + options?: TagsCreateOrUpdateValueOptionalParams, ): Promise; /** * This operation allows adding a name to the list of predefined tag names for the given subscription. @@ -74,7 +75,7 @@ export interface TagsOperations { */ createOrUpdate( tagName: string, - options?: TagsCreateOrUpdateOptionalParams + options?: TagsCreateOrUpdateOptionalParams, ): Promise; /** * This operation allows deleting a name from the list of predefined tag names for the given @@ -91,10 +92,27 @@ export interface TagsOperations { * @param parameters Wrapper resource for tags API requests and responses. * @param options The options parameters. */ - createOrUpdateAtScope( + beginCreateOrUpdateAtScope( scope: string, parameters: TagsResource, - options?: TagsCreateOrUpdateAtScopeOptionalParams + options?: TagsCreateOrUpdateAtScopeOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + TagsCreateOrUpdateAtScopeResponse + > + >; + /** + * This operation allows adding or replacing the entire set of tags on the specified resource or + * subscription. The specified entity can have a maximum of 50 tags. + * @param scope The resource scope. + * @param parameters Wrapper resource for tags API requests and responses. + * @param options The options parameters. + */ + beginCreateOrUpdateAtScopeAndWait( + scope: string, + parameters: TagsResource, + options?: TagsCreateOrUpdateAtScopeOptionalParams, ): Promise; /** * This operation allows replacing, merging or selectively deleting tags on the specified resource or @@ -106,10 +124,30 @@ export interface TagsOperations { * @param parameters Wrapper resource for tags patch API request only. * @param options The options parameters. */ - updateAtScope( + beginUpdateAtScope( scope: string, parameters: TagsPatchResource, - options?: TagsUpdateAtScopeOptionalParams + options?: TagsUpdateAtScopeOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + TagsUpdateAtScopeResponse + > + >; + /** + * This operation allows replacing, merging or selectively deleting tags on the specified resource or + * subscription. The specified entity can have a maximum of 50 tags at the end of the operation. The + * 'replace' option replaces the entire set of existing tags with a new set. The 'merge' option allows + * adding tags with new names and updating the values of tags with existing names. The 'delete' option + * allows selectively deleting tags based on given names or name/value pairs. + * @param scope The resource scope. + * @param parameters Wrapper resource for tags patch API request only. + * @param options The options parameters. + */ + beginUpdateAtScopeAndWait( + scope: string, + parameters: TagsPatchResource, + options?: TagsUpdateAtScopeOptionalParams, ): Promise; /** * Gets the entire set of tags on a resource or subscription. @@ -118,15 +156,24 @@ export interface TagsOperations { */ getAtScope( scope: string, - options?: TagsGetAtScopeOptionalParams + options?: TagsGetAtScopeOptionalParams, ): Promise; /** * Deletes the entire set of tags on a resource or subscription. * @param scope The resource scope. * @param options The options parameters. */ - deleteAtScope( + beginDeleteAtScope( + scope: string, + options?: TagsDeleteAtScopeOptionalParams, + ): Promise, void>>; + /** + * Deletes the entire set of tags on a resource or subscription. + * @param scope The resource scope. + * @param options The options parameters. + */ + beginDeleteAtScopeAndWait( scope: string, - options?: TagsDeleteAtScopeOptionalParams + options?: TagsDeleteAtScopeOptionalParams, ): Promise; } diff --git a/sdk/resources/arm-resources/src/pagingHelper.ts b/sdk/resources/arm-resources/src/pagingHelper.ts index 269a2b9814b51..205cccc265927 100644 --- a/sdk/resources/arm-resources/src/pagingHelper.ts +++ b/sdk/resources/arm-resources/src/pagingHelper.ts @@ -28,7 +28,7 @@ export function getContinuationToken(page: unknown): string | undefined { export function setContinuationToken( page: unknown, - continuationToken: string | undefined + continuationToken: string | undefined, ): void { if (typeof page !== "object" || page === null || !continuationToken) { return; diff --git a/sdk/resources/arm-resources/src/resourceManagementClient.ts b/sdk/resources/arm-resources/src/resourceManagementClient.ts index b6e0ea2587263..3635ce119af84 100644 --- a/sdk/resources/arm-resources/src/resourceManagementClient.ts +++ b/sdk/resources/arm-resources/src/resourceManagementClient.ts @@ -11,7 +11,7 @@ import * as coreRestPipeline from "@azure/core-rest-pipeline"; import { PipelineRequest, PipelineResponse, - SendRequest + SendRequest, } from "@azure/core-rest-pipeline"; import * as coreAuth from "@azure/core-auth"; import { @@ -22,7 +22,7 @@ import { ResourcesImpl, ResourceGroupsImpl, TagsOperationsImpl, - DeploymentOperationsImpl + DeploymentOperationsImpl, } from "./operations"; import { Operations, @@ -32,14 +32,14 @@ import { Resources, ResourceGroups, TagsOperations, - DeploymentOperations + DeploymentOperations, } from "./operationsInterfaces"; import { ResourceManagementClientOptionalParams } from "./models"; export class ResourceManagementClient extends coreClient.ServiceClient { $host: string; apiVersion: string; - subscriptionId: string; + subscriptionId?: string; /** * Initializes a new instance of the ResourceManagementClient class. @@ -50,13 +50,27 @@ export class ResourceManagementClient extends coreClient.ServiceClient { constructor( credentials: coreAuth.TokenCredential, subscriptionId: string, - options?: ResourceManagementClientOptionalParams + options?: ResourceManagementClientOptionalParams, + ); + constructor( + credentials: coreAuth.TokenCredential, + options?: ResourceManagementClientOptionalParams, + ); + constructor( + credentials: coreAuth.TokenCredential, + subscriptionIdOrOptions?: ResourceManagementClientOptionalParams | string, + options?: ResourceManagementClientOptionalParams, ) { if (credentials === undefined) { throw new Error("'credentials' cannot be null"); } - if (subscriptionId === undefined) { - throw new Error("'subscriptionId' cannot be null"); + + let subscriptionId: string | undefined; + + if (typeof subscriptionIdOrOptions === "string") { + subscriptionId = subscriptionIdOrOptions; + } else if (typeof subscriptionIdOrOptions === "object") { + options = subscriptionIdOrOptions; } // Initializing default values for options @@ -65,10 +79,10 @@ export class ResourceManagementClient extends coreClient.ServiceClient { } const defaults: ResourceManagementClientOptionalParams = { requestContentType: "application/json; charset=utf-8", - credential: credentials + credential: credentials, }; - const packageDetails = `azsdk-js-arm-resources/5.2.1`; + const packageDetails = `azsdk-js-arm-resources/6.0.0`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -78,20 +92,21 @@ export class ResourceManagementClient extends coreClient.ServiceClient { ...defaults, ...options, userAgentOptions: { - userAgentPrefix + userAgentPrefix, }, endpoint: - options.endpoint ?? options.baseUri ?? "https://management.azure.com" + options.endpoint ?? options.baseUri ?? "https://management.azure.com", }; super(optionsWithDefaults); let bearerTokenAuthenticationPolicyFound: boolean = false; if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) { - const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies(); + const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = + options.pipeline.getOrderedPolicies(); bearerTokenAuthenticationPolicyFound = pipelinePolicies.some( (pipelinePolicy) => pipelinePolicy.name === - coreRestPipeline.bearerTokenAuthenticationPolicyName + coreRestPipeline.bearerTokenAuthenticationPolicyName, ); } if ( @@ -101,7 +116,7 @@ export class ResourceManagementClient extends coreClient.ServiceClient { !bearerTokenAuthenticationPolicyFound ) { this.pipeline.removePolicy({ - name: coreRestPipeline.bearerTokenAuthenticationPolicyName + name: coreRestPipeline.bearerTokenAuthenticationPolicyName, }); this.pipeline.addPolicy( coreRestPipeline.bearerTokenAuthenticationPolicy({ @@ -111,9 +126,9 @@ export class ResourceManagementClient extends coreClient.ServiceClient { `${optionsWithDefaults.endpoint}/.default`, challengeCallbacks: { authorizeRequestOnChallenge: - coreClient.authorizeRequestOnClaimChallenge - } - }) + coreClient.authorizeRequestOnClaimChallenge, + }, + }), ); } // Parameter assignments @@ -121,7 +136,7 @@ export class ResourceManagementClient extends coreClient.ServiceClient { // Assigning values to Constant parameters this.$host = options.$host || "https://management.azure.com"; - this.apiVersion = options.apiVersion || "2021-04-01"; + this.apiVersion = options.apiVersion || "2024-03-01"; this.operations = new OperationsImpl(this); this.deployments = new DeploymentsImpl(this); this.providers = new ProvidersImpl(this); @@ -142,7 +157,7 @@ export class ResourceManagementClient extends coreClient.ServiceClient { name: "CustomApiVersionPolicy", async sendRequest( request: PipelineRequest, - next: SendRequest + next: SendRequest, ): Promise { const param = request.url.split("?"); if (param.length > 1) { @@ -156,7 +171,7 @@ export class ResourceManagementClient extends coreClient.ServiceClient { request.url = param[0] + "?" + newParams.join("&"); } return next(request); - } + }, }; this.pipeline.addPolicy(apiVersionPolicy); } diff --git a/sdk/resources/arm-resources/test/sampleTest.ts b/sdk/resources/arm-resources/test/sampleTest.ts new file mode 100644 index 0000000000000..d64be981b6946 --- /dev/null +++ b/sdk/resources/arm-resources/test/sampleTest.ts @@ -0,0 +1,43 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { + Recorder, + RecorderStartOptions, + env, +} from "@azure-tools/test-recorder"; +import { assert } from "chai"; +import { Context } from "mocha"; + +const replaceableVariables: Record = { + AZURE_CLIENT_ID: "azure_client_id", + AZURE_CLIENT_SECRET: "azure_client_secret", + AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888", + SUBSCRIPTION_ID: "azure_subscription_id", +}; + +const recorderOptions: RecorderStartOptions = { + envSetupForPlayback: replaceableVariables, +}; + +describe("My test", () => { + let recorder: Recorder; + + beforeEach(async function (this: Context) { + recorder = new Recorder(this.currentTest); + await recorder.start(recorderOptions); + }); + + afterEach(async function () { + await recorder.stop(); + }); + + it("sample test", async function () { + console.log("Hi, I'm a test!"); + }); +}); diff --git a/sdk/resources/arm-resources/tsconfig.json b/sdk/resources/arm-resources/tsconfig.json index b26efa5c66ab4..3e6ae96443f33 100644 --- a/sdk/resources/arm-resources/tsconfig.json +++ b/sdk/resources/arm-resources/tsconfig.json @@ -15,17 +15,11 @@ ], "declaration": true, "outDir": "./dist-esm", - "importHelpers": true, - "paths": { - "@azure/arm-resources": [ - "./src/index" - ] - } + "importHelpers": true }, "include": [ "./src/**/*.ts", - "./test/**/*.ts", - "samples-dev/**/*.ts" + "./test/**/*.ts" ], "exclude": [ "node_modules" diff --git a/sdk/resourcesdeploymentstacks/arm-resourcesdeploymentstacks/CHANGELOG.md b/sdk/resourcesdeploymentstacks/arm-resourcesdeploymentstacks/CHANGELOG.md index 694e9a616eb25..60083fb8b3696 100644 --- a/sdk/resourcesdeploymentstacks/arm-resourcesdeploymentstacks/CHANGELOG.md +++ b/sdk/resourcesdeploymentstacks/arm-resourcesdeploymentstacks/CHANGELOG.md @@ -1,5 +1,5 @@ # Release History -## 1.0.0-beta.1 (2023-08-21) +## 1.0.0 (2024-05-22) -The package of @azure/arm-resourcesdeploymentstacks is using our next generation design principles. To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/js/mgmt/quickstart ). +The package of @azure/arm-resourcesdeploymentstacks is using our next generation design principles. To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/js/mgmt/quickstart). diff --git a/sdk/resourcesdeploymentstacks/arm-resourcesdeploymentstacks/LICENSE b/sdk/resourcesdeploymentstacks/arm-resourcesdeploymentstacks/LICENSE index 3a1d9b6f24f73..7d59347409658 100644 --- a/sdk/resourcesdeploymentstacks/arm-resourcesdeploymentstacks/LICENSE +++ b/sdk/resourcesdeploymentstacks/arm-resourcesdeploymentstacks/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2023 Microsoft +Copyright (c) 2024 Microsoft Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/sdk/resourcesdeploymentstacks/arm-resourcesdeploymentstacks/README.md b/sdk/resourcesdeploymentstacks/arm-resourcesdeploymentstacks/README.md index 0f21b63ce0a59..54f8a2ed28595 100644 --- a/sdk/resourcesdeploymentstacks/arm-resourcesdeploymentstacks/README.md +++ b/sdk/resourcesdeploymentstacks/arm-resourcesdeploymentstacks/README.md @@ -2,11 +2,11 @@ This package contains an isomorphic SDK (runs both in Node.js and in browsers) for Azure DeploymentStacks client. -The APIs listed in this specification can be used to manage deployment stack resources through the Azure Resource Manager. +The APIs listed in this specification can be used to manage Deployment stack resources through the Azure Resource Manager. [Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/resourcesdeploymentstacks/arm-resourcesdeploymentstacks) | [Package (NPM)](https://www.npmjs.com/package/@azure/arm-resourcesdeploymentstacks) | -[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-resourcesdeploymentstacks?view=azure-node-preview) | +[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-resourcesdeploymentstacks) | [Samples](https://github.com/Azure-Samples/azure-samples-js-management) ## Getting started diff --git a/sdk/resourcesdeploymentstacks/arm-resourcesdeploymentstacks/_meta.json b/sdk/resourcesdeploymentstacks/arm-resourcesdeploymentstacks/_meta.json index 2e89690947624..6f675c5d5d6aa 100644 --- a/sdk/resourcesdeploymentstacks/arm-resourcesdeploymentstacks/_meta.json +++ b/sdk/resourcesdeploymentstacks/arm-resourcesdeploymentstacks/_meta.json @@ -1,8 +1,8 @@ { - "commit": "90e96702622e3cdd2a51701157a37b96b895383b", + "commit": "61db561c7b16295a74a39fa76e58967fb0c621d7", "readme": "specification/resources/resource-manager/readme.md", - "autorest_command": "autorest --version=3.9.3 --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\\resources\\resource-manager\\readme.md --use=@autorest/typescript@6.0.8 --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/resources/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.0", - "use": "@autorest/typescript@6.0.8" + "release_tool": "@azure-tools/js-sdk-release-tools@2.7.9", + "use": "@autorest/typescript@^6.0.12" } \ No newline at end of file diff --git a/sdk/resourcesdeploymentstacks/arm-resourcesdeploymentstacks/package.json b/sdk/resourcesdeploymentstacks/arm-resourcesdeploymentstacks/package.json index 7bd0545444ec7..bd16518b056d5 100644 --- a/sdk/resourcesdeploymentstacks/arm-resourcesdeploymentstacks/package.json +++ b/sdk/resourcesdeploymentstacks/arm-resourcesdeploymentstacks/package.json @@ -3,7 +3,7 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for DeploymentStacksClient.", - "version": "1.0.0-beta.1", + "version": "1.0.0", "engines": { "node": ">=18.0.0" }, @@ -12,8 +12,8 @@ "@azure/abort-controller": "^1.0.0", "@azure/core-paging": "^1.2.0", "@azure/core-client": "^1.7.0", - "@azure/core-auth": "^1.3.0", - "@azure/core-rest-pipeline": "^1.12.0", + "@azure/core-auth": "^1.6.0", + "@azure/core-rest-pipeline": "^1.14.0", "tslib": "^2.2.0" }, "keywords": [ @@ -32,19 +32,20 @@ "mkdirp": "^3.0.1", "typescript": "~5.4.5", "uglify-js": "^3.4.9", - "rimraf": "^5.0.5", + "rimraf": "^5.0.0", "dotenv": "^16.0.0", + "@azure/dev-tool": "^1.0.0", "@azure/identity": "^4.0.1", "@azure-tools/test-recorder": "^3.0.0", "@azure-tools/test-credential": "^1.0.0", "mocha": "^10.0.0", + "@types/mocha": "^10.0.0", + "tsx": "^4.7.1", "@types/chai": "^4.2.8", "chai": "^4.2.0", "cross-env": "^7.0.2", "@types/node": "^18.0.0", - "ts-node": "^10.0.0", - "@azure/dev-tool": "^1.0.0", - "@types/mocha": "^10.0.0" + "ts-node": "^10.0.0" }, "repository": { "type": "git", @@ -77,7 +78,6 @@ "pack": "npm pack 2>&1", "extract-api": "dev-tool run extract-api", "lint": "echo skipped", - "audit": "echo skipped", "clean": "rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log", "build:node": "echo skipped", "build:browser": "echo skipped", @@ -106,13 +106,5 @@ ] }, "autoPublish": true, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/resourcesdeploymentstacks/arm-resourcesdeploymentstacks", - "//sampleConfiguration": { - "productName": "", - "productSlugs": [ - "azure" - ], - "disableDocsMs": true, - "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-resourcesdeploymentstacks?view=azure-node-preview" - } -} + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/resourcesdeploymentstacks/arm-resourcesdeploymentstacks" +} \ No newline at end of file diff --git a/sdk/resourcesdeploymentstacks/arm-resourcesdeploymentstacks/review/arm-resourcesdeploymentstacks.api.md b/sdk/resourcesdeploymentstacks/arm-resourcesdeploymentstacks/review/arm-resourcesdeploymentstacks.api.md index 5453d902d96f6..3c39cb82c6004 100644 --- a/sdk/resourcesdeploymentstacks/arm-resourcesdeploymentstacks/review/arm-resourcesdeploymentstacks.api.md +++ b/sdk/resourcesdeploymentstacks/arm-resourcesdeploymentstacks/review/arm-resourcesdeploymentstacks.api.md @@ -10,6 +10,13 @@ import { OperationState } from '@azure/core-lro'; import { PagedAsyncIterableIterator } from '@azure/core-paging'; import { SimplePollerLike } from '@azure/core-lro'; +// @public +export interface ActionOnUnmanage { + managementGroups?: DeploymentStacksDeleteDetachEnum; + resourceGroups?: DeploymentStacksDeleteDetachEnum; + resources: DeploymentStacksDeleteDetachEnum; +} + // @public export interface AzureResourceBase { readonly id?: string; @@ -35,9 +42,18 @@ export type DenySettingsMode = string; // @public export type DenyStatusMode = string; +// @public +export interface DeploymentParameter { + reference?: KeyVaultParameterReference; + type?: string; + value?: any; +} + // @public export interface DeploymentStack extends AzureResourceBase { - actionOnUnmanage?: DeploymentStackPropertiesActionOnUnmanage; + actionOnUnmanage?: ActionOnUnmanage; + bypassStackOutOfSyncError?: boolean; + readonly correlationId?: string; debugSetting?: DeploymentStacksDebugSetting; readonly deletedResources?: ResourceReference[]; denySettings?: DenySettings; @@ -46,11 +62,13 @@ export interface DeploymentStack extends AzureResourceBase { description?: string; readonly detachedResources?: ResourceReference[]; readonly duration?: string; - error?: ErrorResponse; + error?: ErrorDetail; readonly failedResources?: ResourceReferenceExtended[]; location?: string; readonly outputs?: Record; - parameters?: Record; + parameters?: { + [propertyName: string]: DeploymentParameter; + }; parametersLink?: DeploymentStacksParametersLink; readonly provisioningState?: DeploymentStackProvisioningState; readonly resources?: ManagedResourceReference[]; @@ -69,7 +87,9 @@ export interface DeploymentStackListResult { // @public export interface DeploymentStackProperties extends DeploymentStacksError { - actionOnUnmanage: DeploymentStackPropertiesActionOnUnmanage; + actionOnUnmanage: ActionOnUnmanage; + bypassStackOutOfSyncError?: boolean; + readonly correlationId?: string; debugSetting?: DeploymentStacksDebugSetting; readonly deletedResources?: ResourceReference[]; denySettings: DenySettings; @@ -80,7 +100,9 @@ export interface DeploymentStackProperties extends DeploymentStacksError { readonly duration?: string; readonly failedResources?: ResourceReferenceExtended[]; readonly outputs?: Record; - parameters?: Record; + parameters?: { + [propertyName: string]: DeploymentParameter; + }; parametersLink?: DeploymentStacksParametersLink; readonly provisioningState?: DeploymentStackProvisioningState; readonly resources?: ManagedResourceReference[]; @@ -88,13 +110,6 @@ export interface DeploymentStackProperties extends DeploymentStacksError { templateLink?: DeploymentStacksTemplateLink; } -// @public -export interface DeploymentStackPropertiesActionOnUnmanage { - managementGroups?: DeploymentStacksDeleteDetachEnum; - resourceGroups?: DeploymentStacksDeleteDetachEnum; - resources: DeploymentStacksDeleteDetachEnum; -} - // @public export type DeploymentStackProvisioningState = string; @@ -112,6 +127,12 @@ export interface DeploymentStacks { beginDeleteAtResourceGroupAndWait(resourceGroupName: string, deploymentStackName: string, options?: DeploymentStacksDeleteAtResourceGroupOptionalParams): Promise; beginDeleteAtSubscription(deploymentStackName: string, options?: DeploymentStacksDeleteAtSubscriptionOptionalParams): Promise, void>>; beginDeleteAtSubscriptionAndWait(deploymentStackName: string, options?: DeploymentStacksDeleteAtSubscriptionOptionalParams): Promise; + beginValidateStackAtManagementGroup(managementGroupId: string, deploymentStackName: string, deploymentStack: DeploymentStack, options?: DeploymentStacksValidateStackAtManagementGroupOptionalParams): Promise, DeploymentStacksValidateStackAtManagementGroupResponse>>; + beginValidateStackAtManagementGroupAndWait(managementGroupId: string, deploymentStackName: string, deploymentStack: DeploymentStack, options?: DeploymentStacksValidateStackAtManagementGroupOptionalParams): Promise; + beginValidateStackAtResourceGroup(resourceGroupName: string, deploymentStackName: string, deploymentStack: DeploymentStack, options?: DeploymentStacksValidateStackAtResourceGroupOptionalParams): Promise, DeploymentStacksValidateStackAtResourceGroupResponse>>; + beginValidateStackAtResourceGroupAndWait(resourceGroupName: string, deploymentStackName: string, deploymentStack: DeploymentStack, options?: DeploymentStacksValidateStackAtResourceGroupOptionalParams): Promise; + beginValidateStackAtSubscription(deploymentStackName: string, deploymentStack: DeploymentStack, options?: DeploymentStacksValidateStackAtSubscriptionOptionalParams): Promise, DeploymentStacksValidateStackAtSubscriptionResponse>>; + beginValidateStackAtSubscriptionAndWait(deploymentStackName: string, deploymentStack: DeploymentStack, options?: DeploymentStacksValidateStackAtSubscriptionOptionalParams): Promise; exportTemplateAtManagementGroup(managementGroupId: string, deploymentStackName: string, options?: DeploymentStacksExportTemplateAtManagementGroupOptionalParams): Promise; exportTemplateAtResourceGroup(resourceGroupName: string, deploymentStackName: string, options?: DeploymentStacksExportTemplateAtResourceGroupOptionalParams): Promise; exportTemplateAtSubscription(deploymentStackName: string, options?: DeploymentStacksExportTemplateAtSubscriptionOptionalParams): Promise; @@ -184,6 +205,7 @@ export interface DeploymentStacksDeleteAtManagementGroupHeaders { // @public export interface DeploymentStacksDeleteAtManagementGroupOptionalParams extends coreClient.OperationOptions { + bypassStackOutOfSyncError?: boolean; resumeFrom?: string; unmanageActionManagementGroups?: UnmanageActionManagementGroupMode; unmanageActionResourceGroups?: UnmanageActionResourceGroupMode; @@ -199,7 +221,9 @@ export interface DeploymentStacksDeleteAtResourceGroupHeaders { // @public export interface DeploymentStacksDeleteAtResourceGroupOptionalParams extends coreClient.OperationOptions { + bypassStackOutOfSyncError?: boolean; resumeFrom?: string; + unmanageActionManagementGroups?: UnmanageActionManagementGroupMode; unmanageActionResourceGroups?: UnmanageActionResourceGroupMode; unmanageActionResources?: UnmanageActionResourceMode; updateIntervalInMs?: number; @@ -213,7 +237,9 @@ export interface DeploymentStacksDeleteAtSubscriptionHeaders { // @public export interface DeploymentStacksDeleteAtSubscriptionOptionalParams extends coreClient.OperationOptions { + bypassStackOutOfSyncError?: boolean; resumeFrom?: string; + unmanageActionManagementGroups?: UnmanageActionManagementGroupMode; unmanageActionResourceGroups?: UnmanageActionResourceGroupMode; unmanageActionResources?: UnmanageActionResourceMode; updateIntervalInMs?: number; @@ -224,7 +250,7 @@ export type DeploymentStacksDeleteDetachEnum = string; // @public export interface DeploymentStacksError { - error?: ErrorResponse; + error?: ErrorDetail; } // @public @@ -326,12 +352,79 @@ export interface DeploymentStacksTemplateLink { uri?: string; } +// @public +export interface DeploymentStacksValidateStackAtManagementGroupHeaders { + // (undocumented) + location?: string; + retryAfter?: string; +} + +// @public +export interface DeploymentStacksValidateStackAtManagementGroupOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type DeploymentStacksValidateStackAtManagementGroupResponse = DeploymentStackValidateResult; + +// @public +export interface DeploymentStacksValidateStackAtResourceGroupHeaders { + // (undocumented) + location?: string; + retryAfter?: string; +} + +// @public +export interface DeploymentStacksValidateStackAtResourceGroupOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type DeploymentStacksValidateStackAtResourceGroupResponse = DeploymentStackValidateResult; + +// @public +export interface DeploymentStacksValidateStackAtSubscriptionHeaders { + // (undocumented) + location?: string; + retryAfter?: string; +} + +// @public +export interface DeploymentStacksValidateStackAtSubscriptionOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type DeploymentStacksValidateStackAtSubscriptionResponse = DeploymentStackValidateResult; + // @public export interface DeploymentStackTemplateDefinition { template?: Record; templateLink?: DeploymentStacksTemplateLink; } +// @public +export interface DeploymentStackValidateProperties { + actionOnUnmanage?: ActionOnUnmanage; + correlationId?: string; + denySettings?: DenySettings; + deploymentScope?: string; + description?: string; + parameters?: { + [propertyName: string]: DeploymentParameter; + }; + templateLink?: DeploymentStacksTemplateLink; + validatedResources?: ResourceReference[]; +} + +// @public +export interface DeploymentStackValidateResult extends AzureResourceBase, DeploymentStacksError { + properties?: DeploymentStackValidateProperties; +} + // @public export interface ErrorAdditionalInfo { readonly info?: Record; @@ -348,12 +441,19 @@ export interface ErrorDetail { } // @public -export interface ErrorResponse { - error?: ErrorDetail; +export function getContinuationToken(page: unknown): string | undefined; + +// @public +export interface KeyVaultParameterReference { + keyVault: KeyVaultReference; + secretName: string; + secretVersion?: string; } // @public -export function getContinuationToken(page: unknown): string | undefined; +export interface KeyVaultReference { + id: string; +} // @public export enum KnownCreatedByType { @@ -375,24 +475,24 @@ export enum KnownDenyStatusMode { DenyDelete = "denyDelete", DenyWriteAndDelete = "denyWriteAndDelete", Inapplicable = "inapplicable", - None = "None", + None = "none", NotSupported = "notSupported", RemovedBySystem = "removedBySystem" } // @public export enum KnownDeploymentStackProvisioningState { - Canceled = "Canceled", - Canceling = "Canceling", - Creating = "Creating", - Deleting = "Deleting", - DeletingResources = "DeletingResources", - Deploying = "Deploying", - Failed = "Failed", - Locking = "Locking", - Succeeded = "Succeeded", - Validating = "Validating", - Waiting = "Waiting" + Canceled = "canceled", + Canceling = "canceling", + Creating = "creating", + Deleting = "deleting", + DeletingResources = "deletingResources", + Deploying = "deploying", + Failed = "failed", + Succeeded = "succeeded", + UpdatingDenyAssignments = "updatingDenyAssignments", + Validating = "validating", + Waiting = "waiting" } // @public @@ -404,8 +504,7 @@ export enum KnownDeploymentStacksDeleteDetachEnum { // @public export enum KnownResourceStatusMode { DeleteFailed = "deleteFailed", - Managed = "Managed", - None = "None", + Managed = "managed", RemoveDenyFailed = "removeDenyFailed" } diff --git a/sdk/resourcesdeploymentstacks/arm-resourcesdeploymentstacks/src/deploymentStacksClient.ts b/sdk/resourcesdeploymentstacks/arm-resourcesdeploymentstacks/src/deploymentStacksClient.ts index 2deb8f9348be0..73d8a5aadc31d 100644 --- a/sdk/resourcesdeploymentstacks/arm-resourcesdeploymentstacks/src/deploymentStacksClient.ts +++ b/sdk/resourcesdeploymentstacks/arm-resourcesdeploymentstacks/src/deploymentStacksClient.ts @@ -11,7 +11,7 @@ import * as coreRestPipeline from "@azure/core-rest-pipeline"; import { PipelineRequest, PipelineResponse, - SendRequest + SendRequest, } from "@azure/core-rest-pipeline"; import * as coreAuth from "@azure/core-auth"; import { DeploymentStacksImpl } from "./operations"; @@ -26,22 +26,22 @@ export class DeploymentStacksClient extends coreClient.ServiceClient { /** * Initializes a new instance of the DeploymentStacksClient class. * @param credentials Subscription credentials which uniquely identify client subscription. - * @param subscriptionId The ID of the target subscription. + * @param subscriptionId The ID of the target subscription. The value must be an UUID. * @param options The parameter options */ constructor( credentials: coreAuth.TokenCredential, subscriptionId: string, - options?: DeploymentStacksClientOptionalParams + options?: DeploymentStacksClientOptionalParams, ); constructor( credentials: coreAuth.TokenCredential, - options?: DeploymentStacksClientOptionalParams + options?: DeploymentStacksClientOptionalParams, ); constructor( credentials: coreAuth.TokenCredential, subscriptionIdOrOptions?: DeploymentStacksClientOptionalParams | string, - options?: DeploymentStacksClientOptionalParams + options?: DeploymentStacksClientOptionalParams, ) { if (credentials === undefined) { throw new Error("'credentials' cannot be null"); @@ -61,10 +61,10 @@ export class DeploymentStacksClient extends coreClient.ServiceClient { } const defaults: DeploymentStacksClientOptionalParams = { requestContentType: "application/json; charset=utf-8", - credential: credentials + credential: credentials, }; - const packageDetails = `azsdk-js-arm-resourcesdeploymentstacks/1.0.0-beta.1`; + const packageDetails = `azsdk-js-arm-resourcesdeploymentstacks/1.0.0`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -74,20 +74,21 @@ export class DeploymentStacksClient extends coreClient.ServiceClient { ...defaults, ...options, userAgentOptions: { - userAgentPrefix + userAgentPrefix, }, endpoint: - options.endpoint ?? options.baseUri ?? "https://management.azure.com" + options.endpoint ?? options.baseUri ?? "https://management.azure.com", }; super(optionsWithDefaults); let bearerTokenAuthenticationPolicyFound: boolean = false; if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) { - const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies(); + const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = + options.pipeline.getOrderedPolicies(); bearerTokenAuthenticationPolicyFound = pipelinePolicies.some( (pipelinePolicy) => pipelinePolicy.name === - coreRestPipeline.bearerTokenAuthenticationPolicyName + coreRestPipeline.bearerTokenAuthenticationPolicyName, ); } if ( @@ -97,7 +98,7 @@ export class DeploymentStacksClient extends coreClient.ServiceClient { !bearerTokenAuthenticationPolicyFound ) { this.pipeline.removePolicy({ - name: coreRestPipeline.bearerTokenAuthenticationPolicyName + name: coreRestPipeline.bearerTokenAuthenticationPolicyName, }); this.pipeline.addPolicy( coreRestPipeline.bearerTokenAuthenticationPolicy({ @@ -107,9 +108,9 @@ export class DeploymentStacksClient extends coreClient.ServiceClient { `${optionsWithDefaults.endpoint}/.default`, challengeCallbacks: { authorizeRequestOnChallenge: - coreClient.authorizeRequestOnClaimChallenge - } - }) + coreClient.authorizeRequestOnClaimChallenge, + }, + }), ); } // Parameter assignments @@ -117,7 +118,7 @@ export class DeploymentStacksClient extends coreClient.ServiceClient { // Assigning values to Constant parameters this.$host = options.$host || "https://management.azure.com"; - this.apiVersion = options.apiVersion || "2022-08-01-preview"; + this.apiVersion = options.apiVersion || "2024-03-01"; this.deploymentStacks = new DeploymentStacksImpl(this); this.addCustomApiVersionPolicy(options.apiVersion); } @@ -131,7 +132,7 @@ export class DeploymentStacksClient extends coreClient.ServiceClient { name: "CustomApiVersionPolicy", async sendRequest( request: PipelineRequest, - next: SendRequest + next: SendRequest, ): Promise { const param = request.url.split("?"); if (param.length > 1) { @@ -145,7 +146,7 @@ export class DeploymentStacksClient extends coreClient.ServiceClient { request.url = param[0] + "?" + newParams.join("&"); } return next(request); - } + }, }; this.pipeline.addPolicy(apiVersionPolicy); } diff --git a/sdk/resourcesdeploymentstacks/arm-resourcesdeploymentstacks/src/lroImpl.ts b/sdk/resourcesdeploymentstacks/arm-resourcesdeploymentstacks/src/lroImpl.ts index dd803cd5e28c3..b27f5ac7209be 100644 --- a/sdk/resourcesdeploymentstacks/arm-resourcesdeploymentstacks/src/lroImpl.ts +++ b/sdk/resourcesdeploymentstacks/arm-resourcesdeploymentstacks/src/lroImpl.ts @@ -28,15 +28,15 @@ export function createLroSpec(inputs: { sendInitialRequest: () => sendOperationFn(args, spec), sendPollRequest: ( path: string, - options?: { abortSignal?: AbortSignalLike } + options?: { abortSignal?: AbortSignalLike }, ) => { const { requestBody, ...restSpec } = spec; return sendOperationFn(args, { ...restSpec, httpMethod: "GET", path, - abortSignal: options?.abortSignal + abortSignal: options?.abortSignal, }); - } + }, }; } diff --git a/sdk/resourcesdeploymentstacks/arm-resourcesdeploymentstacks/src/models/index.ts b/sdk/resourcesdeploymentstacks/arm-resourcesdeploymentstacks/src/models/index.ts index 8e3235e91ab91..097bcf5522209 100644 --- a/sdk/resourcesdeploymentstacks/arm-resourcesdeploymentstacks/src/models/index.ts +++ b/sdk/resourcesdeploymentstacks/arm-resourcesdeploymentstacks/src/models/index.ts @@ -8,9 +8,9 @@ import * as coreClient from "@azure/core-client"; -/** List of deployment stacks. */ +/** List of Deployment stacks. */ export interface DeploymentStackListResult { - /** An array of deployment stacks. */ + /** An array of Deployment stacks. */ value?: DeploymentStack[]; /** * The URL to use for getting the next set of results. @@ -23,9 +23,9 @@ export interface DeploymentStackListResult { export interface DeploymentStacksTemplateLink { /** The URI of the template to deploy. Use either the uri or id property, but not both. */ uri?: string; - /** The resource id of a Template Spec. Use either the id or uri property, but not both. */ + /** The resourceId of a Template Spec. Use either the id or uri property, but not both. */ id?: string; - /** The relativePath property can be used to deploy a linked template at a location relative to the parent. If the parent template was linked with a TemplateSpec, this will reference an artifact in the TemplateSpec. If the parent was linked with a URI, the child deployment will be a combination of the parent and relativePath URIs */ + /** The relativePath property can be used to deploy a linked template at a location relative to the parent. If the parent template was linked with a TemplateSpec, this will reference an artifact in the TemplateSpec. If the parent was linked with a URI, the child deployment will be a combination of the parent and relativePath URIs. */ relativePath?: string; /** The query string (for example, a SAS token) to be used with the templateLink URI. */ queryString?: string; @@ -33,6 +33,32 @@ export interface DeploymentStacksTemplateLink { contentVersion?: string; } +/** Deployment parameter for the template. */ +export interface DeploymentParameter { + /** Input value to the parameter. */ + value?: any; + /** Type of the value. */ + type?: string; + /** Azure Key Vault parameter reference. */ + reference?: KeyVaultParameterReference; +} + +/** Azure Key Vault parameter reference. */ +export interface KeyVaultParameterReference { + /** Azure Key Vault reference. */ + keyVault: KeyVaultReference; + /** Azure Key Vault secret name. */ + secretName: string; + /** Azure Key Vault secret version. */ + secretVersion?: string; +} + +/** Azure Key Vault reference. */ +export interface KeyVaultReference { + /** Azure Key Vault resourceId. */ + id: string; +} + /** Entity representing the reference to the deployment parameters. */ export interface DeploymentStacksParametersLink { /** The URI of the parameters file. */ @@ -41,13 +67,13 @@ export interface DeploymentStacksParametersLink { contentVersion?: string; } -/** Defines the behavior of resources that are not managed immediately after the stack is updated. */ -export interface DeploymentStackPropertiesActionOnUnmanage { - /** Specifies the action that should be taken on the resource when the deployment stack is deleted. Delete will attempt to delete the resource from Azure. Detach will leave the resource in it's current state. */ +/** Defines the behavior of resources that are no longer managed after the stack is updated or deleted. */ +export interface ActionOnUnmanage { + /** Specifies an action for a newly unmanaged resource. Delete will attempt to delete the resource from Azure. Detach will leave the resource in it's current state. */ resources: DeploymentStacksDeleteDetachEnum; - /** Specifies the action that should be taken on the resource when the deployment stack is deleted. Delete will attempt to delete the resource from Azure. Detach will leave the resource in it's current state. */ + /** Specifies an action for a newly unmanaged resource. Delete will attempt to delete the resource from Azure. Detach will leave the resource in it's current state. */ resourceGroups?: DeploymentStacksDeleteDetachEnum; - /** Specifies the action that should be taken on the resource when the deployment stack is deleted. Delete will attempt to delete the resource from Azure. Detach will leave the resource in it's current state. */ + /** Specifies an action for a newly unmanaged resource. Delete will attempt to delete the resource from Azure. Detach will leave the resource in it's current state. */ managementGroups?: DeploymentStacksDeleteDetachEnum; } @@ -57,19 +83,19 @@ export interface DeploymentStacksDebugSetting { detailLevel?: string; } -/** Defines how resources deployed by the deployment stack are locked. */ +/** Defines how resources deployed by the Deployment stack are locked. */ export interface DenySettings { - /** denySettings Mode. */ + /** denySettings Mode that defines denied actions. */ mode: DenySettingsMode; /** List of AAD principal IDs excluded from the lock. Up to 5 principals are permitted. */ excludedPrincipals?: string[]; /** List of role-based management operations that are excluded from the denySettings. Up to 200 actions are permitted. If the denySetting mode is set to 'denyWriteAndDelete', then the following actions are automatically appended to 'excludedActions': '*\/read' and 'Microsoft.Authorization/locks/delete'. If the denySetting mode is set to 'denyDelete', then the following actions are automatically appended to 'excludedActions': 'Microsoft.Authorization/locks/delete'. Duplicate actions will be removed. */ excludedActions?: string[]; - /** DenySettings will be applied to child scopes. */ + /** DenySettings will be applied to child resource scopes of every managed resource with a deny assignment. */ applyToChildScopes?: boolean; } -/** The resource Id model. */ +/** The resourceId model. */ export interface ResourceReference { /** * The resourceId of a resource managed by the deployment stack. @@ -80,13 +106,7 @@ export interface ResourceReference { /** Deployment Stacks error response. */ export interface DeploymentStacksError { - /** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */ - error?: ErrorResponse; -} - -/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */ -export interface ErrorResponse { - /** The error object. */ + /** The error detail. */ error?: ErrorDetail; } @@ -173,7 +193,7 @@ export interface SystemData { lastModifiedAt?: Date; } -/** Export Template specific properties of the Stack. */ +/** Export Template specific properties of the Deployment stack. */ export interface DeploymentStackTemplateDefinition { /** The template content. Use this element to pass the template syntax directly in the request rather than link to an existing template. It can be a JObject or well-formed JSON string. Use either the templateLink property or the template property, but not both. */ template?: Record; @@ -181,7 +201,27 @@ export interface DeploymentStackTemplateDefinition { templateLink?: DeploymentStacksTemplateLink; } -/** The resource Id extended model. */ +/** The Deployment stack validation result details. */ +export interface DeploymentStackValidateProperties { + /** Defines the behavior of resources that are no longer managed after the Deployment stack is updated or deleted. */ + actionOnUnmanage?: ActionOnUnmanage; + /** The correlation id of the Deployment stack validate operation. It is in GUID format and is used for tracing. */ + correlationId?: string; + /** The Deployment stack deny settings. */ + denySettings?: DenySettings; + /** The Deployment stack deployment scope. */ + deploymentScope?: string; + /** The Deployment stack validation description. */ + description?: string; + /** Deployment parameters. */ + parameters?: { [propertyName: string]: DeploymentParameter }; + /** The URI of the template. */ + templateLink?: DeploymentStacksTemplateLink; + /** The array of resources that were validated. */ + validatedResources?: ResourceReference[]; +} + +/** The resourceId extended model. This is used to document failed resources with a resourceId and a corresponding error. */ export interface ResourceReferenceExtended extends ResourceReference, DeploymentStacksError {} @@ -200,17 +240,19 @@ export interface DeploymentStackProperties extends DeploymentStacksError { template?: Record; /** The URI of the template. Use either the templateLink property or the template property, but not both. */ templateLink?: DeploymentStacksTemplateLink; - /** Name and value pairs that define the deployment parameters for the template. Use this element when providing the parameter values directly in the request, rather than linking to an existing parameter file. Use either the parametersLink property or the parameters property, but not both. It can be a JObject or a well formed JSON string. */ - parameters?: Record; + /** Name and value pairs that define the deployment parameters for the template. Use this element when providing the parameter values directly in the request, rather than linking to an existing parameter file. Use either the parametersLink property or the parameters property, but not both. */ + parameters?: { [propertyName: string]: DeploymentParameter }; /** The URI of parameters file. Use this element to link to an existing parameters file. Use either the parametersLink property or the parameters property, but not both. */ parametersLink?: DeploymentStacksParametersLink; - /** Defines the behavior of resources that are not managed immediately after the stack is updated. */ - actionOnUnmanage: DeploymentStackPropertiesActionOnUnmanage; + /** Defines the behavior of resources that are no longer managed after the Deployment stack is updated or deleted. */ + actionOnUnmanage: ActionOnUnmanage; /** The debug setting of the deployment. */ debugSetting?: DeploymentStacksDebugSetting; + /** Flag to bypass service errors that indicate the stack resource list is not correctly synchronized. */ + bypassStackOutOfSyncError?: boolean; /** The scope at which the initial deployment should be created. If a scope is not specified, it will default to the scope of the deployment stack. Valid scopes are: management group (format: '/providers/Microsoft.Management/managementGroups/{managementGroupId}'), subscription (format: '/subscriptions/{subscriptionId}'), resource group (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}'). */ deploymentScope?: string; - /** Deployment stack description. */ + /** Deployment stack description. Max length of 4096 characters. */ description?: string; /** Defines how resources deployed by the stack are locked. */ denySettings: DenySettings; @@ -220,17 +262,22 @@ export interface DeploymentStackProperties extends DeploymentStacksError { */ readonly provisioningState?: DeploymentStackProvisioningState; /** - * An array of resources that were detached during the most recent update. + * The correlation id of the last Deployment stack upsert or delete operation. It is in GUID format and is used for tracing. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly correlationId?: string; + /** + * An array of resources that were detached during the most recent Deployment stack update. Detached means that the resource was removed from the template, but no relevant deletion operations were specified. So, the resource still exists while no longer being associated with the stack. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly detachedResources?: ResourceReference[]; /** - * An array of resources that were deleted during the most recent update. + * An array of resources that were deleted during the most recent Deployment stack update. Deleted means that the resource was removed from the template and relevant deletion operations were specified. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly deletedResources?: ResourceReference[]; /** - * An array of resources that failed to reach goal state during the most recent update. + * An array of resources that failed to reach goal state during the most recent update. Each resourceId is accompanied by an error message. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly failedResources?: ResourceReferenceExtended[]; @@ -245,40 +292,50 @@ export interface DeploymentStackProperties extends DeploymentStacksError { */ readonly deploymentId?: string; /** - * The outputs of the underlying deployment. + * The outputs of the deployment resource created by the deployment stack. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly outputs?: Record; /** - * The duration of the deployment stack update. + * The duration of the last successful Deployment stack update. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly duration?: string; } +/** The Deployment stack validation result. */ +export interface DeploymentStackValidateResult + extends AzureResourceBase, + DeploymentStacksError { + /** The validation result details. */ + properties?: DeploymentStackValidateProperties; +} + /** Deployment stack object. */ export interface DeploymentStack extends AzureResourceBase { - /** The location of the deployment stack. It cannot be changed after creation. It must be one of the supported Azure locations. */ + /** The location of the Deployment stack. It cannot be changed after creation. It must be one of the supported Azure locations. */ location?: string; /** Deployment stack resource tags. */ tags?: { [propertyName: string]: string }; - /** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */ - error?: ErrorResponse; + /** The error detail. */ + error?: ErrorDetail; /** The template content. You use this element when you want to pass the template syntax directly in the request rather than link to an existing template. It can be a JObject or well-formed JSON string. Use either the templateLink property or the template property, but not both. */ template?: Record; /** The URI of the template. Use either the templateLink property or the template property, but not both. */ templateLink?: DeploymentStacksTemplateLink; - /** Name and value pairs that define the deployment parameters for the template. Use this element when providing the parameter values directly in the request, rather than linking to an existing parameter file. Use either the parametersLink property or the parameters property, but not both. It can be a JObject or a well formed JSON string. */ - parameters?: Record; + /** Name and value pairs that define the deployment parameters for the template. Use this element when providing the parameter values directly in the request, rather than linking to an existing parameter file. Use either the parametersLink property or the parameters property, but not both. */ + parameters?: { [propertyName: string]: DeploymentParameter }; /** The URI of parameters file. Use this element to link to an existing parameters file. Use either the parametersLink property or the parameters property, but not both. */ parametersLink?: DeploymentStacksParametersLink; - /** Defines the behavior of resources that are not managed immediately after the stack is updated. */ - actionOnUnmanage?: DeploymentStackPropertiesActionOnUnmanage; + /** Defines the behavior of resources that are no longer managed after the Deployment stack is updated or deleted. */ + actionOnUnmanage?: ActionOnUnmanage; /** The debug setting of the deployment. */ debugSetting?: DeploymentStacksDebugSetting; + /** Flag to bypass service errors that indicate the stack resource list is not correctly synchronized. */ + bypassStackOutOfSyncError?: boolean; /** The scope at which the initial deployment should be created. If a scope is not specified, it will default to the scope of the deployment stack. Valid scopes are: management group (format: '/providers/Microsoft.Management/managementGroups/{managementGroupId}'), subscription (format: '/subscriptions/{subscriptionId}'), resource group (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}'). */ deploymentScope?: string; - /** Deployment stack description. */ + /** Deployment stack description. Max length of 4096 characters. */ description?: string; /** Defines how resources deployed by the stack are locked. */ denySettings?: DenySettings; @@ -288,17 +345,22 @@ export interface DeploymentStack extends AzureResourceBase { */ readonly provisioningState?: DeploymentStackProvisioningState; /** - * An array of resources that were detached during the most recent update. + * The correlation id of the last Deployment stack upsert or delete operation. It is in GUID format and is used for tracing. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly correlationId?: string; + /** + * An array of resources that were detached during the most recent Deployment stack update. Detached means that the resource was removed from the template, but no relevant deletion operations were specified. So, the resource still exists while no longer being associated with the stack. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly detachedResources?: ResourceReference[]; /** - * An array of resources that were deleted during the most recent update. + * An array of resources that were deleted during the most recent Deployment stack update. Deleted means that the resource was removed from the template and relevant deletion operations were specified. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly deletedResources?: ResourceReference[]; /** - * An array of resources that failed to reach goal state during the most recent update. + * An array of resources that failed to reach goal state during the most recent update. Each resourceId is accompanied by an error message. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly failedResources?: ResourceReferenceExtended[]; @@ -313,12 +375,12 @@ export interface DeploymentStack extends AzureResourceBase { */ readonly deploymentId?: string; /** - * The outputs of the underlying deployment. + * The outputs of the deployment resource created by the deployment stack. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly outputs?: Record; /** - * The duration of the deployment stack update. + * The duration of the last successful Deployment stack update. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly duration?: string; @@ -339,12 +401,33 @@ export interface DeploymentStacksDeleteAtManagementGroupHeaders { location?: string; } +/** Defines headers for DeploymentStacks_validateStackAtResourceGroup operation. */ +export interface DeploymentStacksValidateStackAtResourceGroupHeaders { + location?: string; + /** Number of seconds to wait before polling for status. */ + retryAfter?: string; +} + +/** Defines headers for DeploymentStacks_validateStackAtSubscription operation. */ +export interface DeploymentStacksValidateStackAtSubscriptionHeaders { + location?: string; + /** Number of seconds to wait before polling for status. */ + retryAfter?: string; +} + +/** Defines headers for DeploymentStacks_validateStackAtManagementGroup operation. */ +export interface DeploymentStacksValidateStackAtManagementGroupHeaders { + location?: string; + /** Number of seconds to wait before polling for status. */ + retryAfter?: string; +} + /** Known values of {@link DeploymentStacksDeleteDetachEnum} that the service accepts. */ export enum KnownDeploymentStacksDeleteDetachEnum { /** Delete */ Delete = "delete", /** Detach */ - Detach = "detach" + Detach = "detach", } /** @@ -361,10 +444,10 @@ export type DeploymentStacksDeleteDetachEnum = string; export enum KnownDenySettingsMode { /** Authorized users are able to read and modify the resources, but cannot delete. */ DenyDelete = "denyDelete", - /** Authorized users can only read from a resource, but cannot modify or delete it. */ + /** Authorized users can read from a resource, but cannot modify or delete it. */ DenyWriteAndDelete = "denyWriteAndDelete", /** No denyAssignments have been applied. */ - None = "none" + None = "none", } /** @@ -373,7 +456,7 @@ export enum KnownDenySettingsMode { * this enum contains the known values that the service supports. * ### Known values supported by the service * **denyDelete**: Authorized users are able to read and modify the resources, but cannot delete. \ - * **denyWriteAndDelete**: Authorized users can only read from a resource, but cannot modify or delete it. \ + * **denyWriteAndDelete**: Authorized users can read from a resource, but cannot modify or delete it. \ * **none**: No denyAssignments have been applied. */ export type DenySettingsMode = string; @@ -381,27 +464,27 @@ export type DenySettingsMode = string; /** Known values of {@link DeploymentStackProvisioningState} that the service accepts. */ export enum KnownDeploymentStackProvisioningState { /** Creating */ - Creating = "Creating", + Creating = "creating", /** Validating */ - Validating = "Validating", + Validating = "validating", /** Waiting */ - Waiting = "Waiting", + Waiting = "waiting", /** Deploying */ - Deploying = "Deploying", + Deploying = "deploying", /** Canceling */ - Canceling = "Canceling", - /** Locking */ - Locking = "Locking", + Canceling = "canceling", + /** UpdatingDenyAssignments */ + UpdatingDenyAssignments = "updatingDenyAssignments", /** DeletingResources */ - DeletingResources = "DeletingResources", + DeletingResources = "deletingResources", /** Succeeded */ - Succeeded = "Succeeded", + Succeeded = "succeeded", /** Failed */ - Failed = "Failed", + Failed = "failed", /** Canceled */ - Canceled = "Canceled", + Canceled = "canceled", /** Deleting */ - Deleting = "Deleting" + Deleting = "deleting", } /** @@ -409,30 +492,28 @@ export enum KnownDeploymentStackProvisioningState { * {@link KnownDeploymentStackProvisioningState} can be used interchangeably with DeploymentStackProvisioningState, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Creating** \ - * **Validating** \ - * **Waiting** \ - * **Deploying** \ - * **Canceling** \ - * **Locking** \ - * **DeletingResources** \ - * **Succeeded** \ - * **Failed** \ - * **Canceled** \ - * **Deleting** + * **creating** \ + * **validating** \ + * **waiting** \ + * **deploying** \ + * **canceling** \ + * **updatingDenyAssignments** \ + * **deletingResources** \ + * **succeeded** \ + * **failed** \ + * **canceled** \ + * **deleting** */ export type DeploymentStackProvisioningState = string; /** Known values of {@link ResourceStatusMode} that the service accepts. */ export enum KnownResourceStatusMode { /** This resource is managed by the deployment stack. */ - Managed = "Managed", + Managed = "managed", /** Unable to remove the deny assignment on resource. */ RemoveDenyFailed = "removeDenyFailed", /** Unable to delete the resource from Azure. The delete will be retried on the next stack deployment, or can be deleted manually. */ DeleteFailed = "deleteFailed", - /** No denyAssignments have been applied. */ - None = "None" } /** @@ -440,10 +521,9 @@ export enum KnownResourceStatusMode { * {@link KnownResourceStatusMode} can be used interchangeably with ResourceStatusMode, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Managed**: This resource is managed by the deployment stack. \ + * **managed**: This resource is managed by the deployment stack. \ * **removeDenyFailed**: Unable to remove the deny assignment on resource. \ - * **deleteFailed**: Unable to delete the resource from Azure. The delete will be retried on the next stack deployment, or can be deleted manually. \ - * **None**: No denyAssignments have been applied. + * **deleteFailed**: Unable to delete the resource from Azure. The delete will be retried on the next stack deployment, or can be deleted manually. */ export type ResourceStatusMode = string; @@ -460,7 +540,7 @@ export enum KnownDenyStatusMode { /** Deny assignment has been removed by Azure due to a resource management change (management group move, etc.) */ RemovedBySystem = "removedBySystem", /** No denyAssignments have been applied. */ - None = "None" + None = "none", } /** @@ -473,7 +553,7 @@ export enum KnownDenyStatusMode { * **inapplicable**: denyAssignments are not supported on resources outside the scope of the deployment stack. \ * **denyWriteAndDelete**: Authorized users can only read from a resource, but cannot modify or delete it. \ * **removedBySystem**: Deny assignment has been removed by Azure due to a resource management change (management group move, etc.) \ - * **None**: No denyAssignments have been applied. + * **none**: No denyAssignments have been applied. */ export type DenyStatusMode = string; @@ -486,7 +566,7 @@ export enum KnownCreatedByType { /** ManagedIdentity */ ManagedIdentity = "ManagedIdentity", /** Key */ - Key = "Key" + Key = "Key", } /** @@ -506,7 +586,7 @@ export enum KnownUnmanageActionResourceMode { /** Delete */ Delete = "delete", /** Detach */ - Detach = "detach" + Detach = "detach", } /** @@ -524,7 +604,7 @@ export enum KnownUnmanageActionResourceGroupMode { /** Delete */ Delete = "delete", /** Detach */ - Detach = "detach" + Detach = "detach", } /** @@ -542,7 +622,7 @@ export enum KnownUnmanageActionManagementGroupMode { /** Delete */ Delete = "delete", /** Detach */ - Detach = "detach" + Detach = "detach", } /** @@ -560,21 +640,24 @@ export interface DeploymentStacksListAtResourceGroupOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listAtResourceGroup operation. */ -export type DeploymentStacksListAtResourceGroupResponse = DeploymentStackListResult; +export type DeploymentStacksListAtResourceGroupResponse = + DeploymentStackListResult; /** Optional parameters. */ export interface DeploymentStacksListAtSubscriptionOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listAtSubscription operation. */ -export type DeploymentStacksListAtSubscriptionResponse = DeploymentStackListResult; +export type DeploymentStacksListAtSubscriptionResponse = + DeploymentStackListResult; /** Optional parameters. */ export interface DeploymentStacksListAtManagementGroupOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listAtManagementGroup operation. */ -export type DeploymentStacksListAtManagementGroupResponse = DeploymentStackListResult; +export type DeploymentStacksListAtManagementGroupResponse = + DeploymentStackListResult; /** Optional parameters. */ export interface DeploymentStacksCreateOrUpdateAtResourceGroupOptionalParams @@ -586,7 +669,8 @@ export interface DeploymentStacksCreateOrUpdateAtResourceGroupOptionalParams } /** Contains response data for the createOrUpdateAtResourceGroup operation. */ -export type DeploymentStacksCreateOrUpdateAtResourceGroupResponse = DeploymentStack; +export type DeploymentStacksCreateOrUpdateAtResourceGroupResponse = + DeploymentStack; /** Optional parameters. */ export interface DeploymentStacksGetAtResourceGroupOptionalParams @@ -598,10 +682,14 @@ export type DeploymentStacksGetAtResourceGroupResponse = DeploymentStack; /** Optional parameters. */ export interface DeploymentStacksDeleteAtResourceGroupOptionalParams extends coreClient.OperationOptions { - /** Flag to indicate delete rather than detach for the resources. */ + /** Flag to indicate delete rather than detach for unmanaged resources. */ unmanageActionResources?: UnmanageActionResourceMode; - /** Flag to indicate delete rather than detach for the resource groups. */ + /** Flag to indicate delete rather than detach for unmanaged resource groups. */ unmanageActionResourceGroups?: UnmanageActionResourceGroupMode; + /** Flag to indicate delete rather than detach for unmanaged management groups. */ + unmanageActionManagementGroups?: UnmanageActionManagementGroupMode; + /** Flag to bypass service errors that indicate the stack resource list is not correctly synchronized. */ + bypassStackOutOfSyncError?: boolean; /** 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. */ @@ -618,7 +706,8 @@ export interface DeploymentStacksCreateOrUpdateAtSubscriptionOptionalParams } /** Contains response data for the createOrUpdateAtSubscription operation. */ -export type DeploymentStacksCreateOrUpdateAtSubscriptionResponse = DeploymentStack; +export type DeploymentStacksCreateOrUpdateAtSubscriptionResponse = + DeploymentStack; /** Optional parameters. */ export interface DeploymentStacksGetAtSubscriptionOptionalParams @@ -630,10 +719,14 @@ export type DeploymentStacksGetAtSubscriptionResponse = DeploymentStack; /** Optional parameters. */ export interface DeploymentStacksDeleteAtSubscriptionOptionalParams extends coreClient.OperationOptions { - /** Flag to indicate delete rather than detach for the resources. */ + /** Flag to indicate delete rather than detach for unmanaged resources. */ unmanageActionResources?: UnmanageActionResourceMode; - /** Flag to indicate delete rather than detach for the resource groups. */ + /** Flag to indicate delete rather than detach for unmanaged resource groups. */ unmanageActionResourceGroups?: UnmanageActionResourceGroupMode; + /** Flag to indicate delete rather than detach for unmanaged management groups. */ + unmanageActionManagementGroups?: UnmanageActionManagementGroupMode; + /** Flag to bypass service errors that indicate the stack resource list is not correctly synchronized. */ + bypassStackOutOfSyncError?: boolean; /** 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. */ @@ -650,7 +743,8 @@ export interface DeploymentStacksCreateOrUpdateAtManagementGroupOptionalParams } /** Contains response data for the createOrUpdateAtManagementGroup operation. */ -export type DeploymentStacksCreateOrUpdateAtManagementGroupResponse = DeploymentStack; +export type DeploymentStacksCreateOrUpdateAtManagementGroupResponse = + DeploymentStack; /** Optional parameters. */ export interface DeploymentStacksGetAtManagementGroupOptionalParams @@ -662,12 +756,14 @@ export type DeploymentStacksGetAtManagementGroupResponse = DeploymentStack; /** Optional parameters. */ export interface DeploymentStacksDeleteAtManagementGroupOptionalParams extends coreClient.OperationOptions { - /** Flag to indicate delete rather than detach for the resources. */ + /** Flag to indicate delete rather than detach for unmanaged resources. */ unmanageActionResources?: UnmanageActionResourceMode; - /** Flag to indicate delete rather than detach for the resource groups. */ + /** Flag to indicate delete rather than detach for unmanaged resource groups. */ unmanageActionResourceGroups?: UnmanageActionResourceGroupMode; - /** Flag to indicate delete rather than detach for the management groups. */ + /** Flag to indicate delete rather than detach for unmanaged management groups. */ unmanageActionManagementGroups?: UnmanageActionManagementGroupMode; + /** Flag to bypass service errors that indicate the stack resource list is not correctly synchronized. */ + bypassStackOutOfSyncError?: boolean; /** 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. */ @@ -679,42 +775,87 @@ export interface DeploymentStacksExportTemplateAtResourceGroupOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the exportTemplateAtResourceGroup operation. */ -export type DeploymentStacksExportTemplateAtResourceGroupResponse = DeploymentStackTemplateDefinition; +export type DeploymentStacksExportTemplateAtResourceGroupResponse = + DeploymentStackTemplateDefinition; /** Optional parameters. */ export interface DeploymentStacksExportTemplateAtSubscriptionOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the exportTemplateAtSubscription operation. */ -export type DeploymentStacksExportTemplateAtSubscriptionResponse = DeploymentStackTemplateDefinition; +export type DeploymentStacksExportTemplateAtSubscriptionResponse = + DeploymentStackTemplateDefinition; /** Optional parameters. */ export interface DeploymentStacksExportTemplateAtManagementGroupOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the exportTemplateAtManagementGroup operation. */ -export type DeploymentStacksExportTemplateAtManagementGroupResponse = DeploymentStackTemplateDefinition; +export type DeploymentStacksExportTemplateAtManagementGroupResponse = + DeploymentStackTemplateDefinition; + +/** Optional parameters. */ +export interface DeploymentStacksValidateStackAtResourceGroupOptionalParams + 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 validateStackAtResourceGroup operation. */ +export type DeploymentStacksValidateStackAtResourceGroupResponse = + DeploymentStackValidateResult; + +/** Optional parameters. */ +export interface DeploymentStacksValidateStackAtSubscriptionOptionalParams + 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 validateStackAtSubscription operation. */ +export type DeploymentStacksValidateStackAtSubscriptionResponse = + DeploymentStackValidateResult; + +/** Optional parameters. */ +export interface DeploymentStacksValidateStackAtManagementGroupOptionalParams + 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 validateStackAtManagementGroup operation. */ +export type DeploymentStacksValidateStackAtManagementGroupResponse = + DeploymentStackValidateResult; /** Optional parameters. */ export interface DeploymentStacksListAtResourceGroupNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listAtResourceGroupNext operation. */ -export type DeploymentStacksListAtResourceGroupNextResponse = DeploymentStackListResult; +export type DeploymentStacksListAtResourceGroupNextResponse = + DeploymentStackListResult; /** Optional parameters. */ export interface DeploymentStacksListAtSubscriptionNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listAtSubscriptionNext operation. */ -export type DeploymentStacksListAtSubscriptionNextResponse = DeploymentStackListResult; +export type DeploymentStacksListAtSubscriptionNextResponse = + DeploymentStackListResult; /** Optional parameters. */ export interface DeploymentStacksListAtManagementGroupNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listAtManagementGroupNext operation. */ -export type DeploymentStacksListAtManagementGroupNextResponse = DeploymentStackListResult; +export type DeploymentStacksListAtManagementGroupNextResponse = + DeploymentStackListResult; /** Optional parameters. */ export interface DeploymentStacksClientOptionalParams diff --git a/sdk/resourcesdeploymentstacks/arm-resourcesdeploymentstacks/src/models/mappers.ts b/sdk/resourcesdeploymentstacks/arm-resourcesdeploymentstacks/src/models/mappers.ts index 0956116504b9f..c0b824da4398f 100644 --- a/sdk/resourcesdeploymentstacks/arm-resourcesdeploymentstacks/src/models/mappers.ts +++ b/sdk/resourcesdeploymentstacks/arm-resourcesdeploymentstacks/src/models/mappers.ts @@ -20,20 +20,20 @@ export const DeploymentStackListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "DeploymentStack" - } - } - } + className: "DeploymentStack", + }, + }, + }, }, nextLink: { serializedName: "nextLink", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const DeploymentStacksTemplateLink: coreClient.CompositeMapper = { @@ -44,35 +44,108 @@ export const DeploymentStacksTemplateLink: coreClient.CompositeMapper = { uri: { serializedName: "uri", type: { - name: "String" - } + name: "String", + }, }, id: { serializedName: "id", type: { - name: "String" - } + name: "String", + }, }, relativePath: { serializedName: "relativePath", type: { - name: "String" - } + name: "String", + }, }, queryString: { serializedName: "queryString", type: { - name: "String" - } + name: "String", + }, }, contentVersion: { serializedName: "contentVersion", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, +}; + +export const DeploymentParameter: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DeploymentParameter", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "any", + }, + }, + type: { + serializedName: "type", + type: { + name: "String", + }, + }, + reference: { + serializedName: "reference", + type: { + name: "Composite", + className: "KeyVaultParameterReference", + }, + }, + }, + }, +}; + +export const KeyVaultParameterReference: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "KeyVaultParameterReference", + modelProperties: { + keyVault: { + serializedName: "keyVault", + type: { + name: "Composite", + className: "KeyVaultReference", + }, + }, + secretName: { + serializedName: "secretName", + required: true, + type: { + name: "String", + }, + }, + secretVersion: { + serializedName: "secretVersion", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const KeyVaultReference: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "KeyVaultReference", + modelProperties: { + id: { + serializedName: "id", + required: true, + type: { + name: "String", + }, + }, + }, + }, }; export const DeploymentStacksParametersLink: coreClient.CompositeMapper = { @@ -84,45 +157,45 @@ export const DeploymentStacksParametersLink: coreClient.CompositeMapper = { serializedName: "uri", required: true, type: { - name: "String" - } + name: "String", + }, }, contentVersion: { serializedName: "contentVersion", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const DeploymentStackPropertiesActionOnUnmanage: coreClient.CompositeMapper = { +export const ActionOnUnmanage: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DeploymentStackPropertiesActionOnUnmanage", + className: "ActionOnUnmanage", modelProperties: { resources: { serializedName: "resources", required: true, type: { - name: "String" - } + name: "String", + }, }, resourceGroups: { serializedName: "resourceGroups", type: { - name: "String" - } + name: "String", + }, }, managementGroups: { serializedName: "managementGroups", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const DeploymentStacksDebugSetting: coreClient.CompositeMapper = { @@ -133,11 +206,11 @@ export const DeploymentStacksDebugSetting: coreClient.CompositeMapper = { detailLevel: { serializedName: "detailLevel", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const DenySettings: coreClient.CompositeMapper = { @@ -149,8 +222,8 @@ export const DenySettings: coreClient.CompositeMapper = { serializedName: "mode", required: true, type: { - name: "String" - } + name: "String", + }, }, excludedPrincipals: { serializedName: "excludedPrincipals", @@ -158,10 +231,10 @@ export const DenySettings: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, excludedActions: { serializedName: "excludedActions", @@ -169,19 +242,19 @@ export const DenySettings: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, applyToChildScopes: { serializedName: "applyToChildScopes", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const ResourceReference: coreClient.CompositeMapper = { @@ -193,11 +266,11 @@ export const ResourceReference: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const DeploymentStacksError: coreClient.CompositeMapper = { @@ -209,27 +282,11 @@ export const DeploymentStacksError: coreClient.CompositeMapper = { serializedName: "error", type: { name: "Composite", - className: "ErrorResponse" - } - } - } - } -}; - -export const ErrorResponse: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ErrorResponse", - modelProperties: { - error: { - serializedName: "error", - type: { - name: "Composite", - className: "ErrorDetail" - } - } - } - } + className: "ErrorDetail", + }, + }, + }, + }, }; export const ErrorDetail: coreClient.CompositeMapper = { @@ -241,22 +298,22 @@ export const ErrorDetail: coreClient.CompositeMapper = { serializedName: "code", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, message: { serializedName: "message", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, target: { serializedName: "target", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, details: { serializedName: "details", @@ -266,10 +323,10 @@ export const ErrorDetail: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ErrorDetail" - } - } - } + className: "ErrorDetail", + }, + }, + }, }, additionalInfo: { serializedName: "additionalInfo", @@ -279,13 +336,13 @@ export const ErrorDetail: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ErrorAdditionalInfo" - } - } - } - } - } - } + className: "ErrorAdditionalInfo", + }, + }, + }, + }, + }, + }, }; export const ErrorAdditionalInfo: coreClient.CompositeMapper = { @@ -297,19 +354,19 @@ export const ErrorAdditionalInfo: coreClient.CompositeMapper = { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, info: { serializedName: "info", readOnly: true, type: { name: "Dictionary", - value: { type: { name: "any" } } - } - } - } - } + value: { type: { name: "any" } }, + }, + }, + }, + }, }; export const AzureResourceBase: coreClient.CompositeMapper = { @@ -321,32 +378,32 @@ export const AzureResourceBase: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, systemData: { serializedName: "systemData", type: { name: "Composite", - className: "SystemData" - } - } - } - } + className: "SystemData", + }, + }, + }, + }, }; export const SystemData: coreClient.CompositeMapper = { @@ -357,41 +414,41 @@ export const SystemData: coreClient.CompositeMapper = { createdBy: { serializedName: "createdBy", type: { - name: "String" - } + name: "String", + }, }, createdByType: { serializedName: "createdByType", type: { - name: "String" - } + name: "String", + }, }, createdAt: { serializedName: "createdAt", type: { - name: "DateTime" - } + name: "DateTime", + }, }, lastModifiedBy: { serializedName: "lastModifiedBy", type: { - name: "String" - } + name: "String", + }, }, lastModifiedByType: { serializedName: "lastModifiedByType", type: { - name: "String" - } + name: "String", + }, }, lastModifiedAt: { serializedName: "lastModifiedAt", type: { - name: "DateTime" - } - } - } - } + name: "DateTime", + }, + }, + }, + }, }; export const DeploymentStackTemplateDefinition: coreClient.CompositeMapper = { @@ -403,18 +460,87 @@ export const DeploymentStackTemplateDefinition: coreClient.CompositeMapper = { serializedName: "template", type: { name: "Dictionary", - value: { type: { name: "any" } } - } + value: { type: { name: "any" } }, + }, + }, + templateLink: { + serializedName: "templateLink", + type: { + name: "Composite", + className: "DeploymentStacksTemplateLink", + }, + }, + }, + }, +}; + +export const DeploymentStackValidateProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DeploymentStackValidateProperties", + modelProperties: { + actionOnUnmanage: { + serializedName: "actionOnUnmanage", + type: { + name: "Composite", + className: "ActionOnUnmanage", + }, + }, + correlationId: { + serializedName: "correlationId", + type: { + name: "String", + }, + }, + denySettings: { + serializedName: "denySettings", + type: { + name: "Composite", + className: "DenySettings", + }, + }, + deploymentScope: { + serializedName: "deploymentScope", + type: { + name: "String", + }, + }, + description: { + serializedName: "description", + type: { + name: "String", + }, + }, + parameters: { + serializedName: "parameters", + type: { + name: "Dictionary", + value: { + type: { name: "Composite", className: "DeploymentParameter" }, + }, + }, }, templateLink: { serializedName: "templateLink", type: { name: "Composite", - className: "DeploymentStacksTemplateLink" - } - } - } - } + className: "DeploymentStacksTemplateLink", + }, + }, + validatedResources: { + serializedName: "validatedResources", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ResourceReference", + }, + }, + }, + }, + }, + }, }; export const ResourceReferenceExtended: coreClient.CompositeMapper = { @@ -423,9 +549,9 @@ export const ResourceReferenceExtended: coreClient.CompositeMapper = { className: "ResourceReferenceExtended", modelProperties: { ...ResourceReference.type.modelProperties, - ...DeploymentStacksError.type.modelProperties - } - } + ...DeploymentStacksError.type.modelProperties, + }, + }, }; export const ManagedResourceReference: coreClient.CompositeMapper = { @@ -435,21 +561,20 @@ export const ManagedResourceReference: coreClient.CompositeMapper = { modelProperties: { ...ResourceReference.type.modelProperties, status: { - defaultValue: "None", serializedName: "status", type: { - name: "String" - } + name: "String", + }, }, denyStatus: { - defaultValue: "None", + defaultValue: "none", serializedName: "denyStatus", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const DeploymentStackProperties: coreClient.CompositeMapper = { @@ -462,72 +587,87 @@ export const DeploymentStackProperties: coreClient.CompositeMapper = { serializedName: "template", type: { name: "Dictionary", - value: { type: { name: "any" } } - } + value: { type: { name: "any" } }, + }, }, templateLink: { serializedName: "templateLink", type: { name: "Composite", - className: "DeploymentStacksTemplateLink" - } + className: "DeploymentStacksTemplateLink", + }, }, parameters: { serializedName: "parameters", type: { name: "Dictionary", - value: { type: { name: "any" } } - } + value: { + type: { name: "Composite", className: "DeploymentParameter" }, + }, + }, }, parametersLink: { serializedName: "parametersLink", type: { name: "Composite", - className: "DeploymentStacksParametersLink" - } + className: "DeploymentStacksParametersLink", + }, }, actionOnUnmanage: { serializedName: "actionOnUnmanage", type: { name: "Composite", - className: "DeploymentStackPropertiesActionOnUnmanage" - } + className: "ActionOnUnmanage", + }, }, debugSetting: { serializedName: "debugSetting", type: { name: "Composite", - className: "DeploymentStacksDebugSetting" - } + className: "DeploymentStacksDebugSetting", + }, + }, + bypassStackOutOfSyncError: { + serializedName: "bypassStackOutOfSyncError", + type: { + name: "Boolean", + }, }, deploymentScope: { serializedName: "deploymentScope", type: { - name: "String" - } + name: "String", + }, }, description: { constraints: { - MaxLength: 4096 + MaxLength: 4096, }, serializedName: "description", type: { - name: "String" - } + name: "String", + }, }, denySettings: { serializedName: "denySettings", type: { name: "Composite", - className: "DenySettings" - } + className: "DenySettings", + }, }, provisioningState: { serializedName: "provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, + }, + correlationId: { + serializedName: "correlationId", + readOnly: true, + type: { + name: "String", + }, }, detachedResources: { serializedName: "detachedResources", @@ -537,10 +677,10 @@ export const DeploymentStackProperties: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ResourceReference" - } - } - } + className: "ResourceReference", + }, + }, + }, }, deletedResources: { serializedName: "deletedResources", @@ -550,10 +690,10 @@ export const DeploymentStackProperties: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ResourceReference" - } - } - } + className: "ResourceReference", + }, + }, + }, }, failedResources: { serializedName: "failedResources", @@ -563,10 +703,10 @@ export const DeploymentStackProperties: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ResourceReferenceExtended" - } - } - } + className: "ResourceReferenceExtended", + }, + }, + }, }, resources: { serializedName: "resources", @@ -576,35 +716,53 @@ export const DeploymentStackProperties: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ManagedResourceReference" - } - } - } + className: "ManagedResourceReference", + }, + }, + }, }, deploymentId: { serializedName: "deploymentId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, outputs: { serializedName: "outputs", readOnly: true, type: { name: "Dictionary", - value: { type: { name: "any" } } - } + value: { type: { name: "any" } }, + }, }, duration: { serializedName: "duration", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, +}; + +export const DeploymentStackValidateResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DeploymentStackValidateResult", + modelProperties: { + ...AzureResourceBase.type.modelProperties, + ...DeploymentStacksError.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "DeploymentStackValidateProperties", + }, + }, + }, + }, }; export const DeploymentStack: coreClient.CompositeMapper = { @@ -616,93 +774,108 @@ export const DeploymentStack: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } + name: "String", + }, }, tags: { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, }, error: { serializedName: "properties.error", type: { name: "Composite", - className: "ErrorResponse" - } + className: "ErrorDetail", + }, }, template: { serializedName: "properties.template", type: { name: "Dictionary", - value: { type: { name: "any" } } - } + value: { type: { name: "any" } }, + }, }, templateLink: { serializedName: "properties.templateLink", type: { name: "Composite", - className: "DeploymentStacksTemplateLink" - } + className: "DeploymentStacksTemplateLink", + }, }, parameters: { serializedName: "properties.parameters", type: { name: "Dictionary", - value: { type: { name: "any" } } - } + value: { + type: { name: "Composite", className: "DeploymentParameter" }, + }, + }, }, parametersLink: { serializedName: "properties.parametersLink", type: { name: "Composite", - className: "DeploymentStacksParametersLink" - } + className: "DeploymentStacksParametersLink", + }, }, actionOnUnmanage: { serializedName: "properties.actionOnUnmanage", type: { name: "Composite", - className: "DeploymentStackPropertiesActionOnUnmanage" - } + className: "ActionOnUnmanage", + }, }, debugSetting: { serializedName: "properties.debugSetting", type: { name: "Composite", - className: "DeploymentStacksDebugSetting" - } + className: "DeploymentStacksDebugSetting", + }, + }, + bypassStackOutOfSyncError: { + serializedName: "properties.bypassStackOutOfSyncError", + type: { + name: "Boolean", + }, }, deploymentScope: { serializedName: "properties.deploymentScope", type: { - name: "String" - } + name: "String", + }, }, description: { constraints: { - MaxLength: 4096 + MaxLength: 4096, }, serializedName: "properties.description", type: { - name: "String" - } + name: "String", + }, }, denySettings: { serializedName: "properties.denySettings", type: { name: "Composite", - className: "DenySettings" - } + className: "DenySettings", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, + }, + correlationId: { + serializedName: "properties.correlationId", + readOnly: true, + type: { + name: "String", + }, }, detachedResources: { serializedName: "properties.detachedResources", @@ -712,10 +885,10 @@ export const DeploymentStack: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ResourceReference" - } - } - } + className: "ResourceReference", + }, + }, + }, }, deletedResources: { serializedName: "properties.deletedResources", @@ -725,10 +898,10 @@ export const DeploymentStack: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ResourceReference" - } - } - } + className: "ResourceReference", + }, + }, + }, }, failedResources: { serializedName: "properties.failedResources", @@ -738,10 +911,10 @@ export const DeploymentStack: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ResourceReferenceExtended" - } - } - } + className: "ResourceReferenceExtended", + }, + }, + }, }, resources: { serializedName: "properties.resources", @@ -751,78 +924,147 @@ export const DeploymentStack: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ManagedResourceReference" - } - } - } + className: "ManagedResourceReference", + }, + }, + }, }, deploymentId: { serializedName: "properties.deploymentId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, outputs: { serializedName: "properties.outputs", readOnly: true, type: { name: "Dictionary", - value: { type: { name: "any" } } - } + value: { type: { name: "any" } }, + }, }, duration: { serializedName: "properties.duration", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const DeploymentStacksDeleteAtResourceGroupHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DeploymentStacksDeleteAtResourceGroupHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String" - } - } - } - } -}; +export const DeploymentStacksDeleteAtResourceGroupHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "DeploymentStacksDeleteAtResourceGroupHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + }, + }, + }; -export const DeploymentStacksDeleteAtSubscriptionHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DeploymentStacksDeleteAtSubscriptionHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String" - } - } - } - } -}; +export const DeploymentStacksDeleteAtSubscriptionHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "DeploymentStacksDeleteAtSubscriptionHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + }, + }, + }; -export const DeploymentStacksDeleteAtManagementGroupHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DeploymentStacksDeleteAtManagementGroupHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String" - } - } - } - } -}; +export const DeploymentStacksDeleteAtManagementGroupHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "DeploymentStacksDeleteAtManagementGroupHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const DeploymentStacksValidateStackAtResourceGroupHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "DeploymentStacksValidateStackAtResourceGroupHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + retryAfter: { + serializedName: "retry-after", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const DeploymentStacksValidateStackAtSubscriptionHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "DeploymentStacksValidateStackAtSubscriptionHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + retryAfter: { + serializedName: "retry-after", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const DeploymentStacksValidateStackAtManagementGroupHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "DeploymentStacksValidateStackAtManagementGroupHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + retryAfter: { + serializedName: "retry-after", + type: { + name: "String", + }, + }, + }, + }, + }; diff --git a/sdk/resourcesdeploymentstacks/arm-resourcesdeploymentstacks/src/models/parameters.ts b/sdk/resourcesdeploymentstacks/arm-resourcesdeploymentstacks/src/models/parameters.ts index 41f95a3608af7..3e7ea8994e5af 100644 --- a/sdk/resourcesdeploymentstacks/arm-resourcesdeploymentstacks/src/models/parameters.ts +++ b/sdk/resourcesdeploymentstacks/arm-resourcesdeploymentstacks/src/models/parameters.ts @@ -9,7 +9,7 @@ import { OperationParameter, OperationURLParameter, - OperationQueryParameter + OperationQueryParameter, } from "@azure/core-client"; import { DeploymentStack as DeploymentStackMapper } from "../models/mappers"; @@ -20,9 +20,9 @@ export const accept: OperationParameter = { isConstant: true, serializedName: "Accept", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const $host: OperationURLParameter = { @@ -31,24 +31,21 @@ export const $host: OperationURLParameter = { serializedName: "$host", required: true, type: { - name: "String" - } + name: "String", + }, }, - skipEncoding: true + skipEncoding: true, }; export const subscriptionId: OperationURLParameter = { parameterPath: "subscriptionId", mapper: { - constraints: { - MinLength: 1 - }, serializedName: "subscriptionId", required: true, type: { - name: "String" - } - } + name: "Uuid", + }, + }, }; export const resourceGroupName: OperationURLParameter = { @@ -56,26 +53,26 @@ export const resourceGroupName: OperationURLParameter = { mapper: { constraints: { MaxLength: 90, - MinLength: 1 + MinLength: 1, }, serializedName: "resourceGroupName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const apiVersion: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2022-08-01-preview", + defaultValue: "2024-03-01", isConstant: true, serializedName: "api-version", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const managementGroupId: OperationURLParameter = { @@ -84,14 +81,14 @@ export const managementGroupId: OperationURLParameter = { constraints: { Pattern: new RegExp("^[-\\w\\._\\(\\)]+$"), MaxLength: 90, - MinLength: 1 + MinLength: 1, }, serializedName: "managementGroupId", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const contentType: OperationParameter = { @@ -101,14 +98,14 @@ export const contentType: OperationParameter = { isConstant: true, serializedName: "Content-Type", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const deploymentStack: OperationParameter = { parameterPath: "deploymentStack", - mapper: DeploymentStackMapper + mapper: DeploymentStackMapper, }; export const deploymentStackName: OperationURLParameter = { @@ -117,14 +114,14 @@ export const deploymentStackName: OperationURLParameter = { constraints: { Pattern: new RegExp("^[-\\w\\._\\(\\)]+$"), MaxLength: 90, - MinLength: 1 + MinLength: 1, }, serializedName: "deploymentStackName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const unmanageActionResources: OperationQueryParameter = { @@ -132,9 +129,9 @@ export const unmanageActionResources: OperationQueryParameter = { mapper: { serializedName: "unmanageAction.Resources", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const unmanageActionResourceGroups: OperationQueryParameter = { @@ -142,9 +139,9 @@ export const unmanageActionResourceGroups: OperationQueryParameter = { mapper: { serializedName: "unmanageAction.ResourceGroups", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const unmanageActionManagementGroups: OperationQueryParameter = { @@ -152,9 +149,19 @@ export const unmanageActionManagementGroups: OperationQueryParameter = { mapper: { serializedName: "unmanageAction.ManagementGroups", type: { - name: "String" - } - } + name: "String", + }, + }, +}; + +export const bypassStackOutOfSyncError: OperationQueryParameter = { + parameterPath: ["options", "bypassStackOutOfSyncError"], + mapper: { + serializedName: "bypassStackOutOfSyncError", + type: { + name: "Boolean", + }, + }, }; export const nextLink: OperationURLParameter = { @@ -163,8 +170,8 @@ export const nextLink: OperationURLParameter = { serializedName: "nextLink", required: true, type: { - name: "String" - } + name: "String", + }, }, - skipEncoding: true + skipEncoding: true, }; diff --git a/sdk/resourcesdeploymentstacks/arm-resourcesdeploymentstacks/src/operations/deploymentStacks.ts b/sdk/resourcesdeploymentstacks/arm-resourcesdeploymentstacks/src/operations/deploymentStacks.ts index e0de1f8c1509c..e794e82d78b9e 100644 --- a/sdk/resourcesdeploymentstacks/arm-resourcesdeploymentstacks/src/operations/deploymentStacks.ts +++ b/sdk/resourcesdeploymentstacks/arm-resourcesdeploymentstacks/src/operations/deploymentStacks.ts @@ -16,7 +16,7 @@ import { DeploymentStacksClient } from "../deploymentStacksClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -51,9 +51,15 @@ import { DeploymentStacksExportTemplateAtSubscriptionResponse, DeploymentStacksExportTemplateAtManagementGroupOptionalParams, DeploymentStacksExportTemplateAtManagementGroupResponse, + DeploymentStacksValidateStackAtResourceGroupOptionalParams, + DeploymentStacksValidateStackAtResourceGroupResponse, + DeploymentStacksValidateStackAtSubscriptionOptionalParams, + DeploymentStacksValidateStackAtSubscriptionResponse, + DeploymentStacksValidateStackAtManagementGroupOptionalParams, + DeploymentStacksValidateStackAtManagementGroupResponse, DeploymentStacksListAtResourceGroupNextResponse, DeploymentStacksListAtSubscriptionNextResponse, - DeploymentStacksListAtManagementGroupNextResponse + DeploymentStacksListAtManagementGroupNextResponse, } from "../models"; /// @@ -70,13 +76,13 @@ export class DeploymentStacksImpl implements DeploymentStacks { } /** - * Lists all the Deployment Stacks within the specified resource group. + * Lists all the Deployment stacks within the specified Resource Group. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param options The options parameters. */ public listAtResourceGroup( resourceGroupName: string, - options?: DeploymentStacksListAtResourceGroupOptionalParams + options?: DeploymentStacksListAtResourceGroupOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listAtResourceGroupPagingAll(resourceGroupName, options); return { @@ -93,16 +99,16 @@ export class DeploymentStacksImpl implements DeploymentStacks { return this.listAtResourceGroupPagingPage( resourceGroupName, options, - settings + settings, ); - } + }, }; } private async *listAtResourceGroupPagingPage( resourceGroupName: string, options?: DeploymentStacksListAtResourceGroupOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: DeploymentStacksListAtResourceGroupResponse; let continuationToken = settings?.continuationToken; @@ -117,7 +123,7 @@ export class DeploymentStacksImpl implements DeploymentStacks { result = await this._listAtResourceGroupNext( resourceGroupName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -128,22 +134,22 @@ export class DeploymentStacksImpl implements DeploymentStacks { private async *listAtResourceGroupPagingAll( resourceGroupName: string, - options?: DeploymentStacksListAtResourceGroupOptionalParams + options?: DeploymentStacksListAtResourceGroupOptionalParams, ): AsyncIterableIterator { for await (const page of this.listAtResourceGroupPagingPage( resourceGroupName, - options + options, )) { yield* page; } } /** - * Lists all the Deployment Stacks within the specified subscription. + * Lists all the Deployment stacks within the specified Subscription. * @param options The options parameters. */ public listAtSubscription( - options?: DeploymentStacksListAtSubscriptionOptionalParams + options?: DeploymentStacksListAtSubscriptionOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listAtSubscriptionPagingAll(options); return { @@ -158,13 +164,13 @@ export class DeploymentStacksImpl implements DeploymentStacks { throw new Error("maxPageSize is not supported by this operation."); } return this.listAtSubscriptionPagingPage(options, settings); - } + }, }; } private async *listAtSubscriptionPagingPage( options?: DeploymentStacksListAtSubscriptionOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: DeploymentStacksListAtSubscriptionResponse; let continuationToken = settings?.continuationToken; @@ -185,7 +191,7 @@ export class DeploymentStacksImpl implements DeploymentStacks { } private async *listAtSubscriptionPagingAll( - options?: DeploymentStacksListAtSubscriptionOptionalParams + options?: DeploymentStacksListAtSubscriptionOptionalParams, ): AsyncIterableIterator { for await (const page of this.listAtSubscriptionPagingPage(options)) { yield* page; @@ -193,17 +199,17 @@ export class DeploymentStacksImpl implements DeploymentStacks { } /** - * Lists all the Deployment Stacks within the specified management group. - * @param managementGroupId Management Group. + * Lists all the Deployment stacks within the specified Management Group. + * @param managementGroupId Management Group id. * @param options The options parameters. */ public listAtManagementGroup( managementGroupId: string, - options?: DeploymentStacksListAtManagementGroupOptionalParams + options?: DeploymentStacksListAtManagementGroupOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listAtManagementGroupPagingAll( managementGroupId, - options + options, ); return { next() { @@ -219,16 +225,16 @@ export class DeploymentStacksImpl implements DeploymentStacks { return this.listAtManagementGroupPagingPage( managementGroupId, options, - settings + settings, ); - } + }, }; } private async *listAtManagementGroupPagingPage( managementGroupId: string, options?: DeploymentStacksListAtManagementGroupOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: DeploymentStacksListAtManagementGroupResponse; let continuationToken = settings?.continuationToken; @@ -243,7 +249,7 @@ export class DeploymentStacksImpl implements DeploymentStacks { result = await this._listAtManagementGroupNext( managementGroupId, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -254,71 +260,71 @@ export class DeploymentStacksImpl implements DeploymentStacks { private async *listAtManagementGroupPagingAll( managementGroupId: string, - options?: DeploymentStacksListAtManagementGroupOptionalParams + options?: DeploymentStacksListAtManagementGroupOptionalParams, ): AsyncIterableIterator { for await (const page of this.listAtManagementGroupPagingPage( managementGroupId, - options + options, )) { yield* page; } } /** - * Lists all the Deployment Stacks within the specified resource group. + * Lists all the Deployment stacks within the specified Resource Group. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param options The options parameters. */ private _listAtResourceGroup( resourceGroupName: string, - options?: DeploymentStacksListAtResourceGroupOptionalParams + options?: DeploymentStacksListAtResourceGroupOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, - listAtResourceGroupOperationSpec + listAtResourceGroupOperationSpec, ); } /** - * Lists all the Deployment Stacks within the specified subscription. + * Lists all the Deployment stacks within the specified Subscription. * @param options The options parameters. */ private _listAtSubscription( - options?: DeploymentStacksListAtSubscriptionOptionalParams + options?: DeploymentStacksListAtSubscriptionOptionalParams, ): Promise { return this.client.sendOperationRequest( { options }, - listAtSubscriptionOperationSpec + listAtSubscriptionOperationSpec, ); } /** - * Lists all the Deployment Stacks within the specified management group. - * @param managementGroupId Management Group. + * Lists all the Deployment stacks within the specified Management Group. + * @param managementGroupId Management Group id. * @param options The options parameters. */ private _listAtManagementGroup( managementGroupId: string, - options?: DeploymentStacksListAtManagementGroupOptionalParams + options?: DeploymentStacksListAtManagementGroupOptionalParams, ): Promise { return this.client.sendOperationRequest( { managementGroupId, options }, - listAtManagementGroupOperationSpec + listAtManagementGroupOperationSpec, ); } /** - * Creates or updates a Deployment Stack. + * Creates or updates a Deployment stack at Resource Group scope. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param deploymentStackName Name of the deployment stack. - * @param deploymentStack Deployment Stack supplied to the operation. + * @param deploymentStack Deployment stack supplied to the operation. * @param options The options parameters. */ async beginCreateOrUpdateAtResourceGroup( resourceGroupName: string, deploymentStackName: string, deploymentStack: DeploymentStack, - options?: DeploymentStacksCreateOrUpdateAtResourceGroupOptionalParams + options?: DeploymentStacksCreateOrUpdateAtResourceGroupOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -327,21 +333,20 @@ export class DeploymentStacksImpl implements DeploymentStacks { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -350,8 +355,8 @@ export class DeploymentStacksImpl implements DeploymentStacks { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -359,8 +364,8 @@ export class DeploymentStacksImpl implements DeploymentStacks { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -370,9 +375,9 @@ export class DeploymentStacksImpl implements DeploymentStacks { resourceGroupName, deploymentStackName, deploymentStack, - options + options, }, - spec: createOrUpdateAtResourceGroupOperationSpec + spec: createOrUpdateAtResourceGroupOperationSpec, }); const poller = await createHttpPoller< DeploymentStacksCreateOrUpdateAtResourceGroupResponse, @@ -380,36 +385,36 @@ export class DeploymentStacksImpl implements DeploymentStacks { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; } /** - * Creates or updates a Deployment Stack. + * Creates or updates a Deployment stack at Resource Group scope. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param deploymentStackName Name of the deployment stack. - * @param deploymentStack Deployment Stack supplied to the operation. + * @param deploymentStack Deployment stack supplied to the operation. * @param options The options parameters. */ async beginCreateOrUpdateAtResourceGroupAndWait( resourceGroupName: string, deploymentStackName: string, deploymentStack: DeploymentStack, - options?: DeploymentStacksCreateOrUpdateAtResourceGroupOptionalParams + options?: DeploymentStacksCreateOrUpdateAtResourceGroupOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdateAtResourceGroup( resourceGroupName, deploymentStackName, deploymentStack, - options + options, ); return poller.pollUntilDone(); } /** - * Gets a Deployment Stack with a given name. + * Gets a Deployment stack with a given name at Resource Group scope. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param deploymentStackName Name of the deployment stack. * @param options The options parameters. @@ -417,17 +422,17 @@ export class DeploymentStacksImpl implements DeploymentStacks { getAtResourceGroup( resourceGroupName: string, deploymentStackName: string, - options?: DeploymentStacksGetAtResourceGroupOptionalParams + options?: DeploymentStacksGetAtResourceGroupOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, deploymentStackName, options }, - getAtResourceGroupOperationSpec + getAtResourceGroupOperationSpec, ); } /** - * Deletes a Deployment Stack by name. When operation completes, status code 200 returned without - * content. + * Deletes a Deployment stack by name at Resource Group scope. When operation completes, status code + * 200 returned without content. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param deploymentStackName Name of the deployment stack. * @param options The options parameters. @@ -435,25 +440,24 @@ export class DeploymentStacksImpl implements DeploymentStacks { async beginDeleteAtResourceGroup( resourceGroupName: string, deploymentStackName: string, - options?: DeploymentStacksDeleteAtResourceGroupOptionalParams + options?: DeploymentStacksDeleteAtResourceGroupOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -462,8 +466,8 @@ export class DeploymentStacksImpl implements DeploymentStacks { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -471,28 +475,28 @@ export class DeploymentStacksImpl implements DeploymentStacks { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, deploymentStackName, options }, - spec: deleteAtResourceGroupOperationSpec + spec: deleteAtResourceGroupOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; } /** - * Deletes a Deployment Stack by name. When operation completes, status code 200 returned without - * content. + * Deletes a Deployment stack by name at Resource Group scope. When operation completes, status code + * 200 returned without content. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param deploymentStackName Name of the deployment stack. * @param options The options parameters. @@ -500,26 +504,26 @@ export class DeploymentStacksImpl implements DeploymentStacks { async beginDeleteAtResourceGroupAndWait( resourceGroupName: string, deploymentStackName: string, - options?: DeploymentStacksDeleteAtResourceGroupOptionalParams + options?: DeploymentStacksDeleteAtResourceGroupOptionalParams, ): Promise { const poller = await this.beginDeleteAtResourceGroup( resourceGroupName, deploymentStackName, - options + options, ); return poller.pollUntilDone(); } /** - * Creates or updates a Deployment Stack. + * Creates or updates a Deployment stack at Subscription scope. * @param deploymentStackName Name of the deployment stack. - * @param deploymentStack Deployment Stack supplied to the operation. + * @param deploymentStack Deployment stack supplied to the operation. * @param options The options parameters. */ async beginCreateOrUpdateAtSubscription( deploymentStackName: string, deploymentStack: DeploymentStack, - options?: DeploymentStacksCreateOrUpdateAtSubscriptionOptionalParams + options?: DeploymentStacksCreateOrUpdateAtSubscriptionOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -528,21 +532,20 @@ export class DeploymentStacksImpl implements DeploymentStacks { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -551,8 +554,8 @@ export class DeploymentStacksImpl implements DeploymentStacks { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -560,15 +563,15 @@ export class DeploymentStacksImpl implements DeploymentStacks { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { deploymentStackName, deploymentStack, options }, - spec: createOrUpdateAtSubscriptionOperationSpec + spec: createOrUpdateAtSubscriptionOperationSpec, }); const poller = await createHttpPoller< DeploymentStacksCreateOrUpdateAtSubscriptionResponse, @@ -576,73 +579,72 @@ export class DeploymentStacksImpl implements DeploymentStacks { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; } /** - * Creates or updates a Deployment Stack. + * Creates or updates a Deployment stack at Subscription scope. * @param deploymentStackName Name of the deployment stack. - * @param deploymentStack Deployment Stack supplied to the operation. + * @param deploymentStack Deployment stack supplied to the operation. * @param options The options parameters. */ async beginCreateOrUpdateAtSubscriptionAndWait( deploymentStackName: string, deploymentStack: DeploymentStack, - options?: DeploymentStacksCreateOrUpdateAtSubscriptionOptionalParams + options?: DeploymentStacksCreateOrUpdateAtSubscriptionOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdateAtSubscription( deploymentStackName, deploymentStack, - options + options, ); return poller.pollUntilDone(); } /** - * Gets a Deployment Stack with a given name. + * Gets a Deployment stack with a given name at Subscription scope. * @param deploymentStackName Name of the deployment stack. * @param options The options parameters. */ getAtSubscription( deploymentStackName: string, - options?: DeploymentStacksGetAtSubscriptionOptionalParams + options?: DeploymentStacksGetAtSubscriptionOptionalParams, ): Promise { return this.client.sendOperationRequest( { deploymentStackName, options }, - getAtSubscriptionOperationSpec + getAtSubscriptionOperationSpec, ); } /** - * Deletes a Deployment Stack by name. When operation completes, status code 200 returned without - * content. + * Deletes a Deployment stack by name at Subscription scope. When operation completes, status code 200 + * returned without content. * @param deploymentStackName Name of the deployment stack. * @param options The options parameters. */ async beginDeleteAtSubscription( deploymentStackName: string, - options?: DeploymentStacksDeleteAtSubscriptionOptionalParams + options?: DeploymentStacksDeleteAtSubscriptionOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -651,8 +653,8 @@ export class DeploymentStacksImpl implements DeploymentStacks { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -660,54 +662,54 @@ export class DeploymentStacksImpl implements DeploymentStacks { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { deploymentStackName, options }, - spec: deleteAtSubscriptionOperationSpec + spec: deleteAtSubscriptionOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; } /** - * Deletes a Deployment Stack by name. When operation completes, status code 200 returned without - * content. + * Deletes a Deployment stack by name at Subscription scope. When operation completes, status code 200 + * returned without content. * @param deploymentStackName Name of the deployment stack. * @param options The options parameters. */ async beginDeleteAtSubscriptionAndWait( deploymentStackName: string, - options?: DeploymentStacksDeleteAtSubscriptionOptionalParams + options?: DeploymentStacksDeleteAtSubscriptionOptionalParams, ): Promise { const poller = await this.beginDeleteAtSubscription( deploymentStackName, - options + options, ); return poller.pollUntilDone(); } /** - * Creates or updates a Deployment Stack. - * @param managementGroupId Management Group. + * Creates or updates a Deployment stack at Management Group scope. + * @param managementGroupId Management Group id. * @param deploymentStackName Name of the deployment stack. - * @param deploymentStack Deployment Stack supplied to the operation. + * @param deploymentStack Deployment stack supplied to the operation. * @param options The options parameters. */ async beginCreateOrUpdateAtManagementGroup( managementGroupId: string, deploymentStackName: string, deploymentStack: DeploymentStack, - options?: DeploymentStacksCreateOrUpdateAtManagementGroupOptionalParams + options?: DeploymentStacksCreateOrUpdateAtManagementGroupOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -716,21 +718,20 @@ export class DeploymentStacksImpl implements DeploymentStacks { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -739,8 +740,8 @@ export class DeploymentStacksImpl implements DeploymentStacks { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -748,8 +749,8 @@ export class DeploymentStacksImpl implements DeploymentStacks { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -759,9 +760,9 @@ export class DeploymentStacksImpl implements DeploymentStacks { managementGroupId, deploymentStackName, deploymentStack, - options + options, }, - spec: createOrUpdateAtManagementGroupOperationSpec + spec: createOrUpdateAtManagementGroupOperationSpec, }); const poller = await createHttpPoller< DeploymentStacksCreateOrUpdateAtManagementGroupResponse, @@ -769,80 +770,79 @@ export class DeploymentStacksImpl implements DeploymentStacks { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; } /** - * Creates or updates a Deployment Stack. - * @param managementGroupId Management Group. + * Creates or updates a Deployment stack at Management Group scope. + * @param managementGroupId Management Group id. * @param deploymentStackName Name of the deployment stack. - * @param deploymentStack Deployment Stack supplied to the operation. + * @param deploymentStack Deployment stack supplied to the operation. * @param options The options parameters. */ async beginCreateOrUpdateAtManagementGroupAndWait( managementGroupId: string, deploymentStackName: string, deploymentStack: DeploymentStack, - options?: DeploymentStacksCreateOrUpdateAtManagementGroupOptionalParams + options?: DeploymentStacksCreateOrUpdateAtManagementGroupOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdateAtManagementGroup( managementGroupId, deploymentStackName, deploymentStack, - options + options, ); return poller.pollUntilDone(); } /** - * Gets a Deployment Stack with a given name. - * @param managementGroupId Management Group. + * Gets a Deployment stack with a given name at Management Group scope. + * @param managementGroupId Management Group id. * @param deploymentStackName Name of the deployment stack. * @param options The options parameters. */ getAtManagementGroup( managementGroupId: string, deploymentStackName: string, - options?: DeploymentStacksGetAtManagementGroupOptionalParams + options?: DeploymentStacksGetAtManagementGroupOptionalParams, ): Promise { return this.client.sendOperationRequest( { managementGroupId, deploymentStackName, options }, - getAtManagementGroupOperationSpec + getAtManagementGroupOperationSpec, ); } /** - * Deletes a Deployment Stack by name. When operation completes, status code 200 returned without - * content. - * @param managementGroupId Management Group. + * Deletes a Deployment stack by name at Management Group scope. When operation completes, status code + * 200 returned without content. + * @param managementGroupId Management Group id. * @param deploymentStackName Name of the deployment stack. * @param options The options parameters. */ async beginDeleteAtManagementGroup( managementGroupId: string, deploymentStackName: string, - options?: DeploymentStacksDeleteAtManagementGroupOptionalParams + options?: DeploymentStacksDeleteAtManagementGroupOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -851,8 +851,8 @@ export class DeploymentStacksImpl implements DeploymentStacks { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -860,47 +860,47 @@ export class DeploymentStacksImpl implements DeploymentStacks { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { managementGroupId, deploymentStackName, options }, - spec: deleteAtManagementGroupOperationSpec + spec: deleteAtManagementGroupOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; } /** - * Deletes a Deployment Stack by name. When operation completes, status code 200 returned without - * content. - * @param managementGroupId Management Group. + * Deletes a Deployment stack by name at Management Group scope. When operation completes, status code + * 200 returned without content. + * @param managementGroupId Management Group id. * @param deploymentStackName Name of the deployment stack. * @param options The options parameters. */ async beginDeleteAtManagementGroupAndWait( managementGroupId: string, deploymentStackName: string, - options?: DeploymentStacksDeleteAtManagementGroupOptionalParams + options?: DeploymentStacksDeleteAtManagementGroupOptionalParams, ): Promise { const poller = await this.beginDeleteAtManagementGroup( managementGroupId, deploymentStackName, - options + options, ); return poller.pollUntilDone(); } /** - * Exports the template used to create the deployment stack. + * Exports the template used to create the Deployment stack at Resource Group scope. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param deploymentStackName Name of the deployment stack. * @param options The options parameters. @@ -908,44 +908,340 @@ export class DeploymentStacksImpl implements DeploymentStacks { exportTemplateAtResourceGroup( resourceGroupName: string, deploymentStackName: string, - options?: DeploymentStacksExportTemplateAtResourceGroupOptionalParams + options?: DeploymentStacksExportTemplateAtResourceGroupOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, deploymentStackName, options }, - exportTemplateAtResourceGroupOperationSpec + exportTemplateAtResourceGroupOperationSpec, ); } /** - * Exports the template used to create the deployment stack. + * Exports the template used to create the Deployment stack at Subscription scope. * @param deploymentStackName Name of the deployment stack. * @param options The options parameters. */ exportTemplateAtSubscription( deploymentStackName: string, - options?: DeploymentStacksExportTemplateAtSubscriptionOptionalParams + options?: DeploymentStacksExportTemplateAtSubscriptionOptionalParams, ): Promise { return this.client.sendOperationRequest( { deploymentStackName, options }, - exportTemplateAtSubscriptionOperationSpec + exportTemplateAtSubscriptionOperationSpec, ); } /** - * Exports the template used to create the deployment stack. - * @param managementGroupId Management Group. + * Exports the template used to create the Deployment stack at Management Group scope. + * @param managementGroupId Management Group id. * @param deploymentStackName Name of the deployment stack. * @param options The options parameters. */ exportTemplateAtManagementGroup( managementGroupId: string, deploymentStackName: string, - options?: DeploymentStacksExportTemplateAtManagementGroupOptionalParams + options?: DeploymentStacksExportTemplateAtManagementGroupOptionalParams, ): Promise { return this.client.sendOperationRequest( { managementGroupId, deploymentStackName, options }, - exportTemplateAtManagementGroupOperationSpec + exportTemplateAtManagementGroupOperationSpec, + ); + } + + /** + * Runs preflight validation on the Resource Group scoped Deployment stack template to verify its + * acceptance to Azure Resource Manager. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param deploymentStackName Name of the deployment stack. + * @param deploymentStack Deployment stack to validate. + * @param options The options parameters. + */ + async beginValidateStackAtResourceGroup( + resourceGroupName: string, + deploymentStackName: string, + deploymentStack: DeploymentStack, + options?: DeploymentStacksValidateStackAtResourceGroupOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + DeploymentStacksValidateStackAtResourceGroupResponse + > + > { + 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, + deploymentStackName, + deploymentStack, + options, + }, + spec: validateStackAtResourceGroupOperationSpec, + }); + const poller = await createHttpPoller< + DeploymentStacksValidateStackAtResourceGroupResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location", + }); + await poller.poll(); + return poller; + } + + /** + * Runs preflight validation on the Resource Group scoped Deployment stack template to verify its + * acceptance to Azure Resource Manager. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param deploymentStackName Name of the deployment stack. + * @param deploymentStack Deployment stack to validate. + * @param options The options parameters. + */ + async beginValidateStackAtResourceGroupAndWait( + resourceGroupName: string, + deploymentStackName: string, + deploymentStack: DeploymentStack, + options?: DeploymentStacksValidateStackAtResourceGroupOptionalParams, + ): Promise { + const poller = await this.beginValidateStackAtResourceGroup( + resourceGroupName, + deploymentStackName, + deploymentStack, + options, + ); + return poller.pollUntilDone(); + } + + /** + * Runs preflight validation on the Subscription scoped Deployment stack template to verify its + * acceptance to Azure Resource Manager. + * @param deploymentStackName Name of the deployment stack. + * @param deploymentStack Deployment stack to validate. + * @param options The options parameters. + */ + async beginValidateStackAtSubscription( + deploymentStackName: string, + deploymentStack: DeploymentStack, + options?: DeploymentStacksValidateStackAtSubscriptionOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + DeploymentStacksValidateStackAtSubscriptionResponse + > + > { + 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: { deploymentStackName, deploymentStack, options }, + spec: validateStackAtSubscriptionOperationSpec, + }); + const poller = await createHttpPoller< + DeploymentStacksValidateStackAtSubscriptionResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location", + }); + await poller.poll(); + return poller; + } + + /** + * Runs preflight validation on the Subscription scoped Deployment stack template to verify its + * acceptance to Azure Resource Manager. + * @param deploymentStackName Name of the deployment stack. + * @param deploymentStack Deployment stack to validate. + * @param options The options parameters. + */ + async beginValidateStackAtSubscriptionAndWait( + deploymentStackName: string, + deploymentStack: DeploymentStack, + options?: DeploymentStacksValidateStackAtSubscriptionOptionalParams, + ): Promise { + const poller = await this.beginValidateStackAtSubscription( + deploymentStackName, + deploymentStack, + options, ); + return poller.pollUntilDone(); + } + + /** + * Runs preflight validation on the Management Group scoped Deployment stack template to verify its + * acceptance to Azure Resource Manager. + * @param managementGroupId Management Group id. + * @param deploymentStackName Name of the deployment stack. + * @param deploymentStack Deployment stack to validate. + * @param options The options parameters. + */ + async beginValidateStackAtManagementGroup( + managementGroupId: string, + deploymentStackName: string, + deploymentStack: DeploymentStack, + options?: DeploymentStacksValidateStackAtManagementGroupOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + DeploymentStacksValidateStackAtManagementGroupResponse + > + > { + 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: { + managementGroupId, + deploymentStackName, + deploymentStack, + options, + }, + spec: validateStackAtManagementGroupOperationSpec, + }); + const poller = await createHttpPoller< + DeploymentStacksValidateStackAtManagementGroupResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location", + }); + await poller.poll(); + return poller; + } + + /** + * Runs preflight validation on the Management Group scoped Deployment stack template to verify its + * acceptance to Azure Resource Manager. + * @param managementGroupId Management Group id. + * @param deploymentStackName Name of the deployment stack. + * @param deploymentStack Deployment stack to validate. + * @param options The options parameters. + */ + async beginValidateStackAtManagementGroupAndWait( + managementGroupId: string, + deploymentStackName: string, + deploymentStack: DeploymentStack, + options?: DeploymentStacksValidateStackAtManagementGroupOptionalParams, + ): Promise { + const poller = await this.beginValidateStackAtManagementGroup( + managementGroupId, + deploymentStackName, + deploymentStack, + options, + ); + return poller.pollUntilDone(); } /** @@ -957,11 +1253,11 @@ export class DeploymentStacksImpl implements DeploymentStacks { private _listAtResourceGroupNext( resourceGroupName: string, nextLink: string, - options?: DeploymentStacksListAtResourceGroupNextOptionalParams + options?: DeploymentStacksListAtResourceGroupNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, nextLink, options }, - listAtResourceGroupNextOperationSpec + listAtResourceGroupNextOperationSpec, ); } @@ -972,28 +1268,28 @@ export class DeploymentStacksImpl implements DeploymentStacks { */ private _listAtSubscriptionNext( nextLink: string, - options?: DeploymentStacksListAtSubscriptionNextOptionalParams + options?: DeploymentStacksListAtSubscriptionNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listAtSubscriptionNextOperationSpec + listAtSubscriptionNextOperationSpec, ); } /** * ListAtManagementGroupNext - * @param managementGroupId Management Group. + * @param managementGroupId Management Group id. * @param nextLink The nextLink from the previous successful call to the ListAtManagementGroup method. * @param options The options parameters. */ private _listAtManagementGroupNext( managementGroupId: string, nextLink: string, - options?: DeploymentStacksListAtManagementGroupNextOptionalParams + options?: DeploymentStacksListAtManagementGroupNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { managementGroupId, nextLink, options }, - listAtManagementGroupNextOperationSpec + listAtManagementGroupNextOperationSpec, ); } } @@ -1001,80 +1297,76 @@ export class DeploymentStacksImpl implements DeploymentStacks { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listAtResourceGroupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/deploymentStacks", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/deploymentStacks", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DeploymentStackListResult + bodyMapper: Mappers.DeploymentStackListResult, }, default: { - bodyMapper: Mappers.DeploymentStacksError - } + bodyMapper: Mappers.DeploymentStacksError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listAtSubscriptionOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deploymentStacks", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deploymentStacks", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DeploymentStackListResult + bodyMapper: Mappers.DeploymentStackListResult, }, default: { - bodyMapper: Mappers.DeploymentStacksError - } + bodyMapper: Mappers.DeploymentStacksError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const listAtManagementGroupOperationSpec: coreClient.OperationSpec = { - path: - "/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Resources/deploymentStacks", + path: "/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Resources/deploymentStacks", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DeploymentStackListResult + bodyMapper: Mappers.DeploymentStackListResult, }, default: { - bodyMapper: Mappers.DeploymentStacksError - } + bodyMapper: Mappers.DeploymentStacksError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.managementGroupId], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateAtResourceGroupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/deploymentStacks/{deploymentStackName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/deploymentStacks/{deploymentStackName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.DeploymentStack + bodyMapper: Mappers.DeploymentStack, }, 201: { - bodyMapper: Mappers.DeploymentStack + bodyMapper: Mappers.DeploymentStack, }, 202: { - bodyMapper: Mappers.DeploymentStack + bodyMapper: Mappers.DeploymentStack, }, 204: { - bodyMapper: Mappers.DeploymentStack + bodyMapper: Mappers.DeploymentStack, }, default: { - bodyMapper: Mappers.DeploymentStacksError - } + bodyMapper: Mappers.DeploymentStacksError, + }, }, requestBody: Parameters.deploymentStack, queryParameters: [Parameters.apiVersion], @@ -1082,37 +1374,35 @@ const createOrUpdateAtResourceGroupOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.deploymentStackName + Parameters.deploymentStackName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const getAtResourceGroupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/deploymentStacks/{deploymentStackName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/deploymentStacks/{deploymentStackName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DeploymentStack + bodyMapper: Mappers.DeploymentStack, }, default: { - bodyMapper: Mappers.DeploymentStacksError - } + bodyMapper: Mappers.DeploymentStacksError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.deploymentStackName + Parameters.deploymentStackName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const deleteAtResourceGroupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/deploymentStacks/{deploymentStackName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/deploymentStacks/{deploymentStackName}", httpMethod: "DELETE", responses: { 200: {}, @@ -1120,79 +1410,78 @@ const deleteAtResourceGroupOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.DeploymentStacksError - } + bodyMapper: Mappers.DeploymentStacksError, + }, }, queryParameters: [ Parameters.apiVersion, Parameters.unmanageActionResources, - Parameters.unmanageActionResourceGroups + Parameters.unmanageActionResourceGroups, + Parameters.unmanageActionManagementGroups, + Parameters.bypassStackOutOfSyncError, ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.deploymentStackName + Parameters.deploymentStackName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateAtSubscriptionOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deploymentStacks/{deploymentStackName}", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deploymentStacks/{deploymentStackName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.DeploymentStack + bodyMapper: Mappers.DeploymentStack, }, 201: { - bodyMapper: Mappers.DeploymentStack + bodyMapper: Mappers.DeploymentStack, }, 202: { - bodyMapper: Mappers.DeploymentStack + bodyMapper: Mappers.DeploymentStack, }, 204: { - bodyMapper: Mappers.DeploymentStack + bodyMapper: Mappers.DeploymentStack, }, default: { - bodyMapper: Mappers.DeploymentStacksError - } + bodyMapper: Mappers.DeploymentStacksError, + }, }, requestBody: Parameters.deploymentStack, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.deploymentStackName + Parameters.deploymentStackName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const getAtSubscriptionOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deploymentStacks/{deploymentStackName}", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deploymentStacks/{deploymentStackName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DeploymentStack + bodyMapper: Mappers.DeploymentStack, }, default: { - bodyMapper: Mappers.DeploymentStacksError - } + bodyMapper: Mappers.DeploymentStacksError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.deploymentStackName + Parameters.deploymentStackName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const deleteAtSubscriptionOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deploymentStacks/{deploymentStackName}", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deploymentStacks/{deploymentStackName}", httpMethod: "DELETE", responses: { 200: {}, @@ -1200,78 +1489,77 @@ const deleteAtSubscriptionOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.DeploymentStacksError - } + bodyMapper: Mappers.DeploymentStacksError, + }, }, queryParameters: [ Parameters.apiVersion, Parameters.unmanageActionResources, - Parameters.unmanageActionResourceGroups + Parameters.unmanageActionResourceGroups, + Parameters.unmanageActionManagementGroups, + Parameters.bypassStackOutOfSyncError, ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.deploymentStackName + Parameters.deploymentStackName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateAtManagementGroupOperationSpec: coreClient.OperationSpec = { - path: - "/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Resources/deploymentStacks/{deploymentStackName}", + path: "/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Resources/deploymentStacks/{deploymentStackName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.DeploymentStack + bodyMapper: Mappers.DeploymentStack, }, 201: { - bodyMapper: Mappers.DeploymentStack + bodyMapper: Mappers.DeploymentStack, }, 202: { - bodyMapper: Mappers.DeploymentStack + bodyMapper: Mappers.DeploymentStack, }, 204: { - bodyMapper: Mappers.DeploymentStack + bodyMapper: Mappers.DeploymentStack, }, default: { - bodyMapper: Mappers.DeploymentStacksError - } + bodyMapper: Mappers.DeploymentStacksError, + }, }, requestBody: Parameters.deploymentStack, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.managementGroupId, - Parameters.deploymentStackName + Parameters.deploymentStackName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const getAtManagementGroupOperationSpec: coreClient.OperationSpec = { - path: - "/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Resources/deploymentStacks/{deploymentStackName}", + path: "/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Resources/deploymentStacks/{deploymentStackName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DeploymentStack + bodyMapper: Mappers.DeploymentStack, }, default: { - bodyMapper: Mappers.DeploymentStacksError - } + bodyMapper: Mappers.DeploymentStacksError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.managementGroupId, - Parameters.deploymentStackName + Parameters.deploymentStackName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const deleteAtManagementGroupOperationSpec: coreClient.OperationSpec = { - path: - "/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Resources/deploymentStacks/{deploymentStackName}", + path: "/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Resources/deploymentStacks/{deploymentStackName}", httpMethod: "DELETE", responses: { 200: {}, @@ -1279,142 +1567,234 @@ const deleteAtManagementGroupOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.DeploymentStacksError - } + bodyMapper: Mappers.DeploymentStacksError, + }, }, queryParameters: [ Parameters.apiVersion, Parameters.unmanageActionResources, Parameters.unmanageActionResourceGroups, - Parameters.unmanageActionManagementGroups + Parameters.unmanageActionManagementGroups, + Parameters.bypassStackOutOfSyncError, ], urlParameters: [ Parameters.$host, Parameters.managementGroupId, - Parameters.deploymentStackName + Parameters.deploymentStackName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const exportTemplateAtResourceGroupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/deploymentStacks/{deploymentStackName}/exportTemplate", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/deploymentStacks/{deploymentStackName}/exportTemplate", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.DeploymentStackTemplateDefinition + bodyMapper: Mappers.DeploymentStackTemplateDefinition, }, default: { - bodyMapper: Mappers.DeploymentStacksError - } + bodyMapper: Mappers.DeploymentStacksError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.deploymentStackName + Parameters.deploymentStackName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const exportTemplateAtSubscriptionOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deploymentStacks/{deploymentStackName}/exportTemplate", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deploymentStacks/{deploymentStackName}/exportTemplate", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.DeploymentStackTemplateDefinition + bodyMapper: Mappers.DeploymentStackTemplateDefinition, }, default: { - bodyMapper: Mappers.DeploymentStacksError - } + bodyMapper: Mappers.DeploymentStacksError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.deploymentStackName + Parameters.deploymentStackName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const exportTemplateAtManagementGroupOperationSpec: coreClient.OperationSpec = { - path: - "/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Resources/deploymentStacks/{deploymentStackName}/exportTemplate", + path: "/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Resources/deploymentStacks/{deploymentStackName}/exportTemplate", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.DeploymentStackTemplateDefinition + bodyMapper: Mappers.DeploymentStackTemplateDefinition, }, default: { - bodyMapper: Mappers.DeploymentStacksError - } + bodyMapper: Mappers.DeploymentStacksError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.managementGroupId, - Parameters.deploymentStackName + Parameters.deploymentStackName, ], headerParameters: [Parameters.accept], - serializer + serializer, +}; +const validateStackAtResourceGroupOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/deploymentStacks/{deploymentStackName}/validate", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.DeploymentStackValidateResult, + }, + 201: { + bodyMapper: Mappers.DeploymentStackValidateResult, + }, + 202: { + bodyMapper: Mappers.DeploymentStackValidateResult, + }, + 204: { + bodyMapper: Mappers.DeploymentStackValidateResult, + }, + default: { + bodyMapper: Mappers.DeploymentStacksError, + }, + }, + requestBody: Parameters.deploymentStack, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.deploymentStackName, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const validateStackAtSubscriptionOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deploymentStacks/{deploymentStackName}/validate", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.DeploymentStackValidateResult, + }, + 201: { + bodyMapper: Mappers.DeploymentStackValidateResult, + }, + 202: { + bodyMapper: Mappers.DeploymentStackValidateResult, + }, + 204: { + bodyMapper: Mappers.DeploymentStackValidateResult, + }, + default: { + bodyMapper: Mappers.DeploymentStacksError, + }, + }, + requestBody: Parameters.deploymentStack, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.deploymentStackName, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const validateStackAtManagementGroupOperationSpec: coreClient.OperationSpec = { + path: "/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Resources/deploymentStacks/{deploymentStackName}/validate", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.DeploymentStackValidateResult, + }, + 201: { + bodyMapper: Mappers.DeploymentStackValidateResult, + }, + 202: { + bodyMapper: Mappers.DeploymentStackValidateResult, + }, + 204: { + bodyMapper: Mappers.DeploymentStackValidateResult, + }, + default: { + bodyMapper: Mappers.DeploymentStacksError, + }, + }, + requestBody: Parameters.deploymentStack, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.managementGroupId, + Parameters.deploymentStackName, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, }; const listAtResourceGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DeploymentStackListResult + bodyMapper: Mappers.DeploymentStackListResult, }, default: { - bodyMapper: Mappers.DeploymentStacksError - } + bodyMapper: Mappers.DeploymentStacksError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listAtSubscriptionNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DeploymentStackListResult + bodyMapper: Mappers.DeploymentStackListResult, }, default: { - bodyMapper: Mappers.DeploymentStacksError - } + bodyMapper: Mappers.DeploymentStacksError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listAtManagementGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DeploymentStackListResult + bodyMapper: Mappers.DeploymentStackListResult, }, default: { - bodyMapper: Mappers.DeploymentStacksError - } + bodyMapper: Mappers.DeploymentStacksError, + }, }, urlParameters: [ Parameters.$host, Parameters.managementGroupId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/resourcesdeploymentstacks/arm-resourcesdeploymentstacks/src/operationsInterfaces/deploymentStacks.ts b/sdk/resourcesdeploymentstacks/arm-resourcesdeploymentstacks/src/operationsInterfaces/deploymentStacks.ts index 0d6d777058fca..daccb80e47bb0 100644 --- a/sdk/resourcesdeploymentstacks/arm-resourcesdeploymentstacks/src/operationsInterfaces/deploymentStacks.ts +++ b/sdk/resourcesdeploymentstacks/arm-resourcesdeploymentstacks/src/operationsInterfaces/deploymentStacks.ts @@ -33,49 +33,55 @@ import { DeploymentStacksExportTemplateAtSubscriptionOptionalParams, DeploymentStacksExportTemplateAtSubscriptionResponse, DeploymentStacksExportTemplateAtManagementGroupOptionalParams, - DeploymentStacksExportTemplateAtManagementGroupResponse + DeploymentStacksExportTemplateAtManagementGroupResponse, + DeploymentStacksValidateStackAtResourceGroupOptionalParams, + DeploymentStacksValidateStackAtResourceGroupResponse, + DeploymentStacksValidateStackAtSubscriptionOptionalParams, + DeploymentStacksValidateStackAtSubscriptionResponse, + DeploymentStacksValidateStackAtManagementGroupOptionalParams, + DeploymentStacksValidateStackAtManagementGroupResponse, } from "../models"; /// /** Interface representing a DeploymentStacks. */ export interface DeploymentStacks { /** - * Lists all the Deployment Stacks within the specified resource group. + * Lists all the Deployment stacks within the specified Resource Group. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param options The options parameters. */ listAtResourceGroup( resourceGroupName: string, - options?: DeploymentStacksListAtResourceGroupOptionalParams + options?: DeploymentStacksListAtResourceGroupOptionalParams, ): PagedAsyncIterableIterator; /** - * Lists all the Deployment Stacks within the specified subscription. + * Lists all the Deployment stacks within the specified Subscription. * @param options The options parameters. */ listAtSubscription( - options?: DeploymentStacksListAtSubscriptionOptionalParams + options?: DeploymentStacksListAtSubscriptionOptionalParams, ): PagedAsyncIterableIterator; /** - * Lists all the Deployment Stacks within the specified management group. - * @param managementGroupId Management Group. + * Lists all the Deployment stacks within the specified Management Group. + * @param managementGroupId Management Group id. * @param options The options parameters. */ listAtManagementGroup( managementGroupId: string, - options?: DeploymentStacksListAtManagementGroupOptionalParams + options?: DeploymentStacksListAtManagementGroupOptionalParams, ): PagedAsyncIterableIterator; /** - * Creates or updates a Deployment Stack. + * Creates or updates a Deployment stack at Resource Group scope. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param deploymentStackName Name of the deployment stack. - * @param deploymentStack Deployment Stack supplied to the operation. + * @param deploymentStack Deployment stack supplied to the operation. * @param options The options parameters. */ beginCreateOrUpdateAtResourceGroup( resourceGroupName: string, deploymentStackName: string, deploymentStack: DeploymentStack, - options?: DeploymentStacksCreateOrUpdateAtResourceGroupOptionalParams + options?: DeploymentStacksCreateOrUpdateAtResourceGroupOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -83,20 +89,20 @@ export interface DeploymentStacks { > >; /** - * Creates or updates a Deployment Stack. + * Creates or updates a Deployment stack at Resource Group scope. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param deploymentStackName Name of the deployment stack. - * @param deploymentStack Deployment Stack supplied to the operation. + * @param deploymentStack Deployment stack supplied to the operation. * @param options The options parameters. */ beginCreateOrUpdateAtResourceGroupAndWait( resourceGroupName: string, deploymentStackName: string, deploymentStack: DeploymentStack, - options?: DeploymentStacksCreateOrUpdateAtResourceGroupOptionalParams + options?: DeploymentStacksCreateOrUpdateAtResourceGroupOptionalParams, ): Promise; /** - * Gets a Deployment Stack with a given name. + * Gets a Deployment stack with a given name at Resource Group scope. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param deploymentStackName Name of the deployment stack. * @param options The options parameters. @@ -104,11 +110,11 @@ export interface DeploymentStacks { getAtResourceGroup( resourceGroupName: string, deploymentStackName: string, - options?: DeploymentStacksGetAtResourceGroupOptionalParams + options?: DeploymentStacksGetAtResourceGroupOptionalParams, ): Promise; /** - * Deletes a Deployment Stack by name. When operation completes, status code 200 returned without - * content. + * Deletes a Deployment stack by name at Resource Group scope. When operation completes, status code + * 200 returned without content. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param deploymentStackName Name of the deployment stack. * @param options The options parameters. @@ -116,11 +122,11 @@ export interface DeploymentStacks { beginDeleteAtResourceGroup( resourceGroupName: string, deploymentStackName: string, - options?: DeploymentStacksDeleteAtResourceGroupOptionalParams + options?: DeploymentStacksDeleteAtResourceGroupOptionalParams, ): Promise, void>>; /** - * Deletes a Deployment Stack by name. When operation completes, status code 200 returned without - * content. + * Deletes a Deployment stack by name at Resource Group scope. When operation completes, status code + * 200 returned without content. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param deploymentStackName Name of the deployment stack. * @param options The options parameters. @@ -128,18 +134,18 @@ export interface DeploymentStacks { beginDeleteAtResourceGroupAndWait( resourceGroupName: string, deploymentStackName: string, - options?: DeploymentStacksDeleteAtResourceGroupOptionalParams + options?: DeploymentStacksDeleteAtResourceGroupOptionalParams, ): Promise; /** - * Creates or updates a Deployment Stack. + * Creates or updates a Deployment stack at Subscription scope. * @param deploymentStackName Name of the deployment stack. - * @param deploymentStack Deployment Stack supplied to the operation. + * @param deploymentStack Deployment stack supplied to the operation. * @param options The options parameters. */ beginCreateOrUpdateAtSubscription( deploymentStackName: string, deploymentStack: DeploymentStack, - options?: DeploymentStacksCreateOrUpdateAtSubscriptionOptionalParams + options?: DeploymentStacksCreateOrUpdateAtSubscriptionOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -147,57 +153,57 @@ export interface DeploymentStacks { > >; /** - * Creates or updates a Deployment Stack. + * Creates or updates a Deployment stack at Subscription scope. * @param deploymentStackName Name of the deployment stack. - * @param deploymentStack Deployment Stack supplied to the operation. + * @param deploymentStack Deployment stack supplied to the operation. * @param options The options parameters. */ beginCreateOrUpdateAtSubscriptionAndWait( deploymentStackName: string, deploymentStack: DeploymentStack, - options?: DeploymentStacksCreateOrUpdateAtSubscriptionOptionalParams + options?: DeploymentStacksCreateOrUpdateAtSubscriptionOptionalParams, ): Promise; /** - * Gets a Deployment Stack with a given name. + * Gets a Deployment stack with a given name at Subscription scope. * @param deploymentStackName Name of the deployment stack. * @param options The options parameters. */ getAtSubscription( deploymentStackName: string, - options?: DeploymentStacksGetAtSubscriptionOptionalParams + options?: DeploymentStacksGetAtSubscriptionOptionalParams, ): Promise; /** - * Deletes a Deployment Stack by name. When operation completes, status code 200 returned without - * content. + * Deletes a Deployment stack by name at Subscription scope. When operation completes, status code 200 + * returned without content. * @param deploymentStackName Name of the deployment stack. * @param options The options parameters. */ beginDeleteAtSubscription( deploymentStackName: string, - options?: DeploymentStacksDeleteAtSubscriptionOptionalParams + options?: DeploymentStacksDeleteAtSubscriptionOptionalParams, ): Promise, void>>; /** - * Deletes a Deployment Stack by name. When operation completes, status code 200 returned without - * content. + * Deletes a Deployment stack by name at Subscription scope. When operation completes, status code 200 + * returned without content. * @param deploymentStackName Name of the deployment stack. * @param options The options parameters. */ beginDeleteAtSubscriptionAndWait( deploymentStackName: string, - options?: DeploymentStacksDeleteAtSubscriptionOptionalParams + options?: DeploymentStacksDeleteAtSubscriptionOptionalParams, ): Promise; /** - * Creates or updates a Deployment Stack. - * @param managementGroupId Management Group. + * Creates or updates a Deployment stack at Management Group scope. + * @param managementGroupId Management Group id. * @param deploymentStackName Name of the deployment stack. - * @param deploymentStack Deployment Stack supplied to the operation. + * @param deploymentStack Deployment stack supplied to the operation. * @param options The options parameters. */ beginCreateOrUpdateAtManagementGroup( managementGroupId: string, deploymentStackName: string, deploymentStack: DeploymentStack, - options?: DeploymentStacksCreateOrUpdateAtManagementGroupOptionalParams + options?: DeploymentStacksCreateOrUpdateAtManagementGroupOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -205,55 +211,55 @@ export interface DeploymentStacks { > >; /** - * Creates or updates a Deployment Stack. - * @param managementGroupId Management Group. + * Creates or updates a Deployment stack at Management Group scope. + * @param managementGroupId Management Group id. * @param deploymentStackName Name of the deployment stack. - * @param deploymentStack Deployment Stack supplied to the operation. + * @param deploymentStack Deployment stack supplied to the operation. * @param options The options parameters. */ beginCreateOrUpdateAtManagementGroupAndWait( managementGroupId: string, deploymentStackName: string, deploymentStack: DeploymentStack, - options?: DeploymentStacksCreateOrUpdateAtManagementGroupOptionalParams + options?: DeploymentStacksCreateOrUpdateAtManagementGroupOptionalParams, ): Promise; /** - * Gets a Deployment Stack with a given name. - * @param managementGroupId Management Group. + * Gets a Deployment stack with a given name at Management Group scope. + * @param managementGroupId Management Group id. * @param deploymentStackName Name of the deployment stack. * @param options The options parameters. */ getAtManagementGroup( managementGroupId: string, deploymentStackName: string, - options?: DeploymentStacksGetAtManagementGroupOptionalParams + options?: DeploymentStacksGetAtManagementGroupOptionalParams, ): Promise; /** - * Deletes a Deployment Stack by name. When operation completes, status code 200 returned without - * content. - * @param managementGroupId Management Group. + * Deletes a Deployment stack by name at Management Group scope. When operation completes, status code + * 200 returned without content. + * @param managementGroupId Management Group id. * @param deploymentStackName Name of the deployment stack. * @param options The options parameters. */ beginDeleteAtManagementGroup( managementGroupId: string, deploymentStackName: string, - options?: DeploymentStacksDeleteAtManagementGroupOptionalParams + options?: DeploymentStacksDeleteAtManagementGroupOptionalParams, ): Promise, void>>; /** - * Deletes a Deployment Stack by name. When operation completes, status code 200 returned without - * content. - * @param managementGroupId Management Group. + * Deletes a Deployment stack by name at Management Group scope. When operation completes, status code + * 200 returned without content. + * @param managementGroupId Management Group id. * @param deploymentStackName Name of the deployment stack. * @param options The options parameters. */ beginDeleteAtManagementGroupAndWait( managementGroupId: string, deploymentStackName: string, - options?: DeploymentStacksDeleteAtManagementGroupOptionalParams + options?: DeploymentStacksDeleteAtManagementGroupOptionalParams, ): Promise; /** - * Exports the template used to create the deployment stack. + * Exports the template used to create the Deployment stack at Resource Group scope. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param deploymentStackName Name of the deployment stack. * @param options The options parameters. @@ -261,26 +267,121 @@ export interface DeploymentStacks { exportTemplateAtResourceGroup( resourceGroupName: string, deploymentStackName: string, - options?: DeploymentStacksExportTemplateAtResourceGroupOptionalParams + options?: DeploymentStacksExportTemplateAtResourceGroupOptionalParams, ): Promise; /** - * Exports the template used to create the deployment stack. + * Exports the template used to create the Deployment stack at Subscription scope. * @param deploymentStackName Name of the deployment stack. * @param options The options parameters. */ exportTemplateAtSubscription( deploymentStackName: string, - options?: DeploymentStacksExportTemplateAtSubscriptionOptionalParams + options?: DeploymentStacksExportTemplateAtSubscriptionOptionalParams, ): Promise; /** - * Exports the template used to create the deployment stack. - * @param managementGroupId Management Group. + * Exports the template used to create the Deployment stack at Management Group scope. + * @param managementGroupId Management Group id. * @param deploymentStackName Name of the deployment stack. * @param options The options parameters. */ exportTemplateAtManagementGroup( managementGroupId: string, deploymentStackName: string, - options?: DeploymentStacksExportTemplateAtManagementGroupOptionalParams + options?: DeploymentStacksExportTemplateAtManagementGroupOptionalParams, ): Promise; + /** + * Runs preflight validation on the Resource Group scoped Deployment stack template to verify its + * acceptance to Azure Resource Manager. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param deploymentStackName Name of the deployment stack. + * @param deploymentStack Deployment stack to validate. + * @param options The options parameters. + */ + beginValidateStackAtResourceGroup( + resourceGroupName: string, + deploymentStackName: string, + deploymentStack: DeploymentStack, + options?: DeploymentStacksValidateStackAtResourceGroupOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + DeploymentStacksValidateStackAtResourceGroupResponse + > + >; + /** + * Runs preflight validation on the Resource Group scoped Deployment stack template to verify its + * acceptance to Azure Resource Manager. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param deploymentStackName Name of the deployment stack. + * @param deploymentStack Deployment stack to validate. + * @param options The options parameters. + */ + beginValidateStackAtResourceGroupAndWait( + resourceGroupName: string, + deploymentStackName: string, + deploymentStack: DeploymentStack, + options?: DeploymentStacksValidateStackAtResourceGroupOptionalParams, + ): Promise; + /** + * Runs preflight validation on the Subscription scoped Deployment stack template to verify its + * acceptance to Azure Resource Manager. + * @param deploymentStackName Name of the deployment stack. + * @param deploymentStack Deployment stack to validate. + * @param options The options parameters. + */ + beginValidateStackAtSubscription( + deploymentStackName: string, + deploymentStack: DeploymentStack, + options?: DeploymentStacksValidateStackAtSubscriptionOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + DeploymentStacksValidateStackAtSubscriptionResponse + > + >; + /** + * Runs preflight validation on the Subscription scoped Deployment stack template to verify its + * acceptance to Azure Resource Manager. + * @param deploymentStackName Name of the deployment stack. + * @param deploymentStack Deployment stack to validate. + * @param options The options parameters. + */ + beginValidateStackAtSubscriptionAndWait( + deploymentStackName: string, + deploymentStack: DeploymentStack, + options?: DeploymentStacksValidateStackAtSubscriptionOptionalParams, + ): Promise; + /** + * Runs preflight validation on the Management Group scoped Deployment stack template to verify its + * acceptance to Azure Resource Manager. + * @param managementGroupId Management Group id. + * @param deploymentStackName Name of the deployment stack. + * @param deploymentStack Deployment stack to validate. + * @param options The options parameters. + */ + beginValidateStackAtManagementGroup( + managementGroupId: string, + deploymentStackName: string, + deploymentStack: DeploymentStack, + options?: DeploymentStacksValidateStackAtManagementGroupOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + DeploymentStacksValidateStackAtManagementGroupResponse + > + >; + /** + * Runs preflight validation on the Management Group scoped Deployment stack template to verify its + * acceptance to Azure Resource Manager. + * @param managementGroupId Management Group id. + * @param deploymentStackName Name of the deployment stack. + * @param deploymentStack Deployment stack to validate. + * @param options The options parameters. + */ + beginValidateStackAtManagementGroupAndWait( + managementGroupId: string, + deploymentStackName: string, + deploymentStack: DeploymentStack, + options?: DeploymentStacksValidateStackAtManagementGroupOptionalParams, + ): Promise; } diff --git a/sdk/resourcesdeploymentstacks/arm-resourcesdeploymentstacks/src/pagingHelper.ts b/sdk/resourcesdeploymentstacks/arm-resourcesdeploymentstacks/src/pagingHelper.ts index 269a2b9814b51..205cccc265927 100644 --- a/sdk/resourcesdeploymentstacks/arm-resourcesdeploymentstacks/src/pagingHelper.ts +++ b/sdk/resourcesdeploymentstacks/arm-resourcesdeploymentstacks/src/pagingHelper.ts @@ -28,7 +28,7 @@ export function getContinuationToken(page: unknown): string | undefined { export function setContinuationToken( page: unknown, - continuationToken: string | undefined + continuationToken: string | undefined, ): void { if (typeof page !== "object" || page === null || !continuationToken) { return; diff --git a/sdk/resourcesdeploymentstacks/arm-resourcesdeploymentstacks/test/sampleTest.ts b/sdk/resourcesdeploymentstacks/arm-resourcesdeploymentstacks/test/sampleTest.ts new file mode 100644 index 0000000000000..d64be981b6946 --- /dev/null +++ b/sdk/resourcesdeploymentstacks/arm-resourcesdeploymentstacks/test/sampleTest.ts @@ -0,0 +1,43 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { + Recorder, + RecorderStartOptions, + env, +} from "@azure-tools/test-recorder"; +import { assert } from "chai"; +import { Context } from "mocha"; + +const replaceableVariables: Record = { + AZURE_CLIENT_ID: "azure_client_id", + AZURE_CLIENT_SECRET: "azure_client_secret", + AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888", + SUBSCRIPTION_ID: "azure_subscription_id", +}; + +const recorderOptions: RecorderStartOptions = { + envSetupForPlayback: replaceableVariables, +}; + +describe("My test", () => { + let recorder: Recorder; + + beforeEach(async function (this: Context) { + recorder = new Recorder(this.currentTest); + await recorder.start(recorderOptions); + }); + + afterEach(async function () { + await recorder.stop(); + }); + + it("sample test", async function () { + console.log("Hi, I'm a test!"); + }); +}); diff --git a/sdk/resourcesdeploymentstacks/arm-resourcesdeploymentstacks/tsconfig.json b/sdk/resourcesdeploymentstacks/arm-resourcesdeploymentstacks/tsconfig.json index 322d361915529..bd91d28114301 100644 --- a/sdk/resourcesdeploymentstacks/arm-resourcesdeploymentstacks/tsconfig.json +++ b/sdk/resourcesdeploymentstacks/arm-resourcesdeploymentstacks/tsconfig.json @@ -15,17 +15,20 @@ ], "declaration": true, "outDir": "./dist-esm", - "importHelpers": true, - "paths": { - "@azure/arm-resourcesdeploymentstacks": [ - "./src/index" - ] - } + "importHelpers": true }, "include": [ "./src/**/*.ts", "./test/**/*.ts", - "samples-dev/**/*.ts" + "./test/**/*.ts", + "./test/**/*.ts", + "./test/**/*.ts", + "./test/**/*.ts", + "./test/**/*.ts", + "./test/**/*.ts", + "./test/**/*.ts", + "./test/**/*.ts", + "./test/**/*.ts" ], "exclude": [ "node_modules" diff --git a/sdk/templatespecs/arm-templatespecs/CHANGELOG.md b/sdk/templatespecs/arm-templatespecs/CHANGELOG.md index 7466f30cef4cf..3c5667a1ac56d 100644 --- a/sdk/templatespecs/arm-templatespecs/CHANGELOG.md +++ b/sdk/templatespecs/arm-templatespecs/CHANGELOG.md @@ -1,15 +1,33 @@ # Release History + +## 3.0.0 (2024-05-22) + +**Features** -## 2.1.1 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed - -### Other Changes - + - Added operation TemplateSpecs.getBuiltIn + - Added operation TemplateSpecs.listBuiltIns + - Added operation TemplateSpecVersions.getBuiltIn + - Added operation TemplateSpecVersions.listBuiltIns + - Added Interface TemplateSpecsGetBuiltInOptionalParams + - Added Interface TemplateSpecsListBuiltInsNextOptionalParams + - Added Interface TemplateSpecsListBuiltInsOptionalParams + - Added Interface TemplateSpecVersionsGetBuiltInOptionalParams + - Added Interface TemplateSpecVersionsListBuiltInsNextOptionalParams + - Added Interface TemplateSpecVersionsListBuiltInsOptionalParams + - Added Type Alias TemplateSpecsGetBuiltInResponse + - Added Type Alias TemplateSpecsListBuiltInsNextResponse + - Added Type Alias TemplateSpecsListBuiltInsResponse + - Added Type Alias TemplateSpecVersionsGetBuiltInResponse + - Added Type Alias TemplateSpecVersionsListBuiltInsNextResponse + - Added Type Alias TemplateSpecVersionsListBuiltInsResponse + +**Breaking Changes** + + - Class TemplateSpecsClient has a new signature + - Interface TemplateSpecsListByResourceGroupNextOptionalParams no longer has parameter expand + - Interface TemplateSpecsListBySubscriptionNextOptionalParams no longer has parameter expand + + ## 2.1.0 (2022-11-23) **Features** @@ -27,4 +45,4 @@ ## 2.0.0 (2021-12-16) -- The package of @azure/arm-templatespecs is using our next generation design principles. To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/js/mgmt/quickstart ). +- The package of @azure/arm-templatespecs is using our next generation design principles. To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/js/mgmt/quickstart). diff --git a/sdk/templatespecs/arm-templatespecs/LICENSE b/sdk/templatespecs/arm-templatespecs/LICENSE index 5d1d36e0af80c..7d59347409658 100644 --- a/sdk/templatespecs/arm-templatespecs/LICENSE +++ b/sdk/templatespecs/arm-templatespecs/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2022 Microsoft +Copyright (c) 2024 Microsoft Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/sdk/templatespecs/arm-templatespecs/_meta.json b/sdk/templatespecs/arm-templatespecs/_meta.json index 4b98b8203a1f2..6f675c5d5d6aa 100644 --- a/sdk/templatespecs/arm-templatespecs/_meta.json +++ b/sdk/templatespecs/arm-templatespecs/_meta.json @@ -1,8 +1,8 @@ { - "commit": "a42f1b58607091c4f255ead152a8ef323fa0b280", - "readme": "specification\\resources\\resource-manager\\readme.md", - "autorest_command": "autorest --version=3.8.4 --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\\resources\\resource-manager\\readme.md --use=@autorest/typescript@6.0.0-rc.3.20221108.1 --generate-sample=true", + "commit": "61db561c7b16295a74a39fa76e58967fb0c621d7", + "readme": "specification/resources/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=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/resources/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.4.2", - "use": "@autorest/typescript@6.0.0-rc.3.20221108.1" + "release_tool": "@azure-tools/js-sdk-release-tools@2.7.9", + "use": "@autorest/typescript@^6.0.12" } \ No newline at end of file diff --git a/sdk/templatespecs/arm-templatespecs/package.json b/sdk/templatespecs/arm-templatespecs/package.json index 54f2083b9a62d..67af33dbb9cc7 100644 --- a/sdk/templatespecs/arm-templatespecs/package.json +++ b/sdk/templatespecs/arm-templatespecs/package.json @@ -3,15 +3,15 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for TemplateSpecsClient.", - "version": "2.1.1", + "version": "3.0.0", "engines": { "node": ">=18.0.0" }, "dependencies": { "@azure/core-paging": "^1.2.0", - "@azure/core-client": "^1.6.1", - "@azure/core-auth": "^1.3.0", - "@azure/core-rest-pipeline": "^1.8.0", + "@azure/core-client": "^1.7.0", + "@azure/core-auth": "^1.6.0", + "@azure/core-rest-pipeline": "^1.14.0", "tslib": "^2.2.0" }, "keywords": [ @@ -30,20 +30,21 @@ "mkdirp": "^3.0.1", "typescript": "~5.4.5", "uglify-js": "^3.4.9", - "rimraf": "^5.0.5", + "rimraf": "^5.0.0", + "dotenv": "^16.0.0", + "@azure/dev-tool": "^1.0.0", "@azure/identity": "^4.0.1", "@azure-tools/test-recorder": "^3.0.0", "@azure-tools/test-credential": "^1.0.0", "mocha": "^10.0.0", + "@types/mocha": "^10.0.0", + "tsx": "^4.7.1", "@types/chai": "^4.2.8", "chai": "^4.2.0", "cross-env": "^7.0.2", "@types/node": "^18.0.0", - "@azure/dev-tool": "^1.0.0", - "ts-node": "^10.0.0", - "@types/mocha": "^10.0.0" + "ts-node": "^10.0.0" }, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/templatespecs/arm-templatespecs", "repository": { "type": "git", "url": "https://github.com/Azure/azure-sdk-for-js.git" @@ -75,7 +76,6 @@ "pack": "npm pack 2>&1", "extract-api": "dev-tool run extract-api", "lint": "echo skipped", - "audit": "echo skipped", "clean": "rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log", "build:node": "echo skipped", "build:browser": "echo skipped", @@ -104,12 +104,5 @@ ] }, "autoPublish": true, - "//sampleConfiguration": { - "productName": "", - "productSlugs": [ - "azure" - ], - "disableDocsMs": true, - "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-templatespecs?view=azure-node-preview" - } -} + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/templatespecs/arm-templatespecs" +} \ No newline at end of file diff --git a/sdk/templatespecs/arm-templatespecs/review/arm-templatespecs.api.md b/sdk/templatespecs/arm-templatespecs/review/arm-templatespecs.api.md index 56c81b6f8c56b..a45a09d0af6b8 100644 --- a/sdk/templatespecs/arm-templatespecs/review/arm-templatespecs.api.md +++ b/sdk/templatespecs/arm-templatespecs/review/arm-templatespecs.api.md @@ -88,6 +88,8 @@ export interface TemplateSpecs { createOrUpdate(resourceGroupName: string, templateSpecName: string, templateSpec: TemplateSpec, options?: TemplateSpecsCreateOrUpdateOptionalParams): Promise; delete(resourceGroupName: string, templateSpecName: string, options?: TemplateSpecsDeleteOptionalParams): Promise; get(resourceGroupName: string, templateSpecName: string, options?: TemplateSpecsGetOptionalParams): Promise; + getBuiltIn(templateSpecName: string, options?: TemplateSpecsGetBuiltInOptionalParams): Promise; + listBuiltIns(options?: TemplateSpecsListBuiltInsOptionalParams): PagedAsyncIterableIterator; listByResourceGroup(resourceGroupName: string, options?: TemplateSpecsListByResourceGroupOptionalParams): PagedAsyncIterableIterator; listBySubscription(options?: TemplateSpecsListBySubscriptionOptionalParams): PagedAsyncIterableIterator; update(resourceGroupName: string, templateSpecName: string, options?: TemplateSpecsUpdateOptionalParams): Promise; @@ -98,10 +100,11 @@ export class TemplateSpecsClient extends coreClient.ServiceClient { // (undocumented) $host: string; constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: TemplateSpecsClientOptionalParams); + constructor(credentials: coreAuth.TokenCredential, options?: TemplateSpecsClientOptionalParams); // (undocumented) apiVersion: string; // (undocumented) - subscriptionId: string; + subscriptionId?: string; // (undocumented) templateSpecs: TemplateSpecs; // (undocumented) @@ -131,6 +134,14 @@ export interface TemplateSpecsError { error?: ErrorResponse; } +// @public +export interface TemplateSpecsGetBuiltInOptionalParams extends coreClient.OperationOptions { + expand?: TemplateSpecExpandKind; +} + +// @public +export type TemplateSpecsGetBuiltInResponse = TemplateSpec; + // @public export interface TemplateSpecsGetOptionalParams extends coreClient.OperationOptions { expand?: TemplateSpecExpandKind; @@ -140,10 +151,24 @@ export interface TemplateSpecsGetOptionalParams extends coreClient.OperationOpti export type TemplateSpecsGetResponse = TemplateSpec; // @public -export interface TemplateSpecsListByResourceGroupNextOptionalParams extends coreClient.OperationOptions { +export interface TemplateSpecsListBuiltInsNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type TemplateSpecsListBuiltInsNextResponse = TemplateSpecsListResult; + +// @public +export interface TemplateSpecsListBuiltInsOptionalParams extends coreClient.OperationOptions { expand?: TemplateSpecExpandKind; } +// @public +export type TemplateSpecsListBuiltInsResponse = TemplateSpecsListResult; + +// @public +export interface TemplateSpecsListByResourceGroupNextOptionalParams extends coreClient.OperationOptions { +} + // @public export type TemplateSpecsListByResourceGroupNextResponse = TemplateSpecsListResult; @@ -157,7 +182,6 @@ export type TemplateSpecsListByResourceGroupResponse = TemplateSpecsListResult; // @public export interface TemplateSpecsListBySubscriptionNextOptionalParams extends coreClient.OperationOptions { - expand?: TemplateSpecExpandKind; } // @public @@ -217,7 +241,9 @@ export interface TemplateSpecVersions { createOrUpdate(resourceGroupName: string, templateSpecName: string, templateSpecVersion: string, templateSpecVersionModel: TemplateSpecVersion, options?: TemplateSpecVersionsCreateOrUpdateOptionalParams): Promise; delete(resourceGroupName: string, templateSpecName: string, templateSpecVersion: string, options?: TemplateSpecVersionsDeleteOptionalParams): Promise; get(resourceGroupName: string, templateSpecName: string, templateSpecVersion: string, options?: TemplateSpecVersionsGetOptionalParams): Promise; + getBuiltIn(templateSpecName: string, templateSpecVersion: string, options?: TemplateSpecVersionsGetBuiltInOptionalParams): Promise; list(resourceGroupName: string, templateSpecName: string, options?: TemplateSpecVersionsListOptionalParams): PagedAsyncIterableIterator; + listBuiltIns(templateSpecName: string, options?: TemplateSpecVersionsListBuiltInsOptionalParams): PagedAsyncIterableIterator; update(resourceGroupName: string, templateSpecName: string, templateSpecVersion: string, options?: TemplateSpecVersionsUpdateOptionalParams): Promise; } @@ -232,6 +258,13 @@ export type TemplateSpecVersionsCreateOrUpdateResponse = TemplateSpecVersion; export interface TemplateSpecVersionsDeleteOptionalParams extends coreClient.OperationOptions { } +// @public +export interface TemplateSpecVersionsGetBuiltInOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type TemplateSpecVersionsGetBuiltInResponse = TemplateSpecVersion; + // @public export interface TemplateSpecVersionsGetOptionalParams extends coreClient.OperationOptions { } @@ -239,6 +272,20 @@ export interface TemplateSpecVersionsGetOptionalParams extends coreClient.Operat // @public export type TemplateSpecVersionsGetResponse = TemplateSpecVersion; +// @public +export interface TemplateSpecVersionsListBuiltInsNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type TemplateSpecVersionsListBuiltInsNextResponse = TemplateSpecVersionsListResult; + +// @public +export interface TemplateSpecVersionsListBuiltInsOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type TemplateSpecVersionsListBuiltInsResponse = TemplateSpecVersionsListResult; + // @public export interface TemplateSpecVersionsListNextOptionalParams extends coreClient.OperationOptions { } diff --git a/sdk/templatespecs/arm-templatespecs/src/models/index.ts b/sdk/templatespecs/arm-templatespecs/src/models/index.ts index f5969135d28fd..177fa2d2f0203 100644 --- a/sdk/templatespecs/arm-templatespecs/src/models/index.ts +++ b/sdk/templatespecs/arm-templatespecs/src/models/index.ts @@ -204,7 +204,7 @@ export enum KnownCreatedByType { /** ManagedIdentity */ ManagedIdentity = "ManagedIdentity", /** Key */ - Key = "Key" + Key = "Key", } /** @@ -222,7 +222,7 @@ export type CreatedByType = string; /** Known values of {@link TemplateSpecExpandKind} that the service accepts. */ export enum KnownTemplateSpecExpandKind { /** Includes version information with the Template Spec. */ - Versions = "versions" + Versions = "versions", } /** @@ -286,24 +286,47 @@ export interface TemplateSpecsListByResourceGroupOptionalParams export type TemplateSpecsListByResourceGroupResponse = TemplateSpecsListResult; /** Optional parameters. */ -export interface TemplateSpecsListBySubscriptionNextOptionalParams +export interface TemplateSpecsGetBuiltInOptionalParams extends coreClient.OperationOptions { /** Allows for expansion of additional Template Spec details in the response. Optional. */ expand?: TemplateSpecExpandKind; } -/** Contains response data for the listBySubscriptionNext operation. */ -export type TemplateSpecsListBySubscriptionNextResponse = TemplateSpecsListResult; +/** Contains response data for the getBuiltIn operation. */ +export type TemplateSpecsGetBuiltInResponse = TemplateSpec; /** Optional parameters. */ -export interface TemplateSpecsListByResourceGroupNextOptionalParams +export interface TemplateSpecsListBuiltInsOptionalParams extends coreClient.OperationOptions { /** Allows for expansion of additional Template Spec details in the response. Optional. */ expand?: TemplateSpecExpandKind; } +/** Contains response data for the listBuiltIns operation. */ +export type TemplateSpecsListBuiltInsResponse = TemplateSpecsListResult; + +/** Optional parameters. */ +export interface TemplateSpecsListBySubscriptionNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listBySubscriptionNext operation. */ +export type TemplateSpecsListBySubscriptionNextResponse = + TemplateSpecsListResult; + +/** Optional parameters. */ +export interface TemplateSpecsListByResourceGroupNextOptionalParams + extends coreClient.OperationOptions {} + /** Contains response data for the listByResourceGroupNext operation. */ -export type TemplateSpecsListByResourceGroupNextResponse = TemplateSpecsListResult; +export type TemplateSpecsListByResourceGroupNextResponse = + TemplateSpecsListResult; + +/** Optional parameters. */ +export interface TemplateSpecsListBuiltInsNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listBuiltInsNext operation. */ +export type TemplateSpecsListBuiltInsNextResponse = TemplateSpecsListResult; /** Optional parameters. */ export interface TemplateSpecVersionsCreateOrUpdateOptionalParams @@ -340,12 +363,36 @@ export interface TemplateSpecVersionsListOptionalParams /** Contains response data for the list operation. */ export type TemplateSpecVersionsListResponse = TemplateSpecVersionsListResult; +/** Optional parameters. */ +export interface TemplateSpecVersionsListBuiltInsOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listBuiltIns operation. */ +export type TemplateSpecVersionsListBuiltInsResponse = + TemplateSpecVersionsListResult; + +/** Optional parameters. */ +export interface TemplateSpecVersionsGetBuiltInOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getBuiltIn operation. */ +export type TemplateSpecVersionsGetBuiltInResponse = TemplateSpecVersion; + /** Optional parameters. */ export interface TemplateSpecVersionsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type TemplateSpecVersionsListNextResponse = TemplateSpecVersionsListResult; +export type TemplateSpecVersionsListNextResponse = + TemplateSpecVersionsListResult; + +/** Optional parameters. */ +export interface TemplateSpecVersionsListBuiltInsNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listBuiltInsNext operation. */ +export type TemplateSpecVersionsListBuiltInsNextResponse = + TemplateSpecVersionsListResult; /** Optional parameters. */ export interface TemplateSpecsClientOptionalParams diff --git a/sdk/templatespecs/arm-templatespecs/src/models/mappers.ts b/sdk/templatespecs/arm-templatespecs/src/models/mappers.ts index b005c1e9585ba..40955cd6bbdb6 100644 --- a/sdk/templatespecs/arm-templatespecs/src/models/mappers.ts +++ b/sdk/templatespecs/arm-templatespecs/src/models/mappers.ts @@ -17,25 +17,25 @@ export const TemplateSpecVersionInfo: coreClient.CompositeMapper = { serializedName: "description", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, timeCreated: { serializedName: "timeCreated", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, timeModified: { serializedName: "timeModified", readOnly: true, type: { - name: "DateTime" - } - } - } - } + name: "DateTime", + }, + }, + }, + }, }; export const AzureResourceBase: coreClient.CompositeMapper = { @@ -47,32 +47,32 @@ export const AzureResourceBase: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, systemData: { serializedName: "systemData", type: { name: "Composite", - className: "SystemData" - } - } - } - } + className: "SystemData", + }, + }, + }, + }, }; export const SystemData: coreClient.CompositeMapper = { @@ -83,41 +83,41 @@ export const SystemData: coreClient.CompositeMapper = { createdBy: { serializedName: "createdBy", type: { - name: "String" - } + name: "String", + }, }, createdByType: { serializedName: "createdByType", type: { - name: "String" - } + name: "String", + }, }, createdAt: { serializedName: "createdAt", type: { - name: "DateTime" - } + name: "DateTime", + }, }, lastModifiedBy: { serializedName: "lastModifiedBy", type: { - name: "String" - } + name: "String", + }, }, lastModifiedByType: { serializedName: "lastModifiedByType", type: { - name: "String" - } + name: "String", + }, }, lastModifiedAt: { serializedName: "lastModifiedAt", type: { - name: "DateTime" - } - } - } - } + name: "DateTime", + }, + }, + }, + }, }; export const TemplateSpecsError: coreClient.CompositeMapper = { @@ -129,11 +129,11 @@ export const TemplateSpecsError: coreClient.CompositeMapper = { serializedName: "error", type: { name: "Composite", - className: "ErrorResponse" - } - } - } - } + className: "ErrorResponse", + }, + }, + }, + }, }; export const ErrorResponse: coreClient.CompositeMapper = { @@ -145,22 +145,22 @@ export const ErrorResponse: coreClient.CompositeMapper = { serializedName: "code", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, message: { serializedName: "message", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, target: { serializedName: "target", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, details: { serializedName: "details", @@ -170,10 +170,10 @@ export const ErrorResponse: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ErrorResponse" - } - } - } + className: "ErrorResponse", + }, + }, + }, }, additionalInfo: { serializedName: "additionalInfo", @@ -183,13 +183,13 @@ export const ErrorResponse: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ErrorAdditionalInfo" - } - } - } - } - } - } + className: "ErrorAdditionalInfo", + }, + }, + }, + }, + }, + }, }; export const ErrorAdditionalInfo: coreClient.CompositeMapper = { @@ -201,19 +201,19 @@ export const ErrorAdditionalInfo: coreClient.CompositeMapper = { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, info: { serializedName: "info", readOnly: true, type: { name: "Dictionary", - value: { type: { name: "any" } } - } - } - } - } + value: { type: { name: "any" } }, + }, + }, + }, + }, }; export const TemplateSpecsListResult: coreClient.CompositeMapper = { @@ -228,20 +228,20 @@ export const TemplateSpecsListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "TemplateSpec" - } - } - } + className: "TemplateSpec", + }, + }, + }, }, nextLink: { serializedName: "nextLink", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const LinkedTemplateArtifact: coreClient.CompositeMapper = { @@ -253,19 +253,19 @@ export const LinkedTemplateArtifact: coreClient.CompositeMapper = { serializedName: "path", required: true, type: { - name: "String" - } + name: "String", + }, }, template: { serializedName: "template", required: true, type: { name: "Dictionary", - value: { type: { name: "any" } } - } - } - } - } + value: { type: { name: "any" } }, + }, + }, + }, + }, }; export const TemplateSpecVersionsListResult: coreClient.CompositeMapper = { @@ -280,20 +280,20 @@ export const TemplateSpecVersionsListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "TemplateSpecVersion" - } - } - } + className: "TemplateSpecVersion", + }, + }, + }, }, nextLink: { serializedName: "nextLink", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const TemplateSpec: coreClient.CompositeMapper = { @@ -306,40 +306,40 @@ export const TemplateSpec: coreClient.CompositeMapper = { serializedName: "location", required: true, type: { - name: "String" - } + name: "String", + }, }, tags: { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, }, description: { constraints: { - MaxLength: 4096 + MaxLength: 4096, }, serializedName: "properties.description", type: { - name: "String" - } + name: "String", + }, }, displayName: { constraints: { - MaxLength: 64 + MaxLength: 64, }, serializedName: "properties.displayName", type: { - name: "String" - } + name: "String", + }, }, metadata: { serializedName: "properties.metadata", type: { name: "Dictionary", - value: { type: { name: "any" } } - } + value: { type: { name: "any" } }, + }, }, versions: { serializedName: "properties.versions", @@ -347,12 +347,12 @@ export const TemplateSpec: coreClient.CompositeMapper = { type: { name: "Dictionary", value: { - type: { name: "Composite", className: "TemplateSpecVersionInfo" } - } - } - } - } - } + type: { name: "Composite", className: "TemplateSpecVersionInfo" }, + }, + }, + }, + }, + }, }; export const TemplateSpecUpdateModel: coreClient.CompositeMapper = { @@ -365,11 +365,11 @@ export const TemplateSpecUpdateModel: coreClient.CompositeMapper = { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } + value: { type: { name: "String" } }, + }, + }, + }, + }, }; export const TemplateSpecVersion: coreClient.CompositeMapper = { @@ -382,24 +382,24 @@ export const TemplateSpecVersion: coreClient.CompositeMapper = { serializedName: "location", required: true, type: { - name: "String" - } + name: "String", + }, }, tags: { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, }, description: { constraints: { - MaxLength: 4096 + MaxLength: 4096, }, serializedName: "properties.description", type: { - name: "String" - } + name: "String", + }, }, linkedTemplates: { serializedName: "properties.linkedTemplates", @@ -408,34 +408,34 @@ export const TemplateSpecVersion: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "LinkedTemplateArtifact" - } - } - } + className: "LinkedTemplateArtifact", + }, + }, + }, }, metadata: { serializedName: "properties.metadata", type: { name: "Dictionary", - value: { type: { name: "any" } } - } + value: { type: { name: "any" } }, + }, }, mainTemplate: { serializedName: "properties.mainTemplate", type: { name: "Dictionary", - value: { type: { name: "any" } } - } + value: { type: { name: "any" } }, + }, }, uiFormDefinition: { serializedName: "properties.uiFormDefinition", type: { name: "Dictionary", - value: { type: { name: "any" } } - } - } - } - } + value: { type: { name: "any" } }, + }, + }, + }, + }, }; export const TemplateSpecVersionUpdateModel: coreClient.CompositeMapper = { @@ -448,9 +448,9 @@ export const TemplateSpecVersionUpdateModel: coreClient.CompositeMapper = { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } + value: { type: { name: "String" } }, + }, + }, + }, + }, }; diff --git a/sdk/templatespecs/arm-templatespecs/src/models/parameters.ts b/sdk/templatespecs/arm-templatespecs/src/models/parameters.ts index e73e2a813d0ae..1f582549f5cc5 100644 --- a/sdk/templatespecs/arm-templatespecs/src/models/parameters.ts +++ b/sdk/templatespecs/arm-templatespecs/src/models/parameters.ts @@ -9,13 +9,13 @@ import { OperationParameter, OperationURLParameter, - OperationQueryParameter + OperationQueryParameter, } from "@azure/core-client"; import { TemplateSpec as TemplateSpecMapper, TemplateSpecUpdateModel as TemplateSpecUpdateModelMapper, TemplateSpecVersion as TemplateSpecVersionMapper, - TemplateSpecVersionUpdateModel as TemplateSpecVersionUpdateModelMapper + TemplateSpecVersionUpdateModel as TemplateSpecVersionUpdateModelMapper, } from "../models/mappers"; export const contentType: OperationParameter = { @@ -25,14 +25,14 @@ export const contentType: OperationParameter = { isConstant: true, serializedName: "Content-Type", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const templateSpec: OperationParameter = { parameterPath: "templateSpec", - mapper: TemplateSpecMapper + mapper: TemplateSpecMapper, }; export const accept: OperationParameter = { @@ -42,9 +42,9 @@ export const accept: OperationParameter = { isConstant: true, serializedName: "Accept", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const $host: OperationURLParameter = { @@ -53,10 +53,10 @@ export const $host: OperationURLParameter = { serializedName: "$host", required: true, type: { - name: "String" - } + name: "String", + }, }, - skipEncoding: true + skipEncoding: true, }; export const subscriptionId: OperationURLParameter = { @@ -65,9 +65,9 @@ export const subscriptionId: OperationURLParameter = { serializedName: "subscriptionId", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const resourceGroupName: OperationURLParameter = { @@ -76,14 +76,14 @@ export const resourceGroupName: OperationURLParameter = { constraints: { Pattern: new RegExp("^[-\\w\\._\\(\\)]+$"), MaxLength: 90, - MinLength: 1 + MinLength: 1, }, serializedName: "resourceGroupName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const templateSpecName: OperationURLParameter = { @@ -92,31 +92,31 @@ export const templateSpecName: OperationURLParameter = { constraints: { Pattern: new RegExp("^[-\\w\\._\\(\\)]+$"), MaxLength: 90, - MinLength: 1 + MinLength: 1, }, serializedName: "templateSpecName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const apiVersion: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2021-05-01", + defaultValue: "2022-02-01", isConstant: true, serializedName: "api-version", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const templateSpec1: OperationParameter = { parameterPath: ["options", "templateSpec"], - mapper: TemplateSpecUpdateModelMapper + mapper: TemplateSpecUpdateModelMapper, }; export const expand: OperationQueryParameter = { @@ -124,9 +124,9 @@ export const expand: OperationQueryParameter = { mapper: { serializedName: "$expand", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const nextLink: OperationURLParameter = { @@ -135,15 +135,15 @@ export const nextLink: OperationURLParameter = { serializedName: "nextLink", required: true, type: { - name: "String" - } + name: "String", + }, }, - skipEncoding: true + skipEncoding: true, }; export const templateSpecVersionModel: OperationParameter = { parameterPath: "templateSpecVersionModel", - mapper: TemplateSpecVersionMapper + mapper: TemplateSpecVersionMapper, }; export const templateSpecVersion: OperationURLParameter = { @@ -152,17 +152,17 @@ export const templateSpecVersion: OperationURLParameter = { constraints: { Pattern: new RegExp("^[-\\w\\._\\(\\)]+$"), MaxLength: 90, - MinLength: 1 + MinLength: 1, }, serializedName: "templateSpecVersion", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const templateSpecVersionUpdateModel: OperationParameter = { parameterPath: ["options", "templateSpecVersionUpdateModel"], - mapper: TemplateSpecVersionUpdateModelMapper + mapper: TemplateSpecVersionUpdateModelMapper, }; diff --git a/sdk/templatespecs/arm-templatespecs/src/operations/templateSpecVersions.ts b/sdk/templatespecs/arm-templatespecs/src/operations/templateSpecVersions.ts index b83a63c3b034e..beb8adb130580 100644 --- a/sdk/templatespecs/arm-templatespecs/src/operations/templateSpecVersions.ts +++ b/sdk/templatespecs/arm-templatespecs/src/operations/templateSpecVersions.ts @@ -18,6 +18,9 @@ import { TemplateSpecVersionsListNextOptionalParams, TemplateSpecVersionsListOptionalParams, TemplateSpecVersionsListResponse, + TemplateSpecVersionsListBuiltInsNextOptionalParams, + TemplateSpecVersionsListBuiltInsOptionalParams, + TemplateSpecVersionsListBuiltInsResponse, TemplateSpecVersionsCreateOrUpdateOptionalParams, TemplateSpecVersionsCreateOrUpdateResponse, TemplateSpecVersionsUpdateOptionalParams, @@ -25,7 +28,10 @@ import { TemplateSpecVersionsGetOptionalParams, TemplateSpecVersionsGetResponse, TemplateSpecVersionsDeleteOptionalParams, - TemplateSpecVersionsListNextResponse + TemplateSpecVersionsGetBuiltInOptionalParams, + TemplateSpecVersionsGetBuiltInResponse, + TemplateSpecVersionsListNextResponse, + TemplateSpecVersionsListBuiltInsNextResponse, } from "../models"; /// @@ -50,12 +56,12 @@ export class TemplateSpecVersionsImpl implements TemplateSpecVersions { public list( resourceGroupName: string, templateSpecName: string, - options?: TemplateSpecVersionsListOptionalParams + options?: TemplateSpecVersionsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll( resourceGroupName, templateSpecName, - options + options, ); return { next() { @@ -72,9 +78,9 @@ export class TemplateSpecVersionsImpl implements TemplateSpecVersions { resourceGroupName, templateSpecName, options, - settings + settings, ); - } + }, }; } @@ -82,7 +88,7 @@ export class TemplateSpecVersionsImpl implements TemplateSpecVersions { resourceGroupName: string, templateSpecName: string, options?: TemplateSpecVersionsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: TemplateSpecVersionsListResponse; let continuationToken = settings?.continuationToken; @@ -98,7 +104,7 @@ export class TemplateSpecVersionsImpl implements TemplateSpecVersions { resourceGroupName, templateSpecName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -110,12 +116,77 @@ export class TemplateSpecVersionsImpl implements TemplateSpecVersions { private async *listPagingAll( resourceGroupName: string, templateSpecName: string, - options?: TemplateSpecVersionsListOptionalParams + options?: TemplateSpecVersionsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, templateSpecName, - options + options, + )) { + yield* page; + } + } + + /** + * Lists all the Template Spec versions in the specified built-in Template Spec. + * @param templateSpecName Name of the Template Spec. + * @param options The options parameters. + */ + public listBuiltIns( + templateSpecName: string, + options?: TemplateSpecVersionsListBuiltInsOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listBuiltInsPagingAll(templateSpecName, 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.listBuiltInsPagingPage(templateSpecName, options, settings); + }, + }; + } + + private async *listBuiltInsPagingPage( + templateSpecName: string, + options?: TemplateSpecVersionsListBuiltInsOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: TemplateSpecVersionsListBuiltInsResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listBuiltIns(templateSpecName, options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listBuiltInsNext( + templateSpecName, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listBuiltInsPagingAll( + templateSpecName: string, + options?: TemplateSpecVersionsListBuiltInsOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listBuiltInsPagingPage( + templateSpecName, + options, )) { yield* page; } @@ -134,7 +205,7 @@ export class TemplateSpecVersionsImpl implements TemplateSpecVersions { templateSpecName: string, templateSpecVersion: string, templateSpecVersionModel: TemplateSpecVersion, - options?: TemplateSpecVersionsCreateOrUpdateOptionalParams + options?: TemplateSpecVersionsCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -142,9 +213,9 @@ export class TemplateSpecVersionsImpl implements TemplateSpecVersions { templateSpecName, templateSpecVersion, templateSpecVersionModel, - options + options, }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -159,11 +230,11 @@ export class TemplateSpecVersionsImpl implements TemplateSpecVersions { resourceGroupName: string, templateSpecName: string, templateSpecVersion: string, - options?: TemplateSpecVersionsUpdateOptionalParams + options?: TemplateSpecVersionsUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, templateSpecName, templateSpecVersion, options }, - updateOperationSpec + updateOperationSpec, ); } @@ -178,11 +249,11 @@ export class TemplateSpecVersionsImpl implements TemplateSpecVersions { resourceGroupName: string, templateSpecName: string, templateSpecVersion: string, - options?: TemplateSpecVersionsGetOptionalParams + options?: TemplateSpecVersionsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, templateSpecName, templateSpecVersion, options }, - getOperationSpec + getOperationSpec, ); } @@ -198,11 +269,11 @@ export class TemplateSpecVersionsImpl implements TemplateSpecVersions { resourceGroupName: string, templateSpecName: string, templateSpecVersion: string, - options?: TemplateSpecVersionsDeleteOptionalParams + options?: TemplateSpecVersionsDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, templateSpecName, templateSpecVersion, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -215,11 +286,43 @@ export class TemplateSpecVersionsImpl implements TemplateSpecVersions { private _list( resourceGroupName: string, templateSpecName: string, - options?: TemplateSpecVersionsListOptionalParams + options?: TemplateSpecVersionsListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, templateSpecName, options }, - listOperationSpec + listOperationSpec, + ); + } + + /** + * Lists all the Template Spec versions in the specified built-in Template Spec. + * @param templateSpecName Name of the Template Spec. + * @param options The options parameters. + */ + private _listBuiltIns( + templateSpecName: string, + options?: TemplateSpecVersionsListBuiltInsOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { templateSpecName, options }, + listBuiltInsOperationSpec, + ); + } + + /** + * Gets a Template Spec version from a specific built-in Template Spec. + * @param templateSpecName Name of the Template Spec. + * @param templateSpecVersion The version of the Template Spec. + * @param options The options parameters. + */ + getBuiltIn( + templateSpecName: string, + templateSpecVersion: string, + options?: TemplateSpecVersionsGetBuiltInOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { templateSpecName, templateSpecVersion, options }, + getBuiltInOperationSpec, ); } @@ -234,11 +337,28 @@ export class TemplateSpecVersionsImpl implements TemplateSpecVersions { resourceGroupName: string, templateSpecName: string, nextLink: string, - options?: TemplateSpecVersionsListNextOptionalParams + options?: TemplateSpecVersionsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, templateSpecName, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, + ); + } + + /** + * ListBuiltInsNext + * @param templateSpecName Name of the Template Spec. + * @param nextLink The nextLink from the previous successful call to the ListBuiltIns method. + * @param options The options parameters. + */ + private _listBuiltInsNext( + templateSpecName: string, + nextLink: string, + options?: TemplateSpecVersionsListBuiltInsNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { templateSpecName, nextLink, options }, + listBuiltInsNextOperationSpec, ); } } @@ -246,19 +366,18 @@ export class TemplateSpecVersionsImpl implements TemplateSpecVersions { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/templateSpecs/{templateSpecName}/versions/{templateSpecVersion}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/templateSpecs/{templateSpecName}/versions/{templateSpecVersion}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.TemplateSpecVersion + bodyMapper: Mappers.TemplateSpecVersion, }, 201: { - bodyMapper: Mappers.TemplateSpecVersion + bodyMapper: Mappers.TemplateSpecVersion, }, default: { - bodyMapper: Mappers.TemplateSpecsError - } + bodyMapper: Mappers.TemplateSpecsError, + }, }, requestBody: Parameters.templateSpecVersionModel, queryParameters: [Parameters.apiVersion], @@ -267,23 +386,22 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.templateSpecName, - Parameters.templateSpecVersion + Parameters.templateSpecVersion, ], headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/templateSpecs/{templateSpecName}/versions/{templateSpecVersion}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/templateSpecs/{templateSpecName}/versions/{templateSpecVersion}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.TemplateSpecVersion + bodyMapper: Mappers.TemplateSpecVersion, }, default: { - bodyMapper: Mappers.TemplateSpecsError - } + bodyMapper: Mappers.TemplateSpecsError, + }, }, requestBody: Parameters.templateSpecVersionUpdateModel, queryParameters: [Parameters.apiVersion], @@ -292,23 +410,22 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.templateSpecName, - Parameters.templateSpecVersion + Parameters.templateSpecVersion, ], headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/templateSpecs/{templateSpecName}/versions/{templateSpecVersion}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/templateSpecs/{templateSpecName}/versions/{templateSpecVersion}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.TemplateSpecVersion + bodyMapper: Mappers.TemplateSpecVersion, }, default: { - bodyMapper: Mappers.TemplateSpecsError - } + bodyMapper: Mappers.TemplateSpecsError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -316,21 +433,20 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.templateSpecName, - Parameters.templateSpecVersion + Parameters.templateSpecVersion, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/templateSpecs/{templateSpecName}/versions/{templateSpecVersion}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/templateSpecs/{templateSpecName}/versions/{templateSpecVersion}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.TemplateSpecsError - } + bodyMapper: Mappers.TemplateSpecsError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -338,52 +454,105 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.templateSpecName, - Parameters.templateSpecVersion + Parameters.templateSpecVersion, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/templateSpecs/{templateSpecName}/versions", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/templateSpecs/{templateSpecName}/versions", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.TemplateSpecVersionsListResult + bodyMapper: Mappers.TemplateSpecVersionsListResult, }, default: { - bodyMapper: Mappers.TemplateSpecsError - } + bodyMapper: Mappers.TemplateSpecsError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.templateSpecName + Parameters.templateSpecName, ], headerParameters: [Parameters.accept], - serializer + serializer, +}; +const listBuiltInsOperationSpec: coreClient.OperationSpec = { + path: "/providers/Microsoft.Resources/builtInTemplateSpecs/{templateSpecName}/versions", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.TemplateSpecVersionsListResult, + }, + default: { + bodyMapper: Mappers.TemplateSpecsError, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [Parameters.$host, Parameters.templateSpecName], + headerParameters: [Parameters.accept], + serializer, +}; +const getBuiltInOperationSpec: coreClient.OperationSpec = { + path: "/providers/Microsoft.Resources/builtInTemplateSpecs/{templateSpecName}/versions/{templateSpecVersion}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.TemplateSpecVersion, + }, + default: { + bodyMapper: Mappers.TemplateSpecsError, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.templateSpecName, + Parameters.templateSpecVersion, + ], + headerParameters: [Parameters.accept], + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.TemplateSpecVersionsListResult + bodyMapper: Mappers.TemplateSpecVersionsListResult, }, default: { - bodyMapper: Mappers.TemplateSpecsError - } + bodyMapper: Mappers.TemplateSpecsError, + }, }, - queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.templateSpecName, - Parameters.nextLink + Parameters.nextLink, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listBuiltInsNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.TemplateSpecVersionsListResult, + }, + default: { + bodyMapper: Mappers.TemplateSpecsError, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.templateSpecName, + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/templatespecs/arm-templatespecs/src/operations/templateSpecs.ts b/sdk/templatespecs/arm-templatespecs/src/operations/templateSpecs.ts index e64c4815016e7..aff1f7b606292 100644 --- a/sdk/templatespecs/arm-templatespecs/src/operations/templateSpecs.ts +++ b/sdk/templatespecs/arm-templatespecs/src/operations/templateSpecs.ts @@ -21,6 +21,9 @@ import { TemplateSpecsListByResourceGroupNextOptionalParams, TemplateSpecsListByResourceGroupOptionalParams, TemplateSpecsListByResourceGroupResponse, + TemplateSpecsListBuiltInsNextOptionalParams, + TemplateSpecsListBuiltInsOptionalParams, + TemplateSpecsListBuiltInsResponse, TemplateSpecsCreateOrUpdateOptionalParams, TemplateSpecsCreateOrUpdateResponse, TemplateSpecsUpdateOptionalParams, @@ -28,8 +31,11 @@ import { TemplateSpecsGetOptionalParams, TemplateSpecsGetResponse, TemplateSpecsDeleteOptionalParams, + TemplateSpecsGetBuiltInOptionalParams, + TemplateSpecsGetBuiltInResponse, TemplateSpecsListBySubscriptionNextResponse, - TemplateSpecsListByResourceGroupNextResponse + TemplateSpecsListByResourceGroupNextResponse, + TemplateSpecsListBuiltInsNextResponse, } from "../models"; /// @@ -50,7 +56,7 @@ export class TemplateSpecsImpl implements TemplateSpecs { * @param options The options parameters. */ public listBySubscription( - options?: TemplateSpecsListBySubscriptionOptionalParams + options?: TemplateSpecsListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listBySubscriptionPagingAll(options); return { @@ -65,13 +71,13 @@ export class TemplateSpecsImpl implements TemplateSpecs { throw new Error("maxPageSize is not supported by this operation."); } return this.listBySubscriptionPagingPage(options, settings); - } + }, }; } private async *listBySubscriptionPagingPage( options?: TemplateSpecsListBySubscriptionOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: TemplateSpecsListBySubscriptionResponse; let continuationToken = settings?.continuationToken; @@ -92,7 +98,7 @@ export class TemplateSpecsImpl implements TemplateSpecs { } private async *listBySubscriptionPagingAll( - options?: TemplateSpecsListBySubscriptionOptionalParams + options?: TemplateSpecsListBySubscriptionOptionalParams, ): AsyncIterableIterator { for await (const page of this.listBySubscriptionPagingPage(options)) { yield* page; @@ -106,7 +112,7 @@ export class TemplateSpecsImpl implements TemplateSpecs { */ public listByResourceGroup( resourceGroupName: string, - options?: TemplateSpecsListByResourceGroupOptionalParams + options?: TemplateSpecsListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); return { @@ -123,16 +129,16 @@ export class TemplateSpecsImpl implements TemplateSpecs { return this.listByResourceGroupPagingPage( resourceGroupName, options, - settings + settings, ); - } + }, }; } private async *listByResourceGroupPagingPage( resourceGroupName: string, options?: TemplateSpecsListByResourceGroupOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: TemplateSpecsListByResourceGroupResponse; let continuationToken = settings?.continuationToken; @@ -147,7 +153,7 @@ export class TemplateSpecsImpl implements TemplateSpecs { result = await this._listByResourceGroupNext( resourceGroupName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -158,16 +164,70 @@ export class TemplateSpecsImpl implements TemplateSpecs { private async *listByResourceGroupPagingAll( resourceGroupName: string, - options?: TemplateSpecsListByResourceGroupOptionalParams + options?: TemplateSpecsListByResourceGroupOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByResourceGroupPagingPage( resourceGroupName, - options + options, )) { yield* page; } } + /** + * Lists built-in Template Specs. + * @param options The options parameters. + */ + public listBuiltIns( + options?: TemplateSpecsListBuiltInsOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listBuiltInsPagingAll(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.listBuiltInsPagingPage(options, settings); + }, + }; + } + + private async *listBuiltInsPagingPage( + options?: TemplateSpecsListBuiltInsOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: TemplateSpecsListBuiltInsResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listBuiltIns(options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listBuiltInsNext(continuationToken, options); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listBuiltInsPagingAll( + options?: TemplateSpecsListBuiltInsOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listBuiltInsPagingPage(options)) { + yield* page; + } + } + /** * Creates or updates a Template Spec. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -179,11 +239,11 @@ export class TemplateSpecsImpl implements TemplateSpecs { resourceGroupName: string, templateSpecName: string, templateSpec: TemplateSpec, - options?: TemplateSpecsCreateOrUpdateOptionalParams + options?: TemplateSpecsCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, templateSpecName, templateSpec, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -196,11 +256,11 @@ export class TemplateSpecsImpl implements TemplateSpecs { update( resourceGroupName: string, templateSpecName: string, - options?: TemplateSpecsUpdateOptionalParams + options?: TemplateSpecsUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, templateSpecName, options }, - updateOperationSpec + updateOperationSpec, ); } @@ -213,11 +273,11 @@ export class TemplateSpecsImpl implements TemplateSpecs { get( resourceGroupName: string, templateSpecName: string, - options?: TemplateSpecsGetOptionalParams + options?: TemplateSpecsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, templateSpecName, options }, - getOperationSpec + getOperationSpec, ); } @@ -230,11 +290,11 @@ export class TemplateSpecsImpl implements TemplateSpecs { delete( resourceGroupName: string, templateSpecName: string, - options?: TemplateSpecsDeleteOptionalParams + options?: TemplateSpecsDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, templateSpecName, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -243,11 +303,11 @@ export class TemplateSpecsImpl implements TemplateSpecs { * @param options The options parameters. */ private _listBySubscription( - options?: TemplateSpecsListBySubscriptionOptionalParams + options?: TemplateSpecsListBySubscriptionOptionalParams, ): Promise { return this.client.sendOperationRequest( { options }, - listBySubscriptionOperationSpec + listBySubscriptionOperationSpec, ); } @@ -258,11 +318,39 @@ export class TemplateSpecsImpl implements TemplateSpecs { */ private _listByResourceGroup( resourceGroupName: string, - options?: TemplateSpecsListByResourceGroupOptionalParams + options?: TemplateSpecsListByResourceGroupOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, - listByResourceGroupOperationSpec + listByResourceGroupOperationSpec, + ); + } + + /** + * Gets a built-in Template Spec with a given name. + * @param templateSpecName Name of the Template Spec. + * @param options The options parameters. + */ + getBuiltIn( + templateSpecName: string, + options?: TemplateSpecsGetBuiltInOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { templateSpecName, options }, + getBuiltInOperationSpec, + ); + } + + /** + * Lists built-in Template Specs. + * @param options The options parameters. + */ + private _listBuiltIns( + options?: TemplateSpecsListBuiltInsOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { options }, + listBuiltInsOperationSpec, ); } @@ -273,11 +361,11 @@ export class TemplateSpecsImpl implements TemplateSpecs { */ private _listBySubscriptionNext( nextLink: string, - options?: TemplateSpecsListBySubscriptionNextOptionalParams + options?: TemplateSpecsListBySubscriptionNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listBySubscriptionNextOperationSpec + listBySubscriptionNextOperationSpec, ); } @@ -290,11 +378,26 @@ export class TemplateSpecsImpl implements TemplateSpecs { private _listByResourceGroupNext( resourceGroupName: string, nextLink: string, - options?: TemplateSpecsListByResourceGroupNextOptionalParams + options?: TemplateSpecsListByResourceGroupNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, nextLink, options }, - listByResourceGroupNextOperationSpec + listByResourceGroupNextOperationSpec, + ); + } + + /** + * ListBuiltInsNext + * @param nextLink The nextLink from the previous successful call to the ListBuiltIns method. + * @param options The options parameters. + */ + private _listBuiltInsNext( + nextLink: string, + options?: TemplateSpecsListBuiltInsNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { nextLink, options }, + listBuiltInsNextOperationSpec, ); } } @@ -302,19 +405,18 @@ export class TemplateSpecsImpl implements TemplateSpecs { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/templateSpecs/{templateSpecName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/templateSpecs/{templateSpecName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.TemplateSpec + bodyMapper: Mappers.TemplateSpec, }, 201: { - bodyMapper: Mappers.TemplateSpec + bodyMapper: Mappers.TemplateSpec, }, default: { - bodyMapper: Mappers.TemplateSpecsError - } + bodyMapper: Mappers.TemplateSpecsError, + }, }, requestBody: Parameters.templateSpec, queryParameters: [Parameters.apiVersion], @@ -322,23 +424,22 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.templateSpecName + Parameters.templateSpecName, ], headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/templateSpecs/{templateSpecName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/templateSpecs/{templateSpecName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.TemplateSpec + bodyMapper: Mappers.TemplateSpec, }, default: { - bodyMapper: Mappers.TemplateSpecsError - } + bodyMapper: Mappers.TemplateSpecsError, + }, }, requestBody: Parameters.templateSpec1, queryParameters: [Parameters.apiVersion], @@ -346,131 +447,172 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.templateSpecName + Parameters.templateSpecName, ], headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/templateSpecs/{templateSpecName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/templateSpecs/{templateSpecName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.TemplateSpec + bodyMapper: Mappers.TemplateSpec, }, default: { - bodyMapper: Mappers.TemplateSpecsError - } + bodyMapper: Mappers.TemplateSpecsError, + }, }, queryParameters: [Parameters.apiVersion, Parameters.expand], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.templateSpecName + Parameters.templateSpecName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/templateSpecs/{templateSpecName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/templateSpecs/{templateSpecName}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.TemplateSpecsError - } + bodyMapper: Mappers.TemplateSpecsError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.templateSpecName + Parameters.templateSpecName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listBySubscriptionOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Resources/templateSpecs/", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Resources/templateSpecs/", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.TemplateSpecsListResult + bodyMapper: Mappers.TemplateSpecsListResult, }, default: { - bodyMapper: Mappers.TemplateSpecsError - } + bodyMapper: Mappers.TemplateSpecsError, + }, }, queryParameters: [Parameters.apiVersion, Parameters.expand], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/templateSpecs/", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/templateSpecs/", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.TemplateSpecsListResult + bodyMapper: Mappers.TemplateSpecsListResult, }, default: { - bodyMapper: Mappers.TemplateSpecsError - } + bodyMapper: Mappers.TemplateSpecsError, + }, }, queryParameters: [Parameters.apiVersion, Parameters.expand], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, +}; +const getBuiltInOperationSpec: coreClient.OperationSpec = { + path: "/providers/Microsoft.Resources/builtInTemplateSpecs/{templateSpecName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.TemplateSpec, + }, + default: { + bodyMapper: Mappers.TemplateSpecsError, + }, + }, + queryParameters: [Parameters.apiVersion, Parameters.expand], + urlParameters: [Parameters.$host, Parameters.templateSpecName], + headerParameters: [Parameters.accept], + serializer, +}; +const listBuiltInsOperationSpec: coreClient.OperationSpec = { + path: "/providers/Microsoft.Resources/builtInTemplateSpecs/", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.TemplateSpecsListResult, + }, + default: { + bodyMapper: Mappers.TemplateSpecsError, + }, + }, + queryParameters: [Parameters.apiVersion, Parameters.expand], + urlParameters: [Parameters.$host], + headerParameters: [Parameters.accept], + serializer, }; const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.TemplateSpecsListResult + bodyMapper: Mappers.TemplateSpecsListResult, }, default: { - bodyMapper: Mappers.TemplateSpecsError - } + bodyMapper: Mappers.TemplateSpecsError, + }, }, - queryParameters: [Parameters.apiVersion, Parameters.expand], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.TemplateSpecsListResult + bodyMapper: Mappers.TemplateSpecsListResult, }, default: { - bodyMapper: Mappers.TemplateSpecsError - } + bodyMapper: Mappers.TemplateSpecsError, + }, }, - queryParameters: [Parameters.apiVersion, Parameters.expand], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, +}; +const listBuiltInsNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.TemplateSpecsListResult, + }, + default: { + bodyMapper: Mappers.TemplateSpecsError, + }, + }, + urlParameters: [Parameters.$host, Parameters.nextLink], + headerParameters: [Parameters.accept], + serializer, }; diff --git a/sdk/templatespecs/arm-templatespecs/src/operationsInterfaces/templateSpecVersions.ts b/sdk/templatespecs/arm-templatespecs/src/operationsInterfaces/templateSpecVersions.ts index 8fd4a0d9a1257..6f0104c21d681 100644 --- a/sdk/templatespecs/arm-templatespecs/src/operationsInterfaces/templateSpecVersions.ts +++ b/sdk/templatespecs/arm-templatespecs/src/operationsInterfaces/templateSpecVersions.ts @@ -10,13 +10,16 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { TemplateSpecVersion, TemplateSpecVersionsListOptionalParams, + TemplateSpecVersionsListBuiltInsOptionalParams, TemplateSpecVersionsCreateOrUpdateOptionalParams, TemplateSpecVersionsCreateOrUpdateResponse, TemplateSpecVersionsUpdateOptionalParams, TemplateSpecVersionsUpdateResponse, TemplateSpecVersionsGetOptionalParams, TemplateSpecVersionsGetResponse, - TemplateSpecVersionsDeleteOptionalParams + TemplateSpecVersionsDeleteOptionalParams, + TemplateSpecVersionsGetBuiltInOptionalParams, + TemplateSpecVersionsGetBuiltInResponse, } from "../models"; /// @@ -31,7 +34,16 @@ export interface TemplateSpecVersions { list( resourceGroupName: string, templateSpecName: string, - options?: TemplateSpecVersionsListOptionalParams + options?: TemplateSpecVersionsListOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Lists all the Template Spec versions in the specified built-in Template Spec. + * @param templateSpecName Name of the Template Spec. + * @param options The options parameters. + */ + listBuiltIns( + templateSpecName: string, + options?: TemplateSpecVersionsListBuiltInsOptionalParams, ): PagedAsyncIterableIterator; /** * Creates or updates a Template Spec version. @@ -46,7 +58,7 @@ export interface TemplateSpecVersions { templateSpecName: string, templateSpecVersion: string, templateSpecVersionModel: TemplateSpecVersion, - options?: TemplateSpecVersionsCreateOrUpdateOptionalParams + options?: TemplateSpecVersionsCreateOrUpdateOptionalParams, ): Promise; /** * Updates Template Spec Version tags with specified values. @@ -59,7 +71,7 @@ export interface TemplateSpecVersions { resourceGroupName: string, templateSpecName: string, templateSpecVersion: string, - options?: TemplateSpecVersionsUpdateOptionalParams + options?: TemplateSpecVersionsUpdateOptionalParams, ): Promise; /** * Gets a Template Spec version from a specific Template Spec. @@ -72,7 +84,7 @@ export interface TemplateSpecVersions { resourceGroupName: string, templateSpecName: string, templateSpecVersion: string, - options?: TemplateSpecVersionsGetOptionalParams + options?: TemplateSpecVersionsGetOptionalParams, ): Promise; /** * Deletes a specific version from a Template Spec. When operation completes, status code 200 returned @@ -86,6 +98,17 @@ export interface TemplateSpecVersions { resourceGroupName: string, templateSpecName: string, templateSpecVersion: string, - options?: TemplateSpecVersionsDeleteOptionalParams + options?: TemplateSpecVersionsDeleteOptionalParams, ): Promise; + /** + * Gets a Template Spec version from a specific built-in Template Spec. + * @param templateSpecName Name of the Template Spec. + * @param templateSpecVersion The version of the Template Spec. + * @param options The options parameters. + */ + getBuiltIn( + templateSpecName: string, + templateSpecVersion: string, + options?: TemplateSpecVersionsGetBuiltInOptionalParams, + ): Promise; } diff --git a/sdk/templatespecs/arm-templatespecs/src/operationsInterfaces/templateSpecs.ts b/sdk/templatespecs/arm-templatespecs/src/operationsInterfaces/templateSpecs.ts index 0c0f41f19ff62..f09e7c56268da 100644 --- a/sdk/templatespecs/arm-templatespecs/src/operationsInterfaces/templateSpecs.ts +++ b/sdk/templatespecs/arm-templatespecs/src/operationsInterfaces/templateSpecs.ts @@ -11,13 +11,16 @@ import { TemplateSpec, TemplateSpecsListBySubscriptionOptionalParams, TemplateSpecsListByResourceGroupOptionalParams, + TemplateSpecsListBuiltInsOptionalParams, TemplateSpecsCreateOrUpdateOptionalParams, TemplateSpecsCreateOrUpdateResponse, TemplateSpecsUpdateOptionalParams, TemplateSpecsUpdateResponse, TemplateSpecsGetOptionalParams, TemplateSpecsGetResponse, - TemplateSpecsDeleteOptionalParams + TemplateSpecsDeleteOptionalParams, + TemplateSpecsGetBuiltInOptionalParams, + TemplateSpecsGetBuiltInResponse, } from "../models"; /// @@ -28,7 +31,7 @@ export interface TemplateSpecs { * @param options The options parameters. */ listBySubscription( - options?: TemplateSpecsListBySubscriptionOptionalParams + options?: TemplateSpecsListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator; /** * Lists all the Template Specs within the specified resource group. @@ -37,7 +40,14 @@ export interface TemplateSpecs { */ listByResourceGroup( resourceGroupName: string, - options?: TemplateSpecsListByResourceGroupOptionalParams + options?: TemplateSpecsListByResourceGroupOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Lists built-in Template Specs. + * @param options The options parameters. + */ + listBuiltIns( + options?: TemplateSpecsListBuiltInsOptionalParams, ): PagedAsyncIterableIterator; /** * Creates or updates a Template Spec. @@ -50,7 +60,7 @@ export interface TemplateSpecs { resourceGroupName: string, templateSpecName: string, templateSpec: TemplateSpec, - options?: TemplateSpecsCreateOrUpdateOptionalParams + options?: TemplateSpecsCreateOrUpdateOptionalParams, ): Promise; /** * Updates Template Spec tags with specified values. @@ -61,7 +71,7 @@ export interface TemplateSpecs { update( resourceGroupName: string, templateSpecName: string, - options?: TemplateSpecsUpdateOptionalParams + options?: TemplateSpecsUpdateOptionalParams, ): Promise; /** * Gets a Template Spec with a given name. @@ -72,7 +82,7 @@ export interface TemplateSpecs { get( resourceGroupName: string, templateSpecName: string, - options?: TemplateSpecsGetOptionalParams + options?: TemplateSpecsGetOptionalParams, ): Promise; /** * Deletes a Template Spec by name. When operation completes, status code 200 returned without content. @@ -83,6 +93,15 @@ export interface TemplateSpecs { delete( resourceGroupName: string, templateSpecName: string, - options?: TemplateSpecsDeleteOptionalParams + options?: TemplateSpecsDeleteOptionalParams, ): Promise; + /** + * Gets a built-in Template Spec with a given name. + * @param templateSpecName Name of the Template Spec. + * @param options The options parameters. + */ + getBuiltIn( + templateSpecName: string, + options?: TemplateSpecsGetBuiltInOptionalParams, + ): Promise; } diff --git a/sdk/templatespecs/arm-templatespecs/src/pagingHelper.ts b/sdk/templatespecs/arm-templatespecs/src/pagingHelper.ts index d85fc13bce1ed..205cccc265927 100644 --- a/sdk/templatespecs/arm-templatespecs/src/pagingHelper.ts +++ b/sdk/templatespecs/arm-templatespecs/src/pagingHelper.ts @@ -13,11 +13,11 @@ export interface PageInfo { const pageMap = new WeakMap(); /** - * Given a result page from a pageable operation, returns a - * continuation token that can be used to begin paging from + * Given the last `.value` produced by the `byPage` iterator, + * returns a continuation token that can be used to begin paging from * that point later. - * @param page A result object from calling .byPage() on a paged operation. - * @returns The continuation token that can be passed into byPage(). + * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator. + * @returns The continuation token that can be passed into byPage() during future calls. */ export function getContinuationToken(page: unknown): string | undefined { if (typeof page !== "object" || page === null) { @@ -28,7 +28,7 @@ export function getContinuationToken(page: unknown): string | undefined { export function setContinuationToken( page: unknown, - continuationToken: string | undefined + continuationToken: string | undefined, ): void { if (typeof page !== "object" || page === null || !continuationToken) { return; diff --git a/sdk/templatespecs/arm-templatespecs/src/templateSpecsClient.ts b/sdk/templatespecs/arm-templatespecs/src/templateSpecsClient.ts index 00b5d1a469bd8..eaaaff754954e 100644 --- a/sdk/templatespecs/arm-templatespecs/src/templateSpecsClient.ts +++ b/sdk/templatespecs/arm-templatespecs/src/templateSpecsClient.ts @@ -11,7 +11,7 @@ import * as coreRestPipeline from "@azure/core-rest-pipeline"; import { PipelineRequest, PipelineResponse, - SendRequest + SendRequest, } from "@azure/core-rest-pipeline"; import * as coreAuth from "@azure/core-auth"; import { TemplateSpecsImpl, TemplateSpecVersionsImpl } from "./operations"; @@ -20,7 +20,7 @@ import { TemplateSpecsClientOptionalParams } from "./models"; export class TemplateSpecsClient extends coreClient.ServiceClient { $host: string; - subscriptionId: string; + subscriptionId?: string; apiVersion: string; /** @@ -32,13 +32,27 @@ export class TemplateSpecsClient extends coreClient.ServiceClient { constructor( credentials: coreAuth.TokenCredential, subscriptionId: string, - options?: TemplateSpecsClientOptionalParams + options?: TemplateSpecsClientOptionalParams, + ); + constructor( + credentials: coreAuth.TokenCredential, + options?: TemplateSpecsClientOptionalParams, + ); + constructor( + credentials: coreAuth.TokenCredential, + subscriptionIdOrOptions?: TemplateSpecsClientOptionalParams | string, + options?: TemplateSpecsClientOptionalParams, ) { if (credentials === undefined) { throw new Error("'credentials' cannot be null"); } - if (subscriptionId === undefined) { - throw new Error("'subscriptionId' cannot be null"); + + let subscriptionId: string | undefined; + + if (typeof subscriptionIdOrOptions === "string") { + subscriptionId = subscriptionIdOrOptions; + } else if (typeof subscriptionIdOrOptions === "object") { + options = subscriptionIdOrOptions; } // Initializing default values for options @@ -47,10 +61,10 @@ export class TemplateSpecsClient extends coreClient.ServiceClient { } const defaults: TemplateSpecsClientOptionalParams = { requestContentType: "application/json; charset=utf-8", - credential: credentials + credential: credentials, }; - const packageDetails = `azsdk-js-arm-templatespecs/2.1.1`; + const packageDetails = `azsdk-js-arm-templatespecs/3.0.0`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -60,20 +74,21 @@ export class TemplateSpecsClient extends coreClient.ServiceClient { ...defaults, ...options, userAgentOptions: { - userAgentPrefix + userAgentPrefix, }, endpoint: - options.endpoint ?? options.baseUri ?? "https://management.azure.com" + options.endpoint ?? options.baseUri ?? "https://management.azure.com", }; super(optionsWithDefaults); let bearerTokenAuthenticationPolicyFound: boolean = false; if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) { - const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies(); + const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = + options.pipeline.getOrderedPolicies(); bearerTokenAuthenticationPolicyFound = pipelinePolicies.some( (pipelinePolicy) => pipelinePolicy.name === - coreRestPipeline.bearerTokenAuthenticationPolicyName + coreRestPipeline.bearerTokenAuthenticationPolicyName, ); } if ( @@ -83,7 +98,7 @@ export class TemplateSpecsClient extends coreClient.ServiceClient { !bearerTokenAuthenticationPolicyFound ) { this.pipeline.removePolicy({ - name: coreRestPipeline.bearerTokenAuthenticationPolicyName + name: coreRestPipeline.bearerTokenAuthenticationPolicyName, }); this.pipeline.addPolicy( coreRestPipeline.bearerTokenAuthenticationPolicy({ @@ -93,9 +108,9 @@ export class TemplateSpecsClient extends coreClient.ServiceClient { `${optionsWithDefaults.endpoint}/.default`, challengeCallbacks: { authorizeRequestOnChallenge: - coreClient.authorizeRequestOnClaimChallenge - } - }) + coreClient.authorizeRequestOnClaimChallenge, + }, + }), ); } // Parameter assignments @@ -103,7 +118,7 @@ export class TemplateSpecsClient extends coreClient.ServiceClient { // Assigning values to Constant parameters this.$host = options.$host || "https://management.azure.com"; - this.apiVersion = options.apiVersion || "2021-05-01"; + this.apiVersion = options.apiVersion || "2022-02-01"; this.templateSpecs = new TemplateSpecsImpl(this); this.templateSpecVersions = new TemplateSpecVersionsImpl(this); this.addCustomApiVersionPolicy(options.apiVersion); @@ -118,7 +133,7 @@ export class TemplateSpecsClient extends coreClient.ServiceClient { name: "CustomApiVersionPolicy", async sendRequest( request: PipelineRequest, - next: SendRequest + next: SendRequest, ): Promise { const param = request.url.split("?"); if (param.length > 1) { @@ -132,7 +147,7 @@ export class TemplateSpecsClient extends coreClient.ServiceClient { request.url = param[0] + "?" + newParams.join("&"); } return next(request); - } + }, }; this.pipeline.addPolicy(apiVersionPolicy); } diff --git a/sdk/templatespecs/arm-templatespecs/test/sampleTest.ts b/sdk/templatespecs/arm-templatespecs/test/sampleTest.ts index 25aeb3ebcc367..d64be981b6946 100644 --- a/sdk/templatespecs/arm-templatespecs/test/sampleTest.ts +++ b/sdk/templatespecs/arm-templatespecs/test/sampleTest.ts @@ -9,7 +9,7 @@ import { Recorder, RecorderStartOptions, - env + env, } from "@azure-tools/test-recorder"; import { assert } from "chai"; import { Context } from "mocha"; @@ -18,26 +18,26 @@ 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" + SUBSCRIPTION_ID: "azure_subscription_id", }; const recorderOptions: RecorderStartOptions = { - envSetupForPlayback: replaceableVariables + envSetupForPlayback: replaceableVariables, }; describe("My test", () => { let recorder: Recorder; - beforeEach(async function(this: Context) { + beforeEach(async function (this: Context) { recorder = new Recorder(this.currentTest); await recorder.start(recorderOptions); }); - afterEach(async function() { + afterEach(async function () { await recorder.stop(); }); - it("sample test", async function() { + it("sample test", async function () { console.log("Hi, I'm a test!"); }); }); diff --git a/sdk/templatespecs/arm-templatespecs/tsconfig.json b/sdk/templatespecs/arm-templatespecs/tsconfig.json index c7cde0db5ad01..525ba19d43727 100644 --- a/sdk/templatespecs/arm-templatespecs/tsconfig.json +++ b/sdk/templatespecs/arm-templatespecs/tsconfig.json @@ -15,19 +15,19 @@ ], "declaration": true, "outDir": "./dist-esm", - "importHelpers": true, - "paths": { - "@azure/arm-templatespecs": [ - "./src/index" - ] - } + "importHelpers": true }, "include": [ "./src/**/*.ts", "./test/**/*.ts", - "samples-dev/**/*.ts", + "./test/**/*.ts", + "./test/**/*.ts", + "./test/**/*.ts", + "./test/**/*.ts", + "./test/**/*.ts", + "./test/**/*.ts" ], "exclude": [ "node_modules" ] -} +} \ No newline at end of file