@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
@@ -1,672 +1,1180 @@
|
|
1
1
|
/*
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
3
|
-
* Licensed under the MIT License.
|
4
|
-
* license information.
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
3
|
+
* Licensed under the MIT License.
|
5
4
|
*
|
6
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
7
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
8
|
-
* regenerated.
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
9
7
|
*/
|
10
|
-
import {
|
11
|
-
import
|
12
|
-
import * as
|
8
|
+
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
9
|
+
import "@azure/core-paging";
|
10
|
+
import * as coreClient from "@azure/core-client";
|
11
|
+
import * as Mappers from "../models/mappers";
|
13
12
|
import * as Parameters from "../models/parameters";
|
13
|
+
/// <reference lib="esnext.asynciterable" />
|
14
14
|
/** Class representing a ManagementLocks. */
|
15
|
-
|
15
|
+
export class ManagementLocksImpl {
|
16
16
|
/**
|
17
|
-
*
|
18
|
-
* @param
|
17
|
+
* Initialize a new instance of the class ManagementLocks class.
|
18
|
+
* @param client Reference to the service client
|
19
19
|
*/
|
20
|
-
|
20
|
+
constructor(client) {
|
21
21
|
this.client = client;
|
22
22
|
}
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
}
|
107
|
-
}
|
108
|
-
|
109
|
-
return this
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
}
|
125
|
-
}
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
23
|
+
/**
|
24
|
+
* Gets all the management locks for a resource group.
|
25
|
+
* @param resourceGroupName The name of the resource group containing the locks to get.
|
26
|
+
* @param options The options parameters.
|
27
|
+
*/
|
28
|
+
listAtResourceGroupLevel(resourceGroupName, options) {
|
29
|
+
const iter = this.listAtResourceGroupLevelPagingAll(resourceGroupName, options);
|
30
|
+
return {
|
31
|
+
next() {
|
32
|
+
return iter.next();
|
33
|
+
},
|
34
|
+
[Symbol.asyncIterator]() {
|
35
|
+
return this;
|
36
|
+
},
|
37
|
+
byPage: () => {
|
38
|
+
return this.listAtResourceGroupLevelPagingPage(resourceGroupName, options);
|
39
|
+
}
|
40
|
+
};
|
41
|
+
}
|
42
|
+
listAtResourceGroupLevelPagingPage(resourceGroupName, options) {
|
43
|
+
return __asyncGenerator(this, arguments, function* listAtResourceGroupLevelPagingPage_1() {
|
44
|
+
let result = yield __await(this._listAtResourceGroupLevel(resourceGroupName, options));
|
45
|
+
yield yield __await(result.value || []);
|
46
|
+
let continuationToken = result.nextLink;
|
47
|
+
while (continuationToken) {
|
48
|
+
result = yield __await(this._listAtResourceGroupLevelNext(resourceGroupName, continuationToken, options));
|
49
|
+
continuationToken = result.nextLink;
|
50
|
+
yield yield __await(result.value || []);
|
51
|
+
}
|
52
|
+
});
|
53
|
+
}
|
54
|
+
listAtResourceGroupLevelPagingAll(resourceGroupName, options) {
|
55
|
+
return __asyncGenerator(this, arguments, function* listAtResourceGroupLevelPagingAll_1() {
|
56
|
+
var e_1, _a;
|
57
|
+
try {
|
58
|
+
for (var _b = __asyncValues(this.listAtResourceGroupLevelPagingPage(resourceGroupName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
59
|
+
const page = _c.value;
|
60
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
61
|
+
}
|
62
|
+
}
|
63
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
64
|
+
finally {
|
65
|
+
try {
|
66
|
+
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
|
67
|
+
}
|
68
|
+
finally { if (e_1) throw e_1.error; }
|
69
|
+
}
|
70
|
+
});
|
71
|
+
}
|
72
|
+
/**
|
73
|
+
* Gets all the management locks for a resource or any level below resource.
|
74
|
+
* @param resourceGroupName The name of the resource group containing the locked resource. The name is
|
75
|
+
* case insensitive.
|
76
|
+
* @param resourceProviderNamespace The namespace of the resource provider.
|
77
|
+
* @param parentResourcePath The parent resource identity.
|
78
|
+
* @param resourceType The resource type of the locked resource.
|
79
|
+
* @param resourceName The name of the locked resource.
|
80
|
+
* @param options The options parameters.
|
81
|
+
*/
|
82
|
+
listAtResourceLevel(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, options) {
|
83
|
+
const iter = this.listAtResourceLevelPagingAll(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, options);
|
84
|
+
return {
|
85
|
+
next() {
|
86
|
+
return iter.next();
|
87
|
+
},
|
88
|
+
[Symbol.asyncIterator]() {
|
89
|
+
return this;
|
90
|
+
},
|
91
|
+
byPage: () => {
|
92
|
+
return this.listAtResourceLevelPagingPage(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, options);
|
93
|
+
}
|
94
|
+
};
|
95
|
+
}
|
96
|
+
listAtResourceLevelPagingPage(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, options) {
|
97
|
+
return __asyncGenerator(this, arguments, function* listAtResourceLevelPagingPage_1() {
|
98
|
+
let result = yield __await(this._listAtResourceLevel(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, options));
|
99
|
+
yield yield __await(result.value || []);
|
100
|
+
let continuationToken = result.nextLink;
|
101
|
+
while (continuationToken) {
|
102
|
+
result = yield __await(this._listAtResourceLevelNext(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, continuationToken, options));
|
103
|
+
continuationToken = result.nextLink;
|
104
|
+
yield yield __await(result.value || []);
|
105
|
+
}
|
106
|
+
});
|
107
|
+
}
|
108
|
+
listAtResourceLevelPagingAll(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, options) {
|
109
|
+
return __asyncGenerator(this, arguments, function* listAtResourceLevelPagingAll_1() {
|
110
|
+
var e_2, _a;
|
111
|
+
try {
|
112
|
+
for (var _b = __asyncValues(this.listAtResourceLevelPagingPage(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
113
|
+
const page = _c.value;
|
114
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
115
|
+
}
|
116
|
+
}
|
117
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
118
|
+
finally {
|
119
|
+
try {
|
120
|
+
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
|
121
|
+
}
|
122
|
+
finally { if (e_2) throw e_2.error; }
|
123
|
+
}
|
124
|
+
});
|
125
|
+
}
|
126
|
+
/**
|
127
|
+
* Gets all the management locks for a subscription.
|
128
|
+
* @param options The options parameters.
|
129
|
+
*/
|
130
|
+
listAtSubscriptionLevel(options) {
|
131
|
+
const iter = this.listAtSubscriptionLevelPagingAll(options);
|
132
|
+
return {
|
133
|
+
next() {
|
134
|
+
return iter.next();
|
135
|
+
},
|
136
|
+
[Symbol.asyncIterator]() {
|
137
|
+
return this;
|
138
|
+
},
|
139
|
+
byPage: () => {
|
140
|
+
return this.listAtSubscriptionLevelPagingPage(options);
|
141
|
+
}
|
142
|
+
};
|
143
|
+
}
|
144
|
+
listAtSubscriptionLevelPagingPage(options) {
|
145
|
+
return __asyncGenerator(this, arguments, function* listAtSubscriptionLevelPagingPage_1() {
|
146
|
+
let result = yield __await(this._listAtSubscriptionLevel(options));
|
147
|
+
yield yield __await(result.value || []);
|
148
|
+
let continuationToken = result.nextLink;
|
149
|
+
while (continuationToken) {
|
150
|
+
result = yield __await(this._listAtSubscriptionLevelNext(continuationToken, options));
|
151
|
+
continuationToken = result.nextLink;
|
152
|
+
yield yield __await(result.value || []);
|
153
|
+
}
|
154
|
+
});
|
155
|
+
}
|
156
|
+
listAtSubscriptionLevelPagingAll(options) {
|
157
|
+
return __asyncGenerator(this, arguments, function* listAtSubscriptionLevelPagingAll_1() {
|
158
|
+
var e_3, _a;
|
159
|
+
try {
|
160
|
+
for (var _b = __asyncValues(this.listAtSubscriptionLevelPagingPage(options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
161
|
+
const page = _c.value;
|
162
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
163
|
+
}
|
164
|
+
}
|
165
|
+
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
166
|
+
finally {
|
167
|
+
try {
|
168
|
+
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
|
169
|
+
}
|
170
|
+
finally { if (e_3) throw e_3.error; }
|
171
|
+
}
|
172
|
+
});
|
173
|
+
}
|
174
|
+
/**
|
175
|
+
* Gets all the management locks for a scope.
|
176
|
+
* @param scope The scope for the lock. When providing a scope for the assignment, use
|
177
|
+
* '/subscriptions/{subscriptionId}' for subscriptions,
|
178
|
+
* '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}' for resource groups, and
|
179
|
+
* '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePathIfPresent}/{resourceType}/{resourceName}'
|
180
|
+
* for resources.
|
181
|
+
* @param options The options parameters.
|
182
|
+
*/
|
183
|
+
listByScope(scope, options) {
|
184
|
+
const iter = this.listByScopePagingAll(scope, options);
|
185
|
+
return {
|
186
|
+
next() {
|
187
|
+
return iter.next();
|
188
|
+
},
|
189
|
+
[Symbol.asyncIterator]() {
|
190
|
+
return this;
|
191
|
+
},
|
192
|
+
byPage: () => {
|
193
|
+
return this.listByScopePagingPage(scope, options);
|
194
|
+
}
|
195
|
+
};
|
196
|
+
}
|
197
|
+
listByScopePagingPage(scope, options) {
|
198
|
+
return __asyncGenerator(this, arguments, function* listByScopePagingPage_1() {
|
199
|
+
let result = yield __await(this._listByScope(scope, options));
|
200
|
+
yield yield __await(result.value || []);
|
201
|
+
let continuationToken = result.nextLink;
|
202
|
+
while (continuationToken) {
|
203
|
+
result = yield __await(this._listByScopeNext(scope, continuationToken, options));
|
204
|
+
continuationToken = result.nextLink;
|
205
|
+
yield yield __await(result.value || []);
|
206
|
+
}
|
207
|
+
});
|
208
|
+
}
|
209
|
+
listByScopePagingAll(scope, options) {
|
210
|
+
return __asyncGenerator(this, arguments, function* listByScopePagingAll_1() {
|
211
|
+
var e_4, _a;
|
212
|
+
try {
|
213
|
+
for (var _b = __asyncValues(this.listByScopePagingPage(scope, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
214
|
+
const page = _c.value;
|
215
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
216
|
+
}
|
217
|
+
}
|
218
|
+
catch (e_4_1) { e_4 = { error: e_4_1 }; }
|
219
|
+
finally {
|
220
|
+
try {
|
221
|
+
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
|
222
|
+
}
|
223
|
+
finally { if (e_4) throw e_4.error; }
|
224
|
+
}
|
225
|
+
});
|
226
|
+
}
|
227
|
+
/**
|
228
|
+
* ListAtResourceGroupLevelNext
|
229
|
+
* @param resourceGroupName The name of the resource group containing the locks to get.
|
230
|
+
* @param nextLink The nextLink from the previous successful call to the ListAtResourceGroupLevel
|
231
|
+
* method.
|
232
|
+
* @param options The options parameters.
|
233
|
+
*/
|
234
|
+
listAtResourceGroupLevelNext(resourceGroupName, nextLink, options) {
|
235
|
+
const iter = this.listAtResourceGroupLevelNextPagingAll(resourceGroupName, nextLink, options);
|
236
|
+
return {
|
237
|
+
next() {
|
238
|
+
return iter.next();
|
239
|
+
},
|
240
|
+
[Symbol.asyncIterator]() {
|
241
|
+
return this;
|
242
|
+
},
|
243
|
+
byPage: () => {
|
244
|
+
return this.listAtResourceGroupLevelNextPagingPage(resourceGroupName, nextLink, options);
|
245
|
+
}
|
246
|
+
};
|
247
|
+
}
|
248
|
+
listAtResourceGroupLevelNextPagingPage(resourceGroupName, nextLink, options) {
|
249
|
+
return __asyncGenerator(this, arguments, function* listAtResourceGroupLevelNextPagingPage_1() {
|
250
|
+
let result = yield __await(this._listAtResourceGroupLevelNext(resourceGroupName, nextLink, options));
|
251
|
+
yield yield __await(result.value || []);
|
252
|
+
let continuationToken = result.nextLink;
|
253
|
+
while (continuationToken) {
|
254
|
+
result = yield __await(this._listAtResourceGroupLevelNextNext(resourceGroupName, continuationToken, options));
|
255
|
+
continuationToken = result.nextLink;
|
256
|
+
yield yield __await(result.value || []);
|
257
|
+
}
|
258
|
+
});
|
259
|
+
}
|
260
|
+
listAtResourceGroupLevelNextPagingAll(resourceGroupName, nextLink, options) {
|
261
|
+
return __asyncGenerator(this, arguments, function* listAtResourceGroupLevelNextPagingAll_1() {
|
262
|
+
var e_5, _a;
|
263
|
+
try {
|
264
|
+
for (var _b = __asyncValues(this.listAtResourceGroupLevelNextPagingPage(resourceGroupName, nextLink, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
265
|
+
const page = _c.value;
|
266
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
267
|
+
}
|
268
|
+
}
|
269
|
+
catch (e_5_1) { e_5 = { error: e_5_1 }; }
|
270
|
+
finally {
|
271
|
+
try {
|
272
|
+
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
|
273
|
+
}
|
274
|
+
finally { if (e_5) throw e_5.error; }
|
275
|
+
}
|
276
|
+
});
|
277
|
+
}
|
278
|
+
/**
|
279
|
+
* ListAtResourceLevelNext
|
280
|
+
* @param resourceGroupName The name of the resource group containing the locked resource. The name is
|
281
|
+
* case insensitive.
|
282
|
+
* @param resourceProviderNamespace The namespace of the resource provider.
|
283
|
+
* @param parentResourcePath The parent resource identity.
|
284
|
+
* @param resourceType The resource type of the locked resource.
|
285
|
+
* @param resourceName The name of the locked resource.
|
286
|
+
* @param nextLink The nextLink from the previous successful call to the ListAtResourceLevel method.
|
287
|
+
* @param options The options parameters.
|
288
|
+
*/
|
289
|
+
listAtResourceLevelNext(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, nextLink, options) {
|
290
|
+
const iter = this.listAtResourceLevelNextPagingAll(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, nextLink, options);
|
291
|
+
return {
|
292
|
+
next() {
|
293
|
+
return iter.next();
|
294
|
+
},
|
295
|
+
[Symbol.asyncIterator]() {
|
296
|
+
return this;
|
297
|
+
},
|
298
|
+
byPage: () => {
|
299
|
+
return this.listAtResourceLevelNextPagingPage(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, nextLink, options);
|
300
|
+
}
|
301
|
+
};
|
302
|
+
}
|
303
|
+
listAtResourceLevelNextPagingPage(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, nextLink, options) {
|
304
|
+
return __asyncGenerator(this, arguments, function* listAtResourceLevelNextPagingPage_1() {
|
305
|
+
let result = yield __await(this._listAtResourceLevelNext(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, nextLink, options));
|
306
|
+
yield yield __await(result.value || []);
|
307
|
+
let continuationToken = result.nextLink;
|
308
|
+
while (continuationToken) {
|
309
|
+
result = yield __await(this._listAtResourceLevelNextNext(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, continuationToken, options));
|
310
|
+
continuationToken = result.nextLink;
|
311
|
+
yield yield __await(result.value || []);
|
312
|
+
}
|
313
|
+
});
|
314
|
+
}
|
315
|
+
listAtResourceLevelNextPagingAll(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, nextLink, options) {
|
316
|
+
return __asyncGenerator(this, arguments, function* listAtResourceLevelNextPagingAll_1() {
|
317
|
+
var e_6, _a;
|
318
|
+
try {
|
319
|
+
for (var _b = __asyncValues(this.listAtResourceLevelNextPagingPage(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, nextLink, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
320
|
+
const page = _c.value;
|
321
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
322
|
+
}
|
323
|
+
}
|
324
|
+
catch (e_6_1) { e_6 = { error: e_6_1 }; }
|
325
|
+
finally {
|
326
|
+
try {
|
327
|
+
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
|
328
|
+
}
|
329
|
+
finally { if (e_6) throw e_6.error; }
|
330
|
+
}
|
331
|
+
});
|
332
|
+
}
|
333
|
+
/**
|
334
|
+
* ListAtSubscriptionLevelNext
|
335
|
+
* @param nextLink The nextLink from the previous successful call to the ListAtSubscriptionLevel
|
336
|
+
* method.
|
337
|
+
* @param options The options parameters.
|
338
|
+
*/
|
339
|
+
listAtSubscriptionLevelNext(nextLink, options) {
|
340
|
+
const iter = this.listAtSubscriptionLevelNextPagingAll(nextLink, options);
|
341
|
+
return {
|
342
|
+
next() {
|
343
|
+
return iter.next();
|
344
|
+
},
|
345
|
+
[Symbol.asyncIterator]() {
|
346
|
+
return this;
|
347
|
+
},
|
348
|
+
byPage: () => {
|
349
|
+
return this.listAtSubscriptionLevelNextPagingPage(nextLink, options);
|
350
|
+
}
|
351
|
+
};
|
352
|
+
}
|
353
|
+
listAtSubscriptionLevelNextPagingPage(nextLink, options) {
|
354
|
+
return __asyncGenerator(this, arguments, function* listAtSubscriptionLevelNextPagingPage_1() {
|
355
|
+
let result = yield __await(this._listAtSubscriptionLevelNext(nextLink, options));
|
356
|
+
yield yield __await(result.value || []);
|
357
|
+
let continuationToken = result.nextLink;
|
358
|
+
while (continuationToken) {
|
359
|
+
result = yield __await(this._listAtSubscriptionLevelNextNext(continuationToken, options));
|
360
|
+
continuationToken = result.nextLink;
|
361
|
+
yield yield __await(result.value || []);
|
362
|
+
}
|
363
|
+
});
|
364
|
+
}
|
365
|
+
listAtSubscriptionLevelNextPagingAll(nextLink, options) {
|
366
|
+
return __asyncGenerator(this, arguments, function* listAtSubscriptionLevelNextPagingAll_1() {
|
367
|
+
var e_7, _a;
|
368
|
+
try {
|
369
|
+
for (var _b = __asyncValues(this.listAtSubscriptionLevelNextPagingPage(nextLink, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
370
|
+
const page = _c.value;
|
371
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
372
|
+
}
|
373
|
+
}
|
374
|
+
catch (e_7_1) { e_7 = { error: e_7_1 }; }
|
375
|
+
finally {
|
376
|
+
try {
|
377
|
+
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
|
378
|
+
}
|
379
|
+
finally { if (e_7) throw e_7.error; }
|
380
|
+
}
|
381
|
+
});
|
382
|
+
}
|
383
|
+
/**
|
384
|
+
* ListByScopeNext
|
385
|
+
* @param scope The scope for the lock. When providing a scope for the assignment, use
|
386
|
+
* '/subscriptions/{subscriptionId}' for subscriptions,
|
387
|
+
* '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}' for resource groups, and
|
388
|
+
* '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePathIfPresent}/{resourceType}/{resourceName}'
|
389
|
+
* for resources.
|
390
|
+
* @param nextLink The nextLink from the previous successful call to the ListByScope method.
|
391
|
+
* @param options The options parameters.
|
392
|
+
*/
|
393
|
+
listByScopeNext(scope, nextLink, options) {
|
394
|
+
const iter = this.listByScopeNextPagingAll(scope, nextLink, options);
|
395
|
+
return {
|
396
|
+
next() {
|
397
|
+
return iter.next();
|
398
|
+
},
|
399
|
+
[Symbol.asyncIterator]() {
|
400
|
+
return this;
|
401
|
+
},
|
402
|
+
byPage: () => {
|
403
|
+
return this.listByScopeNextPagingPage(scope, nextLink, options);
|
404
|
+
}
|
405
|
+
};
|
406
|
+
}
|
407
|
+
listByScopeNextPagingPage(scope, nextLink, options) {
|
408
|
+
return __asyncGenerator(this, arguments, function* listByScopeNextPagingPage_1() {
|
409
|
+
let result = yield __await(this._listByScopeNext(scope, nextLink, options));
|
410
|
+
yield yield __await(result.value || []);
|
411
|
+
let continuationToken = result.nextLink;
|
412
|
+
while (continuationToken) {
|
413
|
+
result = yield __await(this._listByScopeNextNext(scope, continuationToken, options));
|
414
|
+
continuationToken = result.nextLink;
|
415
|
+
yield yield __await(result.value || []);
|
416
|
+
}
|
417
|
+
});
|
418
|
+
}
|
419
|
+
listByScopeNextPagingAll(scope, nextLink, options) {
|
420
|
+
return __asyncGenerator(this, arguments, function* listByScopeNextPagingAll_1() {
|
421
|
+
var e_8, _a;
|
422
|
+
try {
|
423
|
+
for (var _b = __asyncValues(this.listByScopeNextPagingPage(scope, nextLink, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
424
|
+
const page = _c.value;
|
425
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
426
|
+
}
|
427
|
+
}
|
428
|
+
catch (e_8_1) { e_8 = { error: e_8_1 }; }
|
429
|
+
finally {
|
430
|
+
try {
|
431
|
+
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
|
432
|
+
}
|
433
|
+
finally { if (e_8) throw e_8.error; }
|
434
|
+
}
|
435
|
+
});
|
436
|
+
}
|
437
|
+
/**
|
438
|
+
* When you apply a lock at a parent scope, all child resources inherit the same lock. To create
|
439
|
+
* management locks, you must have access to Microsoft.Authorization/* or
|
440
|
+
* Microsoft.Authorization/locks/* actions. Of the built-in roles, only Owner and User Access
|
441
|
+
* Administrator are granted those actions.
|
442
|
+
* @param resourceGroupName The name of the resource group to lock.
|
443
|
+
* @param lockName The lock name. The lock name can be a maximum of 260 characters. It cannot contain
|
444
|
+
* <, > %, &, :, \, ?, /, or any control characters.
|
445
|
+
* @param parameters The management lock parameters.
|
446
|
+
* @param options The options parameters.
|
447
|
+
*/
|
448
|
+
createOrUpdateAtResourceGroupLevel(resourceGroupName, lockName, parameters, options) {
|
449
|
+
return this.client.sendOperationRequest({ resourceGroupName, lockName, parameters, options }, createOrUpdateAtResourceGroupLevelOperationSpec);
|
450
|
+
}
|
451
|
+
/**
|
452
|
+
* To delete management locks, you must have access to Microsoft.Authorization/* or
|
453
|
+
* Microsoft.Authorization/locks/* actions. Of the built-in roles, only Owner and User Access
|
454
|
+
* Administrator are granted those actions.
|
455
|
+
* @param resourceGroupName The name of the resource group containing the lock.
|
456
|
+
* @param lockName The name of lock to delete.
|
457
|
+
* @param options The options parameters.
|
458
|
+
*/
|
459
|
+
deleteAtResourceGroupLevel(resourceGroupName, lockName, options) {
|
460
|
+
return this.client.sendOperationRequest({ resourceGroupName, lockName, options }, deleteAtResourceGroupLevelOperationSpec);
|
461
|
+
}
|
462
|
+
/**
|
463
|
+
* Gets a management lock at the resource group level.
|
464
|
+
* @param resourceGroupName The name of the locked resource group.
|
465
|
+
* @param lockName The name of the lock to get.
|
466
|
+
* @param options The options parameters.
|
467
|
+
*/
|
468
|
+
getAtResourceGroupLevel(resourceGroupName, lockName, options) {
|
469
|
+
return this.client.sendOperationRequest({ resourceGroupName, lockName, options }, getAtResourceGroupLevelOperationSpec);
|
470
|
+
}
|
471
|
+
/**
|
472
|
+
* Create or update a management lock by scope.
|
473
|
+
* @param scope The scope for the lock. When providing a scope for the assignment, use
|
474
|
+
* '/subscriptions/{subscriptionId}' for subscriptions,
|
475
|
+
* '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}' for resource groups, and
|
476
|
+
* '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePathIfPresent}/{resourceType}/{resourceName}'
|
477
|
+
* for resources.
|
478
|
+
* @param lockName The name of lock.
|
479
|
+
* @param parameters Create or update management lock parameters.
|
480
|
+
* @param options The options parameters.
|
481
|
+
*/
|
482
|
+
createOrUpdateByScope(scope, lockName, parameters, options) {
|
483
|
+
return this.client.sendOperationRequest({ scope, lockName, parameters, options }, createOrUpdateByScopeOperationSpec);
|
484
|
+
}
|
485
|
+
/**
|
486
|
+
* Delete a management lock by scope.
|
487
|
+
* @param scope The scope for the lock.
|
488
|
+
* @param lockName The name of lock.
|
489
|
+
* @param options The options parameters.
|
490
|
+
*/
|
491
|
+
deleteByScope(scope, lockName, options) {
|
492
|
+
return this.client.sendOperationRequest({ scope, lockName, options }, deleteByScopeOperationSpec);
|
493
|
+
}
|
494
|
+
/**
|
495
|
+
* Get a management lock by scope.
|
496
|
+
* @param scope The scope for the lock.
|
497
|
+
* @param lockName The name of lock.
|
498
|
+
* @param options The options parameters.
|
499
|
+
*/
|
500
|
+
getByScope(scope, lockName, options) {
|
501
|
+
return this.client.sendOperationRequest({ scope, lockName, options }, getByScopeOperationSpec);
|
502
|
+
}
|
503
|
+
/**
|
504
|
+
* When you apply a lock at a parent scope, all child resources inherit the same lock. To create
|
505
|
+
* management locks, you must have access to Microsoft.Authorization/* or
|
506
|
+
* Microsoft.Authorization/locks/* actions. Of the built-in roles, only Owner and User Access
|
507
|
+
* Administrator are granted those actions.
|
508
|
+
* @param resourceGroupName The name of the resource group containing the resource to lock.
|
509
|
+
* @param resourceProviderNamespace The resource provider namespace of the resource to lock.
|
510
|
+
* @param parentResourcePath The parent resource identity.
|
511
|
+
* @param resourceType The resource type of the resource to lock.
|
512
|
+
* @param resourceName The name of the resource to lock.
|
513
|
+
* @param lockName The name of lock. The lock name can be a maximum of 260 characters. It cannot
|
514
|
+
* contain <, > %, &, :, \, ?, /, or any control characters.
|
515
|
+
* @param parameters Parameters for creating or updating a management lock.
|
516
|
+
* @param options The options parameters.
|
517
|
+
*/
|
518
|
+
createOrUpdateAtResourceLevel(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, lockName, parameters, options) {
|
137
519
|
return this.client.sendOperationRequest({
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
520
|
+
resourceGroupName,
|
521
|
+
resourceProviderNamespace,
|
522
|
+
parentResourcePath,
|
523
|
+
resourceType,
|
524
|
+
resourceName,
|
525
|
+
lockName,
|
526
|
+
parameters,
|
527
|
+
options
|
528
|
+
}, createOrUpdateAtResourceLevelOperationSpec);
|
529
|
+
}
|
530
|
+
/**
|
531
|
+
* To delete management locks, you must have access to Microsoft.Authorization/* or
|
532
|
+
* Microsoft.Authorization/locks/* actions. Of the built-in roles, only Owner and User Access
|
533
|
+
* Administrator are granted those actions.
|
534
|
+
* @param resourceGroupName The name of the resource group containing the resource with the lock to
|
535
|
+
* delete.
|
536
|
+
* @param resourceProviderNamespace The resource provider namespace of the resource with the lock to
|
537
|
+
* delete.
|
538
|
+
* @param parentResourcePath The parent resource identity.
|
539
|
+
* @param resourceType The resource type of the resource with the lock to delete.
|
540
|
+
* @param resourceName The name of the resource with the lock to delete.
|
541
|
+
* @param lockName The name of the lock to delete.
|
542
|
+
* @param options The options parameters.
|
543
|
+
*/
|
544
|
+
deleteAtResourceLevel(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, lockName, options) {
|
142
545
|
return this.client.sendOperationRequest({
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
546
|
+
resourceGroupName,
|
547
|
+
resourceProviderNamespace,
|
548
|
+
parentResourcePath,
|
549
|
+
resourceType,
|
550
|
+
resourceName,
|
551
|
+
lockName,
|
552
|
+
options
|
553
|
+
}, deleteAtResourceLevelOperationSpec);
|
554
|
+
}
|
555
|
+
/**
|
556
|
+
* Get the management lock of a resource or any level below resource.
|
557
|
+
* @param resourceGroupName The name of the resource group.
|
558
|
+
* @param resourceProviderNamespace The namespace of the resource provider.
|
559
|
+
* @param parentResourcePath An extra path parameter needed in some services, like SQL Databases.
|
560
|
+
* @param resourceType The type of the resource.
|
561
|
+
* @param resourceName The name of the resource.
|
562
|
+
* @param lockName The name of lock.
|
563
|
+
* @param options The options parameters.
|
564
|
+
*/
|
565
|
+
getAtResourceLevel(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, lockName, options) {
|
148
566
|
return this.client.sendOperationRequest({
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
567
|
+
resourceGroupName,
|
568
|
+
resourceProviderNamespace,
|
569
|
+
parentResourcePath,
|
570
|
+
resourceType,
|
571
|
+
resourceName,
|
572
|
+
lockName,
|
573
|
+
options
|
574
|
+
}, getAtResourceLevelOperationSpec);
|
575
|
+
}
|
576
|
+
/**
|
577
|
+
* When you apply a lock at a parent scope, all child resources inherit the same lock. To create
|
578
|
+
* management locks, you must have access to Microsoft.Authorization/* or
|
579
|
+
* Microsoft.Authorization/locks/* actions. Of the built-in roles, only Owner and User Access
|
580
|
+
* Administrator are granted those actions.
|
581
|
+
* @param lockName The name of lock. The lock name can be a maximum of 260 characters. It cannot
|
582
|
+
* contain <, > %, &, :, \, ?, /, or any control characters.
|
583
|
+
* @param parameters The management lock parameters.
|
584
|
+
* @param options The options parameters.
|
585
|
+
*/
|
586
|
+
createOrUpdateAtSubscriptionLevel(lockName, parameters, options) {
|
587
|
+
return this.client.sendOperationRequest({ lockName, parameters, options }, createOrUpdateAtSubscriptionLevelOperationSpec);
|
588
|
+
}
|
589
|
+
/**
|
590
|
+
* To delete management locks, you must have access to Microsoft.Authorization/* or
|
591
|
+
* Microsoft.Authorization/locks/* actions. Of the built-in roles, only Owner and User Access
|
592
|
+
* Administrator are granted those actions.
|
593
|
+
* @param lockName The name of lock to delete.
|
594
|
+
* @param options The options parameters.
|
595
|
+
*/
|
596
|
+
deleteAtSubscriptionLevel(lockName, options) {
|
597
|
+
return this.client.sendOperationRequest({ lockName, options }, deleteAtSubscriptionLevelOperationSpec);
|
598
|
+
}
|
599
|
+
/**
|
600
|
+
* Gets a management lock at the subscription level.
|
601
|
+
* @param lockName The name of the lock to get.
|
602
|
+
* @param options The options parameters.
|
603
|
+
*/
|
604
|
+
getAtSubscriptionLevel(lockName, options) {
|
605
|
+
return this.client.sendOperationRequest({ lockName, options }, getAtSubscriptionLevelOperationSpec);
|
606
|
+
}
|
607
|
+
/**
|
608
|
+
* Gets all the management locks for a resource group.
|
609
|
+
* @param resourceGroupName The name of the resource group containing the locks to get.
|
610
|
+
* @param options The options parameters.
|
611
|
+
*/
|
612
|
+
_listAtResourceGroupLevel(resourceGroupName, options) {
|
613
|
+
return this.client.sendOperationRequest({ resourceGroupName, options }, listAtResourceGroupLevelOperationSpec);
|
614
|
+
}
|
615
|
+
/**
|
616
|
+
* Gets all the management locks for a resource or any level below resource.
|
617
|
+
* @param resourceGroupName The name of the resource group containing the locked resource. The name is
|
618
|
+
* case insensitive.
|
619
|
+
* @param resourceProviderNamespace The namespace of the resource provider.
|
620
|
+
* @param parentResourcePath The parent resource identity.
|
621
|
+
* @param resourceType The resource type of the locked resource.
|
622
|
+
* @param resourceName The name of the locked resource.
|
623
|
+
* @param options The options parameters.
|
624
|
+
*/
|
625
|
+
_listAtResourceLevel(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, options) {
|
154
626
|
return this.client.sendOperationRequest({
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
627
|
+
resourceGroupName,
|
628
|
+
resourceProviderNamespace,
|
629
|
+
parentResourcePath,
|
630
|
+
resourceType,
|
631
|
+
resourceName,
|
632
|
+
options
|
633
|
+
}, listAtResourceLevelOperationSpec);
|
634
|
+
}
|
635
|
+
/**
|
636
|
+
* Gets all the management locks for a subscription.
|
637
|
+
* @param options The options parameters.
|
638
|
+
*/
|
639
|
+
_listAtSubscriptionLevel(options) {
|
640
|
+
return this.client.sendOperationRequest({ options }, listAtSubscriptionLevelOperationSpec);
|
641
|
+
}
|
642
|
+
/**
|
643
|
+
* Gets all the management locks for a scope.
|
644
|
+
* @param scope The scope for the lock. When providing a scope for the assignment, use
|
645
|
+
* '/subscriptions/{subscriptionId}' for subscriptions,
|
646
|
+
* '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}' for resource groups, and
|
647
|
+
* '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePathIfPresent}/{resourceType}/{resourceName}'
|
648
|
+
* for resources.
|
649
|
+
* @param options The options parameters.
|
650
|
+
*/
|
651
|
+
_listByScope(scope, options) {
|
652
|
+
return this.client.sendOperationRequest({ scope, options }, listByScopeOperationSpec);
|
653
|
+
}
|
654
|
+
/**
|
655
|
+
* ListAtResourceGroupLevelNext
|
656
|
+
* @param resourceGroupName The name of the resource group containing the locks to get.
|
657
|
+
* @param nextLink The nextLink from the previous successful call to the ListAtResourceGroupLevel
|
658
|
+
* method.
|
659
|
+
* @param options The options parameters.
|
660
|
+
*/
|
661
|
+
_listAtResourceGroupLevelNext(resourceGroupName, nextLink, options) {
|
662
|
+
return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listAtResourceGroupLevelNextOperationSpec);
|
663
|
+
}
|
664
|
+
/**
|
665
|
+
* ListAtResourceLevelNext
|
666
|
+
* @param resourceGroupName The name of the resource group containing the locked resource. The name is
|
667
|
+
* case insensitive.
|
668
|
+
* @param resourceProviderNamespace The namespace of the resource provider.
|
669
|
+
* @param parentResourcePath The parent resource identity.
|
670
|
+
* @param resourceType The resource type of the locked resource.
|
671
|
+
* @param resourceName The name of the locked resource.
|
672
|
+
* @param nextLink The nextLink from the previous successful call to the ListAtResourceLevel method.
|
673
|
+
* @param options The options parameters.
|
674
|
+
*/
|
675
|
+
_listAtResourceLevelNext(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, nextLink, options) {
|
160
676
|
return this.client.sendOperationRequest({
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
677
|
+
resourceGroupName,
|
678
|
+
resourceProviderNamespace,
|
679
|
+
parentResourcePath,
|
680
|
+
resourceType,
|
681
|
+
resourceName,
|
682
|
+
nextLink,
|
683
|
+
options
|
684
|
+
}, listAtResourceLevelNextOperationSpec);
|
685
|
+
}
|
686
|
+
/**
|
687
|
+
* ListAtSubscriptionLevelNext
|
688
|
+
* @param nextLink The nextLink from the previous successful call to the ListAtSubscriptionLevel
|
689
|
+
* method.
|
690
|
+
* @param options The options parameters.
|
691
|
+
*/
|
692
|
+
_listAtSubscriptionLevelNext(nextLink, options) {
|
693
|
+
return this.client.sendOperationRequest({ nextLink, options }, listAtSubscriptionLevelNextOperationSpec);
|
694
|
+
}
|
695
|
+
/**
|
696
|
+
* ListByScopeNext
|
697
|
+
* @param scope The scope for the lock. When providing a scope for the assignment, use
|
698
|
+
* '/subscriptions/{subscriptionId}' for subscriptions,
|
699
|
+
* '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}' for resource groups, and
|
700
|
+
* '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePathIfPresent}/{resourceType}/{resourceName}'
|
701
|
+
* for resources.
|
702
|
+
* @param nextLink The nextLink from the previous successful call to the ListByScope method.
|
703
|
+
* @param options The options parameters.
|
704
|
+
*/
|
705
|
+
_listByScopeNext(scope, nextLink, options) {
|
706
|
+
return this.client.sendOperationRequest({ scope, nextLink, options }, listByScopeNextOperationSpec);
|
707
|
+
}
|
708
|
+
/**
|
709
|
+
* ListAtResourceGroupLevelNextNext
|
710
|
+
* @param resourceGroupName The name of the resource group containing the locks to get.
|
711
|
+
* @param nextLink The nextLink from the previous successful call to the ListAtResourceGroupLevelNext
|
712
|
+
* method.
|
713
|
+
* @param options The options parameters.
|
714
|
+
*/
|
715
|
+
_listAtResourceGroupLevelNextNext(resourceGroupName, nextLink, options) {
|
716
|
+
return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listAtResourceGroupLevelNextNextOperationSpec);
|
717
|
+
}
|
718
|
+
/**
|
719
|
+
* ListAtResourceLevelNextNext
|
720
|
+
* @param resourceGroupName The name of the resource group containing the locked resource. The name is
|
721
|
+
* case insensitive.
|
722
|
+
* @param resourceProviderNamespace The namespace of the resource provider.
|
723
|
+
* @param parentResourcePath The parent resource identity.
|
724
|
+
* @param resourceType The resource type of the locked resource.
|
725
|
+
* @param resourceName The name of the locked resource.
|
726
|
+
* @param nextLink The nextLink from the previous successful call to the ListAtResourceLevelNext
|
727
|
+
* method.
|
728
|
+
* @param options The options parameters.
|
729
|
+
*/
|
730
|
+
_listAtResourceLevelNextNext(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, nextLink, options) {
|
166
731
|
return this.client.sendOperationRequest({
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
732
|
+
resourceGroupName,
|
733
|
+
resourceProviderNamespace,
|
734
|
+
parentResourcePath,
|
735
|
+
resourceType,
|
736
|
+
resourceName,
|
737
|
+
nextLink,
|
738
|
+
options
|
739
|
+
}, listAtResourceLevelNextNextOperationSpec);
|
740
|
+
}
|
741
|
+
/**
|
742
|
+
* ListAtSubscriptionLevelNextNext
|
743
|
+
* @param nextLink The nextLink from the previous successful call to the ListAtSubscriptionLevelNext
|
744
|
+
* method.
|
745
|
+
* @param options The options parameters.
|
746
|
+
*/
|
747
|
+
_listAtSubscriptionLevelNextNext(nextLink, options) {
|
748
|
+
return this.client.sendOperationRequest({ nextLink, options }, listAtSubscriptionLevelNextNextOperationSpec);
|
749
|
+
}
|
750
|
+
/**
|
751
|
+
* ListByScopeNextNext
|
752
|
+
* @param scope The scope for the lock. When providing a scope for the assignment, use
|
753
|
+
* '/subscriptions/{subscriptionId}' for subscriptions,
|
754
|
+
* '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}' for resource groups, and
|
755
|
+
* '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePathIfPresent}/{resourceType}/{resourceName}'
|
756
|
+
* for resources.
|
757
|
+
* @param nextLink The nextLink from the previous successful call to the ListByScopeNext method.
|
758
|
+
* @param options The options parameters.
|
759
|
+
*/
|
760
|
+
_listByScopeNextNext(scope, nextLink, options) {
|
761
|
+
return this.client.sendOperationRequest({ scope, nextLink, options }, listByScopeNextNextOperationSpec);
|
762
|
+
}
|
763
|
+
}
|
174
764
|
// Operation Specifications
|
175
|
-
|
176
|
-
|
765
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
766
|
+
const createOrUpdateAtResourceGroupLevelOperationSpec = {
|
767
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Authorization/locks/{lockName}",
|
177
768
|
httpMethod: "PUT",
|
178
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Authorization/locks/{lockName}",
|
179
|
-
urlParameters: [
|
180
|
-
Parameters.resourceGroupName,
|
181
|
-
Parameters.lockName,
|
182
|
-
Parameters.subscriptionId
|
183
|
-
],
|
184
|
-
queryParameters: [
|
185
|
-
Parameters.apiVersion
|
186
|
-
],
|
187
|
-
headerParameters: [
|
188
|
-
Parameters.acceptLanguage
|
189
|
-
],
|
190
|
-
requestBody: {
|
191
|
-
parameterPath: "parameters",
|
192
|
-
mapper: __assign(__assign({}, Mappers.ManagementLockObject), { required: true })
|
193
|
-
},
|
194
769
|
responses: {
|
195
770
|
200: {
|
196
771
|
bodyMapper: Mappers.ManagementLockObject
|
197
772
|
},
|
198
773
|
201: {
|
199
774
|
bodyMapper: Mappers.ManagementLockObject
|
200
|
-
},
|
201
|
-
default: {
|
202
|
-
bodyMapper: Mappers.CloudError
|
203
775
|
}
|
204
776
|
},
|
205
|
-
|
206
|
-
|
207
|
-
var deleteAtResourceGroupLevelOperationSpec = {
|
208
|
-
httpMethod: "DELETE",
|
209
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Authorization/locks/{lockName}",
|
777
|
+
requestBody: Parameters.parameters,
|
778
|
+
queryParameters: [Parameters.apiVersion],
|
210
779
|
urlParameters: [
|
780
|
+
Parameters.$host,
|
211
781
|
Parameters.resourceGroupName,
|
212
782
|
Parameters.lockName,
|
213
783
|
Parameters.subscriptionId
|
214
784
|
],
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
headerParameters: [
|
219
|
-
Parameters.acceptLanguage
|
220
|
-
],
|
221
|
-
responses: {
|
222
|
-
200: {},
|
223
|
-
204: {},
|
224
|
-
default: {
|
225
|
-
bodyMapper: Mappers.CloudError
|
226
|
-
}
|
227
|
-
},
|
228
|
-
serializer: serializer
|
785
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
786
|
+
mediaType: "json",
|
787
|
+
serializer
|
229
788
|
};
|
230
|
-
|
231
|
-
|
232
|
-
|
789
|
+
const deleteAtResourceGroupLevelOperationSpec = {
|
790
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Authorization/locks/{lockName}",
|
791
|
+
httpMethod: "DELETE",
|
792
|
+
responses: { 200: {}, 204: {} },
|
793
|
+
queryParameters: [Parameters.apiVersion],
|
233
794
|
urlParameters: [
|
795
|
+
Parameters.$host,
|
234
796
|
Parameters.resourceGroupName,
|
235
797
|
Parameters.lockName,
|
236
798
|
Parameters.subscriptionId
|
237
799
|
],
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
],
|
800
|
+
serializer
|
801
|
+
};
|
802
|
+
const getAtResourceGroupLevelOperationSpec = {
|
803
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Authorization/locks/{lockName}",
|
804
|
+
httpMethod: "GET",
|
244
805
|
responses: {
|
245
806
|
200: {
|
246
807
|
bodyMapper: Mappers.ManagementLockObject
|
247
|
-
},
|
248
|
-
default: {
|
249
|
-
bodyMapper: Mappers.CloudError
|
250
808
|
}
|
251
809
|
},
|
252
|
-
|
253
|
-
};
|
254
|
-
var createOrUpdateByScopeOperationSpec = {
|
255
|
-
httpMethod: "PUT",
|
256
|
-
path: "{scope}/providers/Microsoft.Authorization/locks/{lockName}",
|
810
|
+
queryParameters: [Parameters.apiVersion],
|
257
811
|
urlParameters: [
|
258
|
-
Parameters
|
259
|
-
Parameters.
|
260
|
-
|
261
|
-
|
262
|
-
Parameters.apiVersion
|
263
|
-
],
|
264
|
-
headerParameters: [
|
265
|
-
Parameters.acceptLanguage
|
812
|
+
Parameters.$host,
|
813
|
+
Parameters.resourceGroupName,
|
814
|
+
Parameters.lockName,
|
815
|
+
Parameters.subscriptionId
|
266
816
|
],
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
817
|
+
headerParameters: [Parameters.accept],
|
818
|
+
serializer
|
819
|
+
};
|
820
|
+
const createOrUpdateByScopeOperationSpec = {
|
821
|
+
path: "/{scope}/providers/Microsoft.Authorization/locks/{lockName}",
|
822
|
+
httpMethod: "PUT",
|
271
823
|
responses: {
|
272
824
|
200: {
|
273
825
|
bodyMapper: Mappers.ManagementLockObject
|
274
826
|
},
|
275
827
|
201: {
|
276
828
|
bodyMapper: Mappers.ManagementLockObject
|
277
|
-
},
|
278
|
-
default: {
|
279
|
-
bodyMapper: Mappers.CloudError
|
280
829
|
}
|
281
830
|
},
|
282
|
-
|
831
|
+
requestBody: Parameters.parameters,
|
832
|
+
queryParameters: [Parameters.apiVersion],
|
833
|
+
urlParameters: [Parameters.$host, Parameters.lockName, Parameters.scope],
|
834
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
835
|
+
mediaType: "json",
|
836
|
+
serializer
|
283
837
|
};
|
284
|
-
|
838
|
+
const deleteByScopeOperationSpec = {
|
839
|
+
path: "/{scope}/providers/Microsoft.Authorization/locks/{lockName}",
|
285
840
|
httpMethod: "DELETE",
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
],
|
291
|
-
queryParameters: [
|
292
|
-
Parameters.apiVersion
|
293
|
-
],
|
294
|
-
headerParameters: [
|
295
|
-
Parameters.acceptLanguage
|
296
|
-
],
|
297
|
-
responses: {
|
298
|
-
200: {},
|
299
|
-
204: {},
|
300
|
-
default: {
|
301
|
-
bodyMapper: Mappers.CloudError
|
302
|
-
}
|
303
|
-
},
|
304
|
-
serializer: serializer
|
841
|
+
responses: { 200: {}, 204: {} },
|
842
|
+
queryParameters: [Parameters.apiVersion],
|
843
|
+
urlParameters: [Parameters.$host, Parameters.lockName, Parameters.scope],
|
844
|
+
serializer
|
305
845
|
};
|
306
|
-
|
846
|
+
const getByScopeOperationSpec = {
|
847
|
+
path: "/{scope}/providers/Microsoft.Authorization/locks/{lockName}",
|
307
848
|
httpMethod: "GET",
|
308
|
-
path: "{scope}/providers/Microsoft.Authorization/locks/{lockName}",
|
309
|
-
urlParameters: [
|
310
|
-
Parameters.scope,
|
311
|
-
Parameters.lockName
|
312
|
-
],
|
313
|
-
queryParameters: [
|
314
|
-
Parameters.apiVersion
|
315
|
-
],
|
316
|
-
headerParameters: [
|
317
|
-
Parameters.acceptLanguage
|
318
|
-
],
|
319
849
|
responses: {
|
320
850
|
200: {
|
321
851
|
bodyMapper: Mappers.ManagementLockObject
|
322
|
-
},
|
323
|
-
default: {
|
324
|
-
bodyMapper: Mappers.CloudError
|
325
852
|
}
|
326
853
|
},
|
327
|
-
|
854
|
+
queryParameters: [Parameters.apiVersion],
|
855
|
+
urlParameters: [Parameters.$host, Parameters.lockName, Parameters.scope],
|
856
|
+
headerParameters: [Parameters.accept],
|
857
|
+
serializer
|
328
858
|
};
|
329
|
-
|
859
|
+
const createOrUpdateAtResourceLevelOperationSpec = {
|
860
|
+
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/locks/{lockName}",
|
330
861
|
httpMethod: "PUT",
|
331
|
-
path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/locks/{lockName}",
|
332
|
-
urlParameters: [
|
333
|
-
Parameters.resourceGroupName,
|
334
|
-
Parameters.resourceProviderNamespace,
|
335
|
-
Parameters.parentResourcePath,
|
336
|
-
Parameters.resourceType,
|
337
|
-
Parameters.resourceName,
|
338
|
-
Parameters.lockName,
|
339
|
-
Parameters.subscriptionId
|
340
|
-
],
|
341
|
-
queryParameters: [
|
342
|
-
Parameters.apiVersion
|
343
|
-
],
|
344
|
-
headerParameters: [
|
345
|
-
Parameters.acceptLanguage
|
346
|
-
],
|
347
|
-
requestBody: {
|
348
|
-
parameterPath: "parameters",
|
349
|
-
mapper: __assign(__assign({}, Mappers.ManagementLockObject), { required: true })
|
350
|
-
},
|
351
862
|
responses: {
|
352
863
|
200: {
|
353
864
|
bodyMapper: Mappers.ManagementLockObject
|
354
865
|
},
|
355
866
|
201: {
|
356
867
|
bodyMapper: Mappers.ManagementLockObject
|
357
|
-
},
|
358
|
-
default: {
|
359
|
-
bodyMapper: Mappers.CloudError
|
360
868
|
}
|
361
869
|
},
|
362
|
-
|
363
|
-
|
364
|
-
var deleteAtResourceLevelOperationSpec = {
|
365
|
-
httpMethod: "DELETE",
|
366
|
-
path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/locks/{lockName}",
|
870
|
+
requestBody: Parameters.parameters,
|
871
|
+
queryParameters: [Parameters.apiVersion],
|
367
872
|
urlParameters: [
|
873
|
+
Parameters.$host,
|
368
874
|
Parameters.resourceGroupName,
|
875
|
+
Parameters.lockName,
|
876
|
+
Parameters.subscriptionId,
|
369
877
|
Parameters.resourceProviderNamespace,
|
370
878
|
Parameters.parentResourcePath,
|
371
879
|
Parameters.resourceType,
|
372
|
-
Parameters.resourceName
|
373
|
-
Parameters.lockName,
|
374
|
-
Parameters.subscriptionId
|
880
|
+
Parameters.resourceName
|
375
881
|
],
|
376
|
-
|
377
|
-
|
378
|
-
|
379
|
-
headerParameters: [
|
380
|
-
Parameters.acceptLanguage
|
381
|
-
],
|
382
|
-
responses: {
|
383
|
-
200: {},
|
384
|
-
204: {},
|
385
|
-
default: {
|
386
|
-
bodyMapper: Mappers.CloudError
|
387
|
-
}
|
388
|
-
},
|
389
|
-
serializer: serializer
|
882
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
883
|
+
mediaType: "json",
|
884
|
+
serializer
|
390
885
|
};
|
391
|
-
|
392
|
-
|
393
|
-
|
886
|
+
const deleteAtResourceLevelOperationSpec = {
|
887
|
+
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/locks/{lockName}",
|
888
|
+
httpMethod: "DELETE",
|
889
|
+
responses: { 200: {}, 204: {} },
|
890
|
+
queryParameters: [Parameters.apiVersion],
|
394
891
|
urlParameters: [
|
892
|
+
Parameters.$host,
|
395
893
|
Parameters.resourceGroupName,
|
894
|
+
Parameters.lockName,
|
895
|
+
Parameters.subscriptionId,
|
396
896
|
Parameters.resourceProviderNamespace,
|
397
897
|
Parameters.parentResourcePath,
|
398
898
|
Parameters.resourceType,
|
399
|
-
Parameters.resourceName
|
400
|
-
Parameters.lockName,
|
401
|
-
Parameters.subscriptionId
|
402
|
-
],
|
403
|
-
queryParameters: [
|
404
|
-
Parameters.apiVersion
|
405
|
-
],
|
406
|
-
headerParameters: [
|
407
|
-
Parameters.acceptLanguage
|
899
|
+
Parameters.resourceName
|
408
900
|
],
|
901
|
+
serializer
|
902
|
+
};
|
903
|
+
const getAtResourceLevelOperationSpec = {
|
904
|
+
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/locks/{lockName}",
|
905
|
+
httpMethod: "GET",
|
409
906
|
responses: {
|
410
907
|
200: {
|
411
908
|
bodyMapper: Mappers.ManagementLockObject
|
412
|
-
},
|
413
|
-
default: {
|
414
|
-
bodyMapper: Mappers.CloudError
|
415
909
|
}
|
416
910
|
},
|
417
|
-
|
418
|
-
};
|
419
|
-
var createOrUpdateAtSubscriptionLevelOperationSpec = {
|
420
|
-
httpMethod: "PUT",
|
421
|
-
path: "subscriptions/{subscriptionId}/providers/Microsoft.Authorization/locks/{lockName}",
|
911
|
+
queryParameters: [Parameters.apiVersion],
|
422
912
|
urlParameters: [
|
913
|
+
Parameters.$host,
|
914
|
+
Parameters.resourceGroupName,
|
423
915
|
Parameters.lockName,
|
424
|
-
Parameters.subscriptionId
|
425
|
-
|
426
|
-
|
427
|
-
Parameters.
|
428
|
-
|
429
|
-
headerParameters: [
|
430
|
-
Parameters.acceptLanguage
|
916
|
+
Parameters.subscriptionId,
|
917
|
+
Parameters.resourceProviderNamespace,
|
918
|
+
Parameters.parentResourcePath,
|
919
|
+
Parameters.resourceType,
|
920
|
+
Parameters.resourceName
|
431
921
|
],
|
432
|
-
|
433
|
-
|
434
|
-
|
435
|
-
|
922
|
+
headerParameters: [Parameters.accept],
|
923
|
+
serializer
|
924
|
+
};
|
925
|
+
const createOrUpdateAtSubscriptionLevelOperationSpec = {
|
926
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/locks/{lockName}",
|
927
|
+
httpMethod: "PUT",
|
436
928
|
responses: {
|
437
929
|
200: {
|
438
930
|
bodyMapper: Mappers.ManagementLockObject
|
439
931
|
},
|
440
932
|
201: {
|
441
933
|
bodyMapper: Mappers.ManagementLockObject
|
442
|
-
},
|
443
|
-
default: {
|
444
|
-
bodyMapper: Mappers.CloudError
|
445
934
|
}
|
446
935
|
},
|
447
|
-
|
936
|
+
requestBody: Parameters.parameters,
|
937
|
+
queryParameters: [Parameters.apiVersion],
|
938
|
+
urlParameters: [
|
939
|
+
Parameters.$host,
|
940
|
+
Parameters.lockName,
|
941
|
+
Parameters.subscriptionId
|
942
|
+
],
|
943
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
944
|
+
mediaType: "json",
|
945
|
+
serializer
|
448
946
|
};
|
449
|
-
|
947
|
+
const deleteAtSubscriptionLevelOperationSpec = {
|
948
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/locks/{lockName}",
|
450
949
|
httpMethod: "DELETE",
|
451
|
-
|
950
|
+
responses: { 200: {}, 204: {} },
|
951
|
+
queryParameters: [Parameters.apiVersion],
|
452
952
|
urlParameters: [
|
953
|
+
Parameters.$host,
|
453
954
|
Parameters.lockName,
|
454
955
|
Parameters.subscriptionId
|
455
956
|
],
|
456
|
-
|
457
|
-
|
458
|
-
|
459
|
-
|
460
|
-
|
461
|
-
],
|
957
|
+
serializer
|
958
|
+
};
|
959
|
+
const getAtSubscriptionLevelOperationSpec = {
|
960
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/locks/{lockName}",
|
961
|
+
httpMethod: "GET",
|
462
962
|
responses: {
|
463
|
-
200: {
|
464
|
-
|
465
|
-
default: {
|
466
|
-
bodyMapper: Mappers.CloudError
|
963
|
+
200: {
|
964
|
+
bodyMapper: Mappers.ManagementLockObject
|
467
965
|
}
|
468
966
|
},
|
469
|
-
|
470
|
-
};
|
471
|
-
var getAtSubscriptionLevelOperationSpec = {
|
472
|
-
httpMethod: "GET",
|
473
|
-
path: "subscriptions/{subscriptionId}/providers/Microsoft.Authorization/locks/{lockName}",
|
967
|
+
queryParameters: [Parameters.apiVersion],
|
474
968
|
urlParameters: [
|
969
|
+
Parameters.$host,
|
475
970
|
Parameters.lockName,
|
476
971
|
Parameters.subscriptionId
|
477
972
|
],
|
478
|
-
|
479
|
-
|
480
|
-
|
481
|
-
|
482
|
-
|
483
|
-
|
973
|
+
headerParameters: [Parameters.accept],
|
974
|
+
serializer
|
975
|
+
};
|
976
|
+
const listAtResourceGroupLevelOperationSpec = {
|
977
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Authorization/locks",
|
978
|
+
httpMethod: "GET",
|
484
979
|
responses: {
|
485
980
|
200: {
|
486
|
-
bodyMapper: Mappers.
|
487
|
-
},
|
488
|
-
default: {
|
489
|
-
bodyMapper: Mappers.CloudError
|
981
|
+
bodyMapper: Mappers.ManagementLockListResult
|
490
982
|
}
|
491
983
|
},
|
492
|
-
|
493
|
-
};
|
494
|
-
var listAtResourceGroupLevelOperationSpec = {
|
495
|
-
httpMethod: "GET",
|
496
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Authorization/locks",
|
984
|
+
queryParameters: [Parameters.apiVersion, Parameters.filter],
|
497
985
|
urlParameters: [
|
986
|
+
Parameters.$host,
|
498
987
|
Parameters.resourceGroupName,
|
499
988
|
Parameters.subscriptionId
|
500
989
|
],
|
501
|
-
|
502
|
-
|
503
|
-
|
504
|
-
|
505
|
-
|
506
|
-
|
507
|
-
],
|
990
|
+
headerParameters: [Parameters.accept],
|
991
|
+
serializer
|
992
|
+
};
|
993
|
+
const listAtResourceLevelOperationSpec = {
|
994
|
+
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/locks",
|
995
|
+
httpMethod: "GET",
|
508
996
|
responses: {
|
509
997
|
200: {
|
510
998
|
bodyMapper: Mappers.ManagementLockListResult
|
511
|
-
},
|
512
|
-
default: {
|
513
|
-
bodyMapper: Mappers.CloudError
|
514
999
|
}
|
515
1000
|
},
|
516
|
-
|
517
|
-
};
|
518
|
-
var listAtResourceLevelOperationSpec = {
|
519
|
-
httpMethod: "GET",
|
520
|
-
path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/locks",
|
1001
|
+
queryParameters: [Parameters.apiVersion, Parameters.filter],
|
521
1002
|
urlParameters: [
|
1003
|
+
Parameters.$host,
|
522
1004
|
Parameters.resourceGroupName,
|
1005
|
+
Parameters.subscriptionId,
|
523
1006
|
Parameters.resourceProviderNamespace,
|
524
1007
|
Parameters.parentResourcePath,
|
525
1008
|
Parameters.resourceType,
|
526
|
-
Parameters.resourceName
|
527
|
-
Parameters.subscriptionId
|
528
|
-
],
|
529
|
-
queryParameters: [
|
530
|
-
Parameters.filter,
|
531
|
-
Parameters.apiVersion
|
532
|
-
],
|
533
|
-
headerParameters: [
|
534
|
-
Parameters.acceptLanguage
|
1009
|
+
Parameters.resourceName
|
535
1010
|
],
|
1011
|
+
headerParameters: [Parameters.accept],
|
1012
|
+
serializer
|
1013
|
+
};
|
1014
|
+
const listAtSubscriptionLevelOperationSpec = {
|
1015
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/locks",
|
1016
|
+
httpMethod: "GET",
|
536
1017
|
responses: {
|
537
1018
|
200: {
|
538
1019
|
bodyMapper: Mappers.ManagementLockListResult
|
539
|
-
},
|
540
|
-
default: {
|
541
|
-
bodyMapper: Mappers.CloudError
|
542
1020
|
}
|
543
1021
|
},
|
544
|
-
|
1022
|
+
queryParameters: [Parameters.apiVersion, Parameters.filter],
|
1023
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
1024
|
+
headerParameters: [Parameters.accept],
|
1025
|
+
serializer
|
545
1026
|
};
|
546
|
-
|
1027
|
+
const listByScopeOperationSpec = {
|
1028
|
+
path: "/{scope}/providers/Microsoft.Authorization/locks",
|
547
1029
|
httpMethod: "GET",
|
548
|
-
path: "subscriptions/{subscriptionId}/providers/Microsoft.Authorization/locks",
|
549
|
-
urlParameters: [
|
550
|
-
Parameters.subscriptionId
|
551
|
-
],
|
552
|
-
queryParameters: [
|
553
|
-
Parameters.filter,
|
554
|
-
Parameters.apiVersion
|
555
|
-
],
|
556
|
-
headerParameters: [
|
557
|
-
Parameters.acceptLanguage
|
558
|
-
],
|
559
1030
|
responses: {
|
560
1031
|
200: {
|
561
1032
|
bodyMapper: Mappers.ManagementLockListResult
|
562
|
-
},
|
563
|
-
default: {
|
564
|
-
bodyMapper: Mappers.CloudError
|
565
1033
|
}
|
566
1034
|
},
|
567
|
-
|
1035
|
+
queryParameters: [Parameters.apiVersion, Parameters.filter],
|
1036
|
+
urlParameters: [Parameters.$host, Parameters.scope],
|
1037
|
+
headerParameters: [Parameters.accept],
|
1038
|
+
serializer
|
568
1039
|
};
|
569
|
-
|
1040
|
+
const listAtResourceGroupLevelNextOperationSpec = {
|
1041
|
+
path: "{nextLink}",
|
570
1042
|
httpMethod: "GET",
|
571
|
-
path: "{scope}/providers/Microsoft.Authorization/locks",
|
572
|
-
urlParameters: [
|
573
|
-
Parameters.scope
|
574
|
-
],
|
575
|
-
queryParameters: [
|
576
|
-
Parameters.filter,
|
577
|
-
Parameters.apiVersion
|
578
|
-
],
|
579
|
-
headerParameters: [
|
580
|
-
Parameters.acceptLanguage
|
581
|
-
],
|
582
1043
|
responses: {
|
583
1044
|
200: {
|
584
1045
|
bodyMapper: Mappers.ManagementLockListResult
|
585
|
-
},
|
586
|
-
default: {
|
587
|
-
bodyMapper: Mappers.CloudError
|
588
1046
|
}
|
589
1047
|
},
|
590
|
-
|
591
|
-
};
|
592
|
-
var listAtResourceGroupLevelNextOperationSpec = {
|
593
|
-
httpMethod: "GET",
|
594
|
-
baseUrl: "https://management.azure.com",
|
595
|
-
path: "{nextLink}",
|
1048
|
+
queryParameters: [Parameters.apiVersion, Parameters.filter],
|
596
1049
|
urlParameters: [
|
597
|
-
Parameters
|
598
|
-
|
599
|
-
|
600
|
-
Parameters.
|
1050
|
+
Parameters.$host,
|
1051
|
+
Parameters.nextLink,
|
1052
|
+
Parameters.resourceGroupName,
|
1053
|
+
Parameters.subscriptionId
|
601
1054
|
],
|
1055
|
+
headerParameters: [Parameters.accept],
|
1056
|
+
serializer
|
1057
|
+
};
|
1058
|
+
const listAtResourceLevelNextOperationSpec = {
|
1059
|
+
path: "{nextLink}",
|
1060
|
+
httpMethod: "GET",
|
602
1061
|
responses: {
|
603
1062
|
200: {
|
604
1063
|
bodyMapper: Mappers.ManagementLockListResult
|
605
|
-
},
|
606
|
-
default: {
|
607
|
-
bodyMapper: Mappers.CloudError
|
608
1064
|
}
|
609
1065
|
},
|
610
|
-
|
1066
|
+
queryParameters: [Parameters.apiVersion, Parameters.filter],
|
1067
|
+
urlParameters: [
|
1068
|
+
Parameters.$host,
|
1069
|
+
Parameters.nextLink,
|
1070
|
+
Parameters.resourceGroupName,
|
1071
|
+
Parameters.subscriptionId,
|
1072
|
+
Parameters.resourceProviderNamespace,
|
1073
|
+
Parameters.parentResourcePath,
|
1074
|
+
Parameters.resourceType,
|
1075
|
+
Parameters.resourceName
|
1076
|
+
],
|
1077
|
+
headerParameters: [Parameters.accept],
|
1078
|
+
serializer
|
611
1079
|
};
|
612
|
-
|
613
|
-
httpMethod: "GET",
|
614
|
-
baseUrl: "https://management.azure.com",
|
1080
|
+
const listAtSubscriptionLevelNextOperationSpec = {
|
615
1081
|
path: "{nextLink}",
|
1082
|
+
httpMethod: "GET",
|
1083
|
+
responses: {
|
1084
|
+
200: {
|
1085
|
+
bodyMapper: Mappers.ManagementLockListResult
|
1086
|
+
}
|
1087
|
+
},
|
1088
|
+
queryParameters: [Parameters.apiVersion, Parameters.filter],
|
616
1089
|
urlParameters: [
|
617
|
-
Parameters
|
618
|
-
|
619
|
-
|
620
|
-
Parameters.acceptLanguage
|
1090
|
+
Parameters.$host,
|
1091
|
+
Parameters.nextLink,
|
1092
|
+
Parameters.subscriptionId
|
621
1093
|
],
|
1094
|
+
headerParameters: [Parameters.accept],
|
1095
|
+
serializer
|
1096
|
+
};
|
1097
|
+
const listByScopeNextOperationSpec = {
|
1098
|
+
path: "{nextLink}",
|
1099
|
+
httpMethod: "GET",
|
622
1100
|
responses: {
|
623
1101
|
200: {
|
624
1102
|
bodyMapper: Mappers.ManagementLockListResult
|
625
|
-
},
|
626
|
-
default: {
|
627
|
-
bodyMapper: Mappers.CloudError
|
628
1103
|
}
|
629
1104
|
},
|
630
|
-
|
1105
|
+
queryParameters: [Parameters.apiVersion, Parameters.filter],
|
1106
|
+
urlParameters: [Parameters.$host, Parameters.nextLink, Parameters.scope],
|
1107
|
+
headerParameters: [Parameters.accept],
|
1108
|
+
serializer
|
631
1109
|
};
|
632
|
-
|
633
|
-
httpMethod: "GET",
|
634
|
-
baseUrl: "https://management.azure.com",
|
1110
|
+
const listAtResourceGroupLevelNextNextOperationSpec = {
|
635
1111
|
path: "{nextLink}",
|
1112
|
+
httpMethod: "GET",
|
1113
|
+
responses: {
|
1114
|
+
200: {
|
1115
|
+
bodyMapper: Mappers.ManagementLockListResult
|
1116
|
+
}
|
1117
|
+
},
|
1118
|
+
queryParameters: [Parameters.apiVersion, Parameters.filter],
|
636
1119
|
urlParameters: [
|
637
|
-
Parameters
|
638
|
-
|
639
|
-
|
640
|
-
Parameters.
|
1120
|
+
Parameters.$host,
|
1121
|
+
Parameters.nextLink,
|
1122
|
+
Parameters.resourceGroupName,
|
1123
|
+
Parameters.subscriptionId
|
641
1124
|
],
|
1125
|
+
headerParameters: [Parameters.accept],
|
1126
|
+
serializer
|
1127
|
+
};
|
1128
|
+
const listAtResourceLevelNextNextOperationSpec = {
|
1129
|
+
path: "{nextLink}",
|
1130
|
+
httpMethod: "GET",
|
642
1131
|
responses: {
|
643
1132
|
200: {
|
644
1133
|
bodyMapper: Mappers.ManagementLockListResult
|
645
|
-
},
|
646
|
-
default: {
|
647
|
-
bodyMapper: Mappers.CloudError
|
648
1134
|
}
|
649
1135
|
},
|
650
|
-
|
1136
|
+
queryParameters: [Parameters.apiVersion, Parameters.filter],
|
1137
|
+
urlParameters: [
|
1138
|
+
Parameters.$host,
|
1139
|
+
Parameters.nextLink,
|
1140
|
+
Parameters.resourceGroupName,
|
1141
|
+
Parameters.subscriptionId,
|
1142
|
+
Parameters.resourceProviderNamespace,
|
1143
|
+
Parameters.parentResourcePath,
|
1144
|
+
Parameters.resourceType,
|
1145
|
+
Parameters.resourceName
|
1146
|
+
],
|
1147
|
+
headerParameters: [Parameters.accept],
|
1148
|
+
serializer
|
651
1149
|
};
|
652
|
-
|
653
|
-
httpMethod: "GET",
|
654
|
-
baseUrl: "https://management.azure.com",
|
1150
|
+
const listAtSubscriptionLevelNextNextOperationSpec = {
|
655
1151
|
path: "{nextLink}",
|
1152
|
+
httpMethod: "GET",
|
1153
|
+
responses: {
|
1154
|
+
200: {
|
1155
|
+
bodyMapper: Mappers.ManagementLockListResult
|
1156
|
+
}
|
1157
|
+
},
|
1158
|
+
queryParameters: [Parameters.apiVersion, Parameters.filter],
|
656
1159
|
urlParameters: [
|
657
|
-
Parameters
|
658
|
-
|
659
|
-
|
660
|
-
Parameters.acceptLanguage
|
1160
|
+
Parameters.$host,
|
1161
|
+
Parameters.nextLink,
|
1162
|
+
Parameters.subscriptionId
|
661
1163
|
],
|
1164
|
+
headerParameters: [Parameters.accept],
|
1165
|
+
serializer
|
1166
|
+
};
|
1167
|
+
const listByScopeNextNextOperationSpec = {
|
1168
|
+
path: "{nextLink}",
|
1169
|
+
httpMethod: "GET",
|
662
1170
|
responses: {
|
663
1171
|
200: {
|
664
1172
|
bodyMapper: Mappers.ManagementLockListResult
|
665
|
-
},
|
666
|
-
default: {
|
667
|
-
bodyMapper: Mappers.CloudError
|
668
1173
|
}
|
669
1174
|
},
|
670
|
-
|
1175
|
+
queryParameters: [Parameters.apiVersion, Parameters.filter],
|
1176
|
+
urlParameters: [Parameters.$host, Parameters.nextLink, Parameters.scope],
|
1177
|
+
headerParameters: [Parameters.accept],
|
1178
|
+
serializer
|
671
1179
|
};
|
672
1180
|
//# sourceMappingURL=managementLocks.js.map
|