@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;AAYlC,OAAO,EACL,yBAAyB,EACzB,wBAAwB,EACxB,0BAA0B,EAC1B,wCAAwC,EACxC,qCAAqC,EACrC,kCAAkC,EAClC,2BAA2B,EAC3B,sCAAsC,EACtC,uCAAuC,GACxC,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAChF,OAAO,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAC9E,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AAcxE,OAAO,EAAE,eAAe,EAAE,mCAAmC,EAAE,MAAM,yBAAyB,CAAC;AAG/F,MAAM,UAAU,wBAAwB,CACtC,OAAe,EACf,iBAAyB,E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AAI,CAAC,CAAC;AACjD,CAAC;AAED,gIAAgI;AAChI,MAAM,CAAC,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;AAYlC,OAAO,EACL,yBAAyB,EACzB,wBAAwB,EACxB,0BAA0B,EAC1B,wCAAwC,EACxC,qCAAqC,EACrC,kCAAkC,EAClC,2BAA2B,EAC3B,sCAAsC,EACtC,uCAAuC,GACxC,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAChF,OAAO,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAC9E,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AAcxE,OAAO,EAAE,eAAe,EAAE,mCAAmC,EAAE,MAAM,yBAAyB,CAAC;AAG/F,MAAM,UAAU,wBAAwB,CACtC,OAAe,EACf,iBAAyB,EACzB,WAAmB,EACnB,UAAoC,EACpC,UAA4D;IAC1D,cAAc,EAAE,EAAE;CACnB;IAED,MAAM,IAAI,GAAG,iBAAiB,CAC5B,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,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC;QAC7B,GAAG,mCAAmC,CAAC,OAAO,CAAC;QAC/C,WAAW,EAAE,kBAAkB;QAC/B,IAAI,EAAE,kCAAkC,CAAC,UAAU,CAAC;KACrD,CAAC,CAAC;AACL,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,+BAA+B,CACnD,MAA6B;IAE7B,MAAM,gBAAgB,GAAG,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,CA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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>;
|
|
@@ -87,7 +87,7 @@ export function _stopFaultSimulationSend(context, resourceGroupName, clusterName
|
|
|
87
87
|
});
|
|
88
88
|
}
|
|
89
89
|
export async function _stopFaultSimulationDeserialize(result) {
|
|
90
|
-
const expectedStatuses = ["202", "200"];
|
|
90
|
+
const expectedStatuses = ["202", "200", "201"];
|
|
91
91
|
if (!expectedStatuses.includes(result.status)) {
|
|
92
92
|
const error = createRestError(result);
|
|
93
93
|
error.details = errorResponseDeserializer(result.body);
|
|
@@ -97,7 +97,7 @@ export async function _stopFaultSimulationDeserialize(result) {
|
|
|
97
97
|
}
|
|
98
98
|
/** Stops a fault simulation on the node type. */
|
|
99
99
|
export function stopFaultSimulation(context, resourceGroupName, clusterName, nodeTypeName, parameters, options = { requestOptions: {} }) {
|
|
100
|
-
return getLongRunningPoller(context, _stopFaultSimulationDeserialize, ["202", "200"], {
|
|
100
|
+
return getLongRunningPoller(context, _stopFaultSimulationDeserialize, ["202", "200", "201"], {
|
|
101
101
|
updateIntervalInMs: options?.updateIntervalInMs,
|
|
102
102
|
abortSignal: options?.abortSignal,
|
|
103
103
|
getInitialResponse: () => _stopFaultSimulationSend(context, resourceGroupName, clusterName, nodeTypeName, parameters, options),
|
|
@@ -121,7 +121,7 @@ export function _startFaultSimulationSend(context, resourceGroupName, clusterNam
|
|
|
121
121
|
});
|
|
122
122
|
}
|
|
123
123
|
export async function _startFaultSimulationDeserialize(result) {
|
|
124
|
-
const expectedStatuses = ["202", "200"];
|
|
124
|
+
const expectedStatuses = ["202", "200", "201"];
|
|
125
125
|
if (!expectedStatuses.includes(result.status)) {
|
|
126
126
|
const error = createRestError(result);
|
|
127
127
|
error.details = errorResponseDeserializer(result.body);
|
|
@@ -131,7 +131,7 @@ export async function _startFaultSimulationDeserialize(result) {
|
|
|
131
131
|
}
|
|
132
132
|
/** Starts a fault simulation on the node type. */
|
|
133
133
|
export function startFaultSimulation(context, resourceGroupName, clusterName, nodeTypeName, parameters, options = { requestOptions: {} }) {
|
|
134
|
-
return getLongRunningPoller(context, _startFaultSimulationDeserialize, ["202", "200"], {
|
|
134
|
+
return getLongRunningPoller(context, _startFaultSimulationDeserialize, ["202", "200", "201"], {
|
|
135
135
|
updateIntervalInMs: options?.updateIntervalInMs,
|
|
136
136
|
abortSignal: options?.abortSignal,
|
|
137
137
|
getInitialResponse: () => _startFaultSimulationSend(context, resourceGroupName, clusterName, nodeTypeName, parameters, options),
|
|
@@ -155,7 +155,7 @@ export function _startSend(context, resourceGroupName, clusterName, nodeTypeName
|
|
|
155
155
|
});
|
|
156
156
|
}
|
|
157
157
|
export async function _startDeserialize(result) {
|
|
158
|
-
const expectedStatuses = ["202", "200"];
|
|
158
|
+
const expectedStatuses = ["202", "200", "201"];
|
|
159
159
|
if (!expectedStatuses.includes(result.status)) {
|
|
160
160
|
const error = createRestError(result);
|
|
161
161
|
error.details = errorResponseDeserializer(result.body);
|
|
@@ -165,7 +165,7 @@ export async function _startDeserialize(result) {
|
|
|
165
165
|
}
|
|
166
166
|
/** Starts one or more nodes on the node type. It will trigger an allocation of the fabric node if needed and activate them. */
|
|
167
167
|
export function start(context, resourceGroupName, clusterName, nodeTypeName, parameters, options = { requestOptions: {} }) {
|
|
168
|
-
return getLongRunningPoller(context, _startDeserialize, ["202", "200"], {
|
|
168
|
+
return getLongRunningPoller(context, _startDeserialize, ["202", "200", "201"], {
|
|
169
169
|
updateIntervalInMs: options?.updateIntervalInMs,
|
|
170
170
|
abortSignal: options?.abortSignal,
|
|
171
171
|
getInitialResponse: () => _startSend(context, resourceGroupName, clusterName, nodeTypeName, parameters, options),
|
|
@@ -189,7 +189,7 @@ export function _restartSend(context, resourceGroupName, clusterName, nodeTypeNa
|
|
|
189
189
|
});
|
|
190
190
|
}
|
|
191
191
|
export async function _restartDeserialize(result) {
|
|
192
|
-
const expectedStatuses = ["202", "200"];
|
|
192
|
+
const expectedStatuses = ["202", "200", "201"];
|
|
193
193
|
if (!expectedStatuses.includes(result.status)) {
|
|
194
194
|
const error = createRestError(result);
|
|
195
195
|
error.details = errorResponseDeserializer(result.body);
|
|
@@ -199,7 +199,7 @@ export async function _restartDeserialize(result) {
|
|
|
199
199
|
}
|
|
200
200
|
/** 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. */
|
|
201
201
|
export function restart(context, resourceGroupName, clusterName, nodeTypeName, parameters, options = { requestOptions: {} }) {
|
|
202
|
-
return getLongRunningPoller(context, _restartDeserialize, ["202", "200"], {
|
|
202
|
+
return getLongRunningPoller(context, _restartDeserialize, ["202", "200", "201"], {
|
|
203
203
|
updateIntervalInMs: options?.updateIntervalInMs,
|
|
204
204
|
abortSignal: options?.abortSignal,
|
|
205
205
|
getInitialResponse: () => _restartSend(context, resourceGroupName, clusterName, nodeTypeName, parameters, options),
|
|
@@ -223,7 +223,7 @@ export function _reimageSend(context, resourceGroupName, clusterName, nodeTypeNa
|
|
|
223
223
|
});
|
|
224
224
|
}
|
|
225
225
|
export async function _reimageDeserialize(result) {
|
|
226
|
-
const expectedStatuses = ["202", "200"];
|
|
226
|
+
const expectedStatuses = ["202", "200", "201"];
|
|
227
227
|
if (!expectedStatuses.includes(result.status)) {
|
|
228
228
|
const error = createRestError(result);
|
|
229
229
|
error.details = errorResponseDeserializer(result.body);
|
|
@@ -233,7 +233,7 @@ export async function _reimageDeserialize(result) {
|
|
|
233
233
|
}
|
|
234
234
|
/** 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. */
|
|
235
235
|
export function reimage(context, resourceGroupName, clusterName, nodeTypeName, parameters, options = { requestOptions: {} }) {
|
|
236
|
-
return getLongRunningPoller(context, _reimageDeserialize, ["202", "200"], {
|
|
236
|
+
return getLongRunningPoller(context, _reimageDeserialize, ["202", "200", "201"], {
|
|
237
237
|
updateIntervalInMs: options?.updateIntervalInMs,
|
|
238
238
|
abortSignal: options?.abortSignal,
|
|
239
239
|
getInitialResponse: () => _reimageSend(context, resourceGroupName, clusterName, nodeTypeName, parameters, options),
|
|
@@ -257,7 +257,7 @@ export function _redeploySend(context, resourceGroupName, clusterName, nodeTypeN
|
|
|
257
257
|
});
|
|
258
258
|
}
|
|
259
259
|
export async function _redeployDeserialize(result) {
|
|
260
|
-
const expectedStatuses = ["202", "200"];
|
|
260
|
+
const expectedStatuses = ["202", "200", "201"];
|
|
261
261
|
if (!expectedStatuses.includes(result.status)) {
|
|
262
262
|
const error = createRestError(result);
|
|
263
263
|
error.details = errorResponseDeserializer(result.body);
|
|
@@ -267,7 +267,7 @@ export async function _redeployDeserialize(result) {
|
|
|
267
267
|
}
|
|
268
268
|
/** 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. */
|
|
269
269
|
export function redeploy(context, resourceGroupName, clusterName, nodeTypeName, parameters, options = { requestOptions: {} }) {
|
|
270
|
-
return getLongRunningPoller(context, _redeployDeserialize, ["202", "200"], {
|
|
270
|
+
return getLongRunningPoller(context, _redeployDeserialize, ["202", "200", "201"], {
|
|
271
271
|
updateIntervalInMs: options?.updateIntervalInMs,
|
|
272
272
|
abortSignal: options?.abortSignal,
|
|
273
273
|
getInitialResponse: () => _redeploySend(context, resourceGroupName, clusterName, nodeTypeName, parameters, options),
|
|
@@ -291,7 +291,7 @@ export function _deleteNodeSend(context, resourceGroupName, clusterName, nodeTyp
|
|
|
291
291
|
});
|
|
292
292
|
}
|
|
293
293
|
export async function _deleteNodeDeserialize(result) {
|
|
294
|
-
const expectedStatuses = ["202", "200"];
|
|
294
|
+
const expectedStatuses = ["202", "200", "201"];
|
|
295
295
|
if (!expectedStatuses.includes(result.status)) {
|
|
296
296
|
const error = createRestError(result);
|
|
297
297
|
error.details = errorResponseDeserializer(result.body);
|
|
@@ -301,7 +301,7 @@ export async function _deleteNodeDeserialize(result) {
|
|
|
301
301
|
}
|
|
302
302
|
/** 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. */
|
|
303
303
|
export function deleteNode(context, resourceGroupName, clusterName, nodeTypeName, parameters, options = { requestOptions: {} }) {
|
|
304
|
-
return getLongRunningPoller(context, _deleteNodeDeserialize, ["202", "200"], {
|
|
304
|
+
return getLongRunningPoller(context, _deleteNodeDeserialize, ["202", "200", "201"], {
|
|
305
305
|
updateIntervalInMs: options?.updateIntervalInMs,
|
|
306
306
|
abortSignal: options?.abortSignal,
|
|
307
307
|
getInitialResponse: () => _deleteNodeSend(context, resourceGroupName, clusterName, nodeTypeName, parameters, options),
|
|
@@ -325,7 +325,7 @@ export function _deallocateSend(context, resourceGroupName, clusterName, nodeTyp
|
|
|
325
325
|
});
|
|
326
326
|
}
|
|
327
327
|
export async function _deallocateDeserialize(result) {
|
|
328
|
-
const expectedStatuses = ["202", "200"];
|
|
328
|
+
const expectedStatuses = ["202", "200", "201"];
|
|
329
329
|
if (!expectedStatuses.includes(result.status)) {
|
|
330
330
|
const error = createRestError(result);
|
|
331
331
|
error.details = errorResponseDeserializer(result.body);
|
|
@@ -335,7 +335,7 @@ export async function _deallocateDeserialize(result) {
|
|
|
335
335
|
}
|
|
336
336
|
/** 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. */
|
|
337
337
|
export function deallocate(context, resourceGroupName, clusterName, nodeTypeName, parameters, options = { requestOptions: {} }) {
|
|
338
|
-
return getLongRunningPoller(context, _deallocateDeserialize, ["202", "200"], {
|
|
338
|
+
return getLongRunningPoller(context, _deallocateDeserialize, ["202", "200", "201"], {
|
|
339
339
|
updateIntervalInMs: options?.updateIntervalInMs,
|
|
340
340
|
abortSignal: options?.abortSignal,
|
|
341
341
|
getInitialResponse: () => _deallocateSend(context, resourceGroupName, clusterName, nodeTypeName, parameters, options),
|
|
@@ -389,7 +389,7 @@ export function _$deleteSend(context, resourceGroupName, clusterName, nodeTypeNa
|
|
|
389
389
|
return context.path(path).delete({ ...operationOptionsToRequestParameters(options) });
|
|
390
390
|
}
|
|
391
391
|
export async function _$deleteDeserialize(result) {
|
|
392
|
-
const expectedStatuses = ["202", "204", "200"];
|
|
392
|
+
const expectedStatuses = ["202", "204", "200", "201"];
|
|
393
393
|
if (!expectedStatuses.includes(result.status)) {
|
|
394
394
|
const error = createRestError(result);
|
|
395
395
|
error.details = errorResponseDeserializer(result.body);
|
|
@@ -404,7 +404,7 @@ export async function _$deleteDeserialize(result) {
|
|
|
404
404
|
* to the operation to override the generated name.
|
|
405
405
|
*/
|
|
406
406
|
export function $delete(context, resourceGroupName, clusterName, nodeTypeName, options = { requestOptions: {} }) {
|
|
407
|
-
return getLongRunningPoller(context, _$deleteDeserialize, ["202", "204", "200"], {
|
|
407
|
+
return getLongRunningPoller(context, _$deleteDeserialize, ["202", "204", "200", "201"], {
|
|
408
408
|
updateIntervalInMs: options?.updateIntervalInMs,
|
|
409
409
|
abortSignal: options?.abortSignal,
|
|
410
410
|
getInitialResponse: () => _$deleteSend(context, resourceGroupName, clusterName, nodeTypeName, options),
|
|
@@ -432,7 +432,7 @@ export function _updateSend(context, resourceGroupName, clusterName, nodeTypeNam
|
|
|
432
432
|
});
|
|
433
433
|
}
|
|
434
434
|
export async function _updateDeserialize(result) {
|
|
435
|
-
const expectedStatuses = ["200", "202"];
|
|
435
|
+
const expectedStatuses = ["200", "202", "201"];
|
|
436
436
|
if (!expectedStatuses.includes(result.status)) {
|
|
437
437
|
const error = createRestError(result);
|
|
438
438
|
error.details = errorResponseDeserializer(result.body);
|
|
@@ -440,9 +440,9 @@ export async function _updateDeserialize(result) {
|
|
|
440
440
|
}
|
|
441
441
|
return nodeTypeDeserializer(result.body);
|
|
442
442
|
}
|
|
443
|
-
/** Update the configuration of a node type of a given managed cluster, only updating tags. */
|
|
443
|
+
/** Update the configuration of a node type of a given managed cluster, only updating tags or capacity. */
|
|
444
444
|
export function update(context, resourceGroupName, clusterName, nodeTypeName, parameters, options = { requestOptions: {} }) {
|
|
445
|
-
return getLongRunningPoller(context, _updateDeserialize, ["200", "202"], {
|
|
445
|
+
return getLongRunningPoller(context, _updateDeserialize, ["200", "202", "201"], {
|
|
446
446
|
updateIntervalInMs: options?.updateIntervalInMs,
|
|
447
447
|
abortSignal: options?.abortSignal,
|
|
448
448
|
getInitialResponse: () => _updateSend(context, resourceGroupName, clusterName, nodeTypeName, parameters, options),
|
|
@@ -470,7 +470,7 @@ export function _createOrUpdateSend(context, resourceGroupName, clusterName, nod
|
|
|
470
470
|
});
|
|
471
471
|
}
|
|
472
472
|
export async function _createOrUpdateDeserialize(result) {
|
|
473
|
-
const expectedStatuses = ["200", "202"];
|
|
473
|
+
const expectedStatuses = ["200", "202", "201"];
|
|
474
474
|
if (!expectedStatuses.includes(result.status)) {
|
|
475
475
|
const error = createRestError(result);
|
|
476
476
|
error.details = errorResponseDeserializer(result.body);
|
|
@@ -480,7 +480,7 @@ export async function _createOrUpdateDeserialize(result) {
|
|
|
480
480
|
}
|
|
481
481
|
/** Create or update a Service Fabric node type of a given managed cluster. */
|
|
482
482
|
export function createOrUpdate(context, resourceGroupName, clusterName, nodeTypeName, parameters, options = { requestOptions: {} }) {
|
|
483
|
-
return getLongRunningPoller(context, _createOrUpdateDeserialize, ["200", "202"], {
|
|
483
|
+
return getLongRunningPoller(context, _createOrUpdateDeserialize, ["200", "202", "201"], {
|
|
484
484
|
updateIntervalInMs: options?.updateIntervalInMs,
|
|
485
485
|
abortSignal: options?.abortSignal,
|
|
486
486
|
getInitialResponse: () => _createOrUpdateSend(context, resourceGroupName, clusterName, nodeTypeName, parameters, options),
|