@azure/arm-attestation 1.0.0 → 2.0.1-alpha.20211230.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +21 -0
- package/{LICENSE.txt → LICENSE} +2 -2
- package/README.md +72 -73
- package/dist/index.js +1319 -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/attestationManagementClient.d.ts +20 -0
- package/dist-esm/src/attestationManagementClient.d.ts.map +1 -0
- package/dist-esm/src/attestationManagementClient.js +53 -0
- package/dist-esm/src/attestationManagementClient.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/models/index.d.ts +389 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +38 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +21 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/mappers.js +239 -164
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +15 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/dist-esm/src/models/parameters.js +138 -0
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/operations/attestationProviders.d.ts +65 -0
- package/dist-esm/src/operations/attestationProviders.d.ts.map +1 -0
- package/dist-esm/src/operations/attestationProviders.js +254 -0
- package/dist-esm/src/operations/attestationProviders.js.map +1 -0
- package/dist-esm/src/operations/index.d.ts +4 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/dist-esm/src/operations/index.js +11 -0
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operations/operations.d.ts +18 -0
- package/dist-esm/src/operations/operations.d.ts.map +1 -0
- package/dist-esm/src/operations/operations.js +46 -0
- package/dist-esm/src/operations/operations.js.map +1 -0
- package/dist-esm/src/operations/privateEndpointConnections.d.ts +58 -0
- package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -0
- package/dist-esm/src/operations/privateEndpointConnections.js +216 -0
- package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/attestationProviders.d.ts +57 -0
- package/dist-esm/src/operationsInterfaces/attestationProviders.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/attestationProviders.js +9 -0
- package/dist-esm/src/operationsInterfaces/attestationProviders.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/operations.d.ts +10 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.js +9 -0
- package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts +41 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js +9 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js.map +1 -0
- package/dist-esm/test/attestation_examples.d.ts +4 -0
- package/dist-esm/test/attestation_examples.d.ts.map +1 -0
- package/dist-esm/test/attestation_examples.js +94 -0
- package/dist-esm/test/attestation_examples.js.map +1 -0
- package/package.json +63 -21
- package/review/arm-attestation.api.md +346 -0
- package/rollup.config.js +181 -30
- package/src/attestationManagementClient.ts +74 -31
- package/src/index.ts +12 -0
- package/src/models/index.ts +299 -384
- package/src/models/mappers.ts +242 -162
- package/src/models/parameters.ts +106 -29
- package/src/operations/attestationProviders.ts +178 -315
- package/src/operations/index.ts +4 -5
- package/src/operations/operations.ts +29 -44
- package/src/operations/privateEndpointConnections.ts +277 -0
- package/src/operationsInterfaces/attestationProviders.ts +111 -0
- package/src/operationsInterfaces/index.ts +11 -0
- package/src/operationsInterfaces/operations.ts +21 -0
- package/src/operationsInterfaces/privateEndpointConnections.ts +78 -0
- package/tsconfig.json +3 -3
- package/types/arm-attestation.d.ts +565 -0
- package/types/tsdoc-metadata.json +11 -0
- package/dist/arm-attestation.js +0 -1105
- package/dist/arm-attestation.js.map +0 -1
- package/dist/arm-attestation.min.js +0 -1
- package/dist/arm-attestation.min.js.map +0 -1
- package/esm/attestationManagementClient.d.ts +0 -19
- package/esm/attestationManagementClient.d.ts.map +0 -1
- package/esm/attestationManagementClient.js +0 -34
- package/esm/attestationManagementClient.js.map +0 -1
- package/esm/attestationManagementClientContext.d.ts +0 -16
- package/esm/attestationManagementClientContext.d.ts.map +0 -1
- package/esm/attestationManagementClientContext.js +0 -56
- package/esm/attestationManagementClientContext.js.map +0 -1
- package/esm/models/attestationProvidersMappers.d.ts +0 -2
- package/esm/models/attestationProvidersMappers.d.ts.map +0 -1
- package/esm/models/attestationProvidersMappers.js +0 -9
- package/esm/models/attestationProvidersMappers.js.map +0 -1
- package/esm/models/index.d.ts +0 -492
- package/esm/models/index.d.ts.map +0 -1
- package/esm/models/index.js +0 -8
- package/esm/models/index.js.map +0 -1
- package/esm/models/mappers.d.ts +0 -19
- 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 +0 -9
- package/esm/models/operationsMappers.js.map +0 -1
- package/esm/models/parameters.d.ts +0 -8
- package/esm/models/parameters.d.ts.map +0 -1
- package/esm/models/parameters.js +0 -81
- package/esm/models/parameters.js.map +0 -1
- package/esm/operations/attestationProviders.d.ts +0 -169
- package/esm/operations/attestationProviders.d.ts.map +0 -1
- package/esm/operations/attestationProviders.js +0 -277
- package/esm/operations/attestationProviders.js.map +0 -1
- package/esm/operations/index.d.ts +0 -3
- package/esm/operations/index.d.ts.map +0 -1
- package/esm/operations/index.js +0 -12
- package/esm/operations/index.js.map +0 -1
- package/esm/operations/operations.d.ts +0 -28
- package/esm/operations/operations.d.ts.map +0 -1
- package/esm/operations/operations.js +0 -51
- package/esm/operations/operations.js.map +0 -1
- package/src/attestationManagementClientContext.ts +0 -62
- package/src/models/attestationProvidersMappers.ts +0 -24
- package/src/models/operationsMappers.ts +0 -15
package/dist/index.js
ADDED
|
@@ -0,0 +1,1319 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var coreClient = require('@azure/core-client');
|
|
6
|
+
var tslib = require('tslib');
|
|
7
|
+
|
|
8
|
+
/*
|
|
9
|
+
* Copyright (c) Microsoft Corporation.
|
|
10
|
+
* Licensed under the MIT License.
|
|
11
|
+
*
|
|
12
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
13
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
14
|
+
*/
|
|
15
|
+
(function (KnownCreatedByType) {
|
|
16
|
+
KnownCreatedByType["User"] = "User";
|
|
17
|
+
KnownCreatedByType["Application"] = "Application";
|
|
18
|
+
KnownCreatedByType["ManagedIdentity"] = "ManagedIdentity";
|
|
19
|
+
KnownCreatedByType["Key"] = "Key";
|
|
20
|
+
})(exports.KnownCreatedByType || (exports.KnownCreatedByType = {}));
|
|
21
|
+
(function (KnownAttestationServiceStatus) {
|
|
22
|
+
KnownAttestationServiceStatus["Ready"] = "Ready";
|
|
23
|
+
KnownAttestationServiceStatus["NotReady"] = "NotReady";
|
|
24
|
+
KnownAttestationServiceStatus["Error"] = "Error";
|
|
25
|
+
})(exports.KnownAttestationServiceStatus || (exports.KnownAttestationServiceStatus = {}));
|
|
26
|
+
(function (KnownPrivateEndpointServiceConnectionStatus) {
|
|
27
|
+
KnownPrivateEndpointServiceConnectionStatus["Pending"] = "Pending";
|
|
28
|
+
KnownPrivateEndpointServiceConnectionStatus["Approved"] = "Approved";
|
|
29
|
+
KnownPrivateEndpointServiceConnectionStatus["Rejected"] = "Rejected";
|
|
30
|
+
})(exports.KnownPrivateEndpointServiceConnectionStatus || (exports.KnownPrivateEndpointServiceConnectionStatus = {}));
|
|
31
|
+
(function (KnownPrivateEndpointConnectionProvisioningState) {
|
|
32
|
+
KnownPrivateEndpointConnectionProvisioningState["Succeeded"] = "Succeeded";
|
|
33
|
+
KnownPrivateEndpointConnectionProvisioningState["Creating"] = "Creating";
|
|
34
|
+
KnownPrivateEndpointConnectionProvisioningState["Deleting"] = "Deleting";
|
|
35
|
+
KnownPrivateEndpointConnectionProvisioningState["Failed"] = "Failed";
|
|
36
|
+
})(exports.KnownPrivateEndpointConnectionProvisioningState || (exports.KnownPrivateEndpointConnectionProvisioningState = {}));
|
|
37
|
+
|
|
38
|
+
/*
|
|
39
|
+
* Copyright (c) Microsoft Corporation.
|
|
40
|
+
* Licensed under the MIT License.
|
|
41
|
+
*
|
|
42
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
43
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
44
|
+
*/
|
|
45
|
+
const OperationList = {
|
|
46
|
+
type: {
|
|
47
|
+
name: "Composite",
|
|
48
|
+
className: "OperationList",
|
|
49
|
+
modelProperties: {
|
|
50
|
+
systemData: {
|
|
51
|
+
serializedName: "systemData",
|
|
52
|
+
type: {
|
|
53
|
+
name: "Composite",
|
|
54
|
+
className: "SystemData"
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
value: {
|
|
58
|
+
serializedName: "value",
|
|
59
|
+
type: {
|
|
60
|
+
name: "Sequence",
|
|
61
|
+
element: {
|
|
62
|
+
type: {
|
|
63
|
+
name: "Composite",
|
|
64
|
+
className: "OperationsDefinition"
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
const SystemData = {
|
|
73
|
+
type: {
|
|
74
|
+
name: "Composite",
|
|
75
|
+
className: "SystemData",
|
|
76
|
+
modelProperties: {
|
|
77
|
+
createdBy: {
|
|
78
|
+
serializedName: "createdBy",
|
|
79
|
+
type: {
|
|
80
|
+
name: "String"
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
createdByType: {
|
|
84
|
+
serializedName: "createdByType",
|
|
85
|
+
type: {
|
|
86
|
+
name: "String"
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
createdAt: {
|
|
90
|
+
serializedName: "createdAt",
|
|
91
|
+
type: {
|
|
92
|
+
name: "DateTime"
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
lastModifiedBy: {
|
|
96
|
+
serializedName: "lastModifiedBy",
|
|
97
|
+
type: {
|
|
98
|
+
name: "String"
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
lastModifiedByType: {
|
|
102
|
+
serializedName: "lastModifiedByType",
|
|
103
|
+
type: {
|
|
104
|
+
name: "String"
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
lastModifiedAt: {
|
|
108
|
+
serializedName: "lastModifiedAt",
|
|
109
|
+
type: {
|
|
110
|
+
name: "DateTime"
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
};
|
|
116
|
+
const OperationsDefinition = {
|
|
117
|
+
type: {
|
|
118
|
+
name: "Composite",
|
|
119
|
+
className: "OperationsDefinition",
|
|
120
|
+
modelProperties: {
|
|
121
|
+
name: {
|
|
122
|
+
serializedName: "name",
|
|
123
|
+
type: {
|
|
124
|
+
name: "String"
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
display: {
|
|
128
|
+
serializedName: "display",
|
|
129
|
+
type: {
|
|
130
|
+
name: "Composite",
|
|
131
|
+
className: "OperationsDisplayDefinition"
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
};
|
|
137
|
+
const OperationsDisplayDefinition = {
|
|
138
|
+
type: {
|
|
139
|
+
name: "Composite",
|
|
140
|
+
className: "OperationsDisplayDefinition",
|
|
141
|
+
modelProperties: {
|
|
142
|
+
provider: {
|
|
143
|
+
serializedName: "provider",
|
|
144
|
+
type: {
|
|
145
|
+
name: "String"
|
|
146
|
+
}
|
|
147
|
+
},
|
|
148
|
+
resource: {
|
|
149
|
+
serializedName: "resource",
|
|
150
|
+
type: {
|
|
151
|
+
name: "String"
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
operation: {
|
|
155
|
+
serializedName: "operation",
|
|
156
|
+
type: {
|
|
157
|
+
name: "String"
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
description: {
|
|
161
|
+
serializedName: "description",
|
|
162
|
+
type: {
|
|
163
|
+
name: "String"
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
};
|
|
169
|
+
const CloudError = {
|
|
170
|
+
type: {
|
|
171
|
+
name: "Composite",
|
|
172
|
+
className: "CloudError",
|
|
173
|
+
modelProperties: {
|
|
174
|
+
error: {
|
|
175
|
+
serializedName: "error",
|
|
176
|
+
type: {
|
|
177
|
+
name: "Composite",
|
|
178
|
+
className: "CloudErrorBody"
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
};
|
|
184
|
+
const CloudErrorBody = {
|
|
185
|
+
type: {
|
|
186
|
+
name: "Composite",
|
|
187
|
+
className: "CloudErrorBody",
|
|
188
|
+
modelProperties: {
|
|
189
|
+
code: {
|
|
190
|
+
serializedName: "code",
|
|
191
|
+
type: {
|
|
192
|
+
name: "String"
|
|
193
|
+
}
|
|
194
|
+
},
|
|
195
|
+
message: {
|
|
196
|
+
serializedName: "message",
|
|
197
|
+
type: {
|
|
198
|
+
name: "String"
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
};
|
|
204
|
+
const PrivateEndpoint = {
|
|
205
|
+
type: {
|
|
206
|
+
name: "Composite",
|
|
207
|
+
className: "PrivateEndpoint",
|
|
208
|
+
modelProperties: {
|
|
209
|
+
id: {
|
|
210
|
+
serializedName: "id",
|
|
211
|
+
readOnly: true,
|
|
212
|
+
type: {
|
|
213
|
+
name: "String"
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
};
|
|
219
|
+
const PrivateLinkServiceConnectionState = {
|
|
220
|
+
type: {
|
|
221
|
+
name: "Composite",
|
|
222
|
+
className: "PrivateLinkServiceConnectionState",
|
|
223
|
+
modelProperties: {
|
|
224
|
+
status: {
|
|
225
|
+
serializedName: "status",
|
|
226
|
+
type: {
|
|
227
|
+
name: "String"
|
|
228
|
+
}
|
|
229
|
+
},
|
|
230
|
+
description: {
|
|
231
|
+
serializedName: "description",
|
|
232
|
+
type: {
|
|
233
|
+
name: "String"
|
|
234
|
+
}
|
|
235
|
+
},
|
|
236
|
+
actionsRequired: {
|
|
237
|
+
serializedName: "actionsRequired",
|
|
238
|
+
type: {
|
|
239
|
+
name: "String"
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
};
|
|
245
|
+
const Resource = {
|
|
246
|
+
type: {
|
|
247
|
+
name: "Composite",
|
|
248
|
+
className: "Resource",
|
|
249
|
+
modelProperties: {
|
|
250
|
+
id: {
|
|
251
|
+
serializedName: "id",
|
|
252
|
+
readOnly: true,
|
|
253
|
+
type: {
|
|
254
|
+
name: "String"
|
|
255
|
+
}
|
|
256
|
+
},
|
|
257
|
+
name: {
|
|
258
|
+
serializedName: "name",
|
|
259
|
+
readOnly: true,
|
|
260
|
+
type: {
|
|
261
|
+
name: "String"
|
|
262
|
+
}
|
|
263
|
+
},
|
|
264
|
+
type: {
|
|
265
|
+
serializedName: "type",
|
|
266
|
+
readOnly: true,
|
|
267
|
+
type: {
|
|
268
|
+
name: "String"
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
};
|
|
274
|
+
const AttestationServiceCreationParams = {
|
|
275
|
+
type: {
|
|
276
|
+
name: "Composite",
|
|
277
|
+
className: "AttestationServiceCreationParams",
|
|
278
|
+
modelProperties: {
|
|
279
|
+
location: {
|
|
280
|
+
serializedName: "location",
|
|
281
|
+
required: true,
|
|
282
|
+
type: {
|
|
283
|
+
name: "String"
|
|
284
|
+
}
|
|
285
|
+
},
|
|
286
|
+
tags: {
|
|
287
|
+
serializedName: "tags",
|
|
288
|
+
type: {
|
|
289
|
+
name: "Dictionary",
|
|
290
|
+
value: { type: { name: "String" } }
|
|
291
|
+
}
|
|
292
|
+
},
|
|
293
|
+
properties: {
|
|
294
|
+
serializedName: "properties",
|
|
295
|
+
type: {
|
|
296
|
+
name: "Composite",
|
|
297
|
+
className: "AttestationServiceCreationSpecificParams"
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
};
|
|
303
|
+
const AttestationServiceCreationSpecificParams = {
|
|
304
|
+
type: {
|
|
305
|
+
name: "Composite",
|
|
306
|
+
className: "AttestationServiceCreationSpecificParams",
|
|
307
|
+
modelProperties: {
|
|
308
|
+
policySigningCertificates: {
|
|
309
|
+
serializedName: "policySigningCertificates",
|
|
310
|
+
type: {
|
|
311
|
+
name: "Composite",
|
|
312
|
+
className: "JsonWebKeySet"
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
};
|
|
318
|
+
const JsonWebKeySet = {
|
|
319
|
+
type: {
|
|
320
|
+
name: "Composite",
|
|
321
|
+
className: "JsonWebKeySet",
|
|
322
|
+
modelProperties: {
|
|
323
|
+
keys: {
|
|
324
|
+
serializedName: "keys",
|
|
325
|
+
type: {
|
|
326
|
+
name: "Sequence",
|
|
327
|
+
element: {
|
|
328
|
+
type: {
|
|
329
|
+
name: "Composite",
|
|
330
|
+
className: "JsonWebKey"
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
};
|
|
338
|
+
const JsonWebKey = {
|
|
339
|
+
type: {
|
|
340
|
+
name: "Composite",
|
|
341
|
+
className: "JsonWebKey",
|
|
342
|
+
modelProperties: {
|
|
343
|
+
alg: {
|
|
344
|
+
serializedName: "alg",
|
|
345
|
+
type: {
|
|
346
|
+
name: "String"
|
|
347
|
+
}
|
|
348
|
+
},
|
|
349
|
+
crv: {
|
|
350
|
+
serializedName: "crv",
|
|
351
|
+
type: {
|
|
352
|
+
name: "String"
|
|
353
|
+
}
|
|
354
|
+
},
|
|
355
|
+
d: {
|
|
356
|
+
serializedName: "d",
|
|
357
|
+
type: {
|
|
358
|
+
name: "String"
|
|
359
|
+
}
|
|
360
|
+
},
|
|
361
|
+
dp: {
|
|
362
|
+
serializedName: "dp",
|
|
363
|
+
type: {
|
|
364
|
+
name: "String"
|
|
365
|
+
}
|
|
366
|
+
},
|
|
367
|
+
dq: {
|
|
368
|
+
serializedName: "dq",
|
|
369
|
+
type: {
|
|
370
|
+
name: "String"
|
|
371
|
+
}
|
|
372
|
+
},
|
|
373
|
+
e: {
|
|
374
|
+
serializedName: "e",
|
|
375
|
+
type: {
|
|
376
|
+
name: "String"
|
|
377
|
+
}
|
|
378
|
+
},
|
|
379
|
+
k: {
|
|
380
|
+
serializedName: "k",
|
|
381
|
+
type: {
|
|
382
|
+
name: "String"
|
|
383
|
+
}
|
|
384
|
+
},
|
|
385
|
+
kid: {
|
|
386
|
+
serializedName: "kid",
|
|
387
|
+
type: {
|
|
388
|
+
name: "String"
|
|
389
|
+
}
|
|
390
|
+
},
|
|
391
|
+
kty: {
|
|
392
|
+
serializedName: "kty",
|
|
393
|
+
required: true,
|
|
394
|
+
type: {
|
|
395
|
+
name: "String"
|
|
396
|
+
}
|
|
397
|
+
},
|
|
398
|
+
n: {
|
|
399
|
+
serializedName: "n",
|
|
400
|
+
type: {
|
|
401
|
+
name: "String"
|
|
402
|
+
}
|
|
403
|
+
},
|
|
404
|
+
p: {
|
|
405
|
+
serializedName: "p",
|
|
406
|
+
type: {
|
|
407
|
+
name: "String"
|
|
408
|
+
}
|
|
409
|
+
},
|
|
410
|
+
q: {
|
|
411
|
+
serializedName: "q",
|
|
412
|
+
type: {
|
|
413
|
+
name: "String"
|
|
414
|
+
}
|
|
415
|
+
},
|
|
416
|
+
qi: {
|
|
417
|
+
serializedName: "qi",
|
|
418
|
+
type: {
|
|
419
|
+
name: "String"
|
|
420
|
+
}
|
|
421
|
+
},
|
|
422
|
+
use: {
|
|
423
|
+
serializedName: "use",
|
|
424
|
+
type: {
|
|
425
|
+
name: "String"
|
|
426
|
+
}
|
|
427
|
+
},
|
|
428
|
+
x: {
|
|
429
|
+
serializedName: "x",
|
|
430
|
+
type: {
|
|
431
|
+
name: "String"
|
|
432
|
+
}
|
|
433
|
+
},
|
|
434
|
+
x5C: {
|
|
435
|
+
serializedName: "x5c",
|
|
436
|
+
type: {
|
|
437
|
+
name: "Sequence",
|
|
438
|
+
element: {
|
|
439
|
+
type: {
|
|
440
|
+
name: "String"
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
},
|
|
445
|
+
y: {
|
|
446
|
+
serializedName: "y",
|
|
447
|
+
type: {
|
|
448
|
+
name: "String"
|
|
449
|
+
}
|
|
450
|
+
}
|
|
451
|
+
}
|
|
452
|
+
}
|
|
453
|
+
};
|
|
454
|
+
const AttestationServicePatchParams = {
|
|
455
|
+
type: {
|
|
456
|
+
name: "Composite",
|
|
457
|
+
className: "AttestationServicePatchParams",
|
|
458
|
+
modelProperties: {
|
|
459
|
+
tags: {
|
|
460
|
+
serializedName: "tags",
|
|
461
|
+
type: {
|
|
462
|
+
name: "Dictionary",
|
|
463
|
+
value: { type: { name: "String" } }
|
|
464
|
+
}
|
|
465
|
+
}
|
|
466
|
+
}
|
|
467
|
+
}
|
|
468
|
+
};
|
|
469
|
+
const PrivateEndpointConnectionListResult = {
|
|
470
|
+
type: {
|
|
471
|
+
name: "Composite",
|
|
472
|
+
className: "PrivateEndpointConnectionListResult",
|
|
473
|
+
modelProperties: {
|
|
474
|
+
value: {
|
|
475
|
+
serializedName: "value",
|
|
476
|
+
type: {
|
|
477
|
+
name: "Sequence",
|
|
478
|
+
element: {
|
|
479
|
+
type: {
|
|
480
|
+
name: "Composite",
|
|
481
|
+
className: "PrivateEndpointConnection"
|
|
482
|
+
}
|
|
483
|
+
}
|
|
484
|
+
}
|
|
485
|
+
}
|
|
486
|
+
}
|
|
487
|
+
}
|
|
488
|
+
};
|
|
489
|
+
const AttestationProviderListResult = {
|
|
490
|
+
type: {
|
|
491
|
+
name: "Composite",
|
|
492
|
+
className: "AttestationProviderListResult",
|
|
493
|
+
modelProperties: {
|
|
494
|
+
systemData: {
|
|
495
|
+
serializedName: "systemData",
|
|
496
|
+
type: {
|
|
497
|
+
name: "Composite",
|
|
498
|
+
className: "SystemData"
|
|
499
|
+
}
|
|
500
|
+
},
|
|
501
|
+
value: {
|
|
502
|
+
serializedName: "value",
|
|
503
|
+
type: {
|
|
504
|
+
name: "Sequence",
|
|
505
|
+
element: {
|
|
506
|
+
type: {
|
|
507
|
+
name: "Composite",
|
|
508
|
+
className: "AttestationProvider"
|
|
509
|
+
}
|
|
510
|
+
}
|
|
511
|
+
}
|
|
512
|
+
}
|
|
513
|
+
}
|
|
514
|
+
}
|
|
515
|
+
};
|
|
516
|
+
const PrivateEndpointConnection = {
|
|
517
|
+
type: {
|
|
518
|
+
name: "Composite",
|
|
519
|
+
className: "PrivateEndpointConnection",
|
|
520
|
+
modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { privateEndpoint: {
|
|
521
|
+
serializedName: "properties.privateEndpoint",
|
|
522
|
+
type: {
|
|
523
|
+
name: "Composite",
|
|
524
|
+
className: "PrivateEndpoint"
|
|
525
|
+
}
|
|
526
|
+
}, privateLinkServiceConnectionState: {
|
|
527
|
+
serializedName: "properties.privateLinkServiceConnectionState",
|
|
528
|
+
type: {
|
|
529
|
+
name: "Composite",
|
|
530
|
+
className: "PrivateLinkServiceConnectionState"
|
|
531
|
+
}
|
|
532
|
+
}, provisioningState: {
|
|
533
|
+
serializedName: "properties.provisioningState",
|
|
534
|
+
readOnly: true,
|
|
535
|
+
type: {
|
|
536
|
+
name: "String"
|
|
537
|
+
}
|
|
538
|
+
} })
|
|
539
|
+
}
|
|
540
|
+
};
|
|
541
|
+
const TrackedResource = {
|
|
542
|
+
type: {
|
|
543
|
+
name: "Composite",
|
|
544
|
+
className: "TrackedResource",
|
|
545
|
+
modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { tags: {
|
|
546
|
+
serializedName: "tags",
|
|
547
|
+
type: {
|
|
548
|
+
name: "Dictionary",
|
|
549
|
+
value: { type: { name: "String" } }
|
|
550
|
+
}
|
|
551
|
+
}, location: {
|
|
552
|
+
serializedName: "location",
|
|
553
|
+
required: true,
|
|
554
|
+
type: {
|
|
555
|
+
name: "String"
|
|
556
|
+
}
|
|
557
|
+
} })
|
|
558
|
+
}
|
|
559
|
+
};
|
|
560
|
+
const AttestationProvider = {
|
|
561
|
+
type: {
|
|
562
|
+
name: "Composite",
|
|
563
|
+
className: "AttestationProvider",
|
|
564
|
+
modelProperties: Object.assign(Object.assign({}, TrackedResource.type.modelProperties), { systemData: {
|
|
565
|
+
serializedName: "systemData",
|
|
566
|
+
type: {
|
|
567
|
+
name: "Composite",
|
|
568
|
+
className: "SystemData"
|
|
569
|
+
}
|
|
570
|
+
}, trustModel: {
|
|
571
|
+
serializedName: "properties.trustModel",
|
|
572
|
+
type: {
|
|
573
|
+
name: "String"
|
|
574
|
+
}
|
|
575
|
+
}, status: {
|
|
576
|
+
serializedName: "properties.status",
|
|
577
|
+
type: {
|
|
578
|
+
name: "String"
|
|
579
|
+
}
|
|
580
|
+
}, attestUri: {
|
|
581
|
+
serializedName: "properties.attestUri",
|
|
582
|
+
type: {
|
|
583
|
+
name: "String"
|
|
584
|
+
}
|
|
585
|
+
}, privateEndpointConnections: {
|
|
586
|
+
serializedName: "properties.privateEndpointConnections",
|
|
587
|
+
readOnly: true,
|
|
588
|
+
type: {
|
|
589
|
+
name: "Sequence",
|
|
590
|
+
element: {
|
|
591
|
+
type: {
|
|
592
|
+
name: "Composite",
|
|
593
|
+
className: "PrivateEndpointConnection"
|
|
594
|
+
}
|
|
595
|
+
}
|
|
596
|
+
}
|
|
597
|
+
} })
|
|
598
|
+
}
|
|
599
|
+
};
|
|
600
|
+
|
|
601
|
+
var Mappers = /*#__PURE__*/Object.freeze({
|
|
602
|
+
__proto__: null,
|
|
603
|
+
OperationList: OperationList,
|
|
604
|
+
SystemData: SystemData,
|
|
605
|
+
OperationsDefinition: OperationsDefinition,
|
|
606
|
+
OperationsDisplayDefinition: OperationsDisplayDefinition,
|
|
607
|
+
CloudError: CloudError,
|
|
608
|
+
CloudErrorBody: CloudErrorBody,
|
|
609
|
+
PrivateEndpoint: PrivateEndpoint,
|
|
610
|
+
PrivateLinkServiceConnectionState: PrivateLinkServiceConnectionState,
|
|
611
|
+
Resource: Resource,
|
|
612
|
+
AttestationServiceCreationParams: AttestationServiceCreationParams,
|
|
613
|
+
AttestationServiceCreationSpecificParams: AttestationServiceCreationSpecificParams,
|
|
614
|
+
JsonWebKeySet: JsonWebKeySet,
|
|
615
|
+
JsonWebKey: JsonWebKey,
|
|
616
|
+
AttestationServicePatchParams: AttestationServicePatchParams,
|
|
617
|
+
PrivateEndpointConnectionListResult: PrivateEndpointConnectionListResult,
|
|
618
|
+
AttestationProviderListResult: AttestationProviderListResult,
|
|
619
|
+
PrivateEndpointConnection: PrivateEndpointConnection,
|
|
620
|
+
TrackedResource: TrackedResource,
|
|
621
|
+
AttestationProvider: AttestationProvider
|
|
622
|
+
});
|
|
623
|
+
|
|
624
|
+
/*
|
|
625
|
+
* Copyright (c) Microsoft Corporation.
|
|
626
|
+
* Licensed under the MIT License.
|
|
627
|
+
*
|
|
628
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
629
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
630
|
+
*/
|
|
631
|
+
const accept = {
|
|
632
|
+
parameterPath: "accept",
|
|
633
|
+
mapper: {
|
|
634
|
+
defaultValue: "application/json",
|
|
635
|
+
isConstant: true,
|
|
636
|
+
serializedName: "Accept",
|
|
637
|
+
type: {
|
|
638
|
+
name: "String"
|
|
639
|
+
}
|
|
640
|
+
}
|
|
641
|
+
};
|
|
642
|
+
const $host = {
|
|
643
|
+
parameterPath: "$host",
|
|
644
|
+
mapper: {
|
|
645
|
+
serializedName: "$host",
|
|
646
|
+
required: true,
|
|
647
|
+
type: {
|
|
648
|
+
name: "String"
|
|
649
|
+
}
|
|
650
|
+
},
|
|
651
|
+
skipEncoding: true
|
|
652
|
+
};
|
|
653
|
+
const apiVersion = {
|
|
654
|
+
parameterPath: "apiVersion",
|
|
655
|
+
mapper: {
|
|
656
|
+
defaultValue: "2020-10-01",
|
|
657
|
+
isConstant: true,
|
|
658
|
+
serializedName: "api-version",
|
|
659
|
+
type: {
|
|
660
|
+
name: "String"
|
|
661
|
+
}
|
|
662
|
+
}
|
|
663
|
+
};
|
|
664
|
+
const subscriptionId = {
|
|
665
|
+
parameterPath: "subscriptionId",
|
|
666
|
+
mapper: {
|
|
667
|
+
constraints: {
|
|
668
|
+
MinLength: 1
|
|
669
|
+
},
|
|
670
|
+
serializedName: "subscriptionId",
|
|
671
|
+
required: true,
|
|
672
|
+
type: {
|
|
673
|
+
name: "String"
|
|
674
|
+
}
|
|
675
|
+
}
|
|
676
|
+
};
|
|
677
|
+
const resourceGroupName = {
|
|
678
|
+
parameterPath: "resourceGroupName",
|
|
679
|
+
mapper: {
|
|
680
|
+
constraints: {
|
|
681
|
+
MaxLength: 90,
|
|
682
|
+
MinLength: 1
|
|
683
|
+
},
|
|
684
|
+
serializedName: "resourceGroupName",
|
|
685
|
+
required: true,
|
|
686
|
+
type: {
|
|
687
|
+
name: "String"
|
|
688
|
+
}
|
|
689
|
+
}
|
|
690
|
+
};
|
|
691
|
+
const providerName = {
|
|
692
|
+
parameterPath: "providerName",
|
|
693
|
+
mapper: {
|
|
694
|
+
serializedName: "providerName",
|
|
695
|
+
required: true,
|
|
696
|
+
type: {
|
|
697
|
+
name: "String"
|
|
698
|
+
}
|
|
699
|
+
}
|
|
700
|
+
};
|
|
701
|
+
const contentType = {
|
|
702
|
+
parameterPath: ["options", "contentType"],
|
|
703
|
+
mapper: {
|
|
704
|
+
defaultValue: "application/json",
|
|
705
|
+
isConstant: true,
|
|
706
|
+
serializedName: "Content-Type",
|
|
707
|
+
type: {
|
|
708
|
+
name: "String"
|
|
709
|
+
}
|
|
710
|
+
}
|
|
711
|
+
};
|
|
712
|
+
const creationParams = {
|
|
713
|
+
parameterPath: "creationParams",
|
|
714
|
+
mapper: AttestationServiceCreationParams
|
|
715
|
+
};
|
|
716
|
+
const updateParams = {
|
|
717
|
+
parameterPath: "updateParams",
|
|
718
|
+
mapper: AttestationServicePatchParams
|
|
719
|
+
};
|
|
720
|
+
const location = {
|
|
721
|
+
parameterPath: "location",
|
|
722
|
+
mapper: {
|
|
723
|
+
constraints: {
|
|
724
|
+
MinLength: 1
|
|
725
|
+
},
|
|
726
|
+
serializedName: "location",
|
|
727
|
+
required: true,
|
|
728
|
+
type: {
|
|
729
|
+
name: "String"
|
|
730
|
+
}
|
|
731
|
+
}
|
|
732
|
+
};
|
|
733
|
+
const providerName1 = {
|
|
734
|
+
parameterPath: "providerName",
|
|
735
|
+
mapper: {
|
|
736
|
+
constraints: {
|
|
737
|
+
Pattern: new RegExp("^[a-zA-Z0-9-]{3,24}$")
|
|
738
|
+
},
|
|
739
|
+
serializedName: "providerName",
|
|
740
|
+
required: true,
|
|
741
|
+
type: {
|
|
742
|
+
name: "String"
|
|
743
|
+
}
|
|
744
|
+
}
|
|
745
|
+
};
|
|
746
|
+
const privateEndpointConnectionName = {
|
|
747
|
+
parameterPath: "privateEndpointConnectionName",
|
|
748
|
+
mapper: {
|
|
749
|
+
serializedName: "privateEndpointConnectionName",
|
|
750
|
+
required: true,
|
|
751
|
+
type: {
|
|
752
|
+
name: "String"
|
|
753
|
+
}
|
|
754
|
+
}
|
|
755
|
+
};
|
|
756
|
+
const properties = {
|
|
757
|
+
parameterPath: "properties",
|
|
758
|
+
mapper: PrivateEndpointConnection
|
|
759
|
+
};
|
|
760
|
+
|
|
761
|
+
/*
|
|
762
|
+
* Copyright (c) Microsoft Corporation.
|
|
763
|
+
* Licensed under the MIT License.
|
|
764
|
+
*
|
|
765
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
766
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
767
|
+
*/
|
|
768
|
+
/** Class containing Operations operations. */
|
|
769
|
+
class OperationsImpl {
|
|
770
|
+
/**
|
|
771
|
+
* Initialize a new instance of the class Operations class.
|
|
772
|
+
* @param client Reference to the service client
|
|
773
|
+
*/
|
|
774
|
+
constructor(client) {
|
|
775
|
+
this.client = client;
|
|
776
|
+
}
|
|
777
|
+
/**
|
|
778
|
+
* Lists all of the available Azure attestation operations.
|
|
779
|
+
* @param options The options parameters.
|
|
780
|
+
*/
|
|
781
|
+
list(options) {
|
|
782
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
783
|
+
}
|
|
784
|
+
}
|
|
785
|
+
// Operation Specifications
|
|
786
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
787
|
+
const listOperationSpec = {
|
|
788
|
+
path: "/providers/Microsoft.Attestation/operations",
|
|
789
|
+
httpMethod: "GET",
|
|
790
|
+
responses: {
|
|
791
|
+
200: {
|
|
792
|
+
bodyMapper: OperationList
|
|
793
|
+
},
|
|
794
|
+
default: {
|
|
795
|
+
bodyMapper: CloudError
|
|
796
|
+
}
|
|
797
|
+
},
|
|
798
|
+
queryParameters: [apiVersion],
|
|
799
|
+
urlParameters: [$host],
|
|
800
|
+
headerParameters: [accept],
|
|
801
|
+
serializer
|
|
802
|
+
};
|
|
803
|
+
|
|
804
|
+
/*
|
|
805
|
+
* Copyright (c) Microsoft Corporation.
|
|
806
|
+
* Licensed under the MIT License.
|
|
807
|
+
*
|
|
808
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
809
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
810
|
+
*/
|
|
811
|
+
/** Class containing AttestationProviders operations. */
|
|
812
|
+
class AttestationProvidersImpl {
|
|
813
|
+
/**
|
|
814
|
+
* Initialize a new instance of the class AttestationProviders class.
|
|
815
|
+
* @param client Reference to the service client
|
|
816
|
+
*/
|
|
817
|
+
constructor(client) {
|
|
818
|
+
this.client = client;
|
|
819
|
+
}
|
|
820
|
+
/**
|
|
821
|
+
* Get the status of Attestation Provider.
|
|
822
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
823
|
+
* @param providerName Name of the attestation provider.
|
|
824
|
+
* @param options The options parameters.
|
|
825
|
+
*/
|
|
826
|
+
get(resourceGroupName, providerName, options) {
|
|
827
|
+
return this.client.sendOperationRequest({ resourceGroupName, providerName, options }, getOperationSpec);
|
|
828
|
+
}
|
|
829
|
+
/**
|
|
830
|
+
* Creates a new Attestation Provider.
|
|
831
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
832
|
+
* @param providerName Name of the attestation provider.
|
|
833
|
+
* @param creationParams Client supplied parameters.
|
|
834
|
+
* @param options The options parameters.
|
|
835
|
+
*/
|
|
836
|
+
create(resourceGroupName, providerName, creationParams, options) {
|
|
837
|
+
return this.client.sendOperationRequest({ resourceGroupName, providerName, creationParams, options }, createOperationSpec);
|
|
838
|
+
}
|
|
839
|
+
/**
|
|
840
|
+
* Updates the Attestation Provider.
|
|
841
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
842
|
+
* @param providerName Name of the attestation provider.
|
|
843
|
+
* @param updateParams Client supplied parameters.
|
|
844
|
+
* @param options The options parameters.
|
|
845
|
+
*/
|
|
846
|
+
update(resourceGroupName, providerName, updateParams, options) {
|
|
847
|
+
return this.client.sendOperationRequest({ resourceGroupName, providerName, updateParams, options }, updateOperationSpec);
|
|
848
|
+
}
|
|
849
|
+
/**
|
|
850
|
+
* Delete Attestation Service.
|
|
851
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
852
|
+
* @param providerName Name of the attestation service
|
|
853
|
+
* @param options The options parameters.
|
|
854
|
+
*/
|
|
855
|
+
delete(resourceGroupName, providerName, options) {
|
|
856
|
+
return this.client.sendOperationRequest({ resourceGroupName, providerName, options }, deleteOperationSpec);
|
|
857
|
+
}
|
|
858
|
+
/**
|
|
859
|
+
* Returns a list of attestation providers in a subscription.
|
|
860
|
+
* @param options The options parameters.
|
|
861
|
+
*/
|
|
862
|
+
list(options) {
|
|
863
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec$1);
|
|
864
|
+
}
|
|
865
|
+
/**
|
|
866
|
+
* Returns attestation providers list in a resource group.
|
|
867
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
868
|
+
* @param options The options parameters.
|
|
869
|
+
*/
|
|
870
|
+
listByResourceGroup(resourceGroupName, options) {
|
|
871
|
+
return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
|
|
872
|
+
}
|
|
873
|
+
/**
|
|
874
|
+
* Get the default provider
|
|
875
|
+
* @param options The options parameters.
|
|
876
|
+
*/
|
|
877
|
+
listDefault(options) {
|
|
878
|
+
return this.client.sendOperationRequest({ options }, listDefaultOperationSpec);
|
|
879
|
+
}
|
|
880
|
+
/**
|
|
881
|
+
* Get the default provider by location.
|
|
882
|
+
* @param location The location of the default provider.
|
|
883
|
+
* @param options The options parameters.
|
|
884
|
+
*/
|
|
885
|
+
getDefaultByLocation(location, options) {
|
|
886
|
+
return this.client.sendOperationRequest({ location, options }, getDefaultByLocationOperationSpec);
|
|
887
|
+
}
|
|
888
|
+
}
|
|
889
|
+
// Operation Specifications
|
|
890
|
+
const serializer$1 = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
891
|
+
const getOperationSpec = {
|
|
892
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Attestation/attestationProviders/{providerName}",
|
|
893
|
+
httpMethod: "GET",
|
|
894
|
+
responses: {
|
|
895
|
+
200: {
|
|
896
|
+
bodyMapper: AttestationProvider
|
|
897
|
+
},
|
|
898
|
+
default: {
|
|
899
|
+
bodyMapper: CloudError
|
|
900
|
+
}
|
|
901
|
+
},
|
|
902
|
+
queryParameters: [apiVersion],
|
|
903
|
+
urlParameters: [
|
|
904
|
+
$host,
|
|
905
|
+
subscriptionId,
|
|
906
|
+
resourceGroupName,
|
|
907
|
+
providerName
|
|
908
|
+
],
|
|
909
|
+
headerParameters: [accept],
|
|
910
|
+
serializer: serializer$1
|
|
911
|
+
};
|
|
912
|
+
const createOperationSpec = {
|
|
913
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Attestation/attestationProviders/{providerName}",
|
|
914
|
+
httpMethod: "PUT",
|
|
915
|
+
responses: {
|
|
916
|
+
200: {
|
|
917
|
+
bodyMapper: AttestationProvider
|
|
918
|
+
},
|
|
919
|
+
201: {
|
|
920
|
+
bodyMapper: AttestationProvider
|
|
921
|
+
},
|
|
922
|
+
default: {
|
|
923
|
+
bodyMapper: CloudError
|
|
924
|
+
}
|
|
925
|
+
},
|
|
926
|
+
requestBody: creationParams,
|
|
927
|
+
queryParameters: [apiVersion],
|
|
928
|
+
urlParameters: [
|
|
929
|
+
$host,
|
|
930
|
+
subscriptionId,
|
|
931
|
+
resourceGroupName,
|
|
932
|
+
providerName
|
|
933
|
+
],
|
|
934
|
+
headerParameters: [accept, contentType],
|
|
935
|
+
mediaType: "json",
|
|
936
|
+
serializer: serializer$1
|
|
937
|
+
};
|
|
938
|
+
const updateOperationSpec = {
|
|
939
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Attestation/attestationProviders/{providerName}",
|
|
940
|
+
httpMethod: "PATCH",
|
|
941
|
+
responses: {
|
|
942
|
+
200: {
|
|
943
|
+
bodyMapper: AttestationProvider
|
|
944
|
+
},
|
|
945
|
+
default: {
|
|
946
|
+
bodyMapper: CloudError
|
|
947
|
+
}
|
|
948
|
+
},
|
|
949
|
+
requestBody: updateParams,
|
|
950
|
+
queryParameters: [apiVersion],
|
|
951
|
+
urlParameters: [
|
|
952
|
+
$host,
|
|
953
|
+
subscriptionId,
|
|
954
|
+
resourceGroupName,
|
|
955
|
+
providerName
|
|
956
|
+
],
|
|
957
|
+
headerParameters: [accept, contentType],
|
|
958
|
+
mediaType: "json",
|
|
959
|
+
serializer: serializer$1
|
|
960
|
+
};
|
|
961
|
+
const deleteOperationSpec = {
|
|
962
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Attestation/attestationProviders/{providerName}",
|
|
963
|
+
httpMethod: "DELETE",
|
|
964
|
+
responses: {
|
|
965
|
+
200: {},
|
|
966
|
+
202: {},
|
|
967
|
+
204: {},
|
|
968
|
+
default: {
|
|
969
|
+
bodyMapper: CloudError
|
|
970
|
+
}
|
|
971
|
+
},
|
|
972
|
+
queryParameters: [apiVersion],
|
|
973
|
+
urlParameters: [
|
|
974
|
+
$host,
|
|
975
|
+
subscriptionId,
|
|
976
|
+
resourceGroupName,
|
|
977
|
+
providerName
|
|
978
|
+
],
|
|
979
|
+
headerParameters: [accept],
|
|
980
|
+
serializer: serializer$1
|
|
981
|
+
};
|
|
982
|
+
const listOperationSpec$1 = {
|
|
983
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Attestation/attestationProviders",
|
|
984
|
+
httpMethod: "GET",
|
|
985
|
+
responses: {
|
|
986
|
+
200: {
|
|
987
|
+
bodyMapper: AttestationProviderListResult
|
|
988
|
+
},
|
|
989
|
+
default: {
|
|
990
|
+
bodyMapper: CloudError
|
|
991
|
+
}
|
|
992
|
+
},
|
|
993
|
+
queryParameters: [apiVersion],
|
|
994
|
+
urlParameters: [$host, subscriptionId],
|
|
995
|
+
headerParameters: [accept],
|
|
996
|
+
serializer: serializer$1
|
|
997
|
+
};
|
|
998
|
+
const listByResourceGroupOperationSpec = {
|
|
999
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Attestation/attestationProviders",
|
|
1000
|
+
httpMethod: "GET",
|
|
1001
|
+
responses: {
|
|
1002
|
+
200: {
|
|
1003
|
+
bodyMapper: AttestationProviderListResult
|
|
1004
|
+
},
|
|
1005
|
+
default: {
|
|
1006
|
+
bodyMapper: CloudError
|
|
1007
|
+
}
|
|
1008
|
+
},
|
|
1009
|
+
queryParameters: [apiVersion],
|
|
1010
|
+
urlParameters: [
|
|
1011
|
+
$host,
|
|
1012
|
+
subscriptionId,
|
|
1013
|
+
resourceGroupName
|
|
1014
|
+
],
|
|
1015
|
+
headerParameters: [accept],
|
|
1016
|
+
serializer: serializer$1
|
|
1017
|
+
};
|
|
1018
|
+
const listDefaultOperationSpec = {
|
|
1019
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Attestation/defaultProviders",
|
|
1020
|
+
httpMethod: "GET",
|
|
1021
|
+
responses: {
|
|
1022
|
+
200: {
|
|
1023
|
+
bodyMapper: AttestationProviderListResult
|
|
1024
|
+
},
|
|
1025
|
+
default: {
|
|
1026
|
+
bodyMapper: CloudError
|
|
1027
|
+
}
|
|
1028
|
+
},
|
|
1029
|
+
queryParameters: [apiVersion],
|
|
1030
|
+
urlParameters: [$host, subscriptionId],
|
|
1031
|
+
headerParameters: [accept],
|
|
1032
|
+
serializer: serializer$1
|
|
1033
|
+
};
|
|
1034
|
+
const getDefaultByLocationOperationSpec = {
|
|
1035
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Attestation/locations/{location}/defaultProvider",
|
|
1036
|
+
httpMethod: "GET",
|
|
1037
|
+
responses: {
|
|
1038
|
+
200: {
|
|
1039
|
+
bodyMapper: AttestationProvider
|
|
1040
|
+
},
|
|
1041
|
+
default: {
|
|
1042
|
+
bodyMapper: CloudError
|
|
1043
|
+
}
|
|
1044
|
+
},
|
|
1045
|
+
queryParameters: [apiVersion],
|
|
1046
|
+
urlParameters: [
|
|
1047
|
+
$host,
|
|
1048
|
+
subscriptionId,
|
|
1049
|
+
location
|
|
1050
|
+
],
|
|
1051
|
+
headerParameters: [accept],
|
|
1052
|
+
serializer: serializer$1
|
|
1053
|
+
};
|
|
1054
|
+
|
|
1055
|
+
/*
|
|
1056
|
+
* Copyright (c) Microsoft Corporation.
|
|
1057
|
+
* Licensed under the MIT License.
|
|
1058
|
+
*
|
|
1059
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1060
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1061
|
+
*/
|
|
1062
|
+
/// <reference lib="esnext.asynciterable" />
|
|
1063
|
+
/** Class containing PrivateEndpointConnections operations. */
|
|
1064
|
+
class PrivateEndpointConnectionsImpl {
|
|
1065
|
+
/**
|
|
1066
|
+
* Initialize a new instance of the class PrivateEndpointConnections class.
|
|
1067
|
+
* @param client Reference to the service client
|
|
1068
|
+
*/
|
|
1069
|
+
constructor(client) {
|
|
1070
|
+
this.client = client;
|
|
1071
|
+
}
|
|
1072
|
+
/**
|
|
1073
|
+
* List all the private endpoint connections associated with the attestation provider.
|
|
1074
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1075
|
+
* @param providerName The name of the attestation provider.
|
|
1076
|
+
* @param options The options parameters.
|
|
1077
|
+
*/
|
|
1078
|
+
list(resourceGroupName, providerName, options) {
|
|
1079
|
+
const iter = this.listPagingAll(resourceGroupName, providerName, options);
|
|
1080
|
+
return {
|
|
1081
|
+
next() {
|
|
1082
|
+
return iter.next();
|
|
1083
|
+
},
|
|
1084
|
+
[Symbol.asyncIterator]() {
|
|
1085
|
+
return this;
|
|
1086
|
+
},
|
|
1087
|
+
byPage: () => {
|
|
1088
|
+
return this.listPagingPage(resourceGroupName, providerName, options);
|
|
1089
|
+
}
|
|
1090
|
+
};
|
|
1091
|
+
}
|
|
1092
|
+
listPagingPage(resourceGroupName, providerName, options) {
|
|
1093
|
+
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
1094
|
+
let result = yield tslib.__await(this._list(resourceGroupName, providerName, options));
|
|
1095
|
+
yield yield tslib.__await(result.value || []);
|
|
1096
|
+
});
|
|
1097
|
+
}
|
|
1098
|
+
listPagingAll(resourceGroupName, providerName, options) {
|
|
1099
|
+
return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
1100
|
+
var e_1, _a;
|
|
1101
|
+
try {
|
|
1102
|
+
for (var _b = tslib.__asyncValues(this.listPagingPage(resourceGroupName, providerName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
|
|
1103
|
+
const page = _c.value;
|
|
1104
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
1105
|
+
}
|
|
1106
|
+
}
|
|
1107
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
1108
|
+
finally {
|
|
1109
|
+
try {
|
|
1110
|
+
if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
|
|
1111
|
+
}
|
|
1112
|
+
finally { if (e_1) throw e_1.error; }
|
|
1113
|
+
}
|
|
1114
|
+
});
|
|
1115
|
+
}
|
|
1116
|
+
/**
|
|
1117
|
+
* List all the private endpoint connections associated with the attestation provider.
|
|
1118
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1119
|
+
* @param providerName The name of the attestation provider.
|
|
1120
|
+
* @param options The options parameters.
|
|
1121
|
+
*/
|
|
1122
|
+
_list(resourceGroupName, providerName, options) {
|
|
1123
|
+
return this.client.sendOperationRequest({ resourceGroupName, providerName, options }, listOperationSpec$2);
|
|
1124
|
+
}
|
|
1125
|
+
/**
|
|
1126
|
+
* Gets the specified private endpoint connection associated with the attestation provider.
|
|
1127
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1128
|
+
* @param providerName The name of the attestation provider.
|
|
1129
|
+
* @param privateEndpointConnectionName The name of the private endpoint connection associated with the
|
|
1130
|
+
* Azure resource
|
|
1131
|
+
* @param options The options parameters.
|
|
1132
|
+
*/
|
|
1133
|
+
get(resourceGroupName, providerName, privateEndpointConnectionName, options) {
|
|
1134
|
+
return this.client.sendOperationRequest({
|
|
1135
|
+
resourceGroupName,
|
|
1136
|
+
providerName,
|
|
1137
|
+
privateEndpointConnectionName,
|
|
1138
|
+
options
|
|
1139
|
+
}, getOperationSpec$1);
|
|
1140
|
+
}
|
|
1141
|
+
/**
|
|
1142
|
+
* Update the state of specified private endpoint connection associated with the attestation provider.
|
|
1143
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1144
|
+
* @param providerName The name of the attestation provider.
|
|
1145
|
+
* @param privateEndpointConnectionName The name of the private endpoint connection associated with the
|
|
1146
|
+
* Azure resource
|
|
1147
|
+
* @param properties The private endpoint connection properties.
|
|
1148
|
+
* @param options The options parameters.
|
|
1149
|
+
*/
|
|
1150
|
+
create(resourceGroupName, providerName, privateEndpointConnectionName, properties, options) {
|
|
1151
|
+
return this.client.sendOperationRequest({
|
|
1152
|
+
resourceGroupName,
|
|
1153
|
+
providerName,
|
|
1154
|
+
privateEndpointConnectionName,
|
|
1155
|
+
properties,
|
|
1156
|
+
options
|
|
1157
|
+
}, createOperationSpec$1);
|
|
1158
|
+
}
|
|
1159
|
+
/**
|
|
1160
|
+
* Deletes the specified private endpoint connection associated with the attestation provider.
|
|
1161
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1162
|
+
* @param providerName The name of the attestation provider.
|
|
1163
|
+
* @param privateEndpointConnectionName The name of the private endpoint connection associated with the
|
|
1164
|
+
* Azure resource
|
|
1165
|
+
* @param options The options parameters.
|
|
1166
|
+
*/
|
|
1167
|
+
delete(resourceGroupName, providerName, privateEndpointConnectionName, options) {
|
|
1168
|
+
return this.client.sendOperationRequest({
|
|
1169
|
+
resourceGroupName,
|
|
1170
|
+
providerName,
|
|
1171
|
+
privateEndpointConnectionName,
|
|
1172
|
+
options
|
|
1173
|
+
}, deleteOperationSpec$1);
|
|
1174
|
+
}
|
|
1175
|
+
}
|
|
1176
|
+
// Operation Specifications
|
|
1177
|
+
const serializer$2 = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
1178
|
+
const listOperationSpec$2 = {
|
|
1179
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Attestation/attestationProviders/{providerName}/privateEndpointConnections",
|
|
1180
|
+
httpMethod: "GET",
|
|
1181
|
+
responses: {
|
|
1182
|
+
200: {
|
|
1183
|
+
bodyMapper: PrivateEndpointConnectionListResult
|
|
1184
|
+
},
|
|
1185
|
+
default: {
|
|
1186
|
+
bodyMapper: CloudError
|
|
1187
|
+
}
|
|
1188
|
+
},
|
|
1189
|
+
queryParameters: [apiVersion],
|
|
1190
|
+
urlParameters: [
|
|
1191
|
+
$host,
|
|
1192
|
+
subscriptionId,
|
|
1193
|
+
resourceGroupName,
|
|
1194
|
+
providerName1
|
|
1195
|
+
],
|
|
1196
|
+
headerParameters: [accept],
|
|
1197
|
+
serializer: serializer$2
|
|
1198
|
+
};
|
|
1199
|
+
const getOperationSpec$1 = {
|
|
1200
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Attestation/attestationProviders/{providerName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
1201
|
+
httpMethod: "GET",
|
|
1202
|
+
responses: {
|
|
1203
|
+
200: {
|
|
1204
|
+
bodyMapper: PrivateEndpointConnection
|
|
1205
|
+
},
|
|
1206
|
+
default: {
|
|
1207
|
+
bodyMapper: CloudError
|
|
1208
|
+
}
|
|
1209
|
+
},
|
|
1210
|
+
queryParameters: [apiVersion],
|
|
1211
|
+
urlParameters: [
|
|
1212
|
+
$host,
|
|
1213
|
+
subscriptionId,
|
|
1214
|
+
resourceGroupName,
|
|
1215
|
+
providerName1,
|
|
1216
|
+
privateEndpointConnectionName
|
|
1217
|
+
],
|
|
1218
|
+
headerParameters: [accept],
|
|
1219
|
+
serializer: serializer$2
|
|
1220
|
+
};
|
|
1221
|
+
const createOperationSpec$1 = {
|
|
1222
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Attestation/attestationProviders/{providerName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
1223
|
+
httpMethod: "PUT",
|
|
1224
|
+
responses: {
|
|
1225
|
+
200: {
|
|
1226
|
+
bodyMapper: PrivateEndpointConnection
|
|
1227
|
+
},
|
|
1228
|
+
default: {
|
|
1229
|
+
bodyMapper: CloudError
|
|
1230
|
+
}
|
|
1231
|
+
},
|
|
1232
|
+
requestBody: properties,
|
|
1233
|
+
queryParameters: [apiVersion],
|
|
1234
|
+
urlParameters: [
|
|
1235
|
+
$host,
|
|
1236
|
+
subscriptionId,
|
|
1237
|
+
resourceGroupName,
|
|
1238
|
+
providerName1,
|
|
1239
|
+
privateEndpointConnectionName
|
|
1240
|
+
],
|
|
1241
|
+
headerParameters: [accept, contentType],
|
|
1242
|
+
mediaType: "json",
|
|
1243
|
+
serializer: serializer$2
|
|
1244
|
+
};
|
|
1245
|
+
const deleteOperationSpec$1 = {
|
|
1246
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Attestation/attestationProviders/{providerName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
1247
|
+
httpMethod: "DELETE",
|
|
1248
|
+
responses: {
|
|
1249
|
+
200: {},
|
|
1250
|
+
204: {},
|
|
1251
|
+
default: {
|
|
1252
|
+
bodyMapper: CloudError
|
|
1253
|
+
}
|
|
1254
|
+
},
|
|
1255
|
+
queryParameters: [apiVersion],
|
|
1256
|
+
urlParameters: [
|
|
1257
|
+
$host,
|
|
1258
|
+
subscriptionId,
|
|
1259
|
+
resourceGroupName,
|
|
1260
|
+
providerName1,
|
|
1261
|
+
privateEndpointConnectionName
|
|
1262
|
+
],
|
|
1263
|
+
headerParameters: [accept],
|
|
1264
|
+
serializer: serializer$2
|
|
1265
|
+
};
|
|
1266
|
+
|
|
1267
|
+
/*
|
|
1268
|
+
* Copyright (c) Microsoft Corporation.
|
|
1269
|
+
* Licensed under the MIT License.
|
|
1270
|
+
*
|
|
1271
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1272
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1273
|
+
*/
|
|
1274
|
+
class AttestationManagementClient extends coreClient.ServiceClient {
|
|
1275
|
+
/**
|
|
1276
|
+
* Initializes a new instance of the AttestationManagementClient class.
|
|
1277
|
+
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
1278
|
+
* @param subscriptionId The ID of the target subscription.
|
|
1279
|
+
* @param options The parameter options
|
|
1280
|
+
*/
|
|
1281
|
+
constructor(credentials, subscriptionId, options) {
|
|
1282
|
+
if (credentials === undefined) {
|
|
1283
|
+
throw new Error("'credentials' cannot be null");
|
|
1284
|
+
}
|
|
1285
|
+
if (subscriptionId === undefined) {
|
|
1286
|
+
throw new Error("'subscriptionId' cannot be null");
|
|
1287
|
+
}
|
|
1288
|
+
// Initializing default values for options
|
|
1289
|
+
if (!options) {
|
|
1290
|
+
options = {};
|
|
1291
|
+
}
|
|
1292
|
+
const defaults = {
|
|
1293
|
+
requestContentType: "application/json; charset=utf-8",
|
|
1294
|
+
credential: credentials
|
|
1295
|
+
};
|
|
1296
|
+
const packageDetails = `azsdk-js-arm-attestation/2.0.0`;
|
|
1297
|
+
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
1298
|
+
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
1299
|
+
: `${packageDetails}`;
|
|
1300
|
+
if (!options.credentialScopes) {
|
|
1301
|
+
options.credentialScopes = ["https://management.azure.com/.default"];
|
|
1302
|
+
}
|
|
1303
|
+
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
1304
|
+
userAgentPrefix
|
|
1305
|
+
}, baseUri: options.endpoint || "https://management.azure.com" });
|
|
1306
|
+
super(optionsWithDefaults);
|
|
1307
|
+
// Parameter assignments
|
|
1308
|
+
this.subscriptionId = subscriptionId;
|
|
1309
|
+
// Assigning values to Constant parameters
|
|
1310
|
+
this.$host = options.$host || "https://management.azure.com";
|
|
1311
|
+
this.apiVersion = options.apiVersion || "2020-10-01";
|
|
1312
|
+
this.operations = new OperationsImpl(this);
|
|
1313
|
+
this.attestationProviders = new AttestationProvidersImpl(this);
|
|
1314
|
+
this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this);
|
|
1315
|
+
}
|
|
1316
|
+
}
|
|
1317
|
+
|
|
1318
|
+
exports.AttestationManagementClient = AttestationManagementClient;
|
|
1319
|
+
//# sourceMappingURL=index.js.map
|