@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.
Files changed (84) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/{LICENSE.txt → LICENSE} +2 -2
  3. package/README.md +63 -80
  4. package/dist/index.js +1796 -0
  5. package/dist/index.js.map +1 -0
  6. package/dist/index.min.js +1 -0
  7. package/dist/index.min.js.map +1 -0
  8. package/esm/index.d.ts +534 -0
  9. package/esm/index.d.ts.map +1 -0
  10. package/esm/index.js +13 -0
  11. package/esm/index.js.map +1 -0
  12. package/esm/managementLockClient.d.ts +9 -18
  13. package/esm/managementLockClient.d.ts.map +1 -1
  14. package/esm/managementLockClient.js +12 -28
  15. package/esm/managementLockClient.js.map +1 -1
  16. package/esm/managementLockClientContext.d.ts +10 -16
  17. package/esm/managementLockClientContext.d.ts.map +1 -1
  18. package/esm/managementLockClientContext.js +34 -46
  19. package/esm/managementLockClientContext.js.map +1 -1
  20. package/esm/models/index.d.ts +208 -445
  21. package/esm/models/index.d.ts.map +1 -1
  22. package/esm/models/index.js +9 -2
  23. package/esm/models/index.js.map +1 -1
  24. package/esm/models/mappers.d.ts +7 -9
  25. package/esm/models/mappers.d.ts.map +1 -1
  26. package/esm/models/mappers.js +69 -78
  27. package/esm/models/mappers.js.map +1 -1
  28. package/esm/models/parameters.d.ts +16 -13
  29. package/esm/models/parameters.d.ts.map +1 -1
  30. package/esm/models/parameters.js +78 -54
  31. package/esm/models/parameters.js.map +1 -1
  32. package/esm/operations/authorizationOperations.d.ts +27 -26
  33. package/esm/operations/authorizationOperations.d.ts.map +1 -1
  34. package/esm/operations/authorizationOperations.js +158 -50
  35. package/esm/operations/authorizationOperations.js.map +1 -1
  36. package/esm/operations/index.d.ts.map +1 -1
  37. package/esm/operations/index.js +3 -5
  38. package/esm/operations/index.js.map +1 -1
  39. package/esm/operations/managementLocks.d.ts +203 -393
  40. package/esm/operations/managementLocks.d.ts.map +1 -1
  41. package/esm/operations/managementLocks.js +993 -485
  42. package/esm/operations/managementLocks.js.map +1 -1
  43. package/esm/operationsInterfaces/authorizationOperations.d.ts +18 -0
  44. package/esm/operationsInterfaces/authorizationOperations.d.ts.map +1 -0
  45. package/esm/operationsInterfaces/authorizationOperations.js +9 -0
  46. package/esm/operationsInterfaces/authorizationOperations.js.map +1 -0
  47. package/esm/operationsInterfaces/index.d.ts +3 -0
  48. package/esm/operationsInterfaces/index.d.ts.map +1 -0
  49. package/esm/operationsInterfaces/index.js +10 -0
  50. package/esm/operationsInterfaces/index.js.map +1 -0
  51. package/esm/operationsInterfaces/managementLocks.d.ts +198 -0
  52. package/esm/operationsInterfaces/managementLocks.d.ts.map +1 -0
  53. package/esm/operationsInterfaces/managementLocks.js +9 -0
  54. package/esm/operationsInterfaces/managementLocks.js.map +1 -0
  55. package/package.json +53 -16
  56. package/review/arm-locks.api.md +313 -0
  57. package/rollup.config.js +181 -30
  58. package/src/index.ts +13 -0
  59. package/src/managementLockClient.ts +23 -36
  60. package/src/managementLockClientContext.ts +47 -45
  61. package/src/models/index.ts +256 -470
  62. package/src/models/mappers.ts +72 -82
  63. package/src/models/parameters.ts +97 -55
  64. package/src/operations/authorizationOperations.ts +155 -70
  65. package/src/operations/index.ts +3 -5
  66. package/src/operations/managementLocks.ts +1165 -869
  67. package/src/operationsInterfaces/authorizationOperations.ts +36 -0
  68. package/src/operationsInterfaces/index.ts +10 -0
  69. package/src/operationsInterfaces/managementLocks.ts +332 -0
  70. package/tsconfig.json +3 -2
  71. package/dist/arm-locks.js +0 -1280
  72. package/dist/arm-locks.js.map +0 -1
  73. package/dist/arm-locks.min.js +0 -1
  74. package/dist/arm-locks.min.js.map +0 -1
  75. package/esm/models/authorizationOperationsMappers.d.ts +0 -2
  76. package/esm/models/authorizationOperationsMappers.d.ts.map +0 -1
  77. package/esm/models/authorizationOperationsMappers.js +0 -9
  78. package/esm/models/authorizationOperationsMappers.js.map +0 -1
  79. package/esm/models/managementLocksMappers.d.ts +0 -2
  80. package/esm/models/managementLocksMappers.d.ts.map +0 -1
  81. package/esm/models/managementLocksMappers.js +0 -9
  82. package/esm/models/managementLocksMappers.js.map +0 -1
  83. package/src/models/authorizationOperationsMappers.ts +0 -14
  84. package/src/models/managementLocksMappers.ts +0 -15
