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