@azure/arm-deviceprovisioningservices 5.1.1-alpha.20230616.1 → 6.0.0-beta.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 (75) hide show
  1. package/CHANGELOG.md +16 -8
  2. package/README.md +1 -1
  3. package/dist/index.js +182 -72
  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/dpsCertificateCreateOrUpdateSample.js +2 -4
  8. package/dist-esm/samples-dev/dpsCertificateCreateOrUpdateSample.js.map +1 -1
  9. package/dist-esm/samples-dev/dpsCertificateDeleteSample.js +1 -1
  10. package/dist-esm/samples-dev/dpsCertificateGenerateVerificationCodeSample.js +1 -1
  11. package/dist-esm/samples-dev/dpsCertificateGetSample.js +1 -1
  12. package/dist-esm/samples-dev/dpsCertificateListSample.js +1 -1
  13. package/dist-esm/samples-dev/dpsCertificateVerifyCertificateSample.js +1 -1
  14. package/dist-esm/samples-dev/iotDpsResourceCheckProvisioningServiceNameAvailabilitySample.js +1 -1
  15. package/dist-esm/samples-dev/iotDpsResourceCreateOrUpdatePrivateEndpointConnectionSample.js +1 -1
  16. package/dist-esm/samples-dev/iotDpsResourceCreateOrUpdateSample.js +33 -1
  17. package/dist-esm/samples-dev/iotDpsResourceCreateOrUpdateSample.js.map +1 -1
  18. package/dist-esm/samples-dev/iotDpsResourceDeletePrivateEndpointConnectionSample.js +1 -1
  19. package/dist-esm/samples-dev/iotDpsResourceDeleteSample.js +3 -3
  20. package/dist-esm/samples-dev/iotDpsResourceDeleteSample.js.map +1 -1
  21. package/dist-esm/samples-dev/iotDpsResourceGetOperationResultSample.js +1 -1
  22. package/dist-esm/samples-dev/iotDpsResourceGetPrivateEndpointConnectionSample.js +1 -1
  23. package/dist-esm/samples-dev/iotDpsResourceGetPrivateLinkResourcesSample.js +1 -1
  24. package/dist-esm/samples-dev/iotDpsResourceGetSample.js +3 -3
  25. package/dist-esm/samples-dev/iotDpsResourceGetSample.js.map +1 -1
  26. package/dist-esm/samples-dev/iotDpsResourceListByResourceGroupSample.js +1 -1
  27. package/dist-esm/samples-dev/iotDpsResourceListBySubscriptionSample.js +1 -1
  28. package/dist-esm/samples-dev/iotDpsResourceListKeysForKeyNameSample.js +1 -1
  29. package/dist-esm/samples-dev/iotDpsResourceListKeysSample.js +1 -1
  30. package/dist-esm/samples-dev/iotDpsResourceListPrivateEndpointConnectionsSample.js +1 -1
  31. package/dist-esm/samples-dev/iotDpsResourceListPrivateLinkResourcesSample.js +1 -1
  32. package/dist-esm/samples-dev/iotDpsResourceListValidSkusSample.js +1 -1
  33. package/dist-esm/samples-dev/iotDpsResourceUpdateSample.js +1 -1
  34. package/dist-esm/samples-dev/operationsListSample.js +1 -1
  35. package/dist-esm/src/iotDpsClient.js +2 -2
  36. package/dist-esm/src/iotDpsClient.js.map +1 -1
  37. package/dist-esm/src/lroImpl.d.ts +6 -11
  38. package/dist-esm/src/lroImpl.d.ts.map +1 -1
  39. package/dist-esm/src/lroImpl.js +12 -20
  40. package/dist-esm/src/lroImpl.js.map +1 -1
  41. package/dist-esm/src/models/index.d.ts +63 -1
  42. package/dist-esm/src/models/index.d.ts.map +1 -1
  43. package/dist-esm/src/models/index.js +12 -0
  44. package/dist-esm/src/models/index.js.map +1 -1
  45. package/dist-esm/src/models/mappers.d.ts +2 -0
  46. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  47. package/dist-esm/src/models/mappers.js +85 -1
  48. package/dist-esm/src/models/mappers.js.map +1 -1
  49. package/dist-esm/src/models/parameters.js +1 -1
  50. package/dist-esm/src/models/parameters.js.map +1 -1
  51. package/dist-esm/src/operations/iotDpsResource.d.ts +11 -11
  52. package/dist-esm/src/operations/iotDpsResource.d.ts.map +1 -1
  53. package/dist-esm/src/operations/iotDpsResource.js +71 -51
  54. package/dist-esm/src/operations/iotDpsResource.js.map +1 -1
  55. package/dist-esm/src/operationsInterfaces/iotDpsResource.d.ts +11 -11
  56. package/dist-esm/src/operationsInterfaces/iotDpsResource.d.ts.map +1 -1
  57. package/dist-esm/test/deviceprovisioningservices_operations_test.spec.d.ts +4 -0
  58. package/dist-esm/test/deviceprovisioningservices_operations_test.spec.d.ts.map +1 -0
  59. package/dist-esm/test/deviceprovisioningservices_operations_test.spec.js +123 -0
  60. package/dist-esm/test/deviceprovisioningservices_operations_test.spec.js.map +1 -0
  61. package/package.json +6 -6
  62. package/review/arm-deviceprovisioningservices.api.md +41 -10
  63. package/src/iotDpsClient.ts +2 -2
  64. package/src/lroImpl.ts +31 -23
  65. package/src/models/index.ts +67 -1
  66. package/src/models/mappers.ts +88 -1
  67. package/src/models/parameters.ts +1 -1
  68. package/src/operations/iotDpsResource.ts +77 -59
  69. package/src/operationsInterfaces/iotDpsResource.ts +16 -16
  70. package/types/arm-deviceprovisioningservices.d.ts +79 -13
  71. package/types/tsdoc-metadata.json +1 -1
  72. package/dist-esm/test/sampleTest.d.ts +0 -2
  73. package/dist-esm/test/sampleTest.d.ts.map +0 -1
  74. package/dist-esm/test/sampleTest.js +0 -38
  75. package/dist-esm/test/sampleTest.js.map +0 -1
