@azure/arm-resourceconnector 1.0.0-alpha.20230321.1 → 1.0.0-alpha.20230417.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. package/CHANGELOG.md +2 -22
  2. package/README.md +1 -1
  3. package/dist/index.js +228 -111
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.min.js +1 -1
  6. package/dist/index.min.js.map +1 -1
  7. package/dist-esm/samples-dev/appliancesCreateOrUpdateSample.js +1 -1
  8. package/dist-esm/samples-dev/appliancesDeleteSample.js +1 -1
  9. package/dist-esm/samples-dev/appliancesGetSample.js +1 -1
  10. package/dist-esm/samples-dev/appliancesGetTelemetryConfigSample.d.ts +2 -0
  11. package/dist-esm/samples-dev/appliancesGetTelemetryConfigSample.d.ts.map +1 -0
  12. package/dist-esm/samples-dev/appliancesGetTelemetryConfigSample.js +37 -0
  13. package/dist-esm/samples-dev/appliancesGetTelemetryConfigSample.js.map +1 -0
  14. package/dist-esm/samples-dev/appliancesGetUpgradeGraphSample.js +1 -1
  15. package/dist-esm/samples-dev/appliancesListByResourceGroupSample.js +1 -1
  16. package/dist-esm/samples-dev/appliancesListBySubscriptionSample.js +1 -1
  17. package/dist-esm/samples-dev/appliancesListClusterUserCredentialSample.js +1 -1
  18. package/dist-esm/samples-dev/appliancesListKeysSample.d.ts +2 -0
  19. package/dist-esm/samples-dev/appliancesListKeysSample.d.ts.map +1 -0
  20. package/dist-esm/samples-dev/{appliancesListClusterCustomerUserCredentialSample.js → appliancesListKeysSample.js} +7 -7
  21. package/dist-esm/samples-dev/appliancesListKeysSample.js.map +1 -0
  22. package/dist-esm/samples-dev/appliancesListOperationsSample.js +1 -1
  23. package/dist-esm/samples-dev/appliancesUpdateSample.js +1 -1
  24. package/dist-esm/src/lroImpl.d.ts +6 -11
  25. package/dist-esm/src/lroImpl.d.ts.map +1 -1
  26. package/dist-esm/src/lroImpl.js +12 -20
  27. package/dist-esm/src/lroImpl.js.map +1 -1
  28. package/dist-esm/src/models/index.d.ts +152 -54
  29. package/dist-esm/src/models/index.d.ts.map +1 -1
  30. package/dist-esm/src/models/index.js +30 -0
  31. package/dist-esm/src/models/index.js.map +1 -1
  32. package/dist-esm/src/models/mappers.d.ts +6 -4
  33. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  34. package/dist-esm/src/models/mappers.js +125 -63
  35. package/dist-esm/src/models/mappers.js.map +1 -1
  36. package/dist-esm/src/models/parameters.js +1 -1
  37. package/dist-esm/src/models/parameters.js.map +1 -1
  38. package/dist-esm/src/operations/appliances.d.ts +13 -8
  39. package/dist-esm/src/operations/appliances.d.ts.map +1 -1
  40. package/dist-esm/src/operations/appliances.js +55 -24
  41. package/dist-esm/src/operations/appliances.js.map +1 -1
  42. package/dist-esm/src/operationsInterfaces/appliances.d.ts +13 -8
  43. package/dist-esm/src/operationsInterfaces/appliances.d.ts.map +1 -1
  44. package/dist-esm/src/resourceConnectorManagementClient.js +2 -2
  45. package/dist-esm/src/resourceConnectorManagementClient.js.map +1 -1
  46. package/package.json +5 -5
  47. package/review/arm-resourceconnector.api.md +62 -18
  48. package/src/lroImpl.ts +31 -23
  49. package/src/models/index.ts +156 -54
  50. package/src/models/mappers.ts +127 -64
  51. package/src/models/parameters.ts +1 -1
  52. package/src/operations/appliances.ts +80 -41
  53. package/src/operationsInterfaces/appliances.ts +23 -14
  54. package/src/resourceConnectorManagementClient.ts +2 -2
  55. package/types/arm-resourceconnector.d.ts +146 -37
  56. package/dist-esm/samples-dev/appliancesListClusterCustomerUserCredentialSample.d.ts +0 -2
  57. package/dist-esm/samples-dev/appliancesListClusterCustomerUserCredentialSample.d.ts.map +0 -1
  58. package/dist-esm/samples-dev/appliancesListClusterCustomerUserCredentialSample.js.map +0 -1
