@azure/arm-connectedcache 1.0.0-alpha.20250718.1 → 1.0.0-alpha.20250730.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-node.api.md +441 -441
- package/review/arm-connectedcache-node.api.md +723 -723
|
@@ -7,7 +7,7 @@ import { createRestError, operationOptionsToRequestParameters, } from "@azure-re
|
|
|
7
7
|
export function _cacheNodesOperationsGetSend(context, subscriptionId, resourceGroupName, customerResourceName, options = { requestOptions: {} }) {
|
|
8
8
|
return context
|
|
9
9
|
.path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/cacheNodes/{customerResourceName}", subscriptionId, resourceGroupName, customerResourceName)
|
|
10
|
-
.get(
|
|
10
|
+
.get({ ...operationOptionsToRequestParameters(options) });
|
|
11
11
|
}
|
|
12
12
|
export async function _cacheNodesOperationsGetDeserialize(result) {
|
|
13
13
|
const expectedStatuses = ["200"];
|
|
@@ -26,7 +26,10 @@ export function _cacheNodesOperationsCreateorUpdateSend(context, subscriptionId,
|
|
|
26
26
|
}) {
|
|
27
27
|
return context
|
|
28
28
|
.path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/cacheNodes/{customerResourceName}", subscriptionId, resourceGroupName, customerResourceName)
|
|
29
|
-
.put(
|
|
29
|
+
.put({
|
|
30
|
+
...operationOptionsToRequestParameters(options),
|
|
31
|
+
body: cacheNodePreviewResourceSerializer(resource),
|
|
32
|
+
});
|
|
30
33
|
}
|
|
31
34
|
export async function _cacheNodesOperationsCreateorUpdateDeserialize(result) {
|
|
32
35
|
const expectedStatuses = ["200", "201"];
|
|
@@ -40,8 +43,8 @@ export function cacheNodesOperationsCreateorUpdate(context, subscriptionId, reso
|
|
|
40
43
|
requestOptions: {},
|
|
41
44
|
}) {
|
|
42
45
|
return getLongRunningPoller(context, _cacheNodesOperationsCreateorUpdateDeserialize, ["200", "201"], {
|
|
43
|
-
updateIntervalInMs: options
|
|
44
|
-
abortSignal: options
|
|
46
|
+
updateIntervalInMs: options?.updateIntervalInMs,
|
|
47
|
+
abortSignal: options?.abortSignal,
|
|
45
48
|
getInitialResponse: () => _cacheNodesOperationsCreateorUpdateSend(context, subscriptionId, resourceGroupName, customerResourceName, resource, options),
|
|
46
49
|
resourceLocationConfig: "azure-async-operation",
|
|
47
50
|
});
|
|
@@ -49,7 +52,7 @@ export function cacheNodesOperationsCreateorUpdate(context, subscriptionId, reso
|
|
|
49
52
|
export function _cacheNodesOperationsDeleteSend(context, subscriptionId, resourceGroupName, customerResourceName, options = { requestOptions: {} }) {
|
|
50
53
|
return context
|
|
51
54
|
.path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/cacheNodes/{customerResourceName}", subscriptionId, resourceGroupName, customerResourceName)
|
|
52
|
-
.delete(
|
|
55
|
+
.delete({ ...operationOptionsToRequestParameters(options) });
|
|
53
56
|
}
|
|
54
57
|
export async function _cacheNodesOperationsDeleteDeserialize(result) {
|
|
55
58
|
const expectedStatuses = ["200", "204"];
|
|
@@ -66,7 +69,10 @@ export async function cacheNodesOperationsDelete(context, subscriptionId, resour
|
|
|
66
69
|
export function _cacheNodesOperationsUpdateSend(context, subscriptionId, resourceGroupName, customerResourceName, properties, options = { requestOptions: {} }) {
|
|
67
70
|
return context
|
|
68
71
|
.path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/cacheNodes/{customerResourceName}", subscriptionId, resourceGroupName, customerResourceName)
|
|
69
|
-
.patch(
|
|
72
|
+
.patch({
|
|
73
|
+
...operationOptionsToRequestParameters(options),
|
|
74
|
+
body: connectedCachePatchResourceSerializer(properties),
|
|
75
|
+
});
|
|
70
76
|
}
|
|
71
77
|
export async function _cacheNodesOperationsUpdateDeserialize(result) {
|
|
72
78
|
const expectedStatuses = ["200"];
|
|
@@ -85,7 +91,7 @@ export function _cacheNodesOperationsListByResourceGroupSend(context, subscripti
|
|
|
85
91
|
}) {
|
|
86
92
|
return context
|
|
87
93
|
.path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/cacheNodes", subscriptionId, resourceGroupName)
|
|
88
|
-
.get(
|
|
94
|
+
.get({ ...operationOptionsToRequestParameters(options) });
|
|
89
95
|
}
|
|
90
96
|
export async function _cacheNodesOperationsListByResourceGroupDeserialize(result) {
|
|
91
97
|
const expectedStatuses = ["200"];
|
|
@@ -105,7 +111,7 @@ export function _cacheNodesOperationsListBySubscriptionSend(context, subscriptio
|
|
|
105
111
|
}) {
|
|
106
112
|
return context
|
|
107
113
|
.path("/subscriptions/{subscriptionId}/providers/Microsoft.ConnectedCache/cacheNodes", subscriptionId)
|
|
108
|
-
.get(
|
|
114
|
+
.get({ ...operationOptionsToRequestParameters(options) });
|
|
109
115
|
}
|
|
110
116
|
export async function _cacheNodesOperationsListBySubscriptionDeserialize(result) {
|
|
111
117
|
const expectedStatuses = ["200"];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/cacheNodesOperations/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAWlC,OAAO,EAEL,qCAAqC,EAErC,kCAAkC,EAClC,oCAAoC,EAEpC,+CAA+C,GAChD,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAEL,uBAAuB,GACxB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAC9E,OAAO,EAGL,eAAe,EACf,mCAAmC,GACpC,MAAM,yBAAyB,CAAC;AAGjC,MAAM,UAAU,4BAA4B,CAC1C,OAAe,EACf,cAAsB,EACtB,iBAAyB,EACzB,oBAA4B,EAC5B,UAAiD,EAAE,cAAc,EAAE,EAAE,EAAE;IAEvE,OAAO,OAAO;SACX,IAAI,CACH,yIAAyI,EACzI,cAAc,EACd,iBAAiB,EACjB,oBAAoB,CACrB;SACA,GAAG,mBAAM,mC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,CACtE,MAA6B;IAE7B,MAAM,gBAAgB,GAAG,CAAC,KAAK,CAAC,CAAC;IACjC,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;QAC9C,MAAM,eAAe,CAAC,MAAM,CAAC,CAAC;IAChC,CAAC;IAED,OAAO,+CAA+C,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AACtE,CAAC;AAED,sDAAsD;AACtD,MAAM,UAAU,sCAAsC,CACpD,OAAe,EACf,cAAsB,EACtB,UAAgE;IAC9D,cAAc,EAAE,EAAE;CACnB;IAED,OAAO,uBAAuB,CAC5B,OAAO,EACP,GAAG,EAAE,CAAC,2CAA2C,CAAC,OAAO,EAAE,cAAc,EAAE,OAAO,CAAC,EACnF,kDAAkD,EAClD,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 CacheNodesOperationsCreateorUpdateOptionalParams,\n CacheNodesOperationsDeleteOptionalParams,\n CacheNodesOperationsGetOptionalParams,\n CacheNodesOperationsListByResourceGroupOptionalParams,\n CacheNodesOperationsListBySubscriptionOptionalParams,\n CacheNodesOperationsUpdateOptionalParams,\n ConnectedCacheContext as Client,\n} from \"../index.js\";\nimport {\n ConnectedCachePatchResource,\n connectedCachePatchResourceSerializer,\n CacheNodePreviewResource,\n cacheNodePreviewResourceSerializer,\n cacheNodePreviewResourceDeserializer,\n _CacheNodePreviewResourceListResult,\n _cacheNodePreviewResourceListResultDeserializer,\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 _cacheNodesOperationsGetSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n customerResourceName: string,\n options: CacheNodesOperationsGetOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/cacheNodes/{customerResourceName}\",\n subscriptionId,\n resourceGroupName,\n customerResourceName,\n )\n .get({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _cacheNodesOperationsGetDeserialize(\n result: PathUncheckedResponse,\n): Promise<CacheNodePreviewResource> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return cacheNodePreviewResourceDeserializer(result.body);\n}\n\n/** Retrieves the properties of a cacheNodes */\nexport async function cacheNodesOperationsGet(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n customerResourceName: string,\n options: CacheNodesOperationsGetOptionalParams = { requestOptions: {} },\n): Promise<CacheNodePreviewResource> {\n const result = await _cacheNodesOperationsGetSend(\n context,\n subscriptionId,\n resourceGroupName,\n customerResourceName,\n options,\n );\n return _cacheNodesOperationsGetDeserialize(result);\n}\n\nexport function _cacheNodesOperationsCreateorUpdateSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n customerResourceName: string,\n resource: CacheNodePreviewResource,\n options: CacheNodesOperationsCreateorUpdateOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/cacheNodes/{customerResourceName}\",\n subscriptionId,\n resourceGroupName,\n customerResourceName,\n )\n .put({\n ...operationOptionsToRequestParameters(options),\n body: cacheNodePreviewResourceSerializer(resource),\n });\n}\n\nexport async function _cacheNodesOperationsCreateorUpdateDeserialize(\n result: PathUncheckedResponse,\n): Promise<CacheNodePreviewResource> {\n const expectedStatuses = [\"200\", \"201\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return cacheNodePreviewResourceDeserializer(result.body);\n}\n\n/** Creates a cacheNodes with the specified create parameters */\nexport function cacheNodesOperationsCreateorUpdate(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n customerResourceName: string,\n resource: CacheNodePreviewResource,\n options: CacheNodesOperationsCreateorUpdateOptionalParams = {\n requestOptions: {},\n },\n): PollerLike<OperationState<CacheNodePreviewResource>, CacheNodePreviewResource> {\n return getLongRunningPoller(\n context,\n _cacheNodesOperationsCreateorUpdateDeserialize,\n [\"200\", \"201\"],\n {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _cacheNodesOperationsCreateorUpdateSend(\n context,\n subscriptionId,\n resourceGroupName,\n customerResourceName,\n resource,\n options,\n ),\n resourceLocationConfig: \"azure-async-operation\",\n },\n ) as PollerLike<OperationState<CacheNodePreviewResource>, CacheNodePreviewResource>;\n}\n\nexport function _cacheNodesOperationsDeleteSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n customerResourceName: string,\n options: CacheNodesOperationsDeleteOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/cacheNodes/{customerResourceName}\",\n subscriptionId,\n resourceGroupName,\n customerResourceName,\n )\n .delete({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _cacheNodesOperationsDeleteDeserialize(\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 cache Node */\nexport async function cacheNodesOperationsDelete(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n customerResourceName: string,\n options: CacheNodesOperationsDeleteOptionalParams = { requestOptions: {} },\n): Promise<void> {\n const result = await _cacheNodesOperationsDeleteSend(\n context,\n subscriptionId,\n resourceGroupName,\n customerResourceName,\n options,\n );\n return _cacheNodesOperationsDeleteDeserialize(result);\n}\n\nexport function _cacheNodesOperationsUpdateSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n customerResourceName: string,\n properties: ConnectedCachePatchResource,\n options: CacheNodesOperationsUpdateOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/cacheNodes/{customerResourceName}\",\n subscriptionId,\n resourceGroupName,\n customerResourceName,\n )\n .patch({\n ...operationOptionsToRequestParameters(options),\n body: connectedCachePatchResourceSerializer(properties),\n });\n}\n\nexport async function _cacheNodesOperationsUpdateDeserialize(\n result: PathUncheckedResponse,\n): Promise<CacheNodePreviewResource> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return cacheNodePreviewResourceDeserializer(result.body);\n}\n\n/** updates an existing Cache Node */\nexport async function cacheNodesOperationsUpdate(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n customerResourceName: string,\n properties: ConnectedCachePatchResource,\n options: CacheNodesOperationsUpdateOptionalParams = { requestOptions: {} },\n): Promise<CacheNodePreviewResource> {\n const result = await _cacheNodesOperationsUpdateSend(\n context,\n subscriptionId,\n resourceGroupName,\n customerResourceName,\n properties,\n options,\n );\n return _cacheNodesOperationsUpdateDeserialize(result);\n}\n\nexport function _cacheNodesOperationsListByResourceGroupSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n options: CacheNodesOperationsListByResourceGroupOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/cacheNodes\",\n subscriptionId,\n resourceGroupName,\n )\n .get({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _cacheNodesOperationsListByResourceGroupDeserialize(\n result: PathUncheckedResponse,\n): Promise<_CacheNodePreviewResourceListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return _cacheNodePreviewResourceListResultDeserializer(result.body);\n}\n\n/** Retrieves the properties of all ConnectedCache */\nexport function cacheNodesOperationsListByResourceGroup(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n options: CacheNodesOperationsListByResourceGroupOptionalParams = {\n requestOptions: {},\n },\n): PagedAsyncIterableIterator<CacheNodePreviewResource> {\n return buildPagedAsyncIterator(\n context,\n () =>\n _cacheNodesOperationsListByResourceGroupSend(\n context,\n subscriptionId,\n resourceGroupName,\n options,\n ),\n _cacheNodesOperationsListByResourceGroupDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\" },\n );\n}\n\nexport function _cacheNodesOperationsListBySubscriptionSend(\n context: Client,\n subscriptionId: string,\n options: CacheNodesOperationsListBySubscriptionOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.ConnectedCache/cacheNodes\",\n subscriptionId,\n )\n .get({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _cacheNodesOperationsListBySubscriptionDeserialize(\n result: PathUncheckedResponse,\n): Promise<_CacheNodePreviewResourceListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return _cacheNodePreviewResourceListResultDeserializer(result.body);\n}\n\n/** Retrieves the properties of all ConnectedCaches */\nexport function cacheNodesOperationsListBySubscription(\n context: Client,\n subscriptionId: string,\n options: CacheNodesOperationsListBySubscriptionOptionalParams = {\n requestOptions: {},\n },\n): PagedAsyncIterableIterator<CacheNodePreviewResource> {\n return buildPagedAsyncIterator(\n context,\n () => _cacheNodesOperationsListBySubscriptionSend(context, subscriptionId, options),\n _cacheNodesOperationsListBySubscriptionDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\" },\n );\n}\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/cacheNodesOperations/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAWlC,OAAO,EAEL,qCAAqC,EAErC,kCAAkC,EAClC,oCAAoC,EAEpC,+CAA+C,GAChD,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAEL,uBAAuB,GACxB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAC9E,OAAO,EAGL,eAAe,EACf,mCAAmC,GACpC,MAAM,yBAAyB,CAAC;AAGjC,MAAM,UAAU,4BAA4B,CAC1C,OAAe,EACf,cAAsB,EACtB,iBAAyB,EACzB,oBAA4B,EAC5B,UAAiD,EAAE,cAAc,EAAE,EAAE,EAAE;IAEvE,OAAO,OAAO;SACX,IAAI,CACH,yIAAyI,EACzI,cAAc,EACd,iBAAiB,EACjB,oBAAoB,CACrB;SACA,GAAG,CAAC,EAAE,GAAG,mCAAmC,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;AAC9D,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,mCAAmC,CACvD,MAA6B;IAE7B,MAAM,gBAAgB,GAAG,CAAC,KAAK,CAAC,CAAC;IACjC,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;QAC9C,MAAM,eAAe,CAAC,MAAM,CAAC,CAAC;IAChC,CAAC;IAED,OAAO,oCAAoC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AAC3D,CAAC;AAED,+CAA+C;AAC/C,MAAM,CAAC,KAAK,UAAU,uBAAuB,CAC3C,OAAe,EACf,cAAsB,EACtB,iBAAyB,EACzB,oBAA4B,EAC5B,UAAiD,EAAE,cAAc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AAE,cAAc,EAAE,OAAO,CAAC,EACnF,kDAAkD,EAClD,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 CacheNodesOperationsCreateorUpdateOptionalParams,\n CacheNodesOperationsDeleteOptionalParams,\n CacheNodesOperationsGetOptionalParams,\n CacheNodesOperationsListByResourceGroupOptionalParams,\n CacheNodesOperationsListBySubscriptionOptionalParams,\n CacheNodesOperationsUpdateOptionalParams,\n ConnectedCacheContext as Client,\n} from \"../index.js\";\nimport {\n ConnectedCachePatchResource,\n connectedCachePatchResourceSerializer,\n CacheNodePreviewResource,\n cacheNodePreviewResourceSerializer,\n cacheNodePreviewResourceDeserializer,\n _CacheNodePreviewResourceListResult,\n _cacheNodePreviewResourceListResultDeserializer,\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 _cacheNodesOperationsGetSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n customerResourceName: string,\n options: CacheNodesOperationsGetOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/cacheNodes/{customerResourceName}\",\n subscriptionId,\n resourceGroupName,\n customerResourceName,\n )\n .get({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _cacheNodesOperationsGetDeserialize(\n result: PathUncheckedResponse,\n): Promise<CacheNodePreviewResource> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return cacheNodePreviewResourceDeserializer(result.body);\n}\n\n/** Retrieves the properties of a cacheNodes */\nexport async function cacheNodesOperationsGet(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n customerResourceName: string,\n options: CacheNodesOperationsGetOptionalParams = { requestOptions: {} },\n): Promise<CacheNodePreviewResource> {\n const result = await _cacheNodesOperationsGetSend(\n context,\n subscriptionId,\n resourceGroupName,\n customerResourceName,\n options,\n );\n return _cacheNodesOperationsGetDeserialize(result);\n}\n\nexport function _cacheNodesOperationsCreateorUpdateSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n customerResourceName: string,\n resource: CacheNodePreviewResource,\n options: CacheNodesOperationsCreateorUpdateOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/cacheNodes/{customerResourceName}\",\n subscriptionId,\n resourceGroupName,\n customerResourceName,\n )\n .put({\n ...operationOptionsToRequestParameters(options),\n body: cacheNodePreviewResourceSerializer(resource),\n });\n}\n\nexport async function _cacheNodesOperationsCreateorUpdateDeserialize(\n result: PathUncheckedResponse,\n): Promise<CacheNodePreviewResource> {\n const expectedStatuses = [\"200\", \"201\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return cacheNodePreviewResourceDeserializer(result.body);\n}\n\n/** Creates a cacheNodes with the specified create parameters */\nexport function cacheNodesOperationsCreateorUpdate(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n customerResourceName: string,\n resource: CacheNodePreviewResource,\n options: CacheNodesOperationsCreateorUpdateOptionalParams = {\n requestOptions: {},\n },\n): PollerLike<OperationState<CacheNodePreviewResource>, CacheNodePreviewResource> {\n return getLongRunningPoller(\n context,\n _cacheNodesOperationsCreateorUpdateDeserialize,\n [\"200\", \"201\"],\n {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _cacheNodesOperationsCreateorUpdateSend(\n context,\n subscriptionId,\n resourceGroupName,\n customerResourceName,\n resource,\n options,\n ),\n resourceLocationConfig: \"azure-async-operation\",\n },\n ) as PollerLike<OperationState<CacheNodePreviewResource>, CacheNodePreviewResource>;\n}\n\nexport function _cacheNodesOperationsDeleteSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n customerResourceName: string,\n options: CacheNodesOperationsDeleteOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/cacheNodes/{customerResourceName}\",\n subscriptionId,\n resourceGroupName,\n customerResourceName,\n )\n .delete({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _cacheNodesOperationsDeleteDeserialize(\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 cache Node */\nexport async function cacheNodesOperationsDelete(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n customerResourceName: string,\n options: CacheNodesOperationsDeleteOptionalParams = { requestOptions: {} },\n): Promise<void> {\n const result = await _cacheNodesOperationsDeleteSend(\n context,\n subscriptionId,\n resourceGroupName,\n customerResourceName,\n options,\n );\n return _cacheNodesOperationsDeleteDeserialize(result);\n}\n\nexport function _cacheNodesOperationsUpdateSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n customerResourceName: string,\n properties: ConnectedCachePatchResource,\n options: CacheNodesOperationsUpdateOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/cacheNodes/{customerResourceName}\",\n subscriptionId,\n resourceGroupName,\n customerResourceName,\n )\n .patch({\n ...operationOptionsToRequestParameters(options),\n body: connectedCachePatchResourceSerializer(properties),\n });\n}\n\nexport async function _cacheNodesOperationsUpdateDeserialize(\n result: PathUncheckedResponse,\n): Promise<CacheNodePreviewResource> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return cacheNodePreviewResourceDeserializer(result.body);\n}\n\n/** updates an existing Cache Node */\nexport async function cacheNodesOperationsUpdate(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n customerResourceName: string,\n properties: ConnectedCachePatchResource,\n options: CacheNodesOperationsUpdateOptionalParams = { requestOptions: {} },\n): Promise<CacheNodePreviewResource> {\n const result = await _cacheNodesOperationsUpdateSend(\n context,\n subscriptionId,\n resourceGroupName,\n customerResourceName,\n properties,\n options,\n );\n return _cacheNodesOperationsUpdateDeserialize(result);\n}\n\nexport function _cacheNodesOperationsListByResourceGroupSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n options: CacheNodesOperationsListByResourceGroupOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/cacheNodes\",\n subscriptionId,\n resourceGroupName,\n )\n .get({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _cacheNodesOperationsListByResourceGroupDeserialize(\n result: PathUncheckedResponse,\n): Promise<_CacheNodePreviewResourceListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return _cacheNodePreviewResourceListResultDeserializer(result.body);\n}\n\n/** Retrieves the properties of all ConnectedCache */\nexport function cacheNodesOperationsListByResourceGroup(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n options: CacheNodesOperationsListByResourceGroupOptionalParams = {\n requestOptions: {},\n },\n): PagedAsyncIterableIterator<CacheNodePreviewResource> {\n return buildPagedAsyncIterator(\n context,\n () =>\n _cacheNodesOperationsListByResourceGroupSend(\n context,\n subscriptionId,\n resourceGroupName,\n options,\n ),\n _cacheNodesOperationsListByResourceGroupDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\" },\n );\n}\n\nexport function _cacheNodesOperationsListBySubscriptionSend(\n context: Client,\n subscriptionId: string,\n options: CacheNodesOperationsListBySubscriptionOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.ConnectedCache/cacheNodes\",\n subscriptionId,\n )\n .get({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _cacheNodesOperationsListBySubscriptionDeserialize(\n result: PathUncheckedResponse,\n): Promise<_CacheNodePreviewResourceListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return _cacheNodePreviewResourceListResultDeserializer(result.body);\n}\n\n/** Retrieves the properties of all ConnectedCaches */\nexport function cacheNodesOperationsListBySubscription(\n context: Client,\n subscriptionId: string,\n options: CacheNodesOperationsListBySubscriptionOptionalParams = {\n requestOptions: {},\n },\n): PagedAsyncIterableIterator<CacheNodePreviewResource> {\n return buildPagedAsyncIterator(\n context,\n () => _cacheNodesOperationsListBySubscriptionSend(context, subscriptionId, options),\n _cacheNodesOperationsListBySubscriptionDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\" },\n );\n}\n"]}
|
|
@@ -1,23 +1,26 @@
|
|
|
1
1
|
// Copyright (c) Microsoft Corporation.
|
|
2
2
|
// Licensed under the MIT License.
|
|
3
|
-
import { __rest } from "tslib";
|
|
4
3
|
import { logger } from "../logger.js";
|
|
5
4
|
import { getClient } from "@azure-rest/core-client";
|
|
6
5
|
/** Microsoft Connected Cache Rest Api version 2023-05-01-preview */
|
|
7
6
|
export function createConnectedCache(credential, options = {}) {
|
|
8
|
-
|
|
9
|
-
const
|
|
10
|
-
const prefixFromOptions = (_c = options === null || options === void 0 ? void 0 : options.userAgentOptions) === null || _c === void 0 ? void 0 : _c.userAgentPrefix;
|
|
7
|
+
const endpointUrl = options.endpoint ?? options.baseUrl ?? `https://management.azure.com`;
|
|
8
|
+
const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix;
|
|
11
9
|
const userAgentInfo = `azsdk-js-arm-connectedcache/1.0.0-beta.1`;
|
|
12
10
|
const userAgentPrefix = prefixFromOptions
|
|
13
11
|
? `${prefixFromOptions} azsdk-js-api ${userAgentInfo}`
|
|
14
12
|
: `azsdk-js-api ${userAgentInfo}`;
|
|
15
|
-
const
|
|
16
|
-
|
|
17
|
-
|
|
13
|
+
const { apiVersion: _, ...updatedOptions } = {
|
|
14
|
+
...options,
|
|
15
|
+
userAgentOptions: { userAgentPrefix },
|
|
16
|
+
loggingOptions: { logger: options.loggingOptions?.logger ?? logger.info },
|
|
17
|
+
credentials: {
|
|
18
|
+
scopes: options.credentials?.scopes ?? [`${endpointUrl}/.default`],
|
|
19
|
+
},
|
|
20
|
+
};
|
|
18
21
|
const clientContext = getClient(endpointUrl, credential, updatedOptions);
|
|
19
22
|
clientContext.pipeline.removePolicy({ name: "ApiVersionPolicy" });
|
|
20
|
-
const apiVersion =
|
|
23
|
+
const apiVersion = options.apiVersion ?? "2023-05-01-preview";
|
|
21
24
|
clientContext.pipeline.addPolicy({
|
|
22
25
|
name: "ClientApiVersionPolicy",
|
|
23
26
|
sendRequest: (req, next) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connectedCacheContext.js","sourceRoot":"","sources":["../../../src/api/connectedCacheContext.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC
|
|
1
|
+
{"version":3,"file":"connectedCacheContext.js","sourceRoot":"","sources":["../../../src/api/connectedCacheContext.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAEtC,OAAO,EAAyB,SAAS,EAAE,MAAM,yBAAyB,CAAC;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AC,GAAG,CAAC,aAAa,CAAC,EAAE,CAAC;gBACzC,GAAG,CAAC,GAAG,GAAG,GAAG,GAAG,CAAC,GAAG,GAClB,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GACzD,eAAe,UAAU,EAAE,CAAC;YAC9B,CAAC;YAED,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC;QACnB,CAAC;KACF,CAAC,CAAC;IACH,OAAO,aAAa,CAAC;AACvB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { logger } from \"../logger.js\";\nimport { KnownVersions } from \"../models/models.js\";\nimport { Client, ClientOptions, getClient } from \"@azure-rest/core-client\";\nimport { TokenCredential } from \"@azure/core-auth\";\n\n/** Microsoft Connected Cache Rest Api version 2023-05-01-preview */\nexport interface ConnectedCacheContext extends Client {}\n\n/** Optional parameters for the client. */\nexport interface ConnectedCacheClientOptionalParams extends ClientOptions {\n /** The API version to use for this operation. */\n /** Known values of {@link KnownVersions} that the service accepts. */\n apiVersion?: string;\n}\n\n/** Microsoft Connected Cache Rest Api version 2023-05-01-preview */\nexport function createConnectedCache(\n credential: TokenCredential,\n options: ConnectedCacheClientOptionalParams = {},\n): ConnectedCacheContext {\n const endpointUrl = options.endpoint ?? options.baseUrl ?? `https://management.azure.com`;\n const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix;\n const userAgentInfo = `azsdk-js-arm-connectedcache/1.0.0-beta.1`;\n const userAgentPrefix = prefixFromOptions\n ? `${prefixFromOptions} azsdk-js-api ${userAgentInfo}`\n : `azsdk-js-api ${userAgentInfo}`;\n const { apiVersion: _, ...updatedOptions } = {\n ...options,\n userAgentOptions: { userAgentPrefix },\n loggingOptions: { logger: options.loggingOptions?.logger ?? logger.info },\n credentials: {\n scopes: options.credentials?.scopes ?? [`${endpointUrl}/.default`],\n },\n };\n const clientContext = getClient(endpointUrl, credential, updatedOptions);\n clientContext.pipeline.removePolicy({ name: \"ApiVersionPolicy\" });\n const apiVersion = options.apiVersion ?? \"2023-05-01-preview\";\n clientContext.pipeline.addPolicy({\n name: \"ClientApiVersionPolicy\",\n sendRequest: (req, next) => {\n // Use the apiVersion defined in request url directly\n // Append one if there is no apiVersion and we have one at client options\n const url = new URL(req.url);\n if (!url.searchParams.get(\"api-version\")) {\n req.url = `${req.url}${\n Array.from(url.searchParams.keys()).length > 0 ? \"&\" : \"?\"\n }api-version=${apiVersion}`;\n }\n\n return next(req);\n },\n });\n return clientContext;\n}\n"]}
|
|
@@ -9,7 +9,7 @@ export function _enterpriseCustomerOperationsGetSend(context, subscriptionId, re
|
|
|
9
9
|
}) {
|
|
10
10
|
return context
|
|
11
11
|
.path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/enterpriseCustomers/{customerResourceName}", subscriptionId, resourceGroupName, customerResourceName)
|
|
12
|
-
.get(
|
|
12
|
+
.get({ ...operationOptionsToRequestParameters(options) });
|
|
13
13
|
}
|
|
14
14
|
export async function _enterpriseCustomerOperationsGetDeserialize(result) {
|
|
15
15
|
const expectedStatuses = ["200"];
|
|
@@ -30,7 +30,10 @@ export function _enterpriseCustomerOperationsCreateOrUpdateSend(context, subscri
|
|
|
30
30
|
}) {
|
|
31
31
|
return context
|
|
32
32
|
.path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/enterpriseCustomers/{customerResourceName}", subscriptionId, resourceGroupName, customerResourceName)
|
|
33
|
-
.put(
|
|
33
|
+
.put({
|
|
34
|
+
...operationOptionsToRequestParameters(options),
|
|
35
|
+
body: enterprisePreviewResourceSerializer(resource),
|
|
36
|
+
});
|
|
34
37
|
}
|
|
35
38
|
export async function _enterpriseCustomerOperationsCreateOrUpdateDeserialize(result) {
|
|
36
39
|
const expectedStatuses = ["200", "201"];
|
|
@@ -44,8 +47,8 @@ export function enterpriseCustomerOperationsCreateOrUpdate(context, subscription
|
|
|
44
47
|
requestOptions: {},
|
|
45
48
|
}) {
|
|
46
49
|
return getLongRunningPoller(context, _enterpriseCustomerOperationsCreateOrUpdateDeserialize, ["200", "201"], {
|
|
47
|
-
updateIntervalInMs: options
|
|
48
|
-
abortSignal: options
|
|
50
|
+
updateIntervalInMs: options?.updateIntervalInMs,
|
|
51
|
+
abortSignal: options?.abortSignal,
|
|
49
52
|
getInitialResponse: () => _enterpriseCustomerOperationsCreateOrUpdateSend(context, subscriptionId, resourceGroupName, customerResourceName, resource, options),
|
|
50
53
|
resourceLocationConfig: "azure-async-operation",
|
|
51
54
|
});
|
|
@@ -55,7 +58,10 @@ export function _enterpriseCustomerOperationsUpdateSend(context, subscriptionId,
|
|
|
55
58
|
}) {
|
|
56
59
|
return context
|
|
57
60
|
.path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/enterpriseCustomers/{customerResourceName}", subscriptionId, resourceGroupName, customerResourceName)
|
|
58
|
-
.patch(
|
|
61
|
+
.patch({
|
|
62
|
+
...operationOptionsToRequestParameters(options),
|
|
63
|
+
body: connectedCachePatchResourceSerializer(properties),
|
|
64
|
+
});
|
|
59
65
|
}
|
|
60
66
|
export async function _enterpriseCustomerOperationsUpdateDeserialize(result) {
|
|
61
67
|
const expectedStatuses = ["200"];
|
|
@@ -76,7 +82,7 @@ export function _enterpriseCustomerOperationsDeleteSend(context, subscriptionId,
|
|
|
76
82
|
}) {
|
|
77
83
|
return context
|
|
78
84
|
.path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/enterpriseCustomers/{customerResourceName}", subscriptionId, resourceGroupName, customerResourceName)
|
|
79
|
-
.delete(
|
|
85
|
+
.delete({ ...operationOptionsToRequestParameters(options) });
|
|
80
86
|
}
|
|
81
87
|
export async function _enterpriseCustomerOperationsDeleteDeserialize(result) {
|
|
82
88
|
const expectedStatuses = ["200", "204"];
|
|
@@ -97,7 +103,7 @@ export function _enterpriseCustomerOperationsListByResourceGroupSend(context, su
|
|
|
97
103
|
}) {
|
|
98
104
|
return context
|
|
99
105
|
.path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/enterpriseCustomers", subscriptionId, resourceGroupName)
|
|
100
|
-
.get(
|
|
106
|
+
.get({ ...operationOptionsToRequestParameters(options) });
|
|
101
107
|
}
|
|
102
108
|
export async function _enterpriseCustomerOperationsListByResourceGroupDeserialize(result) {
|
|
103
109
|
const expectedStatuses = ["200"];
|
|
@@ -117,7 +123,7 @@ export function _enterpriseCustomerOperationsListBySubscriptionSend(context, sub
|
|
|
117
123
|
}) {
|
|
118
124
|
return context
|
|
119
125
|
.path("/subscriptions/{subscriptionId}/providers/Microsoft.ConnectedCache/enterpriseCustomers", subscriptionId)
|
|
120
|
-
.get(
|
|
126
|
+
.get({ ...operationOptionsToRequestParameters(options) });
|
|
121
127
|
}
|
|
122
128
|
export async function _enterpriseCustomerOperationsListBySubscriptionDeserialize(result) {
|
|
123
129
|
const expectedStatuses = ["200"];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/enterpriseCustomerOperations/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAWlC,OAAO,EAEL,qCAAqC,EAErC,mCAAmC,EACnC,qCAAqC,EAErC,gDAAgD,GACjD,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAEL,uBAAuB,GACxB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAC9E,OAAO,EAGL,eAAe,EACf,mCAAmC,GACpC,MAAM,yBAAyB,CAAC;AAGjC,MAAM,UAAU,oCAAoC,CAClD,OAAe,EACf,cAAsB,EACtB,iBAAyB,EACzB,oBAA4B,EAC5B,UAAyD;IACvD,cA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,EACxF,cAAc,CACf;SACA,GAAG,mBAAM,mCAAmC,CAAC,OAAO,CAAC,EAAG,CAAC;AAC9D,CAAC;AAED,MAAM,CAAC,KAAK,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,eAAe,CAAC,MAAM,CAAC,CAAC;IAChC,CAAC;IAED,OAAO,gDAAgD,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AACvE,CAAC;AAED,sDAAsD;AACtD,MAAM,UAAU,8CAA8C,CAC5D,OAAe,EACf,cAAsB,EACtB,UAAwE;IACtE,cAAc,EAAE,EAAE;CACnB;IAED,OAAO,uBAAuB,CAC5B,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;AAWlC,OAAO,EAEL,qCAAqC,EAErC,mCAAmC,EACnC,qCAAqC,EAErC,gDAAgD,GACjD,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAEL,uBAAuB,GACxB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAC9E,OAAO,EAGL,eAAe,EACf,mCAAmC,GACpC,MAAM,yBAAyB,CAAC;AAGjC,MAAM,UAAU,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,mCAAmC,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;AAC9D,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,2CAA2C,CAC/D,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IACjC,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;QAC9C,MAAM,eAAe,CAAC,MAAM,CAAC,CAAC;IAChC,CAAC;IAED,OAAO,gDAAgD,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AACvE,CAAC;AAED,sDAAsD;AACtD,MAAM,UAAU,8CAA8C,CAC5D,OAAe,EACf,cAAsB,EACtB,UAAwE;IACtE,cAAc,EAAE,EAAE;CACnB;IAED,OAAO,uBAAuB,CAC5B,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"]}
|
|
@@ -9,7 +9,7 @@ export function _enterpriseMccCacheNodesOperationsGetSend(context, subscriptionI
|
|
|
9
9
|
}) {
|
|
10
10
|
return context
|
|
11
11
|
.path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/enterpriseMccCustomers/{customerResourceName}/enterpriseMccCacheNodes/{cacheNodeResourceName}", subscriptionId, resourceGroupName, customerResourceName, cacheNodeResourceName)
|
|
12
|
-
.get(
|
|
12
|
+
.get({ ...operationOptionsToRequestParameters(options) });
|
|
13
13
|
}
|
|
14
14
|
export async function _enterpriseMccCacheNodesOperationsGetDeserialize(result) {
|
|
15
15
|
const expectedStatuses = ["200"];
|
|
@@ -30,7 +30,10 @@ export function _enterpriseMccCacheNodesOperationsCreateOrUpdateSend(context, su
|
|
|
30
30
|
}) {
|
|
31
31
|
return context
|
|
32
32
|
.path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/enterpriseMccCustomers/{customerResourceName}/enterpriseMccCacheNodes/{cacheNodeResourceName}", subscriptionId, resourceGroupName, customerResourceName, cacheNodeResourceName)
|
|
33
|
-
.put(
|
|
33
|
+
.put({
|
|
34
|
+
...operationOptionsToRequestParameters(options),
|
|
35
|
+
body: enterpriseMccCacheNodeResourceSerializer(resource),
|
|
36
|
+
});
|
|
34
37
|
}
|
|
35
38
|
export async function _enterpriseMccCacheNodesOperationsCreateOrUpdateDeserialize(result) {
|
|
36
39
|
const expectedStatuses = ["200", "201"];
|
|
@@ -44,8 +47,8 @@ export function enterpriseMccCacheNodesOperationsCreateOrUpdate(context, subscri
|
|
|
44
47
|
requestOptions: {},
|
|
45
48
|
}) {
|
|
46
49
|
return getLongRunningPoller(context, _enterpriseMccCacheNodesOperationsCreateOrUpdateDeserialize, ["200", "201"], {
|
|
47
|
-
updateIntervalInMs: options
|
|
48
|
-
abortSignal: options
|
|
50
|
+
updateIntervalInMs: options?.updateIntervalInMs,
|
|
51
|
+
abortSignal: options?.abortSignal,
|
|
49
52
|
getInitialResponse: () => _enterpriseMccCacheNodesOperationsCreateOrUpdateSend(context, subscriptionId, resourceGroupName, customerResourceName, cacheNodeResourceName, resource, options),
|
|
50
53
|
resourceLocationConfig: "azure-async-operation",
|
|
51
54
|
});
|
|
@@ -55,7 +58,10 @@ export function _enterpriseMccCacheNodesOperationsUpdateSend(context, subscripti
|
|
|
55
58
|
}) {
|
|
56
59
|
return context
|
|
57
60
|
.path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/enterpriseMccCustomers/{customerResourceName}/enterpriseMccCacheNodes/{cacheNodeResourceName}", subscriptionId, resourceGroupName, customerResourceName, cacheNodeResourceName)
|
|
58
|
-
.patch(
|
|
61
|
+
.patch({
|
|
62
|
+
...operationOptionsToRequestParameters(options),
|
|
63
|
+
body: connectedCachePatchResourceSerializer(properties),
|
|
64
|
+
});
|
|
59
65
|
}
|
|
60
66
|
export async function _enterpriseMccCacheNodesOperationsUpdateDeserialize(result) {
|
|
61
67
|
const expectedStatuses = ["200"];
|
|
@@ -76,7 +82,7 @@ export function _enterpriseMccCacheNodesOperationsDeleteSend(context, subscripti
|
|
|
76
82
|
}) {
|
|
77
83
|
return context
|
|
78
84
|
.path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/enterpriseMccCustomers/{customerResourceName}/enterpriseMccCacheNodes/{cacheNodeResourceName}", subscriptionId, resourceGroupName, customerResourceName, cacheNodeResourceName)
|
|
79
|
-
.delete(
|
|
85
|
+
.delete({ ...operationOptionsToRequestParameters(options) });
|
|
80
86
|
}
|
|
81
87
|
export async function _enterpriseMccCacheNodesOperationsDeleteDeserialize(result) {
|
|
82
88
|
const expectedStatuses = ["202", "204", "200"];
|
|
@@ -90,8 +96,8 @@ export function enterpriseMccCacheNodesOperationsDelete(context, subscriptionId,
|
|
|
90
96
|
requestOptions: {},
|
|
91
97
|
}) {
|
|
92
98
|
return getLongRunningPoller(context, _enterpriseMccCacheNodesOperationsDeleteDeserialize, ["202", "204", "200"], {
|
|
93
|
-
updateIntervalInMs: options
|
|
94
|
-
abortSignal: options
|
|
99
|
+
updateIntervalInMs: options?.updateIntervalInMs,
|
|
100
|
+
abortSignal: options?.abortSignal,
|
|
95
101
|
getInitialResponse: () => _enterpriseMccCacheNodesOperationsDeleteSend(context, subscriptionId, resourceGroupName, customerResourceName, cacheNodeResourceName, options),
|
|
96
102
|
resourceLocationConfig: "location",
|
|
97
103
|
});
|
|
@@ -101,7 +107,7 @@ export function _enterpriseMccCacheNodesOperationsListByEnterpriseMccCustomerRes
|
|
|
101
107
|
}) {
|
|
102
108
|
return context
|
|
103
109
|
.path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/enterpriseMccCustomers/{customerResourceName}/enterpriseMccCacheNodes", subscriptionId, resourceGroupName, customerResourceName)
|
|
104
|
-
.get(
|
|
110
|
+
.get({ ...operationOptionsToRequestParameters(options) });
|
|
105
111
|
}
|
|
106
112
|
export async function _enterpriseMccCacheNodesOperationsListByEnterpriseMccCustomerResourceDeserialize(result) {
|
|
107
113
|
const expectedStatuses = ["200"];
|
|
@@ -121,7 +127,7 @@ export function _enterpriseMccCacheNodesOperationsGetCacheNodeInstallDetailsSend
|
|
|
121
127
|
}) {
|
|
122
128
|
return context
|
|
123
129
|
.path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/enterpriseMccCustomers/{customerResourceName}/enterpriseMccCacheNodes/{cacheNodeResourceName}/getCacheNodeInstallDetails", subscriptionId, resourceGroupName, customerResourceName, cacheNodeResourceName)
|
|
124
|
-
.post(
|
|
130
|
+
.post({ ...operationOptionsToRequestParameters(options) });
|
|
125
131
|
}
|
|
126
132
|
export async function _enterpriseMccCacheNodesOperationsGetCacheNodeInstallDetailsDeserialize(result) {
|
|
127
133
|
const expectedStatuses = ["200"];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/enterpriseMccCacheNodesOperations/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAWlC,OAAO,EAEL,wCAAwC,EACxC,0CAA0C,EAE1C,qCAAqC,EAErC,qDAAqD,EAErD,sCAAsC,GACvC,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAEL,uBAAuB,GACxB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAC9E,OAAO,EAGL,eAAe,EACf,mCAAmC,GACpC,MAAM,yBAAyB,CAAC;AAGjC,MAAM,UAAU,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,mCAAmC,CAAC,OAAO,CAAC,EAAG,CAAC;AAC9D,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,gDAAgD,CACpE,MAA6B;IAE7B,MAAM,gBAAgB,GAAG,CAAC,KAAK,CAAC,CAAC;IACjC,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;QAC9C,MAAM,eAA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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,mCAAmC,CAAC,OAAO,CAAC,EAAG,CAAC;AAC/D,CAAC;AAED,MAAM,CAAC,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,eAAe,CAAC,MAAM,CAAC,CAAC;IAChC,CAAC;IAED,OAAO,sCAAsC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AAC7D,CAAC;AAED,yEAAyE;AACzE,MAAM,CAAC,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;AAWlC,OAAO,EAEL,wCAAwC,EACxC,0CAA0C,EAE1C,qCAAqC,EAErC,qDAAqD,EAErD,sCAAsC,GACvC,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAEL,uBAAuB,GACxB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,oBAAoB,EAAE,MA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AAK,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"]}
|