@@ -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 { IotDpsClient } from "../iotDpsClient";
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
  ProvisioningServiceDescription,
20
24
  IotDpsResourceListBySubscriptionNextOptionalParams,
@@ -377,17 +381,17 @@ export class IotDpsResourceImpl implements IotDpsResource {
377
381
 
378
382
  /**
379
383
  * Get the metadata of the provisioning service without SAS keys.
380
- * @param provisioningServiceName Name of the provisioning service to retrieve.
381
384
  * @param resourceGroupName Resource group name.
385
+ * @param provisioningServiceName Name of the provisioning service to retrieve.
382
386
  * @param options The options parameters.
383
387
  */
384
388
  get(
385
- provisioningServiceName: string,
386
389
  resourceGroupName: string,
390
+ provisioningServiceName: string,
387
391
  options?: IotDpsResourceGetOptionalParams
388
392
  ): Promise<IotDpsResourceGetResponse> {
389
393
  return this.client.sendOperationRequest(
390
- { provisioningServiceName, resourceGroupName, options },
394
+ { resourceGroupName, provisioningServiceName, options },
391
395
  getOperationSpec
392
396
  );
393
397
  }
@@ -407,8 +411,8 @@ export class IotDpsResourceImpl implements IotDpsResource {
407
411
  iotDpsDescription: ProvisioningServiceDescription,
408
412
  options?: IotDpsResourceCreateOrUpdateOptionalParams
409
413
  ): Promise<
410
- PollerLike<
411
- PollOperationState<IotDpsResourceCreateOrUpdateResponse>,
414
+ SimplePollerLike<
415
+ OperationState<IotDpsResourceCreateOrUpdateResponse>,
412
416
  IotDpsResourceCreateOrUpdateResponse
413
417
  >
414
418
  > {
@@ -418,7 +422,7 @@ export class IotDpsResourceImpl implements IotDpsResource {
418
422
  ): Promise<IotDpsResourceCreateOrUpdateResponse> => {
419
423
  return this.client.sendOperationRequest(args, spec);
420
424
  };
421
- const sendOperation = async (
425
+ const sendOperationFn = async (
422
426
  args: coreClient.OperationArguments,
423
427
  spec: coreClient.OperationSpec
424
428
  ) => {
@@ -451,18 +455,21 @@ export class IotDpsResourceImpl implements IotDpsResource {
451
455
  };
452
456
  };
453
457
 
454
- const lro = new LroImpl(
455
- sendOperation,
456
- {
458
+ const lro = createLroSpec({
459
+ sendOperationFn,
460
+ args: {
457
461
  resourceGroupName,
458
462
  provisioningServiceName,
459
463
  iotDpsDescription,
460
464
  options
461
465
  },
462
- createOrUpdateOperationSpec
463
- );
464
- const poller = new LroEngine(lro, {
465
- resumeFrom: options?.resumeFrom,
466
+ spec: createOrUpdateOperationSpec
467
+ });
468
+ const poller = await createHttpPoller<
469
+ IotDpsResourceCreateOrUpdateResponse,
470
+ OperationState<IotDpsResourceCreateOrUpdateResponse>
471
+ >(lro, {
472
+ restoreFrom: options?.resumeFrom,
466
473
  intervalInMs: options?.updateIntervalInMs
467
474
  });
468
475
  await poller.poll();
@@ -507,8 +514,8 @@ export class IotDpsResourceImpl implements IotDpsResource {
507
514
  provisioningServiceTags: TagsResource,
508
515
  options?: IotDpsResourceUpdateOptionalParams
509
516
  ): Promise<
510
- PollerLike<
511
- PollOperationState<IotDpsResourceUpdateResponse>,
517
+ SimplePollerLike<
518
+ OperationState<IotDpsResourceUpdateResponse>,
512
519
  IotDpsResourceUpdateResponse
513
520
  >
514
521
  > {
@@ -518,7 +525,7 @@ export class IotDpsResourceImpl implements IotDpsResource {
518
525
  ): Promise<IotDpsResourceUpdateResponse> => {
519
526
  return this.client.sendOperationRequest(args, spec);
520
527
  };
521
- const sendOperation = async (
528
+ const sendOperationFn = async (
522
529
  args: coreClient.OperationArguments,
523
530
  spec: coreClient.OperationSpec
524
531
  ) => {
@@ -551,18 +558,21 @@ export class IotDpsResourceImpl implements IotDpsResource {
551
558
  };
552
559
  };
553
560
 
554
- const lro = new LroImpl(
555
- sendOperation,
556
- {
561
+ const lro = createLroSpec({
562
+ sendOperationFn,
563
+ args: {
557
564
  resourceGroupName,
558
565
  provisioningServiceName,
559
566
  provisioningServiceTags,
560
567
  options
561
568
  },
562
- updateOperationSpec
563
- );
564
- const poller = new LroEngine(lro, {
565
- resumeFrom: options?.resumeFrom,
569
+ spec: updateOperationSpec
570
+ });
571
+ const poller = await createHttpPoller<
572
+ IotDpsResourceUpdateResponse,
573
+ OperationState<IotDpsResourceUpdateResponse>
574
+ >(lro, {
575
+ restoreFrom: options?.resumeFrom,
566
576
  intervalInMs: options?.updateIntervalInMs
567
577
  });
568
578
  await poller.poll();
@@ -594,22 +604,22 @@ export class IotDpsResourceImpl implements IotDpsResource {
594
604
 
595
605
  /**
596
606
  * Deletes the Provisioning Service.
597
- * @param provisioningServiceName Name of provisioning service to delete.
598
607
  * @param resourceGroupName Resource group identifier.
608
+ * @param provisioningServiceName Name of provisioning service to delete.
599
609
  * @param options The options parameters.
600
610
  */
601
611
  async beginDelete(
602
- provisioningServiceName: string,
603
612
  resourceGroupName: string,
613
+ provisioningServiceName: string,
604
614
  options?: IotDpsResourceDeleteOptionalParams
605
- ): Promise<PollerLike<PollOperationState<void>, void>> {
615
+ ): Promise<SimplePollerLike<OperationState<void>, void>> {
606
616
  const directSendOperation = async (
607
617
  args: coreClient.OperationArguments,
608
618
  spec: coreClient.OperationSpec
609
619
  ): Promise<void> => {
610
620
  return this.client.sendOperationRequest(args, spec);
611
621
  };
612
- const sendOperation = async (
622
+ const sendOperationFn = async (
613
623
  args: coreClient.OperationArguments,
614
624
  spec: coreClient.OperationSpec
615
625
  ) => {
@@ -642,13 +652,13 @@ export class IotDpsResourceImpl implements IotDpsResource {
642
652
  };
643
653
  };
644
654
 
645
- const lro = new LroImpl(
646
- sendOperation,
647
- { provisioningServiceName, resourceGroupName, options },
648
- deleteOperationSpec
649
- );
650
- const poller = new LroEngine(lro, {
651
- resumeFrom: options?.resumeFrom,
655
+ const lro = createLroSpec({
656
+ sendOperationFn,
657
+ args: { resourceGroupName, provisioningServiceName, options },
658
+ spec: deleteOperationSpec
659
+ });
660
+ const poller = await createHttpPoller<void, OperationState<void>>(lro, {
661
+ restoreFrom: options?.resumeFrom,
652
662
  intervalInMs: options?.updateIntervalInMs
653
663
  });
654
664
  await poller.poll();
@@ -657,18 +667,18 @@ export class IotDpsResourceImpl implements IotDpsResource {
657
667
 
658
668
  /**
659
669
  * Deletes the Provisioning Service.
660
- * @param provisioningServiceName Name of provisioning service to delete.
661
670
  * @param resourceGroupName Resource group identifier.
671
+ * @param provisioningServiceName Name of provisioning service to delete.
662
672
  * @param options The options parameters.
663
673
  */
664
674
  async beginDeleteAndWait(
665
- provisioningServiceName: string,
666
675
  resourceGroupName: string,
676
+ provisioningServiceName: string,
667
677
  options?: IotDpsResourceDeleteOptionalParams
668
678
  ): Promise<void> {
669
679
  const poller = await this.beginDelete(
670
- provisioningServiceName,
671
680
  resourceGroupName,
681
+ provisioningServiceName,
672
682
  options
673
683
  );
674
684
  return poller.pollUntilDone();
@@ -894,8 +904,8 @@ export class IotDpsResourceImpl implements IotDpsResource {
894
904
  privateEndpointConnection: PrivateEndpointConnection,
895
905
  options?: IotDpsResourceCreateOrUpdatePrivateEndpointConnectionOptionalParams
896
906
  ): Promise<
897
- PollerLike<
898
- PollOperationState<
907
+ SimplePollerLike<
908
+ OperationState<
899
909
  IotDpsResourceCreateOrUpdatePrivateEndpointConnectionResponse
900
910
  >,
901
911
  IotDpsResourceCreateOrUpdatePrivateEndpointConnectionResponse
@@ -907,7 +917,7 @@ export class IotDpsResourceImpl implements IotDpsResource {
907
917
  ): Promise<IotDpsResourceCreateOrUpdatePrivateEndpointConnectionResponse> => {
908
918
  return this.client.sendOperationRequest(args, spec);
909
919
  };
910
- const sendOperation = async (
920
+ const sendOperationFn = async (
911
921
  args: coreClient.OperationArguments,
912
922
  spec: coreClient.OperationSpec
913
923
  ) => {
@@ -940,19 +950,24 @@ export class IotDpsResourceImpl implements IotDpsResource {
940
950
  };
941
951
  };
942
952
 
943
- const lro = new LroImpl(
944
- sendOperation,
945
- {
953
+ const lro = createLroSpec({
954
+ sendOperationFn,
955
+ args: {
946
956
  resourceGroupName,
947
957
  resourceName,
948
958
  privateEndpointConnectionName,
949
959
  privateEndpointConnection,
950
960
  options
951
961
  },
952
- createOrUpdatePrivateEndpointConnectionOperationSpec
953
- );
954
- const poller = new LroEngine(lro, {
955
- resumeFrom: options?.resumeFrom,
962
+ spec: createOrUpdatePrivateEndpointConnectionOperationSpec
963
+ });
964
+ const poller = await createHttpPoller<
965
+ IotDpsResourceCreateOrUpdatePrivateEndpointConnectionResponse,
966
+ OperationState<
967
+ IotDpsResourceCreateOrUpdatePrivateEndpointConnectionResponse
968
+ >
969
+ >(lro, {
970
+ restoreFrom: options?.resumeFrom,
956
971
  intervalInMs: options?.updateIntervalInMs
957
972
  });
958
973
  await poller.poll();
@@ -997,8 +1012,8 @@ export class IotDpsResourceImpl implements IotDpsResource {
997
1012
  privateEndpointConnectionName: string,
998
1013
  options?: IotDpsResourceDeletePrivateEndpointConnectionOptionalParams
999
1014
  ): Promise<
1000
- PollerLike<
1001
- PollOperationState<IotDpsResourceDeletePrivateEndpointConnectionResponse>,
1015
+ SimplePollerLike<
1016
+ OperationState<IotDpsResourceDeletePrivateEndpointConnectionResponse>,
1002
1017
  IotDpsResourceDeletePrivateEndpointConnectionResponse
1003
1018
  >
1004
1019
  > {
@@ -1008,7 +1023,7 @@ export class IotDpsResourceImpl implements IotDpsResource {
1008
1023
  ): Promise<IotDpsResourceDeletePrivateEndpointConnectionResponse> => {
1009
1024
  return this.client.sendOperationRequest(args, spec);
1010
1025
  };
1011
- const sendOperation = async (
1026
+ const sendOperationFn = async (
1012
1027
  args: coreClient.OperationArguments,
1013
1028
  spec: coreClient.OperationSpec
1014
1029
  ) => {
@@ -1041,18 +1056,21 @@ export class IotDpsResourceImpl implements IotDpsResource {
1041
1056
  };
1042
1057
  };
1043
1058
 
1044
- const lro = new LroImpl(
1045
- sendOperation,
1046
- {
1059
+ const lro = createLroSpec({
1060
+ sendOperationFn,
1061
+ args: {
1047
1062
  resourceGroupName,
1048
1063
  resourceName,
1049
1064
  privateEndpointConnectionName,
1050
1065
  options
1051
1066
  },
1052
- deletePrivateEndpointConnectionOperationSpec
1053
- );
1054
- const poller = new LroEngine(lro, {
1055
- resumeFrom: options?.resumeFrom,
1067
+ spec: deletePrivateEndpointConnectionOperationSpec
1068
+ });
1069
+ const poller = await createHttpPoller<
1070
+ IotDpsResourceDeletePrivateEndpointConnectionResponse,
1071
+ OperationState<IotDpsResourceDeletePrivateEndpointConnectionResponse>
1072
+ >(lro, {
1073
+ restoreFrom: options?.resumeFrom,
1056
1074
  intervalInMs: options?.updateIntervalInMs
1057
1075
  });
1058
1076
  await poller.poll();
@@ -7,7 +7,7 @@
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
  ProvisioningServiceDescription,
13
13
  IotDpsResourceListBySubscriptionOptionalParams,
@@ -91,13 +91,13 @@ export interface IotDpsResource {
91
91
  >;
92
92
  /**
93
93
  * Get the metadata of the provisioning service without SAS keys.
94
- * @param provisioningServiceName Name of the provisioning service to retrieve.
95
94
  * @param resourceGroupName Resource group name.
95
+ * @param provisioningServiceName Name of the provisioning service to retrieve.
96
96
  * @param options The options parameters.
97
97
  */
98
98
  get(
99
- provisioningServiceName: string,
100
99
  resourceGroupName: string,
100
+ provisioningServiceName: string,
101
101
  options?: IotDpsResourceGetOptionalParams
102
102
  ): Promise<IotDpsResourceGetResponse>;
103
103
  /**
@@ -115,8 +115,8 @@ export interface IotDpsResource {
115
115
  iotDpsDescription: ProvisioningServiceDescription,
116
116
  options?: IotDpsResourceCreateOrUpdateOptionalParams
117
117
  ): Promise<
118
- PollerLike<
119
- PollOperationState<IotDpsResourceCreateOrUpdateResponse>,
118
+ SimplePollerLike<
119
+ OperationState<IotDpsResourceCreateOrUpdateResponse>,
120
120
  IotDpsResourceCreateOrUpdateResponse
121
121
  >
122
122
  >;
@@ -149,8 +149,8 @@ export interface IotDpsResource {
149
149
  provisioningServiceTags: TagsResource,
150
150
  options?: IotDpsResourceUpdateOptionalParams
151
151
  ): Promise<
152
- PollerLike<
153
- PollOperationState<IotDpsResourceUpdateResponse>,
152
+ SimplePollerLike<
153
+ OperationState<IotDpsResourceUpdateResponse>,
154
154
  IotDpsResourceUpdateResponse
155
155
  >
156
156
  >;
@@ -170,24 +170,24 @@ export interface IotDpsResource {
170
170
  ): Promise<IotDpsResourceUpdateResponse>;
171
171
  /**
172
172
  * Deletes the Provisioning Service.
173
- * @param provisioningServiceName Name of provisioning service to delete.
174
173
  * @param resourceGroupName Resource group identifier.
174
+ * @param provisioningServiceName Name of provisioning service to delete.
175
175
  * @param options The options parameters.
176
176
  */
177
177
  beginDelete(
178
- provisioningServiceName: string,
179
178
  resourceGroupName: string,
179
+ provisioningServiceName: string,
180
180
  options?: IotDpsResourceDeleteOptionalParams
181
- ): Promise<PollerLike<PollOperationState<void>, void>>;
181
+ ): Promise<SimplePollerLike<OperationState<void>, void>>;
182
182
  /**
183
183
  * Deletes the Provisioning Service.
184
- * @param provisioningServiceName Name of provisioning service to delete.
185
184
  * @param resourceGroupName Resource group identifier.
185
+ * @param provisioningServiceName Name of provisioning service to delete.
186
186
  * @param options The options parameters.
187
187
  */
188
188
  beginDeleteAndWait(
189
- provisioningServiceName: string,
190
189
  resourceGroupName: string,
190
+ provisioningServiceName: string,
191
191
  options?: IotDpsResourceDeleteOptionalParams
192
192
  ): Promise<void>;
193
193
  /**
@@ -295,8 +295,8 @@ export interface IotDpsResource {
295
295
  privateEndpointConnection: PrivateEndpointConnection,
296
296
  options?: IotDpsResourceCreateOrUpdatePrivateEndpointConnectionOptionalParams
297
297
  ): Promise<
298
- PollerLike<
299
- PollOperationState<
298
+ SimplePollerLike<
299
+ OperationState<
300
300
  IotDpsResourceCreateOrUpdatePrivateEndpointConnectionResponse
301
301
  >,
302
302
  IotDpsResourceCreateOrUpdatePrivateEndpointConnectionResponse
@@ -330,8 +330,8 @@ export interface IotDpsResource {
330
330
  privateEndpointConnectionName: string,
331
331
  options?: IotDpsResourceDeletePrivateEndpointConnectionOptionalParams
332
332
  ): Promise<
333
- PollerLike<
334
- PollOperationState<IotDpsResourceDeletePrivateEndpointConnectionResponse>,
333
+ SimplePollerLike<
334
+ OperationState<IotDpsResourceDeletePrivateEndpointConnectionResponse>,
335
335
  IotDpsResourceDeletePrivateEndpointConnectionResponse
336
336
  >
337
337
  >;
@@ -1,8 +1,8 @@
1
1
  import * as coreAuth from '@azure/core-auth';
2
2
  import * as coreClient from '@azure/core-client';
3
+ import { OperationState } from '@azure/core-lro';
3
4
  import { PagedAsyncIterableIterator } from '@azure/core-paging';
4
- import { PollerLike } from '@azure/core-lro';
5
- import { PollOperationState } from '@azure/core-lro';
5
+ import { SimplePollerLike } from '@azure/core-lro';
6
6
 
7
7
  /**
8
8
  * Defines values for AccessRightsDescription. \
@@ -295,7 +295,7 @@ export declare interface ErrorDetails {
295
295
  * The error code.
296
296
  * NOTE: This property will not be serialized. It can only be populated by the server.
297
297
  */
298
- readonly code?: string;
298
+ readonly code?: number;
299
299
  /**
300
300
  * The HTTP status code.
301
301
  * NOTE: This property will not be serialized. It can only be populated by the server.
@@ -429,6 +429,8 @@ export declare interface IotDpsPropertiesDescription {
429
429
  * Indicates if the DPS instance has Data Residency enabled, removing the cross geo-pair disaster recovery.
430
430
  */
431
431
  enableDataResidency?: boolean;
432
+ /** Portal endpoint to enable CORS for this provisioning service. */
433
+ portalOperationsHostName?: string;
432
434
  }
433
435
 
434
436
  /** Interface representing a IotDpsResource. */
@@ -460,11 +462,11 @@ export declare interface IotDpsResource {
460
462
  listKeys(provisioningServiceName: string, resourceGroupName: string, options?: IotDpsResourceListKeysOptionalParams): PagedAsyncIterableIterator<SharedAccessSignatureAuthorizationRuleAccessRightsDescription>;
461
463
  /**
462
464
  * Get the metadata of the provisioning service without SAS keys.
463
- * @param provisioningServiceName Name of the provisioning service to retrieve.
464
465
  * @param resourceGroupName Resource group name.
466
+ * @param provisioningServiceName Name of the provisioning service to retrieve.
465
467
  * @param options The options parameters.
466
468
  */
467
- get(provisioningServiceName: string, resourceGroupName: string, options?: IotDpsResourceGetOptionalParams): Promise<IotDpsResourceGetResponse>;
469
+ get(resourceGroupName: string, provisioningServiceName: string, options?: IotDpsResourceGetOptionalParams): Promise<IotDpsResourceGetResponse>;
468
470
  /**
469
471
  * Create or update the metadata of the provisioning service. The usual pattern to modify a property is
470
472
  * to retrieve the provisioning service metadata and security metadata, and then combine them with the
@@ -474,7 +476,7 @@ export declare interface IotDpsResource {
474
476
  * @param iotDpsDescription Description of the provisioning service to create or update.
475
477
  * @param options The options parameters.
476
478
  */
477
- beginCreateOrUpdate(resourceGroupName: string, provisioningServiceName: string, iotDpsDescription: ProvisioningServiceDescription, options?: IotDpsResourceCreateOrUpdateOptionalParams): Promise<PollerLike<PollOperationState<IotDpsResourceCreateOrUpdateResponse>, IotDpsResourceCreateOrUpdateResponse>>;
479
+ beginCreateOrUpdate(resourceGroupName: string, provisioningServiceName: string, iotDpsDescription: ProvisioningServiceDescription, options?: IotDpsResourceCreateOrUpdateOptionalParams): Promise<SimplePollerLike<OperationState<IotDpsResourceCreateOrUpdateResponse>, IotDpsResourceCreateOrUpdateResponse>>;
478
480
  /**
479
481
  * Create or update the metadata of the provisioning service. The usual pattern to modify a property is
480
482
  * to retrieve the provisioning service metadata and security metadata, and then combine them with the
@@ -493,7 +495,7 @@ export declare interface IotDpsResource {
493
495
  * instance.
494
496
  * @param options The options parameters.
495
497
  */
496
- beginUpdate(resourceGroupName: string, provisioningServiceName: string, provisioningServiceTags: TagsResource, options?: IotDpsResourceUpdateOptionalParams): Promise<PollerLike<PollOperationState<IotDpsResourceUpdateResponse>, IotDpsResourceUpdateResponse>>;
498
+ beginUpdate(resourceGroupName: string, provisioningServiceName: string, provisioningServiceTags: TagsResource, options?: IotDpsResourceUpdateOptionalParams): Promise<SimplePollerLike<OperationState<IotDpsResourceUpdateResponse>, IotDpsResourceUpdateResponse>>;
497
499
  /**
498
500
  * Update an existing provisioning service's tags. to update other fields use the CreateOrUpdate method
499
501
  * @param resourceGroupName Resource group identifier.
@@ -505,18 +507,18 @@ export declare interface IotDpsResource {
505
507
  beginUpdateAndWait(resourceGroupName: string, provisioningServiceName: string, provisioningServiceTags: TagsResource, options?: IotDpsResourceUpdateOptionalParams): Promise<IotDpsResourceUpdateResponse>;
506
508
  /**
507
509
  * Deletes the Provisioning Service.
508
- * @param provisioningServiceName Name of provisioning service to delete.
509
510
  * @param resourceGroupName Resource group identifier.
511
+ * @param provisioningServiceName Name of provisioning service to delete.
510
512
  * @param options The options parameters.
511
513
  */
512
- beginDelete(provisioningServiceName: string, resourceGroupName: string, options?: IotDpsResourceDeleteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
514
+ beginDelete(resourceGroupName: string, provisioningServiceName: string, options?: IotDpsResourceDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
513
515
  /**
514
516
  * Deletes the Provisioning Service.
515
- * @param provisioningServiceName Name of provisioning service to delete.
516
517
  * @param resourceGroupName Resource group identifier.
518
+ * @param provisioningServiceName Name of provisioning service to delete.
517
519
  * @param options The options parameters.
518
520
  */
519
- beginDeleteAndWait(provisioningServiceName: string, resourceGroupName: string, options?: IotDpsResourceDeleteOptionalParams): Promise<void>;
521
+ beginDeleteAndWait(resourceGroupName: string, provisioningServiceName: string, options?: IotDpsResourceDeleteOptionalParams): Promise<void>;
520
522
  /**
521
523
  * Gets the status of a long running operation, such as create, update or delete a provisioning
522
524
  * service.
@@ -583,7 +585,7 @@ export declare interface IotDpsResource {
583
585
  * @param privateEndpointConnection The private endpoint connection with updated properties
584
586
  * @param options The options parameters.
585
587
  */
586
- beginCreateOrUpdatePrivateEndpointConnection(resourceGroupName: string, resourceName: string, privateEndpointConnectionName: string, privateEndpointConnection: PrivateEndpointConnection, options?: IotDpsResourceCreateOrUpdatePrivateEndpointConnectionOptionalParams): Promise<PollerLike<PollOperationState<IotDpsResourceCreateOrUpdatePrivateEndpointConnectionResponse>, IotDpsResourceCreateOrUpdatePrivateEndpointConnectionResponse>>;
588
+ beginCreateOrUpdatePrivateEndpointConnection(resourceGroupName: string, resourceName: string, privateEndpointConnectionName: string, privateEndpointConnection: PrivateEndpointConnection, options?: IotDpsResourceCreateOrUpdatePrivateEndpointConnectionOptionalParams): Promise<SimplePollerLike<OperationState<IotDpsResourceCreateOrUpdatePrivateEndpointConnectionResponse>, IotDpsResourceCreateOrUpdatePrivateEndpointConnectionResponse>>;
587
589
  /**
588
590
  * Create or update the status of a private endpoint connection with the specified name
589
591
  * @param resourceGroupName The name of the resource group that contains the provisioning service.
@@ -600,7 +602,7 @@ export declare interface IotDpsResource {
600
602
  * @param privateEndpointConnectionName The name of the private endpoint connection
601
603
  * @param options The options parameters.
602
604
  */
603
- beginDeletePrivateEndpointConnection(resourceGroupName: string, resourceName: string, privateEndpointConnectionName: string, options?: IotDpsResourceDeletePrivateEndpointConnectionOptionalParams): Promise<PollerLike<PollOperationState<IotDpsResourceDeletePrivateEndpointConnectionResponse>, IotDpsResourceDeletePrivateEndpointConnectionResponse>>;
605
+ beginDeletePrivateEndpointConnection(resourceGroupName: string, resourceName: string, privateEndpointConnectionName: string, options?: IotDpsResourceDeletePrivateEndpointConnectionOptionalParams): Promise<SimplePollerLike<OperationState<IotDpsResourceDeletePrivateEndpointConnectionResponse>, IotDpsResourceDeletePrivateEndpointConnectionResponse>>;
604
606
  /**
605
607
  * Delete private endpoint connection with the specified name
606
608
  * @param resourceGroupName The name of the resource group that contains the provisioning service.
@@ -911,6 +913,18 @@ export declare enum KnownIotDpsSku {
911
913
  S1 = "S1"
912
914
  }
913
915
 
916
+ /** Known values of {@link ManagedServiceIdentityType} that the service accepts. */
917
+ export declare enum KnownManagedServiceIdentityType {
918
+ /** None */
919
+ None = "None",
920
+ /** SystemAssigned */
921
+ SystemAssigned = "SystemAssigned",
922
+ /** UserAssigned */
923
+ UserAssigned = "UserAssigned",
924
+ /** SystemAssignedUserAssigned */
925
+ SystemAssignedUserAssigned = "SystemAssigned,UserAssigned"
926
+ }
927
+
914
928
  /** Known values of {@link NameUnavailabilityReason} that the service accepts. */
915
929
  export declare enum KnownNameUnavailabilityReason {
916
930
  /** Invalid */
@@ -967,6 +981,38 @@ export declare enum KnownState {
967
981
  FailoverFailed = "FailoverFailed"
968
982
  }
969
983
 
984
+ /** Managed service identity (system assigned and/or user assigned identities) */
985
+ export declare interface ManagedServiceIdentity {
986
+ /**
987
+ * The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity.
988
+ * NOTE: This property will not be serialized. It can only be populated by the server.
989
+ */
990
+ readonly principalId?: string;
991
+ /**
992
+ * The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity.
993
+ * NOTE: This property will not be serialized. It can only be populated by the server.
994
+ */
995
+ readonly tenantId?: string;
996
+ /** Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). */
997
+ type: ManagedServiceIdentityType;
998
+ /** The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests. */
999
+ userAssignedIdentities?: {
1000
+ [propertyName: string]: UserAssignedIdentity | null;
1001
+ };
1002
+ }
1003
+
1004
+ /**
1005
+ * Defines values for ManagedServiceIdentityType. \
1006
+ * {@link KnownManagedServiceIdentityType} can be used interchangeably with ManagedServiceIdentityType,
1007
+ * this enum contains the known values that the service supports.
1008
+ * ### Known values supported by the service
1009
+ * **None** \
1010
+ * **SystemAssigned** \
1011
+ * **UserAssigned** \
1012
+ * **SystemAssigned,UserAssigned**
1013
+ */
1014
+ export declare type ManagedServiceIdentityType = string;
1015
+
970
1016
  /** Description of name availability. */
971
1017
  export declare interface NameAvailabilityInfo {
972
1018
  /** specifies if a name is available or not */
@@ -1144,6 +1190,8 @@ export declare interface ProvisioningServiceDescription extends Resource {
1144
1190
  * NOTE: This property will not be serialized. It can only be populated by the server.
1145
1191
  */
1146
1192
  readonly systemData?: SystemData;
1193
+ /** The managed identities for a provisioning service. */
1194
+ identity?: ManagedServiceIdentity;
1147
1195
  }
1148
1196
 
1149
1197
  /** List of provisioning service descriptions. */
@@ -1186,6 +1234,10 @@ export declare interface Resource {
1186
1234
  readonly type?: string;
1187
1235
  /** The resource location. */
1188
1236
  location: string;
1237
+ /** The resource group of the resource. */
1238
+ resourcegroup?: string;
1239
+ /** The subscription id of the resource. */
1240
+ subscriptionid?: string;
1189
1241
  /** The resource tags. */
1190
1242
  tags?: {
1191
1243
  [propertyName: string]: string;
@@ -1259,6 +1311,20 @@ export declare interface TagsResource {
1259
1311
  };
1260
1312
  }
1261
1313
 
1314
+ /** User assigned identity properties */
1315
+ export declare interface UserAssignedIdentity {
1316
+ /**
1317
+ * The principal ID of the assigned identity.
1318
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1319
+ */
1320
+ readonly principalId?: string;
1321
+ /**
1322
+ * The client ID of the assigned identity.
1323
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1324
+ */
1325
+ readonly clientId?: string;
1326
+ }
1327
+
1262
1328
  /** The JSON-serialized leaf certificate */
1263
1329
  export declare interface VerificationCodeRequest {
1264
1330
  /** base-64 representation of X509 certificate .cer file or just .pem file content. */
@@ -5,7 +5,7 @@
5
5
  "toolPackages": [
6
6
  {
7
7
  "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.35.0"
8
+ "packageVersion": "7.35.4"
9
9
  }
10
10
  ]
11
11
  }
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=sampleTest.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sampleTest.d.ts","sourceRoot":"","sources":["../../test/sampleTest.ts"],"names":[],"mappings":""}
@@ -1,38 +0,0 @@
1
- /*
2
- * Copyright (c) Microsoft Corporation.
3
- * Licensed under the MIT License.
4
- *
5
- * Code generated by Microsoft (R) AutoRest Code Generator.
6
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
- */
8
- import { __awaiter } from "tslib";
9
- import { Recorder } from "@azure-tools/test-recorder";
10
- const replaceableVariables = {
11
- AZURE_CLIENT_ID: "azure_client_id",
12
- AZURE_CLIENT_SECRET: "azure_client_secret",
13
- AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888",
14
- SUBSCRIPTION_ID: "azure_subscription_id"
15
- };
16
- const recorderOptions = {
17
- envSetupForPlayback: replaceableVariables
18
- };
19
- describe("My test", () => {
20
- let recorder;
21
- beforeEach(function () {
22
- return __awaiter(this, void 0, void 0, function* () {
23
- recorder = new Recorder(this.currentTest);
24
- yield recorder.start(recorderOptions);
25
- });
26
- });
27
- afterEach(function () {
28
- return __awaiter(this, void 0, void 0, function* () {
29
- yield recorder.stop();
30
- });
31
- });
32
- it("sample test", function () {
33
- return __awaiter(this, void 0, void 0, function* () {
34
- console.log("Hi, I'm a test!");
35
- });
36
- });
37
- });
38
- //# sourceMappingURL=sampleTest.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sampleTest.js","sourceRoot":"","sources":["../../test/sampleTest.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,OAAO,EACL,QAAQ,EAGT,MAAM,4BAA4B,CAAC;AAIpC,MAAM,oBAAoB,GAA2B;IACnD,eAAe,EAAE,iBAAiB;IAClC,mBAAmB,EAAE,qBAAqB;IAC1C,eAAe,EAAE,sCAAsC;IACvD,eAAe,EAAE,uBAAuB;CACzC,CAAC;AAEF,MAAM,eAAe,GAAyB;IAC5C,mBAAmB,EAAE,oBAAoB;CAC1C,CAAC;AAEF,QAAQ,CAAC,SAAS,EAAE,GAAG,EAAE;IACvB,IAAI,QAAkB,CAAC;IAEvB,UAAU,CAAC;;YACT,QAAQ,GAAG,IAAI,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;YAC1C,MAAM,QAAQ,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC;QACxC,CAAC;KAAA,CAAC,CAAC;IAEH,SAAS,CAAC;;YACR,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;QACxB,CAAC;KAAA,CAAC,CAAC;IAEH,EAAE,CAAC,aAAa,EAAE;;YAChB,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;QACjC,CAAC;KAAA,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}