package/esm/index.d.ts ADDED
@@ -0,0 +1,534 @@
1
+ import * as coreAuth from '@azure/core-auth';
2
+ import * as coreClient from '@azure/core-client';
3
+ import { PagedAsyncIterableIterator } from '@azure/core-paging';
4
+
5
+ /** Interface representing a AuthorizationOperations. */
6
+ export declare interface AuthorizationOperations {
7
+ /**
8
+ * Lists all of the available Microsoft.Authorization REST API operations.
9
+ * @param options The options parameters.
10
+ */
11
+ list(options?: AuthorizationOperationsListOptionalParams): PagedAsyncIterableIterator<Operation>;
12
+ /**
13
+ * ListNext
14
+ * @param nextLink The nextLink from the previous successful call to the List method.
15
+ * @param options The options parameters.
16
+ */
17
+ listNext(nextLink: string, options?: AuthorizationOperationsListNextOptionalParams): PagedAsyncIterableIterator<Operation>;
18
+ }
19
+
20
+ /** Optional parameters. */
21
+ export declare interface AuthorizationOperationsListNextNextOptionalParams extends coreClient.OperationOptions {
22
+ }
23
+
24
+ /** Contains response data for the listNextNext operation. */
25
+ export declare type AuthorizationOperationsListNextNextResponse = OperationListResult;
26
+
27
+ /** Optional parameters. */
28
+ export declare interface AuthorizationOperationsListNextOptionalParams extends coreClient.OperationOptions {
29
+ }
30
+
31
+ /** Contains response data for the listNext operation. */
32
+ export declare type AuthorizationOperationsListNextResponse = OperationListResult;
33
+
34
+ /** Optional parameters. */
35
+ export declare interface AuthorizationOperationsListOptionalParams extends coreClient.OperationOptions {
36
+ }
37
+
38
+ /** Contains response data for the list operation. */
39
+ export declare type AuthorizationOperationsListResponse = OperationListResult;
40
+
41
+ /** Known values of {@link LockLevel} that the service accepts. */
42
+ export declare enum KnownLockLevel {
43
+ NotSpecified = "NotSpecified",
44
+ CanNotDelete = "CanNotDelete",
45
+ ReadOnly = "ReadOnly"
46
+ }
47
+
48
+ /**
49
+ * Defines values for LockLevel. \
50
+ * {@link KnownLockLevel} can be used interchangeably with LockLevel,
51
+ * this enum contains the known values that the service supports.
52
+ * ### Known values supported by the service
53
+ * **NotSpecified** \
54
+ * **CanNotDelete** \
55
+ * **ReadOnly**
56
+ */
57
+ export declare type LockLevel = string;
58
+
59
+ export declare class ManagementLockClient extends ManagementLockClientContext {
60
+ /**
61
+ * Initializes a new instance of the ManagementLockClient class.
62
+ * @param credentials Subscription credentials which uniquely identify client subscription.
63
+ * @param subscriptionId The ID of the target subscription.
64
+ * @param options The parameter options
65
+ */
66
+ constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: ManagementLockClientOptionalParams);
67
+ authorizationOperations: AuthorizationOperations;
68
+ managementLocks: ManagementLocks;
69
+ }
70
+
71
+ export declare class ManagementLockClientContext extends coreClient.ServiceClient {
72
+ $host: string;
73
+ apiVersion: string;
74
+ subscriptionId: string;
75
+ /**
76
+ * Initializes a new instance of the ManagementLockClientContext class.
77
+ * @param credentials Subscription credentials which uniquely identify client subscription.
78
+ * @param subscriptionId The ID of the target subscription.
79
+ * @param options The parameter options
80
+ */
81
+ constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: ManagementLockClientOptionalParams);
82
+ }
83
+
84
+ /** Optional parameters. */
85
+ export declare interface ManagementLockClientOptionalParams extends coreClient.ServiceClientOptions {
86
+ /** server parameter */
87
+ $host?: string;
88
+ /** Api Version */
89
+ apiVersion?: string;
90
+ /** Overrides client endpoint. */
91
+ endpoint?: string;
92
+ }
93
+
94
+ /** The list of locks. */
95
+ export declare interface ManagementLockListResult {
96
+ /** The list of locks. */
97
+ value?: ManagementLockObject[];
98
+ /** The URL to use for getting the next set of results. */
99
+ nextLink?: string;
100
+ }
101
+
102
+ /** The lock information. */
103
+ export declare interface ManagementLockObject {
104
+ /**
105
+ * The resource ID of the lock.
106
+ * NOTE: This property will not be serialized. It can only be populated by the server.
107
+ */
108
+ readonly id?: string;
109
+ /**
110
+ * The resource type of the lock - Microsoft.Authorization/locks.
111
+ * NOTE: This property will not be serialized. It can only be populated by the server.
112
+ */
113
+ readonly type?: string;
114
+ /**
115
+ * The name of the lock.
116
+ * NOTE: This property will not be serialized. It can only be populated by the server.
117
+ */
118
+ readonly name?: string;
119
+ /** The level of the lock. Possible values are: NotSpecified, CanNotDelete, ReadOnly. CanNotDelete means authorized users are able to read and modify the resources, but not delete. ReadOnly means authorized users can only read from a resource, but they can't modify or delete it. */
120
+ level: LockLevel;
121
+ /** Notes about the lock. Maximum of 512 characters. */
122
+ notes?: string;
123
+ /** The owners of the lock. */
124
+ owners?: ManagementLockOwner[];
125
+ }
126
+
127
+ /** Lock owner properties. */
128
+ export declare interface ManagementLockOwner {
129
+ /** The application ID of the lock owner. */
130
+ applicationId?: string;
131
+ }
132
+
133
+ /** Interface representing a ManagementLocks. */
134
+ export declare interface ManagementLocks {
135
+ /**
136
+ * Gets all the management locks for a resource group.
137
+ * @param resourceGroupName The name of the resource group containing the locks to get.
138
+ * @param options The options parameters.
139
+ */
140
+ listAtResourceGroupLevel(resourceGroupName: string, options?: ManagementLocksListAtResourceGroupLevelOptionalParams): PagedAsyncIterableIterator<ManagementLockObject>;
141
+ /**
142
+ * Gets all the management locks for a resource or any level below resource.
143
+ * @param resourceGroupName The name of the resource group containing the locked resource. The name is
144
+ * case insensitive.
145
+ * @param resourceProviderNamespace The namespace of the resource provider.
146
+ * @param parentResourcePath The parent resource identity.
147
+ * @param resourceType The resource type of the locked resource.
148
+ * @param resourceName The name of the locked resource.
149
+ * @param options The options parameters.
150
+ */
151
+ listAtResourceLevel(resourceGroupName: string, resourceProviderNamespace: string, parentResourcePath: string, resourceType: string, resourceName: string, options?: ManagementLocksListAtResourceLevelOptionalParams): PagedAsyncIterableIterator<ManagementLockObject>;
152
+ /**
153
+ * Gets all the management locks for a subscription.
154
+ * @param options The options parameters.
155
+ */
156
+ listAtSubscriptionLevel(options?: ManagementLocksListAtSubscriptionLevelOptionalParams): PagedAsyncIterableIterator<ManagementLockObject>;
157
+ /**
158
+ * Gets all the management locks for a scope.
159
+ * @param scope The scope for the lock. When providing a scope for the assignment, use
160
+ * '/subscriptions/{subscriptionId}' for subscriptions,
161
+ * '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}' for resource groups, and
162
+ * '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePathIfPresent}/{resourceType}/{resourceName}'
163
+ * for resources.
164
+ * @param options The options parameters.
165
+ */
166
+ listByScope(scope: string, options?: ManagementLocksListByScopeOptionalParams): PagedAsyncIterableIterator<ManagementLockObject>;
167
+ /**
168
+ * ListAtResourceGroupLevelNext
169
+ * @param resourceGroupName The name of the resource group containing the locks to get.
170
+ * @param nextLink The nextLink from the previous successful call to the ListAtResourceGroupLevel
171
+ * method.
172
+ * @param options The options parameters.
173
+ */
174
+ listAtResourceGroupLevelNext(resourceGroupName: string, nextLink: string, options?: ManagementLocksListAtResourceGroupLevelNextOptionalParams): PagedAsyncIterableIterator<ManagementLockObject>;
175
+ /**
176
+ * ListAtResourceLevelNext
177
+ * @param resourceGroupName The name of the resource group containing the locked resource. The name is
178
+ * case insensitive.
179
+ * @param resourceProviderNamespace The namespace of the resource provider.
180
+ * @param parentResourcePath The parent resource identity.
181
+ * @param resourceType The resource type of the locked resource.
182
+ * @param resourceName The name of the locked resource.
183
+ * @param nextLink The nextLink from the previous successful call to the ListAtResourceLevel method.
184
+ * @param options The options parameters.
185
+ */
186
+ listAtResourceLevelNext(resourceGroupName: string, resourceProviderNamespace: string, parentResourcePath: string, resourceType: string, resourceName: string, nextLink: string, options?: ManagementLocksListAtResourceLevelNextOptionalParams): PagedAsyncIterableIterator<ManagementLockObject>;
187
+ /**
188
+ * ListAtSubscriptionLevelNext
189
+ * @param nextLink The nextLink from the previous successful call to the ListAtSubscriptionLevel
190
+ * method.
191
+ * @param options The options parameters.
192
+ */
193
+ listAtSubscriptionLevelNext(nextLink: string, options?: ManagementLocksListAtSubscriptionLevelNextOptionalParams): PagedAsyncIterableIterator<ManagementLockObject>;
194
+ /**
195
+ * ListByScopeNext
196
+ * @param scope The scope for the lock. When providing a scope for the assignment, use
197
+ * '/subscriptions/{subscriptionId}' for subscriptions,
198
+ * '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}' for resource groups, and
199
+ * '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePathIfPresent}/{resourceType}/{resourceName}'
200
+ * for resources.
201
+ * @param nextLink The nextLink from the previous successful call to the ListByScope method.
202
+ * @param options The options parameters.
203
+ */
204
+ listByScopeNext(scope: string, nextLink: string, options?: ManagementLocksListByScopeNextOptionalParams): PagedAsyncIterableIterator<ManagementLockObject>;
205
+ /**
206
+ * When you apply a lock at a parent scope, all child resources inherit the same lock. To create
207
+ * management locks, you must have access to Microsoft.Authorization/* or
208
+ * Microsoft.Authorization/locks/* actions. Of the built-in roles, only Owner and User Access
209
+ * Administrator are granted those actions.
210
+ * @param resourceGroupName The name of the resource group to lock.
211
+ * @param lockName The lock name. The lock name can be a maximum of 260 characters. It cannot contain
212
+ * <, > %, &, :, \, ?, /, or any control characters.
213
+ * @param parameters The management lock parameters.
214
+ * @param options The options parameters.
215
+ */
216
+ createOrUpdateAtResourceGroupLevel(resourceGroupName: string, lockName: string, parameters: ManagementLockObject, options?: ManagementLocksCreateOrUpdateAtResourceGroupLevelOptionalParams): Promise<ManagementLocksCreateOrUpdateAtResourceGroupLevelResponse>;
217
+ /**
218
+ * To delete management locks, you must have access to Microsoft.Authorization/* or
219
+ * Microsoft.Authorization/locks/* actions. Of the built-in roles, only Owner and User Access
220
+ * Administrator are granted those actions.
221
+ * @param resourceGroupName The name of the resource group containing the lock.
222
+ * @param lockName The name of lock to delete.
223
+ * @param options The options parameters.
224
+ */
225
+ deleteAtResourceGroupLevel(resourceGroupName: string, lockName: string, options?: ManagementLocksDeleteAtResourceGroupLevelOptionalParams): Promise<void>;
226
+ /**
227
+ * Gets a management lock at the resource group level.
228
+ * @param resourceGroupName The name of the locked resource group.
229
+ * @param lockName The name of the lock to get.
230
+ * @param options The options parameters.
231
+ */
232
+ getAtResourceGroupLevel(resourceGroupName: string, lockName: string, options?: ManagementLocksGetAtResourceGroupLevelOptionalParams): Promise<ManagementLocksGetAtResourceGroupLevelResponse>;
233
+ /**
234
+ * Create or update a management lock by scope.
235
+ * @param scope The scope for the lock. When providing a scope for the assignment, use
236
+ * '/subscriptions/{subscriptionId}' for subscriptions,
237
+ * '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}' for resource groups, and
238
+ * '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePathIfPresent}/{resourceType}/{resourceName}'
239
+ * for resources.
240
+ * @param lockName The name of lock.
241
+ * @param parameters Create or update management lock parameters.
242
+ * @param options The options parameters.
243
+ */
244
+ createOrUpdateByScope(scope: string, lockName: string, parameters: ManagementLockObject, options?: ManagementLocksCreateOrUpdateByScopeOptionalParams): Promise<ManagementLocksCreateOrUpdateByScopeResponse>;
245
+ /**
246
+ * Delete a management lock by scope.
247
+ * @param scope The scope for the lock.
248
+ * @param lockName The name of lock.
249
+ * @param options The options parameters.
250
+ */
251
+ deleteByScope(scope: string, lockName: string, options?: ManagementLocksDeleteByScopeOptionalParams): Promise<void>;
252
+ /**
253
+ * Get a management lock by scope.
254
+ * @param scope The scope for the lock.
255
+ * @param lockName The name of lock.
256
+ * @param options The options parameters.
257
+ */
258
+ getByScope(scope: string, lockName: string, options?: ManagementLocksGetByScopeOptionalParams): Promise<ManagementLocksGetByScopeResponse>;
259
+ /**
260
+ * When you apply a lock at a parent scope, all child resources inherit the same lock. To create
261
+ * management locks, you must have access to Microsoft.Authorization/* or
262
+ * Microsoft.Authorization/locks/* actions. Of the built-in roles, only Owner and User Access
263
+ * Administrator are granted those actions.
264
+ * @param resourceGroupName The name of the resource group containing the resource to lock.
265
+ * @param resourceProviderNamespace The resource provider namespace of the resource to lock.
266
+ * @param parentResourcePath The parent resource identity.
267
+ * @param resourceType The resource type of the resource to lock.
268
+ * @param resourceName The name of the resource to lock.
269
+ * @param lockName The name of lock. The lock name can be a maximum of 260 characters. It cannot
270
+ * contain <, > %, &, :, \, ?, /, or any control characters.
271
+ * @param parameters Parameters for creating or updating a management lock.
272
+ * @param options The options parameters.
273
+ */
274
+ createOrUpdateAtResourceLevel(resourceGroupName: string, resourceProviderNamespace: string, parentResourcePath: string, resourceType: string, resourceName: string, lockName: string, parameters: ManagementLockObject, options?: ManagementLocksCreateOrUpdateAtResourceLevelOptionalParams): Promise<ManagementLocksCreateOrUpdateAtResourceLevelResponse>;
275
+ /**
276
+ * To delete management locks, you must have access to Microsoft.Authorization/* or
277
+ * Microsoft.Authorization/locks/* actions. Of the built-in roles, only Owner and User Access
278
+ * Administrator are granted those actions.
279
+ * @param resourceGroupName The name of the resource group containing the resource with the lock to
280
+ * delete.
281
+ * @param resourceProviderNamespace The resource provider namespace of the resource with the lock to
282
+ * delete.
283
+ * @param parentResourcePath The parent resource identity.
284
+ * @param resourceType The resource type of the resource with the lock to delete.
285
+ * @param resourceName The name of the resource with the lock to delete.
286
+ * @param lockName The name of the lock to delete.
287
+ * @param options The options parameters.
288
+ */
289
+ deleteAtResourceLevel(resourceGroupName: string, resourceProviderNamespace: string, parentResourcePath: string, resourceType: string, resourceName: string, lockName: string, options?: ManagementLocksDeleteAtResourceLevelOptionalParams): Promise<void>;
290
+ /**
291
+ * Get the management lock of a resource or any level below resource.
292
+ * @param resourceGroupName The name of the resource group.
293
+ * @param resourceProviderNamespace The namespace of the resource provider.
294
+ * @param parentResourcePath An extra path parameter needed in some services, like SQL Databases.
295
+ * @param resourceType The type of the resource.
296
+ * @param resourceName The name of the resource.
297
+ * @param lockName The name of lock.
298
+ * @param options The options parameters.
299
+ */
300
+ getAtResourceLevel(resourceGroupName: string, resourceProviderNamespace: string, parentResourcePath: string, resourceType: string, resourceName: string, lockName: string, options?: ManagementLocksGetAtResourceLevelOptionalParams): Promise<ManagementLocksGetAtResourceLevelResponse>;
301
+ /**
302
+ * When you apply a lock at a parent scope, all child resources inherit the same lock. To create
303
+ * management locks, you must have access to Microsoft.Authorization/* or
304
+ * Microsoft.Authorization/locks/* actions. Of the built-in roles, only Owner and User Access
305
+ * Administrator are granted those actions.
306
+ * @param lockName The name of lock. The lock name can be a maximum of 260 characters. It cannot
307
+ * contain <, > %, &, :, \, ?, /, or any control characters.
308
+ * @param parameters The management lock parameters.
309
+ * @param options The options parameters.
310
+ */
311
+ createOrUpdateAtSubscriptionLevel(lockName: string, parameters: ManagementLockObject, options?: ManagementLocksCreateOrUpdateAtSubscriptionLevelOptionalParams): Promise<ManagementLocksCreateOrUpdateAtSubscriptionLevelResponse>;
312
+ /**
313
+ * To delete management locks, you must have access to Microsoft.Authorization/* or
314
+ * Microsoft.Authorization/locks/* actions. Of the built-in roles, only Owner and User Access
315
+ * Administrator are granted those actions.
316
+ * @param lockName The name of lock to delete.
317
+ * @param options The options parameters.
318
+ */
319
+ deleteAtSubscriptionLevel(lockName: string, options?: ManagementLocksDeleteAtSubscriptionLevelOptionalParams): Promise<void>;
320
+ /**
321
+ * Gets a management lock at the subscription level.
322
+ * @param lockName The name of the lock to get.
323
+ * @param options The options parameters.
324
+ */
325
+ getAtSubscriptionLevel(lockName: string, options?: ManagementLocksGetAtSubscriptionLevelOptionalParams): Promise<ManagementLocksGetAtSubscriptionLevelResponse>;
326
+ }
327
+
328
+ /** Optional parameters. */
329
+ export declare interface ManagementLocksCreateOrUpdateAtResourceGroupLevelOptionalParams extends coreClient.OperationOptions {
330
+ }
331
+
332
+ /** Contains response data for the createOrUpdateAtResourceGroupLevel operation. */
333
+ export declare type ManagementLocksCreateOrUpdateAtResourceGroupLevelResponse = ManagementLockObject;
334
+
335
+ /** Optional parameters. */
336
+ export declare interface ManagementLocksCreateOrUpdateAtResourceLevelOptionalParams extends coreClient.OperationOptions {
337
+ }
338
+
339
+ /** Contains response data for the createOrUpdateAtResourceLevel operation. */
340
+ export declare type ManagementLocksCreateOrUpdateAtResourceLevelResponse = ManagementLockObject;
341
+
342
+ /** Optional parameters. */
343
+ export declare interface ManagementLocksCreateOrUpdateAtSubscriptionLevelOptionalParams extends coreClient.OperationOptions {
344
+ }
345
+
346
+ /** Contains response data for the createOrUpdateAtSubscriptionLevel operation. */
347
+ export declare type ManagementLocksCreateOrUpdateAtSubscriptionLevelResponse = ManagementLockObject;
348
+
349
+ /** Optional parameters. */
350
+ export declare interface ManagementLocksCreateOrUpdateByScopeOptionalParams extends coreClient.OperationOptions {
351
+ }
352
+
353
+ /** Contains response data for the createOrUpdateByScope operation. */
354
+ export declare type ManagementLocksCreateOrUpdateByScopeResponse = ManagementLockObject;
355
+
356
+ /** Optional parameters. */
357
+ export declare interface ManagementLocksDeleteAtResourceGroupLevelOptionalParams extends coreClient.OperationOptions {
358
+ }
359
+
360
+ /** Optional parameters. */
361
+ export declare interface ManagementLocksDeleteAtResourceLevelOptionalParams extends coreClient.OperationOptions {
362
+ }
363
+
364
+ /** Optional parameters. */
365
+ export declare interface ManagementLocksDeleteAtSubscriptionLevelOptionalParams extends coreClient.OperationOptions {
366
+ }
367
+
368
+ /** Optional parameters. */
369
+ export declare interface ManagementLocksDeleteByScopeOptionalParams extends coreClient.OperationOptions {
370
+ }
371
+
372
+ /** Optional parameters. */
373
+ export declare interface ManagementLocksGetAtResourceGroupLevelOptionalParams extends coreClient.OperationOptions {
374
+ }
375
+
376
+ /** Contains response data for the getAtResourceGroupLevel operation. */
377
+ export declare type ManagementLocksGetAtResourceGroupLevelResponse = ManagementLockObject;
378
+
379
+ /** Optional parameters. */
380
+ export declare interface ManagementLocksGetAtResourceLevelOptionalParams extends coreClient.OperationOptions {
381
+ }
382
+
383
+ /** Contains response data for the getAtResourceLevel operation. */
384
+ export declare type ManagementLocksGetAtResourceLevelResponse = ManagementLockObject;
385
+
386
+ /** Optional parameters. */
387
+ export declare interface ManagementLocksGetAtSubscriptionLevelOptionalParams extends coreClient.OperationOptions {
388
+ }
389
+
390
+ /** Contains response data for the getAtSubscriptionLevel operation. */
391
+ export declare type ManagementLocksGetAtSubscriptionLevelResponse = ManagementLockObject;
392
+
393
+ /** Optional parameters. */
394
+ export declare interface ManagementLocksGetByScopeOptionalParams extends coreClient.OperationOptions {
395
+ }
396
+
397
+ /** Contains response data for the getByScope operation. */
398
+ export declare type ManagementLocksGetByScopeResponse = ManagementLockObject;
399
+
400
+ /** Optional parameters. */
401
+ export declare interface ManagementLocksListAtResourceGroupLevelNextNextOptionalParams extends coreClient.OperationOptions {
402
+ /** The filter to apply on the operation. */
403
+ filter?: string;
404
+ }
405
+
406
+ /** Contains response data for the listAtResourceGroupLevelNextNext operation. */
407
+ export declare type ManagementLocksListAtResourceGroupLevelNextNextResponse = ManagementLockListResult;
408
+
409
+ /** Optional parameters. */
410
+ export declare interface ManagementLocksListAtResourceGroupLevelNextOptionalParams extends coreClient.OperationOptions {
411
+ /** The filter to apply on the operation. */
412
+ filter?: string;
413
+ }
414
+
415
+ /** Contains response data for the listAtResourceGroupLevelNext operation. */
416
+ export declare type ManagementLocksListAtResourceGroupLevelNextResponse = ManagementLockListResult;
417
+
418
+ /** Optional parameters. */
419
+ export declare interface ManagementLocksListAtResourceGroupLevelOptionalParams extends coreClient.OperationOptions {
420
+ /** The filter to apply on the operation. */
421
+ filter?: string;
422
+ }
423
+
424
+ /** Contains response data for the listAtResourceGroupLevel operation. */
425
+ export declare type ManagementLocksListAtResourceGroupLevelResponse = ManagementLockListResult;
426
+
427
+ /** Optional parameters. */
428
+ export declare interface ManagementLocksListAtResourceLevelNextNextOptionalParams extends coreClient.OperationOptions {
429
+ /** The filter to apply on the operation. */
430
+ filter?: string;
431
+ }
432
+
433
+ /** Contains response data for the listAtResourceLevelNextNext operation. */
434
+ export declare type ManagementLocksListAtResourceLevelNextNextResponse = ManagementLockListResult;
435
+
436
+ /** Optional parameters. */
437
+ export declare interface ManagementLocksListAtResourceLevelNextOptionalParams extends coreClient.OperationOptions {
438
+ /** The filter to apply on the operation. */
439
+ filter?: string;
440
+ }
441
+
442
+ /** Contains response data for the listAtResourceLevelNext operation. */
443
+ export declare type ManagementLocksListAtResourceLevelNextResponse = ManagementLockListResult;
444
+
445
+ /** Optional parameters. */
446
+ export declare interface ManagementLocksListAtResourceLevelOptionalParams extends coreClient.OperationOptions {
447
+ /** The filter to apply on the operation. */
448
+ filter?: string;
449
+ }
450
+
451
+ /** Contains response data for the listAtResourceLevel operation. */
452
+ export declare type ManagementLocksListAtResourceLevelResponse = ManagementLockListResult;
453
+
454
+ /** Optional parameters. */
455
+ export declare interface ManagementLocksListAtSubscriptionLevelNextNextOptionalParams extends coreClient.OperationOptions {
456
+ /** The filter to apply on the operation. */
457
+ filter?: string;
458
+ }
459
+
460
+ /** Contains response data for the listAtSubscriptionLevelNextNext operation. */
461
+ export declare type ManagementLocksListAtSubscriptionLevelNextNextResponse = ManagementLockListResult;
462
+
463
+ /** Optional parameters. */
464
+ export declare interface ManagementLocksListAtSubscriptionLevelNextOptionalParams extends coreClient.OperationOptions {
465
+ /** The filter to apply on the operation. */
466
+ filter?: string;
467
+ }
468
+
469
+ /** Contains response data for the listAtSubscriptionLevelNext operation. */
470
+ export declare type ManagementLocksListAtSubscriptionLevelNextResponse = ManagementLockListResult;
471
+
472
+ /** Optional parameters. */
473
+ export declare interface ManagementLocksListAtSubscriptionLevelOptionalParams extends coreClient.OperationOptions {
474
+ /** The filter to apply on the operation. */
475
+ filter?: string;
476
+ }
477
+
478
+ /** Contains response data for the listAtSubscriptionLevel operation. */
479
+ export declare type ManagementLocksListAtSubscriptionLevelResponse = ManagementLockListResult;
480
+
481
+ /** Optional parameters. */
482
+ export declare interface ManagementLocksListByScopeNextNextOptionalParams extends coreClient.OperationOptions {
483
+ /** The filter to apply on the operation. */
484
+ filter?: string;
485
+ }
486
+
487
+ /** Contains response data for the listByScopeNextNext operation. */
488
+ export declare type ManagementLocksListByScopeNextNextResponse = ManagementLockListResult;
489
+
490
+ /** Optional parameters. */
491
+ export declare interface ManagementLocksListByScopeNextOptionalParams extends coreClient.OperationOptions {
492
+ /** The filter to apply on the operation. */
493
+ filter?: string;
494
+ }
495
+
496
+ /** Contains response data for the listByScopeNext operation. */
497
+ export declare type ManagementLocksListByScopeNextResponse = ManagementLockListResult;
498
+
499
+ /** Optional parameters. */
500
+ export declare interface ManagementLocksListByScopeOptionalParams extends coreClient.OperationOptions {
501
+ /** The filter to apply on the operation. */
502
+ filter?: string;
503
+ }
504
+
505
+ /** Contains response data for the listByScope operation. */
506
+ export declare type ManagementLocksListByScopeResponse = ManagementLockListResult;
507
+
508
+ /** Microsoft.Authorization operation */
509
+ export declare interface Operation {
510
+ /** Operation name: {provider}/{resource}/{operation} */
511
+ name?: string;
512
+ /** The object that represents the operation. */
513
+ display?: OperationDisplay;
514
+ }
515
+
516
+ /** The object that represents the operation. */
517
+ export declare interface OperationDisplay {
518
+ /** Service provider: Microsoft.Authorization */
519
+ provider?: string;
520
+ /** Resource on which the operation is performed: Profile, endpoint, etc. */
521
+ resource?: string;
522
+ /** Operation type: Read, write, delete, etc. */
523
+ operation?: string;
524
+ }
525
+
526
+ /** Result of the request to list Microsoft.Authorization operations. It contains a list of operations and a URL link to get the next set of results. */
527
+ export declare interface OperationListResult {
528
+ /** List of Microsoft.Authorization operations. */
529
+ value?: Operation[];
530
+ /** URL to get the next set of operation list results if there are any. */
531
+ nextLink?: string;
532
+ }
533
+
534
+ export { }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AASA,cAAc,UAAU,CAAC;AACzB,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAC5E,cAAc,wBAAwB,CAAC"}
package/esm/index.js ADDED
@@ -0,0 +1,13 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
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
+ /// <reference lib="esnext.asynciterable" />
9
+ export * from "./models";
10
+ export { ManagementLockClient } from "./managementLockClient";
11
+ export { ManagementLockClientContext } from "./managementLockClientContext";
12
+ export * from "./operationsInterfaces";
13
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,4CAA4C;AAC5C,cAAc,UAAU,CAAC;AACzB,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAC5E,cAAc,wBAAwB,CAAC"}
@@ -1,25 +1,16 @@
1
- import * as msRest from "@azure/ms-rest-js";
2
- import { TokenCredential } from "@azure/core-auth";
3
- import * as Models from "./models";
4
- import * as Mappers from "./models/mappers";
5
- import * as operations from "./operations";
1
+ import * as coreAuth from "@azure/core-auth";
2
+ import { AuthorizationOperations, ManagementLocks } from "./operationsInterfaces";
6
3
  import { ManagementLockClientContext } from "./managementLockClientContext";
