@azure/arm-kubernetesconfiguration 6.1.1-alpha.20250718.1 → 6.1.1-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/lroImpl.js +7 -3
- package/dist/browser/lroImpl.js.map +1 -1
- package/dist/browser/models/mappers.js +116 -56
- package/dist/browser/models/mappers.js.map +1 -1
- package/dist/browser/operations/extensions.js +56 -58
- package/dist/browser/operations/extensions.js.map +1 -1
- package/dist/browser/operations/fluxConfigOperationStatus.js +1 -0
- package/dist/browser/operations/fluxConfigOperationStatus.js.map +1 -1
- package/dist/browser/operations/fluxConfigurations.js +56 -58
- package/dist/browser/operations/fluxConfigurations.js.map +1 -1
- package/dist/browser/operations/operationStatus.js +23 -40
- package/dist/browser/operations/operationStatus.js.map +1 -1
- package/dist/browser/operations/operations.js +23 -40
- package/dist/browser/operations/operations.js.map +1 -1
- package/dist/browser/operations/sourceControlConfigurations.js +34 -46
- package/dist/browser/operations/sourceControlConfigurations.js.map +1 -1
- package/dist/browser/pagingHelper.js +2 -4
- package/dist/browser/pagingHelper.js.map +1 -1
- package/dist/browser/sourceControlConfigurationClient.js +19 -5
- package/dist/browser/sourceControlConfigurationClient.js.map +1 -1
- package/dist/commonjs/lroImpl.js +7 -3
- package/dist/commonjs/lroImpl.js.map +1 -1
- package/dist/commonjs/models/mappers.js +116 -56
- package/dist/commonjs/models/mappers.js.map +1 -1
- package/dist/commonjs/operations/extensions.js +56 -57
- package/dist/commonjs/operations/extensions.js.map +1 -1
- package/dist/commonjs/operations/fluxConfigOperationStatus.js +1 -0
- package/dist/commonjs/operations/fluxConfigOperationStatus.js.map +1 -1
- package/dist/commonjs/operations/fluxConfigurations.js +56 -57
- package/dist/commonjs/operations/fluxConfigurations.js.map +1 -1
- package/dist/commonjs/operations/operationStatus.js +23 -39
- package/dist/commonjs/operations/operationStatus.js.map +1 -1
- package/dist/commonjs/operations/operations.js +23 -39
- package/dist/commonjs/operations/operations.js.map +1 -1
- package/dist/commonjs/operations/sourceControlConfigurations.js +34 -45
- package/dist/commonjs/operations/sourceControlConfigurations.js.map +1 -1
- package/dist/commonjs/pagingHelper.js +2 -4
- package/dist/commonjs/pagingHelper.js.map +1 -1
- package/dist/commonjs/sourceControlConfigurationClient.js +19 -5
- package/dist/commonjs/sourceControlConfigurationClient.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +1 -1
- package/dist/esm/lroImpl.js +7 -3
- package/dist/esm/lroImpl.js.map +1 -1
- package/dist/esm/models/mappers.js +116 -56
- package/dist/esm/models/mappers.js.map +1 -1
- package/dist/esm/operations/extensions.js +56 -58
- package/dist/esm/operations/extensions.js.map +1 -1
- package/dist/esm/operations/fluxConfigOperationStatus.js +1 -0
- package/dist/esm/operations/fluxConfigOperationStatus.js.map +1 -1
- package/dist/esm/operations/fluxConfigurations.js +56 -58
- package/dist/esm/operations/fluxConfigurations.js.map +1 -1
- package/dist/esm/operations/operationStatus.js +23 -40
- package/dist/esm/operations/operationStatus.js.map +1 -1
- package/dist/esm/operations/operations.js +23 -40
- package/dist/esm/operations/operations.js.map +1 -1
- package/dist/esm/operations/sourceControlConfigurations.js +34 -46
- package/dist/esm/operations/sourceControlConfigurations.js.map +1 -1
- package/dist/esm/pagingHelper.js +2 -4
- package/dist/esm/pagingHelper.js.map +1 -1
- package/dist/esm/sourceControlConfigurationClient.js +19 -5
- package/dist/esm/sourceControlConfigurationClient.js.map +1 -1
- package/dist/react-native/lroImpl.js +7 -3
- package/dist/react-native/lroImpl.js.map +1 -1
- package/dist/react-native/models/mappers.js +116 -56
- package/dist/react-native/models/mappers.js.map +1 -1
- package/dist/react-native/operations/extensions.js +56 -58
- package/dist/react-native/operations/extensions.js.map +1 -1
- package/dist/react-native/operations/fluxConfigOperationStatus.js +1 -0
- package/dist/react-native/operations/fluxConfigOperationStatus.js.map +1 -1
- package/dist/react-native/operations/fluxConfigurations.js +56 -58
- package/dist/react-native/operations/fluxConfigurations.js.map +1 -1
- package/dist/react-native/operations/operationStatus.js +23 -40
- package/dist/react-native/operations/operationStatus.js.map +1 -1
- package/dist/react-native/operations/operations.js +23 -40
- package/dist/react-native/operations/operations.js.map +1 -1
- package/dist/react-native/operations/sourceControlConfigurations.js +34 -46
- package/dist/react-native/operations/sourceControlConfigurations.js.map +1 -1
- package/dist/react-native/pagingHelper.js +2 -4
- package/dist/react-native/pagingHelper.js.map +1 -1
- package/dist/react-native/sourceControlConfigurationClient.js +19 -5
- package/dist/react-native/sourceControlConfigurationClient.js.map +1 -1
- package/package.json +2 -2
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
|
-
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
|
9
8
|
import { setContinuationToken } from "../pagingHelper.js";
|
|
10
9
|
import * as coreClient from "@azure/core-client";
|
|
11
10
|
import * as Mappers from "../models/mappers.js";
|
|
@@ -13,6 +12,7 @@ import * as Parameters from "../models/parameters.js";
|
|
|
13
12
|
/// <reference lib="esnext.asynciterable" />
|
|
14
13
|
/** Class containing OperationStatus operations. */
|
|
15
14
|
export class OperationStatusImpl {
|
|
15
|
+
client;
|
|
16
16
|
/**
|
|
17
17
|
* Initialize a new instance of the class OperationStatus class.
|
|
18
18
|
* @param client Reference to the service client
|
|
@@ -40,52 +40,35 @@ export class OperationStatusImpl {
|
|
|
40
40
|
return this;
|
|
41
41
|
},
|
|
42
42
|
byPage: (settings) => {
|
|
43
|
-
if (settings
|
|
43
|
+
if (settings?.maxPageSize) {
|
|
44
44
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
45
45
|
}
|
|
46
46
|
return this.listPagingPage(resourceGroupName, clusterRp, clusterResourceName, clusterName, options, settings);
|
|
47
47
|
}
|
|
48
48
|
};
|
|
49
49
|
}
|
|
50
|
-
listPagingPage(resourceGroupName, clusterRp, clusterResourceName, clusterName, options, settings) {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
}
|
|
68
|
-
});
|
|
50
|
+
async *listPagingPage(resourceGroupName, clusterRp, clusterResourceName, clusterName, options, settings) {
|
|
51
|
+
let result;
|
|
52
|
+
let continuationToken = settings?.continuationToken;
|
|
53
|
+
if (!continuationToken) {
|
|
54
|
+
result = await this._list(resourceGroupName, clusterRp, clusterResourceName, clusterName, options);
|
|
55
|
+
let page = result.value || [];
|
|
56
|
+
continuationToken = result.nextLink;
|
|
57
|
+
setContinuationToken(page, continuationToken);
|
|
58
|
+
yield page;
|
|
59
|
+
}
|
|
60
|
+
while (continuationToken) {
|
|
61
|
+
result = await this._listNext(resourceGroupName, clusterRp, clusterResourceName, clusterName, continuationToken, options);
|
|
62
|
+
continuationToken = result.nextLink;
|
|
63
|
+
let page = result.value || [];
|
|
64
|
+
setContinuationToken(page, continuationToken);
|
|
65
|
+
yield page;
|
|
66
|
+
}
|
|
69
67
|
}
|
|
70
|
-
listPagingAll(resourceGroupName, clusterRp, clusterResourceName, clusterName, options) {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
for (var _d = true, _e = __asyncValues(this.listPagingPage(resourceGroupName, clusterRp, clusterResourceName, clusterName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
75
|
-
_c = _f.value;
|
|
76
|
-
_d = false;
|
|
77
|
-
const page = _c;
|
|
78
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
82
|
-
finally {
|
|
83
|
-
try {
|
|
84
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
85
|
-
}
|
|
86
|
-
finally { if (e_1) throw e_1.error; }
|
|
87
|
-
}
|
|
88
|
-
});
|
|
68
|
+
async *listPagingAll(resourceGroupName, clusterRp, clusterResourceName, clusterName, options) {
|
|
69
|
+
for await (const page of this.listPagingPage(resourceGroupName, clusterRp, clusterResourceName, clusterName, options)) {
|
|
70
|
+
yield* page;
|
|
71
|
+
}
|
|
89
72
|
}
|
|
90
73
|
/**
|
|
91
74
|
* Get Async Operation status
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operationStatus.js","sourceRoot":"","sources":["../../../src/operations/operationStatus.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAYtD,4CAA4C;AAC5C,mDAAmD;AACnD,MAAM,OAAO,mBAAmB;IAG9B;;;OAGG;IACH,YAAY,MAAwC;QAClD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;;;OASG;IACI,IAAI,CACT,iBAAyB,EACzB,SAAiB,EACjB,mBAA2B,EAC3B,WAAmB,EACnB,OAA2C;QAE3C,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAC7B,iBAAiB,EACjB,SAAS,EACT,mBAAmB,EACnB,WAAW,EACX,OAAO,CACR,CAAC;QACF,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,aAAR,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AI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,mBAAmB;SACxC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,SAAS;QACpB,UAAU,CAAC,mBAAmB;QAC9B,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { OperationStatus } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { SourceControlConfigurationClient } from \"../sourceControlConfigurationClient.js\";\nimport {\n OperationStatusResult,\n OperationStatusListNextOptionalParams,\n OperationStatusListOptionalParams,\n OperationStatusListResponse,\n OperationStatusGetOptionalParams,\n OperationStatusGetResponse,\n OperationStatusListNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing OperationStatus operations. */\nexport class OperationStatusImpl implements OperationStatus {\n private readonly client: SourceControlConfigurationClient;\n\n /**\n * Initialize a new instance of the class OperationStatus class.\n * @param client Reference to the service client\n */\n constructor(client: SourceControlConfigurationClient) {\n this.client = client;\n }\n\n /**\n * List Async Operations, currently in progress, in a cluster\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,\n * Microsoft.HybridContainerService.\n * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,\n * connectedClusters, provisionedClusters.\n * @param clusterName The name of the kubernetes cluster.\n * @param options The options parameters.\n */\n public list(\n resourceGroupName: string,\n clusterRp: string,\n clusterResourceName: string,\n clusterName: string,\n options?: OperationStatusListOptionalParams\n ): PagedAsyncIterableIterator<OperationStatusResult> {\n const iter = this.listPagingAll(\n resourceGroupName,\n clusterRp,\n clusterResourceName,\n clusterName,\n options\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(\n resourceGroupName,\n clusterRp,\n clusterResourceName,\n clusterName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listPagingPage(\n resourceGroupName: string,\n clusterRp: string,\n clusterResourceName: string,\n clusterName: string,\n options?: OperationStatusListOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<OperationStatusResult[]> {\n let result: OperationStatusListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(\n resourceGroupName,\n clusterRp,\n clusterResourceName,\n clusterName,\n options\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(\n resourceGroupName,\n clusterRp,\n clusterResourceName,\n clusterName,\n continuationToken,\n options\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n resourceGroupName: string,\n clusterRp: string,\n clusterResourceName: string,\n clusterName: string,\n options?: OperationStatusListOptionalParams\n ): AsyncIterableIterator<OperationStatusResult> {\n for await (const page of this.listPagingPage(\n resourceGroupName,\n clusterRp,\n clusterResourceName,\n clusterName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Get Async Operation status\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,\n * Microsoft.HybridContainerService.\n * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,\n * connectedClusters, provisionedClusters.\n * @param clusterName The name of the kubernetes cluster.\n * @param extensionName Name of the Extension.\n * @param operationId operation Id\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n clusterRp: string,\n clusterResourceName: string,\n clusterName: string,\n extensionName: string,\n operationId: string,\n options?: OperationStatusGetOptionalParams\n ): Promise<OperationStatusGetResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n clusterRp,\n clusterResourceName,\n clusterName,\n extensionName,\n operationId,\n options\n },\n getOperationSpec\n );\n }\n\n /**\n * List Async Operations, currently in progress, in a cluster\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,\n * Microsoft.HybridContainerService.\n * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,\n * connectedClusters, provisionedClusters.\n * @param clusterName The name of the kubernetes cluster.\n * @param options The options parameters.\n */\n private _list(\n resourceGroupName: string,\n clusterRp: string,\n clusterResourceName: string,\n clusterName: string,\n options?: OperationStatusListOptionalParams\n ): Promise<OperationStatusListResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n clusterRp,\n clusterResourceName,\n clusterName,\n options\n },\n listOperationSpec\n );\n }\n\n /**\n * ListNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,\n * Microsoft.HybridContainerService.\n * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,\n * connectedClusters, provisionedClusters.\n * @param clusterName The name of the kubernetes cluster.\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n resourceGroupName: string,\n clusterRp: string,\n clusterResourceName: string,\n clusterName: string,\n nextLink: string,\n options?: OperationStatusListNextOptionalParams\n ): Promise<OperationStatusListNextResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n clusterRp,\n clusterResourceName,\n clusterName,\n nextLink,\n options\n },\n listNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{clusterRp}/{clusterResourceName}/{clusterName}/providers/Microsoft.KubernetesConfiguration/extensions/{extensionName}/operations/{operationId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationStatusResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.clusterRp,\n Parameters.clusterResourceName,\n Parameters.clusterName,\n Parameters.extensionName,\n Parameters.operationId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{clusterRp}/{clusterResourceName}/{clusterName}/providers/Microsoft.KubernetesConfiguration/operations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationStatusList\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.clusterRp,\n Parameters.clusterResourceName,\n Parameters.clusterName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationStatusList\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.clusterRp,\n Parameters.clusterResourceName,\n Parameters.clusterName,\n Parameters.nextLink\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
1
|
+
{"version":3,"file":"operationStatus.js","sourceRoot":"","sources":["../../../src/operations/operationStatus.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAYtD,4CAA4C;AAC5C,mDAAmD;AACnD,MAAM,OAAO,mBAAmB;IACb,MAAM,CAAmC;IAE1D;;;OAGG;IACH,YAAY,MAAwC;QAClD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;;;OASG;IACI,IAAI,CACT,iBAAyB,EACzB,SAAiB,EACjB,mBAA2B,EAC3B,WAAmB,EACnB,OAA2C;QAE3C,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAC7B,iBAAiB,EACjB,SAAS,EACT,mBAAmB,EACnB,WAAW,EACX,OAAO,CACR,CAAC;QACF,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,EAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAA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QAC5B,UAAU,CAAC,SAAS;QACpB,UAAU,CAAC,mBAAmB;QAC9B,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { OperationStatus } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { SourceControlConfigurationClient } from \"../sourceControlConfigurationClient.js\";\nimport {\n OperationStatusResult,\n OperationStatusListNextOptionalParams,\n OperationStatusListOptionalParams,\n OperationStatusListResponse,\n OperationStatusGetOptionalParams,\n OperationStatusGetResponse,\n OperationStatusListNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing OperationStatus operations. */\nexport class OperationStatusImpl implements OperationStatus {\n private readonly client: SourceControlConfigurationClient;\n\n /**\n * Initialize a new instance of the class OperationStatus class.\n * @param client Reference to the service client\n */\n constructor(client: SourceControlConfigurationClient) {\n this.client = client;\n }\n\n /**\n * List Async Operations, currently in progress, in a cluster\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,\n * Microsoft.HybridContainerService.\n * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,\n * connectedClusters, provisionedClusters.\n * @param clusterName The name of the kubernetes cluster.\n * @param options The options parameters.\n */\n public list(\n resourceGroupName: string,\n clusterRp: string,\n clusterResourceName: string,\n clusterName: string,\n options?: OperationStatusListOptionalParams\n ): PagedAsyncIterableIterator<OperationStatusResult> {\n const iter = this.listPagingAll(\n resourceGroupName,\n clusterRp,\n clusterResourceName,\n clusterName,\n options\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(\n resourceGroupName,\n clusterRp,\n clusterResourceName,\n clusterName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listPagingPage(\n resourceGroupName: string,\n clusterRp: string,\n clusterResourceName: string,\n clusterName: string,\n options?: OperationStatusListOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<OperationStatusResult[]> {\n let result: OperationStatusListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(\n resourceGroupName,\n clusterRp,\n clusterResourceName,\n clusterName,\n options\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(\n resourceGroupName,\n clusterRp,\n clusterResourceName,\n clusterName,\n continuationToken,\n options\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n resourceGroupName: string,\n clusterRp: string,\n clusterResourceName: string,\n clusterName: string,\n options?: OperationStatusListOptionalParams\n ): AsyncIterableIterator<OperationStatusResult> {\n for await (const page of this.listPagingPage(\n resourceGroupName,\n clusterRp,\n clusterResourceName,\n clusterName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Get Async Operation status\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,\n * Microsoft.HybridContainerService.\n * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,\n * connectedClusters, provisionedClusters.\n * @param clusterName The name of the kubernetes cluster.\n * @param extensionName Name of the Extension.\n * @param operationId operation Id\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n clusterRp: string,\n clusterResourceName: string,\n clusterName: string,\n extensionName: string,\n operationId: string,\n options?: OperationStatusGetOptionalParams\n ): Promise<OperationStatusGetResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n clusterRp,\n clusterResourceName,\n clusterName,\n extensionName,\n operationId,\n options\n },\n getOperationSpec\n );\n }\n\n /**\n * List Async Operations, currently in progress, in a cluster\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,\n * Microsoft.HybridContainerService.\n * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,\n * connectedClusters, provisionedClusters.\n * @param clusterName The name of the kubernetes cluster.\n * @param options The options parameters.\n */\n private _list(\n resourceGroupName: string,\n clusterRp: string,\n clusterResourceName: string,\n clusterName: string,\n options?: OperationStatusListOptionalParams\n ): Promise<OperationStatusListResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n clusterRp,\n clusterResourceName,\n clusterName,\n options\n },\n listOperationSpec\n );\n }\n\n /**\n * ListNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,\n * Microsoft.HybridContainerService.\n * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,\n * connectedClusters, provisionedClusters.\n * @param clusterName The name of the kubernetes cluster.\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n resourceGroupName: string,\n clusterRp: string,\n clusterResourceName: string,\n clusterName: string,\n nextLink: string,\n options?: OperationStatusListNextOptionalParams\n ): Promise<OperationStatusListNextResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n clusterRp,\n clusterResourceName,\n clusterName,\n nextLink,\n options\n },\n listNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{clusterRp}/{clusterResourceName}/{clusterName}/providers/Microsoft.KubernetesConfiguration/extensions/{extensionName}/operations/{operationId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationStatusResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.clusterRp,\n Parameters.clusterResourceName,\n Parameters.clusterName,\n Parameters.extensionName,\n Parameters.operationId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{clusterRp}/{clusterResourceName}/{clusterName}/providers/Microsoft.KubernetesConfiguration/operations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationStatusList\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.clusterRp,\n Parameters.clusterResourceName,\n Parameters.clusterName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationStatusList\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.clusterRp,\n Parameters.clusterResourceName,\n Parameters.clusterName,\n Parameters.nextLink\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
|
-
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
|
9
8
|
import { setContinuationToken } from "../pagingHelper.js";
|
|
10
9
|
import * as coreClient from "@azure/core-client";
|
|
11
10
|
import * as Mappers from "../models/mappers.js";
|
|
@@ -13,6 +12,7 @@ import * as Parameters from "../models/parameters.js";
|
|
|
13
12
|
/// <reference lib="esnext.asynciterable" />
|
|
14
13
|
/** Class containing Operations operations. */
|
|
15
14
|
export class OperationsImpl {
|
|
15
|
+
client;
|
|
16
16
|
/**
|
|
17
17
|
* Initialize a new instance of the class Operations class.
|
|
18
18
|
* @param client Reference to the service client
|
|
@@ -34,52 +34,35 @@ export class OperationsImpl {
|
|
|
34
34
|
return this;
|
|
35
35
|
},
|
|
36
36
|
byPage: (settings) => {
|
|
37
|
-
if (settings
|
|
37
|
+
if (settings?.maxPageSize) {
|
|
38
38
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
39
39
|
}
|
|
40
40
|
return this.listPagingPage(options, settings);
|
|
41
41
|
}
|
|
42
42
|
};
|
|
43
43
|
}
|
|
44
|
-
listPagingPage(options, settings) {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
}
|
|
62
|
-
});
|
|
44
|
+
async *listPagingPage(options, settings) {
|
|
45
|
+
let result;
|
|
46
|
+
let continuationToken = settings?.continuationToken;
|
|
47
|
+
if (!continuationToken) {
|
|
48
|
+
result = await this._list(options);
|
|
49
|
+
let page = result.value || [];
|
|
50
|
+
continuationToken = result.nextLink;
|
|
51
|
+
setContinuationToken(page, continuationToken);
|
|
52
|
+
yield page;
|
|
53
|
+
}
|
|
54
|
+
while (continuationToken) {
|
|
55
|
+
result = await this._listNext(continuationToken, options);
|
|
56
|
+
continuationToken = result.nextLink;
|
|
57
|
+
let page = result.value || [];
|
|
58
|
+
setContinuationToken(page, continuationToken);
|
|
59
|
+
yield page;
|
|
60
|
+
}
|
|
63
61
|
}
|
|
64
|
-
listPagingAll(options) {
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
for (var _d = true, _e = __asyncValues(this.listPagingPage(options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
69
|
-
_c = _f.value;
|
|
70
|
-
_d = false;
|
|
71
|
-
const page = _c;
|
|
72
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
76
|
-
finally {
|
|
77
|
-
try {
|
|
78
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
79
|
-
}
|
|
80
|
-
finally { if (e_1) throw e_1.error; }
|
|
81
|
-
}
|
|
82
|
-
});
|
|
62
|
+
async *listPagingAll(options) {
|
|
63
|
+
for await (const page of this.listPagingPage(options)) {
|
|
64
|
+
yield* page;
|
|
65
|
+
}
|
|
83
66
|
}
|
|
84
67
|
/**
|
|
85
68
|
* List all the available operations the KubernetesConfiguration resource provider supports.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/operations/operations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG
|
|
1
|
+
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/operations/operations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC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gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,6BAA6B;SAClD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC;IACtD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { Operations } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { SourceControlConfigurationClient } from \"../sourceControlConfigurationClient.js\";\nimport {\n ResourceProviderOperation,\n OperationsListNextOptionalParams,\n OperationsListOptionalParams,\n OperationsListResponse,\n OperationsListNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Operations operations. */\nexport class OperationsImpl implements Operations {\n private readonly client: SourceControlConfigurationClient;\n\n /**\n * Initialize a new instance of the class Operations class.\n * @param client Reference to the service client\n */\n constructor(client: SourceControlConfigurationClient) {\n this.client = client;\n }\n\n /**\n * List all the available operations the KubernetesConfiguration resource provider supports.\n * @param options The options parameters.\n */\n public list(\n options?: OperationsListOptionalParams\n ): PagedAsyncIterableIterator<ResourceProviderOperation> {\n const iter = this.listPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(options, settings);\n }\n };\n }\n\n private async *listPagingPage(\n options?: OperationsListOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<ResourceProviderOperation[]> {\n let result: OperationsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n options?: OperationsListOptionalParams\n ): AsyncIterableIterator<ResourceProviderOperation> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * List all the available operations the KubernetesConfiguration resource provider supports.\n * @param options The options parameters.\n */\n private _list(\n options?: OperationsListOptionalParams\n ): Promise<OperationsListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * ListNext\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n nextLink: string,\n options?: OperationsListNextOptionalParams\n ): Promise<OperationsListNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.KubernetesConfiguration/operations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ResourceProviderOperationList\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ResourceProviderOperationList\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [Parameters.$host, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
|
-
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
|
9
8
|
import { setContinuationToken } from "../pagingHelper.js";
|
|
10
9
|
import * as coreClient from "@azure/core-client";
|
|
11
10
|
import * as Mappers from "../models/mappers.js";
|
|
@@ -15,6 +14,7 @@ import { createLroSpec } from "../lroImpl.js";
|
|
|
15
14
|
/// <reference lib="esnext.asynciterable" />
|
|
16
15
|
/** Class containing SourceControlConfigurations operations. */
|
|
17
16
|
export class SourceControlConfigurationsImpl {
|
|
17
|
+
client;
|
|
18
18
|
/**
|
|
19
19
|
* Initialize a new instance of the class SourceControlConfigurations class.
|
|
20
20
|
* @param client Reference to the service client
|
|
@@ -42,52 +42,35 @@ export class SourceControlConfigurationsImpl {
|
|
|
42
42
|
return this;
|
|
43
43
|
},
|
|
44
44
|
byPage: (settings) => {
|
|
45
|
-
if (settings
|
|
45
|
+
if (settings?.maxPageSize) {
|
|
46
46
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
47
47
|
}
|
|
48
48
|
return this.listPagingPage(resourceGroupName, clusterRp, clusterResourceName, clusterName, options, settings);
|
|
49
49
|
}
|
|
50
50
|
};
|
|
51
51
|
}
|
|
52
|
-
listPagingPage(resourceGroupName, clusterRp, clusterResourceName, clusterName, options, settings) {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
}
|
|
70
|
-
});
|
|
52
|
+
async *listPagingPage(resourceGroupName, clusterRp, clusterResourceName, clusterName, options, settings) {
|
|
53
|
+
let result;
|
|
54
|
+
let continuationToken = settings?.continuationToken;
|
|
55
|
+
if (!continuationToken) {
|
|
56
|
+
result = await this._list(resourceGroupName, clusterRp, clusterResourceName, clusterName, options);
|
|
57
|
+
let page = result.value || [];
|
|
58
|
+
continuationToken = result.nextLink;
|
|
59
|
+
setContinuationToken(page, continuationToken);
|
|
60
|
+
yield page;
|
|
61
|
+
}
|
|
62
|
+
while (continuationToken) {
|
|
63
|
+
result = await this._listNext(resourceGroupName, clusterRp, clusterResourceName, clusterName, continuationToken, options);
|
|
64
|
+
continuationToken = result.nextLink;
|
|
65
|
+
let page = result.value || [];
|
|
66
|
+
setContinuationToken(page, continuationToken);
|
|
67
|
+
yield page;
|
|
68
|
+
}
|
|
71
69
|
}
|
|
72
|
-
listPagingAll(resourceGroupName, clusterRp, clusterResourceName, clusterName, options) {
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
for (var _d = true, _e = __asyncValues(this.listPagingPage(resourceGroupName, clusterRp, clusterResourceName, clusterName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
77
|
-
_c = _f.value;
|
|
78
|
-
_d = false;
|
|
79
|
-
const page = _c;
|
|
80
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
84
|
-
finally {
|
|
85
|
-
try {
|
|
86
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
87
|
-
}
|
|
88
|
-
finally { if (e_1) throw e_1.error; }
|
|
89
|
-
}
|
|
90
|
-
});
|
|
70
|
+
async *listPagingAll(resourceGroupName, clusterRp, clusterResourceName, clusterName, options) {
|
|
71
|
+
for await (const page of this.listPagingPage(resourceGroupName, clusterRp, clusterResourceName, clusterName, options)) {
|
|
72
|
+
yield* page;
|
|
73
|
+
}
|
|
91
74
|
}
|
|
92
75
|
/**
|
|
93
76
|
* Gets details of the Source Control Configuration.
|
|
@@ -150,14 +133,19 @@ export class SourceControlConfigurationsImpl {
|
|
|
150
133
|
return this.client.sendOperationRequest(args, spec);
|
|
151
134
|
};
|
|
152
135
|
const sendOperationFn = async (args, spec) => {
|
|
153
|
-
var _a;
|
|
154
136
|
let currentRawResponse = undefined;
|
|
155
|
-
const providedCallback =
|
|
137
|
+
const providedCallback = args.options?.onResponse;
|
|
156
138
|
const callback = (rawResponse, flatResponse) => {
|
|
157
139
|
currentRawResponse = rawResponse;
|
|
158
|
-
providedCallback
|
|
140
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
141
|
+
};
|
|
142
|
+
const updatedArgs = {
|
|
143
|
+
...args,
|
|
144
|
+
options: {
|
|
145
|
+
...args.options,
|
|
146
|
+
onResponse: callback
|
|
147
|
+
}
|
|
159
148
|
};
|
|
160
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
161
149
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
162
150
|
return {
|
|
163
151
|
flatResponse,
|
|
@@ -181,8 +169,8 @@ export class SourceControlConfigurationsImpl {
|
|
|
181
169
|
spec: deleteOperationSpec
|
|
182
170
|
});
|
|
183
171
|
const poller = await createHttpPoller(lro, {
|
|
184
|
-
restoreFrom: options
|
|
185
|
-
intervalInMs: options
|
|
172
|
+
restoreFrom: options?.resumeFrom,
|
|
173
|
+
intervalInMs: options?.updateIntervalInMs
|
|
186
174
|
});
|
|
187
175
|
await poller.poll();
|
|
188
176
|
return poller;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sourceControlConfigurations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U,CAAC,WAAW;QACtB,UAAU,CAAC,8BAA8B;KAC1C;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,iBAAiB,GAA6B;IAClD,IAAI,EACF,sMAAsM;IACxM,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,8BAA8B;SACnD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,SAAS;QACpB,UAAU,CAAC,mBAAmB;QAC9B,UAAU,CAAC,WAAW;KACvB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,8BAA8B;SACnD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,SAAS;QACpB,UAAU,CAAC,mBAAmB;QAC9B,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { SourceControlConfigurations } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { SourceControlConfigurationClient } from \"../sourceControlConfigurationClient.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n SourceControlConfiguration,\n SourceControlConfigurationsListNextOptionalParams,\n SourceControlConfigurationsListOptionalParams,\n SourceControlConfigurationsListResponse,\n SourceControlConfigurationsGetOptionalParams,\n SourceControlConfigurationsGetResponse,\n SourceControlConfigurationsCreateOrUpdateOptionalParams,\n SourceControlConfigurationsCreateOrUpdateResponse,\n SourceControlConfigurationsDeleteOptionalParams,\n SourceControlConfigurationsListNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing SourceControlConfigurations operations. */\nexport class SourceControlConfigurationsImpl\n implements SourceControlConfigurations {\n private readonly client: SourceControlConfigurationClient;\n\n /**\n * Initialize a new instance of the class SourceControlConfigurations class.\n * @param client Reference to the service client\n */\n constructor(client: SourceControlConfigurationClient) {\n this.client = client;\n }\n\n /**\n * List all Source Control Configurations.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,\n * Microsoft.HybridContainerService.\n * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,\n * connectedClusters, provisionedClusters.\n * @param clusterName The name of the kubernetes cluster.\n * @param options The options parameters.\n */\n public list(\n resourceGroupName: string,\n clusterRp: string,\n clusterResourceName: string,\n clusterName: string,\n options?: SourceControlConfigurationsListOptionalParams\n ): PagedAsyncIterableIterator<SourceControlConfiguration> {\n const iter = this.listPagingAll(\n resourceGroupName,\n clusterRp,\n clusterResourceName,\n clusterName,\n options\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(\n resourceGroupName,\n clusterRp,\n clusterResourceName,\n clusterName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listPagingPage(\n resourceGroupName: string,\n clusterRp: string,\n clusterResourceName: string,\n clusterName: string,\n options?: SourceControlConfigurationsListOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<SourceControlConfiguration[]> {\n let result: SourceControlConfigurationsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(\n resourceGroupName,\n clusterRp,\n clusterResourceName,\n clusterName,\n options\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(\n resourceGroupName,\n clusterRp,\n clusterResourceName,\n clusterName,\n continuationToken,\n options\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n resourceGroupName: string,\n clusterRp: string,\n clusterResourceName: string,\n clusterName: string,\n options?: SourceControlConfigurationsListOptionalParams\n ): AsyncIterableIterator<SourceControlConfiguration> {\n for await (const page of this.listPagingPage(\n resourceGroupName,\n clusterRp,\n clusterResourceName,\n clusterName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Gets details of the Source Control Configuration.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,\n * Microsoft.HybridContainerService.\n * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,\n * connectedClusters, provisionedClusters.\n * @param clusterName The name of the kubernetes cluster.\n * @param sourceControlConfigurationName Name of the Source Control Configuration.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n clusterRp: string,\n clusterResourceName: string,\n clusterName: string,\n sourceControlConfigurationName: string,\n options?: SourceControlConfigurationsGetOptionalParams\n ): Promise<SourceControlConfigurationsGetResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n clusterRp,\n clusterResourceName,\n clusterName,\n sourceControlConfigurationName,\n options\n },\n getOperationSpec\n );\n }\n\n /**\n * Create a new Kubernetes Source Control Configuration.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,\n * Microsoft.HybridContainerService.\n * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,\n * connectedClusters, provisionedClusters.\n * @param clusterName The name of the kubernetes cluster.\n * @param sourceControlConfigurationName Name of the Source Control Configuration.\n * @param sourceControlConfiguration Properties necessary to Create KubernetesConfiguration.\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n clusterRp: string,\n clusterResourceName: string,\n clusterName: string,\n sourceControlConfigurationName: string,\n sourceControlConfiguration: SourceControlConfiguration,\n options?: SourceControlConfigurationsCreateOrUpdateOptionalParams\n ): Promise<SourceControlConfigurationsCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n clusterRp,\n clusterResourceName,\n clusterName,\n sourceControlConfigurationName,\n sourceControlConfiguration,\n options\n },\n createOrUpdateOperationSpec\n );\n }\n\n /**\n * This will delete the YAML file used to set up the Source control configuration, thus stopping future\n * sync from the source repo.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,\n * Microsoft.HybridContainerService.\n * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,\n * connectedClusters, provisionedClusters.\n * @param clusterName The name of the kubernetes cluster.\n * @param sourceControlConfigurationName Name of the Source Control Configuration.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n clusterRp: string,\n clusterResourceName: string,\n clusterName: string,\n sourceControlConfigurationName: string,\n options?: SourceControlConfigurationsDeleteOptionalParams\n ): Promise<SimplePollerLike<OperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n clusterRp,\n clusterResourceName,\n clusterName,\n sourceControlConfigurationName,\n options\n },\n spec: deleteOperationSpec\n });\n const poller = await createHttpPoller<void, OperationState<void>>(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * This will delete the YAML file used to set up the Source control configuration, thus stopping future\n * sync from the source repo.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,\n * Microsoft.HybridContainerService.\n * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,\n * connectedClusters, provisionedClusters.\n * @param clusterName The name of the kubernetes cluster.\n * @param sourceControlConfigurationName Name of the Source Control Configuration.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n clusterRp: string,\n clusterResourceName: string,\n clusterName: string,\n sourceControlConfigurationName: string,\n options?: SourceControlConfigurationsDeleteOptionalParams\n ): Promise<void> {\n const poller = await this.beginDelete(\n resourceGroupName,\n clusterRp,\n clusterResourceName,\n clusterName,\n sourceControlConfigurationName,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * List all Source Control Configurations.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,\n * Microsoft.HybridContainerService.\n * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,\n * connectedClusters, provisionedClusters.\n * @param clusterName The name of the kubernetes cluster.\n * @param options The options parameters.\n */\n private _list(\n resourceGroupName: string,\n clusterRp: string,\n clusterResourceName: string,\n clusterName: string,\n options?: SourceControlConfigurationsListOptionalParams\n ): Promise<SourceControlConfigurationsListResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n clusterRp,\n clusterResourceName,\n clusterName,\n options\n },\n listOperationSpec\n );\n }\n\n /**\n * ListNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,\n * Microsoft.HybridContainerService.\n * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,\n * connectedClusters, provisionedClusters.\n * @param clusterName The name of the kubernetes cluster.\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n resourceGroupName: string,\n clusterRp: string,\n clusterResourceName: string,\n clusterName: string,\n nextLink: string,\n options?: SourceControlConfigurationsListNextOptionalParams\n ): Promise<SourceControlConfigurationsListNextResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n clusterRp,\n clusterResourceName,\n clusterName,\n nextLink,\n options\n },\n listNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{clusterRp}/{clusterResourceName}/{clusterName}/providers/Microsoft.KubernetesConfiguration/sourceControlConfigurations/{sourceControlConfigurationName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SourceControlConfiguration\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.clusterRp,\n Parameters.clusterResourceName,\n Parameters.clusterName,\n Parameters.sourceControlConfigurationName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{clusterRp}/{clusterResourceName}/{clusterName}/providers/Microsoft.KubernetesConfiguration/sourceControlConfigurations/{sourceControlConfigurationName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.SourceControlConfiguration\n },\n 201: {\n bodyMapper: Mappers.SourceControlConfiguration\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.sourceControlConfiguration,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.clusterRp,\n Parameters.clusterResourceName,\n Parameters.clusterName,\n Parameters.sourceControlConfigurationName\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{clusterRp}/{clusterResourceName}/{clusterName}/providers/Microsoft.KubernetesConfiguration/sourceControlConfigurations/{sourceControlConfigurationName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.clusterRp,\n Parameters.clusterResourceName,\n Parameters.clusterName,\n Parameters.sourceControlConfigurationName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{clusterRp}/{clusterResourceName}/{clusterName}/providers/Microsoft.KubernetesConfiguration/sourceControlConfigurations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SourceControlConfigurationList\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.clusterRp,\n Parameters.clusterResourceName,\n Parameters.clusterName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SourceControlConfigurationList\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.clusterRp,\n Parameters.clusterResourceName,\n Parameters.clusterName,\n Parameters.nextLink\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
1
|
+
{"version":3,"file":"sourceControlConfigurations.js","sourceRoot":"","sources":["../../../src/operations/sourceControlConfigurations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,o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C,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,SAAS;QACpB,UAAU,CAAC,mBAAmB;QAC9B,UAAU,CAAC,WAAW;KACvB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,8BAA8B;SACnD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,SAAS;QACpB,UAAU,CAAC,mBAAmB;QAC9B,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { SourceControlConfigurations } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { SourceControlConfigurationClient } from \"../sourceControlConfigurationClient.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n SourceControlConfiguration,\n SourceControlConfigurationsListNextOptionalParams,\n SourceControlConfigurationsListOptionalParams,\n SourceControlConfigurationsListResponse,\n SourceControlConfigurationsGetOptionalParams,\n SourceControlConfigurationsGetResponse,\n SourceControlConfigurationsCreateOrUpdateOptionalParams,\n SourceControlConfigurationsCreateOrUpdateResponse,\n SourceControlConfigurationsDeleteOptionalParams,\n SourceControlConfigurationsListNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing SourceControlConfigurations operations. */\nexport class SourceControlConfigurationsImpl\n implements SourceControlConfigurations {\n private readonly client: SourceControlConfigurationClient;\n\n /**\n * Initialize a new instance of the class SourceControlConfigurations class.\n * @param client Reference to the service client\n */\n constructor(client: SourceControlConfigurationClient) {\n this.client = client;\n }\n\n /**\n * List all Source Control Configurations.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,\n * Microsoft.HybridContainerService.\n * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,\n * connectedClusters, provisionedClusters.\n * @param clusterName The name of the kubernetes cluster.\n * @param options The options parameters.\n */\n public list(\n resourceGroupName: string,\n clusterRp: string,\n clusterResourceName: string,\n clusterName: string,\n options?: SourceControlConfigurationsListOptionalParams\n ): PagedAsyncIterableIterator<SourceControlConfiguration> {\n const iter = this.listPagingAll(\n resourceGroupName,\n clusterRp,\n clusterResourceName,\n clusterName,\n options\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(\n resourceGroupName,\n clusterRp,\n clusterResourceName,\n clusterName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listPagingPage(\n resourceGroupName: string,\n clusterRp: string,\n clusterResourceName: string,\n clusterName: string,\n options?: SourceControlConfigurationsListOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<SourceControlConfiguration[]> {\n let result: SourceControlConfigurationsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(\n resourceGroupName,\n clusterRp,\n clusterResourceName,\n clusterName,\n options\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(\n resourceGroupName,\n clusterRp,\n clusterResourceName,\n clusterName,\n continuationToken,\n options\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n resourceGroupName: string,\n clusterRp: string,\n clusterResourceName: string,\n clusterName: string,\n options?: SourceControlConfigurationsListOptionalParams\n ): AsyncIterableIterator<SourceControlConfiguration> {\n for await (const page of this.listPagingPage(\n resourceGroupName,\n clusterRp,\n clusterResourceName,\n clusterName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Gets details of the Source Control Configuration.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,\n * Microsoft.HybridContainerService.\n * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,\n * connectedClusters, provisionedClusters.\n * @param clusterName The name of the kubernetes cluster.\n * @param sourceControlConfigurationName Name of the Source Control Configuration.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n clusterRp: string,\n clusterResourceName: string,\n clusterName: string,\n sourceControlConfigurationName: string,\n options?: SourceControlConfigurationsGetOptionalParams\n ): Promise<SourceControlConfigurationsGetResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n clusterRp,\n clusterResourceName,\n clusterName,\n sourceControlConfigurationName,\n options\n },\n getOperationSpec\n );\n }\n\n /**\n * Create a new Kubernetes Source Control Configuration.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,\n * Microsoft.HybridContainerService.\n * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,\n * connectedClusters, provisionedClusters.\n * @param clusterName The name of the kubernetes cluster.\n * @param sourceControlConfigurationName Name of the Source Control Configuration.\n * @param sourceControlConfiguration Properties necessary to Create KubernetesConfiguration.\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n clusterRp: string,\n clusterResourceName: string,\n clusterName: string,\n sourceControlConfigurationName: string,\n sourceControlConfiguration: SourceControlConfiguration,\n options?: SourceControlConfigurationsCreateOrUpdateOptionalParams\n ): Promise<SourceControlConfigurationsCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n clusterRp,\n clusterResourceName,\n clusterName,\n sourceControlConfigurationName,\n sourceControlConfiguration,\n options\n },\n createOrUpdateOperationSpec\n );\n }\n\n /**\n * This will delete the YAML file used to set up the Source control configuration, thus stopping future\n * sync from the source repo.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,\n * Microsoft.HybridContainerService.\n * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,\n * connectedClusters, provisionedClusters.\n * @param clusterName The name of the kubernetes cluster.\n * @param sourceControlConfigurationName Name of the Source Control Configuration.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n clusterRp: string,\n clusterResourceName: string,\n clusterName: string,\n sourceControlConfigurationName: string,\n options?: SourceControlConfigurationsDeleteOptionalParams\n ): Promise<SimplePollerLike<OperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n clusterRp,\n clusterResourceName,\n clusterName,\n sourceControlConfigurationName,\n options\n },\n spec: deleteOperationSpec\n });\n const poller = await createHttpPoller<void, OperationState<void>>(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * This will delete the YAML file used to set up the Source control configuration, thus stopping future\n * sync from the source repo.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,\n * Microsoft.HybridContainerService.\n * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,\n * connectedClusters, provisionedClusters.\n * @param clusterName The name of the kubernetes cluster.\n * @param sourceControlConfigurationName Name of the Source Control Configuration.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n clusterRp: string,\n clusterResourceName: string,\n clusterName: string,\n sourceControlConfigurationName: string,\n options?: SourceControlConfigurationsDeleteOptionalParams\n ): Promise<void> {\n const poller = await this.beginDelete(\n resourceGroupName,\n clusterRp,\n clusterResourceName,\n clusterName,\n sourceControlConfigurationName,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * List all Source Control Configurations.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,\n * Microsoft.HybridContainerService.\n * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,\n * connectedClusters, provisionedClusters.\n * @param clusterName The name of the kubernetes cluster.\n * @param options The options parameters.\n */\n private _list(\n resourceGroupName: string,\n clusterRp: string,\n clusterResourceName: string,\n clusterName: string,\n options?: SourceControlConfigurationsListOptionalParams\n ): Promise<SourceControlConfigurationsListResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n clusterRp,\n clusterResourceName,\n clusterName,\n options\n },\n listOperationSpec\n );\n }\n\n /**\n * ListNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,\n * Microsoft.HybridContainerService.\n * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,\n * connectedClusters, provisionedClusters.\n * @param clusterName The name of the kubernetes cluster.\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n resourceGroupName: string,\n clusterRp: string,\n clusterResourceName: string,\n clusterName: string,\n nextLink: string,\n options?: SourceControlConfigurationsListNextOptionalParams\n ): Promise<SourceControlConfigurationsListNextResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n clusterRp,\n clusterResourceName,\n clusterName,\n nextLink,\n options\n },\n listNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{clusterRp}/{clusterResourceName}/{clusterName}/providers/Microsoft.KubernetesConfiguration/sourceControlConfigurations/{sourceControlConfigurationName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SourceControlConfiguration\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.clusterRp,\n Parameters.clusterResourceName,\n Parameters.clusterName,\n Parameters.sourceControlConfigurationName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{clusterRp}/{clusterResourceName}/{clusterName}/providers/Microsoft.KubernetesConfiguration/sourceControlConfigurations/{sourceControlConfigurationName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.SourceControlConfiguration\n },\n 201: {\n bodyMapper: Mappers.SourceControlConfiguration\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.sourceControlConfiguration,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.clusterRp,\n Parameters.clusterResourceName,\n Parameters.clusterName,\n Parameters.sourceControlConfigurationName\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{clusterRp}/{clusterResourceName}/{clusterName}/providers/Microsoft.KubernetesConfiguration/sourceControlConfigurations/{sourceControlConfigurationName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.clusterRp,\n Parameters.clusterResourceName,\n Parameters.clusterName,\n Parameters.sourceControlConfigurationName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{clusterRp}/{clusterResourceName}/{clusterName}/providers/Microsoft.KubernetesConfiguration/sourceControlConfigurations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SourceControlConfigurationList\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.clusterRp,\n Parameters.clusterResourceName,\n Parameters.clusterName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SourceControlConfigurationList\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.clusterRp,\n Parameters.clusterResourceName,\n Parameters.clusterName,\n Parameters.nextLink\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
@@ -14,18 +14,16 @@ const pageMap = new WeakMap();
|
|
|
14
14
|
* @returns The continuation token that can be passed into byPage() during future calls.
|
|
15
15
|
*/
|
|
16
16
|
export function getContinuationToken(page) {
|
|
17
|
-
var _a;
|
|
18
17
|
if (typeof page !== "object" || page === null) {
|
|
19
18
|
return undefined;
|
|
20
19
|
}
|
|
21
|
-
return
|
|
20
|
+
return pageMap.get(page)?.continuationToken;
|
|
22
21
|
}
|
|
23
22
|
export function setContinuationToken(page, continuationToken) {
|
|
24
|
-
var _a;
|
|
25
23
|
if (typeof page !== "object" || page === null || !continuationToken) {
|
|
26
24
|
return;
|
|
27
25
|
}
|
|
28
|
-
const pageInfo =
|
|
26
|
+
const pageInfo = pageMap.get(page) ?? {};
|
|
29
27
|
pageInfo.continuationToken = continuationToken;
|
|
30
28
|
pageMap.set(page, pageInfo);
|
|
31
29
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pagingHelper.js","sourceRoot":"","sources":["../../src/pagingHelper.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAMH,MAAM,OAAO,GAAG,IAAI,OAAO,EAAoB,CAAC;AAEhD;;;;;;GAMG;AACH,MAAM,UAAU,oBAAoB,CAAC,IAAa
|
|
1
|
+
{"version":3,"file":"pagingHelper.js","sourceRoot":"","sources":["../../src/pagingHelper.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAMH,MAAM,OAAO,GAAG,IAAI,OAAO,EAAoB,CAAC;AAEhD;;;;;;GAMG;AACH,MAAM,UAAU,oBAAoB,CAAC,IAAa;IAChD,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,EAAE,CAAC;QAC9C,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,OAAO,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,iBAAiB,CAAC;AAC9C,CAAC;AAED,MAAM,UAAU,oBAAoB,CAClC,IAAa,EACb,iBAAqC;IAErC,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,IAAI,CAAC,iBAAiB,EAAE,CAAC;QACpE,OAAO;IACT,CAAC;IACD,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;IACzC,QAAQ,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;IAC/C,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;AAC9B,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nexport interface PageInfo {\n continuationToken?: string;\n}\n\nconst pageMap = new WeakMap<object, PageInfo>();\n\n/**\n * Given the last `.value` produced by the `byPage` iterator,\n * returns a continuation token that can be used to begin paging from\n * that point later.\n * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.\n * @returns The continuation token that can be passed into byPage() during future calls.\n */\nexport function getContinuationToken(page: unknown): string | undefined {\n if (typeof page !== \"object\" || page === null) {\n return undefined;\n }\n return pageMap.get(page)?.continuationToken;\n}\n\nexport function setContinuationToken(\n page: unknown,\n continuationToken: string | undefined\n): void {\n if (typeof page !== \"object\" || page === null || !continuationToken) {\n return;\n }\n const pageInfo = pageMap.get(page) ?? {};\n pageInfo.continuationToken = continuationToken;\n pageMap.set(page, pageInfo);\n}\n"]}
|