@azure/arm-azurestackhci 2.1.1-alpha.20220422.1 → 3.0.0
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 +45 -10
- package/README.md +1 -1
- package/dist/index.js +616 -10
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/samples-dev/arcSettingsCreateIdentitySample.d.ts +2 -0
- package/dist-esm/samples-dev/arcSettingsCreateIdentitySample.d.ts.map +1 -0
- package/dist-esm/samples-dev/arcSettingsCreateIdentitySample.js +32 -0
- package/dist-esm/samples-dev/arcSettingsCreateIdentitySample.js.map +1 -0
- package/dist-esm/samples-dev/arcSettingsCreateSample.js +1 -1
- package/dist-esm/samples-dev/arcSettingsDeleteSample.js +1 -1
- package/dist-esm/samples-dev/arcSettingsGeneratePasswordSample.d.ts +2 -0
- package/dist-esm/samples-dev/arcSettingsGeneratePasswordSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/arcSettingsGeneratePasswordSample.js +32 -0
- package/dist-esm/samples-dev/arcSettingsGeneratePasswordSample.js.map +1 -0
- package/dist-esm/samples-dev/arcSettingsGetSample.js +1 -1
- package/dist-esm/samples-dev/arcSettingsListByClusterSample.js +1 -1
- package/dist-esm/samples-dev/arcSettingsUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/arcSettingsUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/arcSettingsUpdateSample.js +35 -0
- package/dist-esm/samples-dev/arcSettingsUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/clustersCreateIdentitySample.d.ts +2 -0
- package/dist-esm/samples-dev/clustersCreateIdentitySample.d.ts.map +1 -0
- package/dist-esm/samples-dev/clustersCreateIdentitySample.js +31 -0
- package/dist-esm/samples-dev/clustersCreateIdentitySample.js.map +1 -0
- package/dist-esm/samples-dev/clustersCreateSample.js +1 -1
- package/dist-esm/samples-dev/clustersDeleteSample.js +2 -2
- package/dist-esm/samples-dev/clustersDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/clustersGetSample.js +1 -1
- package/dist-esm/samples-dev/clustersListByResourceGroupSample.js +1 -1
- package/dist-esm/samples-dev/clustersListBySubscriptionSample.js +1 -1
- package/dist-esm/samples-dev/clustersUpdateSample.js +1 -1
- package/dist-esm/samples-dev/clustersUploadCertificateSample.d.ts +2 -0
- package/dist-esm/samples-dev/clustersUploadCertificateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/clustersUploadCertificateSample.js +34 -0
- package/dist-esm/samples-dev/clustersUploadCertificateSample.js.map +1 -0
- package/dist-esm/samples-dev/deleteCluster.js +1 -1
- package/dist-esm/samples-dev/deleteCluster.js.map +1 -1
- package/dist-esm/samples-dev/extensionsCreateSample.js +1 -1
- package/dist-esm/samples-dev/extensionsDeleteSample.js +1 -1
- package/dist-esm/samples-dev/extensionsGetSample.js +1 -1
- package/dist-esm/samples-dev/extensionsListByArcSettingSample.js +1 -1
- package/dist-esm/samples-dev/extensionsUpdateSample.js +1 -1
- package/dist-esm/samples-dev/operationsListSample.js +3 -3
- package/dist-esm/samples-dev/operationsListSample.js.map +1 -1
- package/dist-esm/src/azureStackHCIClient.d.ts.map +1 -1
- package/dist-esm/src/azureStackHCIClient.js +21 -3
- package/dist-esm/src/azureStackHCIClient.js.map +1 -1
- package/dist-esm/src/models/index.d.ts +98 -0
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +7 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +208 -0
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.d.ts +2 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -1
- package/dist-esm/src/models/parameters.js +10 -2
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/operations/arcSettings.d.ts +34 -1
- package/dist-esm/src/operations/arcSettings.d.ts.map +1 -1
- package/dist-esm/src/operations/arcSettings.js +155 -1
- package/dist-esm/src/operations/arcSettings.js.map +1 -1
- package/dist-esm/src/operations/clusters.d.ts +40 -2
- package/dist-esm/src/operations/clusters.d.ts.map +1 -1
- package/dist-esm/src/operations/clusters.js +209 -3
- package/dist-esm/src/operations/clusters.js.map +1 -1
- package/dist-esm/src/operations/extensions.d.ts.map +1 -1
- package/dist-esm/src/operations/extensions.js +9 -3
- package/dist-esm/src/operations/extensions.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/arcSettings.d.ts +34 -1
- package/dist-esm/src/operationsInterfaces/arcSettings.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/clusters.d.ts +40 -2
- package/dist-esm/src/operationsInterfaces/clusters.d.ts.map +1 -1
- package/package.json +3 -3
- package/review/arm-azurestackhci.api.md +119 -1
- package/src/azureStackHCIClient.ts +28 -3
- package/src/models/index.ts +117 -1
- package/src/models/mappers.ts +223 -0
- package/src/models/parameters.ts +13 -1
- package/src/operations/arcSettings.ts +223 -1
- package/src/operations/clusters.ts +308 -3
- package/src/operations/extensions.ts +9 -3
- package/src/operationsInterfaces/arcSettings.ts +67 -1
- package/src/operationsInterfaces/clusters.ts +71 -2
- package/types/arm-azurestackhci.d.ts +185 -1
- package/LICENSE.txt +0 -21
|
@@ -12,6 +12,8 @@ import * as coreClient from "@azure/core-client";
|
|
|
12
12
|
import * as Mappers from "../models/mappers";
|
|
13
13
|
import * as Parameters from "../models/parameters";
|
|
14
14
|
import { AzureStackHCIClient } from "../azureStackHCIClient";
|
|
15
|
+
import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
|
|
16
|
+
import { LroImpl } from "../lroImpl";
|
|
15
17
|
import {
|
|
16
18
|
Cluster,
|
|
17
19
|
ClustersListBySubscriptionNextOptionalParams,
|
|
@@ -28,6 +30,10 @@ import {
|
|
|
28
30
|
ClustersUpdateOptionalParams,
|
|
29
31
|
ClustersUpdateResponse,
|
|
30
32
|
ClustersDeleteOptionalParams,
|
|
33
|
+
UploadCertificateRequest,
|
|
34
|
+
ClustersUploadCertificateOptionalParams,
|
|
35
|
+
ClustersCreateIdentityOptionalParams,
|
|
36
|
+
ClustersCreateIdentityResponse,
|
|
31
37
|
ClustersListBySubscriptionNextResponse,
|
|
32
38
|
ClustersListByResourceGroupNextResponse
|
|
33
39
|
} from "../models";
|
|
@@ -229,15 +235,256 @@ export class ClustersImpl implements Clusters {
|
|
|
229
235
|
* @param clusterName The name of the cluster.
|
|
230
236
|
* @param options The options parameters.
|
|
231
237
|
*/
|
|
232
|
-
|
|
238
|
+
async beginDelete(
|
|
233
239
|
resourceGroupName: string,
|
|
234
240
|
clusterName: string,
|
|
235
241
|
options?: ClustersDeleteOptionalParams
|
|
236
|
-
): Promise<void
|
|
237
|
-
|
|
242
|
+
): Promise<PollerLike<PollOperationState<void>, void>> {
|
|
243
|
+
const directSendOperation = async (
|
|
244
|
+
args: coreClient.OperationArguments,
|
|
245
|
+
spec: coreClient.OperationSpec
|
|
246
|
+
): Promise<void> => {
|
|
247
|
+
return this.client.sendOperationRequest(args, spec);
|
|
248
|
+
};
|
|
249
|
+
const sendOperation = async (
|
|
250
|
+
args: coreClient.OperationArguments,
|
|
251
|
+
spec: coreClient.OperationSpec
|
|
252
|
+
) => {
|
|
253
|
+
let currentRawResponse:
|
|
254
|
+
| coreClient.FullOperationResponse
|
|
255
|
+
| undefined = undefined;
|
|
256
|
+
const providedCallback = args.options?.onResponse;
|
|
257
|
+
const callback: coreClient.RawResponseCallback = (
|
|
258
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
259
|
+
flatResponse: unknown
|
|
260
|
+
) => {
|
|
261
|
+
currentRawResponse = rawResponse;
|
|
262
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
263
|
+
};
|
|
264
|
+
const updatedArgs = {
|
|
265
|
+
...args,
|
|
266
|
+
options: {
|
|
267
|
+
...args.options,
|
|
268
|
+
onResponse: callback
|
|
269
|
+
}
|
|
270
|
+
};
|
|
271
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
272
|
+
return {
|
|
273
|
+
flatResponse,
|
|
274
|
+
rawResponse: {
|
|
275
|
+
statusCode: currentRawResponse!.status,
|
|
276
|
+
body: currentRawResponse!.parsedBody,
|
|
277
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
278
|
+
}
|
|
279
|
+
};
|
|
280
|
+
};
|
|
281
|
+
|
|
282
|
+
const lro = new LroImpl(
|
|
283
|
+
sendOperation,
|
|
238
284
|
{ resourceGroupName, clusterName, options },
|
|
239
285
|
deleteOperationSpec
|
|
240
286
|
);
|
|
287
|
+
const poller = new LroEngine(lro, {
|
|
288
|
+
resumeFrom: options?.resumeFrom,
|
|
289
|
+
intervalInMs: options?.updateIntervalInMs
|
|
290
|
+
});
|
|
291
|
+
await poller.poll();
|
|
292
|
+
return poller;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
/**
|
|
296
|
+
* Delete an HCI cluster.
|
|
297
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
298
|
+
* @param clusterName The name of the cluster.
|
|
299
|
+
* @param options The options parameters.
|
|
300
|
+
*/
|
|
301
|
+
async beginDeleteAndWait(
|
|
302
|
+
resourceGroupName: string,
|
|
303
|
+
clusterName: string,
|
|
304
|
+
options?: ClustersDeleteOptionalParams
|
|
305
|
+
): Promise<void> {
|
|
306
|
+
const poller = await this.beginDelete(
|
|
307
|
+
resourceGroupName,
|
|
308
|
+
clusterName,
|
|
309
|
+
options
|
|
310
|
+
);
|
|
311
|
+
return poller.pollUntilDone();
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
/**
|
|
315
|
+
* Upload certificate.
|
|
316
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
317
|
+
* @param clusterName The name of the cluster.
|
|
318
|
+
* @param uploadCertificateRequest Upload certificate request.
|
|
319
|
+
* @param options The options parameters.
|
|
320
|
+
*/
|
|
321
|
+
async beginUploadCertificate(
|
|
322
|
+
resourceGroupName: string,
|
|
323
|
+
clusterName: string,
|
|
324
|
+
uploadCertificateRequest: UploadCertificateRequest,
|
|
325
|
+
options?: ClustersUploadCertificateOptionalParams
|
|
326
|
+
): Promise<PollerLike<PollOperationState<void>, void>> {
|
|
327
|
+
const directSendOperation = async (
|
|
328
|
+
args: coreClient.OperationArguments,
|
|
329
|
+
spec: coreClient.OperationSpec
|
|
330
|
+
): Promise<void> => {
|
|
331
|
+
return this.client.sendOperationRequest(args, spec);
|
|
332
|
+
};
|
|
333
|
+
const sendOperation = async (
|
|
334
|
+
args: coreClient.OperationArguments,
|
|
335
|
+
spec: coreClient.OperationSpec
|
|
336
|
+
) => {
|
|
337
|
+
let currentRawResponse:
|
|
338
|
+
| coreClient.FullOperationResponse
|
|
339
|
+
| undefined = undefined;
|
|
340
|
+
const providedCallback = args.options?.onResponse;
|
|
341
|
+
const callback: coreClient.RawResponseCallback = (
|
|
342
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
343
|
+
flatResponse: unknown
|
|
344
|
+
) => {
|
|
345
|
+
currentRawResponse = rawResponse;
|
|
346
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
347
|
+
};
|
|
348
|
+
const updatedArgs = {
|
|
349
|
+
...args,
|
|
350
|
+
options: {
|
|
351
|
+
...args.options,
|
|
352
|
+
onResponse: callback
|
|
353
|
+
}
|
|
354
|
+
};
|
|
355
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
356
|
+
return {
|
|
357
|
+
flatResponse,
|
|
358
|
+
rawResponse: {
|
|
359
|
+
statusCode: currentRawResponse!.status,
|
|
360
|
+
body: currentRawResponse!.parsedBody,
|
|
361
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
362
|
+
}
|
|
363
|
+
};
|
|
364
|
+
};
|
|
365
|
+
|
|
366
|
+
const lro = new LroImpl(
|
|
367
|
+
sendOperation,
|
|
368
|
+
{ resourceGroupName, clusterName, uploadCertificateRequest, options },
|
|
369
|
+
uploadCertificateOperationSpec
|
|
370
|
+
);
|
|
371
|
+
const poller = new LroEngine(lro, {
|
|
372
|
+
resumeFrom: options?.resumeFrom,
|
|
373
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
374
|
+
lroResourceLocationConfig: "azure-async-operation"
|
|
375
|
+
});
|
|
376
|
+
await poller.poll();
|
|
377
|
+
return poller;
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
/**
|
|
381
|
+
* Upload certificate.
|
|
382
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
383
|
+
* @param clusterName The name of the cluster.
|
|
384
|
+
* @param uploadCertificateRequest Upload certificate request.
|
|
385
|
+
* @param options The options parameters.
|
|
386
|
+
*/
|
|
387
|
+
async beginUploadCertificateAndWait(
|
|
388
|
+
resourceGroupName: string,
|
|
389
|
+
clusterName: string,
|
|
390
|
+
uploadCertificateRequest: UploadCertificateRequest,
|
|
391
|
+
options?: ClustersUploadCertificateOptionalParams
|
|
392
|
+
): Promise<void> {
|
|
393
|
+
const poller = await this.beginUploadCertificate(
|
|
394
|
+
resourceGroupName,
|
|
395
|
+
clusterName,
|
|
396
|
+
uploadCertificateRequest,
|
|
397
|
+
options
|
|
398
|
+
);
|
|
399
|
+
return poller.pollUntilDone();
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
/**
|
|
403
|
+
* Create cluster identity.
|
|
404
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
405
|
+
* @param clusterName The name of the cluster.
|
|
406
|
+
* @param options The options parameters.
|
|
407
|
+
*/
|
|
408
|
+
async beginCreateIdentity(
|
|
409
|
+
resourceGroupName: string,
|
|
410
|
+
clusterName: string,
|
|
411
|
+
options?: ClustersCreateIdentityOptionalParams
|
|
412
|
+
): Promise<
|
|
413
|
+
PollerLike<
|
|
414
|
+
PollOperationState<ClustersCreateIdentityResponse>,
|
|
415
|
+
ClustersCreateIdentityResponse
|
|
416
|
+
>
|
|
417
|
+
> {
|
|
418
|
+
const directSendOperation = async (
|
|
419
|
+
args: coreClient.OperationArguments,
|
|
420
|
+
spec: coreClient.OperationSpec
|
|
421
|
+
): Promise<ClustersCreateIdentityResponse> => {
|
|
422
|
+
return this.client.sendOperationRequest(args, spec);
|
|
423
|
+
};
|
|
424
|
+
const sendOperation = async (
|
|
425
|
+
args: coreClient.OperationArguments,
|
|
426
|
+
spec: coreClient.OperationSpec
|
|
427
|
+
) => {
|
|
428
|
+
let currentRawResponse:
|
|
429
|
+
| coreClient.FullOperationResponse
|
|
430
|
+
| undefined = undefined;
|
|
431
|
+
const providedCallback = args.options?.onResponse;
|
|
432
|
+
const callback: coreClient.RawResponseCallback = (
|
|
433
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
434
|
+
flatResponse: unknown
|
|
435
|
+
) => {
|
|
436
|
+
currentRawResponse = rawResponse;
|
|
437
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
438
|
+
};
|
|
439
|
+
const updatedArgs = {
|
|
440
|
+
...args,
|
|
441
|
+
options: {
|
|
442
|
+
...args.options,
|
|
443
|
+
onResponse: callback
|
|
444
|
+
}
|
|
445
|
+
};
|
|
446
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
447
|
+
return {
|
|
448
|
+
flatResponse,
|
|
449
|
+
rawResponse: {
|
|
450
|
+
statusCode: currentRawResponse!.status,
|
|
451
|
+
body: currentRawResponse!.parsedBody,
|
|
452
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
453
|
+
}
|
|
454
|
+
};
|
|
455
|
+
};
|
|
456
|
+
|
|
457
|
+
const lro = new LroImpl(
|
|
458
|
+
sendOperation,
|
|
459
|
+
{ resourceGroupName, clusterName, options },
|
|
460
|
+
createIdentityOperationSpec
|
|
461
|
+
);
|
|
462
|
+
const poller = new LroEngine(lro, {
|
|
463
|
+
resumeFrom: options?.resumeFrom,
|
|
464
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
465
|
+
lroResourceLocationConfig: "azure-async-operation"
|
|
466
|
+
});
|
|
467
|
+
await poller.poll();
|
|
468
|
+
return poller;
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
/**
|
|
472
|
+
* Create cluster identity.
|
|
473
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
474
|
+
* @param clusterName The name of the cluster.
|
|
475
|
+
* @param options The options parameters.
|
|
476
|
+
*/
|
|
477
|
+
async beginCreateIdentityAndWait(
|
|
478
|
+
resourceGroupName: string,
|
|
479
|
+
clusterName: string,
|
|
480
|
+
options?: ClustersCreateIdentityOptionalParams
|
|
481
|
+
): Promise<ClustersCreateIdentityResponse> {
|
|
482
|
+
const poller = await this.beginCreateIdentity(
|
|
483
|
+
resourceGroupName,
|
|
484
|
+
clusterName,
|
|
485
|
+
options
|
|
486
|
+
);
|
|
487
|
+
return poller.pollUntilDone();
|
|
241
488
|
}
|
|
242
489
|
|
|
243
490
|
/**
|
|
@@ -389,11 +636,69 @@ const deleteOperationSpec: coreClient.OperationSpec = {
|
|
|
389
636
|
httpMethod: "DELETE",
|
|
390
637
|
responses: {
|
|
391
638
|
200: {},
|
|
639
|
+
201: {},
|
|
640
|
+
202: {},
|
|
641
|
+
204: {},
|
|
642
|
+
default: {
|
|
643
|
+
bodyMapper: Mappers.ErrorResponse
|
|
644
|
+
}
|
|
645
|
+
},
|
|
646
|
+
queryParameters: [Parameters.apiVersion],
|
|
647
|
+
urlParameters: [
|
|
648
|
+
Parameters.$host,
|
|
649
|
+
Parameters.subscriptionId,
|
|
650
|
+
Parameters.resourceGroupName,
|
|
651
|
+
Parameters.clusterName
|
|
652
|
+
],
|
|
653
|
+
headerParameters: [Parameters.accept],
|
|
654
|
+
serializer
|
|
655
|
+
};
|
|
656
|
+
const uploadCertificateOperationSpec: coreClient.OperationSpec = {
|
|
657
|
+
path:
|
|
658
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/uploadCertificate",
|
|
659
|
+
httpMethod: "POST",
|
|
660
|
+
responses: {
|
|
661
|
+
200: {},
|
|
662
|
+
201: {},
|
|
663
|
+
202: {},
|
|
392
664
|
204: {},
|
|
393
665
|
default: {
|
|
394
666
|
bodyMapper: Mappers.ErrorResponse
|
|
395
667
|
}
|
|
396
668
|
},
|
|
669
|
+
requestBody: Parameters.uploadCertificateRequest,
|
|
670
|
+
queryParameters: [Parameters.apiVersion],
|
|
671
|
+
urlParameters: [
|
|
672
|
+
Parameters.$host,
|
|
673
|
+
Parameters.subscriptionId,
|
|
674
|
+
Parameters.resourceGroupName,
|
|
675
|
+
Parameters.clusterName
|
|
676
|
+
],
|
|
677
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
678
|
+
mediaType: "json",
|
|
679
|
+
serializer
|
|
680
|
+
};
|
|
681
|
+
const createIdentityOperationSpec: coreClient.OperationSpec = {
|
|
682
|
+
path:
|
|
683
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/createClusterIdentity",
|
|
684
|
+
httpMethod: "POST",
|
|
685
|
+
responses: {
|
|
686
|
+
200: {
|
|
687
|
+
bodyMapper: Mappers.ClusterIdentityResponse
|
|
688
|
+
},
|
|
689
|
+
201: {
|
|
690
|
+
bodyMapper: Mappers.ClusterIdentityResponse
|
|
691
|
+
},
|
|
692
|
+
202: {
|
|
693
|
+
bodyMapper: Mappers.ClusterIdentityResponse
|
|
694
|
+
},
|
|
695
|
+
204: {
|
|
696
|
+
bodyMapper: Mappers.ClusterIdentityResponse
|
|
697
|
+
},
|
|
698
|
+
default: {
|
|
699
|
+
bodyMapper: Mappers.ErrorResponse
|
|
700
|
+
}
|
|
701
|
+
},
|
|
397
702
|
queryParameters: [Parameters.apiVersion],
|
|
398
703
|
urlParameters: [
|
|
399
704
|
Parameters.$host,
|
|
@@ -241,11 +241,13 @@ export class ExtensionsImpl implements Extensions {
|
|
|
241
241
|
},
|
|
242
242
|
createOperationSpec
|
|
243
243
|
);
|
|
244
|
-
|
|
244
|
+
const poller = new LroEngine(lro, {
|
|
245
245
|
resumeFrom: options?.resumeFrom,
|
|
246
246
|
intervalInMs: options?.updateIntervalInMs,
|
|
247
247
|
lroResourceLocationConfig: "azure-async-operation"
|
|
248
248
|
});
|
|
249
|
+
await poller.poll();
|
|
250
|
+
return poller;
|
|
249
251
|
}
|
|
250
252
|
|
|
251
253
|
/**
|
|
@@ -349,11 +351,13 @@ export class ExtensionsImpl implements Extensions {
|
|
|
349
351
|
},
|
|
350
352
|
updateOperationSpec
|
|
351
353
|
);
|
|
352
|
-
|
|
354
|
+
const poller = new LroEngine(lro, {
|
|
353
355
|
resumeFrom: options?.resumeFrom,
|
|
354
356
|
intervalInMs: options?.updateIntervalInMs,
|
|
355
357
|
lroResourceLocationConfig: "original-uri"
|
|
356
358
|
});
|
|
359
|
+
await poller.poll();
|
|
360
|
+
return poller;
|
|
357
361
|
}
|
|
358
362
|
|
|
359
363
|
/**
|
|
@@ -449,11 +453,13 @@ export class ExtensionsImpl implements Extensions {
|
|
|
449
453
|
},
|
|
450
454
|
deleteOperationSpec
|
|
451
455
|
);
|
|
452
|
-
|
|
456
|
+
const poller = new LroEngine(lro, {
|
|
453
457
|
resumeFrom: options?.resumeFrom,
|
|
454
458
|
intervalInMs: options?.updateIntervalInMs,
|
|
455
459
|
lroResourceLocationConfig: "azure-async-operation"
|
|
456
460
|
});
|
|
461
|
+
await poller.poll();
|
|
462
|
+
return poller;
|
|
457
463
|
}
|
|
458
464
|
|
|
459
465
|
/**
|
|
@@ -15,7 +15,14 @@ import {
|
|
|
15
15
|
ArcSettingsGetResponse,
|
|
16
16
|
ArcSettingsCreateOptionalParams,
|
|
17
17
|
ArcSettingsCreateResponse,
|
|
18
|
-
|
|
18
|
+
ArcSettingsPatch,
|
|
19
|
+
ArcSettingsUpdateOptionalParams,
|
|
20
|
+
ArcSettingsUpdateResponse,
|
|
21
|
+
ArcSettingsDeleteOptionalParams,
|
|
22
|
+
ArcSettingsGeneratePasswordOptionalParams,
|
|
23
|
+
ArcSettingsGeneratePasswordResponse,
|
|
24
|
+
ArcSettingsCreateIdentityOptionalParams,
|
|
25
|
+
ArcSettingsCreateIdentityResponse
|
|
19
26
|
} from "../models";
|
|
20
27
|
|
|
21
28
|
/// <reference lib="esnext.asynciterable" />
|
|
@@ -60,6 +67,21 @@ export interface ArcSettings {
|
|
|
60
67
|
arcSetting: ArcSetting,
|
|
61
68
|
options?: ArcSettingsCreateOptionalParams
|
|
62
69
|
): Promise<ArcSettingsCreateResponse>;
|
|
70
|
+
/**
|
|
71
|
+
* Update ArcSettings for HCI cluster.
|
|
72
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
73
|
+
* @param clusterName The name of the cluster.
|
|
74
|
+
* @param arcSettingName The name of the proxy resource holding details of HCI ArcSetting information.
|
|
75
|
+
* @param arcSetting ArcSettings parameters that needs to be updated
|
|
76
|
+
* @param options The options parameters.
|
|
77
|
+
*/
|
|
78
|
+
update(
|
|
79
|
+
resourceGroupName: string,
|
|
80
|
+
clusterName: string,
|
|
81
|
+
arcSettingName: string,
|
|
82
|
+
arcSetting: ArcSettingsPatch,
|
|
83
|
+
options?: ArcSettingsUpdateOptionalParams
|
|
84
|
+
): Promise<ArcSettingsUpdateResponse>;
|
|
63
85
|
/**
|
|
64
86
|
* Delete ArcSetting resource details of HCI Cluster.
|
|
65
87
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
@@ -86,4 +108,48 @@ export interface ArcSettings {
|
|
|
86
108
|
arcSettingName: string,
|
|
87
109
|
options?: ArcSettingsDeleteOptionalParams
|
|
88
110
|
): Promise<void>;
|
|
111
|
+
/**
|
|
112
|
+
* Generate password for arc settings.
|
|
113
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
114
|
+
* @param clusterName The name of the cluster.
|
|
115
|
+
* @param arcSettingName The name of the proxy resource holding details of HCI ArcSetting information.
|
|
116
|
+
* @param options The options parameters.
|
|
117
|
+
*/
|
|
118
|
+
generatePassword(
|
|
119
|
+
resourceGroupName: string,
|
|
120
|
+
clusterName: string,
|
|
121
|
+
arcSettingName: string,
|
|
122
|
+
options?: ArcSettingsGeneratePasswordOptionalParams
|
|
123
|
+
): Promise<ArcSettingsGeneratePasswordResponse>;
|
|
124
|
+
/**
|
|
125
|
+
* Create Aad identity for arc settings.
|
|
126
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
127
|
+
* @param clusterName The name of the cluster.
|
|
128
|
+
* @param arcSettingName The name of the proxy resource holding details of HCI ArcSetting information.
|
|
129
|
+
* @param options The options parameters.
|
|
130
|
+
*/
|
|
131
|
+
beginCreateIdentity(
|
|
132
|
+
resourceGroupName: string,
|
|
133
|
+
clusterName: string,
|
|
134
|
+
arcSettingName: string,
|
|
135
|
+
options?: ArcSettingsCreateIdentityOptionalParams
|
|
136
|
+
): Promise<
|
|
137
|
+
PollerLike<
|
|
138
|
+
PollOperationState<ArcSettingsCreateIdentityResponse>,
|
|
139
|
+
ArcSettingsCreateIdentityResponse
|
|
140
|
+
>
|
|
141
|
+
>;
|
|
142
|
+
/**
|
|
143
|
+
* Create Aad identity for arc settings.
|
|
144
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
145
|
+
* @param clusterName The name of the cluster.
|
|
146
|
+
* @param arcSettingName The name of the proxy resource holding details of HCI ArcSetting information.
|
|
147
|
+
* @param options The options parameters.
|
|
148
|
+
*/
|
|
149
|
+
beginCreateIdentityAndWait(
|
|
150
|
+
resourceGroupName: string,
|
|
151
|
+
clusterName: string,
|
|
152
|
+
arcSettingName: string,
|
|
153
|
+
options?: ArcSettingsCreateIdentityOptionalParams
|
|
154
|
+
): Promise<ArcSettingsCreateIdentityResponse>;
|
|
89
155
|
}
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
+
import { PollerLike, PollOperationState } from "@azure/core-lro";
|
|
10
11
|
import {
|
|
11
12
|
Cluster,
|
|
12
13
|
ClustersListBySubscriptionOptionalParams,
|
|
@@ -18,7 +19,11 @@ import {
|
|
|
18
19
|
ClusterPatch,
|
|
19
20
|
ClustersUpdateOptionalParams,
|
|
20
21
|
ClustersUpdateResponse,
|
|
21
|
-
ClustersDeleteOptionalParams
|
|
22
|
+
ClustersDeleteOptionalParams,
|
|
23
|
+
UploadCertificateRequest,
|
|
24
|
+
ClustersUploadCertificateOptionalParams,
|
|
25
|
+
ClustersCreateIdentityOptionalParams,
|
|
26
|
+
ClustersCreateIdentityResponse
|
|
22
27
|
} from "../models";
|
|
23
28
|
|
|
24
29
|
/// <reference lib="esnext.asynciterable" />
|
|
@@ -83,9 +88,73 @@ export interface Clusters {
|
|
|
83
88
|
* @param clusterName The name of the cluster.
|
|
84
89
|
* @param options The options parameters.
|
|
85
90
|
*/
|
|
86
|
-
|
|
91
|
+
beginDelete(
|
|
87
92
|
resourceGroupName: string,
|
|
88
93
|
clusterName: string,
|
|
89
94
|
options?: ClustersDeleteOptionalParams
|
|
95
|
+
): Promise<PollerLike<PollOperationState<void>, void>>;
|
|
96
|
+
/**
|
|
97
|
+
* Delete an HCI cluster.
|
|
98
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
99
|
+
* @param clusterName The name of the cluster.
|
|
100
|
+
* @param options The options parameters.
|
|
101
|
+
*/
|
|
102
|
+
beginDeleteAndWait(
|
|
103
|
+
resourceGroupName: string,
|
|
104
|
+
clusterName: string,
|
|
105
|
+
options?: ClustersDeleteOptionalParams
|
|
106
|
+
): Promise<void>;
|
|
107
|
+
/**
|
|
108
|
+
* Upload certificate.
|
|
109
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
110
|
+
* @param clusterName The name of the cluster.
|
|
111
|
+
* @param uploadCertificateRequest Upload certificate request.
|
|
112
|
+
* @param options The options parameters.
|
|
113
|
+
*/
|
|
114
|
+
beginUploadCertificate(
|
|
115
|
+
resourceGroupName: string,
|
|
116
|
+
clusterName: string,
|
|
117
|
+
uploadCertificateRequest: UploadCertificateRequest,
|
|
118
|
+
options?: ClustersUploadCertificateOptionalParams
|
|
119
|
+
): Promise<PollerLike<PollOperationState<void>, void>>;
|
|
120
|
+
/**
|
|
121
|
+
* Upload certificate.
|
|
122
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
123
|
+
* @param clusterName The name of the cluster.
|
|
124
|
+
* @param uploadCertificateRequest Upload certificate request.
|
|
125
|
+
* @param options The options parameters.
|
|
126
|
+
*/
|
|
127
|
+
beginUploadCertificateAndWait(
|
|
128
|
+
resourceGroupName: string,
|
|
129
|
+
clusterName: string,
|
|
130
|
+
uploadCertificateRequest: UploadCertificateRequest,
|
|
131
|
+
options?: ClustersUploadCertificateOptionalParams
|
|
90
132
|
): Promise<void>;
|
|
133
|
+
/**
|
|
134
|
+
* Create cluster identity.
|
|
135
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
136
|
+
* @param clusterName The name of the cluster.
|
|
137
|
+
* @param options The options parameters.
|
|
138
|
+
*/
|
|
139
|
+
beginCreateIdentity(
|
|
140
|
+
resourceGroupName: string,
|
|
141
|
+
clusterName: string,
|
|
142
|
+
options?: ClustersCreateIdentityOptionalParams
|
|
143
|
+
): Promise<
|
|
144
|
+
PollerLike<
|
|
145
|
+
PollOperationState<ClustersCreateIdentityResponse>,
|
|
146
|
+
ClustersCreateIdentityResponse
|
|
147
|
+
>
|
|
148
|
+
>;
|
|
149
|
+
/**
|
|
150
|
+
* Create cluster identity.
|
|
151
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
152
|
+
* @param clusterName The name of the cluster.
|
|
153
|
+
* @param options The options parameters.
|
|
154
|
+
*/
|
|
155
|
+
beginCreateIdentityAndWait(
|
|
156
|
+
resourceGroupName: string,
|
|
157
|
+
clusterName: string,
|
|
158
|
+
options?: ClustersCreateIdentityOptionalParams
|
|
159
|
+
): Promise<ClustersCreateIdentityResponse>;
|
|
91
160
|
}
|