@azure/arm-hybridkubernetes 2.1.1-alpha.20250327.1 → 3.0.0-alpha.20250331.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/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 +34 -33
- package/review/arm-hybridkubernetes.api.md +156 -23
|
@@ -10,8 +10,8 @@ import { setContinuationToken } from "../pagingHelper.js";
|
|
|
10
10
|
import * as coreClient from "@azure/core-client";
|
|
11
11
|
import * as Mappers from "../models/mappers.js";
|
|
12
12
|
import * as Parameters from "../models/parameters.js";
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
13
|
+
import { createHttpPoller } from "@azure/core-lro";
|
|
14
|
+
import { createLroSpec } from "../lroImpl.js";
|
|
15
15
|
/// <reference lib="esnext.asynciterable" />
|
|
16
16
|
/** Class containing ConnectedClusterOperations operations. */
|
|
17
17
|
export class ConnectedClusterOperationsImpl {
|
|
@@ -41,7 +41,7 @@ export class ConnectedClusterOperationsImpl {
|
|
|
41
41
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
42
42
|
}
|
|
43
43
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
44
|
-
}
|
|
44
|
+
},
|
|
45
45
|
};
|
|
46
46
|
}
|
|
47
47
|
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
@@ -102,7 +102,7 @@ export class ConnectedClusterOperationsImpl {
|
|
|
102
102
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
103
103
|
}
|
|
104
104
|
return this.listBySubscriptionPagingPage(options, settings);
|
|
105
|
-
}
|
|
105
|
+
},
|
|
106
106
|
};
|
|
107
107
|
}
|
|
108
108
|
listBySubscriptionPagingPage(options, settings) {
|
|
@@ -146,18 +146,18 @@ export class ConnectedClusterOperationsImpl {
|
|
|
146
146
|
});
|
|
147
147
|
}
|
|
148
148
|
/**
|
|
149
|
-
* API to register a new Kubernetes cluster and create
|
|
150
|
-
* (ARM).
|
|
149
|
+
* API to register a new Kubernetes cluster and create or replace a connected cluster tracked resource
|
|
150
|
+
* in Azure Resource Manager (ARM).
|
|
151
151
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
152
152
|
* @param clusterName The name of the Kubernetes cluster on which get is called.
|
|
153
153
|
* @param connectedCluster Parameters supplied to Create a Connected Cluster.
|
|
154
154
|
* @param options The options parameters.
|
|
155
155
|
*/
|
|
156
|
-
async
|
|
156
|
+
async beginCreateOrReplace(resourceGroupName, clusterName, connectedCluster, options) {
|
|
157
157
|
const directSendOperation = async (args, spec) => {
|
|
158
158
|
return this.client.sendOperationRequest(args, spec);
|
|
159
159
|
};
|
|
160
|
-
const
|
|
160
|
+
const sendOperationFn = async (args, spec) => {
|
|
161
161
|
var _a;
|
|
162
162
|
let currentRawResponse = undefined;
|
|
163
163
|
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
@@ -172,29 +172,33 @@ export class ConnectedClusterOperationsImpl {
|
|
|
172
172
|
rawResponse: {
|
|
173
173
|
statusCode: currentRawResponse.status,
|
|
174
174
|
body: currentRawResponse.parsedBody,
|
|
175
|
-
headers: currentRawResponse.headers.toJSON()
|
|
176
|
-
}
|
|
175
|
+
headers: currentRawResponse.headers.toJSON(),
|
|
176
|
+
},
|
|
177
177
|
};
|
|
178
178
|
};
|
|
179
|
-
const lro =
|
|
180
|
-
|
|
181
|
-
|
|
179
|
+
const lro = createLroSpec({
|
|
180
|
+
sendOperationFn,
|
|
181
|
+
args: { resourceGroupName, clusterName, connectedCluster, options },
|
|
182
|
+
spec: createOrReplaceOperationSpec,
|
|
183
|
+
});
|
|
184
|
+
const poller = await createHttpPoller(lro, {
|
|
185
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
182
186
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
183
|
-
|
|
187
|
+
resourceLocationConfig: "azure-async-operation",
|
|
184
188
|
});
|
|
185
189
|
await poller.poll();
|
|
186
190
|
return poller;
|
|
187
191
|
}
|
|
188
192
|
/**
|
|
189
|
-
* API to register a new Kubernetes cluster and create
|
|
190
|
-
* (ARM).
|
|
193
|
+
* API to register a new Kubernetes cluster and create or replace a connected cluster tracked resource
|
|
194
|
+
* in Azure Resource Manager (ARM).
|
|
191
195
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
192
196
|
* @param clusterName The name of the Kubernetes cluster on which get is called.
|
|
193
197
|
* @param connectedCluster Parameters supplied to Create a Connected Cluster.
|
|
194
198
|
* @param options The options parameters.
|
|
195
199
|
*/
|
|
196
|
-
async
|
|
197
|
-
const poller = await this.
|
|
200
|
+
async beginCreateOrReplaceAndWait(resourceGroupName, clusterName, connectedCluster, options) {
|
|
201
|
+
const poller = await this.beginCreateOrReplace(resourceGroupName, clusterName, connectedCluster, options);
|
|
198
202
|
return poller.pollUntilDone();
|
|
199
203
|
}
|
|
200
204
|
/**
|
|
@@ -227,7 +231,7 @@ export class ConnectedClusterOperationsImpl {
|
|
|
227
231
|
const directSendOperation = async (args, spec) => {
|
|
228
232
|
return this.client.sendOperationRequest(args, spec);
|
|
229
233
|
};
|
|
230
|
-
const
|
|
234
|
+
const sendOperationFn = async (args, spec) => {
|
|
231
235
|
var _a;
|
|
232
236
|
let currentRawResponse = undefined;
|
|
233
237
|
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
@@ -242,15 +246,19 @@ export class ConnectedClusterOperationsImpl {
|
|
|
242
246
|
rawResponse: {
|
|
243
247
|
statusCode: currentRawResponse.status,
|
|
244
248
|
body: currentRawResponse.parsedBody,
|
|
245
|
-
headers: currentRawResponse.headers.toJSON()
|
|
246
|
-
}
|
|
249
|
+
headers: currentRawResponse.headers.toJSON(),
|
|
250
|
+
},
|
|
247
251
|
};
|
|
248
252
|
};
|
|
249
|
-
const lro =
|
|
250
|
-
|
|
251
|
-
|
|
253
|
+
const lro = createLroSpec({
|
|
254
|
+
sendOperationFn,
|
|
255
|
+
args: { resourceGroupName, clusterName, options },
|
|
256
|
+
spec: deleteOperationSpec,
|
|
257
|
+
});
|
|
258
|
+
const poller = await createHttpPoller(lro, {
|
|
259
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
252
260
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
253
|
-
|
|
261
|
+
resourceLocationConfig: "location",
|
|
254
262
|
});
|
|
255
263
|
await poller.poll();
|
|
256
264
|
return poller;
|
|
@@ -310,25 +318,25 @@ export class ConnectedClusterOperationsImpl {
|
|
|
310
318
|
}
|
|
311
319
|
// Operation Specifications
|
|
312
320
|
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
313
|
-
const
|
|
321
|
+
const createOrReplaceOperationSpec = {
|
|
314
322
|
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Kubernetes/connectedClusters/{clusterName}",
|
|
315
323
|
httpMethod: "PUT",
|
|
316
324
|
responses: {
|
|
317
325
|
200: {
|
|
318
|
-
bodyMapper: Mappers.ConnectedCluster
|
|
326
|
+
bodyMapper: Mappers.ConnectedCluster,
|
|
319
327
|
},
|
|
320
328
|
201: {
|
|
321
|
-
bodyMapper: Mappers.ConnectedCluster
|
|
329
|
+
bodyMapper: Mappers.ConnectedCluster,
|
|
322
330
|
},
|
|
323
331
|
202: {
|
|
324
|
-
bodyMapper: Mappers.ConnectedCluster
|
|
332
|
+
bodyMapper: Mappers.ConnectedCluster,
|
|
325
333
|
},
|
|
326
334
|
204: {
|
|
327
|
-
bodyMapper: Mappers.ConnectedCluster
|
|
335
|
+
bodyMapper: Mappers.ConnectedCluster,
|
|
328
336
|
},
|
|
329
337
|
default: {
|
|
330
|
-
bodyMapper: Mappers.ErrorResponse
|
|
331
|
-
}
|
|
338
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
339
|
+
},
|
|
332
340
|
},
|
|
333
341
|
requestBody: Parameters.connectedCluster,
|
|
334
342
|
queryParameters: [Parameters.apiVersion],
|
|
@@ -336,22 +344,22 @@ const createOperationSpec = {
|
|
|
336
344
|
Parameters.$host,
|
|
337
345
|
Parameters.subscriptionId,
|
|
338
346
|
Parameters.resourceGroupName,
|
|
339
|
-
Parameters.clusterName
|
|
347
|
+
Parameters.clusterName,
|
|
340
348
|
],
|
|
341
349
|
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
342
350
|
mediaType: "json",
|
|
343
|
-
serializer
|
|
351
|
+
serializer,
|
|
344
352
|
};
|
|
345
353
|
const updateOperationSpec = {
|
|
346
354
|
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Kubernetes/connectedClusters/{clusterName}",
|
|
347
355
|
httpMethod: "PATCH",
|
|
348
356
|
responses: {
|
|
349
357
|
200: {
|
|
350
|
-
bodyMapper: Mappers.ConnectedCluster
|
|
358
|
+
bodyMapper: Mappers.ConnectedCluster,
|
|
351
359
|
},
|
|
352
360
|
default: {
|
|
353
|
-
bodyMapper: Mappers.ErrorResponse
|
|
354
|
-
}
|
|
361
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
362
|
+
},
|
|
355
363
|
},
|
|
356
364
|
requestBody: Parameters.connectedClusterPatch,
|
|
357
365
|
queryParameters: [Parameters.apiVersion],
|
|
@@ -359,32 +367,32 @@ const updateOperationSpec = {
|
|
|
359
367
|
Parameters.$host,
|
|
360
368
|
Parameters.subscriptionId,
|
|
361
369
|
Parameters.resourceGroupName,
|
|
362
|
-
Parameters.clusterName
|
|
370
|
+
Parameters.clusterName,
|
|
363
371
|
],
|
|
364
372
|
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
365
373
|
mediaType: "json",
|
|
366
|
-
serializer
|
|
374
|
+
serializer,
|
|
367
375
|
};
|
|
368
376
|
const getOperationSpec = {
|
|
369
377
|
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Kubernetes/connectedClusters/{clusterName}",
|
|
370
378
|
httpMethod: "GET",
|
|
371
379
|
responses: {
|
|
372
380
|
200: {
|
|
373
|
-
bodyMapper: Mappers.ConnectedCluster
|
|
381
|
+
bodyMapper: Mappers.ConnectedCluster,
|
|
374
382
|
},
|
|
375
383
|
default: {
|
|
376
|
-
bodyMapper: Mappers.ErrorResponse
|
|
377
|
-
}
|
|
384
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
385
|
+
},
|
|
378
386
|
},
|
|
379
387
|
queryParameters: [Parameters.apiVersion],
|
|
380
388
|
urlParameters: [
|
|
381
389
|
Parameters.$host,
|
|
382
390
|
Parameters.subscriptionId,
|
|
383
391
|
Parameters.resourceGroupName,
|
|
384
|
-
Parameters.clusterName
|
|
392
|
+
Parameters.clusterName,
|
|
385
393
|
],
|
|
386
394
|
headerParameters: [Parameters.accept],
|
|
387
|
-
serializer
|
|
395
|
+
serializer,
|
|
388
396
|
};
|
|
389
397
|
const deleteOperationSpec = {
|
|
390
398
|
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Kubernetes/connectedClusters/{clusterName}",
|
|
@@ -395,29 +403,29 @@ const deleteOperationSpec = {
|
|
|
395
403
|
202: {},
|
|
396
404
|
204: {},
|
|
397
405
|
default: {
|
|
398
|
-
bodyMapper: Mappers.ErrorResponse
|
|
399
|
-
}
|
|
406
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
407
|
+
},
|
|
400
408
|
},
|
|
401
409
|
queryParameters: [Parameters.apiVersion],
|
|
402
410
|
urlParameters: [
|
|
403
411
|
Parameters.$host,
|
|
404
412
|
Parameters.subscriptionId,
|
|
405
413
|
Parameters.resourceGroupName,
|
|
406
|
-
Parameters.clusterName
|
|
414
|
+
Parameters.clusterName,
|
|
407
415
|
],
|
|
408
416
|
headerParameters: [Parameters.accept],
|
|
409
|
-
serializer
|
|
417
|
+
serializer,
|
|
410
418
|
};
|
|
411
419
|
const listClusterUserCredentialOperationSpec = {
|
|
412
420
|
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Kubernetes/connectedClusters/{clusterName}/listClusterUserCredential",
|
|
413
421
|
httpMethod: "POST",
|
|
414
422
|
responses: {
|
|
415
423
|
200: {
|
|
416
|
-
bodyMapper: Mappers.CredentialResults
|
|
424
|
+
bodyMapper: Mappers.CredentialResults,
|
|
417
425
|
},
|
|
418
426
|
default: {
|
|
419
|
-
bodyMapper: Mappers.ErrorResponse
|
|
420
|
-
}
|
|
427
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
428
|
+
},
|
|
421
429
|
},
|
|
422
430
|
requestBody: Parameters.properties,
|
|
423
431
|
queryParameters: [Parameters.apiVersion],
|
|
@@ -425,87 +433,77 @@ const listClusterUserCredentialOperationSpec = {
|
|
|
425
433
|
Parameters.$host,
|
|
426
434
|
Parameters.subscriptionId,
|
|
427
435
|
Parameters.resourceGroupName,
|
|
428
|
-
Parameters.clusterName
|
|
436
|
+
Parameters.clusterName,
|
|
429
437
|
],
|
|
430
438
|
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
431
439
|
mediaType: "json",
|
|
432
|
-
serializer
|
|
440
|
+
serializer,
|
|
433
441
|
};
|
|
434
442
|
const listByResourceGroupOperationSpec = {
|
|
435
443
|
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Kubernetes/connectedClusters",
|
|
436
444
|
httpMethod: "GET",
|
|
437
445
|
responses: {
|
|
438
446
|
200: {
|
|
439
|
-
bodyMapper: Mappers.ConnectedClusterList
|
|
447
|
+
bodyMapper: Mappers.ConnectedClusterList,
|
|
440
448
|
},
|
|
441
449
|
default: {
|
|
442
|
-
bodyMapper: Mappers.ErrorResponse
|
|
443
|
-
}
|
|
450
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
451
|
+
},
|
|
444
452
|
},
|
|
445
453
|
queryParameters: [Parameters.apiVersion],
|
|
446
|
-
urlParameters: [
|
|
447
|
-
Parameters.$host,
|
|
448
|
-
Parameters.subscriptionId,
|
|
449
|
-
Parameters.resourceGroupName
|
|
450
|
-
],
|
|
454
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName],
|
|
451
455
|
headerParameters: [Parameters.accept],
|
|
452
|
-
serializer
|
|
456
|
+
serializer,
|
|
453
457
|
};
|
|
454
458
|
const listBySubscriptionOperationSpec = {
|
|
455
459
|
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Kubernetes/connectedClusters",
|
|
456
460
|
httpMethod: "GET",
|
|
457
461
|
responses: {
|
|
458
462
|
200: {
|
|
459
|
-
bodyMapper: Mappers.ConnectedClusterList
|
|
463
|
+
bodyMapper: Mappers.ConnectedClusterList,
|
|
460
464
|
},
|
|
461
465
|
default: {
|
|
462
|
-
bodyMapper: Mappers.ErrorResponse
|
|
463
|
-
}
|
|
466
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
467
|
+
},
|
|
464
468
|
},
|
|
465
469
|
queryParameters: [Parameters.apiVersion],
|
|
466
470
|
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
467
471
|
headerParameters: [Parameters.accept],
|
|
468
|
-
serializer
|
|
472
|
+
serializer,
|
|
469
473
|
};
|
|
470
474
|
const listByResourceGroupNextOperationSpec = {
|
|
471
475
|
path: "{nextLink}",
|
|
472
476
|
httpMethod: "GET",
|
|
473
477
|
responses: {
|
|
474
478
|
200: {
|
|
475
|
-
bodyMapper: Mappers.ConnectedClusterList
|
|
479
|
+
bodyMapper: Mappers.ConnectedClusterList,
|
|
476
480
|
},
|
|
477
481
|
default: {
|
|
478
|
-
bodyMapper: Mappers.ErrorResponse
|
|
479
|
-
}
|
|
482
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
483
|
+
},
|
|
480
484
|
},
|
|
481
|
-
queryParameters: [Parameters.apiVersion],
|
|
482
485
|
urlParameters: [
|
|
483
486
|
Parameters.$host,
|
|
484
487
|
Parameters.subscriptionId,
|
|
485
488
|
Parameters.resourceGroupName,
|
|
486
|
-
Parameters.nextLink
|
|
489
|
+
Parameters.nextLink,
|
|
487
490
|
],
|
|
488
491
|
headerParameters: [Parameters.accept],
|
|
489
|
-
serializer
|
|
492
|
+
serializer,
|
|
490
493
|
};
|
|
491
494
|
const listBySubscriptionNextOperationSpec = {
|
|
492
495
|
path: "{nextLink}",
|
|
493
496
|
httpMethod: "GET",
|
|
494
497
|
responses: {
|
|
495
498
|
200: {
|
|
496
|
-
bodyMapper: Mappers.ConnectedClusterList
|
|
499
|
+
bodyMapper: Mappers.ConnectedClusterList,
|
|
497
500
|
},
|
|
498
501
|
default: {
|
|
499
|
-
bodyMapper: Mappers.ErrorResponse
|
|
500
|
-
}
|
|
502
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
503
|
+
},
|
|
501
504
|
},
|
|
502
|
-
|
|
503
|
-
urlParameters: [
|
|
504
|
-
Parameters.$host,
|
|
505
|
-
Parameters.subscriptionId,
|
|
506
|
-
Parameters.nextLink
|
|
507
|
-
],
|
|
505
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.nextLink],
|
|
508
506
|
headerParameters: [Parameters.accept],
|
|
509
|
-
serializer
|
|
507
|
+
serializer,
|
|
510
508
|
};
|
|
511
509
|
//# sourceMappingURL=connectedClusterOperations.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connectedClusterOperations.js","sourceRoot":"","sources":["../../../src/operations/connectedClusterOperations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,U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,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,oCAAoC,GAA6B;IACrE,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,iBAAiB;QAC5B,UAAU,CAAC,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,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;AAGtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAwB9C,4CAA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G,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,oBAAoB;SACzC;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,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,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"}
|
|
@@ -38,7 +38,7 @@ export class OperationsImpl {
|
|
|
38
38
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
39
39
|
}
|
|
40
40
|
return this.getPagingPage(options, settings);
|
|
41
|
-
}
|
|
41
|
+
},
|
|
42
42
|
};
|
|
43
43
|
}
|
|
44
44
|
getPagingPage(options, settings) {
|
|
@@ -104,31 +104,30 @@ const getOperationSpec = {
|
|
|
104
104
|
httpMethod: "GET",
|
|
105
105
|
responses: {
|
|
106
106
|
200: {
|
|
107
|
-
bodyMapper: Mappers.OperationList
|
|
107
|
+
bodyMapper: Mappers.OperationList,
|
|
108
108
|
},
|
|
109
109
|
default: {
|
|
110
|
-
bodyMapper: Mappers.ErrorResponse
|
|
111
|
-
}
|
|
110
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
111
|
+
},
|
|
112
112
|
},
|
|
113
113
|
queryParameters: [Parameters.apiVersion],
|
|
114
114
|
urlParameters: [Parameters.$host],
|
|
115
115
|
headerParameters: [Parameters.accept],
|
|
116
|
-
serializer
|
|
116
|
+
serializer,
|
|
117
117
|
};
|
|
118
118
|
const getNextOperationSpec = {
|
|
119
119
|
path: "{nextLink}",
|
|
120
120
|
httpMethod: "GET",
|
|
121
121
|
responses: {
|
|
122
122
|
200: {
|
|
123
|
-
bodyMapper: Mappers.OperationList
|
|
123
|
+
bodyMapper: Mappers.OperationList,
|
|
124
124
|
},
|
|
125
125
|
default: {
|
|
126
|
-
bodyMapper: Mappers.ErrorResponse
|
|
127
|
-
}
|
|
126
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
127
|
+
},
|
|
128
128
|
},
|
|
129
|
-
queryParameters: [Parameters.apiVersion],
|
|
130
129
|
urlParameters: [Parameters.$host, Parameters.nextLink],
|
|
131
130
|
headerParameters: [Parameters.accept],
|
|
132
|
-
serializer
|
|
131
|
+
serializer,
|
|
133
132
|
};
|
|
134
133
|
//# sourceMappingURL=operations.js.map
|