@azure/arm-hybridkubernetes 2.1.1-alpha.20250326.1 → 3.0.0-beta.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/CHANGELOG.md +52 -8
- package/LICENSE +1 -1
- package/README.md +6 -7
- package/dist/browser/connectedKubernetesClient.d.ts +5 -4
- package/dist/browser/connectedKubernetesClient.d.ts.map +1 -1
- package/dist/browser/connectedKubernetesClient.js +16 -19
- package/dist/browser/connectedKubernetesClient.js.map +1 -1
- package/dist/browser/lroImpl.d.ts +7 -12
- package/dist/browser/lroImpl.d.ts.map +1 -1
- package/dist/browser/lroImpl.js +11 -15
- package/dist/browser/lroImpl.js.map +1 -1
- package/dist/browser/models/index.d.ts +282 -57
- package/dist/browser/models/index.d.ts.map +1 -1
- package/dist/browser/models/index.js +36 -0
- package/dist/browser/models/index.js.map +1 -1
- package/dist/browser/models/mappers.d.ts +12 -1
- package/dist/browser/models/mappers.d.ts.map +1 -1
- package/dist/browser/models/mappers.js +631 -221
- package/dist/browser/models/mappers.js.map +1 -1
- package/dist/browser/models/parameters.d.ts +1 -1
- package/dist/browser/models/parameters.d.ts.map +1 -1
- package/dist/browser/models/parameters.js +31 -31
- package/dist/browser/models/parameters.js.map +1 -1
- package/dist/browser/operations/connectedClusterOperations.d.ts +12 -12
- package/dist/browser/operations/connectedClusterOperations.d.ts.map +1 -1
- package/dist/browser/operations/connectedClusterOperations.js +80 -82
- package/dist/browser/operations/connectedClusterOperations.js.map +1 -1
- package/dist/browser/operations/operations.d.ts +4 -4
- package/dist/browser/operations/operations.d.ts.map +1 -1
- package/dist/browser/operations/operations.js +9 -10
- package/dist/browser/operations/operations.js.map +1 -1
- package/dist/browser/operationsInterfaces/connectedClusterOperations.d.ts +10 -10
- package/dist/browser/operationsInterfaces/connectedClusterOperations.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/connectedClusterOperations.js.map +1 -1
- package/dist/browser/operationsInterfaces/operations.d.ts +2 -2
- package/dist/browser/operationsInterfaces/operations.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/operations.js.map +1 -1
- package/dist/browser/pagingHelper.d.ts +4 -4
- package/dist/browser/pagingHelper.d.ts.map +1 -1
- package/dist/browser/pagingHelper.js +4 -4
- package/dist/browser/pagingHelper.js.map +1 -1
- package/dist/commonjs/connectedKubernetesClient.d.ts +5 -4
- package/dist/commonjs/connectedKubernetesClient.d.ts.map +1 -1
- package/dist/commonjs/connectedKubernetesClient.js +16 -19
- package/dist/commonjs/connectedKubernetesClient.js.map +1 -1
- package/dist/commonjs/lroImpl.d.ts +7 -12
- package/dist/commonjs/lroImpl.d.ts.map +1 -1
- package/dist/commonjs/lroImpl.js +12 -17
- package/dist/commonjs/lroImpl.js.map +1 -1
- package/dist/commonjs/models/index.d.ts +282 -57
- package/dist/commonjs/models/index.d.ts.map +1 -1
- package/dist/commonjs/models/index.js +37 -1
- package/dist/commonjs/models/index.js.map +1 -1
- package/dist/commonjs/models/mappers.d.ts +12 -1
- package/dist/commonjs/models/mappers.d.ts.map +1 -1
- package/dist/commonjs/models/mappers.js +632 -222
- package/dist/commonjs/models/mappers.js.map +1 -1
- package/dist/commonjs/models/parameters.d.ts +1 -1
- package/dist/commonjs/models/parameters.d.ts.map +1 -1
- package/dist/commonjs/models/parameters.js +30 -30
- package/dist/commonjs/models/parameters.js.map +1 -1
- package/dist/commonjs/operations/connectedClusterOperations.d.ts +12 -12
- package/dist/commonjs/operations/connectedClusterOperations.d.ts.map +1 -1
- package/dist/commonjs/operations/connectedClusterOperations.js +78 -80
- package/dist/commonjs/operations/connectedClusterOperations.js.map +1 -1
- package/dist/commonjs/operations/operations.d.ts +4 -4
- package/dist/commonjs/operations/operations.d.ts.map +1 -1
- package/dist/commonjs/operations/operations.js +9 -10
- package/dist/commonjs/operations/operations.js.map +1 -1
- package/dist/commonjs/operationsInterfaces/connectedClusterOperations.d.ts +10 -10
- package/dist/commonjs/operationsInterfaces/connectedClusterOperations.d.ts.map +1 -1
- package/dist/commonjs/operationsInterfaces/connectedClusterOperations.js.map +1 -1
- package/dist/commonjs/operationsInterfaces/operations.d.ts +2 -2
- package/dist/commonjs/operationsInterfaces/operations.d.ts.map +1 -1
- package/dist/commonjs/operationsInterfaces/operations.js.map +1 -1
- package/dist/commonjs/pagingHelper.d.ts +4 -4
- package/dist/commonjs/pagingHelper.d.ts.map +1 -1
- package/dist/commonjs/pagingHelper.js +4 -4
- package/dist/commonjs/pagingHelper.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +1 -1
- package/dist/esm/connectedKubernetesClient.d.ts +5 -4
- package/dist/esm/connectedKubernetesClient.d.ts.map +1 -1
- package/dist/esm/connectedKubernetesClient.js +16 -19
- package/dist/esm/connectedKubernetesClient.js.map +1 -1
- package/dist/esm/lroImpl.d.ts +7 -12
- package/dist/esm/lroImpl.d.ts.map +1 -1
- package/dist/esm/lroImpl.js +11 -15
- package/dist/esm/lroImpl.js.map +1 -1
- package/dist/esm/models/index.d.ts +282 -57
- package/dist/esm/models/index.d.ts.map +1 -1
- package/dist/esm/models/index.js +36 -0
- package/dist/esm/models/index.js.map +1 -1
- package/dist/esm/models/mappers.d.ts +12 -1
- package/dist/esm/models/mappers.d.ts.map +1 -1
- package/dist/esm/models/mappers.js +631 -221
- package/dist/esm/models/mappers.js.map +1 -1
- package/dist/esm/models/parameters.d.ts +1 -1
- package/dist/esm/models/parameters.d.ts.map +1 -1
- package/dist/esm/models/parameters.js +31 -31
- package/dist/esm/models/parameters.js.map +1 -1
- package/dist/esm/operations/connectedClusterOperations.d.ts +12 -12
- package/dist/esm/operations/connectedClusterOperations.d.ts.map +1 -1
- package/dist/esm/operations/connectedClusterOperations.js +80 -82
- package/dist/esm/operations/connectedClusterOperations.js.map +1 -1
- package/dist/esm/operations/operations.d.ts +4 -4
- package/dist/esm/operations/operations.d.ts.map +1 -1
- package/dist/esm/operations/operations.js +9 -10
- package/dist/esm/operations/operations.js.map +1 -1
- package/dist/esm/operationsInterfaces/connectedClusterOperations.d.ts +10 -10
- package/dist/esm/operationsInterfaces/connectedClusterOperations.d.ts.map +1 -1
- package/dist/esm/operationsInterfaces/connectedClusterOperations.js.map +1 -1
- package/dist/esm/operationsInterfaces/operations.d.ts +2 -2
- package/dist/esm/operationsInterfaces/operations.d.ts.map +1 -1
- package/dist/esm/operationsInterfaces/operations.js.map +1 -1
- package/dist/esm/pagingHelper.d.ts +4 -4
- package/dist/esm/pagingHelper.d.ts.map +1 -1
- package/dist/esm/pagingHelper.js +4 -4
- package/dist/esm/pagingHelper.js.map +1 -1
- package/dist/react-native/connectedKubernetesClient.d.ts +5 -4
- package/dist/react-native/connectedKubernetesClient.d.ts.map +1 -1
- package/dist/react-native/connectedKubernetesClient.js +16 -19
- package/dist/react-native/connectedKubernetesClient.js.map +1 -1
- package/dist/react-native/lroImpl.d.ts +7 -12
- package/dist/react-native/lroImpl.d.ts.map +1 -1
- package/dist/react-native/lroImpl.js +11 -15
- package/dist/react-native/lroImpl.js.map +1 -1
- package/dist/react-native/models/index.d.ts +282 -57
- package/dist/react-native/models/index.d.ts.map +1 -1
- package/dist/react-native/models/index.js +36 -0
- package/dist/react-native/models/index.js.map +1 -1
- package/dist/react-native/models/mappers.d.ts +12 -1
- package/dist/react-native/models/mappers.d.ts.map +1 -1
- package/dist/react-native/models/mappers.js +631 -221
- package/dist/react-native/models/mappers.js.map +1 -1
- package/dist/react-native/models/parameters.d.ts +1 -1
- package/dist/react-native/models/parameters.d.ts.map +1 -1
- package/dist/react-native/models/parameters.js +31 -31
- package/dist/react-native/models/parameters.js.map +1 -1
- package/dist/react-native/operations/connectedClusterOperations.d.ts +12 -12
- package/dist/react-native/operations/connectedClusterOperations.d.ts.map +1 -1
- package/dist/react-native/operations/connectedClusterOperations.js +80 -82
- package/dist/react-native/operations/connectedClusterOperations.js.map +1 -1
- package/dist/react-native/operations/operations.d.ts +4 -4
- package/dist/react-native/operations/operations.d.ts.map +1 -1
- package/dist/react-native/operations/operations.js +9 -10
- package/dist/react-native/operations/operations.js.map +1 -1
- package/dist/react-native/operationsInterfaces/connectedClusterOperations.d.ts +10 -10
- package/dist/react-native/operationsInterfaces/connectedClusterOperations.d.ts.map +1 -1
- package/dist/react-native/operationsInterfaces/connectedClusterOperations.js.map +1 -1
- package/dist/react-native/operationsInterfaces/operations.d.ts +2 -2
- package/dist/react-native/operationsInterfaces/operations.d.ts.map +1 -1
- package/dist/react-native/operationsInterfaces/operations.js.map +1 -1
- package/dist/react-native/pagingHelper.d.ts +4 -4
- package/dist/react-native/pagingHelper.d.ts.map +1 -1
- package/dist/react-native/pagingHelper.js +4 -4
- package/dist/react-native/pagingHelper.js.map +1 -1
- package/package.json +35 -34
- package/review/arm-hybridkubernetes.api.md +156 -23
|
@@ -44,7 +44,7 @@ class ConnectedClusterOperationsImpl {
|
|
|
44
44
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
45
45
|
}
|
|
46
46
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
47
|
-
}
|
|
47
|
+
},
|
|
48
48
|
};
|
|
49
49
|
}
|
|
50
50
|
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
@@ -105,7 +105,7 @@ class ConnectedClusterOperationsImpl {
|
|
|
105
105
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
106
106
|
}
|
|
107
107
|
return this.listBySubscriptionPagingPage(options, settings);
|
|
108
|
-
}
|
|
108
|
+
},
|
|
109
109
|
};
|
|
110
110
|
}
|
|
111
111
|
listBySubscriptionPagingPage(options, settings) {
|
|
@@ -149,18 +149,18 @@ class ConnectedClusterOperationsImpl {
|
|
|
149
149
|
});
|
|
150
150
|
}
|
|
151
151
|
/**
|
|
152
|
-
* API to register a new Kubernetes cluster and create
|
|
153
|
-
* (ARM).
|
|
152
|
+
* API to register a new Kubernetes cluster and create or replace a connected cluster tracked resource
|
|
153
|
+
* in Azure Resource Manager (ARM).
|
|
154
154
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
155
155
|
* @param clusterName The name of the Kubernetes cluster on which get is called.
|
|
156
156
|
* @param connectedCluster Parameters supplied to Create a Connected Cluster.
|
|
157
157
|
* @param options The options parameters.
|
|
158
158
|
*/
|
|
159
|
-
async
|
|
159
|
+
async beginCreateOrReplace(resourceGroupName, clusterName, connectedCluster, options) {
|
|
160
160
|
const directSendOperation = async (args, spec) => {
|
|
161
161
|
return this.client.sendOperationRequest(args, spec);
|
|
162
162
|
};
|
|
163
|
-
const
|
|
163
|
+
const sendOperationFn = async (args, spec) => {
|
|
164
164
|
var _a;
|
|
165
165
|
let currentRawResponse = undefined;
|
|
166
166
|
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
@@ -175,29 +175,33 @@ class ConnectedClusterOperationsImpl {
|
|
|
175
175
|
rawResponse: {
|
|
176
176
|
statusCode: currentRawResponse.status,
|
|
177
177
|
body: currentRawResponse.parsedBody,
|
|
178
|
-
headers: currentRawResponse.headers.toJSON()
|
|
179
|
-
}
|
|
178
|
+
headers: currentRawResponse.headers.toJSON(),
|
|
179
|
+
},
|
|
180
180
|
};
|
|
181
181
|
};
|
|
182
|
-
const lro =
|
|
183
|
-
|
|
184
|
-
|
|
182
|
+
const lro = (0, lroImpl_js_1.createLroSpec)({
|
|
183
|
+
sendOperationFn,
|
|
184
|
+
args: { resourceGroupName, clusterName, connectedCluster, options },
|
|
185
|
+
spec: createOrReplaceOperationSpec,
|
|
186
|
+
});
|
|
187
|
+
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
188
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
185
189
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
186
|
-
|
|
190
|
+
resourceLocationConfig: "azure-async-operation",
|
|
187
191
|
});
|
|
188
192
|
await poller.poll();
|
|
189
193
|
return poller;
|
|
190
194
|
}
|
|
191
195
|
/**
|
|
192
|
-
* API to register a new Kubernetes cluster and create
|
|
193
|
-
* (ARM).
|
|
196
|
+
* API to register a new Kubernetes cluster and create or replace a connected cluster tracked resource
|
|
197
|
+
* in Azure Resource Manager (ARM).
|
|
194
198
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
195
199
|
* @param clusterName The name of the Kubernetes cluster on which get is called.
|
|
196
200
|
* @param connectedCluster Parameters supplied to Create a Connected Cluster.
|
|
197
201
|
* @param options The options parameters.
|
|
198
202
|
*/
|
|
199
|
-
async
|
|
200
|
-
const poller = await this.
|
|
203
|
+
async beginCreateOrReplaceAndWait(resourceGroupName, clusterName, connectedCluster, options) {
|
|
204
|
+
const poller = await this.beginCreateOrReplace(resourceGroupName, clusterName, connectedCluster, options);
|
|
201
205
|
return poller.pollUntilDone();
|
|
202
206
|
}
|
|
203
207
|
/**
|
|
@@ -230,7 +234,7 @@ class ConnectedClusterOperationsImpl {
|
|
|
230
234
|
const directSendOperation = async (args, spec) => {
|
|
231
235
|
return this.client.sendOperationRequest(args, spec);
|
|
232
236
|
};
|
|
233
|
-
const
|
|
237
|
+
const sendOperationFn = async (args, spec) => {
|
|
234
238
|
var _a;
|
|
235
239
|
let currentRawResponse = undefined;
|
|
236
240
|
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
@@ -245,15 +249,19 @@ class ConnectedClusterOperationsImpl {
|
|
|
245
249
|
rawResponse: {
|
|
246
250
|
statusCode: currentRawResponse.status,
|
|
247
251
|
body: currentRawResponse.parsedBody,
|
|
248
|
-
headers: currentRawResponse.headers.toJSON()
|
|
249
|
-
}
|
|
252
|
+
headers: currentRawResponse.headers.toJSON(),
|
|
253
|
+
},
|
|
250
254
|
};
|
|
251
255
|
};
|
|
252
|
-
const lro =
|
|
253
|
-
|
|
254
|
-
|
|
256
|
+
const lro = (0, lroImpl_js_1.createLroSpec)({
|
|
257
|
+
sendOperationFn,
|
|
258
|
+
args: { resourceGroupName, clusterName, options },
|
|
259
|
+
spec: deleteOperationSpec,
|
|
260
|
+
});
|
|
261
|
+
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
262
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
255
263
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
256
|
-
|
|
264
|
+
resourceLocationConfig: "location",
|
|
257
265
|
});
|
|
258
266
|
await poller.poll();
|
|
259
267
|
return poller;
|
|
@@ -314,25 +322,25 @@ class ConnectedClusterOperationsImpl {
|
|
|
314
322
|
exports.ConnectedClusterOperationsImpl = ConnectedClusterOperationsImpl;
|
|
315
323
|
// Operation Specifications
|
|
316
324
|
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
317
|
-
const
|
|
325
|
+
const createOrReplaceOperationSpec = {
|
|
318
326
|
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Kubernetes/connectedClusters/{clusterName}",
|
|
319
327
|
httpMethod: "PUT",
|
|
320
328
|
responses: {
|
|
321
329
|
200: {
|
|
322
|
-
bodyMapper: Mappers.ConnectedCluster
|
|
330
|
+
bodyMapper: Mappers.ConnectedCluster,
|
|
323
331
|
},
|
|
324
332
|
201: {
|
|
325
|
-
bodyMapper: Mappers.ConnectedCluster
|
|
333
|
+
bodyMapper: Mappers.ConnectedCluster,
|
|
326
334
|
},
|
|
327
335
|
202: {
|
|
328
|
-
bodyMapper: Mappers.ConnectedCluster
|
|
336
|
+
bodyMapper: Mappers.ConnectedCluster,
|
|
329
337
|
},
|
|
330
338
|
204: {
|
|
331
|
-
bodyMapper: Mappers.ConnectedCluster
|
|
339
|
+
bodyMapper: Mappers.ConnectedCluster,
|
|
332
340
|
},
|
|
333
341
|
default: {
|
|
334
|
-
bodyMapper: Mappers.ErrorResponse
|
|
335
|
-
}
|
|
342
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
343
|
+
},
|
|
336
344
|
},
|
|
337
345
|
requestBody: Parameters.connectedCluster,
|
|
338
346
|
queryParameters: [Parameters.apiVersion],
|
|
@@ -340,22 +348,22 @@ const createOperationSpec = {
|
|
|
340
348
|
Parameters.$host,
|
|
341
349
|
Parameters.subscriptionId,
|
|
342
350
|
Parameters.resourceGroupName,
|
|
343
|
-
Parameters.clusterName
|
|
351
|
+
Parameters.clusterName,
|
|
344
352
|
],
|
|
345
353
|
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
346
354
|
mediaType: "json",
|
|
347
|
-
serializer
|
|
355
|
+
serializer,
|
|
348
356
|
};
|
|
349
357
|
const updateOperationSpec = {
|
|
350
358
|
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Kubernetes/connectedClusters/{clusterName}",
|
|
351
359
|
httpMethod: "PATCH",
|
|
352
360
|
responses: {
|
|
353
361
|
200: {
|
|
354
|
-
bodyMapper: Mappers.ConnectedCluster
|
|
362
|
+
bodyMapper: Mappers.ConnectedCluster,
|
|
355
363
|
},
|
|
356
364
|
default: {
|
|
357
|
-
bodyMapper: Mappers.ErrorResponse
|
|
358
|
-
}
|
|
365
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
366
|
+
},
|
|
359
367
|
},
|
|
360
368
|
requestBody: Parameters.connectedClusterPatch,
|
|
361
369
|
queryParameters: [Parameters.apiVersion],
|
|
@@ -363,32 +371,32 @@ const updateOperationSpec = {
|
|
|
363
371
|
Parameters.$host,
|
|
364
372
|
Parameters.subscriptionId,
|
|
365
373
|
Parameters.resourceGroupName,
|
|
366
|
-
Parameters.clusterName
|
|
374
|
+
Parameters.clusterName,
|
|
367
375
|
],
|
|
368
376
|
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
369
377
|
mediaType: "json",
|
|
370
|
-
serializer
|
|
378
|
+
serializer,
|
|
371
379
|
};
|
|
372
380
|
const getOperationSpec = {
|
|
373
381
|
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Kubernetes/connectedClusters/{clusterName}",
|
|
374
382
|
httpMethod: "GET",
|
|
375
383
|
responses: {
|
|
376
384
|
200: {
|
|
377
|
-
bodyMapper: Mappers.ConnectedCluster
|
|
385
|
+
bodyMapper: Mappers.ConnectedCluster,
|
|
378
386
|
},
|
|
379
387
|
default: {
|
|
380
|
-
bodyMapper: Mappers.ErrorResponse
|
|
381
|
-
}
|
|
388
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
389
|
+
},
|
|
382
390
|
},
|
|
383
391
|
queryParameters: [Parameters.apiVersion],
|
|
384
392
|
urlParameters: [
|
|
385
393
|
Parameters.$host,
|
|
386
394
|
Parameters.subscriptionId,
|
|
387
395
|
Parameters.resourceGroupName,
|
|
388
|
-
Parameters.clusterName
|
|
396
|
+
Parameters.clusterName,
|
|
389
397
|
],
|
|
390
398
|
headerParameters: [Parameters.accept],
|
|
391
|
-
serializer
|
|
399
|
+
serializer,
|
|
392
400
|
};
|
|
393
401
|
const deleteOperationSpec = {
|
|
394
402
|
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Kubernetes/connectedClusters/{clusterName}",
|
|
@@ -399,29 +407,29 @@ const deleteOperationSpec = {
|
|
|
399
407
|
202: {},
|
|
400
408
|
204: {},
|
|
401
409
|
default: {
|
|
402
|
-
bodyMapper: Mappers.ErrorResponse
|
|
403
|
-
}
|
|
410
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
411
|
+
},
|
|
404
412
|
},
|
|
405
413
|
queryParameters: [Parameters.apiVersion],
|
|
406
414
|
urlParameters: [
|
|
407
415
|
Parameters.$host,
|
|
408
416
|
Parameters.subscriptionId,
|
|
409
417
|
Parameters.resourceGroupName,
|
|
410
|
-
Parameters.clusterName
|
|
418
|
+
Parameters.clusterName,
|
|
411
419
|
],
|
|
412
420
|
headerParameters: [Parameters.accept],
|
|
413
|
-
serializer
|
|
421
|
+
serializer,
|
|
414
422
|
};
|
|
415
423
|
const listClusterUserCredentialOperationSpec = {
|
|
416
424
|
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Kubernetes/connectedClusters/{clusterName}/listClusterUserCredential",
|
|
417
425
|
httpMethod: "POST",
|
|
418
426
|
responses: {
|
|
419
427
|
200: {
|
|
420
|
-
bodyMapper: Mappers.CredentialResults
|
|
428
|
+
bodyMapper: Mappers.CredentialResults,
|
|
421
429
|
},
|
|
422
430
|
default: {
|
|
423
|
-
bodyMapper: Mappers.ErrorResponse
|
|
424
|
-
}
|
|
431
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
432
|
+
},
|
|
425
433
|
},
|
|
426
434
|
requestBody: Parameters.properties,
|
|
427
435
|
queryParameters: [Parameters.apiVersion],
|
|
@@ -429,87 +437,77 @@ const listClusterUserCredentialOperationSpec = {
|
|
|
429
437
|
Parameters.$host,
|
|
430
438
|
Parameters.subscriptionId,
|
|
431
439
|
Parameters.resourceGroupName,
|
|
432
|
-
Parameters.clusterName
|
|
440
|
+
Parameters.clusterName,
|
|
433
441
|
],
|
|
434
442
|
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
435
443
|
mediaType: "json",
|
|
436
|
-
serializer
|
|
444
|
+
serializer,
|
|
437
445
|
};
|
|
438
446
|
const listByResourceGroupOperationSpec = {
|
|
439
447
|
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Kubernetes/connectedClusters",
|
|
440
448
|
httpMethod: "GET",
|
|
441
449
|
responses: {
|
|
442
450
|
200: {
|
|
443
|
-
bodyMapper: Mappers.ConnectedClusterList
|
|
451
|
+
bodyMapper: Mappers.ConnectedClusterList,
|
|
444
452
|
},
|
|
445
453
|
default: {
|
|
446
|
-
bodyMapper: Mappers.ErrorResponse
|
|
447
|
-
}
|
|
454
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
455
|
+
},
|
|
448
456
|
},
|
|
449
457
|
queryParameters: [Parameters.apiVersion],
|
|
450
|
-
urlParameters: [
|
|
451
|
-
Parameters.$host,
|
|
452
|
-
Parameters.subscriptionId,
|
|
453
|
-
Parameters.resourceGroupName
|
|
454
|
-
],
|
|
458
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName],
|
|
455
459
|
headerParameters: [Parameters.accept],
|
|
456
|
-
serializer
|
|
460
|
+
serializer,
|
|
457
461
|
};
|
|
458
462
|
const listBySubscriptionOperationSpec = {
|
|
459
463
|
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Kubernetes/connectedClusters",
|
|
460
464
|
httpMethod: "GET",
|
|
461
465
|
responses: {
|
|
462
466
|
200: {
|
|
463
|
-
bodyMapper: Mappers.ConnectedClusterList
|
|
467
|
+
bodyMapper: Mappers.ConnectedClusterList,
|
|
464
468
|
},
|
|
465
469
|
default: {
|
|
466
|
-
bodyMapper: Mappers.ErrorResponse
|
|
467
|
-
}
|
|
470
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
471
|
+
},
|
|
468
472
|
},
|
|
469
473
|
queryParameters: [Parameters.apiVersion],
|
|
470
474
|
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
471
475
|
headerParameters: [Parameters.accept],
|
|
472
|
-
serializer
|
|
476
|
+
serializer,
|
|
473
477
|
};
|
|
474
478
|
const listByResourceGroupNextOperationSpec = {
|
|
475
479
|
path: "{nextLink}",
|
|
476
480
|
httpMethod: "GET",
|
|
477
481
|
responses: {
|
|
478
482
|
200: {
|
|
479
|
-
bodyMapper: Mappers.ConnectedClusterList
|
|
483
|
+
bodyMapper: Mappers.ConnectedClusterList,
|
|
480
484
|
},
|
|
481
485
|
default: {
|
|
482
|
-
bodyMapper: Mappers.ErrorResponse
|
|
483
|
-
}
|
|
486
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
487
|
+
},
|
|
484
488
|
},
|
|
485
|
-
queryParameters: [Parameters.apiVersion],
|
|
486
489
|
urlParameters: [
|
|
487
490
|
Parameters.$host,
|
|
488
491
|
Parameters.subscriptionId,
|
|
489
492
|
Parameters.resourceGroupName,
|
|
490
|
-
Parameters.nextLink
|
|
493
|
+
Parameters.nextLink,
|
|
491
494
|
],
|
|
492
495
|
headerParameters: [Parameters.accept],
|
|
493
|
-
serializer
|
|
496
|
+
serializer,
|
|
494
497
|
};
|
|
495
498
|
const listBySubscriptionNextOperationSpec = {
|
|
496
499
|
path: "{nextLink}",
|
|
497
500
|
httpMethod: "GET",
|
|
498
501
|
responses: {
|
|
499
502
|
200: {
|
|
500
|
-
bodyMapper: Mappers.ConnectedClusterList
|
|
503
|
+
bodyMapper: Mappers.ConnectedClusterList,
|
|
501
504
|
},
|
|
502
505
|
default: {
|
|
503
|
-
bodyMapper: Mappers.ErrorResponse
|
|
504
|
-
}
|
|
506
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
507
|
+
},
|
|
505
508
|
},
|
|
506
|
-
|
|
507
|
-
urlParameters: [
|
|
508
|
-
Parameters.$host,
|
|
509
|
-
Parameters.subscriptionId,
|
|
510
|
-
Parameters.nextLink
|
|
511
|
-
],
|
|
509
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.nextLink],
|
|
512
510
|
headerParameters: [Parameters.accept],
|
|
513
|
-
serializer
|
|
511
|
+
serializer,
|
|
514
512
|
};
|
|
515
513
|
//# sourceMappingURL=connectedClusterOperations.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connectedClusterOperations.js","sourceRoot":"","sources":["../../../src/operations/connectedClusterOperations.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAEtD,8CAA4E;AAC5E,8CAAwC;AAwBxC,4CAA4C;AAC5C,8DAA8D;AAC9D,MAAa,8BAA8B;IAIzC;;;OAGG;IACH,YAAY,MAAiC;QAC3C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACI,mBAAmB,CACxB,iBAAyB,EACzB,OAA2D;QAE3D,MAAM,IAAI,GAAG,IAAI,CAAC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C,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,mCAAmC,GAA6B;IACpE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,oBAAoB;SACzC;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,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 { ConnectedClusterOperations } 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 { ConnectedKubernetesClient } from \"../connectedKubernetesClient.js\";\nimport { PollerLike, PollOperationState, LroEngine } from \"@azure/core-lro\";\nimport { LroImpl } from \"../lroImpl.js\";\nimport {\n ConnectedCluster,\n ConnectedClusterListByResourceGroupNextOptionalParams,\n ConnectedClusterListByResourceGroupOptionalParams,\n ConnectedClusterListByResourceGroupResponse,\n ConnectedClusterListBySubscriptionNextOptionalParams,\n ConnectedClusterListBySubscriptionOptionalParams,\n ConnectedClusterListBySubscriptionResponse,\n ConnectedClusterCreateOptionalParams,\n ConnectedClusterCreateResponse,\n ConnectedClusterPatch,\n ConnectedClusterUpdateOptionalParams,\n ConnectedClusterUpdateResponse,\n ConnectedClusterGetOptionalParams,\n ConnectedClusterGetResponse,\n ConnectedClusterDeleteOptionalParams,\n ListClusterUserCredentialProperties,\n ConnectedClusterListClusterUserCredentialOptionalParams,\n ConnectedClusterListClusterUserCredentialResponse,\n ConnectedClusterListByResourceGroupNextResponse,\n ConnectedClusterListBySubscriptionNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing ConnectedClusterOperations operations. */\nexport class ConnectedClusterOperationsImpl\n implements ConnectedClusterOperations {\n private readonly client: ConnectedKubernetesClient;\n\n /**\n * Initialize a new instance of the class ConnectedClusterOperations class.\n * @param client Reference to the service client\n */\n constructor(client: ConnectedKubernetesClient) {\n this.client = client;\n }\n\n /**\n * API to enumerate registered connected K8s clusters under a Resource Group\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param options The options parameters.\n */\n public listByResourceGroup(\n resourceGroupName: string,\n options?: ConnectedClusterListByResourceGroupOptionalParams\n ): PagedAsyncIterableIterator<ConnectedCluster> {\n const iter = this.listByResourceGroupPagingAll(resourceGroupName, 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.listByResourceGroupPagingPage(\n resourceGroupName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listByResourceGroupPagingPage(\n resourceGroupName: string,\n options?: ConnectedClusterListByResourceGroupOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<ConnectedCluster[]> {\n let result: ConnectedClusterListByResourceGroupResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByResourceGroup(resourceGroupName, 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._listByResourceGroupNext(\n resourceGroupName,\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 *listByResourceGroupPagingAll(\n resourceGroupName: string,\n options?: ConnectedClusterListByResourceGroupOptionalParams\n ): AsyncIterableIterator<ConnectedCluster> {\n for await (const page of this.listByResourceGroupPagingPage(\n resourceGroupName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * API to enumerate registered connected K8s clusters under a Subscription\n * @param options The options parameters.\n */\n public listBySubscription(\n options?: ConnectedClusterListBySubscriptionOptionalParams\n ): PagedAsyncIterableIterator<ConnectedCluster> {\n const iter = this.listBySubscriptionPagingAll(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.listBySubscriptionPagingPage(options, settings);\n }\n };\n }\n\n private async *listBySubscriptionPagingPage(\n options?: ConnectedClusterListBySubscriptionOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<ConnectedCluster[]> {\n let result: ConnectedClusterListBySubscriptionResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listBySubscription(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._listBySubscriptionNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listBySubscriptionPagingAll(\n options?: ConnectedClusterListBySubscriptionOptionalParams\n ): AsyncIterableIterator<ConnectedCluster> {\n for await (const page of this.listBySubscriptionPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * API to register a new Kubernetes cluster and create a tracked resource in Azure Resource Manager\n * (ARM).\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the Kubernetes cluster on which get is called.\n * @param connectedCluster Parameters supplied to Create a Connected Cluster.\n * @param options The options parameters.\n */\n async beginCreate(\n resourceGroupName: string,\n clusterName: string,\n connectedCluster: ConnectedCluster,\n options?: ConnectedClusterCreateOptionalParams\n ): Promise<\n PollerLike<\n PollOperationState<ConnectedClusterCreateResponse>,\n ConnectedClusterCreateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<ConnectedClusterCreateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperation = 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 = new LroImpl(\n sendOperation,\n { resourceGroupName, clusterName, connectedCluster, options },\n createOperationSpec\n );\n const poller = new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n lroResourceLocationConfig: \"azure-async-operation\"\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * API to register a new Kubernetes cluster and create a tracked resource in Azure Resource Manager\n * (ARM).\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the Kubernetes cluster on which get is called.\n * @param connectedCluster Parameters supplied to Create a Connected Cluster.\n * @param options The options parameters.\n */\n async beginCreateAndWait(\n resourceGroupName: string,\n clusterName: string,\n connectedCluster: ConnectedCluster,\n options?: ConnectedClusterCreateOptionalParams\n ): Promise<ConnectedClusterCreateResponse> {\n const poller = await this.beginCreate(\n resourceGroupName,\n clusterName,\n connectedCluster,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * API to update certain properties of the connected cluster resource\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the Kubernetes cluster on which get is called.\n * @param connectedClusterPatch Parameters supplied to update Connected Cluster.\n * @param options The options parameters.\n */\n update(\n resourceGroupName: string,\n clusterName: string,\n connectedClusterPatch: ConnectedClusterPatch,\n options?: ConnectedClusterUpdateOptionalParams\n ): Promise<ConnectedClusterUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, clusterName, connectedClusterPatch, options },\n updateOperationSpec\n );\n }\n\n /**\n * Returns the properties of the specified connected cluster, including name, identity, properties, and\n * additional cluster details.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the Kubernetes cluster on which get is called.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n clusterName: string,\n options?: ConnectedClusterGetOptionalParams\n ): Promise<ConnectedClusterGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, clusterName, options },\n getOperationSpec\n );\n }\n\n /**\n * Delete a connected cluster, removing the tracked resource in Azure Resource Manager (ARM).\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the Kubernetes cluster on which get is called.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n clusterName: string,\n options?: ConnectedClusterDeleteOptionalParams\n ): Promise<PollerLike<PollOperationState<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 sendOperation = 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 = new LroImpl(\n sendOperation,\n { resourceGroupName, clusterName, options },\n deleteOperationSpec\n );\n const poller = new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n lroResourceLocationConfig: \"location\"\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Delete a connected cluster, removing the tracked resource in Azure Resource Manager (ARM).\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the Kubernetes cluster on which get is called.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n clusterName: string,\n options?: ConnectedClusterDeleteOptionalParams\n ): Promise<void> {\n const poller = await this.beginDelete(\n resourceGroupName,\n clusterName,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Gets cluster user credentials of the connected cluster with a specified resource group and name.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the Kubernetes cluster on which get is called.\n * @param properties ListClusterUserCredential properties\n * @param options The options parameters.\n */\n listClusterUserCredential(\n resourceGroupName: string,\n clusterName: string,\n properties: ListClusterUserCredentialProperties,\n options?: ConnectedClusterListClusterUserCredentialOptionalParams\n ): Promise<ConnectedClusterListClusterUserCredentialResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, clusterName, properties, options },\n listClusterUserCredentialOperationSpec\n );\n }\n\n /**\n * API to enumerate registered connected K8s clusters under a Resource Group\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param options The options parameters.\n */\n private _listByResourceGroup(\n resourceGroupName: string,\n options?: ConnectedClusterListByResourceGroupOptionalParams\n ): Promise<ConnectedClusterListByResourceGroupResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, options },\n listByResourceGroupOperationSpec\n );\n }\n\n /**\n * API to enumerate registered connected K8s clusters under a Subscription\n * @param options The options parameters.\n */\n private _listBySubscription(\n options?: ConnectedClusterListBySubscriptionOptionalParams\n ): Promise<ConnectedClusterListBySubscriptionResponse> {\n return this.client.sendOperationRequest(\n { options },\n listBySubscriptionOperationSpec\n );\n }\n\n /**\n * ListByResourceGroupNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.\n * @param options The options parameters.\n */\n private _listByResourceGroupNext(\n resourceGroupName: string,\n nextLink: string,\n options?: ConnectedClusterListByResourceGroupNextOptionalParams\n ): Promise<ConnectedClusterListByResourceGroupNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, nextLink, options },\n listByResourceGroupNextOperationSpec\n );\n }\n\n /**\n * ListBySubscriptionNext\n * @param nextLink The nextLink from the previous successful call to the ListBySubscription method.\n * @param options The options parameters.\n */\n private _listBySubscriptionNext(\n nextLink: string,\n options?: ConnectedClusterListBySubscriptionNextOptionalParams\n ): Promise<ConnectedClusterListBySubscriptionNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listBySubscriptionNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst createOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Kubernetes/connectedClusters/{clusterName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.ConnectedCluster\n },\n 201: {\n bodyMapper: Mappers.ConnectedCluster\n },\n 202: {\n bodyMapper: Mappers.ConnectedCluster\n },\n 204: {\n bodyMapper: Mappers.ConnectedCluster\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.connectedCluster,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.clusterName\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Kubernetes/connectedClusters/{clusterName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.ConnectedCluster\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.connectedClusterPatch,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.clusterName\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Kubernetes/connectedClusters/{clusterName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ConnectedCluster\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.clusterName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Kubernetes/connectedClusters/{clusterName}\",\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.clusterName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listClusterUserCredentialOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Kubernetes/connectedClusters/{clusterName}/listClusterUserCredential\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.CredentialResults\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.properties,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.clusterName\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer\n};\nconst listByResourceGroupOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Kubernetes/connectedClusters\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ConnectedClusterList\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 ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listBySubscriptionOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/providers/Microsoft.Kubernetes/connectedClusters\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ConnectedClusterList\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ConnectedClusterList\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.nextLink\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listBySubscriptionNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ConnectedClusterList\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.nextLink\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
1
|
+
{"version":3,"file":"connectedClusterOperations.js","sourceRoot":"","sources":["../../../src/operations/connectedClusterOperations.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAGtD,8CAAmD;AACnD,8CAA8C;AAwB9C,4CAA4C;AAC5C,8DAA8D;AAC9D,MAAa,8BAA8B;IAGzC;;;OAGG;IACH,YAAY,MAAiC;QAC3C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACI,mBAAmB,CACxB,iBAAyB,EACzB,OAA2D;QAE3D,MAAM,IAAI,GAAG,IAAI,CAAC,4BAA4B,CAAC,iBAAiB,EAAE,OAAO,CAAC,CAAC;QAC3E,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,QAAQ,uBAAR,QAAQ,CAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;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D,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,cAAc,EAAE,UAAU,CAAC,QAAQ,CAAC;IACjF,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 type { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport type { ConnectedClusterOperations } 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 type { ConnectedKubernetesClient } from \"../connectedKubernetesClient.js\";\nimport type { SimplePollerLike, OperationState } from \"@azure/core-lro\";\nimport { createHttpPoller } from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport type {\n ConnectedCluster,\n ConnectedClusterListByResourceGroupNextOptionalParams,\n ConnectedClusterListByResourceGroupOptionalParams,\n ConnectedClusterListByResourceGroupResponse,\n ConnectedClusterListBySubscriptionNextOptionalParams,\n ConnectedClusterListBySubscriptionOptionalParams,\n ConnectedClusterListBySubscriptionResponse,\n ConnectedClusterCreateOrReplaceOptionalParams,\n ConnectedClusterCreateOrReplaceResponse,\n ConnectedClusterPatch,\n ConnectedClusterUpdateOptionalParams,\n ConnectedClusterUpdateResponse,\n ConnectedClusterGetOptionalParams,\n ConnectedClusterGetResponse,\n ConnectedClusterDeleteOptionalParams,\n ListClusterUserCredentialProperties,\n ConnectedClusterListClusterUserCredentialOptionalParams,\n ConnectedClusterListClusterUserCredentialResponse,\n ConnectedClusterListByResourceGroupNextResponse,\n ConnectedClusterListBySubscriptionNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing ConnectedClusterOperations operations. */\nexport class ConnectedClusterOperationsImpl implements ConnectedClusterOperations {\n private readonly client: ConnectedKubernetesClient;\n\n /**\n * Initialize a new instance of the class ConnectedClusterOperations class.\n * @param client Reference to the service client\n */\n constructor(client: ConnectedKubernetesClient) {\n this.client = client;\n }\n\n /**\n * API to enumerate registered connected K8s clusters under a Resource Group\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param options The options parameters.\n */\n public listByResourceGroup(\n resourceGroupName: string,\n options?: ConnectedClusterListByResourceGroupOptionalParams,\n ): PagedAsyncIterableIterator<ConnectedCluster> {\n const iter = this.listByResourceGroupPagingAll(resourceGroupName, 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.listByResourceGroupPagingPage(resourceGroupName, options, settings);\n },\n };\n }\n\n private async *listByResourceGroupPagingPage(\n resourceGroupName: string,\n options?: ConnectedClusterListByResourceGroupOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<ConnectedCluster[]> {\n let result: ConnectedClusterListByResourceGroupResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByResourceGroup(resourceGroupName, 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._listByResourceGroupNext(resourceGroupName, continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByResourceGroupPagingAll(\n resourceGroupName: string,\n options?: ConnectedClusterListByResourceGroupOptionalParams,\n ): AsyncIterableIterator<ConnectedCluster> {\n for await (const page of this.listByResourceGroupPagingPage(resourceGroupName, options)) {\n yield* page;\n }\n }\n\n /**\n * API to enumerate registered connected K8s clusters under a Subscription\n * @param options The options parameters.\n */\n public listBySubscription(\n options?: ConnectedClusterListBySubscriptionOptionalParams,\n ): PagedAsyncIterableIterator<ConnectedCluster> {\n const iter = this.listBySubscriptionPagingAll(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.listBySubscriptionPagingPage(options, settings);\n },\n };\n }\n\n private async *listBySubscriptionPagingPage(\n options?: ConnectedClusterListBySubscriptionOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<ConnectedCluster[]> {\n let result: ConnectedClusterListBySubscriptionResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listBySubscription(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._listBySubscriptionNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listBySubscriptionPagingAll(\n options?: ConnectedClusterListBySubscriptionOptionalParams,\n ): AsyncIterableIterator<ConnectedCluster> {\n for await (const page of this.listBySubscriptionPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * API to register a new Kubernetes cluster and create or replace a connected cluster tracked resource\n * in Azure Resource Manager (ARM).\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the Kubernetes cluster on which get is called.\n * @param connectedCluster Parameters supplied to Create a Connected Cluster.\n * @param options The options parameters.\n */\n async beginCreateOrReplace(\n resourceGroupName: string,\n clusterName: string,\n connectedCluster: ConnectedCluster,\n options?: ConnectedClusterCreateOrReplaceOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<ConnectedClusterCreateOrReplaceResponse>,\n ConnectedClusterCreateOrReplaceResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<ConnectedClusterCreateOrReplaceResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | 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: { resourceGroupName, clusterName, connectedCluster, options },\n spec: createOrReplaceOperationSpec,\n });\n const poller = await createHttpPoller<\n ConnectedClusterCreateOrReplaceResponse,\n OperationState<ConnectedClusterCreateOrReplaceResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"azure-async-operation\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * API to register a new Kubernetes cluster and create or replace a connected cluster tracked resource\n * in Azure Resource Manager (ARM).\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the Kubernetes cluster on which get is called.\n * @param connectedCluster Parameters supplied to Create a Connected Cluster.\n * @param options The options parameters.\n */\n async beginCreateOrReplaceAndWait(\n resourceGroupName: string,\n clusterName: string,\n connectedCluster: ConnectedCluster,\n options?: ConnectedClusterCreateOrReplaceOptionalParams,\n ): Promise<ConnectedClusterCreateOrReplaceResponse> {\n const poller = await this.beginCreateOrReplace(\n resourceGroupName,\n clusterName,\n connectedCluster,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * API to update certain properties of the connected cluster resource\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the Kubernetes cluster on which get is called.\n * @param connectedClusterPatch Parameters supplied to update Connected Cluster.\n * @param options The options parameters.\n */\n update(\n resourceGroupName: string,\n clusterName: string,\n connectedClusterPatch: ConnectedClusterPatch,\n options?: ConnectedClusterUpdateOptionalParams,\n ): Promise<ConnectedClusterUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, clusterName, connectedClusterPatch, options },\n updateOperationSpec,\n );\n }\n\n /**\n * Returns the properties of the specified connected cluster, including name, identity, properties, and\n * additional cluster details.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the Kubernetes cluster on which get is called.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n clusterName: string,\n options?: ConnectedClusterGetOptionalParams,\n ): Promise<ConnectedClusterGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, clusterName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Delete a connected cluster, removing the tracked resource in Azure Resource Manager (ARM).\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the Kubernetes cluster on which get is called.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n clusterName: string,\n options?: ConnectedClusterDeleteOptionalParams,\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: coreClient.FullOperationResponse | 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: { resourceGroupName, clusterName, options },\n spec: deleteOperationSpec,\n });\n const poller = await createHttpPoller<void, OperationState<void>>(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Delete a connected cluster, removing the tracked resource in Azure Resource Manager (ARM).\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the Kubernetes cluster on which get is called.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n clusterName: string,\n options?: ConnectedClusterDeleteOptionalParams,\n ): Promise<void> {\n const poller = await this.beginDelete(resourceGroupName, clusterName, options);\n return poller.pollUntilDone();\n }\n\n /**\n * Gets cluster user credentials of the connected cluster with a specified resource group and name.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the Kubernetes cluster on which get is called.\n * @param properties ListClusterUserCredential properties\n * @param options The options parameters.\n */\n listClusterUserCredential(\n resourceGroupName: string,\n clusterName: string,\n properties: ListClusterUserCredentialProperties,\n options?: ConnectedClusterListClusterUserCredentialOptionalParams,\n ): Promise<ConnectedClusterListClusterUserCredentialResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, clusterName, properties, options },\n listClusterUserCredentialOperationSpec,\n );\n }\n\n /**\n * API to enumerate registered connected K8s clusters under a Resource Group\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param options The options parameters.\n */\n private _listByResourceGroup(\n resourceGroupName: string,\n options?: ConnectedClusterListByResourceGroupOptionalParams,\n ): Promise<ConnectedClusterListByResourceGroupResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, options },\n listByResourceGroupOperationSpec,\n );\n }\n\n /**\n * API to enumerate registered connected K8s clusters under a Subscription\n * @param options The options parameters.\n */\n private _listBySubscription(\n options?: ConnectedClusterListBySubscriptionOptionalParams,\n ): Promise<ConnectedClusterListBySubscriptionResponse> {\n return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec);\n }\n\n /**\n * ListByResourceGroupNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.\n * @param options The options parameters.\n */\n private _listByResourceGroupNext(\n resourceGroupName: string,\n nextLink: string,\n options?: ConnectedClusterListByResourceGroupNextOptionalParams,\n ): Promise<ConnectedClusterListByResourceGroupNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, nextLink, options },\n listByResourceGroupNextOperationSpec,\n );\n }\n\n /**\n * ListBySubscriptionNext\n * @param nextLink The nextLink from the previous successful call to the ListBySubscription method.\n * @param options The options parameters.\n */\n private _listBySubscriptionNext(\n nextLink: string,\n options?: ConnectedClusterListBySubscriptionNextOptionalParams,\n ): Promise<ConnectedClusterListBySubscriptionNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listBySubscriptionNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst createOrReplaceOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Kubernetes/connectedClusters/{clusterName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.ConnectedCluster,\n },\n 201: {\n bodyMapper: Mappers.ConnectedCluster,\n },\n 202: {\n bodyMapper: Mappers.ConnectedCluster,\n },\n 204: {\n bodyMapper: Mappers.ConnectedCluster,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.connectedCluster,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.clusterName,\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Kubernetes/connectedClusters/{clusterName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.ConnectedCluster,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.connectedClusterPatch,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.clusterName,\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Kubernetes/connectedClusters/{clusterName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ConnectedCluster,\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.clusterName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Kubernetes/connectedClusters/{clusterName}\",\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.clusterName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listClusterUserCredentialOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Kubernetes/connectedClusters/{clusterName}/listClusterUserCredential\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.CredentialResults,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.properties,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.clusterName,\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst listByResourceGroupOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Kubernetes/connectedClusters\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ConnectedClusterList,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listBySubscriptionOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.Kubernetes/connectedClusters\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ConnectedClusterList,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ConnectedClusterList,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listBySubscriptionNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ConnectedClusterList,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
-
import { Operations } from "../operationsInterfaces/index.js";
|
|
3
|
-
import { ConnectedKubernetesClient } from "../connectedKubernetesClient.js";
|
|
4
|
-
import { Operation, OperationsGetOptionalParams } from "../models/index.js";
|
|
1
|
+
import type { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
+
import type { Operations } from "../operationsInterfaces/index.js";
|
|
3
|
+
import type { ConnectedKubernetesClient } from "../connectedKubernetesClient.js";
|
|
4
|
+
import type { Operation, OperationsGetOptionalParams } from "../models/index.js";
|
|
5
5
|
/** Class containing Operations operations. */
|
|
6
6
|
export declare class OperationsImpl implements Operations {
|
|
7
7
|
private readonly client;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../src/operations/operations.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../src/operations/operations.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAEnF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAInE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,iCAAiC,CAAC;AACjF,OAAO,KAAK,EACV,SAAS,EAET,2BAA2B,EAG5B,MAAM,oBAAoB,CAAC;AAG5B,8CAA8C;AAC9C,qBAAa,cAAe,YAAW,UAAU;IAC/C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA4B;IAEnD;;;OAGG;gBACS,MAAM,EAAE,yBAAyB;IAI7C;;;OAGG;IACI,IAAI,CAAC,OAAO,CAAC,EAAE,2BAA2B,GAAG,0BAA0B,CAAC,SAAS,CAAC;YAkB1E,aAAa;YAsBb,YAAY;IAQ3B;;;OAGG;IACH,OAAO,CAAC,IAAI;IAIZ;;;;OAIG;IACH,OAAO,CAAC,QAAQ;CAMjB"}
|
|
@@ -41,7 +41,7 @@ class OperationsImpl {
|
|
|
41
41
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
42
42
|
}
|
|
43
43
|
return this.getPagingPage(options, settings);
|
|
44
|
-
}
|
|
44
|
+
},
|
|
45
45
|
};
|
|
46
46
|
}
|
|
47
47
|
getPagingPage(options, settings) {
|
|
@@ -108,31 +108,30 @@ const getOperationSpec = {
|
|
|
108
108
|
httpMethod: "GET",
|
|
109
109
|
responses: {
|
|
110
110
|
200: {
|
|
111
|
-
bodyMapper: Mappers.OperationList
|
|
111
|
+
bodyMapper: Mappers.OperationList,
|
|
112
112
|
},
|
|
113
113
|
default: {
|
|
114
|
-
bodyMapper: Mappers.ErrorResponse
|
|
115
|
-
}
|
|
114
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
115
|
+
},
|
|
116
116
|
},
|
|
117
117
|
queryParameters: [Parameters.apiVersion],
|
|
118
118
|
urlParameters: [Parameters.$host],
|
|
119
119
|
headerParameters: [Parameters.accept],
|
|
120
|
-
serializer
|
|
120
|
+
serializer,
|
|
121
121
|
};
|
|
122
122
|
const getNextOperationSpec = {
|
|
123
123
|
path: "{nextLink}",
|
|
124
124
|
httpMethod: "GET",
|
|
125
125
|
responses: {
|
|
126
126
|
200: {
|
|
127
|
-
bodyMapper: Mappers.OperationList
|
|
127
|
+
bodyMapper: Mappers.OperationList,
|
|
128
128
|
},
|
|
129
129
|
default: {
|
|
130
|
-
bodyMapper: Mappers.ErrorResponse
|
|
131
|
-
}
|
|
130
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
131
|
+
},
|
|
132
132
|
},
|
|
133
|
-
queryParameters: [Parameters.apiVersion],
|
|
134
133
|
urlParameters: [Parameters.$host, Parameters.nextLink],
|
|
135
134
|
headerParameters: [Parameters.accept],
|
|
136
|
-
serializer
|
|
135
|
+
serializer,
|
|
137
136
|
};
|
|
138
137
|
//# sourceMappingURL=operations.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/operations/operations.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAUtD,4CAA4C;AAC5C,8CAA8C;AAC9C,MAAa,cAAc;IAGzB;;;OAGG;IACH,YAAY,MAAiC;QAC3C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACI,IAAI,
|
|
1
|
+
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/operations/operations.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAUtD,4CAA4C;AAC5C,8CAA8C;AAC9C,MAAa,cAAc;IAGzB;;;OAGG;IACH,YAAY,MAAiC;QAC3C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACI,IAAI,CAAC,OAAqC;QAC/C,MAAM,IAAI,GAAG,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;QACxC,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;gBACl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U,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 type { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport type { 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 type { ConnectedKubernetesClient } from \"../connectedKubernetesClient.js\";\nimport type {\n Operation,\n OperationsGetNextOptionalParams,\n OperationsGetOptionalParams,\n OperationsGetResponse,\n OperationsGetNextResponse,\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: ConnectedKubernetesClient;\n\n /**\n * Initialize a new instance of the class Operations class.\n * @param client Reference to the service client\n */\n constructor(client: ConnectedKubernetesClient) {\n this.client = client;\n }\n\n /**\n * Lists all of the available API operations for Connected Cluster resource.\n * @param options The options parameters.\n */\n public list(options?: OperationsGetOptionalParams): PagedAsyncIterableIterator<Operation> {\n const iter = this.getPagingAll(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.getPagingPage(options, settings);\n },\n };\n }\n\n private async *getPagingPage(\n options?: OperationsGetOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<Operation[]> {\n let result: OperationsGetResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._get(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._getNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *getPagingAll(\n options?: OperationsGetOptionalParams,\n ): AsyncIterableIterator<Operation> {\n for await (const page of this.getPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Lists all of the available API operations for Connected Cluster resource.\n * @param options The options parameters.\n */\n private _get(options?: OperationsGetOptionalParams): Promise<OperationsGetResponse> {\n return this.client.sendOperationRequest({ options }, getOperationSpec);\n }\n\n /**\n * GetNext\n * @param nextLink The nextLink from the previous successful call to the Get method.\n * @param options The options parameters.\n */\n private _getNext(\n nextLink: string,\n options?: OperationsGetNextOptionalParams,\n ): Promise<OperationsGetNextResponse> {\n return this.client.sendOperationRequest({ nextLink, options }, getNextOperationSpec);\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Kubernetes/operations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationList,\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 getNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationList,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [Parameters.$host, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|