diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index abae50eccb73..6f1184ce666d 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -3218,7 +3218,7 @@ packages: version: 0.0.0 '@rush-temp/arm-networkcloud@file:projects/arm-networkcloud.tgz': - resolution: {integrity: sha512-Vget+Btjm5TB3NqDnubucSSFQxs2rp+rX5CQ9tIQ/m6vPwVTd8blkJ6IUqSIVsxxpgrFEhsJ8cbHbOwEuJ1dlA==, tarball: file:projects/arm-networkcloud.tgz} + resolution: {integrity: sha512-VhAlzN09Jw7ZFw8pdEML1m6X5WzGMXiopKrdfQ2Bou2XDD/mncjuIV0MCrYIFQFcVKvaame0Xh9qH+HIW9VWdA==, tarball: file:projects/arm-networkcloud.tgz} version: 0.0.0 '@rush-temp/arm-networkfunction@file:projects/arm-networkfunction.tgz': @@ -3230,7 +3230,7 @@ packages: version: 0.0.0 '@rush-temp/arm-nginx@file:projects/arm-nginx.tgz': - resolution: {integrity: sha512-0Zr+dEe7RW/QTtMzMKwynKxi9E2O8VUD7A4wPGxh/ehH5g11ea4Ay97Li0k/v4HCiizyeLRkXc0SC0bWuoeZxg==, tarball: file:projects/arm-nginx.tgz} + resolution: {integrity: sha512-T2JX94sR7Z2fyia9XglIcbr8Rx3o0M97D71+1xkmHlz1K/yqnGo/QyXhKo84lZMWC2voB2XxzjmpEPftoDHhxg==, tarball: file:projects/arm-nginx.tgz} version: 0.0.0 '@rush-temp/arm-notificationhubs@file:projects/arm-notificationhubs.tgz': @@ -3434,7 +3434,7 @@ packages: version: 0.0.0 '@rush-temp/arm-servicefabricmanagedclusters@file:projects/arm-servicefabricmanagedclusters.tgz': - resolution: {integrity: sha512-sRZXJnbEYmDzrVJtJ0dgX/FAdbsDCjVjoZ6cawbIRHGjXEkx0q3ieeBkXkD4uxUvAJp4gye44HwMGbigDxciUg==, tarball: file:projects/arm-servicefabricmanagedclusters.tgz} + resolution: {integrity: sha512-GsgOfxJp6nJYTsEau/SZSoSe3OwV6XpDhynYFG3kY82DaGQ+Ppc3MhYDn8Kek44ifhSNZ0H3jA7okOqTPO8dfg==, tarball: file:projects/arm-servicefabricmanagedclusters.tgz} version: 0.0.0 '@rush-temp/arm-servicefabricmesh@file:projects/arm-servicefabricmesh.tgz': @@ -17796,12 +17796,12 @@ snapshots: dependencies: '@azure/core-lro': 2.7.2 '@types/node': 18.19.76 - '@vitest/browser': 3.0.6(@types/node@18.19.76)(playwright@1.50.1)(typescript@5.7.3)(vite@6.1.1(@types/node@22.7.9)(tsx@4.19.3)(yaml@2.7.0))(vitest@3.0.6) + '@vitest/browser': 3.0.6(@types/node@18.19.76)(playwright@1.50.1)(typescript@5.6.3)(vite@6.1.1(@types/node@22.7.9)(tsx@4.19.3)(yaml@2.7.0))(vitest@3.0.6) '@vitest/coverage-istanbul': 3.0.6(vitest@3.0.6) dotenv: 16.4.7 playwright: 1.50.1 tslib: 2.8.1 - typescript: 5.7.3 + typescript: 5.6.3 vitest: 3.0.6(@types/debug@4.1.12)(@types/node@18.19.76)(@vitest/browser@3.0.6)(msw@2.7.2(@types/node@22.7.9)(typescript@5.7.3))(tsx@4.19.3)(yaml@2.7.0) transitivePeerDependencies: - '@edge-runtime/vm' @@ -23782,7 +23782,7 @@ snapshots: '@types/chai-as-promised@7.1.8': dependencies: - '@types/chai': 4.3.20 + '@types/chai': 5.0.1 '@types/chai-as-promised@8.0.1': dependencies: diff --git a/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/CHANGELOG.md b/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/CHANGELOG.md index 80b078da46ad..566c1072084d 100644 --- a/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/CHANGELOG.md +++ b/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/CHANGELOG.md @@ -1,5 +1,192 @@ # Release History +## 1.0.0-beta.4 (2025-02-27) +Compared with version 1.0.0-beta.3 + +### Features Added + + - Added operation ManagedClusters.beginStartFaultSimulation + - Added operation ManagedClusters.beginStartFaultSimulationAndWait + - Added operation ManagedClusters.beginStopFaultSimulation + - Added operation ManagedClusters.beginStopFaultSimulationAndWait + - Added operation ManagedClusters.getFaultSimulation + - Added operation ManagedClusters.listFaultSimulation + - Added operation NodeTypes.beginDeallocate + - Added operation NodeTypes.beginDeallocateAndWait + - Added operation NodeTypes.beginRedeploy + - Added operation NodeTypes.beginRedeployAndWait + - Added operation NodeTypes.beginStart + - Added operation NodeTypes.beginStartAndWait + - Added operation NodeTypes.beginStartFaultSimulation + - Added operation NodeTypes.beginStartFaultSimulationAndWait + - Added operation NodeTypes.beginStopFaultSimulation + - Added operation NodeTypes.beginStopFaultSimulationAndWait + - Added operation NodeTypes.getFaultSimulation + - Added operation NodeTypes.listFaultSimulation + - Added Interface ApplicationTypesDeleteHeaders + - Added Interface ErrorAdditionalInfo + - Added Interface ErrorDetail + - Added Interface ErrorResponse + - Added Interface FaultSimulation + - Added Interface FaultSimulationConstraints + - Added Interface FaultSimulationDetails + - Added Interface FaultSimulationIdParameters + - Added Interface FaultSimulationListResult + - Added Interface FaultSimulationParameters + - Added Interface ManagedClustersGetFaultSimulationOptionalParams + - Added Interface ManagedClustersListFaultSimulationNextOptionalParams + - Added Interface ManagedClustersListFaultSimulationOptionalParams + - Added Interface ManagedClustersStartFaultSimulationHeaders + - Added Interface ManagedClustersStartFaultSimulationOptionalParams + - Added Interface ManagedClustersStopFaultSimulationHeaders + - Added Interface ManagedClustersStopFaultSimulationOptionalParams + - Added Interface NodeTypeFaultSimulation + - Added Interface NodeTypesDeallocateHeaders + - Added Interface NodeTypesDeallocateOptionalParams + - Added Interface NodeTypesGetFaultSimulationOptionalParams + - Added Interface NodeTypesListFaultSimulationNextOptionalParams + - Added Interface NodeTypesListFaultSimulationOptionalParams + - Added Interface NodeTypesRedeployHeaders + - Added Interface NodeTypesRedeployOptionalParams + - Added Interface NodeTypesStartFaultSimulationHeaders + - Added Interface NodeTypesStartFaultSimulationOptionalParams + - Added Interface NodeTypesStartHeaders + - Added Interface NodeTypesStartOptionalParams + - Added Interface NodeTypesStopFaultSimulationHeaders + - Added Interface NodeTypesStopFaultSimulationOptionalParams + - Added Interface Operation + - Added Interface OperationDisplay + - Added Interface TrackedResource + - Added Interface ZoneFaultSimulationParameters + - Added Type Alias ActionType + - Added Type Alias ApplicationsDeleteResponse + - Added Type Alias ApplicationTypesDeleteResponse + - Added Type Alias ApplicationTypeVersionsDeleteResponse + - Added Type Alias CreatedByType + - Added Type Alias Environment + - Added Type Alias FaultKind + - Added Type Alias FaultSimulationParametersUnion + - Added Type Alias FaultSimulationStatus + - Added Type Alias ManagedClustersDeleteResponse + - Added Type Alias ManagedClustersGetFaultSimulationResponse + - Added Type Alias ManagedClustersListFaultSimulationNextResponse + - Added Type Alias ManagedClustersListFaultSimulationResponse + - Added Type Alias ManagedClustersStartFaultSimulationResponse + - Added Type Alias ManagedClustersStopFaultSimulationResponse + - Added Type Alias NodeTypesDeallocateResponse + - Added Type Alias NodeTypesDeleteNodeResponse + - Added Type Alias NodeTypesDeleteResponse + - Added Type Alias NodeTypesGetFaultSimulationResponse + - Added Type Alias NodeTypesListFaultSimulationNextResponse + - Added Type Alias NodeTypesListFaultSimulationResponse + - Added Type Alias NodeTypesRedeployResponse + - Added Type Alias NodeTypesReimageResponse + - Added Type Alias NodeTypesRestartResponse + - Added Type Alias NodeTypesStartFaultSimulationResponse + - Added Type Alias NodeTypesStartResponse + - Added Type Alias NodeTypesStopFaultSimulationResponse + - Added Type Alias Origin + - Added Type Alias ServicesDeleteResponse + - Added Type Alias SfmcOperationStatus + - Interface ApplicationResource has a new optional parameter location + - Interface ApplicationResource has a new optional parameter tags + - Interface ApplicationsCreateOrUpdateHeaders has a new optional parameter retryAfter + - Interface ApplicationsDeleteHeaders has a new optional parameter retryAfter + - Interface ApplicationsReadUpgradeHeaders has a new optional parameter retryAfter + - Interface ApplicationsResumeUpgradeHeaders has a new optional parameter retryAfter + - Interface ApplicationsStartRollbackHeaders has a new optional parameter retryAfter + - Interface ApplicationTypeResource has a new optional parameter location + - Interface ApplicationTypeResource has a new optional parameter tags + - Interface ApplicationTypeVersionResource has a new optional parameter location + - Interface ApplicationTypeVersionResource has a new optional parameter tags + - Interface ApplicationTypeVersionsCreateOrUpdateHeaders has a new optional parameter retryAfter + - Interface ApplicationTypeVersionsDeleteHeaders has a new optional parameter retryAfter + - Interface ManagedCluster has a new optional parameter etag + - Interface ManagedClustersCreateOrUpdateHeaders has a new optional parameter retryAfter + - Interface ManagedClustersDeleteHeaders has a new optional parameter retryAfter + - Interface NodeType has a new optional parameter tags + - Interface NodeTypesCreateOrUpdateHeaders has a new optional parameter retryAfter + - Interface NodeTypesDeleteHeaders has a new optional parameter retryAfter + - Interface NodeTypesDeleteNodeHeaders has a new optional parameter retryAfter + - Interface NodeTypesReimageHeaders has a new optional parameter retryAfter + - Interface NodeTypesRestartHeaders has a new optional parameter retryAfter + - Interface NodeTypesUpdateHeaders has a new optional parameter retryAfter + - Interface ServiceResource has a new optional parameter correlationScheme + - Interface ServiceResource has a new optional parameter defaultMoveCost + - Interface ServiceResource has a new optional parameter location + - Interface ServiceResource has a new optional parameter partitionDescription + - Interface ServiceResource has a new optional parameter placementConstraints + - Interface ServiceResource has a new optional parameter provisioningState + - Interface ServiceResource has a new optional parameter scalingPolicies + - Interface ServiceResource has a new optional parameter serviceDnsName + - Interface ServiceResource has a new optional parameter serviceKind + - Interface ServiceResource has a new optional parameter serviceLoadMetrics + - Interface ServiceResource has a new optional parameter servicePackageActivationMode + - Interface ServiceResource has a new optional parameter servicePlacementPolicies + - Interface ServiceResource has a new optional parameter serviceTypeName + - Interface ServiceResource has a new optional parameter tags + - Interface ServicesCreateOrUpdateHeaders has a new optional parameter retryAfter + - Interface ServicesDeleteHeaders has a new optional parameter retryAfter + - Type of parameter type of interface ServicePlacementPolicy is changed from "InvalidDomain" | "NonPartiallyPlaceService" | "PreferredPrimaryDomain" | "RequiredDomain" | "RequiredDomainDistribution" to "InvalidDomain" | "NonPartiallyPlaceService" | "PreferredPrimaryDomain" | "RequiredDomainDistribution" | "RequiredDomain" + - Added Enum KnownActionType + - Added Enum KnownCreatedByType + - Added Enum KnownEnvironment + - Added Enum KnownFaultKind + - Added Enum KnownFaultSimulationStatus + - Added Enum KnownOrigin + - Added Enum KnownSfmcOperationStatus + - Enum KnownDiskType has a new value PremiumV2LRS + - Enum KnownDiskType has a new value PremiumZRS + - Enum KnownDiskType has a new value StandardSSDZRS + +### Breaking Changes + + - Operation ManagedClusterVersion.getByEnvironment has a new signature + - Operation ManagedClusterVersion.listByEnvironment has a new signature + - Interface ApplicationsCreateOrUpdateHeaders no longer has parameter azureAsyncOperation + - Interface ApplicationsDeleteHeaders no longer has parameter azureAsyncOperation + - Interface ApplicationsReadUpgradeHeaders no longer has parameter azureAsyncOperation + - Interface ApplicationsResumeUpgradeHeaders no longer has parameter azureAsyncOperation + - Interface ApplicationsStartRollbackHeaders no longer has parameter azureAsyncOperation + - Interface ApplicationTypeVersionsCreateOrUpdateHeaders no longer has parameter azureAsyncOperation + - Interface ApplicationTypeVersionsDeleteHeaders no longer has parameter azureAsyncOperation + - Interface ManagedClustersCreateOrUpdateHeaders no longer has parameter azureAsyncOperation + - Interface ManagedClustersDeleteHeaders no longer has parameter azureAsyncOperation + - Interface NodeTypesCreateOrUpdateHeaders no longer has parameter azureAsyncOperation + - Interface NodeTypesDeleteHeaders no longer has parameter azureAsyncOperation + - Interface NodeTypesDeleteNodeHeaders no longer has parameter azureAsyncOperation + - Interface NodeTypesReimageHeaders no longer has parameter azureAsyncOperation + - Interface NodeTypesRestartHeaders no longer has parameter azureAsyncOperation + - Interface NodeTypesUpdateHeaders no longer has parameter azureAsyncOperation + - Interface ProxyResource no longer has parameter location + - Interface ProxyResource no longer has parameter tags + - Interface Resource no longer has parameter etag + - Interface Resource no longer has parameter location + - Interface Resource no longer has parameter tags + - Interface ServiceResource no longer has parameter properties + - Interface ServicesCreateOrUpdateHeaders no longer has parameter azureAsyncOperation + - Interface ServicesDeleteHeaders no longer has parameter azureAsyncOperation + - Parameter value of interface ApplicationResourceList is now required + - Parameter value of interface ApplicationTypeResourceList is now required + - Parameter value of interface ApplicationTypeVersionResourceList is now required + - Parameter value of interface ManagedClusterListResult is now required + - Parameter value of interface ManagedVMSizesResult is now required + - Parameter value of interface NodeTypeListResult is now required + - Parameter value of interface NodeTypeListSkuResult is now required + - Parameter value of interface ServiceResourceList is now required + - Type of parameter value of interface OperationListResult is changed from OperationResult[] to Operation[] + - Type of parameter createdByType of interface SystemData is changed from string to CreatedByType + - Type of parameter lastModifiedByType of interface SystemData is changed from string to CreatedByType + - Type of parameter protectedSettings of interface VmssExtension is changed from Record to { + [propertyName: string]: any; + } + - Type of parameter settings of interface VmssExtension is changed from Record to { + [propertyName: string]: any; + } + - Removed Enum KnownManagedClusterVersionEnvironment + - Removed Enum KnownUpgradeMode + + ## 1.0.0-beta.3 (2024-12-12) Compared with version 1.0.0-beta.2 diff --git a/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/LICENSE b/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/LICENSE index b2f52a2bad4e..63447fd8bbbf 100644 --- a/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/LICENSE +++ b/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/LICENSE @@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. +SOFTWARE. \ No newline at end of file diff --git a/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/README.md b/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/README.md index a9021525afdd..eb559350782c 100644 --- a/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/README.md +++ b/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/README.md @@ -48,34 +48,29 @@ You will also need to **register a new AAD application and grant access to Azure For more information about how to create an Azure AD Application check out [this guide](https://learn.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal). Using Node.js and Node-like environments, you can use the `DefaultAzureCredential` class to authenticate the client. - + ```ts snippet:ReadmeSampleCreateClient_Node import { ServiceFabricManagedClustersManagementClient } from "@azure/arm-servicefabricmanagedclusters"; import { DefaultAzureCredential } from "@azure/identity"; const subscriptionId = "00000000-0000-0000-0000-000000000000"; -const client = new ServiceFabricManagedClustersManagementClient( - new DefaultAzureCredential(), - subscriptionId, -); +const client = new ServiceFabricManagedClustersManagementClient(new DefaultAzureCredential(), subscriptionId); ``` - + For browser environments, use the `InteractiveBrowserCredential` from the `@azure/identity` package to authenticate. - + ```ts snippet:ReadmeSampleCreateClient_Browser import { InteractiveBrowserCredential } from "@azure/identity"; import { ServiceFabricManagedClustersManagementClient } from "@azure/arm-servicefabricmanagedclusters"; -const subscriptionId = "00000000-0000-0000-0000-000000000000"; const credential = new InteractiveBrowserCredential({ tenantId: "", - clientId: "", -}); + clientId: "" + }); const client = new ServiceFabricManagedClustersManagementClient(credential, subscriptionId); ``` ### JavaScript Bundle - To use this client library in the browser, first you need to use a bundler. For details on how to do this, please refer to our [bundling documentation](https://aka.ms/AzureSDKBundling). ## Key concepts @@ -110,7 +105,7 @@ If you'd like to contribute to this library, please read the [contributing guide - [Microsoft Azure SDK for JavaScript](https://github.com/Azure/azure-sdk-for-js) - +![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fsdk%2Fservicefabricmanagedclusters%2Farm-servicefabricmanagedclusters%2FREADME.png) [azure_cli]: https://learn.microsoft.com/cli/azure [azure_sub]: https://azure.microsoft.com/free/ diff --git a/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/_meta.json b/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/_meta.json index 0b48c26e7d41..cbfbed25ac39 100644 --- a/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/_meta.json +++ b/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/_meta.json @@ -1,8 +1,8 @@ { - "commit": "552b4dd311f90f4a7b2f7adf45461d7a8774a1cc", + "commit": "7da87199c3e1744afc19d2f2d0cf9863bcdb8acc", "readme": "specification/servicefabricmanagedclusters/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\\servicefabricmanagedclusters\\resource-manager\\readme.md --use=@autorest/typescript@6.0.29 --generate-sample=true", + "autorest_command": "autorest --version=3.9.7 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/servicefabricmanagedclusters/resource-manager/readme.md --use=@autorest/typescript@^6.0.12", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "release_tool": "@azure-tools/js-sdk-release-tools@2.7.16", - "use": "@autorest/typescript@6.0.29" + "release_tool": "@azure-tools/js-sdk-release-tools@2.7.21", + "use": "@autorest/typescript@^6.0.12" } \ No newline at end of file diff --git a/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/api-extractor.json b/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/api-extractor.json index 201a1bbbe0a5..e6dc7fb28e1c 100644 --- a/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/api-extractor.json +++ b/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/api-extractor.json @@ -1,6 +1,6 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "mainEntryPointFilePath": "dist/esm/index.d.ts", + "mainEntryPointFilePath": "./dist-esm/src/index.d.ts", "docModel": { "enabled": true }, @@ -11,7 +11,7 @@ "dtsRollup": { "enabled": true, "untrimmedFilePath": "", - "publicTrimmedFilePath": "dist/arm-servicefabricmanagedclusters.d.ts" + "publicTrimmedFilePath": "./types/arm-servicefabricmanagedclusters.d.ts" }, "messages": { "tsdocMessageReporting": { @@ -28,4 +28,4 @@ } } } -} +} \ No newline at end of file diff --git a/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/package.json b/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/package.json index 9a441bf02cdc..fac87bc75f8f 100644 --- a/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/package.json +++ b/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/package.json @@ -3,7 +3,7 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for ServiceFabricManagedClustersManagementClient.", - "version": "1.0.0-beta.3", + "version": "1.0.0-beta.4", "engines": { "node": ">=18.0.0" }, @@ -25,22 +25,22 @@ ], "license": "MIT", "main": "./dist/commonjs/index.js", - "module": "./dist/esm/index.js", + "module": "./dist-esm/src/index.js", "types": "./dist/commonjs/index.d.ts", "devDependencies": { "@azure-tools/test-credential": "^2.0.0", "@azure-tools/test-recorder": "^4.1.0", "@azure-tools/test-utils-vitest": "^1.0.0", "@azure/dev-tool": "^1.0.0", - "@azure/identity": "^4.6.0", + "@azure/identity": "^4.7.0", "@azure/logger": "^1.1.4", "@types/node": "^18.0.0", - "@vitest/browser": "^3.0.5", - "@vitest/coverage-istanbul": "^3.0.5", + "@vitest/browser": "^3.0.6", + "@vitest/coverage-istanbul": "^3.0.6", "dotenv": "^16.0.0", "playwright": "^1.50.1", - "typescript": "~5.7.2", - "vitest": "^3.0.5" + "typescript": "~5.6.2", + "vitest": "^3.0.6" }, "repository": { "type": "git", @@ -93,14 +93,6 @@ }, "autoPublish": true, "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters", - "//sampleConfiguration": { - "productName": "", - "productSlugs": [ - "azure" - ], - "disableDocsMs": true, - "apiRefLink": "https://learn.microsoft.com/javascript/api/@azure/arm-servicefabricmanagedclusters?view=azure-node-preview" - }, "type": "module", "tshy": { "project": "./tsconfig.src.json", @@ -141,4 +133,4 @@ } } } -} +} \ No newline at end of file diff --git a/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/review/arm-servicefabricmanagedclusters.api.md b/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/review/arm-servicefabricmanagedclusters.api.md index ea0dd11a26a6..536c48b77896 100644 --- a/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/review/arm-servicefabricmanagedclusters.api.md +++ b/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/review/arm-servicefabricmanagedclusters.api.md @@ -13,6 +13,9 @@ import { SimplePollerLike } from '@azure/core-lro'; // @public export type Access = string; +// @public +export type ActionType = string; + // @public export interface AdditionalNetworkInterfaceConfiguration { dscpConfiguration?: SubResource; @@ -42,28 +45,31 @@ export interface ApplicationHealthPolicy { // @public export interface ApplicationResource extends ProxyResource { identity?: ManagedIdentity; + location?: string; managedIdentities?: ApplicationUserAssignedIdentity[]; parameters?: { [propertyName: string]: string; }; readonly provisioningState?: string; + tags?: { + [propertyName: string]: string; + }; upgradePolicy?: ApplicationUpgradePolicy; version?: string; } // @public export interface ApplicationResourceList { - readonly nextLink?: string; - // (undocumented) - value?: ApplicationResource[]; + nextLink?: string; + value: ApplicationResource[]; } // @public export interface Applications { beginCreateOrUpdate(resourceGroupName: string, clusterName: string, applicationName: string, parameters: ApplicationResource, options?: ApplicationsCreateOrUpdateOptionalParams): Promise, ApplicationsCreateOrUpdateResponse>>; beginCreateOrUpdateAndWait(resourceGroupName: string, clusterName: string, applicationName: string, parameters: ApplicationResource, options?: ApplicationsCreateOrUpdateOptionalParams): Promise; - beginDelete(resourceGroupName: string, clusterName: string, applicationName: string, options?: ApplicationsDeleteOptionalParams): Promise, void>>; - beginDeleteAndWait(resourceGroupName: string, clusterName: string, applicationName: string, options?: ApplicationsDeleteOptionalParams): Promise; + beginDelete(resourceGroupName: string, clusterName: string, applicationName: string, options?: ApplicationsDeleteOptionalParams): Promise, ApplicationsDeleteResponse>>; + beginDeleteAndWait(resourceGroupName: string, clusterName: string, applicationName: string, options?: ApplicationsDeleteOptionalParams): Promise; beginReadUpgrade(resourceGroupName: string, clusterName: string, applicationName: string, options?: ApplicationsReadUpgradeOptionalParams): Promise, ApplicationsReadUpgradeResponse>>; beginReadUpgradeAndWait(resourceGroupName: string, clusterName: string, applicationName: string, options?: ApplicationsReadUpgradeOptionalParams): Promise; beginResumeUpgrade(resourceGroupName: string, clusterName: string, applicationName: string, parameters: RuntimeResumeApplicationUpgradeParameters, options?: ApplicationsResumeUpgradeOptionalParams): Promise, ApplicationsResumeUpgradeResponse>>; @@ -77,8 +83,8 @@ export interface Applications { // @public export interface ApplicationsCreateOrUpdateHeaders { - azureAsyncOperation?: string; location?: string; + retryAfter?: number; } // @public @@ -92,8 +98,8 @@ export type ApplicationsCreateOrUpdateResponse = ApplicationResource; // @public export interface ApplicationsDeleteHeaders { - azureAsyncOperation?: string; location?: string; + retryAfter?: number; } // @public @@ -102,6 +108,9 @@ export interface ApplicationsDeleteOptionalParams extends coreClient.OperationOp updateIntervalInMs?: number; } +// @public +export type ApplicationsDeleteResponse = ApplicationsDeleteHeaders; + // @public export interface ApplicationsGetOptionalParams extends coreClient.OperationOptions { } @@ -125,8 +134,8 @@ export type ApplicationsListResponse = ApplicationResourceList; // @public export interface ApplicationsReadUpgradeHeaders { - azureAsyncOperation?: string; location?: string; + retryAfter?: number; } // @public @@ -140,8 +149,8 @@ export type ApplicationsReadUpgradeResponse = ApplicationsReadUpgradeHeaders; // @public export interface ApplicationsResumeUpgradeHeaders { - azureAsyncOperation?: string; location?: string; + retryAfter?: number; } // @public @@ -155,8 +164,8 @@ export type ApplicationsResumeUpgradeResponse = ApplicationsResumeUpgradeHeaders // @public export interface ApplicationsStartRollbackHeaders { - azureAsyncOperation?: string; location?: string; + retryAfter?: number; } // @public @@ -177,20 +186,23 @@ export type ApplicationsUpdateResponse = ApplicationResource; // @public export interface ApplicationTypeResource extends ProxyResource { + location?: string; readonly provisioningState?: string; + tags?: { + [propertyName: string]: string; + }; } // @public export interface ApplicationTypeResourceList { - readonly nextLink?: string; - // (undocumented) - value?: ApplicationTypeResource[]; + nextLink?: string; + value: ApplicationTypeResource[]; } // @public export interface ApplicationTypes { - beginDelete(resourceGroupName: string, clusterName: string, applicationTypeName: string, options?: ApplicationTypesDeleteOptionalParams): Promise, void>>; - beginDeleteAndWait(resourceGroupName: string, clusterName: string, applicationTypeName: string, options?: ApplicationTypesDeleteOptionalParams): Promise; + beginDelete(resourceGroupName: string, clusterName: string, applicationTypeName: string, options?: ApplicationTypesDeleteOptionalParams): Promise, ApplicationTypesDeleteResponse>>; + beginDeleteAndWait(resourceGroupName: string, clusterName: string, applicationTypeName: string, options?: ApplicationTypesDeleteOptionalParams): Promise; createOrUpdate(resourceGroupName: string, clusterName: string, applicationTypeName: string, parameters: ApplicationTypeResource, options?: ApplicationTypesCreateOrUpdateOptionalParams): Promise; get(resourceGroupName: string, clusterName: string, applicationTypeName: string, options?: ApplicationTypesGetOptionalParams): Promise; list(resourceGroupName: string, clusterName: string, options?: ApplicationTypesListOptionalParams): PagedAsyncIterableIterator; @@ -204,12 +216,21 @@ export interface ApplicationTypesCreateOrUpdateOptionalParams extends coreClient // @public export type ApplicationTypesCreateOrUpdateResponse = ApplicationTypeResource; +// @public +export interface ApplicationTypesDeleteHeaders { + location?: string; + retryAfter?: number; +} + // @public export interface ApplicationTypesDeleteOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; updateIntervalInMs?: number; } +// @public +export type ApplicationTypesDeleteResponse = ApplicationTypesDeleteHeaders; + // @public export interface ApplicationTypesGetOptionalParams extends coreClient.OperationOptions { } @@ -248,22 +269,25 @@ export interface ApplicationTypeUpdateParameters { // @public export interface ApplicationTypeVersionResource extends ProxyResource { appPackageUrl?: string; + location?: string; readonly provisioningState?: string; + tags?: { + [propertyName: string]: string; + }; } // @public export interface ApplicationTypeVersionResourceList { - readonly nextLink?: string; - // (undocumented) - value?: ApplicationTypeVersionResource[]; + nextLink?: string; + value: ApplicationTypeVersionResource[]; } // @public export interface ApplicationTypeVersions { beginCreateOrUpdate(resourceGroupName: string, clusterName: string, applicationTypeName: string, version: string, parameters: ApplicationTypeVersionResource, options?: ApplicationTypeVersionsCreateOrUpdateOptionalParams): Promise, ApplicationTypeVersionsCreateOrUpdateResponse>>; beginCreateOrUpdateAndWait(resourceGroupName: string, clusterName: string, applicationTypeName: string, version: string, parameters: ApplicationTypeVersionResource, options?: ApplicationTypeVersionsCreateOrUpdateOptionalParams): Promise; - beginDelete(resourceGroupName: string, clusterName: string, applicationTypeName: string, version: string, options?: ApplicationTypeVersionsDeleteOptionalParams): Promise, void>>; - beginDeleteAndWait(resourceGroupName: string, clusterName: string, applicationTypeName: string, version: string, options?: ApplicationTypeVersionsDeleteOptionalParams): Promise; + beginDelete(resourceGroupName: string, clusterName: string, applicationTypeName: string, version: string, options?: ApplicationTypeVersionsDeleteOptionalParams): Promise, ApplicationTypeVersionsDeleteResponse>>; + beginDeleteAndWait(resourceGroupName: string, clusterName: string, applicationTypeName: string, version: string, options?: ApplicationTypeVersionsDeleteOptionalParams): Promise; get(resourceGroupName: string, clusterName: string, applicationTypeName: string, version: string, options?: ApplicationTypeVersionsGetOptionalParams): Promise; listByApplicationTypes(resourceGroupName: string, clusterName: string, applicationTypeName: string, options?: ApplicationTypeVersionsListByApplicationTypesOptionalParams): PagedAsyncIterableIterator; update(resourceGroupName: string, clusterName: string, applicationTypeName: string, version: string, parameters: ApplicationTypeVersionUpdateParameters, options?: ApplicationTypeVersionsUpdateOptionalParams): Promise; @@ -276,8 +300,8 @@ export interface ApplicationTypeVersionsCleanupPolicy { // @public export interface ApplicationTypeVersionsCreateOrUpdateHeaders { - azureAsyncOperation?: string; location?: string; + retryAfter?: number; } // @public @@ -291,8 +315,8 @@ export type ApplicationTypeVersionsCreateOrUpdateResponse = ApplicationTypeVersi // @public export interface ApplicationTypeVersionsDeleteHeaders { - azureAsyncOperation?: string; location?: string; + retryAfter?: number; } // @public @@ -301,6 +325,9 @@ export interface ApplicationTypeVersionsDeleteOptionalParams extends coreClient. updateIntervalInMs?: number; } +// @public +export type ApplicationTypeVersionsDeleteResponse = ApplicationTypeVersionsDeleteHeaders; + // @public export interface ApplicationTypeVersionsGetOptionalParams extends coreClient.OperationOptions { } @@ -354,7 +381,7 @@ export interface ApplicationUpgradePolicy { upgradeReplicaSetCheckTimeout?: number; } -// @public (undocumented) +// @public export interface ApplicationUserAssignedIdentity { name: string; principalId: string; @@ -363,14 +390,6 @@ export interface ApplicationUserAssignedIdentity { // @public export type AutoGeneratedDomainNameLabelScope = string; -// @public -export interface AvailableOperationDisplay { - description?: string; - operation?: string; - provider?: string; - resource?: string; -} - // @public export interface AveragePartitionLoadScalingTrigger extends ScalingTrigger { kind: "AveragePartitionLoadTrigger"; @@ -445,6 +464,9 @@ export interface ClusterUpgradePolicy { upgradeReplicaSetCheckTimeout?: string; } +// @public +export type CreatedByType = string; + // @public export type Direction = string; @@ -458,8 +480,21 @@ export interface EndpointRangeDescription { } // @public -export interface ErrorModel { - error?: ErrorModelError; +export type Environment = 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; } // @public @@ -468,12 +503,66 @@ export interface ErrorModelError { message?: string; } +// @public +export interface ErrorResponse { + error?: ErrorDetail; +} + // @public export type EvictionPolicyType = string; // @public export type FailureAction = string; +// @public +export type FaultKind = string; + +// @public +export interface FaultSimulation { + details?: FaultSimulationDetails; + endTime?: Date; + simulationId?: string; + startTime?: Date; + status?: FaultSimulationStatus; +} + +// @public +export interface FaultSimulationConstraints { + expirationTime?: Date; +} + +// @public +export interface FaultSimulationDetails { + clusterId?: string; + nodeTypeFaultSimulation?: NodeTypeFaultSimulation[]; + operationId?: string; + parameters?: FaultSimulationParametersUnion; +} + +// @public +export interface FaultSimulationIdParameters { + simulationId: string; +} + +// @public +export interface FaultSimulationListResult { + nextLink?: string; + value: FaultSimulation[]; +} + +// @public +export interface FaultSimulationParameters { + constraints?: FaultSimulationConstraints; + faultKind: "Zone"; + force?: boolean; +} + +// @public (undocumented) +export type FaultSimulationParametersUnion = FaultSimulationParameters | ZoneFaultSimulationParameters; + +// @public +export type FaultSimulationStatus = string; + // @public export interface FrontendConfiguration { applicationGatewayBackendAddressPoolId?: string; @@ -518,6 +607,11 @@ export enum KnownAccess { Deny = "deny" } +// @public +export enum KnownActionType { + Internal = "Internal" +} + // @public export enum KnownAutoGeneratedDomainNameLabelScope { NoReuse = "NoReuse", @@ -549,6 +643,14 @@ export enum KnownClusterUpgradeMode { Manual = "Manual" } +// @public +export enum KnownCreatedByType { + Application = "Application", + Key = "Key", + ManagedIdentity = "ManagedIdentity", + User = "User" +} + // @public export enum KnownDirection { Inbound = "inbound", @@ -558,8 +660,17 @@ export enum KnownDirection { // @public export enum KnownDiskType { PremiumLRS = "Premium_LRS", + PremiumV2LRS = "PremiumV2_LRS", + PremiumZRS = "Premium_ZRS", StandardLRS = "Standard_LRS", - StandardSSDLRS = "StandardSSD_LRS" + StandardSSDLRS = "StandardSSD_LRS", + StandardSSDZRS = "StandardSSD_ZRS" +} + +// @public +export enum KnownEnvironment { + Linux = "Linux", + Windows = "Windows" } // @public @@ -574,6 +685,21 @@ export enum KnownFailureAction { Rollback = "Rollback" } +// @public +export enum KnownFaultKind { + Zone = "Zone" +} + +// @public +export enum KnownFaultSimulationStatus { + Active = "Active", + Done = "Done", + StartFailed = "StartFailed", + Starting = "Starting", + StopFailed = "StopFailed", + Stopping = "Stopping" +} + // @public export enum KnownIPAddressType { IPv4 = "IPv4", @@ -587,11 +713,6 @@ export enum KnownManagedClusterAddOnFeature { ResourceMonitorService = "ResourceMonitorService" } -// @public -export enum KnownManagedClusterVersionEnvironment { - Windows = "Windows" -} - // @public export enum KnownManagedResourceProvisioningState { Canceled = "Canceled", @@ -632,6 +753,13 @@ export enum KnownNsgProtocol { Udp = "udp" } +// @public +export enum KnownOrigin { + System = "system", + User = "user", + UserSystem = "user,system" +} + // @public export enum KnownOsType { Windows = "Windows" @@ -740,6 +868,16 @@ export enum KnownServiceScalingTriggerKind { AverageServiceLoadTrigger = "AverageServiceLoadTrigger" } +// @public +export enum KnownSfmcOperationStatus { + Aborted = "Aborted", + Canceled = "Canceled", + Created = "Created", + Failed = "Failed", + Started = "Started", + Succeeded = "Succeeded" +} + // @public export enum KnownSkuName { Basic = "Basic", @@ -752,13 +890,6 @@ export enum KnownUpdateType { Default = "Default" } -// @public -export enum KnownUpgradeMode { - Monitored = "Monitored", - UnmonitoredAuto = "UnmonitoredAuto", - UnmonitoredManual = "UnmonitoredManual" -} - // @public export enum KnownVmSetupAction { EnableContainers = "EnableContainers", @@ -825,7 +956,7 @@ export interface ManagedAzResiliencyStatusOperations { } // @public -export interface ManagedCluster extends Resource { +export interface ManagedCluster extends TrackedResource { addonFeatures?: ManagedClusterAddOnFeature[]; adminPassword?: string; adminUserName?: string; @@ -849,6 +980,7 @@ export interface ManagedCluster extends Resource { enableHttpGatewayExclusiveAuthMode?: boolean; enableIpv6?: boolean; enableServicePublicIP?: boolean; + readonly etag?: string; fabricSettings?: SettingsSectionDescription[]; readonly fqdn?: string; httpGatewayConnectionPort?: number; @@ -862,7 +994,7 @@ export interface ManagedCluster extends Resource { publicIPPrefixId?: string; publicIPv6PrefixId?: string; serviceEndpoints?: ServiceEndpoint[]; - sku: Sku; + sku?: Sku; subnetId?: string; upgradeDescription?: ClusterUpgradePolicy; useCustomVnet?: boolean; @@ -886,26 +1018,31 @@ export interface ManagedClusterCodeVersionResult { // @public export interface ManagedClusterListResult { nextLink?: string; - // (undocumented) - value?: ManagedCluster[]; + value: ManagedCluster[]; } // @public export interface ManagedClusters { beginCreateOrUpdate(resourceGroupName: string, clusterName: string, parameters: ManagedCluster, options?: ManagedClustersCreateOrUpdateOptionalParams): Promise, ManagedClustersCreateOrUpdateResponse>>; beginCreateOrUpdateAndWait(resourceGroupName: string, clusterName: string, parameters: ManagedCluster, options?: ManagedClustersCreateOrUpdateOptionalParams): Promise; - beginDelete(resourceGroupName: string, clusterName: string, options?: ManagedClustersDeleteOptionalParams): Promise, void>>; - beginDeleteAndWait(resourceGroupName: string, clusterName: string, options?: ManagedClustersDeleteOptionalParams): Promise; + beginDelete(resourceGroupName: string, clusterName: string, options?: ManagedClustersDeleteOptionalParams): Promise, ManagedClustersDeleteResponse>>; + beginDeleteAndWait(resourceGroupName: string, clusterName: string, options?: ManagedClustersDeleteOptionalParams): Promise; + beginStartFaultSimulation(resourceGroupName: string, clusterName: string, parameters: FaultSimulationParametersUnion, options?: ManagedClustersStartFaultSimulationOptionalParams): Promise, ManagedClustersStartFaultSimulationResponse>>; + beginStartFaultSimulationAndWait(resourceGroupName: string, clusterName: string, parameters: FaultSimulationParametersUnion, options?: ManagedClustersStartFaultSimulationOptionalParams): Promise; + beginStopFaultSimulation(resourceGroupName: string, clusterName: string, parameters: FaultSimulationIdParameters, options?: ManagedClustersStopFaultSimulationOptionalParams): Promise, ManagedClustersStopFaultSimulationResponse>>; + beginStopFaultSimulationAndWait(resourceGroupName: string, clusterName: string, parameters: FaultSimulationIdParameters, options?: ManagedClustersStopFaultSimulationOptionalParams): Promise; get(resourceGroupName: string, clusterName: string, options?: ManagedClustersGetOptionalParams): Promise; + getFaultSimulation(resourceGroupName: string, clusterName: string, parameters: FaultSimulationIdParameters, options?: ManagedClustersGetFaultSimulationOptionalParams): Promise; listByResourceGroup(resourceGroupName: string, options?: ManagedClustersListByResourceGroupOptionalParams): PagedAsyncIterableIterator; listBySubscription(options?: ManagedClustersListBySubscriptionOptionalParams): PagedAsyncIterableIterator; + listFaultSimulation(resourceGroupName: string, clusterName: string, options?: ManagedClustersListFaultSimulationOptionalParams): PagedAsyncIterableIterator; update(resourceGroupName: string, clusterName: string, parameters: ManagedClusterUpdateParameters, options?: ManagedClustersUpdateOptionalParams): Promise; } // @public export interface ManagedClustersCreateOrUpdateHeaders { - azureAsyncOperation?: string; location?: string; + retryAfter?: number; } // @public @@ -919,8 +1056,8 @@ export type ManagedClustersCreateOrUpdateResponse = ManagedCluster; // @public export interface ManagedClustersDeleteHeaders { - azureAsyncOperation?: string; location?: string; + retryAfter?: number; } // @public @@ -929,6 +1066,16 @@ export interface ManagedClustersDeleteOptionalParams extends coreClient.Operatio updateIntervalInMs?: number; } +// @public +export type ManagedClustersDeleteResponse = ManagedClustersDeleteHeaders; + +// @public +export interface ManagedClustersGetFaultSimulationOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ManagedClustersGetFaultSimulationResponse = FaultSimulation; + // @public export interface ManagedClustersGetOptionalParams extends coreClient.OperationOptions { } @@ -964,6 +1111,50 @@ export interface ManagedClustersListBySubscriptionOptionalParams extends coreCli // @public export type ManagedClustersListBySubscriptionResponse = ManagedClusterListResult; +// @public +export interface ManagedClustersListFaultSimulationNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ManagedClustersListFaultSimulationNextResponse = FaultSimulationListResult; + +// @public +export interface ManagedClustersListFaultSimulationOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ManagedClustersListFaultSimulationResponse = FaultSimulationListResult; + +// @public +export interface ManagedClustersStartFaultSimulationHeaders { + location?: string; + retryAfter?: number; +} + +// @public +export interface ManagedClustersStartFaultSimulationOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type ManagedClustersStartFaultSimulationResponse = ManagedClustersStartFaultSimulationHeaders; + +// @public +export interface ManagedClustersStopFaultSimulationHeaders { + location?: string; + retryAfter?: number; +} + +// @public +export interface ManagedClustersStopFaultSimulationOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type ManagedClustersStopFaultSimulationResponse = ManagedClustersStopFaultSimulationHeaders; + // @public export interface ManagedClustersUpdateOptionalParams extends coreClient.OperationOptions { } @@ -981,14 +1172,11 @@ export interface ManagedClusterUpdateParameters { // @public export interface ManagedClusterVersion { get(location: string, clusterVersion: string, options?: ManagedClusterVersionGetOptionalParams): Promise; - getByEnvironment(location: string, environment: ManagedClusterVersionEnvironment, clusterVersion: string, options?: ManagedClusterVersionGetByEnvironmentOptionalParams): Promise; + getByEnvironment(location: string, environment: Environment, clusterVersion: string, options?: ManagedClusterVersionGetByEnvironmentOptionalParams): Promise; list(location: string, options?: ManagedClusterVersionListOptionalParams): Promise; - listByEnvironment(location: string, environment: ManagedClusterVersionEnvironment, options?: ManagedClusterVersionListByEnvironmentOptionalParams): Promise; + listByEnvironment(location: string, environment: Environment, options?: ManagedClusterVersionListByEnvironmentOptionalParams): Promise; } -// @public -export type ManagedClusterVersionEnvironment = string; - // @public export interface ManagedClusterVersionGetByEnvironmentOptionalParams extends coreClient.OperationOptions { } @@ -1053,17 +1241,6 @@ export interface ManagedMaintenanceWindowStatusOperations { get(resourceGroupName: string, clusterName: string, options?: ManagedMaintenanceWindowStatusGetOptionalParams): Promise; } -// @public -export interface ManagedProxyResource { - readonly id?: string; - readonly name?: string; - readonly systemData?: SystemData; - tags?: { - [propertyName: string]: string; - }; - readonly type?: string; -} - // @public export type ManagedResourceProvisioningState = string; @@ -1104,8 +1281,8 @@ export interface ManagedVMSize { // @public export interface ManagedVMSizesResult { - readonly nextLink?: string; - value?: ManagedVMSize[]; + nextLink?: string; + value: ManagedVMSize[]; } // @public @@ -1136,7 +1313,7 @@ export interface NetworkSecurityRule { } // @public -export interface NodeType extends ManagedProxyResource { +export interface NodeType extends ProxyResource { additionalDataDisks?: VmssDataDisk[]; additionalNetworkInterfaceConfigurations?: AdditionalNetworkInterfaceConfiguration[]; applicationPorts?: EndpointRangeDescription; @@ -1174,6 +1351,9 @@ export interface NodeType extends ManagedProxyResource { sku?: NodeTypeSku; spotRestoreTimeout?: string; subnetId?: string; + tags?: { + [propertyName: string]: string; + }; useDefaultPublicLoadBalancer?: boolean; useEphemeralOSDisk?: boolean; useTempDataDisk?: boolean; @@ -1208,16 +1388,24 @@ export interface NodeTypeAvailableSku { readonly sku?: NodeTypeSupportedSku; } +// @public +export interface NodeTypeFaultSimulation { + nodeTypeName?: string; + operationId?: string; + readonly operationStatus?: SfmcOperationStatus; + status?: FaultSimulationStatus; +} + // @public export interface NodeTypeListResult { nextLink?: string; - value?: NodeType[]; + value: NodeType[]; } // @public export interface NodeTypeListSkuResult { nextLink?: string; - value?: NodeTypeAvailableSku[]; + value: NodeTypeAvailableSku[]; } // @public @@ -1231,24 +1419,36 @@ export interface NodeTypeNatConfig { export interface NodeTypes { beginCreateOrUpdate(resourceGroupName: string, clusterName: string, nodeTypeName: string, parameters: NodeType, options?: NodeTypesCreateOrUpdateOptionalParams): Promise, NodeTypesCreateOrUpdateResponse>>; beginCreateOrUpdateAndWait(resourceGroupName: string, clusterName: string, nodeTypeName: string, parameters: NodeType, options?: NodeTypesCreateOrUpdateOptionalParams): Promise; - beginDelete(resourceGroupName: string, clusterName: string, nodeTypeName: string, options?: NodeTypesDeleteOptionalParams): Promise, void>>; - beginDeleteAndWait(resourceGroupName: string, clusterName: string, nodeTypeName: string, options?: NodeTypesDeleteOptionalParams): Promise; - beginDeleteNode(resourceGroupName: string, clusterName: string, nodeTypeName: string, parameters: NodeTypeActionParameters, options?: NodeTypesDeleteNodeOptionalParams): Promise, void>>; - beginDeleteNodeAndWait(resourceGroupName: string, clusterName: string, nodeTypeName: string, parameters: NodeTypeActionParameters, options?: NodeTypesDeleteNodeOptionalParams): Promise; - beginReimage(resourceGroupName: string, clusterName: string, nodeTypeName: string, parameters: NodeTypeActionParameters, options?: NodeTypesReimageOptionalParams): Promise, void>>; - beginReimageAndWait(resourceGroupName: string, clusterName: string, nodeTypeName: string, parameters: NodeTypeActionParameters, options?: NodeTypesReimageOptionalParams): Promise; - beginRestart(resourceGroupName: string, clusterName: string, nodeTypeName: string, parameters: NodeTypeActionParameters, options?: NodeTypesRestartOptionalParams): Promise, void>>; - beginRestartAndWait(resourceGroupName: string, clusterName: string, nodeTypeName: string, parameters: NodeTypeActionParameters, options?: NodeTypesRestartOptionalParams): Promise; + beginDeallocate(resourceGroupName: string, clusterName: string, nodeTypeName: string, parameters: NodeTypeActionParameters, options?: NodeTypesDeallocateOptionalParams): Promise, NodeTypesDeallocateResponse>>; + beginDeallocateAndWait(resourceGroupName: string, clusterName: string, nodeTypeName: string, parameters: NodeTypeActionParameters, options?: NodeTypesDeallocateOptionalParams): Promise; + beginDelete(resourceGroupName: string, clusterName: string, nodeTypeName: string, options?: NodeTypesDeleteOptionalParams): Promise, NodeTypesDeleteResponse>>; + beginDeleteAndWait(resourceGroupName: string, clusterName: string, nodeTypeName: string, options?: NodeTypesDeleteOptionalParams): Promise; + beginDeleteNode(resourceGroupName: string, clusterName: string, nodeTypeName: string, parameters: NodeTypeActionParameters, options?: NodeTypesDeleteNodeOptionalParams): Promise, NodeTypesDeleteNodeResponse>>; + beginDeleteNodeAndWait(resourceGroupName: string, clusterName: string, nodeTypeName: string, parameters: NodeTypeActionParameters, options?: NodeTypesDeleteNodeOptionalParams): Promise; + beginRedeploy(resourceGroupName: string, clusterName: string, nodeTypeName: string, parameters: NodeTypeActionParameters, options?: NodeTypesRedeployOptionalParams): Promise, NodeTypesRedeployResponse>>; + beginRedeployAndWait(resourceGroupName: string, clusterName: string, nodeTypeName: string, parameters: NodeTypeActionParameters, options?: NodeTypesRedeployOptionalParams): Promise; + beginReimage(resourceGroupName: string, clusterName: string, nodeTypeName: string, parameters: NodeTypeActionParameters, options?: NodeTypesReimageOptionalParams): Promise, NodeTypesReimageResponse>>; + beginReimageAndWait(resourceGroupName: string, clusterName: string, nodeTypeName: string, parameters: NodeTypeActionParameters, options?: NodeTypesReimageOptionalParams): Promise; + beginRestart(resourceGroupName: string, clusterName: string, nodeTypeName: string, parameters: NodeTypeActionParameters, options?: NodeTypesRestartOptionalParams): Promise, NodeTypesRestartResponse>>; + beginRestartAndWait(resourceGroupName: string, clusterName: string, nodeTypeName: string, parameters: NodeTypeActionParameters, options?: NodeTypesRestartOptionalParams): Promise; + beginStart(resourceGroupName: string, clusterName: string, nodeTypeName: string, parameters: NodeTypeActionParameters, options?: NodeTypesStartOptionalParams): Promise, NodeTypesStartResponse>>; + beginStartAndWait(resourceGroupName: string, clusterName: string, nodeTypeName: string, parameters: NodeTypeActionParameters, options?: NodeTypesStartOptionalParams): Promise; + beginStartFaultSimulation(resourceGroupName: string, clusterName: string, nodeTypeName: string, parameters: FaultSimulationParametersUnion, options?: NodeTypesStartFaultSimulationOptionalParams): Promise, NodeTypesStartFaultSimulationResponse>>; + beginStartFaultSimulationAndWait(resourceGroupName: string, clusterName: string, nodeTypeName: string, parameters: FaultSimulationParametersUnion, options?: NodeTypesStartFaultSimulationOptionalParams): Promise; + beginStopFaultSimulation(resourceGroupName: string, clusterName: string, nodeTypeName: string, parameters: FaultSimulationIdParameters, options?: NodeTypesStopFaultSimulationOptionalParams): Promise, NodeTypesStopFaultSimulationResponse>>; + beginStopFaultSimulationAndWait(resourceGroupName: string, clusterName: string, nodeTypeName: string, parameters: FaultSimulationIdParameters, options?: NodeTypesStopFaultSimulationOptionalParams): Promise; beginUpdate(resourceGroupName: string, clusterName: string, nodeTypeName: string, parameters: NodeTypeUpdateParameters, options?: NodeTypesUpdateOptionalParams): Promise, NodeTypesUpdateResponse>>; beginUpdateAndWait(resourceGroupName: string, clusterName: string, nodeTypeName: string, parameters: NodeTypeUpdateParameters, options?: NodeTypesUpdateOptionalParams): Promise; get(resourceGroupName: string, clusterName: string, nodeTypeName: string, options?: NodeTypesGetOptionalParams): Promise; + getFaultSimulation(resourceGroupName: string, clusterName: string, nodeTypeName: string, parameters: FaultSimulationIdParameters, options?: NodeTypesGetFaultSimulationOptionalParams): Promise; listByManagedClusters(resourceGroupName: string, clusterName: string, options?: NodeTypesListByManagedClustersOptionalParams): PagedAsyncIterableIterator; + listFaultSimulation(resourceGroupName: string, clusterName: string, nodeTypeName: string, options?: NodeTypesListFaultSimulationOptionalParams): PagedAsyncIterableIterator; } // @public export interface NodeTypesCreateOrUpdateHeaders { - azureAsyncOperation?: string; location?: string; + retryAfter?: number; } // @public @@ -1260,16 +1460,31 @@ export interface NodeTypesCreateOrUpdateOptionalParams extends coreClient.Operat // @public export type NodeTypesCreateOrUpdateResponse = NodeType; +// @public +export interface NodeTypesDeallocateHeaders { + location?: string; + retryAfter?: number; +} + +// @public +export interface NodeTypesDeallocateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type NodeTypesDeallocateResponse = NodeTypesDeallocateHeaders; + // @public export interface NodeTypesDeleteHeaders { - azureAsyncOperation?: string; location?: string; + retryAfter?: number; } // @public export interface NodeTypesDeleteNodeHeaders { - azureAsyncOperation?: string; location?: string; + retryAfter?: number; } // @public @@ -1278,12 +1493,25 @@ export interface NodeTypesDeleteNodeOptionalParams extends coreClient.OperationO updateIntervalInMs?: number; } +// @public +export type NodeTypesDeleteNodeResponse = NodeTypesDeleteNodeHeaders; + // @public export interface NodeTypesDeleteOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; updateIntervalInMs?: number; } +// @public +export type NodeTypesDeleteResponse = NodeTypesDeleteHeaders; + +// @public +export interface NodeTypesGetFaultSimulationOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type NodeTypesGetFaultSimulationResponse = FaultSimulation; + // @public export interface NodeTypesGetOptionalParams extends coreClient.OperationOptions { } @@ -1342,10 +1570,39 @@ export interface NodeTypesListByManagedClustersOptionalParams extends coreClient // @public export type NodeTypesListByManagedClustersResponse = NodeTypeListResult; +// @public +export interface NodeTypesListFaultSimulationNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type NodeTypesListFaultSimulationNextResponse = FaultSimulationListResult; + +// @public +export interface NodeTypesListFaultSimulationOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type NodeTypesListFaultSimulationResponse = FaultSimulationListResult; + +// @public +export interface NodeTypesRedeployHeaders { + location?: string; + retryAfter?: number; +} + +// @public +export interface NodeTypesRedeployOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type NodeTypesRedeployResponse = NodeTypesRedeployHeaders; + // @public export interface NodeTypesReimageHeaders { - azureAsyncOperation?: string; location?: string; + retryAfter?: number; } // @public @@ -1354,10 +1611,13 @@ export interface NodeTypesReimageOptionalParams extends coreClient.OperationOpti updateIntervalInMs?: number; } +// @public +export type NodeTypesReimageResponse = NodeTypesReimageHeaders; + // @public export interface NodeTypesRestartHeaders { - azureAsyncOperation?: string; location?: string; + retryAfter?: number; } // @public @@ -1366,10 +1626,58 @@ export interface NodeTypesRestartOptionalParams extends coreClient.OperationOpti updateIntervalInMs?: number; } +// @public +export type NodeTypesRestartResponse = NodeTypesRestartHeaders; + +// @public +export interface NodeTypesStartFaultSimulationHeaders { + location?: string; + retryAfter?: number; +} + +// @public +export interface NodeTypesStartFaultSimulationOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type NodeTypesStartFaultSimulationResponse = NodeTypesStartFaultSimulationHeaders; + +// @public +export interface NodeTypesStartHeaders { + location?: string; + retryAfter?: number; +} + +// @public +export interface NodeTypesStartOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type NodeTypesStartResponse = NodeTypesStartHeaders; + +// @public +export interface NodeTypesStopFaultSimulationHeaders { + location?: string; + retryAfter?: number; +} + +// @public +export interface NodeTypesStopFaultSimulationOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type NodeTypesStopFaultSimulationResponse = NodeTypesStopFaultSimulationHeaders; + // @public export interface NodeTypesUpdateHeaders { - azureAsyncOperation?: string; location?: string; + retryAfter?: number; } // @public @@ -1399,18 +1707,26 @@ export interface NodeTypeUpdateParameters { export type NsgProtocol = string; // @public -export interface OperationListResult { - readonly nextLink?: string; - value?: OperationResult[]; +export interface Operation { + readonly actionType?: ActionType; + display?: OperationDisplay; + readonly isDataAction?: boolean; + readonly name?: string; + readonly origin?: Origin; } // @public -export interface OperationResult { - display?: AvailableOperationDisplay; - isDataAction?: boolean; - name?: string; - nextLink?: string; - origin?: string; +export interface OperationDisplay { + readonly description?: string; + readonly operation?: string; + readonly provider?: string; + readonly resource?: string; +} + +// @public +export interface OperationListResult { + readonly nextLink?: string; + readonly value?: Operation[]; } // @public @@ -1432,7 +1748,7 @@ export type OperationResultsGetResponse = OperationResultsGetHeaders; // @public export interface Operations { - list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator; + list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator; } // @public @@ -1461,6 +1777,9 @@ export interface OperationStatusGetOptionalParams extends coreClient.OperationOp // @public export type OperationStatusGetResponse = LongRunningOperationResult; +// @public +export type Origin = string; + // @public export type OsType = string; @@ -1499,15 +1818,7 @@ export type ProbeProtocol = string; export type Protocol = string; // @public -export interface ProxyResource { - readonly id?: string; - location?: string; - readonly name?: string; - readonly systemData?: SystemData; - tags?: { - [propertyName: string]: string; - }; - readonly type?: string; +export interface ProxyResource extends Resource { } // @public @@ -1515,14 +1826,9 @@ export type PublicIPAddressVersion = string; // @public export interface Resource { - readonly etag?: string; readonly id?: string; - location: string; readonly name?: string; readonly systemData?: SystemData; - tags?: { - [propertyName: string]: string; - }; readonly type?: string; } @@ -1671,14 +1977,14 @@ export interface ServicePlacementNonPartiallyPlaceServicePolicy extends ServiceP // @public export interface ServicePlacementPolicy { - type: "InvalidDomain" | "NonPartiallyPlaceService" | "PreferredPrimaryDomain" | "RequiredDomain" | "RequiredDomainDistribution"; + type: "InvalidDomain" | "NonPartiallyPlaceService" | "PreferredPrimaryDomain" | "RequiredDomainDistribution" | "RequiredDomain"; } // @public export type ServicePlacementPolicyType = string; // @public (undocumented) -export type ServicePlacementPolicyUnion = ServicePlacementPolicy | ServicePlacementInvalidDomainPolicy | ServicePlacementNonPartiallyPlaceServicePolicy | ServicePlacementPreferPrimaryDomainPolicy | ServicePlacementRequiredDomainPolicy | ServicePlacementRequireDomainDistributionPolicy; +export type ServicePlacementPolicyUnion = ServicePlacementPolicy | ServicePlacementInvalidDomainPolicy | ServicePlacementNonPartiallyPlaceServicePolicy | ServicePlacementPreferPrimaryDomainPolicy | ServicePlacementRequireDomainDistributionPolicy | ServicePlacementRequiredDomainPolicy; // @public export interface ServicePlacementPreferPrimaryDomainPolicy extends ServicePlacementPolicy { @@ -1700,14 +2006,28 @@ export interface ServicePlacementRequireDomainDistributionPolicy extends Service // @public export interface ServiceResource extends ProxyResource { - properties?: ServiceResourcePropertiesUnion; + correlationScheme?: ServiceCorrelation[]; + defaultMoveCost?: MoveCost; + location?: string; + partitionDescription?: PartitionUnion; + placementConstraints?: string; + readonly provisioningState?: string; + scalingPolicies?: ScalingPolicy[]; + serviceDnsName?: string; + serviceKind?: ServiceKind; + serviceLoadMetrics?: ServiceLoadMetric[]; + servicePackageActivationMode?: ServicePackageActivationMode; + servicePlacementPolicies?: ServicePlacementPolicyUnion[]; + serviceTypeName?: string; + tags?: { + [propertyName: string]: string; + }; } // @public export interface ServiceResourceList { - readonly nextLink?: string; - // (undocumented) - value?: ServiceResource[]; + nextLink?: string; + value: ServiceResource[]; } // @public @@ -1737,8 +2057,8 @@ export type ServiceResourcePropertiesUnion = ServiceResourceProperties | Statefu export interface Services { beginCreateOrUpdate(resourceGroupName: string, clusterName: string, applicationName: string, serviceName: string, parameters: ServiceResource, options?: ServicesCreateOrUpdateOptionalParams): Promise, ServicesCreateOrUpdateResponse>>; beginCreateOrUpdateAndWait(resourceGroupName: string, clusterName: string, applicationName: string, serviceName: string, parameters: ServiceResource, options?: ServicesCreateOrUpdateOptionalParams): Promise; - beginDelete(resourceGroupName: string, clusterName: string, applicationName: string, serviceName: string, options?: ServicesDeleteOptionalParams): Promise, void>>; - beginDeleteAndWait(resourceGroupName: string, clusterName: string, applicationName: string, serviceName: string, options?: ServicesDeleteOptionalParams): Promise; + beginDelete(resourceGroupName: string, clusterName: string, applicationName: string, serviceName: string, options?: ServicesDeleteOptionalParams): Promise, ServicesDeleteResponse>>; + beginDeleteAndWait(resourceGroupName: string, clusterName: string, applicationName: string, serviceName: string, options?: ServicesDeleteOptionalParams): Promise; get(resourceGroupName: string, clusterName: string, applicationName: string, serviceName: string, options?: ServicesGetOptionalParams): Promise; listByApplications(resourceGroupName: string, clusterName: string, applicationName: string, options?: ServicesListByApplicationsOptionalParams): PagedAsyncIterableIterator; update(resourceGroupName: string, clusterName: string, applicationName: string, serviceName: string, parameters: ServiceUpdateParameters, options?: ServicesUpdateOptionalParams): Promise; @@ -1752,8 +2072,8 @@ export type ServiceScalingTriggerKind = string; // @public export interface ServicesCreateOrUpdateHeaders { - azureAsyncOperation?: string; location?: string; + retryAfter?: number; } // @public @@ -1767,8 +2087,8 @@ export type ServicesCreateOrUpdateResponse = ServiceResource; // @public export interface ServicesDeleteHeaders { - azureAsyncOperation?: string; location?: string; + retryAfter?: number; } // @public @@ -1777,6 +2097,9 @@ export interface ServicesDeleteOptionalParams extends coreClient.OperationOption updateIntervalInMs?: number; } +// @public +export type ServicesDeleteResponse = ServicesDeleteHeaders; + // @public export interface ServicesGetOptionalParams extends coreClient.OperationOptions { } @@ -1831,6 +2154,9 @@ export interface SettingsSectionDescription { parameters: SettingsParameterDescription[]; } +// @public +export type SfmcOperationStatus = string; + // @public export interface SingletonPartitionScheme extends Partition { partitionScheme: "Singleton"; @@ -1882,10 +2208,18 @@ export interface SubResource { export interface SystemData { createdAt?: Date; createdBy?: string; - createdByType?: string; + createdByType?: CreatedByType; lastModifiedAt?: Date; lastModifiedBy?: string; - lastModifiedByType?: string; + lastModifiedByType?: CreatedByType; +} + +// @public +export interface TrackedResource extends Resource { + location: string; + tags?: { + [propertyName: string]: string; + }; } // @public @@ -1900,9 +2234,6 @@ export interface UniformInt64RangePartitionScheme extends Partition { export type UpdateType = string; // @public -export type UpgradeMode = string; - -// @public (undocumented) export interface UserAssignedIdentity { readonly clientId?: string; readonly principalId?: string; @@ -1965,11 +2296,15 @@ export interface VmssExtension { enableAutomaticUpgrade?: boolean; forceUpdateTag?: string; name: string; - protectedSettings?: Record; + protectedSettings?: { + [propertyName: string]: any; + }; provisionAfterExtensions?: string[]; readonly provisioningState?: string; publisher: string; - settings?: Record; + settings?: { + [propertyName: string]: any; + }; setupOrder?: VmssExtensionSetupOrder[]; type: string; typeHandlerVersion: string; @@ -1981,6 +2316,12 @@ export type VmssExtensionSetupOrder = string; // @public export type ZonalUpdateMode = string; +// @public +export interface ZoneFaultSimulationParameters extends FaultSimulationParameters { + faultKind: "Zone"; + zones?: string[]; +} + // (No @packageDocumentation comment for this package) ``` diff --git a/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/lroImpl.ts b/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/lroImpl.ts index d8bc98987053..5f88efab981b 100644 --- a/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/lroImpl.ts +++ b/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/lroImpl.ts @@ -5,6 +5,10 @@ * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + import { AbortSignalLike } from "@azure/abort-controller"; import { LongRunningOperation, LroResponse } from "@azure/core-lro"; diff --git a/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/models/index.ts b/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/models/index.ts index e764e333953a..051ab7ba793a 100644 --- a/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/models/index.ts +++ b/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/models/index.ts @@ -18,8 +18,8 @@ export type ServicePlacementPolicyUnion = | ServicePlacementInvalidDomainPolicy | ServicePlacementNonPartiallyPlaceServicePolicy | ServicePlacementPreferPrimaryDomainPolicy - | ServicePlacementRequiredDomainPolicy - | ServicePlacementRequireDomainDistributionPolicy; + | ServicePlacementRequireDomainDistributionPolicy + | ServicePlacementRequiredDomainPolicy; export type ScalingMechanismUnion = | ScalingMechanism | AddRemoveIncrementalNamedPartitionScalingMechanism @@ -28,357 +28,213 @@ export type ScalingTriggerUnion = | ScalingTrigger | AveragePartitionLoadScalingTrigger | AverageServiceLoadScalingTrigger; +export type FaultSimulationParametersUnion = + | FaultSimulationParameters + | ZoneFaultSimulationParameters; export type ServiceResourcePropertiesUnion = | ServiceResourceProperties | StatefulServiceProperties | StatelessServiceProperties; -/** The resource model definition for proxy-only resource. */ -export interface ProxyResource { +/** A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of results. */ +export interface OperationListResult { /** - * Azure resource identifier. + * List of operations supported by the resource provider * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly id?: string; + readonly value?: Operation[]; /** - * Azure resource name. + * 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 name?: string; + readonly nextLink?: string; +} + +/** Details of a REST API operation, returned from the Resource Provider Operations API */ +export interface Operation { /** - * Azure resource type. + * 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 type?: string; - /** Resource location depends on the parent resource. */ - location?: string; - /** Azure resource tags. */ - tags?: { [propertyName: string]: string }; + readonly name?: string; /** - * Metadata pertaining to creation and last modification of the resource. + * 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 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?: string; - /** 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?: string; - /** The timestamp of resource last modification (UTC). */ - lastModifiedAt?: Date; -} - -/** The structure of the error. */ -export interface ErrorModel { - /** The error details. */ - error?: ErrorModelError; -} - -/** The error details. */ -export interface ErrorModelError { - /** The error code. */ - code?: string; - /** The error message. */ - message?: string; -} - -/** Application type update request */ -export interface ApplicationTypeUpdateParameters { - /** Application type update parameters */ - tags?: { [propertyName: string]: string }; -} - -/** The list of application type names. */ -export interface ApplicationTypeResourceList { - value?: ApplicationTypeResource[]; + readonly isDataAction?: boolean; + /** Localized display information for this particular operation. */ + display?: OperationDisplay; /** - * URL to get the next set of application type list results if there are any. + * 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 nextLink?: string; -} - -/** Application type version update request */ -export interface ApplicationTypeVersionUpdateParameters { - /** Application type version update parameters */ - tags?: { [propertyName: string]: string }; -} - -/** The list of application type version resources for the specified application type name resource. */ -export interface ApplicationTypeVersionResourceList { - value?: ApplicationTypeVersionResource[]; + readonly origin?: Origin; /** - * URL to get the next set of application type version list results if there are any. + * 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 nextLink?: string; -} - -/** Parameters for Resume Upgrade action. The upgrade domain name must be specified. */ -export interface RuntimeResumeApplicationUpgradeParameters { - /** The upgrade domain name. Expected to be the next upgrade domain if the application is upgrading. */ - upgradeDomainName?: string; + readonly actionType?: ActionType; } -/** Describes the managed identities for an Azure resource. */ -export interface ManagedIdentity { +/** Localized display information for this particular operation. */ +export interface OperationDisplay { /** - * The principal id of the managed identity. This property will only be provided for a system assigned identity. + * 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 principalId?: string; + readonly provider?: string; /** - * The tenant id of the managed identity. This property will only be provided for a system assigned identity. + * 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 tenantId?: string; - /** The type of managed identity for the resource. */ - type?: ManagedIdentityType; - /** - * The list of user identities associated with the resource. 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]: UserAssignedIdentity }; -} - -export interface UserAssignedIdentity { + readonly resource?: string; /** - * The principal id of user assigned identity. + * 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 principalId?: string; + readonly operation?: string; /** - * The client id of user assigned identity. + * 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 clientId?: string; + readonly description?: string; } -/** Describes the policy for a monitored application upgrade. */ -export interface ApplicationUpgradePolicy { - /** - * Defines a health policy used to evaluate the health of an application or one of its children entities. - * - */ - applicationHealthPolicy?: ApplicationHealthPolicy; - /** If true, then processes are forcefully restarted during upgrade even when the code version has not changed (the upgrade only changes configuration or data). */ - forceRestart?: boolean; - /** The policy used for monitoring the application upgrade */ - rollingUpgradeMonitoringPolicy?: RollingUpgradeMonitoringPolicy; - /** Duration in seconds, to wait before a stateless instance is closed, to allow the active requests to drain gracefully. This would be effective when the instance is closing during the application/cluster upgrade, only for those instances which have a non-zero delay duration configured in the service description. */ - instanceCloseDelayDuration?: number; - /** The mode used to monitor health during a rolling upgrade. The values are Monitored, and UnmonitoredAuto. */ - upgradeMode?: RollingUpgradeMode; - /** The maximum amount of time to block processing of an upgrade domain and prevent loss of availability when there are unexpected issues. When this timeout expires, processing of the upgrade domain will proceed regardless of availability loss issues. The timeout is reset at the start of each upgrade domain. Valid values are between 0 and 42949672925 inclusive. (unsigned 32-bit integer). */ - upgradeReplicaSetCheckTimeout?: number; - /** Determines whether the application should be recreated on update. If value=true, the rest of the upgrade policy parameters are not allowed. */ - recreateApplication?: boolean; +/** 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; } -/** - * Defines a health policy used to evaluate the health of an application or one of its children entities. - * - */ -export interface ApplicationHealthPolicy { - /** Indicates whether warnings are treated with the same severity as errors. */ - considerWarningAsError: boolean; +/** The error detail. */ +export interface ErrorDetail { /** - * The maximum allowed percentage of unhealthy deployed applications. Allowed values are Byte values from zero to 100. - * The percentage represents the maximum tolerated percentage of deployed applications that can be unhealthy before the application is considered in error. - * This is calculated by dividing the number of unhealthy deployed applications over the number of nodes where the application is currently deployed on in the cluster. - * The computation rounds up to tolerate one failure on small numbers of nodes. Default percentage is zero. - * + * The error code. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - maxPercentUnhealthyDeployedApplications: number; - /** The health policy used by default to evaluate the health of a service type. */ - defaultServiceTypeHealthPolicy?: ServiceTypeHealthPolicy; - /** The map with service type health policy per service type name. The map is empty by default. */ - serviceTypeHealthPolicyMap?: { - [propertyName: string]: ServiceTypeHealthPolicy; - }; -} - -/** - * Represents the health policy used to evaluate the health of services belonging to a service type. - * - */ -export interface ServiceTypeHealthPolicy { + readonly code?: string; /** - * The maximum allowed percentage of unhealthy services. - * - * The percentage represents the maximum tolerated percentage of services that can be unhealthy before the application is considered in error. - * If the percentage is respected but there is at least one unhealthy service, the health is evaluated as Warning. - * This is calculated by dividing the number of unhealthy services of the specific service type over the total number of services of the specific service type. - * The computation rounds up to tolerate one failure on small numbers of services. - * + * The error message. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - maxPercentUnhealthyServices: number; + readonly message?: string; /** - * The maximum allowed percentage of unhealthy partitions per service. - * - * The percentage represents the maximum tolerated percentage of partitions that can be unhealthy before the service is considered in error. - * If the percentage is respected but there is at least one unhealthy partition, the health is evaluated as Warning. - * The percentage is calculated by dividing the number of unhealthy partitions over the total number of partitions in the service. - * The computation rounds up to tolerate one failure on small numbers of partitions. - * + * The error target. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - maxPercentUnhealthyPartitionsPerService: number; + readonly target?: string; /** - * The maximum allowed percentage of unhealthy replicas per partition. - * - * The percentage represents the maximum tolerated percentage of replicas that can be unhealthy before the partition is considered in error. - * If the percentage is respected but there is at least one unhealthy replica, the health is evaluated as Warning. - * The percentage is calculated by dividing the number of unhealthy replicas over the total number of replicas in the partition. - * The computation rounds up to tolerate one failure on small numbers of replicas. - * + * The error details. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - maxPercentUnhealthyReplicasPerPartition: number; -} - -/** The policy used for monitoring the application upgrade */ -export interface RollingUpgradeMonitoringPolicy { - /** The compensating action to perform when a Monitored upgrade encounters monitoring policy or health policy violations. Invalid indicates the failure action is invalid. Rollback specifies that the upgrade will start rolling back automatically. Manual indicates that the upgrade will switch to UnmonitoredManual upgrade mode. */ - failureAction: FailureAction; - /** The amount of time to wait after completing an upgrade domain before applying health policies. It is interpreted as a string representing an ISO 8601 duration with following format "hh:mm:ss.fff". */ - healthCheckWaitDuration: string; - /** The amount of time that the application or cluster must remain healthy before the upgrade proceeds to the next upgrade domain. It is interpreted as a string representing an ISO 8601 duration with following format "hh:mm:ss.fff". */ - healthCheckStableDuration: string; - /** The amount of time to retry health evaluation when the application or cluster is unhealthy before FailureAction is executed. It is interpreted as a string representing an ISO 8601 duration with following format "hh:mm:ss.fff". */ - healthCheckRetryTimeout: string; - /** The amount of time the overall upgrade has to complete before FailureAction is executed. Cannot be larger than 12 hours. It is interpreted as a string representing an ISO 8601 duration with following format "hh:mm:ss.fff". */ - upgradeTimeout: string; - /** The amount of time each upgrade domain has to complete before FailureAction is executed. Cannot be larger than 12 hours. It is interpreted as a string representing an ISO 8601 duration with following format "hh:mm:ss.fff". */ - upgradeDomainTimeout: string; -} - -export interface ApplicationUserAssignedIdentity { - /** The friendly name of user assigned identity. */ - name: string; - /** The principal id of user assigned identity. */ - principalId: string; -} - -/** Application update request */ -export interface ApplicationUpdateParameters { - /** Application update parameters */ - tags?: { [propertyName: string]: string }; -} - -/** The list of application resources. */ -export interface ApplicationResourceList { - value?: ApplicationResource[]; + readonly details?: ErrorDetail[]; /** - * URL to get the next set of application list results if there are any. + * The error additional info. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; -} - -/** Describes how the service is partitioned. */ -export interface Partition { - /** Polymorphic discriminator, which specifies the different types this object can be */ - partitionScheme: "Named" | "Singleton" | "UniformInt64Range"; -} - -/** The common service resource properties. */ -export interface ServiceResourcePropertiesBase { - /** The placement constraints as a string. Placement constraints are boolean expressions on node properties and allow for restricting a service to particular nodes based on the service requirements. For example, to place a service on nodes where NodeType is blue specify the following: "NodeColor == blue)". */ - placementConstraints?: string; - /** A list that describes the correlation of the service with other services. */ - correlationScheme?: ServiceCorrelation[]; - /** The service load metrics is given as an array of ServiceLoadMetric objects. */ - serviceLoadMetrics?: ServiceLoadMetric[]; - /** A list that describes the correlation of the service with other services. */ - servicePlacementPolicies?: ServicePlacementPolicyUnion[]; - /** Specifies the move cost for the service. */ - defaultMoveCost?: MoveCost; - /** Scaling policies for this service. */ - scalingPolicies?: ScalingPolicy[]; + readonly additionalInfo?: ErrorAdditionalInfo[]; } -/** Creates a particular correlation between services. */ -export interface ServiceCorrelation { - /** The ServiceCorrelationScheme which describes the relationship between this service and the service specified via ServiceName. */ - scheme: ServiceCorrelationScheme; - /** The Arm Resource ID of the service that the correlation relationship is established with. */ - serviceName: string; -} - -/** Specifies a metric to load balance a service during runtime. */ -export interface ServiceLoadMetric { - /** The name of the metric. If the service chooses to report load during runtime, the load metric name should match the name that is specified in Name exactly. Note that metric names are case sensitive. */ - name: string; - /** The service load metric relative weight, compared to other metrics configured for this service, as a number. */ - weight?: ServiceLoadMetricWeight; - /** Used only for Stateful services. The default amount of load, as a number, that this service creates for this metric when it is a Primary replica. */ - primaryDefaultLoad?: number; - /** Used only for Stateful services. The default amount of load, as a number, that this service creates for this metric when it is a Secondary replica. */ - secondaryDefaultLoad?: number; - /** Used only for Stateless services. The default amount of load, as a number, that this service creates for this metric. */ - defaultLoad?: number; +/** 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; } -/** Describes the policy to be used for placement of a Service Fabric service. */ -export interface ServicePlacementPolicy { - /** Polymorphic discriminator, which specifies the different types this object can be */ - type: - | "InvalidDomain" - | "NonPartiallyPlaceService" - | "PreferredPrimaryDomain" - | "RequiredDomain" - | "RequiredDomainDistribution"; +/** The result of the Service Fabric runtime versions */ +export interface ManagedClusterCodeVersionResult { + /** The identification of the result */ + id?: string; + /** The name of the result */ + name?: string; + /** The result resource type */ + type?: string; + /** The Service Fabric runtime version of the cluster. */ + clusterCodeVersion?: string; + /** The date of expiry of support of the version. */ + supportExpiryUtc?: string; + /** Cluster operating system, the default will be Windows */ + osType?: OsType; } -/** Specifies a metric to load balance a service during runtime. */ -export interface ScalingPolicy { - /** Specifies the mechanism associated with this scaling policy */ - scalingMechanism: ScalingMechanismUnion; - /** Specifies the trigger associated with this scaling policy. */ - scalingTrigger: ScalingTriggerUnion; +/** Long running operation result. */ +export interface LongRunningOperationResult { + /** The name of the operation. */ + name?: string; + /** The start time of the operation. */ + startTime?: Date; + /** The end time of the operation. */ + endTime?: Date; + /** The completion percentage of the operation. */ + percentComplete?: number; + /** The status of the operation. */ + status?: string; + /** The operation error. */ + error?: ErrorModelError; } -/** Describes the mechanism for performing a scaling operation. */ -export interface ScalingMechanism { - /** Polymorphic discriminator, which specifies the different types this object can be */ - kind: "AddRemoveIncrementalNamedPartition" | "ScalePartitionInstanceCount"; +/** The error details. */ +export interface ErrorModelError { + /** The error code. */ + code?: string; + /** The error message. */ + message?: string; } -/** Describes the trigger for performing a scaling operation. */ -export interface ScalingTrigger { - /** Polymorphic discriminator, which specifies the different types this object can be */ - kind: "AveragePartitionLoadTrigger" | "AverageServiceLoadTrigger"; +/** Describes the result of the request to list Managed VM Sizes for Service Fabric Managed Clusters. */ +export interface ManagedVMSizesResult { + /** The ManagedVMSize items on this page */ + value: ManagedVMSize[]; + /** The link to the next page of items */ + nextLink?: string; } -/** Service update request */ -export interface ServiceUpdateParameters { - /** Service update parameters */ - tags?: { [propertyName: string]: string }; +/** Describes a VM Sizes. */ +export interface ManagedVMSize { + /** + * VM Size properties. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly properties?: VMSize; + /** + * VM Size id. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly id?: string; + /** + * VM Size name. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly name?: string; + /** + * VM Size type. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly type?: string; } -/** The list of service resources. */ -export interface ServiceResourceList { - value?: ServiceResource[]; +/** VM Sizes properties. */ +export interface VMSize { /** - * URL to get the next set of service list results if there are any. + * VM Size name. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; + readonly size?: string; } -/** Managed Cluster list results */ +/** The response of a ManagedCluster list operation. */ export interface ManagedClusterListResult { - value?: ManagedCluster[]; - /** The URL to use for getting the next set of results. */ + /** The ManagedCluster items on this page */ + value: ManagedCluster[]; + /** The link to the next page of items */ nextLink?: string; } @@ -521,15 +377,11 @@ export interface ClusterUpgradePolicy { * When this timeout expires, processing of the upgrade domain will proceed regardless of availability loss issues. * The timeout is reset at the start of each upgrade domain. The timeout can be in either hh:mm:ss or in d.hh:mm:ss.ms format. * This value must be between 00:00:00 and 49710.06:28:15 (unsigned 32 bit integer for seconds) - * */ upgradeReplicaSetCheckTimeout?: string; } -/** - * Defines a health policy used to evaluate the health of the cluster or of a cluster node. - * - */ +/** Defines a health policy used to evaluate the health of the cluster or of a cluster node. */ export interface ClusterHealthPolicy { /** * The maximum allowed percentage of unhealthy nodes before reporting an error. For example, to allow 10% of nodes to be unhealthy, this value would be 10. @@ -540,7 +392,6 @@ export interface ClusterHealthPolicy { * The computation rounds up to tolerate one failure on small numbers of nodes. Default percentage is zero. * * In large clusters, some nodes will always be down or out for repairs, so this percentage should be configured to tolerate that. - * */ maxPercentUnhealthyNodes: number; /** @@ -550,129 +401,424 @@ export interface ClusterHealthPolicy { * If the percentage is respected but there is at least one unhealthy application, the health is evaluated as Warning. * This is calculated by dividing the number of unhealthy applications over the total number of application instances in the cluster, excluding applications of application types that are included in the ApplicationTypeHealthPolicyMap. * The computation rounds up to tolerate one failure on small numbers of applications. Default percentage is zero. - * */ maxPercentUnhealthyApplications: number; } -/** Describes the delta health policies for the cluster upgrade. */ -export interface ClusterUpgradeDeltaHealthPolicy { +/** Describes the delta health policies for the cluster upgrade. */ +export interface ClusterUpgradeDeltaHealthPolicy { + /** + * The maximum allowed percentage of nodes health degradation allowed during cluster upgrades. + * The delta is measured between the state of the nodes at the beginning of upgrade and the state of the nodes at the time of the health evaluation. + * The check is performed after every upgrade domain upgrade completion to make sure the global state of the cluster is within tolerated limits. + */ + maxPercentDeltaUnhealthyNodes: number; + /** + * The maximum allowed percentage of upgrade domain nodes health degradation allowed during cluster upgrades. + * The delta is measured between the state of the upgrade domain nodes at the beginning of upgrade and the state of the upgrade domain nodes at the time of the health evaluation. + * The check is performed after every upgrade domain upgrade completion for all completed upgrade domains to make sure the state of the upgrade domains is within tolerated limits. + */ + maxPercentUpgradeDomainDeltaUnhealthyNodes?: number; + /** + * The maximum allowed percentage of applications health degradation allowed during cluster upgrades. + * The delta is measured between the state of the applications at the beginning of upgrade and the state of the applications at the time of the health evaluation. + * The check is performed after every upgrade domain upgrade completion to make sure the global state of the cluster is within tolerated limits. System services are not included in this. + * NOTE: This value will overwrite the value specified in properties.UpgradeDescription.HealthPolicy.MaxPercentUnhealthyApplications + */ + maxPercentDeltaUnhealthyApplications?: number; +} + +/** Describes the monitoring policies for the cluster upgrade. */ +export interface ClusterMonitoringPolicy { + /** The length of time to wait after completing an upgrade domain before performing health checks. The duration can be in either hh:mm:ss or in d.hh:mm:ss.ms format. */ + healthCheckWaitDuration: string; + /** The amount of time that the application or cluster must remain healthy before the upgrade proceeds to the next upgrade domain. The duration can be in either hh:mm:ss or in d.hh:mm:ss.ms format. */ + healthCheckStableDuration: string; + /** The amount of time to retry health evaluation when the application or cluster is unhealthy before the upgrade rolls back. The timeout can be in either hh:mm:ss or in d.hh:mm:ss.ms format. */ + healthCheckRetryTimeout: string; + /** The amount of time the overall upgrade has to complete before the upgrade rolls back. The timeout can be in either hh:mm:ss or in d.hh:mm:ss.ms format. */ + upgradeTimeout: string; + /** The amount of time each upgrade domain has to complete before the upgrade rolls back. The timeout can be in either hh:mm:ss or in d.hh:mm:ss.ms format. */ + upgradeDomainTimeout: string; +} + +/** Service Fabric managed cluster Sku definition */ +export interface Sku { + /** Sku Name. */ + name: SkuName; +} + +/** Common fields that are returned in the response for all Azure Resource Manager resources */ +export interface Resource { + /** + * Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly id?: string; + /** + * The name of the resource + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly name?: string; + /** + * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly type?: string; + /** + * 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; +} + +/** 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; +} + +/** Managed cluster update request */ +export interface ManagedClusterUpdateParameters { + /** Managed cluster update parameters */ + tags?: { [propertyName: string]: string }; +} + +/** The list of application type names. */ +export interface ApplicationTypeResourceList { + /** The ApplicationTypeResource items on this page */ + value: ApplicationTypeResource[]; + /** The link to the next page of items */ + nextLink?: string; +} + +/** Application type update request */ +export interface ApplicationTypeUpdateParameters { + /** Application type update parameters */ + tags?: { [propertyName: string]: string }; +} + +/** The list of application type version resources for the specified application type name resource. */ +export interface ApplicationTypeVersionResourceList { + /** The ApplicationTypeVersionResource items on this page */ + value: ApplicationTypeVersionResource[]; + /** The link to the next page of items */ + nextLink?: string; +} + +/** Application type version update request */ +export interface ApplicationTypeVersionUpdateParameters { + /** Application type version update parameters */ + tags?: { [propertyName: string]: string }; +} + +/** The list of application resources. */ +export interface ApplicationResourceList { + /** The ApplicationResource items on this page */ + value: ApplicationResource[]; + /** The link to the next page of items */ + nextLink?: string; +} + +/** Describes the policy for a monitored application upgrade. */ +export interface ApplicationUpgradePolicy { + /** Defines a health policy used to evaluate the health of an application or one of its children entities. */ + applicationHealthPolicy?: ApplicationHealthPolicy; + /** If true, then processes are forcefully restarted during upgrade even when the code version has not changed (the upgrade only changes configuration or data). */ + forceRestart?: boolean; + /** The policy used for monitoring the application upgrade */ + rollingUpgradeMonitoringPolicy?: RollingUpgradeMonitoringPolicy; + /** Duration in seconds, to wait before a stateless instance is closed, to allow the active requests to drain gracefully. This would be effective when the instance is closing during the application/cluster upgrade, only for those instances which have a non-zero delay duration configured in the service description. */ + instanceCloseDelayDuration?: number; + /** The mode used to monitor health during a rolling upgrade. The values are Monitored, and UnmonitoredAuto. */ + upgradeMode?: RollingUpgradeMode; + /** The maximum amount of time to block processing of an upgrade domain and prevent loss of availability when there are unexpected issues. When this timeout expires, processing of the upgrade domain will proceed regardless of availability loss issues. The timeout is reset at the start of each upgrade domain. Valid values are between 0 and 42949672925 inclusive. (unsigned 32-bit integer). */ + upgradeReplicaSetCheckTimeout?: number; + /** Determines whether the application should be recreated on update. If value=true, the rest of the upgrade policy parameters are not allowed. */ + recreateApplication?: boolean; +} + +/** Defines a health policy used to evaluate the health of an application or one of its children entities. */ +export interface ApplicationHealthPolicy { + /** Indicates whether warnings are treated with the same severity as errors. */ + considerWarningAsError: boolean; + /** + * The maximum allowed percentage of unhealthy deployed applications. Allowed values are Byte values from zero to 100. + * The percentage represents the maximum tolerated percentage of deployed applications that can be unhealthy before the application is considered in error. + * This is calculated by dividing the number of unhealthy deployed applications over the number of nodes where the application is currently deployed on in the cluster. + * The computation rounds up to tolerate one failure on small numbers of nodes. Default percentage is zero. + */ + maxPercentUnhealthyDeployedApplications: number; + /** The health policy used by default to evaluate the health of a service type. */ + defaultServiceTypeHealthPolicy?: ServiceTypeHealthPolicy; + /** The map with service type health policy per service type name. The map is empty by default. */ + serviceTypeHealthPolicyMap?: { + [propertyName: string]: ServiceTypeHealthPolicy; + }; +} + +/** Represents the health policy used to evaluate the health of services belonging to a service type. */ +export interface ServiceTypeHealthPolicy { /** - * The maximum allowed percentage of nodes health degradation allowed during cluster upgrades. - * The delta is measured between the state of the nodes at the beginning of upgrade and the state of the nodes at the time of the health evaluation. - * The check is performed after every upgrade domain upgrade completion to make sure the global state of the cluster is within tolerated limits. + * The maximum allowed percentage of unhealthy services. * + * The percentage represents the maximum tolerated percentage of services that can be unhealthy before the application is considered in error. + * If the percentage is respected but there is at least one unhealthy service, the health is evaluated as Warning. + * This is calculated by dividing the number of unhealthy services of the specific service type over the total number of services of the specific service type. + * The computation rounds up to tolerate one failure on small numbers of services. */ - maxPercentDeltaUnhealthyNodes: number; + maxPercentUnhealthyServices: number; /** - * The maximum allowed percentage of upgrade domain nodes health degradation allowed during cluster upgrades. - * The delta is measured between the state of the upgrade domain nodes at the beginning of upgrade and the state of the upgrade domain nodes at the time of the health evaluation. - * The check is performed after every upgrade domain upgrade completion for all completed upgrade domains to make sure the state of the upgrade domains is within tolerated limits. + * The maximum allowed percentage of unhealthy partitions per service. * + * The percentage represents the maximum tolerated percentage of partitions that can be unhealthy before the service is considered in error. + * If the percentage is respected but there is at least one unhealthy partition, the health is evaluated as Warning. + * The percentage is calculated by dividing the number of unhealthy partitions over the total number of partitions in the service. + * The computation rounds up to tolerate one failure on small numbers of partitions. */ - maxPercentUpgradeDomainDeltaUnhealthyNodes?: number; + maxPercentUnhealthyPartitionsPerService: number; /** - * The maximum allowed percentage of applications health degradation allowed during cluster upgrades. - * The delta is measured between the state of the applications at the beginning of upgrade and the state of the applications at the time of the health evaluation. - * The check is performed after every upgrade domain upgrade completion to make sure the global state of the cluster is within tolerated limits. System services are not included in this. - * NOTE: This value will overwrite the value specified in properties.UpgradeDescription.HealthPolicy.MaxPercentUnhealthyApplications + * The maximum allowed percentage of unhealthy replicas per partition. * + * The percentage represents the maximum tolerated percentage of replicas that can be unhealthy before the partition is considered in error. + * If the percentage is respected but there is at least one unhealthy replica, the health is evaluated as Warning. + * The percentage is calculated by dividing the number of unhealthy replicas over the total number of replicas in the partition. + * The computation rounds up to tolerate one failure on small numbers of replicas. */ - maxPercentDeltaUnhealthyApplications?: number; + maxPercentUnhealthyReplicasPerPartition: number; } -/** Describes the monitoring policies for the cluster upgrade. */ -export interface ClusterMonitoringPolicy { - /** The length of time to wait after completing an upgrade domain before performing health checks. The duration can be in either hh:mm:ss or in d.hh:mm:ss.ms format. */ +/** The policy used for monitoring the application upgrade */ +export interface RollingUpgradeMonitoringPolicy { + /** The compensating action to perform when a Monitored upgrade encounters monitoring policy or health policy violations. Invalid indicates the failure action is invalid. Rollback specifies that the upgrade will start rolling back automatically. Manual indicates that the upgrade will switch to UnmonitoredManual upgrade mode. */ + failureAction: FailureAction; + /** The amount of time to wait after completing an upgrade domain before applying health policies. It is interpreted as a string representing an ISO 8601 duration with following format "hh:mm:ss.fff". */ healthCheckWaitDuration: string; - /** The amount of time that the application or cluster must remain healthy before the upgrade proceeds to the next upgrade domain. The duration can be in either hh:mm:ss or in d.hh:mm:ss.ms format. */ + /** The amount of time that the application or cluster must remain healthy before the upgrade proceeds to the next upgrade domain. It is interpreted as a string representing an ISO 8601 duration with following format "hh:mm:ss.fff". */ healthCheckStableDuration: string; - /** The amount of time to retry health evaluation when the application or cluster is unhealthy before the upgrade rolls back. The timeout can be in either hh:mm:ss or in d.hh:mm:ss.ms format. */ + /** The amount of time to retry health evaluation when the application or cluster is unhealthy before FailureAction is executed. It is interpreted as a string representing an ISO 8601 duration with following format "hh:mm:ss.fff". */ healthCheckRetryTimeout: string; - /** The amount of time the overall upgrade has to complete before the upgrade rolls back. The timeout can be in either hh:mm:ss or in d.hh:mm:ss.ms format. */ + /** The amount of time the overall upgrade has to complete before FailureAction is executed. Cannot be larger than 12 hours. It is interpreted as a string representing an ISO 8601 duration with following format "hh:mm:ss.fff". */ upgradeTimeout: string; - /** The amount of time each upgrade domain has to complete before the upgrade rolls back. The timeout can be in either hh:mm:ss or in d.hh:mm:ss.ms format. */ + /** The amount of time each upgrade domain has to complete before FailureAction is executed. Cannot be larger than 12 hours. It is interpreted as a string representing an ISO 8601 duration with following format "hh:mm:ss.fff". */ upgradeDomainTimeout: string; } -/** Service Fabric managed cluster Sku definition */ -export interface Sku { - /** Sku Name. */ - name: SkuName; +/** User assigned identity for the application. */ +export interface ApplicationUserAssignedIdentity { + /** The friendly name of user assigned identity. */ + name: string; + /** The principal id of user assigned identity. */ + principalId: string; } -/** The resource model definition. */ -export interface Resource { +/** Describes the managed identities for an Azure resource. */ +export interface ManagedIdentity { /** - * Azure resource identifier. + * The principal id of the managed 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 id?: string; + readonly principalId?: string; /** - * Azure resource name. + * The tenant id of the managed 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 name?: string; + readonly tenantId?: string; + /** The type of managed identity for the resource. */ + type?: ManagedIdentityType; /** - * Azure resource type. - * NOTE: This property will not be serialized. It can only be populated by the server. + * The list of user identities associated with the resource. The user identity dictionary key references will be ARM resource ids in the form: + * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. */ - readonly type?: string; - /** Azure resource location. */ - location: string; - /** Azure resource tags. */ - tags?: { [propertyName: string]: string }; + userAssignedIdentities?: { [propertyName: string]: UserAssignedIdentity }; +} + +/** User assigned identity. */ +export interface UserAssignedIdentity { /** - * Azure resource etag. + * The principal id of user assigned identity. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly etag?: string; + readonly principalId?: string; /** - * Metadata pertaining to creation and last modification of the resource. + * The client id of user assigned identity. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly systemData?: SystemData; + readonly clientId?: string; } -/** Managed cluster update request */ -export interface ManagedClusterUpdateParameters { - /** Managed cluster update parameters */ +/** Application update request. */ +export interface ApplicationUpdateParameters { + /** Application update parameters */ tags?: { [propertyName: string]: string }; } -/** Describes the result of the request to list Managed VM Sizes for Service Fabric Managed Clusters. */ -export interface ManagedAzResiliencyStatus { - /** List of Managed VM Sizes for Service Fabric Managed Clusters. */ - baseResourceStatus?: ResourceAzStatus[]; - /** - * URL to get the next set of Managed VM Sizes if there are any. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly isClusterZoneResilient?: boolean; +/** Parameters for Resume Upgrade action. The upgrade domain name must be specified. */ +export interface RuntimeResumeApplicationUpgradeParameters { + /** The upgrade domain name. Expected to be the next upgrade domain if the application is upgrading. */ + upgradeDomainName?: string; } -/** Describes Az Resiliency status of Base resources */ -export interface ResourceAzStatus { - /** - * VM Size properties. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly resourceName?: string; - /** - * VM Size id. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly resourceType?: string; - /** - * VM Size name. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly isZoneResilient?: boolean; - /** - * Zone resiliency status details for the resource. +/** The list of service resources. */ +export interface ServiceResourceList { + /** The ServiceResource items on this page */ + value: ServiceResource[]; + /** The link to the next page of items */ + nextLink?: string; +} + +/** Describes how the service is partitioned. */ +export interface Partition { + /** Polymorphic discriminator, which specifies the different types this object can be */ + partitionScheme: "Named" | "Singleton" | "UniformInt64Range"; +} + +/** The common service resource properties. */ +export interface ServiceResourcePropertiesBase { + /** The placement constraints as a string. Placement constraints are boolean expressions on node properties and allow for restricting a service to particular nodes based on the service requirements. For example, to place a service on nodes where NodeType is blue specify the following: "NodeColor == blue)". */ + placementConstraints?: string; + /** A list that describes the correlation of the service with other services. */ + correlationScheme?: ServiceCorrelation[]; + /** The service load metrics is given as an array of ServiceLoadMetric objects. */ + serviceLoadMetrics?: ServiceLoadMetric[]; + /** A list that describes the correlation of the service with other services. */ + servicePlacementPolicies?: ServicePlacementPolicyUnion[]; + /** Specifies the move cost for the service. */ + defaultMoveCost?: MoveCost; + /** Scaling policies for this service. */ + scalingPolicies?: ScalingPolicy[]; +} + +/** Creates a particular correlation between services. */ +export interface ServiceCorrelation { + /** The ServiceCorrelationScheme which describes the relationship between this service and the service specified via ServiceName. */ + scheme: ServiceCorrelationScheme; + /** The Arm Resource ID of the service that the correlation relationship is established with. */ + serviceName: string; +} + +/** Specifies a metric to load balance a service during runtime. */ +export interface ServiceLoadMetric { + /** The name of the metric. If the service chooses to report load during runtime, the load metric name should match the name that is specified in Name exactly. Note that metric names are case sensitive. */ + name: string; + /** The service load metric relative weight, compared to other metrics configured for this service, as a number. */ + weight?: ServiceLoadMetricWeight; + /** Used only for Stateful services. The default amount of load, as a number, that this service creates for this metric when it is a Primary replica. */ + primaryDefaultLoad?: number; + /** Used only for Stateful services. The default amount of load, as a number, that this service creates for this metric when it is a Secondary replica. */ + secondaryDefaultLoad?: number; + /** Used only for Stateless services. The default amount of load, as a number, that this service creates for this metric. */ + defaultLoad?: number; +} + +/** Describes the policy to be used for placement of a Service Fabric service. */ +export interface ServicePlacementPolicy { + /** Polymorphic discriminator, which specifies the different types this object can be */ + type: + | "InvalidDomain" + | "NonPartiallyPlaceService" + | "PreferredPrimaryDomain" + | "RequiredDomainDistribution" + | "RequiredDomain"; +} + +/** Specifies a metric to load balance a service during runtime. */ +export interface ScalingPolicy { + /** Specifies the mechanism associated with this scaling policy */ + scalingMechanism: ScalingMechanismUnion; + /** Specifies the trigger associated with this scaling policy. */ + scalingTrigger: ScalingTriggerUnion; +} + +/** Describes the mechanism for performing a scaling operation. */ +export interface ScalingMechanism { + /** Polymorphic discriminator, which specifies the different types this object can be */ + kind: "AddRemoveIncrementalNamedPartition" | "ScalePartitionInstanceCount"; +} + +/** Describes the trigger for performing a scaling operation. */ +export interface ScalingTrigger { + /** Polymorphic discriminator, which specifies the different types this object can be */ + kind: "AveragePartitionLoadTrigger" | "AverageServiceLoadTrigger"; +} + +/** Service update request */ +export interface ServiceUpdateParameters { + /** Service update parameters */ + tags?: { [propertyName: string]: string }; +} + +/** Parameters for Fault Simulation id. */ +export interface FaultSimulationIdParameters { + /** unique identifier for the fault simulation. */ + simulationId: string; +} + +/** Fault simulation object with status. */ +export interface FaultSimulation { + /** unique identifier for the fault simulation. */ + simulationId?: string; + /** Fault simulation status */ + status?: FaultSimulationStatus; + /** The start time of the fault simulation. */ + startTime?: Date; + /** The end time of the fault simulation. */ + endTime?: Date; + /** Fault simulation details */ + details?: FaultSimulationDetails; +} + +/** Details for Fault Simulation. */ +export interface FaultSimulationDetails { + /** unique identifier for the cluster resource. */ + clusterId?: string; + /** unique identifier for the operation associated with the fault simulation. */ + operationId?: string; + /** List of node type simulations associated with the cluster fault simulation. */ + nodeTypeFaultSimulation?: NodeTypeFaultSimulation[]; + /** Fault simulation parameters. */ + parameters?: FaultSimulationParametersUnion; +} + +/** Node type fault simulation object with status. */ +export interface NodeTypeFaultSimulation { + /** Node type name. */ + nodeTypeName?: string; + /** Fault simulation status */ + status?: FaultSimulationStatus; + /** Current or latest asynchronous operation identifier on the node type. */ + operationId?: string; + /** + * Current or latest asynchronous operation status on the node type * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly details?: string; + readonly operationStatus?: SfmcOperationStatus; +} + +/** Parameters for Fault Simulation action. */ +export interface FaultSimulationParameters { + /** Polymorphic discriminator, which specifies the different types this object can be */ + faultKind: "Zone"; + /** Force the action to go through without any check on the cluster. */ + force?: boolean; + /** Constraints for Fault Simulation action. */ + constraints?: FaultSimulationConstraints; +} + +/** Constraints for Fault Simulation action. */ +export interface FaultSimulationConstraints { + /** The absolute expiration timestamp (UTC) after which this fault simulation should be stopped if it's still active. */ + expirationTime?: Date; } /** Describes the maintenance window status of the Service Fabric Managed Cluster. */ @@ -697,141 +843,71 @@ export interface ManagedMaintenanceWindowStatus { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly canApplyUpdates?: boolean; - /** - * Last window update time in UTC. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly lastWindowStatusUpdateAtUTC?: Date; - /** - * Last window start time in UTC. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly lastWindowStartTimeUTC?: Date; - /** - * Last window end time in UTC. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly lastWindowEndTimeUTC?: Date; -} - -/** The result of the Service Fabric runtime versions */ -export interface ManagedClusterCodeVersionResult { - /** The identification of the result */ - id?: string; - /** The name of the result */ - name?: string; - /** The result resource type */ - type?: string; - /** The Service Fabric runtime version of the cluster. */ - clusterCodeVersion?: string; - /** The date of expiry of support of the version. */ - supportExpiryUtc?: string; - /** Cluster operating system, the default will be Windows */ - osType?: OsType; + /** + * Last window update time in UTC. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly lastWindowStatusUpdateAtUTC?: Date; + /** + * Last window start time in UTC. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly lastWindowStartTimeUTC?: Date; + /** + * Last window end time in UTC. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly lastWindowEndTimeUTC?: Date; } /** Describes the result of the request to list Managed VM Sizes for Service Fabric Managed Clusters. */ -export interface ManagedVMSizesResult { +export interface ManagedAzResiliencyStatus { /** List of Managed VM Sizes for Service Fabric Managed Clusters. */ - value?: ManagedVMSize[]; + baseResourceStatus?: ResourceAzStatus[]; /** * URL to get the next set of Managed VM Sizes if there are any. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; + readonly isClusterZoneResilient?: boolean; } -/** Describes a VM Sizes. */ -export interface ManagedVMSize { +/** Describes Az Resiliency status of Base resources */ +export interface ResourceAzStatus { /** * VM Size properties. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly properties?: VMSize; + readonly resourceName?: string; /** * VM Size id. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly id?: string; - /** - * VM Size name. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly name?: string; - /** - * VM Size type. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly type?: string; -} - -/** VM Sizes properties. */ -export interface VMSize { + readonly resourceType?: string; /** * VM Size name. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly size?: string; -} - -/** Long running operation result. */ -export interface LongRunningOperationResult { - /** The name of the operation. */ - name?: string; - /** The start time of the operation. */ - startTime?: Date; - /** The end time of the operation. */ - endTime?: Date; - /** The completion percentage of the operation. */ - percentComplete?: number; - /** The status of the operation. */ - status?: string; - /** The operation error. */ - error?: ErrorModelError; -} - -/** Describes the result of the request to list Service Fabric resource provider operations. */ -export interface OperationListResult { - /** List of operations supported by the Service Fabric resource provider. */ - value?: OperationResult[]; + readonly isZoneResilient?: boolean; /** - * URL to get the next set of operation list results if there are any. + * Zone resiliency status details for the resource. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; + readonly details?: string; } -/** Available operation list result */ -export interface OperationResult { - /** The name of the operation. */ - name?: string; - /** Indicates whether the operation is a data action */ - isDataAction?: boolean; - /** The object that represents the operation. */ - display?: AvailableOperationDisplay; - /** Origin result */ - origin?: string; - /** The URL to use for getting the next set of results. */ +/** Fault simulation list results */ +export interface FaultSimulationListResult { + /** The FaultSimulation items on this page */ + value: FaultSimulation[]; + /** The link to the next page of items */ nextLink?: string; } -/** Operation supported by the Service Fabric resource provider */ -export interface AvailableOperationDisplay { - /** The name of the provider. */ - provider?: string; - /** The resource on which the operation is performed */ - resource?: string; - /** The operation that can be performed. */ - operation?: string; - /** Operation description */ - description?: string; -} - -/** Node type list results */ +/** The response of a NodeType list operation. */ export interface NodeTypeListResult { - /** The list of node types. */ - value?: NodeType[]; - /** The URL to use for getting the next set of results. */ + /** The NodeType items on this page */ + value: NodeType[]; + /** The link to the next page of items */ nextLink?: string; } @@ -861,7 +937,7 @@ export interface SubResource { export interface VaultCertificate { /** This is the URL of a certificate that has been uploaded to Key Vault as a secret. For adding a secret to the Key Vault, see [Add a key or secret to the key vault](https://docs.microsoft.com/azure/key-vault/key-vault-get-started/#add). */ certificateUrl: string; - /** For Windows VMs, specifies the certificate store on the Virtual Machine to which the certificate should be added. The specified certificate store is implicitly in the LocalMachine account.

For Linux VMs, the certificate file is placed under the /var/lib/waagent directory, with the file name .crt for the X509 certificate file and .prv for private key. Both of these files are .pem formatted. */ + /** For Windows VMs, specifies the certificate store on the Virtual Machine to which the certificate should be added. The specified certificate store is implicitly in the LocalMachine account. For Linux VMs, the certificate file is placed under the /var/lib/waagent directory, with the file name {UppercaseThumbprint}.crt for the X509 certificate file and {UppercaseThumbprint}.prv for private key. Both of these files are .pem formatted. */ certificateStore: string; } @@ -878,9 +954,9 @@ export interface VmssExtension { /** Indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set to true. */ autoUpgradeMinorVersion?: boolean; /** Json formatted public settings for the extension. */ - settings?: Record; + settings?: { [propertyName: string]: any }; /** The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. */ - protectedSettings?: Record; + protectedSettings?: { [propertyName: string]: any }; /** If a value is provided and is different from the previous value, the extension handler will be forced to update even if the extension configuration has not changed. */ forceUpdateTag?: string; /** Collection of extension names after which this extension needs to be provisioned. */ @@ -906,11 +982,11 @@ export interface VmManagedIdentity { export interface FrontendConfiguration { /** The IP address type of this frontend configuration. If omitted the default value is IPv4. */ ipAddressType?: IPAddressType; - /** The resource Id of the Load Balancer backend address pool that the VM instances of the node type are associated with. The format of the resource Id is '/subscriptions//resourceGroups//providers/Microsoft.Network/loadBalancers//backendAddressPools/'. */ + /** The resource Id of the Load Balancer backend address pool that the VM instances of the node type are associated with. The format of the resource Id is '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/backendAddressPools/{backendAddressPoolName}'. */ loadBalancerBackendAddressPoolId?: string; - /** The resource Id of the Load Balancer inbound NAT pool that the VM instances of the node type are associated with. The format of the resource Id is '/subscriptions//resourceGroups//providers/Microsoft.Network/loadBalancers//inboundNatPools/'. */ + /** The resource Id of the Load Balancer inbound NAT pool that the VM instances of the node type are associated with. The format of the resource Id is '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/inboundNatPools/{inboundNatPoolName}'. */ loadBalancerInboundNatPoolId?: string; - /** The resource Id of application gateway backend address pool. The format of the resource Id is '/subscriptions//resourceGroups//providers/Microsoft.Network/applicationGateways//backendAddressPools/'. */ + /** The resource Id of application gateway backend address pool. The format of the resource Id is '/subscriptions//resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}/backendAddressPools/{backendAddressPoolName}'. */ applicationGatewayBackendAddressPoolId?: string; } @@ -936,7 +1012,7 @@ export interface NodeTypeNatConfig { frontendPortRangeEnd?: number; } -/** Specifies information about the marketplace image used to create the virtual machine. This element is only used for marketplace images. Before you can use a marketplace image from an API, you must enable the image for programmatic use. In the Azure portal, find the marketplace image that you want to use and then click Want to deploy programmatically, Get Started ->. Enter any required information and then click Save. */ +/** Specifies information about the marketplace image used to create the virtual machine. This element is only used for marketplace images. Before you can use a marketplace image from an API, you must enable the image for programmatic use. In the Azure portal, find the marketplace image that you want to use and then click Want to deploy programmatically, Get Started. Enter any required information and then click Save. */ export interface VmImagePlan { /** The plan ID. */ name?: string; @@ -966,7 +1042,7 @@ export interface IpConfiguration { name: string; /** Specifies an array of references to backend address pools of application gateways. A node type can reference backend address pools of multiple application gateways. Multiple node types cannot use the same application gateway. */ applicationGatewayBackendAddressPools?: SubResource[]; - /** Specifies an array of references to backend address pools of load balancers. A node type can reference backend address pools of one public and one internal load balancer. Multiple node types cannot use the same basic sku load balancer. */ + /** Specifies an array of references to backend address pools of load balancers. A node type can reference backend address pools of one public and one internal load balancer. Multiple node types cannot use the same basic sku load balancer. */ loadBalancerBackendAddressPools?: SubResource[]; /** Specifies an array of references to inbound Nat pools of the load balancers. A node type can reference inbound nat pools of one public and one internal load balancer. Multiple node types cannot use the same basic sku load balancer. */ loadBalancerInboundNatPools?: SubResource[]; @@ -1006,38 +1082,20 @@ export interface VmApplication { /** Describes a node type sku. */ export interface NodeTypeSku { - /** The sku name.

Name is internally generated and is used in auto-scale scenarios.
Property does not allow to be changed to other values than generated.
To avoid deployment errors please omit the property. */ + /** The sku name. Name is internally generated and is used in auto-scale scenarios. Property does not allow to be changed to other values than generated. To avoid deployment errors please omit the property. */ name?: string; - /** Specifies the tier of the node type.

Possible Values:
**Standard** */ + /** Specifies the tier of the node type. Possible Values: **Standard** */ tier?: string; - /** The number of nodes in the node type.

If present in request it will override properties.vmInstanceCount. */ + /** The number of nodes in the node type. If present in request it will override properties.vmInstanceCount. */ capacity: number; } -/** The resource model definition for proxy-only resource. */ -export interface ManagedProxyResource { - /** - * Azure resource identifier. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly id?: string; - /** - * Azure resource name. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly name?: string; - /** - * Azure resource type. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly type?: string; - /** Azure resource tags. */ +/** Node type update request */ +export interface NodeTypeUpdateParameters { + /** Node type update parameters */ 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; + /** The node type sku. */ + sku?: NodeTypeSku; } /** Parameters for Node type action. If nodes are not specified on the parameters, the operation will be performed in all nodes of the node type one upgrade domain at a time. */ @@ -1052,16 +1110,16 @@ export interface NodeTypeActionParameters { /** Node type available sku list results */ export interface NodeTypeListSkuResult { - /** The list of available node type SKUs. */ - value?: NodeTypeAvailableSku[]; - /** The URL to use for getting the next set of results. */ + /** The NodeTypeAvailableSku items on this page */ + value: NodeTypeAvailableSku[]; + /** The link to the next page of items */ nextLink?: string; } /** Defines the type of sku available for a node type */ export interface NodeTypeAvailableSku { /** - * The type of resource the sku applies to.

Value: Microsoft.ServiceFabric/managedClusters/nodeTypes. + * The type of resource the sku applies to. Value: Microsoft.ServiceFabric/managedClusters/nodeTypes. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly resourceType?: string; @@ -1085,7 +1143,7 @@ export interface NodeTypeSupportedSku { */ readonly name?: string; /** - * Specifies the tier of the node type.

Possible Values:
**Standard** + * Specifies the tier of the node type. Possible Values: **Standard** * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly tier?: string; @@ -1115,62 +1173,16 @@ export interface NodeTypeSkuCapacity { readonly scaleType?: NodeTypeSkuScaleType; } -/** Node type update request */ -export interface NodeTypeUpdateParameters { - /** Node type update parameters */ +/** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */ +export interface TrackedResource extends Resource { + /** Resource tags. */ tags?: { [propertyName: string]: string }; - /** The node type sku. */ - sku?: NodeTypeSku; -} - -/** The application type name resource */ -export interface ApplicationTypeResource extends ProxyResource { - /** - * The current deployment or provisioning state, which only appears in the response. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly provisioningState?: string; -} - -/** An application type version resource for the specified application type name resource. */ -export interface ApplicationTypeVersionResource extends ProxyResource { - /** - * The current deployment or provisioning state, which only appears in the response - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly provisioningState?: string; - /** The URL to the application package */ - appPackageUrl?: string; -} - -/** The application resource. */ -export interface ApplicationResource extends ProxyResource { - /** Describes the managed identities for an Azure resource. */ - identity?: ManagedIdentity; - /** - * The current deployment or provisioning state, which only appears in the response - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly provisioningState?: string; - /** - * The version of the application type as defined in the application manifest. - * This name must be the full Arm Resource ID for the referenced application type version. - * - */ - version?: string; - /** List of application parameters with overridden values from their default values specified in the application manifest. */ - parameters?: { [propertyName: string]: string }; - /** Describes the policy for a monitored application upgrade. */ - upgradePolicy?: ApplicationUpgradePolicy; - /** List of user assigned identities for the application, each mapped to a friendly name. */ - managedIdentities?: ApplicationUserAssignedIdentity[]; + /** The geo-location where the resource lives */ + location: string; } -/** The service resource. */ -export interface ServiceResource extends ProxyResource { - /** The service resource properties. */ - properties?: ServiceResourcePropertiesUnion; -} +/** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */ +export interface ProxyResource extends Resource {} /** Describes the named partition scheme of the service. */ export interface NamedPartitionScheme extends Partition { @@ -1180,7 +1192,7 @@ export interface NamedPartitionScheme extends Partition { names: string[]; } -/** SingletonPartitionScheme */ +/** Describes the partition scheme of a singleton-partitioned, or non-partitioned service. */ export interface SingletonPartitionScheme extends Partition { /** Polymorphic discriminator, which specifies the different types this object can be */ partitionScheme: "Singleton"; @@ -1195,13 +1207,11 @@ export interface UniformInt64RangePartitionScheme extends Partition { /** * The lower bound of the partition key range that * should be split between the partition ‘Count’ - * */ lowKey: number; /** * The upper bound of the partition key range that * should be split between the partition ‘Count’ - * */ highKey: number; } @@ -1226,7 +1236,6 @@ export interface ServiceResourceProperties * Dns name used for the service. If this is specified, then the DNS name can be used to return the IP addresses of service endpoints for application layer protocols (e.g., HTTP). * When updating serviceDnsName, old name may be temporarily resolvable. However, rely on new name. * When removing serviceDnsName, removed name may temporarily be resolvable. Do not rely on the name being unresolvable. - * */ serviceDnsName?: string; } @@ -1240,7 +1249,7 @@ export interface ServicePlacementInvalidDomainPolicy domainName: string; } -/** ServicePlacementNonPartiallyPlaceServicePolicy */ +/** The type of placement policy for a service fabric service. Following are the possible values. */ export interface ServicePlacementNonPartiallyPlaceServicePolicy extends ServicePlacementPolicy { /** Polymorphic discriminator, which specifies the different types this object can be */ @@ -1256,7 +1265,6 @@ export interface ServicePlacementNonPartiallyPlaceServicePolicy * be located in a particular fault domain, which in geo-distributed scenarios usually aligns with regional * or datacenter boundaries. Note that since this is an optimization it is possible that the Primary replica * may not end up located in this domain due to failures, capacity limits, or other constraints. - * */ export interface ServicePlacementPreferPrimaryDomainPolicy extends ServicePlacementPolicy { @@ -1266,15 +1274,6 @@ export interface ServicePlacementPreferPrimaryDomainPolicy domainName: string; } -/** Describes the policy to be used for placement of a Service Fabric service where the instances or replicas of that service must be placed in a particular domain. */ -export interface ServicePlacementRequiredDomainPolicy - extends ServicePlacementPolicy { - /** Polymorphic discriminator, which specifies the different types this object can be */ - type: "RequiredDomain"; - /** The name of the domain that should used for placement as per this policy. */ - domainName: string; -} - /** * Describes the policy to be used for placement of a Service Fabric service where two replicas * from the same partition should never be placed in the same fault or upgrade domain. @@ -1285,7 +1284,6 @@ export interface ServicePlacementRequiredDomainPolicy * In the event that one of the datacenters goes offline, normally the replica that was placed in that * datacenter will be packed into one of the remaining datacenters. If this is not desirable then this * policy should be set. - * */ export interface ServicePlacementRequireDomainDistributionPolicy extends ServicePlacementPolicy { @@ -1295,6 +1293,15 @@ export interface ServicePlacementRequireDomainDistributionPolicy domainName: string; } +/** Describes the policy to be used for placement of a Service Fabric service where the instances or replicas of that service must be placed in a particular domain. */ +export interface ServicePlacementRequiredDomainPolicy + extends ServicePlacementPolicy { + /** Polymorphic discriminator, which specifies the different types this object can be */ + type: "RequiredDomain"; + /** The name of the domain that should used for placement as per this policy. */ + domainName: string; +} + /** Represents a scaling mechanism for adding or removing named partitions of a stateless service. Partition names are in the format '0','1'...'N-1'. */ export interface AddRemoveIncrementalNamedPartitionScalingMechanism extends ScalingMechanism { @@ -1350,13 +1357,24 @@ export interface AverageServiceLoadScalingTrigger extends ScalingTrigger { useOnlyPrimaryLoad: boolean; } -/** - * The managed cluster resource - * - */ -export interface ManagedCluster extends Resource { +/** Parameters for Zone Fault Simulation action. */ +export interface ZoneFaultSimulationParameters + extends FaultSimulationParameters { + /** Polymorphic discriminator, which specifies the different types this object can be */ + faultKind: "Zone"; + /** Indicates the zones of the fault simulation. */ + zones?: string[]; +} + +/** The managed cluster resource */ +export interface ManagedCluster extends TrackedResource { + /** + * If eTag is provided in the response body, it may also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.", + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly etag?: string; /** The sku of the managed cluster */ - sku: Sku; + sku?: Sku; /** The cluster dns name. */ dnsName?: string; /** @@ -1414,10 +1432,7 @@ export interface ManagedCluster extends Resource { readonly provisioningState?: ManagedResourceProvisioningState; /** The Service Fabric runtime version of the cluster. This property is required when **clusterUpgradeMode** is set to 'Manual'. To get list of available Service Fabric versions for new clusters use [ClusterVersion API](./ClusterVersion.md). To get the list of available version for existing clusters use **availableClusterVersions**. */ clusterCodeVersion?: string; - /** - * The upgrade mode of the cluster when new Service Fabric runtime version is available. - * - */ + /** The upgrade mode of the cluster when new Service Fabric runtime version is available. */ clusterUpgradeMode?: ClusterUpgradeMode; /** Indicates when new cluster runtime version upgrades will be applied after they are released. By default is Wave0. Only applies when **clusterUpgradeMode** is set to 'Automatic'. */ clusterUpgradeCadence?: ClusterUpgradeCadence; @@ -1468,13 +1483,108 @@ export interface ManagedCluster extends Resource { allocatedOutboundPorts?: number; } +/** The application type name resource */ +export interface ApplicationTypeResource extends ProxyResource { + /** Resource tags. */ + tags?: { [propertyName: string]: string }; + /** The geo-location where the resource lives */ + location?: string; + /** + * The current deployment or provisioning state, which only appears in the response. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: string; +} + +/** An application type version resource for the specified application type name resource. */ +export interface ApplicationTypeVersionResource extends ProxyResource { + /** Resource tags. */ + tags?: { [propertyName: string]: string }; + /** The geo-location where the resource lives */ + location?: string; + /** + * The current deployment or provisioning state, which only appears in the response + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: string; + /** The URL to the application package */ + appPackageUrl?: string; +} + +/** The application resource. */ +export interface ApplicationResource extends ProxyResource { + /** Resource tags. */ + tags?: { [propertyName: string]: string }; + /** Describes the managed identities for an Azure resource. */ + identity?: ManagedIdentity; + /** The geo-location where the resource lives */ + location?: string; + /** + * The current deployment or provisioning state, which only appears in the response + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: string; + /** + * The version of the application type as defined in the application manifest. + * This name must be the full Arm Resource ID for the referenced application type version. + */ + version?: string; + /** List of application parameters with overridden values from their default values specified in the application manifest. */ + parameters?: { [propertyName: string]: string }; + /** Describes the policy for a monitored application upgrade. */ + upgradePolicy?: ApplicationUpgradePolicy; + /** List of user assigned identities for the application, each mapped to a friendly name. */ + managedIdentities?: ApplicationUserAssignedIdentity[]; +} + +/** The service resource. */ +export interface ServiceResource extends ProxyResource { + /** Resource tags. */ + tags?: { [propertyName: string]: string }; + /** The geo-location where the resource lives */ + location?: string; + /** The placement constraints as a string. Placement constraints are boolean expressions on node properties and allow for restricting a service to particular nodes based on the service requirements. For example, to place a service on nodes where NodeType is blue specify the following: "NodeColor == blue)". */ + placementConstraints?: string; + /** A list that describes the correlation of the service with other services. */ + correlationScheme?: ServiceCorrelation[]; + /** The service load metrics is given as an array of ServiceLoadMetric objects. */ + serviceLoadMetrics?: ServiceLoadMetric[]; + /** A list that describes the correlation of the service with other services. */ + servicePlacementPolicies?: ServicePlacementPolicyUnion[]; + /** Specifies the move cost for the service. */ + defaultMoveCost?: MoveCost; + /** Scaling policies for this service. */ + scalingPolicies?: ScalingPolicy[]; + /** + * The current deployment or provisioning state, which only appears in the response + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: string; + /** The kind of service (Stateless or Stateful). */ + serviceKind?: ServiceKind; + /** The name of the service type */ + serviceTypeName?: string; + /** Describes how the service is partitioned. */ + partitionDescription?: PartitionUnion; + /** The activation Mode of the service package */ + servicePackageActivationMode?: ServicePackageActivationMode; + /** + * Dns name used for the service. If this is specified, then the DNS name can be used to return the IP addresses of service endpoints for application layer protocols (e.g., HTTP). + * When updating serviceDnsName, old name may be temporarily resolvable. However, rely on new name. + * When removing serviceDnsName, removed name may temporarily be resolvable. Do not rely on the name being unresolvable. + */ + serviceDnsName?: string; +} + /** Describes a node type in the cluster, each node type represents sub set of nodes in the cluster. */ -export interface NodeType extends ManagedProxyResource { +export interface NodeType extends ProxyResource { + /** Resource tags. */ + tags?: { [propertyName: string]: string }; /** The node type sku. */ sku?: NodeTypeSku; /** Indicates the Service Fabric system services for the cluster will run on this node type. This setting cannot be changed once the node type is created. */ isPrimary?: boolean; - /** The number of nodes in the node type.

**Values:**
-1 - Use when auto scale rules are configured or sku.capacity is defined
0 - Not supported
>0 - Use for manual scale. */ + /** The number of nodes in the node type. **Values:** -1 - Use when auto scale rules are configured or sku.capacity is defined 0 - Not supported >0 - Use for manual scale. */ vmInstanceCount?: number; /** Disk size for the managed disk attached to the vms on the node type in GBs. */ dataDiskSizeGB?: number; @@ -1609,369 +1719,280 @@ export interface StatelessServiceProperties extends ServiceResourceProperties { minInstancePercentage?: number; } -/** Defines headers for ApplicationTypeVersions_createOrUpdate operation. */ -export interface ApplicationTypeVersionsCreateOrUpdateHeaders { - /** The URL to get the status of an ongoing long-running operation. */ - azureAsyncOperation?: string; - /** The URL to get the status of a completed long-running operation. */ +/** Defines headers for OperationResults_get operation. */ +export interface OperationResultsGetHeaders { + /** The Location header contains the URL where the status of the long running operation can be checked. */ location?: string; } -/** Defines headers for ApplicationTypeVersions_delete operation. */ -export interface ApplicationTypeVersionsDeleteHeaders { - /** The URL to get the status of an ongoing long-running operation. */ - azureAsyncOperation?: string; - /** The URL to get the status of a completed long-running operation. */ +/** Defines headers for ManagedClusters_createOrUpdate operation. */ +export interface ManagedClustersCreateOrUpdateHeaders { + /** The Location header contains the URL where the status of the long running operation can be checked. */ location?: string; + /** The Retry-After header can indicate how long the client should wait before polling the operation status. */ + retryAfter?: number; } -/** Defines headers for Applications_readUpgrade operation. */ -export interface ApplicationsReadUpgradeHeaders { - /** The URL to get the status of an ongoing long-running operation. */ - azureAsyncOperation?: string; - /** The URL to get the status of a completed long-running operation. */ +/** Defines headers for ManagedClusters_delete operation. */ +export interface ManagedClustersDeleteHeaders { + /** The Location header contains the URL where the status of the long running operation can be checked. */ location?: string; + /** The Retry-After header can indicate how long the client should wait before polling the operation status. */ + retryAfter?: number; } -/** Defines headers for Applications_startRollback operation. */ -export interface ApplicationsStartRollbackHeaders { - /** The URL to get the status of an ongoing long-running operation. */ - azureAsyncOperation?: string; - /** The URL to get the status of a completed long-running operation. */ +/** Defines headers for ManagedClusters_startFaultSimulation operation. */ +export interface ManagedClustersStartFaultSimulationHeaders { + /** The Location header contains the URL where the status of the long running operation can be checked. */ location?: string; + /** The Retry-After header can indicate how long the client should wait before polling the operation status. */ + retryAfter?: number; } -/** Defines headers for Applications_resumeUpgrade operation. */ -export interface ApplicationsResumeUpgradeHeaders { - /** The URL to get the status of an ongoing long-running operation. */ - azureAsyncOperation?: string; - /** The URL to get the status of a completed long-running operation. */ +/** Defines headers for ManagedClusters_stopFaultSimulation operation. */ +export interface ManagedClustersStopFaultSimulationHeaders { + /** The Location header contains the URL where the status of the long running operation can be checked. */ location?: string; + /** The Retry-After header can indicate how long the client should wait before polling the operation status. */ + retryAfter?: number; } -/** Defines headers for Applications_createOrUpdate operation. */ -export interface ApplicationsCreateOrUpdateHeaders { - /** The URL to get the status of an ongoing long-running operation. */ - azureAsyncOperation?: string; - /** The URL to get the status of a completed long-running operation. */ +/** Defines headers for ApplicationTypes_delete operation. */ +export interface ApplicationTypesDeleteHeaders { + /** The Location header contains the URL where the status of the long running operation can be checked. */ location?: string; + /** The Retry-After header can indicate how long the client should wait before polling the operation status. */ + retryAfter?: number; } -/** Defines headers for Applications_delete operation. */ -export interface ApplicationsDeleteHeaders { - /** The URL to get the status of an ongoing long-running operation. */ - azureAsyncOperation?: string; - /** The URL to get the status of a completed long-running operation. */ +/** Defines headers for ApplicationTypeVersions_createOrUpdate operation. */ +export interface ApplicationTypeVersionsCreateOrUpdateHeaders { + /** The Location header contains the URL where the status of the long running operation can be checked. */ location?: string; + /** The Retry-After header can indicate how long the client should wait before polling the operation status. */ + retryAfter?: number; } -/** Defines headers for Services_createOrUpdate operation. */ -export interface ServicesCreateOrUpdateHeaders { - /** The URL to get the status of an ongoing long-running operation. */ - azureAsyncOperation?: string; - /** The URL to get the status of a completed long-running operation. */ +/** Defines headers for ApplicationTypeVersions_delete operation. */ +export interface ApplicationTypeVersionsDeleteHeaders { + /** The Location header contains the URL where the status of the long running operation can be checked. */ location?: string; + /** The Retry-After header can indicate how long the client should wait before polling the operation status. */ + retryAfter?: number; } -/** Defines headers for Services_delete operation. */ -export interface ServicesDeleteHeaders { - /** The URL to get the status of an ongoing long-running operation. */ - azureAsyncOperation?: string; - /** The URL to get the status of a completed long-running operation. */ +/** Defines headers for Applications_createOrUpdate operation. */ +export interface ApplicationsCreateOrUpdateHeaders { + /** The Location header contains the URL where the status of the long running operation can be checked. */ location?: string; + /** The Retry-After header can indicate how long the client should wait before polling the operation status. */ + retryAfter?: number; } -/** Defines headers for ManagedClusters_createOrUpdate operation. */ -export interface ManagedClustersCreateOrUpdateHeaders { - /** The URL to get the status of an ongoing long-running operation. */ - azureAsyncOperation?: string; - /** The URL to get the status of a completed long-running operation. */ +/** Defines headers for Applications_delete operation. */ +export interface ApplicationsDeleteHeaders { + /** The Location header contains the URL where the status of the long running operation can be checked. */ location?: string; + /** The Retry-After header can indicate how long the client should wait before polling the operation status. */ + retryAfter?: number; } -/** Defines headers for ManagedClusters_delete operation. */ -export interface ManagedClustersDeleteHeaders { - /** The URL to get the status of an ongoing long-running operation. */ - azureAsyncOperation?: string; - /** The URL to get the status of a completed long-running operation. */ +/** Defines headers for Applications_readUpgrade operation. */ +export interface ApplicationsReadUpgradeHeaders { + /** The Location header contains the URL where the status of the long running operation can be checked. */ location?: string; + /** The Retry-After header can indicate how long the client should wait before polling the operation status. */ + retryAfter?: number; } -/** Defines headers for OperationResults_get operation. */ -export interface OperationResultsGetHeaders { - /** The URL to get the status of a completed long-running operation. */ +/** Defines headers for Applications_resumeUpgrade operation. */ +export interface ApplicationsResumeUpgradeHeaders { + /** The Location header contains the URL where the status of the long running operation can be checked. */ location?: string; + /** The Retry-After header can indicate how long the client should wait before polling the operation status. */ + retryAfter?: number; } -/** Defines headers for NodeTypes_restart operation. */ -export interface NodeTypesRestartHeaders { - /** The URL to get the status of an ongoing long-running operation. */ - azureAsyncOperation?: string; - /** The URL to get the status of a completed long-running operation. */ +/** Defines headers for Applications_startRollback operation. */ +export interface ApplicationsStartRollbackHeaders { + /** The Location header contains the URL where the status of the long running operation can be checked. */ location?: string; + /** The Retry-After header can indicate how long the client should wait before polling the operation status. */ + retryAfter?: number; } -/** Defines headers for NodeTypes_reimage operation. */ -export interface NodeTypesReimageHeaders { - /** The URL to get the status of an ongoing long-running operation. */ - azureAsyncOperation?: string; - /** The URL to get the status of a completed long-running operation. */ +/** Defines headers for Services_createOrUpdate operation. */ +export interface ServicesCreateOrUpdateHeaders { + /** The Location header contains the URL where the status of the long running operation can be checked. */ location?: string; + /** The Retry-After header can indicate how long the client should wait before polling the operation status. */ + retryAfter?: number; } -/** Defines headers for NodeTypes_deleteNode operation. */ -export interface NodeTypesDeleteNodeHeaders { - /** The URL to get the status of an ongoing long-running operation. */ - azureAsyncOperation?: string; - /** The URL to get the status of a completed long-running operation. */ +/** Defines headers for Services_delete operation. */ +export interface ServicesDeleteHeaders { + /** The Location header contains the URL where the status of the long running operation can be checked. */ location?: string; + /** The Retry-After header can indicate how long the client should wait before polling the operation status. */ + retryAfter?: number; } /** Defines headers for NodeTypes_createOrUpdate operation. */ export interface NodeTypesCreateOrUpdateHeaders { - /** The URL to get the status of an ongoing long-running operation. */ - azureAsyncOperation?: string; - /** The URL to get the status of a completed long-running operation. */ + /** The Location header contains the URL where the status of the long running operation can be checked. */ location?: string; + /** The Retry-After header can indicate how long the client should wait before polling the operation status. */ + retryAfter?: number; } /** Defines headers for NodeTypes_update operation. */ export interface NodeTypesUpdateHeaders { - /** The URL to get the status of an ongoing long-running operation. */ - azureAsyncOperation?: string; - /** The URL to get the status of a completed long-running operation. */ + /** The Location header contains the URL where the status of the long running operation can be checked. */ location?: string; + /** The Retry-After header can indicate how long the client should wait before polling the operation status. */ + retryAfter?: number; } /** Defines headers for NodeTypes_delete operation. */ export interface NodeTypesDeleteHeaders { - /** The URL to get the status of an ongoing long-running operation. */ - azureAsyncOperation?: string; - /** The URL to get the status of a completed long-running operation. */ + /** The Location header contains the URL where the status of the long running operation can be checked. */ location?: string; + /** The Retry-After header can indicate how long the client should wait before polling the operation status. */ + retryAfter?: number; } -/** Known values of {@link FailureAction} that the service accepts. */ -export enum KnownFailureAction { - /** The upgrade will start rolling back automatically. The value is 0 */ - Rollback = "Rollback", - /** The upgrade will switch to UnmonitoredManual upgrade mode. The value is 1 */ - Manual = "Manual", +/** Defines headers for NodeTypes_deallocate operation. */ +export interface NodeTypesDeallocateHeaders { + /** The Location header contains the URL where the status of the long running operation can be checked. */ + location?: string; + /** The Retry-After header can indicate how long the client should wait before polling the operation status. */ + retryAfter?: number; } -/** - * Defines values for FailureAction. \ - * {@link KnownFailureAction} can be used interchangeably with FailureAction, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Rollback**: The upgrade will start rolling back automatically. The value is 0 \ - * **Manual**: The upgrade will switch to UnmonitoredManual upgrade mode. The value is 1 - */ -export type FailureAction = string; - -/** Known values of {@link RollingUpgradeMode} that the service accepts. */ -export enum KnownRollingUpgradeMode { - /** The upgrade will stop after completing each upgrade domain and automatically monitor health before proceeding. The value is 0. */ - Monitored = "Monitored", - /** The upgrade will proceed automatically without performing any health monitoring. The value is 1. */ - UnmonitoredAuto = "UnmonitoredAuto", +/** Defines headers for NodeTypes_deleteNode operation. */ +export interface NodeTypesDeleteNodeHeaders { + /** The Location header contains the URL where the status of the long running operation can be checked. */ + location?: string; + /** The Retry-After header can indicate how long the client should wait before polling the operation status. */ + retryAfter?: number; } -/** - * Defines values for RollingUpgradeMode. \ - * {@link KnownRollingUpgradeMode} can be used interchangeably with RollingUpgradeMode, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Monitored**: The upgrade will stop after completing each upgrade domain and automatically monitor health before proceeding. The value is 0. \ - * **UnmonitoredAuto**: The upgrade will proceed automatically without performing any health monitoring. The value is 1. - */ -export type RollingUpgradeMode = string; - -/** Known values of {@link ServiceKind} that the service accepts. */ -export enum KnownServiceKind { - /** Does not use Service Fabric to make its state highly available or reliable. The value is 0. */ - Stateless = "Stateless", - /** Uses Service Fabric to make its state or part of its state highly available and reliable. The value is 1. */ - Stateful = "Stateful", +/** Defines headers for NodeTypes_redeploy operation. */ +export interface NodeTypesRedeployHeaders { + /** The Location header contains the URL where the status of the long running operation can be checked. */ + location?: string; + /** The Retry-After header can indicate how long the client should wait before polling the operation status. */ + retryAfter?: number; } -/** - * Defines values for ServiceKind. \ - * {@link KnownServiceKind} can be used interchangeably with ServiceKind, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Stateless**: Does not use Service Fabric to make its state highly available or reliable. The value is 0. \ - * **Stateful**: Uses Service Fabric to make its state or part of its state highly available and reliable. The value is 1. - */ -export type ServiceKind = string; - -/** Known values of {@link PartitionScheme} that the service accepts. */ -export enum KnownPartitionScheme { - /** Indicates that the partition is based on string names, and is a SingletonPartitionScheme object, The value is 0. */ - Singleton = "Singleton", - /** Indicates that the partition is based on Int64 key ranges, and is a UniformInt64RangePartitionScheme object. The value is 1. */ - UniformInt64Range = "UniformInt64Range", - /** Indicates that the partition is based on string names, and is a NamedPartitionScheme object. The value is 2. */ - Named = "Named", +/** Defines headers for NodeTypes_reimage operation. */ +export interface NodeTypesReimageHeaders { + /** The Location header contains the URL where the status of the long running operation can be checked. */ + location?: string; + /** The Retry-After header can indicate how long the client should wait before polling the operation status. */ + retryAfter?: number; } -/** - * Defines values for PartitionScheme. \ - * {@link KnownPartitionScheme} can be used interchangeably with PartitionScheme, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Singleton**: Indicates that the partition is based on string names, and is a SingletonPartitionScheme object, The value is 0. \ - * **UniformInt64Range**: Indicates that the partition is based on Int64 key ranges, and is a UniformInt64RangePartitionScheme object. The value is 1. \ - * **Named**: Indicates that the partition is based on string names, and is a NamedPartitionScheme object. The value is 2. - */ -export type PartitionScheme = string; - -/** Known values of {@link ServicePackageActivationMode} that the service accepts. */ -export enum KnownServicePackageActivationMode { - /** Indicates the application package activation mode will use shared process. */ - SharedProcess = "SharedProcess", - /** Indicates the application package activation mode will use exclusive process. */ - ExclusiveProcess = "ExclusiveProcess", +/** Defines headers for NodeTypes_restart operation. */ +export interface NodeTypesRestartHeaders { + /** The Location header contains the URL where the status of the long running operation can be checked. */ + location?: string; + /** The Retry-After header can indicate how long the client should wait before polling the operation status. */ + retryAfter?: number; } -/** - * Defines values for ServicePackageActivationMode. \ - * {@link KnownServicePackageActivationMode} can be used interchangeably with ServicePackageActivationMode, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **SharedProcess**: Indicates the application package activation mode will use shared process. \ - * **ExclusiveProcess**: Indicates the application package activation mode will use exclusive process. - */ -export type ServicePackageActivationMode = string; - -/** Known values of {@link ServiceCorrelationScheme} that the service accepts. */ -export enum KnownServiceCorrelationScheme { - /** Aligned affinity ensures that the primaries of the partitions of the affinitized services are collocated on the same nodes. This is the default and is the same as selecting the Affinity scheme. The value is 0. */ - AlignedAffinity = "AlignedAffinity", - /** Non-Aligned affinity guarantees that all replicas of each service will be placed on the same nodes. Unlike Aligned Affinity, this does not guarantee that replicas of particular role will be collocated. The value is 1. */ - NonAlignedAffinity = "NonAlignedAffinity", +/** Defines headers for NodeTypes_start operation. */ +export interface NodeTypesStartHeaders { + /** The Location header contains the URL where the status of the long running operation can be checked. */ + location?: string; + /** The Retry-After header can indicate how long the client should wait before polling the operation status. */ + retryAfter?: number; } -/** - * Defines values for ServiceCorrelationScheme. \ - * {@link KnownServiceCorrelationScheme} can be used interchangeably with ServiceCorrelationScheme, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **AlignedAffinity**: Aligned affinity ensures that the primaries of the partitions of the affinitized services are collocated on the same nodes. This is the default and is the same as selecting the Affinity scheme. The value is 0. \ - * **NonAlignedAffinity**: Non-Aligned affinity guarantees that all replicas of each service will be placed on the same nodes. Unlike Aligned Affinity, this does not guarantee that replicas of particular role will be collocated. The value is 1. - */ -export type ServiceCorrelationScheme = string; - -/** Known values of {@link ServiceLoadMetricWeight} that the service accepts. */ -export enum KnownServiceLoadMetricWeight { - /** Disables resource balancing for this metric. This value is zero. */ - Zero = "Zero", - /** Specifies the metric weight of the service load as Low. The value is 1. */ - Low = "Low", - /** Specifies the metric weight of the service load as Medium. The value is 2. */ - Medium = "Medium", - /** Specifies the metric weight of the service load as High. The value is 3. */ - High = "High", +/** Defines headers for NodeTypes_startFaultSimulation operation. */ +export interface NodeTypesStartFaultSimulationHeaders { + /** The Location header contains the URL where the status of the long running operation can be checked. */ + location?: string; + /** The Retry-After header can indicate how long the client should wait before polling the operation status. */ + retryAfter?: number; } -/** - * Defines values for ServiceLoadMetricWeight. \ - * {@link KnownServiceLoadMetricWeight} can be used interchangeably with ServiceLoadMetricWeight, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Zero**: Disables resource balancing for this metric. This value is zero. \ - * **Low**: Specifies the metric weight of the service load as Low. The value is 1. \ - * **Medium**: Specifies the metric weight of the service load as Medium. The value is 2. \ - * **High**: Specifies the metric weight of the service load as High. The value is 3. - */ -export type ServiceLoadMetricWeight = string; +/** Defines headers for NodeTypes_stopFaultSimulation operation. */ +export interface NodeTypesStopFaultSimulationHeaders { + /** The Location header contains the URL where the status of the long running operation can be checked. */ + location?: string; + /** The Retry-After header can indicate how long the client should wait before polling the operation status. */ + retryAfter?: number; +} -/** Known values of {@link ServicePlacementPolicyType} that the service accepts. */ -export enum KnownServicePlacementPolicyType { - /** Indicates that the ServicePlacementPolicyDescription is of type ServicePlacementInvalidDomainPolicyDescription, which indicates that a particular fault or upgrade domain cannot be used for placement of this service. The value is 0. */ - InvalidDomain = "InvalidDomain", - /** Indicates that the ServicePlacementPolicyDescription is of type ServicePlacementRequireDomainDistributionPolicyDescription indicating that the replicas of the service must be placed in a specific domain. The value is 1. */ - RequiredDomain = "RequiredDomain", - /** Indicates that the ServicePlacementPolicyDescription is of type ServicePlacementPreferPrimaryDomainPolicyDescription, which indicates that if possible the Primary replica for the partitions of the service should be located in a particular domain as an optimization. The value is 2. */ - PreferredPrimaryDomain = "PreferredPrimaryDomain", - /** Indicates that the ServicePlacementPolicyDescription is of type ServicePlacementRequireDomainDistributionPolicyDescription, indicating that the system will disallow placement of any two replicas from the same partition in the same domain at any time. The value is 3. */ - RequiredDomainDistribution = "RequiredDomainDistribution", - /** Indicates that the ServicePlacementPolicyDescription is of type ServicePlacementNonPartiallyPlaceServicePolicyDescription, which indicates that if possible all replicas of a particular partition of the service should be placed atomically. The value is 4. */ - NonPartiallyPlaceService = "NonPartiallyPlaceService", +/** 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 ServicePlacementPolicyType. \ - * {@link KnownServicePlacementPolicyType} can be used interchangeably with ServicePlacementPolicyType, + * 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 - * **InvalidDomain**: Indicates that the ServicePlacementPolicyDescription is of type ServicePlacementInvalidDomainPolicyDescription, which indicates that a particular fault or upgrade domain cannot be used for placement of this service. The value is 0. \ - * **RequiredDomain**: Indicates that the ServicePlacementPolicyDescription is of type ServicePlacementRequireDomainDistributionPolicyDescription indicating that the replicas of the service must be placed in a specific domain. The value is 1. \ - * **PreferredPrimaryDomain**: Indicates that the ServicePlacementPolicyDescription is of type ServicePlacementPreferPrimaryDomainPolicyDescription, which indicates that if possible the Primary replica for the partitions of the service should be located in a particular domain as an optimization. The value is 2. \ - * **RequiredDomainDistribution**: Indicates that the ServicePlacementPolicyDescription is of type ServicePlacementRequireDomainDistributionPolicyDescription, indicating that the system will disallow placement of any two replicas from the same partition in the same domain at any time. The value is 3. \ - * **NonPartiallyPlaceService**: Indicates that the ServicePlacementPolicyDescription is of type ServicePlacementNonPartiallyPlaceServicePolicyDescription, which indicates that if possible all replicas of a particular partition of the service should be placed atomically. The value is 4. + * **user** \ + * **system** \ + * **user,system** */ -export type ServicePlacementPolicyType = string; +export type Origin = string; -/** Known values of {@link MoveCost} that the service accepts. */ -export enum KnownMoveCost { - /** Zero move cost. This value is zero. */ - Zero = "Zero", - /** Specifies the move cost of the service as Low. The value is 1. */ - Low = "Low", - /** Specifies the move cost of the service as Medium. The value is 2. */ - Medium = "Medium", - /** Specifies the move cost of the service as High. The value is 3. */ - High = "High", +/** Known values of {@link ActionType} that the service accepts. */ +export enum KnownActionType { + /** Internal */ + Internal = "Internal", } /** - * Defines values for MoveCost. \ - * {@link KnownMoveCost} can be used interchangeably with MoveCost, + * 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 - * **Zero**: Zero move cost. This value is zero. \ - * **Low**: Specifies the move cost of the service as Low. The value is 1. \ - * **Medium**: Specifies the move cost of the service as Medium. The value is 2. \ - * **High**: Specifies the move cost of the service as High. The value is 3. + * **Internal** */ -export type MoveCost = string; +export type ActionType = string; -/** Known values of {@link ServiceScalingMechanismKind} that the service accepts. */ -export enum KnownServiceScalingMechanismKind { - /** Represents a scaling mechanism for adding or removing instances of stateless service partition. The value is 0. */ - ScalePartitionInstanceCount = "ScalePartitionInstanceCount", - /** Represents a scaling mechanism for adding or removing named partitions of a stateless service. The value is 1. */ - AddRemoveIncrementalNamedPartition = "AddRemoveIncrementalNamedPartition", +/** Known values of {@link Environment} that the service accepts. */ +export enum KnownEnvironment { + /** Indicates os is Windows. */ + Windows = "Windows", + /** Indicates os is Linux. */ + Linux = "Linux", } /** - * Defines values for ServiceScalingMechanismKind. \ - * {@link KnownServiceScalingMechanismKind} can be used interchangeably with ServiceScalingMechanismKind, + * Defines values for Environment. \ + * {@link KnownEnvironment} can be used interchangeably with Environment, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **ScalePartitionInstanceCount**: Represents a scaling mechanism for adding or removing instances of stateless service partition. The value is 0. \ - * **AddRemoveIncrementalNamedPartition**: Represents a scaling mechanism for adding or removing named partitions of a stateless service. The value is 1. + * **Windows**: Indicates os is Windows. \ + * **Linux**: Indicates os is Linux. */ -export type ServiceScalingMechanismKind = string; +export type Environment = string; -/** Known values of {@link ServiceScalingTriggerKind} that the service accepts. */ -export enum KnownServiceScalingTriggerKind { - /** Represents a scaling trigger related to an average load of a metric\/resource of a partition. The value is 0. */ - AveragePartitionLoadTrigger = "AveragePartitionLoadTrigger", - /** Represents a scaling policy related to an average load of a metric\/resource of a service. The value is 1. */ - AverageServiceLoadTrigger = "AverageServiceLoadTrigger", +/** Known values of {@link OsType} that the service accepts. */ +export enum KnownOsType { + /** Indicates os is Windows. */ + Windows = "Windows", } -/** - * Defines values for ServiceScalingTriggerKind. \ - * {@link KnownServiceScalingTriggerKind} can be used interchangeably with ServiceScalingTriggerKind, +/** + * Defines values for OsType. \ + * {@link KnownOsType} can be used interchangeably with OsType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **AveragePartitionLoadTrigger**: Represents a scaling trigger related to an average load of a metric\/resource of a partition. The value is 0. \ - * **AverageServiceLoadTrigger**: Represents a scaling policy related to an average load of a metric\/resource of a service. The value is 1. + * **Windows**: Indicates os is Windows. */ -export type ServiceScalingTriggerKind = string; +export type OsType = string; /** Known values of {@link ClusterState} that the service accepts. */ export enum KnownClusterState { @@ -2005,9 +2026,9 @@ export type ClusterState = string; /** Known values of {@link Protocol} that the service accepts. */ export enum KnownProtocol { - /** Tcp */ + /** Transport protocol is TCP. */ Tcp = "tcp", - /** Udp */ + /** Transport protocol is UDP. */ Udp = "udp", } @@ -2016,18 +2037,18 @@ export enum KnownProtocol { * {@link KnownProtocol} can be used interchangeably with Protocol, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **tcp** \ - * **udp** + * **tcp**: Transport protocol is TCP. \ + * **udp**: Transport protocol is UDP. */ export type Protocol = string; /** Known values of {@link ProbeProtocol} that the service accepts. */ export enum KnownProbeProtocol { - /** Tcp */ + /** Probe protocol is TCP. */ Tcp = "tcp", - /** Http */ + /** Probe protocol is HTTP. */ Http = "http", - /** Https */ + /** Probe protocol is HTTPS. */ Https = "https", } @@ -2036,27 +2057,27 @@ export enum KnownProbeProtocol { * {@link KnownProbeProtocol} can be used interchangeably with ProbeProtocol, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **tcp** \ - * **http** \ - * **https** + * **tcp**: Probe protocol is TCP. \ + * **http**: Probe protocol is HTTP. \ + * **https**: Probe protocol is HTTPS. */ export type ProbeProtocol = string; /** Known values of {@link NsgProtocol} that the service accepts. */ export enum KnownNsgProtocol { - /** Http */ + /** Protocol applies to HTTP. */ Http = "http", - /** Https */ + /** Protocol applies to HTTPS. */ Https = "https", - /** Tcp */ + /** Protocol applies to TCP. */ Tcp = "tcp", - /** Udp */ + /** Protocol applies to UDP. */ Udp = "udp", - /** Icmp */ + /** Protocol applies to ICMP. */ Icmp = "icmp", - /** Ah */ + /** Protocol applies to AH. */ Ah = "ah", - /** Esp */ + /** Protocol applies to ESP. */ Esp = "esp", } @@ -2065,21 +2086,21 @@ export enum KnownNsgProtocol { * {@link KnownNsgProtocol} can be used interchangeably with NsgProtocol, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **http** \ - * **https** \ - * **tcp** \ - * **udp** \ - * **icmp** \ - * **ah** \ - * **esp** + * **http**: Protocol applies to HTTP. \ + * **https**: Protocol applies to HTTPS. \ + * **tcp**: Protocol applies to TCP. \ + * **udp**: Protocol applies to UDP. \ + * **icmp**: Protocol applies to ICMP. \ + * **ah**: Protocol applies to AH. \ + * **esp**: Protocol applies to ESP. */ export type NsgProtocol = string; /** Known values of {@link Access} that the service accepts. */ export enum KnownAccess { - /** Allow */ + /** The network traffic is allowed. */ Allow = "allow", - /** Deny */ + /** The network traffic is denied. */ Deny = "deny", } @@ -2088,16 +2109,16 @@ export enum KnownAccess { * {@link KnownAccess} can be used interchangeably with Access, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **allow** \ - * **deny** + * **allow**: The network traffic is allowed. \ + * **deny**: The network traffic is denied. */ export type Access = string; /** Known values of {@link Direction} that the service accepts. */ export enum KnownDirection { - /** Inbound */ + /** Inbound direction. */ Inbound = "inbound", - /** Outbound */ + /** Outbound direction. */ Outbound = "outbound", } @@ -2106,32 +2127,32 @@ export enum KnownDirection { * {@link KnownDirection} can be used interchangeably with Direction, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **inbound** \ - * **outbound** + * **inbound**: Inbound direction. \ + * **outbound**: Outbound direction. */ export type Direction = string; /** Known values of {@link ManagedResourceProvisioningState} that the service accepts. */ export enum KnownManagedResourceProvisioningState { - /** None */ + /** The resource does not have a provisioning state. */ None = "None", - /** Creating */ + /** The resource is being created. */ Creating = "Creating", - /** Created */ + /** The resource is created. */ Created = "Created", - /** Updating */ + /** The resource is being updated. */ Updating = "Updating", - /** Succeeded */ + /** The resource provisioning has succeeded. */ Succeeded = "Succeeded", - /** Failed */ + /** The resource provisioning has failed. */ Failed = "Failed", - /** Canceled */ + /** The resource provisioning has been canceled. */ Canceled = "Canceled", - /** Deleting */ + /** The resource is being deleted. */ Deleting = "Deleting", - /** Deleted */ + /** The resource has been deleted. */ Deleted = "Deleted", - /** Other */ + /** The resource provisioning state is a state other than the previously specified states. */ Other = "Other", } @@ -2140,16 +2161,16 @@ export enum KnownManagedResourceProvisioningState { * {@link KnownManagedResourceProvisioningState} can be used interchangeably with ManagedResourceProvisioningState, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **None** \ - * **Creating** \ - * **Created** \ - * **Updating** \ - * **Succeeded** \ - * **Failed** \ - * **Canceled** \ - * **Deleting** \ - * **Deleted** \ - * **Other** + * **None**: The resource does not have a provisioning state. \ + * **Creating**: The resource is being created. \ + * **Created**: The resource is created. \ + * **Updating**: The resource is being updated. \ + * **Succeeded**: The resource provisioning has succeeded. \ + * **Failed**: The resource provisioning has failed. \ + * **Canceled**: The resource provisioning has been canceled. \ + * **Deleting**: The resource is being deleted. \ + * **Deleted**: The resource has been deleted. \ + * **Other**: The resource provisioning state is a state other than the previously specified states. */ export type ManagedResourceProvisioningState = string; @@ -2215,9 +2236,9 @@ export type ManagedClusterAddOnFeature = string; /** Known values of {@link PrivateEndpointNetworkPolicies} that the service accepts. */ export enum KnownPrivateEndpointNetworkPolicies { - /** Enabled */ + /** Enable apply network policies on private end point in the subnet. */ Enabled = "enabled", - /** Disabled */ + /** Disable apply network policies on private end point in the subnet. */ Disabled = "disabled", } @@ -2226,16 +2247,16 @@ export enum KnownPrivateEndpointNetworkPolicies { * {@link KnownPrivateEndpointNetworkPolicies} can be used interchangeably with PrivateEndpointNetworkPolicies, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **enabled** \ - * **disabled** + * **enabled**: Enable apply network policies on private end point in the subnet. \ + * **disabled**: Disable apply network policies on private end point in the subnet. */ export type PrivateEndpointNetworkPolicies = string; /** Known values of {@link PrivateLinkServiceNetworkPolicies} that the service accepts. */ export enum KnownPrivateLinkServiceNetworkPolicies { - /** Enabled */ + /** Enable apply network policies on private link service in the subnet. */ Enabled = "enabled", - /** Disabled */ + /** Disable apply network policies on private link service in the subnet. */ Disabled = "disabled", } @@ -2244,8 +2265,8 @@ export enum KnownPrivateLinkServiceNetworkPolicies { * {@link KnownPrivateLinkServiceNetworkPolicies} can be used interchangeably with PrivateLinkServiceNetworkPolicies, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **enabled** \ - * **disabled** + * **enabled**: Enable apply network policies on private link service in the subnet. \ + * **disabled**: Disable apply network policies on private link service in the subnet. */ export type PrivateLinkServiceNetworkPolicies = string; @@ -2265,79 +2286,370 @@ export enum KnownZonalUpdateMode { * **Standard**: The cluster will use 5 upgrade domains for Cross Az Node types. \ * **Fast**: The cluster will use a maximum of 3 upgrade domains per zone instead of 5 for Cross Az Node types for faster deployments. */ -export type ZonalUpdateMode = string; +export type ZonalUpdateMode = string; + +/** Known values of {@link AutoGeneratedDomainNameLabelScope} that the service accepts. */ +export enum KnownAutoGeneratedDomainNameLabelScope { + /** TenantReuse allows for the same hash to be created if the resource is created in the same Tenant with the same resource name. */ + TenantReuse = "TenantReuse", + /** SubscriptionReuse allows for the same hash to be created if the resource is created in the same Subscription with the same resource name. */ + SubscriptionReuse = "SubscriptionReuse", + /** ResourceGroupReuse allows for the same hash to be created if the resource is created in the same Resource Group with the same resource name. */ + ResourceGroupReuse = "ResourceGroupReuse", + /** NoReuse will create a new hash regardless of the Subscription, Resource Group, Tenant and Resource name. */ + NoReuse = "NoReuse", +} + +/** + * Defines values for AutoGeneratedDomainNameLabelScope. \ + * {@link KnownAutoGeneratedDomainNameLabelScope} can be used interchangeably with AutoGeneratedDomainNameLabelScope, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **TenantReuse**: TenantReuse allows for the same hash to be created if the resource is created in the same Tenant with the same resource name. \ + * **SubscriptionReuse**: SubscriptionReuse allows for the same hash to be created if the resource is created in the same Subscription with the same resource name. \ + * **ResourceGroupReuse**: ResourceGroupReuse allows for the same hash to be created if the resource is created in the same Resource Group with the same resource name. \ + * **NoReuse**: NoReuse will create a new hash regardless of the Subscription, Resource Group, Tenant and Resource name. + */ +export type AutoGeneratedDomainNameLabelScope = string; + +/** Known values of {@link SkuName} that the service accepts. */ +export enum KnownSkuName { + /** Basic requires a minimum of 3 nodes and allows only 1 node type. */ + Basic = "Basic", + /** Requires a minimum of 5 nodes and allows 1 or more node type. */ + Standard = "Standard", +} + +/** + * Defines values for SkuName. \ + * {@link KnownSkuName} can be used interchangeably with SkuName, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Basic**: Basic requires a minimum of 3 nodes and allows only 1 node type. \ + * **Standard**: Requires a minimum of 5 nodes and allows 1 or more node type. + */ +export type SkuName = 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 FailureAction} that the service accepts. */ +export enum KnownFailureAction { + /** Indicates that a rollback of the upgrade will be performed by Service Fabric if the upgrade fails. */ + Rollback = "Rollback", + /** Indicates that a manual repair will need to be performed by the administrator if the upgrade fails. Service Fabric will not proceed to the next upgrade domain automatically. */ + Manual = "Manual", +} + +/** + * Defines values for FailureAction. \ + * {@link KnownFailureAction} can be used interchangeably with FailureAction, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Rollback**: Indicates that a rollback of the upgrade will be performed by Service Fabric if the upgrade fails. \ + * **Manual**: Indicates that a manual repair will need to be performed by the administrator if the upgrade fails. Service Fabric will not proceed to the next upgrade domain automatically. + */ +export type FailureAction = string; + +/** Known values of {@link RollingUpgradeMode} that the service accepts. */ +export enum KnownRollingUpgradeMode { + /** The upgrade will stop after completing each upgrade domain and automatically monitor health before proceeding. The value is 0. */ + Monitored = "Monitored", + /** The upgrade will proceed automatically without performing any health monitoring. The value is 1. */ + UnmonitoredAuto = "UnmonitoredAuto", +} + +/** + * Defines values for RollingUpgradeMode. \ + * {@link KnownRollingUpgradeMode} can be used interchangeably with RollingUpgradeMode, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Monitored**: The upgrade will stop after completing each upgrade domain and automatically monitor health before proceeding. The value is 0. \ + * **UnmonitoredAuto**: The upgrade will proceed automatically without performing any health monitoring. The value is 1. + */ +export type RollingUpgradeMode = string; + +/** Known values of {@link ServiceKind} that the service accepts. */ +export enum KnownServiceKind { + /** Does not use Service Fabric to make its state highly available or reliable. The value is 0. */ + Stateless = "Stateless", + /** Uses Service Fabric to make its state or part of its state highly available and reliable. The value is 1. */ + Stateful = "Stateful", +} + +/** + * Defines values for ServiceKind. \ + * {@link KnownServiceKind} can be used interchangeably with ServiceKind, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Stateless**: Does not use Service Fabric to make its state highly available or reliable. The value is 0. \ + * **Stateful**: Uses Service Fabric to make its state or part of its state highly available and reliable. The value is 1. + */ +export type ServiceKind = string; + +/** Known values of {@link PartitionScheme} that the service accepts. */ +export enum KnownPartitionScheme { + /** Indicates that the partition is based on string names, and is a SingletonPartitionScheme object, The value is 0. */ + Singleton = "Singleton", + /** Indicates that the partition is based on Int64 key ranges, and is a UniformInt64RangePartitionScheme object. The value is 1. */ + UniformInt64Range = "UniformInt64Range", + /** Indicates that the partition is based on string names, and is a NamedPartitionScheme object. The value is 2. */ + Named = "Named", +} + +/** + * Defines values for PartitionScheme. \ + * {@link KnownPartitionScheme} can be used interchangeably with PartitionScheme, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Singleton**: Indicates that the partition is based on string names, and is a SingletonPartitionScheme object, The value is 0. \ + * **UniformInt64Range**: Indicates that the partition is based on Int64 key ranges, and is a UniformInt64RangePartitionScheme object. The value is 1. \ + * **Named**: Indicates that the partition is based on string names, and is a NamedPartitionScheme object. The value is 2. + */ +export type PartitionScheme = string; + +/** Known values of {@link ServicePackageActivationMode} that the service accepts. */ +export enum KnownServicePackageActivationMode { + /** Indicates the application package activation mode will use shared process. */ + SharedProcess = "SharedProcess", + /** Indicates the application package activation mode will use exclusive process. */ + ExclusiveProcess = "ExclusiveProcess", +} + +/** + * Defines values for ServicePackageActivationMode. \ + * {@link KnownServicePackageActivationMode} can be used interchangeably with ServicePackageActivationMode, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **SharedProcess**: Indicates the application package activation mode will use shared process. \ + * **ExclusiveProcess**: Indicates the application package activation mode will use exclusive process. + */ +export type ServicePackageActivationMode = string; + +/** Known values of {@link ServiceCorrelationScheme} that the service accepts. */ +export enum KnownServiceCorrelationScheme { + /** Aligned affinity ensures that the primaries of the partitions of the affinitized services are collocated on the same nodes. This is the default and is the same as selecting the Affinity scheme. The value is 0. */ + AlignedAffinity = "AlignedAffinity", + /** Non-Aligned affinity guarantees that all replicas of each service will be placed on the same nodes. Unlike Aligned Affinity, this does not guarantee that replicas of particular role will be collocated. The value is 1. */ + NonAlignedAffinity = "NonAlignedAffinity", +} + +/** + * Defines values for ServiceCorrelationScheme. \ + * {@link KnownServiceCorrelationScheme} can be used interchangeably with ServiceCorrelationScheme, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **AlignedAffinity**: Aligned affinity ensures that the primaries of the partitions of the affinitized services are collocated on the same nodes. This is the default and is the same as selecting the Affinity scheme. The value is 0. \ + * **NonAlignedAffinity**: Non-Aligned affinity guarantees that all replicas of each service will be placed on the same nodes. Unlike Aligned Affinity, this does not guarantee that replicas of particular role will be collocated. The value is 1. + */ +export type ServiceCorrelationScheme = string; + +/** Known values of {@link ServiceLoadMetricWeight} that the service accepts. */ +export enum KnownServiceLoadMetricWeight { + /** Disables resource balancing for this metric. This value is zero. */ + Zero = "Zero", + /** Specifies the metric weight of the service load as Low. The value is 1. */ + Low = "Low", + /** Specifies the metric weight of the service load as Medium. The value is 2. */ + Medium = "Medium", + /** Specifies the metric weight of the service load as High. The value is 3. */ + High = "High", +} + +/** + * Defines values for ServiceLoadMetricWeight. \ + * {@link KnownServiceLoadMetricWeight} can be used interchangeably with ServiceLoadMetricWeight, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Zero**: Disables resource balancing for this metric. This value is zero. \ + * **Low**: Specifies the metric weight of the service load as Low. The value is 1. \ + * **Medium**: Specifies the metric weight of the service load as Medium. The value is 2. \ + * **High**: Specifies the metric weight of the service load as High. The value is 3. + */ +export type ServiceLoadMetricWeight = string; + +/** Known values of {@link ServicePlacementPolicyType} that the service accepts. */ +export enum KnownServicePlacementPolicyType { + /** Indicates that the ServicePlacementPolicyDescription is of type ServicePlacementInvalidDomainPolicyDescription, which indicates that a particular fault or upgrade domain cannot be used for placement of this service. The value is 0. */ + InvalidDomain = "InvalidDomain", + /** Indicates that the ServicePlacementPolicyDescription is of type ServicePlacementRequireDomainDistributionPolicyDescription indicating that the replicas of the service must be placed in a specific domain. The value is 1. */ + RequiredDomain = "RequiredDomain", + /** Indicates that the ServicePlacementPolicyDescription is of type ServicePlacementPreferPrimaryDomainPolicyDescription, which indicates that if possible the Primary replica for the partitions of the service should be located in a particular domain as an optimization. The value is 2. */ + PreferredPrimaryDomain = "PreferredPrimaryDomain", + /** Indicates that the ServicePlacementPolicyDescription is of type ServicePlacementRequireDomainDistributionPolicyDescription, indicating that the system will disallow placement of any two replicas from the same partition in the same domain at any time. The value is 3. */ + RequiredDomainDistribution = "RequiredDomainDistribution", + /** Indicates that the ServicePlacementPolicyDescription is of type ServicePlacementNonPartiallyPlaceServicePolicyDescription, which indicates that if possible all replicas of a particular partition of the service should be placed atomically. The value is 4. */ + NonPartiallyPlaceService = "NonPartiallyPlaceService", +} + +/** + * Defines values for ServicePlacementPolicyType. \ + * {@link KnownServicePlacementPolicyType} can be used interchangeably with ServicePlacementPolicyType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **InvalidDomain**: Indicates that the ServicePlacementPolicyDescription is of type ServicePlacementInvalidDomainPolicyDescription, which indicates that a particular fault or upgrade domain cannot be used for placement of this service. The value is 0. \ + * **RequiredDomain**: Indicates that the ServicePlacementPolicyDescription is of type ServicePlacementRequireDomainDistributionPolicyDescription indicating that the replicas of the service must be placed in a specific domain. The value is 1. \ + * **PreferredPrimaryDomain**: Indicates that the ServicePlacementPolicyDescription is of type ServicePlacementPreferPrimaryDomainPolicyDescription, which indicates that if possible the Primary replica for the partitions of the service should be located in a particular domain as an optimization. The value is 2. \ + * **RequiredDomainDistribution**: Indicates that the ServicePlacementPolicyDescription is of type ServicePlacementRequireDomainDistributionPolicyDescription, indicating that the system will disallow placement of any two replicas from the same partition in the same domain at any time. The value is 3. \ + * **NonPartiallyPlaceService**: Indicates that the ServicePlacementPolicyDescription is of type ServicePlacementNonPartiallyPlaceServicePolicyDescription, which indicates that if possible all replicas of a particular partition of the service should be placed atomically. The value is 4. + */ +export type ServicePlacementPolicyType = string; + +/** Known values of {@link MoveCost} that the service accepts. */ +export enum KnownMoveCost { + /** Zero move cost. This value is zero. */ + Zero = "Zero", + /** Specifies the move cost of the service as Low. The value is 1. */ + Low = "Low", + /** Specifies the move cost of the service as Medium. The value is 2. */ + Medium = "Medium", + /** Specifies the move cost of the service as High. The value is 3. */ + High = "High", +} + +/** + * Defines values for MoveCost. \ + * {@link KnownMoveCost} can be used interchangeably with MoveCost, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Zero**: Zero move cost. This value is zero. \ + * **Low**: Specifies the move cost of the service as Low. The value is 1. \ + * **Medium**: Specifies the move cost of the service as Medium. The value is 2. \ + * **High**: Specifies the move cost of the service as High. The value is 3. + */ +export type MoveCost = string; + +/** Known values of {@link ServiceScalingMechanismKind} that the service accepts. */ +export enum KnownServiceScalingMechanismKind { + /** Represents a scaling mechanism for adding or removing instances of stateless service partition. The value is 0. */ + ScalePartitionInstanceCount = "ScalePartitionInstanceCount", + /** Represents a scaling mechanism for adding or removing named partitions of a stateless service. The value is 1. */ + AddRemoveIncrementalNamedPartition = "AddRemoveIncrementalNamedPartition", +} + +/** + * Defines values for ServiceScalingMechanismKind. \ + * {@link KnownServiceScalingMechanismKind} can be used interchangeably with ServiceScalingMechanismKind, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **ScalePartitionInstanceCount**: Represents a scaling mechanism for adding or removing instances of stateless service partition. The value is 0. \ + * **AddRemoveIncrementalNamedPartition**: Represents a scaling mechanism for adding or removing named partitions of a stateless service. The value is 1. + */ +export type ServiceScalingMechanismKind = string; -/** Known values of {@link AutoGeneratedDomainNameLabelScope} that the service accepts. */ -export enum KnownAutoGeneratedDomainNameLabelScope { - /** TenantReuse allows for the same hash to be created if the resource is created in the same Tenant with the same resource name. */ - TenantReuse = "TenantReuse", - /** SubscriptionReuse allows for the same hash to be created if the resource is created in the same Subscription with the same resource name. */ - SubscriptionReuse = "SubscriptionReuse", - /** ResourceGroupReuse allows for the same hash to be created if the resource is created in the same Resource Group with the same resource name. */ - ResourceGroupReuse = "ResourceGroupReuse", - /** NoReuse will create a new hash regardless of the Subscription, Resource Group, Tenant and Resource name. */ - NoReuse = "NoReuse", +/** Known values of {@link ServiceScalingTriggerKind} that the service accepts. */ +export enum KnownServiceScalingTriggerKind { + /** Represents a scaling trigger related to an average load of a metric\/resource of a partition. The value is 0. */ + AveragePartitionLoadTrigger = "AveragePartitionLoadTrigger", + /** Represents a scaling policy related to an average load of a metric\/resource of a service. The value is 1. */ + AverageServiceLoadTrigger = "AverageServiceLoadTrigger", } /** - * Defines values for AutoGeneratedDomainNameLabelScope. \ - * {@link KnownAutoGeneratedDomainNameLabelScope} can be used interchangeably with AutoGeneratedDomainNameLabelScope, + * Defines values for ServiceScalingTriggerKind. \ + * {@link KnownServiceScalingTriggerKind} can be used interchangeably with ServiceScalingTriggerKind, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **TenantReuse**: TenantReuse allows for the same hash to be created if the resource is created in the same Tenant with the same resource name. \ - * **SubscriptionReuse**: SubscriptionReuse allows for the same hash to be created if the resource is created in the same Subscription with the same resource name. \ - * **ResourceGroupReuse**: ResourceGroupReuse allows for the same hash to be created if the resource is created in the same Resource Group with the same resource name. \ - * **NoReuse**: NoReuse will create a new hash regardless of the Subscription, Resource Group, Tenant and Resource name. + * **AveragePartitionLoadTrigger**: Represents a scaling trigger related to an average load of a metric\/resource of a partition. The value is 0. \ + * **AverageServiceLoadTrigger**: Represents a scaling policy related to an average load of a metric\/resource of a service. The value is 1. */ -export type AutoGeneratedDomainNameLabelScope = string; +export type ServiceScalingTriggerKind = string; -/** Known values of {@link SkuName} that the service accepts. */ -export enum KnownSkuName { - /** Basic requires a minimum of 3 nodes and allows only 1 node type. */ - Basic = "Basic", - /** Requires a minimum of 5 nodes and allows 1 or more node type. */ - Standard = "Standard", +/** Known values of {@link FaultSimulationStatus} that the service accepts. */ +export enum KnownFaultSimulationStatus { + /** Indicates the fault simulation is starting. The simulation will have this status while the start operation is in progress. */ + Starting = "Starting", + /** Indicates the fault simulation is active. The simulation will have this status after the start operation has completed successfully. */ + Active = "Active", + /** Indicates the fault simulation is stopping. The simulation will have this status while the stop operation is in progress. */ + Stopping = "Stopping", + /** Indicates the fault simulation is done. The simulation will have this status after the stop operation has completed successfully. */ + Done = "Done", + /** Indicates the fault simulation has failed on start. The simulation will have this status after the start operation fails. */ + StartFailed = "StartFailed", + /** Indicates the fault simulation has failed on stop. The simulation will have this status after the stop operation fails. */ + StopFailed = "StopFailed", } /** - * Defines values for SkuName. \ - * {@link KnownSkuName} can be used interchangeably with SkuName, + * Defines values for FaultSimulationStatus. \ + * {@link KnownFaultSimulationStatus} can be used interchangeably with FaultSimulationStatus, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Basic**: Basic requires a minimum of 3 nodes and allows only 1 node type. \ - * **Standard**: Requires a minimum of 5 nodes and allows 1 or more node type. + * **Starting**: Indicates the fault simulation is starting. The simulation will have this status while the start operation is in progress. \ + * **Active**: Indicates the fault simulation is active. The simulation will have this status after the start operation has completed successfully. \ + * **Stopping**: Indicates the fault simulation is stopping. The simulation will have this status while the stop operation is in progress. \ + * **Done**: Indicates the fault simulation is done. The simulation will have this status after the stop operation has completed successfully. \ + * **StartFailed**: Indicates the fault simulation has failed on start. The simulation will have this status after the start operation fails. \ + * **StopFailed**: Indicates the fault simulation has failed on stop. The simulation will have this status after the stop operation fails. */ -export type SkuName = string; +export type FaultSimulationStatus = string; -/** Known values of {@link OsType} that the service accepts. */ -export enum KnownOsType { - /** Indicates os is Windows. */ - Windows = "Windows", +/** Known values of {@link SfmcOperationStatus} that the service accepts. */ +export enum KnownSfmcOperationStatus { + /** Operation created. */ + Created = "Created", + /** Operation started. */ + Started = "Started", + /** Operation succeeded. */ + Succeeded = "Succeeded", + /** Operation failed. */ + Failed = "Failed", + /** Operation aborted. */ + Aborted = "Aborted", + /** Operation canceled. */ + Canceled = "Canceled", } /** - * Defines values for OsType. \ - * {@link KnownOsType} can be used interchangeably with OsType, + * Defines values for SfmcOperationStatus. \ + * {@link KnownSfmcOperationStatus} can be used interchangeably with SfmcOperationStatus, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Windows**: Indicates os is Windows. + * **Created**: Operation created. \ + * **Started**: Operation started. \ + * **Succeeded**: Operation succeeded. \ + * **Failed**: Operation failed. \ + * **Aborted**: Operation aborted. \ + * **Canceled**: Operation canceled. */ -export type OsType = string; +export type SfmcOperationStatus = string; -/** Known values of {@link ManagedClusterVersionEnvironment} that the service accepts. */ -export enum KnownManagedClusterVersionEnvironment { - /** Windows. */ - Windows = "Windows", +/** Known values of {@link FaultKind} that the service accepts. */ +export enum KnownFaultKind { + /** Simulates an availability zone down. */ + Zone = "Zone", } /** - * Defines values for ManagedClusterVersionEnvironment. \ - * {@link KnownManagedClusterVersionEnvironment} can be used interchangeably with ManagedClusterVersionEnvironment, + * Defines values for FaultKind. \ + * {@link KnownFaultKind} can be used interchangeably with FaultKind, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Windows**: Windows. + * **Zone**: Simulates an availability zone down. */ -export type ManagedClusterVersionEnvironment = string; +export type FaultKind = string; /** Known values of {@link DiskType} that the service accepts. */ export enum KnownDiskType { @@ -2347,6 +2659,12 @@ export enum KnownDiskType { StandardSSDLRS = "StandardSSD_LRS", /** Premium SSD locally redundant storage. Best for production and performance sensitive workloads. */ PremiumLRS = "Premium_LRS", + /** Premium SSD V2 locally redundant storage. Best for production and performance sensitive workloads that consistently require low latency and high IOPS and throughput. */ + PremiumV2LRS = "PremiumV2_LRS", + /** Standard SSD zone redundant storage. Best for web servers, lightly used enterprise applications and dev\/test that need storage resiliency against zone failures. */ + StandardSSDZRS = "StandardSSD_ZRS", + /** Premium SSD zone redundant storage. Best for production workloads that need storage resiliency against zone failures. */ + PremiumZRS = "Premium_ZRS", } /** @@ -2356,7 +2674,10 @@ export enum KnownDiskType { * ### Known values supported by the service * **Standard_LRS**: Standard HDD locally redundant storage. Best for backup, non-critical, and infrequent access. \ * **StandardSSD_LRS**: Standard SSD locally redundant storage. Best for web servers, lightly used enterprise applications and dev\/test. \ - * **Premium_LRS**: Premium SSD locally redundant storage. Best for production and performance sensitive workloads. + * **Premium_LRS**: Premium SSD locally redundant storage. Best for production and performance sensitive workloads. \ + * **PremiumV2_LRS**: Premium SSD V2 locally redundant storage. Best for production and performance sensitive workloads that consistently require low latency and high IOPS and throughput. \ + * **StandardSSD_ZRS**: Standard SSD zone redundant storage. Best for web servers, lightly used enterprise applications and dev\/test that need storage resiliency against zone failures. \ + * **Premium_ZRS**: Premium SSD zone redundant storage. Best for production workloads that need storage resiliency against zone failures. */ export type DiskType = string; @@ -2449,9 +2770,9 @@ export type SecurityType = string; /** Known values of {@link PrivateIPAddressVersion} that the service accepts. */ export enum KnownPrivateIPAddressVersion { - /** IPv4 */ + /** The IP configuration's private IP is IPv4. */ IPv4 = "IPv4", - /** IPv6 */ + /** The IP configuration's private IP is IPv6. */ IPv6 = "IPv6", } @@ -2460,16 +2781,16 @@ export enum KnownPrivateIPAddressVersion { * {@link KnownPrivateIPAddressVersion} can be used interchangeably with PrivateIPAddressVersion, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **IPv4** \ - * **IPv6** + * **IPv4**: The IP configuration's private IP is IPv4. \ + * **IPv6**: The IP configuration's private IP is IPv6. */ export type PrivateIPAddressVersion = string; /** Known values of {@link PublicIPAddressVersion} that the service accepts. */ export enum KnownPublicIPAddressVersion { - /** IPv4 */ + /** The IP configuration's public IP is IPv4. */ IPv4 = "IPv4", - /** IPv6 */ + /** The IP configuration's public IP is IPv6. */ IPv6 = "IPv6", } @@ -2478,8 +2799,8 @@ export enum KnownPublicIPAddressVersion { * {@link KnownPublicIPAddressVersion} can be used interchangeably with PublicIPAddressVersion, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **IPv4** \ - * **IPv6** + * **IPv4**: The IP configuration's public IP is IPv4. \ + * **IPv6**: The IP configuration's public IP is IPv6. */ export type PublicIPAddressVersion = string; @@ -2521,27 +2842,6 @@ export enum KnownNodeTypeSkuScaleType { * **Automatic**: Automatic scale is allowed. */ export type NodeTypeSkuScaleType = string; - -/** Known values of {@link UpgradeMode} that the service accepts. */ -export enum KnownUpgradeMode { - /** The upgrade will proceed automatically without performing any health monitoring. The value is 0 */ - UnmonitoredAuto = "UnmonitoredAuto", - /** The upgrade will stop after completing each upgrade domain, giving the opportunity to manually monitor health before proceeding. The value is 1 */ - UnmonitoredManual = "UnmonitoredManual", - /** The upgrade will stop after completing each upgrade domain and automatically monitor health before proceeding. The value is 2 */ - Monitored = "Monitored", -} - -/** - * Defines values for UpgradeMode. \ - * {@link KnownUpgradeMode} can be used interchangeably with UpgradeMode, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **UnmonitoredAuto**: The upgrade will proceed automatically without performing any health monitoring. The value is 0 \ - * **UnmonitoredManual**: The upgrade will stop after completing each upgrade domain, giving the opportunity to manually monitor health before proceeding. The value is 1 \ - * **Monitored**: The upgrade will stop after completing each upgrade domain and automatically monitor health before proceeding. The value is 2 - */ -export type UpgradeMode = string; /** Defines values for ManagedIdentityType. */ export type ManagedIdentityType = | "None" @@ -2550,58 +2850,110 @@ export type ManagedIdentityType = | "SystemAssigned, UserAssigned"; /** Optional parameters. */ -export interface ApplicationTypesGetOptionalParams +export interface OperationsListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ApplicationTypesGetResponse = ApplicationTypeResource; +/** Contains response data for the list operation. */ +export type OperationsListResponse = OperationListResult; /** Optional parameters. */ -export interface ApplicationTypesCreateOrUpdateOptionalParams +export interface OperationsListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type ApplicationTypesCreateOrUpdateResponse = ApplicationTypeResource; +/** Contains response data for the listNext operation. */ +export type OperationsListNextResponse = OperationListResult; /** Optional parameters. */ -export interface ApplicationTypesUpdateOptionalParams +export interface ManagedClusterVersionListByEnvironmentOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type ApplicationTypesUpdateResponse = ApplicationTypeResource; +/** Contains response data for the listByEnvironment operation. */ +export type ManagedClusterVersionListByEnvironmentResponse = + ManagedClusterCodeVersionResult[]; /** Optional parameters. */ -export interface ApplicationTypesDeleteOptionalParams - 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; -} +export interface ManagedClusterVersionGetByEnvironmentOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getByEnvironment operation. */ +export type ManagedClusterVersionGetByEnvironmentResponse = + ManagedClusterCodeVersionResult; /** Optional parameters. */ -export interface ApplicationTypesListOptionalParams +export interface ManagedClusterVersionListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type ApplicationTypesListResponse = ApplicationTypeResourceList; +export type ManagedClusterVersionListResponse = + ManagedClusterCodeVersionResult[]; /** Optional parameters. */ -export interface ApplicationTypesListNextOptionalParams +export interface ManagedClusterVersionGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ManagedClusterVersionGetResponse = ManagedClusterCodeVersionResult; + +/** Optional parameters. */ +export interface OperationResultsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type OperationResultsGetResponse = OperationResultsGetHeaders; + +/** Optional parameters. */ +export interface OperationStatusGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type OperationStatusGetResponse = LongRunningOperationResult; + +/** Optional parameters. */ +export interface ManagedUnsupportedVMSizesListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type ManagedUnsupportedVMSizesListResponse = ManagedVMSizesResult; + +/** Optional parameters. */ +export interface ManagedUnsupportedVMSizesGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ManagedUnsupportedVMSizesGetResponse = ManagedVMSize; + +/** Optional parameters. */ +export interface ManagedUnsupportedVMSizesListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type ApplicationTypesListNextResponse = ApplicationTypeResourceList; +export type ManagedUnsupportedVMSizesListNextResponse = ManagedVMSizesResult; /** Optional parameters. */ -export interface ApplicationTypeVersionsGetOptionalParams +export interface ManagedClustersListBySubscriptionOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listBySubscription operation. */ +export type ManagedClustersListBySubscriptionResponse = + ManagedClusterListResult; + +/** Optional parameters. */ +export interface ManagedClustersListByResourceGroupOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByResourceGroup operation. */ +export type ManagedClustersListByResourceGroupResponse = + ManagedClusterListResult; + +/** Optional parameters. */ +export interface ManagedClustersGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ApplicationTypeVersionsGetResponse = ApplicationTypeVersionResource; +export type ManagedClustersGetResponse = ManagedCluster; /** Optional parameters. */ -export interface ApplicationTypeVersionsCreateOrUpdateOptionalParams +export interface ManagedClustersCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -2610,19 +2962,17 @@ export interface ApplicationTypeVersionsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type ApplicationTypeVersionsCreateOrUpdateResponse = - ApplicationTypeVersionResource; +export type ManagedClustersCreateOrUpdateResponse = ManagedCluster; /** Optional parameters. */ -export interface ApplicationTypeVersionsUpdateOptionalParams +export interface ManagedClustersUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the update operation. */ -export type ApplicationTypeVersionsUpdateResponse = - ApplicationTypeVersionResource; +export type ManagedClustersUpdateResponse = ManagedCluster; /** Optional parameters. */ -export interface ApplicationTypeVersionsDeleteOptionalParams +export interface ManagedClustersDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -2630,24 +2980,26 @@ export interface ApplicationTypeVersionsDeleteOptionalParams resumeFrom?: string; } +/** Contains response data for the delete operation. */ +export type ManagedClustersDeleteResponse = ManagedClustersDeleteHeaders; + /** Optional parameters. */ -export interface ApplicationTypeVersionsListByApplicationTypesOptionalParams +export interface ManagedClustersGetFaultSimulationOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByApplicationTypes operation. */ -export type ApplicationTypeVersionsListByApplicationTypesResponse = - ApplicationTypeVersionResourceList; +/** Contains response data for the getFaultSimulation operation. */ +export type ManagedClustersGetFaultSimulationResponse = FaultSimulation; /** Optional parameters. */ -export interface ApplicationTypeVersionsListByApplicationTypesNextOptionalParams +export interface ManagedClustersListFaultSimulationOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByApplicationTypesNext operation. */ -export type ApplicationTypeVersionsListByApplicationTypesNextResponse = - ApplicationTypeVersionResourceList; +/** Contains response data for the listFaultSimulation operation. */ +export type ManagedClustersListFaultSimulationResponse = + FaultSimulationListResult; /** Optional parameters. */ -export interface ApplicationsReadUpgradeOptionalParams +export interface ManagedClustersStartFaultSimulationOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -2655,11 +3007,12 @@ export interface ApplicationsReadUpgradeOptionalParams resumeFrom?: string; } -/** Contains response data for the readUpgrade operation. */ -export type ApplicationsReadUpgradeResponse = ApplicationsReadUpgradeHeaders; +/** Contains response data for the startFaultSimulation operation. */ +export type ManagedClustersStartFaultSimulationResponse = + ManagedClustersStartFaultSimulationHeaders; /** Optional parameters. */ -export interface ApplicationsStartRollbackOptionalParams +export interface ManagedClustersStopFaultSimulationOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -2667,12 +3020,64 @@ export interface ApplicationsStartRollbackOptionalParams resumeFrom?: string; } -/** Contains response data for the startRollback operation. */ -export type ApplicationsStartRollbackResponse = - ApplicationsStartRollbackHeaders; +/** Contains response data for the stopFaultSimulation operation. */ +export type ManagedClustersStopFaultSimulationResponse = + ManagedClustersStopFaultSimulationHeaders; /** Optional parameters. */ -export interface ApplicationsResumeUpgradeOptionalParams +export interface ManagedClustersListBySubscriptionNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listBySubscriptionNext operation. */ +export type ManagedClustersListBySubscriptionNextResponse = + ManagedClusterListResult; + +/** Optional parameters. */ +export interface ManagedClustersListByResourceGroupNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByResourceGroupNext operation. */ +export type ManagedClustersListByResourceGroupNextResponse = + ManagedClusterListResult; + +/** Optional parameters. */ +export interface ManagedClustersListFaultSimulationNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listFaultSimulationNext operation. */ +export type ManagedClustersListFaultSimulationNextResponse = + FaultSimulationListResult; + +/** Optional parameters. */ +export interface ApplicationTypesListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type ApplicationTypesListResponse = ApplicationTypeResourceList; + +/** Optional parameters. */ +export interface ApplicationTypesGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ApplicationTypesGetResponse = ApplicationTypeResource; + +/** Optional parameters. */ +export interface ApplicationTypesCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the createOrUpdate operation. */ +export type ApplicationTypesCreateOrUpdateResponse = ApplicationTypeResource; + +/** Optional parameters. */ +export interface ApplicationTypesUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the update operation. */ +export type ApplicationTypesUpdateResponse = ApplicationTypeResource; + +/** Optional parameters. */ +export interface ApplicationTypesDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -2680,19 +3085,33 @@ export interface ApplicationsResumeUpgradeOptionalParams resumeFrom?: string; } -/** Contains response data for the resumeUpgrade operation. */ -export type ApplicationsResumeUpgradeResponse = - ApplicationsResumeUpgradeHeaders; +/** Contains response data for the delete operation. */ +export type ApplicationTypesDeleteResponse = ApplicationTypesDeleteHeaders; + +/** Optional parameters. */ +export interface ApplicationTypesListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type ApplicationTypesListNextResponse = ApplicationTypeResourceList; + +/** Optional parameters. */ +export interface ApplicationTypeVersionsListByApplicationTypesOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByApplicationTypes operation. */ +export type ApplicationTypeVersionsListByApplicationTypesResponse = + ApplicationTypeVersionResourceList; /** Optional parameters. */ -export interface ApplicationsGetOptionalParams +export interface ApplicationTypeVersionsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ApplicationsGetResponse = ApplicationResource; +export type ApplicationTypeVersionsGetResponse = ApplicationTypeVersionResource; /** Optional parameters. */ -export interface ApplicationsCreateOrUpdateOptionalParams +export interface ApplicationTypeVersionsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -2701,17 +3120,19 @@ export interface ApplicationsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type ApplicationsCreateOrUpdateResponse = ApplicationResource; +export type ApplicationTypeVersionsCreateOrUpdateResponse = + ApplicationTypeVersionResource; /** Optional parameters. */ -export interface ApplicationsUpdateOptionalParams +export interface ApplicationTypeVersionsUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the update operation. */ -export type ApplicationsUpdateResponse = ApplicationResource; +export type ApplicationTypeVersionsUpdateResponse = + ApplicationTypeVersionResource; /** Optional parameters. */ -export interface ApplicationsDeleteOptionalParams +export interface ApplicationTypeVersionsDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -2719,29 +3140,34 @@ export interface ApplicationsDeleteOptionalParams resumeFrom?: string; } +/** Contains response data for the delete operation. */ +export type ApplicationTypeVersionsDeleteResponse = + ApplicationTypeVersionsDeleteHeaders; + /** Optional parameters. */ -export interface ApplicationsListOptionalParams +export interface ApplicationTypeVersionsListByApplicationTypesNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type ApplicationsListResponse = ApplicationResourceList; +/** Contains response data for the listByApplicationTypesNext operation. */ +export type ApplicationTypeVersionsListByApplicationTypesNextResponse = + ApplicationTypeVersionResourceList; /** Optional parameters. */ -export interface ApplicationsListNextOptionalParams +export interface ApplicationsListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type ApplicationsListNextResponse = ApplicationResourceList; +/** Contains response data for the list operation. */ +export type ApplicationsListResponse = ApplicationResourceList; /** Optional parameters. */ -export interface ServicesGetOptionalParams +export interface ApplicationsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ServicesGetResponse = ServiceResource; +export type ApplicationsGetResponse = ApplicationResource; /** Optional parameters. */ -export interface ServicesCreateOrUpdateOptionalParams +export interface ApplicationsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -2750,17 +3176,17 @@ export interface ServicesCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type ServicesCreateOrUpdateResponse = ServiceResource; +export type ApplicationsCreateOrUpdateResponse = ApplicationResource; /** Optional parameters. */ -export interface ServicesUpdateOptionalParams +export interface ApplicationsUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the update operation. */ -export type ServicesUpdateResponse = ServiceResource; +export type ApplicationsUpdateResponse = ApplicationResource; /** Optional parameters. */ -export interface ServicesDeleteOptionalParams +export interface ApplicationsDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -2768,45 +3194,70 @@ export interface ServicesDeleteOptionalParams resumeFrom?: string; } +/** Contains response data for the delete operation. */ +export type ApplicationsDeleteResponse = ApplicationsDeleteHeaders; + /** Optional parameters. */ -export interface ServicesListByApplicationsOptionalParams - extends coreClient.OperationOptions {} +export interface ApplicationsReadUpgradeOptionalParams + 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 listByApplications operation. */ -export type ServicesListByApplicationsResponse = ServiceResourceList; +/** Contains response data for the readUpgrade operation. */ +export type ApplicationsReadUpgradeResponse = ApplicationsReadUpgradeHeaders; /** Optional parameters. */ -export interface ServicesListByApplicationsNextOptionalParams - extends coreClient.OperationOptions {} +export interface ApplicationsResumeUpgradeOptionalParams + 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 listByApplicationsNext operation. */ -export type ServicesListByApplicationsNextResponse = ServiceResourceList; +/** Contains response data for the resumeUpgrade operation. */ +export type ApplicationsResumeUpgradeResponse = + ApplicationsResumeUpgradeHeaders; /** Optional parameters. */ -export interface ManagedClustersListByResourceGroupOptionalParams +export interface ApplicationsStartRollbackOptionalParams + 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 startRollback operation. */ +export type ApplicationsStartRollbackResponse = + ApplicationsStartRollbackHeaders; + +/** Optional parameters. */ +export interface ApplicationsListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroup operation. */ -export type ManagedClustersListByResourceGroupResponse = - ManagedClusterListResult; +/** Contains response data for the listNext operation. */ +export type ApplicationsListNextResponse = ApplicationResourceList; /** Optional parameters. */ -export interface ManagedClustersListBySubscriptionOptionalParams +export interface ServicesListByApplicationsOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listBySubscription operation. */ -export type ManagedClustersListBySubscriptionResponse = - ManagedClusterListResult; +/** Contains response data for the listByApplications operation. */ +export type ServicesListByApplicationsResponse = ServiceResourceList; /** Optional parameters. */ -export interface ManagedClustersGetOptionalParams +export interface ServicesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ManagedClustersGetResponse = ManagedCluster; +export type ServicesGetResponse = ServiceResource; /** Optional parameters. */ -export interface ManagedClustersCreateOrUpdateOptionalParams +export interface ServicesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -2815,17 +3266,17 @@ export interface ManagedClustersCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type ManagedClustersCreateOrUpdateResponse = ManagedCluster; +export type ServicesCreateOrUpdateResponse = ServiceResource; /** Optional parameters. */ -export interface ManagedClustersUpdateOptionalParams +export interface ServicesUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the update operation. */ -export type ManagedClustersUpdateResponse = ManagedCluster; +export type ServicesUpdateResponse = ServiceResource; /** Optional parameters. */ -export interface ManagedClustersDeleteOptionalParams +export interface ServicesDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -2833,29 +3284,20 @@ export interface ManagedClustersDeleteOptionalParams resumeFrom?: string; } -/** Optional parameters. */ -export interface ManagedClustersListByResourceGroupNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByResourceGroupNext operation. */ -export type ManagedClustersListByResourceGroupNextResponse = - ManagedClusterListResult; +/** Contains response data for the delete operation. */ +export type ServicesDeleteResponse = ServicesDeleteHeaders; /** Optional parameters. */ -export interface ManagedClustersListBySubscriptionNextOptionalParams +export interface ServicesListByApplicationsNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listBySubscriptionNext operation. */ -export type ManagedClustersListBySubscriptionNextResponse = - ManagedClusterListResult; +/** Contains response data for the listByApplicationsNext operation. */ +export type ServicesListByApplicationsNextResponse = ServiceResourceList; /** Optional parameters. */ -export interface ManagedAzResiliencyStatusGetOptionalParams +export interface ManagedApplyMaintenanceWindowPostOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ManagedAzResiliencyStatusGetResponse = ManagedAzResiliencyStatus; - /** Optional parameters. */ export interface ManagedMaintenanceWindowStatusGetOptionalParams extends coreClient.OperationOptions {} @@ -2865,98 +3307,102 @@ export type ManagedMaintenanceWindowStatusGetResponse = ManagedMaintenanceWindowStatus; /** Optional parameters. */ -export interface ManagedApplyMaintenanceWindowPostOptionalParams - extends coreClient.OperationOptions {} - -/** Optional parameters. */ -export interface ManagedClusterVersionGetOptionalParams +export interface ManagedAzResiliencyStatusGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ManagedClusterVersionGetResponse = ManagedClusterCodeVersionResult; - -/** Optional parameters. */ -export interface ManagedClusterVersionGetByEnvironmentOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the getByEnvironment operation. */ -export type ManagedClusterVersionGetByEnvironmentResponse = - ManagedClusterCodeVersionResult; - -/** Optional parameters. */ -export interface ManagedClusterVersionListOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the list operation. */ -export type ManagedClusterVersionListResponse = - ManagedClusterCodeVersionResult[]; +export type ManagedAzResiliencyStatusGetResponse = ManagedAzResiliencyStatus; /** Optional parameters. */ -export interface ManagedClusterVersionListByEnvironmentOptionalParams +export interface NodeTypesListByManagedClustersOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByEnvironment operation. */ -export type ManagedClusterVersionListByEnvironmentResponse = - ManagedClusterCodeVersionResult[]; +/** Contains response data for the listByManagedClusters operation. */ +export type NodeTypesListByManagedClustersResponse = NodeTypeListResult; /** Optional parameters. */ -export interface ManagedUnsupportedVMSizesListOptionalParams +export interface NodeTypesGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type ManagedUnsupportedVMSizesListResponse = ManagedVMSizesResult; +/** Contains response data for the get operation. */ +export type NodeTypesGetResponse = NodeType; /** Optional parameters. */ -export interface ManagedUnsupportedVMSizesGetOptionalParams - extends coreClient.OperationOptions {} +export interface NodeTypesCreateOrUpdateOptionalParams + 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 get operation. */ -export type ManagedUnsupportedVMSizesGetResponse = ManagedVMSize; +/** Contains response data for the createOrUpdate operation. */ +export type NodeTypesCreateOrUpdateResponse = NodeType; /** Optional parameters. */ -export interface ManagedUnsupportedVMSizesListNextOptionalParams - extends coreClient.OperationOptions {} +export interface NodeTypesUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} -/** Contains response data for the listNext operation. */ -export type ManagedUnsupportedVMSizesListNextResponse = ManagedVMSizesResult; +/** Contains response data for the update operation. */ +export type NodeTypesUpdateResponse = NodeType; /** Optional parameters. */ -export interface OperationStatusGetOptionalParams - extends coreClient.OperationOptions {} +export interface NodeTypesDeleteOptionalParams + 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 get operation. */ -export type OperationStatusGetResponse = LongRunningOperationResult; +/** Contains response data for the delete operation. */ +export type NodeTypesDeleteResponse = NodeTypesDeleteHeaders; /** Optional parameters. */ -export interface OperationResultsGetOptionalParams - extends coreClient.OperationOptions {} +export interface NodeTypesDeallocateOptionalParams + 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 get operation. */ -export type OperationResultsGetResponse = OperationResultsGetHeaders; +/** Contains response data for the deallocate operation. */ +export type NodeTypesDeallocateResponse = NodeTypesDeallocateHeaders; /** Optional parameters. */ -export interface OperationsListOptionalParams - extends coreClient.OperationOptions {} +export interface NodeTypesDeleteNodeOptionalParams + 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 list operation. */ -export type OperationsListResponse = OperationListResult; +/** Contains response data for the deleteNode operation. */ +export type NodeTypesDeleteNodeResponse = NodeTypesDeleteNodeHeaders; /** Optional parameters. */ -export interface OperationsListNextOptionalParams +export interface NodeTypesGetFaultSimulationOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type OperationsListNextResponse = OperationListResult; +/** Contains response data for the getFaultSimulation operation. */ +export type NodeTypesGetFaultSimulationResponse = FaultSimulation; /** Optional parameters. */ -export interface NodeTypesListByManagedClustersOptionalParams +export interface NodeTypesListFaultSimulationOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByManagedClusters operation. */ -export type NodeTypesListByManagedClustersResponse = NodeTypeListResult; +/** Contains response data for the listFaultSimulation operation. */ +export type NodeTypesListFaultSimulationResponse = FaultSimulationListResult; /** Optional parameters. */ -export interface NodeTypesRestartOptionalParams +export interface NodeTypesRedeployOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -2964,6 +3410,9 @@ export interface NodeTypesRestartOptionalParams resumeFrom?: string; } +/** Contains response data for the redeploy operation. */ +export type NodeTypesRedeployResponse = NodeTypesRedeployHeaders; + /** Optional parameters. */ export interface NodeTypesReimageOptionalParams extends coreClient.OperationOptions { @@ -2973,8 +3422,11 @@ export interface NodeTypesReimageOptionalParams resumeFrom?: string; } +/** Contains response data for the reimage operation. */ +export type NodeTypesReimageResponse = NodeTypesReimageHeaders; + /** Optional parameters. */ -export interface NodeTypesDeleteNodeOptionalParams +export interface NodeTypesRestartOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -2982,15 +3434,11 @@ export interface NodeTypesDeleteNodeOptionalParams resumeFrom?: string; } -/** Optional parameters. */ -export interface NodeTypesGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type NodeTypesGetResponse = NodeType; +/** Contains response data for the restart operation. */ +export type NodeTypesRestartResponse = NodeTypesRestartHeaders; /** Optional parameters. */ -export interface NodeTypesCreateOrUpdateOptionalParams +export interface NodeTypesStartOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -2998,11 +3446,11 @@ export interface NodeTypesCreateOrUpdateOptionalParams resumeFrom?: string; } -/** Contains response data for the createOrUpdate operation. */ -export type NodeTypesCreateOrUpdateResponse = NodeType; +/** Contains response data for the start operation. */ +export type NodeTypesStartResponse = NodeTypesStartHeaders; /** Optional parameters. */ -export interface NodeTypesUpdateOptionalParams +export interface NodeTypesStartFaultSimulationOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -3010,11 +3458,12 @@ export interface NodeTypesUpdateOptionalParams resumeFrom?: string; } -/** Contains response data for the update operation. */ -export type NodeTypesUpdateResponse = NodeType; +/** Contains response data for the startFaultSimulation operation. */ +export type NodeTypesStartFaultSimulationResponse = + NodeTypesStartFaultSimulationHeaders; /** Optional parameters. */ -export interface NodeTypesDeleteOptionalParams +export interface NodeTypesStopFaultSimulationOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -3022,6 +3471,10 @@ export interface NodeTypesDeleteOptionalParams resumeFrom?: string; } +/** Contains response data for the stopFaultSimulation operation. */ +export type NodeTypesStopFaultSimulationResponse = + NodeTypesStopFaultSimulationHeaders; + /** Optional parameters. */ export interface NodeTypesListByManagedClustersNextOptionalParams extends coreClient.OperationOptions {} @@ -3029,6 +3482,14 @@ export interface NodeTypesListByManagedClustersNextOptionalParams /** Contains response data for the listByManagedClustersNext operation. */ export type NodeTypesListByManagedClustersNextResponse = NodeTypeListResult; +/** Optional parameters. */ +export interface NodeTypesListFaultSimulationNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listFaultSimulationNext operation. */ +export type NodeTypesListFaultSimulationNextResponse = + FaultSimulationListResult; + /** Optional parameters. */ export interface NodeTypeSkusListOptionalParams extends coreClient.OperationOptions {} diff --git a/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/models/mappers.ts b/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/models/mappers.ts index df03057f06c7..1948bc0bd755 100644 --- a/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/models/mappers.ts +++ b/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/models/mappers.ts @@ -8,18 +8,40 @@ import * as coreClient from "@azure/core-client"; -export const ProxyResource: coreClient.CompositeMapper = { +export const OperationListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ProxyResource", + className: "OperationListResult", modelProperties: { - id: { - serializedName: "id", + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Operation", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", readOnly: true, type: { name: "String", }, }, + }, + }, +}; + +export const Operation: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Operation", + modelProperties: { name: { serializedName: "name", readOnly: true, @@ -27,239 +49,184 @@ export const ProxyResource: coreClient.CompositeMapper = { name: "String", }, }, - type: { - serializedName: "type", + isDataAction: { + serializedName: "isDataAction", readOnly: true, type: { - name: "String", + name: "Boolean", }, }, - location: { - serializedName: "location", + display: { + serializedName: "display", type: { - name: "String", + name: "Composite", + className: "OperationDisplay", }, }, - tags: { - serializedName: "tags", + origin: { + serializedName: "origin", + readOnly: true, type: { - name: "Dictionary", - value: { type: { name: "String" } }, + name: "String", }, }, - systemData: { - serializedName: "systemData", + actionType: { + serializedName: "actionType", + readOnly: true, type: { - name: "Composite", - className: "SystemData", + name: "String", }, }, }, }, }; -export const SystemData: coreClient.CompositeMapper = { +export const OperationDisplay: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SystemData", + className: "OperationDisplay", modelProperties: { - createdBy: { - serializedName: "createdBy", + provider: { + serializedName: "provider", + readOnly: true, type: { name: "String", }, }, - createdByType: { - serializedName: "createdByType", + resource: { + serializedName: "resource", + readOnly: true, type: { name: "String", }, }, - createdAt: { - serializedName: "createdAt", - type: { - name: "DateTime", - }, - }, - lastModifiedBy: { - serializedName: "lastModifiedBy", + operation: { + serializedName: "operation", + readOnly: true, type: { name: "String", }, }, - lastModifiedByType: { - serializedName: "lastModifiedByType", + description: { + serializedName: "description", + readOnly: true, type: { name: "String", }, }, - lastModifiedAt: { - serializedName: "lastModifiedAt", - type: { - name: "DateTime", - }, - }, }, }, }; -export const ErrorModel: coreClient.CompositeMapper = { +export const ErrorResponse: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ErrorModel", + className: "ErrorResponse", modelProperties: { error: { serializedName: "error", type: { name: "Composite", - className: "ErrorModelError", + className: "ErrorDetail", }, }, }, }, }; -export const ErrorModelError: coreClient.CompositeMapper = { +export const ErrorDetail: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ErrorModelError", + className: "ErrorDetail", modelProperties: { code: { serializedName: "code", + readOnly: true, type: { name: "String", }, }, message: { serializedName: "message", + readOnly: true, type: { name: "String", }, }, - }, - }, -}; - -export const ApplicationTypeUpdateParameters: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ApplicationTypeUpdateParameters", - modelProperties: { - tags: { - serializedName: "tags", + target: { + serializedName: "target", + readOnly: true, type: { - name: "Dictionary", - value: { type: { name: "String" } }, + name: "String", }, }, - }, - }, -}; - -export const ApplicationTypeResourceList: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ApplicationTypeResourceList", - modelProperties: { - value: { - serializedName: "value", + details: { + serializedName: "details", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "ApplicationTypeResource", + className: "ErrorDetail", }, }, }, }, - nextLink: { - serializedName: "nextLink", + additionalInfo: { + serializedName: "additionalInfo", readOnly: true, type: { - name: "String", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ErrorAdditionalInfo", + }, + }, }, }, }, }, }; -export const ApplicationTypeVersionUpdateParameters: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "ApplicationTypeVersionUpdateParameters", - modelProperties: { - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { type: { name: "String" } }, - }, - }, - }, - }, - }; - -export const ApplicationTypeVersionResourceList: coreClient.CompositeMapper = { +export const ErrorAdditionalInfo: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ApplicationTypeVersionResourceList", + className: "ErrorAdditionalInfo", modelProperties: { - value: { - serializedName: "value", + type: { + serializedName: "type", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ApplicationTypeVersionResource", - }, - }, + name: "String", }, }, - nextLink: { - serializedName: "nextLink", + info: { + serializedName: "info", readOnly: true, type: { - name: "String", + name: "Dictionary", + value: { type: { name: "any" } }, }, }, }, }, }; -export const RuntimeResumeApplicationUpgradeParameters: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "RuntimeResumeApplicationUpgradeParameters", - modelProperties: { - upgradeDomainName: { - serializedName: "upgradeDomainName", - type: { - name: "String", - }, - }, - }, - }, - }; - -export const ManagedIdentity: coreClient.CompositeMapper = { +export const ManagedClusterCodeVersionResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedIdentity", + className: "ManagedClusterCodeVersionResult", modelProperties: { - principalId: { - serializedName: "principalId", - readOnly: true, + id: { + serializedName: "id", type: { name: "String", }, }, - tenantId: { - serializedName: "tenantId", - readOnly: true, + name: { + serializedName: "name", type: { name: "String", }, @@ -267,43 +234,23 @@ export const ManagedIdentity: coreClient.CompositeMapper = { type: { serializedName: "type", type: { - name: "Enum", - allowedValues: [ - "None", - "SystemAssigned", - "UserAssigned", - "SystemAssigned, UserAssigned", - ], + name: "String", }, }, - userAssignedIdentities: { - serializedName: "userAssignedIdentities", + clusterCodeVersion: { + serializedName: "properties.clusterCodeVersion", type: { - name: "Dictionary", - value: { - type: { name: "Composite", className: "UserAssignedIdentity" }, - }, + name: "String", }, }, - }, - }, -}; - -export const UserAssignedIdentity: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "UserAssignedIdentity", - modelProperties: { - principalId: { - serializedName: "principalId", - readOnly: true, + supportExpiryUtc: { + serializedName: "properties.supportExpiryUtc", type: { name: "String", }, }, - clientId: { - serializedName: "clientId", - readOnly: true, + osType: { + serializedName: "properties.osType", type: { name: "String", }, @@ -312,207 +259,130 @@ export const UserAssignedIdentity: coreClient.CompositeMapper = { }, }; -export const ApplicationUpgradePolicy: coreClient.CompositeMapper = { +export const LongRunningOperationResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ApplicationUpgradePolicy", + className: "LongRunningOperationResult", modelProperties: { - applicationHealthPolicy: { - serializedName: "applicationHealthPolicy", + name: { + serializedName: "name", type: { - name: "Composite", - className: "ApplicationHealthPolicy", + name: "String", }, }, - forceRestart: { - defaultValue: false, - serializedName: "forceRestart", + startTime: { + serializedName: "startTime", type: { - name: "Boolean", + name: "DateTime", }, }, - rollingUpgradeMonitoringPolicy: { - serializedName: "rollingUpgradeMonitoringPolicy", + endTime: { + serializedName: "endTime", type: { - name: "Composite", - className: "RollingUpgradeMonitoringPolicy", + name: "DateTime", }, }, - instanceCloseDelayDuration: { - serializedName: "instanceCloseDelayDuration", + percentComplete: { + serializedName: "percentComplete", type: { name: "Number", }, }, - upgradeMode: { - serializedName: "upgradeMode", + status: { + serializedName: "status", type: { name: "String", }, }, - upgradeReplicaSetCheckTimeout: { - serializedName: "upgradeReplicaSetCheckTimeout", - type: { - name: "Number", - }, - }, - recreateApplication: { - serializedName: "recreateApplication", + error: { + serializedName: "error", type: { - name: "Boolean", + name: "Composite", + className: "ErrorModelError", }, }, }, }, }; -export const ApplicationHealthPolicy: coreClient.CompositeMapper = { +export const ErrorModelError: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ApplicationHealthPolicy", + className: "ErrorModelError", modelProperties: { - considerWarningAsError: { - serializedName: "considerWarningAsError", - required: true, - type: { - name: "Boolean", - }, - }, - maxPercentUnhealthyDeployedApplications: { - serializedName: "maxPercentUnhealthyDeployedApplications", - required: true, - type: { - name: "Number", - }, - }, - defaultServiceTypeHealthPolicy: { - serializedName: "defaultServiceTypeHealthPolicy", + code: { + serializedName: "code", type: { - name: "Composite", - className: "ServiceTypeHealthPolicy", + name: "String", }, }, - serviceTypeHealthPolicyMap: { - serializedName: "serviceTypeHealthPolicyMap", + message: { + serializedName: "message", type: { - name: "Dictionary", - value: { - type: { name: "Composite", className: "ServiceTypeHealthPolicy" }, - }, + name: "String", }, }, }, }, }; -export const ServiceTypeHealthPolicy: coreClient.CompositeMapper = { +export const ManagedVMSizesResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServiceTypeHealthPolicy", + className: "ManagedVMSizesResult", modelProperties: { - maxPercentUnhealthyServices: { - constraints: { - InclusiveMaximum: 100, - InclusiveMinimum: 0, - }, - serializedName: "maxPercentUnhealthyServices", - required: true, - type: { - name: "Number", - }, - }, - maxPercentUnhealthyPartitionsPerService: { - constraints: { - InclusiveMaximum: 100, - InclusiveMinimum: 0, - }, - serializedName: "maxPercentUnhealthyPartitionsPerService", + value: { + serializedName: "value", required: true, type: { - name: "Number", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ManagedVMSize", + }, + }, }, }, - maxPercentUnhealthyReplicasPerPartition: { - constraints: { - InclusiveMaximum: 100, - InclusiveMinimum: 0, - }, - serializedName: "maxPercentUnhealthyReplicasPerPartition", - required: true, + nextLink: { + serializedName: "nextLink", type: { - name: "Number", + name: "String", }, }, }, }, }; -export const RollingUpgradeMonitoringPolicy: coreClient.CompositeMapper = { +export const ManagedVMSize: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RollingUpgradeMonitoringPolicy", + className: "ManagedVMSize", modelProperties: { - failureAction: { - serializedName: "failureAction", - required: true, - type: { - name: "String", - }, - }, - healthCheckWaitDuration: { - serializedName: "healthCheckWaitDuration", - required: true, - type: { - name: "String", - }, - }, - healthCheckStableDuration: { - serializedName: "healthCheckStableDuration", - required: true, - type: { - name: "String", - }, - }, - healthCheckRetryTimeout: { - serializedName: "healthCheckRetryTimeout", - required: true, - type: { - name: "String", - }, - }, - upgradeTimeout: { - serializedName: "upgradeTimeout", - required: true, + properties: { + serializedName: "properties", type: { - name: "String", + name: "Composite", + className: "VMSize", }, }, - upgradeDomainTimeout: { - serializedName: "upgradeDomainTimeout", - required: true, + id: { + serializedName: "id", + readOnly: true, type: { name: "String", }, }, - }, - }, -}; - -export const ApplicationUserAssignedIdentity: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ApplicationUserAssignedIdentity", - modelProperties: { name: { serializedName: "name", - required: true, + readOnly: true, type: { name: "String", }, }, - principalId: { - serializedName: "principalId", - required: true, + type: { + serializedName: "type", + readOnly: true, type: { name: "String", }, @@ -521,42 +391,42 @@ export const ApplicationUserAssignedIdentity: coreClient.CompositeMapper = { }, }; -export const ApplicationUpdateParameters: coreClient.CompositeMapper = { +export const VMSize: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ApplicationUpdateParameters", + className: "VMSize", modelProperties: { - tags: { - serializedName: "tags", + size: { + serializedName: "size", + readOnly: true, type: { - name: "Dictionary", - value: { type: { name: "String" } }, + name: "String", }, }, }, }, }; -export const ApplicationResourceList: coreClient.CompositeMapper = { +export const ManagedClusterListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ApplicationResourceList", + className: "ManagedClusterListResult", modelProperties: { value: { serializedName: "value", + required: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "ApplicationResource", + className: "ManagedCluster", }, }, }, }, nextLink: { serializedName: "nextLink", - readOnly: true, type: { name: "String", }, @@ -565,172 +435,221 @@ export const ApplicationResourceList: coreClient.CompositeMapper = { }, }; -export const Partition: coreClient.CompositeMapper = { +export const LoadBalancingRule: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Partition", - uberParent: "Partition", - polymorphicDiscriminator: { - serializedName: "partitionScheme", - clientName: "partitionScheme", - }, + className: "LoadBalancingRule", modelProperties: { - partitionScheme: { - serializedName: "partitionScheme", + frontendPort: { + constraints: { + InclusiveMaximum: 65534, + InclusiveMinimum: 1, + }, + serializedName: "frontendPort", + required: true, + type: { + name: "Number", + }, + }, + backendPort: { + constraints: { + InclusiveMaximum: 65534, + InclusiveMinimum: 1, + }, + serializedName: "backendPort", + required: true, + type: { + name: "Number", + }, + }, + protocol: { + serializedName: "protocol", + required: true, + type: { + name: "String", + }, + }, + probePort: { + constraints: { + InclusiveMaximum: 65534, + InclusiveMinimum: 1, + }, + serializedName: "probePort", + type: { + name: "Number", + }, + }, + probeProtocol: { + serializedName: "probeProtocol", required: true, type: { name: "String", }, }, + probeRequestPath: { + serializedName: "probeRequestPath", + type: { + name: "String", + }, + }, + loadDistribution: { + serializedName: "loadDistribution", + type: { + name: "String", + }, + }, }, }, }; -export const ServiceResourcePropertiesBase: coreClient.CompositeMapper = { +export const NetworkSecurityRule: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServiceResourcePropertiesBase", + className: "NetworkSecurityRule", modelProperties: { - placementConstraints: { - serializedName: "placementConstraints", + name: { + serializedName: "name", + required: true, type: { name: "String", }, }, - correlationScheme: { - serializedName: "correlationScheme", + description: { + serializedName: "description", + type: { + name: "String", + }, + }, + protocol: { + serializedName: "protocol", + required: true, + type: { + name: "String", + }, + }, + sourceAddressPrefixes: { + serializedName: "sourceAddressPrefixes", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "ServiceCorrelation", + name: "String", }, }, }, }, - serviceLoadMetrics: { - serializedName: "serviceLoadMetrics", + destinationAddressPrefixes: { + serializedName: "destinationAddressPrefixes", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "ServiceLoadMetric", + name: "String", }, }, }, }, - servicePlacementPolicies: { - serializedName: "servicePlacementPolicies", + sourcePortRanges: { + serializedName: "sourcePortRanges", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "ServicePlacementPolicy", + name: "String", }, }, }, }, - defaultMoveCost: { - serializedName: "defaultMoveCost", - type: { - name: "String", - }, - }, - scalingPolicies: { - serializedName: "scalingPolicies", + destinationPortRanges: { + serializedName: "destinationPortRanges", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "ScalingPolicy", + name: "String", }, }, }, }, - }, - }, -}; - -export const ServiceCorrelation: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ServiceCorrelation", - modelProperties: { - scheme: { - serializedName: "scheme", - required: true, + sourceAddressPrefix: { + serializedName: "sourceAddressPrefix", type: { name: "String", }, }, - serviceName: { - serializedName: "serviceName", - required: true, + destinationAddressPrefix: { + serializedName: "destinationAddressPrefix", type: { name: "String", }, }, - }, - }, -}; - -export const ServiceLoadMetric: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ServiceLoadMetric", - modelProperties: { - name: { - serializedName: "name", - required: true, + sourcePortRange: { + serializedName: "sourcePortRange", type: { name: "String", }, }, - weight: { - serializedName: "weight", + destinationPortRange: { + serializedName: "destinationPortRange", type: { name: "String", }, }, - primaryDefaultLoad: { - serializedName: "primaryDefaultLoad", + access: { + serializedName: "access", + required: true, type: { - name: "Number", + name: "String", }, }, - secondaryDefaultLoad: { - serializedName: "secondaryDefaultLoad", + priority: { + constraints: { + InclusiveMaximum: 3000, + InclusiveMinimum: 1000, + }, + serializedName: "priority", + required: true, type: { name: "Number", }, }, - defaultLoad: { - serializedName: "defaultLoad", + direction: { + serializedName: "direction", + required: true, type: { - name: "Number", + name: "String", }, }, }, }, }; -export const ServicePlacementPolicy: coreClient.CompositeMapper = { +export const ClientCertificate: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServicePlacementPolicy", - uberParent: "ServicePlacementPolicy", - polymorphicDiscriminator: { - serializedName: "type", - clientName: "type", - }, + className: "ClientCertificate", modelProperties: { - type: { - serializedName: "type", + isAdmin: { + serializedName: "isAdmin", required: true, + type: { + name: "Boolean", + }, + }, + thumbprint: { + serializedName: "thumbprint", + type: { + name: "String", + }, + }, + commonName: { + serializedName: "commonName", + type: { + name: "String", + }, + }, + issuerThumbprint: { + serializedName: "issuerThumbprint", type: { name: "String", }, @@ -739,62 +658,76 @@ export const ServicePlacementPolicy: coreClient.CompositeMapper = { }, }; -export const ScalingPolicy: coreClient.CompositeMapper = { +export const AzureActiveDirectory: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ScalingPolicy", + className: "AzureActiveDirectory", modelProperties: { - scalingMechanism: { - serializedName: "scalingMechanism", + tenantId: { + serializedName: "tenantId", type: { - name: "Composite", - className: "ScalingMechanism", + name: "String", }, }, - scalingTrigger: { - serializedName: "scalingTrigger", + clusterApplication: { + serializedName: "clusterApplication", type: { - name: "Composite", - className: "ScalingTrigger", + name: "String", + }, + }, + clientApplication: { + serializedName: "clientApplication", + type: { + name: "String", }, }, }, }, }; -export const ScalingMechanism: coreClient.CompositeMapper = { +export const SettingsSectionDescription: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ScalingMechanism", - uberParent: "ScalingMechanism", - polymorphicDiscriminator: { - serializedName: "kind", - clientName: "kind", - }, + className: "SettingsSectionDescription", modelProperties: { - kind: { - serializedName: "kind", + name: { + serializedName: "name", required: true, type: { name: "String", }, }, + parameters: { + serializedName: "parameters", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SettingsParameterDescription", + }, + }, + }, + }, }, }, }; -export const ScalingTrigger: coreClient.CompositeMapper = { +export const SettingsParameterDescription: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ScalingTrigger", - uberParent: "ScalingTrigger", - polymorphicDiscriminator: { - serializedName: "kind", - clientName: "kind", - }, + className: "SettingsParameterDescription", modelProperties: { - kind: { - serializedName: "kind", + name: { + serializedName: "name", + required: true, + type: { + name: "String", + }, + }, + value: { + serializedName: "value", required: true, type: { name: "String", @@ -804,42 +737,38 @@ export const ScalingTrigger: coreClient.CompositeMapper = { }, }; -export const ServiceUpdateParameters: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ServiceUpdateParameters", - modelProperties: { - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { type: { name: "String" } }, +export const ApplicationTypeVersionsCleanupPolicy: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ApplicationTypeVersionsCleanupPolicy", + modelProperties: { + maxUnusedVersionsToKeep: { + serializedName: "maxUnusedVersionsToKeep", + required: true, + type: { + name: "Number", + }, }, }, }, - }, -}; + }; -export const ServiceResourceList: coreClient.CompositeMapper = { +export const IpTag: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServiceResourceList", + className: "IpTag", modelProperties: { - value: { - serializedName: "value", + ipTagType: { + serializedName: "ipTagType", + required: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ServiceResource", - }, - }, + name: "String", }, }, - nextLink: { - serializedName: "nextLink", - readOnly: true, + tag: { + serializedName: "tag", + required: true, type: { name: "String", }, @@ -848,92 +777,38 @@ export const ServiceResourceList: coreClient.CompositeMapper = { }, }; -export const ManagedClusterListResult: coreClient.CompositeMapper = { +export const Subnet: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedClusterListResult", + className: "Subnet", modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ManagedCluster", - }, - }, - }, - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String", - }, - }, - }, - }, -}; - -export const LoadBalancingRule: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "LoadBalancingRule", - modelProperties: { - frontendPort: { - constraints: { - InclusiveMaximum: 65534, - InclusiveMinimum: 1, - }, - serializedName: "frontendPort", - required: true, - type: { - name: "Number", - }, - }, - backendPort: { - constraints: { - InclusiveMaximum: 65534, - InclusiveMinimum: 1, - }, - serializedName: "backendPort", - required: true, - type: { - name: "Number", - }, - }, - protocol: { - serializedName: "protocol", + name: { + serializedName: "name", required: true, type: { name: "String", }, }, - probePort: { - constraints: { - InclusiveMaximum: 65534, - InclusiveMinimum: 1, - }, - serializedName: "probePort", + enableIpv6: { + serializedName: "enableIpv6", type: { - name: "Number", + name: "Boolean", }, }, - probeProtocol: { - serializedName: "probeProtocol", - required: true, + privateEndpointNetworkPolicies: { + serializedName: "privateEndpointNetworkPolicies", type: { name: "String", }, }, - probeRequestPath: { - serializedName: "probeRequestPath", + privateLinkServiceNetworkPolicies: { + serializedName: "privateLinkServiceNetworkPolicies", type: { name: "String", }, }, - loadDistribution: { - serializedName: "loadDistribution", + networkSecurityGroupId: { + serializedName: "networkSecurityGroupId", type: { name: "String", }, @@ -942,44 +817,20 @@ export const LoadBalancingRule: coreClient.CompositeMapper = { }, }; -export const NetworkSecurityRule: coreClient.CompositeMapper = { +export const ServiceEndpoint: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NetworkSecurityRule", + className: "ServiceEndpoint", modelProperties: { - name: { - serializedName: "name", - required: true, - type: { - name: "String", - }, - }, - description: { - serializedName: "description", - type: { - name: "String", - }, - }, - protocol: { - serializedName: "protocol", + service: { + serializedName: "service", required: true, type: { name: "String", }, }, - sourceAddressPrefixes: { - serializedName: "sourceAddressPrefixes", - type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, - }, - }, - destinationAddressPrefixes: { - serializedName: "destinationAddressPrefixes", + locations: { + serializedName: "locations", type: { name: "Sequence", element: { @@ -989,175 +840,166 @@ export const NetworkSecurityRule: coreClient.CompositeMapper = { }, }, }, - sourcePortRanges: { - serializedName: "sourcePortRanges", + }, + }, +}; + +export const ClusterUpgradePolicy: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ClusterUpgradePolicy", + modelProperties: { + forceRestart: { + serializedName: "forceRestart", type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, + name: "Boolean", }, }, - destinationPortRanges: { - serializedName: "destinationPortRanges", + healthPolicy: { + serializedName: "healthPolicy", type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, + name: "Composite", + className: "ClusterHealthPolicy", }, }, - sourceAddressPrefix: { - serializedName: "sourceAddressPrefix", + deltaHealthPolicy: { + serializedName: "deltaHealthPolicy", type: { - name: "String", + name: "Composite", + className: "ClusterUpgradeDeltaHealthPolicy", }, }, - destinationAddressPrefix: { - serializedName: "destinationAddressPrefix", + monitoringPolicy: { + serializedName: "monitoringPolicy", type: { - name: "String", + name: "Composite", + className: "ClusterMonitoringPolicy", }, }, - sourcePortRange: { - serializedName: "sourcePortRange", + upgradeReplicaSetCheckTimeout: { + serializedName: "upgradeReplicaSetCheckTimeout", type: { name: "String", }, }, - destinationPortRange: { - serializedName: "destinationPortRange", - type: { - name: "String", + }, + }, +}; + +export const ClusterHealthPolicy: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ClusterHealthPolicy", + modelProperties: { + maxPercentUnhealthyNodes: { + constraints: { + InclusiveMaximum: 100, }, - }, - access: { - serializedName: "access", + serializedName: "maxPercentUnhealthyNodes", required: true, type: { - name: "String", + name: "Number", }, }, - priority: { + maxPercentUnhealthyApplications: { constraints: { - InclusiveMaximum: 3000, - InclusiveMinimum: 1000, + InclusiveMaximum: 100, }, - serializedName: "priority", + serializedName: "maxPercentUnhealthyApplications", required: true, type: { name: "Number", }, }, - direction: { - serializedName: "direction", - required: true, - type: { - name: "String", - }, - }, }, }, }; -export const ClientCertificate: coreClient.CompositeMapper = { +export const ClusterUpgradeDeltaHealthPolicy: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ClientCertificate", + className: "ClusterUpgradeDeltaHealthPolicy", modelProperties: { - isAdmin: { - serializedName: "isAdmin", + maxPercentDeltaUnhealthyNodes: { + constraints: { + InclusiveMaximum: 100, + }, + serializedName: "maxPercentDeltaUnhealthyNodes", required: true, type: { - name: "Boolean", + name: "Number", }, }, - thumbprint: { - serializedName: "thumbprint", - type: { - name: "String", + maxPercentUpgradeDomainDeltaUnhealthyNodes: { + constraints: { + InclusiveMaximum: 100, }, - }, - commonName: { - serializedName: "commonName", + serializedName: "maxPercentUpgradeDomainDeltaUnhealthyNodes", type: { - name: "String", + name: "Number", }, }, - issuerThumbprint: { - serializedName: "issuerThumbprint", + maxPercentDeltaUnhealthyApplications: { + constraints: { + InclusiveMaximum: 100, + }, + serializedName: "maxPercentDeltaUnhealthyApplications", type: { - name: "String", + name: "Number", }, }, }, }, }; -export const AzureActiveDirectory: coreClient.CompositeMapper = { +export const ClusterMonitoringPolicy: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AzureActiveDirectory", + className: "ClusterMonitoringPolicy", modelProperties: { - tenantId: { - serializedName: "tenantId", + healthCheckWaitDuration: { + serializedName: "healthCheckWaitDuration", + required: true, type: { name: "String", }, }, - clusterApplication: { - serializedName: "clusterApplication", + healthCheckStableDuration: { + serializedName: "healthCheckStableDuration", + required: true, type: { name: "String", }, }, - clientApplication: { - serializedName: "clientApplication", + healthCheckRetryTimeout: { + serializedName: "healthCheckRetryTimeout", + required: true, type: { name: "String", }, }, - }, - }, -}; - -export const SettingsSectionDescription: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SettingsSectionDescription", - modelProperties: { - name: { - serializedName: "name", + upgradeTimeout: { + serializedName: "upgradeTimeout", required: true, type: { name: "String", }, }, - parameters: { - serializedName: "parameters", + upgradeDomainTimeout: { + serializedName: "upgradeDomainTimeout", required: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SettingsParameterDescription", - }, - }, + name: "String", }, }, }, }, }; -export const SettingsParameterDescription: coreClient.CompositeMapper = { +export const Sku: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SettingsParameterDescription", + className: "Sku", modelProperties: { name: { serializedName: "name", @@ -1166,161 +1008,172 @@ export const SettingsParameterDescription: coreClient.CompositeMapper = { name: "String", }, }, - value: { - serializedName: "value", - required: true, - type: { - name: "String", - }, - }, }, }, }; -export const ApplicationTypeVersionsCleanupPolicy: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "ApplicationTypeVersionsCleanupPolicy", - modelProperties: { - maxUnusedVersionsToKeep: { - constraints: { - InclusiveMinimum: 0, - }, - serializedName: "maxUnusedVersionsToKeep", - required: true, - type: { - name: "Number", - }, - }, - }, - }, - }; - -export const IpTag: coreClient.CompositeMapper = { +export const Resource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "IpTag", + className: "Resource", modelProperties: { - ipTagType: { - serializedName: "ipTagType", - required: true, + id: { + serializedName: "id", + readOnly: true, type: { name: "String", }, }, - tag: { - serializedName: "tag", - required: true, + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String", + }, + }, + type: { + serializedName: "type", + readOnly: true, type: { name: "String", }, }, + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData", + }, + }, }, }, }; -export const Subnet: coreClient.CompositeMapper = { +export const SystemData: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Subnet", + className: "SystemData", modelProperties: { - name: { - serializedName: "name", - required: true, + createdBy: { + serializedName: "createdBy", type: { name: "String", }, }, - enableIpv6: { - serializedName: "enableIpv6", + createdByType: { + serializedName: "createdByType", type: { - name: "Boolean", + name: "String", }, }, - privateEndpointNetworkPolicies: { - serializedName: "privateEndpointNetworkPolicies", + createdAt: { + serializedName: "createdAt", type: { - name: "String", + name: "DateTime", }, }, - privateLinkServiceNetworkPolicies: { - serializedName: "privateLinkServiceNetworkPolicies", + lastModifiedBy: { + serializedName: "lastModifiedBy", type: { name: "String", }, }, - networkSecurityGroupId: { - serializedName: "networkSecurityGroupId", + lastModifiedByType: { + serializedName: "lastModifiedByType", type: { name: "String", }, }, + lastModifiedAt: { + serializedName: "lastModifiedAt", + type: { + name: "DateTime", + }, + }, }, }, }; -export const ServiceEndpoint: coreClient.CompositeMapper = { +export const ManagedClusterUpdateParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServiceEndpoint", + className: "ManagedClusterUpdateParameters", modelProperties: { - service: { - serializedName: "service", - required: true, + tags: { + serializedName: "tags", type: { - name: "String", + name: "Dictionary", + value: { type: { name: "String" } }, }, }, - locations: { - serializedName: "locations", + }, + }, +}; + +export const ApplicationTypeResourceList: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ApplicationTypeResourceList", + modelProperties: { + value: { + serializedName: "value", + required: true, type: { name: "Sequence", element: { type: { - name: "String", + name: "Composite", + className: "ApplicationTypeResource", }, }, }, }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String", + }, + }, }, }, }; -export const ClusterUpgradePolicy: coreClient.CompositeMapper = { +export const ApplicationTypeUpdateParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ClusterUpgradePolicy", + className: "ApplicationTypeUpdateParameters", modelProperties: { - forceRestart: { - serializedName: "forceRestart", - type: { - name: "Boolean", - }, - }, - healthPolicy: { - serializedName: "healthPolicy", - type: { - name: "Composite", - className: "ClusterHealthPolicy", - }, - }, - deltaHealthPolicy: { - serializedName: "deltaHealthPolicy", + tags: { + serializedName: "tags", type: { - name: "Composite", - className: "ClusterUpgradeDeltaHealthPolicy", + name: "Dictionary", + value: { type: { name: "String" } }, }, }, - monitoringPolicy: { - serializedName: "monitoringPolicy", + }, + }, +}; + +export const ApplicationTypeVersionResourceList: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ApplicationTypeVersionResourceList", + modelProperties: { + value: { + serializedName: "value", + required: true, type: { - name: "Composite", - className: "ClusterMonitoringPolicy", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ApplicationTypeVersionResource", + }, + }, }, }, - upgradeReplicaSetCheckTimeout: { - serializedName: "upgradeReplicaSetCheckTimeout", + nextLink: { + serializedName: "nextLink", type: { name: "String", }, @@ -1329,71 +1182,174 @@ export const ClusterUpgradePolicy: coreClient.CompositeMapper = { }, }; -export const ClusterHealthPolicy: coreClient.CompositeMapper = { +export const ApplicationTypeVersionUpdateParameters: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ApplicationTypeVersionUpdateParameters", + modelProperties: { + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } }, + }, + }, + }, + }, + }; + +export const ApplicationResourceList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ClusterHealthPolicy", + className: "ApplicationResourceList", modelProperties: { - maxPercentUnhealthyNodes: { - defaultValue: 0, - constraints: { - InclusiveMaximum: 100, - InclusiveMinimum: 0, - }, - serializedName: "maxPercentUnhealthyNodes", + value: { + serializedName: "value", required: true, type: { - name: "Number", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ApplicationResource", + }, + }, }, }, - maxPercentUnhealthyApplications: { - defaultValue: 0, - constraints: { - InclusiveMaximum: 100, - InclusiveMinimum: 0, - }, - serializedName: "maxPercentUnhealthyApplications", - required: true, + nextLink: { + serializedName: "nextLink", type: { - name: "Number", + name: "String", }, }, }, }, }; -export const ClusterUpgradeDeltaHealthPolicy: coreClient.CompositeMapper = { +export const ApplicationUpgradePolicy: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ClusterUpgradeDeltaHealthPolicy", + className: "ApplicationUpgradePolicy", modelProperties: { - maxPercentDeltaUnhealthyNodes: { - constraints: { - InclusiveMaximum: 100, - InclusiveMinimum: 0, - }, - serializedName: "maxPercentDeltaUnhealthyNodes", + applicationHealthPolicy: { + serializedName: "applicationHealthPolicy", + type: { + name: "Composite", + className: "ApplicationHealthPolicy", + }, + }, + forceRestart: { + serializedName: "forceRestart", + type: { + name: "Boolean", + }, + }, + rollingUpgradeMonitoringPolicy: { + serializedName: "rollingUpgradeMonitoringPolicy", + type: { + name: "Composite", + className: "RollingUpgradeMonitoringPolicy", + }, + }, + instanceCloseDelayDuration: { + serializedName: "instanceCloseDelayDuration", + type: { + name: "Number", + }, + }, + upgradeMode: { + serializedName: "upgradeMode", + type: { + name: "String", + }, + }, + upgradeReplicaSetCheckTimeout: { + serializedName: "upgradeReplicaSetCheckTimeout", + type: { + name: "Number", + }, + }, + recreateApplication: { + serializedName: "recreateApplication", + type: { + name: "Boolean", + }, + }, + }, + }, +}; + +export const ApplicationHealthPolicy: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ApplicationHealthPolicy", + modelProperties: { + considerWarningAsError: { + serializedName: "considerWarningAsError", + required: true, + type: { + name: "Boolean", + }, + }, + maxPercentUnhealthyDeployedApplications: { + serializedName: "maxPercentUnhealthyDeployedApplications", required: true, type: { name: "Number", }, }, - maxPercentUpgradeDomainDeltaUnhealthyNodes: { + defaultServiceTypeHealthPolicy: { + serializedName: "defaultServiceTypeHealthPolicy", + type: { + name: "Composite", + className: "ServiceTypeHealthPolicy", + }, + }, + serviceTypeHealthPolicyMap: { + serializedName: "serviceTypeHealthPolicyMap", + type: { + name: "Dictionary", + value: { + type: { name: "Composite", className: "ServiceTypeHealthPolicy" }, + }, + }, + }, + }, + }, +}; + +export const ServiceTypeHealthPolicy: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ServiceTypeHealthPolicy", + modelProperties: { + maxPercentUnhealthyServices: { constraints: { InclusiveMaximum: 100, - InclusiveMinimum: 0, }, - serializedName: "maxPercentUpgradeDomainDeltaUnhealthyNodes", + serializedName: "maxPercentUnhealthyServices", + required: true, type: { name: "Number", }, }, - maxPercentDeltaUnhealthyApplications: { + maxPercentUnhealthyPartitionsPerService: { constraints: { InclusiveMaximum: 100, - InclusiveMinimum: 0, }, - serializedName: "maxPercentDeltaUnhealthyApplications", + serializedName: "maxPercentUnhealthyPartitionsPerService", + required: true, + type: { + name: "Number", + }, + }, + maxPercentUnhealthyReplicasPerPartition: { + constraints: { + InclusiveMaximum: 100, + }, + serializedName: "maxPercentUnhealthyReplicasPerPartition", + required: true, type: { name: "Number", }, @@ -1402,11 +1358,18 @@ export const ClusterUpgradeDeltaHealthPolicy: coreClient.CompositeMapper = { }, }; -export const ClusterMonitoringPolicy: coreClient.CompositeMapper = { +export const RollingUpgradeMonitoringPolicy: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ClusterMonitoringPolicy", + className: "RollingUpgradeMonitoringPolicy", modelProperties: { + failureAction: { + serializedName: "failureAction", + required: true, + type: { + name: "String", + }, + }, healthCheckWaitDuration: { serializedName: "healthCheckWaitDuration", required: true, @@ -1446,10 +1409,10 @@ export const ClusterMonitoringPolicy: coreClient.CompositeMapper = { }, }; -export const Sku: coreClient.CompositeMapper = { +export const ApplicationUserAssignedIdentity: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Sku", + className: "ApplicationUserAssignedIdentity", modelProperties: { name: { serializedName: "name", @@ -1458,24 +1421,31 @@ export const Sku: coreClient.CompositeMapper = { name: "String", }, }, + principalId: { + serializedName: "principalId", + required: true, + type: { + name: "String", + }, + }, }, }, }; -export const Resource: coreClient.CompositeMapper = { +export const ManagedIdentity: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Resource", + className: "ManagedIdentity", modelProperties: { - id: { - serializedName: "id", + principalId: { + serializedName: "principalId", readOnly: true, type: { name: "String", }, }, - name: { - serializedName: "name", + tenantId: { + serializedName: "tenantId", readOnly: true, type: { name: "String", @@ -1483,47 +1453,56 @@ export const Resource: coreClient.CompositeMapper = { }, type: { serializedName: "type", - readOnly: true, - type: { - name: "String", - }, - }, - location: { - serializedName: "location", - required: true, type: { - name: "String", + name: "Enum", + allowedValues: [ + "None", + "SystemAssigned", + "UserAssigned", + "SystemAssigned, UserAssigned", + ], }, }, - tags: { - serializedName: "tags", + userAssignedIdentities: { + serializedName: "userAssignedIdentities", type: { name: "Dictionary", - value: { type: { name: "String" } }, + value: { + type: { name: "Composite", className: "UserAssignedIdentity" }, + }, }, }, - etag: { - serializedName: "etag", + }, + }, +}; + +export const UserAssignedIdentity: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "UserAssignedIdentity", + modelProperties: { + principalId: { + serializedName: "principalId", readOnly: true, type: { name: "String", }, }, - systemData: { - serializedName: "systemData", + clientId: { + serializedName: "clientId", + readOnly: true, type: { - name: "Composite", - className: "SystemData", + name: "String", }, }, }, }, }; -export const ManagedClusterUpdateParameters: coreClient.CompositeMapper = { +export const ApplicationUpdateParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedClusterUpdateParameters", + className: "ApplicationUpdateParameters", modelProperties: { tags: { serializedName: "tags", @@ -1536,194 +1515,216 @@ export const ManagedClusterUpdateParameters: coreClient.CompositeMapper = { }, }; -export const ManagedAzResiliencyStatus: coreClient.CompositeMapper = { +export const RuntimeResumeApplicationUpgradeParameters: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "RuntimeResumeApplicationUpgradeParameters", + modelProperties: { + upgradeDomainName: { + serializedName: "upgradeDomainName", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const ServiceResourceList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedAzResiliencyStatus", + className: "ServiceResourceList", modelProperties: { - baseResourceStatus: { - serializedName: "baseResourceStatus", + value: { + serializedName: "value", + required: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "ResourceAzStatus", + className: "ServiceResource", }, }, }, }, - isClusterZoneResilient: { - serializedName: "isClusterZoneResilient", - readOnly: true, + nextLink: { + serializedName: "nextLink", type: { - name: "Boolean", + name: "String", }, }, }, }, }; -export const ResourceAzStatus: coreClient.CompositeMapper = { +export const Partition: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ResourceAzStatus", + className: "Partition", + uberParent: "Partition", + polymorphicDiscriminator: { + serializedName: "partitionScheme", + clientName: "partitionScheme", + }, modelProperties: { - resourceName: { - serializedName: "resourceName", - readOnly: true, + partitionScheme: { + serializedName: "partitionScheme", + required: true, type: { name: "String", }, }, - resourceType: { - serializedName: "resourceType", - readOnly: true, + }, + }, +}; + +export const ServiceResourcePropertiesBase: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ServiceResourcePropertiesBase", + modelProperties: { + placementConstraints: { + serializedName: "placementConstraints", type: { name: "String", }, }, - isZoneResilient: { - serializedName: "isZoneResilient", - readOnly: true, - type: { - name: "Boolean", - }, - }, - details: { - serializedName: "details", - readOnly: true, - type: { - name: "String", - }, - }, - }, - }, -}; - -export const ManagedMaintenanceWindowStatus: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedMaintenanceWindowStatus", - modelProperties: { - isWindowEnabled: { - serializedName: "isWindowEnabled", - readOnly: true, + correlationScheme: { + serializedName: "correlationScheme", type: { - name: "Boolean", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ServiceCorrelation", + }, + }, }, }, - isRegionReady: { - serializedName: "isRegionReady", - readOnly: true, + serviceLoadMetrics: { + serializedName: "serviceLoadMetrics", type: { - name: "Boolean", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ServiceLoadMetric", + }, + }, }, }, - isWindowActive: { - serializedName: "isWindowActive", - readOnly: true, + servicePlacementPolicies: { + serializedName: "servicePlacementPolicies", type: { - name: "Boolean", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ServicePlacementPolicy", + }, + }, }, }, - canApplyUpdates: { - serializedName: "canApplyUpdates", - readOnly: true, + defaultMoveCost: { + serializedName: "defaultMoveCost", type: { - name: "Boolean", + name: "String", }, }, - lastWindowStatusUpdateAtUTC: { - serializedName: "lastWindowStatusUpdateAtUTC", - readOnly: true, + scalingPolicies: { + serializedName: "scalingPolicies", type: { - name: "DateTime", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ScalingPolicy", + }, + }, }, }, - lastWindowStartTimeUTC: { - serializedName: "lastWindowStartTimeUTC", - readOnly: true, + }, + }, +}; + +export const ServiceCorrelation: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ServiceCorrelation", + modelProperties: { + scheme: { + serializedName: "scheme", + required: true, type: { - name: "DateTime", + name: "String", }, }, - lastWindowEndTimeUTC: { - serializedName: "lastWindowEndTimeUTC", - readOnly: true, + serviceName: { + serializedName: "serviceName", + required: true, type: { - name: "DateTime", + name: "String", }, }, }, }, }; -export const ManagedClusterCodeVersionResult: coreClient.CompositeMapper = { +export const ServiceLoadMetric: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedClusterCodeVersionResult", + className: "ServiceLoadMetric", modelProperties: { - id: { - serializedName: "id", - type: { - name: "String", - }, - }, name: { serializedName: "name", + required: true, type: { name: "String", }, }, - type: { - serializedName: "type", + weight: { + serializedName: "weight", type: { name: "String", }, }, - clusterCodeVersion: { - serializedName: "properties.clusterCodeVersion", + primaryDefaultLoad: { + serializedName: "primaryDefaultLoad", type: { - name: "String", + name: "Number", }, }, - supportExpiryUtc: { - serializedName: "properties.supportExpiryUtc", + secondaryDefaultLoad: { + serializedName: "secondaryDefaultLoad", type: { - name: "String", + name: "Number", }, }, - osType: { - serializedName: "properties.osType", + defaultLoad: { + serializedName: "defaultLoad", type: { - name: "String", + name: "Number", }, }, }, }, }; -export const ManagedVMSizesResult: coreClient.CompositeMapper = { +export const ServicePlacementPolicy: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedVMSizesResult", + className: "ServicePlacementPolicy", + uberParent: "ServicePlacementPolicy", + polymorphicDiscriminator: { + serializedName: "type", + clientName: "type", + }, modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ManagedVMSize", - }, - }, - }, - }, - nextLink: { - serializedName: "nextLink", - readOnly: true, + type: { + serializedName: "type", + required: true, type: { name: "String", }, @@ -1732,35 +1733,63 @@ export const ManagedVMSizesResult: coreClient.CompositeMapper = { }, }; -export const ManagedVMSize: coreClient.CompositeMapper = { +export const ScalingPolicy: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedVMSize", + className: "ScalingPolicy", modelProperties: { - properties: { - serializedName: "properties", + scalingMechanism: { + serializedName: "scalingMechanism", type: { name: "Composite", - className: "VMSize", + className: "ScalingMechanism", }, }, - id: { - serializedName: "id", - readOnly: true, + scalingTrigger: { + serializedName: "scalingTrigger", type: { - name: "String", + name: "Composite", + className: "ScalingTrigger", }, }, - name: { - serializedName: "name", - readOnly: true, + }, + }, +}; + +export const ScalingMechanism: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ScalingMechanism", + uberParent: "ScalingMechanism", + polymorphicDiscriminator: { + serializedName: "kind", + clientName: "kind", + }, + modelProperties: { + kind: { + serializedName: "kind", + required: true, type: { name: "String", }, }, - type: { - serializedName: "type", - readOnly: true, + }, + }, +}; + +export const ScalingTrigger: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ScalingTrigger", + uberParent: "ScalingTrigger", + polymorphicDiscriminator: { + serializedName: "kind", + clientName: "kind", + }, + modelProperties: { + kind: { + serializedName: "kind", + required: true, type: { name: "String", }, @@ -1769,14 +1798,30 @@ export const ManagedVMSize: coreClient.CompositeMapper = { }, }; -export const VMSize: coreClient.CompositeMapper = { +export const ServiceUpdateParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VMSize", + className: "ServiceUpdateParameters", modelProperties: { - size: { - serializedName: "size", - readOnly: true, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } }, + }, + }, + }, + }, +}; + +export const FaultSimulationIdParameters: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "FaultSimulationIdParameters", + modelProperties: { + simulationId: { + serializedName: "simulationId", + required: true, type: { name: "String", }, @@ -1785,13 +1830,19 @@ export const VMSize: coreClient.CompositeMapper = { }, }; -export const LongRunningOperationResult: coreClient.CompositeMapper = { +export const FaultSimulation: coreClient.CompositeMapper = { type: { name: "Composite", - className: "LongRunningOperationResult", + className: "FaultSimulation", modelProperties: { - name: { - serializedName: "name", + simulationId: { + serializedName: "simulationId", + type: { + name: "String", + }, + }, + status: { + serializedName: "status", type: { name: "String", }, @@ -1808,48 +1859,82 @@ export const LongRunningOperationResult: coreClient.CompositeMapper = { name: "DateTime", }, }, - percentComplete: { - serializedName: "percentComplete", + details: { + serializedName: "details", type: { - name: "Number", + name: "Composite", + className: "FaultSimulationDetails", }, }, - status: { - serializedName: "status", + }, + }, +}; + +export const FaultSimulationDetails: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "FaultSimulationDetails", + modelProperties: { + clusterId: { + serializedName: "clusterId", type: { name: "String", }, }, - error: { - serializedName: "error", + operationId: { + serializedName: "operationId", + type: { + name: "String", + }, + }, + nodeTypeFaultSimulation: { + serializedName: "nodeTypeFaultSimulation", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NodeTypeFaultSimulation", + }, + }, + }, + }, + parameters: { + serializedName: "parameters", type: { name: "Composite", - className: "ErrorModelError", + className: "FaultSimulationParameters", }, }, }, }, }; -export const OperationListResult: coreClient.CompositeMapper = { +export const NodeTypeFaultSimulation: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OperationListResult", + className: "NodeTypeFaultSimulation", modelProperties: { - value: { - serializedName: "value", + nodeTypeName: { + serializedName: "nodeTypeName", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "OperationResult", - }, - }, + name: "String", }, }, - nextLink: { - serializedName: "nextLink", + status: { + serializedName: "status", + type: { + name: "String", + }, + }, + operationId: { + serializedName: "operationId", + type: { + name: "String", + }, + }, + operationStatus: { + serializedName: "operationStatus", readOnly: true, type: { name: "String", @@ -1859,71 +1944,198 @@ export const OperationListResult: coreClient.CompositeMapper = { }, }; -export const OperationResult: coreClient.CompositeMapper = { +export const FaultSimulationParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OperationResult", + className: "FaultSimulationParameters", + uberParent: "FaultSimulationParameters", + polymorphicDiscriminator: { + serializedName: "faultKind", + clientName: "faultKind", + }, modelProperties: { - name: { - serializedName: "name", + faultKind: { + serializedName: "faultKind", + required: true, type: { name: "String", }, }, - isDataAction: { - serializedName: "isDataAction", + force: { + serializedName: "force", type: { name: "Boolean", }, }, - display: { - serializedName: "display", + constraints: { + serializedName: "constraints", type: { name: "Composite", - className: "AvailableOperationDisplay", + className: "FaultSimulationConstraints", }, }, - origin: { - serializedName: "origin", + }, + }, +}; + +export const FaultSimulationConstraints: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "FaultSimulationConstraints", + modelProperties: { + expirationTime: { + serializedName: "expirationTime", type: { - name: "String", + name: "DateTime", }, }, - nextLink: { - serializedName: "nextLink", + }, + }, +}; + +export const ManagedMaintenanceWindowStatus: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedMaintenanceWindowStatus", + modelProperties: { + isWindowEnabled: { + serializedName: "isWindowEnabled", + readOnly: true, type: { - name: "String", + name: "Boolean", + }, + }, + isRegionReady: { + serializedName: "isRegionReady", + readOnly: true, + type: { + name: "Boolean", + }, + }, + isWindowActive: { + serializedName: "isWindowActive", + readOnly: true, + type: { + name: "Boolean", + }, + }, + canApplyUpdates: { + serializedName: "canApplyUpdates", + readOnly: true, + type: { + name: "Boolean", + }, + }, + lastWindowStatusUpdateAtUTC: { + serializedName: "lastWindowStatusUpdateAtUTC", + readOnly: true, + type: { + name: "DateTime", + }, + }, + lastWindowStartTimeUTC: { + serializedName: "lastWindowStartTimeUTC", + readOnly: true, + type: { + name: "DateTime", + }, + }, + lastWindowEndTimeUTC: { + serializedName: "lastWindowEndTimeUTC", + readOnly: true, + type: { + name: "DateTime", }, }, }, }, }; -export const AvailableOperationDisplay: coreClient.CompositeMapper = { +export const ManagedAzResiliencyStatus: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AvailableOperationDisplay", + className: "ManagedAzResiliencyStatus", modelProperties: { - provider: { - serializedName: "provider", + baseResourceStatus: { + serializedName: "baseResourceStatus", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ResourceAzStatus", + }, + }, + }, + }, + isClusterZoneResilient: { + serializedName: "isClusterZoneResilient", + readOnly: true, + type: { + name: "Boolean", + }, + }, + }, + }, +}; + +export const ResourceAzStatus: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ResourceAzStatus", + modelProperties: { + resourceName: { + serializedName: "resourceName", + readOnly: true, type: { name: "String", }, }, - resource: { - serializedName: "resource", + resourceType: { + serializedName: "resourceType", + readOnly: true, type: { name: "String", }, }, - operation: { - serializedName: "operation", + isZoneResilient: { + serializedName: "isZoneResilient", + readOnly: true, + type: { + name: "Boolean", + }, + }, + details: { + serializedName: "details", + readOnly: true, type: { name: "String", }, }, - description: { - serializedName: "description", + }, + }, +}; + +export const FaultSimulationListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "FaultSimulationListResult", + modelProperties: { + value: { + serializedName: "value", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "FaultSimulation", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", type: { name: "String", }, @@ -1939,6 +2151,7 @@ export const NodeTypeListResult: coreClient.CompositeMapper = { modelProperties: { value: { serializedName: "value", + required: true, type: { name: "Sequence", element: { @@ -2224,7 +2437,6 @@ export const VmssDataDisk: coreClient.CompositeMapper = { }, }, diskType: { - defaultValue: "StandardSSD_LRS", serializedName: "diskType", required: true, type: { @@ -2547,32 +2759,11 @@ export const NodeTypeSku: coreClient.CompositeMapper = { }, }; -export const ManagedProxyResource: coreClient.CompositeMapper = { +export const NodeTypeUpdateParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedProxyResource", + className: "NodeTypeUpdateParameters", 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", - }, - }, tags: { serializedName: "tags", type: { @@ -2580,11 +2771,11 @@ export const ManagedProxyResource: coreClient.CompositeMapper = { value: { type: { name: "String" } }, }, }, - systemData: { - serializedName: "systemData", + sku: { + serializedName: "sku", type: { name: "Composite", - className: "SystemData", + className: "NodeTypeSku", }, }, }, @@ -2630,6 +2821,7 @@ export const NodeTypeListSkuResult: coreClient.CompositeMapper = { modelProperties: { value: { serializedName: "value", + required: true, type: { name: "Sequence", element: { @@ -2741,11 +2933,12 @@ export const NodeTypeSkuCapacity: coreClient.CompositeMapper = { }, }; -export const NodeTypeUpdateParameters: coreClient.CompositeMapper = { +export const TrackedResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NodeTypeUpdateParameters", + className: "TrackedResource", modelProperties: { + ...Resource.type.modelProperties, tags: { serializedName: "tags", type: { @@ -2753,126 +2946,23 @@ export const NodeTypeUpdateParameters: coreClient.CompositeMapper = { value: { type: { name: "String" } }, }, }, - sku: { - serializedName: "sku", + location: { + serializedName: "location", + required: true, type: { - name: "Composite", - className: "NodeTypeSku", + name: "String", }, }, }, }, }; -export const ApplicationTypeResource: coreClient.CompositeMapper = { +export const ProxyResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ApplicationTypeResource", - modelProperties: { - ...ProxyResource.type.modelProperties, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, - type: { - name: "String", - }, - }, - }, - }, -}; - -export const ApplicationTypeVersionResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ApplicationTypeVersionResource", - modelProperties: { - ...ProxyResource.type.modelProperties, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, - type: { - name: "String", - }, - }, - appPackageUrl: { - serializedName: "properties.appPackageUrl", - type: { - name: "String", - }, - }, - }, - }, -}; - -export const ApplicationResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ApplicationResource", - modelProperties: { - ...ProxyResource.type.modelProperties, - identity: { - serializedName: "identity", - type: { - name: "Composite", - className: "ManagedIdentity", - }, - }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, - type: { - name: "String", - }, - }, - version: { - serializedName: "properties.version", - type: { - name: "String", - }, - }, - parameters: { - serializedName: "properties.parameters", - type: { - name: "Dictionary", - value: { type: { name: "String" } }, - }, - }, - upgradePolicy: { - serializedName: "properties.upgradePolicy", - type: { - name: "Composite", - className: "ApplicationUpgradePolicy", - }, - }, - managedIdentities: { - serializedName: "properties.managedIdentities", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ApplicationUserAssignedIdentity", - }, - }, - }, - }, - }, - }, -}; - -export const ServiceResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ServiceResource", + className: "ProxyResource", modelProperties: { - ...ProxyResource.type.modelProperties, - properties: { - serializedName: "properties", - type: { - name: "Composite", - className: "ServiceResourceProperties", - }, - }, + ...Resource.type.modelProperties, }, }, }; @@ -3063,12 +3153,12 @@ export const ServicePlacementPreferPrimaryDomainPolicy: coreClient.CompositeMapp }, }; -export const ServicePlacementRequiredDomainPolicy: coreClient.CompositeMapper = +export const ServicePlacementRequireDomainDistributionPolicy: coreClient.CompositeMapper = { - serializedName: "RequiredDomain", + serializedName: "RequiredDomainDistribution", type: { name: "Composite", - className: "ServicePlacementRequiredDomainPolicy", + className: "ServicePlacementRequireDomainDistributionPolicy", uberParent: "ServicePlacementPolicy", polymorphicDiscriminator: ServicePlacementPolicy.type.polymorphicDiscriminator, @@ -3085,12 +3175,12 @@ export const ServicePlacementRequiredDomainPolicy: coreClient.CompositeMapper = }, }; -export const ServicePlacementRequireDomainDistributionPolicy: coreClient.CompositeMapper = +export const ServicePlacementRequiredDomainPolicy: coreClient.CompositeMapper = { - serializedName: "RequiredDomainDistribution", + serializedName: "RequiredDomain", type: { name: "Composite", - className: "ServicePlacementRequireDomainDistributionPolicy", + className: "ServicePlacementRequiredDomainPolicy", uberParent: "ServicePlacementPolicy", polymorphicDiscriminator: ServicePlacementPolicy.type.polymorphicDiscriminator, @@ -3266,12 +3356,44 @@ export const AverageServiceLoadScalingTrigger: coreClient.CompositeMapper = { }, }; +export const ZoneFaultSimulationParameters: coreClient.CompositeMapper = { + serializedName: "Zone", + type: { + name: "Composite", + className: "ZoneFaultSimulationParameters", + uberParent: "FaultSimulationParameters", + polymorphicDiscriminator: + FaultSimulationParameters.type.polymorphicDiscriminator, + modelProperties: { + ...FaultSimulationParameters.type.modelProperties, + zones: { + serializedName: "zones", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + }, + }, +}; + export const ManagedCluster: coreClient.CompositeMapper = { type: { name: "Composite", className: "ManagedCluster", modelProperties: { - ...Resource.type.modelProperties, + ...TrackedResource.type.modelProperties, + etag: { + serializedName: "etag", + readOnly: true, + type: { + name: "String", + }, + }, sku: { serializedName: "sku", type: { @@ -3429,166 +3551,421 @@ export const ManagedCluster: coreClient.CompositeMapper = { defaultValue: "Automatic", serializedName: "properties.clusterUpgradeMode", type: { - name: "String", + name: "String", + }, + }, + clusterUpgradeCadence: { + serializedName: "properties.clusterUpgradeCadence", + type: { + name: "String", + }, + }, + addonFeatures: { + serializedName: "properties.addonFeatures", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + enableAutoOSUpgrade: { + serializedName: "properties.enableAutoOSUpgrade", + type: { + name: "Boolean", + }, + }, + zonalResiliency: { + serializedName: "properties.zonalResiliency", + type: { + name: "Boolean", + }, + }, + applicationTypeVersionsCleanupPolicy: { + serializedName: "properties.applicationTypeVersionsCleanupPolicy", + type: { + name: "Composite", + className: "ApplicationTypeVersionsCleanupPolicy", + }, + }, + enableIpv6: { + serializedName: "properties.enableIpv6", + type: { + name: "Boolean", + }, + }, + subnetId: { + serializedName: "properties.subnetId", + type: { + name: "String", + }, + }, + ipTags: { + serializedName: "properties.ipTags", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "IpTag", + }, + }, + }, + }, + ipv6Address: { + serializedName: "properties.ipv6Address", + readOnly: true, + type: { + name: "String", + }, + }, + enableServicePublicIP: { + serializedName: "properties.enableServicePublicIP", + type: { + name: "Boolean", + }, + }, + auxiliarySubnets: { + serializedName: "properties.auxiliarySubnets", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Subnet", + }, + }, + }, + }, + serviceEndpoints: { + serializedName: "properties.serviceEndpoints", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ServiceEndpoint", + }, + }, + }, + }, + zonalUpdateMode: { + serializedName: "properties.zonalUpdateMode", + type: { + name: "String", + }, + }, + useCustomVnet: { + serializedName: "properties.useCustomVnet", + type: { + name: "Boolean", + }, + }, + publicIPPrefixId: { + serializedName: "properties.publicIPPrefixId", + type: { + name: "String", + }, + }, + publicIPv6PrefixId: { + serializedName: "properties.publicIPv6PrefixId", + type: { + name: "String", + }, + }, + ddosProtectionPlanId: { + serializedName: "properties.ddosProtectionPlanId", + type: { + name: "String", + }, + }, + upgradeDescription: { + serializedName: "properties.upgradeDescription", + type: { + name: "Composite", + className: "ClusterUpgradePolicy", + }, + }, + httpGatewayTokenAuthConnectionPort: { + serializedName: "properties.httpGatewayTokenAuthConnectionPort", + type: { + name: "Number", + }, + }, + enableHttpGatewayExclusiveAuthMode: { + serializedName: "properties.enableHttpGatewayExclusiveAuthMode", + type: { + name: "Boolean", + }, + }, + autoGeneratedDomainNameLabelScope: { + serializedName: "properties.autoGeneratedDomainNameLabelScope", + type: { + name: "String", + }, + }, + allocatedOutboundPorts: { + serializedName: "properties.allocatedOutboundPorts", + type: { + name: "Number", + }, + }, + }, + }, +}; + +export const ApplicationTypeResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ApplicationTypeResource", + modelProperties: { + ...ProxyResource.type.modelProperties, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } }, + }, + }, + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, +}; + +export const ApplicationTypeVersionResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ApplicationTypeVersionResource", + modelProperties: { + ...ProxyResource.type.modelProperties, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } }, + }, + }, + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + type: { + name: "String", + }, + }, + appPackageUrl: { + serializedName: "properties.appPackageUrl", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const ApplicationResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ApplicationResource", + modelProperties: { + ...ProxyResource.type.modelProperties, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } }, + }, + }, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "ManagedIdentity", + }, + }, + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + type: { + name: "String", + }, + }, + version: { + serializedName: "properties.version", + type: { + name: "String", + }, + }, + parameters: { + serializedName: "properties.parameters", + type: { + name: "Dictionary", + value: { type: { name: "String" } }, }, }, - clusterUpgradeCadence: { - serializedName: "properties.clusterUpgradeCadence", + upgradePolicy: { + serializedName: "properties.upgradePolicy", type: { - name: "String", + name: "Composite", + className: "ApplicationUpgradePolicy", }, }, - addonFeatures: { - serializedName: "properties.addonFeatures", + managedIdentities: { + serializedName: "properties.managedIdentities", type: { name: "Sequence", element: { type: { - name: "String", + name: "Composite", + className: "ApplicationUserAssignedIdentity", }, }, }, }, - enableAutoOSUpgrade: { - serializedName: "properties.enableAutoOSUpgrade", - type: { - name: "Boolean", - }, - }, - zonalResiliency: { - defaultValue: false, - serializedName: "properties.zonalResiliency", - type: { - name: "Boolean", - }, - }, - applicationTypeVersionsCleanupPolicy: { - serializedName: "properties.applicationTypeVersionsCleanupPolicy", + }, + }, +}; + +export const ServiceResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ServiceResource", + modelProperties: { + ...ProxyResource.type.modelProperties, + tags: { + serializedName: "tags", type: { - name: "Composite", - className: "ApplicationTypeVersionsCleanupPolicy", + name: "Dictionary", + value: { type: { name: "String" } }, }, }, - enableIpv6: { - serializedName: "properties.enableIpv6", + location: { + serializedName: "location", type: { - name: "Boolean", + name: "String", }, }, - subnetId: { - serializedName: "properties.subnetId", + placementConstraints: { + serializedName: "properties.placementConstraints", type: { name: "String", }, }, - ipTags: { - serializedName: "properties.ipTags", + correlationScheme: { + serializedName: "properties.correlationScheme", type: { name: "Sequence", element: { type: { name: "Composite", - className: "IpTag", + className: "ServiceCorrelation", }, }, }, }, - ipv6Address: { - serializedName: "properties.ipv6Address", - readOnly: true, - type: { - name: "String", - }, - }, - enableServicePublicIP: { - serializedName: "properties.enableServicePublicIP", - type: { - name: "Boolean", - }, - }, - auxiliarySubnets: { - serializedName: "properties.auxiliarySubnets", + serviceLoadMetrics: { + serializedName: "properties.serviceLoadMetrics", type: { name: "Sequence", element: { type: { name: "Composite", - className: "Subnet", + className: "ServiceLoadMetric", }, }, }, }, - serviceEndpoints: { - serializedName: "properties.serviceEndpoints", + servicePlacementPolicies: { + serializedName: "properties.servicePlacementPolicies", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ServiceEndpoint", + className: "ServicePlacementPolicy", }, }, }, }, - zonalUpdateMode: { - serializedName: "properties.zonalUpdateMode", + defaultMoveCost: { + serializedName: "properties.defaultMoveCost", type: { name: "String", }, }, - useCustomVnet: { - serializedName: "properties.useCustomVnet", + scalingPolicies: { + serializedName: "properties.scalingPolicies", type: { - name: "Boolean", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ScalingPolicy", + }, + }, }, }, - publicIPPrefixId: { - serializedName: "properties.publicIPPrefixId", + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, type: { name: "String", }, }, - publicIPv6PrefixId: { - serializedName: "properties.publicIPv6PrefixId", + serviceKind: { + serializedName: "properties.serviceKind", type: { name: "String", }, }, - ddosProtectionPlanId: { - serializedName: "properties.ddosProtectionPlanId", + serviceTypeName: { + serializedName: "properties.serviceTypeName", type: { name: "String", }, }, - upgradeDescription: { - serializedName: "properties.upgradeDescription", + partitionDescription: { + serializedName: "properties.partitionDescription", type: { name: "Composite", - className: "ClusterUpgradePolicy", - }, - }, - httpGatewayTokenAuthConnectionPort: { - serializedName: "properties.httpGatewayTokenAuthConnectionPort", - type: { - name: "Number", - }, - }, - enableHttpGatewayExclusiveAuthMode: { - serializedName: "properties.enableHttpGatewayExclusiveAuthMode", - type: { - name: "Boolean", + className: "Partition", }, }, - autoGeneratedDomainNameLabelScope: { - serializedName: "properties.autoGeneratedDomainNameLabelScope", + servicePackageActivationMode: { + serializedName: "properties.servicePackageActivationMode", type: { name: "String", }, }, - allocatedOutboundPorts: { - serializedName: "properties.allocatedOutboundPorts", + serviceDnsName: { + serializedName: "properties.serviceDnsName", type: { - name: "Number", + name: "String", }, }, }, @@ -3600,7 +3977,14 @@ export const NodeType: coreClient.CompositeMapper = { name: "Composite", className: "NodeType", modelProperties: { - ...ManagedProxyResource.type.modelProperties, + ...ProxyResource.type.modelProperties, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } }, + }, + }, sku: { serializedName: "sku", type: { @@ -3631,7 +4015,6 @@ export const NodeType: coreClient.CompositeMapper = { }, }, dataDiskType: { - defaultValue: "StandardSSD_LRS", serializedName: "properties.dataDiskType", type: { name: "String", @@ -3736,14 +4119,12 @@ export const NodeType: coreClient.CompositeMapper = { }, }, isStateless: { - defaultValue: false, serializedName: "properties.isStateless", type: { name: "Boolean", }, }, multiplePlacementGroups: { - defaultValue: false, serializedName: "properties.multiplePlacementGroups", type: { name: "Boolean", @@ -3786,7 +4167,6 @@ export const NodeType: coreClient.CompositeMapper = { }, }, enableEncryptionAtHost: { - defaultValue: false, serializedName: "properties.enableEncryptionAtHost", type: { name: "Boolean", @@ -4040,44 +4420,167 @@ export const StatefulServiceProperties: coreClient.CompositeMapper = { name: "String", }, }, - servicePlacementTimeLimit: { - serializedName: "servicePlacementTimeLimit", - type: { - name: "String", + servicePlacementTimeLimit: { + serializedName: "servicePlacementTimeLimit", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const StatelessServiceProperties: coreClient.CompositeMapper = { + serializedName: "Stateless", + type: { + name: "Composite", + className: "StatelessServiceProperties", + uberParent: "ServiceResourceProperties", + polymorphicDiscriminator: + ServiceResourceProperties.type.polymorphicDiscriminator, + modelProperties: { + ...ServiceResourceProperties.type.modelProperties, + instanceCount: { + constraints: { + InclusiveMinimum: -1, + }, + serializedName: "instanceCount", + required: true, + type: { + name: "Number", + }, + }, + minInstanceCount: { + serializedName: "minInstanceCount", + type: { + name: "Number", + }, + }, + minInstancePercentage: { + serializedName: "minInstancePercentage", + type: { + name: "Number", + }, + }, + }, + }, +}; + +export const OperationResultsGetHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OperationResultsGetHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const ManagedClustersCreateOrUpdateHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ManagedClustersCreateOrUpdateHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + retryAfter: { + serializedName: "retry-after", + type: { + name: "Number", + }, + }, + }, + }, + }; + +export const ManagedClustersDeleteHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedClustersDeleteHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + retryAfter: { + serializedName: "retry-after", + type: { + name: "Number", + }, + }, + }, + }, +}; + +export const ManagedClustersStartFaultSimulationHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ManagedClustersStartFaultSimulationHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + retryAfter: { + serializedName: "retry-after", + type: { + name: "Number", + }, + }, + }, + }, + }; + +export const ManagedClustersStopFaultSimulationHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ManagedClustersStopFaultSimulationHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + retryAfter: { + serializedName: "retry-after", + type: { + name: "Number", + }, }, }, }, - }, -}; + }; -export const StatelessServiceProperties: coreClient.CompositeMapper = { - serializedName: "Stateless", +export const ApplicationTypesDeleteHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "StatelessServiceProperties", - uberParent: "ServiceResourceProperties", - polymorphicDiscriminator: - ServiceResourceProperties.type.polymorphicDiscriminator, + className: "ApplicationTypesDeleteHeaders", modelProperties: { - ...ServiceResourceProperties.type.modelProperties, - instanceCount: { - constraints: { - InclusiveMinimum: -1, - }, - serializedName: "instanceCount", - required: true, - type: { - name: "Number", - }, - }, - minInstanceCount: { - serializedName: "minInstanceCount", + location: { + serializedName: "location", type: { - name: "Number", + name: "String", }, }, - minInstancePercentage: { - serializedName: "minInstancePercentage", + retryAfter: { + serializedName: "retry-after", type: { name: "Number", }, @@ -4092,16 +4595,16 @@ export const ApplicationTypeVersionsCreateOrUpdateHeaders: coreClient.CompositeM name: "Composite", className: "ApplicationTypeVersionsCreateOrUpdateHeaders", modelProperties: { - azureAsyncOperation: { - serializedName: "azure-asyncoperation", + location: { + serializedName: "location", type: { name: "String", }, }, - location: { - serializedName: "location", + retryAfter: { + serializedName: "retry-after", type: { - name: "String", + name: "Number", }, }, }, @@ -4114,121 +4617,121 @@ export const ApplicationTypeVersionsDeleteHeaders: coreClient.CompositeMapper = name: "Composite", className: "ApplicationTypeVersionsDeleteHeaders", modelProperties: { - azureAsyncOperation: { - serializedName: "azure-asyncoperation", + location: { + serializedName: "location", type: { name: "String", }, }, - location: { - serializedName: "location", + retryAfter: { + serializedName: "retry-after", type: { - name: "String", + name: "Number", }, }, }, }, }; -export const ApplicationsReadUpgradeHeaders: coreClient.CompositeMapper = { +export const ApplicationsCreateOrUpdateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ApplicationsReadUpgradeHeaders", + className: "ApplicationsCreateOrUpdateHeaders", modelProperties: { - azureAsyncOperation: { - serializedName: "azure-asyncoperation", + location: { + serializedName: "location", type: { name: "String", }, }, - location: { - serializedName: "location", + retryAfter: { + serializedName: "retry-after", type: { - name: "String", + name: "Number", }, }, }, }, }; -export const ApplicationsStartRollbackHeaders: coreClient.CompositeMapper = { +export const ApplicationsDeleteHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ApplicationsStartRollbackHeaders", + className: "ApplicationsDeleteHeaders", modelProperties: { - azureAsyncOperation: { - serializedName: "azure-asyncoperation", + location: { + serializedName: "location", type: { name: "String", }, }, - location: { - serializedName: "location", + retryAfter: { + serializedName: "retry-after", type: { - name: "String", + name: "Number", }, }, }, }, }; -export const ApplicationsResumeUpgradeHeaders: coreClient.CompositeMapper = { +export const ApplicationsReadUpgradeHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ApplicationsResumeUpgradeHeaders", + className: "ApplicationsReadUpgradeHeaders", modelProperties: { - azureAsyncOperation: { - serializedName: "azure-asyncoperation", + location: { + serializedName: "location", type: { name: "String", }, }, - location: { - serializedName: "location", + retryAfter: { + serializedName: "retry-after", type: { - name: "String", + name: "Number", }, }, }, }, }; -export const ApplicationsCreateOrUpdateHeaders: coreClient.CompositeMapper = { +export const ApplicationsResumeUpgradeHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ApplicationsCreateOrUpdateHeaders", + className: "ApplicationsResumeUpgradeHeaders", modelProperties: { - azureAsyncOperation: { - serializedName: "azure-asyncoperation", + location: { + serializedName: "location", type: { name: "String", }, }, - location: { - serializedName: "location", + retryAfter: { + serializedName: "retry-after", type: { - name: "String", + name: "Number", }, }, }, }, }; -export const ApplicationsDeleteHeaders: coreClient.CompositeMapper = { +export const ApplicationsStartRollbackHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ApplicationsDeleteHeaders", + className: "ApplicationsStartRollbackHeaders", modelProperties: { - azureAsyncOperation: { - serializedName: "azure-asyncoperation", + location: { + serializedName: "location", type: { name: "String", }, }, - location: { - serializedName: "location", + retryAfter: { + serializedName: "retry-after", type: { - name: "String", + name: "Number", }, }, }, @@ -4240,16 +4743,16 @@ export const ServicesCreateOrUpdateHeaders: coreClient.CompositeMapper = { name: "Composite", className: "ServicesCreateOrUpdateHeaders", modelProperties: { - azureAsyncOperation: { - serializedName: "azure-asyncoperation", + location: { + serializedName: "location", type: { name: "String", }, }, - location: { - serializedName: "location", + retryAfter: { + serializedName: "retry-after", type: { - name: "String", + name: "Number", }, }, }, @@ -4261,69 +4764,47 @@ export const ServicesDeleteHeaders: coreClient.CompositeMapper = { name: "Composite", className: "ServicesDeleteHeaders", modelProperties: { - azureAsyncOperation: { - serializedName: "azure-asyncoperation", + location: { + serializedName: "location", type: { name: "String", }, }, - location: { - serializedName: "location", + retryAfter: { + serializedName: "retry-after", type: { - name: "String", + name: "Number", }, }, }, }, }; -export const ManagedClustersCreateOrUpdateHeaders: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "ManagedClustersCreateOrUpdateHeaders", - modelProperties: { - azureAsyncOperation: { - serializedName: "azure-asyncoperation", - type: { - name: "String", - }, - }, - location: { - serializedName: "location", - type: { - name: "String", - }, - }, - }, - }, - }; - -export const ManagedClustersDeleteHeaders: coreClient.CompositeMapper = { +export const NodeTypesCreateOrUpdateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedClustersDeleteHeaders", + className: "NodeTypesCreateOrUpdateHeaders", modelProperties: { - azureAsyncOperation: { - serializedName: "azure-asyncoperation", + location: { + serializedName: "location", type: { name: "String", }, }, - location: { - serializedName: "location", + retryAfter: { + serializedName: "retry-after", type: { - name: "String", + name: "Number", }, }, }, }, }; -export const OperationResultsGetHeaders: coreClient.CompositeMapper = { +export const NodeTypesUpdateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OperationResultsGetHeaders", + className: "NodeTypesUpdateHeaders", modelProperties: { location: { serializedName: "location", @@ -4331,46 +4812,52 @@ export const OperationResultsGetHeaders: coreClient.CompositeMapper = { name: "String", }, }, + retryAfter: { + serializedName: "retry-after", + type: { + name: "Number", + }, + }, }, }, }; -export const NodeTypesRestartHeaders: coreClient.CompositeMapper = { +export const NodeTypesDeleteHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NodeTypesRestartHeaders", + className: "NodeTypesDeleteHeaders", modelProperties: { - azureAsyncOperation: { - serializedName: "azure-asyncoperation", + location: { + serializedName: "location", type: { name: "String", }, }, - location: { - serializedName: "location", + retryAfter: { + serializedName: "retry-after", type: { - name: "String", + name: "Number", }, }, }, }, }; -export const NodeTypesReimageHeaders: coreClient.CompositeMapper = { +export const NodeTypesDeallocateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NodeTypesReimageHeaders", + className: "NodeTypesDeallocateHeaders", modelProperties: { - azureAsyncOperation: { - serializedName: "azure-asyncoperation", + location: { + serializedName: "location", type: { name: "String", }, }, - location: { - serializedName: "location", + retryAfter: { + serializedName: "retry-after", type: { - name: "String", + name: "Number", }, }, }, @@ -4382,81 +4869,145 @@ export const NodeTypesDeleteNodeHeaders: coreClient.CompositeMapper = { name: "Composite", className: "NodeTypesDeleteNodeHeaders", modelProperties: { - azureAsyncOperation: { - serializedName: "azure-asyncoperation", + location: { + serializedName: "location", type: { name: "String", }, }, - location: { - serializedName: "location", + retryAfter: { + serializedName: "retry-after", type: { - name: "String", + name: "Number", }, }, }, }, }; -export const NodeTypesCreateOrUpdateHeaders: coreClient.CompositeMapper = { +export const NodeTypesRedeployHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NodeTypesCreateOrUpdateHeaders", + className: "NodeTypesRedeployHeaders", modelProperties: { - azureAsyncOperation: { - serializedName: "azure-asyncoperation", + location: { + serializedName: "location", type: { name: "String", }, }, - location: { - serializedName: "location", + retryAfter: { + serializedName: "retry-after", type: { - name: "String", + name: "Number", }, }, }, }, }; -export const NodeTypesUpdateHeaders: coreClient.CompositeMapper = { +export const NodeTypesReimageHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NodeTypesUpdateHeaders", + className: "NodeTypesReimageHeaders", modelProperties: { - azureAsyncOperation: { - serializedName: "azure-asyncoperation", + location: { + serializedName: "location", type: { name: "String", }, }, + retryAfter: { + serializedName: "retry-after", + type: { + name: "Number", + }, + }, + }, + }, +}; + +export const NodeTypesRestartHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NodeTypesRestartHeaders", + modelProperties: { location: { serializedName: "location", type: { name: "String", }, }, + retryAfter: { + serializedName: "retry-after", + type: { + name: "Number", + }, + }, }, }, }; -export const NodeTypesDeleteHeaders: coreClient.CompositeMapper = { +export const NodeTypesStartHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NodeTypesDeleteHeaders", + className: "NodeTypesStartHeaders", modelProperties: { - azureAsyncOperation: { - serializedName: "azure-asyncoperation", + location: { + serializedName: "location", type: { name: "String", }, }, + retryAfter: { + serializedName: "retry-after", + type: { + name: "Number", + }, + }, + }, + }, +}; + +export const NodeTypesStartFaultSimulationHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "NodeTypesStartFaultSimulationHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + retryAfter: { + serializedName: "retry-after", + type: { + name: "Number", + }, + }, + }, + }, + }; + +export const NodeTypesStopFaultSimulationHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NodeTypesStopFaultSimulationHeaders", + modelProperties: { location: { serializedName: "location", type: { name: "String", }, }, + retryAfter: { + serializedName: "retry-after", + type: { + name: "Number", + }, + }, }, }, }; @@ -4466,6 +5017,7 @@ export let discriminators = { ServicePlacementPolicy: ServicePlacementPolicy, ScalingMechanism: ScalingMechanism, ScalingTrigger: ScalingTrigger, + FaultSimulationParameters: FaultSimulationParameters, "Partition.Named": NamedPartitionScheme, "Partition.Singleton": SingletonPartitionScheme, "Partition.UniformInt64Range": UniformInt64RangePartitionScheme, @@ -4476,9 +5028,9 @@ export let discriminators = { ServicePlacementNonPartiallyPlaceServicePolicy, "ServicePlacementPolicy.PreferredPrimaryDomain": ServicePlacementPreferPrimaryDomainPolicy, - "ServicePlacementPolicy.RequiredDomain": ServicePlacementRequiredDomainPolicy, "ServicePlacementPolicy.RequiredDomainDistribution": ServicePlacementRequireDomainDistributionPolicy, + "ServicePlacementPolicy.RequiredDomain": ServicePlacementRequiredDomainPolicy, "ScalingMechanism.AddRemoveIncrementalNamedPartition": AddRemoveIncrementalNamedPartitionScalingMechanism, "ScalingMechanism.ScalePartitionInstanceCount": @@ -4486,6 +5038,7 @@ export let discriminators = { "ScalingTrigger.AveragePartitionLoadTrigger": AveragePartitionLoadScalingTrigger, "ScalingTrigger.AverageServiceLoadTrigger": AverageServiceLoadScalingTrigger, + "FaultSimulationParameters.Zone": ZoneFaultSimulationParameters, "ServiceResourceProperties.Stateful": StatefulServiceProperties, "ServiceResourceProperties.Stateless": StatelessServiceProperties, }; diff --git a/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/models/parameters.ts b/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/models/parameters.ts index 2194b2d777b4..4fa0a4efc4f6 100644 --- a/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/models/parameters.ts +++ b/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/models/parameters.ts @@ -12,20 +12,22 @@ import { OperationQueryParameter, } from "@azure/core-client"; import { + ManagedCluster as ManagedClusterMapper, + ManagedClusterUpdateParameters as ManagedClusterUpdateParametersMapper, + FaultSimulationIdParameters as FaultSimulationIdParametersMapper, + FaultSimulationParameters as FaultSimulationParametersMapper, ApplicationTypeResource as ApplicationTypeResourceMapper, ApplicationTypeUpdateParameters as ApplicationTypeUpdateParametersMapper, ApplicationTypeVersionResource as ApplicationTypeVersionResourceMapper, ApplicationTypeVersionUpdateParameters as ApplicationTypeVersionUpdateParametersMapper, - RuntimeResumeApplicationUpgradeParameters as RuntimeResumeApplicationUpgradeParametersMapper, ApplicationResource as ApplicationResourceMapper, ApplicationUpdateParameters as ApplicationUpdateParametersMapper, + RuntimeResumeApplicationUpgradeParameters as RuntimeResumeApplicationUpgradeParametersMapper, ServiceResource as ServiceResourceMapper, ServiceUpdateParameters as ServiceUpdateParametersMapper, - ManagedCluster as ManagedClusterMapper, - ManagedClusterUpdateParameters as ManagedClusterUpdateParametersMapper, - NodeTypeActionParameters as NodeTypeActionParametersMapper, NodeType as NodeTypeMapper, NodeTypeUpdateParameters as NodeTypeUpdateParametersMapper, + NodeTypeActionParameters as NodeTypeActionParametersMapper, } from "../models/mappers.js"; export const accept: OperationParameter = { @@ -52,9 +54,36 @@ export const $host: OperationURLParameter = { skipEncoding: true, }; +export const apiVersion: OperationQueryParameter = { + parameterPath: "apiVersion", + mapper: { + defaultValue: "2024-11-01-preview", + isConstant: true, + serializedName: "api-version", + type: { + name: "String", + }, + }, +}; + +export const nextLink: OperationURLParameter = { + parameterPath: "nextLink", + mapper: { + serializedName: "nextLink", + required: true, + type: { + name: "String", + }, + }, + skipEncoding: true, +}; + export const subscriptionId: OperationURLParameter = { parameterPath: "subscriptionId", mapper: { + constraints: { + MinLength: 1, + }, serializedName: "subscriptionId", required: true, type: { @@ -63,10 +92,10 @@ export const subscriptionId: OperationURLParameter = { }, }; -export const resourceGroupName: OperationURLParameter = { - parameterPath: "resourceGroupName", +export const location: OperationURLParameter = { + parameterPath: "location", mapper: { - serializedName: "resourceGroupName", + serializedName: "location", required: true, type: { name: "String", @@ -74,10 +103,10 @@ export const resourceGroupName: OperationURLParameter = { }, }; -export const clusterName: OperationURLParameter = { - parameterPath: "clusterName", +export const environment: OperationURLParameter = { + parameterPath: "environment", mapper: { - serializedName: "clusterName", + serializedName: "environment", required: true, type: { name: "String", @@ -85,10 +114,10 @@ export const clusterName: OperationURLParameter = { }, }; -export const applicationTypeName: OperationURLParameter = { - parameterPath: "applicationTypeName", +export const clusterVersion: OperationURLParameter = { + parameterPath: "clusterVersion", mapper: { - serializedName: "applicationTypeName", + serializedName: "clusterVersion", required: true, type: { name: "String", @@ -96,77 +125,104 @@ export const applicationTypeName: OperationURLParameter = { }, }; -export const apiVersion: OperationQueryParameter = { - parameterPath: "apiVersion", +export const location1: OperationURLParameter = { + parameterPath: "location", mapper: { - defaultValue: "2024-09-01-preview", - isConstant: true, - serializedName: "api-version", + constraints: { + MinLength: 1, + }, + serializedName: "location", + required: true, type: { name: "String", }, }, }; -export const contentType: OperationParameter = { - parameterPath: ["options", "contentType"], +export const operationId: OperationURLParameter = { + parameterPath: "operationId", mapper: { - defaultValue: "application/json", - isConstant: true, - serializedName: "Content-Type", + serializedName: "operationId", + required: true, type: { name: "String", }, }, }; -export const parameters: OperationParameter = { - parameterPath: "parameters", - mapper: ApplicationTypeResourceMapper, +export const vmSize: OperationURLParameter = { + parameterPath: "vmSize", + mapper: { + serializedName: "vmSize", + required: true, + type: { + name: "String", + }, + }, }; -export const parameters1: OperationParameter = { - parameterPath: "parameters", - mapper: ApplicationTypeUpdateParametersMapper, +export const resourceGroupName: OperationURLParameter = { + parameterPath: "resourceGroupName", + mapper: { + constraints: { + MaxLength: 90, + MinLength: 1, + }, + serializedName: "resourceGroupName", + required: true, + type: { + name: "String", + }, + }, }; -export const nextLink: OperationURLParameter = { - parameterPath: "nextLink", +export const clusterName: OperationURLParameter = { + parameterPath: "clusterName", mapper: { - serializedName: "nextLink", + serializedName: "clusterName", required: true, type: { name: "String", }, }, - skipEncoding: true, }; -export const version: OperationURLParameter = { - parameterPath: "version", +export const contentType: OperationParameter = { + parameterPath: ["options", "contentType"], mapper: { - serializedName: "version", - required: true, + defaultValue: "application/json", + isConstant: true, + serializedName: "Content-Type", type: { name: "String", }, }, }; +export const parameters: OperationParameter = { + parameterPath: "parameters", + mapper: ManagedClusterMapper, +}; + +export const parameters1: OperationParameter = { + parameterPath: "parameters", + mapper: ManagedClusterUpdateParametersMapper, +}; + export const parameters2: OperationParameter = { parameterPath: "parameters", - mapper: ApplicationTypeVersionResourceMapper, + mapper: FaultSimulationIdParametersMapper, }; export const parameters3: OperationParameter = { parameterPath: "parameters", - mapper: ApplicationTypeVersionUpdateParametersMapper, + mapper: FaultSimulationParametersMapper, }; -export const applicationName: OperationURLParameter = { - parameterPath: "applicationName", +export const applicationTypeName: OperationURLParameter = { + parameterPath: "applicationTypeName", mapper: { - serializedName: "applicationName", + serializedName: "applicationTypeName", required: true, type: { name: "String", @@ -176,23 +232,18 @@ export const applicationName: OperationURLParameter = { export const parameters4: OperationParameter = { parameterPath: "parameters", - mapper: RuntimeResumeApplicationUpgradeParametersMapper, + mapper: ApplicationTypeResourceMapper, }; export const parameters5: OperationParameter = { parameterPath: "parameters", - mapper: ApplicationResourceMapper, -}; - -export const parameters6: OperationParameter = { - parameterPath: "parameters", - mapper: ApplicationUpdateParametersMapper, + mapper: ApplicationTypeUpdateParametersMapper, }; -export const serviceName: OperationURLParameter = { - parameterPath: "serviceName", +export const version: OperationURLParameter = { + parameterPath: "version", mapper: { - serializedName: "serviceName", + serializedName: "version", required: true, type: { name: "String", @@ -200,30 +251,20 @@ export const serviceName: OperationURLParameter = { }, }; -export const parameters7: OperationParameter = { - parameterPath: "parameters", - mapper: ServiceResourceMapper, -}; - -export const parameters8: OperationParameter = { - parameterPath: "parameters", - mapper: ServiceUpdateParametersMapper, -}; - -export const parameters9: OperationParameter = { +export const parameters6: OperationParameter = { parameterPath: "parameters", - mapper: ManagedClusterMapper, + mapper: ApplicationTypeVersionResourceMapper, }; -export const parameters10: OperationParameter = { +export const parameters7: OperationParameter = { parameterPath: "parameters", - mapper: ManagedClusterUpdateParametersMapper, + mapper: ApplicationTypeVersionUpdateParametersMapper, }; -export const location: OperationURLParameter = { - parameterPath: "location", +export const applicationName: OperationURLParameter = { + parameterPath: "applicationName", mapper: { - serializedName: "location", + serializedName: "applicationName", required: true, type: { name: "String", @@ -231,43 +272,25 @@ export const location: OperationURLParameter = { }, }; -export const clusterVersion: OperationURLParameter = { - parameterPath: "clusterVersion", - mapper: { - serializedName: "clusterVersion", - required: true, - type: { - name: "String", - }, - }, +export const parameters8: OperationParameter = { + parameterPath: "parameters", + mapper: ApplicationResourceMapper, }; -export const environment: OperationURLParameter = { - parameterPath: "environment", - mapper: { - serializedName: "environment", - required: true, - type: { - name: "String", - }, - }, +export const parameters9: OperationParameter = { + parameterPath: "parameters", + mapper: ApplicationUpdateParametersMapper, }; -export const vmSize: OperationURLParameter = { - parameterPath: "vmSize", - mapper: { - serializedName: "vmSize", - required: true, - type: { - name: "String", - }, - }, +export const parameters10: OperationParameter = { + parameterPath: "parameters", + mapper: RuntimeResumeApplicationUpgradeParametersMapper, }; -export const operationId: OperationURLParameter = { - parameterPath: "operationId", +export const serviceName: OperationURLParameter = { + parameterPath: "serviceName", mapper: { - serializedName: "operationId", + serializedName: "serviceName", required: true, type: { name: "String", @@ -277,7 +300,12 @@ export const operationId: OperationURLParameter = { export const parameters11: OperationParameter = { parameterPath: "parameters", - mapper: NodeTypeActionParametersMapper, + mapper: ServiceResourceMapper, +}; + +export const parameters12: OperationParameter = { + parameterPath: "parameters", + mapper: ServiceUpdateParametersMapper, }; export const nodeTypeName: OperationURLParameter = { @@ -291,12 +319,17 @@ export const nodeTypeName: OperationURLParameter = { }, }; -export const parameters12: OperationParameter = { +export const parameters13: OperationParameter = { parameterPath: "parameters", mapper: NodeTypeMapper, }; -export const parameters13: OperationParameter = { +export const parameters14: OperationParameter = { parameterPath: "parameters", mapper: NodeTypeUpdateParametersMapper, }; + +export const parameters15: OperationParameter = { + parameterPath: "parameters", + mapper: NodeTypeActionParametersMapper, +}; diff --git a/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/operations/applicationTypeVersions.ts b/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/operations/applicationTypeVersions.ts index 745c91e10dab..12f173bf5103 100644 --- a/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/operations/applicationTypeVersions.ts +++ b/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/operations/applicationTypeVersions.ts @@ -32,6 +32,7 @@ import { ApplicationTypeVersionsUpdateOptionalParams, ApplicationTypeVersionsUpdateResponse, ApplicationTypeVersionsDeleteOptionalParams, + ApplicationTypeVersionsDeleteResponse, ApplicationTypeVersionsListByApplicationTypesNextResponse, } from "../models/index.js"; @@ -51,7 +52,7 @@ export class ApplicationTypeVersionsImpl implements ApplicationTypeVersions { /** * Gets all application type version resources created or in the process of being created in the * Service Fabric managed application type name resource. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. * @param applicationTypeName The name of the application type name resource. * @param options The options parameters. @@ -142,10 +143,30 @@ export class ApplicationTypeVersionsImpl implements ApplicationTypeVersions { } } + /** + * Gets all application type version resources created or in the process of being created in the + * Service Fabric managed application type name resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster resource. + * @param applicationTypeName The name of the application type name resource. + * @param options The options parameters. + */ + private _listByApplicationTypes( + resourceGroupName: string, + clusterName: string, + applicationTypeName: string, + options?: ApplicationTypeVersionsListByApplicationTypesOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, clusterName, applicationTypeName, options }, + listByApplicationTypesOperationSpec, + ); + } + /** * Get a Service Fabric managed application type version resource created or in the process of being * created in the Service Fabric managed application type name resource. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. * @param applicationTypeName The name of the application type name resource. * @param version The application type version. @@ -166,7 +187,7 @@ export class ApplicationTypeVersionsImpl implements ApplicationTypeVersions { /** * Create or update a Service Fabric managed application type version resource with the specified name. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. * @param applicationTypeName The name of the application type name resource. * @param version The application type version. @@ -250,7 +271,7 @@ export class ApplicationTypeVersionsImpl implements ApplicationTypeVersions { /** * Create or update a Service Fabric managed application type version resource with the specified name. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. * @param applicationTypeName The name of the application type name resource. * @param version The application type version. @@ -278,7 +299,7 @@ export class ApplicationTypeVersionsImpl implements ApplicationTypeVersions { /** * Updates the tags of an application type version resource of a given managed cluster. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. * @param applicationTypeName The name of the application type name resource. * @param version The application type version. @@ -308,7 +329,7 @@ export class ApplicationTypeVersionsImpl implements ApplicationTypeVersions { /** * Delete a Service Fabric managed application type version resource with the specified name. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. * @param applicationTypeName The name of the application type name resource. * @param version The application type version. @@ -320,11 +341,16 @@ export class ApplicationTypeVersionsImpl implements ApplicationTypeVersions { applicationTypeName: string, version: string, options?: ApplicationTypeVersionsDeleteOptionalParams, - ): Promise, void>> { + ): Promise< + SimplePollerLike< + OperationState, + ApplicationTypeVersionsDeleteResponse + > + > { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec, - ): Promise => { + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( @@ -370,7 +396,10 @@ export class ApplicationTypeVersionsImpl implements ApplicationTypeVersions { }, spec: deleteOperationSpec, }); - const poller = await createHttpPoller>(lro, { + const poller = await createHttpPoller< + ApplicationTypeVersionsDeleteResponse, + OperationState + >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, resourceLocationConfig: "location", @@ -381,7 +410,7 @@ export class ApplicationTypeVersionsImpl implements ApplicationTypeVersions { /** * Delete a Service Fabric managed application type version resource with the specified name. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. * @param applicationTypeName The name of the application type name resource. * @param version The application type version. @@ -393,7 +422,7 @@ export class ApplicationTypeVersionsImpl implements ApplicationTypeVersions { applicationTypeName: string, version: string, options?: ApplicationTypeVersionsDeleteOptionalParams, - ): Promise { + ): Promise { const poller = await this.beginDelete( resourceGroupName, clusterName, @@ -404,29 +433,9 @@ export class ApplicationTypeVersionsImpl implements ApplicationTypeVersions { return poller.pollUntilDone(); } - /** - * Gets all application type version resources created or in the process of being created in the - * Service Fabric managed application type name resource. - * @param resourceGroupName The name of the resource group. - * @param clusterName The name of the cluster resource. - * @param applicationTypeName The name of the application type name resource. - * @param options The options parameters. - */ - private _listByApplicationTypes( - resourceGroupName: string, - clusterName: string, - applicationTypeName: string, - options?: ApplicationTypeVersionsListByApplicationTypesOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, clusterName, applicationTypeName, options }, - listByApplicationTypesOperationSpec, - ); - } - /** * ListByApplicationTypesNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. * @param applicationTypeName The name of the application type name resource. * @param nextLink The nextLink from the previous successful call to the ListByApplicationTypes method. @@ -454,15 +463,37 @@ export class ApplicationTypeVersionsImpl implements ApplicationTypeVersions { // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); +const listByApplicationTypesOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/managedClusters/{clusterName}/applicationTypes/{applicationTypeName}/versions", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ApplicationTypeVersionResourceList, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.clusterName, + Parameters.applicationTypeName, + ], + headerParameters: [Parameters.accept], + serializer, +}; const getOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/managedclusters/{clusterName}/applicationTypes/{applicationTypeName}/versions/{version}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/managedClusters/{clusterName}/applicationTypes/{applicationTypeName}/versions/{version}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.ApplicationTypeVersionResource, }, default: { - bodyMapper: Mappers.ErrorModel, + bodyMapper: Mappers.ErrorResponse, }, }, queryParameters: [Parameters.apiVersion], @@ -478,7 +509,7 @@ const getOperationSpec: coreClient.OperationSpec = { serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/managedclusters/{clusterName}/applicationTypes/{applicationTypeName}/versions/{version}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/managedClusters/{clusterName}/applicationTypes/{applicationTypeName}/versions/{version}", httpMethod: "PUT", responses: { 200: { @@ -494,10 +525,10 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ApplicationTypeVersionResource, }, default: { - bodyMapper: Mappers.ErrorModel, + bodyMapper: Mappers.ErrorResponse, }, }, - requestBody: Parameters.parameters2, + requestBody: Parameters.parameters6, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -512,17 +543,17 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/managedclusters/{clusterName}/applicationTypes/{applicationTypeName}/versions/{version}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/managedClusters/{clusterName}/applicationTypes/{applicationTypeName}/versions/{version}", httpMethod: "PATCH", responses: { 200: { bodyMapper: Mappers.ApplicationTypeVersionResource, }, default: { - bodyMapper: Mappers.ErrorModel, + bodyMapper: Mappers.ErrorResponse, }, }, - requestBody: Parameters.parameters3, + requestBody: Parameters.parameters7, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -537,38 +568,23 @@ const updateOperationSpec: coreClient.OperationSpec = { serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/managedclusters/{clusterName}/applicationTypes/{applicationTypeName}/versions/{version}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/managedClusters/{clusterName}/applicationTypes/{applicationTypeName}/versions/{version}", httpMethod: "DELETE", - responses: { - 200: {}, - 201: {}, - 202: {}, - 204: {}, - default: { - bodyMapper: Mappers.ErrorModel, - }, - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.clusterName, - Parameters.applicationTypeName, - Parameters.version, - ], - headerParameters: [Parameters.accept], - serializer, -}; -const listByApplicationTypesOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/managedclusters/{clusterName}/applicationTypes/{applicationTypeName}/versions", - httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ApplicationTypeVersionResourceList, + headersMapper: Mappers.ApplicationTypeVersionsDeleteHeaders, + }, + 201: { + headersMapper: Mappers.ApplicationTypeVersionsDeleteHeaders, + }, + 202: { + headersMapper: Mappers.ApplicationTypeVersionsDeleteHeaders, + }, + 204: { + headersMapper: Mappers.ApplicationTypeVersionsDeleteHeaders, }, default: { - bodyMapper: Mappers.ErrorModel, + bodyMapper: Mappers.ErrorResponse, }, }, queryParameters: [Parameters.apiVersion], @@ -578,6 +594,7 @@ const listByApplicationTypesOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.clusterName, Parameters.applicationTypeName, + Parameters.version, ], headerParameters: [Parameters.accept], serializer, @@ -590,16 +607,16 @@ const listByApplicationTypesNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ApplicationTypeVersionResourceList, }, default: { - bodyMapper: Mappers.ErrorModel, + bodyMapper: Mappers.ErrorResponse, }, }, urlParameters: [ Parameters.$host, + Parameters.nextLink, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.clusterName, Parameters.applicationTypeName, - Parameters.nextLink, ], headerParameters: [Parameters.accept], serializer, diff --git a/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/operations/applicationTypes.ts b/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/operations/applicationTypes.ts index 9b0106b29a2f..6ba6e35eb4fb 100644 --- a/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/operations/applicationTypes.ts +++ b/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/operations/applicationTypes.ts @@ -32,6 +32,7 @@ import { ApplicationTypesUpdateOptionalParams, ApplicationTypesUpdateResponse, ApplicationTypesDeleteOptionalParams, + ApplicationTypesDeleteResponse, ApplicationTypesListNextResponse, } from "../models/index.js"; @@ -51,7 +52,7 @@ export class ApplicationTypesImpl implements ApplicationTypes { /** * Gets all application type name resources created or in the process of being created in the Service * Fabric managed cluster resource. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. * @param options The options parameters. */ @@ -125,10 +126,28 @@ export class ApplicationTypesImpl implements ApplicationTypes { } } + /** + * Gets all application type name resources created or in the process of being created in the Service + * Fabric managed cluster resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster resource. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + clusterName: string, + options?: ApplicationTypesListOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, clusterName, options }, + listOperationSpec, + ); + } + /** * Get a Service Fabric application type name resource created or in the process of being created in * the Service Fabric managed cluster resource. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. * @param applicationTypeName The name of the application type name resource. * @param options The options parameters. @@ -147,7 +166,7 @@ export class ApplicationTypesImpl implements ApplicationTypes { /** * Create or update a Service Fabric managed application type name resource with the specified name. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. * @param applicationTypeName The name of the application type name resource. * @param parameters The application type name resource. @@ -174,7 +193,7 @@ export class ApplicationTypesImpl implements ApplicationTypes { /** * Updates the tags of an application type resource of a given managed cluster. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. * @param applicationTypeName The name of the application type name resource. * @param parameters The application type resource updated tags. @@ -201,7 +220,7 @@ export class ApplicationTypesImpl implements ApplicationTypes { /** * Delete a Service Fabric managed application type name resource with the specified name. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. * @param applicationTypeName The name of the application type name resource. * @param options The options parameters. @@ -211,11 +230,16 @@ export class ApplicationTypesImpl implements ApplicationTypes { clusterName: string, applicationTypeName: string, options?: ApplicationTypesDeleteOptionalParams, - ): Promise, void>> { + ): Promise< + SimplePollerLike< + OperationState, + ApplicationTypesDeleteResponse + > + > { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec, - ): Promise => { + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( @@ -255,7 +279,10 @@ export class ApplicationTypesImpl implements ApplicationTypes { args: { resourceGroupName, clusterName, applicationTypeName, options }, spec: deleteOperationSpec, }); - const poller = await createHttpPoller>(lro, { + const poller = await createHttpPoller< + ApplicationTypesDeleteResponse, + OperationState + >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, resourceLocationConfig: "location", @@ -266,7 +293,7 @@ export class ApplicationTypesImpl implements ApplicationTypes { /** * Delete a Service Fabric managed application type name resource with the specified name. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. * @param applicationTypeName The name of the application type name resource. * @param options The options parameters. @@ -276,7 +303,7 @@ export class ApplicationTypesImpl implements ApplicationTypes { clusterName: string, applicationTypeName: string, options?: ApplicationTypesDeleteOptionalParams, - ): Promise { + ): Promise { const poller = await this.beginDelete( resourceGroupName, clusterName, @@ -286,27 +313,9 @@ export class ApplicationTypesImpl implements ApplicationTypes { return poller.pollUntilDone(); } - /** - * Gets all application type name resources created or in the process of being created in the Service - * Fabric managed cluster resource. - * @param resourceGroupName The name of the resource group. - * @param clusterName The name of the cluster resource. - * @param options The options parameters. - */ - private _list( - resourceGroupName: string, - clusterName: string, - options?: ApplicationTypesListOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, clusterName, options }, - listOperationSpec, - ); - } - /** * ListNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. * @param nextLink The nextLink from the previous successful call to the List method. * @param options The options parameters. @@ -326,15 +335,15 @@ export class ApplicationTypesImpl implements ApplicationTypes { // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); -const getOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/managedclusters/{clusterName}/applicationTypes/{applicationTypeName}", +const listOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/managedClusters/{clusterName}/applicationTypes", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ApplicationTypeResource, + bodyMapper: Mappers.ApplicationTypeResourceList, }, default: { - bodyMapper: Mappers.ErrorModel, + bodyMapper: Mappers.ErrorResponse, }, }, queryParameters: [Parameters.apiVersion], @@ -343,23 +352,21 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.clusterName, - Parameters.applicationTypeName, ], headerParameters: [Parameters.accept], serializer, }; -const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/managedclusters/{clusterName}/applicationTypes/{applicationTypeName}", - httpMethod: "PUT", +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/managedClusters/{clusterName}/applicationTypes/{applicationTypeName}", + httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.ApplicationTypeResource, }, default: { - bodyMapper: Mappers.ErrorModel, + bodyMapper: Mappers.ErrorResponse, }, }, - requestBody: Parameters.parameters, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -368,22 +375,21 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.clusterName, Parameters.applicationTypeName, ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", + headerParameters: [Parameters.accept], serializer, }; -const updateOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/managedclusters/{clusterName}/applicationTypes/{applicationTypeName}", - httpMethod: "PATCH", +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/managedClusters/{clusterName}/applicationTypes/{applicationTypeName}", + httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.ApplicationTypeResource, }, default: { - bodyMapper: Mappers.ErrorModel, + bodyMapper: Mappers.ErrorResponse, }, }, - requestBody: Parameters.parameters1, + requestBody: Parameters.parameters4, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -396,18 +402,18 @@ const updateOperationSpec: coreClient.OperationSpec = { mediaType: "json", serializer, }; -const deleteOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/managedclusters/{clusterName}/applicationTypes/{applicationTypeName}", - httpMethod: "DELETE", +const updateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/managedClusters/{clusterName}/applicationTypes/{applicationTypeName}", + httpMethod: "PATCH", responses: { - 200: {}, - 201: {}, - 202: {}, - 204: {}, + 200: { + bodyMapper: Mappers.ApplicationTypeResource, + }, default: { - bodyMapper: Mappers.ErrorModel, + bodyMapper: Mappers.ErrorResponse, }, }, + requestBody: Parameters.parameters5, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -416,18 +422,28 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.clusterName, Parameters.applicationTypeName, ], - headerParameters: [Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", serializer, }; -const listOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/managedclusters/{clusterName}/applicationTypes", - httpMethod: "GET", +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/managedClusters/{clusterName}/applicationTypes/{applicationTypeName}", + httpMethod: "DELETE", responses: { 200: { - bodyMapper: Mappers.ApplicationTypeResourceList, + headersMapper: Mappers.ApplicationTypesDeleteHeaders, + }, + 201: { + headersMapper: Mappers.ApplicationTypesDeleteHeaders, + }, + 202: { + headersMapper: Mappers.ApplicationTypesDeleteHeaders, + }, + 204: { + headersMapper: Mappers.ApplicationTypesDeleteHeaders, }, default: { - bodyMapper: Mappers.ErrorModel, + bodyMapper: Mappers.ErrorResponse, }, }, queryParameters: [Parameters.apiVersion], @@ -436,6 +452,7 @@ const listOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.clusterName, + Parameters.applicationTypeName, ], headerParameters: [Parameters.accept], serializer, @@ -448,15 +465,15 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ApplicationTypeResourceList, }, default: { - bodyMapper: Mappers.ErrorModel, + bodyMapper: Mappers.ErrorResponse, }, }, urlParameters: [ Parameters.$host, + Parameters.nextLink, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.clusterName, - Parameters.nextLink, ], headerParameters: [Parameters.accept], serializer, diff --git a/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/operations/applications.ts b/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/operations/applications.ts index 6567fc470ee7..93121bbcfa2d 100644 --- a/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/operations/applications.ts +++ b/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/operations/applications.ts @@ -24,13 +24,6 @@ import { ApplicationsListNextOptionalParams, ApplicationsListOptionalParams, ApplicationsListResponse, - ApplicationsReadUpgradeOptionalParams, - ApplicationsReadUpgradeResponse, - ApplicationsStartRollbackOptionalParams, - ApplicationsStartRollbackResponse, - RuntimeResumeApplicationUpgradeParameters, - ApplicationsResumeUpgradeOptionalParams, - ApplicationsResumeUpgradeResponse, ApplicationsGetOptionalParams, ApplicationsGetResponse, ApplicationsCreateOrUpdateOptionalParams, @@ -39,6 +32,14 @@ import { ApplicationsUpdateOptionalParams, ApplicationsUpdateResponse, ApplicationsDeleteOptionalParams, + ApplicationsDeleteResponse, + ApplicationsReadUpgradeOptionalParams, + ApplicationsReadUpgradeResponse, + RuntimeResumeApplicationUpgradeParameters, + ApplicationsResumeUpgradeOptionalParams, + ApplicationsResumeUpgradeResponse, + ApplicationsStartRollbackOptionalParams, + ApplicationsStartRollbackResponse, ApplicationsListNextResponse, } from "../models/index.js"; @@ -58,7 +59,7 @@ export class ApplicationsImpl implements Applications { /** * Gets all managed application resources created or in the process of being created in the Service * Fabric cluster resource. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. * @param options The options parameters. */ @@ -133,28 +134,67 @@ export class ApplicationsImpl implements Applications { } /** - * Get the status of the latest application upgrade. It will query the cluster to find the status of - * the latest application upgrade. - * @param resourceGroupName The name of the resource group. + * Gets all managed application resources created or in the process of being created in the Service + * Fabric cluster resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster resource. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + clusterName: string, + options?: ApplicationsListOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, clusterName, options }, + listOperationSpec, + ); + } + + /** + * Get a Service Fabric managed application resource created or in the process of being created in the + * Service Fabric cluster resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. * @param applicationName The name of the application resource. * @param options The options parameters. */ - async beginReadUpgrade( + get( resourceGroupName: string, clusterName: string, applicationName: string, - options?: ApplicationsReadUpgradeOptionalParams, + options?: ApplicationsGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, clusterName, applicationName, options }, + getOperationSpec, + ); + } + + /** + * Create or update a Service Fabric managed application resource with the specified name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster resource. + * @param applicationName The name of the application resource. + * @param parameters The application resource. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + clusterName: string, + applicationName: string, + parameters: ApplicationResource, + options?: ApplicationsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< - OperationState, - ApplicationsReadUpgradeResponse + OperationState, + ApplicationsCreateOrUpdateResponse > > { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec, - ): Promise => { + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( @@ -191,12 +231,18 @@ export class ApplicationsImpl implements Applications { const lro = createLroSpec({ sendOperationFn, - args: { resourceGroupName, clusterName, applicationName, options }, - spec: readUpgradeOperationSpec, + args: { + resourceGroupName, + clusterName, + applicationName, + parameters, + options, + }, + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< - ApplicationsReadUpgradeResponse, - OperationState + ApplicationsCreateOrUpdateResponse, + OperationState >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, @@ -207,51 +253,73 @@ export class ApplicationsImpl implements Applications { } /** - * Get the status of the latest application upgrade. It will query the cluster to find the status of - * the latest application upgrade. - * @param resourceGroupName The name of the resource group. + * Create or update a Service Fabric managed application resource with the specified name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. * @param applicationName The name of the application resource. + * @param parameters The application resource. * @param options The options parameters. */ - async beginReadUpgradeAndWait( + async beginCreateOrUpdateAndWait( resourceGroupName: string, clusterName: string, applicationName: string, - options?: ApplicationsReadUpgradeOptionalParams, - ): Promise { - const poller = await this.beginReadUpgrade( + parameters: ApplicationResource, + options?: ApplicationsCreateOrUpdateOptionalParams, + ): Promise { + const poller = await this.beginCreateOrUpdate( resourceGroupName, clusterName, applicationName, + parameters, options, ); return poller.pollUntilDone(); } /** - * Send a request to start a rollback of the current application upgrade. This will start rolling back - * the application to the previous version. - * @param resourceGroupName The name of the resource group. + * Updates the tags of an application resource of a given managed cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. * @param applicationName The name of the application resource. + * @param parameters The application resource updated tags. * @param options The options parameters. */ - async beginStartRollback( + update( resourceGroupName: string, clusterName: string, applicationName: string, - options?: ApplicationsStartRollbackOptionalParams, + parameters: ApplicationUpdateParameters, + options?: ApplicationsUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, clusterName, applicationName, parameters, options }, + updateOperationSpec, + ); + } + + /** + * Delete a Service Fabric managed application resource with the specified name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster resource. + * @param applicationName The name of the application resource. + * @param options The options parameters. + */ + async beginDelete( + resourceGroupName: string, + clusterName: string, + applicationName: string, + options?: ApplicationsDeleteOptionalParams, ): Promise< SimplePollerLike< - OperationState, - ApplicationsStartRollbackResponse + OperationState, + ApplicationsDeleteResponse > > { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec, - ): Promise => { + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( @@ -289,11 +357,11 @@ export class ApplicationsImpl implements Applications { const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, clusterName, applicationName, options }, - spec: startRollbackOperationSpec, + spec: deleteOperationSpec, }); const poller = await createHttpPoller< - ApplicationsStartRollbackResponse, - OperationState + ApplicationsDeleteResponse, + OperationState >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, @@ -304,20 +372,19 @@ export class ApplicationsImpl implements Applications { } /** - * Send a request to start a rollback of the current application upgrade. This will start rolling back - * the application to the previous version. - * @param resourceGroupName The name of the resource group. + * Delete a Service Fabric managed application resource with the specified name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. * @param applicationName The name of the application resource. * @param options The options parameters. */ - async beginStartRollbackAndWait( + async beginDeleteAndWait( resourceGroupName: string, clusterName: string, applicationName: string, - options?: ApplicationsStartRollbackOptionalParams, - ): Promise { - const poller = await this.beginStartRollback( + options?: ApplicationsDeleteOptionalParams, + ): Promise { + const poller = await this.beginDelete( resourceGroupName, clusterName, applicationName, @@ -327,30 +394,28 @@ export class ApplicationsImpl implements Applications { } /** - * Send a request to resume the current application upgrade. This will resume the application upgrade - * from where it was paused. - * @param resourceGroupName The name of the resource group. + * Get the status of the latest application upgrade. It will query the cluster to find the status of + * the latest application upgrade. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. * @param applicationName The name of the application resource. - * @param parameters The parameters for resuming an application upgrade. * @param options The options parameters. */ - async beginResumeUpgrade( + async beginReadUpgrade( resourceGroupName: string, clusterName: string, applicationName: string, - parameters: RuntimeResumeApplicationUpgradeParameters, - options?: ApplicationsResumeUpgradeOptionalParams, + options?: ApplicationsReadUpgradeOptionalParams, ): Promise< SimplePollerLike< - OperationState, - ApplicationsResumeUpgradeResponse + OperationState, + ApplicationsReadUpgradeResponse > > { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec, - ): Promise => { + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( @@ -387,18 +452,12 @@ export class ApplicationsImpl implements Applications { const lro = createLroSpec({ sendOperationFn, - args: { - resourceGroupName, - clusterName, - applicationName, - parameters, - options, - }, - spec: resumeUpgradeOperationSpec, + args: { resourceGroupName, clusterName, applicationName, options }, + spec: readUpgradeOperationSpec, }); const poller = await createHttpPoller< - ApplicationsResumeUpgradeResponse, - OperationState + ApplicationsReadUpgradeResponse, + OperationState >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, @@ -409,75 +468,53 @@ export class ApplicationsImpl implements Applications { } /** - * Send a request to resume the current application upgrade. This will resume the application upgrade - * from where it was paused. - * @param resourceGroupName The name of the resource group. + * Get the status of the latest application upgrade. It will query the cluster to find the status of + * the latest application upgrade. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. * @param applicationName The name of the application resource. - * @param parameters The parameters for resuming an application upgrade. * @param options The options parameters. */ - async beginResumeUpgradeAndWait( + async beginReadUpgradeAndWait( resourceGroupName: string, clusterName: string, applicationName: string, - parameters: RuntimeResumeApplicationUpgradeParameters, - options?: ApplicationsResumeUpgradeOptionalParams, - ): Promise { - const poller = await this.beginResumeUpgrade( + options?: ApplicationsReadUpgradeOptionalParams, + ): Promise { + const poller = await this.beginReadUpgrade( resourceGroupName, clusterName, applicationName, - parameters, options, ); return poller.pollUntilDone(); } /** - * Get a Service Fabric managed application resource created or in the process of being created in the - * Service Fabric cluster resource. - * @param resourceGroupName The name of the resource group. - * @param clusterName The name of the cluster resource. - * @param applicationName The name of the application resource. - * @param options The options parameters. - */ - get( - resourceGroupName: string, - clusterName: string, - applicationName: string, - options?: ApplicationsGetOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, clusterName, applicationName, options }, - getOperationSpec, - ); - } - - /** - * Create or update a Service Fabric managed application resource with the specified name. - * @param resourceGroupName The name of the resource group. + * Send a request to resume the current application upgrade. This will resume the application upgrade + * from where it was paused. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. * @param applicationName The name of the application resource. - * @param parameters The application resource. + * @param parameters The parameters for resuming an application upgrade. * @param options The options parameters. */ - async beginCreateOrUpdate( + async beginResumeUpgrade( resourceGroupName: string, clusterName: string, applicationName: string, - parameters: ApplicationResource, - options?: ApplicationsCreateOrUpdateOptionalParams, + parameters: RuntimeResumeApplicationUpgradeParameters, + options?: ApplicationsResumeUpgradeOptionalParams, ): Promise< SimplePollerLike< - OperationState, - ApplicationsCreateOrUpdateResponse + OperationState, + ApplicationsResumeUpgradeResponse > > { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec, - ): Promise => { + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( @@ -521,11 +558,11 @@ export class ApplicationsImpl implements Applications { parameters, options, }, - spec: createOrUpdateOperationSpec, + spec: resumeUpgradeOperationSpec, }); const poller = await createHttpPoller< - ApplicationsCreateOrUpdateResponse, - OperationState + ApplicationsResumeUpgradeResponse, + OperationState >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, @@ -536,21 +573,22 @@ export class ApplicationsImpl implements Applications { } /** - * Create or update a Service Fabric managed application resource with the specified name. - * @param resourceGroupName The name of the resource group. + * Send a request to resume the current application upgrade. This will resume the application upgrade + * from where it was paused. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. * @param applicationName The name of the application resource. - * @param parameters The application resource. + * @param parameters The parameters for resuming an application upgrade. * @param options The options parameters. */ - async beginCreateOrUpdateAndWait( + async beginResumeUpgradeAndWait( resourceGroupName: string, clusterName: string, applicationName: string, - parameters: ApplicationResource, - options?: ApplicationsCreateOrUpdateOptionalParams, - ): Promise { - const poller = await this.beginCreateOrUpdate( + parameters: RuntimeResumeApplicationUpgradeParameters, + options?: ApplicationsResumeUpgradeOptionalParams, + ): Promise { + const poller = await this.beginResumeUpgrade( resourceGroupName, clusterName, applicationName, @@ -561,43 +599,28 @@ export class ApplicationsImpl implements Applications { } /** - * Updates the tags of an application resource of a given managed cluster. - * @param resourceGroupName The name of the resource group. - * @param clusterName The name of the cluster resource. - * @param applicationName The name of the application resource. - * @param parameters The application resource updated tags. - * @param options The options parameters. - */ - update( - resourceGroupName: string, - clusterName: string, - applicationName: string, - parameters: ApplicationUpdateParameters, - options?: ApplicationsUpdateOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, clusterName, applicationName, parameters, options }, - updateOperationSpec, - ); - } - - /** - * Delete a Service Fabric managed application resource with the specified name. - * @param resourceGroupName The name of the resource group. + * Send a request to start a rollback of the current application upgrade. This will start rolling back + * the application to the previous version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. * @param applicationName The name of the application resource. * @param options The options parameters. */ - async beginDelete( + async beginStartRollback( resourceGroupName: string, clusterName: string, applicationName: string, - options?: ApplicationsDeleteOptionalParams, - ): Promise, void>> { + options?: ApplicationsStartRollbackOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + ApplicationsStartRollbackResponse + > + > { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec, - ): Promise => { + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( @@ -635,9 +658,12 @@ export class ApplicationsImpl implements Applications { const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, clusterName, applicationName, options }, - spec: deleteOperationSpec, + spec: startRollbackOperationSpec, }); - const poller = await createHttpPoller>(lro, { + const poller = await createHttpPoller< + ApplicationsStartRollbackResponse, + OperationState + >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, resourceLocationConfig: "location", @@ -647,19 +673,20 @@ export class ApplicationsImpl implements Applications { } /** - * Delete a Service Fabric managed application resource with the specified name. - * @param resourceGroupName The name of the resource group. + * Send a request to start a rollback of the current application upgrade. This will start rolling back + * the application to the previous version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. * @param applicationName The name of the application resource. * @param options The options parameters. */ - async beginDeleteAndWait( + async beginStartRollbackAndWait( resourceGroupName: string, clusterName: string, applicationName: string, - options?: ApplicationsDeleteOptionalParams, - ): Promise { - const poller = await this.beginDelete( + options?: ApplicationsStartRollbackOptionalParams, + ): Promise { + const poller = await this.beginStartRollback( resourceGroupName, clusterName, applicationName, @@ -668,27 +695,9 @@ export class ApplicationsImpl implements Applications { return poller.pollUntilDone(); } - /** - * Gets all managed application resources created or in the process of being created in the Service - * Fabric cluster resource. - * @param resourceGroupName The name of the resource group. - * @param clusterName The name of the cluster resource. - * @param options The options parameters. - */ - private _list( - resourceGroupName: string, - clusterName: string, - options?: ApplicationsListOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, clusterName, options }, - listOperationSpec, - ); - } - /** * ListNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. * @param nextLink The nextLink from the previous successful call to the List method. * @param options The options parameters. @@ -708,24 +717,15 @@ export class ApplicationsImpl implements Applications { // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); -const readUpgradeOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/managedClusters/{clusterName}/applications/{applicationName}/fetchUpgradeStatus", - httpMethod: "POST", +const listOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/managedClusters/{clusterName}/applications", + httpMethod: "GET", responses: { 200: { - headersMapper: Mappers.ApplicationsReadUpgradeHeaders, - }, - 201: { - headersMapper: Mappers.ApplicationsReadUpgradeHeaders, - }, - 202: { - headersMapper: Mappers.ApplicationsReadUpgradeHeaders, - }, - 204: { - headersMapper: Mappers.ApplicationsReadUpgradeHeaders, + bodyMapper: Mappers.ApplicationResourceList, }, default: { - bodyMapper: Mappers.ErrorModel, + bodyMapper: Mappers.ErrorResponse, }, }, queryParameters: [Parameters.apiVersion], @@ -734,29 +734,19 @@ const readUpgradeOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.clusterName, - Parameters.applicationName, ], headerParameters: [Parameters.accept], serializer, }; -const startRollbackOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/managedClusters/{clusterName}/applications/{applicationName}/startRollback", - httpMethod: "POST", +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/managedClusters/{clusterName}/applications/{applicationName}", + httpMethod: "GET", responses: { 200: { - headersMapper: Mappers.ApplicationsStartRollbackHeaders, - }, - 201: { - headersMapper: Mappers.ApplicationsStartRollbackHeaders, - }, - 202: { - headersMapper: Mappers.ApplicationsStartRollbackHeaders, - }, - 204: { - headersMapper: Mappers.ApplicationsStartRollbackHeaders, + bodyMapper: Mappers.ApplicationResource, }, default: { - bodyMapper: Mappers.ErrorModel, + bodyMapper: Mappers.ErrorResponse, }, }, queryParameters: [Parameters.apiVersion], @@ -770,27 +760,27 @@ const startRollbackOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer, }; -const resumeUpgradeOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/managedClusters/{clusterName}/applications/{applicationName}/resumeUpgrade", - httpMethod: "POST", +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/managedClusters/{clusterName}/applications/{applicationName}", + httpMethod: "PUT", responses: { 200: { - headersMapper: Mappers.ApplicationsResumeUpgradeHeaders, + bodyMapper: Mappers.ApplicationResource, }, 201: { - headersMapper: Mappers.ApplicationsResumeUpgradeHeaders, + bodyMapper: Mappers.ApplicationResource, }, 202: { - headersMapper: Mappers.ApplicationsResumeUpgradeHeaders, + bodyMapper: Mappers.ApplicationResource, }, 204: { - headersMapper: Mappers.ApplicationsResumeUpgradeHeaders, + bodyMapper: Mappers.ApplicationResource, }, default: { - bodyMapper: Mappers.ErrorModel, + bodyMapper: Mappers.ErrorResponse, }, }, - requestBody: Parameters.parameters4, + requestBody: Parameters.parameters8, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -803,17 +793,18 @@ const resumeUpgradeOperationSpec: coreClient.OperationSpec = { mediaType: "json", serializer, }; -const getOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/managedclusters/{clusterName}/applications/{applicationName}", - httpMethod: "GET", +const updateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/managedClusters/{clusterName}/applications/{applicationName}", + httpMethod: "PATCH", responses: { 200: { bodyMapper: Mappers.ApplicationResource, }, default: { - bodyMapper: Mappers.ErrorModel, + bodyMapper: Mappers.ErrorResponse, }, }, + requestBody: Parameters.parameters9, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -822,30 +813,30 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.clusterName, Parameters.applicationName, ], - headerParameters: [Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", serializer, }; -const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/managedclusters/{clusterName}/applications/{applicationName}", - httpMethod: "PUT", +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/managedClusters/{clusterName}/applications/{applicationName}", + httpMethod: "DELETE", responses: { 200: { - bodyMapper: Mappers.ApplicationResource, + headersMapper: Mappers.ApplicationsDeleteHeaders, }, 201: { - bodyMapper: Mappers.ApplicationResource, + headersMapper: Mappers.ApplicationsDeleteHeaders, }, 202: { - bodyMapper: Mappers.ApplicationResource, + headersMapper: Mappers.ApplicationsDeleteHeaders, }, 204: { - bodyMapper: Mappers.ApplicationResource, + headersMapper: Mappers.ApplicationsDeleteHeaders, }, default: { - bodyMapper: Mappers.ErrorModel, + bodyMapper: Mappers.ErrorResponse, }, }, - requestBody: Parameters.parameters5, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -854,22 +845,29 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.clusterName, Parameters.applicationName, ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", + headerParameters: [Parameters.accept], serializer, }; -const updateOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/managedclusters/{clusterName}/applications/{applicationName}", - httpMethod: "PATCH", +const readUpgradeOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/managedClusters/{clusterName}/applications/{applicationName}/fetchUpgradeStatus", + httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.ApplicationResource, + headersMapper: Mappers.ApplicationsReadUpgradeHeaders, + }, + 201: { + headersMapper: Mappers.ApplicationsReadUpgradeHeaders, + }, + 202: { + headersMapper: Mappers.ApplicationsReadUpgradeHeaders, + }, + 204: { + headersMapper: Mappers.ApplicationsReadUpgradeHeaders, }, default: { - bodyMapper: Mappers.ErrorModel, + bodyMapper: Mappers.ErrorResponse, }, }, - requestBody: Parameters.parameters6, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -878,22 +876,30 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.clusterName, Parameters.applicationName, ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", + headerParameters: [Parameters.accept], serializer, }; -const deleteOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/managedclusters/{clusterName}/applications/{applicationName}", - httpMethod: "DELETE", +const resumeUpgradeOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/managedClusters/{clusterName}/applications/{applicationName}/resumeUpgrade", + httpMethod: "POST", responses: { - 200: {}, - 201: {}, - 202: {}, - 204: {}, + 200: { + headersMapper: Mappers.ApplicationsResumeUpgradeHeaders, + }, + 201: { + headersMapper: Mappers.ApplicationsResumeUpgradeHeaders, + }, + 202: { + headersMapper: Mappers.ApplicationsResumeUpgradeHeaders, + }, + 204: { + headersMapper: Mappers.ApplicationsResumeUpgradeHeaders, + }, default: { - bodyMapper: Mappers.ErrorModel, + bodyMapper: Mappers.ErrorResponse, }, }, + requestBody: Parameters.parameters10, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -902,18 +908,28 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.clusterName, Parameters.applicationName, ], - headerParameters: [Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", serializer, }; -const listOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/managedclusters/{clusterName}/applications", - httpMethod: "GET", +const startRollbackOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/managedClusters/{clusterName}/applications/{applicationName}/startRollback", + httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.ApplicationResourceList, + headersMapper: Mappers.ApplicationsStartRollbackHeaders, + }, + 201: { + headersMapper: Mappers.ApplicationsStartRollbackHeaders, + }, + 202: { + headersMapper: Mappers.ApplicationsStartRollbackHeaders, + }, + 204: { + headersMapper: Mappers.ApplicationsStartRollbackHeaders, }, default: { - bodyMapper: Mappers.ErrorModel, + bodyMapper: Mappers.ErrorResponse, }, }, queryParameters: [Parameters.apiVersion], @@ -922,6 +938,7 @@ const listOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.clusterName, + Parameters.applicationName, ], headerParameters: [Parameters.accept], serializer, @@ -934,15 +951,15 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ApplicationResourceList, }, default: { - bodyMapper: Mappers.ErrorModel, + bodyMapper: Mappers.ErrorResponse, }, }, urlParameters: [ Parameters.$host, + Parameters.nextLink, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.clusterName, - Parameters.nextLink, ], headerParameters: [Parameters.accept], serializer, diff --git a/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/operations/index.ts b/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/operations/index.ts index 0f9eb8707471..48cca46afc81 100644 --- a/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/operations/index.ts +++ b/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/operations/index.ts @@ -6,18 +6,18 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ +export * from "./operations.js"; +export * from "./managedClusterVersion.js"; +export * from "./operationResults.js"; +export * from "./operationStatus.js"; +export * from "./managedUnsupportedVMSizes.js"; +export * from "./managedClusters.js"; export * from "./applicationTypes.js"; export * from "./applicationTypeVersions.js"; export * from "./applications.js"; export * from "./services.js"; -export * from "./managedClusters.js"; -export * from "./managedAzResiliencyStatusOperations.js"; -export * from "./managedMaintenanceWindowStatusOperations.js"; export * from "./managedApplyMaintenanceWindow.js"; -export * from "./managedClusterVersion.js"; -export * from "./managedUnsupportedVMSizes.js"; -export * from "./operationStatus.js"; -export * from "./operationResults.js"; -export * from "./operations.js"; +export * from "./managedMaintenanceWindowStatusOperations.js"; +export * from "./managedAzResiliencyStatusOperations.js"; export * from "./nodeTypes.js"; export * from "./nodeTypeSkus.js"; diff --git a/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/operations/managedApplyMaintenanceWindow.ts b/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/operations/managedApplyMaintenanceWindow.ts index 8c5ae9570ab6..efc2090f49af 100644 --- a/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/operations/managedApplyMaintenanceWindow.ts +++ b/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/operations/managedApplyMaintenanceWindow.ts @@ -30,7 +30,7 @@ export class ManagedApplyMaintenanceWindowImpl /** * Action to Apply Maintenance window on the Service Fabric Managed Clusters, right now. Any pending * update will be applied. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. * @param options The options parameters. */ @@ -54,7 +54,7 @@ const postOperationSpec: coreClient.OperationSpec = { responses: { 200: {}, default: { - bodyMapper: Mappers.ErrorModel, + bodyMapper: Mappers.ErrorResponse, }, }, queryParameters: [Parameters.apiVersion], diff --git a/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/operations/managedAzResiliencyStatusOperations.ts b/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/operations/managedAzResiliencyStatusOperations.ts index f9beeb63bc1d..a5fc400ab666 100644 --- a/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/operations/managedAzResiliencyStatusOperations.ts +++ b/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/operations/managedAzResiliencyStatusOperations.ts @@ -33,7 +33,7 @@ export class ManagedAzResiliencyStatusOperationsImpl /** * Action to get Az Resiliency Status of all the Base resources constituting Service Fabric Managed * Clusters. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. * @param options The options parameters. */ @@ -59,7 +59,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ManagedAzResiliencyStatus, }, default: { - bodyMapper: Mappers.ErrorModel, + bodyMapper: Mappers.ErrorResponse, }, }, queryParameters: [Parameters.apiVersion], diff --git a/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/operations/managedClusterVersion.ts b/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/operations/managedClusterVersion.ts index 0f791cb0ffa3..a60de6ada30c 100644 --- a/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/operations/managedClusterVersion.ts +++ b/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/operations/managedClusterVersion.ts @@ -12,15 +12,15 @@ import * as Mappers from "../models/mappers.js"; import * as Parameters from "../models/parameters.js"; import { ServiceFabricManagedClustersManagementClient } from "../serviceFabricManagedClustersManagementClient.js"; import { - ManagedClusterVersionGetOptionalParams, - ManagedClusterVersionGetResponse, - ManagedClusterVersionEnvironment, + Environment, + ManagedClusterVersionListByEnvironmentOptionalParams, + ManagedClusterVersionListByEnvironmentResponse, ManagedClusterVersionGetByEnvironmentOptionalParams, ManagedClusterVersionGetByEnvironmentResponse, ManagedClusterVersionListOptionalParams, ManagedClusterVersionListResponse, - ManagedClusterVersionListByEnvironmentOptionalParams, - ManagedClusterVersionListByEnvironmentResponse, + ManagedClusterVersionGetOptionalParams, + ManagedClusterVersionGetResponse, } from "../models/index.js"; /** Class containing ManagedClusterVersion operations. */ @@ -36,32 +36,32 @@ export class ManagedClusterVersionImpl implements ManagedClusterVersion { } /** - * Gets information about an available Service Fabric managed cluster code version. + * Gets all available code versions for Service Fabric cluster resources by environment. * @param location The location for the cluster code versions. This is different from cluster location. - * @param clusterVersion The cluster code version. + * @param environment The operating system of the cluster. * @param options The options parameters. */ - get( + listByEnvironment( location: string, - clusterVersion: string, - options?: ManagedClusterVersionGetOptionalParams, - ): Promise { + environment: Environment, + options?: ManagedClusterVersionListByEnvironmentOptionalParams, + ): Promise { return this.client.sendOperationRequest( - { location, clusterVersion, options }, - getOperationSpec, + { location, environment, options }, + listByEnvironmentOperationSpec, ); } /** * Gets information about an available Service Fabric cluster code version by environment. * @param location The location for the cluster code versions. This is different from cluster location. - * @param environment The operating system of the cluster. The default means all. + * @param environment The operating system of the cluster. * @param clusterVersion The cluster code version. * @param options The options parameters. */ getByEnvironment( location: string, - environment: ManagedClusterVersionEnvironment, + environment: Environment, clusterVersion: string, options?: ManagedClusterVersionGetByEnvironmentOptionalParams, ): Promise { @@ -87,34 +87,44 @@ export class ManagedClusterVersionImpl implements ManagedClusterVersion { } /** - * Gets all available code versions for Service Fabric cluster resources by environment. + * Gets information about an available Service Fabric managed cluster code version. * @param location The location for the cluster code versions. This is different from cluster location. - * @param environment The operating system of the cluster. The default means all. + * @param clusterVersion The cluster code version. * @param options The options parameters. */ - listByEnvironment( + get( location: string, - environment: ManagedClusterVersionEnvironment, - options?: ManagedClusterVersionListByEnvironmentOptionalParams, - ): Promise { + clusterVersion: string, + options?: ManagedClusterVersionGetOptionalParams, + ): Promise { return this.client.sendOperationRequest( - { location, environment, options }, - listByEnvironmentOperationSpec, + { location, clusterVersion, options }, + getOperationSpec, ); } } // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); -const getOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/providers/Microsoft.ServiceFabric/locations/{location}/managedClusterVersions/{clusterVersion}", +const listByEnvironmentOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/providers/Microsoft.ServiceFabric/locations/{location}/environments/{environment}/managedClusterVersions", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ManagedClusterCodeVersionResult, + bodyMapper: { + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ManagedClusterCodeVersionResult", + }, + }, + }, + }, }, default: { - bodyMapper: Mappers.ErrorModel, + bodyMapper: Mappers.ErrorResponse, }, }, queryParameters: [Parameters.apiVersion], @@ -122,7 +132,7 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.location, - Parameters.clusterVersion, + Parameters.environment, ], headerParameters: [Parameters.accept], serializer, @@ -135,7 +145,7 @@ const getByEnvironmentOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ManagedClusterCodeVersionResult, }, default: { - bodyMapper: Mappers.ErrorModel, + bodyMapper: Mappers.ErrorResponse, }, }, queryParameters: [Parameters.apiVersion], @@ -143,8 +153,8 @@ const getByEnvironmentOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.location, - Parameters.clusterVersion, Parameters.environment, + Parameters.clusterVersion, ], headerParameters: [Parameters.accept], serializer, @@ -167,7 +177,7 @@ const listOperationSpec: coreClient.OperationSpec = { }, }, default: { - bodyMapper: Mappers.ErrorModel, + bodyMapper: Mappers.ErrorResponse, }, }, queryParameters: [Parameters.apiVersion], @@ -179,25 +189,15 @@ const listOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer, }; -const listByEnvironmentOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/providers/Microsoft.ServiceFabric/locations/{location}/environments/{environment}/managedClusterVersions", +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/providers/Microsoft.ServiceFabric/locations/{location}/managedClusterVersions/{clusterVersion}", httpMethod: "GET", responses: { 200: { - bodyMapper: { - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ManagedClusterCodeVersionResult", - }, - }, - }, - }, + bodyMapper: Mappers.ManagedClusterCodeVersionResult, }, default: { - bodyMapper: Mappers.ErrorModel, + bodyMapper: Mappers.ErrorResponse, }, }, queryParameters: [Parameters.apiVersion], @@ -205,7 +205,7 @@ const listByEnvironmentOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.location, - Parameters.environment, + Parameters.clusterVersion, ], headerParameters: [Parameters.accept], serializer, diff --git a/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/operations/managedClusters.ts b/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/operations/managedClusters.ts index 38fffdb3a292..4c863146db98 100644 --- a/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/operations/managedClusters.ts +++ b/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/operations/managedClusters.ts @@ -21,12 +21,16 @@ import { import { createLroSpec } from "../lroImpl.js"; import { ManagedCluster, - ManagedClustersListByResourceGroupNextOptionalParams, - ManagedClustersListByResourceGroupOptionalParams, - ManagedClustersListByResourceGroupResponse, ManagedClustersListBySubscriptionNextOptionalParams, ManagedClustersListBySubscriptionOptionalParams, ManagedClustersListBySubscriptionResponse, + ManagedClustersListByResourceGroupNextOptionalParams, + ManagedClustersListByResourceGroupOptionalParams, + ManagedClustersListByResourceGroupResponse, + FaultSimulation, + ManagedClustersListFaultSimulationNextOptionalParams, + ManagedClustersListFaultSimulationOptionalParams, + ManagedClustersListFaultSimulationResponse, ManagedClustersGetOptionalParams, ManagedClustersGetResponse, ManagedClustersCreateOrUpdateOptionalParams, @@ -35,8 +39,18 @@ import { ManagedClustersUpdateOptionalParams, ManagedClustersUpdateResponse, ManagedClustersDeleteOptionalParams, - ManagedClustersListByResourceGroupNextResponse, + ManagedClustersDeleteResponse, + FaultSimulationIdParameters, + ManagedClustersGetFaultSimulationOptionalParams, + ManagedClustersGetFaultSimulationResponse, + FaultSimulationParametersUnion, + ManagedClustersStartFaultSimulationOptionalParams, + ManagedClustersStartFaultSimulationResponse, + ManagedClustersStopFaultSimulationOptionalParams, + ManagedClustersStopFaultSimulationResponse, ManagedClustersListBySubscriptionNextResponse, + ManagedClustersListByResourceGroupNextResponse, + ManagedClustersListFaultSimulationNextResponse, } from "../models/index.js"; /// @@ -52,10 +66,65 @@ export class ManagedClustersImpl implements ManagedClusters { this.client = client; } + /** + * Gets all Service Fabric cluster resources created or in the process of being created in the + * subscription. + * @param options The options parameters. + */ + public listBySubscription( + options?: ManagedClustersListBySubscriptionOptionalParams, + ): 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?: ManagedClustersListBySubscriptionOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: ManagedClustersListBySubscriptionResponse; + 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?: ManagedClustersListBySubscriptionOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listBySubscriptionPagingPage(options)) { + yield* page; + } + } + /** * Gets all Service Fabric cluster resources created or in the process of being created in the resource * group. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param options The options parameters. */ public listByResourceGroup( @@ -123,14 +192,21 @@ export class ManagedClustersImpl implements ManagedClusters { } /** - * Gets all Service Fabric cluster resources created or in the process of being created in the - * subscription. + * Gets the list of recent fault simulations for the cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster resource. * @param options The options parameters. */ - public listBySubscription( - options?: ManagedClustersListBySubscriptionOptionalParams, - ): PagedAsyncIterableIterator { - const iter = this.listBySubscriptionPagingAll(options); + public listFaultSimulation( + resourceGroupName: string, + clusterName: string, + options?: ManagedClustersListFaultSimulationOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listFaultSimulationPagingAll( + resourceGroupName, + clusterName, + options, + ); return { next() { return iter.next(); @@ -142,26 +218,42 @@ export class ManagedClustersImpl implements ManagedClusters { if (settings?.maxPageSize) { throw new Error("maxPageSize is not supported by this operation."); } - return this.listBySubscriptionPagingPage(options, settings); + return this.listFaultSimulationPagingPage( + resourceGroupName, + clusterName, + options, + settings, + ); }, }; } - private async *listBySubscriptionPagingPage( - options?: ManagedClustersListBySubscriptionOptionalParams, + private async *listFaultSimulationPagingPage( + resourceGroupName: string, + clusterName: string, + options?: ManagedClustersListFaultSimulationOptionalParams, settings?: PageSettings, - ): AsyncIterableIterator { - let result: ManagedClustersListBySubscriptionResponse; + ): AsyncIterableIterator { + let result: ManagedClustersListFaultSimulationResponse; let continuationToken = settings?.continuationToken; if (!continuationToken) { - result = await this._listBySubscription(options); + result = await this._listFaultSimulation( + resourceGroupName, + clusterName, + options, + ); let page = result.value || []; continuationToken = result.nextLink; setContinuationToken(page, continuationToken); yield page; } while (continuationToken) { - result = await this._listBySubscriptionNext(continuationToken, options); + result = await this._listFaultSimulationNext( + resourceGroupName, + clusterName, + continuationToken, + options, + ); continuationToken = result.nextLink; let page = result.value || []; setContinuationToken(page, continuationToken); @@ -169,18 +261,38 @@ export class ManagedClustersImpl implements ManagedClusters { } } - private async *listBySubscriptionPagingAll( - options?: ManagedClustersListBySubscriptionOptionalParams, - ): AsyncIterableIterator { - for await (const page of this.listBySubscriptionPagingPage(options)) { + private async *listFaultSimulationPagingAll( + resourceGroupName: string, + clusterName: string, + options?: ManagedClustersListFaultSimulationOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listFaultSimulationPagingPage( + resourceGroupName, + clusterName, + options, + )) { yield* page; } } + /** + * Gets all Service Fabric cluster resources created or in the process of being created in the + * subscription. + * @param options The options parameters. + */ + private _listBySubscription( + options?: ManagedClustersListBySubscriptionOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { options }, + listBySubscriptionOperationSpec, + ); + } + /** * Gets all Service Fabric cluster resources created or in the process of being created in the resource * group. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param options The options parameters. */ private _listByResourceGroup( @@ -193,24 +305,10 @@ export class ManagedClustersImpl implements ManagedClusters { ); } - /** - * Gets all Service Fabric cluster resources created or in the process of being created in the - * subscription. - * @param options The options parameters. - */ - private _listBySubscription( - options?: ManagedClustersListBySubscriptionOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { options }, - listBySubscriptionOperationSpec, - ); - } - /** * Get a Service Fabric managed cluster resource created or in the process of being created in the * specified resource group. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. * @param options The options parameters. */ @@ -227,7 +325,7 @@ export class ManagedClustersImpl implements ManagedClusters { /** * Create or update a Service Fabric managed cluster resource with the specified name. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. * @param parameters The cluster resource. * @param options The options parameters. @@ -300,7 +398,7 @@ export class ManagedClustersImpl implements ManagedClusters { /** * Create or update a Service Fabric managed cluster resource with the specified name. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. * @param parameters The cluster resource. * @param options The options parameters. @@ -322,7 +420,7 @@ export class ManagedClustersImpl implements ManagedClusters { /** * Update the tags of of a Service Fabric managed cluster resource with the specified name. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. * @param parameters The managed cluster resource updated tags. * @param options The options parameters. @@ -341,7 +439,7 @@ export class ManagedClustersImpl implements ManagedClusters { /** * Delete a Service Fabric managed cluster resource with the specified name. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. * @param options The options parameters. */ @@ -349,11 +447,16 @@ export class ManagedClustersImpl implements ManagedClusters { resourceGroupName: string, clusterName: string, options?: ManagedClustersDeleteOptionalParams, - ): Promise, void>> { + ): Promise< + SimplePollerLike< + OperationState, + ManagedClustersDeleteResponse + > + > { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec, - ): Promise => { + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( @@ -393,7 +496,10 @@ export class ManagedClustersImpl implements ManagedClusters { args: { resourceGroupName, clusterName, options }, spec: deleteOperationSpec, }); - const poller = await createHttpPoller>(lro, { + const poller = await createHttpPoller< + ManagedClustersDeleteResponse, + OperationState + >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, resourceLocationConfig: "location", @@ -404,7 +510,7 @@ export class ManagedClustersImpl implements ManagedClusters { /** * Delete a Service Fabric managed cluster resource with the specified name. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. * @param options The options parameters. */ @@ -412,7 +518,7 @@ export class ManagedClustersImpl implements ManagedClusters { resourceGroupName: string, clusterName: string, options?: ManagedClustersDeleteOptionalParams, - ): Promise { + ): Promise { const poller = await this.beginDelete( resourceGroupName, clusterName, @@ -421,9 +527,250 @@ export class ManagedClustersImpl implements ManagedClusters { return poller.pollUntilDone(); } + /** + * Gets a fault simulation by the simulationId. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster resource. + * @param parameters parameter with fault simulation id. + * @param options The options parameters. + */ + getFaultSimulation( + resourceGroupName: string, + clusterName: string, + parameters: FaultSimulationIdParameters, + options?: ManagedClustersGetFaultSimulationOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, clusterName, parameters, options }, + getFaultSimulationOperationSpec, + ); + } + + /** + * Gets the list of recent fault simulations for the cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster resource. + * @param options The options parameters. + */ + private _listFaultSimulation( + resourceGroupName: string, + clusterName: string, + options?: ManagedClustersListFaultSimulationOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, clusterName, options }, + listFaultSimulationOperationSpec, + ); + } + + /** + * Starts a fault simulation on the cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster resource. + * @param parameters parameters describing the fault simulation. + * @param options The options parameters. + */ + async beginStartFaultSimulation( + resourceGroupName: string, + clusterName: string, + parameters: FaultSimulationParametersUnion, + options?: ManagedClustersStartFaultSimulationOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + ManagedClustersStartFaultSimulationResponse + > + > { + 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, clusterName, parameters, options }, + spec: startFaultSimulationOperationSpec, + }); + const poller = await createHttpPoller< + ManagedClustersStartFaultSimulationResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location", + }); + await poller.poll(); + return poller; + } + + /** + * Starts a fault simulation on the cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster resource. + * @param parameters parameters describing the fault simulation. + * @param options The options parameters. + */ + async beginStartFaultSimulationAndWait( + resourceGroupName: string, + clusterName: string, + parameters: FaultSimulationParametersUnion, + options?: ManagedClustersStartFaultSimulationOptionalParams, + ): Promise { + const poller = await this.beginStartFaultSimulation( + resourceGroupName, + clusterName, + parameters, + options, + ); + return poller.pollUntilDone(); + } + + /** + * Stops a fault simulation on the cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster resource. + * @param parameters parameter with fault simulation id. + * @param options The options parameters. + */ + async beginStopFaultSimulation( + resourceGroupName: string, + clusterName: string, + parameters: FaultSimulationIdParameters, + options?: ManagedClustersStopFaultSimulationOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + ManagedClustersStopFaultSimulationResponse + > + > { + 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, clusterName, parameters, options }, + spec: stopFaultSimulationOperationSpec, + }); + const poller = await createHttpPoller< + ManagedClustersStopFaultSimulationResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location", + }); + await poller.poll(); + return poller; + } + + /** + * Stops a fault simulation on the cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster resource. + * @param parameters parameter with fault simulation id. + * @param options The options parameters. + */ + async beginStopFaultSimulationAndWait( + resourceGroupName: string, + clusterName: string, + parameters: FaultSimulationIdParameters, + options?: ManagedClustersStopFaultSimulationOptionalParams, + ): Promise { + const poller = await this.beginStopFaultSimulation( + resourceGroupName, + clusterName, + parameters, + options, + ); + return poller.pollUntilDone(); + } + + /** + * ListBySubscriptionNext + * @param nextLink The nextLink from the previous successful call to the ListBySubscription method. + * @param options The options parameters. + */ + private _listBySubscriptionNext( + nextLink: string, + options?: ManagedClustersListBySubscriptionNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { nextLink, options }, + listBySubscriptionNextOperationSpec, + ); + } + /** * ListByResourceGroupNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method. * @param options The options parameters. */ @@ -439,56 +786,60 @@ export class ManagedClustersImpl implements ManagedClusters { } /** - * ListBySubscriptionNext - * @param nextLink The nextLink from the previous successful call to the ListBySubscription method. + * ListFaultSimulationNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster resource. + * @param nextLink The nextLink from the previous successful call to the ListFaultSimulation method. * @param options The options parameters. */ - private _listBySubscriptionNext( + private _listFaultSimulationNext( + resourceGroupName: string, + clusterName: string, nextLink: string, - options?: ManagedClustersListBySubscriptionNextOptionalParams, - ): Promise { + options?: ManagedClustersListFaultSimulationNextOptionalParams, + ): Promise { return this.client.sendOperationRequest( - { nextLink, options }, - listBySubscriptionNextOperationSpec, + { resourceGroupName, clusterName, nextLink, options }, + listFaultSimulationNextOperationSpec, ); } } // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); -const listByResourceGroupOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/managedClusters", +const listBySubscriptionOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/providers/Microsoft.ServiceFabric/managedClusters", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.ManagedClusterListResult, }, default: { - bodyMapper: Mappers.ErrorModel, + bodyMapper: Mappers.ErrorResponse, }, }, queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - ], + urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], serializer, }; -const listBySubscriptionOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/providers/Microsoft.ServiceFabric/managedClusters", +const listByResourceGroupOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/managedClusters", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.ManagedClusterListResult, }, default: { - bodyMapper: Mappers.ErrorModel, + bodyMapper: Mappers.ErrorResponse, }, }, queryParameters: [Parameters.apiVersion], - urlParameters: [Parameters.$host, Parameters.subscriptionId], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + ], headerParameters: [Parameters.accept], serializer, }; @@ -500,7 +851,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ManagedCluster, }, default: { - bodyMapper: Mappers.ErrorModel, + bodyMapper: Mappers.ErrorResponse, }, }, queryParameters: [Parameters.apiVersion], @@ -530,10 +881,10 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ManagedCluster, }, default: { - bodyMapper: Mappers.ErrorModel, + bodyMapper: Mappers.ErrorResponse, }, }, - requestBody: Parameters.parameters9, + requestBody: Parameters.parameters, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -553,10 +904,10 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ManagedCluster, }, default: { - bodyMapper: Mappers.ErrorModel, + bodyMapper: Mappers.ErrorResponse, }, }, - requestBody: Parameters.parameters10, + requestBody: Parameters.parameters1, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -572,12 +923,20 @@ const deleteOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/managedClusters/{clusterName}", httpMethod: "DELETE", responses: { - 200: {}, - 201: {}, - 202: {}, - 204: {}, + 200: { + headersMapper: Mappers.ManagedClustersDeleteHeaders, + }, + 201: { + headersMapper: Mappers.ManagedClustersDeleteHeaders, + }, + 202: { + headersMapper: Mappers.ManagedClustersDeleteHeaders, + }, + 204: { + headersMapper: Mappers.ManagedClustersDeleteHeaders, + }, default: { - bodyMapper: Mappers.ErrorModel, + bodyMapper: Mappers.ErrorResponse, }, }, queryParameters: [Parameters.apiVersion], @@ -590,7 +949,115 @@ const deleteOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer, }; -const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { +const getFaultSimulationOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/managedClusters/{clusterName}/getFaultSimulation", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.FaultSimulation, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters2, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.clusterName, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const listFaultSimulationOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/managedClusters/{clusterName}/listFaultSimulation", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.FaultSimulationListResult, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.clusterName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const startFaultSimulationOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/managedClusters/{clusterName}/startFaultSimulation", + httpMethod: "POST", + responses: { + 200: { + headersMapper: Mappers.ManagedClustersStartFaultSimulationHeaders, + }, + 201: { + headersMapper: Mappers.ManagedClustersStartFaultSimulationHeaders, + }, + 202: { + headersMapper: Mappers.ManagedClustersStartFaultSimulationHeaders, + }, + 204: { + headersMapper: Mappers.ManagedClustersStartFaultSimulationHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters3, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.clusterName, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const stopFaultSimulationOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/managedClusters/{clusterName}/stopFaultSimulation", + httpMethod: "POST", + responses: { + 200: { + headersMapper: Mappers.ManagedClustersStopFaultSimulationHeaders, + }, + 201: { + headersMapper: Mappers.ManagedClustersStopFaultSimulationHeaders, + }, + 202: { + headersMapper: Mappers.ManagedClustersStopFaultSimulationHeaders, + }, + 204: { + headersMapper: Mappers.ManagedClustersStopFaultSimulationHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters2, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.clusterName, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { @@ -598,19 +1065,18 @@ const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ManagedClusterListResult, }, default: { - bodyMapper: Mappers.ErrorModel, + bodyMapper: Mappers.ErrorResponse, }, }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, Parameters.nextLink, + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], serializer, }; -const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { +const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { @@ -618,13 +1084,35 @@ const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ManagedClusterListResult, }, default: { - bodyMapper: Mappers.ErrorModel, + bodyMapper: Mappers.ErrorResponse, }, }, urlParameters: [ Parameters.$host, + Parameters.nextLink, Parameters.subscriptionId, + Parameters.resourceGroupName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listFaultSimulationNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.FaultSimulationListResult, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, Parameters.nextLink, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.clusterName, ], headerParameters: [Parameters.accept], serializer, diff --git a/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/operations/managedMaintenanceWindowStatusOperations.ts b/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/operations/managedMaintenanceWindowStatusOperations.ts index fdb916ae6e8a..db7cb7bde2a3 100644 --- a/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/operations/managedMaintenanceWindowStatusOperations.ts +++ b/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/operations/managedMaintenanceWindowStatusOperations.ts @@ -32,7 +32,7 @@ export class ManagedMaintenanceWindowStatusOperationsImpl /** * Action to get Maintenance Window Status of the Service Fabric Managed Clusters. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. * @param options The options parameters. */ @@ -58,7 +58,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ManagedMaintenanceWindowStatus, }, default: { - bodyMapper: Mappers.ErrorModel, + bodyMapper: Mappers.ErrorResponse, }, }, queryParameters: [Parameters.apiVersion], diff --git a/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/operations/managedUnsupportedVMSizes.ts b/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/operations/managedUnsupportedVMSizes.ts index 3d470c643485..1b00cb9c6376 100644 --- a/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/operations/managedUnsupportedVMSizes.ts +++ b/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/operations/managedUnsupportedVMSizes.ts @@ -156,7 +156,7 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ManagedVMSizesResult, }, default: { - bodyMapper: Mappers.ErrorModel, + bodyMapper: Mappers.ErrorResponse, }, }, queryParameters: [Parameters.apiVersion], @@ -176,7 +176,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ManagedVMSize, }, default: { - bodyMapper: Mappers.ErrorModel, + bodyMapper: Mappers.ErrorResponse, }, }, queryParameters: [Parameters.apiVersion], @@ -197,13 +197,13 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ManagedVMSizesResult, }, default: { - bodyMapper: Mappers.ErrorModel, + bodyMapper: Mappers.ErrorResponse, }, }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.nextLink, + Parameters.subscriptionId, Parameters.location, ], headerParameters: [Parameters.accept], diff --git a/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/operations/nodeTypeSkus.ts b/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/operations/nodeTypeSkus.ts index 1effa0acffd0..43c4c0e60cfb 100644 --- a/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/operations/nodeTypeSkus.ts +++ b/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/operations/nodeTypeSkus.ts @@ -36,7 +36,7 @@ export class NodeTypeSkusImpl implements NodeTypeSkus { /** * Get a Service Fabric node type supported SKUs. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. * @param nodeTypeName The name of the node type. * @param options The options parameters. @@ -129,7 +129,7 @@ export class NodeTypeSkusImpl implements NodeTypeSkus { /** * Get a Service Fabric node type supported SKUs. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. * @param nodeTypeName The name of the node type. * @param options The options parameters. @@ -148,7 +148,7 @@ export class NodeTypeSkusImpl implements NodeTypeSkus { /** * ListNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. * @param nodeTypeName The name of the node type. * @param nextLink The nextLink from the previous successful call to the List method. @@ -178,7 +178,7 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.NodeTypeListSkuResult, }, default: { - bodyMapper: Mappers.ErrorModel, + bodyMapper: Mappers.ErrorResponse, }, }, queryParameters: [Parameters.apiVersion], @@ -200,15 +200,15 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.NodeTypeListSkuResult, }, default: { - bodyMapper: Mappers.ErrorModel, + bodyMapper: Mappers.ErrorResponse, }, }, urlParameters: [ Parameters.$host, + Parameters.nextLink, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.clusterName, - Parameters.nextLink, Parameters.nodeTypeName, ], headerParameters: [Parameters.accept], diff --git a/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/operations/nodeTypes.ts b/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/operations/nodeTypes.ts index fab14fc9cfd3..1b1124e65e62 100644 --- a/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/operations/nodeTypes.ts +++ b/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/operations/nodeTypes.ts @@ -24,10 +24,10 @@ import { NodeTypesListByManagedClustersNextOptionalParams, NodeTypesListByManagedClustersOptionalParams, NodeTypesListByManagedClustersResponse, - NodeTypeActionParameters, - NodeTypesRestartOptionalParams, - NodeTypesReimageOptionalParams, - NodeTypesDeleteNodeOptionalParams, + FaultSimulation, + NodeTypesListFaultSimulationNextOptionalParams, + NodeTypesListFaultSimulationOptionalParams, + NodeTypesListFaultSimulationResponse, NodeTypesGetOptionalParams, NodeTypesGetResponse, NodeTypesCreateOrUpdateOptionalParams, @@ -36,7 +36,30 @@ import { NodeTypesUpdateOptionalParams, NodeTypesUpdateResponse, NodeTypesDeleteOptionalParams, + NodeTypesDeleteResponse, + NodeTypeActionParameters, + NodeTypesDeallocateOptionalParams, + NodeTypesDeallocateResponse, + NodeTypesDeleteNodeOptionalParams, + NodeTypesDeleteNodeResponse, + FaultSimulationIdParameters, + NodeTypesGetFaultSimulationOptionalParams, + NodeTypesGetFaultSimulationResponse, + NodeTypesRedeployOptionalParams, + NodeTypesRedeployResponse, + NodeTypesReimageOptionalParams, + NodeTypesReimageResponse, + NodeTypesRestartOptionalParams, + NodeTypesRestartResponse, + NodeTypesStartOptionalParams, + NodeTypesStartResponse, + FaultSimulationParametersUnion, + NodeTypesStartFaultSimulationOptionalParams, + NodeTypesStartFaultSimulationResponse, + NodeTypesStopFaultSimulationOptionalParams, + NodeTypesStopFaultSimulationResponse, NodeTypesListByManagedClustersNextResponse, + NodeTypesListFaultSimulationNextResponse, } from "../models/index.js"; /// @@ -54,7 +77,7 @@ export class NodeTypesImpl implements NodeTypes { /** * Gets all Node types of the specified managed cluster. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. * @param options The options parameters. */ @@ -136,9 +159,102 @@ export class NodeTypesImpl implements NodeTypes { } } + /** + * Gets the list of recent fault simulations for the node type. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster resource. + * @param nodeTypeName The name of the node type. + * @param options The options parameters. + */ + public listFaultSimulation( + resourceGroupName: string, + clusterName: string, + nodeTypeName: string, + options?: NodeTypesListFaultSimulationOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listFaultSimulationPagingAll( + resourceGroupName, + clusterName, + nodeTypeName, + 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.listFaultSimulationPagingPage( + resourceGroupName, + clusterName, + nodeTypeName, + options, + settings, + ); + }, + }; + } + + private async *listFaultSimulationPagingPage( + resourceGroupName: string, + clusterName: string, + nodeTypeName: string, + options?: NodeTypesListFaultSimulationOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: NodeTypesListFaultSimulationResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listFaultSimulation( + resourceGroupName, + clusterName, + nodeTypeName, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listFaultSimulationNext( + resourceGroupName, + clusterName, + nodeTypeName, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listFaultSimulationPagingAll( + resourceGroupName: string, + clusterName: string, + nodeTypeName: string, + options?: NodeTypesListFaultSimulationOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listFaultSimulationPagingPage( + resourceGroupName, + clusterName, + nodeTypeName, + options, + )) { + yield* page; + } + } + /** * Gets all Node types of the specified managed cluster. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. * @param options The options parameters. */ @@ -154,25 +270,48 @@ export class NodeTypesImpl implements NodeTypes { } /** - * Restarts one or more nodes on the node type. It will disable the fabric nodes, trigger a restart on - * the VMs and activate the nodes back again. - * @param resourceGroupName The name of the resource group. + * Get a Service Fabric node type of a given managed cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. * @param nodeTypeName The name of the node type. - * @param parameters parameters for restart action. * @param options The options parameters. */ - async beginRestart( + get( resourceGroupName: string, clusterName: string, nodeTypeName: string, - parameters: NodeTypeActionParameters, - options?: NodeTypesRestartOptionalParams, - ): Promise, void>> { + options?: NodeTypesGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, clusterName, nodeTypeName, options }, + getOperationSpec, + ); + } + + /** + * Create or update a Service Fabric node type of a given managed cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster resource. + * @param nodeTypeName The name of the node type. + * @param parameters The node type resource. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + clusterName: string, + nodeTypeName: string, + parameters: NodeType, + options?: NodeTypesCreateOrUpdateOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + NodeTypesCreateOrUpdateResponse + > + > { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec, - ): Promise => { + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( @@ -216,9 +355,12 @@ export class NodeTypesImpl implements NodeTypes { parameters, options, }, - spec: restartOperationSpec, + spec: createOrUpdateOperationSpec, }); - const poller = await createHttpPoller>(lro, { + const poller = await createHttpPoller< + NodeTypesCreateOrUpdateResponse, + OperationState + >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, resourceLocationConfig: "location", @@ -228,22 +370,21 @@ export class NodeTypesImpl implements NodeTypes { } /** - * Restarts one or more nodes on the node type. It will disable the fabric nodes, trigger a restart on - * the VMs and activate the nodes back again. - * @param resourceGroupName The name of the resource group. + * Create or update a Service Fabric node type of a given managed cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. * @param nodeTypeName The name of the node type. - * @param parameters parameters for restart action. + * @param parameters The node type resource. * @param options The options parameters. */ - async beginRestartAndWait( + async beginCreateOrUpdateAndWait( resourceGroupName: string, clusterName: string, nodeTypeName: string, - parameters: NodeTypeActionParameters, - options?: NodeTypesRestartOptionalParams, - ): Promise { - const poller = await this.beginRestart( + parameters: NodeType, + options?: NodeTypesCreateOrUpdateOptionalParams, + ): Promise { + const poller = await this.beginCreateOrUpdate( resourceGroupName, clusterName, nodeTypeName, @@ -254,25 +395,29 @@ export class NodeTypesImpl implements NodeTypes { } /** - * Reimages one or more nodes on the node type. It will disable the fabric nodes, trigger a reimage on - * the VMs and activate the nodes back again. - * @param resourceGroupName The name of the resource group. + * Update the configuration of a node type of a given managed cluster, only updating tags. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. * @param nodeTypeName The name of the node type. - * @param parameters parameters for reimage action. + * @param parameters The parameters to update the node type configuration. * @param options The options parameters. */ - async beginReimage( + async beginUpdate( resourceGroupName: string, clusterName: string, nodeTypeName: string, - parameters: NodeTypeActionParameters, - options?: NodeTypesReimageOptionalParams, - ): Promise, void>> { + parameters: NodeTypeUpdateParameters, + options?: NodeTypesUpdateOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + NodeTypesUpdateResponse + > + > { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec, - ): Promise => { + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( @@ -316,9 +461,12 @@ export class NodeTypesImpl implements NodeTypes { parameters, options, }, - spec: reimageOperationSpec, + spec: updateOperationSpec, }); - const poller = await createHttpPoller>(lro, { + const poller = await createHttpPoller< + NodeTypesUpdateResponse, + OperationState + >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, resourceLocationConfig: "location", @@ -328,22 +476,21 @@ export class NodeTypesImpl implements NodeTypes { } /** - * Reimages one or more nodes on the node type. It will disable the fabric nodes, trigger a reimage on - * the VMs and activate the nodes back again. - * @param resourceGroupName The name of the resource group. + * Update the configuration of a node type of a given managed cluster, only updating tags. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. * @param nodeTypeName The name of the node type. - * @param parameters parameters for reimage action. + * @param parameters The parameters to update the node type configuration. * @param options The options parameters. */ - async beginReimageAndWait( + async beginUpdateAndWait( resourceGroupName: string, clusterName: string, nodeTypeName: string, - parameters: NodeTypeActionParameters, - options?: NodeTypesReimageOptionalParams, - ): Promise { - const poller = await this.beginReimage( + parameters: NodeTypeUpdateParameters, + options?: NodeTypesUpdateOptionalParams, + ): Promise { + const poller = await this.beginUpdate( resourceGroupName, clusterName, nodeTypeName, @@ -354,25 +501,27 @@ export class NodeTypesImpl implements NodeTypes { } /** - * Deletes one or more nodes on the node type. It will disable the fabric nodes, trigger a delete on - * the VMs and removes the state from the cluster. - * @param resourceGroupName The name of the resource group. + * Delete a Service Fabric node type of a given managed cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. * @param nodeTypeName The name of the node type. - * @param parameters parameters for delete action. * @param options The options parameters. */ - async beginDeleteNode( + async beginDelete( resourceGroupName: string, clusterName: string, nodeTypeName: string, - parameters: NodeTypeActionParameters, - options?: NodeTypesDeleteNodeOptionalParams, - ): Promise, void>> { + options?: NodeTypesDeleteOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + NodeTypesDeleteResponse + > + > { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec, - ): Promise => { + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( @@ -409,16 +558,13 @@ export class NodeTypesImpl implements NodeTypes { const lro = createLroSpec({ sendOperationFn, - args: { - resourceGroupName, - clusterName, - nodeTypeName, - parameters, - options, - }, - spec: deleteNodeOperationSpec, + args: { resourceGroupName, clusterName, nodeTypeName, options }, + spec: deleteOperationSpec, }); - const poller = await createHttpPoller>(lro, { + const poller = await createHttpPoller< + NodeTypesDeleteResponse, + OperationState + >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, resourceLocationConfig: "location", @@ -428,74 +574,52 @@ export class NodeTypesImpl implements NodeTypes { } /** - * Deletes one or more nodes on the node type. It will disable the fabric nodes, trigger a delete on - * the VMs and removes the state from the cluster. - * @param resourceGroupName The name of the resource group. + * Delete a Service Fabric node type of a given managed cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. * @param nodeTypeName The name of the node type. - * @param parameters parameters for delete action. * @param options The options parameters. */ - async beginDeleteNodeAndWait( + async beginDeleteAndWait( resourceGroupName: string, clusterName: string, nodeTypeName: string, - parameters: NodeTypeActionParameters, - options?: NodeTypesDeleteNodeOptionalParams, - ): Promise { - const poller = await this.beginDeleteNode( + options?: NodeTypesDeleteOptionalParams, + ): Promise { + const poller = await this.beginDelete( resourceGroupName, clusterName, nodeTypeName, - parameters, options, ); return poller.pollUntilDone(); } /** - * Get a Service Fabric node type of a given managed cluster. - * @param resourceGroupName The name of the resource group. - * @param clusterName The name of the cluster resource. - * @param nodeTypeName The name of the node type. - * @param options The options parameters. - */ - get( - resourceGroupName: string, - clusterName: string, - nodeTypeName: string, - options?: NodeTypesGetOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, clusterName, nodeTypeName, options }, - getOperationSpec, - ); - } - - /** - * Create or update a Service Fabric node type of a given managed cluster. - * @param resourceGroupName The name of the resource group. + * Deallocates one or more nodes on the node type. It will disable the fabric nodes, trigger a shutdown + * on the VMs and release them from the cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. * @param nodeTypeName The name of the node type. - * @param parameters The node type resource. + * @param parameters parameters for deallocate action. * @param options The options parameters. */ - async beginCreateOrUpdate( + async beginDeallocate( resourceGroupName: string, clusterName: string, nodeTypeName: string, - parameters: NodeType, - options?: NodeTypesCreateOrUpdateOptionalParams, + parameters: NodeTypeActionParameters, + options?: NodeTypesDeallocateOptionalParams, ): Promise< SimplePollerLike< - OperationState, - NodeTypesCreateOrUpdateResponse + OperationState, + NodeTypesDeallocateResponse > > { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec, - ): Promise => { + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( @@ -539,11 +663,11 @@ export class NodeTypesImpl implements NodeTypes { parameters, options, }, - spec: createOrUpdateOperationSpec, + spec: deallocateOperationSpec, }); const poller = await createHttpPoller< - NodeTypesCreateOrUpdateResponse, - OperationState + NodeTypesDeallocateResponse, + OperationState >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, @@ -554,21 +678,22 @@ export class NodeTypesImpl implements NodeTypes { } /** - * Create or update a Service Fabric node type of a given managed cluster. - * @param resourceGroupName The name of the resource group. + * Deallocates one or more nodes on the node type. It will disable the fabric nodes, trigger a shutdown + * on the VMs and release them from the cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. * @param nodeTypeName The name of the node type. - * @param parameters The node type resource. + * @param parameters parameters for deallocate action. * @param options The options parameters. */ - async beginCreateOrUpdateAndWait( + async beginDeallocateAndWait( resourceGroupName: string, clusterName: string, nodeTypeName: string, - parameters: NodeType, - options?: NodeTypesCreateOrUpdateOptionalParams, - ): Promise { - const poller = await this.beginCreateOrUpdate( + parameters: NodeTypeActionParameters, + options?: NodeTypesDeallocateOptionalParams, + ): Promise { + const poller = await this.beginDeallocate( resourceGroupName, clusterName, nodeTypeName, @@ -579,29 +704,394 @@ export class NodeTypesImpl implements NodeTypes { } /** - * Update the configuration of a node type of a given managed cluster, only updating tags. - * @param resourceGroupName The name of the resource group. + * Deletes one or more nodes on the node type. It will disable the fabric nodes, trigger a delete on + * the VMs and removes the state from the cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. * @param nodeTypeName The name of the node type. - * @param parameters The parameters to update the node type configuration. + * @param parameters parameters for delete action. + * @param options The options parameters. + */ + async beginDeleteNode( + resourceGroupName: string, + clusterName: string, + nodeTypeName: string, + parameters: NodeTypeActionParameters, + options?: NodeTypesDeleteNodeOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + NodeTypesDeleteNodeResponse + > + > { + 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, + clusterName, + nodeTypeName, + parameters, + options, + }, + spec: deleteNodeOperationSpec, + }); + const poller = await createHttpPoller< + NodeTypesDeleteNodeResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location", + }); + await poller.poll(); + return poller; + } + + /** + * Deletes one or more nodes on the node type. It will disable the fabric nodes, trigger a delete on + * the VMs and removes the state from the cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster resource. + * @param nodeTypeName The name of the node type. + * @param parameters parameters for delete action. + * @param options The options parameters. + */ + async beginDeleteNodeAndWait( + resourceGroupName: string, + clusterName: string, + nodeTypeName: string, + parameters: NodeTypeActionParameters, + options?: NodeTypesDeleteNodeOptionalParams, + ): Promise { + const poller = await this.beginDeleteNode( + resourceGroupName, + clusterName, + nodeTypeName, + parameters, + options, + ); + return poller.pollUntilDone(); + } + + /** + * Gets a fault simulation by the simulationId. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster resource. + * @param nodeTypeName The name of the node type. + * @param parameters parameter with fault simulation id. + * @param options The options parameters. + */ + getFaultSimulation( + resourceGroupName: string, + clusterName: string, + nodeTypeName: string, + parameters: FaultSimulationIdParameters, + options?: NodeTypesGetFaultSimulationOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, clusterName, nodeTypeName, parameters, options }, + getFaultSimulationOperationSpec, + ); + } + + /** + * Gets the list of recent fault simulations for the node type. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster resource. + * @param nodeTypeName The name of the node type. + * @param options The options parameters. + */ + private _listFaultSimulation( + resourceGroupName: string, + clusterName: string, + nodeTypeName: string, + options?: NodeTypesListFaultSimulationOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, clusterName, nodeTypeName, options }, + listFaultSimulationOperationSpec, + ); + } + + /** + * Redeploys one or more nodes on the node type. It will disable the fabric nodes, trigger a shut down + * on the VMs, move them to a new node, and power them back on. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster resource. + * @param nodeTypeName The name of the node type. + * @param parameters parameters for redeploy action. + * @param options The options parameters. + */ + async beginRedeploy( + resourceGroupName: string, + clusterName: string, + nodeTypeName: string, + parameters: NodeTypeActionParameters, + options?: NodeTypesRedeployOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + NodeTypesRedeployResponse + > + > { + 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, + clusterName, + nodeTypeName, + parameters, + options, + }, + spec: redeployOperationSpec, + }); + const poller = await createHttpPoller< + NodeTypesRedeployResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location", + }); + await poller.poll(); + return poller; + } + + /** + * Redeploys one or more nodes on the node type. It will disable the fabric nodes, trigger a shut down + * on the VMs, move them to a new node, and power them back on. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster resource. + * @param nodeTypeName The name of the node type. + * @param parameters parameters for redeploy action. + * @param options The options parameters. + */ + async beginRedeployAndWait( + resourceGroupName: string, + clusterName: string, + nodeTypeName: string, + parameters: NodeTypeActionParameters, + options?: NodeTypesRedeployOptionalParams, + ): Promise { + const poller = await this.beginRedeploy( + resourceGroupName, + clusterName, + nodeTypeName, + parameters, + options, + ); + return poller.pollUntilDone(); + } + + /** + * Reimages one or more nodes on the node type. It will disable the fabric nodes, trigger a reimage on + * the VMs and activate the nodes back again. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster resource. + * @param nodeTypeName The name of the node type. + * @param parameters parameters for reimage action. + * @param options The options parameters. + */ + async beginReimage( + resourceGroupName: string, + clusterName: string, + nodeTypeName: string, + parameters: NodeTypeActionParameters, + options?: NodeTypesReimageOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + NodeTypesReimageResponse + > + > { + 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, + clusterName, + nodeTypeName, + parameters, + options, + }, + spec: reimageOperationSpec, + }); + const poller = await createHttpPoller< + NodeTypesReimageResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location", + }); + await poller.poll(); + return poller; + } + + /** + * Reimages one or more nodes on the node type. It will disable the fabric nodes, trigger a reimage on + * the VMs and activate the nodes back again. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster resource. + * @param nodeTypeName The name of the node type. + * @param parameters parameters for reimage action. + * @param options The options parameters. + */ + async beginReimageAndWait( + resourceGroupName: string, + clusterName: string, + nodeTypeName: string, + parameters: NodeTypeActionParameters, + options?: NodeTypesReimageOptionalParams, + ): Promise { + const poller = await this.beginReimage( + resourceGroupName, + clusterName, + nodeTypeName, + parameters, + options, + ); + return poller.pollUntilDone(); + } + + /** + * Restarts one or more nodes on the node type. It will disable the fabric nodes, trigger a restart on + * the VMs and activate the nodes back again. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster resource. + * @param nodeTypeName The name of the node type. + * @param parameters parameters for restart action. * @param options The options parameters. */ - async beginUpdate( + async beginRestart( resourceGroupName: string, clusterName: string, nodeTypeName: string, - parameters: NodeTypeUpdateParameters, - options?: NodeTypesUpdateOptionalParams, + parameters: NodeTypeActionParameters, + options?: NodeTypesRestartOptionalParams, ): Promise< SimplePollerLike< - OperationState, - NodeTypesUpdateResponse + OperationState, + NodeTypesRestartResponse > > { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec, - ): Promise => { + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( @@ -645,11 +1135,11 @@ export class NodeTypesImpl implements NodeTypes { parameters, options, }, - spec: updateOperationSpec, + spec: restartOperationSpec, }); const poller = await createHttpPoller< - NodeTypesUpdateResponse, - OperationState + NodeTypesRestartResponse, + OperationState >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, @@ -660,21 +1150,22 @@ export class NodeTypesImpl implements NodeTypes { } /** - * Update the configuration of a node type of a given managed cluster, only updating tags. - * @param resourceGroupName The name of the resource group. + * Restarts one or more nodes on the node type. It will disable the fabric nodes, trigger a restart on + * the VMs and activate the nodes back again. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. * @param nodeTypeName The name of the node type. - * @param parameters The parameters to update the node type configuration. + * @param parameters parameters for restart action. * @param options The options parameters. */ - async beginUpdateAndWait( + async beginRestartAndWait( resourceGroupName: string, clusterName: string, nodeTypeName: string, - parameters: NodeTypeUpdateParameters, - options?: NodeTypesUpdateOptionalParams, - ): Promise { - const poller = await this.beginUpdate( + parameters: NodeTypeActionParameters, + options?: NodeTypesRestartOptionalParams, + ): Promise { + const poller = await this.beginRestart( resourceGroupName, clusterName, nodeTypeName, @@ -685,22 +1176,30 @@ export class NodeTypesImpl implements NodeTypes { } /** - * Delete a Service Fabric node type of a given managed cluster. - * @param resourceGroupName The name of the resource group. + * Starts one or more nodes on the node type. It will trigger an allocation of the fabric node if + * needed and activate them. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. * @param nodeTypeName The name of the node type. + * @param parameters parameters for start action. * @param options The options parameters. */ - async beginDelete( + async beginStart( resourceGroupName: string, clusterName: string, nodeTypeName: string, - options?: NodeTypesDeleteOptionalParams, - ): Promise, void>> { + parameters: NodeTypeActionParameters, + options?: NodeTypesStartOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + NodeTypesStartResponse + > + > { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec, - ): Promise => { + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( @@ -737,10 +1236,19 @@ export class NodeTypesImpl implements NodeTypes { const lro = createLroSpec({ sendOperationFn, - args: { resourceGroupName, clusterName, nodeTypeName, options }, - spec: deleteOperationSpec, + args: { + resourceGroupName, + clusterName, + nodeTypeName, + parameters, + options, + }, + spec: startOperationSpec, }); - const poller = await createHttpPoller>(lro, { + const poller = await createHttpPoller< + NodeTypesStartResponse, + OperationState + >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, resourceLocationConfig: "location", @@ -750,22 +1258,238 @@ export class NodeTypesImpl implements NodeTypes { } /** - * Delete a Service Fabric node type of a given managed cluster. - * @param resourceGroupName The name of the resource group. + * Starts one or more nodes on the node type. It will trigger an allocation of the fabric node if + * needed and activate them. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. * @param nodeTypeName The name of the node type. + * @param parameters parameters for start action. * @param options The options parameters. */ - async beginDeleteAndWait( + async beginStartAndWait( resourceGroupName: string, clusterName: string, nodeTypeName: string, - options?: NodeTypesDeleteOptionalParams, - ): Promise { - const poller = await this.beginDelete( + parameters: NodeTypeActionParameters, + options?: NodeTypesStartOptionalParams, + ): Promise { + const poller = await this.beginStart( + resourceGroupName, + clusterName, + nodeTypeName, + parameters, + options, + ); + return poller.pollUntilDone(); + } + + /** + * Starts a fault simulation on the node type. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster resource. + * @param nodeTypeName The name of the node type. + * @param parameters parameters describing the fault simulation. + * @param options The options parameters. + */ + async beginStartFaultSimulation( + resourceGroupName: string, + clusterName: string, + nodeTypeName: string, + parameters: FaultSimulationParametersUnion, + options?: NodeTypesStartFaultSimulationOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + NodeTypesStartFaultSimulationResponse + > + > { + 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, + clusterName, + nodeTypeName, + parameters, + options, + }, + spec: startFaultSimulationOperationSpec, + }); + const poller = await createHttpPoller< + NodeTypesStartFaultSimulationResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location", + }); + await poller.poll(); + return poller; + } + + /** + * Starts a fault simulation on the node type. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster resource. + * @param nodeTypeName The name of the node type. + * @param parameters parameters describing the fault simulation. + * @param options The options parameters. + */ + async beginStartFaultSimulationAndWait( + resourceGroupName: string, + clusterName: string, + nodeTypeName: string, + parameters: FaultSimulationParametersUnion, + options?: NodeTypesStartFaultSimulationOptionalParams, + ): Promise { + const poller = await this.beginStartFaultSimulation( + resourceGroupName, + clusterName, + nodeTypeName, + parameters, + options, + ); + return poller.pollUntilDone(); + } + + /** + * Stops a fault simulation on the node type. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster resource. + * @param nodeTypeName The name of the node type. + * @param parameters parameter with fault simulation id. + * @param options The options parameters. + */ + async beginStopFaultSimulation( + resourceGroupName: string, + clusterName: string, + nodeTypeName: string, + parameters: FaultSimulationIdParameters, + options?: NodeTypesStopFaultSimulationOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + NodeTypesStopFaultSimulationResponse + > + > { + 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, + clusterName, + nodeTypeName, + parameters, + options, + }, + spec: stopFaultSimulationOperationSpec, + }); + const poller = await createHttpPoller< + NodeTypesStopFaultSimulationResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location", + }); + await poller.poll(); + return poller; + } + + /** + * Stops a fault simulation on the node type. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster resource. + * @param nodeTypeName The name of the node type. + * @param parameters parameter with fault simulation id. + * @param options The options parameters. + */ + async beginStopFaultSimulationAndWait( + resourceGroupName: string, + clusterName: string, + nodeTypeName: string, + parameters: FaultSimulationIdParameters, + options?: NodeTypesStopFaultSimulationOptionalParams, + ): Promise { + const poller = await this.beginStopFaultSimulation( resourceGroupName, clusterName, nodeTypeName, + parameters, options, ); return poller.pollUntilDone(); @@ -773,7 +1497,7 @@ export class NodeTypesImpl implements NodeTypes { /** * ListByManagedClustersNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. * @param nextLink The nextLink from the previous successful call to the ListByManagedClusters method. * @param options The options parameters. @@ -789,6 +1513,27 @@ export class NodeTypesImpl implements NodeTypes { listByManagedClustersNextOperationSpec, ); } + + /** + * ListFaultSimulationNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster resource. + * @param nodeTypeName The name of the node type. + * @param nextLink The nextLink from the previous successful call to the ListFaultSimulation method. + * @param options The options parameters. + */ + private _listFaultSimulationNext( + resourceGroupName: string, + clusterName: string, + nodeTypeName: string, + nextLink: string, + options?: NodeTypesListFaultSimulationNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, clusterName, nodeTypeName, nextLink, options }, + listFaultSimulationNextOperationSpec, + ); + } } // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); @@ -798,10 +1543,31 @@ const listByManagedClustersOperationSpec: coreClient.OperationSpec = { httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.NodeTypeListResult, + bodyMapper: Mappers.NodeTypeListResult, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.clusterName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/managedClusters/{clusterName}/nodeTypes/{nodeTypeName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.NodeType, }, default: { - bodyMapper: Mappers.ErrorModel, + bodyMapper: Mappers.ErrorResponse, }, }, queryParameters: [Parameters.apiVersion], @@ -810,23 +1576,32 @@ const listByManagedClustersOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.clusterName, + Parameters.nodeTypeName, ], headerParameters: [Parameters.accept], serializer, }; -const restartOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/managedClusters/{clusterName}/nodeTypes/{nodeTypeName}/restart", - httpMethod: "POST", +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/managedClusters/{clusterName}/nodeTypes/{nodeTypeName}", + httpMethod: "PUT", responses: { - 200: {}, - 201: {}, - 202: {}, - 204: {}, + 200: { + bodyMapper: Mappers.NodeType, + }, + 201: { + bodyMapper: Mappers.NodeType, + }, + 202: { + bodyMapper: Mappers.NodeType, + }, + 204: { + bodyMapper: Mappers.NodeType, + }, default: { - bodyMapper: Mappers.ErrorModel, + bodyMapper: Mappers.ErrorResponse, }, }, - requestBody: Parameters.parameters11, + requestBody: Parameters.parameters13, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -839,19 +1614,91 @@ const restartOperationSpec: coreClient.OperationSpec = { mediaType: "json", serializer, }; -const reimageOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/managedClusters/{clusterName}/nodeTypes/{nodeTypeName}/reimage", +const updateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/managedClusters/{clusterName}/nodeTypes/{nodeTypeName}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.NodeType, + }, + 201: { + bodyMapper: Mappers.NodeType, + }, + 202: { + bodyMapper: Mappers.NodeType, + }, + 204: { + bodyMapper: Mappers.NodeType, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters14, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.clusterName, + Parameters.nodeTypeName, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/managedClusters/{clusterName}/nodeTypes/{nodeTypeName}", + httpMethod: "DELETE", + responses: { + 200: { + headersMapper: Mappers.NodeTypesDeleteHeaders, + }, + 201: { + headersMapper: Mappers.NodeTypesDeleteHeaders, + }, + 202: { + headersMapper: Mappers.NodeTypesDeleteHeaders, + }, + 204: { + headersMapper: Mappers.NodeTypesDeleteHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.clusterName, + Parameters.nodeTypeName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const deallocateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/managedClusters/{clusterName}/nodeTypes/{nodeTypeName}/deallocate", httpMethod: "POST", responses: { - 200: {}, - 201: {}, - 202: {}, - 204: {}, + 200: { + headersMapper: Mappers.NodeTypesDeallocateHeaders, + }, + 201: { + headersMapper: Mappers.NodeTypesDeallocateHeaders, + }, + 202: { + headersMapper: Mappers.NodeTypesDeallocateHeaders, + }, + 204: { + headersMapper: Mappers.NodeTypesDeallocateHeaders, + }, default: { - bodyMapper: Mappers.ErrorModel, + bodyMapper: Mappers.ErrorResponse, }, }, - requestBody: Parameters.parameters11, + requestBody: Parameters.parameters15, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -868,15 +1715,47 @@ const deleteNodeOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/managedClusters/{clusterName}/nodeTypes/{nodeTypeName}/deleteNode", httpMethod: "POST", responses: { - 200: {}, - 201: {}, - 202: {}, - 204: {}, + 200: { + headersMapper: Mappers.NodeTypesDeleteNodeHeaders, + }, + 201: { + headersMapper: Mappers.NodeTypesDeleteNodeHeaders, + }, + 202: { + headersMapper: Mappers.NodeTypesDeleteNodeHeaders, + }, + 204: { + headersMapper: Mappers.NodeTypesDeleteNodeHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters15, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.clusterName, + Parameters.nodeTypeName, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const getFaultSimulationOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/managedClusters/{clusterName}/nodeTypes/{nodeTypeName}/getFaultSimulation", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.FaultSimulation, + }, default: { - bodyMapper: Mappers.ErrorModel, + bodyMapper: Mappers.ErrorResponse, }, }, - requestBody: Parameters.parameters11, + requestBody: Parameters.parameters2, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -889,15 +1768,15 @@ const deleteNodeOperationSpec: coreClient.OperationSpec = { mediaType: "json", serializer, }; -const getOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/managedClusters/{clusterName}/nodeTypes/{nodeTypeName}", - httpMethod: "GET", +const listFaultSimulationOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/managedClusters/{clusterName}/nodeTypes/{nodeTypeName}/listFaultSimulation", + httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.NodeType, + bodyMapper: Mappers.FaultSimulationListResult, }, default: { - bodyMapper: Mappers.ErrorModel, + bodyMapper: Mappers.ErrorResponse, }, }, queryParameters: [Parameters.apiVersion], @@ -911,27 +1790,27 @@ const getOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer, }; -const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/managedClusters/{clusterName}/nodeTypes/{nodeTypeName}", - httpMethod: "PUT", +const redeployOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/managedClusters/{clusterName}/nodeTypes/{nodeTypeName}/redeploy", + httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.NodeType, + headersMapper: Mappers.NodeTypesRedeployHeaders, }, 201: { - bodyMapper: Mappers.NodeType, + headersMapper: Mappers.NodeTypesRedeployHeaders, }, 202: { - bodyMapper: Mappers.NodeType, + headersMapper: Mappers.NodeTypesRedeployHeaders, }, 204: { - bodyMapper: Mappers.NodeType, + headersMapper: Mappers.NodeTypesRedeployHeaders, }, default: { - bodyMapper: Mappers.ErrorModel, + bodyMapper: Mappers.ErrorResponse, }, }, - requestBody: Parameters.parameters12, + requestBody: Parameters.parameters15, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -944,27 +1823,27 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { mediaType: "json", serializer, }; -const updateOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/managedClusters/{clusterName}/nodeTypes/{nodeTypeName}", - httpMethod: "PATCH", +const reimageOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/managedClusters/{clusterName}/nodeTypes/{nodeTypeName}/reimage", + httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.NodeType, + headersMapper: Mappers.NodeTypesReimageHeaders, }, 201: { - bodyMapper: Mappers.NodeType, + headersMapper: Mappers.NodeTypesReimageHeaders, }, 202: { - bodyMapper: Mappers.NodeType, + headersMapper: Mappers.NodeTypesReimageHeaders, }, 204: { - bodyMapper: Mappers.NodeType, + headersMapper: Mappers.NodeTypesReimageHeaders, }, default: { - bodyMapper: Mappers.ErrorModel, + bodyMapper: Mappers.ErrorResponse, }, }, - requestBody: Parameters.parameters13, + requestBody: Parameters.parameters15, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -977,18 +1856,27 @@ const updateOperationSpec: coreClient.OperationSpec = { mediaType: "json", serializer, }; -const deleteOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/managedClusters/{clusterName}/nodeTypes/{nodeTypeName}", - httpMethod: "DELETE", +const restartOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/managedClusters/{clusterName}/nodeTypes/{nodeTypeName}/restart", + httpMethod: "POST", responses: { - 200: {}, - 201: {}, - 202: {}, - 204: {}, + 200: { + headersMapper: Mappers.NodeTypesRestartHeaders, + }, + 201: { + headersMapper: Mappers.NodeTypesRestartHeaders, + }, + 202: { + headersMapper: Mappers.NodeTypesRestartHeaders, + }, + 204: { + headersMapper: Mappers.NodeTypesRestartHeaders, + }, default: { - bodyMapper: Mappers.ErrorModel, + bodyMapper: Mappers.ErrorResponse, }, }, + requestBody: Parameters.parameters15, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -997,7 +1885,107 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.clusterName, Parameters.nodeTypeName, ], - headerParameters: [Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const startOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/managedClusters/{clusterName}/nodeTypes/{nodeTypeName}/start", + httpMethod: "POST", + responses: { + 200: { + headersMapper: Mappers.NodeTypesStartHeaders, + }, + 201: { + headersMapper: Mappers.NodeTypesStartHeaders, + }, + 202: { + headersMapper: Mappers.NodeTypesStartHeaders, + }, + 204: { + headersMapper: Mappers.NodeTypesStartHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters15, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.clusterName, + Parameters.nodeTypeName, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const startFaultSimulationOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/managedClusters/{clusterName}/nodeTypes/{nodeTypeName}/startFaultSimulation", + httpMethod: "POST", + responses: { + 200: { + headersMapper: Mappers.NodeTypesStartFaultSimulationHeaders, + }, + 201: { + headersMapper: Mappers.NodeTypesStartFaultSimulationHeaders, + }, + 202: { + headersMapper: Mappers.NodeTypesStartFaultSimulationHeaders, + }, + 204: { + headersMapper: Mappers.NodeTypesStartFaultSimulationHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters3, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.clusterName, + Parameters.nodeTypeName, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const stopFaultSimulationOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/managedClusters/{clusterName}/nodeTypes/{nodeTypeName}/stopFaultSimulation", + httpMethod: "POST", + responses: { + 200: { + headersMapper: Mappers.NodeTypesStopFaultSimulationHeaders, + }, + 201: { + headersMapper: Mappers.NodeTypesStopFaultSimulationHeaders, + }, + 202: { + headersMapper: Mappers.NodeTypesStopFaultSimulationHeaders, + }, + 204: { + headersMapper: Mappers.NodeTypesStopFaultSimulationHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters2, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.clusterName, + Parameters.nodeTypeName, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", serializer, }; const listByManagedClustersNextOperationSpec: coreClient.OperationSpec = { @@ -1008,15 +1996,37 @@ const listByManagedClustersNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.NodeTypeListResult, }, default: { - bodyMapper: Mappers.ErrorModel, + bodyMapper: Mappers.ErrorResponse, }, }, urlParameters: [ Parameters.$host, + Parameters.nextLink, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.clusterName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listFaultSimulationNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.FaultSimulationListResult, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, Parameters.nextLink, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.clusterName, + Parameters.nodeTypeName, ], headerParameters: [Parameters.accept], serializer, diff --git a/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/operations/operationResults.ts b/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/operations/operationResults.ts index cd0d95a3f502..4338ced8448b 100644 --- a/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/operations/operationResults.ts +++ b/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/operations/operationResults.ts @@ -30,7 +30,7 @@ export class OperationResultsImpl implements OperationResults { /** * Get long running operation result. - * @param location The location for the cluster code versions. This is different from cluster location. + * @param location The name of Azure region. * @param operationId operation identifier. * @param options The options parameters. */ @@ -58,14 +58,14 @@ const getOperationSpec: coreClient.OperationSpec = { }, 204: {}, default: { - bodyMapper: Mappers.ErrorModel, + bodyMapper: Mappers.ErrorResponse, }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.location, + Parameters.location1, Parameters.operationId, ], headerParameters: [Parameters.accept], diff --git a/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/operations/operationStatus.ts b/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/operations/operationStatus.ts index a41223bf087b..c914fbc419ac 100644 --- a/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/operations/operationStatus.ts +++ b/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/operations/operationStatus.ts @@ -30,7 +30,7 @@ export class OperationStatusImpl implements OperationStatus { /** * Get long running operation status. - * @param location The location for the cluster code versions. This is different from cluster location. + * @param location The name of Azure region. * @param operationId operation identifier. * @param options The options parameters. */ @@ -56,14 +56,14 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.LongRunningOperationResult, }, default: { - bodyMapper: Mappers.ErrorModel, + bodyMapper: Mappers.ErrorResponse, }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.location, + Parameters.location1, Parameters.operationId, ], headerParameters: [Parameters.accept], diff --git a/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/operations/operations.ts b/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/operations/operations.ts index a191f28056c3..2752fbbcc083 100644 --- a/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/operations/operations.ts +++ b/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/operations/operations.ts @@ -14,7 +14,7 @@ import * as Mappers from "../models/mappers.js"; import * as Parameters from "../models/parameters.js"; import { ServiceFabricManagedClustersManagementClient } from "../serviceFabricManagedClustersManagementClient.js"; import { - OperationResult, + Operation, OperationsListNextOptionalParams, OperationsListOptionalParams, OperationsListResponse, @@ -35,12 +35,12 @@ export class OperationsImpl implements Operations { } /** - * Get the list of available Service Fabric resource provider API operations. + * List the operations for the provider * @param options The options parameters. */ public list( options?: OperationsListOptionalParams, - ): PagedAsyncIterableIterator { + ): PagedAsyncIterableIterator { const iter = this.listPagingAll(options); return { next() { @@ -61,7 +61,7 @@ export class OperationsImpl implements Operations { private async *listPagingPage( options?: OperationsListOptionalParams, settings?: PageSettings, - ): AsyncIterableIterator { + ): AsyncIterableIterator { let result: OperationsListResponse; let continuationToken = settings?.continuationToken; if (!continuationToken) { @@ -82,14 +82,14 @@ export class OperationsImpl implements Operations { private async *listPagingAll( options?: OperationsListOptionalParams, - ): AsyncIterableIterator { + ): AsyncIterableIterator { for await (const page of this.listPagingPage(options)) { yield* page; } } /** - * Get the list of available Service Fabric resource provider API operations. + * List the operations for the provider * @param options The options parameters. */ private _list( @@ -124,7 +124,7 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.OperationListResult, }, default: { - bodyMapper: Mappers.ErrorModel, + bodyMapper: Mappers.ErrorResponse, }, }, queryParameters: [Parameters.apiVersion], @@ -140,7 +140,7 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.OperationListResult, }, default: { - bodyMapper: Mappers.ErrorModel, + bodyMapper: Mappers.ErrorResponse, }, }, urlParameters: [Parameters.$host, Parameters.nextLink], diff --git a/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/operations/services.ts b/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/operations/services.ts index 4957a7a02483..b3769363ef25 100644 --- a/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/operations/services.ts +++ b/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/operations/services.ts @@ -32,6 +32,7 @@ import { ServicesUpdateOptionalParams, ServicesUpdateResponse, ServicesDeleteOptionalParams, + ServicesDeleteResponse, ServicesListByApplicationsNextResponse, } from "../models/index.js"; @@ -51,7 +52,7 @@ export class ServicesImpl implements Services { /** * Gets all service resources created or in the process of being created in the Service Fabric managed * application resource. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. * @param applicationName The name of the application resource. * @param options The options parameters. @@ -142,10 +143,30 @@ export class ServicesImpl implements Services { } } + /** + * Gets all service resources created or in the process of being created in the Service Fabric managed + * application resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster resource. + * @param applicationName The name of the application resource. + * @param options The options parameters. + */ + private _listByApplications( + resourceGroupName: string, + clusterName: string, + applicationName: string, + options?: ServicesListByApplicationsOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, clusterName, applicationName, options }, + listByApplicationsOperationSpec, + ); + } + /** * Get a Service Fabric service resource created or in the process of being created in the Service * Fabric managed application resource. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. * @param applicationName The name of the application resource. * @param serviceName The name of the service resource in the format of @@ -167,7 +188,7 @@ export class ServicesImpl implements Services { /** * Create or update a Service Fabric managed service resource with the specified name. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. * @param applicationName The name of the application resource. * @param serviceName The name of the service resource in the format of @@ -252,7 +273,7 @@ export class ServicesImpl implements Services { /** * Create or update a Service Fabric managed service resource with the specified name. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. * @param applicationName The name of the application resource. * @param serviceName The name of the service resource in the format of @@ -281,7 +302,7 @@ export class ServicesImpl implements Services { /** * Updates the tags of a service resource of a given managed cluster. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. * @param applicationName The name of the application resource. * @param serviceName The name of the service resource in the format of @@ -312,7 +333,7 @@ export class ServicesImpl implements Services { /** * Delete a Service Fabric managed service resource with the specified name. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. * @param applicationName The name of the application resource. * @param serviceName The name of the service resource in the format of @@ -325,11 +346,16 @@ export class ServicesImpl implements Services { applicationName: string, serviceName: string, options?: ServicesDeleteOptionalParams, - ): Promise, void>> { + ): Promise< + SimplePollerLike< + OperationState, + ServicesDeleteResponse + > + > { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec, - ): Promise => { + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( @@ -375,7 +401,10 @@ export class ServicesImpl implements Services { }, spec: deleteOperationSpec, }); - const poller = await createHttpPoller>(lro, { + const poller = await createHttpPoller< + ServicesDeleteResponse, + OperationState + >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, resourceLocationConfig: "location", @@ -386,7 +415,7 @@ export class ServicesImpl implements Services { /** * Delete a Service Fabric managed service resource with the specified name. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. * @param applicationName The name of the application resource. * @param serviceName The name of the service resource in the format of @@ -399,7 +428,7 @@ export class ServicesImpl implements Services { applicationName: string, serviceName: string, options?: ServicesDeleteOptionalParams, - ): Promise { + ): Promise { const poller = await this.beginDelete( resourceGroupName, clusterName, @@ -410,29 +439,9 @@ export class ServicesImpl implements Services { return poller.pollUntilDone(); } - /** - * Gets all service resources created or in the process of being created in the Service Fabric managed - * application resource. - * @param resourceGroupName The name of the resource group. - * @param clusterName The name of the cluster resource. - * @param applicationName The name of the application resource. - * @param options The options parameters. - */ - private _listByApplications( - resourceGroupName: string, - clusterName: string, - applicationName: string, - options?: ServicesListByApplicationsOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, clusterName, applicationName, options }, - listByApplicationsOperationSpec, - ); - } - /** * ListByApplicationsNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. * @param applicationName The name of the application resource. * @param nextLink The nextLink from the previous successful call to the ListByApplications method. @@ -454,15 +463,37 @@ export class ServicesImpl implements Services { // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); +const listByApplicationsOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/managedClusters/{clusterName}/applications/{applicationName}/services", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ServiceResourceList, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.clusterName, + Parameters.applicationName, + ], + headerParameters: [Parameters.accept], + serializer, +}; const getOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/managedclusters/{clusterName}/applications/{applicationName}/services/{serviceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/managedClusters/{clusterName}/applications/{applicationName}/services/{serviceName}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.ServiceResource, }, default: { - bodyMapper: Mappers.ErrorModel, + bodyMapper: Mappers.ErrorResponse, }, }, queryParameters: [Parameters.apiVersion], @@ -478,7 +509,7 @@ const getOperationSpec: coreClient.OperationSpec = { serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/managedclusters/{clusterName}/applications/{applicationName}/services/{serviceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/managedClusters/{clusterName}/applications/{applicationName}/services/{serviceName}", httpMethod: "PUT", responses: { 200: { @@ -494,10 +525,10 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ServiceResource, }, default: { - bodyMapper: Mappers.ErrorModel, + bodyMapper: Mappers.ErrorResponse, }, }, - requestBody: Parameters.parameters7, + requestBody: Parameters.parameters11, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -512,17 +543,17 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/managedclusters/{clusterName}/applications/{applicationName}/services/{serviceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/managedClusters/{clusterName}/applications/{applicationName}/services/{serviceName}", httpMethod: "PATCH", responses: { 200: { bodyMapper: Mappers.ServiceResource, }, default: { - bodyMapper: Mappers.ErrorModel, + bodyMapper: Mappers.ErrorResponse, }, }, - requestBody: Parameters.parameters8, + requestBody: Parameters.parameters12, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -537,38 +568,23 @@ const updateOperationSpec: coreClient.OperationSpec = { serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/managedclusters/{clusterName}/applications/{applicationName}/services/{serviceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/managedClusters/{clusterName}/applications/{applicationName}/services/{serviceName}", httpMethod: "DELETE", - responses: { - 200: {}, - 201: {}, - 202: {}, - 204: {}, - default: { - bodyMapper: Mappers.ErrorModel, - }, - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.clusterName, - Parameters.applicationName, - Parameters.serviceName, - ], - headerParameters: [Parameters.accept], - serializer, -}; -const listByApplicationsOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/managedclusters/{clusterName}/applications/{applicationName}/services", - httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ServiceResourceList, + headersMapper: Mappers.ServicesDeleteHeaders, + }, + 201: { + headersMapper: Mappers.ServicesDeleteHeaders, + }, + 202: { + headersMapper: Mappers.ServicesDeleteHeaders, + }, + 204: { + headersMapper: Mappers.ServicesDeleteHeaders, }, default: { - bodyMapper: Mappers.ErrorModel, + bodyMapper: Mappers.ErrorResponse, }, }, queryParameters: [Parameters.apiVersion], @@ -578,6 +594,7 @@ const listByApplicationsOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.clusterName, Parameters.applicationName, + Parameters.serviceName, ], headerParameters: [Parameters.accept], serializer, @@ -590,15 +607,15 @@ const listByApplicationsNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ServiceResourceList, }, default: { - bodyMapper: Mappers.ErrorModel, + bodyMapper: Mappers.ErrorResponse, }, }, urlParameters: [ Parameters.$host, + Parameters.nextLink, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.clusterName, - Parameters.nextLink, Parameters.applicationName, ], headerParameters: [Parameters.accept], diff --git a/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/operationsInterfaces/applicationTypeVersions.ts b/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/operationsInterfaces/applicationTypeVersions.ts index 8e4a1201552a..504010cc58f1 100644 --- a/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/operationsInterfaces/applicationTypeVersions.ts +++ b/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/operationsInterfaces/applicationTypeVersions.ts @@ -19,6 +19,7 @@ import { ApplicationTypeVersionsUpdateOptionalParams, ApplicationTypeVersionsUpdateResponse, ApplicationTypeVersionsDeleteOptionalParams, + ApplicationTypeVersionsDeleteResponse, } from "../models/index.js"; /// @@ -27,7 +28,7 @@ export interface ApplicationTypeVersions { /** * Gets all application type version resources created or in the process of being created in the * Service Fabric managed application type name resource. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. * @param applicationTypeName The name of the application type name resource. * @param options The options parameters. @@ -41,7 +42,7 @@ export interface ApplicationTypeVersions { /** * Get a Service Fabric managed application type version resource created or in the process of being * created in the Service Fabric managed application type name resource. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. * @param applicationTypeName The name of the application type name resource. * @param version The application type version. @@ -56,7 +57,7 @@ export interface ApplicationTypeVersions { ): Promise; /** * Create or update a Service Fabric managed application type version resource with the specified name. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. * @param applicationTypeName The name of the application type name resource. * @param version The application type version. @@ -78,7 +79,7 @@ export interface ApplicationTypeVersions { >; /** * Create or update a Service Fabric managed application type version resource with the specified name. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. * @param applicationTypeName The name of the application type name resource. * @param version The application type version. @@ -95,7 +96,7 @@ export interface ApplicationTypeVersions { ): Promise; /** * Updates the tags of an application type version resource of a given managed cluster. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. * @param applicationTypeName The name of the application type name resource. * @param version The application type version. @@ -112,7 +113,7 @@ export interface ApplicationTypeVersions { ): Promise; /** * Delete a Service Fabric managed application type version resource with the specified name. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. * @param applicationTypeName The name of the application type name resource. * @param version The application type version. @@ -124,10 +125,15 @@ export interface ApplicationTypeVersions { applicationTypeName: string, version: string, options?: ApplicationTypeVersionsDeleteOptionalParams, - ): Promise, void>>; + ): Promise< + SimplePollerLike< + OperationState, + ApplicationTypeVersionsDeleteResponse + > + >; /** * Delete a Service Fabric managed application type version resource with the specified name. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. * @param applicationTypeName The name of the application type name resource. * @param version The application type version. @@ -139,5 +145,5 @@ export interface ApplicationTypeVersions { applicationTypeName: string, version: string, options?: ApplicationTypeVersionsDeleteOptionalParams, - ): Promise; + ): Promise; } diff --git a/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/operationsInterfaces/applicationTypes.ts b/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/operationsInterfaces/applicationTypes.ts index 09fb93b09cc1..6484702f70d1 100644 --- a/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/operationsInterfaces/applicationTypes.ts +++ b/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/operationsInterfaces/applicationTypes.ts @@ -19,6 +19,7 @@ import { ApplicationTypesUpdateOptionalParams, ApplicationTypesUpdateResponse, ApplicationTypesDeleteOptionalParams, + ApplicationTypesDeleteResponse, } from "../models/index.js"; /// @@ -27,7 +28,7 @@ export interface ApplicationTypes { /** * Gets all application type name resources created or in the process of being created in the Service * Fabric managed cluster resource. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. * @param options The options parameters. */ @@ -39,7 +40,7 @@ export interface ApplicationTypes { /** * Get a Service Fabric application type name resource created or in the process of being created in * the Service Fabric managed cluster resource. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. * @param applicationTypeName The name of the application type name resource. * @param options The options parameters. @@ -52,7 +53,7 @@ export interface ApplicationTypes { ): Promise; /** * Create or update a Service Fabric managed application type name resource with the specified name. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. * @param applicationTypeName The name of the application type name resource. * @param parameters The application type name resource. @@ -67,7 +68,7 @@ export interface ApplicationTypes { ): Promise; /** * Updates the tags of an application type resource of a given managed cluster. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. * @param applicationTypeName The name of the application type name resource. * @param parameters The application type resource updated tags. @@ -82,7 +83,7 @@ export interface ApplicationTypes { ): Promise; /** * Delete a Service Fabric managed application type name resource with the specified name. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. * @param applicationTypeName The name of the application type name resource. * @param options The options parameters. @@ -92,10 +93,15 @@ export interface ApplicationTypes { clusterName: string, applicationTypeName: string, options?: ApplicationTypesDeleteOptionalParams, - ): Promise, void>>; + ): Promise< + SimplePollerLike< + OperationState, + ApplicationTypesDeleteResponse + > + >; /** * Delete a Service Fabric managed application type name resource with the specified name. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. * @param applicationTypeName The name of the application type name resource. * @param options The options parameters. @@ -105,5 +111,5 @@ export interface ApplicationTypes { clusterName: string, applicationTypeName: string, options?: ApplicationTypesDeleteOptionalParams, - ): Promise; + ): Promise; } diff --git a/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/operationsInterfaces/applications.ts b/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/operationsInterfaces/applications.ts index 13f329ea5062..a09892b258c4 100644 --- a/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/operationsInterfaces/applications.ts +++ b/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/operationsInterfaces/applications.ts @@ -11,13 +11,6 @@ import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { ApplicationResource, ApplicationsListOptionalParams, - ApplicationsReadUpgradeOptionalParams, - ApplicationsReadUpgradeResponse, - ApplicationsStartRollbackOptionalParams, - ApplicationsStartRollbackResponse, - RuntimeResumeApplicationUpgradeParameters, - ApplicationsResumeUpgradeOptionalParams, - ApplicationsResumeUpgradeResponse, ApplicationsGetOptionalParams, ApplicationsGetResponse, ApplicationsCreateOrUpdateOptionalParams, @@ -26,6 +19,14 @@ import { ApplicationsUpdateOptionalParams, ApplicationsUpdateResponse, ApplicationsDeleteOptionalParams, + ApplicationsDeleteResponse, + ApplicationsReadUpgradeOptionalParams, + ApplicationsReadUpgradeResponse, + RuntimeResumeApplicationUpgradeParameters, + ApplicationsResumeUpgradeOptionalParams, + ApplicationsResumeUpgradeResponse, + ApplicationsStartRollbackOptionalParams, + ApplicationsStartRollbackResponse, } from "../models/index.js"; /// @@ -34,7 +35,7 @@ export interface Applications { /** * Gets all managed application resources created or in the process of being created in the Service * Fabric cluster resource. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. * @param options The options parameters. */ @@ -44,196 +45,201 @@ export interface Applications { options?: ApplicationsListOptionalParams, ): PagedAsyncIterableIterator; /** - * Get the status of the latest application upgrade. It will query the cluster to find the status of - * the latest application upgrade. - * @param resourceGroupName The name of the resource group. + * Get a Service Fabric managed application resource created or in the process of being created in the + * Service Fabric cluster resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. * @param applicationName The name of the application resource. * @param options The options parameters. */ - beginReadUpgrade( + get( resourceGroupName: string, clusterName: string, applicationName: string, - options?: ApplicationsReadUpgradeOptionalParams, - ): Promise< - SimplePollerLike< - OperationState, - ApplicationsReadUpgradeResponse - > - >; + options?: ApplicationsGetOptionalParams, + ): Promise; /** - * Get the status of the latest application upgrade. It will query the cluster to find the status of - * the latest application upgrade. - * @param resourceGroupName The name of the resource group. + * Create or update a Service Fabric managed application resource with the specified name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. * @param applicationName The name of the application resource. + * @param parameters The application resource. * @param options The options parameters. */ - beginReadUpgradeAndWait( + beginCreateOrUpdate( resourceGroupName: string, clusterName: string, applicationName: string, - options?: ApplicationsReadUpgradeOptionalParams, - ): Promise; + parameters: ApplicationResource, + options?: ApplicationsCreateOrUpdateOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + ApplicationsCreateOrUpdateResponse + > + >; /** - * Send a request to start a rollback of the current application upgrade. This will start rolling back - * the application to the previous version. - * @param resourceGroupName The name of the resource group. + * Create or update a Service Fabric managed application resource with the specified name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. * @param applicationName The name of the application resource. + * @param parameters The application resource. * @param options The options parameters. */ - beginStartRollback( + beginCreateOrUpdateAndWait( resourceGroupName: string, clusterName: string, applicationName: string, - options?: ApplicationsStartRollbackOptionalParams, - ): Promise< - SimplePollerLike< - OperationState, - ApplicationsStartRollbackResponse - > - >; + parameters: ApplicationResource, + options?: ApplicationsCreateOrUpdateOptionalParams, + ): Promise; /** - * Send a request to start a rollback of the current application upgrade. This will start rolling back - * the application to the previous version. - * @param resourceGroupName The name of the resource group. + * Updates the tags of an application resource of a given managed cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. * @param applicationName The name of the application resource. + * @param parameters The application resource updated tags. * @param options The options parameters. */ - beginStartRollbackAndWait( + update( resourceGroupName: string, clusterName: string, applicationName: string, - options?: ApplicationsStartRollbackOptionalParams, - ): Promise; + parameters: ApplicationUpdateParameters, + options?: ApplicationsUpdateOptionalParams, + ): Promise; /** - * Send a request to resume the current application upgrade. This will resume the application upgrade - * from where it was paused. - * @param resourceGroupName The name of the resource group. + * Delete a Service Fabric managed application resource with the specified name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. * @param applicationName The name of the application resource. - * @param parameters The parameters for resuming an application upgrade. * @param options The options parameters. */ - beginResumeUpgrade( + beginDelete( resourceGroupName: string, clusterName: string, applicationName: string, - parameters: RuntimeResumeApplicationUpgradeParameters, - options?: ApplicationsResumeUpgradeOptionalParams, + options?: ApplicationsDeleteOptionalParams, ): Promise< SimplePollerLike< - OperationState, - ApplicationsResumeUpgradeResponse + OperationState, + ApplicationsDeleteResponse > >; /** - * Send a request to resume the current application upgrade. This will resume the application upgrade - * from where it was paused. - * @param resourceGroupName The name of the resource group. + * Delete a Service Fabric managed application resource with the specified name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. * @param applicationName The name of the application resource. - * @param parameters The parameters for resuming an application upgrade. * @param options The options parameters. */ - beginResumeUpgradeAndWait( + beginDeleteAndWait( resourceGroupName: string, clusterName: string, applicationName: string, - parameters: RuntimeResumeApplicationUpgradeParameters, - options?: ApplicationsResumeUpgradeOptionalParams, - ): Promise; + options?: ApplicationsDeleteOptionalParams, + ): Promise; /** - * Get a Service Fabric managed application resource created or in the process of being created in the - * Service Fabric cluster resource. - * @param resourceGroupName The name of the resource group. + * Get the status of the latest application upgrade. It will query the cluster to find the status of + * the latest application upgrade. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. * @param applicationName The name of the application resource. * @param options The options parameters. */ - get( + beginReadUpgrade( resourceGroupName: string, clusterName: string, applicationName: string, - options?: ApplicationsGetOptionalParams, - ): Promise; + options?: ApplicationsReadUpgradeOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + ApplicationsReadUpgradeResponse + > + >; /** - * Create or update a Service Fabric managed application resource with the specified name. - * @param resourceGroupName The name of the resource group. + * Get the status of the latest application upgrade. It will query the cluster to find the status of + * the latest application upgrade. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. * @param applicationName The name of the application resource. - * @param parameters The application resource. * @param options The options parameters. */ - beginCreateOrUpdate( + beginReadUpgradeAndWait( resourceGroupName: string, clusterName: string, applicationName: string, - parameters: ApplicationResource, - options?: ApplicationsCreateOrUpdateOptionalParams, - ): Promise< - SimplePollerLike< - OperationState, - ApplicationsCreateOrUpdateResponse - > - >; + options?: ApplicationsReadUpgradeOptionalParams, + ): Promise; /** - * Create or update a Service Fabric managed application resource with the specified name. - * @param resourceGroupName The name of the resource group. + * Send a request to resume the current application upgrade. This will resume the application upgrade + * from where it was paused. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. * @param applicationName The name of the application resource. - * @param parameters The application resource. + * @param parameters The parameters for resuming an application upgrade. * @param options The options parameters. */ - beginCreateOrUpdateAndWait( + beginResumeUpgrade( resourceGroupName: string, clusterName: string, applicationName: string, - parameters: ApplicationResource, - options?: ApplicationsCreateOrUpdateOptionalParams, - ): Promise; + parameters: RuntimeResumeApplicationUpgradeParameters, + options?: ApplicationsResumeUpgradeOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + ApplicationsResumeUpgradeResponse + > + >; /** - * Updates the tags of an application resource of a given managed cluster. - * @param resourceGroupName The name of the resource group. + * Send a request to resume the current application upgrade. This will resume the application upgrade + * from where it was paused. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. * @param applicationName The name of the application resource. - * @param parameters The application resource updated tags. + * @param parameters The parameters for resuming an application upgrade. * @param options The options parameters. */ - update( + beginResumeUpgradeAndWait( resourceGroupName: string, clusterName: string, applicationName: string, - parameters: ApplicationUpdateParameters, - options?: ApplicationsUpdateOptionalParams, - ): Promise; + parameters: RuntimeResumeApplicationUpgradeParameters, + options?: ApplicationsResumeUpgradeOptionalParams, + ): Promise; /** - * Delete a Service Fabric managed application resource with the specified name. - * @param resourceGroupName The name of the resource group. + * Send a request to start a rollback of the current application upgrade. This will start rolling back + * the application to the previous version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. * @param applicationName The name of the application resource. * @param options The options parameters. */ - beginDelete( + beginStartRollback( resourceGroupName: string, clusterName: string, applicationName: string, - options?: ApplicationsDeleteOptionalParams, - ): Promise, void>>; + options?: ApplicationsStartRollbackOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + ApplicationsStartRollbackResponse + > + >; /** - * Delete a Service Fabric managed application resource with the specified name. - * @param resourceGroupName The name of the resource group. + * Send a request to start a rollback of the current application upgrade. This will start rolling back + * the application to the previous version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. * @param applicationName The name of the application resource. * @param options The options parameters. */ - beginDeleteAndWait( + beginStartRollbackAndWait( resourceGroupName: string, clusterName: string, applicationName: string, - options?: ApplicationsDeleteOptionalParams, - ): Promise; + options?: ApplicationsStartRollbackOptionalParams, + ): Promise; } diff --git a/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/operationsInterfaces/index.ts b/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/operationsInterfaces/index.ts index 0f9eb8707471..48cca46afc81 100644 --- a/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/operationsInterfaces/index.ts +++ b/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/operationsInterfaces/index.ts @@ -6,18 +6,18 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ +export * from "./operations.js"; +export * from "./managedClusterVersion.js"; +export * from "./operationResults.js"; +export * from "./operationStatus.js"; +export * from "./managedUnsupportedVMSizes.js"; +export * from "./managedClusters.js"; export * from "./applicationTypes.js"; export * from "./applicationTypeVersions.js"; export * from "./applications.js"; export * from "./services.js"; -export * from "./managedClusters.js"; -export * from "./managedAzResiliencyStatusOperations.js"; -export * from "./managedMaintenanceWindowStatusOperations.js"; export * from "./managedApplyMaintenanceWindow.js"; -export * from "./managedClusterVersion.js"; -export * from "./managedUnsupportedVMSizes.js"; -export * from "./operationStatus.js"; -export * from "./operationResults.js"; -export * from "./operations.js"; +export * from "./managedMaintenanceWindowStatusOperations.js"; +export * from "./managedAzResiliencyStatusOperations.js"; export * from "./nodeTypes.js"; export * from "./nodeTypeSkus.js"; diff --git a/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/operationsInterfaces/managedApplyMaintenanceWindow.ts b/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/operationsInterfaces/managedApplyMaintenanceWindow.ts index de0fd74e91e5..b9532be2bb22 100644 --- a/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/operationsInterfaces/managedApplyMaintenanceWindow.ts +++ b/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/operationsInterfaces/managedApplyMaintenanceWindow.ts @@ -13,7 +13,7 @@ export interface ManagedApplyMaintenanceWindow { /** * Action to Apply Maintenance window on the Service Fabric Managed Clusters, right now. Any pending * update will be applied. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. * @param options The options parameters. */ diff --git a/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/operationsInterfaces/managedAzResiliencyStatusOperations.ts b/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/operationsInterfaces/managedAzResiliencyStatusOperations.ts index 290980a0970a..a9df5819160d 100644 --- a/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/operationsInterfaces/managedAzResiliencyStatusOperations.ts +++ b/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/operationsInterfaces/managedAzResiliencyStatusOperations.ts @@ -16,7 +16,7 @@ export interface ManagedAzResiliencyStatusOperations { /** * Action to get Az Resiliency Status of all the Base resources constituting Service Fabric Managed * Clusters. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. * @param options The options parameters. */ diff --git a/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/operationsInterfaces/managedClusterVersion.ts b/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/operationsInterfaces/managedClusterVersion.ts index e6068a397990..c794b5909b37 100644 --- a/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/operationsInterfaces/managedClusterVersion.ts +++ b/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/operationsInterfaces/managedClusterVersion.ts @@ -7,40 +7,40 @@ */ import { - ManagedClusterVersionGetOptionalParams, - ManagedClusterVersionGetResponse, - ManagedClusterVersionEnvironment, + Environment, + ManagedClusterVersionListByEnvironmentOptionalParams, + ManagedClusterVersionListByEnvironmentResponse, ManagedClusterVersionGetByEnvironmentOptionalParams, ManagedClusterVersionGetByEnvironmentResponse, ManagedClusterVersionListOptionalParams, ManagedClusterVersionListResponse, - ManagedClusterVersionListByEnvironmentOptionalParams, - ManagedClusterVersionListByEnvironmentResponse, + ManagedClusterVersionGetOptionalParams, + ManagedClusterVersionGetResponse, } from "../models/index.js"; /** Interface representing a ManagedClusterVersion. */ export interface ManagedClusterVersion { /** - * Gets information about an available Service Fabric managed cluster code version. + * Gets all available code versions for Service Fabric cluster resources by environment. * @param location The location for the cluster code versions. This is different from cluster location. - * @param clusterVersion The cluster code version. + * @param environment The operating system of the cluster. * @param options The options parameters. */ - get( + listByEnvironment( location: string, - clusterVersion: string, - options?: ManagedClusterVersionGetOptionalParams, - ): Promise; + environment: Environment, + options?: ManagedClusterVersionListByEnvironmentOptionalParams, + ): Promise; /** * Gets information about an available Service Fabric cluster code version by environment. * @param location The location for the cluster code versions. This is different from cluster location. - * @param environment The operating system of the cluster. The default means all. + * @param environment The operating system of the cluster. * @param clusterVersion The cluster code version. * @param options The options parameters. */ getByEnvironment( location: string, - environment: ManagedClusterVersionEnvironment, + environment: Environment, clusterVersion: string, options?: ManagedClusterVersionGetByEnvironmentOptionalParams, ): Promise; @@ -54,14 +54,14 @@ export interface ManagedClusterVersion { options?: ManagedClusterVersionListOptionalParams, ): Promise; /** - * Gets all available code versions for Service Fabric cluster resources by environment. + * Gets information about an available Service Fabric managed cluster code version. * @param location The location for the cluster code versions. This is different from cluster location. - * @param environment The operating system of the cluster. The default means all. + * @param clusterVersion The cluster code version. * @param options The options parameters. */ - listByEnvironment( + get( location: string, - environment: ManagedClusterVersionEnvironment, - options?: ManagedClusterVersionListByEnvironmentOptionalParams, - ): Promise; + clusterVersion: string, + options?: ManagedClusterVersionGetOptionalParams, + ): Promise; } diff --git a/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/operationsInterfaces/managedClusters.ts b/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/operationsInterfaces/managedClusters.ts index 8fa344b16a02..059cf03f4015 100644 --- a/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/operationsInterfaces/managedClusters.ts +++ b/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/operationsInterfaces/managedClusters.ts @@ -10,8 +10,10 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { ManagedCluster, - ManagedClustersListByResourceGroupOptionalParams, ManagedClustersListBySubscriptionOptionalParams, + ManagedClustersListByResourceGroupOptionalParams, + FaultSimulation, + ManagedClustersListFaultSimulationOptionalParams, ManagedClustersGetOptionalParams, ManagedClustersGetResponse, ManagedClustersCreateOrUpdateOptionalParams, @@ -20,15 +22,32 @@ import { ManagedClustersUpdateOptionalParams, ManagedClustersUpdateResponse, ManagedClustersDeleteOptionalParams, + ManagedClustersDeleteResponse, + FaultSimulationIdParameters, + ManagedClustersGetFaultSimulationOptionalParams, + ManagedClustersGetFaultSimulationResponse, + FaultSimulationParametersUnion, + ManagedClustersStartFaultSimulationOptionalParams, + ManagedClustersStartFaultSimulationResponse, + ManagedClustersStopFaultSimulationOptionalParams, + ManagedClustersStopFaultSimulationResponse, } from "../models/index.js"; /// /** Interface representing a ManagedClusters. */ export interface ManagedClusters { + /** + * Gets all Service Fabric cluster resources created or in the process of being created in the + * subscription. + * @param options The options parameters. + */ + listBySubscription( + options?: ManagedClustersListBySubscriptionOptionalParams, + ): PagedAsyncIterableIterator; /** * Gets all Service Fabric cluster resources created or in the process of being created in the resource * group. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param options The options parameters. */ listByResourceGroup( @@ -36,17 +55,20 @@ export interface ManagedClusters { options?: ManagedClustersListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator; /** - * Gets all Service Fabric cluster resources created or in the process of being created in the - * subscription. + * Gets the list of recent fault simulations for the cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster resource. * @param options The options parameters. */ - listBySubscription( - options?: ManagedClustersListBySubscriptionOptionalParams, - ): PagedAsyncIterableIterator; + listFaultSimulation( + resourceGroupName: string, + clusterName: string, + options?: ManagedClustersListFaultSimulationOptionalParams, + ): PagedAsyncIterableIterator; /** * Get a Service Fabric managed cluster resource created or in the process of being created in the * specified resource group. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. * @param options The options parameters. */ @@ -57,7 +79,7 @@ export interface ManagedClusters { ): Promise; /** * Create or update a Service Fabric managed cluster resource with the specified name. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. * @param parameters The cluster resource. * @param options The options parameters. @@ -75,7 +97,7 @@ export interface ManagedClusters { >; /** * Create or update a Service Fabric managed cluster resource with the specified name. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. * @param parameters The cluster resource. * @param options The options parameters. @@ -88,7 +110,7 @@ export interface ManagedClusters { ): Promise; /** * Update the tags of of a Service Fabric managed cluster resource with the specified name. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. * @param parameters The managed cluster resource updated tags. * @param options The options parameters. @@ -101,7 +123,7 @@ export interface ManagedClusters { ): Promise; /** * Delete a Service Fabric managed cluster resource with the specified name. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. * @param options The options parameters. */ @@ -109,10 +131,15 @@ export interface ManagedClusters { resourceGroupName: string, clusterName: string, options?: ManagedClustersDeleteOptionalParams, - ): Promise, void>>; + ): Promise< + SimplePollerLike< + OperationState, + ManagedClustersDeleteResponse + > + >; /** * Delete a Service Fabric managed cluster resource with the specified name. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. * @param options The options parameters. */ @@ -120,5 +147,80 @@ export interface ManagedClusters { resourceGroupName: string, clusterName: string, options?: ManagedClustersDeleteOptionalParams, - ): Promise; + ): Promise; + /** + * Gets a fault simulation by the simulationId. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster resource. + * @param parameters parameter with fault simulation id. + * @param options The options parameters. + */ + getFaultSimulation( + resourceGroupName: string, + clusterName: string, + parameters: FaultSimulationIdParameters, + options?: ManagedClustersGetFaultSimulationOptionalParams, + ): Promise; + /** + * Starts a fault simulation on the cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster resource. + * @param parameters parameters describing the fault simulation. + * @param options The options parameters. + */ + beginStartFaultSimulation( + resourceGroupName: string, + clusterName: string, + parameters: FaultSimulationParametersUnion, + options?: ManagedClustersStartFaultSimulationOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + ManagedClustersStartFaultSimulationResponse + > + >; + /** + * Starts a fault simulation on the cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster resource. + * @param parameters parameters describing the fault simulation. + * @param options The options parameters. + */ + beginStartFaultSimulationAndWait( + resourceGroupName: string, + clusterName: string, + parameters: FaultSimulationParametersUnion, + options?: ManagedClustersStartFaultSimulationOptionalParams, + ): Promise; + /** + * Stops a fault simulation on the cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster resource. + * @param parameters parameter with fault simulation id. + * @param options The options parameters. + */ + beginStopFaultSimulation( + resourceGroupName: string, + clusterName: string, + parameters: FaultSimulationIdParameters, + options?: ManagedClustersStopFaultSimulationOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + ManagedClustersStopFaultSimulationResponse + > + >; + /** + * Stops a fault simulation on the cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster resource. + * @param parameters parameter with fault simulation id. + * @param options The options parameters. + */ + beginStopFaultSimulationAndWait( + resourceGroupName: string, + clusterName: string, + parameters: FaultSimulationIdParameters, + options?: ManagedClustersStopFaultSimulationOptionalParams, + ): Promise; } diff --git a/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/operationsInterfaces/managedMaintenanceWindowStatusOperations.ts b/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/operationsInterfaces/managedMaintenanceWindowStatusOperations.ts index e29065049f87..c4e05e8722b4 100644 --- a/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/operationsInterfaces/managedMaintenanceWindowStatusOperations.ts +++ b/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/operationsInterfaces/managedMaintenanceWindowStatusOperations.ts @@ -15,7 +15,7 @@ import { export interface ManagedMaintenanceWindowStatusOperations { /** * Action to get Maintenance Window Status of the Service Fabric Managed Clusters. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. * @param options The options parameters. */ diff --git a/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/operationsInterfaces/nodeTypeSkus.ts b/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/operationsInterfaces/nodeTypeSkus.ts index 79de24062d36..f67d4566268a 100644 --- a/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/operationsInterfaces/nodeTypeSkus.ts +++ b/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/operationsInterfaces/nodeTypeSkus.ts @@ -17,7 +17,7 @@ import { export interface NodeTypeSkus { /** * Get a Service Fabric node type supported SKUs. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. * @param nodeTypeName The name of the node type. * @param options The options parameters. diff --git a/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/operationsInterfaces/nodeTypes.ts b/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/operationsInterfaces/nodeTypes.ts index fa173a24c7be..55134807e282 100644 --- a/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/operationsInterfaces/nodeTypes.ts +++ b/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/operationsInterfaces/nodeTypes.ts @@ -11,10 +11,8 @@ import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { NodeType, NodeTypesListByManagedClustersOptionalParams, - NodeTypeActionParameters, - NodeTypesRestartOptionalParams, - NodeTypesReimageOptionalParams, - NodeTypesDeleteNodeOptionalParams, + FaultSimulation, + NodeTypesListFaultSimulationOptionalParams, NodeTypesGetOptionalParams, NodeTypesGetResponse, NodeTypesCreateOrUpdateOptionalParams, @@ -23,6 +21,28 @@ import { NodeTypesUpdateOptionalParams, NodeTypesUpdateResponse, NodeTypesDeleteOptionalParams, + NodeTypesDeleteResponse, + NodeTypeActionParameters, + NodeTypesDeallocateOptionalParams, + NodeTypesDeallocateResponse, + NodeTypesDeleteNodeOptionalParams, + NodeTypesDeleteNodeResponse, + FaultSimulationIdParameters, + NodeTypesGetFaultSimulationOptionalParams, + NodeTypesGetFaultSimulationResponse, + NodeTypesRedeployOptionalParams, + NodeTypesRedeployResponse, + NodeTypesReimageOptionalParams, + NodeTypesReimageResponse, + NodeTypesRestartOptionalParams, + NodeTypesRestartResponse, + NodeTypesStartOptionalParams, + NodeTypesStartResponse, + FaultSimulationParametersUnion, + NodeTypesStartFaultSimulationOptionalParams, + NodeTypesStartFaultSimulationResponse, + NodeTypesStopFaultSimulationOptionalParams, + NodeTypesStopFaultSimulationResponse, } from "../models/index.js"; /// @@ -30,7 +50,7 @@ import { export interface NodeTypes { /** * Gets all Node types of the specified managed cluster. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. * @param options The options parameters. */ @@ -40,73 +60,173 @@ export interface NodeTypes { options?: NodeTypesListByManagedClustersOptionalParams, ): PagedAsyncIterableIterator; /** - * Restarts one or more nodes on the node type. It will disable the fabric nodes, trigger a restart on - * the VMs and activate the nodes back again. - * @param resourceGroupName The name of the resource group. + * Gets the list of recent fault simulations for the node type. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. * @param nodeTypeName The name of the node type. - * @param parameters parameters for restart action. * @param options The options parameters. */ - beginRestart( + listFaultSimulation( resourceGroupName: string, clusterName: string, nodeTypeName: string, - parameters: NodeTypeActionParameters, - options?: NodeTypesRestartOptionalParams, - ): Promise, void>>; + options?: NodeTypesListFaultSimulationOptionalParams, + ): PagedAsyncIterableIterator; /** - * Restarts one or more nodes on the node type. It will disable the fabric nodes, trigger a restart on - * the VMs and activate the nodes back again. - * @param resourceGroupName The name of the resource group. + * Get a Service Fabric node type of a given managed cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. * @param nodeTypeName The name of the node type. - * @param parameters parameters for restart action. * @param options The options parameters. */ - beginRestartAndWait( + get( resourceGroupName: string, clusterName: string, nodeTypeName: string, - parameters: NodeTypeActionParameters, - options?: NodeTypesRestartOptionalParams, - ): Promise; + options?: NodeTypesGetOptionalParams, + ): Promise; /** - * Reimages one or more nodes on the node type. It will disable the fabric nodes, trigger a reimage on - * the VMs and activate the nodes back again. - * @param resourceGroupName The name of the resource group. + * Create or update a Service Fabric node type of a given managed cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. * @param nodeTypeName The name of the node type. - * @param parameters parameters for reimage action. + * @param parameters The node type resource. * @param options The options parameters. */ - beginReimage( + beginCreateOrUpdate( + resourceGroupName: string, + clusterName: string, + nodeTypeName: string, + parameters: NodeType, + options?: NodeTypesCreateOrUpdateOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + NodeTypesCreateOrUpdateResponse + > + >; + /** + * Create or update a Service Fabric node type of a given managed cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster resource. + * @param nodeTypeName The name of the node type. + * @param parameters The node type resource. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + clusterName: string, + nodeTypeName: string, + parameters: NodeType, + options?: NodeTypesCreateOrUpdateOptionalParams, + ): Promise; + /** + * Update the configuration of a node type of a given managed cluster, only updating tags. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster resource. + * @param nodeTypeName The name of the node type. + * @param parameters The parameters to update the node type configuration. + * @param options The options parameters. + */ + beginUpdate( + resourceGroupName: string, + clusterName: string, + nodeTypeName: string, + parameters: NodeTypeUpdateParameters, + options?: NodeTypesUpdateOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + NodeTypesUpdateResponse + > + >; + /** + * Update the configuration of a node type of a given managed cluster, only updating tags. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster resource. + * @param nodeTypeName The name of the node type. + * @param parameters The parameters to update the node type configuration. + * @param options The options parameters. + */ + beginUpdateAndWait( + resourceGroupName: string, + clusterName: string, + nodeTypeName: string, + parameters: NodeTypeUpdateParameters, + options?: NodeTypesUpdateOptionalParams, + ): Promise; + /** + * Delete a Service Fabric node type of a given managed cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster resource. + * @param nodeTypeName The name of the node type. + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + clusterName: string, + nodeTypeName: string, + options?: NodeTypesDeleteOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + NodeTypesDeleteResponse + > + >; + /** + * Delete a Service Fabric node type of a given managed cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster resource. + * @param nodeTypeName The name of the node type. + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + clusterName: string, + nodeTypeName: string, + options?: NodeTypesDeleteOptionalParams, + ): Promise; + /** + * Deallocates one or more nodes on the node type. It will disable the fabric nodes, trigger a shutdown + * on the VMs and release them from the cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster resource. + * @param nodeTypeName The name of the node type. + * @param parameters parameters for deallocate action. + * @param options The options parameters. + */ + beginDeallocate( resourceGroupName: string, clusterName: string, nodeTypeName: string, parameters: NodeTypeActionParameters, - options?: NodeTypesReimageOptionalParams, - ): Promise, void>>; + options?: NodeTypesDeallocateOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + NodeTypesDeallocateResponse + > + >; /** - * Reimages one or more nodes on the node type. It will disable the fabric nodes, trigger a reimage on - * the VMs and activate the nodes back again. - * @param resourceGroupName The name of the resource group. + * Deallocates one or more nodes on the node type. It will disable the fabric nodes, trigger a shutdown + * on the VMs and release them from the cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. * @param nodeTypeName The name of the node type. - * @param parameters parameters for reimage action. + * @param parameters parameters for deallocate action. * @param options The options parameters. */ - beginReimageAndWait( + beginDeallocateAndWait( resourceGroupName: string, clusterName: string, nodeTypeName: string, parameters: NodeTypeActionParameters, - options?: NodeTypesReimageOptionalParams, - ): Promise; + options?: NodeTypesDeallocateOptionalParams, + ): Promise; /** * Deletes one or more nodes on the node type. It will disable the fabric nodes, trigger a delete on * the VMs and removes the state from the cluster. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. * @param nodeTypeName The name of the node type. * @param parameters parameters for delete action. @@ -118,11 +238,16 @@ export interface NodeTypes { nodeTypeName: string, parameters: NodeTypeActionParameters, options?: NodeTypesDeleteNodeOptionalParams, - ): Promise, void>>; + ): Promise< + SimplePollerLike< + OperationState, + NodeTypesDeleteNodeResponse + > + >; /** * Deletes one or more nodes on the node type. It will disable the fabric nodes, trigger a delete on * the VMs and removes the state from the cluster. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. * @param nodeTypeName The name of the node type. * @param parameters parameters for delete action. @@ -134,114 +259,238 @@ export interface NodeTypes { nodeTypeName: string, parameters: NodeTypeActionParameters, options?: NodeTypesDeleteNodeOptionalParams, - ): Promise; + ): Promise; /** - * Get a Service Fabric node type of a given managed cluster. - * @param resourceGroupName The name of the resource group. + * Gets a fault simulation by the simulationId. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. * @param nodeTypeName The name of the node type. + * @param parameters parameter with fault simulation id. * @param options The options parameters. */ - get( + getFaultSimulation( resourceGroupName: string, clusterName: string, nodeTypeName: string, - options?: NodeTypesGetOptionalParams, - ): Promise; + parameters: FaultSimulationIdParameters, + options?: NodeTypesGetFaultSimulationOptionalParams, + ): Promise; /** - * Create or update a Service Fabric node type of a given managed cluster. - * @param resourceGroupName The name of the resource group. + * Redeploys one or more nodes on the node type. It will disable the fabric nodes, trigger a shut down + * on the VMs, move them to a new node, and power them back on. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. * @param nodeTypeName The name of the node type. - * @param parameters The node type resource. + * @param parameters parameters for redeploy action. * @param options The options parameters. */ - beginCreateOrUpdate( + beginRedeploy( resourceGroupName: string, clusterName: string, nodeTypeName: string, - parameters: NodeType, - options?: NodeTypesCreateOrUpdateOptionalParams, + parameters: NodeTypeActionParameters, + options?: NodeTypesRedeployOptionalParams, ): Promise< SimplePollerLike< - OperationState, - NodeTypesCreateOrUpdateResponse + OperationState, + NodeTypesRedeployResponse > >; /** - * Create or update a Service Fabric node type of a given managed cluster. - * @param resourceGroupName The name of the resource group. + * Redeploys one or more nodes on the node type. It will disable the fabric nodes, trigger a shut down + * on the VMs, move them to a new node, and power them back on. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. * @param nodeTypeName The name of the node type. - * @param parameters The node type resource. + * @param parameters parameters for redeploy action. * @param options The options parameters. */ - beginCreateOrUpdateAndWait( + beginRedeployAndWait( resourceGroupName: string, clusterName: string, nodeTypeName: string, - parameters: NodeType, - options?: NodeTypesCreateOrUpdateOptionalParams, - ): Promise; + parameters: NodeTypeActionParameters, + options?: NodeTypesRedeployOptionalParams, + ): Promise; /** - * Update the configuration of a node type of a given managed cluster, only updating tags. - * @param resourceGroupName The name of the resource group. + * Reimages one or more nodes on the node type. It will disable the fabric nodes, trigger a reimage on + * the VMs and activate the nodes back again. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. * @param nodeTypeName The name of the node type. - * @param parameters The parameters to update the node type configuration. + * @param parameters parameters for reimage action. * @param options The options parameters. */ - beginUpdate( + beginReimage( resourceGroupName: string, clusterName: string, nodeTypeName: string, - parameters: NodeTypeUpdateParameters, - options?: NodeTypesUpdateOptionalParams, + parameters: NodeTypeActionParameters, + options?: NodeTypesReimageOptionalParams, ): Promise< SimplePollerLike< - OperationState, - NodeTypesUpdateResponse + OperationState, + NodeTypesReimageResponse > >; /** - * Update the configuration of a node type of a given managed cluster, only updating tags. - * @param resourceGroupName The name of the resource group. + * Reimages one or more nodes on the node type. It will disable the fabric nodes, trigger a reimage on + * the VMs and activate the nodes back again. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. * @param nodeTypeName The name of the node type. - * @param parameters The parameters to update the node type configuration. + * @param parameters parameters for reimage action. * @param options The options parameters. */ - beginUpdateAndWait( + beginReimageAndWait( resourceGroupName: string, clusterName: string, nodeTypeName: string, - parameters: NodeTypeUpdateParameters, - options?: NodeTypesUpdateOptionalParams, - ): Promise; + parameters: NodeTypeActionParameters, + options?: NodeTypesReimageOptionalParams, + ): Promise; /** - * Delete a Service Fabric node type of a given managed cluster. - * @param resourceGroupName The name of the resource group. + * Restarts one or more nodes on the node type. It will disable the fabric nodes, trigger a restart on + * the VMs and activate the nodes back again. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. * @param nodeTypeName The name of the node type. + * @param parameters parameters for restart action. * @param options The options parameters. */ - beginDelete( + beginRestart( resourceGroupName: string, clusterName: string, nodeTypeName: string, - options?: NodeTypesDeleteOptionalParams, - ): Promise, void>>; + parameters: NodeTypeActionParameters, + options?: NodeTypesRestartOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + NodeTypesRestartResponse + > + >; /** - * Delete a Service Fabric node type of a given managed cluster. - * @param resourceGroupName The name of the resource group. + * Restarts one or more nodes on the node type. It will disable the fabric nodes, trigger a restart on + * the VMs and activate the nodes back again. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. * @param nodeTypeName The name of the node type. + * @param parameters parameters for restart action. * @param options The options parameters. */ - beginDeleteAndWait( + beginRestartAndWait( resourceGroupName: string, clusterName: string, nodeTypeName: string, - options?: NodeTypesDeleteOptionalParams, - ): Promise; + parameters: NodeTypeActionParameters, + options?: NodeTypesRestartOptionalParams, + ): Promise; + /** + * Starts one or more nodes on the node type. It will trigger an allocation of the fabric node if + * needed and activate them. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster resource. + * @param nodeTypeName The name of the node type. + * @param parameters parameters for start action. + * @param options The options parameters. + */ + beginStart( + resourceGroupName: string, + clusterName: string, + nodeTypeName: string, + parameters: NodeTypeActionParameters, + options?: NodeTypesStartOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + NodeTypesStartResponse + > + >; + /** + * Starts one or more nodes on the node type. It will trigger an allocation of the fabric node if + * needed and activate them. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster resource. + * @param nodeTypeName The name of the node type. + * @param parameters parameters for start action. + * @param options The options parameters. + */ + beginStartAndWait( + resourceGroupName: string, + clusterName: string, + nodeTypeName: string, + parameters: NodeTypeActionParameters, + options?: NodeTypesStartOptionalParams, + ): Promise; + /** + * Starts a fault simulation on the node type. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster resource. + * @param nodeTypeName The name of the node type. + * @param parameters parameters describing the fault simulation. + * @param options The options parameters. + */ + beginStartFaultSimulation( + resourceGroupName: string, + clusterName: string, + nodeTypeName: string, + parameters: FaultSimulationParametersUnion, + options?: NodeTypesStartFaultSimulationOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + NodeTypesStartFaultSimulationResponse + > + >; + /** + * Starts a fault simulation on the node type. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster resource. + * @param nodeTypeName The name of the node type. + * @param parameters parameters describing the fault simulation. + * @param options The options parameters. + */ + beginStartFaultSimulationAndWait( + resourceGroupName: string, + clusterName: string, + nodeTypeName: string, + parameters: FaultSimulationParametersUnion, + options?: NodeTypesStartFaultSimulationOptionalParams, + ): Promise; + /** + * Stops a fault simulation on the node type. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster resource. + * @param nodeTypeName The name of the node type. + * @param parameters parameter with fault simulation id. + * @param options The options parameters. + */ + beginStopFaultSimulation( + resourceGroupName: string, + clusterName: string, + nodeTypeName: string, + parameters: FaultSimulationIdParameters, + options?: NodeTypesStopFaultSimulationOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + NodeTypesStopFaultSimulationResponse + > + >; + /** + * Stops a fault simulation on the node type. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster resource. + * @param nodeTypeName The name of the node type. + * @param parameters parameter with fault simulation id. + * @param options The options parameters. + */ + beginStopFaultSimulationAndWait( + resourceGroupName: string, + clusterName: string, + nodeTypeName: string, + parameters: FaultSimulationIdParameters, + options?: NodeTypesStopFaultSimulationOptionalParams, + ): Promise; } diff --git a/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/operationsInterfaces/operationResults.ts b/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/operationsInterfaces/operationResults.ts index 71c430f9a611..8a2e45b5e802 100644 --- a/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/operationsInterfaces/operationResults.ts +++ b/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/operationsInterfaces/operationResults.ts @@ -15,7 +15,7 @@ import { export interface OperationResults { /** * Get long running operation result. - * @param location The location for the cluster code versions. This is different from cluster location. + * @param location The name of Azure region. * @param operationId operation identifier. * @param options The options parameters. */ diff --git a/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/operationsInterfaces/operationStatus.ts b/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/operationsInterfaces/operationStatus.ts index a0a8cb3523d5..d2cd2abb2014 100644 --- a/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/operationsInterfaces/operationStatus.ts +++ b/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/operationsInterfaces/operationStatus.ts @@ -15,7 +15,7 @@ import { export interface OperationStatus { /** * Get long running operation status. - * @param location The location for the cluster code versions. This is different from cluster location. + * @param location The name of Azure region. * @param operationId operation identifier. * @param options The options parameters. */ diff --git a/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/operationsInterfaces/operations.ts b/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/operationsInterfaces/operations.ts index e65bd38a2188..2c280c7eb723 100644 --- a/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/operationsInterfaces/operations.ts +++ b/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/operationsInterfaces/operations.ts @@ -7,16 +7,16 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { OperationResult, OperationsListOptionalParams } from "../models/index.js"; +import { Operation, OperationsListOptionalParams } from "../models/index.js"; /// /** Interface representing a Operations. */ export interface Operations { /** - * Get the list of available Service Fabric resource provider API operations. + * List the operations for the provider * @param options The options parameters. */ list( options?: OperationsListOptionalParams, - ): PagedAsyncIterableIterator; + ): PagedAsyncIterableIterator; } diff --git a/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/operationsInterfaces/services.ts b/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/operationsInterfaces/services.ts index a9c0e1174c04..19cafab53de3 100644 --- a/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/operationsInterfaces/services.ts +++ b/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/operationsInterfaces/services.ts @@ -19,6 +19,7 @@ import { ServicesUpdateOptionalParams, ServicesUpdateResponse, ServicesDeleteOptionalParams, + ServicesDeleteResponse, } from "../models/index.js"; /// @@ -27,7 +28,7 @@ export interface Services { /** * Gets all service resources created or in the process of being created in the Service Fabric managed * application resource. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. * @param applicationName The name of the application resource. * @param options The options parameters. @@ -41,7 +42,7 @@ export interface Services { /** * Get a Service Fabric service resource created or in the process of being created in the Service * Fabric managed application resource. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. * @param applicationName The name of the application resource. * @param serviceName The name of the service resource in the format of @@ -57,7 +58,7 @@ export interface Services { ): Promise; /** * Create or update a Service Fabric managed service resource with the specified name. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. * @param applicationName The name of the application resource. * @param serviceName The name of the service resource in the format of @@ -80,7 +81,7 @@ export interface Services { >; /** * Create or update a Service Fabric managed service resource with the specified name. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. * @param applicationName The name of the application resource. * @param serviceName The name of the service resource in the format of @@ -98,7 +99,7 @@ export interface Services { ): Promise; /** * Updates the tags of a service resource of a given managed cluster. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. * @param applicationName The name of the application resource. * @param serviceName The name of the service resource in the format of @@ -116,7 +117,7 @@ export interface Services { ): Promise; /** * Delete a Service Fabric managed service resource with the specified name. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. * @param applicationName The name of the application resource. * @param serviceName The name of the service resource in the format of @@ -129,10 +130,15 @@ export interface Services { applicationName: string, serviceName: string, options?: ServicesDeleteOptionalParams, - ): Promise, void>>; + ): Promise< + SimplePollerLike< + OperationState, + ServicesDeleteResponse + > + >; /** * Delete a Service Fabric managed service resource with the specified name. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster resource. * @param applicationName The name of the application resource. * @param serviceName The name of the service resource in the format of @@ -145,5 +151,5 @@ export interface Services { applicationName: string, serviceName: string, options?: ServicesDeleteOptionalParams, - ): Promise; + ): Promise; } diff --git a/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/serviceFabricManagedClustersManagementClient.ts b/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/serviceFabricManagedClustersManagementClient.ts index 0c07911fb4e9..583bc1c60f19 100644 --- a/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/serviceFabricManagedClustersManagementClient.ts +++ b/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/src/serviceFabricManagedClustersManagementClient.ts @@ -15,36 +15,36 @@ import { } from "@azure/core-rest-pipeline"; import * as coreAuth from "@azure/core-auth"; import { + OperationsImpl, + ManagedClusterVersionImpl, + OperationResultsImpl, + OperationStatusImpl, + ManagedUnsupportedVMSizesImpl, + ManagedClustersImpl, ApplicationTypesImpl, ApplicationTypeVersionsImpl, ApplicationsImpl, ServicesImpl, - ManagedClustersImpl, - ManagedAzResiliencyStatusOperationsImpl, - ManagedMaintenanceWindowStatusOperationsImpl, ManagedApplyMaintenanceWindowImpl, - ManagedClusterVersionImpl, - ManagedUnsupportedVMSizesImpl, - OperationStatusImpl, - OperationResultsImpl, - OperationsImpl, + ManagedMaintenanceWindowStatusOperationsImpl, + ManagedAzResiliencyStatusOperationsImpl, NodeTypesImpl, NodeTypeSkusImpl, } from "./operations/index.js"; import { + Operations, + ManagedClusterVersion, + OperationResults, + OperationStatus, + ManagedUnsupportedVMSizes, + ManagedClusters, ApplicationTypes, ApplicationTypeVersions, Applications, Services, - ManagedClusters, - ManagedAzResiliencyStatusOperations, - ManagedMaintenanceWindowStatusOperations, ManagedApplyMaintenanceWindow, - ManagedClusterVersion, - ManagedUnsupportedVMSizes, - OperationStatus, - OperationResults, - Operations, + ManagedMaintenanceWindowStatusOperations, + ManagedAzResiliencyStatusOperations, NodeTypes, NodeTypeSkus, } from "./operationsInterfaces/index.js"; @@ -52,13 +52,13 @@ import { ServiceFabricManagedClustersManagementClientOptionalParams } from "./mo export class ServiceFabricManagedClustersManagementClient extends coreClient.ServiceClient { $host: string; - subscriptionId: string; apiVersion: string; + subscriptionId: string; /** * Initializes a new instance of the ServiceFabricManagedClustersManagementClient class. * @param credentials Subscription credentials which uniquely identify client subscription. - * @param subscriptionId The customer subscription identifier. + * @param subscriptionId The ID of the target subscription. * @param options The parameter options */ constructor( @@ -83,7 +83,7 @@ export class ServiceFabricManagedClustersManagementClient extends coreClient.Ser credential: credentials, }; - const packageDetails = `azsdk-js-arm-servicefabricmanagedclusters/1.0.0-beta.3`; + const packageDetails = `azsdk-js-arm-servicefabricmanagedclusters/1.0.0-beta.4`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -137,24 +137,24 @@ export class ServiceFabricManagedClustersManagementClient extends coreClient.Ser // Assigning values to Constant parameters this.$host = options.$host || "https://management.azure.com"; - this.apiVersion = options.apiVersion || "2024-09-01-preview"; + this.apiVersion = options.apiVersion || "2024-11-01-preview"; + this.operations = new OperationsImpl(this); + this.managedClusterVersion = new ManagedClusterVersionImpl(this); + this.operationResults = new OperationResultsImpl(this); + this.operationStatus = new OperationStatusImpl(this); + this.managedUnsupportedVMSizes = new ManagedUnsupportedVMSizesImpl(this); + this.managedClusters = new ManagedClustersImpl(this); this.applicationTypes = new ApplicationTypesImpl(this); this.applicationTypeVersions = new ApplicationTypeVersionsImpl(this); this.applications = new ApplicationsImpl(this); this.services = new ServicesImpl(this); - this.managedClusters = new ManagedClustersImpl(this); - this.managedAzResiliencyStatusOperations = - new ManagedAzResiliencyStatusOperationsImpl(this); - this.managedMaintenanceWindowStatusOperations = - new ManagedMaintenanceWindowStatusOperationsImpl(this); this.managedApplyMaintenanceWindow = new ManagedApplyMaintenanceWindowImpl( this, ); - this.managedClusterVersion = new ManagedClusterVersionImpl(this); - this.managedUnsupportedVMSizes = new ManagedUnsupportedVMSizesImpl(this); - this.operationStatus = new OperationStatusImpl(this); - this.operationResults = new OperationResultsImpl(this); - this.operations = new OperationsImpl(this); + this.managedMaintenanceWindowStatusOperations = + new ManagedMaintenanceWindowStatusOperationsImpl(this); + this.managedAzResiliencyStatusOperations = + new ManagedAzResiliencyStatusOperationsImpl(this); this.nodeTypes = new NodeTypesImpl(this); this.nodeTypeSkus = new NodeTypeSkusImpl(this); this.addCustomApiVersionPolicy(options.apiVersion); @@ -188,19 +188,19 @@ export class ServiceFabricManagedClustersManagementClient extends coreClient.Ser this.pipeline.addPolicy(apiVersionPolicy); } + operations: Operations; + managedClusterVersion: ManagedClusterVersion; + operationResults: OperationResults; + operationStatus: OperationStatus; + managedUnsupportedVMSizes: ManagedUnsupportedVMSizes; + managedClusters: ManagedClusters; applicationTypes: ApplicationTypes; applicationTypeVersions: ApplicationTypeVersions; applications: Applications; services: Services; - managedClusters: ManagedClusters; - managedAzResiliencyStatusOperations: ManagedAzResiliencyStatusOperations; - managedMaintenanceWindowStatusOperations: ManagedMaintenanceWindowStatusOperations; managedApplyMaintenanceWindow: ManagedApplyMaintenanceWindow; - managedClusterVersion: ManagedClusterVersion; - managedUnsupportedVMSizes: ManagedUnsupportedVMSizes; - operationStatus: OperationStatus; - operationResults: OperationResults; - operations: Operations; + managedMaintenanceWindowStatusOperations: ManagedMaintenanceWindowStatusOperations; + managedAzResiliencyStatusOperations: ManagedAzResiliencyStatusOperations; nodeTypes: NodeTypes; nodeTypeSkus: NodeTypeSkus; } diff --git a/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/test/sampleTest.ts b/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/test/sampleTest.ts new file mode 100644 index 000000000000..a1cf7c25afd2 --- /dev/null +++ b/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/test/sampleTest.ts @@ -0,0 +1,40 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { + Recorder, + RecorderStartOptions, +} from "@azure-tools/test-recorder"; + +const replaceableVariables: Record = { + AZURE_CLIENT_ID: "azure_client_id", + AZURE_CLIENT_SECRET: "azure_client_secret", + AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888", + SUBSCRIPTION_ID: "azure_subscription_id", +}; + +const recorderOptions: RecorderStartOptions = { + envSetupForPlayback: replaceableVariables, +}; + +describe("My test", () => { + let recorder: Recorder; + + beforeEach(async (ctx) => { + recorder = new Recorder(ctx); + await recorder.start(recorderOptions); + }); + + afterEach(async () => { + await recorder.stop(); + }); + + it("sample test", async function () { + console.log("Hi, I'm a test!"); + }); +}); diff --git a/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/test/snippets.spec.ts b/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/test/snippets.spec.ts index a274b64a58a5..3396ef7e8a79 100644 --- a/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/test/snippets.spec.ts +++ b/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/test/snippets.spec.ts @@ -1,16 +1,29 @@ +/* + * 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. + */ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. import { ServiceFabricManagedClustersManagementClient } from "../src/index.js"; -import { DefaultAzureCredential, InteractiveBrowserCredential } from "@azure/identity"; +import { + DefaultAzureCredential, + InteractiveBrowserCredential, +} from "@azure/identity"; import { setLogLevel } from "@azure/logger"; import { describe, it } from "vitest"; describe("snippets", () => { it("ReadmeSampleCreateClient_Node", async () => { const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const client = new ServiceFabricManagedClustersManagementClient(new DefaultAzureCredential(), subscriptionId); + const client = new ServiceFabricManagedClustersManagementClient( + new DefaultAzureCredential(), + subscriptionId, + ); }); it("ReadmeSampleCreateClient_Browser", async () => { @@ -19,7 +32,10 @@ describe("snippets", () => { tenantId: "", clientId: "", }); - const client = new ServiceFabricManagedClustersManagementClient(credential, subscriptionId); + const client = new ServiceFabricManagedClustersManagementClient( + credential, + subscriptionId, + ); }); it("SetLogLevel", async () => { diff --git a/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/tsconfig.json b/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/tsconfig.json index 19ceb382b521..b35d05ad6e9d 100644 --- a/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/tsconfig.json +++ b/sdk/servicefabricmanagedclusters/arm-servicefabricmanagedclusters/tsconfig.json @@ -1,13 +1,27 @@ { - "references": [ - { - "path": "./tsconfig.src.json" - }, - { - "path": "./tsconfig.samples.json" - }, - { - "path": "./tsconfig.test.json" - } + "compilerOptions": { + "module": "es6", + "moduleResolution": "node", + "strict": true, + "target": "es6", + "sourceMap": true, + "declarationMap": true, + "esModuleInterop": true, + "allowSyntheticDefaultImports": true, + "forceConsistentCasingInFileNames": true, + "lib": [ + "es6", + "dom" + ], + "declaration": true, + "outDir": "./dist-esm", + "importHelpers": true + }, + "include": [ + "src/**/*.ts", + "test/**/*.ts" + ], + "exclude": [ + "node_modules" ] -} +} \ No newline at end of file