@azure/arm-deviceprovisioningservices 2.1.0 → 4.0.0

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 (147) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/LICENSE +21 -0
  3. package/LICENSE.txt +21 -21
  4. package/README.md +98 -96
  5. package/dist/index.js +3108 -0
  6. package/dist/index.js.map +1 -0
  7. package/dist/index.min.js +1 -0
  8. package/dist/index.min.js.map +1 -0
  9. package/dist-esm/src/index.d.ts +5 -0
  10. package/dist-esm/src/index.d.ts.map +1 -0
  11. package/dist-esm/src/index.js +12 -0
  12. package/dist-esm/src/index.js.map +1 -0
  13. package/dist-esm/src/iotDpsClient.d.ts +20 -0
  14. package/dist-esm/src/iotDpsClient.d.ts.map +1 -0
  15. package/dist-esm/src/iotDpsClient.js +53 -0
  16. package/dist-esm/src/iotDpsClient.js.map +1 -0
  17. package/dist-esm/src/lroImpl.d.ts +16 -0
  18. package/dist-esm/src/lroImpl.d.ts.map +1 -0
  19. package/dist-esm/src/lroImpl.js +29 -0
  20. package/dist-esm/src/lroImpl.js.map +1 -0
  21. package/dist-esm/src/models/index.d.ts +825 -0
  22. package/dist-esm/src/models/index.d.ts.map +1 -0
  23. package/dist-esm/src/models/index.js +72 -0
  24. package/dist-esm/src/models/index.js.map +1 -0
  25. package/dist-esm/src/models/mappers.d.ts +36 -0
  26. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  27. package/{esm → dist-esm/src}/models/mappers.js +565 -322
  28. package/dist-esm/src/models/mappers.js.map +1 -0
  29. package/dist-esm/src/models/parameters.d.ts +34 -0
  30. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  31. package/dist-esm/src/models/parameters.js +293 -0
  32. package/dist-esm/src/models/parameters.js.map +1 -0
  33. package/dist-esm/src/operations/dpsCertificate.d.ts +70 -0
  34. package/dist-esm/src/operations/dpsCertificate.d.ts.map +1 -0
  35. package/dist-esm/src/operations/dpsCertificate.js +289 -0
  36. package/dist-esm/src/operations/dpsCertificate.js.map +1 -0
  37. package/{esm → dist-esm/src}/operations/index.d.ts +0 -0
  38. package/dist-esm/src/operations/index.d.ts.map +1 -0
  39. package/{esm → dist-esm/src}/operations/index.js +3 -5
  40. package/dist-esm/src/operations/index.js.map +1 -0
  41. package/dist-esm/src/operations/iotDpsResource.d.ts +253 -0
  42. package/dist-esm/src/operations/iotDpsResource.d.ts.map +1 -0
  43. package/dist-esm/src/operations/iotDpsResource.js +1154 -0
  44. package/dist-esm/src/operations/iotDpsResource.js.map +1 -0
  45. package/dist-esm/src/operations/operations.d.ts +32 -0
  46. package/dist-esm/src/operations/operations.d.ts.map +1 -0
  47. package/dist-esm/src/operations/operations.js +120 -0
  48. package/dist-esm/src/operations/operations.js.map +1 -0
  49. package/dist-esm/src/operationsInterfaces/dpsCertificate.d.ts +62 -0
  50. package/dist-esm/src/operationsInterfaces/dpsCertificate.d.ts.map +1 -0
  51. package/dist-esm/src/operationsInterfaces/dpsCertificate.js +9 -0
  52. package/dist-esm/src/operationsInterfaces/dpsCertificate.js.map +1 -0
  53. package/dist-esm/src/operationsInterfaces/index.d.ts +4 -0
  54. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  55. package/dist-esm/src/operationsInterfaces/index.js +11 -0
  56. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  57. package/dist-esm/src/operationsInterfaces/iotDpsResource.d.ts +183 -0
  58. package/dist-esm/src/operationsInterfaces/iotDpsResource.d.ts.map +1 -0
  59. package/dist-esm/src/operationsInterfaces/iotDpsResource.js +9 -0
  60. package/dist-esm/src/operationsInterfaces/iotDpsResource.js.map +1 -0
  61. package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
  62. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
  63. package/dist-esm/src/operationsInterfaces/operations.js +9 -0
  64. package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
  65. package/dist-esm/test/sampleTest.d.ts +2 -0
  66. package/dist-esm/test/sampleTest.d.ts.map +1 -0
  67. package/dist-esm/test/sampleTest.js +40 -0
  68. package/dist-esm/test/sampleTest.js.map +1 -0
  69. package/package.json +70 -34
  70. package/review/arm-deviceprovisioningservices.api.md +690 -0
  71. package/rollup.config.js +184 -27
  72. package/src/index.ts +12 -0
  73. package/src/iotDpsClient.ts +87 -0
  74. package/src/lroImpl.ts +34 -0
  75. package/src/models/index.ts +946 -0
  76. package/{lib → src}/models/mappers.ts +576 -323
  77. package/src/models/parameters.ts +337 -0
  78. package/src/operations/dpsCertificate.ts +374 -0
  79. package/{lib → src}/operations/index.ts +3 -5
  80. package/src/operations/iotDpsResource.ts +1595 -0
  81. package/src/operations/operations.ts +137 -0
  82. package/src/operationsInterfaces/dpsCertificate.ts +118 -0
  83. package/src/operationsInterfaces/index.ts +11 -0
  84. package/src/operationsInterfaces/iotDpsResource.ts +351 -0
  85. package/src/operationsInterfaces/operations.ts +22 -0
  86. package/tsconfig.json +4 -4
  87. package/types/arm-deviceprovisioningservices.d.ts +1205 -0
  88. package/types/tsdoc-metadata.json +11 -0
  89. package/dist/arm-deviceprovisioningservices.js +0 -2251
  90. package/dist/arm-deviceprovisioningservices.js.map +0 -1
  91. package/dist/arm-deviceprovisioningservices.min.js +0 -1
  92. package/dist/arm-deviceprovisioningservices.min.js.map +0 -1
  93. package/esm/iotDpsClient.d.ts +0 -20
  94. package/esm/iotDpsClient.d.ts.map +0 -1
  95. package/esm/iotDpsClient.js +0 -35
  96. package/esm/iotDpsClient.js.map +0 -1
  97. package/esm/iotDpsClientContext.d.ts +0 -16
  98. package/esm/iotDpsClientContext.d.ts.map +0 -1
  99. package/esm/iotDpsClientContext.js +0 -56
  100. package/esm/iotDpsClientContext.js.map +0 -1
  101. package/esm/models/dpsCertificateMappers.d.ts +0 -2
  102. package/esm/models/dpsCertificateMappers.d.ts.map +0 -1
  103. package/esm/models/dpsCertificateMappers.js +0 -11
  104. package/esm/models/dpsCertificateMappers.js.map +0 -1
  105. package/esm/models/index.d.ts +0 -1273
  106. package/esm/models/index.d.ts.map +0 -1
  107. package/esm/models/index.js +0 -10
  108. package/esm/models/index.js.map +0 -1
  109. package/esm/models/iotDpsResourceMappers.d.ts +0 -2
  110. package/esm/models/iotDpsResourceMappers.d.ts.map +0 -1
  111. package/esm/models/iotDpsResourceMappers.js +0 -11
  112. package/esm/models/iotDpsResourceMappers.js.map +0 -1
  113. package/esm/models/mappers.d.ts +0 -30
  114. package/esm/models/mappers.d.ts.map +0 -1
  115. package/esm/models/mappers.js.map +0 -1
  116. package/esm/models/operationsMappers.d.ts +0 -2
  117. package/esm/models/operationsMappers.d.ts.map +0 -1
  118. package/esm/models/operationsMappers.js +0 -11
  119. package/esm/models/operationsMappers.js.map +0 -1
  120. package/esm/models/parameters.d.ts +0 -23
  121. package/esm/models/parameters.d.ts.map +0 -1
  122. package/esm/models/parameters.js +0 -243
  123. package/esm/models/parameters.js.map +0 -1
  124. package/esm/operations/dpsCertificate.d.ts +0 -188
  125. package/esm/operations/dpsCertificate.d.ts.map +0 -1
  126. package/esm/operations/dpsCertificate.js +0 -265
  127. package/esm/operations/dpsCertificate.js.map +0 -1
  128. package/esm/operations/index.d.ts.map +0 -1
  129. package/esm/operations/index.js.map +0 -1
  130. package/esm/operations/iotDpsResource.d.ts +0 -337
  131. package/esm/operations/iotDpsResource.d.ts.map +0 -1
  132. package/esm/operations/iotDpsResource.js +0 -560
  133. package/esm/operations/iotDpsResource.js.map +0 -1
  134. package/esm/operations/operations.d.ts +0 -46
  135. package/esm/operations/operations.d.ts.map +0 -1
  136. package/esm/operations/operations.js +0 -77
  137. package/esm/operations/operations.js.map +0 -1
  138. package/lib/iotDpsClient.ts +0 -46
  139. package/lib/iotDpsClientContext.ts +0 -62
  140. package/lib/models/dpsCertificateMappers.ts +0 -28
  141. package/lib/models/index.ts +0 -1342
  142. package/lib/models/iotDpsResourceMappers.ts +0 -35
  143. package/lib/models/operationsMappers.ts +0 -17
  144. package/lib/models/parameters.ts +0 -245
  145. package/lib/operations/dpsCertificate.ts +0 -478
  146. package/lib/operations/iotDpsResource.ts +0 -907
  147. package/lib/operations/operations.ts +0 -123
