@azure/arm-resourceconnector 1.0.0-beta.1 → 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 +1 -1
- package/LICENSE +1 -1
- package/README.md +2 -2
- package/dist/index.js +370 -164
- 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 +12 -4
- package/dist-esm/samples-dev/appliancesCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/appliancesDeleteSample.js +12 -4
- package/dist-esm/samples-dev/appliancesDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/appliancesGetSample.js +12 -4
- package/dist-esm/samples-dev/appliancesGetSample.js.map +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 +12 -4
- package/dist-esm/samples-dev/appliancesGetUpgradeGraphSample.js.map +1 -1
- package/dist-esm/samples-dev/appliancesListByResourceGroupSample.js +24 -9
- package/dist-esm/samples-dev/appliancesListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/appliancesListBySubscriptionSample.js +23 -8
- package/dist-esm/samples-dev/appliancesListBySubscriptionSample.js.map +1 -1
- package/dist-esm/samples-dev/appliancesListClusterUserCredentialSample.js +12 -4
- package/dist-esm/samples-dev/appliancesListClusterUserCredentialSample.js.map +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} +17 -9
- package/dist-esm/samples-dev/appliancesListKeysSample.js.map +1 -0
- package/dist-esm/samples-dev/appliancesListOperationsSample.js +23 -8
- package/dist-esm/samples-dev/appliancesListOperationsSample.js.map +1 -1
- package/dist-esm/samples-dev/appliancesUpdateSample.js +12 -4
- package/dist-esm/samples-dev/appliancesUpdateSample.js.map +1 -1
- package/dist-esm/src/index.d.ts +1 -0
- package/dist-esm/src/index.d.ts.map +1 -1
- package/dist-esm/src/index.js +1 -0
- package/dist-esm/src/index.js.map +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 +146 -63
- 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/pagingHelper.d.ts +13 -0
- package/dist-esm/src/pagingHelper.d.ts.map +1 -0
- package/dist-esm/src/pagingHelper.js +32 -0
- package/dist-esm/src/pagingHelper.js.map +1 -0
- package/dist-esm/src/resourceConnectorManagementClient.d.ts.map +1 -1
- package/dist-esm/src/resourceConnectorManagementClient.js +21 -16
- 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 +15 -13
- package/review/arm-resourceconnector.api.md +65 -18
- package/src/index.ts +1 -0
- 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 +145 -68
- package/src/operationsInterfaces/appliances.ts +23 -14
- package/src/pagingHelper.ts +39 -0
- package/src/resourceConnectorManagementClient.ts +27 -18
- package/types/arm-resourceconnector.d.ts +155 -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/dist/index.js
CHANGED
|
@@ -28,6 +28,38 @@ function _interopNamespace(e) {
|
|
|
28
28
|
var coreClient__namespace = /*#__PURE__*/_interopNamespace(coreClient);
|
|
29
29
|
var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespace(coreRestPipeline);
|
|
30
30
|
|
|
31
|
+
/*
|
|
32
|
+
* Copyright (c) Microsoft Corporation.
|
|
33
|
+
* Licensed under the MIT License.
|
|
34
|
+
*
|
|
35
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
36
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
37
|
+
*/
|
|
38
|
+
const pageMap = new WeakMap();
|
|
39
|
+
/**
|
|
40
|
+
* Given the last `.value` produced by the `byPage` iterator,
|
|
41
|
+
* returns a continuation token that can be used to begin paging from
|
|
42
|
+
* that point later.
|
|
43
|
+
* @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
|
|
44
|
+
* @returns The continuation token that can be passed into byPage() during future calls.
|
|
45
|
+
*/
|
|
46
|
+
function getContinuationToken(page) {
|
|
47
|
+
var _a;
|
|
48
|
+
if (typeof page !== "object" || page === null) {
|
|
49
|
+
return undefined;
|
|
50
|
+
}
|
|
51
|
+
return (_a = pageMap.get(page)) === null || _a === void 0 ? void 0 : _a.continuationToken;
|
|
52
|
+
}
|
|
53
|
+
function setContinuationToken(page, continuationToken) {
|
|
54
|
+
var _a;
|
|
55
|
+
if (typeof page !== "object" || page === null || !continuationToken) {
|
|
56
|
+
return;
|
|
57
|
+
}
|
|
58
|
+
const pageInfo = (_a = pageMap.get(page)) !== null && _a !== void 0 ? _a : {};
|
|
59
|
+
pageInfo.continuationToken = continuationToken;
|
|
60
|
+
pageMap.set(page, pageInfo);
|
|
61
|
+
}
|
|
62
|
+
|
|
31
63
|
/*
|
|
32
64
|
* Copyright (c) Microsoft Corporation.
|
|
33
65
|
* Licensed under the MIT License.
|
|
@@ -82,6 +114,24 @@ exports.KnownStatus = void 0;
|
|
|
82
114
|
KnownStatus["UpgradePrerequisitesCompleted"] = "UpgradePrerequisitesCompleted";
|
|
83
115
|
/** PreUpgrade */
|
|
84
116
|
KnownStatus["PreUpgrade"] = "PreUpgrade";
|
|
117
|
+
/** UpgradingKvaio */
|
|
118
|
+
KnownStatus["UpgradingKvaio"] = "UpgradingKVAIO";
|
|
119
|
+
/** WaitingForKvaio */
|
|
120
|
+
KnownStatus["WaitingForKvaio"] = "WaitingForKVAIO";
|
|
121
|
+
/** ImagePending */
|
|
122
|
+
KnownStatus["ImagePending"] = "ImagePending";
|
|
123
|
+
/** ImageProvisioning */
|
|
124
|
+
KnownStatus["ImageProvisioning"] = "ImageProvisioning";
|
|
125
|
+
/** ImageProvisioned */
|
|
126
|
+
KnownStatus["ImageProvisioned"] = "ImageProvisioned";
|
|
127
|
+
/** ImageDownloading */
|
|
128
|
+
KnownStatus["ImageDownloading"] = "ImageDownloading";
|
|
129
|
+
/** ImageDownloaded */
|
|
130
|
+
KnownStatus["ImageDownloaded"] = "ImageDownloaded";
|
|
131
|
+
/** ImageDeprovisioning */
|
|
132
|
+
KnownStatus["ImageDeprovisioning"] = "ImageDeprovisioning";
|
|
133
|
+
/** ImageUnknown */
|
|
134
|
+
KnownStatus["ImageUnknown"] = "ImageUnknown";
|
|
85
135
|
/** UpdatingCloudOperator */
|
|
86
136
|
KnownStatus["UpdatingCloudOperator"] = "UpdatingCloudOperator";
|
|
87
137
|
/** WaitingForCloudOperator */
|
|
@@ -123,11 +173,23 @@ exports.KnownAccessProfileType = void 0;
|
|
|
123
173
|
/** ClusterCustomerUser */
|
|
124
174
|
KnownAccessProfileType["ClusterCustomerUser"] = "clusterCustomerUser";
|
|
125
175
|
})(exports.KnownAccessProfileType || (exports.KnownAccessProfileType = {}));
|
|
176
|
+
/** Known values of {@link ArtifactType} that the service accepts. */
|
|
177
|
+
exports.KnownArtifactType = void 0;
|
|
178
|
+
(function (KnownArtifactType) {
|
|
179
|
+
/** LogsArtifactType */
|
|
180
|
+
KnownArtifactType["LogsArtifactType"] = "LogsArtifactType";
|
|
181
|
+
})(exports.KnownArtifactType || (exports.KnownArtifactType = {}));
|
|
126
182
|
/** Known values of {@link SSHKeyType} that the service accepts. */
|
|
127
183
|
exports.KnownSSHKeyType = void 0;
|
|
128
184
|
(function (KnownSSHKeyType) {
|
|
129
185
|
/** SSHCustomerUser */
|
|
130
186
|
KnownSSHKeyType["SSHCustomerUser"] = "SSHCustomerUser";
|
|
187
|
+
/** ManagementCAKey */
|
|
188
|
+
KnownSSHKeyType["ManagementCAKey"] = "ManagementCAKey";
|
|
189
|
+
/** LogsKey */
|
|
190
|
+
KnownSSHKeyType["LogsKey"] = "LogsKey";
|
|
191
|
+
/** ScopedAccessKey */
|
|
192
|
+
KnownSSHKeyType["ScopedAccessKey"] = "ScopedAccessKey";
|
|
131
193
|
})(exports.KnownSSHKeyType || (exports.KnownSSHKeyType = {}));
|
|
132
194
|
|
|
133
195
|
/*
|
|
@@ -384,6 +446,42 @@ const AppliancePropertiesInfrastructureConfig = {
|
|
|
384
446
|
}
|
|
385
447
|
}
|
|
386
448
|
};
|
|
449
|
+
const Resource = {
|
|
450
|
+
type: {
|
|
451
|
+
name: "Composite",
|
|
452
|
+
className: "Resource",
|
|
453
|
+
modelProperties: {
|
|
454
|
+
id: {
|
|
455
|
+
serializedName: "id",
|
|
456
|
+
readOnly: true,
|
|
457
|
+
type: {
|
|
458
|
+
name: "String"
|
|
459
|
+
}
|
|
460
|
+
},
|
|
461
|
+
name: {
|
|
462
|
+
serializedName: "name",
|
|
463
|
+
readOnly: true,
|
|
464
|
+
type: {
|
|
465
|
+
name: "String"
|
|
466
|
+
}
|
|
467
|
+
},
|
|
468
|
+
type: {
|
|
469
|
+
serializedName: "type",
|
|
470
|
+
readOnly: true,
|
|
471
|
+
type: {
|
|
472
|
+
name: "String"
|
|
473
|
+
}
|
|
474
|
+
},
|
|
475
|
+
systemData: {
|
|
476
|
+
serializedName: "systemData",
|
|
477
|
+
type: {
|
|
478
|
+
name: "Composite",
|
|
479
|
+
className: "SystemData"
|
|
480
|
+
}
|
|
481
|
+
}
|
|
482
|
+
}
|
|
483
|
+
}
|
|
484
|
+
};
|
|
387
485
|
const SystemData = {
|
|
388
486
|
type: {
|
|
389
487
|
name: "Composite",
|
|
@@ -428,27 +526,13 @@ const SystemData = {
|
|
|
428
526
|
}
|
|
429
527
|
}
|
|
430
528
|
};
|
|
431
|
-
const
|
|
529
|
+
const ApplianceGetTelemetryConfigResult = {
|
|
432
530
|
type: {
|
|
433
531
|
name: "Composite",
|
|
434
|
-
className: "
|
|
532
|
+
className: "ApplianceGetTelemetryConfigResult",
|
|
435
533
|
modelProperties: {
|
|
436
|
-
|
|
437
|
-
serializedName: "
|
|
438
|
-
readOnly: true,
|
|
439
|
-
type: {
|
|
440
|
-
name: "String"
|
|
441
|
-
}
|
|
442
|
-
},
|
|
443
|
-
name: {
|
|
444
|
-
serializedName: "name",
|
|
445
|
-
readOnly: true,
|
|
446
|
-
type: {
|
|
447
|
-
name: "String"
|
|
448
|
-
}
|
|
449
|
-
},
|
|
450
|
-
type: {
|
|
451
|
-
serializedName: "type",
|
|
534
|
+
telemetryInstrumentationKey: {
|
|
535
|
+
serializedName: "telemetryInstrumentationKey",
|
|
452
536
|
readOnly: true,
|
|
453
537
|
type: {
|
|
454
538
|
name: "String"
|
|
@@ -472,11 +556,18 @@ const PatchableAppliance = {
|
|
|
472
556
|
}
|
|
473
557
|
}
|
|
474
558
|
};
|
|
475
|
-
const
|
|
559
|
+
const ApplianceListCredentialResults = {
|
|
476
560
|
type: {
|
|
477
561
|
name: "Composite",
|
|
478
|
-
className: "
|
|
562
|
+
className: "ApplianceListCredentialResults",
|
|
479
563
|
modelProperties: {
|
|
564
|
+
hybridConnectionConfig: {
|
|
565
|
+
serializedName: "hybridConnectionConfig",
|
|
566
|
+
type: {
|
|
567
|
+
name: "Composite",
|
|
568
|
+
className: "HybridConnectionConfig"
|
|
569
|
+
}
|
|
570
|
+
},
|
|
480
571
|
kubeconfigs: {
|
|
481
572
|
serializedName: "kubeconfigs",
|
|
482
573
|
readOnly: true,
|
|
@@ -489,32 +580,38 @@ const ApplianceListClusterCustomerUserCredentialResults = {
|
|
|
489
580
|
}
|
|
490
581
|
}
|
|
491
582
|
}
|
|
492
|
-
},
|
|
493
|
-
sshKeys: {
|
|
494
|
-
serializedName: "sshKeys",
|
|
495
|
-
readOnly: true,
|
|
496
|
-
type: {
|
|
497
|
-
name: "Dictionary",
|
|
498
|
-
value: { type: { name: "Composite", className: "SSHKey" } }
|
|
499
|
-
}
|
|
500
583
|
}
|
|
501
584
|
}
|
|
502
585
|
}
|
|
503
586
|
};
|
|
504
|
-
const
|
|
587
|
+
const HybridConnectionConfig = {
|
|
505
588
|
type: {
|
|
506
589
|
name: "Composite",
|
|
507
|
-
className: "
|
|
590
|
+
className: "HybridConnectionConfig",
|
|
508
591
|
modelProperties: {
|
|
509
|
-
|
|
510
|
-
serializedName: "
|
|
592
|
+
expirationTime: {
|
|
593
|
+
serializedName: "expirationTime",
|
|
594
|
+
readOnly: true,
|
|
595
|
+
type: {
|
|
596
|
+
name: "Number"
|
|
597
|
+
}
|
|
598
|
+
},
|
|
599
|
+
hybridConnectionName: {
|
|
600
|
+
serializedName: "hybridConnectionName",
|
|
511
601
|
readOnly: true,
|
|
512
602
|
type: {
|
|
513
603
|
name: "String"
|
|
514
604
|
}
|
|
515
605
|
},
|
|
516
|
-
|
|
517
|
-
serializedName: "
|
|
606
|
+
relay: {
|
|
607
|
+
serializedName: "relay",
|
|
608
|
+
readOnly: true,
|
|
609
|
+
type: {
|
|
610
|
+
name: "String"
|
|
611
|
+
}
|
|
612
|
+
},
|
|
613
|
+
token: {
|
|
614
|
+
serializedName: "token",
|
|
518
615
|
readOnly: true,
|
|
519
616
|
type: {
|
|
520
617
|
name: "String"
|
|
@@ -523,19 +620,21 @@ const ApplianceCredentialKubeconfig = {
|
|
|
523
620
|
}
|
|
524
621
|
}
|
|
525
622
|
};
|
|
526
|
-
const
|
|
623
|
+
const ApplianceCredentialKubeconfig = {
|
|
527
624
|
type: {
|
|
528
625
|
name: "Composite",
|
|
529
|
-
className: "
|
|
626
|
+
className: "ApplianceCredentialKubeconfig",
|
|
530
627
|
modelProperties: {
|
|
531
|
-
|
|
532
|
-
serializedName: "
|
|
628
|
+
name: {
|
|
629
|
+
serializedName: "name",
|
|
630
|
+
readOnly: true,
|
|
533
631
|
type: {
|
|
534
632
|
name: "String"
|
|
535
633
|
}
|
|
536
634
|
},
|
|
537
|
-
|
|
538
|
-
serializedName: "
|
|
635
|
+
value: {
|
|
636
|
+
serializedName: "value",
|
|
637
|
+
readOnly: true,
|
|
539
638
|
type: {
|
|
540
639
|
name: "String"
|
|
541
640
|
}
|
|
@@ -543,16 +642,17 @@ const SSHKey = {
|
|
|
543
642
|
}
|
|
544
643
|
}
|
|
545
644
|
};
|
|
546
|
-
const
|
|
645
|
+
const ApplianceListKeysResults = {
|
|
547
646
|
type: {
|
|
548
647
|
name: "Composite",
|
|
549
|
-
className: "
|
|
648
|
+
className: "ApplianceListKeysResults",
|
|
550
649
|
modelProperties: {
|
|
551
|
-
|
|
552
|
-
serializedName: "
|
|
650
|
+
artifactProfiles: {
|
|
651
|
+
serializedName: "artifactProfiles",
|
|
652
|
+
readOnly: true,
|
|
553
653
|
type: {
|
|
554
|
-
name: "
|
|
555
|
-
className: "
|
|
654
|
+
name: "Dictionary",
|
|
655
|
+
value: { type: { name: "Composite", className: "ArtifactProfile" } }
|
|
556
656
|
}
|
|
557
657
|
},
|
|
558
658
|
kubeconfigs: {
|
|
@@ -567,38 +667,68 @@ const ApplianceListCredentialResults = {
|
|
|
567
667
|
}
|
|
568
668
|
}
|
|
569
669
|
}
|
|
670
|
+
},
|
|
671
|
+
sshKeys: {
|
|
672
|
+
serializedName: "sshKeys",
|
|
673
|
+
readOnly: true,
|
|
674
|
+
type: {
|
|
675
|
+
name: "Dictionary",
|
|
676
|
+
value: { type: { name: "Composite", className: "SSHKey" } }
|
|
677
|
+
}
|
|
570
678
|
}
|
|
571
679
|
}
|
|
572
680
|
}
|
|
573
681
|
};
|
|
574
|
-
const
|
|
682
|
+
const ArtifactProfile = {
|
|
575
683
|
type: {
|
|
576
684
|
name: "Composite",
|
|
577
|
-
className: "
|
|
685
|
+
className: "ArtifactProfile",
|
|
578
686
|
modelProperties: {
|
|
579
|
-
|
|
580
|
-
serializedName: "
|
|
687
|
+
endpoint: {
|
|
688
|
+
serializedName: "endpoint",
|
|
689
|
+
readOnly: true,
|
|
690
|
+
type: {
|
|
691
|
+
name: "String"
|
|
692
|
+
}
|
|
693
|
+
}
|
|
694
|
+
}
|
|
695
|
+
}
|
|
696
|
+
};
|
|
697
|
+
const SSHKey = {
|
|
698
|
+
type: {
|
|
699
|
+
name: "Composite",
|
|
700
|
+
className: "SSHKey",
|
|
701
|
+
modelProperties: {
|
|
702
|
+
certificate: {
|
|
703
|
+
serializedName: "certificate",
|
|
704
|
+
readOnly: true,
|
|
705
|
+
type: {
|
|
706
|
+
name: "String"
|
|
707
|
+
}
|
|
708
|
+
},
|
|
709
|
+
creationTimeStamp: {
|
|
710
|
+
serializedName: "creationTimeStamp",
|
|
581
711
|
readOnly: true,
|
|
582
712
|
type: {
|
|
583
713
|
name: "Number"
|
|
584
714
|
}
|
|
585
715
|
},
|
|
586
|
-
|
|
587
|
-
serializedName: "
|
|
716
|
+
expirationTimeStamp: {
|
|
717
|
+
serializedName: "expirationTimeStamp",
|
|
588
718
|
readOnly: true,
|
|
589
719
|
type: {
|
|
590
|
-
name: "
|
|
720
|
+
name: "Number"
|
|
591
721
|
}
|
|
592
722
|
},
|
|
593
|
-
|
|
594
|
-
serializedName: "
|
|
723
|
+
privateKey: {
|
|
724
|
+
serializedName: "privateKey",
|
|
595
725
|
readOnly: true,
|
|
596
726
|
type: {
|
|
597
727
|
name: "String"
|
|
598
728
|
}
|
|
599
729
|
},
|
|
600
|
-
|
|
601
|
-
serializedName: "
|
|
730
|
+
publicKey: {
|
|
731
|
+
serializedName: "publicKey",
|
|
602
732
|
readOnly: true,
|
|
603
733
|
type: {
|
|
604
734
|
name: "String"
|
|
@@ -795,12 +925,6 @@ const Appliance = {
|
|
|
795
925
|
name: "Composite",
|
|
796
926
|
className: "Identity"
|
|
797
927
|
}
|
|
798
|
-
}, systemData: {
|
|
799
|
-
serializedName: "systemData",
|
|
800
|
-
type: {
|
|
801
|
-
name: "Composite",
|
|
802
|
-
className: "SystemData"
|
|
803
|
-
}
|
|
804
928
|
}, distro: {
|
|
805
929
|
defaultValue: "AKSEdge",
|
|
806
930
|
serializedName: "properties.distro",
|
|
@@ -849,14 +973,16 @@ var Mappers = /*#__PURE__*/Object.freeze({
|
|
|
849
973
|
ApplianceListResult: ApplianceListResult,
|
|
850
974
|
Identity: Identity,
|
|
851
975
|
AppliancePropertiesInfrastructureConfig: AppliancePropertiesInfrastructureConfig,
|
|
852
|
-
SystemData: SystemData,
|
|
853
976
|
Resource: Resource,
|
|
977
|
+
SystemData: SystemData,
|
|
978
|
+
ApplianceGetTelemetryConfigResult: ApplianceGetTelemetryConfigResult,
|
|
854
979
|
PatchableAppliance: PatchableAppliance,
|
|
855
|
-
ApplianceListClusterCustomerUserCredentialResults: ApplianceListClusterCustomerUserCredentialResults,
|
|
856
|
-
ApplianceCredentialKubeconfig: ApplianceCredentialKubeconfig,
|
|
857
|
-
SSHKey: SSHKey,
|
|
858
980
|
ApplianceListCredentialResults: ApplianceListCredentialResults,
|
|
859
981
|
HybridConnectionConfig: HybridConnectionConfig,
|
|
982
|
+
ApplianceCredentialKubeconfig: ApplianceCredentialKubeconfig,
|
|
983
|
+
ApplianceListKeysResults: ApplianceListKeysResults,
|
|
984
|
+
ArtifactProfile: ArtifactProfile,
|
|
985
|
+
SSHKey: SSHKey,
|
|
860
986
|
UpgradeGraph: UpgradeGraph,
|
|
861
987
|
UpgradeGraphProperties: UpgradeGraphProperties,
|
|
862
988
|
SupportedVersion: SupportedVersion,
|
|
@@ -899,7 +1025,7 @@ const $host = {
|
|
|
899
1025
|
const apiVersion = {
|
|
900
1026
|
parameterPath: "apiVersion",
|
|
901
1027
|
mapper: {
|
|
902
|
-
defaultValue: "2022-
|
|
1028
|
+
defaultValue: "2022-10-27",
|
|
903
1029
|
isConstant: true,
|
|
904
1030
|
serializedName: "api-version",
|
|
905
1031
|
type: {
|
|
@@ -993,25 +1119,17 @@ const nextLink = {
|
|
|
993
1119
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
994
1120
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
995
1121
|
*/
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
});
|
|
1008
|
-
}
|
|
1009
|
-
sendPollRequest(path) {
|
|
1010
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1011
|
-
const _a = this.spec, restSpec = tslib.__rest(_a, ["requestBody"]);
|
|
1012
|
-
return this.sendOperationFn(this.args, Object.assign(Object.assign({}, restSpec), { path, httpMethod: "GET" }));
|
|
1013
|
-
});
|
|
1014
|
-
}
|
|
1122
|
+
function createLroSpec(inputs) {
|
|
1123
|
+
const { args, spec, sendOperationFn } = inputs;
|
|
1124
|
+
return {
|
|
1125
|
+
requestMethod: spec.httpMethod,
|
|
1126
|
+
requestPath: spec.path,
|
|
1127
|
+
sendInitialRequest: () => sendOperationFn(args, spec),
|
|
1128
|
+
sendPollRequest: (path, options) => {
|
|
1129
|
+
const restSpec = tslib.__rest(spec, ["requestBody"]);
|
|
1130
|
+
return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal }));
|
|
1131
|
+
}
|
|
1132
|
+
};
|
|
1015
1133
|
}
|
|
1016
1134
|
|
|
1017
1135
|
/*
|
|
@@ -1044,36 +1162,54 @@ class AppliancesImpl {
|
|
|
1044
1162
|
[Symbol.asyncIterator]() {
|
|
1045
1163
|
return this;
|
|
1046
1164
|
},
|
|
1047
|
-
byPage: () => {
|
|
1048
|
-
|
|
1165
|
+
byPage: (settings) => {
|
|
1166
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
1167
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
1168
|
+
}
|
|
1169
|
+
return this.listOperationsPagingPage(options, settings);
|
|
1049
1170
|
}
|
|
1050
1171
|
};
|
|
1051
1172
|
}
|
|
1052
|
-
listOperationsPagingPage(options) {
|
|
1173
|
+
listOperationsPagingPage(options, settings) {
|
|
1053
1174
|
return tslib.__asyncGenerator(this, arguments, function* listOperationsPagingPage_1() {
|
|
1054
|
-
let result
|
|
1055
|
-
|
|
1056
|
-
|
|
1175
|
+
let result;
|
|
1176
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
1177
|
+
if (!continuationToken) {
|
|
1178
|
+
result = yield tslib.__await(this._listOperations(options));
|
|
1179
|
+
let page = result.value || [];
|
|
1180
|
+
continuationToken = result.nextLink;
|
|
1181
|
+
setContinuationToken(page, continuationToken);
|
|
1182
|
+
yield yield tslib.__await(page);
|
|
1183
|
+
}
|
|
1057
1184
|
while (continuationToken) {
|
|
1058
1185
|
result = yield tslib.__await(this._listOperationsNext(continuationToken, options));
|
|
1059
1186
|
continuationToken = result.nextLink;
|
|
1060
|
-
|
|
1187
|
+
let page = result.value || [];
|
|
1188
|
+
setContinuationToken(page, continuationToken);
|
|
1189
|
+
yield yield tslib.__await(page);
|
|
1061
1190
|
}
|
|
1062
1191
|
});
|
|
1063
1192
|
}
|
|
1064
1193
|
listOperationsPagingAll(options) {
|
|
1065
1194
|
return tslib.__asyncGenerator(this, arguments, function* listOperationsPagingAll_1() {
|
|
1066
|
-
var e_1,
|
|
1195
|
+
var _a, e_1, _b, _c;
|
|
1067
1196
|
try {
|
|
1068
|
-
for (var
|
|
1069
|
-
|
|
1070
|
-
|
|
1197
|
+
for (var _d = true, _e = tslib.__asyncValues(this.listOperationsPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
|
|
1198
|
+
_c = _f.value;
|
|
1199
|
+
_d = false;
|
|
1200
|
+
try {
|
|
1201
|
+
const page = _c;
|
|
1202
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
1203
|
+
}
|
|
1204
|
+
finally {
|
|
1205
|
+
_d = true;
|
|
1206
|
+
}
|
|
1071
1207
|
}
|
|
1072
1208
|
}
|
|
1073
1209
|
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
1074
1210
|
finally {
|
|
1075
1211
|
try {
|
|
1076
|
-
if (
|
|
1212
|
+
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
1077
1213
|
}
|
|
1078
1214
|
finally { if (e_1) throw e_1.error; }
|
|
1079
1215
|
}
|
|
@@ -1093,36 +1229,54 @@ class AppliancesImpl {
|
|
|
1093
1229
|
[Symbol.asyncIterator]() {
|
|
1094
1230
|
return this;
|
|
1095
1231
|
},
|
|
1096
|
-
byPage: () => {
|
|
1097
|
-
|
|
1232
|
+
byPage: (settings) => {
|
|
1233
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
1234
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
1235
|
+
}
|
|
1236
|
+
return this.listBySubscriptionPagingPage(options, settings);
|
|
1098
1237
|
}
|
|
1099
1238
|
};
|
|
1100
1239
|
}
|
|
1101
|
-
listBySubscriptionPagingPage(options) {
|
|
1240
|
+
listBySubscriptionPagingPage(options, settings) {
|
|
1102
1241
|
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
|
1103
|
-
let result
|
|
1104
|
-
|
|
1105
|
-
|
|
1242
|
+
let result;
|
|
1243
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
1244
|
+
if (!continuationToken) {
|
|
1245
|
+
result = yield tslib.__await(this._listBySubscription(options));
|
|
1246
|
+
let page = result.value || [];
|
|
1247
|
+
continuationToken = result.nextLink;
|
|
1248
|
+
setContinuationToken(page, continuationToken);
|
|
1249
|
+
yield yield tslib.__await(page);
|
|
1250
|
+
}
|
|
1106
1251
|
while (continuationToken) {
|
|
1107
1252
|
result = yield tslib.__await(this._listBySubscriptionNext(continuationToken, options));
|
|
1108
1253
|
continuationToken = result.nextLink;
|
|
1109
|
-
|
|
1254
|
+
let page = result.value || [];
|
|
1255
|
+
setContinuationToken(page, continuationToken);
|
|
1256
|
+
yield yield tslib.__await(page);
|
|
1110
1257
|
}
|
|
1111
1258
|
});
|
|
1112
1259
|
}
|
|
1113
1260
|
listBySubscriptionPagingAll(options) {
|
|
1114
1261
|
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingAll_1() {
|
|
1115
|
-
var e_2,
|
|
1262
|
+
var _a, e_2, _b, _c;
|
|
1116
1263
|
try {
|
|
1117
|
-
for (var
|
|
1118
|
-
|
|
1119
|
-
|
|
1264
|
+
for (var _d = true, _e = tslib.__asyncValues(this.listBySubscriptionPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
|
|
1265
|
+
_c = _f.value;
|
|
1266
|
+
_d = false;
|
|
1267
|
+
try {
|
|
1268
|
+
const page = _c;
|
|
1269
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
1270
|
+
}
|
|
1271
|
+
finally {
|
|
1272
|
+
_d = true;
|
|
1273
|
+
}
|
|
1120
1274
|
}
|
|
1121
1275
|
}
|
|
1122
1276
|
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
1123
1277
|
finally {
|
|
1124
1278
|
try {
|
|
1125
|
-
if (
|
|
1279
|
+
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
1126
1280
|
}
|
|
1127
1281
|
finally { if (e_2) throw e_2.error; }
|
|
1128
1282
|
}
|
|
@@ -1143,36 +1297,54 @@ class AppliancesImpl {
|
|
|
1143
1297
|
[Symbol.asyncIterator]() {
|
|
1144
1298
|
return this;
|
|
1145
1299
|
},
|
|
1146
|
-
byPage: () => {
|
|
1147
|
-
|
|
1300
|
+
byPage: (settings) => {
|
|
1301
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
1302
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
1303
|
+
}
|
|
1304
|
+
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
1148
1305
|
}
|
|
1149
1306
|
};
|
|
1150
1307
|
}
|
|
1151
|
-
listByResourceGroupPagingPage(resourceGroupName, options) {
|
|
1308
|
+
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
1152
1309
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
1153
|
-
let result
|
|
1154
|
-
|
|
1155
|
-
|
|
1310
|
+
let result;
|
|
1311
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
1312
|
+
if (!continuationToken) {
|
|
1313
|
+
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
1314
|
+
let page = result.value || [];
|
|
1315
|
+
continuationToken = result.nextLink;
|
|
1316
|
+
setContinuationToken(page, continuationToken);
|
|
1317
|
+
yield yield tslib.__await(page);
|
|
1318
|
+
}
|
|
1156
1319
|
while (continuationToken) {
|
|
1157
1320
|
result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
|
|
1158
1321
|
continuationToken = result.nextLink;
|
|
1159
|
-
|
|
1322
|
+
let page = result.value || [];
|
|
1323
|
+
setContinuationToken(page, continuationToken);
|
|
1324
|
+
yield yield tslib.__await(page);
|
|
1160
1325
|
}
|
|
1161
1326
|
});
|
|
1162
1327
|
}
|
|
1163
1328
|
listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
1164
1329
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
|
|
1165
|
-
var e_3,
|
|
1330
|
+
var _a, e_3, _b, _c;
|
|
1166
1331
|
try {
|
|
1167
|
-
for (var
|
|
1168
|
-
|
|
1169
|
-
|
|
1332
|
+
for (var _d = true, _e = tslib.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
|
|
1333
|
+
_c = _f.value;
|
|
1334
|
+
_d = false;
|
|
1335
|
+
try {
|
|
1336
|
+
const page = _c;
|
|
1337
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
1338
|
+
}
|
|
1339
|
+
finally {
|
|
1340
|
+
_d = true;
|
|
1341
|
+
}
|
|
1170
1342
|
}
|
|
1171
1343
|
}
|
|
1172
1344
|
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
|
1173
1345
|
finally {
|
|
1174
1346
|
try {
|
|
1175
|
-
if (
|
|
1347
|
+
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
1176
1348
|
}
|
|
1177
1349
|
finally { if (e_3) throw e_3.error; }
|
|
1178
1350
|
}
|
|
@@ -1193,6 +1365,13 @@ class AppliancesImpl {
|
|
|
1193
1365
|
_listBySubscription(options) {
|
|
1194
1366
|
return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec);
|
|
1195
1367
|
}
|
|
1368
|
+
/**
|
|
1369
|
+
* Gets the telemetry config.
|
|
1370
|
+
* @param options The options parameters.
|
|
1371
|
+
*/
|
|
1372
|
+
getTelemetryConfig(options) {
|
|
1373
|
+
return this.client.sendOperationRequest({ options }, getTelemetryConfigOperationSpec);
|
|
1374
|
+
}
|
|
1196
1375
|
/**
|
|
1197
1376
|
* Gets a list of Appliances in the specified subscription and resource group. The operation returns
|
|
1198
1377
|
* properties of each Appliance.
|
|
@@ -1223,7 +1402,7 @@ class AppliancesImpl {
|
|
|
1223
1402
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1224
1403
|
return this.client.sendOperationRequest(args, spec);
|
|
1225
1404
|
});
|
|
1226
|
-
const
|
|
1405
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1227
1406
|
var _a;
|
|
1228
1407
|
let currentRawResponse = undefined;
|
|
1229
1408
|
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
@@ -1242,11 +1421,15 @@ class AppliancesImpl {
|
|
|
1242
1421
|
}
|
|
1243
1422
|
};
|
|
1244
1423
|
});
|
|
1245
|
-
const lro =
|
|
1246
|
-
|
|
1247
|
-
|
|
1424
|
+
const lro = createLroSpec({
|
|
1425
|
+
sendOperationFn,
|
|
1426
|
+
args: { resourceGroupName, resourceName, parameters, options },
|
|
1427
|
+
spec: createOrUpdateOperationSpec
|
|
1428
|
+
});
|
|
1429
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
|
1430
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
1248
1431
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
1249
|
-
|
|
1432
|
+
resourceLocationConfig: "azure-async-operation"
|
|
1250
1433
|
});
|
|
1251
1434
|
yield poller.poll();
|
|
1252
1435
|
return poller;
|
|
@@ -1276,7 +1459,7 @@ class AppliancesImpl {
|
|
|
1276
1459
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1277
1460
|
return this.client.sendOperationRequest(args, spec);
|
|
1278
1461
|
});
|
|
1279
|
-
const
|
|
1462
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1280
1463
|
var _a;
|
|
1281
1464
|
let currentRawResponse = undefined;
|
|
1282
1465
|
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
@@ -1295,11 +1478,15 @@ class AppliancesImpl {
|
|
|
1295
1478
|
}
|
|
1296
1479
|
};
|
|
1297
1480
|
});
|
|
1298
|
-
const lro =
|
|
1299
|
-
|
|
1300
|
-
|
|
1481
|
+
const lro = createLroSpec({
|
|
1482
|
+
sendOperationFn,
|
|
1483
|
+
args: { resourceGroupName, resourceName, options },
|
|
1484
|
+
spec: deleteOperationSpec
|
|
1485
|
+
});
|
|
1486
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
|
1487
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
1301
1488
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
1302
|
-
|
|
1489
|
+
resourceLocationConfig: "azure-async-operation"
|
|
1303
1490
|
});
|
|
1304
1491
|
yield poller.poll();
|
|
1305
1492
|
return poller;
|
|
@@ -1328,22 +1515,22 @@ class AppliancesImpl {
|
|
|
1328
1515
|
return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, updateOperationSpec);
|
|
1329
1516
|
}
|
|
1330
1517
|
/**
|
|
1331
|
-
* Returns the cluster
|
|
1518
|
+
* Returns the cluster user credentials for the dedicated appliance.
|
|
1332
1519
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1333
1520
|
* @param resourceName Appliances name.
|
|
1334
1521
|
* @param options The options parameters.
|
|
1335
1522
|
*/
|
|
1336
|
-
|
|
1337
|
-
return this.client.sendOperationRequest({ resourceGroupName, resourceName, options },
|
|
1523
|
+
listClusterUserCredential(resourceGroupName, resourceName, options) {
|
|
1524
|
+
return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, listClusterUserCredentialOperationSpec);
|
|
1338
1525
|
}
|
|
1339
1526
|
/**
|
|
1340
|
-
* Returns the cluster
|
|
1527
|
+
* Returns the cluster customer credentials for the dedicated appliance.
|
|
1341
1528
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1342
1529
|
* @param resourceName Appliances name.
|
|
1343
1530
|
* @param options The options parameters.
|
|
1344
1531
|
*/
|
|
1345
|
-
|
|
1346
|
-
return this.client.sendOperationRequest({ resourceGroupName, resourceName, options },
|
|
1532
|
+
listKeys(resourceGroupName, resourceName, options) {
|
|
1533
|
+
return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, listKeysOperationSpec);
|
|
1347
1534
|
}
|
|
1348
1535
|
/**
|
|
1349
1536
|
* Gets the upgrade graph of an Appliance with a specified resource group and name and specific release
|
|
@@ -1416,6 +1603,22 @@ const listBySubscriptionOperationSpec = {
|
|
|
1416
1603
|
headerParameters: [accept],
|
|
1417
1604
|
serializer
|
|
1418
1605
|
};
|
|
1606
|
+
const getTelemetryConfigOperationSpec = {
|
|
1607
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.ResourceConnector/telemetryconfig",
|
|
1608
|
+
httpMethod: "GET",
|
|
1609
|
+
responses: {
|
|
1610
|
+
200: {
|
|
1611
|
+
bodyMapper: ApplianceGetTelemetryConfigResult
|
|
1612
|
+
},
|
|
1613
|
+
default: {
|
|
1614
|
+
bodyMapper: ErrorResponse
|
|
1615
|
+
}
|
|
1616
|
+
},
|
|
1617
|
+
queryParameters: [apiVersion],
|
|
1618
|
+
urlParameters: [$host, subscriptionId],
|
|
1619
|
+
headerParameters: [accept],
|
|
1620
|
+
serializer
|
|
1621
|
+
};
|
|
1419
1622
|
const listByResourceGroupOperationSpec = {
|
|
1420
1623
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ResourceConnector/appliances",
|
|
1421
1624
|
httpMethod: "GET",
|
|
@@ -1537,12 +1740,12 @@ const updateOperationSpec = {
|
|
|
1537
1740
|
mediaType: "json",
|
|
1538
1741
|
serializer
|
|
1539
1742
|
};
|
|
1540
|
-
const
|
|
1541
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ResourceConnector/appliances/{resourceName}/
|
|
1743
|
+
const listClusterUserCredentialOperationSpec = {
|
|
1744
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ResourceConnector/appliances/{resourceName}/listClusterUserCredential",
|
|
1542
1745
|
httpMethod: "POST",
|
|
1543
1746
|
responses: {
|
|
1544
1747
|
200: {
|
|
1545
|
-
bodyMapper:
|
|
1748
|
+
bodyMapper: ApplianceListCredentialResults
|
|
1546
1749
|
},
|
|
1547
1750
|
default: {
|
|
1548
1751
|
bodyMapper: ErrorResponse
|
|
@@ -1558,12 +1761,12 @@ const listClusterCustomerUserCredentialOperationSpec = {
|
|
|
1558
1761
|
headerParameters: [accept],
|
|
1559
1762
|
serializer
|
|
1560
1763
|
};
|
|
1561
|
-
const
|
|
1562
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ResourceConnector/appliances/{resourceName}/
|
|
1764
|
+
const listKeysOperationSpec = {
|
|
1765
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ResourceConnector/appliances/{resourceName}/listkeys",
|
|
1563
1766
|
httpMethod: "POST",
|
|
1564
1767
|
responses: {
|
|
1565
1768
|
200: {
|
|
1566
|
-
bodyMapper:
|
|
1769
|
+
bodyMapper: ApplianceListKeysResults
|
|
1567
1770
|
},
|
|
1568
1771
|
default: {
|
|
1569
1772
|
bodyMapper: ErrorResponse
|
|
@@ -1612,7 +1815,6 @@ const listOperationsNextOperationSpec = {
|
|
|
1612
1815
|
bodyMapper: ErrorResponse
|
|
1613
1816
|
}
|
|
1614
1817
|
},
|
|
1615
|
-
queryParameters: [apiVersion],
|
|
1616
1818
|
urlParameters: [$host, nextLink],
|
|
1617
1819
|
headerParameters: [accept],
|
|
1618
1820
|
serializer
|
|
@@ -1628,7 +1830,6 @@ const listBySubscriptionNextOperationSpec = {
|
|
|
1628
1830
|
bodyMapper: ErrorResponse
|
|
1629
1831
|
}
|
|
1630
1832
|
},
|
|
1631
|
-
queryParameters: [apiVersion],
|
|
1632
1833
|
urlParameters: [
|
|
1633
1834
|
$host,
|
|
1634
1835
|
subscriptionId,
|
|
@@ -1648,7 +1849,6 @@ const listByResourceGroupNextOperationSpec = {
|
|
|
1648
1849
|
bodyMapper: ErrorResponse
|
|
1649
1850
|
}
|
|
1650
1851
|
},
|
|
1651
|
-
queryParameters: [apiVersion],
|
|
1652
1852
|
urlParameters: [
|
|
1653
1853
|
$host,
|
|
1654
1854
|
subscriptionId,
|
|
@@ -1674,7 +1874,7 @@ class ResourceConnectorManagementClient extends coreClient__namespace.ServiceCli
|
|
|
1674
1874
|
* @param options The parameter options
|
|
1675
1875
|
*/
|
|
1676
1876
|
constructor(credentials, subscriptionId, options) {
|
|
1677
|
-
var _a, _b;
|
|
1877
|
+
var _a, _b, _c;
|
|
1678
1878
|
if (credentials === undefined) {
|
|
1679
1879
|
throw new Error("'credentials' cannot be null");
|
|
1680
1880
|
}
|
|
@@ -1689,35 +1889,40 @@ class ResourceConnectorManagementClient extends coreClient__namespace.ServiceCli
|
|
|
1689
1889
|
requestContentType: "application/json; charset=utf-8",
|
|
1690
1890
|
credential: credentials
|
|
1691
1891
|
};
|
|
1692
|
-
const packageDetails = `azsdk-js-arm-resourceconnector/1.0.0-beta.
|
|
1892
|
+
const packageDetails = `azsdk-js-arm-resourceconnector/1.0.0-beta.3`;
|
|
1693
1893
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
1694
1894
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
1695
1895
|
: `${packageDetails}`;
|
|
1696
1896
|
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
1697
1897
|
userAgentPrefix
|
|
1698
|
-
},
|
|
1898
|
+
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
|
|
1699
1899
|
super(optionsWithDefaults);
|
|
1900
|
+
let bearerTokenAuthenticationPolicyFound = false;
|
|
1700
1901
|
if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
|
|
1701
1902
|
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
1702
|
-
|
|
1903
|
+
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
1703
1904
|
coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1905
|
+
}
|
|
1906
|
+
if (!options ||
|
|
1907
|
+
!options.pipeline ||
|
|
1908
|
+
options.pipeline.getOrderedPolicies().length == 0 ||
|
|
1909
|
+
!bearerTokenAuthenticationPolicyFound) {
|
|
1910
|
+
this.pipeline.removePolicy({
|
|
1911
|
+
name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName
|
|
1912
|
+
});
|
|
1913
|
+
this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
|
|
1914
|
+
credential: credentials,
|
|
1915
|
+
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
|
|
1916
|
+
challengeCallbacks: {
|
|
1917
|
+
authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
|
|
1918
|
+
}
|
|
1919
|
+
}));
|
|
1715
1920
|
}
|
|
1716
1921
|
// Parameter assignments
|
|
1717
1922
|
this.subscriptionId = subscriptionId;
|
|
1718
1923
|
// Assigning values to Constant parameters
|
|
1719
1924
|
this.$host = options.$host || "https://management.azure.com";
|
|
1720
|
-
this.apiVersion = options.apiVersion || "2022-
|
|
1925
|
+
this.apiVersion = options.apiVersion || "2022-10-27";
|
|
1721
1926
|
this.appliances = new AppliancesImpl(this);
|
|
1722
1927
|
this.addCustomApiVersionPolicy(options.apiVersion);
|
|
1723
1928
|
}
|
|
@@ -1751,4 +1956,5 @@ class ResourceConnectorManagementClient extends coreClient__namespace.ServiceCli
|
|
|
1751
1956
|
}
|
|
1752
1957
|
|
|
1753
1958
|
exports.ResourceConnectorManagementClient = ResourceConnectorManagementClient;
|
|
1959
|
+
exports.getContinuationToken = getContinuationToken;
|
|
1754
1960
|
//# sourceMappingURL=index.js.map
|