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