@@ -0,0 +1,137 @@
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
+
9
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
+ import { Operations } from "../operationsInterfaces";
11
+ import * as coreClient from "@azure/core-client";
12
+ import * as Mappers from "../models/mappers";
13
+ import * as Parameters from "../models/parameters";
14
+ import { IotDpsClient } from "../iotDpsClient";
15
+ import {
16
+ Operation,
17
+ OperationsListNextOptionalParams,
18
+ OperationsListOptionalParams,
19
+ OperationsListResponse,
20
+ OperationsListNextResponse
21
+ } from "../models";
22
+
23
+ /// <reference lib="esnext.asynciterable" />
24
+ /** Class containing Operations operations. */
25
+ export class OperationsImpl implements Operations {
26
+ private readonly client: IotDpsClient;
27
+
28
+ /**
29
+ * Initialize a new instance of the class Operations class.
30
+ * @param client Reference to the service client
31
+ */
32
+ constructor(client: IotDpsClient) {
33
+ this.client = client;
34
+ }
35
+
36
+ /**
37
+ * Lists all of the available Microsoft.Devices REST API operations.
38
+ * @param options The options parameters.
39
+ */
40
+ public list(
41
+ options?: OperationsListOptionalParams
42
+ ): PagedAsyncIterableIterator<Operation> {
43
+ const iter = this.listPagingAll(options);
44
+ return {
45
+ next() {
46
+ return iter.next();
47
+ },
48
+ [Symbol.asyncIterator]() {
49
+ return this;
50
+ },
51
+ byPage: () => {
52
+ return this.listPagingPage(options);
53
+ }
54
+ };
55
+ }
56
+
57
+ private async *listPagingPage(
58
+ options?: OperationsListOptionalParams
59
+ ): AsyncIterableIterator<Operation[]> {
60
+ let result = await this._list(options);
61
+ yield result.value || [];
62
+ let continuationToken = result.nextLink;
63
+ while (continuationToken) {
64
+ result = await this._listNext(continuationToken, options);
65
+ continuationToken = result.nextLink;
66
+ yield result.value || [];
67
+ }
68
+ }
69
+
70
+ private async *listPagingAll(
71
+ options?: OperationsListOptionalParams
72
+ ): AsyncIterableIterator<Operation> {
73
+ for await (const page of this.listPagingPage(options)) {
74
+ yield* page;
75
+ }
76
+ }
77
+
78
+ /**
79
+ * Lists all of the available Microsoft.Devices REST API operations.
80
+ * @param options The options parameters.
81
+ */
82
+ private _list(
83
+ options?: OperationsListOptionalParams
84
+ ): Promise<OperationsListResponse> {
85
+ return this.client.sendOperationRequest({ options }, listOperationSpec);
86
+ }
87
+
88
+ /**
89
+ * ListNext
90
+ * @param nextLink The nextLink from the previous successful call to the List method.
91
+ * @param options The options parameters.
92
+ */
93
+ private _listNext(
94
+ nextLink: string,
95
+ options?: OperationsListNextOptionalParams
96
+ ): Promise<OperationsListNextResponse> {
97
+ return this.client.sendOperationRequest(
98
+ { nextLink, options },
99
+ listNextOperationSpec
100
+ );
101
+ }
102
+ }
103
+ // Operation Specifications
104
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
105
+
106
+ const listOperationSpec: coreClient.OperationSpec = {
107
+ path: "/providers/Microsoft.Devices/operations",
108
+ httpMethod: "GET",
109
+ responses: {
110
+ 200: {
111
+ bodyMapper: Mappers.OperationListResult
112
+ },
113
+ default: {
114
+ bodyMapper: Mappers.ErrorDetails
115
+ }
116
+ },
117
+ queryParameters: [Parameters.apiVersion],
118
+ urlParameters: [Parameters.$host],
119
+ headerParameters: [Parameters.accept],
120
+ serializer
121
+ };
122
+ const listNextOperationSpec: coreClient.OperationSpec = {
123
+ path: "{nextLink}",
124
+ httpMethod: "GET",
125
+ responses: {
126
+ 200: {
127
+ bodyMapper: Mappers.OperationListResult
128
+ },
129
+ default: {
130
+ bodyMapper: Mappers.ErrorDetails
131
+ }
132
+ },
133
+ queryParameters: [Parameters.apiVersion],
134
+ urlParameters: [Parameters.$host, Parameters.nextLink],
135
+ headerParameters: [Parameters.accept],
136
+ serializer
137
+ };
@@ -0,0 +1,118 @@
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
+
9
+ import {
10
+ DpsCertificateGetOptionalParams,
11
+ DpsCertificateGetResponse,
12
+ CertificateBodyDescription,
13
+ DpsCertificateCreateOrUpdateOptionalParams,
14
+ DpsCertificateCreateOrUpdateResponse,
15
+ DpsCertificateDeleteOptionalParams,
16
+ DpsCertificateListOptionalParams,
17
+ DpsCertificateListResponse,
18
+ DpsCertificateGenerateVerificationCodeOptionalParams,
19
+ DpsCertificateGenerateVerificationCodeResponse,
20
+ VerificationCodeRequest,
21
+ DpsCertificateVerifyCertificateOptionalParams,
22
+ DpsCertificateVerifyCertificateResponse
23
+ } from "../models";
24
+
25
+ /** Interface representing a DpsCertificate. */
26
+ export interface DpsCertificate {
27
+ /**
28
+ * Get the certificate from the provisioning service.
29
+ * @param certificateName Name of the certificate to retrieve.
30
+ * @param resourceGroupName Resource group identifier.
31
+ * @param provisioningServiceName Name of the provisioning service the certificate is associated with.
32
+ * @param options The options parameters.
33
+ */
34
+ get(
35
+ certificateName: string,
36
+ resourceGroupName: string,
37
+ provisioningServiceName: string,
38
+ options?: DpsCertificateGetOptionalParams
39
+ ): Promise<DpsCertificateGetResponse>;
40
+ /**
41
+ * Add new certificate or update an existing certificate.
42
+ * @param resourceGroupName Resource group identifier.
43
+ * @param provisioningServiceName The name of the provisioning service.
44
+ * @param certificateName The name of the certificate create or update.
45
+ * @param certificateDescription The certificate body.
46
+ * @param options The options parameters.
47
+ */
48
+ createOrUpdate(
49
+ resourceGroupName: string,
50
+ provisioningServiceName: string,
51
+ certificateName: string,
52
+ certificateDescription: CertificateBodyDescription,
53
+ options?: DpsCertificateCreateOrUpdateOptionalParams
54
+ ): Promise<DpsCertificateCreateOrUpdateResponse>;
55
+ /**
56
+ * Deletes the specified certificate associated with the Provisioning Service
57
+ * @param resourceGroupName Resource group identifier.
58
+ * @param ifMatch ETag of the certificate
59
+ * @param provisioningServiceName The name of the provisioning service.
60
+ * @param certificateName This is a mandatory field, and is the logical name of the certificate that
61
+ * the provisioning service will access by.
62
+ * @param options The options parameters.
63
+ */
64
+ delete(
65
+ resourceGroupName: string,
66
+ ifMatch: string,
67
+ provisioningServiceName: string,
68
+ certificateName: string,
69
+ options?: DpsCertificateDeleteOptionalParams
70
+ ): Promise<void>;
71
+ /**
72
+ * Get all the certificates tied to the provisioning service.
73
+ * @param resourceGroupName Name of resource group.
74
+ * @param provisioningServiceName Name of provisioning service to retrieve certificates for.
75
+ * @param options The options parameters.
76
+ */
77
+ list(
78
+ resourceGroupName: string,
79
+ provisioningServiceName: string,
80
+ options?: DpsCertificateListOptionalParams
81
+ ): Promise<DpsCertificateListResponse>;
82
+ /**
83
+ * Generate verification code for Proof of Possession.
84
+ * @param certificateName The mandatory logical name of the certificate, that the provisioning service
85
+ * uses to access.
86
+ * @param ifMatch ETag of the certificate. This is required to update an existing certificate, and
87
+ * ignored while creating a brand new certificate.
88
+ * @param resourceGroupName name of resource group.
89
+ * @param provisioningServiceName Name of provisioning service.
90
+ * @param options The options parameters.
91
+ */
92
+ generateVerificationCode(
93
+ certificateName: string,
94
+ ifMatch: string,
95
+ resourceGroupName: string,
96
+ provisioningServiceName: string,
97
+ options?: DpsCertificateGenerateVerificationCodeOptionalParams
98
+ ): Promise<DpsCertificateGenerateVerificationCodeResponse>;
99
+ /**
100
+ * Verifies the certificate's private key possession by providing the leaf cert issued by the verifying
101
+ * pre uploaded certificate.
102
+ * @param certificateName The mandatory logical name of the certificate, that the provisioning service
103
+ * uses to access.
104
+ * @param ifMatch ETag of the certificate.
105
+ * @param resourceGroupName Resource group name.
106
+ * @param provisioningServiceName Provisioning service name.
107
+ * @param request The name of the certificate
108
+ * @param options The options parameters.
109
+ */
110
+ verifyCertificate(
111
+ certificateName: string,
112
+ ifMatch: string,
113
+ resourceGroupName: string,
114
+ provisioningServiceName: string,
115
+ request: VerificationCodeRequest,
116
+ options?: DpsCertificateVerifyCertificateOptionalParams
117
+ ): Promise<DpsCertificateVerifyCertificateResponse>;
118
+ }
@@ -0,0 +1,11 @@
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
+
9
+ export * from "./operations";
10
+ export * from "./dpsCertificate";
11
+ export * from "./iotDpsResource";
@@ -0,0 +1,351 @@
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
+
9
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
+ import { PollerLike, PollOperationState } from "@azure/core-lro";
11
+ import {
12
+ ProvisioningServiceDescription,
13
+ IotDpsResourceListBySubscriptionOptionalParams,
14
+ IotDpsResourceListByResourceGroupOptionalParams,
15
+ IotDpsSkuDefinition,
16
+ IotDpsResourceListValidSkusOptionalParams,
17
+ SharedAccessSignatureAuthorizationRuleAccessRightsDescription,
18
+ IotDpsResourceListKeysOptionalParams,
19
+ IotDpsResourceGetOptionalParams,
20
+ IotDpsResourceGetResponse,
21
+ IotDpsResourceCreateOrUpdateOptionalParams,
22
+ IotDpsResourceCreateOrUpdateResponse,
23
+ TagsResource,
24
+ IotDpsResourceUpdateOptionalParams,
25
+ IotDpsResourceUpdateResponse,
26
+ IotDpsResourceDeleteOptionalParams,
27
+ IotDpsResourceGetOperationResultOptionalParams,
28
+ IotDpsResourceGetOperationResultResponse,
29
+ OperationInputs,
30
+ IotDpsResourceCheckProvisioningServiceNameAvailabilityOptionalParams,
31
+ IotDpsResourceCheckProvisioningServiceNameAvailabilityResponse,
32
+ IotDpsResourceListKeysForKeyNameOptionalParams,
33
+ IotDpsResourceListKeysForKeyNameResponse,
34
+ IotDpsResourceListPrivateLinkResourcesOptionalParams,
35
+ IotDpsResourceListPrivateLinkResourcesResponse,
36
+ IotDpsResourceGetPrivateLinkResourcesOptionalParams,
37
+ IotDpsResourceGetPrivateLinkResourcesResponse,
38
+ IotDpsResourceListPrivateEndpointConnectionsOptionalParams,
39
+ IotDpsResourceListPrivateEndpointConnectionsResponse,
40
+ IotDpsResourceGetPrivateEndpointConnectionOptionalParams,
41
+ IotDpsResourceGetPrivateEndpointConnectionResponse,
42
+ PrivateEndpointConnection,
43
+ IotDpsResourceCreateOrUpdatePrivateEndpointConnectionOptionalParams,
44
+ IotDpsResourceCreateOrUpdatePrivateEndpointConnectionResponse,
45
+ IotDpsResourceDeletePrivateEndpointConnectionOptionalParams,
46
+ IotDpsResourceDeletePrivateEndpointConnectionResponse
47
+ } from "../models";
48
+
49
+ /// <reference lib="esnext.asynciterable" />
50
+ /** Interface representing a IotDpsResource. */
51
+ export interface IotDpsResource {
52
+ /**
53
+ * List all the provisioning services for a given subscription id.
54
+ * @param options The options parameters.
55
+ */
56
+ listBySubscription(
57
+ options?: IotDpsResourceListBySubscriptionOptionalParams
58
+ ): PagedAsyncIterableIterator<ProvisioningServiceDescription>;
59
+ /**
60
+ * Get a list of all provisioning services in the given resource group.
61
+ * @param resourceGroupName Resource group identifier.
62
+ * @param options The options parameters.
63
+ */
64
+ listByResourceGroup(
65
+ resourceGroupName: string,
66
+ options?: IotDpsResourceListByResourceGroupOptionalParams
67
+ ): PagedAsyncIterableIterator<ProvisioningServiceDescription>;
68
+ /**
69
+ * Gets the list of valid SKUs and tiers for a provisioning service.
70
+ * @param provisioningServiceName Name of provisioning service.
71
+ * @param resourceGroupName Name of resource group.
72
+ * @param options The options parameters.
73
+ */
74
+ listValidSkus(
75
+ provisioningServiceName: string,
76
+ resourceGroupName: string,
77
+ options?: IotDpsResourceListValidSkusOptionalParams
78
+ ): PagedAsyncIterableIterator<IotDpsSkuDefinition>;
79
+ /**
80
+ * List the primary and secondary keys for a provisioning service.
81
+ * @param provisioningServiceName The provisioning service name to get the shared access keys for.
82
+ * @param resourceGroupName resource group name
83
+ * @param options The options parameters.
84
+ */
85
+ listKeys(
86
+ provisioningServiceName: string,
87
+ resourceGroupName: string,
88
+ options?: IotDpsResourceListKeysOptionalParams
89
+ ): PagedAsyncIterableIterator<
90
+ SharedAccessSignatureAuthorizationRuleAccessRightsDescription
91
+ >;
92
+ /**
93
+ * Get the metadata of the provisioning service without SAS keys.
94
+ * @param provisioningServiceName Name of the provisioning service to retrieve.
95
+ * @param resourceGroupName Resource group name.
96
+ * @param options The options parameters.
97
+ */
98
+ get(
99
+ provisioningServiceName: string,
100
+ resourceGroupName: string,
101
+ options?: IotDpsResourceGetOptionalParams
102
+ ): Promise<IotDpsResourceGetResponse>;
103
+ /**
104
+ * Create or update the metadata of the provisioning service. The usual pattern to modify a property is
105
+ * to retrieve the provisioning service metadata and security metadata, and then combine them with the
106
+ * modified values in a new body to update the provisioning service.
107
+ * @param resourceGroupName Resource group identifier.
108
+ * @param provisioningServiceName Name of provisioning service to create or update.
109
+ * @param iotDpsDescription Description of the provisioning service to create or update.
110
+ * @param options The options parameters.
111
+ */
112
+ beginCreateOrUpdate(
113
+ resourceGroupName: string,
114
+ provisioningServiceName: string,
115
+ iotDpsDescription: ProvisioningServiceDescription,
116
+ options?: IotDpsResourceCreateOrUpdateOptionalParams
117
+ ): Promise<
118
+ PollerLike<
119
+ PollOperationState<IotDpsResourceCreateOrUpdateResponse>,
120
+ IotDpsResourceCreateOrUpdateResponse
121
+ >
122
+ >;
123
+ /**
124
+ * Create or update the metadata of the provisioning service. The usual pattern to modify a property is
125
+ * to retrieve the provisioning service metadata and security metadata, and then combine them with the
126
+ * modified values in a new body to update the provisioning service.
127
+ * @param resourceGroupName Resource group identifier.
128
+ * @param provisioningServiceName Name of provisioning service to create or update.
129
+ * @param iotDpsDescription Description of the provisioning service to create or update.
130
+ * @param options The options parameters.
131
+ */
132
+ beginCreateOrUpdateAndWait(
133
+ resourceGroupName: string,
134
+ provisioningServiceName: string,
135
+ iotDpsDescription: ProvisioningServiceDescription,
136
+ options?: IotDpsResourceCreateOrUpdateOptionalParams
137
+ ): Promise<IotDpsResourceCreateOrUpdateResponse>;
138
+ /**
139
+ * Update an existing provisioning service's tags. to update other fields use the CreateOrUpdate method
140
+ * @param resourceGroupName Resource group identifier.
141
+ * @param provisioningServiceName Name of provisioning service to create or update.
142
+ * @param provisioningServiceTags Updated tag information to set into the provisioning service
143
+ * instance.
144
+ * @param options The options parameters.
145
+ */
146
+ beginUpdate(
147
+ resourceGroupName: string,
148
+ provisioningServiceName: string,
149
+ provisioningServiceTags: TagsResource,
150
+ options?: IotDpsResourceUpdateOptionalParams
151
+ ): Promise<
152
+ PollerLike<
153
+ PollOperationState<IotDpsResourceUpdateResponse>,
154
+ IotDpsResourceUpdateResponse
155
+ >
156
+ >;
157
+ /**
158
+ * Update an existing provisioning service's tags. to update other fields use the CreateOrUpdate method
159
+ * @param resourceGroupName Resource group identifier.
160
+ * @param provisioningServiceName Name of provisioning service to create or update.
161
+ * @param provisioningServiceTags Updated tag information to set into the provisioning service
162
+ * instance.
163
+ * @param options The options parameters.
164
+ */
165
+ beginUpdateAndWait(
166
+ resourceGroupName: string,
167
+ provisioningServiceName: string,
168
+ provisioningServiceTags: TagsResource,
169
+ options?: IotDpsResourceUpdateOptionalParams
170
+ ): Promise<IotDpsResourceUpdateResponse>;
171
+ /**
172
+ * Deletes the Provisioning Service.
173
+ * @param provisioningServiceName Name of provisioning service to delete.
174
+ * @param resourceGroupName Resource group identifier.
175
+ * @param options The options parameters.
176
+ */
177
+ beginDelete(
178
+ provisioningServiceName: string,
179
+ resourceGroupName: string,
180
+ options?: IotDpsResourceDeleteOptionalParams
181
+ ): Promise<PollerLike<PollOperationState<void>, void>>;
182
+ /**
183
+ * Deletes the Provisioning Service.
184
+ * @param provisioningServiceName Name of provisioning service to delete.
185
+ * @param resourceGroupName Resource group identifier.
186
+ * @param options The options parameters.
187
+ */
188
+ beginDeleteAndWait(
189
+ provisioningServiceName: string,
190
+ resourceGroupName: string,
191
+ options?: IotDpsResourceDeleteOptionalParams
192
+ ): Promise<void>;
193
+ /**
194
+ * Gets the status of a long running operation, such as create, update or delete a provisioning
195
+ * service.
196
+ * @param operationId Operation id corresponding to long running operation. Use this to poll for the
197
+ * status.
198
+ * @param resourceGroupName Resource group identifier.
199
+ * @param provisioningServiceName Name of provisioning service that the operation is running on.
200
+ * @param asyncinfo Async header used to poll on the status of the operation, obtained while creating
201
+ * the long running operation.
202
+ * @param options The options parameters.
203
+ */
204
+ getOperationResult(
205
+ operationId: string,
206
+ resourceGroupName: string,
207
+ provisioningServiceName: string,
208
+ asyncinfo: string,
209
+ options?: IotDpsResourceGetOperationResultOptionalParams
210
+ ): Promise<IotDpsResourceGetOperationResultResponse>;
211
+ /**
212
+ * Check if a provisioning service name is available. This will validate if the name is syntactically
213
+ * valid and if the name is usable
214
+ * @param argumentsParam Set the name parameter in the OperationInputs structure to the name of the
215
+ * provisioning service to check.
216
+ * @param options The options parameters.
217
+ */
218
+ checkProvisioningServiceNameAvailability(
219
+ argumentsParam: OperationInputs,
220
+ options?: IotDpsResourceCheckProvisioningServiceNameAvailabilityOptionalParams
221
+ ): Promise<IotDpsResourceCheckProvisioningServiceNameAvailabilityResponse>;
222
+ /**
223
+ * List primary and secondary keys for a specific key name
224
+ * @param provisioningServiceName Name of the provisioning service.
225
+ * @param keyName Logical key name to get key-values for.
226
+ * @param resourceGroupName The name of the resource group that contains the provisioning service.
227
+ * @param options The options parameters.
228
+ */
229
+ listKeysForKeyName(
230
+ provisioningServiceName: string,
231
+ keyName: string,
232
+ resourceGroupName: string,
233
+ options?: IotDpsResourceListKeysForKeyNameOptionalParams
234
+ ): Promise<IotDpsResourceListKeysForKeyNameResponse>;
235
+ /**
236
+ * List private link resources for the given provisioning service
237
+ * @param resourceGroupName The name of the resource group that contains the provisioning service.
238
+ * @param resourceName The name of the provisioning service.
239
+ * @param options The options parameters.
240
+ */
241
+ listPrivateLinkResources(
242
+ resourceGroupName: string,
243
+ resourceName: string,
244
+ options?: IotDpsResourceListPrivateLinkResourcesOptionalParams
245
+ ): Promise<IotDpsResourceListPrivateLinkResourcesResponse>;
246
+ /**
247
+ * Get the specified private link resource for the given provisioning service
248
+ * @param resourceGroupName The name of the resource group that contains the provisioning service.
249
+ * @param resourceName The name of the provisioning service.
250
+ * @param groupId The name of the private link resource
251
+ * @param options The options parameters.
252
+ */
253
+ getPrivateLinkResources(
254
+ resourceGroupName: string,
255
+ resourceName: string,
256
+ groupId: string,
257
+ options?: IotDpsResourceGetPrivateLinkResourcesOptionalParams
258
+ ): Promise<IotDpsResourceGetPrivateLinkResourcesResponse>;
259
+ /**
260
+ * List private endpoint connection properties
261
+ * @param resourceGroupName The name of the resource group that contains the provisioning service.
262
+ * @param resourceName The name of the provisioning service.
263
+ * @param options The options parameters.
264
+ */
265
+ listPrivateEndpointConnections(
266
+ resourceGroupName: string,
267
+ resourceName: string,
268
+ options?: IotDpsResourceListPrivateEndpointConnectionsOptionalParams
269
+ ): Promise<IotDpsResourceListPrivateEndpointConnectionsResponse>;
270
+ /**
271
+ * Get private endpoint connection properties
272
+ * @param resourceGroupName The name of the resource group that contains the provisioning service.
273
+ * @param resourceName The name of the provisioning service.
274
+ * @param privateEndpointConnectionName The name of the private endpoint connection
275
+ * @param options The options parameters.
276
+ */
277
+ getPrivateEndpointConnection(
278
+ resourceGroupName: string,
279
+ resourceName: string,
280
+ privateEndpointConnectionName: string,
281
+ options?: IotDpsResourceGetPrivateEndpointConnectionOptionalParams
282
+ ): Promise<IotDpsResourceGetPrivateEndpointConnectionResponse>;
283
+ /**
284
+ * Create or update the status of a private endpoint connection with the specified name
285
+ * @param resourceGroupName The name of the resource group that contains the provisioning service.
286
+ * @param resourceName The name of the provisioning service.
287
+ * @param privateEndpointConnectionName The name of the private endpoint connection
288
+ * @param privateEndpointConnection The private endpoint connection with updated properties
289
+ * @param options The options parameters.
290
+ */
291
+ beginCreateOrUpdatePrivateEndpointConnection(
292
+ resourceGroupName: string,
293
+ resourceName: string,
294
+ privateEndpointConnectionName: string,
295
+ privateEndpointConnection: PrivateEndpointConnection,
296
+ options?: IotDpsResourceCreateOrUpdatePrivateEndpointConnectionOptionalParams
297
+ ): Promise<
298
+ PollerLike<
299
+ PollOperationState<
300
+ IotDpsResourceCreateOrUpdatePrivateEndpointConnectionResponse
301
+ >,
302
+ IotDpsResourceCreateOrUpdatePrivateEndpointConnectionResponse
303
+ >
304
+ >;
305
+ /**
306
+ * Create or update the status of a private endpoint connection with the specified name
307
+ * @param resourceGroupName The name of the resource group that contains the provisioning service.
308
+ * @param resourceName The name of the provisioning service.
309
+ * @param privateEndpointConnectionName The name of the private endpoint connection
310
+ * @param privateEndpointConnection The private endpoint connection with updated properties
311
+ * @param options The options parameters.
312
+ */
313
+ beginCreateOrUpdatePrivateEndpointConnectionAndWait(
314
+ resourceGroupName: string,
315
+ resourceName: string,
316
+ privateEndpointConnectionName: string,
317
+ privateEndpointConnection: PrivateEndpointConnection,
318
+ options?: IotDpsResourceCreateOrUpdatePrivateEndpointConnectionOptionalParams
319
+ ): Promise<IotDpsResourceCreateOrUpdatePrivateEndpointConnectionResponse>;
320
+ /**
321
+ * Delete private endpoint connection with the specified name
322
+ * @param resourceGroupName The name of the resource group that contains the provisioning service.
323
+ * @param resourceName The name of the provisioning service.
324
+ * @param privateEndpointConnectionName The name of the private endpoint connection
325
+ * @param options The options parameters.
326
+ */
327
+ beginDeletePrivateEndpointConnection(
328
+ resourceGroupName: string,
329
+ resourceName: string,
330
+ privateEndpointConnectionName: string,
331
+ options?: IotDpsResourceDeletePrivateEndpointConnectionOptionalParams
332
+ ): Promise<
333
+ PollerLike<
334
+ PollOperationState<IotDpsResourceDeletePrivateEndpointConnectionResponse>,
335
+ IotDpsResourceDeletePrivateEndpointConnectionResponse
336
+ >
337
+ >;
338
+ /**
339
+ * Delete private endpoint connection with the specified name
340
+ * @param resourceGroupName The name of the resource group that contains the provisioning service.
341
+ * @param resourceName The name of the provisioning service.
342
+ * @param privateEndpointConnectionName The name of the private endpoint connection
343
+ * @param options The options parameters.
344
+ */
345
+ beginDeletePrivateEndpointConnectionAndWait(
346
+ resourceGroupName: string,
347
+ resourceName: string,
348
+ privateEndpointConnectionName: string,
349
+ options?: IotDpsResourceDeletePrivateEndpointConnectionOptionalParams
350
+ ): Promise<IotDpsResourceDeletePrivateEndpointConnectionResponse>;
351
+ }
@@ -0,0 +1,22 @@
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
+
9
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
+ import { Operation, OperationsListOptionalParams } from "../models";
11
+
12
+ /// <reference lib="esnext.asynciterable" />
13
+ /** Interface representing a Operations. */
14
+ export interface Operations {
15
+ /**
16
+ * Lists all of the available Microsoft.Devices REST API operations.
17
+ * @param options The options parameters.
18
+ */
19
+ list(
20
+ options?: OperationsListOptionalParams
21
+ ): PagedAsyncIterableIterator<Operation>;
22
+ }
package/tsconfig.json CHANGED
@@ -3,17 +3,17 @@
3
3
  "module": "es6",
4
4
  "moduleResolution": "node",
5
5
  "strict": true,
6
- "target": "es5",
6
+ "target": "es6",
7
7
  "sourceMap": true,
8
8
  "declarationMap": true,
9
9
  "esModuleInterop": true,
10
10
  "allowSyntheticDefaultImports": true,
11
11
  "forceConsistentCasingInFileNames": true,
12
- "lib": ["es6"],
12
+ "lib": ["es6", "dom"],
13
13
  "declaration": true,
14
- "outDir": "./esm",
14
+ "outDir": "./dist-esm",
15
15
  "importHelpers": true
16
16
  },
17
- "include": ["./lib/**/*.ts"],
17
+ "include": ["./src/**/*.ts", "./test/**/*.ts"],
18
18
  "exclude": ["node_modules"]
19
19
  }