@azure/arm-servicefabricmanagedclusters 1.0.0-beta.5 → 1.0.0-beta.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/api/applicationTypeVersions/operations.js +4 -4
- package/dist/browser/api/applicationTypeVersions/operations.js.map +1 -1
- package/dist/browser/api/applicationTypes/operations.js +2 -2
- package/dist/browser/api/applicationTypes/operations.js.map +1 -1
- package/dist/browser/api/applications/index.d.ts +2 -2
- package/dist/browser/api/applications/index.js +1 -1
- package/dist/browser/api/applications/index.js.map +1 -1
- package/dist/browser/api/applications/operations.d.ts +12 -4
- package/dist/browser/api/applications/operations.js +94 -18
- package/dist/browser/api/applications/operations.js.map +1 -1
- package/dist/browser/api/applications/options.d.ts +12 -0
- package/dist/browser/api/applications/options.js.map +1 -1
- package/dist/browser/api/managedClusters/operations.d.ts +1 -1
- package/dist/browser/api/managedClusters/operations.js +16 -12
- package/dist/browser/api/managedClusters/operations.js.map +1 -1
- package/dist/browser/api/managedClusters/options.d.ts +2 -0
- package/dist/browser/api/managedClusters/options.js.map +1 -1
- package/dist/browser/api/nodeTypes/operations.d.ts +1 -1
- package/dist/browser/api/nodeTypes/operations.js +23 -23
- package/dist/browser/api/nodeTypes/operations.js.map +1 -1
- package/dist/browser/api/serviceFabricManagedClustersManagementContext.js +1 -1
- package/dist/browser/api/serviceFabricManagedClustersManagementContext.js.map +1 -1
- package/dist/browser/api/services/index.d.ts +2 -2
- package/dist/browser/api/services/index.js +1 -1
- package/dist/browser/api/services/index.js.map +1 -1
- package/dist/browser/api/services/operations.d.ts +6 -2
- package/dist/browser/api/services/operations.js +40 -5
- package/dist/browser/api/services/operations.js.map +1 -1
- package/dist/browser/api/services/options.d.ts +5 -0
- package/dist/browser/api/services/options.js.map +1 -1
- package/dist/browser/classic/applications/index.d.ts +8 -4
- package/dist/browser/classic/applications/index.js +3 -1
- package/dist/browser/classic/applications/index.js.map +1 -1
- package/dist/browser/classic/managedClusters/index.d.ts +1 -1
- package/dist/browser/classic/managedClusters/index.js.map +1 -1
- package/dist/browser/classic/nodeTypes/index.d.ts +1 -1
- package/dist/browser/classic/nodeTypes/index.js.map +1 -1
- package/dist/browser/classic/services/index.d.ts +4 -2
- package/dist/browser/classic/services/index.js +2 -1
- package/dist/browser/classic/services/index.js.map +1 -1
- package/dist/browser/index.d.ts +3 -3
- package/dist/browser/index.js +1 -1
- package/dist/browser/index.js.map +1 -1
- package/dist/browser/models/index.d.ts +1 -1
- package/dist/browser/models/index.js +1 -1
- package/dist/browser/models/index.js.map +1 -1
- package/dist/browser/models/models.d.ts +98 -1
- package/dist/browser/models/models.js +62 -1
- package/dist/browser/models/models.js.map +1 -1
- package/dist/browser/restorePollerHelpers.js +74 -30
- package/dist/browser/restorePollerHelpers.js.map +1 -1
- package/dist/commonjs/api/applicationTypeVersions/operations.js +4 -4
- package/dist/commonjs/api/applicationTypeVersions/operations.js.map +1 -1
- package/dist/commonjs/api/applicationTypes/operations.js +2 -2
- package/dist/commonjs/api/applicationTypes/operations.js.map +1 -1
- package/dist/commonjs/api/applications/index.d.ts +2 -2
- package/dist/commonjs/api/applications/index.js +3 -1
- package/dist/commonjs/api/applications/index.js.map +1 -1
- package/dist/commonjs/api/applications/operations.d.ts +12 -4
- package/dist/commonjs/api/applications/operations.js +99 -17
- package/dist/commonjs/api/applications/operations.js.map +1 -1
- package/dist/commonjs/api/applications/options.d.ts +12 -0
- package/dist/commonjs/api/applications/options.js.map +1 -1
- package/dist/commonjs/api/managedClusters/operations.d.ts +1 -1
- package/dist/commonjs/api/managedClusters/operations.js +16 -12
- package/dist/commonjs/api/managedClusters/operations.js.map +1 -1
- package/dist/commonjs/api/managedClusters/options.d.ts +2 -0
- package/dist/commonjs/api/managedClusters/options.js.map +1 -1
- package/dist/commonjs/api/nodeTypes/operations.d.ts +1 -1
- package/dist/commonjs/api/nodeTypes/operations.js +23 -23
- package/dist/commonjs/api/nodeTypes/operations.js.map +1 -1
- package/dist/commonjs/api/serviceFabricManagedClustersManagementContext.js +1 -1
- package/dist/commonjs/api/serviceFabricManagedClustersManagementContext.js.map +1 -1
- package/dist/commonjs/api/services/index.d.ts +2 -2
- package/dist/commonjs/api/services/index.js +2 -1
- package/dist/commonjs/api/services/index.js.map +1 -1
- package/dist/commonjs/api/services/operations.d.ts +6 -2
- package/dist/commonjs/api/services/operations.js +42 -4
- package/dist/commonjs/api/services/operations.js.map +1 -1
- package/dist/commonjs/api/services/options.d.ts +5 -0
- package/dist/commonjs/api/services/options.js.map +1 -1
- package/dist/commonjs/classic/applications/index.d.ts +8 -4
- package/dist/commonjs/classic/applications/index.js +2 -0
- package/dist/commonjs/classic/applications/index.js.map +1 -1
- package/dist/commonjs/classic/managedClusters/index.d.ts +1 -1
- package/dist/commonjs/classic/managedClusters/index.js.map +1 -1
- package/dist/commonjs/classic/nodeTypes/index.d.ts +1 -1
- package/dist/commonjs/classic/nodeTypes/index.js.map +1 -1
- package/dist/commonjs/classic/services/index.d.ts +4 -2
- package/dist/commonjs/classic/services/index.js +1 -0
- package/dist/commonjs/classic/services/index.js.map +1 -1
- package/dist/commonjs/index.d.ts +3 -3
- package/dist/commonjs/index.js +4 -1
- package/dist/commonjs/index.js.map +1 -1
- package/dist/commonjs/models/index.d.ts +1 -1
- package/dist/commonjs/models/index.js +3 -1
- package/dist/commonjs/models/index.js.map +1 -1
- package/dist/commonjs/models/models.d.ts +98 -1
- package/dist/commonjs/models/models.js +67 -2
- package/dist/commonjs/models/models.js.map +1 -1
- package/dist/commonjs/restorePollerHelpers.js +71 -27
- package/dist/commonjs/restorePollerHelpers.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +1 -1
- package/dist/esm/api/applicationTypeVersions/operations.js +4 -4
- package/dist/esm/api/applicationTypeVersions/operations.js.map +1 -1
- package/dist/esm/api/applicationTypes/operations.js +2 -2
- package/dist/esm/api/applicationTypes/operations.js.map +1 -1
- package/dist/esm/api/applications/index.d.ts +2 -2
- package/dist/esm/api/applications/index.js +1 -1
- package/dist/esm/api/applications/index.js.map +1 -1
- package/dist/esm/api/applications/operations.d.ts +12 -4
- package/dist/esm/api/applications/operations.js +94 -18
- package/dist/esm/api/applications/operations.js.map +1 -1
- package/dist/esm/api/applications/options.d.ts +12 -0
- package/dist/esm/api/applications/options.js.map +1 -1
- package/dist/esm/api/managedClusters/operations.d.ts +1 -1
- package/dist/esm/api/managedClusters/operations.js +16 -12
- package/dist/esm/api/managedClusters/operations.js.map +1 -1
- package/dist/esm/api/managedClusters/options.d.ts +2 -0
- package/dist/esm/api/managedClusters/options.js.map +1 -1
- package/dist/esm/api/nodeTypes/operations.d.ts +1 -1
- package/dist/esm/api/nodeTypes/operations.js +23 -23
- package/dist/esm/api/nodeTypes/operations.js.map +1 -1
- package/dist/esm/api/serviceFabricManagedClustersManagementContext.js +1 -1
- package/dist/esm/api/serviceFabricManagedClustersManagementContext.js.map +1 -1
- package/dist/esm/api/services/index.d.ts +2 -2
- package/dist/esm/api/services/index.js +1 -1
- package/dist/esm/api/services/index.js.map +1 -1
- package/dist/esm/api/services/operations.d.ts +6 -2
- package/dist/esm/api/services/operations.js +40 -5
- package/dist/esm/api/services/operations.js.map +1 -1
- package/dist/esm/api/services/options.d.ts +5 -0
- package/dist/esm/api/services/options.js.map +1 -1
- package/dist/esm/classic/applications/index.d.ts +8 -4
- package/dist/esm/classic/applications/index.js +3 -1
- package/dist/esm/classic/applications/index.js.map +1 -1
- package/dist/esm/classic/managedClusters/index.d.ts +1 -1
- package/dist/esm/classic/managedClusters/index.js.map +1 -1
- package/dist/esm/classic/nodeTypes/index.d.ts +1 -1
- package/dist/esm/classic/nodeTypes/index.js.map +1 -1
- package/dist/esm/classic/services/index.d.ts +4 -2
- package/dist/esm/classic/services/index.js +2 -1
- package/dist/esm/classic/services/index.js.map +1 -1
- package/dist/esm/index.d.ts +3 -3
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/models/index.d.ts +1 -1
- package/dist/esm/models/index.js +1 -1
- package/dist/esm/models/index.js.map +1 -1
- package/dist/esm/models/models.d.ts +98 -1
- package/dist/esm/models/models.js +62 -1
- package/dist/esm/models/models.js.map +1 -1
- package/dist/esm/restorePollerHelpers.js +74 -30
- package/dist/esm/restorePollerHelpers.js.map +1 -1
- package/dist/react-native/api/applicationTypeVersions/operations.js +4 -4
- package/dist/react-native/api/applicationTypeVersions/operations.js.map +1 -1
- package/dist/react-native/api/applicationTypes/operations.js +2 -2
- package/dist/react-native/api/applicationTypes/operations.js.map +1 -1
- package/dist/react-native/api/applications/index.d.ts +2 -2
- package/dist/react-native/api/applications/index.js +1 -1
- package/dist/react-native/api/applications/index.js.map +1 -1
- package/dist/react-native/api/applications/operations.d.ts +12 -4
- package/dist/react-native/api/applications/operations.js +94 -18
- package/dist/react-native/api/applications/operations.js.map +1 -1
- package/dist/react-native/api/applications/options.d.ts +12 -0
- package/dist/react-native/api/applications/options.js.map +1 -1
- package/dist/react-native/api/managedClusters/operations.d.ts +1 -1
- package/dist/react-native/api/managedClusters/operations.js +16 -12
- package/dist/react-native/api/managedClusters/operations.js.map +1 -1
- package/dist/react-native/api/managedClusters/options.d.ts +2 -0
- package/dist/react-native/api/managedClusters/options.js.map +1 -1
- package/dist/react-native/api/nodeTypes/operations.d.ts +1 -1
- package/dist/react-native/api/nodeTypes/operations.js +23 -23
- package/dist/react-native/api/nodeTypes/operations.js.map +1 -1
- package/dist/react-native/api/serviceFabricManagedClustersManagementContext.js +1 -1
- package/dist/react-native/api/serviceFabricManagedClustersManagementContext.js.map +1 -1
- package/dist/react-native/api/services/index.d.ts +2 -2
- package/dist/react-native/api/services/index.js +1 -1
- package/dist/react-native/api/services/index.js.map +1 -1
- package/dist/react-native/api/services/operations.d.ts +6 -2
- package/dist/react-native/api/services/operations.js +40 -5
- package/dist/react-native/api/services/operations.js.map +1 -1
- package/dist/react-native/api/services/options.d.ts +5 -0
- package/dist/react-native/api/services/options.js.map +1 -1
- package/dist/react-native/classic/applications/index.d.ts +8 -4
- package/dist/react-native/classic/applications/index.js +3 -1
- package/dist/react-native/classic/applications/index.js.map +1 -1
- package/dist/react-native/classic/managedClusters/index.d.ts +1 -1
- package/dist/react-native/classic/managedClusters/index.js.map +1 -1
- package/dist/react-native/classic/nodeTypes/index.d.ts +1 -1
- package/dist/react-native/classic/nodeTypes/index.js.map +1 -1
- package/dist/react-native/classic/services/index.d.ts +4 -2
- package/dist/react-native/classic/services/index.js +2 -1
- package/dist/react-native/classic/services/index.js.map +1 -1
- package/dist/react-native/index.d.ts +3 -3
- package/dist/react-native/index.js +1 -1
- package/dist/react-native/index.js.map +1 -1
- package/dist/react-native/models/index.d.ts +1 -1
- package/dist/react-native/models/index.js +1 -1
- package/dist/react-native/models/index.js.map +1 -1
- package/dist/react-native/models/models.d.ts +98 -1
- package/dist/react-native/models/models.js +62 -1
- package/dist/react-native/models/models.js.map +1 -1
- package/dist/react-native/restorePollerHelpers.js +74 -30
- package/dist/react-native/restorePollerHelpers.js.map +1 -1
- package/package.json +19 -19
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../../src/api/managedClusters/operations.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AA2ClC,4DA0BC;AAED,0EAWC;AAGD,kDAgBC;AAED,8DA0BC;AAED,4EAWC;AAGD,oDAgBC;AAED,4DA2BC;AAED,0EAWC;AAGD,kDAeC;AAED,0DA8BC;AAED,wEAWC;AAGD,gDAiBC;AAED,0DAuBC;AAED,wEAWC;AAGD,gDAaC;AAED,4DAyBC;AAED,0EAWC;AAGD,kDAcC;AAED,oCAmBC;AAED,kDASC;AAQD,0BAYC;AAED,kCA4BC;AAED,gDASC;AAGD,wBASC;AAED,kDA4BC;AAED,gEAWC;AAGD,wCAcC;AAED,4BAyBC;AAED,0CASC;AAGD,kBAQC;AAvlBD,sDAUgC;AAEhC,4EAAgF;AAChF,8EAA8E;AAC9E,wEAAwE;A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AAE,CAAC;QAC9C,MAAM,KAAK,GAAG,IAAA,6BAAe,EAAC,MAAM,CAAC,CAAC;QACtC,KAAK,CAAC,OAAO,GAAG,IAAA,qCAAyB,EAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QACvD,MAAM,KAAK,CAAC;IACd,CAAC;IAED,OAAO,IAAA,sCAA0B,EAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AACjD,CAAC;AAED,gIAAgI;AACzH,KAAK,UAAU,GAAG,CACvB,OAAe,EACf,iBAAyB,EACzB,WAAmB,EACnB,UAA4C,EAAE,cAAc,EAAE,EAAE,EAAE;IAElE,MAAM,MAAM,GAAG,MAAM,QAAQ,CAAC,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC;IAChF,OAAO,eAAe,CAAC,MAAM,CAAC,CAAC;AACjC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { ServiceFabricManagedClustersManagementContext as Client } from \"../index.js\";\nimport type {\n ManagedCluster,\n ManagedClusterUpdateParameters,\n _ManagedClusterListResult,\n FaultSimulationIdContent,\n FaultSimulation,\n _FaultSimulationListResult,\n FaultSimulationContentWrapper,\n} from \"../../models/models.js\";\nimport {\n errorResponseDeserializer,\n managedClusterSerializer,\n managedClusterDeserializer,\n managedClusterUpdateParametersSerializer,\n _managedClusterListResultDeserializer,\n faultSimulationIdContentSerializer,\n faultSimulationDeserializer,\n _faultSimulationListResultDeserializer,\n faultSimulationContentWrapperSerializer,\n} from \"../../models/models.js\";\nimport type { PagedAsyncIterableIterator } from \"../../static-helpers/pagingHelpers.js\";\nimport { buildPagedAsyncIterator } from \"../../static-helpers/pagingHelpers.js\";\nimport { getLongRunningPoller } from \"../../static-helpers/pollingHelpers.js\";\nimport { expandUrlTemplate } from \"../../static-helpers/urlTemplate.js\";\nimport type {\n ManagedClustersStopFaultSimulationOptionalParams,\n ManagedClustersStartFaultSimulationOptionalParams,\n ManagedClustersListFaultSimulationOptionalParams,\n ManagedClustersGetFaultSimulationOptionalParams,\n ManagedClustersListBySubscriptionOptionalParams,\n ManagedClustersListByResourceGroupOptionalParams,\n ManagedClustersDeleteOptionalParams,\n ManagedClustersUpdateOptionalParams,\n ManagedClustersCreateOrUpdateOptionalParams,\n ManagedClustersGetOptionalParams,\n} from \"./options.js\";\nimport type { StreamableMethod, PathUncheckedResponse } from \"@azure-rest/core-client\";\nimport { createRestError, operationOptionsToRequestParameters } from \"@azure-rest/core-client\";\nimport type { PollerLike, OperationState } from \"@azure/core-lro\";\n\nexport function _stopFaultSimulationSend(\n context: Client,\n resourceGroupName: string,\n clusterName: string,\n parameters: FaultSimulationIdContent,\n options: ManagedClustersStopFaultSimulationOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/managedClusters/{clusterName}/stopFaultSimulation{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n clusterName: clusterName,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).post({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n body: faultSimulationIdContentSerializer(parameters),\n });\n}\n\nexport async function _stopFaultSimulationDeserialize(\n result: PathUncheckedResponse,\n): Promise<FaultSimulation> {\n const expectedStatuses = [\"202\", \"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return faultSimulationDeserializer(result.body);\n}\n\n/** Stops a fault simulation on the cluster. */\nexport function stopFaultSimulation(\n context: Client,\n resourceGroupName: string,\n clusterName: string,\n parameters: FaultSimulationIdContent,\n options: ManagedClustersStopFaultSimulationOptionalParams = {\n requestOptions: {},\n },\n): PollerLike<OperationState<FaultSimulation>, FaultSimulation> {\n return getLongRunningPoller(context, _stopFaultSimulationDeserialize, [\"202\", \"200\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _stopFaultSimulationSend(context, resourceGroupName, clusterName, parameters, options),\n resourceLocationConfig: \"location\",\n }) as PollerLike<OperationState<FaultSimulation>, FaultSimulation>;\n}\n\nexport function _startFaultSimulationSend(\n context: Client,\n resourceGroupName: string,\n clusterName: string,\n parameters: FaultSimulationContentWrapper,\n options: ManagedClustersStartFaultSimulationOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/managedClusters/{clusterName}/startFaultSimulation{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n clusterName: clusterName,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).post({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n body: faultSimulationContentWrapperSerializer(parameters),\n });\n}\n\nexport async function _startFaultSimulationDeserialize(\n result: PathUncheckedResponse,\n): Promise<FaultSimulation> {\n const expectedStatuses = [\"202\", \"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return faultSimulationDeserializer(result.body);\n}\n\n/** Starts a fault simulation on the cluster. */\nexport function startFaultSimulation(\n context: Client,\n resourceGroupName: string,\n clusterName: string,\n parameters: FaultSimulationContentWrapper,\n options: ManagedClustersStartFaultSimulationOptionalParams = {\n requestOptions: {},\n },\n): PollerLike<OperationState<FaultSimulation>, FaultSimulation> {\n return getLongRunningPoller(context, _startFaultSimulationDeserialize, [\"202\", \"200\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _startFaultSimulationSend(context, resourceGroupName, clusterName, parameters, options),\n resourceLocationConfig: \"location\",\n }) as PollerLike<OperationState<FaultSimulation>, FaultSimulation>;\n}\n\nexport function _listFaultSimulationSend(\n context: Client,\n resourceGroupName: string,\n clusterName: string,\n options: ManagedClustersListFaultSimulationOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/managedClusters/{clusterName}/listFaultSimulation{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n clusterName: clusterName,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).post({\n ...operationOptionsToRequestParameters(options),\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _listFaultSimulationDeserialize(\n result: PathUncheckedResponse,\n): Promise<_FaultSimulationListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return _faultSimulationListResultDeserializer(result.body);\n}\n\n/** Gets the list of recent fault simulations for the cluster. */\nexport function listFaultSimulation(\n context: Client,\n resourceGroupName: string,\n clusterName: string,\n options: ManagedClustersListFaultSimulationOptionalParams = {\n requestOptions: {},\n },\n): PagedAsyncIterableIterator<FaultSimulation> {\n return buildPagedAsyncIterator(\n context,\n () => _listFaultSimulationSend(context, resourceGroupName, clusterName, options),\n _listFaultSimulationDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\" },\n );\n}\n\nexport function _getFaultSimulationSend(\n context: Client,\n resourceGroupName: string,\n clusterName: string,\n parameters: FaultSimulationIdContent,\n options: ManagedClustersGetFaultSimulationOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/managedClusters/{clusterName}/getFaultSimulation{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n clusterName: clusterName,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).post({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n body: faultSimulationIdContentSerializer(parameters),\n });\n}\n\nexport async function _getFaultSimulationDeserialize(\n result: PathUncheckedResponse,\n): Promise<FaultSimulation> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return faultSimulationDeserializer(result.body);\n}\n\n/** Gets a fault simulation by the simulationId. */\nexport async function getFaultSimulation(\n context: Client,\n resourceGroupName: string,\n clusterName: string,\n parameters: FaultSimulationIdContent,\n options: ManagedClustersGetFaultSimulationOptionalParams = {\n requestOptions: {},\n },\n): Promise<FaultSimulation> {\n const result = await _getFaultSimulationSend(\n context,\n resourceGroupName,\n clusterName,\n parameters,\n options,\n );\n return _getFaultSimulationDeserialize(result);\n}\n\nexport function _listBySubscriptionSend(\n context: Client,\n options: ManagedClustersListBySubscriptionOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.ServiceFabric/managedClusters{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _listBySubscriptionDeserialize(\n result: PathUncheckedResponse,\n): Promise<_ManagedClusterListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return _managedClusterListResultDeserializer(result.body);\n}\n\n/** Gets all Service Fabric cluster resources created or in the process of being created in the subscription. */\nexport function listBySubscription(\n context: Client,\n options: ManagedClustersListBySubscriptionOptionalParams = {\n requestOptions: {},\n },\n): PagedAsyncIterableIterator<ManagedCluster> {\n return buildPagedAsyncIterator(\n context,\n () => _listBySubscriptionSend(context, options),\n _listBySubscriptionDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\" },\n );\n}\n\nexport function _listByResourceGroupSend(\n context: Client,\n resourceGroupName: string,\n options: ManagedClustersListByResourceGroupOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/managedClusters{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _listByResourceGroupDeserialize(\n result: PathUncheckedResponse,\n): Promise<_ManagedClusterListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return _managedClusterListResultDeserializer(result.body);\n}\n\n/** Gets all Service Fabric cluster resources created or in the process of being created in the resource group. */\nexport function listByResourceGroup(\n context: Client,\n resourceGroupName: string,\n options: ManagedClustersListByResourceGroupOptionalParams = {\n requestOptions: {},\n },\n): PagedAsyncIterableIterator<ManagedCluster> {\n return buildPagedAsyncIterator(\n context,\n () => _listByResourceGroupSend(context, resourceGroupName, options),\n _listByResourceGroupDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\" },\n );\n}\n\nexport function _$deleteSend(\n context: Client,\n resourceGroupName: string,\n clusterName: string,\n options: ManagedClustersDeleteOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/managedClusters/{clusterName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n clusterName: clusterName,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).delete({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _$deleteDeserialize(result: PathUncheckedResponse): Promise<void> {\n const expectedStatuses = [\"202\", \"204\", \"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return;\n}\n\n/** Delete a Service Fabric managed cluster resource with the specified name. */\n/**\n * @fixme delete is a reserved word that cannot be used as an operation name.\n * Please add @clientName(\"clientName\") or @clientName(\"<JS-Specific-Name>\", \"javascript\")\n * to the operation to override the generated name.\n */\nexport function $delete(\n context: Client,\n resourceGroupName: string,\n clusterName: string,\n options: ManagedClustersDeleteOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<void>, void> {\n return getLongRunningPoller(context, _$deleteDeserialize, [\"202\", \"204\", \"200\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () => _$deleteSend(context, resourceGroupName, clusterName, options),\n resourceLocationConfig: \"location\",\n }) as PollerLike<OperationState<void>, void>;\n}\n\nexport function _updateSend(\n context: Client,\n resourceGroupName: string,\n clusterName: string,\n parameters: ManagedClusterUpdateParameters,\n options: ManagedClustersUpdateOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/managedClusters/{clusterName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n clusterName: clusterName,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).patch({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n body: managedClusterUpdateParametersSerializer(parameters),\n });\n}\n\nexport async function _updateDeserialize(result: PathUncheckedResponse): Promise<ManagedCluster> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return managedClusterDeserializer(result.body);\n}\n\n/** Update the tags of of a Service Fabric managed cluster resource with the specified name. */\nexport async function update(\n context: Client,\n resourceGroupName: string,\n clusterName: string,\n parameters: ManagedClusterUpdateParameters,\n options: ManagedClustersUpdateOptionalParams = { requestOptions: {} },\n): Promise<ManagedCluster> {\n const result = await _updateSend(context, resourceGroupName, clusterName, parameters, options);\n return _updateDeserialize(result);\n}\n\nexport function _createOrUpdateSend(\n context: Client,\n resourceGroupName: string,\n clusterName: string,\n parameters: ManagedCluster,\n options: ManagedClustersCreateOrUpdateOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/managedClusters/{clusterName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n clusterName: clusterName,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).put({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n body: managedClusterSerializer(parameters),\n });\n}\n\nexport async function _createOrUpdateDeserialize(\n result: PathUncheckedResponse,\n): Promise<ManagedCluster> {\n const expectedStatuses = [\"200\", \"202\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return managedClusterDeserializer(result.body);\n}\n\n/** Create or update a Service Fabric managed cluster resource with the specified name. */\nexport function createOrUpdate(\n context: Client,\n resourceGroupName: string,\n clusterName: string,\n parameters: ManagedCluster,\n options: ManagedClustersCreateOrUpdateOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<ManagedCluster>, ManagedCluster> {\n return getLongRunningPoller(context, _createOrUpdateDeserialize, [\"200\", \"202\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _createOrUpdateSend(context, resourceGroupName, clusterName, parameters, options),\n resourceLocationConfig: \"location\",\n }) as PollerLike<OperationState<ManagedCluster>, ManagedCluster>;\n}\n\nexport function _getSend(\n context: Client,\n resourceGroupName: string,\n clusterName: string,\n options: ManagedClustersGetOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/managedClusters/{clusterName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n clusterName: clusterName,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _getDeserialize(result: PathUncheckedResponse): Promise<ManagedCluster> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return managedClusterDeserializer(result.body);\n}\n\n/** Get a Service Fabric managed cluster resource created or in the process of being created in the specified resource group. */\nexport async function get(\n context: Client,\n resourceGroupName: string,\n clusterName: string,\n options: ManagedClustersGetOptionalParams = { requestOptions: {} },\n): Promise<ManagedCluster> {\n const result = await _getSend(context, resourceGroupName, clusterName, options);\n return _getDeserialize(result);\n}\n"]}
|
|
1
|
+
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../../src/api/managedClusters/operations.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AA2ClC,4DA0BC;AAED,0EAWC;AAGD,kDAgBC;AAED,8DA0BC;AAED,4EAWC;AAGD,oDAgBC;AAED,4DA2BC;AAED,0EAWC;AAGD,kDAeC;AAED,0DA8BC;AAED,wEAWC;AAGD,gDAiBC;AAED,0DAuBC;AAED,wEAWC;AAGD,gDAaC;AAED,4DAyBC;AAED,0EAWC;AAGD,kDAcC;AAED,oCAmBC;AAED,kDASC;AAQD,0BAYC;AAED,kCA4BC;AAED,gDASC;AAGD,wBAcC;AAED,kDA4BC;AAED,gEAWC;AAGD,wCAcC;AAED,4BAyBC;AAED,0CASC;AAGD,kBAQC;AA5lBD,sDAUgC;AAEhC,4EAAgF;AAChF,8EAA8E;AAC9E,wEAAwE;AAcxE,yDAA+F;AAG/F,SAAgB,wBAAwB,CACtC,OAAe,EACf,iBAAyB,EACzB,WAAmB,EACnB,UAAoC,EACpC,UAA4D;IAC1D,cAAc,EAAE,EAAE;CACnB;IAED,MAAM,IAAI,GAAG,IAAA,kCAAiB,EAC5B,wKAAwK,EACxK;QACE,cAAc,EAAE,OAAO,CAAC,cAAc;QACtC,iBAAiB,EAAE,iBAAiB;QACpC,WAAW,EAAE,WAAW;QACxB,eAAe,EAAE,OAAO,CAAC,UAAU;KACpC,EACD;QACE,aAAa,EAAE,OAAO,EAAE,cAAc,EAAE,eAAe;KACxD,CACF,CAAC;IACF,OAAO,OAAO,CAAC,IAAI,CA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AyB,EAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QACvD,MAAM,KAAK,CAAC;IACd,CAAC;IAED,OAAO,IAAA,sCAA0B,EAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AACjD,CAAC;AAED,gIAAgI;AACzH,KAAK,UAAU,GAAG,CACvB,OAAe,EACf,iBAAyB,EACzB,WAAmB,EACnB,UAA4C,EAAE,cAAc,EAAE,EAAE,EAAE;IAElE,MAAM,MAAM,GAAG,MAAM,QAAQ,CAAC,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC;IAChF,OAAO,eAAe,CAAC,MAAM,CAAC,CAAC;AACjC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { ServiceFabricManagedClustersManagementContext as Client } from \"../index.js\";\nimport type {\n ManagedCluster,\n ManagedClusterUpdateParameters,\n _ManagedClusterListResult,\n FaultSimulationIdContent,\n FaultSimulation,\n _FaultSimulationListResult,\n FaultSimulationContentWrapper,\n} from \"../../models/models.js\";\nimport {\n errorResponseDeserializer,\n managedClusterSerializer,\n managedClusterDeserializer,\n managedClusterUpdateParametersSerializer,\n _managedClusterListResultDeserializer,\n faultSimulationIdContentSerializer,\n faultSimulationDeserializer,\n _faultSimulationListResultDeserializer,\n faultSimulationContentWrapperSerializer,\n} from \"../../models/models.js\";\nimport type { PagedAsyncIterableIterator } from \"../../static-helpers/pagingHelpers.js\";\nimport { buildPagedAsyncIterator } from \"../../static-helpers/pagingHelpers.js\";\nimport { getLongRunningPoller } from \"../../static-helpers/pollingHelpers.js\";\nimport { expandUrlTemplate } from \"../../static-helpers/urlTemplate.js\";\nimport type {\n ManagedClustersStopFaultSimulationOptionalParams,\n ManagedClustersStartFaultSimulationOptionalParams,\n ManagedClustersListFaultSimulationOptionalParams,\n ManagedClustersGetFaultSimulationOptionalParams,\n ManagedClustersListBySubscriptionOptionalParams,\n ManagedClustersListByResourceGroupOptionalParams,\n ManagedClustersDeleteOptionalParams,\n ManagedClustersUpdateOptionalParams,\n ManagedClustersCreateOrUpdateOptionalParams,\n ManagedClustersGetOptionalParams,\n} from \"./options.js\";\nimport type { StreamableMethod, PathUncheckedResponse } from \"@azure-rest/core-client\";\nimport { createRestError, operationOptionsToRequestParameters } from \"@azure-rest/core-client\";\nimport type { PollerLike, OperationState } from \"@azure/core-lro\";\n\nexport function _stopFaultSimulationSend(\n context: Client,\n resourceGroupName: string,\n clusterName: string,\n parameters: FaultSimulationIdContent,\n options: ManagedClustersStopFaultSimulationOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/managedClusters/{clusterName}/stopFaultSimulation{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n clusterName: clusterName,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).post({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n body: faultSimulationIdContentSerializer(parameters),\n });\n}\n\nexport async function _stopFaultSimulationDeserialize(\n result: PathUncheckedResponse,\n): Promise<FaultSimulation> {\n const expectedStatuses = [\"202\", \"200\", \"201\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return faultSimulationDeserializer(result.body);\n}\n\n/** Stops a fault simulation on the cluster. */\nexport function stopFaultSimulation(\n context: Client,\n resourceGroupName: string,\n clusterName: string,\n parameters: FaultSimulationIdContent,\n options: ManagedClustersStopFaultSimulationOptionalParams = {\n requestOptions: {},\n },\n): PollerLike<OperationState<FaultSimulation>, FaultSimulation> {\n return getLongRunningPoller(context, _stopFaultSimulationDeserialize, [\"202\", \"200\", \"201\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _stopFaultSimulationSend(context, resourceGroupName, clusterName, parameters, options),\n resourceLocationConfig: \"location\",\n }) as PollerLike<OperationState<FaultSimulation>, FaultSimulation>;\n}\n\nexport function _startFaultSimulationSend(\n context: Client,\n resourceGroupName: string,\n clusterName: string,\n parameters: FaultSimulationContentWrapper,\n options: ManagedClustersStartFaultSimulationOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/managedClusters/{clusterName}/startFaultSimulation{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n clusterName: clusterName,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).post({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n body: faultSimulationContentWrapperSerializer(parameters),\n });\n}\n\nexport async function _startFaultSimulationDeserialize(\n result: PathUncheckedResponse,\n): Promise<FaultSimulation> {\n const expectedStatuses = [\"202\", \"200\", \"201\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return faultSimulationDeserializer(result.body);\n}\n\n/** Starts a fault simulation on the cluster. */\nexport function startFaultSimulation(\n context: Client,\n resourceGroupName: string,\n clusterName: string,\n parameters: FaultSimulationContentWrapper,\n options: ManagedClustersStartFaultSimulationOptionalParams = {\n requestOptions: {},\n },\n): PollerLike<OperationState<FaultSimulation>, FaultSimulation> {\n return getLongRunningPoller(context, _startFaultSimulationDeserialize, [\"202\", \"200\", \"201\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _startFaultSimulationSend(context, resourceGroupName, clusterName, parameters, options),\n resourceLocationConfig: \"location\",\n }) as PollerLike<OperationState<FaultSimulation>, FaultSimulation>;\n}\n\nexport function _listFaultSimulationSend(\n context: Client,\n resourceGroupName: string,\n clusterName: string,\n options: ManagedClustersListFaultSimulationOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/managedClusters/{clusterName}/listFaultSimulation{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n clusterName: clusterName,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).post({\n ...operationOptionsToRequestParameters(options),\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _listFaultSimulationDeserialize(\n result: PathUncheckedResponse,\n): Promise<_FaultSimulationListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return _faultSimulationListResultDeserializer(result.body);\n}\n\n/** Gets the list of recent fault simulations for the cluster. */\nexport function listFaultSimulation(\n context: Client,\n resourceGroupName: string,\n clusterName: string,\n options: ManagedClustersListFaultSimulationOptionalParams = {\n requestOptions: {},\n },\n): PagedAsyncIterableIterator<FaultSimulation> {\n return buildPagedAsyncIterator(\n context,\n () => _listFaultSimulationSend(context, resourceGroupName, clusterName, options),\n _listFaultSimulationDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\" },\n );\n}\n\nexport function _getFaultSimulationSend(\n context: Client,\n resourceGroupName: string,\n clusterName: string,\n parameters: FaultSimulationIdContent,\n options: ManagedClustersGetFaultSimulationOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/managedClusters/{clusterName}/getFaultSimulation{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n clusterName: clusterName,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).post({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n body: faultSimulationIdContentSerializer(parameters),\n });\n}\n\nexport async function _getFaultSimulationDeserialize(\n result: PathUncheckedResponse,\n): Promise<FaultSimulation> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return faultSimulationDeserializer(result.body);\n}\n\n/** Gets a fault simulation by the simulationId. */\nexport async function getFaultSimulation(\n context: Client,\n resourceGroupName: string,\n clusterName: string,\n parameters: FaultSimulationIdContent,\n options: ManagedClustersGetFaultSimulationOptionalParams = {\n requestOptions: {},\n },\n): Promise<FaultSimulation> {\n const result = await _getFaultSimulationSend(\n context,\n resourceGroupName,\n clusterName,\n parameters,\n options,\n );\n return _getFaultSimulationDeserialize(result);\n}\n\nexport function _listBySubscriptionSend(\n context: Client,\n options: ManagedClustersListBySubscriptionOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.ServiceFabric/managedClusters{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _listBySubscriptionDeserialize(\n result: PathUncheckedResponse,\n): Promise<_ManagedClusterListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return _managedClusterListResultDeserializer(result.body);\n}\n\n/** Gets all Service Fabric cluster resources created or in the process of being created in the subscription. */\nexport function listBySubscription(\n context: Client,\n options: ManagedClustersListBySubscriptionOptionalParams = {\n requestOptions: {},\n },\n): PagedAsyncIterableIterator<ManagedCluster> {\n return buildPagedAsyncIterator(\n context,\n () => _listBySubscriptionSend(context, options),\n _listBySubscriptionDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\" },\n );\n}\n\nexport function _listByResourceGroupSend(\n context: Client,\n resourceGroupName: string,\n options: ManagedClustersListByResourceGroupOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/managedClusters{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _listByResourceGroupDeserialize(\n result: PathUncheckedResponse,\n): Promise<_ManagedClusterListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return _managedClusterListResultDeserializer(result.body);\n}\n\n/** Gets all Service Fabric cluster resources created or in the process of being created in the resource group. */\nexport function listByResourceGroup(\n context: Client,\n resourceGroupName: string,\n options: ManagedClustersListByResourceGroupOptionalParams = {\n requestOptions: {},\n },\n): PagedAsyncIterableIterator<ManagedCluster> {\n return buildPagedAsyncIterator(\n context,\n () => _listByResourceGroupSend(context, resourceGroupName, options),\n _listByResourceGroupDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\" },\n );\n}\n\nexport function _$deleteSend(\n context: Client,\n resourceGroupName: string,\n clusterName: string,\n options: ManagedClustersDeleteOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/managedClusters/{clusterName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n clusterName: clusterName,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).delete({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _$deleteDeserialize(result: PathUncheckedResponse): Promise<void> {\n const expectedStatuses = [\"202\", \"204\", \"200\", \"201\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return;\n}\n\n/** Delete a Service Fabric managed cluster resource with the specified name. */\n/**\n * @fixme delete is a reserved word that cannot be used as an operation name.\n * Please add @clientName(\"clientName\") or @clientName(\"<JS-Specific-Name>\", \"javascript\")\n * to the operation to override the generated name.\n */\nexport function $delete(\n context: Client,\n resourceGroupName: string,\n clusterName: string,\n options: ManagedClustersDeleteOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<void>, void> {\n return getLongRunningPoller(context, _$deleteDeserialize, [\"202\", \"204\", \"200\", \"201\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () => _$deleteSend(context, resourceGroupName, clusterName, options),\n resourceLocationConfig: \"location\",\n }) as PollerLike<OperationState<void>, void>;\n}\n\nexport function _updateSend(\n context: Client,\n resourceGroupName: string,\n clusterName: string,\n parameters: ManagedClusterUpdateParameters,\n options: ManagedClustersUpdateOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/managedClusters/{clusterName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n clusterName: clusterName,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).patch({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n body: managedClusterUpdateParametersSerializer(parameters),\n });\n}\n\nexport async function _updateDeserialize(result: PathUncheckedResponse): Promise<ManagedCluster> {\n const expectedStatuses = [\"200\", \"202\", \"201\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return managedClusterDeserializer(result.body);\n}\n\n/** Update the tags of of a Service Fabric managed cluster resource with the specified name. */\nexport function update(\n context: Client,\n resourceGroupName: string,\n clusterName: string,\n parameters: ManagedClusterUpdateParameters,\n options: ManagedClustersUpdateOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<ManagedCluster>, ManagedCluster> {\n return getLongRunningPoller(context, _updateDeserialize, [\"200\", \"202\", \"201\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _updateSend(context, resourceGroupName, clusterName, parameters, options),\n resourceLocationConfig: \"location\",\n }) as PollerLike<OperationState<ManagedCluster>, ManagedCluster>;\n}\n\nexport function _createOrUpdateSend(\n context: Client,\n resourceGroupName: string,\n clusterName: string,\n parameters: ManagedCluster,\n options: ManagedClustersCreateOrUpdateOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/managedClusters/{clusterName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n clusterName: clusterName,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).put({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n body: managedClusterSerializer(parameters),\n });\n}\n\nexport async function _createOrUpdateDeserialize(\n result: PathUncheckedResponse,\n): Promise<ManagedCluster> {\n const expectedStatuses = [\"200\", \"202\", \"201\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return managedClusterDeserializer(result.body);\n}\n\n/** Create or update a Service Fabric managed cluster resource with the specified name. */\nexport function createOrUpdate(\n context: Client,\n resourceGroupName: string,\n clusterName: string,\n parameters: ManagedCluster,\n options: ManagedClustersCreateOrUpdateOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<ManagedCluster>, ManagedCluster> {\n return getLongRunningPoller(context, _createOrUpdateDeserialize, [\"200\", \"202\", \"201\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _createOrUpdateSend(context, resourceGroupName, clusterName, parameters, options),\n resourceLocationConfig: \"location\",\n }) as PollerLike<OperationState<ManagedCluster>, ManagedCluster>;\n}\n\nexport function _getSend(\n context: Client,\n resourceGroupName: string,\n clusterName: string,\n options: ManagedClustersGetOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/managedClusters/{clusterName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n clusterName: clusterName,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _getDeserialize(result: PathUncheckedResponse): Promise<ManagedCluster> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return managedClusterDeserializer(result.body);\n}\n\n/** Get a Service Fabric managed cluster resource created or in the process of being created in the specified resource group. */\nexport async function get(\n context: Client,\n resourceGroupName: string,\n clusterName: string,\n options: ManagedClustersGetOptionalParams = { requestOptions: {} },\n): Promise<ManagedCluster> {\n const result = await _getSend(context, resourceGroupName, clusterName, options);\n return _getDeserialize(result);\n}\n"]}
|
|
@@ -28,6 +28,8 @@ export interface ManagedClustersDeleteOptionalParams extends OperationOptions {
|
|
|
28
28
|
}
|
|
29
29
|
/** Optional parameters. */
|
|
30
30
|
export interface ManagedClustersUpdateOptionalParams extends OperationOptions {
|
|
31
|
+
/** Delay to wait until next poll, in milliseconds. */
|
|
32
|
+
updateIntervalInMs?: number;
|
|
31
33
|
}
|
|
32
34
|
/** Optional parameters. */
|
|
33
35
|
export interface ManagedClustersCreateOrUpdateOptionalParams extends OperationOptions {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"options.js","sourceRoot":"","sources":["../../../../src/api/managedClusters/options.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { OperationOptions } from \"@azure-rest/core-client\";\n\n/** Optional parameters. */\nexport interface ManagedClustersStopFaultSimulationOptionalParams extends OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n}\n\n/** Optional parameters. */\nexport interface ManagedClustersStartFaultSimulationOptionalParams extends OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n}\n\n/** Optional parameters. */\nexport interface ManagedClustersListFaultSimulationOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface ManagedClustersGetFaultSimulationOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface ManagedClustersListBySubscriptionOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface ManagedClustersListByResourceGroupOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface ManagedClustersDeleteOptionalParams extends OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n}\n\n/** Optional parameters. */\nexport interface ManagedClustersUpdateOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface ManagedClustersCreateOrUpdateOptionalParams extends OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n}\n\n/** Optional parameters. */\nexport interface ManagedClustersGetOptionalParams extends OperationOptions {}\n"]}
|
|
1
|
+
{"version":3,"file":"options.js","sourceRoot":"","sources":["../../../../src/api/managedClusters/options.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { OperationOptions } from \"@azure-rest/core-client\";\n\n/** Optional parameters. */\nexport interface ManagedClustersStopFaultSimulationOptionalParams extends OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n}\n\n/** Optional parameters. */\nexport interface ManagedClustersStartFaultSimulationOptionalParams extends OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n}\n\n/** Optional parameters. */\nexport interface ManagedClustersListFaultSimulationOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface ManagedClustersGetFaultSimulationOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface ManagedClustersListBySubscriptionOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface ManagedClustersListByResourceGroupOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface ManagedClustersDeleteOptionalParams extends OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n}\n\n/** Optional parameters. */\nexport interface ManagedClustersUpdateOptionalParams extends OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n}\n\n/** Optional parameters. */\nexport interface ManagedClustersCreateOrUpdateOptionalParams extends OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n}\n\n/** Optional parameters. */\nexport interface ManagedClustersGetOptionalParams extends OperationOptions {}\n"]}
|
|
@@ -59,7 +59,7 @@ export declare function _$deleteDeserialize(result: PathUncheckedResponse): Prom
|
|
|
59
59
|
export declare function $delete(context: Client, resourceGroupName: string, clusterName: string, nodeTypeName: string, options?: NodeTypesDeleteOptionalParams): PollerLike<OperationState<void>, void>;
|
|
60
60
|
export declare function _updateSend(context: Client, resourceGroupName: string, clusterName: string, nodeTypeName: string, parameters: NodeTypeUpdateParameters, options?: NodeTypesUpdateOptionalParams): StreamableMethod;
|
|
61
61
|
export declare function _updateDeserialize(result: PathUncheckedResponse): Promise<NodeType>;
|
|
62
|
-
/** Update the configuration of a node type of a given managed cluster, only updating tags. */
|
|
62
|
+
/** Update the configuration of a node type of a given managed cluster, only updating tags or capacity. */
|
|
63
63
|
export declare function update(context: Client, resourceGroupName: string, clusterName: string, nodeTypeName: string, parameters: NodeTypeUpdateParameters, options?: NodeTypesUpdateOptionalParams): PollerLike<OperationState<NodeType>, NodeType>;
|
|
64
64
|
export declare function _createOrUpdateSend(context: Client, resourceGroupName: string, clusterName: string, nodeTypeName: string, parameters: NodeType, options?: NodeTypesCreateOrUpdateOptionalParams): StreamableMethod;
|
|
65
65
|
export declare function _createOrUpdateDeserialize(result: PathUncheckedResponse): Promise<NodeType>;
|
|
@@ -134,7 +134,7 @@ function _stopFaultSimulationSend(context, resourceGroupName, clusterName, nodeT
|
|
|
134
134
|
});
|
|
135
135
|
}
|
|
136
136
|
async function _stopFaultSimulationDeserialize(result) {
|
|
137
|
-
const expectedStatuses = ["202", "200"];
|
|
137
|
+
const expectedStatuses = ["202", "200", "201"];
|
|
138
138
|
if (!expectedStatuses.includes(result.status)) {
|
|
139
139
|
const error = (0, core_client_1.createRestError)(result);
|
|
140
140
|
error.details = (0, models_js_1.errorResponseDeserializer)(result.body);
|
|
@@ -144,7 +144,7 @@ async function _stopFaultSimulationDeserialize(result) {
|
|
|
144
144
|
}
|
|
145
145
|
/** Stops a fault simulation on the node type. */
|
|
146
146
|
function stopFaultSimulation(context, resourceGroupName, clusterName, nodeTypeName, parameters, options = { requestOptions: {} }) {
|
|
147
|
-
return (0, pollingHelpers_js_1.getLongRunningPoller)(context, _stopFaultSimulationDeserialize, ["202", "200"], {
|
|
147
|
+
return (0, pollingHelpers_js_1.getLongRunningPoller)(context, _stopFaultSimulationDeserialize, ["202", "200", "201"], {
|
|
148
148
|
updateIntervalInMs: options?.updateIntervalInMs,
|
|
149
149
|
abortSignal: options?.abortSignal,
|
|
150
150
|
getInitialResponse: () => _stopFaultSimulationSend(context, resourceGroupName, clusterName, nodeTypeName, parameters, options),
|
|
@@ -168,7 +168,7 @@ function _startFaultSimulationSend(context, resourceGroupName, clusterName, node
|
|
|
168
168
|
});
|
|
169
169
|
}
|
|
170
170
|
async function _startFaultSimulationDeserialize(result) {
|
|
171
|
-
const expectedStatuses = ["202", "200"];
|
|
171
|
+
const expectedStatuses = ["202", "200", "201"];
|
|
172
172
|
if (!expectedStatuses.includes(result.status)) {
|
|
173
173
|
const error = (0, core_client_1.createRestError)(result);
|
|
174
174
|
error.details = (0, models_js_1.errorResponseDeserializer)(result.body);
|
|
@@ -178,7 +178,7 @@ async function _startFaultSimulationDeserialize(result) {
|
|
|
178
178
|
}
|
|
179
179
|
/** Starts a fault simulation on the node type. */
|
|
180
180
|
function startFaultSimulation(context, resourceGroupName, clusterName, nodeTypeName, parameters, options = { requestOptions: {} }) {
|
|
181
|
-
return (0, pollingHelpers_js_1.getLongRunningPoller)(context, _startFaultSimulationDeserialize, ["202", "200"], {
|
|
181
|
+
return (0, pollingHelpers_js_1.getLongRunningPoller)(context, _startFaultSimulationDeserialize, ["202", "200", "201"], {
|
|
182
182
|
updateIntervalInMs: options?.updateIntervalInMs,
|
|
183
183
|
abortSignal: options?.abortSignal,
|
|
184
184
|
getInitialResponse: () => _startFaultSimulationSend(context, resourceGroupName, clusterName, nodeTypeName, parameters, options),
|
|
@@ -202,7 +202,7 @@ function _startSend(context, resourceGroupName, clusterName, nodeTypeName, param
|
|
|
202
202
|
});
|
|
203
203
|
}
|
|
204
204
|
async function _startDeserialize(result) {
|
|
205
|
-
const expectedStatuses = ["202", "200"];
|
|
205
|
+
const expectedStatuses = ["202", "200", "201"];
|
|
206
206
|
if (!expectedStatuses.includes(result.status)) {
|
|
207
207
|
const error = (0, core_client_1.createRestError)(result);
|
|
208
208
|
error.details = (0, models_js_1.errorResponseDeserializer)(result.body);
|
|
@@ -212,7 +212,7 @@ async function _startDeserialize(result) {
|
|
|
212
212
|
}
|
|
213
213
|
/** Starts one or more nodes on the node type. It will trigger an allocation of the fabric node if needed and activate them. */
|
|
214
214
|
function start(context, resourceGroupName, clusterName, nodeTypeName, parameters, options = { requestOptions: {} }) {
|
|
215
|
-
return (0, pollingHelpers_js_1.getLongRunningPoller)(context, _startDeserialize, ["202", "200"], {
|
|
215
|
+
return (0, pollingHelpers_js_1.getLongRunningPoller)(context, _startDeserialize, ["202", "200", "201"], {
|
|
216
216
|
updateIntervalInMs: options?.updateIntervalInMs,
|
|
217
217
|
abortSignal: options?.abortSignal,
|
|
218
218
|
getInitialResponse: () => _startSend(context, resourceGroupName, clusterName, nodeTypeName, parameters, options),
|
|
@@ -236,7 +236,7 @@ function _restartSend(context, resourceGroupName, clusterName, nodeTypeName, par
|
|
|
236
236
|
});
|
|
237
237
|
}
|
|
238
238
|
async function _restartDeserialize(result) {
|
|
239
|
-
const expectedStatuses = ["202", "200"];
|
|
239
|
+
const expectedStatuses = ["202", "200", "201"];
|
|
240
240
|
if (!expectedStatuses.includes(result.status)) {
|
|
241
241
|
const error = (0, core_client_1.createRestError)(result);
|
|
242
242
|
error.details = (0, models_js_1.errorResponseDeserializer)(result.body);
|
|
@@ -246,7 +246,7 @@ async function _restartDeserialize(result) {
|
|
|
246
246
|
}
|
|
247
247
|
/** 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. */
|
|
248
248
|
function restart(context, resourceGroupName, clusterName, nodeTypeName, parameters, options = { requestOptions: {} }) {
|
|
249
|
-
return (0, pollingHelpers_js_1.getLongRunningPoller)(context, _restartDeserialize, ["202", "200"], {
|
|
249
|
+
return (0, pollingHelpers_js_1.getLongRunningPoller)(context, _restartDeserialize, ["202", "200", "201"], {
|
|
250
250
|
updateIntervalInMs: options?.updateIntervalInMs,
|
|
251
251
|
abortSignal: options?.abortSignal,
|
|
252
252
|
getInitialResponse: () => _restartSend(context, resourceGroupName, clusterName, nodeTypeName, parameters, options),
|
|
@@ -270,7 +270,7 @@ function _reimageSend(context, resourceGroupName, clusterName, nodeTypeName, par
|
|
|
270
270
|
});
|
|
271
271
|
}
|
|
272
272
|
async function _reimageDeserialize(result) {
|
|
273
|
-
const expectedStatuses = ["202", "200"];
|
|
273
|
+
const expectedStatuses = ["202", "200", "201"];
|
|
274
274
|
if (!expectedStatuses.includes(result.status)) {
|
|
275
275
|
const error = (0, core_client_1.createRestError)(result);
|
|
276
276
|
error.details = (0, models_js_1.errorResponseDeserializer)(result.body);
|
|
@@ -280,7 +280,7 @@ async function _reimageDeserialize(result) {
|
|
|
280
280
|
}
|
|
281
281
|
/** 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. */
|
|
282
282
|
function reimage(context, resourceGroupName, clusterName, nodeTypeName, parameters, options = { requestOptions: {} }) {
|
|
283
|
-
return (0, pollingHelpers_js_1.getLongRunningPoller)(context, _reimageDeserialize, ["202", "200"], {
|
|
283
|
+
return (0, pollingHelpers_js_1.getLongRunningPoller)(context, _reimageDeserialize, ["202", "200", "201"], {
|
|
284
284
|
updateIntervalInMs: options?.updateIntervalInMs,
|
|
285
285
|
abortSignal: options?.abortSignal,
|
|
286
286
|
getInitialResponse: () => _reimageSend(context, resourceGroupName, clusterName, nodeTypeName, parameters, options),
|
|
@@ -304,7 +304,7 @@ function _redeploySend(context, resourceGroupName, clusterName, nodeTypeName, pa
|
|
|
304
304
|
});
|
|
305
305
|
}
|
|
306
306
|
async function _redeployDeserialize(result) {
|
|
307
|
-
const expectedStatuses = ["202", "200"];
|
|
307
|
+
const expectedStatuses = ["202", "200", "201"];
|
|
308
308
|
if (!expectedStatuses.includes(result.status)) {
|
|
309
309
|
const error = (0, core_client_1.createRestError)(result);
|
|
310
310
|
error.details = (0, models_js_1.errorResponseDeserializer)(result.body);
|
|
@@ -314,7 +314,7 @@ async function _redeployDeserialize(result) {
|
|
|
314
314
|
}
|
|
315
315
|
/** 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. */
|
|
316
316
|
function redeploy(context, resourceGroupName, clusterName, nodeTypeName, parameters, options = { requestOptions: {} }) {
|
|
317
|
-
return (0, pollingHelpers_js_1.getLongRunningPoller)(context, _redeployDeserialize, ["202", "200"], {
|
|
317
|
+
return (0, pollingHelpers_js_1.getLongRunningPoller)(context, _redeployDeserialize, ["202", "200", "201"], {
|
|
318
318
|
updateIntervalInMs: options?.updateIntervalInMs,
|
|
319
319
|
abortSignal: options?.abortSignal,
|
|
320
320
|
getInitialResponse: () => _redeploySend(context, resourceGroupName, clusterName, nodeTypeName, parameters, options),
|
|
@@ -338,7 +338,7 @@ function _deleteNodeSend(context, resourceGroupName, clusterName, nodeTypeName,
|
|
|
338
338
|
});
|
|
339
339
|
}
|
|
340
340
|
async function _deleteNodeDeserialize(result) {
|
|
341
|
-
const expectedStatuses = ["202", "200"];
|
|
341
|
+
const expectedStatuses = ["202", "200", "201"];
|
|
342
342
|
if (!expectedStatuses.includes(result.status)) {
|
|
343
343
|
const error = (0, core_client_1.createRestError)(result);
|
|
344
344
|
error.details = (0, models_js_1.errorResponseDeserializer)(result.body);
|
|
@@ -348,7 +348,7 @@ async function _deleteNodeDeserialize(result) {
|
|
|
348
348
|
}
|
|
349
349
|
/** 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. */
|
|
350
350
|
function deleteNode(context, resourceGroupName, clusterName, nodeTypeName, parameters, options = { requestOptions: {} }) {
|
|
351
|
-
return (0, pollingHelpers_js_1.getLongRunningPoller)(context, _deleteNodeDeserialize, ["202", "200"], {
|
|
351
|
+
return (0, pollingHelpers_js_1.getLongRunningPoller)(context, _deleteNodeDeserialize, ["202", "200", "201"], {
|
|
352
352
|
updateIntervalInMs: options?.updateIntervalInMs,
|
|
353
353
|
abortSignal: options?.abortSignal,
|
|
354
354
|
getInitialResponse: () => _deleteNodeSend(context, resourceGroupName, clusterName, nodeTypeName, parameters, options),
|
|
@@ -372,7 +372,7 @@ function _deallocateSend(context, resourceGroupName, clusterName, nodeTypeName,
|
|
|
372
372
|
});
|
|
373
373
|
}
|
|
374
374
|
async function _deallocateDeserialize(result) {
|
|
375
|
-
const expectedStatuses = ["202", "200"];
|
|
375
|
+
const expectedStatuses = ["202", "200", "201"];
|
|
376
376
|
if (!expectedStatuses.includes(result.status)) {
|
|
377
377
|
const error = (0, core_client_1.createRestError)(result);
|
|
378
378
|
error.details = (0, models_js_1.errorResponseDeserializer)(result.body);
|
|
@@ -382,7 +382,7 @@ async function _deallocateDeserialize(result) {
|
|
|
382
382
|
}
|
|
383
383
|
/** 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. */
|
|
384
384
|
function deallocate(context, resourceGroupName, clusterName, nodeTypeName, parameters, options = { requestOptions: {} }) {
|
|
385
|
-
return (0, pollingHelpers_js_1.getLongRunningPoller)(context, _deallocateDeserialize, ["202", "200"], {
|
|
385
|
+
return (0, pollingHelpers_js_1.getLongRunningPoller)(context, _deallocateDeserialize, ["202", "200", "201"], {
|
|
386
386
|
updateIntervalInMs: options?.updateIntervalInMs,
|
|
387
387
|
abortSignal: options?.abortSignal,
|
|
388
388
|
getInitialResponse: () => _deallocateSend(context, resourceGroupName, clusterName, nodeTypeName, parameters, options),
|
|
@@ -436,7 +436,7 @@ function _$deleteSend(context, resourceGroupName, clusterName, nodeTypeName, opt
|
|
|
436
436
|
return context.path(path).delete({ ...(0, core_client_1.operationOptionsToRequestParameters)(options) });
|
|
437
437
|
}
|
|
438
438
|
async function _$deleteDeserialize(result) {
|
|
439
|
-
const expectedStatuses = ["202", "204", "200"];
|
|
439
|
+
const expectedStatuses = ["202", "204", "200", "201"];
|
|
440
440
|
if (!expectedStatuses.includes(result.status)) {
|
|
441
441
|
const error = (0, core_client_1.createRestError)(result);
|
|
442
442
|
error.details = (0, models_js_1.errorResponseDeserializer)(result.body);
|
|
@@ -451,7 +451,7 @@ async function _$deleteDeserialize(result) {
|
|
|
451
451
|
* to the operation to override the generated name.
|
|
452
452
|
*/
|
|
453
453
|
function $delete(context, resourceGroupName, clusterName, nodeTypeName, options = { requestOptions: {} }) {
|
|
454
|
-
return (0, pollingHelpers_js_1.getLongRunningPoller)(context, _$deleteDeserialize, ["202", "204", "200"], {
|
|
454
|
+
return (0, pollingHelpers_js_1.getLongRunningPoller)(context, _$deleteDeserialize, ["202", "204", "200", "201"], {
|
|
455
455
|
updateIntervalInMs: options?.updateIntervalInMs,
|
|
456
456
|
abortSignal: options?.abortSignal,
|
|
457
457
|
getInitialResponse: () => _$deleteSend(context, resourceGroupName, clusterName, nodeTypeName, options),
|
|
@@ -479,7 +479,7 @@ function _updateSend(context, resourceGroupName, clusterName, nodeTypeName, para
|
|
|
479
479
|
});
|
|
480
480
|
}
|
|
481
481
|
async function _updateDeserialize(result) {
|
|
482
|
-
const expectedStatuses = ["200", "202"];
|
|
482
|
+
const expectedStatuses = ["200", "202", "201"];
|
|
483
483
|
if (!expectedStatuses.includes(result.status)) {
|
|
484
484
|
const error = (0, core_client_1.createRestError)(result);
|
|
485
485
|
error.details = (0, models_js_1.errorResponseDeserializer)(result.body);
|
|
@@ -487,9 +487,9 @@ async function _updateDeserialize(result) {
|
|
|
487
487
|
}
|
|
488
488
|
return (0, models_js_1.nodeTypeDeserializer)(result.body);
|
|
489
489
|
}
|
|
490
|
-
/** Update the configuration of a node type of a given managed cluster, only updating tags. */
|
|
490
|
+
/** Update the configuration of a node type of a given managed cluster, only updating tags or capacity. */
|
|
491
491
|
function update(context, resourceGroupName, clusterName, nodeTypeName, parameters, options = { requestOptions: {} }) {
|
|
492
|
-
return (0, pollingHelpers_js_1.getLongRunningPoller)(context, _updateDeserialize, ["200", "202"], {
|
|
492
|
+
return (0, pollingHelpers_js_1.getLongRunningPoller)(context, _updateDeserialize, ["200", "202", "201"], {
|
|
493
493
|
updateIntervalInMs: options?.updateIntervalInMs,
|
|
494
494
|
abortSignal: options?.abortSignal,
|
|
495
495
|
getInitialResponse: () => _updateSend(context, resourceGroupName, clusterName, nodeTypeName, parameters, options),
|
|
@@ -517,7 +517,7 @@ function _createOrUpdateSend(context, resourceGroupName, clusterName, nodeTypeNa
|
|
|
517
517
|
});
|
|
518
518
|
}
|
|
519
519
|
async function _createOrUpdateDeserialize(result) {
|
|
520
|
-
const expectedStatuses = ["200", "202"];
|
|
520
|
+
const expectedStatuses = ["200", "202", "201"];
|
|
521
521
|
if (!expectedStatuses.includes(result.status)) {
|
|
522
522
|
const error = (0, core_client_1.createRestError)(result);
|
|
523
523
|
error.details = (0, models_js_1.errorResponseDeserializer)(result.body);
|
|
@@ -527,7 +527,7 @@ async function _createOrUpdateDeserialize(result) {
|
|
|
527
527
|
}
|
|
528
528
|
/** Create or update a Service Fabric node type of a given managed cluster. */
|
|
529
529
|
function createOrUpdate(context, resourceGroupName, clusterName, nodeTypeName, parameters, options = { requestOptions: {} }) {
|
|
530
|
-
return (0, pollingHelpers_js_1.getLongRunningPoller)(context, _createOrUpdateDeserialize, ["200", "202"], {
|
|
530
|
+
return (0, pollingHelpers_js_1.getLongRunningPoller)(context, _createOrUpdateDeserialize, ["200", "202", "201"], {
|
|
531
531
|
updateIntervalInMs: options?.updateIntervalInMs,
|
|
532
532
|
abortSignal: options?.abortSignal,
|
|
533
533
|
getInitialResponse: () => _createOrUpdateSend(context, resourceGroupName, clusterName, nodeTypeName, parameters, options),
|