@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/dist/index.js
CHANGED
|
@@ -114,6 +114,24 @@ exports.KnownStatus = void 0;
|
|
|
114
114
|
KnownStatus["UpgradePrerequisitesCompleted"] = "UpgradePrerequisitesCompleted";
|
|
115
115
|
/** PreUpgrade */
|
|
116
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";
|
|
117
135
|
/** UpdatingCloudOperator */
|
|
118
136
|
KnownStatus["UpdatingCloudOperator"] = "UpdatingCloudOperator";
|
|
119
137
|
/** WaitingForCloudOperator */
|
|
@@ -155,11 +173,23 @@ exports.KnownAccessProfileType = void 0;
|
|
|
155
173
|
/** ClusterCustomerUser */
|
|
156
174
|
KnownAccessProfileType["ClusterCustomerUser"] = "clusterCustomerUser";
|
|
157
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 = {}));
|
|
158
182
|
/** Known values of {@link SSHKeyType} that the service accepts. */
|
|
159
183
|
exports.KnownSSHKeyType = void 0;
|
|
160
184
|
(function (KnownSSHKeyType) {
|
|
161
185
|
/** SSHCustomerUser */
|
|
162
186
|
KnownSSHKeyType["SSHCustomerUser"] = "SSHCustomerUser";
|
|
187
|
+
/** ManagementCAKey */
|
|
188
|
+
KnownSSHKeyType["ManagementCAKey"] = "ManagementCAKey";
|
|
189
|
+
/** LogsKey */
|
|
190
|
+
KnownSSHKeyType["LogsKey"] = "LogsKey";
|
|
191
|
+
/** ScopedAccessKey */
|
|
192
|
+
KnownSSHKeyType["ScopedAccessKey"] = "ScopedAccessKey";
|
|
163
193
|
})(exports.KnownSSHKeyType || (exports.KnownSSHKeyType = {}));
|
|
164
194
|
|
|
165
195
|
/*
|
|
@@ -416,6 +446,42 @@ const AppliancePropertiesInfrastructureConfig = {
|
|
|
416
446
|
}
|
|
417
447
|
}
|
|
418
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
|
+
};
|
|
419
485
|
const SystemData = {
|
|
420
486
|
type: {
|
|
421
487
|
name: "Composite",
|
|
@@ -460,27 +526,13 @@ const SystemData = {
|
|
|
460
526
|
}
|
|
461
527
|
}
|
|
462
528
|
};
|
|
463
|
-
const
|
|
529
|
+
const ApplianceGetTelemetryConfigResult = {
|
|
464
530
|
type: {
|
|
465
531
|
name: "Composite",
|
|
466
|
-
className: "
|
|
532
|
+
className: "ApplianceGetTelemetryConfigResult",
|
|
467
533
|
modelProperties: {
|
|
468
|
-
|
|
469
|
-
serializedName: "
|
|
470
|
-
readOnly: true,
|
|
471
|
-
type: {
|
|
472
|
-
name: "String"
|
|
473
|
-
}
|
|
474
|
-
},
|
|
475
|
-
name: {
|
|
476
|
-
serializedName: "name",
|
|
477
|
-
readOnly: true,
|
|
478
|
-
type: {
|
|
479
|
-
name: "String"
|
|
480
|
-
}
|
|
481
|
-
},
|
|
482
|
-
type: {
|
|
483
|
-
serializedName: "type",
|
|
534
|
+
telemetryInstrumentationKey: {
|
|
535
|
+
serializedName: "telemetryInstrumentationKey",
|
|
484
536
|
readOnly: true,
|
|
485
537
|
type: {
|
|
486
538
|
name: "String"
|
|
@@ -504,11 +556,18 @@ const PatchableAppliance = {
|
|
|
504
556
|
}
|
|
505
557
|
}
|
|
506
558
|
};
|
|
507
|
-
const
|
|
559
|
+
const ApplianceListCredentialResults = {
|
|
508
560
|
type: {
|
|
509
561
|
name: "Composite",
|
|
510
|
-
className: "
|
|
562
|
+
className: "ApplianceListCredentialResults",
|
|
511
563
|
modelProperties: {
|
|
564
|
+
hybridConnectionConfig: {
|
|
565
|
+
serializedName: "hybridConnectionConfig",
|
|
566
|
+
type: {
|
|
567
|
+
name: "Composite",
|
|
568
|
+
className: "HybridConnectionConfig"
|
|
569
|
+
}
|
|
570
|
+
},
|
|
512
571
|
kubeconfigs: {
|
|
513
572
|
serializedName: "kubeconfigs",
|
|
514
573
|
readOnly: true,
|
|
@@ -521,32 +580,38 @@ const ApplianceListClusterCustomerUserCredentialResults = {
|
|
|
521
580
|
}
|
|
522
581
|
}
|
|
523
582
|
}
|
|
524
|
-
},
|
|
525
|
-
sshKeys: {
|
|
526
|
-
serializedName: "sshKeys",
|
|
527
|
-
readOnly: true,
|
|
528
|
-
type: {
|
|
529
|
-
name: "Dictionary",
|
|
530
|
-
value: { type: { name: "Composite", className: "SSHKey" } }
|
|
531
|
-
}
|
|
532
583
|
}
|
|
533
584
|
}
|
|
534
585
|
}
|
|
535
586
|
};
|
|
536
|
-
const
|
|
587
|
+
const HybridConnectionConfig = {
|
|
537
588
|
type: {
|
|
538
589
|
name: "Composite",
|
|
539
|
-
className: "
|
|
590
|
+
className: "HybridConnectionConfig",
|
|
540
591
|
modelProperties: {
|
|
541
|
-
|
|
542
|
-
serializedName: "
|
|
592
|
+
expirationTime: {
|
|
593
|
+
serializedName: "expirationTime",
|
|
594
|
+
readOnly: true,
|
|
595
|
+
type: {
|
|
596
|
+
name: "Number"
|
|
597
|
+
}
|
|
598
|
+
},
|
|
599
|
+
hybridConnectionName: {
|
|
600
|
+
serializedName: "hybridConnectionName",
|
|
543
601
|
readOnly: true,
|
|
544
602
|
type: {
|
|
545
603
|
name: "String"
|
|
546
604
|
}
|
|
547
605
|
},
|
|
548
|
-
|
|
549
|
-
serializedName: "
|
|
606
|
+
relay: {
|
|
607
|
+
serializedName: "relay",
|
|
608
|
+
readOnly: true,
|
|
609
|
+
type: {
|
|
610
|
+
name: "String"
|
|
611
|
+
}
|
|
612
|
+
},
|
|
613
|
+
token: {
|
|
614
|
+
serializedName: "token",
|
|
550
615
|
readOnly: true,
|
|
551
616
|
type: {
|
|
552
617
|
name: "String"
|
|
@@ -555,19 +620,21 @@ const ApplianceCredentialKubeconfig = {
|
|
|
555
620
|
}
|
|
556
621
|
}
|
|
557
622
|
};
|
|
558
|
-
const
|
|
623
|
+
const ApplianceCredentialKubeconfig = {
|
|
559
624
|
type: {
|
|
560
625
|
name: "Composite",
|
|
561
|
-
className: "
|
|
626
|
+
className: "ApplianceCredentialKubeconfig",
|
|
562
627
|
modelProperties: {
|
|
563
|
-
|
|
564
|
-
serializedName: "
|
|
628
|
+
name: {
|
|
629
|
+
serializedName: "name",
|
|
630
|
+
readOnly: true,
|
|
565
631
|
type: {
|
|
566
632
|
name: "String"
|
|
567
633
|
}
|
|
568
634
|
},
|
|
569
|
-
|
|
570
|
-
serializedName: "
|
|
635
|
+
value: {
|
|
636
|
+
serializedName: "value",
|
|
637
|
+
readOnly: true,
|
|
571
638
|
type: {
|
|
572
639
|
name: "String"
|
|
573
640
|
}
|
|
@@ -575,16 +642,17 @@ const SSHKey = {
|
|
|
575
642
|
}
|
|
576
643
|
}
|
|
577
644
|
};
|
|
578
|
-
const
|
|
645
|
+
const ApplianceListKeysResults = {
|
|
579
646
|
type: {
|
|
580
647
|
name: "Composite",
|
|
581
|
-
className: "
|
|
648
|
+
className: "ApplianceListKeysResults",
|
|
582
649
|
modelProperties: {
|
|
583
|
-
|
|
584
|
-
serializedName: "
|
|
650
|
+
artifactProfiles: {
|
|
651
|
+
serializedName: "artifactProfiles",
|
|
652
|
+
readOnly: true,
|
|
585
653
|
type: {
|
|
586
|
-
name: "
|
|
587
|
-
className: "
|
|
654
|
+
name: "Dictionary",
|
|
655
|
+
value: { type: { name: "Composite", className: "ArtifactProfile" } }
|
|
588
656
|
}
|
|
589
657
|
},
|
|
590
658
|
kubeconfigs: {
|
|
@@ -599,38 +667,68 @@ const ApplianceListCredentialResults = {
|
|
|
599
667
|
}
|
|
600
668
|
}
|
|
601
669
|
}
|
|
670
|
+
},
|
|
671
|
+
sshKeys: {
|
|
672
|
+
serializedName: "sshKeys",
|
|
673
|
+
readOnly: true,
|
|
674
|
+
type: {
|
|
675
|
+
name: "Dictionary",
|
|
676
|
+
value: { type: { name: "Composite", className: "SSHKey" } }
|
|
677
|
+
}
|
|
602
678
|
}
|
|
603
679
|
}
|
|
604
680
|
}
|
|
605
681
|
};
|
|
606
|
-
const
|
|
682
|
+
const ArtifactProfile = {
|
|
607
683
|
type: {
|
|
608
684
|
name: "Composite",
|
|
609
|
-
className: "
|
|
685
|
+
className: "ArtifactProfile",
|
|
610
686
|
modelProperties: {
|
|
611
|
-
|
|
612
|
-
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",
|
|
613
711
|
readOnly: true,
|
|
614
712
|
type: {
|
|
615
713
|
name: "Number"
|
|
616
714
|
}
|
|
617
715
|
},
|
|
618
|
-
|
|
619
|
-
serializedName: "
|
|
716
|
+
expirationTimeStamp: {
|
|
717
|
+
serializedName: "expirationTimeStamp",
|
|
620
718
|
readOnly: true,
|
|
621
719
|
type: {
|
|
622
|
-
name: "
|
|
720
|
+
name: "Number"
|
|
623
721
|
}
|
|
624
722
|
},
|
|
625
|
-
|
|
626
|
-
serializedName: "
|
|
723
|
+
privateKey: {
|
|
724
|
+
serializedName: "privateKey",
|
|
627
725
|
readOnly: true,
|
|
628
726
|
type: {
|
|
629
727
|
name: "String"
|
|
630
728
|
}
|
|
631
729
|
},
|
|
632
|
-
|
|
633
|
-
serializedName: "
|
|
730
|
+
publicKey: {
|
|
731
|
+
serializedName: "publicKey",
|
|
634
732
|
readOnly: true,
|
|
635
733
|
type: {
|
|
636
734
|
name: "String"
|
|
@@ -827,12 +925,6 @@ const Appliance = {
|
|
|
827
925
|
name: "Composite",
|
|
828
926
|
className: "Identity"
|
|
829
927
|
}
|
|
830
|
-
}, systemData: {
|
|
831
|
-
serializedName: "systemData",
|
|
832
|
-
type: {
|
|
833
|
-
name: "Composite",
|
|
834
|
-
className: "SystemData"
|
|
835
|
-
}
|
|
836
928
|
}, distro: {
|
|
837
929
|
defaultValue: "AKSEdge",
|
|
838
930
|
serializedName: "properties.distro",
|
|
@@ -881,14 +973,16 @@ var Mappers = /*#__PURE__*/Object.freeze({
|
|
|
881
973
|
ApplianceListResult: ApplianceListResult,
|
|
882
974
|
Identity: Identity,
|
|
883
975
|
AppliancePropertiesInfrastructureConfig: AppliancePropertiesInfrastructureConfig,
|
|
884
|
-
SystemData: SystemData,
|
|
885
976
|
Resource: Resource,
|
|
977
|
+
SystemData: SystemData,
|
|
978
|
+
ApplianceGetTelemetryConfigResult: ApplianceGetTelemetryConfigResult,
|
|
886
979
|
PatchableAppliance: PatchableAppliance,
|
|
887
|
-
ApplianceListClusterCustomerUserCredentialResults: ApplianceListClusterCustomerUserCredentialResults,
|
|
888
|
-
ApplianceCredentialKubeconfig: ApplianceCredentialKubeconfig,
|
|
889
|
-
SSHKey: SSHKey,
|
|
890
980
|
ApplianceListCredentialResults: ApplianceListCredentialResults,
|
|
891
981
|
HybridConnectionConfig: HybridConnectionConfig,
|
|
982
|
+
ApplianceCredentialKubeconfig: ApplianceCredentialKubeconfig,
|
|
983
|
+
ApplianceListKeysResults: ApplianceListKeysResults,
|
|
984
|
+
ArtifactProfile: ArtifactProfile,
|
|
985
|
+
SSHKey: SSHKey,
|
|
892
986
|
UpgradeGraph: UpgradeGraph,
|
|
893
987
|
UpgradeGraphProperties: UpgradeGraphProperties,
|
|
894
988
|
SupportedVersion: SupportedVersion,
|
|
@@ -931,7 +1025,7 @@ const $host = {
|
|
|
931
1025
|
const apiVersion = {
|
|
932
1026
|
parameterPath: "apiVersion",
|
|
933
1027
|
mapper: {
|
|
934
|
-
defaultValue: "2022-
|
|
1028
|
+
defaultValue: "2022-10-27",
|
|
935
1029
|
isConstant: true,
|
|
936
1030
|
serializedName: "api-version",
|
|
937
1031
|
type: {
|
|
@@ -1025,25 +1119,17 @@ const nextLink = {
|
|
|
1025
1119
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1026
1120
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1027
1121
|
*/
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
});
|
|
1040
|
-
}
|
|
1041
|
-
sendPollRequest(path) {
|
|
1042
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1043
|
-
const _a = this.spec, restSpec = tslib.__rest(_a, ["requestBody"]);
|
|
1044
|
-
return this.sendOperationFn(this.args, Object.assign(Object.assign({}, restSpec), { path, httpMethod: "GET" }));
|
|
1045
|
-
});
|
|
1046
|
-
}
|
|
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
|
+
};
|
|
1047
1133
|
}
|
|
1048
1134
|
|
|
1049
1135
|
/*
|
|
@@ -1106,17 +1192,24 @@ class AppliancesImpl {
|
|
|
1106
1192
|
}
|
|
1107
1193
|
listOperationsPagingAll(options) {
|
|
1108
1194
|
return tslib.__asyncGenerator(this, arguments, function* listOperationsPagingAll_1() {
|
|
1109
|
-
var e_1,
|
|
1195
|
+
var _a, e_1, _b, _c;
|
|
1110
1196
|
try {
|
|
1111
|
-
for (var
|
|
1112
|
-
|
|
1113
|
-
|
|
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
|
+
}
|
|
1114
1207
|
}
|
|
1115
1208
|
}
|
|
1116
1209
|
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
1117
1210
|
finally {
|
|
1118
1211
|
try {
|
|
1119
|
-
if (
|
|
1212
|
+
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
1120
1213
|
}
|
|
1121
1214
|
finally { if (e_1) throw e_1.error; }
|
|
1122
1215
|
}
|
|
@@ -1166,17 +1259,24 @@ class AppliancesImpl {
|
|
|
1166
1259
|
}
|
|
1167
1260
|
listBySubscriptionPagingAll(options) {
|
|
1168
1261
|
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingAll_1() {
|
|
1169
|
-
var e_2,
|
|
1262
|
+
var _a, e_2, _b, _c;
|
|
1170
1263
|
try {
|
|
1171
|
-
for (var
|
|
1172
|
-
|
|
1173
|
-
|
|
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
|
+
}
|
|
1174
1274
|
}
|
|
1175
1275
|
}
|
|
1176
1276
|
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
1177
1277
|
finally {
|
|
1178
1278
|
try {
|
|
1179
|
-
if (
|
|
1279
|
+
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
1180
1280
|
}
|
|
1181
1281
|
finally { if (e_2) throw e_2.error; }
|
|
1182
1282
|
}
|
|
@@ -1227,17 +1327,24 @@ class AppliancesImpl {
|
|
|
1227
1327
|
}
|
|
1228
1328
|
listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
1229
1329
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
|
|
1230
|
-
var e_3,
|
|
1330
|
+
var _a, e_3, _b, _c;
|
|
1231
1331
|
try {
|
|
1232
|
-
for (var
|
|
1233
|
-
|
|
1234
|
-
|
|
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
|
+
}
|
|
1235
1342
|
}
|
|
1236
1343
|
}
|
|
1237
1344
|
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
|
1238
1345
|
finally {
|
|
1239
1346
|
try {
|
|
1240
|
-
if (
|
|
1347
|
+
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
1241
1348
|
}
|
|
1242
1349
|
finally { if (e_3) throw e_3.error; }
|
|
1243
1350
|
}
|
|
@@ -1258,6 +1365,13 @@ class AppliancesImpl {
|
|
|
1258
1365
|
_listBySubscription(options) {
|
|
1259
1366
|
return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec);
|
|
1260
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
|
+
}
|
|
1261
1375
|
/**
|
|
1262
1376
|
* Gets a list of Appliances in the specified subscription and resource group. The operation returns
|
|
1263
1377
|
* properties of each Appliance.
|
|
@@ -1288,7 +1402,7 @@ class AppliancesImpl {
|
|
|
1288
1402
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1289
1403
|
return this.client.sendOperationRequest(args, spec);
|
|
1290
1404
|
});
|
|
1291
|
-
const
|
|
1405
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1292
1406
|
var _a;
|
|
1293
1407
|
let currentRawResponse = undefined;
|
|
1294
1408
|
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
@@ -1307,11 +1421,15 @@ class AppliancesImpl {
|
|
|
1307
1421
|
}
|
|
1308
1422
|
};
|
|
1309
1423
|
});
|
|
1310
|
-
const lro =
|
|
1311
|
-
|
|
1312
|
-
|
|
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,
|
|
1313
1431
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
1314
|
-
|
|
1432
|
+
resourceLocationConfig: "azure-async-operation"
|
|
1315
1433
|
});
|
|
1316
1434
|
yield poller.poll();
|
|
1317
1435
|
return poller;
|
|
@@ -1341,7 +1459,7 @@ class AppliancesImpl {
|
|
|
1341
1459
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1342
1460
|
return this.client.sendOperationRequest(args, spec);
|
|
1343
1461
|
});
|
|
1344
|
-
const
|
|
1462
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1345
1463
|
var _a;
|
|
1346
1464
|
let currentRawResponse = undefined;
|
|
1347
1465
|
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
@@ -1360,11 +1478,15 @@ class AppliancesImpl {
|
|
|
1360
1478
|
}
|
|
1361
1479
|
};
|
|
1362
1480
|
});
|
|
1363
|
-
const lro =
|
|
1364
|
-
|
|
1365
|
-
|
|
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,
|
|
1366
1488
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
1367
|
-
|
|
1489
|
+
resourceLocationConfig: "azure-async-operation"
|
|
1368
1490
|
});
|
|
1369
1491
|
yield poller.poll();
|
|
1370
1492
|
return poller;
|
|
@@ -1393,22 +1515,22 @@ class AppliancesImpl {
|
|
|
1393
1515
|
return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, updateOperationSpec);
|
|
1394
1516
|
}
|
|
1395
1517
|
/**
|
|
1396
|
-
* Returns the cluster
|
|
1518
|
+
* Returns the cluster user credentials for the dedicated appliance.
|
|
1397
1519
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1398
1520
|
* @param resourceName Appliances name.
|
|
1399
1521
|
* @param options The options parameters.
|
|
1400
1522
|
*/
|
|
1401
|
-
|
|
1402
|
-
return this.client.sendOperationRequest({ resourceGroupName, resourceName, options },
|
|
1523
|
+
listClusterUserCredential(resourceGroupName, resourceName, options) {
|
|
1524
|
+
return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, listClusterUserCredentialOperationSpec);
|
|
1403
1525
|
}
|
|
1404
1526
|
/**
|
|
1405
|
-
* Returns the cluster
|
|
1527
|
+
* Returns the cluster customer credentials for the dedicated appliance.
|
|
1406
1528
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1407
1529
|
* @param resourceName Appliances name.
|
|
1408
1530
|
* @param options The options parameters.
|
|
1409
1531
|
*/
|
|
1410
|
-
|
|
1411
|
-
return this.client.sendOperationRequest({ resourceGroupName, resourceName, options },
|
|
1532
|
+
listKeys(resourceGroupName, resourceName, options) {
|
|
1533
|
+
return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, listKeysOperationSpec);
|
|
1412
1534
|
}
|
|
1413
1535
|
/**
|
|
1414
1536
|
* Gets the upgrade graph of an Appliance with a specified resource group and name and specific release
|
|
@@ -1481,6 +1603,22 @@ const listBySubscriptionOperationSpec = {
|
|
|
1481
1603
|
headerParameters: [accept],
|
|
1482
1604
|
serializer
|
|
1483
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
|
+
};
|
|
1484
1622
|
const listByResourceGroupOperationSpec = {
|
|
1485
1623
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ResourceConnector/appliances",
|
|
1486
1624
|
httpMethod: "GET",
|
|
@@ -1602,12 +1740,12 @@ const updateOperationSpec = {
|
|
|
1602
1740
|
mediaType: "json",
|
|
1603
1741
|
serializer
|
|
1604
1742
|
};
|
|
1605
|
-
const
|
|
1606
|
-
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",
|
|
1607
1745
|
httpMethod: "POST",
|
|
1608
1746
|
responses: {
|
|
1609
1747
|
200: {
|
|
1610
|
-
bodyMapper:
|
|
1748
|
+
bodyMapper: ApplianceListCredentialResults
|
|
1611
1749
|
},
|
|
1612
1750
|
default: {
|
|
1613
1751
|
bodyMapper: ErrorResponse
|
|
@@ -1623,12 +1761,12 @@ const listClusterCustomerUserCredentialOperationSpec = {
|
|
|
1623
1761
|
headerParameters: [accept],
|
|
1624
1762
|
serializer
|
|
1625
1763
|
};
|
|
1626
|
-
const
|
|
1627
|
-
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",
|
|
1628
1766
|
httpMethod: "POST",
|
|
1629
1767
|
responses: {
|
|
1630
1768
|
200: {
|
|
1631
|
-
bodyMapper:
|
|
1769
|
+
bodyMapper: ApplianceListKeysResults
|
|
1632
1770
|
},
|
|
1633
1771
|
default: {
|
|
1634
1772
|
bodyMapper: ErrorResponse
|
|
@@ -1751,7 +1889,7 @@ class ResourceConnectorManagementClient extends coreClient__namespace.ServiceCli
|
|
|
1751
1889
|
requestContentType: "application/json; charset=utf-8",
|
|
1752
1890
|
credential: credentials
|
|
1753
1891
|
};
|
|
1754
|
-
const packageDetails = `azsdk-js-arm-resourceconnector/1.0.0-beta.
|
|
1892
|
+
const packageDetails = `azsdk-js-arm-resourceconnector/1.0.0-beta.3`;
|
|
1755
1893
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
1756
1894
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
1757
1895
|
: `${packageDetails}`;
|
|
@@ -1784,7 +1922,7 @@ class ResourceConnectorManagementClient extends coreClient__namespace.ServiceCli
|
|
|
1784
1922
|
this.subscriptionId = subscriptionId;
|
|
1785
1923
|
// Assigning values to Constant parameters
|
|
1786
1924
|
this.$host = options.$host || "https://management.azure.com";
|
|
1787
|
-
this.apiVersion = options.apiVersion || "2022-
|
|
1925
|
+
this.apiVersion = options.apiVersion || "2022-10-27";
|
|
1788
1926
|
this.appliances = new AppliancesImpl(this);
|
|
1789
1927
|
this.addCustomApiVersionPolicy(options.apiVersion);
|
|
1790
1928
|
}
|