7
- declare class ManagementLockClient extends ManagementLockClientContext {
8
- authorizationOperations: operations.AuthorizationOperations;
9
- managementLocks: operations.ManagementLocks;
4
+ import { ManagementLockClientOptionalParams } from "./models";
5
+ export declare class ManagementLockClient extends ManagementLockClientContext {
10
6
  /**
11
7
  * Initializes a new instance of the ManagementLockClient class.
12
- * @param credentials Credentials needed for the client to connect to Azure. Credentials
13
- * implementing the TokenCredential interface from the @azure/identity package are recommended. For
14
- * more information about these credentials, see
15
- * {@link https://www.npmjs.com/package/@azure/identity}. Credentials implementing the
16
- * ServiceClientCredentials interface from the older packages @azure/ms-rest-nodeauth and
17
- * @azure/ms-rest-browserauth are also supported.
8
+ * @param credentials Subscription credentials which uniquely identify client subscription.
18
9
  * @param subscriptionId The ID of the target subscription.
19
- * @param [options] The parameter options
10
+ * @param options The parameter options
20
11
  */
21
- constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.ManagementLockClientOptions);
12
+ constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: ManagementLockClientOptionalParams);
13
+ authorizationOperations: AuthorizationOperations;
14
+ managementLocks: ManagementLocks;
22
15
  }