package/CHANGELOG.md CHANGED
@@ -1,25 +1,5 @@
1
1
  # Release History
2
-
3
- ## 1.0.0-beta.3 (Unreleased)
4
-
5
- ### Features Added
6
-
7
- ### Breaking Changes
8
-
9
- ### Bugs Fixed
10
-
11
- ### Other Changes
12
-
13
- ## 1.0.0-beta.2 (2023-02-01)
14
-
15
- **Features**
16
-
17
- - Exposes `getContinuationToken` helper function to extract continuation token
18
-
19
- **Bugs Fixed**
20
-
21
- - A series of small bug fixs relevant to authentication and apiVersion policy
22
-
23
- ## 1.0.0-beta.1 (2022-06-28)
2
+
3
+ ## 1.0.0 (2023-04-03)
24
4
 
25
5
  The package of @azure/arm-resourceconnector is using our next generation design principles. To learn more, please refer to our documentation [Quick Start](https://aka.ms/js-track2-quickstart).
package/README.md CHANGED
@@ -6,7 +6,7 @@ The appliances Rest API spec.
6
6
 
7
7
  [Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/resourceconnector/arm-resourceconnector) |
8
8
  [Package (NPM)](https://www.npmjs.com/package/@azure/arm-resourceconnector) |
9
- [API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-resourceconnector?view=azure-node-preview) |
9
+ [API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-resourceconnector) |
10
10
  [Samples](https://github.com/Azure-Samples/azure-samples-js-management)
11
11
 
12
12
  ## Getting started
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 Resource = {
529
+ const ApplianceGetTelemetryConfigResult = {
464
530
  type: {
465
531
  name: "Composite",
466
- className: "Resource",
532
+ className: "ApplianceGetTelemetryConfigResult",
467
533
  modelProperties: {
468
- id: {
469
- serializedName: "id",
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 ApplianceListClusterCustomerUserCredentialResults = {
559
+ const ApplianceListCredentialResults = {
508
560
  type: {
509
561
  name: "Composite",
510
- className: "ApplianceListClusterCustomerUserCredentialResults",
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 ApplianceCredentialKubeconfig = {
587
+ const HybridConnectionConfig = {
537
588
  type: {
538
589
  name: "Composite",
539
- className: "ApplianceCredentialKubeconfig",
590
+ className: "HybridConnectionConfig",
540
591
  modelProperties: {
541
- name: {
542
- serializedName: "name",
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
- value: {
549
- serializedName: "value",
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 SSHKey = {
623
+ const ApplianceCredentialKubeconfig = {
559
624
  type: {
560
625
  name: "Composite",
561
- className: "SSHKey",
626
+ className: "ApplianceCredentialKubeconfig",
562
627
  modelProperties: {
563
- privateKey: {
564
- serializedName: "privateKey",
628
+ name: {
629
+ serializedName: "name",
630
+ readOnly: true,
565
631
  type: {
566
632
  name: "String"
567
633
  }
568
634
  },
569
- publicKey: {
570
- serializedName: "publicKey",
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 ApplianceListCredentialResults = {
645
+ const ApplianceListKeysResults = {
579
646
  type: {
580
647
  name: "Composite",
581
- className: "ApplianceListCredentialResults",
648
+ className: "ApplianceListKeysResults",
582
649
  modelProperties: {
583
- hybridConnectionConfig: {
584
- serializedName: "hybridConnectionConfig",
650
+ artifactProfiles: {
651
+ serializedName: "artifactProfiles",
652
+ readOnly: true,
585
653
  type: {
586
- name: "Composite",
587
- className: "HybridConnectionConfig"
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 HybridConnectionConfig = {
682
+ const ArtifactProfile = {
607
683
  type: {
608
684
  name: "Composite",
609
- className: "HybridConnectionConfig",
685
+ className: "ArtifactProfile",
610
686
  modelProperties: {
611
- expirationTime: {
612
- serializedName: "expirationTime",
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
- hybridConnectionName: {
619
- serializedName: "hybridConnectionName",
716
+ expirationTimeStamp: {
717
+ serializedName: "expirationTimeStamp",
620
718
  readOnly: true,
621
719
  type: {
622
- name: "String"
720
+ name: "Number"
623
721
  }
624
722
  },
625
- relay: {
626
- serializedName: "relay",
723
+ privateKey: {
724
+ serializedName: "privateKey",
627
725
  readOnly: true,
628
726
  type: {
629
727
  name: "String"
630
728
  }
631
729
  },
632
- token: {
633
- serializedName: "token",
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-04-15-preview",
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
- class LroImpl {
1029
- constructor(sendOperationFn, args, spec, requestPath = spec.path, requestMethod = spec.httpMethod) {
1030
- this.sendOperationFn = sendOperationFn;
1031
- this.args = args;
1032
- this.spec = spec;
1033
- this.requestPath = requestPath;
1034
- this.requestMethod = requestMethod;
1035
- }
1036
- sendInitialRequest() {
1037
- return tslib.__awaiter(this, void 0, void 0, function* () {
1038
- return this.sendOperationFn(this.args, this.spec);
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
  /*
@@ -1258,6 +1344,13 @@ class AppliancesImpl {
1258
1344
  _listBySubscription(options) {
1259
1345
  return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec);
1260
1346
  }
1347
+ /**
1348
+ * Gets the telemetry config.
1349
+ * @param options The options parameters.
1350
+ */
1351
+ getTelemetryConfig(options) {
1352
+ return this.client.sendOperationRequest({ options }, getTelemetryConfigOperationSpec);
1353
+ }
1261
1354
  /**
1262
1355
  * Gets a list of Appliances in the specified subscription and resource group. The operation returns
1263
1356
  * properties of each Appliance.
@@ -1288,7 +1381,7 @@ class AppliancesImpl {
1288
1381
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1289
1382
  return this.client.sendOperationRequest(args, spec);
1290
1383
  });
1291
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1384
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1292
1385
  var _a;
1293
1386
  let currentRawResponse = undefined;
1294
1387
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -1307,11 +1400,15 @@ class AppliancesImpl {
1307
1400
  }
1308
1401
  };
1309
1402
  });
1310
- const lro = new LroImpl(sendOperation, { resourceGroupName, resourceName, parameters, options }, createOrUpdateOperationSpec);
1311
- const poller = new coreLro.LroEngine(lro, {
1312
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1403
+ const lro = createLroSpec({
1404
+ sendOperationFn,
1405
+ args: { resourceGroupName, resourceName, parameters, options },
1406
+ spec: createOrUpdateOperationSpec
1407
+ });
1408
+ const poller = yield coreLro.createHttpPoller(lro, {
1409
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1313
1410
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
1314
- lroResourceLocationConfig: "azure-async-operation"
1411
+ resourceLocationConfig: "azure-async-operation"
1315
1412
  });
1316
1413
  yield poller.poll();
1317
1414
  return poller;
@@ -1341,7 +1438,7 @@ class AppliancesImpl {
1341
1438
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1342
1439
  return this.client.sendOperationRequest(args, spec);
1343
1440
  });
1344
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1441
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1345
1442
  var _a;
1346
1443
  let currentRawResponse = undefined;
1347
1444
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -1360,11 +1457,15 @@ class AppliancesImpl {
1360
1457
  }
1361
1458
  };
1362
1459
  });
1363
- const lro = new LroImpl(sendOperation, { resourceGroupName, resourceName, options }, deleteOperationSpec);
1364
- const poller = new coreLro.LroEngine(lro, {
1365
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1460
+ const lro = createLroSpec({
1461
+ sendOperationFn,
1462
+ args: { resourceGroupName, resourceName, options },
1463
+ spec: deleteOperationSpec
1464
+ });
1465
+ const poller = yield coreLro.createHttpPoller(lro, {
1466
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1366
1467
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
1367
- lroResourceLocationConfig: "azure-async-operation"
1468
+ resourceLocationConfig: "azure-async-operation"
1368
1469
  });
1369
1470
  yield poller.poll();
1370
1471
  return poller;
@@ -1393,22 +1494,22 @@ class AppliancesImpl {
1393
1494
  return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, updateOperationSpec);
1394
1495
  }
1395
1496
  /**
1396
- * Returns the cluster customer user credentials for the dedicated appliance.
1497
+ * Returns the cluster user credentials for the dedicated appliance.
1397
1498
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
1398
1499
  * @param resourceName Appliances name.
1399
1500
  * @param options The options parameters.
1400
1501
  */
1401
- listClusterCustomerUserCredential(resourceGroupName, resourceName, options) {
1402
- return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, listClusterCustomerUserCredentialOperationSpec);
1502
+ listClusterUserCredential(resourceGroupName, resourceName, options) {
1503
+ return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, listClusterUserCredentialOperationSpec);
1403
1504
  }
1404
1505
  /**
1405
- * Returns the cluster user credentials for the dedicated appliance.
1506
+ * Returns the cluster customer credentials for the dedicated appliance.
1406
1507
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
1407
1508
  * @param resourceName Appliances name.
1408
1509
  * @param options The options parameters.
1409
1510
  */
1410
- listClusterUserCredential(resourceGroupName, resourceName, options) {
1411
- return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, listClusterUserCredentialOperationSpec);
1511
+ listKeys(resourceGroupName, resourceName, options) {
1512
+ return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, listKeysOperationSpec);
1412
1513
  }
1413
1514
  /**
1414
1515
  * Gets the upgrade graph of an Appliance with a specified resource group and name and specific release
@@ -1481,6 +1582,22 @@ const listBySubscriptionOperationSpec = {
1481
1582
  headerParameters: [accept],
1482
1583
  serializer
1483
1584
  };
1585
+ const getTelemetryConfigOperationSpec = {
1586
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.ResourceConnector/telemetryconfig",
1587
+ httpMethod: "GET",
1588
+ responses: {
1589
+ 200: {
1590
+ bodyMapper: ApplianceGetTelemetryConfigResult
1591
+ },
1592
+ default: {
1593
+ bodyMapper: ErrorResponse
1594
+ }
1595
+ },
1596
+ queryParameters: [apiVersion],
1597
+ urlParameters: [$host, subscriptionId],
1598
+ headerParameters: [accept],
1599
+ serializer
1600
+ };
1484
1601
  const listByResourceGroupOperationSpec = {
1485
1602
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ResourceConnector/appliances",
1486
1603
  httpMethod: "GET",
@@ -1602,12 +1719,12 @@ const updateOperationSpec = {
1602
1719
  mediaType: "json",
1603
1720
  serializer
1604
1721
  };
1605
- const listClusterCustomerUserCredentialOperationSpec = {
1606
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ResourceConnector/appliances/{resourceName}/listClusterCustomerUserCredential",
1722
+ const listClusterUserCredentialOperationSpec = {
1723
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ResourceConnector/appliances/{resourceName}/listClusterUserCredential",
1607
1724
  httpMethod: "POST",
1608
1725
  responses: {
1609
1726
  200: {
1610
- bodyMapper: ApplianceListClusterCustomerUserCredentialResults
1727
+ bodyMapper: ApplianceListCredentialResults
1611
1728
  },
1612
1729
  default: {
1613
1730
  bodyMapper: ErrorResponse
@@ -1623,12 +1740,12 @@ const listClusterCustomerUserCredentialOperationSpec = {
1623
1740
  headerParameters: [accept],
1624
1741
  serializer
1625
1742
  };
1626
- const listClusterUserCredentialOperationSpec = {
1627
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ResourceConnector/appliances/{resourceName}/listClusterUserCredential",
1743
+ const listKeysOperationSpec = {
1744
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ResourceConnector/appliances/{resourceName}/listkeys",
1628
1745
  httpMethod: "POST",
1629
1746
  responses: {
1630
1747
  200: {
1631
- bodyMapper: ApplianceListCredentialResults
1748
+ bodyMapper: ApplianceListKeysResults
1632
1749
  },
1633
1750
  default: {
1634
1751
  bodyMapper: ErrorResponse
@@ -1751,7 +1868,7 @@ class ResourceConnectorManagementClient extends coreClient__namespace.ServiceCli
1751
1868
  requestContentType: "application/json; charset=utf-8",
1752
1869
  credential: credentials
1753
1870
  };
1754
- const packageDetails = `azsdk-js-arm-resourceconnector/1.0.0-beta.3`;
1871
+ const packageDetails = `azsdk-js-arm-resourceconnector/1.0.0`;
1755
1872
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
1756
1873
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
1757
1874
  : `${packageDetails}`;
@@ -1784,7 +1901,7 @@ class ResourceConnectorManagementClient extends coreClient__namespace.ServiceCli
1784
1901
  this.subscriptionId = subscriptionId;
1785
1902
  // Assigning values to Constant parameters
1786
1903
  this.$host = options.$host || "https://management.azure.com";
1787
- this.apiVersion = options.apiVersion || "2022-04-15-preview";
1904
+ this.apiVersion = options.apiVersion || "2022-10-27";
1788
1905
  this.appliances = new AppliancesImpl(this);
1789
1906
  this.addCustomApiVersionPolicy(options.apiVersion);
1790
1907
  }