@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
@@ -1,478 +0,0 @@
1
- /*
2
- * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * Licensed under the MIT License. See License.txt in the project root for
4
- * license information.
5
- *
6
- * Code generated by Microsoft (R) AutoRest Code Generator.
7
- * Changes may cause incorrect behavior and will be lost if the code is
8
- * regenerated.
9
- */
10
-
11
- import * as msRest from "@azure/ms-rest-js";
12
- import * as Models from "../models";
13
- import * as Mappers from "../models/dpsCertificateMappers";
14
- import * as Parameters from "../models/parameters";
15
- import { IotDpsClientContext } from "../iotDpsClientContext";
16
-
17
- /** Class representing a DpsCertificate. */
18
- export class DpsCertificate {
19
- private readonly client: IotDpsClientContext;
20
-
21
- /**
22
- * Create a DpsCertificate.
23
- * @param {IotDpsClientContext} client Reference to the service client.
24
- */
25
- constructor(client: IotDpsClientContext) {
26
- this.client = client;
27
- }
28
-
29
- /**
30
- * Get the certificate from the provisioning service.
31
- * @param certificateName Name of the certificate to retrieve.
32
- * @param resourceGroupName Resource group identifier.
33
- * @param provisioningServiceName Name of the provisioning service the certificate is associated
34
- * with.
35
- * @param [options] The optional parameters
36
- * @returns Promise<Models.DpsCertificateGetResponse>
37
- */
38
- get(certificateName: string, resourceGroupName: string, provisioningServiceName: string, options?: Models.DpsCertificateGetOptionalParams): Promise<Models.DpsCertificateGetResponse>;
39
- /**
40
- * @param certificateName Name of the certificate to retrieve.
41
- * @param resourceGroupName Resource group identifier.
42
- * @param provisioningServiceName Name of the provisioning service the certificate is associated
43
- * with.
44
- * @param callback The callback
45
- */
46
- get(certificateName: string, resourceGroupName: string, provisioningServiceName: string, callback: msRest.ServiceCallback<Models.CertificateResponse>): void;
47
- /**
48
- * @param certificateName Name of the certificate to retrieve.
49
- * @param resourceGroupName Resource group identifier.
50
- * @param provisioningServiceName Name of the provisioning service the certificate is associated
51
- * with.
52
- * @param options The optional parameters
53
- * @param callback The callback
54
- */
55
- get(certificateName: string, resourceGroupName: string, provisioningServiceName: string, options: Models.DpsCertificateGetOptionalParams, callback: msRest.ServiceCallback<Models.CertificateResponse>): void;
56
- get(certificateName: string, resourceGroupName: string, provisioningServiceName: string, options?: Models.DpsCertificateGetOptionalParams | msRest.ServiceCallback<Models.CertificateResponse>, callback?: msRest.ServiceCallback<Models.CertificateResponse>): Promise<Models.DpsCertificateGetResponse> {
57
- return this.client.sendOperationRequest(
58
- {
59
- certificateName,
60
- resourceGroupName,
61
- provisioningServiceName,
62
- options
63
- },
64
- getOperationSpec,
65
- callback) as Promise<Models.DpsCertificateGetResponse>;
66
- }
67
-
68
- /**
69
- * Add new certificate or update an existing certificate.
70
- * @summary Upload the certificate to the provisioning service.
71
- * @param resourceGroupName Resource group identifier.
72
- * @param provisioningServiceName The name of the provisioning service.
73
- * @param certificateName The name of the certificate create or update.
74
- * @param certificateDescription The certificate body.
75
- * @param [options] The optional parameters
76
- * @returns Promise<Models.DpsCertificateCreateOrUpdateResponse>
77
- */
78
- createOrUpdate(resourceGroupName: string, provisioningServiceName: string, certificateName: string, certificateDescription: Models.CertificateBodyDescription, options?: Models.DpsCertificateCreateOrUpdateOptionalParams): Promise<Models.DpsCertificateCreateOrUpdateResponse>;
79
- /**
80
- * @param resourceGroupName Resource group identifier.
81
- * @param provisioningServiceName The name of the provisioning service.
82
- * @param certificateName The name of the certificate create or update.
83
- * @param certificateDescription The certificate body.
84
- * @param callback The callback
85
- */
86
- createOrUpdate(resourceGroupName: string, provisioningServiceName: string, certificateName: string, certificateDescription: Models.CertificateBodyDescription, callback: msRest.ServiceCallback<Models.CertificateResponse>): void;
87
- /**
88
- * @param resourceGroupName Resource group identifier.
89
- * @param provisioningServiceName The name of the provisioning service.
90
- * @param certificateName The name of the certificate create or update.
91
- * @param certificateDescription The certificate body.
92
- * @param options The optional parameters
93
- * @param callback The callback
94
- */
95
- createOrUpdate(resourceGroupName: string, provisioningServiceName: string, certificateName: string, certificateDescription: Models.CertificateBodyDescription, options: Models.DpsCertificateCreateOrUpdateOptionalParams, callback: msRest.ServiceCallback<Models.CertificateResponse>): void;
96
- createOrUpdate(resourceGroupName: string, provisioningServiceName: string, certificateName: string, certificateDescription: Models.CertificateBodyDescription, options?: Models.DpsCertificateCreateOrUpdateOptionalParams | msRest.ServiceCallback<Models.CertificateResponse>, callback?: msRest.ServiceCallback<Models.CertificateResponse>): Promise<Models.DpsCertificateCreateOrUpdateResponse> {
97
- return this.client.sendOperationRequest(
98
- {
99
- resourceGroupName,
100
- provisioningServiceName,
101
- certificateName,
102
- certificateDescription,
103
- options
104
- },
105
- createOrUpdateOperationSpec,
106
- callback) as Promise<Models.DpsCertificateCreateOrUpdateResponse>;
107
- }
108
-
109
- /**
110
- * Deletes the specified certificate assosciated with the Provisioning Service
111
- * @summary Delete the Provisioning Service Certificate.
112
- * @param resourceGroupName Resource group identifier.
113
- * @param ifMatch ETag of the certificate
114
- * @param provisioningServiceName The name of the provisioning service.
115
- * @param certificateName This is a mandatory field, and is the logical name of the certificate
116
- * that the provisioning service will access by.
117
- * @param [options] The optional parameters
118
- * @returns Promise<msRest.RestResponse>
119
- */
120
- deleteMethod(resourceGroupName: string, ifMatch: string, provisioningServiceName: string, certificateName: string, options?: Models.DpsCertificateDeleteMethodOptionalParams): Promise<msRest.RestResponse>;
121
- /**
122
- * @param resourceGroupName Resource group identifier.
123
- * @param ifMatch ETag of the certificate
124
- * @param provisioningServiceName The name of the provisioning service.
125
- * @param certificateName This is a mandatory field, and is the logical name of the certificate
126
- * that the provisioning service will access by.
127
- * @param callback The callback
128
- */
129
- deleteMethod(resourceGroupName: string, ifMatch: string, provisioningServiceName: string, certificateName: string, callback: msRest.ServiceCallback<void>): void;
130
- /**
131
- * @param resourceGroupName Resource group identifier.
132
- * @param ifMatch ETag of the certificate
133
- * @param provisioningServiceName The name of the provisioning service.
134
- * @param certificateName This is a mandatory field, and is the logical name of the certificate
135
- * that the provisioning service will access by.
136
- * @param options The optional parameters
137
- * @param callback The callback
138
- */
139
- deleteMethod(resourceGroupName: string, ifMatch: string, provisioningServiceName: string, certificateName: string, options: Models.DpsCertificateDeleteMethodOptionalParams, callback: msRest.ServiceCallback<void>): void;
140
- deleteMethod(resourceGroupName: string, ifMatch: string, provisioningServiceName: string, certificateName: string, options?: Models.DpsCertificateDeleteMethodOptionalParams | msRest.ServiceCallback<void>, callback?: msRest.ServiceCallback<void>): Promise<msRest.RestResponse> {
141
- return this.client.sendOperationRequest(
142
- {
143
- resourceGroupName,
144
- ifMatch,
145
- provisioningServiceName,
146
- certificateName,
147
- options
148
- },
149
- deleteMethodOperationSpec,
150
- callback);
151
- }
152
-
153
- /**
154
- * Get all the certificates tied to the provisioning service.
155
- * @param resourceGroupName Name of resource group.
156
- * @param provisioningServiceName Name of provisioning service to retrieve certificates for.
157
- * @param [options] The optional parameters
158
- * @returns Promise<Models.DpsCertificateListResponse>
159
- */
160
- list(resourceGroupName: string, provisioningServiceName: string, options?: msRest.RequestOptionsBase): Promise<Models.DpsCertificateListResponse>;
161
- /**
162
- * @param resourceGroupName Name of resource group.
163
- * @param provisioningServiceName Name of provisioning service to retrieve certificates for.
164
- * @param callback The callback
165
- */
166
- list(resourceGroupName: string, provisioningServiceName: string, callback: msRest.ServiceCallback<Models.CertificateListDescription>): void;
167
- /**
168
- * @param resourceGroupName Name of resource group.
169
- * @param provisioningServiceName Name of provisioning service to retrieve certificates for.
170
- * @param options The optional parameters
171
- * @param callback The callback
172
- */
173
- list(resourceGroupName: string, provisioningServiceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.CertificateListDescription>): void;
174
- list(resourceGroupName: string, provisioningServiceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.CertificateListDescription>, callback?: msRest.ServiceCallback<Models.CertificateListDescription>): Promise<Models.DpsCertificateListResponse> {
175
- return this.client.sendOperationRequest(
176
- {
177
- resourceGroupName,
178
- provisioningServiceName,
179
- options
180
- },
181
- listOperationSpec,
182
- callback) as Promise<Models.DpsCertificateListResponse>;
183
- }
184
-
185
- /**
186
- * Generate verification code for Proof of Possession.
187
- * @param certificateName The mandatory logical name of the certificate, that the provisioning
188
- * service uses to access.
189
- * @param ifMatch ETag of the certificate. This is required to update an existing certificate, and
190
- * ignored while creating a brand new certificate.
191
- * @param resourceGroupName name of resource group.
192
- * @param provisioningServiceName Name of provisioning service.
193
- * @param [options] The optional parameters
194
- * @returns Promise<Models.DpsCertificateGenerateVerificationCodeResponse>
195
- */
196
- generateVerificationCode(certificateName: string, ifMatch: string, resourceGroupName: string, provisioningServiceName: string, options?: Models.DpsCertificateGenerateVerificationCodeOptionalParams): Promise<Models.DpsCertificateGenerateVerificationCodeResponse>;
197
- /**
198
- * @param certificateName The mandatory logical name of the certificate, that the provisioning
199
- * service uses to access.
200
- * @param ifMatch ETag of the certificate. This is required to update an existing certificate, and
201
- * ignored while creating a brand new certificate.
202
- * @param resourceGroupName name of resource group.
203
- * @param provisioningServiceName Name of provisioning service.
204
- * @param callback The callback
205
- */
206
- generateVerificationCode(certificateName: string, ifMatch: string, resourceGroupName: string, provisioningServiceName: string, callback: msRest.ServiceCallback<Models.VerificationCodeResponse>): void;
207
- /**
208
- * @param certificateName The mandatory logical name of the certificate, that the provisioning
209
- * service uses to access.
210
- * @param ifMatch ETag of the certificate. This is required to update an existing certificate, and
211
- * ignored while creating a brand new certificate.
212
- * @param resourceGroupName name of resource group.
213
- * @param provisioningServiceName Name of provisioning service.
214
- * @param options The optional parameters
215
- * @param callback The callback
216
- */
217
- generateVerificationCode(certificateName: string, ifMatch: string, resourceGroupName: string, provisioningServiceName: string, options: Models.DpsCertificateGenerateVerificationCodeOptionalParams, callback: msRest.ServiceCallback<Models.VerificationCodeResponse>): void;
218
- generateVerificationCode(certificateName: string, ifMatch: string, resourceGroupName: string, provisioningServiceName: string, options?: Models.DpsCertificateGenerateVerificationCodeOptionalParams | msRest.ServiceCallback<Models.VerificationCodeResponse>, callback?: msRest.ServiceCallback<Models.VerificationCodeResponse>): Promise<Models.DpsCertificateGenerateVerificationCodeResponse> {
219
- return this.client.sendOperationRequest(
220
- {
221
- certificateName,
222
- ifMatch,
223
- resourceGroupName,
224
- provisioningServiceName,
225
- options
226
- },
227
- generateVerificationCodeOperationSpec,
228
- callback) as Promise<Models.DpsCertificateGenerateVerificationCodeResponse>;
229
- }
230
-
231
- /**
232
- * Verifies the certificate's private key possession by providing the leaf cert issued by the
233
- * verifying pre uploaded certificate.
234
- * @summary Verify certificate's private key possession.
235
- * @param certificateName The mandatory logical name of the certificate, that the provisioning
236
- * service uses to access.
237
- * @param ifMatch ETag of the certificate.
238
- * @param request The name of the certificate
239
- * @param resourceGroupName Resource group name.
240
- * @param provisioningServiceName Provisioning service name.
241
- * @param [options] The optional parameters
242
- * @returns Promise<Models.DpsCertificateVerifyCertificateResponse>
243
- */
244
- verifyCertificate(certificateName: string, ifMatch: string, request: Models.VerificationCodeRequest, resourceGroupName: string, provisioningServiceName: string, options?: Models.DpsCertificateVerifyCertificateOptionalParams): Promise<Models.DpsCertificateVerifyCertificateResponse>;
245
- /**
246
- * @param certificateName The mandatory logical name of the certificate, that the provisioning
247
- * service uses to access.
248
- * @param ifMatch ETag of the certificate.
249
- * @param request The name of the certificate
250
- * @param resourceGroupName Resource group name.
251
- * @param provisioningServiceName Provisioning service name.
252
- * @param callback The callback
253
- */
254
- verifyCertificate(certificateName: string, ifMatch: string, request: Models.VerificationCodeRequest, resourceGroupName: string, provisioningServiceName: string, callback: msRest.ServiceCallback<Models.CertificateResponse>): void;
255
- /**
256
- * @param certificateName The mandatory logical name of the certificate, that the provisioning
257
- * service uses to access.
258
- * @param ifMatch ETag of the certificate.
259
- * @param request The name of the certificate
260
- * @param resourceGroupName Resource group name.
261
- * @param provisioningServiceName Provisioning service name.
262
- * @param options The optional parameters
263
- * @param callback The callback
264
- */
265
- verifyCertificate(certificateName: string, ifMatch: string, request: Models.VerificationCodeRequest, resourceGroupName: string, provisioningServiceName: string, options: Models.DpsCertificateVerifyCertificateOptionalParams, callback: msRest.ServiceCallback<Models.CertificateResponse>): void;
266
- verifyCertificate(certificateName: string, ifMatch: string, request: Models.VerificationCodeRequest, resourceGroupName: string, provisioningServiceName: string, options?: Models.DpsCertificateVerifyCertificateOptionalParams | msRest.ServiceCallback<Models.CertificateResponse>, callback?: msRest.ServiceCallback<Models.CertificateResponse>): Promise<Models.DpsCertificateVerifyCertificateResponse> {
267
- return this.client.sendOperationRequest(
268
- {
269
- certificateName,
270
- ifMatch,
271
- request,
272
- resourceGroupName,
273
- provisioningServiceName,
274
- options
275
- },
276
- verifyCertificateOperationSpec,
277
- callback) as Promise<Models.DpsCertificateVerifyCertificateResponse>;
278
- }
279
- }
280
-
281
- // Operation Specifications
282
- const serializer = new msRest.Serializer(Mappers);
283
- const getOperationSpec: msRest.OperationSpec = {
284
- httpMethod: "GET",
285
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}/certificates/{certificateName}",
286
- urlParameters: [
287
- Parameters.certificateName0,
288
- Parameters.subscriptionId,
289
- Parameters.resourceGroupName,
290
- Parameters.provisioningServiceName
291
- ],
292
- queryParameters: [
293
- Parameters.apiVersion
294
- ],
295
- headerParameters: [
296
- Parameters.ifMatch0,
297
- Parameters.acceptLanguage
298
- ],
299
- responses: {
300
- 200: {
301
- bodyMapper: Mappers.CertificateResponse
302
- },
303
- default: {
304
- bodyMapper: Mappers.ErrorDetails
305
- }
306
- },
307
- serializer
308
- };
309
-
310
- const createOrUpdateOperationSpec: msRest.OperationSpec = {
311
- httpMethod: "PUT",
312
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}/certificates/{certificateName}",
313
- urlParameters: [
314
- Parameters.subscriptionId,
315
- Parameters.resourceGroupName,
316
- Parameters.provisioningServiceName,
317
- Parameters.certificateName1
318
- ],
319
- queryParameters: [
320
- Parameters.apiVersion
321
- ],
322
- headerParameters: [
323
- Parameters.ifMatch0,
324
- Parameters.acceptLanguage
325
- ],
326
- requestBody: {
327
- parameterPath: "certificateDescription",
328
- mapper: {
329
- ...Mappers.CertificateBodyDescription,
330
- required: true
331
- }
332
- },
333
- responses: {
334
- 200: {
335
- bodyMapper: Mappers.CertificateResponse
336
- },
337
- default: {
338
- bodyMapper: Mappers.ErrorDetails
339
- }
340
- },
341
- serializer
342
- };
343
-
344
- const deleteMethodOperationSpec: msRest.OperationSpec = {
345
- httpMethod: "DELETE",
346
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}/certificates/{certificateName}",
347
- urlParameters: [
348
- Parameters.subscriptionId,
349
- Parameters.resourceGroupName,
350
- Parameters.provisioningServiceName,
351
- Parameters.certificateName0
352
- ],
353
- queryParameters: [
354
- Parameters.certificatename,
355
- Parameters.certificaterawBytes,
356
- Parameters.certificateisVerified,
357
- Parameters.certificatepurpose,
358
- Parameters.certificatecreated,
359
- Parameters.certificatelastUpdated,
360
- Parameters.certificatehasPrivateKey,
361
- Parameters.certificatenonce,
362
- Parameters.apiVersion
363
- ],
364
- headerParameters: [
365
- Parameters.ifMatch1,
366
- Parameters.acceptLanguage
367
- ],
368
- responses: {
369
- 200: {},
370
- 204: {},
371
- default: {
372
- bodyMapper: Mappers.ErrorDetails
373
- }
374
- },
375
- serializer
376
- };
377
-
378
- const listOperationSpec: msRest.OperationSpec = {
379
- httpMethod: "GET",
380
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}/certificates",
381
- urlParameters: [
382
- Parameters.subscriptionId,
383
- Parameters.resourceGroupName,
384
- Parameters.provisioningServiceName
385
- ],
386
- queryParameters: [
387
- Parameters.apiVersion
388
- ],
389
- headerParameters: [
390
- Parameters.acceptLanguage
391
- ],
392
- responses: {
393
- 200: {
394
- bodyMapper: Mappers.CertificateListDescription
395
- },
396
- default: {
397
- bodyMapper: Mappers.ErrorDetails
398
- }
399
- },
400
- serializer
401
- };
402
-
403
- const generateVerificationCodeOperationSpec: msRest.OperationSpec = {
404
- httpMethod: "POST",
405
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}/certificates/{certificateName}/generateVerificationCode",
406
- urlParameters: [
407
- Parameters.certificateName0,
408
- Parameters.subscriptionId,
409
- Parameters.resourceGroupName,
410
- Parameters.provisioningServiceName
411
- ],
412
- queryParameters: [
413
- Parameters.certificatename,
414
- Parameters.certificaterawBytes,
415
- Parameters.certificateisVerified,
416
- Parameters.certificatepurpose,
417
- Parameters.certificatecreated,
418
- Parameters.certificatelastUpdated,
419
- Parameters.certificatehasPrivateKey,
420
- Parameters.certificatenonce,
421
- Parameters.apiVersion
422
- ],
423
- headerParameters: [
424
- Parameters.ifMatch1,
425
- Parameters.acceptLanguage
426
- ],
427
- responses: {
428
- 200: {
429
- bodyMapper: Mappers.VerificationCodeResponse
430
- },
431
- default: {
432
- bodyMapper: Mappers.ErrorDetails
433
- }
434
- },
435
- serializer
436
- };
437
-
438
- const verifyCertificateOperationSpec: msRest.OperationSpec = {
439
- httpMethod: "POST",
440
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}/certificates/{certificateName}/verify",
441
- urlParameters: [
442
- Parameters.certificateName0,
443
- Parameters.subscriptionId,
444
- Parameters.resourceGroupName,
445
- Parameters.provisioningServiceName
446
- ],
447
- queryParameters: [
448
- Parameters.certificatename,
449
- Parameters.certificaterawBytes,
450
- Parameters.certificateisVerified,
451
- Parameters.certificatepurpose,
452
- Parameters.certificatecreated,
453
- Parameters.certificatelastUpdated,
454
- Parameters.certificatehasPrivateKey,
455
- Parameters.certificatenonce,
456
- Parameters.apiVersion
457
- ],
458
- headerParameters: [
459
- Parameters.ifMatch1,
460
- Parameters.acceptLanguage
461
- ],
462
- requestBody: {
463
- parameterPath: "request",
464
- mapper: {
465
- ...Mappers.VerificationCodeRequest,
466
- required: true
467
- }
468
- },
469
- responses: {
470
- 200: {
471
- bodyMapper: Mappers.CertificateResponse
472
- },
473
- default: {
474
- bodyMapper: Mappers.ErrorDetails
475
- }
476
- },
477
- serializer
478
- };