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