@azure/arm-locks 1.2.0 → 2.0.0-alpha.20211015.3
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 +26 -0
- package/{LICENSE.txt → LICENSE} +2 -2
- package/README.md +63 -80
- package/dist/index.js +1796 -0
- package/dist/index.js.map +1 -0
- package/dist/index.min.js +1 -0
- package/dist/index.min.js.map +1 -0
- package/esm/index.d.ts +534 -0
- package/esm/index.d.ts.map +1 -0
- package/esm/index.js +13 -0
- package/esm/index.js.map +1 -0
- package/esm/managementLockClient.d.ts +9 -18
- package/esm/managementLockClient.d.ts.map +1 -1
- package/esm/managementLockClient.js +12 -28
- package/esm/managementLockClient.js.map +1 -1
- package/esm/managementLockClientContext.d.ts +10 -16
- package/esm/managementLockClientContext.d.ts.map +1 -1
- package/esm/managementLockClientContext.js +34 -46
- package/esm/managementLockClientContext.js.map +1 -1
- package/esm/models/index.d.ts +208 -445
- package/esm/models/index.d.ts.map +1 -1
- package/esm/models/index.js +9 -2
- package/esm/models/index.js.map +1 -1
- package/esm/models/mappers.d.ts +7 -9
- package/esm/models/mappers.d.ts.map +1 -1
- package/esm/models/mappers.js +69 -78
- package/esm/models/mappers.js.map +1 -1
- package/esm/models/parameters.d.ts +16 -13
- package/esm/models/parameters.d.ts.map +1 -1
- package/esm/models/parameters.js +78 -54
- package/esm/models/parameters.js.map +1 -1
- package/esm/operations/authorizationOperations.d.ts +27 -26
- package/esm/operations/authorizationOperations.d.ts.map +1 -1
- package/esm/operations/authorizationOperations.js +158 -50
- package/esm/operations/authorizationOperations.js.map +1 -1
- package/esm/operations/index.d.ts.map +1 -1
- package/esm/operations/index.js +3 -5
- package/esm/operations/index.js.map +1 -1
- package/esm/operations/managementLocks.d.ts +203 -393
- package/esm/operations/managementLocks.d.ts.map +1 -1
- package/esm/operations/managementLocks.js +993 -485
- package/esm/operations/managementLocks.js.map +1 -1
- package/esm/operationsInterfaces/authorizationOperations.d.ts +18 -0
- package/esm/operationsInterfaces/authorizationOperations.d.ts.map +1 -0
- package/esm/operationsInterfaces/authorizationOperations.js +9 -0
- package/esm/operationsInterfaces/authorizationOperations.js.map +1 -0
- package/esm/operationsInterfaces/index.d.ts +3 -0
- package/esm/operationsInterfaces/index.d.ts.map +1 -0
- package/esm/operationsInterfaces/index.js +10 -0
- package/esm/operationsInterfaces/index.js.map +1 -0
- package/esm/operationsInterfaces/managementLocks.d.ts +198 -0
- package/esm/operationsInterfaces/managementLocks.d.ts.map +1 -0
- package/esm/operationsInterfaces/managementLocks.js +9 -0
- package/esm/operationsInterfaces/managementLocks.js.map +1 -0
- package/package.json +53 -16
- package/review/arm-locks.api.md +313 -0
- package/rollup.config.js +181 -30
- package/src/index.ts +13 -0
- package/src/managementLockClient.ts +23 -36
- package/src/managementLockClientContext.ts +47 -45
- package/src/models/index.ts +256 -470
- package/src/models/mappers.ts +72 -82
- package/src/models/parameters.ts +97 -55
- package/src/operations/authorizationOperations.ts +155 -70
- package/src/operations/index.ts +3 -5
- package/src/operations/managementLocks.ts +1165 -869
- package/src/operationsInterfaces/authorizationOperations.ts +36 -0
- package/src/operationsInterfaces/index.ts +10 -0
- package/src/operationsInterfaces/managementLocks.ts +332 -0
- package/tsconfig.json +3 -2
- package/dist/arm-locks.js +0 -1280
- package/dist/arm-locks.js.map +0 -1
- package/dist/arm-locks.min.js +0 -1
- package/dist/arm-locks.min.js.map +0 -1
- package/esm/models/authorizationOperationsMappers.d.ts +0 -2
- package/esm/models/authorizationOperationsMappers.d.ts.map +0 -1
- package/esm/models/authorizationOperationsMappers.js +0 -9
- package/esm/models/authorizationOperationsMappers.js.map +0 -1
- package/esm/models/managementLocksMappers.d.ts +0 -2
- package/esm/models/managementLocksMappers.d.ts.map +0 -1
- package/esm/models/managementLocksMappers.js +0 -9
- package/esm/models/managementLocksMappers.js.map +0 -1
- package/src/models/authorizationOperationsMappers.ts +0 -14
- package/src/models/managementLocksMappers.ts +0 -15
package/dist/arm-locks.js
DELETED
@@ -1,1280 +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 license information.
|
4
|
-
*
|
5
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
6
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
7
|
-
*/
|
8
|
-
(function (global, factory) {
|
9
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@azure/ms-rest-azure-js'), require('@azure/ms-rest-js')) :
|
10
|
-
typeof define === 'function' && define.amd ? define(['exports', '@azure/ms-rest-azure-js', '@azure/ms-rest-js'], factory) :
|
11
|
-
(factory((global.Azure = global.Azure || {}, global.Azure.ArmLocks = {}),global.msRestAzure,global.msRest));
|
12
|
-
}(this, (function (exports,msRestAzure,msRest) { 'use strict';
|
13
|
-
|
14
|
-
/*! *****************************************************************************
|
15
|
-
Copyright (c) Microsoft Corporation.
|
16
|
-
|
17
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
18
|
-
purpose with or without fee is hereby granted.
|
19
|
-
|
20
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
21
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
22
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
23
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
24
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
25
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
26
|
-
PERFORMANCE OF THIS SOFTWARE.
|
27
|
-
***************************************************************************** */
|
28
|
-
/* global Reflect, Promise */
|
29
|
-
|
30
|
-
var extendStatics = function(d, b) {
|
31
|
-
extendStatics = Object.setPrototypeOf ||
|
32
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
33
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
34
|
-
return extendStatics(d, b);
|
35
|
-
};
|
36
|
-
|
37
|
-
function __extends(d, b) {
|
38
|
-
extendStatics(d, b);
|
39
|
-
function __() { this.constructor = d; }
|
40
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
41
|
-
}
|
42
|
-
|
43
|
-
var __assign = function() {
|
44
|
-
__assign = Object.assign || function __assign(t) {
|
45
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
46
|
-
s = arguments[i];
|
47
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
48
|
-
}
|
49
|
-
return t;
|
50
|
-
};
|
51
|
-
return __assign.apply(this, arguments);
|
52
|
-
};
|
53
|
-
|
54
|
-
/*
|
55
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
56
|
-
* Licensed under the MIT License. See License.txt in the project root for license information.
|
57
|
-
*
|
58
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
59
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
60
|
-
*/
|
61
|
-
|
62
|
-
var index = /*#__PURE__*/Object.freeze({
|
63
|
-
|
64
|
-
});
|
65
|
-
|
66
|
-
/*
|
67
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
68
|
-
* Licensed under the MIT License. See License.txt in the project root for license information.
|
69
|
-
*
|
70
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
71
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
72
|
-
*/
|
73
|
-
var CloudError = msRestAzure.CloudErrorMapper;
|
74
|
-
var BaseResource = msRestAzure.BaseResourceMapper;
|
75
|
-
var ManagementLockOwner = {
|
76
|
-
serializedName: "ManagementLockOwner",
|
77
|
-
type: {
|
78
|
-
name: "Composite",
|
79
|
-
className: "ManagementLockOwner",
|
80
|
-
modelProperties: {
|
81
|
-
applicationId: {
|
82
|
-
serializedName: "applicationId",
|
83
|
-
type: {
|
84
|
-
name: "String"
|
85
|
-
}
|
86
|
-
}
|
87
|
-
}
|
88
|
-
}
|
89
|
-
};
|
90
|
-
var ManagementLockObject = {
|
91
|
-
serializedName: "ManagementLockObject",
|
92
|
-
type: {
|
93
|
-
name: "Composite",
|
94
|
-
className: "ManagementLockObject",
|
95
|
-
modelProperties: {
|
96
|
-
level: {
|
97
|
-
required: true,
|
98
|
-
serializedName: "properties.level",
|
99
|
-
type: {
|
100
|
-
name: "String"
|
101
|
-
}
|
102
|
-
},
|
103
|
-
notes: {
|
104
|
-
serializedName: "properties.notes",
|
105
|
-
type: {
|
106
|
-
name: "String"
|
107
|
-
}
|
108
|
-
},
|
109
|
-
owners: {
|
110
|
-
serializedName: "properties.owners",
|
111
|
-
type: {
|
112
|
-
name: "Sequence",
|
113
|
-
element: {
|
114
|
-
type: {
|
115
|
-
name: "Composite",
|
116
|
-
className: "ManagementLockOwner"
|
117
|
-
}
|
118
|
-
}
|
119
|
-
}
|
120
|
-
},
|
121
|
-
id: {
|
122
|
-
readOnly: true,
|
123
|
-
serializedName: "id",
|
124
|
-
type: {
|
125
|
-
name: "String"
|
126
|
-
}
|
127
|
-
},
|
128
|
-
type: {
|
129
|
-
readOnly: true,
|
130
|
-
serializedName: "type",
|
131
|
-
type: {
|
132
|
-
name: "String"
|
133
|
-
}
|
134
|
-
},
|
135
|
-
name: {
|
136
|
-
readOnly: true,
|
137
|
-
serializedName: "name",
|
138
|
-
type: {
|
139
|
-
name: "String"
|
140
|
-
}
|
141
|
-
}
|
142
|
-
}
|
143
|
-
}
|
144
|
-
};
|
145
|
-
var OperationDisplay = {
|
146
|
-
serializedName: "Operation_display",
|
147
|
-
type: {
|
148
|
-
name: "Composite",
|
149
|
-
className: "OperationDisplay",
|
150
|
-
modelProperties: {
|
151
|
-
provider: {
|
152
|
-
serializedName: "provider",
|
153
|
-
type: {
|
154
|
-
name: "String"
|
155
|
-
}
|
156
|
-
},
|
157
|
-
resource: {
|
158
|
-
serializedName: "resource",
|
159
|
-
type: {
|
160
|
-
name: "String"
|
161
|
-
}
|
162
|
-
},
|
163
|
-
operation: {
|
164
|
-
serializedName: "operation",
|
165
|
-
type: {
|
166
|
-
name: "String"
|
167
|
-
}
|
168
|
-
}
|
169
|
-
}
|
170
|
-
}
|
171
|
-
};
|
172
|
-
var Operation = {
|
173
|
-
serializedName: "Operation",
|
174
|
-
type: {
|
175
|
-
name: "Composite",
|
176
|
-
className: "Operation",
|
177
|
-
modelProperties: {
|
178
|
-
name: {
|
179
|
-
serializedName: "name",
|
180
|
-
type: {
|
181
|
-
name: "String"
|
182
|
-
}
|
183
|
-
},
|
184
|
-
display: {
|
185
|
-
serializedName: "display",
|
186
|
-
type: {
|
187
|
-
name: "Composite",
|
188
|
-
className: "OperationDisplay"
|
189
|
-
}
|
190
|
-
}
|
191
|
-
}
|
192
|
-
}
|
193
|
-
};
|
194
|
-
var OperationListResult = {
|
195
|
-
serializedName: "OperationListResult",
|
196
|
-
type: {
|
197
|
-
name: "Composite",
|
198
|
-
className: "OperationListResult",
|
199
|
-
modelProperties: {
|
200
|
-
value: {
|
201
|
-
serializedName: "",
|
202
|
-
type: {
|
203
|
-
name: "Sequence",
|
204
|
-
element: {
|
205
|
-
type: {
|
206
|
-
name: "Composite",
|
207
|
-
className: "Operation"
|
208
|
-
}
|
209
|
-
}
|
210
|
-
}
|
211
|
-
},
|
212
|
-
nextLink: {
|
213
|
-
serializedName: "nextLink",
|
214
|
-
type: {
|
215
|
-
name: "String"
|
216
|
-
}
|
217
|
-
}
|
218
|
-
}
|
219
|
-
}
|
220
|
-
};
|
221
|
-
var ManagementLockListResult = {
|
222
|
-
serializedName: "ManagementLockListResult",
|
223
|
-
type: {
|
224
|
-
name: "Composite",
|
225
|
-
className: "ManagementLockListResult",
|
226
|
-
modelProperties: {
|
227
|
-
value: {
|
228
|
-
serializedName: "",
|
229
|
-
type: {
|
230
|
-
name: "Sequence",
|
231
|
-
element: {
|
232
|
-
type: {
|
233
|
-
name: "Composite",
|
234
|
-
className: "ManagementLockObject"
|
235
|
-
}
|
236
|
-
}
|
237
|
-
}
|
238
|
-
},
|
239
|
-
nextLink: {
|
240
|
-
serializedName: "nextLink",
|
241
|
-
type: {
|
242
|
-
name: "String"
|
243
|
-
}
|
244
|
-
}
|
245
|
-
}
|
246
|
-
}
|
247
|
-
};
|
248
|
-
|
249
|
-
var mappers = /*#__PURE__*/Object.freeze({
|
250
|
-
CloudError: CloudError,
|
251
|
-
BaseResource: BaseResource,
|
252
|
-
ManagementLockOwner: ManagementLockOwner,
|
253
|
-
ManagementLockObject: ManagementLockObject,
|
254
|
-
OperationDisplay: OperationDisplay,
|
255
|
-
Operation: Operation,
|
256
|
-
OperationListResult: OperationListResult,
|
257
|
-
ManagementLockListResult: ManagementLockListResult
|
258
|
-
});
|
259
|
-
|
260
|
-
/*
|
261
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
262
|
-
* Licensed under the MIT License. See License.txt in the project root for license information.
|
263
|
-
*
|
264
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
265
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
266
|
-
*/
|
267
|
-
|
268
|
-
var Mappers = /*#__PURE__*/Object.freeze({
|
269
|
-
CloudError: CloudError,
|
270
|
-
Operation: Operation,
|
271
|
-
OperationDisplay: OperationDisplay,
|
272
|
-
OperationListResult: OperationListResult
|
273
|
-
});
|
274
|
-
|
275
|
-
/*
|
276
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
277
|
-
* Licensed under the MIT License. See License.txt in the project root for
|
278
|
-
* license information.
|
279
|
-
*
|
280
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
281
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
282
|
-
* regenerated.
|
283
|
-
*/
|
284
|
-
var acceptLanguage = {
|
285
|
-
parameterPath: "acceptLanguage",
|
286
|
-
mapper: {
|
287
|
-
serializedName: "accept-language",
|
288
|
-
defaultValue: 'en-US',
|
289
|
-
type: {
|
290
|
-
name: "String"
|
291
|
-
}
|
292
|
-
}
|
293
|
-
};
|
294
|
-
var apiVersion = {
|
295
|
-
parameterPath: "apiVersion",
|
296
|
-
mapper: {
|
297
|
-
required: true,
|
298
|
-
serializedName: "api-version",
|
299
|
-
type: {
|
300
|
-
name: "String"
|
301
|
-
}
|
302
|
-
}
|
303
|
-
};
|
304
|
-
var filter = {
|
305
|
-
parameterPath: [
|
306
|
-
"options",
|
307
|
-
"filter"
|
308
|
-
],
|
309
|
-
mapper: {
|
310
|
-
serializedName: "$filter",
|
311
|
-
type: {
|
312
|
-
name: "String"
|
313
|
-
}
|
314
|
-
}
|
315
|
-
};
|
316
|
-
var lockName = {
|
317
|
-
parameterPath: "lockName",
|
318
|
-
mapper: {
|
319
|
-
required: true,
|
320
|
-
serializedName: "lockName",
|
321
|
-
type: {
|
322
|
-
name: "String"
|
323
|
-
}
|
324
|
-
}
|
325
|
-
};
|
326
|
-
var nextPageLink = {
|
327
|
-
parameterPath: "nextPageLink",
|
328
|
-
mapper: {
|
329
|
-
required: true,
|
330
|
-
serializedName: "nextLink",
|
331
|
-
type: {
|
332
|
-
name: "String"
|
333
|
-
}
|
334
|
-
},
|
335
|
-
skipEncoding: true
|
336
|
-
};
|
337
|
-
var parentResourcePath = {
|
338
|
-
parameterPath: "parentResourcePath",
|
339
|
-
mapper: {
|
340
|
-
required: true,
|
341
|
-
serializedName: "parentResourcePath",
|
342
|
-
type: {
|
343
|
-
name: "String"
|
344
|
-
}
|
345
|
-
},
|
346
|
-
skipEncoding: true
|
347
|
-
};
|
348
|
-
var resourceGroupName = {
|
349
|
-
parameterPath: "resourceGroupName",
|
350
|
-
mapper: {
|
351
|
-
required: true,
|
352
|
-
serializedName: "resourceGroupName",
|
353
|
-
constraints: {
|
354
|
-
MaxLength: 90,
|
355
|
-
MinLength: 1,
|
356
|
-
Pattern: /^[-\w\._\(\)]+$/
|
357
|
-
},
|
358
|
-
type: {
|
359
|
-
name: "String"
|
360
|
-
}
|
361
|
-
}
|
362
|
-
};
|
363
|
-
var resourceName = {
|
364
|
-
parameterPath: "resourceName",
|
365
|
-
mapper: {
|
366
|
-
required: true,
|
367
|
-
serializedName: "resourceName",
|
368
|
-
type: {
|
369
|
-
name: "String"
|
370
|
-
}
|
371
|
-
}
|
372
|
-
};
|
373
|
-
var resourceProviderNamespace = {
|
374
|
-
parameterPath: "resourceProviderNamespace",
|
375
|
-
mapper: {
|
376
|
-
required: true,
|
377
|
-
serializedName: "resourceProviderNamespace",
|
378
|
-
type: {
|
379
|
-
name: "String"
|
380
|
-
}
|
381
|
-
}
|
382
|
-
};
|
383
|
-
var resourceType = {
|
384
|
-
parameterPath: "resourceType",
|
385
|
-
mapper: {
|
386
|
-
required: true,
|
387
|
-
serializedName: "resourceType",
|
388
|
-
type: {
|
389
|
-
name: "String"
|
390
|
-
}
|
391
|
-
},
|
392
|
-
skipEncoding: true
|
393
|
-
};
|
394
|
-
var scope = {
|
395
|
-
parameterPath: "scope",
|
396
|
-
mapper: {
|
397
|
-
required: true,
|
398
|
-
serializedName: "scope",
|
399
|
-
type: {
|
400
|
-
name: "String"
|
401
|
-
}
|
402
|
-
}
|
403
|
-
};
|
404
|
-
var subscriptionId = {
|
405
|
-
parameterPath: "subscriptionId",
|
406
|
-
mapper: {
|
407
|
-
required: true,
|
408
|
-
serializedName: "subscriptionId",
|
409
|
-
type: {
|
410
|
-
name: "String"
|
411
|
-
}
|
412
|
-
}
|
413
|
-
};
|
414
|
-
|
415
|
-
/*
|
416
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
417
|
-
* Licensed under the MIT License. See License.txt in the project root for
|
418
|
-
* license information.
|
419
|
-
*
|
420
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
421
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
422
|
-
* regenerated.
|
423
|
-
*/
|
424
|
-
/** Class representing a AuthorizationOperations. */
|
425
|
-
var AuthorizationOperations = /** @class */ (function () {
|
426
|
-
/**
|
427
|
-
* Create a AuthorizationOperations.
|
428
|
-
* @param {ManagementLockClientContext} client Reference to the service client.
|
429
|
-
*/
|
430
|
-
function AuthorizationOperations(client) {
|
431
|
-
this.client = client;
|
432
|
-
}
|
433
|
-
AuthorizationOperations.prototype.list = function (options, callback) {
|
434
|
-
return this.client.sendOperationRequest({
|
435
|
-
options: options
|
436
|
-
}, listOperationSpec, callback);
|
437
|
-
};
|
438
|
-
AuthorizationOperations.prototype.listNext = function (nextPageLink$$1, options, callback) {
|
439
|
-
return this.client.sendOperationRequest({
|
440
|
-
nextPageLink: nextPageLink$$1,
|
441
|
-
options: options
|
442
|
-
}, listNextOperationSpec, callback);
|
443
|
-
};
|
444
|
-
return AuthorizationOperations;
|
445
|
-
}());
|
446
|
-
// Operation Specifications
|
447
|
-
var serializer = new msRest.Serializer(Mappers);
|
448
|
-
var listOperationSpec = {
|
449
|
-
httpMethod: "GET",
|
450
|
-
path: "providers/Microsoft.Authorization/operations",
|
451
|
-
queryParameters: [
|
452
|
-
apiVersion
|
453
|
-
],
|
454
|
-
headerParameters: [
|
455
|
-
acceptLanguage
|
456
|
-
],
|
457
|
-
responses: {
|
458
|
-
200: {
|
459
|
-
bodyMapper: OperationListResult
|
460
|
-
},
|
461
|
-
default: {
|
462
|
-
bodyMapper: CloudError
|
463
|
-
}
|
464
|
-
},
|
465
|
-
serializer: serializer
|
466
|
-
};
|
467
|
-
var listNextOperationSpec = {
|
468
|
-
httpMethod: "GET",
|
469
|
-
baseUrl: "https://management.azure.com",
|
470
|
-
path: "{nextLink}",
|
471
|
-
urlParameters: [
|
472
|
-
nextPageLink
|
473
|
-
],
|
474
|
-
headerParameters: [
|
475
|
-
acceptLanguage
|
476
|
-
],
|
477
|
-
responses: {
|
478
|
-
200: {
|
479
|
-
bodyMapper: OperationListResult
|
480
|
-
},
|
481
|
-
default: {
|
482
|
-
bodyMapper: CloudError
|
483
|
-
}
|
484
|
-
},
|
485
|
-
serializer: serializer
|
486
|
-
};
|
487
|
-
|
488
|
-
/*
|
489
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
490
|
-
* Licensed under the MIT License. See License.txt in the project root for license information.
|
491
|
-
*
|
492
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
493
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
494
|
-
*/
|
495
|
-
|
496
|
-
var Mappers$1 = /*#__PURE__*/Object.freeze({
|
497
|
-
BaseResource: BaseResource,
|
498
|
-
CloudError: CloudError,
|
499
|
-
ManagementLockListResult: ManagementLockListResult,
|
500
|
-
ManagementLockObject: ManagementLockObject,
|
501
|
-
ManagementLockOwner: ManagementLockOwner
|
502
|
-
});
|
503
|
-
|
504
|
-
/*
|
505
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
506
|
-
* Licensed under the MIT License. See License.txt in the project root for
|
507
|
-
* license information.
|
508
|
-
*
|
509
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
510
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
511
|
-
* regenerated.
|
512
|
-
*/
|
513
|
-
/** Class representing a ManagementLocks. */
|
514
|
-
var ManagementLocks = /** @class */ (function () {
|
515
|
-
/**
|
516
|
-
* Create a ManagementLocks.
|
517
|
-
* @param {ManagementLockClientContext} client Reference to the service client.
|
518
|
-
*/
|
519
|
-
function ManagementLocks(client) {
|
520
|
-
this.client = client;
|
521
|
-
}
|
522
|
-
ManagementLocks.prototype.createOrUpdateAtResourceGroupLevel = function (resourceGroupName$$1, lockName$$1, parameters, options, callback) {
|
523
|
-
return this.client.sendOperationRequest({
|
524
|
-
resourceGroupName: resourceGroupName$$1,
|
525
|
-
lockName: lockName$$1,
|
526
|
-
parameters: parameters,
|
527
|
-
options: options
|
528
|
-
}, createOrUpdateAtResourceGroupLevelOperationSpec, callback);
|
529
|
-
};
|
530
|
-
ManagementLocks.prototype.deleteAtResourceGroupLevel = function (resourceGroupName$$1, lockName$$1, options, callback) {
|
531
|
-
return this.client.sendOperationRequest({
|
532
|
-
resourceGroupName: resourceGroupName$$1,
|
533
|
-
lockName: lockName$$1,
|
534
|
-
options: options
|
535
|
-
}, deleteAtResourceGroupLevelOperationSpec, callback);
|
536
|
-
};
|
537
|
-
ManagementLocks.prototype.getAtResourceGroupLevel = function (resourceGroupName$$1, lockName$$1, options, callback) {
|
538
|
-
return this.client.sendOperationRequest({
|
539
|
-
resourceGroupName: resourceGroupName$$1,
|
540
|
-
lockName: lockName$$1,
|
541
|
-
options: options
|
542
|
-
}, getAtResourceGroupLevelOperationSpec, callback);
|
543
|
-
};
|
544
|
-
ManagementLocks.prototype.createOrUpdateByScope = function (scope$$1, lockName$$1, parameters, options, callback) {
|
545
|
-
return this.client.sendOperationRequest({
|
546
|
-
scope: scope$$1,
|
547
|
-
lockName: lockName$$1,
|
548
|
-
parameters: parameters,
|
549
|
-
options: options
|
550
|
-
}, createOrUpdateByScopeOperationSpec, callback);
|
551
|
-
};
|
552
|
-
ManagementLocks.prototype.deleteByScope = function (scope$$1, lockName$$1, options, callback) {
|
553
|
-
return this.client.sendOperationRequest({
|
554
|
-
scope: scope$$1,
|
555
|
-
lockName: lockName$$1,
|
556
|
-
options: options
|
557
|
-
}, deleteByScopeOperationSpec, callback);
|
558
|
-
};
|
559
|
-
ManagementLocks.prototype.getByScope = function (scope$$1, lockName$$1, options, callback) {
|
560
|
-
return this.client.sendOperationRequest({
|
561
|
-
scope: scope$$1,
|
562
|
-
lockName: lockName$$1,
|
563
|
-
options: options
|
564
|
-
}, getByScopeOperationSpec, callback);
|
565
|
-
};
|
566
|
-
ManagementLocks.prototype.createOrUpdateAtResourceLevel = function (resourceGroupName$$1, resourceProviderNamespace$$1, parentResourcePath$$1, resourceType$$1, resourceName$$1, lockName$$1, parameters, options, callback) {
|
567
|
-
return this.client.sendOperationRequest({
|
568
|
-
resourceGroupName: resourceGroupName$$1,
|
569
|
-
resourceProviderNamespace: resourceProviderNamespace$$1,
|
570
|
-
parentResourcePath: parentResourcePath$$1,
|
571
|
-
resourceType: resourceType$$1,
|
572
|
-
resourceName: resourceName$$1,
|
573
|
-
lockName: lockName$$1,
|
574
|
-
parameters: parameters,
|
575
|
-
options: options
|
576
|
-
}, createOrUpdateAtResourceLevelOperationSpec, callback);
|
577
|
-
};
|
578
|
-
ManagementLocks.prototype.deleteAtResourceLevel = function (resourceGroupName$$1, resourceProviderNamespace$$1, parentResourcePath$$1, resourceType$$1, resourceName$$1, lockName$$1, options, callback) {
|
579
|
-
return this.client.sendOperationRequest({
|
580
|
-
resourceGroupName: resourceGroupName$$1,
|
581
|
-
resourceProviderNamespace: resourceProviderNamespace$$1,
|
582
|
-
parentResourcePath: parentResourcePath$$1,
|
583
|
-
resourceType: resourceType$$1,
|
584
|
-
resourceName: resourceName$$1,
|
585
|
-
lockName: lockName$$1,
|
586
|
-
options: options
|
587
|
-
}, deleteAtResourceLevelOperationSpec, callback);
|
588
|
-
};
|
589
|
-
ManagementLocks.prototype.getAtResourceLevel = function (resourceGroupName$$1, resourceProviderNamespace$$1, parentResourcePath$$1, resourceType$$1, resourceName$$1, lockName$$1, options, callback) {
|
590
|
-
return this.client.sendOperationRequest({
|
591
|
-
resourceGroupName: resourceGroupName$$1,
|
592
|
-
resourceProviderNamespace: resourceProviderNamespace$$1,
|
593
|
-
parentResourcePath: parentResourcePath$$1,
|
594
|
-
resourceType: resourceType$$1,
|
595
|
-
resourceName: resourceName$$1,
|
596
|
-
lockName: lockName$$1,
|
597
|
-
options: options
|
598
|
-
}, getAtResourceLevelOperationSpec, callback);
|
599
|
-
};
|
600
|
-
ManagementLocks.prototype.createOrUpdateAtSubscriptionLevel = function (lockName$$1, parameters, options, callback) {
|
601
|
-
return this.client.sendOperationRequest({
|
602
|
-
lockName: lockName$$1,
|
603
|
-
parameters: parameters,
|
604
|
-
options: options
|
605
|
-
}, createOrUpdateAtSubscriptionLevelOperationSpec, callback);
|
606
|
-
};
|
607
|
-
ManagementLocks.prototype.deleteAtSubscriptionLevel = function (lockName$$1, options, callback) {
|
608
|
-
return this.client.sendOperationRequest({
|
609
|
-
lockName: lockName$$1,
|
610
|
-
options: options
|
611
|
-
}, deleteAtSubscriptionLevelOperationSpec, callback);
|
612
|
-
};
|
613
|
-
ManagementLocks.prototype.getAtSubscriptionLevel = function (lockName$$1, options, callback) {
|
614
|
-
return this.client.sendOperationRequest({
|
615
|
-
lockName: lockName$$1,
|
616
|
-
options: options
|
617
|
-
}, getAtSubscriptionLevelOperationSpec, callback);
|
618
|
-
};
|
619
|
-
ManagementLocks.prototype.listAtResourceGroupLevel = function (resourceGroupName$$1, options, callback) {
|
620
|
-
return this.client.sendOperationRequest({
|
621
|
-
resourceGroupName: resourceGroupName$$1,
|
622
|
-
options: options
|
623
|
-
}, listAtResourceGroupLevelOperationSpec, callback);
|
624
|
-
};
|
625
|
-
ManagementLocks.prototype.listAtResourceLevel = function (resourceGroupName$$1, resourceProviderNamespace$$1, parentResourcePath$$1, resourceType$$1, resourceName$$1, options, callback) {
|
626
|
-
return this.client.sendOperationRequest({
|
627
|
-
resourceGroupName: resourceGroupName$$1,
|
628
|
-
resourceProviderNamespace: resourceProviderNamespace$$1,
|
629
|
-
parentResourcePath: parentResourcePath$$1,
|
630
|
-
resourceType: resourceType$$1,
|
631
|
-
resourceName: resourceName$$1,
|
632
|
-
options: options
|
633
|
-
}, listAtResourceLevelOperationSpec, callback);
|
634
|
-
};
|
635
|
-
ManagementLocks.prototype.listAtSubscriptionLevel = function (options, callback) {
|
636
|
-
return this.client.sendOperationRequest({
|
637
|
-
options: options
|
638
|
-
}, listAtSubscriptionLevelOperationSpec, callback);
|
639
|
-
};
|
640
|
-
ManagementLocks.prototype.listByScope = function (scope$$1, options, callback) {
|
641
|
-
return this.client.sendOperationRequest({
|
642
|
-
scope: scope$$1,
|
643
|
-
options: options
|
644
|
-
}, listByScopeOperationSpec, callback);
|
645
|
-
};
|
646
|
-
ManagementLocks.prototype.listAtResourceGroupLevelNext = function (nextPageLink$$1, options, callback) {
|
647
|
-
return this.client.sendOperationRequest({
|
648
|
-
nextPageLink: nextPageLink$$1,
|
649
|
-
options: options
|
650
|
-
}, listAtResourceGroupLevelNextOperationSpec, callback);
|
651
|
-
};
|
652
|
-
ManagementLocks.prototype.listAtResourceLevelNext = function (nextPageLink$$1, options, callback) {
|
653
|
-
return this.client.sendOperationRequest({
|
654
|
-
nextPageLink: nextPageLink$$1,
|
655
|
-
options: options
|
656
|
-
}, listAtResourceLevelNextOperationSpec, callback);
|
657
|
-
};
|
658
|
-
ManagementLocks.prototype.listAtSubscriptionLevelNext = function (nextPageLink$$1, options, callback) {
|
659
|
-
return this.client.sendOperationRequest({
|
660
|
-
nextPageLink: nextPageLink$$1,
|
661
|
-
options: options
|
662
|
-
}, listAtSubscriptionLevelNextOperationSpec, callback);
|
663
|
-
};
|
664
|
-
ManagementLocks.prototype.listByScopeNext = function (nextPageLink$$1, options, callback) {
|
665
|
-
return this.client.sendOperationRequest({
|
666
|
-
nextPageLink: nextPageLink$$1,
|
667
|
-
options: options
|
668
|
-
}, listByScopeNextOperationSpec, callback);
|
669
|
-
};
|
670
|
-
return ManagementLocks;
|
671
|
-
}());
|
672
|
-
// Operation Specifications
|
673
|
-
var serializer$1 = new msRest.Serializer(Mappers$1);
|
674
|
-
var createOrUpdateAtResourceGroupLevelOperationSpec = {
|
675
|
-
httpMethod: "PUT",
|
676
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Authorization/locks/{lockName}",
|
677
|
-
urlParameters: [
|
678
|
-
resourceGroupName,
|
679
|
-
lockName,
|
680
|
-
subscriptionId
|
681
|
-
],
|
682
|
-
queryParameters: [
|
683
|
-
apiVersion
|
684
|
-
],
|
685
|
-
headerParameters: [
|
686
|
-
acceptLanguage
|
687
|
-
],
|
688
|
-
requestBody: {
|
689
|
-
parameterPath: "parameters",
|
690
|
-
mapper: __assign(__assign({}, ManagementLockObject), { required: true })
|
691
|
-
},
|
692
|
-
responses: {
|
693
|
-
200: {
|
694
|
-
bodyMapper: ManagementLockObject
|
695
|
-
},
|
696
|
-
201: {
|
697
|
-
bodyMapper: ManagementLockObject
|
698
|
-
},
|
699
|
-
default: {
|
700
|
-
bodyMapper: CloudError
|
701
|
-
}
|
702
|
-
},
|
703
|
-
serializer: serializer$1
|
704
|
-
};
|
705
|
-
var deleteAtResourceGroupLevelOperationSpec = {
|
706
|
-
httpMethod: "DELETE",
|
707
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Authorization/locks/{lockName}",
|
708
|
-
urlParameters: [
|
709
|
-
resourceGroupName,
|
710
|
-
lockName,
|
711
|
-
subscriptionId
|
712
|
-
],
|
713
|
-
queryParameters: [
|
714
|
-
apiVersion
|
715
|
-
],
|
716
|
-
headerParameters: [
|
717
|
-
acceptLanguage
|
718
|
-
],
|
719
|
-
responses: {
|
720
|
-
200: {},
|
721
|
-
204: {},
|
722
|
-
default: {
|
723
|
-
bodyMapper: CloudError
|
724
|
-
}
|
725
|
-
},
|
726
|
-
serializer: serializer$1
|
727
|
-
};
|
728
|
-
var getAtResourceGroupLevelOperationSpec = {
|
729
|
-
httpMethod: "GET",
|
730
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Authorization/locks/{lockName}",
|
731
|
-
urlParameters: [
|
732
|
-
resourceGroupName,
|
733
|
-
lockName,
|
734
|
-
subscriptionId
|
735
|
-
],
|
736
|
-
queryParameters: [
|
737
|
-
apiVersion
|
738
|
-
],
|
739
|
-
headerParameters: [
|
740
|
-
acceptLanguage
|
741
|
-
],
|
742
|
-
responses: {
|
743
|
-
200: {
|
744
|
-
bodyMapper: ManagementLockObject
|
745
|
-
},
|
746
|
-
default: {
|
747
|
-
bodyMapper: CloudError
|
748
|
-
}
|
749
|
-
},
|
750
|
-
serializer: serializer$1
|
751
|
-
};
|
752
|
-
var createOrUpdateByScopeOperationSpec = {
|
753
|
-
httpMethod: "PUT",
|
754
|
-
path: "{scope}/providers/Microsoft.Authorization/locks/{lockName}",
|
755
|
-
urlParameters: [
|
756
|
-
scope,
|
757
|
-
lockName
|
758
|
-
],
|
759
|
-
queryParameters: [
|
760
|
-
apiVersion
|
761
|
-
],
|
762
|
-
headerParameters: [
|
763
|
-
acceptLanguage
|
764
|
-
],
|
765
|
-
requestBody: {
|
766
|
-
parameterPath: "parameters",
|
767
|
-
mapper: __assign(__assign({}, ManagementLockObject), { required: true })
|
768
|
-
},
|
769
|
-
responses: {
|
770
|
-
200: {
|
771
|
-
bodyMapper: ManagementLockObject
|
772
|
-
},
|
773
|
-
201: {
|
774
|
-
bodyMapper: ManagementLockObject
|
775
|
-
},
|
776
|
-
default: {
|
777
|
-
bodyMapper: CloudError
|
778
|
-
}
|
779
|
-
},
|
780
|
-
serializer: serializer$1
|
781
|
-
};
|
782
|
-
var deleteByScopeOperationSpec = {
|
783
|
-
httpMethod: "DELETE",
|
784
|
-
path: "{scope}/providers/Microsoft.Authorization/locks/{lockName}",
|
785
|
-
urlParameters: [
|
786
|
-
scope,
|
787
|
-
lockName
|
788
|
-
],
|
789
|
-
queryParameters: [
|
790
|
-
apiVersion
|
791
|
-
],
|
792
|
-
headerParameters: [
|
793
|
-
acceptLanguage
|
794
|
-
],
|
795
|
-
responses: {
|
796
|
-
200: {},
|
797
|
-
204: {},
|
798
|
-
default: {
|
799
|
-
bodyMapper: CloudError
|
800
|
-
}
|
801
|
-
},
|
802
|
-
serializer: serializer$1
|
803
|
-
};
|
804
|
-
var getByScopeOperationSpec = {
|
805
|
-
httpMethod: "GET",
|
806
|
-
path: "{scope}/providers/Microsoft.Authorization/locks/{lockName}",
|
807
|
-
urlParameters: [
|
808
|
-
scope,
|
809
|
-
lockName
|
810
|
-
],
|
811
|
-
queryParameters: [
|
812
|
-
apiVersion
|
813
|
-
],
|
814
|
-
headerParameters: [
|
815
|
-
acceptLanguage
|
816
|
-
],
|
817
|
-
responses: {
|
818
|
-
200: {
|
819
|
-
bodyMapper: ManagementLockObject
|
820
|
-
},
|
821
|
-
default: {
|
822
|
-
bodyMapper: CloudError
|
823
|
-
}
|
824
|
-
},
|
825
|
-
serializer: serializer$1
|
826
|
-
};
|
827
|
-
var createOrUpdateAtResourceLevelOperationSpec = {
|
828
|
-
httpMethod: "PUT",
|
829
|
-
path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/locks/{lockName}",
|
830
|
-
urlParameters: [
|
831
|
-
resourceGroupName,
|
832
|
-
resourceProviderNamespace,
|
833
|
-
parentResourcePath,
|
834
|
-
resourceType,
|
835
|
-
resourceName,
|
836
|
-
lockName,
|
837
|
-
subscriptionId
|
838
|
-
],
|
839
|
-
queryParameters: [
|
840
|
-
apiVersion
|
841
|
-
],
|
842
|
-
headerParameters: [
|
843
|
-
acceptLanguage
|
844
|
-
],
|
845
|
-
requestBody: {
|
846
|
-
parameterPath: "parameters",
|
847
|
-
mapper: __assign(__assign({}, ManagementLockObject), { required: true })
|
848
|
-
},
|
849
|
-
responses: {
|
850
|
-
200: {
|
851
|
-
bodyMapper: ManagementLockObject
|
852
|
-
},
|
853
|
-
201: {
|
854
|
-
bodyMapper: ManagementLockObject
|
855
|
-
},
|
856
|
-
default: {
|
857
|
-
bodyMapper: CloudError
|
858
|
-
}
|
859
|
-
},
|
860
|
-
serializer: serializer$1
|
861
|
-
};
|
862
|
-
var deleteAtResourceLevelOperationSpec = {
|
863
|
-
httpMethod: "DELETE",
|
864
|
-
path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/locks/{lockName}",
|
865
|
-
urlParameters: [
|
866
|
-
resourceGroupName,
|
867
|
-
resourceProviderNamespace,
|
868
|
-
parentResourcePath,
|
869
|
-
resourceType,
|
870
|
-
resourceName,
|
871
|
-
lockName,
|
872
|
-
subscriptionId
|
873
|
-
],
|
874
|
-
queryParameters: [
|
875
|
-
apiVersion
|
876
|
-
],
|
877
|
-
headerParameters: [
|
878
|
-
acceptLanguage
|
879
|
-
],
|
880
|
-
responses: {
|
881
|
-
200: {},
|
882
|
-
204: {},
|
883
|
-
default: {
|
884
|
-
bodyMapper: CloudError
|
885
|
-
}
|
886
|
-
},
|
887
|
-
serializer: serializer$1
|
888
|
-
};
|
889
|
-
var getAtResourceLevelOperationSpec = {
|
890
|
-
httpMethod: "GET",
|
891
|
-
path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/locks/{lockName}",
|
892
|
-
urlParameters: [
|
893
|
-
resourceGroupName,
|
894
|
-
resourceProviderNamespace,
|
895
|
-
parentResourcePath,
|
896
|
-
resourceType,
|
897
|
-
resourceName,
|
898
|
-
lockName,
|
899
|
-
subscriptionId
|
900
|
-
],
|
901
|
-
queryParameters: [
|
902
|
-
apiVersion
|
903
|
-
],
|
904
|
-
headerParameters: [
|
905
|
-
acceptLanguage
|
906
|
-
],
|
907
|
-
responses: {
|
908
|
-
200: {
|
909
|
-
bodyMapper: ManagementLockObject
|
910
|
-
},
|
911
|
-
default: {
|
912
|
-
bodyMapper: CloudError
|
913
|
-
}
|
914
|
-
},
|
915
|
-
serializer: serializer$1
|
916
|
-
};
|
917
|
-
var createOrUpdateAtSubscriptionLevelOperationSpec = {
|
918
|
-
httpMethod: "PUT",
|
919
|
-
path: "subscriptions/{subscriptionId}/providers/Microsoft.Authorization/locks/{lockName}",
|
920
|
-
urlParameters: [
|
921
|
-
lockName,
|
922
|
-
subscriptionId
|
923
|
-
],
|
924
|
-
queryParameters: [
|
925
|
-
apiVersion
|
926
|
-
],
|
927
|
-
headerParameters: [
|
928
|
-
acceptLanguage
|
929
|
-
],
|
930
|
-
requestBody: {
|
931
|
-
parameterPath: "parameters",
|
932
|
-
mapper: __assign(__assign({}, ManagementLockObject), { required: true })
|
933
|
-
},
|
934
|
-
responses: {
|
935
|
-
200: {
|
936
|
-
bodyMapper: ManagementLockObject
|
937
|
-
},
|
938
|
-
201: {
|
939
|
-
bodyMapper: ManagementLockObject
|
940
|
-
},
|
941
|
-
default: {
|
942
|
-
bodyMapper: CloudError
|
943
|
-
}
|
944
|
-
},
|
945
|
-
serializer: serializer$1
|
946
|
-
};
|
947
|
-
var deleteAtSubscriptionLevelOperationSpec = {
|
948
|
-
httpMethod: "DELETE",
|
949
|
-
path: "subscriptions/{subscriptionId}/providers/Microsoft.Authorization/locks/{lockName}",
|
950
|
-
urlParameters: [
|
951
|
-
lockName,
|
952
|
-
subscriptionId
|
953
|
-
],
|
954
|
-
queryParameters: [
|
955
|
-
apiVersion
|
956
|
-
],
|
957
|
-
headerParameters: [
|
958
|
-
acceptLanguage
|
959
|
-
],
|
960
|
-
responses: {
|
961
|
-
200: {},
|
962
|
-
204: {},
|
963
|
-
default: {
|
964
|
-
bodyMapper: CloudError
|
965
|
-
}
|
966
|
-
},
|
967
|
-
serializer: serializer$1
|
968
|
-
};
|
969
|
-
var getAtSubscriptionLevelOperationSpec = {
|
970
|
-
httpMethod: "GET",
|
971
|
-
path: "subscriptions/{subscriptionId}/providers/Microsoft.Authorization/locks/{lockName}",
|
972
|
-
urlParameters: [
|
973
|
-
lockName,
|
974
|
-
subscriptionId
|
975
|
-
],
|
976
|
-
queryParameters: [
|
977
|
-
apiVersion
|
978
|
-
],
|
979
|
-
headerParameters: [
|
980
|
-
acceptLanguage
|
981
|
-
],
|
982
|
-
responses: {
|
983
|
-
200: {
|
984
|
-
bodyMapper: ManagementLockObject
|
985
|
-
},
|
986
|
-
default: {
|
987
|
-
bodyMapper: CloudError
|
988
|
-
}
|
989
|
-
},
|
990
|
-
serializer: serializer$1
|
991
|
-
};
|
992
|
-
var listAtResourceGroupLevelOperationSpec = {
|
993
|
-
httpMethod: "GET",
|
994
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Authorization/locks",
|
995
|
-
urlParameters: [
|
996
|
-
resourceGroupName,
|
997
|
-
subscriptionId
|
998
|
-
],
|
999
|
-
queryParameters: [
|
1000
|
-
filter,
|
1001
|
-
apiVersion
|
1002
|
-
],
|
1003
|
-
headerParameters: [
|
1004
|
-
acceptLanguage
|
1005
|
-
],
|
1006
|
-
responses: {
|
1007
|
-
200: {
|
1008
|
-
bodyMapper: ManagementLockListResult
|
1009
|
-
},
|
1010
|
-
default: {
|
1011
|
-
bodyMapper: CloudError
|
1012
|
-
}
|
1013
|
-
},
|
1014
|
-
serializer: serializer$1
|
1015
|
-
};
|
1016
|
-
var listAtResourceLevelOperationSpec = {
|
1017
|
-
httpMethod: "GET",
|
1018
|
-
path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/locks",
|
1019
|
-
urlParameters: [
|
1020
|
-
resourceGroupName,
|
1021
|
-
resourceProviderNamespace,
|
1022
|
-
parentResourcePath,
|
1023
|
-
resourceType,
|
1024
|
-
resourceName,
|
1025
|
-
subscriptionId
|
1026
|
-
],
|
1027
|
-
queryParameters: [
|
1028
|
-
filter,
|
1029
|
-
apiVersion
|
1030
|
-
],
|
1031
|
-
headerParameters: [
|
1032
|
-
acceptLanguage
|
1033
|
-
],
|
1034
|
-
responses: {
|
1035
|
-
200: {
|
1036
|
-
bodyMapper: ManagementLockListResult
|
1037
|
-
},
|
1038
|
-
default: {
|
1039
|
-
bodyMapper: CloudError
|
1040
|
-
}
|
1041
|
-
},
|
1042
|
-
serializer: serializer$1
|
1043
|
-
};
|
1044
|
-
var listAtSubscriptionLevelOperationSpec = {
|
1045
|
-
httpMethod: "GET",
|
1046
|
-
path: "subscriptions/{subscriptionId}/providers/Microsoft.Authorization/locks",
|
1047
|
-
urlParameters: [
|
1048
|
-
subscriptionId
|
1049
|
-
],
|
1050
|
-
queryParameters: [
|
1051
|
-
filter,
|
1052
|
-
apiVersion
|
1053
|
-
],
|
1054
|
-
headerParameters: [
|
1055
|
-
acceptLanguage
|
1056
|
-
],
|
1057
|
-
responses: {
|
1058
|
-
200: {
|
1059
|
-
bodyMapper: ManagementLockListResult
|
1060
|
-
},
|
1061
|
-
default: {
|
1062
|
-
bodyMapper: CloudError
|
1063
|
-
}
|
1064
|
-
},
|
1065
|
-
serializer: serializer$1
|
1066
|
-
};
|
1067
|
-
var listByScopeOperationSpec = {
|
1068
|
-
httpMethod: "GET",
|
1069
|
-
path: "{scope}/providers/Microsoft.Authorization/locks",
|
1070
|
-
urlParameters: [
|
1071
|
-
scope
|
1072
|
-
],
|
1073
|
-
queryParameters: [
|
1074
|
-
filter,
|
1075
|
-
apiVersion
|
1076
|
-
],
|
1077
|
-
headerParameters: [
|
1078
|
-
acceptLanguage
|
1079
|
-
],
|
1080
|
-
responses: {
|
1081
|
-
200: {
|
1082
|
-
bodyMapper: ManagementLockListResult
|
1083
|
-
},
|
1084
|
-
default: {
|
1085
|
-
bodyMapper: CloudError
|
1086
|
-
}
|
1087
|
-
},
|
1088
|
-
serializer: serializer$1
|
1089
|
-
};
|
1090
|
-
var listAtResourceGroupLevelNextOperationSpec = {
|
1091
|
-
httpMethod: "GET",
|
1092
|
-
baseUrl: "https://management.azure.com",
|
1093
|
-
path: "{nextLink}",
|
1094
|
-
urlParameters: [
|
1095
|
-
nextPageLink
|
1096
|
-
],
|
1097
|
-
headerParameters: [
|
1098
|
-
acceptLanguage
|
1099
|
-
],
|
1100
|
-
responses: {
|
1101
|
-
200: {
|
1102
|
-
bodyMapper: ManagementLockListResult
|
1103
|
-
},
|
1104
|
-
default: {
|
1105
|
-
bodyMapper: CloudError
|
1106
|
-
}
|
1107
|
-
},
|
1108
|
-
serializer: serializer$1
|
1109
|
-
};
|
1110
|
-
var listAtResourceLevelNextOperationSpec = {
|
1111
|
-
httpMethod: "GET",
|
1112
|
-
baseUrl: "https://management.azure.com",
|
1113
|
-
path: "{nextLink}",
|
1114
|
-
urlParameters: [
|
1115
|
-
nextPageLink
|
1116
|
-
],
|
1117
|
-
headerParameters: [
|
1118
|
-
acceptLanguage
|
1119
|
-
],
|
1120
|
-
responses: {
|
1121
|
-
200: {
|
1122
|
-
bodyMapper: ManagementLockListResult
|
1123
|
-
},
|
1124
|
-
default: {
|
1125
|
-
bodyMapper: CloudError
|
1126
|
-
}
|
1127
|
-
},
|
1128
|
-
serializer: serializer$1
|
1129
|
-
};
|
1130
|
-
var listAtSubscriptionLevelNextOperationSpec = {
|
1131
|
-
httpMethod: "GET",
|
1132
|
-
baseUrl: "https://management.azure.com",
|
1133
|
-
path: "{nextLink}",
|
1134
|
-
urlParameters: [
|
1135
|
-
nextPageLink
|
1136
|
-
],
|
1137
|
-
headerParameters: [
|
1138
|
-
acceptLanguage
|
1139
|
-
],
|
1140
|
-
responses: {
|
1141
|
-
200: {
|
1142
|
-
bodyMapper: ManagementLockListResult
|
1143
|
-
},
|
1144
|
-
default: {
|
1145
|
-
bodyMapper: CloudError
|
1146
|
-
}
|
1147
|
-
},
|
1148
|
-
serializer: serializer$1
|
1149
|
-
};
|
1150
|
-
var listByScopeNextOperationSpec = {
|
1151
|
-
httpMethod: "GET",
|
1152
|
-
baseUrl: "https://management.azure.com",
|
1153
|
-
path: "{nextLink}",
|
1154
|
-
urlParameters: [
|
1155
|
-
nextPageLink
|
1156
|
-
],
|
1157
|
-
headerParameters: [
|
1158
|
-
acceptLanguage
|
1159
|
-
],
|
1160
|
-
responses: {
|
1161
|
-
200: {
|
1162
|
-
bodyMapper: ManagementLockListResult
|
1163
|
-
},
|
1164
|
-
default: {
|
1165
|
-
bodyMapper: CloudError
|
1166
|
-
}
|
1167
|
-
},
|
1168
|
-
serializer: serializer$1
|
1169
|
-
};
|
1170
|
-
|
1171
|
-
/*
|
1172
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
1173
|
-
* Licensed under the MIT License. See License.txt in the project root for
|
1174
|
-
* license information.
|
1175
|
-
*
|
1176
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
1177
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
1178
|
-
* regenerated.
|
1179
|
-
*/
|
1180
|
-
|
1181
|
-
/*
|
1182
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
1183
|
-
* Licensed under the MIT License. See License.txt in the project root for
|
1184
|
-
* license information.
|
1185
|
-
*
|
1186
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
1187
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
1188
|
-
* regenerated.
|
1189
|
-
*/
|
1190
|
-
var packageName = "@azure/arm-locks";
|
1191
|
-
var packageVersion = "1.2.0";
|
1192
|
-
var ManagementLockClientContext = /** @class */ (function (_super) {
|
1193
|
-
__extends(ManagementLockClientContext, _super);
|
1194
|
-
/**
|
1195
|
-
* Initializes a new instance of the ManagementLockClient class.
|
1196
|
-
* @param credentials Credentials needed for the client to connect to Azure. Credentials
|
1197
|
-
* implementing the TokenCredential interface from the @azure/identity package are recommended. For
|
1198
|
-
* more information about these credentials, see
|
1199
|
-
* {@link https://www.npmjs.com/package/@azure/identity}. Credentials implementing the
|
1200
|
-
* ServiceClientCredentials interface from the older packages @azure/ms-rest-nodeauth and
|
1201
|
-
* @azure/ms-rest-browserauth are also supported.
|
1202
|
-
* @param subscriptionId The ID of the target subscription.
|
1203
|
-
* @param [options] The parameter options
|
1204
|
-
*/
|
1205
|
-
function ManagementLockClientContext(credentials, subscriptionId, options) {
|
1206
|
-
var _this = this;
|
1207
|
-
if (credentials == undefined) {
|
1208
|
-
throw new Error('\'credentials\' cannot be null.');
|
1209
|
-
}
|
1210
|
-
if (subscriptionId == undefined) {
|
1211
|
-
throw new Error('\'subscriptionId\' cannot be null.');
|
1212
|
-
}
|
1213
|
-
if (!options) {
|
1214
|
-
options = {};
|
1215
|
-
}
|
1216
|
-
if (!options.userAgent) {
|
1217
|
-
var defaultUserAgent = msRestAzure.getDefaultUserAgentValue();
|
1218
|
-
options.userAgent = packageName + "/" + packageVersion + " " + defaultUserAgent;
|
1219
|
-
}
|
1220
|
-
_this = _super.call(this, credentials, options) || this;
|
1221
|
-
_this.apiVersion = '2016-09-01';
|
1222
|
-
_this.acceptLanguage = 'en-US';
|
1223
|
-
_this.longRunningOperationRetryTimeout = 30;
|
1224
|
-
_this.baseUri = options.baseUri || _this.baseUri || "https://management.azure.com";
|
1225
|
-
_this.requestContentType = "application/json; charset=utf-8";
|
1226
|
-
_this.credentials = credentials;
|
1227
|
-
_this.subscriptionId = subscriptionId;
|
1228
|
-
if (options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
|
1229
|
-
_this.acceptLanguage = options.acceptLanguage;
|
1230
|
-
}
|
1231
|
-
if (options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {
|
1232
|
-
_this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout;
|
1233
|
-
}
|
1234
|
-
return _this;
|
1235
|
-
}
|
1236
|
-
return ManagementLockClientContext;
|
1237
|
-
}(msRestAzure.AzureServiceClient));
|
1238
|
-
|
1239
|
-
/*
|
1240
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
1241
|
-
* Licensed under the MIT License. See License.txt in the project root for
|
1242
|
-
* license information.
|
1243
|
-
*
|
1244
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
1245
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
1246
|
-
* regenerated.
|
1247
|
-
*/
|
1248
|
-
var ManagementLockClient = /** @class */ (function (_super) {
|
1249
|
-
__extends(ManagementLockClient, _super);
|
1250
|
-
/**
|
1251
|
-
* Initializes a new instance of the ManagementLockClient class.
|
1252
|
-
* @param credentials Credentials needed for the client to connect to Azure. Credentials
|
1253
|
-
* implementing the TokenCredential interface from the @azure/identity package are recommended. For
|
1254
|
-
* more information about these credentials, see
|
1255
|
-
* {@link https://www.npmjs.com/package/@azure/identity}. Credentials implementing the
|
1256
|
-
* ServiceClientCredentials interface from the older packages @azure/ms-rest-nodeauth and
|
1257
|
-
* @azure/ms-rest-browserauth are also supported.
|
1258
|
-
* @param subscriptionId The ID of the target subscription.
|
1259
|
-
* @param [options] The parameter options
|
1260
|
-
*/
|
1261
|
-
function ManagementLockClient(credentials, subscriptionId, options) {
|
1262
|
-
var _this = _super.call(this, credentials, subscriptionId, options) || this;
|
1263
|
-
_this.authorizationOperations = new AuthorizationOperations(_this);
|
1264
|
-
_this.managementLocks = new ManagementLocks(_this);
|
1265
|
-
return _this;
|
1266
|
-
}
|
1267
|
-
return ManagementLockClient;
|
1268
|
-
}(ManagementLockClientContext));
|
1269
|
-
|
1270
|
-
exports.ManagementLockClient = ManagementLockClient;
|
1271
|
-
exports.ManagementLockClientContext = ManagementLockClientContext;
|
1272
|
-
exports.ManagementLockModels = index;
|
1273
|
-
exports.ManagementLockMappers = mappers;
|
1274
|
-
exports.AuthorizationOperations = AuthorizationOperations;
|
1275
|
-
exports.ManagementLocks = ManagementLocks;
|
1276
|
-
|
1277
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
1278
|
-
|
1279
|
-
})));
|
1280
|
-
//# sourceMappingURL=arm-locks.js.map
|