@azure/arm-connectedcache 1.0.0-alpha.20250620.1 → 1.0.0-alpha.20250721.1
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/cacheNodesOperations/index.js +14 -8
- package/dist/browser/api/cacheNodesOperations/index.js.map +1 -1
- package/dist/browser/api/connectedCacheContext.js +11 -8
- package/dist/browser/api/connectedCacheContext.js.map +1 -1
- package/dist/browser/api/enterpriseCustomerOperations/index.js +14 -8
- package/dist/browser/api/enterpriseCustomerOperations/index.js.map +1 -1
- package/dist/browser/api/enterpriseMccCacheNodesOperations/index.js +16 -10
- package/dist/browser/api/enterpriseMccCacheNodesOperations/index.js.map +1 -1
- package/dist/browser/api/enterpriseMccCustomers/index.js +16 -10
- package/dist/browser/api/enterpriseMccCustomers/index.js.map +1 -1
- package/dist/browser/api/ispCacheNodesOperations/index.js +17 -11
- package/dist/browser/api/ispCacheNodesOperations/index.js.map +1 -1
- package/dist/browser/api/ispCustomers/index.js +16 -10
- package/dist/browser/api/ispCustomers/index.js.map +1 -1
- package/dist/browser/api/operations/index.js +1 -1
- package/dist/browser/api/operations/index.js.map +1 -1
- package/dist/browser/classic/cacheNodesOperations/index.js +3 -1
- package/dist/browser/classic/cacheNodesOperations/index.js.map +1 -1
- package/dist/browser/classic/enterpriseCustomerOperations/index.js +3 -1
- package/dist/browser/classic/enterpriseCustomerOperations/index.js.map +1 -1
- package/dist/browser/classic/enterpriseMccCacheNodesOperations/index.js +3 -1
- package/dist/browser/classic/enterpriseMccCacheNodesOperations/index.js.map +1 -1
- package/dist/browser/classic/enterpriseMccCustomers/index.js +3 -1
- package/dist/browser/classic/enterpriseMccCustomers/index.js.map +1 -1
- package/dist/browser/classic/ispCacheNodesOperations/index.js +3 -1
- package/dist/browser/classic/ispCacheNodesOperations/index.js.map +1 -1
- package/dist/browser/classic/ispCustomers/index.js +3 -1
- package/dist/browser/classic/ispCustomers/index.js.map +1 -1
- package/dist/browser/classic/operations/index.js +3 -1
- package/dist/browser/classic/operations/index.js.map +1 -1
- package/dist/browser/connectedCacheClient.js +22 -3
- package/dist/browser/connectedCacheClient.js.map +1 -1
- package/dist/browser/models/models.js +2 -4
- package/dist/browser/models/models.js.map +1 -1
- package/dist/browser/restorePollerHelpers.js +11 -13
- package/dist/browser/restorePollerHelpers.js.map +1 -1
- package/dist/browser/static-helpers/pagingHelpers.js +31 -50
- package/dist/browser/static-helpers/pagingHelpers.js.map +1 -1
- package/dist/browser/static-helpers/pollingHelpers.js +14 -11
- package/dist/browser/static-helpers/pollingHelpers.js.map +1 -1
- package/dist/commonjs/api/cacheNodesOperations/index.js +14 -8
- package/dist/commonjs/api/cacheNodesOperations/index.js.map +1 -1
- package/dist/commonjs/api/connectedCacheContext.js +11 -8
- package/dist/commonjs/api/connectedCacheContext.js.map +1 -1
- package/dist/commonjs/api/enterpriseCustomerOperations/index.js +14 -8
- package/dist/commonjs/api/enterpriseCustomerOperations/index.js.map +1 -1
- package/dist/commonjs/api/enterpriseMccCacheNodesOperations/index.js +16 -10
- package/dist/commonjs/api/enterpriseMccCacheNodesOperations/index.js.map +1 -1
- package/dist/commonjs/api/enterpriseMccCustomers/index.js +16 -10
- package/dist/commonjs/api/enterpriseMccCustomers/index.js.map +1 -1
- package/dist/commonjs/api/ispCacheNodesOperations/index.js +17 -11
- package/dist/commonjs/api/ispCacheNodesOperations/index.js.map +1 -1
- package/dist/commonjs/api/ispCustomers/index.js +16 -10
- package/dist/commonjs/api/ispCustomers/index.js.map +1 -1
- package/dist/commonjs/api/operations/index.js +1 -1
- package/dist/commonjs/api/operations/index.js.map +1 -1
- package/dist/commonjs/classic/cacheNodesOperations/index.js +3 -1
- package/dist/commonjs/classic/cacheNodesOperations/index.js.map +1 -1
- package/dist/commonjs/classic/enterpriseCustomerOperations/index.js +3 -1
- package/dist/commonjs/classic/enterpriseCustomerOperations/index.js.map +1 -1
- package/dist/commonjs/classic/enterpriseMccCacheNodesOperations/index.js +3 -1
- package/dist/commonjs/classic/enterpriseMccCacheNodesOperations/index.js.map +1 -1
- package/dist/commonjs/classic/enterpriseMccCustomers/index.js +3 -1
- package/dist/commonjs/classic/enterpriseMccCustomers/index.js.map +1 -1
- package/dist/commonjs/classic/ispCacheNodesOperations/index.js +3 -1
- package/dist/commonjs/classic/ispCacheNodesOperations/index.js.map +1 -1
- package/dist/commonjs/classic/ispCustomers/index.js +3 -1
- package/dist/commonjs/classic/ispCustomers/index.js.map +1 -1
- package/dist/commonjs/classic/operations/index.js +3 -1
- package/dist/commonjs/classic/operations/index.js.map +1 -1
- package/dist/commonjs/connectedCacheClient.js +22 -3
- package/dist/commonjs/connectedCacheClient.js.map +1 -1
- package/dist/commonjs/models/models.js +2 -4
- package/dist/commonjs/models/models.js.map +1 -1
- package/dist/commonjs/restorePollerHelpers.js +11 -13
- package/dist/commonjs/restorePollerHelpers.js.map +1 -1
- package/dist/commonjs/static-helpers/pagingHelpers.js +31 -50
- package/dist/commonjs/static-helpers/pagingHelpers.js.map +1 -1
- package/dist/commonjs/static-helpers/pollingHelpers.js +14 -11
- package/dist/commonjs/static-helpers/pollingHelpers.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +11 -11
- package/dist/esm/api/cacheNodesOperations/index.js +14 -8
- package/dist/esm/api/cacheNodesOperations/index.js.map +1 -1
- package/dist/esm/api/connectedCacheContext.js +11 -8
- package/dist/esm/api/connectedCacheContext.js.map +1 -1
- package/dist/esm/api/enterpriseCustomerOperations/index.js +14 -8
- package/dist/esm/api/enterpriseCustomerOperations/index.js.map +1 -1
- package/dist/esm/api/enterpriseMccCacheNodesOperations/index.js +16 -10
- package/dist/esm/api/enterpriseMccCacheNodesOperations/index.js.map +1 -1
- package/dist/esm/api/enterpriseMccCustomers/index.js +16 -10
- package/dist/esm/api/enterpriseMccCustomers/index.js.map +1 -1
- package/dist/esm/api/ispCacheNodesOperations/index.js +17 -11
- package/dist/esm/api/ispCacheNodesOperations/index.js.map +1 -1
- package/dist/esm/api/ispCustomers/index.js +16 -10
- package/dist/esm/api/ispCustomers/index.js.map +1 -1
- package/dist/esm/api/operations/index.js +1 -1
- package/dist/esm/api/operations/index.js.map +1 -1
- package/dist/esm/classic/cacheNodesOperations/index.js +3 -1
- package/dist/esm/classic/cacheNodesOperations/index.js.map +1 -1
- package/dist/esm/classic/enterpriseCustomerOperations/index.js +3 -1
- package/dist/esm/classic/enterpriseCustomerOperations/index.js.map +1 -1
- package/dist/esm/classic/enterpriseMccCacheNodesOperations/index.js +3 -1
- package/dist/esm/classic/enterpriseMccCacheNodesOperations/index.js.map +1 -1
- package/dist/esm/classic/enterpriseMccCustomers/index.js +3 -1
- package/dist/esm/classic/enterpriseMccCustomers/index.js.map +1 -1
- package/dist/esm/classic/ispCacheNodesOperations/index.js +3 -1
- package/dist/esm/classic/ispCacheNodesOperations/index.js.map +1 -1
- package/dist/esm/classic/ispCustomers/index.js +3 -1
- package/dist/esm/classic/ispCustomers/index.js.map +1 -1
- package/dist/esm/classic/operations/index.js +3 -1
- package/dist/esm/classic/operations/index.js.map +1 -1
- package/dist/esm/connectedCacheClient.js +22 -3
- package/dist/esm/connectedCacheClient.js.map +1 -1
- package/dist/esm/models/models.js +2 -4
- package/dist/esm/models/models.js.map +1 -1
- package/dist/esm/restorePollerHelpers.js +11 -13
- package/dist/esm/restorePollerHelpers.js.map +1 -1
- package/dist/esm/static-helpers/pagingHelpers.js +31 -50
- package/dist/esm/static-helpers/pagingHelpers.js.map +1 -1
- package/dist/esm/static-helpers/pollingHelpers.js +14 -11
- package/dist/esm/static-helpers/pollingHelpers.js.map +1 -1
- package/dist/react-native/api/cacheNodesOperations/index.js +14 -8
- package/dist/react-native/api/cacheNodesOperations/index.js.map +1 -1
- package/dist/react-native/api/connectedCacheContext.js +11 -8
- package/dist/react-native/api/connectedCacheContext.js.map +1 -1
- package/dist/react-native/api/enterpriseCustomerOperations/index.js +14 -8
- package/dist/react-native/api/enterpriseCustomerOperations/index.js.map +1 -1
- package/dist/react-native/api/enterpriseMccCacheNodesOperations/index.js +16 -10
- package/dist/react-native/api/enterpriseMccCacheNodesOperations/index.js.map +1 -1
- package/dist/react-native/api/enterpriseMccCustomers/index.js +16 -10
- package/dist/react-native/api/enterpriseMccCustomers/index.js.map +1 -1
- package/dist/react-native/api/ispCacheNodesOperations/index.js +17 -11
- package/dist/react-native/api/ispCacheNodesOperations/index.js.map +1 -1
- package/dist/react-native/api/ispCustomers/index.js +16 -10
- package/dist/react-native/api/ispCustomers/index.js.map +1 -1
- package/dist/react-native/api/operations/index.js +1 -1
- package/dist/react-native/api/operations/index.js.map +1 -1
- package/dist/react-native/classic/cacheNodesOperations/index.js +3 -1
- package/dist/react-native/classic/cacheNodesOperations/index.js.map +1 -1
- package/dist/react-native/classic/enterpriseCustomerOperations/index.js +3 -1
- package/dist/react-native/classic/enterpriseCustomerOperations/index.js.map +1 -1
- package/dist/react-native/classic/enterpriseMccCacheNodesOperations/index.js +3 -1
- package/dist/react-native/classic/enterpriseMccCacheNodesOperations/index.js.map +1 -1
- package/dist/react-native/classic/enterpriseMccCustomers/index.js +3 -1
- package/dist/react-native/classic/enterpriseMccCustomers/index.js.map +1 -1
- package/dist/react-native/classic/ispCacheNodesOperations/index.js +3 -1
- package/dist/react-native/classic/ispCacheNodesOperations/index.js.map +1 -1
- package/dist/react-native/classic/ispCustomers/index.js +3 -1
- package/dist/react-native/classic/ispCustomers/index.js.map +1 -1
- package/dist/react-native/classic/operations/index.js +3 -1
- package/dist/react-native/classic/operations/index.js.map +1 -1
- package/dist/react-native/connectedCacheClient.js +22 -3
- package/dist/react-native/connectedCacheClient.js.map +1 -1
- package/dist/react-native/models/models.js +2 -4
- package/dist/react-native/models/models.js.map +1 -1
- package/dist/react-native/restorePollerHelpers.js +11 -13
- package/dist/react-native/restorePollerHelpers.js.map +1 -1
- package/dist/react-native/static-helpers/pagingHelpers.js +31 -50
- package/dist/react-native/static-helpers/pagingHelpers.js.map +1 -1
- package/dist/react-native/static-helpers/pollingHelpers.js +14 -11
- package/dist/react-native/static-helpers/pollingHelpers.js.map +1 -1
- package/package.json +2 -2
- /package/review/{arm-connectedcache-models.api.md → arm-connectedcache-models-node.api.md} +0 -0
- /package/review/{arm-connectedcache.api.md → arm-connectedcache-node.api.md} +0 -0
|
@@ -29,7 +29,7 @@ function _enterpriseCustomerOperationsGetSend(context, subscriptionId, resourceG
|
|
|
29
29
|
}) {
|
|
30
30
|
return context
|
|
31
31
|
.path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/enterpriseCustomers/{customerResourceName}", subscriptionId, resourceGroupName, customerResourceName)
|
|
32
|
-
.get(
|
|
32
|
+
.get({ ...(0, core_client_1.operationOptionsToRequestParameters)(options) });
|
|
33
33
|
}
|
|
34
34
|
async function _enterpriseCustomerOperationsGetDeserialize(result) {
|
|
35
35
|
const expectedStatuses = ["200"];
|
|
@@ -50,7 +50,10 @@ function _enterpriseCustomerOperationsCreateOrUpdateSend(context, subscriptionId
|
|
|
50
50
|
}) {
|
|
51
51
|
return context
|
|
52
52
|
.path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/enterpriseCustomers/{customerResourceName}", subscriptionId, resourceGroupName, customerResourceName)
|
|
53
|
-
.put(
|
|
53
|
+
.put({
|
|
54
|
+
...(0, core_client_1.operationOptionsToRequestParameters)(options),
|
|
55
|
+
body: (0, models_js_1.enterprisePreviewResourceSerializer)(resource),
|
|
56
|
+
});
|
|
54
57
|
}
|
|
55
58
|
async function _enterpriseCustomerOperationsCreateOrUpdateDeserialize(result) {
|
|
56
59
|
const expectedStatuses = ["200", "201"];
|
|
@@ -64,8 +67,8 @@ function enterpriseCustomerOperationsCreateOrUpdate(context, subscriptionId, res
|
|
|
64
67
|
requestOptions: {},
|
|
65
68
|
}) {
|
|
66
69
|
return (0, pollingHelpers_js_1.getLongRunningPoller)(context, _enterpriseCustomerOperationsCreateOrUpdateDeserialize, ["200", "201"], {
|
|
67
|
-
updateIntervalInMs: options
|
|
68
|
-
abortSignal: options
|
|
70
|
+
updateIntervalInMs: options?.updateIntervalInMs,
|
|
71
|
+
abortSignal: options?.abortSignal,
|
|
69
72
|
getInitialResponse: () => _enterpriseCustomerOperationsCreateOrUpdateSend(context, subscriptionId, resourceGroupName, customerResourceName, resource, options),
|
|
70
73
|
resourceLocationConfig: "azure-async-operation",
|
|
71
74
|
});
|
|
@@ -75,7 +78,10 @@ function _enterpriseCustomerOperationsUpdateSend(context, subscriptionId, resour
|
|
|
75
78
|
}) {
|
|
76
79
|
return context
|
|
77
80
|
.path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/enterpriseCustomers/{customerResourceName}", subscriptionId, resourceGroupName, customerResourceName)
|
|
78
|
-
.patch(
|
|
81
|
+
.patch({
|
|
82
|
+
...(0, core_client_1.operationOptionsToRequestParameters)(options),
|
|
83
|
+
body: (0, models_js_1.connectedCachePatchResourceSerializer)(properties),
|
|
84
|
+
});
|
|
79
85
|
}
|
|
80
86
|
async function _enterpriseCustomerOperationsUpdateDeserialize(result) {
|
|
81
87
|
const expectedStatuses = ["200"];
|
|
@@ -96,7 +102,7 @@ function _enterpriseCustomerOperationsDeleteSend(context, subscriptionId, resour
|
|
|
96
102
|
}) {
|
|
97
103
|
return context
|
|
98
104
|
.path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/enterpriseCustomers/{customerResourceName}", subscriptionId, resourceGroupName, customerResourceName)
|
|
99
|
-
.delete(
|
|
105
|
+
.delete({ ...(0, core_client_1.operationOptionsToRequestParameters)(options) });
|
|
100
106
|
}
|
|
101
107
|
async function _enterpriseCustomerOperationsDeleteDeserialize(result) {
|
|
102
108
|
const expectedStatuses = ["200", "204"];
|
|
@@ -117,7 +123,7 @@ function _enterpriseCustomerOperationsListByResourceGroupSend(context, subscript
|
|
|
117
123
|
}) {
|
|
118
124
|
return context
|
|
119
125
|
.path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/enterpriseCustomers", subscriptionId, resourceGroupName)
|
|
120
|
-
.get(
|
|
126
|
+
.get({ ...(0, core_client_1.operationOptionsToRequestParameters)(options) });
|
|
121
127
|
}
|
|
122
128
|
async function _enterpriseCustomerOperationsListByResourceGroupDeserialize(result) {
|
|
123
129
|
const expectedStatuses = ["200"];
|
|
@@ -137,7 +143,7 @@ function _enterpriseCustomerOperationsListBySubscriptionSend(context, subscripti
|
|
|
137
143
|
}) {
|
|
138
144
|
return context
|
|
139
145
|
.path("/subscriptions/{subscriptionId}/providers/Microsoft.ConnectedCache/enterpriseCustomers", subscriptionId)
|
|
140
|
-
.get(
|
|
146
|
+
.get({ ...(0, core_client_1.operationOptionsToRequestParameters)(options) });
|
|
141
147
|
}
|
|
142
148
|
async function _enterpriseCustomerOperationsListBySubscriptionDeserialize(result) {
|
|
143
149
|
const expectedStatuses = ["200"];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/enterpriseCustomerOperations/index.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAiClC,oFAiBC;AAED,kGASC;AAGD,0EAiBC;AAED,0GAqBC;AAED,wHASC;AAGD,gGA6BC;AAED,0FAqBC;AAED,wGASC;AAGD,gFAmBC;AAED,0FAiBC;AAED,wGASC;AAGD,gFAiBC;AAED,oHAeC;AAED,kIASC;AAGD,0GAqBC;AAED,kHAaC;AAED,gIASC;AAGD,wGAcC;AAjVD,sDAQgC;AAChC,4EAG+C;AAC/C,8EAA8E;AAC9E,yDAKiC;AAGjC,SAAgB,oCAAoC,CAClD,OAAe,EACf,cAAsB,EACtB,iBAAyB,EACzB,oBAA4B,EAC5B,UAAyD;IACvD,cAAc,EAAE,EAAE;CACnB;IAED,OAAO,OAAO;SACX,IAAI,CACH,kJAAkJ,EAClJ,cAAc,EACd,iBAAiB,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AAK,UAAU,0DAA0D,CAC9E,MAA6B;IAE7B,MAAM,gBAAgB,GAAG,CAAC,KAAK,CAAC,CAAC;IACjC,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;QAC9C,MAAM,IAAA,6BAAe,EAAC,MAAM,CAAC,CAAC;IAChC,CAAC;IAED,OAAO,IAAA,4DAAgD,EAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AACvE,CAAC;AAED,sDAAsD;AACtD,SAAgB,8CAA8C,CAC5D,OAAe,EACf,cAAsB,EACtB,UAAwE;IACtE,cAAc,EAAE,EAAE;CACnB;IAED,OAAO,IAAA,0CAAuB,EAC5B,OAAO,EACP,GAAG,EAAE,CAAC,mDAAmD,CAAC,OAAO,EAAE,cAAc,EAAE,OAAO,CAAC,EAC3F,0DAA0D,EAC1D,CAAC,KAAK,CAAC,EACP,EAAE,QAAQ,EAAE,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,CAChD,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport {\n ConnectedCacheContext as Client,\n EnterpriseCustomerOperationsCreateOrUpdateOptionalParams,\n EnterpriseCustomerOperationsDeleteOptionalParams,\n EnterpriseCustomerOperationsGetOptionalParams,\n EnterpriseCustomerOperationsListByResourceGroupOptionalParams,\n EnterpriseCustomerOperationsListBySubscriptionOptionalParams,\n EnterpriseCustomerOperationsUpdateOptionalParams,\n} from \"../index.js\";\nimport {\n ConnectedCachePatchResource,\n connectedCachePatchResourceSerializer,\n EnterprisePreviewResource,\n enterprisePreviewResourceSerializer,\n enterprisePreviewResourceDeserializer,\n _EnterprisePreviewResourceListResult,\n _enterprisePreviewResourceListResultDeserializer,\n} from \"../../models/models.js\";\nimport {\n PagedAsyncIterableIterator,\n buildPagedAsyncIterator,\n} from \"../../static-helpers/pagingHelpers.js\";\nimport { getLongRunningPoller } from \"../../static-helpers/pollingHelpers.js\";\nimport {\n StreamableMethod,\n PathUncheckedResponse,\n createRestError,\n operationOptionsToRequestParameters,\n} from \"@azure-rest/core-client\";\nimport { PollerLike, OperationState } from \"@azure/core-lro\";\n\nexport function _enterpriseCustomerOperationsGetSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n customerResourceName: string,\n options: EnterpriseCustomerOperationsGetOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/enterpriseCustomers/{customerResourceName}\",\n subscriptionId,\n resourceGroupName,\n customerResourceName,\n )\n .get({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _enterpriseCustomerOperationsGetDeserialize(\n result: PathUncheckedResponse,\n): Promise<EnterprisePreviewResource> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return enterprisePreviewResourceDeserializer(result.body);\n}\n\n/** Retrieves the properties of a Enterprise customer */\nexport async function enterpriseCustomerOperationsGet(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n customerResourceName: string,\n options: EnterpriseCustomerOperationsGetOptionalParams = {\n requestOptions: {},\n },\n): Promise<EnterprisePreviewResource> {\n const result = await _enterpriseCustomerOperationsGetSend(\n context,\n subscriptionId,\n resourceGroupName,\n customerResourceName,\n options,\n );\n return _enterpriseCustomerOperationsGetDeserialize(result);\n}\n\nexport function _enterpriseCustomerOperationsCreateOrUpdateSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n customerResourceName: string,\n resource: EnterprisePreviewResource,\n options: EnterpriseCustomerOperationsCreateOrUpdateOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/enterpriseCustomers/{customerResourceName}\",\n subscriptionId,\n resourceGroupName,\n customerResourceName,\n )\n .put({\n ...operationOptionsToRequestParameters(options),\n body: enterprisePreviewResourceSerializer(resource),\n });\n}\n\nexport async function _enterpriseCustomerOperationsCreateOrUpdateDeserialize(\n result: PathUncheckedResponse,\n): Promise<EnterprisePreviewResource> {\n const expectedStatuses = [\"200\", \"201\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return enterprisePreviewResourceDeserializer(result.body);\n}\n\n/** Creates a cacheNodes with the specified create parameters */\nexport function enterpriseCustomerOperationsCreateOrUpdate(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n customerResourceName: string,\n resource: EnterprisePreviewResource,\n options: EnterpriseCustomerOperationsCreateOrUpdateOptionalParams = {\n requestOptions: {},\n },\n): PollerLike<OperationState<EnterprisePreviewResource>, EnterprisePreviewResource> {\n return getLongRunningPoller(\n context,\n _enterpriseCustomerOperationsCreateOrUpdateDeserialize,\n [\"200\", \"201\"],\n {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _enterpriseCustomerOperationsCreateOrUpdateSend(\n context,\n subscriptionId,\n resourceGroupName,\n customerResourceName,\n resource,\n options,\n ),\n resourceLocationConfig: \"azure-async-operation\",\n },\n ) as PollerLike<OperationState<EnterprisePreviewResource>, EnterprisePreviewResource>;\n}\n\nexport function _enterpriseCustomerOperationsUpdateSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n customerResourceName: string,\n properties: ConnectedCachePatchResource,\n options: EnterpriseCustomerOperationsUpdateOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/enterpriseCustomers/{customerResourceName}\",\n subscriptionId,\n resourceGroupName,\n customerResourceName,\n )\n .patch({\n ...operationOptionsToRequestParameters(options),\n body: connectedCachePatchResourceSerializer(properties),\n });\n}\n\nexport async function _enterpriseCustomerOperationsUpdateDeserialize(\n result: PathUncheckedResponse,\n): Promise<EnterprisePreviewResource> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return enterprisePreviewResourceDeserializer(result.body);\n}\n\n/** updates an existing enterpriseCustomers */\nexport async function enterpriseCustomerOperationsUpdate(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n customerResourceName: string,\n properties: ConnectedCachePatchResource,\n options: EnterpriseCustomerOperationsUpdateOptionalParams = {\n requestOptions: {},\n },\n): Promise<EnterprisePreviewResource> {\n const result = await _enterpriseCustomerOperationsUpdateSend(\n context,\n subscriptionId,\n resourceGroupName,\n customerResourceName,\n properties,\n options,\n );\n return _enterpriseCustomerOperationsUpdateDeserialize(result);\n}\n\nexport function _enterpriseCustomerOperationsDeleteSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n customerResourceName: string,\n options: EnterpriseCustomerOperationsDeleteOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/enterpriseCustomers/{customerResourceName}\",\n subscriptionId,\n resourceGroupName,\n customerResourceName,\n )\n .delete({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _enterpriseCustomerOperationsDeleteDeserialize(\n result: PathUncheckedResponse,\n): Promise<void> {\n const expectedStatuses = [\"200\", \"204\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return;\n}\n\n/** Deletes an existing customer Enterprise resource */\nexport async function enterpriseCustomerOperationsDelete(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n customerResourceName: string,\n options: EnterpriseCustomerOperationsDeleteOptionalParams = {\n requestOptions: {},\n },\n): Promise<void> {\n const result = await _enterpriseCustomerOperationsDeleteSend(\n context,\n subscriptionId,\n resourceGroupName,\n customerResourceName,\n options,\n );\n return _enterpriseCustomerOperationsDeleteDeserialize(result);\n}\n\nexport function _enterpriseCustomerOperationsListByResourceGroupSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n options: EnterpriseCustomerOperationsListByResourceGroupOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/enterpriseCustomers\",\n subscriptionId,\n resourceGroupName,\n )\n .get({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _enterpriseCustomerOperationsListByResourceGroupDeserialize(\n result: PathUncheckedResponse,\n): Promise<_EnterprisePreviewResourceListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return _enterprisePreviewResourceListResultDeserializer(result.body);\n}\n\n/** Retrieves the properties of all ConnectedCache enterpriseCustomers */\nexport function enterpriseCustomerOperationsListByResourceGroup(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n options: EnterpriseCustomerOperationsListByResourceGroupOptionalParams = {\n requestOptions: {},\n },\n): PagedAsyncIterableIterator<EnterprisePreviewResource> {\n return buildPagedAsyncIterator(\n context,\n () =>\n _enterpriseCustomerOperationsListByResourceGroupSend(\n context,\n subscriptionId,\n resourceGroupName,\n options,\n ),\n _enterpriseCustomerOperationsListByResourceGroupDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\" },\n );\n}\n\nexport function _enterpriseCustomerOperationsListBySubscriptionSend(\n context: Client,\n subscriptionId: string,\n options: EnterpriseCustomerOperationsListBySubscriptionOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.ConnectedCache/enterpriseCustomers\",\n subscriptionId,\n )\n .get({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _enterpriseCustomerOperationsListBySubscriptionDeserialize(\n result: PathUncheckedResponse,\n): Promise<_EnterprisePreviewResourceListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return _enterprisePreviewResourceListResultDeserializer(result.body);\n}\n\n/** Retrieves the properties of all ConnectedCaches */\nexport function enterpriseCustomerOperationsListBySubscription(\n context: Client,\n subscriptionId: string,\n options: EnterpriseCustomerOperationsListBySubscriptionOptionalParams = {\n requestOptions: {},\n },\n): PagedAsyncIterableIterator<EnterprisePreviewResource> {\n return buildPagedAsyncIterator(\n context,\n () => _enterpriseCustomerOperationsListBySubscriptionSend(context, subscriptionId, options),\n _enterpriseCustomerOperationsListBySubscriptionDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\" },\n );\n}\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/enterpriseCustomerOperations/index.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAiClC,oFAiBC;AAED,kGASC;AAGD,0EAiBC;AAED,0GAqBC;AAED,wHASC;AAGD,gGA6BC;AAED,0FAqBC;AAED,wGASC;AAGD,gFAmBC;AAED,0FAiBC;AAED,wGASC;AAGD,gFAiBC;AAED,oHAeC;AAED,kIASC;AAGD,0GAqBC;AAED,kHAaC;AAED,gIASC;AAGD,wGAcC;AAjVD,sDAQgC;AAChC,4EAG+C;AAC/C,8EAA8E;AAC9E,yDAKiC;AAGjC,SAAgB,oCAAoC,CAClD,OAAe,EACf,cAAsB,EACtB,iBAAyB,EACzB,oBAA4B,EAC5B,UAAyD;IACvD,cAAc,EAAE,EAAE;CACnB;IAED,OAAO,OAAO;SACX,IAAI,CACH,kJAAkJ,EAClJ,cAAc,EACd,iBAAiB,EACjB,oBAAoB,CACrB;SACA,GAAG,CAAC,EAAE,GAAG,IAAA,iDAAmC,EAAC,OAAO,CAAC,EAAE,CAAC,CAAC;AAC9D,CAAC;AAEM,KAAK,UAAU,2CAA2C,CAC/D,MAA6B;IAE7B,MAAM,gBAAgB,GAAG,CAAC,KAAK,CAAC,CAAC;IACjC,IAAI,CAAC,g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MAAM,IAAA,6BAAe,EAAC,MAAM,CAAC,CAAC;IAChC,CAAC;IAED,OAAO,IAAA,4DAAgD,EAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AACvE,CAAC;AAED,sDAAsD;AACtD,SAAgB,8CAA8C,CAC5D,OAAe,EACf,cAAsB,EACtB,UAAwE;IACtE,cAAc,EAAE,EAAE;CACnB;IAED,OAAO,IAAA,0CAAuB,EAC5B,OAAO,EACP,GAAG,EAAE,CAAC,mDAAmD,CAAC,OAAO,EAAE,cAAc,EAAE,OAAO,CAAC,EAC3F,0DAA0D,EAC1D,CAAC,KAAK,CAAC,EACP,EAAE,QAAQ,EAAE,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,CAChD,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport {\n ConnectedCacheContext as Client,\n EnterpriseCustomerOperationsCreateOrUpdateOptionalParams,\n EnterpriseCustomerOperationsDeleteOptionalParams,\n EnterpriseCustomerOperationsGetOptionalParams,\n EnterpriseCustomerOperationsListByResourceGroupOptionalParams,\n EnterpriseCustomerOperationsListBySubscriptionOptionalParams,\n EnterpriseCustomerOperationsUpdateOptionalParams,\n} from \"../index.js\";\nimport {\n ConnectedCachePatchResource,\n connectedCachePatchResourceSerializer,\n EnterprisePreviewResource,\n enterprisePreviewResourceSerializer,\n enterprisePreviewResourceDeserializer,\n _EnterprisePreviewResourceListResult,\n _enterprisePreviewResourceListResultDeserializer,\n} from \"../../models/models.js\";\nimport {\n PagedAsyncIterableIterator,\n buildPagedAsyncIterator,\n} from \"../../static-helpers/pagingHelpers.js\";\nimport { getLongRunningPoller } from \"../../static-helpers/pollingHelpers.js\";\nimport {\n StreamableMethod,\n PathUncheckedResponse,\n createRestError,\n operationOptionsToRequestParameters,\n} from \"@azure-rest/core-client\";\nimport { PollerLike, OperationState } from \"@azure/core-lro\";\n\nexport function _enterpriseCustomerOperationsGetSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n customerResourceName: string,\n options: EnterpriseCustomerOperationsGetOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/enterpriseCustomers/{customerResourceName}\",\n subscriptionId,\n resourceGroupName,\n customerResourceName,\n )\n .get({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _enterpriseCustomerOperationsGetDeserialize(\n result: PathUncheckedResponse,\n): Promise<EnterprisePreviewResource> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return enterprisePreviewResourceDeserializer(result.body);\n}\n\n/** Retrieves the properties of a Enterprise customer */\nexport async function enterpriseCustomerOperationsGet(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n customerResourceName: string,\n options: EnterpriseCustomerOperationsGetOptionalParams = {\n requestOptions: {},\n },\n): Promise<EnterprisePreviewResource> {\n const result = await _enterpriseCustomerOperationsGetSend(\n context,\n subscriptionId,\n resourceGroupName,\n customerResourceName,\n options,\n );\n return _enterpriseCustomerOperationsGetDeserialize(result);\n}\n\nexport function _enterpriseCustomerOperationsCreateOrUpdateSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n customerResourceName: string,\n resource: EnterprisePreviewResource,\n options: EnterpriseCustomerOperationsCreateOrUpdateOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/enterpriseCustomers/{customerResourceName}\",\n subscriptionId,\n resourceGroupName,\n customerResourceName,\n )\n .put({\n ...operationOptionsToRequestParameters(options),\n body: enterprisePreviewResourceSerializer(resource),\n });\n}\n\nexport async function _enterpriseCustomerOperationsCreateOrUpdateDeserialize(\n result: PathUncheckedResponse,\n): Promise<EnterprisePreviewResource> {\n const expectedStatuses = [\"200\", \"201\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return enterprisePreviewResourceDeserializer(result.body);\n}\n\n/** Creates a cacheNodes with the specified create parameters */\nexport function enterpriseCustomerOperationsCreateOrUpdate(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n customerResourceName: string,\n resource: EnterprisePreviewResource,\n options: EnterpriseCustomerOperationsCreateOrUpdateOptionalParams = {\n requestOptions: {},\n },\n): PollerLike<OperationState<EnterprisePreviewResource>, EnterprisePreviewResource> {\n return getLongRunningPoller(\n context,\n _enterpriseCustomerOperationsCreateOrUpdateDeserialize,\n [\"200\", \"201\"],\n {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _enterpriseCustomerOperationsCreateOrUpdateSend(\n context,\n subscriptionId,\n resourceGroupName,\n customerResourceName,\n resource,\n options,\n ),\n resourceLocationConfig: \"azure-async-operation\",\n },\n ) as PollerLike<OperationState<EnterprisePreviewResource>, EnterprisePreviewResource>;\n}\n\nexport function _enterpriseCustomerOperationsUpdateSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n customerResourceName: string,\n properties: ConnectedCachePatchResource,\n options: EnterpriseCustomerOperationsUpdateOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/enterpriseCustomers/{customerResourceName}\",\n subscriptionId,\n resourceGroupName,\n customerResourceName,\n )\n .patch({\n ...operationOptionsToRequestParameters(options),\n body: connectedCachePatchResourceSerializer(properties),\n });\n}\n\nexport async function _enterpriseCustomerOperationsUpdateDeserialize(\n result: PathUncheckedResponse,\n): Promise<EnterprisePreviewResource> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return enterprisePreviewResourceDeserializer(result.body);\n}\n\n/** updates an existing enterpriseCustomers */\nexport async function enterpriseCustomerOperationsUpdate(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n customerResourceName: string,\n properties: ConnectedCachePatchResource,\n options: EnterpriseCustomerOperationsUpdateOptionalParams = {\n requestOptions: {},\n },\n): Promise<EnterprisePreviewResource> {\n const result = await _enterpriseCustomerOperationsUpdateSend(\n context,\n subscriptionId,\n resourceGroupName,\n customerResourceName,\n properties,\n options,\n );\n return _enterpriseCustomerOperationsUpdateDeserialize(result);\n}\n\nexport function _enterpriseCustomerOperationsDeleteSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n customerResourceName: string,\n options: EnterpriseCustomerOperationsDeleteOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/enterpriseCustomers/{customerResourceName}\",\n subscriptionId,\n resourceGroupName,\n customerResourceName,\n )\n .delete({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _enterpriseCustomerOperationsDeleteDeserialize(\n result: PathUncheckedResponse,\n): Promise<void> {\n const expectedStatuses = [\"200\", \"204\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return;\n}\n\n/** Deletes an existing customer Enterprise resource */\nexport async function enterpriseCustomerOperationsDelete(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n customerResourceName: string,\n options: EnterpriseCustomerOperationsDeleteOptionalParams = {\n requestOptions: {},\n },\n): Promise<void> {\n const result = await _enterpriseCustomerOperationsDeleteSend(\n context,\n subscriptionId,\n resourceGroupName,\n customerResourceName,\n options,\n );\n return _enterpriseCustomerOperationsDeleteDeserialize(result);\n}\n\nexport function _enterpriseCustomerOperationsListByResourceGroupSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n options: EnterpriseCustomerOperationsListByResourceGroupOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/enterpriseCustomers\",\n subscriptionId,\n resourceGroupName,\n )\n .get({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _enterpriseCustomerOperationsListByResourceGroupDeserialize(\n result: PathUncheckedResponse,\n): Promise<_EnterprisePreviewResourceListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return _enterprisePreviewResourceListResultDeserializer(result.body);\n}\n\n/** Retrieves the properties of all ConnectedCache enterpriseCustomers */\nexport function enterpriseCustomerOperationsListByResourceGroup(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n options: EnterpriseCustomerOperationsListByResourceGroupOptionalParams = {\n requestOptions: {},\n },\n): PagedAsyncIterableIterator<EnterprisePreviewResource> {\n return buildPagedAsyncIterator(\n context,\n () =>\n _enterpriseCustomerOperationsListByResourceGroupSend(\n context,\n subscriptionId,\n resourceGroupName,\n options,\n ),\n _enterpriseCustomerOperationsListByResourceGroupDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\" },\n );\n}\n\nexport function _enterpriseCustomerOperationsListBySubscriptionSend(\n context: Client,\n subscriptionId: string,\n options: EnterpriseCustomerOperationsListBySubscriptionOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.ConnectedCache/enterpriseCustomers\",\n subscriptionId,\n )\n .get({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _enterpriseCustomerOperationsListBySubscriptionDeserialize(\n result: PathUncheckedResponse,\n): Promise<_EnterprisePreviewResourceListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return _enterprisePreviewResourceListResultDeserializer(result.body);\n}\n\n/** Retrieves the properties of all ConnectedCaches */\nexport function enterpriseCustomerOperationsListBySubscription(\n context: Client,\n subscriptionId: string,\n options: EnterpriseCustomerOperationsListBySubscriptionOptionalParams = {\n requestOptions: {},\n },\n): PagedAsyncIterableIterator<EnterprisePreviewResource> {\n return buildPagedAsyncIterator(\n context,\n () => _enterpriseCustomerOperationsListBySubscriptionSend(context, subscriptionId, options),\n _enterpriseCustomerOperationsListBySubscriptionDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\" },\n );\n}\n"]}
|
|
@@ -29,7 +29,7 @@ function _enterpriseMccCacheNodesOperationsGetSend(context, subscriptionId, reso
|
|
|
29
29
|
}) {
|
|
30
30
|
return context
|
|
31
31
|
.path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/enterpriseMccCustomers/{customerResourceName}/enterpriseMccCacheNodes/{cacheNodeResourceName}", subscriptionId, resourceGroupName, customerResourceName, cacheNodeResourceName)
|
|
32
|
-
.get(
|
|
32
|
+
.get({ ...(0, core_client_1.operationOptionsToRequestParameters)(options) });
|
|
33
33
|
}
|
|
34
34
|
async function _enterpriseMccCacheNodesOperationsGetDeserialize(result) {
|
|
35
35
|
const expectedStatuses = ["200"];
|
|
@@ -50,7 +50,10 @@ function _enterpriseMccCacheNodesOperationsCreateOrUpdateSend(context, subscript
|
|
|
50
50
|
}) {
|
|
51
51
|
return context
|
|
52
52
|
.path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/enterpriseMccCustomers/{customerResourceName}/enterpriseMccCacheNodes/{cacheNodeResourceName}", subscriptionId, resourceGroupName, customerResourceName, cacheNodeResourceName)
|
|
53
|
-
.put(
|
|
53
|
+
.put({
|
|
54
|
+
...(0, core_client_1.operationOptionsToRequestParameters)(options),
|
|
55
|
+
body: (0, models_js_1.enterpriseMccCacheNodeResourceSerializer)(resource),
|
|
56
|
+
});
|
|
54
57
|
}
|
|
55
58
|
async function _enterpriseMccCacheNodesOperationsCreateOrUpdateDeserialize(result) {
|
|
56
59
|
const expectedStatuses = ["200", "201"];
|
|
@@ -64,8 +67,8 @@ function enterpriseMccCacheNodesOperationsCreateOrUpdate(context, subscriptionId
|
|
|
64
67
|
requestOptions: {},
|
|
65
68
|
}) {
|
|
66
69
|
return (0, pollingHelpers_js_1.getLongRunningPoller)(context, _enterpriseMccCacheNodesOperationsCreateOrUpdateDeserialize, ["200", "201"], {
|
|
67
|
-
updateIntervalInMs: options
|
|
68
|
-
abortSignal: options
|
|
70
|
+
updateIntervalInMs: options?.updateIntervalInMs,
|
|
71
|
+
abortSignal: options?.abortSignal,
|
|
69
72
|
getInitialResponse: () => _enterpriseMccCacheNodesOperationsCreateOrUpdateSend(context, subscriptionId, resourceGroupName, customerResourceName, cacheNodeResourceName, resource, options),
|
|
70
73
|
resourceLocationConfig: "azure-async-operation",
|
|
71
74
|
});
|
|
@@ -75,7 +78,10 @@ function _enterpriseMccCacheNodesOperationsUpdateSend(context, subscriptionId, r
|
|
|
75
78
|
}) {
|
|
76
79
|
return context
|
|
77
80
|
.path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/enterpriseMccCustomers/{customerResourceName}/enterpriseMccCacheNodes/{cacheNodeResourceName}", subscriptionId, resourceGroupName, customerResourceName, cacheNodeResourceName)
|
|
78
|
-
.patch(
|
|
81
|
+
.patch({
|
|
82
|
+
...(0, core_client_1.operationOptionsToRequestParameters)(options),
|
|
83
|
+
body: (0, models_js_1.connectedCachePatchResourceSerializer)(properties),
|
|
84
|
+
});
|
|
79
85
|
}
|
|
80
86
|
async function _enterpriseMccCacheNodesOperationsUpdateDeserialize(result) {
|
|
81
87
|
const expectedStatuses = ["200"];
|
|
@@ -96,7 +102,7 @@ function _enterpriseMccCacheNodesOperationsDeleteSend(context, subscriptionId, r
|
|
|
96
102
|
}) {
|
|
97
103
|
return context
|
|
98
104
|
.path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/enterpriseMccCustomers/{customerResourceName}/enterpriseMccCacheNodes/{cacheNodeResourceName}", subscriptionId, resourceGroupName, customerResourceName, cacheNodeResourceName)
|
|
99
|
-
.delete(
|
|
105
|
+
.delete({ ...(0, core_client_1.operationOptionsToRequestParameters)(options) });
|
|
100
106
|
}
|
|
101
107
|
async function _enterpriseMccCacheNodesOperationsDeleteDeserialize(result) {
|
|
102
108
|
const expectedStatuses = ["202", "204", "200"];
|
|
@@ -110,8 +116,8 @@ function enterpriseMccCacheNodesOperationsDelete(context, subscriptionId, resour
|
|
|
110
116
|
requestOptions: {},
|
|
111
117
|
}) {
|
|
112
118
|
return (0, pollingHelpers_js_1.getLongRunningPoller)(context, _enterpriseMccCacheNodesOperationsDeleteDeserialize, ["202", "204", "200"], {
|
|
113
|
-
updateIntervalInMs: options
|
|
114
|
-
abortSignal: options
|
|
119
|
+
updateIntervalInMs: options?.updateIntervalInMs,
|
|
120
|
+
abortSignal: options?.abortSignal,
|
|
115
121
|
getInitialResponse: () => _enterpriseMccCacheNodesOperationsDeleteSend(context, subscriptionId, resourceGroupName, customerResourceName, cacheNodeResourceName, options),
|
|
116
122
|
resourceLocationConfig: "location",
|
|
117
123
|
});
|
|
@@ -121,7 +127,7 @@ function _enterpriseMccCacheNodesOperationsListByEnterpriseMccCustomerResourceSe
|
|
|
121
127
|
}) {
|
|
122
128
|
return context
|
|
123
129
|
.path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/enterpriseMccCustomers/{customerResourceName}/enterpriseMccCacheNodes", subscriptionId, resourceGroupName, customerResourceName)
|
|
124
|
-
.get(
|
|
130
|
+
.get({ ...(0, core_client_1.operationOptionsToRequestParameters)(options) });
|
|
125
131
|
}
|
|
126
132
|
async function _enterpriseMccCacheNodesOperationsListByEnterpriseMccCustomerResourceDeserialize(result) {
|
|
127
133
|
const expectedStatuses = ["200"];
|
|
@@ -141,7 +147,7 @@ function _enterpriseMccCacheNodesOperationsGetCacheNodeInstallDetailsSend(contex
|
|
|
141
147
|
}) {
|
|
142
148
|
return context
|
|
143
149
|
.path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/enterpriseMccCustomers/{customerResourceName}/enterpriseMccCacheNodes/{cacheNodeResourceName}/getCacheNodeInstallDetails", subscriptionId, resourceGroupName, customerResourceName, cacheNodeResourceName)
|
|
144
|
-
.post(
|
|
150
|
+
.post({ ...(0, core_client_1.operationOptionsToRequestParameters)(options) });
|
|
145
151
|
}
|
|
146
152
|
async function _enterpriseMccCacheNodesOperationsGetCacheNodeInstallDetailsDeserialize(result) {
|
|
147
153
|
const expectedStatuses = ["200"];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/enterpriseMccCacheNodesOperations/index.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAmClC,8FAmBC;AAED,4GASC;AAGD,oFAmBC;AAED,oHAuBC;AAED,kIASC;AAGD,0GA+BC;AAED,oGAuBC;AAED,kHASC;AAGD,0FAqBC;AAED,oGAmBC;AAED,kHASC;AAGD,0FA6BC;AAED,8JAiBC;AAED,4KASC;AAGD,oJAuBC;AAED,4IAmBC;AAED,0JASC;AAGD,kIAmBC;AA5XD,sDAUgC;AAChC,4EAG+C;AAC/C,8EAA8E;AAC9E,yDAKiC;AAGjC,SAAgB,yCAAyC,CACvD,OAAe,EACf,cAAsB,EACtB,iBAAyB,EACzB,oBAA4B,EAC5B,qBAA6B,EAC7B,UAA8D;IAC5D,cAAc,EAAE,EAAE;CACnB;IAED,OAAO,OAAO;SACX,IAAI,CACH,qMAAqM,EACrM,cAAc,EACd,iBAAiB,EACjB,oBAAoB,EACpB,qBAAqB,CACtB;SACA,GAAG,mBAAM,IAAA,iDAAmC,EAAC,OAAO,CAAC,EAAG,CAAC;AAC9D,CAAC;AAEM,KAAK,UAAU,gDAAgD,CACpE,MAA6B;IAE7B,MAAM,gBAAgB,GAAG,CAAC,KAAK,CAAC,CAAC;IACjC,IAAI,CAAC,gBAAgB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AQ,EAAE,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,CAChD,CAAC;AACJ,CAAC;AAED,SAAgB,gEAAgE,CAC9E,OAAe,EACf,cAAsB,EACtB,iBAAyB,EACzB,oBAA4B,EAC5B,qBAA6B,EAC7B,UAAqF;IACnF,cAAc,EAAE,EAAE;CACnB;IAED,OAAO,OAAO;SACX,IAAI,CACH,gOAAgO,EAChO,cAAc,EACd,iBAAiB,EACjB,oBAAoB,EACpB,qBAAqB,CACtB;SACA,IAAI,mBAAM,IAAA,iDAAmC,EAAC,OAAO,CAAC,EAAG,CAAC;AAC/D,CAAC;AAEM,KAAK,UAAU,uEAAuE,CAC3F,MAA6B;IAE7B,MAAM,gBAAgB,GAAG,CAAC,KAAK,CAAC,CAAC;IACjC,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;QAC9C,MAAM,IAAA,6BAAe,EAAC,MAAM,CAAC,CAAC;IAChC,CAAC;IAED,OAAO,IAAA,kDAAsC,EAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AAC7D,CAAC;AAED,yEAAyE;AAClE,KAAK,UAAU,2DAA2D,CAC/E,OAAe,EACf,cAAsB,EACtB,iBAAyB,EACzB,oBAA4B,EAC5B,qBAA6B,EAC7B,UAAqF;IACnF,cAAc,EAAE,EAAE;CACnB;IAED,MAAM,MAAM,GAAG,MAAM,gEAAgE,CACnF,OAAO,EACP,cAAc,EACd,iBAAiB,EACjB,oBAAoB,EACpB,qBAAqB,EACrB,OAAO,CACR,CAAC;IACF,OAAO,uEAAuE,CAAC,MAAM,CAAC,CAAC;AACzF,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport {\n ConnectedCacheContext as Client,\n EnterpriseMccCacheNodesOperationsCreateOrUpdateOptionalParams,\n EnterpriseMccCacheNodesOperationsDeleteOptionalParams,\n EnterpriseMccCacheNodesOperationsGetCacheNodeInstallDetailsOptionalParams,\n EnterpriseMccCacheNodesOperationsGetOptionalParams,\n EnterpriseMccCacheNodesOperationsListByEnterpriseMccCustomerResourceOptionalParams,\n EnterpriseMccCacheNodesOperationsUpdateOptionalParams,\n} from \"../index.js\";\nimport {\n EnterpriseMccCacheNodeResource,\n enterpriseMccCacheNodeResourceSerializer,\n enterpriseMccCacheNodeResourceDeserializer,\n ConnectedCachePatchResource,\n connectedCachePatchResourceSerializer,\n _EnterpriseMccCacheNodeResourceListResult,\n _enterpriseMccCacheNodeResourceListResultDeserializer,\n MccCacheNodeInstallDetails,\n mccCacheNodeInstallDetailsDeserializer,\n} from \"../../models/models.js\";\nimport {\n PagedAsyncIterableIterator,\n buildPagedAsyncIterator,\n} from \"../../static-helpers/pagingHelpers.js\";\nimport { getLongRunningPoller } from \"../../static-helpers/pollingHelpers.js\";\nimport {\n StreamableMethod,\n PathUncheckedResponse,\n createRestError,\n operationOptionsToRequestParameters,\n} from \"@azure-rest/core-client\";\nimport { PollerLike, OperationState } from \"@azure/core-lro\";\n\nexport function _enterpriseMccCacheNodesOperationsGetSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n customerResourceName: string,\n cacheNodeResourceName: string,\n options: EnterpriseMccCacheNodesOperationsGetOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/enterpriseMccCustomers/{customerResourceName}/enterpriseMccCacheNodes/{cacheNodeResourceName}\",\n subscriptionId,\n resourceGroupName,\n customerResourceName,\n cacheNodeResourceName,\n )\n .get({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _enterpriseMccCacheNodesOperationsGetDeserialize(\n result: PathUncheckedResponse,\n): Promise<EnterpriseMccCacheNodeResource> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return enterpriseMccCacheNodeResourceDeserializer(result.body);\n}\n\n/** This api gets ispCacheNode resource information */\nexport async function enterpriseMccCacheNodesOperationsGet(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n customerResourceName: string,\n cacheNodeResourceName: string,\n options: EnterpriseMccCacheNodesOperationsGetOptionalParams = {\n requestOptions: {},\n },\n): Promise<EnterpriseMccCacheNodeResource> {\n const result = await _enterpriseMccCacheNodesOperationsGetSend(\n context,\n subscriptionId,\n resourceGroupName,\n customerResourceName,\n cacheNodeResourceName,\n options,\n );\n return _enterpriseMccCacheNodesOperationsGetDeserialize(result);\n}\n\nexport function _enterpriseMccCacheNodesOperationsCreateOrUpdateSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n customerResourceName: string,\n cacheNodeResourceName: string,\n resource: EnterpriseMccCacheNodeResource,\n options: EnterpriseMccCacheNodesOperationsCreateOrUpdateOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/enterpriseMccCustomers/{customerResourceName}/enterpriseMccCacheNodes/{cacheNodeResourceName}\",\n subscriptionId,\n resourceGroupName,\n customerResourceName,\n cacheNodeResourceName,\n )\n .put({\n ...operationOptionsToRequestParameters(options),\n body: enterpriseMccCacheNodeResourceSerializer(resource),\n });\n}\n\nexport async function _enterpriseMccCacheNodesOperationsCreateOrUpdateDeserialize(\n result: PathUncheckedResponse,\n): Promise<EnterpriseMccCacheNodeResource> {\n const expectedStatuses = [\"200\", \"201\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return enterpriseMccCacheNodeResourceDeserializer(result.body);\n}\n\n/** This api creates an ispCacheNode with the specified create parameters */\nexport function enterpriseMccCacheNodesOperationsCreateOrUpdate(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n customerResourceName: string,\n cacheNodeResourceName: string,\n resource: EnterpriseMccCacheNodeResource,\n options: EnterpriseMccCacheNodesOperationsCreateOrUpdateOptionalParams = {\n requestOptions: {},\n },\n): PollerLike<OperationState<EnterpriseMccCacheNodeResource>, EnterpriseMccCacheNodeResource> {\n return getLongRunningPoller(\n context,\n _enterpriseMccCacheNodesOperationsCreateOrUpdateDeserialize,\n [\"200\", \"201\"],\n {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _enterpriseMccCacheNodesOperationsCreateOrUpdateSend(\n context,\n subscriptionId,\n resourceGroupName,\n customerResourceName,\n cacheNodeResourceName,\n resource,\n options,\n ),\n resourceLocationConfig: \"azure-async-operation\",\n },\n ) as PollerLike<OperationState<EnterpriseMccCacheNodeResource>, EnterpriseMccCacheNodeResource>;\n}\n\nexport function _enterpriseMccCacheNodesOperationsUpdateSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n customerResourceName: string,\n cacheNodeResourceName: string,\n properties: ConnectedCachePatchResource,\n options: EnterpriseMccCacheNodesOperationsUpdateOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/enterpriseMccCustomers/{customerResourceName}/enterpriseMccCacheNodes/{cacheNodeResourceName}\",\n subscriptionId,\n resourceGroupName,\n customerResourceName,\n cacheNodeResourceName,\n )\n .patch({\n ...operationOptionsToRequestParameters(options),\n body: connectedCachePatchResourceSerializer(properties),\n });\n}\n\nexport async function _enterpriseMccCacheNodesOperationsUpdateDeserialize(\n result: PathUncheckedResponse,\n): Promise<EnterpriseMccCacheNodeResource> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return enterpriseMccCacheNodeResourceDeserializer(result.body);\n}\n\n/** This api updates an existing ispCacheNode resource */\nexport async function enterpriseMccCacheNodesOperationsUpdate(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n customerResourceName: string,\n cacheNodeResourceName: string,\n properties: ConnectedCachePatchResource,\n options: EnterpriseMccCacheNodesOperationsUpdateOptionalParams = {\n requestOptions: {},\n },\n): Promise<EnterpriseMccCacheNodeResource> {\n const result = await _enterpriseMccCacheNodesOperationsUpdateSend(\n context,\n subscriptionId,\n resourceGroupName,\n customerResourceName,\n cacheNodeResourceName,\n properties,\n options,\n );\n return _enterpriseMccCacheNodesOperationsUpdateDeserialize(result);\n}\n\nexport function _enterpriseMccCacheNodesOperationsDeleteSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n customerResourceName: string,\n cacheNodeResourceName: string,\n options: EnterpriseMccCacheNodesOperationsDeleteOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/enterpriseMccCustomers/{customerResourceName}/enterpriseMccCacheNodes/{cacheNodeResourceName}\",\n subscriptionId,\n resourceGroupName,\n customerResourceName,\n cacheNodeResourceName,\n )\n .delete({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _enterpriseMccCacheNodesOperationsDeleteDeserialize(\n result: PathUncheckedResponse,\n): Promise<void> {\n const expectedStatuses = [\"202\", \"204\", \"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return;\n}\n\n/** This api deletes an existing ispCacheNode resource */\nexport function enterpriseMccCacheNodesOperationsDelete(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n customerResourceName: string,\n cacheNodeResourceName: string,\n options: EnterpriseMccCacheNodesOperationsDeleteOptionalParams = {\n requestOptions: {},\n },\n): PollerLike<OperationState<void>, void> {\n return getLongRunningPoller(\n context,\n _enterpriseMccCacheNodesOperationsDeleteDeserialize,\n [\"202\", \"204\", \"200\"],\n {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _enterpriseMccCacheNodesOperationsDeleteSend(\n context,\n subscriptionId,\n resourceGroupName,\n customerResourceName,\n cacheNodeResourceName,\n options,\n ),\n resourceLocationConfig: \"location\",\n },\n ) as PollerLike<OperationState<void>, void>;\n}\n\nexport function _enterpriseMccCacheNodesOperationsListByEnterpriseMccCustomerResourceSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n customerResourceName: string,\n options: EnterpriseMccCacheNodesOperationsListByEnterpriseMccCustomerResourceOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/enterpriseMccCustomers/{customerResourceName}/enterpriseMccCacheNodes\",\n subscriptionId,\n resourceGroupName,\n customerResourceName,\n )\n .get({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _enterpriseMccCacheNodesOperationsListByEnterpriseMccCustomerResourceDeserialize(\n result: PathUncheckedResponse,\n): Promise<_EnterpriseMccCacheNodeResourceListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return _enterpriseMccCacheNodeResourceListResultDeserializer(result.body);\n}\n\n/** This api retrieves information about all ispCacheNode resources under the given subscription and resource group */\nexport function enterpriseMccCacheNodesOperationsListByEnterpriseMccCustomerResource(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n customerResourceName: string,\n options: EnterpriseMccCacheNodesOperationsListByEnterpriseMccCustomerResourceOptionalParams = {\n requestOptions: {},\n },\n): PagedAsyncIterableIterator<EnterpriseMccCacheNodeResource> {\n return buildPagedAsyncIterator(\n context,\n () =>\n _enterpriseMccCacheNodesOperationsListByEnterpriseMccCustomerResourceSend(\n context,\n subscriptionId,\n resourceGroupName,\n customerResourceName,\n options,\n ),\n _enterpriseMccCacheNodesOperationsListByEnterpriseMccCustomerResourceDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\" },\n );\n}\n\nexport function _enterpriseMccCacheNodesOperationsGetCacheNodeInstallDetailsSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n customerResourceName: string,\n cacheNodeResourceName: string,\n options: EnterpriseMccCacheNodesOperationsGetCacheNodeInstallDetailsOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/enterpriseMccCustomers/{customerResourceName}/enterpriseMccCacheNodes/{cacheNodeResourceName}/getCacheNodeInstallDetails\",\n subscriptionId,\n resourceGroupName,\n customerResourceName,\n cacheNodeResourceName,\n )\n .post({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _enterpriseMccCacheNodesOperationsGetCacheNodeInstallDetailsDeserialize(\n result: PathUncheckedResponse,\n): Promise<MccCacheNodeInstallDetails> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return mccCacheNodeInstallDetailsDeserializer(result.body);\n}\n\n/** This api gets secrets of the ispCacheNode resource install details */\nexport async function enterpriseMccCacheNodesOperationsGetCacheNodeInstallDetails(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n customerResourceName: string,\n cacheNodeResourceName: string,\n options: EnterpriseMccCacheNodesOperationsGetCacheNodeInstallDetailsOptionalParams = {\n requestOptions: {},\n },\n): Promise<MccCacheNodeInstallDetails> {\n const result = await _enterpriseMccCacheNodesOperationsGetCacheNodeInstallDetailsSend(\n context,\n subscriptionId,\n resourceGroupName,\n customerResourceName,\n cacheNodeResourceName,\n options,\n );\n return _enterpriseMccCacheNodesOperationsGetCacheNodeInstallDetailsDeserialize(result);\n}\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/enterpriseMccCacheNodesOperations/index.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAmClC,8FAmBC;AAED,4GASC;AAGD,oFAmBC;AAED,oHAuBC;AAED,kIASC;AAGD,0GA+BC;AAED,oGAuBC;AAED,kHASC;AAGD,0FAqBC;AAED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O,IAAA,kDAAsC,EAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AAC7D,CAAC;AAED,yEAAyE;AAClE,KAAK,UAAU,2DAA2D,CAC/E,OAAe,EACf,cAAsB,EACtB,iBAAyB,EACzB,oBAA4B,EAC5B,qBAA6B,EAC7B,UAAqF;IACnF,cAAc,EAAE,EAAE;CACnB;IAED,MAAM,MAAM,GAAG,MAAM,gEAAgE,CACnF,OAAO,EACP,cAAc,EACd,iBAAiB,EACjB,oBAAoB,EACpB,qBAAqB,EACrB,OAAO,CACR,CAAC;IACF,OAAO,uEAAuE,CAAC,MAAM,CAAC,CAAC;AACzF,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport {\n ConnectedCacheContext as Client,\n EnterpriseMccCacheNodesOperationsCreateOrUpdateOptionalParams,\n EnterpriseMccCacheNodesOperationsDeleteOptionalParams,\n EnterpriseMccCacheNodesOperationsGetCacheNodeInstallDetailsOptionalParams,\n EnterpriseMccCacheNodesOperationsGetOptionalParams,\n EnterpriseMccCacheNodesOperationsListByEnterpriseMccCustomerResourceOptionalParams,\n EnterpriseMccCacheNodesOperationsUpdateOptionalParams,\n} from \"../index.js\";\nimport {\n EnterpriseMccCacheNodeResource,\n enterpriseMccCacheNodeResourceSerializer,\n enterpriseMccCacheNodeResourceDeserializer,\n ConnectedCachePatchResource,\n connectedCachePatchResourceSerializer,\n _EnterpriseMccCacheNodeResourceListResult,\n _enterpriseMccCacheNodeResourceListResultDeserializer,\n MccCacheNodeInstallDetails,\n mccCacheNodeInstallDetailsDeserializer,\n} from \"../../models/models.js\";\nimport {\n PagedAsyncIterableIterator,\n buildPagedAsyncIterator,\n} from \"../../static-helpers/pagingHelpers.js\";\nimport { getLongRunningPoller } from \"../../static-helpers/pollingHelpers.js\";\nimport {\n StreamableMethod,\n PathUncheckedResponse,\n createRestError,\n operationOptionsToRequestParameters,\n} from \"@azure-rest/core-client\";\nimport { PollerLike, OperationState } from \"@azure/core-lro\";\n\nexport function _enterpriseMccCacheNodesOperationsGetSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n customerResourceName: string,\n cacheNodeResourceName: string,\n options: EnterpriseMccCacheNodesOperationsGetOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/enterpriseMccCustomers/{customerResourceName}/enterpriseMccCacheNodes/{cacheNodeResourceName}\",\n subscriptionId,\n resourceGroupName,\n customerResourceName,\n cacheNodeResourceName,\n )\n .get({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _enterpriseMccCacheNodesOperationsGetDeserialize(\n result: PathUncheckedResponse,\n): Promise<EnterpriseMccCacheNodeResource> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return enterpriseMccCacheNodeResourceDeserializer(result.body);\n}\n\n/** This api gets ispCacheNode resource information */\nexport async function enterpriseMccCacheNodesOperationsGet(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n customerResourceName: string,\n cacheNodeResourceName: string,\n options: EnterpriseMccCacheNodesOperationsGetOptionalParams = {\n requestOptions: {},\n },\n): Promise<EnterpriseMccCacheNodeResource> {\n const result = await _enterpriseMccCacheNodesOperationsGetSend(\n context,\n subscriptionId,\n resourceGroupName,\n customerResourceName,\n cacheNodeResourceName,\n options,\n );\n return _enterpriseMccCacheNodesOperationsGetDeserialize(result);\n}\n\nexport function _enterpriseMccCacheNodesOperationsCreateOrUpdateSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n customerResourceName: string,\n cacheNodeResourceName: string,\n resource: EnterpriseMccCacheNodeResource,\n options: EnterpriseMccCacheNodesOperationsCreateOrUpdateOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/enterpriseMccCustomers/{customerResourceName}/enterpriseMccCacheNodes/{cacheNodeResourceName}\",\n subscriptionId,\n resourceGroupName,\n customerResourceName,\n cacheNodeResourceName,\n )\n .put({\n ...operationOptionsToRequestParameters(options),\n body: enterpriseMccCacheNodeResourceSerializer(resource),\n });\n}\n\nexport async function _enterpriseMccCacheNodesOperationsCreateOrUpdateDeserialize(\n result: PathUncheckedResponse,\n): Promise<EnterpriseMccCacheNodeResource> {\n const expectedStatuses = [\"200\", \"201\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return enterpriseMccCacheNodeResourceDeserializer(result.body);\n}\n\n/** This api creates an ispCacheNode with the specified create parameters */\nexport function enterpriseMccCacheNodesOperationsCreateOrUpdate(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n customerResourceName: string,\n cacheNodeResourceName: string,\n resource: EnterpriseMccCacheNodeResource,\n options: EnterpriseMccCacheNodesOperationsCreateOrUpdateOptionalParams = {\n requestOptions: {},\n },\n): PollerLike<OperationState<EnterpriseMccCacheNodeResource>, EnterpriseMccCacheNodeResource> {\n return getLongRunningPoller(\n context,\n _enterpriseMccCacheNodesOperationsCreateOrUpdateDeserialize,\n [\"200\", \"201\"],\n {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _enterpriseMccCacheNodesOperationsCreateOrUpdateSend(\n context,\n subscriptionId,\n resourceGroupName,\n customerResourceName,\n cacheNodeResourceName,\n resource,\n options,\n ),\n resourceLocationConfig: \"azure-async-operation\",\n },\n ) as PollerLike<OperationState<EnterpriseMccCacheNodeResource>, EnterpriseMccCacheNodeResource>;\n}\n\nexport function _enterpriseMccCacheNodesOperationsUpdateSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n customerResourceName: string,\n cacheNodeResourceName: string,\n properties: ConnectedCachePatchResource,\n options: EnterpriseMccCacheNodesOperationsUpdateOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/enterpriseMccCustomers/{customerResourceName}/enterpriseMccCacheNodes/{cacheNodeResourceName}\",\n subscriptionId,\n resourceGroupName,\n customerResourceName,\n cacheNodeResourceName,\n )\n .patch({\n ...operationOptionsToRequestParameters(options),\n body: connectedCachePatchResourceSerializer(properties),\n });\n}\n\nexport async function _enterpriseMccCacheNodesOperationsUpdateDeserialize(\n result: PathUncheckedResponse,\n): Promise<EnterpriseMccCacheNodeResource> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return enterpriseMccCacheNodeResourceDeserializer(result.body);\n}\n\n/** This api updates an existing ispCacheNode resource */\nexport async function enterpriseMccCacheNodesOperationsUpdate(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n customerResourceName: string,\n cacheNodeResourceName: string,\n properties: ConnectedCachePatchResource,\n options: EnterpriseMccCacheNodesOperationsUpdateOptionalParams = {\n requestOptions: {},\n },\n): Promise<EnterpriseMccCacheNodeResource> {\n const result = await _enterpriseMccCacheNodesOperationsUpdateSend(\n context,\n subscriptionId,\n resourceGroupName,\n customerResourceName,\n cacheNodeResourceName,\n properties,\n options,\n );\n return _enterpriseMccCacheNodesOperationsUpdateDeserialize(result);\n}\n\nexport function _enterpriseMccCacheNodesOperationsDeleteSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n customerResourceName: string,\n cacheNodeResourceName: string,\n options: EnterpriseMccCacheNodesOperationsDeleteOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/enterpriseMccCustomers/{customerResourceName}/enterpriseMccCacheNodes/{cacheNodeResourceName}\",\n subscriptionId,\n resourceGroupName,\n customerResourceName,\n cacheNodeResourceName,\n )\n .delete({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _enterpriseMccCacheNodesOperationsDeleteDeserialize(\n result: PathUncheckedResponse,\n): Promise<void> {\n const expectedStatuses = [\"202\", \"204\", \"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return;\n}\n\n/** This api deletes an existing ispCacheNode resource */\nexport function enterpriseMccCacheNodesOperationsDelete(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n customerResourceName: string,\n cacheNodeResourceName: string,\n options: EnterpriseMccCacheNodesOperationsDeleteOptionalParams = {\n requestOptions: {},\n },\n): PollerLike<OperationState<void>, void> {\n return getLongRunningPoller(\n context,\n _enterpriseMccCacheNodesOperationsDeleteDeserialize,\n [\"202\", \"204\", \"200\"],\n {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _enterpriseMccCacheNodesOperationsDeleteSend(\n context,\n subscriptionId,\n resourceGroupName,\n customerResourceName,\n cacheNodeResourceName,\n options,\n ),\n resourceLocationConfig: \"location\",\n },\n ) as PollerLike<OperationState<void>, void>;\n}\n\nexport function _enterpriseMccCacheNodesOperationsListByEnterpriseMccCustomerResourceSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n customerResourceName: string,\n options: EnterpriseMccCacheNodesOperationsListByEnterpriseMccCustomerResourceOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/enterpriseMccCustomers/{customerResourceName}/enterpriseMccCacheNodes\",\n subscriptionId,\n resourceGroupName,\n customerResourceName,\n )\n .get({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _enterpriseMccCacheNodesOperationsListByEnterpriseMccCustomerResourceDeserialize(\n result: PathUncheckedResponse,\n): Promise<_EnterpriseMccCacheNodeResourceListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return _enterpriseMccCacheNodeResourceListResultDeserializer(result.body);\n}\n\n/** This api retrieves information about all ispCacheNode resources under the given subscription and resource group */\nexport function enterpriseMccCacheNodesOperationsListByEnterpriseMccCustomerResource(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n customerResourceName: string,\n options: EnterpriseMccCacheNodesOperationsListByEnterpriseMccCustomerResourceOptionalParams = {\n requestOptions: {},\n },\n): PagedAsyncIterableIterator<EnterpriseMccCacheNodeResource> {\n return buildPagedAsyncIterator(\n context,\n () =>\n _enterpriseMccCacheNodesOperationsListByEnterpriseMccCustomerResourceSend(\n context,\n subscriptionId,\n resourceGroupName,\n customerResourceName,\n options,\n ),\n _enterpriseMccCacheNodesOperationsListByEnterpriseMccCustomerResourceDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\" },\n );\n}\n\nexport function _enterpriseMccCacheNodesOperationsGetCacheNodeInstallDetailsSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n customerResourceName: string,\n cacheNodeResourceName: string,\n options: EnterpriseMccCacheNodesOperationsGetCacheNodeInstallDetailsOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/enterpriseMccCustomers/{customerResourceName}/enterpriseMccCacheNodes/{cacheNodeResourceName}/getCacheNodeInstallDetails\",\n subscriptionId,\n resourceGroupName,\n customerResourceName,\n cacheNodeResourceName,\n )\n .post({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _enterpriseMccCacheNodesOperationsGetCacheNodeInstallDetailsDeserialize(\n result: PathUncheckedResponse,\n): Promise<MccCacheNodeInstallDetails> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return mccCacheNodeInstallDetailsDeserializer(result.body);\n}\n\n/** This api gets secrets of the ispCacheNode resource install details */\nexport async function enterpriseMccCacheNodesOperationsGetCacheNodeInstallDetails(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n customerResourceName: string,\n cacheNodeResourceName: string,\n options: EnterpriseMccCacheNodesOperationsGetCacheNodeInstallDetailsOptionalParams = {\n requestOptions: {},\n },\n): Promise<MccCacheNodeInstallDetails> {\n const result = await _enterpriseMccCacheNodesOperationsGetCacheNodeInstallDetailsSend(\n context,\n subscriptionId,\n resourceGroupName,\n customerResourceName,\n cacheNodeResourceName,\n options,\n );\n return _enterpriseMccCacheNodesOperationsGetCacheNodeInstallDetailsDeserialize(result);\n}\n"]}
|
|
@@ -27,7 +27,7 @@ const core_client_1 = require("@azure-rest/core-client");
|
|
|
27
27
|
function _enterpriseMccCustomersGetSend(context, subscriptionId, resourceGroupName, customerResourceName, options = { requestOptions: {} }) {
|
|
28
28
|
return context
|
|
29
29
|
.path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/enterpriseMccCustomers/{customerResourceName}", subscriptionId, resourceGroupName, customerResourceName)
|
|
30
|
-
.get(
|
|
30
|
+
.get({ ...(0, core_client_1.operationOptionsToRequestParameters)(options) });
|
|
31
31
|
}
|
|
32
32
|
async function _enterpriseMccCustomersGetDeserialize(result) {
|
|
33
33
|
const expectedStatuses = ["200"];
|
|
@@ -46,7 +46,10 @@ function _enterpriseMccCustomersCreateOrUpdateSend(context, subscriptionId, reso
|
|
|
46
46
|
}) {
|
|
47
47
|
return context
|
|
48
48
|
.path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/enterpriseMccCustomers/{customerResourceName}", subscriptionId, resourceGroupName, customerResourceName)
|
|
49
|
-
.put(
|
|
49
|
+
.put({
|
|
50
|
+
...(0, core_client_1.operationOptionsToRequestParameters)(options),
|
|
51
|
+
body: (0, models_js_1.enterpriseMccCustomerResourceSerializer)(resource),
|
|
52
|
+
});
|
|
50
53
|
}
|
|
51
54
|
async function _enterpriseMccCustomersCreateOrUpdateDeserialize(result) {
|
|
52
55
|
const expectedStatuses = ["200", "201"];
|
|
@@ -60,8 +63,8 @@ function enterpriseMccCustomersCreateOrUpdate(context, subscriptionId, resourceG
|
|
|
60
63
|
requestOptions: {},
|
|
61
64
|
}) {
|
|
62
65
|
return (0, pollingHelpers_js_1.getLongRunningPoller)(context, _enterpriseMccCustomersCreateOrUpdateDeserialize, ["200", "201"], {
|
|
63
|
-
updateIntervalInMs: options
|
|
64
|
-
abortSignal: options
|
|
66
|
+
updateIntervalInMs: options?.updateIntervalInMs,
|
|
67
|
+
abortSignal: options?.abortSignal,
|
|
65
68
|
getInitialResponse: () => _enterpriseMccCustomersCreateOrUpdateSend(context, subscriptionId, resourceGroupName, customerResourceName, resource, options),
|
|
66
69
|
resourceLocationConfig: "azure-async-operation",
|
|
67
70
|
});
|
|
@@ -69,7 +72,10 @@ function enterpriseMccCustomersCreateOrUpdate(context, subscriptionId, resourceG
|
|
|
69
72
|
function _enterpriseMccCustomersUpdateSend(context, subscriptionId, resourceGroupName, customerResourceName, properties, options = { requestOptions: {} }) {
|
|
70
73
|
return context
|
|
71
74
|
.path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/enterpriseMccCustomers/{customerResourceName}", subscriptionId, resourceGroupName, customerResourceName)
|
|
72
|
-
.patch(
|
|
75
|
+
.patch({
|
|
76
|
+
...(0, core_client_1.operationOptionsToRequestParameters)(options),
|
|
77
|
+
body: (0, models_js_1.connectedCachePatchResourceSerializer)(properties),
|
|
78
|
+
});
|
|
73
79
|
}
|
|
74
80
|
async function _enterpriseMccCustomersUpdateDeserialize(result) {
|
|
75
81
|
const expectedStatuses = ["200"];
|
|
@@ -86,7 +92,7 @@ async function enterpriseMccCustomersUpdate(context, subscriptionId, resourceGro
|
|
|
86
92
|
function _enterpriseMccCustomersDeleteSend(context, subscriptionId, resourceGroupName, customerResourceName, options = { requestOptions: {} }) {
|
|
87
93
|
return context
|
|
88
94
|
.path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/enterpriseMccCustomers/{customerResourceName}", subscriptionId, resourceGroupName, customerResourceName)
|
|
89
|
-
.delete(
|
|
95
|
+
.delete({ ...(0, core_client_1.operationOptionsToRequestParameters)(options) });
|
|
90
96
|
}
|
|
91
97
|
async function _enterpriseMccCustomersDeleteDeserialize(result) {
|
|
92
98
|
const expectedStatuses = ["202", "204", "200"];
|
|
@@ -98,8 +104,8 @@ async function _enterpriseMccCustomersDeleteDeserialize(result) {
|
|
|
98
104
|
/** This api deletes an existing enterprise mcc customer resource */
|
|
99
105
|
function enterpriseMccCustomersDelete(context, subscriptionId, resourceGroupName, customerResourceName, options = { requestOptions: {} }) {
|
|
100
106
|
return (0, pollingHelpers_js_1.getLongRunningPoller)(context, _enterpriseMccCustomersDeleteDeserialize, ["202", "204", "200"], {
|
|
101
|
-
updateIntervalInMs: options
|
|
102
|
-
abortSignal: options
|
|
107
|
+
updateIntervalInMs: options?.updateIntervalInMs,
|
|
108
|
+
abortSignal: options?.abortSignal,
|
|
103
109
|
getInitialResponse: () => _enterpriseMccCustomersDeleteSend(context, subscriptionId, resourceGroupName, customerResourceName, options),
|
|
104
110
|
resourceLocationConfig: "location",
|
|
105
111
|
});
|
|
@@ -109,7 +115,7 @@ function _enterpriseMccCustomersListByResourceGroupSend(context, subscriptionId,
|
|
|
109
115
|
}) {
|
|
110
116
|
return context
|
|
111
117
|
.path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/enterpriseMccCustomers", subscriptionId, resourceGroupName)
|
|
112
|
-
.get(
|
|
118
|
+
.get({ ...(0, core_client_1.operationOptionsToRequestParameters)(options) });
|
|
113
119
|
}
|
|
114
120
|
async function _enterpriseMccCustomersListByResourceGroupDeserialize(result) {
|
|
115
121
|
const expectedStatuses = ["200"];
|
|
@@ -129,7 +135,7 @@ function _enterpriseMccCustomersListBySubscriptionSend(context, subscriptionId,
|
|
|
129
135
|
}) {
|
|
130
136
|
return context
|
|
131
137
|
.path("/subscriptions/{subscriptionId}/providers/Microsoft.ConnectedCache/enterpriseMccCustomers", subscriptionId)
|
|
132
|
-
.get(
|
|
138
|
+
.get({ ...(0, core_client_1.operationOptionsToRequestParameters)(options) });
|
|
133
139
|
}
|
|
134
140
|
async function _enterpriseMccCustomersListBySubscriptionDeserialize(result) {
|
|
135
141
|
const expectedStatuses = ["200"];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/enterpriseMccCustomers/index.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAiClC,wEAeC;AAED,sFASC;AAGD,8DAeC;AAED,8FAqBC;AAED,4GASC;AAGD,oFA6BC;AAED,8EAmBC;AAED,4FASC;AAGD,oEAiBC;AAED,8EAeC;AAED,4FASC;AAGD,oEAyBC;AAED,wGAeC;AAED,sHASC;AAGD,8FAqBC;AAED,sGAaC;AAED,oHASC;AAGD,4FAcC;AA/UD,sDAQgC;AAChC,4EAG+C;AAC/C,8EAA8E;AAC9E,yDAKiC;AAGjC,SAAgB,8BAA8B,CAC5C,OAAe,EACf,cAAsB,EACtB,iBAAyB,EACzB,oBAA4B,EAC5B,UAAmD,EAAE,cAAc,EAAE,EAAE,EAAE;IAEzE,OAAO,OAAO;SACX,IAAI,CACH,qJAAqJ,EACrJ,cAAc,EACd,iBAAiB,EACjB,oBAAoB,CACrB;SACA,GAAG,mBAAM,IAAA,iDAAmC,EAAC,OAAO,CAAC,EAAG,CAAC;AAC9D,CAAC;AAEM,KAAK,UAAU,qCAAqC,CACzD,MAA6B;IAE7B,MAAM,gBAAgB,GAAG,CAAC,KAAK,CAAC,CAAC;IACjC,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;QAC9C,MAAM,IAAA,6BAAe,EAAC,MAAM,CAAC,CAAC;IAChC,CAAC;IAED,OAAO,I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jC,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;QAC9C,MAAM,IAAA,6BAAe,EAAC,MAAM,CAAC,CAAC;IAChC,CAAC;IAED,OAAO,IAAA,gEAAoD,EAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AAC3E,CAAC;AAED,uGAAuG;AACvG,SAAgB,wCAAwC,CACtD,OAAe,EACf,cAAsB,EACtB,UAAkE;IAChE,cAAc,EAAE,EAAE;CACnB;IAED,OAAO,IAAA,0CAAuB,EAC5B,OAAO,EACP,GAAG,EAAE,CAAC,6CAA6C,CAAC,OAAO,EAAE,cAAc,EAAE,OAAO,CAAC,EACrF,oDAAoD,EACpD,CAAC,KAAK,CAAC,EACP,EAAE,QAAQ,EAAE,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,CAChD,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport {\n ConnectedCacheContext as Client,\n EnterpriseMccCustomersCreateOrUpdateOptionalParams,\n EnterpriseMccCustomersDeleteOptionalParams,\n EnterpriseMccCustomersGetOptionalParams,\n EnterpriseMccCustomersListByResourceGroupOptionalParams,\n EnterpriseMccCustomersListBySubscriptionOptionalParams,\n EnterpriseMccCustomersUpdateOptionalParams,\n} from \"../index.js\";\nimport {\n ConnectedCachePatchResource,\n connectedCachePatchResourceSerializer,\n EnterpriseMccCustomerResource,\n enterpriseMccCustomerResourceSerializer,\n enterpriseMccCustomerResourceDeserializer,\n _EnterpriseMccCustomerResourceListResult,\n _enterpriseMccCustomerResourceListResultDeserializer,\n} from \"../../models/models.js\";\nimport {\n PagedAsyncIterableIterator,\n buildPagedAsyncIterator,\n} from \"../../static-helpers/pagingHelpers.js\";\nimport { getLongRunningPoller } from \"../../static-helpers/pollingHelpers.js\";\nimport {\n StreamableMethod,\n PathUncheckedResponse,\n createRestError,\n operationOptionsToRequestParameters,\n} from \"@azure-rest/core-client\";\nimport { PollerLike, OperationState } from \"@azure/core-lro\";\n\nexport function _enterpriseMccCustomersGetSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n customerResourceName: string,\n options: EnterpriseMccCustomersGetOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/enterpriseMccCustomers/{customerResourceName}\",\n subscriptionId,\n resourceGroupName,\n customerResourceName,\n )\n .get({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _enterpriseMccCustomersGetDeserialize(\n result: PathUncheckedResponse,\n): Promise<EnterpriseMccCustomerResource> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return enterpriseMccCustomerResourceDeserializer(result.body);\n}\n\n/** Gets the enterprise mcc customer resource information using this get call */\nexport async function enterpriseMccCustomersGet(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n customerResourceName: string,\n options: EnterpriseMccCustomersGetOptionalParams = { requestOptions: {} },\n): Promise<EnterpriseMccCustomerResource> {\n const result = await _enterpriseMccCustomersGetSend(\n context,\n subscriptionId,\n resourceGroupName,\n customerResourceName,\n options,\n );\n return _enterpriseMccCustomersGetDeserialize(result);\n}\n\nexport function _enterpriseMccCustomersCreateOrUpdateSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n customerResourceName: string,\n resource: EnterpriseMccCustomerResource,\n options: EnterpriseMccCustomersCreateOrUpdateOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/enterpriseMccCustomers/{customerResourceName}\",\n subscriptionId,\n resourceGroupName,\n customerResourceName,\n )\n .put({\n ...operationOptionsToRequestParameters(options),\n body: enterpriseMccCustomerResourceSerializer(resource),\n });\n}\n\nexport async function _enterpriseMccCustomersCreateOrUpdateDeserialize(\n result: PathUncheckedResponse,\n): Promise<EnterpriseMccCustomerResource> {\n const expectedStatuses = [\"200\", \"201\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return enterpriseMccCustomerResourceDeserializer(result.body);\n}\n\n/** This api creates an enterprise mcc customer with the specified create parameters */\nexport function enterpriseMccCustomersCreateOrUpdate(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n customerResourceName: string,\n resource: EnterpriseMccCustomerResource,\n options: EnterpriseMccCustomersCreateOrUpdateOptionalParams = {\n requestOptions: {},\n },\n): PollerLike<OperationState<EnterpriseMccCustomerResource>, EnterpriseMccCustomerResource> {\n return getLongRunningPoller(\n context,\n _enterpriseMccCustomersCreateOrUpdateDeserialize,\n [\"200\", \"201\"],\n {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _enterpriseMccCustomersCreateOrUpdateSend(\n context,\n subscriptionId,\n resourceGroupName,\n customerResourceName,\n resource,\n options,\n ),\n resourceLocationConfig: \"azure-async-operation\",\n },\n ) as PollerLike<OperationState<EnterpriseMccCustomerResource>, EnterpriseMccCustomerResource>;\n}\n\nexport function _enterpriseMccCustomersUpdateSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n customerResourceName: string,\n properties: ConnectedCachePatchResource,\n options: EnterpriseMccCustomersUpdateOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/enterpriseMccCustomers/{customerResourceName}\",\n subscriptionId,\n resourceGroupName,\n customerResourceName,\n )\n .patch({\n ...operationOptionsToRequestParameters(options),\n body: connectedCachePatchResourceSerializer(properties),\n });\n}\n\nexport async function _enterpriseMccCustomersUpdateDeserialize(\n result: PathUncheckedResponse,\n): Promise<EnterpriseMccCustomerResource> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return enterpriseMccCustomerResourceDeserializer(result.body);\n}\n\n/** This api updates an existing enterprise mcc customer resource */\nexport async function enterpriseMccCustomersUpdate(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n customerResourceName: string,\n properties: ConnectedCachePatchResource,\n options: EnterpriseMccCustomersUpdateOptionalParams = { requestOptions: {} },\n): Promise<EnterpriseMccCustomerResource> {\n const result = await _enterpriseMccCustomersUpdateSend(\n context,\n subscriptionId,\n resourceGroupName,\n customerResourceName,\n properties,\n options,\n );\n return _enterpriseMccCustomersUpdateDeserialize(result);\n}\n\nexport function _enterpriseMccCustomersDeleteSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n customerResourceName: string,\n options: EnterpriseMccCustomersDeleteOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/enterpriseMccCustomers/{customerResourceName}\",\n subscriptionId,\n resourceGroupName,\n customerResourceName,\n )\n .delete({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _enterpriseMccCustomersDeleteDeserialize(\n result: PathUncheckedResponse,\n): Promise<void> {\n const expectedStatuses = [\"202\", \"204\", \"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return;\n}\n\n/** This api deletes an existing enterprise mcc customer resource */\nexport function enterpriseMccCustomersDelete(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n customerResourceName: string,\n options: EnterpriseMccCustomersDeleteOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<void>, void> {\n return getLongRunningPoller(\n context,\n _enterpriseMccCustomersDeleteDeserialize,\n [\"202\", \"204\", \"200\"],\n {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _enterpriseMccCustomersDeleteSend(\n context,\n subscriptionId,\n resourceGroupName,\n customerResourceName,\n options,\n ),\n resourceLocationConfig: \"location\",\n },\n ) as PollerLike<OperationState<void>, void>;\n}\n\nexport function _enterpriseMccCustomersListByResourceGroupSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n options: EnterpriseMccCustomersListByResourceGroupOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/enterpriseMccCustomers\",\n subscriptionId,\n resourceGroupName,\n )\n .get({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _enterpriseMccCustomersListByResourceGroupDeserialize(\n result: PathUncheckedResponse,\n): Promise<_EnterpriseMccCustomerResourceListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return _enterpriseMccCustomerResourceListResultDeserializer(result.body);\n}\n\n/** This api gets the information about all enterprise mcc customer resources under the given subscription and resource group */\nexport function enterpriseMccCustomersListByResourceGroup(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n options: EnterpriseMccCustomersListByResourceGroupOptionalParams = {\n requestOptions: {},\n },\n): PagedAsyncIterableIterator<EnterpriseMccCustomerResource> {\n return buildPagedAsyncIterator(\n context,\n () =>\n _enterpriseMccCustomersListByResourceGroupSend(\n context,\n subscriptionId,\n resourceGroupName,\n options,\n ),\n _enterpriseMccCustomersListByResourceGroupDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\" },\n );\n}\n\nexport function _enterpriseMccCustomersListBySubscriptionSend(\n context: Client,\n subscriptionId: string,\n options: EnterpriseMccCustomersListBySubscriptionOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.ConnectedCache/enterpriseMccCustomers\",\n subscriptionId,\n )\n .get({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _enterpriseMccCustomersListBySubscriptionDeserialize(\n result: PathUncheckedResponse,\n): Promise<_EnterpriseMccCustomerResourceListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return _enterpriseMccCustomerResourceListResultDeserializer(result.body);\n}\n\n/** This api gets information about all enterpriseMccCustomer resources under the given subscription */\nexport function enterpriseMccCustomersListBySubscription(\n context: Client,\n subscriptionId: string,\n options: EnterpriseMccCustomersListBySubscriptionOptionalParams = {\n requestOptions: {},\n },\n): PagedAsyncIterableIterator<EnterpriseMccCustomerResource> {\n return buildPagedAsyncIterator(\n context,\n () => _enterpriseMccCustomersListBySubscriptionSend(context, subscriptionId, options),\n _enterpriseMccCustomersListBySubscriptionDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\" },\n );\n}\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/enterpriseMccCustomers/index.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAiClC,wEAeC;AAED,sFASC;AAGD,8DAeC;AAED,8FAqBC;AAED,4GASC;AAGD,oFA6BC;AAED,8EAmBC;AAED,4FASC;AAGD,oEAiBC;AAED,8EAeC;AAED,4FASC;AAGD,oEAyBC;AAED,wGAeC;AAED,sHASC;AAGD,8FAqBC;AAED,sGAaC;AAED,oHASC;AAGD,4FAcC;AA/UD,sDAQgC;AAChC,4EAG+C;AAC/C,8EAA8E;AAC9E,yDAKiC;AAGjC,SAAgB,8BAA8B,CAC5C,OAAe,EACf,cAAsB,EACtB,iBAAyB,EACzB,oBAA4B,EAC5B,UAAmD,EAAE,cAAc,EAAE,EAAE,EAAE;IAEzE,OAAO,OAAO;SACX,IAAI,CACH,qJAAqJ,EACrJ,cAAc,EACd,iBAAiB,EACjB,oBAAoB,CACrB;SACA,GAAG,CAAC,EAAE,GAAG,IAAA,iDAAmC,EAAC,OAAO,CAAC,EAAE,CAAC,CAAC;AAC9D,CAAC;AAEM,KAAK,UAAU,qCAAqC,CACzD,MAA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Ac,CACf;SACA,GAAG,CAAC,EAAE,GAAG,IAAA,iDAAmC,EAAC,OAAO,CAAC,EAAE,CAAC,CAAC;AAC9D,CAAC;AAEM,KAAK,UAAU,oDAAoD,CACxE,MAA6B;IAE7B,MAAM,gBAAgB,GAAG,CAAC,KAAK,CAAC,CAAC;IACjC,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;QAC9C,MAAM,IAAA,6BAAe,EAAC,MAAM,CAAC,CAAC;IAChC,CAAC;IAED,OAAO,IAAA,gEAAoD,EAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AAC3E,CAAC;AAED,uGAAuG;AACvG,SAAgB,wCAAwC,CACtD,OAAe,EACf,cAAsB,EACtB,UAAkE;IAChE,cAAc,EAAE,EAAE;CACnB;IAED,OAAO,IAAA,0CAAuB,EAC5B,OAAO,EACP,GAAG,EAAE,CAAC,6CAA6C,CAAC,OAAO,EAAE,cAAc,EAAE,OAAO,CAAC,EACrF,oDAAoD,EACpD,CAAC,KAAK,CAAC,EACP,EAAE,QAAQ,EAAE,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,CAChD,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport {\n ConnectedCacheContext as Client,\n EnterpriseMccCustomersCreateOrUpdateOptionalParams,\n EnterpriseMccCustomersDeleteOptionalParams,\n EnterpriseMccCustomersGetOptionalParams,\n EnterpriseMccCustomersListByResourceGroupOptionalParams,\n EnterpriseMccCustomersListBySubscriptionOptionalParams,\n EnterpriseMccCustomersUpdateOptionalParams,\n} from \"../index.js\";\nimport {\n ConnectedCachePatchResource,\n connectedCachePatchResourceSerializer,\n EnterpriseMccCustomerResource,\n enterpriseMccCustomerResourceSerializer,\n enterpriseMccCustomerResourceDeserializer,\n _EnterpriseMccCustomerResourceListResult,\n _enterpriseMccCustomerResourceListResultDeserializer,\n} from \"../../models/models.js\";\nimport {\n PagedAsyncIterableIterator,\n buildPagedAsyncIterator,\n} from \"../../static-helpers/pagingHelpers.js\";\nimport { getLongRunningPoller } from \"../../static-helpers/pollingHelpers.js\";\nimport {\n StreamableMethod,\n PathUncheckedResponse,\n createRestError,\n operationOptionsToRequestParameters,\n} from \"@azure-rest/core-client\";\nimport { PollerLike, OperationState } from \"@azure/core-lro\";\n\nexport function _enterpriseMccCustomersGetSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n customerResourceName: string,\n options: EnterpriseMccCustomersGetOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/enterpriseMccCustomers/{customerResourceName}\",\n subscriptionId,\n resourceGroupName,\n customerResourceName,\n )\n .get({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _enterpriseMccCustomersGetDeserialize(\n result: PathUncheckedResponse,\n): Promise<EnterpriseMccCustomerResource> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return enterpriseMccCustomerResourceDeserializer(result.body);\n}\n\n/** Gets the enterprise mcc customer resource information using this get call */\nexport async function enterpriseMccCustomersGet(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n customerResourceName: string,\n options: EnterpriseMccCustomersGetOptionalParams = { requestOptions: {} },\n): Promise<EnterpriseMccCustomerResource> {\n const result = await _enterpriseMccCustomersGetSend(\n context,\n subscriptionId,\n resourceGroupName,\n customerResourceName,\n options,\n );\n return _enterpriseMccCustomersGetDeserialize(result);\n}\n\nexport function _enterpriseMccCustomersCreateOrUpdateSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n customerResourceName: string,\n resource: EnterpriseMccCustomerResource,\n options: EnterpriseMccCustomersCreateOrUpdateOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/enterpriseMccCustomers/{customerResourceName}\",\n subscriptionId,\n resourceGroupName,\n customerResourceName,\n )\n .put({\n ...operationOptionsToRequestParameters(options),\n body: enterpriseMccCustomerResourceSerializer(resource),\n });\n}\n\nexport async function _enterpriseMccCustomersCreateOrUpdateDeserialize(\n result: PathUncheckedResponse,\n): Promise<EnterpriseMccCustomerResource> {\n const expectedStatuses = [\"200\", \"201\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return enterpriseMccCustomerResourceDeserializer(result.body);\n}\n\n/** This api creates an enterprise mcc customer with the specified create parameters */\nexport function enterpriseMccCustomersCreateOrUpdate(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n customerResourceName: string,\n resource: EnterpriseMccCustomerResource,\n options: EnterpriseMccCustomersCreateOrUpdateOptionalParams = {\n requestOptions: {},\n },\n): PollerLike<OperationState<EnterpriseMccCustomerResource>, EnterpriseMccCustomerResource> {\n return getLongRunningPoller(\n context,\n _enterpriseMccCustomersCreateOrUpdateDeserialize,\n [\"200\", \"201\"],\n {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _enterpriseMccCustomersCreateOrUpdateSend(\n context,\n subscriptionId,\n resourceGroupName,\n customerResourceName,\n resource,\n options,\n ),\n resourceLocationConfig: \"azure-async-operation\",\n },\n ) as PollerLike<OperationState<EnterpriseMccCustomerResource>, EnterpriseMccCustomerResource>;\n}\n\nexport function _enterpriseMccCustomersUpdateSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n customerResourceName: string,\n properties: ConnectedCachePatchResource,\n options: EnterpriseMccCustomersUpdateOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/enterpriseMccCustomers/{customerResourceName}\",\n subscriptionId,\n resourceGroupName,\n customerResourceName,\n )\n .patch({\n ...operationOptionsToRequestParameters(options),\n body: connectedCachePatchResourceSerializer(properties),\n });\n}\n\nexport async function _enterpriseMccCustomersUpdateDeserialize(\n result: PathUncheckedResponse,\n): Promise<EnterpriseMccCustomerResource> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return enterpriseMccCustomerResourceDeserializer(result.body);\n}\n\n/** This api updates an existing enterprise mcc customer resource */\nexport async function enterpriseMccCustomersUpdate(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n customerResourceName: string,\n properties: ConnectedCachePatchResource,\n options: EnterpriseMccCustomersUpdateOptionalParams = { requestOptions: {} },\n): Promise<EnterpriseMccCustomerResource> {\n const result = await _enterpriseMccCustomersUpdateSend(\n context,\n subscriptionId,\n resourceGroupName,\n customerResourceName,\n properties,\n options,\n );\n return _enterpriseMccCustomersUpdateDeserialize(result);\n}\n\nexport function _enterpriseMccCustomersDeleteSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n customerResourceName: string,\n options: EnterpriseMccCustomersDeleteOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/enterpriseMccCustomers/{customerResourceName}\",\n subscriptionId,\n resourceGroupName,\n customerResourceName,\n )\n .delete({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _enterpriseMccCustomersDeleteDeserialize(\n result: PathUncheckedResponse,\n): Promise<void> {\n const expectedStatuses = [\"202\", \"204\", \"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return;\n}\n\n/** This api deletes an existing enterprise mcc customer resource */\nexport function enterpriseMccCustomersDelete(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n customerResourceName: string,\n options: EnterpriseMccCustomersDeleteOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<void>, void> {\n return getLongRunningPoller(\n context,\n _enterpriseMccCustomersDeleteDeserialize,\n [\"202\", \"204\", \"200\"],\n {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _enterpriseMccCustomersDeleteSend(\n context,\n subscriptionId,\n resourceGroupName,\n customerResourceName,\n options,\n ),\n resourceLocationConfig: \"location\",\n },\n ) as PollerLike<OperationState<void>, void>;\n}\n\nexport function _enterpriseMccCustomersListByResourceGroupSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n options: EnterpriseMccCustomersListByResourceGroupOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/enterpriseMccCustomers\",\n subscriptionId,\n resourceGroupName,\n )\n .get({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _enterpriseMccCustomersListByResourceGroupDeserialize(\n result: PathUncheckedResponse,\n): Promise<_EnterpriseMccCustomerResourceListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return _enterpriseMccCustomerResourceListResultDeserializer(result.body);\n}\n\n/** This api gets the information about all enterprise mcc customer resources under the given subscription and resource group */\nexport function enterpriseMccCustomersListByResourceGroup(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n options: EnterpriseMccCustomersListByResourceGroupOptionalParams = {\n requestOptions: {},\n },\n): PagedAsyncIterableIterator<EnterpriseMccCustomerResource> {\n return buildPagedAsyncIterator(\n context,\n () =>\n _enterpriseMccCustomersListByResourceGroupSend(\n context,\n subscriptionId,\n resourceGroupName,\n options,\n ),\n _enterpriseMccCustomersListByResourceGroupDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\" },\n );\n}\n\nexport function _enterpriseMccCustomersListBySubscriptionSend(\n context: Client,\n subscriptionId: string,\n options: EnterpriseMccCustomersListBySubscriptionOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.ConnectedCache/enterpriseMccCustomers\",\n subscriptionId,\n )\n .get({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _enterpriseMccCustomersListBySubscriptionDeserialize(\n result: PathUncheckedResponse,\n): Promise<_EnterpriseMccCustomerResourceListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return _enterpriseMccCustomerResourceListResultDeserializer(result.body);\n}\n\n/** This api gets information about all enterpriseMccCustomer resources under the given subscription */\nexport function enterpriseMccCustomersListBySubscription(\n context: Client,\n subscriptionId: string,\n options: EnterpriseMccCustomersListBySubscriptionOptionalParams = {\n requestOptions: {},\n },\n): PagedAsyncIterableIterator<EnterpriseMccCustomerResource> {\n return buildPagedAsyncIterator(\n context,\n () => _enterpriseMccCustomersListBySubscriptionSend(context, subscriptionId, options),\n _enterpriseMccCustomersListBySubscriptionDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\" },\n );\n}\n"]}
|
|
@@ -30,7 +30,7 @@ const core_client_1 = require("@azure-rest/core-client");
|
|
|
30
30
|
function _ispCacheNodesOperationsGetSend(context, subscriptionId, resourceGroupName, customerResourceName, cacheNodeResourceName, options = { requestOptions: {} }) {
|
|
31
31
|
return context
|
|
32
32
|
.path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/ispCustomers/{customerResourceName}/ispCacheNodes/{cacheNodeResourceName}", subscriptionId, resourceGroupName, customerResourceName, cacheNodeResourceName)
|
|
33
|
-
.get(
|
|
33
|
+
.get({ ...(0, core_client_1.operationOptionsToRequestParameters)(options) });
|
|
34
34
|
}
|
|
35
35
|
async function _ispCacheNodesOperationsGetDeserialize(result) {
|
|
36
36
|
const expectedStatuses = ["200"];
|
|
@@ -49,7 +49,10 @@ function _ispCacheNodesOperationsCreateOrUpdateSend(context, subscriptionId, res
|
|
|
49
49
|
}) {
|
|
50
50
|
return context
|
|
51
51
|
.path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/ispCustomers/{customerResourceName}/ispCacheNodes/{cacheNodeResourceName}", subscriptionId, resourceGroupName, customerResourceName, cacheNodeResourceName)
|
|
52
|
-
.put(
|
|
52
|
+
.put({
|
|
53
|
+
...(0, core_client_1.operationOptionsToRequestParameters)(options),
|
|
54
|
+
body: (0, models_js_1.ispCacheNodeResourceSerializer)(resource),
|
|
55
|
+
});
|
|
53
56
|
}
|
|
54
57
|
async function _ispCacheNodesOperationsCreateOrUpdateDeserialize(result) {
|
|
55
58
|
const expectedStatuses = ["200", "201"];
|
|
@@ -63,8 +66,8 @@ function ispCacheNodesOperationsCreateOrUpdate(context, subscriptionId, resource
|
|
|
63
66
|
requestOptions: {},
|
|
64
67
|
}) {
|
|
65
68
|
return (0, pollingHelpers_js_1.getLongRunningPoller)(context, _ispCacheNodesOperationsCreateOrUpdateDeserialize, ["200", "201"], {
|
|
66
|
-
updateIntervalInMs: options
|
|
67
|
-
abortSignal: options
|
|
69
|
+
updateIntervalInMs: options?.updateIntervalInMs,
|
|
70
|
+
abortSignal: options?.abortSignal,
|
|
68
71
|
getInitialResponse: () => _ispCacheNodesOperationsCreateOrUpdateSend(context, subscriptionId, resourceGroupName, customerResourceName, cacheNodeResourceName, resource, options),
|
|
69
72
|
resourceLocationConfig: "azure-async-operation",
|
|
70
73
|
});
|
|
@@ -72,7 +75,10 @@ function ispCacheNodesOperationsCreateOrUpdate(context, subscriptionId, resource
|
|
|
72
75
|
function _ispCacheNodesOperationsUpdateSend(context, subscriptionId, resourceGroupName, customerResourceName, cacheNodeResourceName, properties, options = { requestOptions: {} }) {
|
|
73
76
|
return context
|
|
74
77
|
.path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/ispCustomers/{customerResourceName}/ispCacheNodes/{cacheNodeResourceName}", subscriptionId, resourceGroupName, customerResourceName, cacheNodeResourceName)
|
|
75
|
-
.patch(
|
|
78
|
+
.patch({
|
|
79
|
+
...(0, core_client_1.operationOptionsToRequestParameters)(options),
|
|
80
|
+
body: (0, models_js_1.connectedCachePatchResourceSerializer)(properties),
|
|
81
|
+
});
|
|
76
82
|
}
|
|
77
83
|
async function _ispCacheNodesOperationsUpdateDeserialize(result) {
|
|
78
84
|
const expectedStatuses = ["200"];
|
|
@@ -89,7 +95,7 @@ async function ispCacheNodesOperationsUpdate(context, subscriptionId, resourceGr
|
|
|
89
95
|
function _ispCacheNodesOperationsDeleteSend(context, subscriptionId, resourceGroupName, customerResourceName, cacheNodeResourceName, options = { requestOptions: {} }) {
|
|
90
96
|
return context
|
|
91
97
|
.path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/ispCustomers/{customerResourceName}/ispCacheNodes/{cacheNodeResourceName}", subscriptionId, resourceGroupName, customerResourceName, cacheNodeResourceName)
|
|
92
|
-
.delete(
|
|
98
|
+
.delete({ ...(0, core_client_1.operationOptionsToRequestParameters)(options) });
|
|
93
99
|
}
|
|
94
100
|
async function _ispCacheNodesOperationsDeleteDeserialize(result) {
|
|
95
101
|
const expectedStatuses = ["202", "204", "200"];
|
|
@@ -101,8 +107,8 @@ async function _ispCacheNodesOperationsDeleteDeserialize(result) {
|
|
|
101
107
|
/** This api deletes an existing ispCacheNode resource */
|
|
102
108
|
function ispCacheNodesOperationsDelete(context, subscriptionId, resourceGroupName, customerResourceName, cacheNodeResourceName, options = { requestOptions: {} }) {
|
|
103
109
|
return (0, pollingHelpers_js_1.getLongRunningPoller)(context, _ispCacheNodesOperationsDeleteDeserialize, ["202", "204", "200"], {
|
|
104
|
-
updateIntervalInMs: options
|
|
105
|
-
abortSignal: options
|
|
110
|
+
updateIntervalInMs: options?.updateIntervalInMs,
|
|
111
|
+
abortSignal: options?.abortSignal,
|
|
106
112
|
getInitialResponse: () => _ispCacheNodesOperationsDeleteSend(context, subscriptionId, resourceGroupName, customerResourceName, cacheNodeResourceName, options),
|
|
107
113
|
resourceLocationConfig: "location",
|
|
108
114
|
});
|
|
@@ -112,7 +118,7 @@ function _ispCacheNodesOperationsListByIspCustomerResourceSend(context, subscrip
|
|
|
112
118
|
}) {
|
|
113
119
|
return context
|
|
114
120
|
.path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/ispCustomers/{customerResourceName}/ispCacheNodes", subscriptionId, resourceGroupName, customerResourceName)
|
|
115
|
-
.get(
|
|
121
|
+
.get({ ...(0, core_client_1.operationOptionsToRequestParameters)(options) });
|
|
116
122
|
}
|
|
117
123
|
async function _ispCacheNodesOperationsListByIspCustomerResourceDeserialize(result) {
|
|
118
124
|
const expectedStatuses = ["200"];
|
|
@@ -132,7 +138,7 @@ function _ispCacheNodesOperationsGetBgpCidrsSend(context, subscriptionId, resour
|
|
|
132
138
|
}) {
|
|
133
139
|
return context
|
|
134
140
|
.path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/ispCustomers/{customerResourceName}/ispCacheNodes/{cacheNodeResourceName}/getBgpCidrs", subscriptionId, resourceGroupName, customerResourceName, cacheNodeResourceName)
|
|
135
|
-
.post(
|
|
141
|
+
.post({ ...(0, core_client_1.operationOptionsToRequestParameters)(options) });
|
|
136
142
|
}
|
|
137
143
|
async function _ispCacheNodesOperationsGetBgpCidrsDeserialize(result) {
|
|
138
144
|
const expectedStatuses = ["200"];
|
|
@@ -153,7 +159,7 @@ function _ispCacheNodesOperationsGetCacheNodeInstallDetailsSend(context, subscri
|
|
|
153
159
|
}) {
|
|
154
160
|
return context
|
|
155
161
|
.path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/ispCustomers/{customerResourceName}/ispCacheNodes/{cacheNodeResourceName}/getCacheNodeInstallDetails", subscriptionId, resourceGroupName, customerResourceName, cacheNodeResourceName)
|
|
156
|
-
.post(
|
|
162
|
+
.post({ ...(0, core_client_1.operationOptionsToRequestParameters)(options) });
|
|
157
163
|
}
|
|
158
164
|
async function _ispCacheNodesOperationsGetCacheNodeInstallDetailsDeserialize(result) {
|
|
159
165
|
const expectedStatuses = ["200"];
|