23
- export { ManagementLockClient, ManagementLockClientContext, Models as ManagementLockModels, Mappers as ManagementLockMappers };
24
- export * from "./operations";
25
16
  //# sourceMappingURL=managementLockClient.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"managementLockClient.d.ts","sourceRoot":"","sources":["../src/managementLockClient.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,MAAM,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,KAAK,MAAM,MAAM,UAAU,CAAC;AACnC,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;AAC5C,OAAO,KAAK,UAAU,MAAM,cAAc,CAAC;AAC3C,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAG5E,cAAM,oBAAqB,SAAQ,2BAA2B;IAE5D,uBAAuB,EAAE,UAAU,CAAC,uBAAuB,CAAC;IAC5D,eAAe,EAAE,UAAU,CAAC,eAAe,CAAC;IAE5C;;;;;;;;;;OAUG;gBACS,WAAW,EAAE,MAAM,CAAC,wBAAwB,GAAG,eAAe,EAAE,cAAc,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,CAAC,2BAA2B;CAKjJ;AAID,OAAO,EACL,oBAAoB,EACpB,2BAA2B,EAC3B,MAAM,IAAI,oBAAoB,EAC9B,OAAO,IAAI,qBAAqB,EACjC,CAAC;AACF,cAAc,cAAc,CAAC"}
