@azure/arm-resourceconnector 1.0.0-beta.2 → 1.0.0-beta.3
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 +2 -12
- package/README.md +1 -1
- package/dist/index.js +264 -126
- 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/appliancesCreateOrUpdateSample.js +1 -1
- package/dist-esm/samples-dev/appliancesDeleteSample.js +1 -1
- package/dist-esm/samples-dev/appliancesGetSample.js +1 -1
- package/dist-esm/samples-dev/appliancesGetTelemetryConfigSample.d.ts +2 -0
- package/dist-esm/samples-dev/appliancesGetTelemetryConfigSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/appliancesGetTelemetryConfigSample.js +37 -0
- package/dist-esm/samples-dev/appliancesGetTelemetryConfigSample.js.map +1 -0
- package/dist-esm/samples-dev/appliancesGetUpgradeGraphSample.js +1 -1
- package/dist-esm/samples-dev/appliancesListByResourceGroupSample.js +13 -6
- package/dist-esm/samples-dev/appliancesListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/appliancesListBySubscriptionSample.js +13 -6
- package/dist-esm/samples-dev/appliancesListBySubscriptionSample.js.map +1 -1
- package/dist-esm/samples-dev/appliancesListClusterUserCredentialSample.js +1 -1
- package/dist-esm/samples-dev/appliancesListKeysSample.d.ts +2 -0
- package/dist-esm/samples-dev/appliancesListKeysSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/{appliancesListClusterCustomerUserCredentialSample.js → appliancesListKeysSample.js} +7 -7
- package/dist-esm/samples-dev/appliancesListKeysSample.js.map +1 -0
- package/dist-esm/samples-dev/appliancesListOperationsSample.js +13 -6
- package/dist-esm/samples-dev/appliancesListOperationsSample.js.map +1 -1
- package/dist-esm/samples-dev/appliancesUpdateSample.js +1 -1
- package/dist-esm/src/lroImpl.d.ts +6 -11
- package/dist-esm/src/lroImpl.d.ts.map +1 -1
- package/dist-esm/src/lroImpl.js +12 -20
- package/dist-esm/src/lroImpl.js.map +1 -1
- package/dist-esm/src/models/index.d.ts +170 -72
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +30 -0
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +6 -4
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +125 -63
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.js +1 -1
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/operations/appliances.d.ts +13 -8
- package/dist-esm/src/operations/appliances.d.ts.map +1 -1
- package/dist-esm/src/operations/appliances.js +91 -39
- package/dist-esm/src/operations/appliances.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/appliances.d.ts +13 -8
- package/dist-esm/src/operationsInterfaces/appliances.d.ts.map +1 -1
- package/dist-esm/src/resourceConnectorManagementClient.js +2 -2
- package/dist-esm/src/resourceConnectorManagementClient.js.map +1 -1
- package/dist-esm/test/resourceconnnector__operations_test.spec.d.ts +4 -0
- package/dist-esm/test/resourceconnnector__operations_test.spec.d.ts.map +1 -0
- package/dist-esm/test/resourceconnnector__operations_test.spec.js +123 -0
- package/dist-esm/test/resourceconnnector__operations_test.spec.js.map +1 -0
- package/package.json +11 -11
- package/review/arm-resourceconnector.api.md +62 -18
- package/src/lroImpl.ts +31 -23
- package/src/models/index.ts +156 -54
- package/src/models/mappers.ts +127 -64
- package/src/models/parameters.ts +1 -1
- package/src/operations/appliances.ts +80 -41
- package/src/operationsInterfaces/appliances.ts +23 -14
- package/src/resourceConnectorManagementClient.ts +2 -2
- package/types/arm-resourceconnector.d.ts +146 -37
- package/types/tsdoc-metadata.json +1 -1
- package/dist-esm/samples-dev/appliancesListClusterCustomerUserCredentialSample.d.ts +0 -2
- package/dist-esm/samples-dev/appliancesListClusterCustomerUserCredentialSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/appliancesListClusterCustomerUserCredentialSample.js.map +0 -1
- package/dist-esm/test/sampleTest.d.ts +0 -2
- package/dist-esm/test/sampleTest.d.ts.map +0 -1
- package/dist-esm/test/sampleTest.js +0 -38
- package/dist-esm/test/sampleTest.js.map +0 -1
package/src/models/mappers.ts
CHANGED
|
@@ -263,6 +263,43 @@ export const AppliancePropertiesInfrastructureConfig: coreClient.CompositeMapper
|
|
|
263
263
|
}
|
|
264
264
|
};
|
|
265
265
|
|
|
266
|
+
export const Resource: coreClient.CompositeMapper = {
|
|
267
|
+
type: {
|
|
268
|
+
name: "Composite",
|
|
269
|
+
className: "Resource",
|
|
270
|
+
modelProperties: {
|
|
271
|
+
id: {
|
|
272
|
+
serializedName: "id",
|
|
273
|
+
readOnly: true,
|
|
274
|
+
type: {
|
|
275
|
+
name: "String"
|
|
276
|
+
}
|
|
277
|
+
},
|
|
278
|
+
name: {
|
|
279
|
+
serializedName: "name",
|
|
280
|
+
readOnly: true,
|
|
281
|
+
type: {
|
|
282
|
+
name: "String"
|
|
283
|
+
}
|
|
284
|
+
},
|
|
285
|
+
type: {
|
|
286
|
+
serializedName: "type",
|
|
287
|
+
readOnly: true,
|
|
288
|
+
type: {
|
|
289
|
+
name: "String"
|
|
290
|
+
}
|
|
291
|
+
},
|
|
292
|
+
systemData: {
|
|
293
|
+
serializedName: "systemData",
|
|
294
|
+
type: {
|
|
295
|
+
name: "Composite",
|
|
296
|
+
className: "SystemData"
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
};
|
|
302
|
+
|
|
266
303
|
export const SystemData: coreClient.CompositeMapper = {
|
|
267
304
|
type: {
|
|
268
305
|
name: "Composite",
|
|
@@ -308,27 +345,13 @@ export const SystemData: coreClient.CompositeMapper = {
|
|
|
308
345
|
}
|
|
309
346
|
};
|
|
310
347
|
|
|
311
|
-
export const
|
|
348
|
+
export const ApplianceGetTelemetryConfigResult: coreClient.CompositeMapper = {
|
|
312
349
|
type: {
|
|
313
350
|
name: "Composite",
|
|
314
|
-
className: "
|
|
351
|
+
className: "ApplianceGetTelemetryConfigResult",
|
|
315
352
|
modelProperties: {
|
|
316
|
-
|
|
317
|
-
serializedName: "
|
|
318
|
-
readOnly: true,
|
|
319
|
-
type: {
|
|
320
|
-
name: "String"
|
|
321
|
-
}
|
|
322
|
-
},
|
|
323
|
-
name: {
|
|
324
|
-
serializedName: "name",
|
|
325
|
-
readOnly: true,
|
|
326
|
-
type: {
|
|
327
|
-
name: "String"
|
|
328
|
-
}
|
|
329
|
-
},
|
|
330
|
-
type: {
|
|
331
|
-
serializedName: "type",
|
|
353
|
+
telemetryInstrumentationKey: {
|
|
354
|
+
serializedName: "telemetryInstrumentationKey",
|
|
332
355
|
readOnly: true,
|
|
333
356
|
type: {
|
|
334
357
|
name: "String"
|
|
@@ -354,11 +377,18 @@ export const PatchableAppliance: coreClient.CompositeMapper = {
|
|
|
354
377
|
}
|
|
355
378
|
};
|
|
356
379
|
|
|
357
|
-
export const
|
|
380
|
+
export const ApplianceListCredentialResults: coreClient.CompositeMapper = {
|
|
358
381
|
type: {
|
|
359
382
|
name: "Composite",
|
|
360
|
-
className: "
|
|
383
|
+
className: "ApplianceListCredentialResults",
|
|
361
384
|
modelProperties: {
|
|
385
|
+
hybridConnectionConfig: {
|
|
386
|
+
serializedName: "hybridConnectionConfig",
|
|
387
|
+
type: {
|
|
388
|
+
name: "Composite",
|
|
389
|
+
className: "HybridConnectionConfig"
|
|
390
|
+
}
|
|
391
|
+
},
|
|
362
392
|
kubeconfigs: {
|
|
363
393
|
serializedName: "kubeconfigs",
|
|
364
394
|
readOnly: true,
|
|
@@ -371,33 +401,39 @@ export const ApplianceListClusterCustomerUserCredentialResults: coreClient.Compo
|
|
|
371
401
|
}
|
|
372
402
|
}
|
|
373
403
|
}
|
|
374
|
-
},
|
|
375
|
-
sshKeys: {
|
|
376
|
-
serializedName: "sshKeys",
|
|
377
|
-
readOnly: true,
|
|
378
|
-
type: {
|
|
379
|
-
name: "Dictionary",
|
|
380
|
-
value: { type: { name: "Composite", className: "SSHKey" } }
|
|
381
|
-
}
|
|
382
404
|
}
|
|
383
405
|
}
|
|
384
406
|
}
|
|
385
407
|
};
|
|
386
408
|
|
|
387
|
-
export const
|
|
409
|
+
export const HybridConnectionConfig: coreClient.CompositeMapper = {
|
|
388
410
|
type: {
|
|
389
411
|
name: "Composite",
|
|
390
|
-
className: "
|
|
412
|
+
className: "HybridConnectionConfig",
|
|
391
413
|
modelProperties: {
|
|
392
|
-
|
|
393
|
-
serializedName: "
|
|
414
|
+
expirationTime: {
|
|
415
|
+
serializedName: "expirationTime",
|
|
416
|
+
readOnly: true,
|
|
417
|
+
type: {
|
|
418
|
+
name: "Number"
|
|
419
|
+
}
|
|
420
|
+
},
|
|
421
|
+
hybridConnectionName: {
|
|
422
|
+
serializedName: "hybridConnectionName",
|
|
394
423
|
readOnly: true,
|
|
395
424
|
type: {
|
|
396
425
|
name: "String"
|
|
397
426
|
}
|
|
398
427
|
},
|
|
399
|
-
|
|
400
|
-
serializedName: "
|
|
428
|
+
relay: {
|
|
429
|
+
serializedName: "relay",
|
|
430
|
+
readOnly: true,
|
|
431
|
+
type: {
|
|
432
|
+
name: "String"
|
|
433
|
+
}
|
|
434
|
+
},
|
|
435
|
+
token: {
|
|
436
|
+
serializedName: "token",
|
|
401
437
|
readOnly: true,
|
|
402
438
|
type: {
|
|
403
439
|
name: "String"
|
|
@@ -407,19 +443,21 @@ export const ApplianceCredentialKubeconfig: coreClient.CompositeMapper = {
|
|
|
407
443
|
}
|
|
408
444
|
};
|
|
409
445
|
|
|
410
|
-
export const
|
|
446
|
+
export const ApplianceCredentialKubeconfig: coreClient.CompositeMapper = {
|
|
411
447
|
type: {
|
|
412
448
|
name: "Composite",
|
|
413
|
-
className: "
|
|
449
|
+
className: "ApplianceCredentialKubeconfig",
|
|
414
450
|
modelProperties: {
|
|
415
|
-
|
|
416
|
-
serializedName: "
|
|
451
|
+
name: {
|
|
452
|
+
serializedName: "name",
|
|
453
|
+
readOnly: true,
|
|
417
454
|
type: {
|
|
418
455
|
name: "String"
|
|
419
456
|
}
|
|
420
457
|
},
|
|
421
|
-
|
|
422
|
-
serializedName: "
|
|
458
|
+
value: {
|
|
459
|
+
serializedName: "value",
|
|
460
|
+
readOnly: true,
|
|
423
461
|
type: {
|
|
424
462
|
name: "String"
|
|
425
463
|
}
|
|
@@ -428,16 +466,17 @@ export const SSHKey: coreClient.CompositeMapper = {
|
|
|
428
466
|
}
|
|
429
467
|
};
|
|
430
468
|
|
|
431
|
-
export const
|
|
469
|
+
export const ApplianceListKeysResults: coreClient.CompositeMapper = {
|
|
432
470
|
type: {
|
|
433
471
|
name: "Composite",
|
|
434
|
-
className: "
|
|
472
|
+
className: "ApplianceListKeysResults",
|
|
435
473
|
modelProperties: {
|
|
436
|
-
|
|
437
|
-
serializedName: "
|
|
474
|
+
artifactProfiles: {
|
|
475
|
+
serializedName: "artifactProfiles",
|
|
476
|
+
readOnly: true,
|
|
438
477
|
type: {
|
|
439
|
-
name: "
|
|
440
|
-
className: "
|
|
478
|
+
name: "Dictionary",
|
|
479
|
+
value: { type: { name: "Composite", className: "ArtifactProfile" } }
|
|
441
480
|
}
|
|
442
481
|
},
|
|
443
482
|
kubeconfigs: {
|
|
@@ -452,39 +491,70 @@ export const ApplianceListCredentialResults: coreClient.CompositeMapper = {
|
|
|
452
491
|
}
|
|
453
492
|
}
|
|
454
493
|
}
|
|
494
|
+
},
|
|
495
|
+
sshKeys: {
|
|
496
|
+
serializedName: "sshKeys",
|
|
497
|
+
readOnly: true,
|
|
498
|
+
type: {
|
|
499
|
+
name: "Dictionary",
|
|
500
|
+
value: { type: { name: "Composite", className: "SSHKey" } }
|
|
501
|
+
}
|
|
455
502
|
}
|
|
456
503
|
}
|
|
457
504
|
}
|
|
458
505
|
};
|
|
459
506
|
|
|
460
|
-
export const
|
|
507
|
+
export const ArtifactProfile: coreClient.CompositeMapper = {
|
|
461
508
|
type: {
|
|
462
509
|
name: "Composite",
|
|
463
|
-
className: "
|
|
510
|
+
className: "ArtifactProfile",
|
|
464
511
|
modelProperties: {
|
|
465
|
-
|
|
466
|
-
serializedName: "
|
|
512
|
+
endpoint: {
|
|
513
|
+
serializedName: "endpoint",
|
|
514
|
+
readOnly: true,
|
|
515
|
+
type: {
|
|
516
|
+
name: "String"
|
|
517
|
+
}
|
|
518
|
+
}
|
|
519
|
+
}
|
|
520
|
+
}
|
|
521
|
+
};
|
|
522
|
+
|
|
523
|
+
export const SSHKey: coreClient.CompositeMapper = {
|
|
524
|
+
type: {
|
|
525
|
+
name: "Composite",
|
|
526
|
+
className: "SSHKey",
|
|
527
|
+
modelProperties: {
|
|
528
|
+
certificate: {
|
|
529
|
+
serializedName: "certificate",
|
|
530
|
+
readOnly: true,
|
|
531
|
+
type: {
|
|
532
|
+
name: "String"
|
|
533
|
+
}
|
|
534
|
+
},
|
|
535
|
+
creationTimeStamp: {
|
|
536
|
+
serializedName: "creationTimeStamp",
|
|
467
537
|
readOnly: true,
|
|
468
538
|
type: {
|
|
469
539
|
name: "Number"
|
|
470
540
|
}
|
|
471
541
|
},
|
|
472
|
-
|
|
473
|
-
serializedName: "
|
|
542
|
+
expirationTimeStamp: {
|
|
543
|
+
serializedName: "expirationTimeStamp",
|
|
474
544
|
readOnly: true,
|
|
475
545
|
type: {
|
|
476
|
-
name: "
|
|
546
|
+
name: "Number"
|
|
477
547
|
}
|
|
478
548
|
},
|
|
479
|
-
|
|
480
|
-
serializedName: "
|
|
549
|
+
privateKey: {
|
|
550
|
+
serializedName: "privateKey",
|
|
481
551
|
readOnly: true,
|
|
482
552
|
type: {
|
|
483
553
|
name: "String"
|
|
484
554
|
}
|
|
485
555
|
},
|
|
486
|
-
|
|
487
|
-
serializedName: "
|
|
556
|
+
publicKey: {
|
|
557
|
+
serializedName: "publicKey",
|
|
488
558
|
readOnly: true,
|
|
489
559
|
type: {
|
|
490
560
|
name: "String"
|
|
@@ -696,13 +766,6 @@ export const Appliance: coreClient.CompositeMapper = {
|
|
|
696
766
|
className: "Identity"
|
|
697
767
|
}
|
|
698
768
|
},
|
|
699
|
-
systemData: {
|
|
700
|
-
serializedName: "systemData",
|
|
701
|
-
type: {
|
|
702
|
-
name: "Composite",
|
|
703
|
-
className: "SystemData"
|
|
704
|
-
}
|
|
705
|
-
},
|
|
706
769
|
distro: {
|
|
707
770
|
defaultValue: "AKSEdge",
|
|
708
771
|
serializedName: "properties.distro",
|
package/src/models/parameters.ts
CHANGED
|
@@ -43,7 +43,7 @@ export const $host: OperationURLParameter = {
|
|
|
43
43
|
export const apiVersion: OperationQueryParameter = {
|
|
44
44
|
parameterPath: "apiVersion",
|
|
45
45
|
mapper: {
|
|
46
|
-
defaultValue: "2022-
|
|
46
|
+
defaultValue: "2022-10-27",
|
|
47
47
|
isConstant: true,
|
|
48
48
|
serializedName: "api-version",
|
|
49
49
|
type: {
|
|
@@ -13,8 +13,12 @@ import * as coreClient from "@azure/core-client";
|
|
|
13
13
|
import * as Mappers from "../models/mappers";
|
|
14
14
|
import * as Parameters from "../models/parameters";
|
|
15
15
|
import { ResourceConnectorManagementClient } from "../resourceConnectorManagementClient";
|
|
16
|
-
import {
|
|
17
|
-
|
|
16
|
+
import {
|
|
17
|
+
SimplePollerLike,
|
|
18
|
+
OperationState,
|
|
19
|
+
createHttpPoller
|
|
20
|
+
} from "@azure/core-lro";
|
|
21
|
+
import { createLroSpec } from "../lroImpl";
|
|
18
22
|
import {
|
|
19
23
|
ApplianceOperation,
|
|
20
24
|
AppliancesListOperationsNextOptionalParams,
|
|
@@ -27,6 +31,8 @@ import {
|
|
|
27
31
|
AppliancesListByResourceGroupNextOptionalParams,
|
|
28
32
|
AppliancesListByResourceGroupOptionalParams,
|
|
29
33
|
AppliancesListByResourceGroupResponse,
|
|
34
|
+
AppliancesGetTelemetryConfigOptionalParams,
|
|
35
|
+
AppliancesGetTelemetryConfigResponse,
|
|
30
36
|
AppliancesGetOptionalParams,
|
|
31
37
|
AppliancesGetResponse,
|
|
32
38
|
AppliancesCreateOrUpdateOptionalParams,
|
|
@@ -34,10 +40,10 @@ import {
|
|
|
34
40
|
AppliancesDeleteOptionalParams,
|
|
35
41
|
AppliancesUpdateOptionalParams,
|
|
36
42
|
AppliancesUpdateResponse,
|
|
37
|
-
AppliancesListClusterCustomerUserCredentialOptionalParams,
|
|
38
|
-
AppliancesListClusterCustomerUserCredentialResponse,
|
|
39
43
|
AppliancesListClusterUserCredentialOptionalParams,
|
|
40
44
|
AppliancesListClusterUserCredentialResponse,
|
|
45
|
+
AppliancesListKeysOptionalParams,
|
|
46
|
+
AppliancesListKeysResponse,
|
|
41
47
|
AppliancesGetUpgradeGraphOptionalParams,
|
|
42
48
|
AppliancesGetUpgradeGraphResponse,
|
|
43
49
|
AppliancesListOperationsNextResponse,
|
|
@@ -264,6 +270,19 @@ export class AppliancesImpl implements Appliances {
|
|
|
264
270
|
);
|
|
265
271
|
}
|
|
266
272
|
|
|
273
|
+
/**
|
|
274
|
+
* Gets the telemetry config.
|
|
275
|
+
* @param options The options parameters.
|
|
276
|
+
*/
|
|
277
|
+
getTelemetryConfig(
|
|
278
|
+
options?: AppliancesGetTelemetryConfigOptionalParams
|
|
279
|
+
): Promise<AppliancesGetTelemetryConfigResponse> {
|
|
280
|
+
return this.client.sendOperationRequest(
|
|
281
|
+
{ options },
|
|
282
|
+
getTelemetryConfigOperationSpec
|
|
283
|
+
);
|
|
284
|
+
}
|
|
285
|
+
|
|
267
286
|
/**
|
|
268
287
|
* Gets a list of Appliances in the specified subscription and resource group. The operation returns
|
|
269
288
|
* properties of each Appliance.
|
|
@@ -310,8 +329,8 @@ export class AppliancesImpl implements Appliances {
|
|
|
310
329
|
parameters: Appliance,
|
|
311
330
|
options?: AppliancesCreateOrUpdateOptionalParams
|
|
312
331
|
): Promise<
|
|
313
|
-
|
|
314
|
-
|
|
332
|
+
SimplePollerLike<
|
|
333
|
+
OperationState<AppliancesCreateOrUpdateResponse>,
|
|
315
334
|
AppliancesCreateOrUpdateResponse
|
|
316
335
|
>
|
|
317
336
|
> {
|
|
@@ -321,7 +340,7 @@ export class AppliancesImpl implements Appliances {
|
|
|
321
340
|
): Promise<AppliancesCreateOrUpdateResponse> => {
|
|
322
341
|
return this.client.sendOperationRequest(args, spec);
|
|
323
342
|
};
|
|
324
|
-
const
|
|
343
|
+
const sendOperationFn = async (
|
|
325
344
|
args: coreClient.OperationArguments,
|
|
326
345
|
spec: coreClient.OperationSpec
|
|
327
346
|
) => {
|
|
@@ -354,15 +373,18 @@ export class AppliancesImpl implements Appliances {
|
|
|
354
373
|
};
|
|
355
374
|
};
|
|
356
375
|
|
|
357
|
-
const lro =
|
|
358
|
-
|
|
359
|
-
{ resourceGroupName, resourceName, parameters, options },
|
|
360
|
-
createOrUpdateOperationSpec
|
|
361
|
-
);
|
|
362
|
-
const poller =
|
|
363
|
-
|
|
376
|
+
const lro = createLroSpec({
|
|
377
|
+
sendOperationFn,
|
|
378
|
+
args: { resourceGroupName, resourceName, parameters, options },
|
|
379
|
+
spec: createOrUpdateOperationSpec
|
|
380
|
+
});
|
|
381
|
+
const poller = await createHttpPoller<
|
|
382
|
+
AppliancesCreateOrUpdateResponse,
|
|
383
|
+
OperationState<AppliancesCreateOrUpdateResponse>
|
|
384
|
+
>(lro, {
|
|
385
|
+
restoreFrom: options?.resumeFrom,
|
|
364
386
|
intervalInMs: options?.updateIntervalInMs,
|
|
365
|
-
|
|
387
|
+
resourceLocationConfig: "azure-async-operation"
|
|
366
388
|
});
|
|
367
389
|
await poller.poll();
|
|
368
390
|
return poller;
|
|
@@ -400,14 +422,14 @@ export class AppliancesImpl implements Appliances {
|
|
|
400
422
|
resourceGroupName: string,
|
|
401
423
|
resourceName: string,
|
|
402
424
|
options?: AppliancesDeleteOptionalParams
|
|
403
|
-
): Promise<
|
|
425
|
+
): Promise<SimplePollerLike<OperationState<void>, void>> {
|
|
404
426
|
const directSendOperation = async (
|
|
405
427
|
args: coreClient.OperationArguments,
|
|
406
428
|
spec: coreClient.OperationSpec
|
|
407
429
|
): Promise<void> => {
|
|
408
430
|
return this.client.sendOperationRequest(args, spec);
|
|
409
431
|
};
|
|
410
|
-
const
|
|
432
|
+
const sendOperationFn = async (
|
|
411
433
|
args: coreClient.OperationArguments,
|
|
412
434
|
spec: coreClient.OperationSpec
|
|
413
435
|
) => {
|
|
@@ -440,15 +462,15 @@ export class AppliancesImpl implements Appliances {
|
|
|
440
462
|
};
|
|
441
463
|
};
|
|
442
464
|
|
|
443
|
-
const lro =
|
|
444
|
-
|
|
445
|
-
{ resourceGroupName, resourceName, options },
|
|
446
|
-
deleteOperationSpec
|
|
447
|
-
);
|
|
448
|
-
const poller =
|
|
449
|
-
|
|
465
|
+
const lro = createLroSpec({
|
|
466
|
+
sendOperationFn,
|
|
467
|
+
args: { resourceGroupName, resourceName, options },
|
|
468
|
+
spec: deleteOperationSpec
|
|
469
|
+
});
|
|
470
|
+
const poller = await createHttpPoller<void, OperationState<void>>(lro, {
|
|
471
|
+
restoreFrom: options?.resumeFrom,
|
|
450
472
|
intervalInMs: options?.updateIntervalInMs,
|
|
451
|
-
|
|
473
|
+
resourceLocationConfig: "azure-async-operation"
|
|
452
474
|
});
|
|
453
475
|
await poller.poll();
|
|
454
476
|
return poller;
|
|
@@ -492,36 +514,36 @@ export class AppliancesImpl implements Appliances {
|
|
|
492
514
|
}
|
|
493
515
|
|
|
494
516
|
/**
|
|
495
|
-
* Returns the cluster
|
|
517
|
+
* Returns the cluster user credentials for the dedicated appliance.
|
|
496
518
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
497
519
|
* @param resourceName Appliances name.
|
|
498
520
|
* @param options The options parameters.
|
|
499
521
|
*/
|
|
500
|
-
|
|
522
|
+
listClusterUserCredential(
|
|
501
523
|
resourceGroupName: string,
|
|
502
524
|
resourceName: string,
|
|
503
|
-
options?:
|
|
504
|
-
): Promise<
|
|
525
|
+
options?: AppliancesListClusterUserCredentialOptionalParams
|
|
526
|
+
): Promise<AppliancesListClusterUserCredentialResponse> {
|
|
505
527
|
return this.client.sendOperationRequest(
|
|
506
528
|
{ resourceGroupName, resourceName, options },
|
|
507
|
-
|
|
529
|
+
listClusterUserCredentialOperationSpec
|
|
508
530
|
);
|
|
509
531
|
}
|
|
510
532
|
|
|
511
533
|
/**
|
|
512
|
-
* Returns the cluster
|
|
534
|
+
* Returns the cluster customer credentials for the dedicated appliance.
|
|
513
535
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
514
536
|
* @param resourceName Appliances name.
|
|
515
537
|
* @param options The options parameters.
|
|
516
538
|
*/
|
|
517
|
-
|
|
539
|
+
listKeys(
|
|
518
540
|
resourceGroupName: string,
|
|
519
541
|
resourceName: string,
|
|
520
|
-
options?:
|
|
521
|
-
): Promise<
|
|
542
|
+
options?: AppliancesListKeysOptionalParams
|
|
543
|
+
): Promise<AppliancesListKeysResponse> {
|
|
522
544
|
return this.client.sendOperationRequest(
|
|
523
545
|
{ resourceGroupName, resourceName, options },
|
|
524
|
-
|
|
546
|
+
listKeysOperationSpec
|
|
525
547
|
);
|
|
526
548
|
}
|
|
527
549
|
|
|
@@ -628,6 +650,23 @@ const listBySubscriptionOperationSpec: coreClient.OperationSpec = {
|
|
|
628
650
|
headerParameters: [Parameters.accept],
|
|
629
651
|
serializer
|
|
630
652
|
};
|
|
653
|
+
const getTelemetryConfigOperationSpec: coreClient.OperationSpec = {
|
|
654
|
+
path:
|
|
655
|
+
"/subscriptions/{subscriptionId}/providers/Microsoft.ResourceConnector/telemetryconfig",
|
|
656
|
+
httpMethod: "GET",
|
|
657
|
+
responses: {
|
|
658
|
+
200: {
|
|
659
|
+
bodyMapper: Mappers.ApplianceGetTelemetryConfigResult
|
|
660
|
+
},
|
|
661
|
+
default: {
|
|
662
|
+
bodyMapper: Mappers.ErrorResponse
|
|
663
|
+
}
|
|
664
|
+
},
|
|
665
|
+
queryParameters: [Parameters.apiVersion],
|
|
666
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
667
|
+
headerParameters: [Parameters.accept],
|
|
668
|
+
serializer
|
|
669
|
+
};
|
|
631
670
|
const listByResourceGroupOperationSpec: coreClient.OperationSpec = {
|
|
632
671
|
path:
|
|
633
672
|
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ResourceConnector/appliances",
|
|
@@ -754,13 +793,13 @@ const updateOperationSpec: coreClient.OperationSpec = {
|
|
|
754
793
|
mediaType: "json",
|
|
755
794
|
serializer
|
|
756
795
|
};
|
|
757
|
-
const
|
|
796
|
+
const listClusterUserCredentialOperationSpec: coreClient.OperationSpec = {
|
|
758
797
|
path:
|
|
759
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ResourceConnector/appliances/{resourceName}/
|
|
798
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ResourceConnector/appliances/{resourceName}/listClusterUserCredential",
|
|
760
799
|
httpMethod: "POST",
|
|
761
800
|
responses: {
|
|
762
801
|
200: {
|
|
763
|
-
bodyMapper: Mappers.
|
|
802
|
+
bodyMapper: Mappers.ApplianceListCredentialResults
|
|
764
803
|
},
|
|
765
804
|
default: {
|
|
766
805
|
bodyMapper: Mappers.ErrorResponse
|
|
@@ -776,13 +815,13 @@ const listClusterCustomerUserCredentialOperationSpec: coreClient.OperationSpec =
|
|
|
776
815
|
headerParameters: [Parameters.accept],
|
|
777
816
|
serializer
|
|
778
817
|
};
|
|
779
|
-
const
|
|
818
|
+
const listKeysOperationSpec: coreClient.OperationSpec = {
|
|
780
819
|
path:
|
|
781
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ResourceConnector/appliances/{resourceName}/
|
|
820
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ResourceConnector/appliances/{resourceName}/listkeys",
|
|
782
821
|
httpMethod: "POST",
|
|
783
822
|
responses: {
|
|
784
823
|
200: {
|
|
785
|
-
bodyMapper: Mappers.
|
|
824
|
+
bodyMapper: Mappers.ApplianceListKeysResults
|
|
786
825
|
},
|
|
787
826
|
default: {
|
|
788
827
|
bodyMapper: Mappers.ErrorResponse
|
|
@@ -7,13 +7,15 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
-
import {
|
|
10
|
+
import { SimplePollerLike, OperationState } from "@azure/core-lro";
|
|
11
11
|
import {
|
|
12
12
|
ApplianceOperation,
|
|
13
13
|
AppliancesListOperationsOptionalParams,
|
|
14
14
|
Appliance,
|
|
15
15
|
AppliancesListBySubscriptionOptionalParams,
|
|
16
16
|
AppliancesListByResourceGroupOptionalParams,
|
|
17
|
+
AppliancesGetTelemetryConfigOptionalParams,
|
|
18
|
+
AppliancesGetTelemetryConfigResponse,
|
|
17
19
|
AppliancesGetOptionalParams,
|
|
18
20
|
AppliancesGetResponse,
|
|
19
21
|
AppliancesCreateOrUpdateOptionalParams,
|
|
@@ -21,10 +23,10 @@ import {
|
|
|
21
23
|
AppliancesDeleteOptionalParams,
|
|
22
24
|
AppliancesUpdateOptionalParams,
|
|
23
25
|
AppliancesUpdateResponse,
|
|
24
|
-
AppliancesListClusterCustomerUserCredentialOptionalParams,
|
|
25
|
-
AppliancesListClusterCustomerUserCredentialResponse,
|
|
26
26
|
AppliancesListClusterUserCredentialOptionalParams,
|
|
27
27
|
AppliancesListClusterUserCredentialResponse,
|
|
28
|
+
AppliancesListKeysOptionalParams,
|
|
29
|
+
AppliancesListKeysResponse,
|
|
28
30
|
AppliancesGetUpgradeGraphOptionalParams,
|
|
29
31
|
AppliancesGetUpgradeGraphResponse
|
|
30
32
|
} from "../models";
|
|
@@ -57,6 +59,13 @@ export interface Appliances {
|
|
|
57
59
|
resourceGroupName: string,
|
|
58
60
|
options?: AppliancesListByResourceGroupOptionalParams
|
|
59
61
|
): PagedAsyncIterableIterator<Appliance>;
|
|
62
|
+
/**
|
|
63
|
+
* Gets the telemetry config.
|
|
64
|
+
* @param options The options parameters.
|
|
65
|
+
*/
|
|
66
|
+
getTelemetryConfig(
|
|
67
|
+
options?: AppliancesGetTelemetryConfigOptionalParams
|
|
68
|
+
): Promise<AppliancesGetTelemetryConfigResponse>;
|
|
60
69
|
/**
|
|
61
70
|
* Gets the details of an Appliance with a specified resource group and name.
|
|
62
71
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
@@ -81,8 +90,8 @@ export interface Appliances {
|
|
|
81
90
|
parameters: Appliance,
|
|
82
91
|
options?: AppliancesCreateOrUpdateOptionalParams
|
|
83
92
|
): Promise<
|
|
84
|
-
|
|
85
|
-
|
|
93
|
+
SimplePollerLike<
|
|
94
|
+
OperationState<AppliancesCreateOrUpdateResponse>,
|
|
86
95
|
AppliancesCreateOrUpdateResponse
|
|
87
96
|
>
|
|
88
97
|
>;
|
|
@@ -109,7 +118,7 @@ export interface Appliances {
|
|
|
109
118
|
resourceGroupName: string,
|
|
110
119
|
resourceName: string,
|
|
111
120
|
options?: AppliancesDeleteOptionalParams
|
|
112
|
-
): Promise<
|
|
121
|
+
): Promise<SimplePollerLike<OperationState<void>, void>>;
|
|
113
122
|
/**
|
|
114
123
|
* Deletes an Appliance with the specified Resource Name, Resource Group, and Subscription Id.
|
|
115
124
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
@@ -134,27 +143,27 @@ export interface Appliances {
|
|
|
134
143
|
options?: AppliancesUpdateOptionalParams
|
|
135
144
|
): Promise<AppliancesUpdateResponse>;
|
|
136
145
|
/**
|
|
137
|
-
* Returns the cluster
|
|
146
|
+
* Returns the cluster user credentials for the dedicated appliance.
|
|
138
147
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
139
148
|
* @param resourceName Appliances name.
|
|
140
149
|
* @param options The options parameters.
|
|
141
150
|
*/
|
|
142
|
-
|
|
151
|
+
listClusterUserCredential(
|
|
143
152
|
resourceGroupName: string,
|
|
144
153
|
resourceName: string,
|
|
145
|
-
options?:
|
|
146
|
-
): Promise<
|
|
154
|
+
options?: AppliancesListClusterUserCredentialOptionalParams
|
|
155
|
+
): Promise<AppliancesListClusterUserCredentialResponse>;
|
|
147
156
|
/**
|
|
148
|
-
* Returns the cluster
|
|
157
|
+
* Returns the cluster customer credentials for the dedicated appliance.
|
|
149
158
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
150
159
|
* @param resourceName Appliances name.
|
|
151
160
|
* @param options The options parameters.
|
|
152
161
|
*/
|
|
153
|
-
|
|
162
|
+
listKeys(
|
|
154
163
|
resourceGroupName: string,
|
|
155
164
|
resourceName: string,
|
|
156
|
-
options?:
|
|
157
|
-
): Promise<
|
|
165
|
+
options?: AppliancesListKeysOptionalParams
|
|
166
|
+
): Promise<AppliancesListKeysResponse>;
|
|
158
167
|
/**
|
|
159
168
|
* Gets the upgrade graph of an Appliance with a specified resource group and name and specific release
|
|
160
169
|
* train.
|
|
@@ -50,7 +50,7 @@ export class ResourceConnectorManagementClient extends coreClient.ServiceClient
|
|
|
50
50
|
credential: credentials
|
|
51
51
|
};
|
|
52
52
|
|
|
53
|
-
const packageDetails = `azsdk-js-arm-resourceconnector/1.0.0-beta.
|
|
53
|
+
const packageDetails = `azsdk-js-arm-resourceconnector/1.0.0-beta.3`;
|
|
54
54
|
const userAgentPrefix =
|
|
55
55
|
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
56
56
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
@@ -103,7 +103,7 @@ export class ResourceConnectorManagementClient extends coreClient.ServiceClient
|
|
|
103
103
|
|
|
104
104
|
// Assigning values to Constant parameters
|
|
105
105
|
this.$host = options.$host || "https://management.azure.com";
|
|
106
|
-
this.apiVersion = options.apiVersion || "2022-
|
|
106
|
+
this.apiVersion = options.apiVersion || "2022-10-27";
|
|
107
107
|
this.appliances = new AppliancesImpl(this);
|
|
108
108
|
this.addCustomApiVersionPolicy(options.apiVersion);
|
|
109
109
|
}
|