@azure/arm-msi 1.2.1 → 2.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.txt → LICENSE} +2 -2
- package/README.md +69 -80
- package/dist/index.js +1029 -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/managedServiceIdentityClient.d.ts +20 -0
- package/dist-esm/src/managedServiceIdentityClient.d.ts.map +1 -0
- package/dist-esm/src/managedServiceIdentityClient.js +53 -0
- package/dist-esm/src/managedServiceIdentityClient.js.map +1 -0
- package/dist-esm/src/models/index.d.ts +212 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +9 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +14 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/dist-esm/src/models/mappers.js +325 -0
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +13 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/dist-esm/src/models/parameters.js +113 -0
- package/dist-esm/src/models/parameters.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 +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/operations/systemAssignedIdentities.d.ts +20 -0
- package/dist-esm/src/operations/systemAssignedIdentities.d.ts.map +1 -0
- package/dist-esm/src/operations/systemAssignedIdentities.js +48 -0
- package/dist-esm/src/operations/systemAssignedIdentities.js.map +1 -0
- package/dist-esm/src/operations/userAssignedIdentities.d.ts +83 -0
- package/dist-esm/src/operations/userAssignedIdentities.d.ts.map +1 -0
- package/dist-esm/src/operations/userAssignedIdentities.js +359 -0
- package/dist-esm/src/operations/userAssignedIdentities.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 +11 -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/systemAssignedIdentities.d.ts +12 -0
- package/dist-esm/src/operationsInterfaces/systemAssignedIdentities.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/systemAssignedIdentities.js +9 -0
- package/dist-esm/src/operationsInterfaces/systemAssignedIdentities.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/userAssignedIdentities.d.ts +47 -0
- package/dist-esm/src/operationsInterfaces/userAssignedIdentities.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/userAssignedIdentities.js +9 -0
- package/dist-esm/src/operationsInterfaces/userAssignedIdentities.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 +66 -33
- package/review/arm-msi.api.md +218 -0
- package/rollup.config.js +184 -27
- package/src/index.ts +12 -0
- package/src/managedServiceIdentityClient.ts +74 -37
- package/src/models/index.ts +194 -304
- package/src/models/mappers.ts +245 -85
- package/src/models/parameters.ts +83 -24
- package/src/operations/index.ts +4 -5
- package/src/operations/operations.ts +87 -73
- package/src/operations/systemAssignedIdentities.ts +65 -0
- package/src/operations/userAssignedIdentities.ts +278 -307
- package/src/operationsInterfaces/index.ts +11 -0
- package/src/operationsInterfaces/operations.ts +22 -0
- package/src/operationsInterfaces/systemAssignedIdentities.ts +26 -0
- package/src/operationsInterfaces/userAssignedIdentities.ts +91 -0
- package/tsconfig.json +4 -4
- package/types/arm-msi.d.ts +330 -0
- package/types/tsdoc-metadata.json +11 -0
- package/dist/arm-msi.js +0 -830
- package/dist/arm-msi.js.map +0 -1
- package/dist/arm-msi.min.js +0 -1
- package/dist/arm-msi.min.js.map +0 -1
- package/esm/managedServiceIdentityClient.d.ts +0 -25
- package/esm/managedServiceIdentityClient.d.ts.map +0 -1
- package/esm/managedServiceIdentityClient.js +0 -39
- package/esm/managedServiceIdentityClient.js.map +0 -1
- package/esm/managedServiceIdentityClientContext.d.ts +0 -22
- package/esm/managedServiceIdentityClientContext.d.ts.map +0 -1
- package/esm/managedServiceIdentityClientContext.js +0 -61
- package/esm/managedServiceIdentityClientContext.js.map +0 -1
- package/esm/models/index.d.ts +0 -332
- package/esm/models/index.d.ts.map +0 -1
- package/esm/models/index.js +0 -10
- package/esm/models/index.js.map +0 -1
- package/esm/models/mappers.d.ts +0 -9
- package/esm/models/mappers.d.ts.map +0 -1
- package/esm/models/mappers.js +0 -197
- 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 -11
- 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 -71
- package/esm/models/parameters.js.map +0 -1
- package/esm/models/userAssignedIdentitiesMappers.d.ts +0 -2
- package/esm/models/userAssignedIdentitiesMappers.d.ts.map +0 -1
- package/esm/models/userAssignedIdentitiesMappers.js +0 -11
- package/esm/models/userAssignedIdentitiesMappers.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 -46
- package/esm/operations/operations.d.ts.map +0 -1
- package/esm/operations/operations.js +0 -77
- package/esm/operations/operations.js.map +0 -1
- package/esm/operations/userAssignedIdentities.d.ts +0 -172
- package/esm/operations/userAssignedIdentities.d.ts.map +0 -1
- package/esm/operations/userAssignedIdentities.js +0 -272
- package/esm/operations/userAssignedIdentities.js.map +0 -1
- package/src/managedServiceIdentityClientContext.ts +0 -68
- package/src/models/operationsMappers.ts +0 -17
- package/src/models/userAssignedIdentitiesMappers.ts +0 -17
package/dist/arm-msi.js
DELETED
@@ -1,830 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
3
|
-
* Licensed under the MIT License. See License.txt in the project root for
|
4
|
-
* license information.
|
5
|
-
*
|
6
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
7
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
8
|
-
* regenerated.
|
9
|
-
*/
|
10
|
-
(function (global, factory) {
|
11
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@azure/ms-rest-azure-js'), require('@azure/ms-rest-js')) :
|
12
|
-
typeof define === 'function' && define.amd ? define(['exports', '@azure/ms-rest-azure-js', '@azure/ms-rest-js'], factory) :
|
13
|
-
(factory((global.Azure = global.Azure || {}, global.Azure.ArmMsi = {}),global.msRestAzure,global.msRest));
|
14
|
-
}(this, (function (exports,msRestAzure,msRest) { 'use strict';
|
15
|
-
|
16
|
-
/*! *****************************************************************************
|
17
|
-
Copyright (c) Microsoft Corporation.
|
18
|
-
|
19
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
20
|
-
purpose with or without fee is hereby granted.
|
21
|
-
|
22
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
23
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
24
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
25
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
26
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
27
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
28
|
-
PERFORMANCE OF THIS SOFTWARE.
|
29
|
-
***************************************************************************** */
|
30
|
-
/* global Reflect, Promise */
|
31
|
-
|
32
|
-
var extendStatics = function(d, b) {
|
33
|
-
extendStatics = Object.setPrototypeOf ||
|
34
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
35
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
36
|
-
return extendStatics(d, b);
|
37
|
-
};
|
38
|
-
|
39
|
-
function __extends(d, b) {
|
40
|
-
extendStatics(d, b);
|
41
|
-
function __() { this.constructor = d; }
|
42
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
43
|
-
}
|
44
|
-
|
45
|
-
var __assign = function() {
|
46
|
-
__assign = Object.assign || function __assign(t) {
|
47
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
48
|
-
s = arguments[i];
|
49
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
50
|
-
}
|
51
|
-
return t;
|
52
|
-
};
|
53
|
-
return __assign.apply(this, arguments);
|
54
|
-
};
|
55
|
-
|
56
|
-
/*
|
57
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
58
|
-
* Licensed under the MIT License. See License.txt in the project root for
|
59
|
-
* license information.
|
60
|
-
*
|
61
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
62
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
63
|
-
* regenerated.
|
64
|
-
*/
|
65
|
-
|
66
|
-
var index = /*#__PURE__*/Object.freeze({
|
67
|
-
|
68
|
-
});
|
69
|
-
|
70
|
-
/*
|
71
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
72
|
-
* Licensed under the MIT License. See License.txt in the project root for
|
73
|
-
* license information.
|
74
|
-
*
|
75
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
76
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
77
|
-
* regenerated.
|
78
|
-
*/
|
79
|
-
var CloudError = msRestAzure.CloudErrorMapper;
|
80
|
-
var BaseResource = msRestAzure.BaseResourceMapper;
|
81
|
-
var Identity = {
|
82
|
-
serializedName: "Identity",
|
83
|
-
type: {
|
84
|
-
name: "Composite",
|
85
|
-
className: "Identity",
|
86
|
-
modelProperties: {
|
87
|
-
id: {
|
88
|
-
readOnly: true,
|
89
|
-
serializedName: "id",
|
90
|
-
type: {
|
91
|
-
name: "String"
|
92
|
-
}
|
93
|
-
},
|
94
|
-
name: {
|
95
|
-
readOnly: true,
|
96
|
-
serializedName: "name",
|
97
|
-
type: {
|
98
|
-
name: "String"
|
99
|
-
}
|
100
|
-
},
|
101
|
-
location: {
|
102
|
-
serializedName: "location",
|
103
|
-
type: {
|
104
|
-
name: "String"
|
105
|
-
}
|
106
|
-
},
|
107
|
-
tags: {
|
108
|
-
serializedName: "tags",
|
109
|
-
type: {
|
110
|
-
name: "Dictionary",
|
111
|
-
value: {
|
112
|
-
type: {
|
113
|
-
name: "String"
|
114
|
-
}
|
115
|
-
}
|
116
|
-
}
|
117
|
-
},
|
118
|
-
tenantId: {
|
119
|
-
readOnly: true,
|
120
|
-
serializedName: "properties.tenantId",
|
121
|
-
type: {
|
122
|
-
name: "Uuid"
|
123
|
-
}
|
124
|
-
},
|
125
|
-
principalId: {
|
126
|
-
readOnly: true,
|
127
|
-
serializedName: "properties.principalId",
|
128
|
-
type: {
|
129
|
-
name: "Uuid"
|
130
|
-
}
|
131
|
-
},
|
132
|
-
clientId: {
|
133
|
-
readOnly: true,
|
134
|
-
serializedName: "properties.clientId",
|
135
|
-
type: {
|
136
|
-
name: "Uuid"
|
137
|
-
}
|
138
|
-
},
|
139
|
-
clientSecretUrl: {
|
140
|
-
readOnly: true,
|
141
|
-
serializedName: "properties.clientSecretUrl",
|
142
|
-
type: {
|
143
|
-
name: "String"
|
144
|
-
}
|
145
|
-
},
|
146
|
-
type: {
|
147
|
-
readOnly: true,
|
148
|
-
serializedName: "type",
|
149
|
-
type: {
|
150
|
-
name: "String"
|
151
|
-
}
|
152
|
-
}
|
153
|
-
}
|
154
|
-
}
|
155
|
-
};
|
156
|
-
var OperationDisplay = {
|
157
|
-
serializedName: "OperationDisplay",
|
158
|
-
type: {
|
159
|
-
name: "Composite",
|
160
|
-
className: "OperationDisplay",
|
161
|
-
modelProperties: {
|
162
|
-
provider: {
|
163
|
-
serializedName: "provider",
|
164
|
-
type: {
|
165
|
-
name: "String"
|
166
|
-
}
|
167
|
-
},
|
168
|
-
operation: {
|
169
|
-
serializedName: "operation",
|
170
|
-
type: {
|
171
|
-
name: "String"
|
172
|
-
}
|
173
|
-
},
|
174
|
-
resource: {
|
175
|
-
serializedName: "resource",
|
176
|
-
type: {
|
177
|
-
name: "String"
|
178
|
-
}
|
179
|
-
},
|
180
|
-
description: {
|
181
|
-
serializedName: "description",
|
182
|
-
type: {
|
183
|
-
name: "String"
|
184
|
-
}
|
185
|
-
}
|
186
|
-
}
|
187
|
-
}
|
188
|
-
};
|
189
|
-
var Operation = {
|
190
|
-
serializedName: "Operation",
|
191
|
-
type: {
|
192
|
-
name: "Composite",
|
193
|
-
className: "Operation",
|
194
|
-
modelProperties: {
|
195
|
-
name: {
|
196
|
-
serializedName: "name",
|
197
|
-
type: {
|
198
|
-
name: "String"
|
199
|
-
}
|
200
|
-
},
|
201
|
-
display: {
|
202
|
-
serializedName: "display",
|
203
|
-
type: {
|
204
|
-
name: "Composite",
|
205
|
-
className: "OperationDisplay"
|
206
|
-
}
|
207
|
-
}
|
208
|
-
}
|
209
|
-
}
|
210
|
-
};
|
211
|
-
var OperationListResult = {
|
212
|
-
serializedName: "OperationListResult",
|
213
|
-
type: {
|
214
|
-
name: "Composite",
|
215
|
-
className: "OperationListResult",
|
216
|
-
modelProperties: {
|
217
|
-
value: {
|
218
|
-
serializedName: "",
|
219
|
-
type: {
|
220
|
-
name: "Sequence",
|
221
|
-
element: {
|
222
|
-
type: {
|
223
|
-
name: "Composite",
|
224
|
-
className: "Operation"
|
225
|
-
}
|
226
|
-
}
|
227
|
-
}
|
228
|
-
},
|
229
|
-
nextLink: {
|
230
|
-
serializedName: "nextLink",
|
231
|
-
type: {
|
232
|
-
name: "String"
|
233
|
-
}
|
234
|
-
}
|
235
|
-
}
|
236
|
-
}
|
237
|
-
};
|
238
|
-
var UserAssignedIdentitiesListResult = {
|
239
|
-
serializedName: "UserAssignedIdentitiesListResult",
|
240
|
-
type: {
|
241
|
-
name: "Composite",
|
242
|
-
className: "UserAssignedIdentitiesListResult",
|
243
|
-
modelProperties: {
|
244
|
-
value: {
|
245
|
-
serializedName: "",
|
246
|
-
type: {
|
247
|
-
name: "Sequence",
|
248
|
-
element: {
|
249
|
-
type: {
|
250
|
-
name: "Composite",
|
251
|
-
className: "Identity"
|
252
|
-
}
|
253
|
-
}
|
254
|
-
}
|
255
|
-
},
|
256
|
-
nextLink: {
|
257
|
-
serializedName: "nextLink",
|
258
|
-
type: {
|
259
|
-
name: "String"
|
260
|
-
}
|
261
|
-
}
|
262
|
-
}
|
263
|
-
}
|
264
|
-
};
|
265
|
-
|
266
|
-
var mappers = /*#__PURE__*/Object.freeze({
|
267
|
-
CloudError: CloudError,
|
268
|
-
BaseResource: BaseResource,
|
269
|
-
Identity: Identity,
|
270
|
-
OperationDisplay: OperationDisplay,
|
271
|
-
Operation: Operation,
|
272
|
-
OperationListResult: OperationListResult,
|
273
|
-
UserAssignedIdentitiesListResult: UserAssignedIdentitiesListResult
|
274
|
-
});
|
275
|
-
|
276
|
-
/*
|
277
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
278
|
-
* Licensed under the MIT License. See License.txt in the project root for
|
279
|
-
* license information.
|
280
|
-
*
|
281
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
282
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
283
|
-
* regenerated.
|
284
|
-
*/
|
285
|
-
|
286
|
-
var Mappers = /*#__PURE__*/Object.freeze({
|
287
|
-
OperationListResult: OperationListResult,
|
288
|
-
Operation: Operation,
|
289
|
-
OperationDisplay: OperationDisplay,
|
290
|
-
CloudError: CloudError
|
291
|
-
});
|
292
|
-
|
293
|
-
/*
|
294
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
295
|
-
* Licensed under the MIT License. See License.txt in the project root for
|
296
|
-
* license information.
|
297
|
-
*
|
298
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
299
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
300
|
-
* regenerated.
|
301
|
-
*/
|
302
|
-
var acceptLanguage = {
|
303
|
-
parameterPath: "acceptLanguage",
|
304
|
-
mapper: {
|
305
|
-
serializedName: "accept-language",
|
306
|
-
defaultValue: 'en-US',
|
307
|
-
type: {
|
308
|
-
name: "String"
|
309
|
-
}
|
310
|
-
}
|
311
|
-
};
|
312
|
-
var apiVersion = {
|
313
|
-
parameterPath: "apiVersion",
|
314
|
-
mapper: {
|
315
|
-
required: true,
|
316
|
-
serializedName: "api-version",
|
317
|
-
type: {
|
318
|
-
name: "String"
|
319
|
-
}
|
320
|
-
}
|
321
|
-
};
|
322
|
-
var nextPageLink = {
|
323
|
-
parameterPath: "nextPageLink",
|
324
|
-
mapper: {
|
325
|
-
required: true,
|
326
|
-
serializedName: "nextLink",
|
327
|
-
type: {
|
328
|
-
name: "String"
|
329
|
-
}
|
330
|
-
},
|
331
|
-
skipEncoding: true
|
332
|
-
};
|
333
|
-
var resourceGroupName = {
|
334
|
-
parameterPath: "resourceGroupName",
|
335
|
-
mapper: {
|
336
|
-
required: true,
|
337
|
-
serializedName: "resourceGroupName",
|
338
|
-
type: {
|
339
|
-
name: "String"
|
340
|
-
}
|
341
|
-
}
|
342
|
-
};
|
343
|
-
var resourceName = {
|
344
|
-
parameterPath: "resourceName",
|
345
|
-
mapper: {
|
346
|
-
required: true,
|
347
|
-
serializedName: "resourceName",
|
348
|
-
type: {
|
349
|
-
name: "String"
|
350
|
-
}
|
351
|
-
}
|
352
|
-
};
|
353
|
-
var subscriptionId = {
|
354
|
-
parameterPath: "subscriptionId",
|
355
|
-
mapper: {
|
356
|
-
required: true,
|
357
|
-
serializedName: "subscriptionId",
|
358
|
-
type: {
|
359
|
-
name: "String"
|
360
|
-
}
|
361
|
-
}
|
362
|
-
};
|
363
|
-
|
364
|
-
/*
|
365
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
366
|
-
* Licensed under the MIT License. See License.txt in the project root for
|
367
|
-
* license information.
|
368
|
-
*
|
369
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
370
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
371
|
-
* regenerated.
|
372
|
-
*/
|
373
|
-
/** Class representing a Operations. */
|
374
|
-
var Operations = /** @class */ (function () {
|
375
|
-
/**
|
376
|
-
* Create a Operations.
|
377
|
-
* @param {ManagedServiceIdentityClientContext} client Reference to the service client.
|
378
|
-
*/
|
379
|
-
function Operations(client) {
|
380
|
-
this.client = client;
|
381
|
-
}
|
382
|
-
Operations.prototype.list = function (options, callback) {
|
383
|
-
return this.client.sendOperationRequest({
|
384
|
-
options: options
|
385
|
-
}, listOperationSpec, callback);
|
386
|
-
};
|
387
|
-
Operations.prototype.listNext = function (nextPageLink$$1, options, callback) {
|
388
|
-
return this.client.sendOperationRequest({
|
389
|
-
nextPageLink: nextPageLink$$1,
|
390
|
-
options: options
|
391
|
-
}, listNextOperationSpec, callback);
|
392
|
-
};
|
393
|
-
return Operations;
|
394
|
-
}());
|
395
|
-
// Operation Specifications
|
396
|
-
var serializer = new msRest.Serializer(Mappers);
|
397
|
-
var listOperationSpec = {
|
398
|
-
httpMethod: "GET",
|
399
|
-
path: "providers/Microsoft.ManagedIdentity/operations",
|
400
|
-
queryParameters: [
|
401
|
-
apiVersion
|
402
|
-
],
|
403
|
-
headerParameters: [
|
404
|
-
acceptLanguage
|
405
|
-
],
|
406
|
-
responses: {
|
407
|
-
200: {
|
408
|
-
bodyMapper: OperationListResult
|
409
|
-
},
|
410
|
-
default: {
|
411
|
-
bodyMapper: CloudError
|
412
|
-
}
|
413
|
-
},
|
414
|
-
serializer: serializer
|
415
|
-
};
|
416
|
-
var listNextOperationSpec = {
|
417
|
-
httpMethod: "GET",
|
418
|
-
baseUrl: "https://management.azure.com",
|
419
|
-
path: "{nextLink}",
|
420
|
-
urlParameters: [
|
421
|
-
nextPageLink
|
422
|
-
],
|
423
|
-
headerParameters: [
|
424
|
-
acceptLanguage
|
425
|
-
],
|
426
|
-
responses: {
|
427
|
-
200: {
|
428
|
-
bodyMapper: OperationListResult
|
429
|
-
},
|
430
|
-
default: {
|
431
|
-
bodyMapper: CloudError
|
432
|
-
}
|
433
|
-
},
|
434
|
-
serializer: serializer
|
435
|
-
};
|
436
|
-
|
437
|
-
/*
|
438
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
439
|
-
* Licensed under the MIT License. See License.txt in the project root for
|
440
|
-
* license information.
|
441
|
-
*
|
442
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
443
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
444
|
-
* regenerated.
|
445
|
-
*/
|
446
|
-
|
447
|
-
var Mappers$1 = /*#__PURE__*/Object.freeze({
|
448
|
-
UserAssignedIdentitiesListResult: UserAssignedIdentitiesListResult,
|
449
|
-
Identity: Identity,
|
450
|
-
BaseResource: BaseResource,
|
451
|
-
CloudError: CloudError
|
452
|
-
});
|
453
|
-
|
454
|
-
/*
|
455
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
456
|
-
* Licensed under the MIT License. See License.txt in the project root for
|
457
|
-
* license information.
|
458
|
-
*
|
459
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
460
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
461
|
-
* regenerated.
|
462
|
-
*/
|
463
|
-
/** Class representing a UserAssignedIdentities. */
|
464
|
-
var UserAssignedIdentities = /** @class */ (function () {
|
465
|
-
/**
|
466
|
-
* Create a UserAssignedIdentities.
|
467
|
-
* @param {ManagedServiceIdentityClientContext} client Reference to the service client.
|
468
|
-
*/
|
469
|
-
function UserAssignedIdentities(client) {
|
470
|
-
this.client = client;
|
471
|
-
}
|
472
|
-
UserAssignedIdentities.prototype.listBySubscription = function (options, callback) {
|
473
|
-
return this.client.sendOperationRequest({
|
474
|
-
options: options
|
475
|
-
}, listBySubscriptionOperationSpec, callback);
|
476
|
-
};
|
477
|
-
UserAssignedIdentities.prototype.listByResourceGroup = function (resourceGroupName$$1, options, callback) {
|
478
|
-
return this.client.sendOperationRequest({
|
479
|
-
resourceGroupName: resourceGroupName$$1,
|
480
|
-
options: options
|
481
|
-
}, listByResourceGroupOperationSpec, callback);
|
482
|
-
};
|
483
|
-
UserAssignedIdentities.prototype.createOrUpdate = function (resourceGroupName$$1, resourceName$$1, parameters, options, callback) {
|
484
|
-
return this.client.sendOperationRequest({
|
485
|
-
resourceGroupName: resourceGroupName$$1,
|
486
|
-
resourceName: resourceName$$1,
|
487
|
-
parameters: parameters,
|
488
|
-
options: options
|
489
|
-
}, createOrUpdateOperationSpec, callback);
|
490
|
-
};
|
491
|
-
UserAssignedIdentities.prototype.update = function (resourceGroupName$$1, resourceName$$1, parameters, options, callback) {
|
492
|
-
return this.client.sendOperationRequest({
|
493
|
-
resourceGroupName: resourceGroupName$$1,
|
494
|
-
resourceName: resourceName$$1,
|
495
|
-
parameters: parameters,
|
496
|
-
options: options
|
497
|
-
}, updateOperationSpec, callback);
|
498
|
-
};
|
499
|
-
UserAssignedIdentities.prototype.get = function (resourceGroupName$$1, resourceName$$1, options, callback) {
|
500
|
-
return this.client.sendOperationRequest({
|
501
|
-
resourceGroupName: resourceGroupName$$1,
|
502
|
-
resourceName: resourceName$$1,
|
503
|
-
options: options
|
504
|
-
}, getOperationSpec, callback);
|
505
|
-
};
|
506
|
-
UserAssignedIdentities.prototype.deleteMethod = function (resourceGroupName$$1, resourceName$$1, options, callback) {
|
507
|
-
return this.client.sendOperationRequest({
|
508
|
-
resourceGroupName: resourceGroupName$$1,
|
509
|
-
resourceName: resourceName$$1,
|
510
|
-
options: options
|
511
|
-
}, deleteMethodOperationSpec, callback);
|
512
|
-
};
|
513
|
-
UserAssignedIdentities.prototype.listBySubscriptionNext = function (nextPageLink$$1, options, callback) {
|
514
|
-
return this.client.sendOperationRequest({
|
515
|
-
nextPageLink: nextPageLink$$1,
|
516
|
-
options: options
|
517
|
-
}, listBySubscriptionNextOperationSpec, callback);
|
518
|
-
};
|
519
|
-
UserAssignedIdentities.prototype.listByResourceGroupNext = function (nextPageLink$$1, options, callback) {
|
520
|
-
return this.client.sendOperationRequest({
|
521
|
-
nextPageLink: nextPageLink$$1,
|
522
|
-
options: options
|
523
|
-
}, listByResourceGroupNextOperationSpec, callback);
|
524
|
-
};
|
525
|
-
return UserAssignedIdentities;
|
526
|
-
}());
|
527
|
-
// Operation Specifications
|
528
|
-
var serializer$1 = new msRest.Serializer(Mappers$1);
|
529
|
-
var listBySubscriptionOperationSpec = {
|
530
|
-
httpMethod: "GET",
|
531
|
-
path: "subscriptions/{subscriptionId}/providers/Microsoft.ManagedIdentity/userAssignedIdentities",
|
532
|
-
urlParameters: [
|
533
|
-
subscriptionId
|
534
|
-
],
|
535
|
-
queryParameters: [
|
536
|
-
apiVersion
|
537
|
-
],
|
538
|
-
headerParameters: [
|
539
|
-
acceptLanguage
|
540
|
-
],
|
541
|
-
responses: {
|
542
|
-
200: {
|
543
|
-
bodyMapper: UserAssignedIdentitiesListResult
|
544
|
-
},
|
545
|
-
default: {
|
546
|
-
bodyMapper: CloudError
|
547
|
-
}
|
548
|
-
},
|
549
|
-
serializer: serializer$1
|
550
|
-
};
|
551
|
-
var listByResourceGroupOperationSpec = {
|
552
|
-
httpMethod: "GET",
|
553
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities",
|
554
|
-
urlParameters: [
|
555
|
-
subscriptionId,
|
556
|
-
resourceGroupName
|
557
|
-
],
|
558
|
-
queryParameters: [
|
559
|
-
apiVersion
|
560
|
-
],
|
561
|
-
headerParameters: [
|
562
|
-
acceptLanguage
|
563
|
-
],
|
564
|
-
responses: {
|
565
|
-
200: {
|
566
|
-
bodyMapper: UserAssignedIdentitiesListResult
|
567
|
-
},
|
568
|
-
default: {
|
569
|
-
bodyMapper: CloudError
|
570
|
-
}
|
571
|
-
},
|
572
|
-
serializer: serializer$1
|
573
|
-
};
|
574
|
-
var createOrUpdateOperationSpec = {
|
575
|
-
httpMethod: "PUT",
|
576
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{resourceName}",
|
577
|
-
urlParameters: [
|
578
|
-
subscriptionId,
|
579
|
-
resourceGroupName,
|
580
|
-
resourceName
|
581
|
-
],
|
582
|
-
queryParameters: [
|
583
|
-
apiVersion
|
584
|
-
],
|
585
|
-
headerParameters: [
|
586
|
-
acceptLanguage
|
587
|
-
],
|
588
|
-
requestBody: {
|
589
|
-
parameterPath: "parameters",
|
590
|
-
mapper: __assign(__assign({}, Identity), { required: true })
|
591
|
-
},
|
592
|
-
responses: {
|
593
|
-
200: {
|
594
|
-
bodyMapper: Identity
|
595
|
-
},
|
596
|
-
201: {
|
597
|
-
bodyMapper: Identity
|
598
|
-
},
|
599
|
-
default: {
|
600
|
-
bodyMapper: CloudError
|
601
|
-
}
|
602
|
-
},
|
603
|
-
serializer: serializer$1
|
604
|
-
};
|
605
|
-
var updateOperationSpec = {
|
606
|
-
httpMethod: "PATCH",
|
607
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{resourceName}",
|
608
|
-
urlParameters: [
|
609
|
-
subscriptionId,
|
610
|
-
resourceGroupName,
|
611
|
-
resourceName
|
612
|
-
],
|
613
|
-
queryParameters: [
|
614
|
-
apiVersion
|
615
|
-
],
|
616
|
-
headerParameters: [
|
617
|
-
acceptLanguage
|
618
|
-
],
|
619
|
-
requestBody: {
|
620
|
-
parameterPath: "parameters",
|
621
|
-
mapper: __assign(__assign({}, Identity), { required: true })
|
622
|
-
},
|
623
|
-
responses: {
|
624
|
-
200: {
|
625
|
-
bodyMapper: Identity
|
626
|
-
},
|
627
|
-
default: {
|
628
|
-
bodyMapper: CloudError
|
629
|
-
}
|
630
|
-
},
|
631
|
-
serializer: serializer$1
|
632
|
-
};
|
633
|
-
var getOperationSpec = {
|
634
|
-
httpMethod: "GET",
|
635
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{resourceName}",
|
636
|
-
urlParameters: [
|
637
|
-
subscriptionId,
|
638
|
-
resourceGroupName,
|
639
|
-
resourceName
|
640
|
-
],
|
641
|
-
queryParameters: [
|
642
|
-
apiVersion
|
643
|
-
],
|
644
|
-
headerParameters: [
|
645
|
-
acceptLanguage
|
646
|
-
],
|
647
|
-
responses: {
|
648
|
-
200: {
|
649
|
-
bodyMapper: Identity
|
650
|
-
},
|
651
|
-
default: {
|
652
|
-
bodyMapper: CloudError
|
653
|
-
}
|
654
|
-
},
|
655
|
-
serializer: serializer$1
|
656
|
-
};
|
657
|
-
var deleteMethodOperationSpec = {
|
658
|
-
httpMethod: "DELETE",
|
659
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{resourceName}",
|
660
|
-
urlParameters: [
|
661
|
-
subscriptionId,
|
662
|
-
resourceGroupName,
|
663
|
-
resourceName
|
664
|
-
],
|
665
|
-
queryParameters: [
|
666
|
-
apiVersion
|
667
|
-
],
|
668
|
-
headerParameters: [
|
669
|
-
acceptLanguage
|
670
|
-
],
|
671
|
-
responses: {
|
672
|
-
200: {},
|
673
|
-
204: {},
|
674
|
-
default: {
|
675
|
-
bodyMapper: CloudError
|
676
|
-
}
|
677
|
-
},
|
678
|
-
serializer: serializer$1
|
679
|
-
};
|
680
|
-
var listBySubscriptionNextOperationSpec = {
|
681
|
-
httpMethod: "GET",
|
682
|
-
baseUrl: "https://management.azure.com",
|
683
|
-
path: "{nextLink}",
|
684
|
-
urlParameters: [
|
685
|
-
nextPageLink
|
686
|
-
],
|
687
|
-
headerParameters: [
|
688
|
-
acceptLanguage
|
689
|
-
],
|
690
|
-
responses: {
|
691
|
-
200: {
|
692
|
-
bodyMapper: UserAssignedIdentitiesListResult
|
693
|
-
},
|
694
|
-
default: {
|
695
|
-
bodyMapper: CloudError
|
696
|
-
}
|
697
|
-
},
|
698
|
-
serializer: serializer$1
|
699
|
-
};
|
700
|
-
var listByResourceGroupNextOperationSpec = {
|
701
|
-
httpMethod: "GET",
|
702
|
-
baseUrl: "https://management.azure.com",
|
703
|
-
path: "{nextLink}",
|
704
|
-
urlParameters: [
|
705
|
-
nextPageLink
|
706
|
-
],
|
707
|
-
headerParameters: [
|
708
|
-
acceptLanguage
|
709
|
-
],
|
710
|
-
responses: {
|
711
|
-
200: {
|
712
|
-
bodyMapper: UserAssignedIdentitiesListResult
|
713
|
-
},
|
714
|
-
default: {
|
715
|
-
bodyMapper: CloudError
|
716
|
-
}
|
717
|
-
},
|
718
|
-
serializer: serializer$1
|
719
|
-
};
|
720
|
-
|
721
|
-
/*
|
722
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
723
|
-
* Licensed under the MIT License. See License.txt in the project root for
|
724
|
-
* license information.
|
725
|
-
*
|
726
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
727
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
728
|
-
* regenerated.
|
729
|
-
*/
|
730
|
-
|
731
|
-
/*
|
732
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
733
|
-
* Licensed under the MIT License. See License.txt in the project root for
|
734
|
-
* license information.
|
735
|
-
*
|
736
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
737
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
738
|
-
* regenerated.
|
739
|
-
*/
|
740
|
-
var packageName = "@azure/arm-msi";
|
741
|
-
var packageVersion = "1.2.1";
|
742
|
-
var ManagedServiceIdentityClientContext = /** @class */ (function (_super) {
|
743
|
-
__extends(ManagedServiceIdentityClientContext, _super);
|
744
|
-
/**
|
745
|
-
* Initializes a new instance of the ManagedServiceIdentityClient class.
|
746
|
-
* @param credentials Credentials needed for the client to connect to Azure. Credentials
|
747
|
-
* implementing the TokenCredential interface from the @azure/identity package are recommended. For
|
748
|
-
* more information about these credentials, see
|
749
|
-
* {@link https://www.npmjs.com/package/@azure/identity}. Credentials implementing the
|
750
|
-
* ServiceClientCredentials interface from the older packages @azure/ms-rest-nodeauth and
|
751
|
-
* @azure/ms-rest-browserauth are also supported.
|
752
|
-
* @param subscriptionId The Id of the Subscription to which the identity belongs.
|
753
|
-
* @param [options] The parameter options
|
754
|
-
*/
|
755
|
-
function ManagedServiceIdentityClientContext(credentials, subscriptionId, options) {
|
756
|
-
var _this = this;
|
757
|
-
if (credentials == undefined) {
|
758
|
-
throw new Error('\'credentials\' cannot be null.');
|
759
|
-
}
|
760
|
-
if (subscriptionId == undefined) {
|
761
|
-
throw new Error('\'subscriptionId\' cannot be null.');
|
762
|
-
}
|
763
|
-
if (!options) {
|
764
|
-
options = {};
|
765
|
-
}
|
766
|
-
if (!options.userAgent) {
|
767
|
-
var defaultUserAgent = msRestAzure.getDefaultUserAgentValue();
|
768
|
-
options.userAgent = packageName + "/" + packageVersion + " " + defaultUserAgent;
|
769
|
-
}
|
770
|
-
_this = _super.call(this, credentials, options) || this;
|
771
|
-
_this.apiVersion = '2015-08-31-preview';
|
772
|
-
_this.acceptLanguage = 'en-US';
|
773
|
-
_this.longRunningOperationRetryTimeout = 30;
|
774
|
-
_this.baseUri = options.baseUri || _this.baseUri || "https://management.azure.com";
|
775
|
-
_this.requestContentType = "application/json; charset=utf-8";
|
776
|
-
_this.credentials = credentials;
|
777
|
-
_this.subscriptionId = subscriptionId;
|
778
|
-
if (options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
|
779
|
-
_this.acceptLanguage = options.acceptLanguage;
|
780
|
-
}
|
781
|
-
if (options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {
|
782
|
-
_this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout;
|
783
|
-
}
|
784
|
-
return _this;
|
785
|
-
}
|
786
|
-
return ManagedServiceIdentityClientContext;
|
787
|
-
}(msRestAzure.AzureServiceClient));
|
788
|
-
|
789
|
-
/*
|
790
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
791
|
-
* Licensed under the MIT License. See License.txt in the project root for
|
792
|
-
* license information.
|
793
|
-
*
|
794
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
795
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
796
|
-
* regenerated.
|
797
|
-
*/
|
798
|
-
var ManagedServiceIdentityClient = /** @class */ (function (_super) {
|
799
|
-
__extends(ManagedServiceIdentityClient, _super);
|
800
|
-
/**
|
801
|
-
* Initializes a new instance of the ManagedServiceIdentityClient class.
|
802
|
-
* @param credentials Credentials needed for the client to connect to Azure. Credentials
|
803
|
-
* implementing the TokenCredential interface from the @azure/identity package are recommended. For
|
804
|
-
* more information about these credentials, see
|
805
|
-
* {@link https://www.npmjs.com/package/@azure/identity}. Credentials implementing the
|
806
|
-
* ServiceClientCredentials interface from the older packages @azure/ms-rest-nodeauth and
|
807
|
-
* @azure/ms-rest-browserauth are also supported.
|
808
|
-
* @param subscriptionId The Id of the Subscription to which the identity belongs.
|
809
|
-
* @param [options] The parameter options
|
810
|
-
*/
|
811
|
-
function ManagedServiceIdentityClient(credentials, subscriptionId, options) {
|
812
|
-
var _this = _super.call(this, credentials, subscriptionId, options) || this;
|
813
|
-
_this.operations = new Operations(_this);
|
814
|
-
_this.userAssignedIdentities = new UserAssignedIdentities(_this);
|
815
|
-
return _this;
|
816
|
-
}
|
817
|
-
return ManagedServiceIdentityClient;
|
818
|
-
}(ManagedServiceIdentityClientContext));
|
819
|
-
|
820
|
-
exports.ManagedServiceIdentityClient = ManagedServiceIdentityClient;
|
821
|
-
exports.ManagedServiceIdentityClientContext = ManagedServiceIdentityClientContext;
|
822
|
-
exports.ManagedServiceIdentityModels = index;
|
823
|
-
exports.ManagedServiceIdentityMappers = mappers;
|
824
|
-
exports.Operations = Operations;
|
825
|
-
exports.UserAssignedIdentities = UserAssignedIdentities;
|
826
|
-
|
827
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
828
|
-
|
829
|
-
})));
|
830
|
-
//# sourceMappingURL=arm-msi.js.map
|