1
+ {"version":3,"file":"managementLockClient.d.ts","sourceRoot":"","sources":["../src/managementLockClient.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAE7C,OAAO,EACL,uBAAuB,EACvB,eAAe,EAChB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAC5E,OAAO,EAAE,kCAAkC,EAAE,MAAM,UAAU,CAAC;AAE9D,qBAAa,oBAAqB,SAAQ,2BAA2B;IACnE;;;;;OAKG;gBAED,WAAW,EAAE,QAAQ,CAAC,eAAe,EACrC,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,kCAAkC;IAO9C,uBAAuB,EAAE,uBAAuB,CAAC;IACjD,eAAe,EAAE,eAAe,CAAC;CAClC"}
@@ -1,39 +1,23 @@
1
1
  /*
2
- * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * Licensed under the MIT License. See License.txt in the project root for
4
- * license information.
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 { __extends } from "tslib";
11
- import * as Models from "./models";
12
- import * as Mappers from "./models/mappers";
13
- import * as operations from "./operations";
8
+ import { AuthorizationOperationsImpl, ManagementLocksImpl } from "./operations";
14
9
  import { ManagementLockClientContext } from "./managementLockClientContext";
15
- var ManagementLockClient = /** @class */ (function (_super) {
16
- __extends(ManagementLockClient, _super);
10
+ export class ManagementLockClient extends ManagementLockClientContext {
17
11
  /**
18
12
  * Initializes a new instance of the ManagementLockClient class.
19
- * @param credentials Credentials needed for the client to connect to Azure. Credentials
20
- * implementing the TokenCredential interface from the @azure/identity package are recommended. For
21
- * more information about these credentials, see
22
- * {@link https://www.npmjs.com/package/@azure/identity}. Credentials implementing the
23
- * ServiceClientCredentials interface from the older packages @azure/ms-rest-nodeauth and
24
- * @azure/ms-rest-browserauth are also supported.
13
+ * @param credentials Subscription credentials which uniquely identify client subscription.
25
14
  * @param subscriptionId The ID of the target subscription.
26
- * @param [options] The parameter options
15
+ * @param options The parameter options
27
16
  */
28
- function ManagementLockClient(credentials, subscriptionId, options) {
29
- var _this = _super.call(this, credentials, subscriptionId, options) || this;
30
- _this.authorizationOperations = new operations.AuthorizationOperations(_this);
31
- _this.managementLocks = new operations.ManagementLocks(_this);
32
- return _this;
17
+ constructor(credentials, subscriptionId, options) {
18
+ super(credentials, subscriptionId, options);
19
+ this.authorizationOperations = new AuthorizationOperationsImpl(this);
20
+ this.managementLocks = new ManagementLocksImpl(this);
33
21
  }
34
- return ManagementLockClient;
35
- }(ManagementLockClientContext));
36
- // Operation Specifications
37
- export { ManagementLockClient, ManagementLockClientContext, Models as ManagementLockModels, Mappers as ManagementLockMappers };
38
- export * from "./operations";
22
+ }
39
23
  //# sourceMappingURL=managementLockClient.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"managementLockClient.js","sourceRoot":"","sources":["../src/managementLockClient.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;;AAIH,OAAO,KAAK,MAAM,MAAM,UAAU,CAAC;AACnC,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;AAC5C,OAAO,KAAK,UAAU,MAAM,cAAc,CAAC;AAC3C,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAG5E;IAAmC,wCAA2B;IAK5D;;;;;;;;;;OAUG;IACH,8BAAY,WAA8D,EAAE,cAAsB,EAAE,OAA4C;QAAhJ,YACE,kBAAM,WAAW,EAAE,cAAc,EAAE,OAAO,CAAC,SAG5C;QAFC,KAAI,CAAC,uBAAuB,GAAG,IAAI,UAAU,CAAC,uBAAuB,CAAC,KAAI,CAAC,CAAC;QAC5E,KAAI,CAAC,eAAe,GAAG,IAAI,UAAU,CAAC,eAAe,CAAC,KAAI,CAAC,CAAC;;IAC9D,CAAC;IACH,2BAAC;AAAD,CAAC,AArBD,CAAmC,2BAA2B,GAqB7D;AAED,2BAA2B;AAE3B,OAAO,EACL,oBAAoB,EACpB,2BAA2B,EAC3B,MAAM,IAAI,oBAAoB,EAC9B,OAAO,IAAI,qBAAqB,EACjC,CAAC;AACF,cAAc,cAAc,CAAC"}
1
+ {"version":3,"file":"managementLockClient.js","sourceRoot":"","sources":["../src/managementLockClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,2BAA2B,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAKhF,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAG5E,MAAM,OAAO,oBAAqB,SAAQ,2BAA2B;IACnE;;;;;OAKG;IACH,YACE,WAAqC,EACrC,cAAsB,EACtB,OAA4C;QAE5C,KAAK,CAAC,WAAW,EAAE,cAAc,EAAE,OAAO,CAAC,CAAC;QAC5C,IAAI,CAAC,uBAAuB,GAAG,IAAI,2BAA2B,CAAC,IAAI,CAAC,CAAC;QACrE,IAAI,CAAC,eAAe,GAAG,IAAI,mBAAmB,CAAC,IAAI,CAAC,CAAC;IACvD,CAAC;CAIF"}