@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
@@ -1,254 +1,187 @@
1
- import * as msRest from "@azure/ms-rest-js";
2
- import * as Models from "../models";
1
+ import "@azure/core-paging";
2
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
3
+ import { ManagementLocks } from "../operationsInterfaces";
3
4
  import { ManagementLockClientContext } from "../managementLockClientContext";
5
+ import { ManagementLockObject, ManagementLocksListAtResourceGroupLevelNextOptionalParams, ManagementLocksListAtResourceGroupLevelOptionalParams, ManagementLocksListAtResourceLevelNextOptionalParams, ManagementLocksListAtResourceLevelOptionalParams, ManagementLocksListAtSubscriptionLevelNextOptionalParams, ManagementLocksListAtSubscriptionLevelOptionalParams, ManagementLocksListByScopeNextOptionalParams, ManagementLocksListByScopeOptionalParams, ManagementLocksCreateOrUpdateAtResourceGroupLevelOptionalParams, ManagementLocksCreateOrUpdateAtResourceGroupLevelResponse, ManagementLocksDeleteAtResourceGroupLevelOptionalParams, ManagementLocksGetAtResourceGroupLevelOptionalParams, ManagementLocksGetAtResourceGroupLevelResponse, ManagementLocksCreateOrUpdateByScopeOptionalParams, ManagementLocksCreateOrUpdateByScopeResponse, ManagementLocksDeleteByScopeOptionalParams, ManagementLocksGetByScopeOptionalParams, ManagementLocksGetByScopeResponse, ManagementLocksCreateOrUpdateAtResourceLevelOptionalParams, ManagementLocksCreateOrUpdateAtResourceLevelResponse, ManagementLocksDeleteAtResourceLevelOptionalParams, ManagementLocksGetAtResourceLevelOptionalParams, ManagementLocksGetAtResourceLevelResponse, ManagementLocksCreateOrUpdateAtSubscriptionLevelOptionalParams, ManagementLocksCreateOrUpdateAtSubscriptionLevelResponse, ManagementLocksDeleteAtSubscriptionLevelOptionalParams, ManagementLocksGetAtSubscriptionLevelOptionalParams, ManagementLocksGetAtSubscriptionLevelResponse } from "../models";
4
6
  /** Class representing a ManagementLocks. */
5
- export declare class ManagementLocks {
7
+ export declare class ManagementLocksImpl implements ManagementLocks {
6
8
  private readonly client;
7
9
  /**
8
- * Create a ManagementLocks.
9
- * @param {ManagementLockClientContext} client Reference to the service client.
10
+ * Initialize a new instance of the class ManagementLocks class.
11
+ * @param client Reference to the service client
10
12
  */
11
13
  constructor(client: ManagementLockClientContext);
12
14
  /**
13
- * When you apply a lock at a parent scope, all child resources inherit the same lock. To create
14
- * management locks, you must have access to Microsoft.Authorization/* or
15
- * Microsoft.Authorization/locks/* actions. Of the built-in roles, only Owner and User Access
16
- * Administrator are granted those actions.
17
- * @summary Creates or updates a management lock at the resource group level.
18
- * @param resourceGroupName The name of the resource group to lock.
19
- * @param lockName The lock name. The lock name can be a maximum of 260 characters. It cannot
20
- * contain <, > %, &, :, \, ?, /, or any control characters.
21
- * @param parameters The management lock parameters.
22
- * @param [options] The optional parameters
23
- * @returns Promise<Models.ManagementLocksCreateOrUpdateAtResourceGroupLevelResponse>
15
+ * Gets all the management locks for a resource group.
16
+ * @param resourceGroupName The name of the resource group containing the locks to get.
17
+ * @param options The options parameters.
24
18
  */
25
- createOrUpdateAtResourceGroupLevel(resourceGroupName: string, lockName: string, parameters: Models.ManagementLockObject, options?: msRest.RequestOptionsBase): Promise<Models.ManagementLocksCreateOrUpdateAtResourceGroupLevelResponse>;
19
+ listAtResourceGroupLevel(resourceGroupName: string, options?: ManagementLocksListAtResourceGroupLevelOptionalParams): PagedAsyncIterableIterator<ManagementLockObject>;
20
+ private listAtResourceGroupLevelPagingPage;
21
+ private listAtResourceGroupLevelPagingAll;
26
22
  /**
27
- * @param resourceGroupName The name of the resource group to lock.
28
- * @param lockName The lock name. The lock name can be a maximum of 260 characters. It cannot
29
- * contain <, > %, &, :, \, ?, /, or any control characters.
30
- * @param parameters The management lock parameters.
31
- * @param callback The callback
23
+ * Gets all the management locks for a resource or any level below resource.
24
+ * @param resourceGroupName The name of the resource group containing the locked resource. The name is
25
+ * case insensitive.
26
+ * @param resourceProviderNamespace The namespace of the resource provider.
27
+ * @param parentResourcePath The parent resource identity.
28
+ * @param resourceType The resource type of the locked resource.
29
+ * @param resourceName The name of the locked resource.
30
+ * @param options The options parameters.
32
31
  */
33
- createOrUpdateAtResourceGroupLevel(resourceGroupName: string, lockName: string, parameters: Models.ManagementLockObject, callback: msRest.ServiceCallback<Models.ManagementLockObject>): void;
32
+ listAtResourceLevel(resourceGroupName: string, resourceProviderNamespace: string, parentResourcePath: string, resourceType: string, resourceName: string, options?: ManagementLocksListAtResourceLevelOptionalParams): PagedAsyncIterableIterator<ManagementLockObject>;
33
+ private listAtResourceLevelPagingPage;
34
+ private listAtResourceLevelPagingAll;
34
35
  /**
35
- * @param resourceGroupName The name of the resource group to lock.
36
- * @param lockName The lock name. The lock name can be a maximum of 260 characters. It cannot
37
- * contain <, > %, &, :, \, ?, /, or any control characters.
38
- * @param parameters The management lock parameters.
39
- * @param options The optional parameters
40
- * @param callback The callback
36
+ * Gets all the management locks for a subscription.
37
+ * @param options The options parameters.
41
38
  */
42
- createOrUpdateAtResourceGroupLevel(resourceGroupName: string, lockName: string, parameters: Models.ManagementLockObject, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.ManagementLockObject>): void;
39
+ listAtSubscriptionLevel(options?: ManagementLocksListAtSubscriptionLevelOptionalParams): PagedAsyncIterableIterator<ManagementLockObject>;
40
+ private listAtSubscriptionLevelPagingPage;
41
+ private listAtSubscriptionLevelPagingAll;
43
42
  /**
44
- * To delete management locks, you must have access to Microsoft.Authorization/* or
45
- * Microsoft.Authorization/locks/* actions. Of the built-in roles, only Owner and User Access
46
- * Administrator are granted those actions.
47
- * @summary Deletes a management lock at the resource group level.
48
- * @param resourceGroupName The name of the resource group containing the lock.
49
- * @param lockName The name of lock to delete.
50
- * @param [options] The optional parameters
51
- * @returns Promise<msRest.RestResponse>
43
+ * Gets all the management locks for a scope.
44
+ * @param scope The scope for the lock. When providing a scope for the assignment, use
45
+ * '/subscriptions/{subscriptionId}' for subscriptions,
46
+ * '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}' for resource groups, and
47
+ * '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePathIfPresent}/{resourceType}/{resourceName}'
48
+ * for resources.
49
+ * @param options The options parameters.
52
50
  */
53
- deleteAtResourceGroupLevel(resourceGroupName: string, lockName: string, options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse>;
51
+ listByScope(scope: string, options?: ManagementLocksListByScopeOptionalParams): PagedAsyncIterableIterator<ManagementLockObject>;
52
+ private listByScopePagingPage;
53
+ private listByScopePagingAll;
54
54
  /**
55
- * @param resourceGroupName The name of the resource group containing the lock.
56
- * @param lockName The name of lock to delete.
57
- * @param callback The callback
55
+ * ListAtResourceGroupLevelNext
56
+ * @param resourceGroupName The name of the resource group containing the locks to get.
57
+ * @param nextLink The nextLink from the previous successful call to the ListAtResourceGroupLevel
58
+ * method.
59
+ * @param options The options parameters.
58
60
  */
59
- deleteAtResourceGroupLevel(resourceGroupName: string, lockName: string, callback: msRest.ServiceCallback<void>): void;
61
+ listAtResourceGroupLevelNext(resourceGroupName: string, nextLink: string, options?: ManagementLocksListAtResourceGroupLevelNextOptionalParams): PagedAsyncIterableIterator<ManagementLockObject>;
62
+ private listAtResourceGroupLevelNextPagingPage;
63
+ private listAtResourceGroupLevelNextPagingAll;
60
64
  /**
61
- * @param resourceGroupName The name of the resource group containing the lock.
62
- * @param lockName The name of lock to delete.
63
- * @param options The optional parameters
64
- * @param callback The callback
65
+ * ListAtResourceLevelNext
66
+ * @param resourceGroupName The name of the resource group containing the locked resource. The name is
67
+ * case insensitive.
68
+ * @param resourceProviderNamespace The namespace of the resource provider.
69
+ * @param parentResourcePath The parent resource identity.
70
+ * @param resourceType The resource type of the locked resource.
71
+ * @param resourceName The name of the locked resource.
72
+ * @param nextLink The nextLink from the previous successful call to the ListAtResourceLevel method.
73
+ * @param options The options parameters.
65
74
  */
66
- deleteAtResourceGroupLevel(resourceGroupName: string, lockName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<void>): void;
75
+ listAtResourceLevelNext(resourceGroupName: string, resourceProviderNamespace: string, parentResourcePath: string, resourceType: string, resourceName: string, nextLink: string, options?: ManagementLocksListAtResourceLevelNextOptionalParams): PagedAsyncIterableIterator<ManagementLockObject>;
76
+ private listAtResourceLevelNextPagingPage;
77
+ private listAtResourceLevelNextPagingAll;
67
78
  /**
68
- * Gets a management lock at the resource group level.
69
- * @param resourceGroupName The name of the locked resource group.
70
- * @param lockName The name of the lock to get.
71
- * @param [options] The optional parameters
72
- * @returns Promise<Models.ManagementLocksGetAtResourceGroupLevelResponse>
79
+ * ListAtSubscriptionLevelNext
80
+ * @param nextLink The nextLink from the previous successful call to the ListAtSubscriptionLevel
81
+ * method.
82
+ * @param options The options parameters.
73
83
  */
74
- getAtResourceGroupLevel(resourceGroupName: string, lockName: string, options?: msRest.RequestOptionsBase): Promise<Models.ManagementLocksGetAtResourceGroupLevelResponse>;
84
+ listAtSubscriptionLevelNext(nextLink: string, options?: ManagementLocksListAtSubscriptionLevelNextOptionalParams): PagedAsyncIterableIterator<ManagementLockObject>;
85
+ private listAtSubscriptionLevelNextPagingPage;
86
+ private listAtSubscriptionLevelNextPagingAll;
75
87
  /**
76
- * @param resourceGroupName The name of the locked resource group.
77
- * @param lockName The name of the lock to get.
78
- * @param callback The callback
88
+ * ListByScopeNext
89
+ * @param scope The scope for the lock. When providing a scope for the assignment, use
90
+ * '/subscriptions/{subscriptionId}' for subscriptions,
91
+ * '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}' for resource groups, and
92
+ * '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePathIfPresent}/{resourceType}/{resourceName}'
93
+ * for resources.
94
+ * @param nextLink The nextLink from the previous successful call to the ListByScope method.
95
+ * @param options The options parameters.
79
96
  */
80
- getAtResourceGroupLevel(resourceGroupName: string, lockName: string, callback: msRest.ServiceCallback<Models.ManagementLockObject>): void;
97
+ listByScopeNext(scope: string, nextLink: string, options?: ManagementLocksListByScopeNextOptionalParams): PagedAsyncIterableIterator<ManagementLockObject>;
98
+ private listByScopeNextPagingPage;
99
+ private listByScopeNextPagingAll;
81
100
  /**
82
- * @param resourceGroupName The name of the locked resource group.
83
- * @param lockName The name of the lock to get.
84
- * @param options The optional parameters
85
- * @param callback The callback
101
+ * When you apply a lock at a parent scope, all child resources inherit the same lock. To create
102
+ * management locks, you must have access to Microsoft.Authorization/* or
103
+ * Microsoft.Authorization/locks/* actions. Of the built-in roles, only Owner and User Access
104
+ * Administrator are granted those actions.
105
+ * @param resourceGroupName The name of the resource group to lock.
106
+ * @param lockName The lock name. The lock name can be a maximum of 260 characters. It cannot contain
107
+ * <, > %, &, :, \, ?, /, or any control characters.
108
+ * @param parameters The management lock parameters.
109
+ * @param options The options parameters.
86
110
  */
87
- getAtResourceGroupLevel(resourceGroupName: string, lockName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.ManagementLockObject>): void;
111
+ createOrUpdateAtResourceGroupLevel(resourceGroupName: string, lockName: string, parameters: ManagementLockObject, options?: ManagementLocksCreateOrUpdateAtResourceGroupLevelOptionalParams): Promise<ManagementLocksCreateOrUpdateAtResourceGroupLevelResponse>;
88
112
  /**
89
- * Create or update a management lock by scope.
90
- * @param scope The scope for the lock. When providing a scope for the assignment, use
91
- * '/subscriptions/{subscriptionId}' for subscriptions,
92
- * '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}' for resource groups, and
93
- * '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePathIfPresent}/{resourceType}/{resourceName}'
94
- * for resources.
95
- * @param lockName The name of lock.
96
- * @param parameters Create or update management lock parameters.
97
- * @param [options] The optional parameters
98
- * @returns Promise<Models.ManagementLocksCreateOrUpdateByScopeResponse>
113
+ * To delete management locks, you must have access to Microsoft.Authorization/* or
114
+ * Microsoft.Authorization/locks/* actions. Of the built-in roles, only Owner and User Access
115
+ * Administrator are granted those actions.
116
+ * @param resourceGroupName The name of the resource group containing the lock.
117
+ * @param lockName The name of lock to delete.
118
+ * @param options The options parameters.
99
119
  */
100
- createOrUpdateByScope(scope: string, lockName: string, parameters: Models.ManagementLockObject, options?: msRest.RequestOptionsBase): Promise<Models.ManagementLocksCreateOrUpdateByScopeResponse>;
120
+ deleteAtResourceGroupLevel(resourceGroupName: string, lockName: string, options?: ManagementLocksDeleteAtResourceGroupLevelOptionalParams): Promise<void>;
101
121
  /**
102
- * @param scope The scope for the lock. When providing a scope for the assignment, use
103
- * '/subscriptions/{subscriptionId}' for subscriptions,
104
- * '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}' for resource groups, and
105
- * '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePathIfPresent}/{resourceType}/{resourceName}'
106
- * for resources.
107
- * @param lockName The name of lock.
108
- * @param parameters Create or update management lock parameters.
109
- * @param callback The callback
122
+ * Gets a management lock at the resource group level.
123
+ * @param resourceGroupName The name of the locked resource group.
124
+ * @param lockName The name of the lock to get.
125
+ * @param options The options parameters.
110
126
  */
111
- createOrUpdateByScope(scope: string, lockName: string, parameters: Models.ManagementLockObject, callback: msRest.ServiceCallback<Models.ManagementLockObject>): void;
127
+ getAtResourceGroupLevel(resourceGroupName: string, lockName: string, options?: ManagementLocksGetAtResourceGroupLevelOptionalParams): Promise<ManagementLocksGetAtResourceGroupLevelResponse>;
112
128
  /**
129
+ * Create or update a management lock by scope.
113
130
  * @param scope The scope for the lock. When providing a scope for the assignment, use
114
- * '/subscriptions/{subscriptionId}' for subscriptions,
115
- * '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}' for resource groups, and
116
- * '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePathIfPresent}/{resourceType}/{resourceName}'
117
- * for resources.
131
+ * '/subscriptions/{subscriptionId}' for subscriptions,
132
+ * '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}' for resource groups, and
133
+ * '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePathIfPresent}/{resourceType}/{resourceName}'
134
+ * for resources.
118
135
  * @param lockName The name of lock.
119
136
  * @param parameters Create or update management lock parameters.
120
- * @param options The optional parameters
121
- * @param callback The callback
137
+ * @param options The options parameters.
122
138
  */
123
- createOrUpdateByScope(scope: string, lockName: string, parameters: Models.ManagementLockObject, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.ManagementLockObject>): void;
139
+ createOrUpdateByScope(scope: string, lockName: string, parameters: ManagementLockObject, options?: ManagementLocksCreateOrUpdateByScopeOptionalParams): Promise<ManagementLocksCreateOrUpdateByScopeResponse>;
124
140
  /**
125
141
  * Delete a management lock by scope.
126
142
  * @param scope The scope for the lock.
127
143
  * @param lockName The name of lock.
128
- * @param [options] The optional parameters
129
- * @returns Promise<msRest.RestResponse>
144
+ * @param options The options parameters.
130
145
  */
131
- deleteByScope(scope: string, lockName: string, options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse>;
132
- /**
133
- * @param scope The scope for the lock.
134
- * @param lockName The name of lock.
135
- * @param callback The callback
136
- */
137
- deleteByScope(scope: string, lockName: string, callback: msRest.ServiceCallback<void>): void;
138
- /**
139
- * @param scope The scope for the lock.
140
- * @param lockName The name of lock.
141
- * @param options The optional parameters
142
- * @param callback The callback
143
- */
144
- deleteByScope(scope: string, lockName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<void>): void;
146
+ deleteByScope(scope: string, lockName: string, options?: ManagementLocksDeleteByScopeOptionalParams): Promise<void>;
145
147
  /**
146
148
  * Get a management lock by scope.
147
149
  * @param scope The scope for the lock.
148
150
  * @param lockName The name of lock.
149
- * @param [options] The optional parameters
150
- * @returns Promise<Models.ManagementLocksGetByScopeResponse>
151
- */
152
- getByScope(scope: string, lockName: string, options?: msRest.RequestOptionsBase): Promise<Models.ManagementLocksGetByScopeResponse>;
153
- /**
154
- * @param scope The scope for the lock.
155
- * @param lockName The name of lock.
156
- * @param callback The callback
151
+ * @param options The options parameters.
157
152
  */
158
- getByScope(scope: string, lockName: string, callback: msRest.ServiceCallback<Models.ManagementLockObject>): void;
159
- /**
160
- * @param scope The scope for the lock.
161
- * @param lockName The name of lock.
162
- * @param options The optional parameters
163
- * @param callback The callback
164
- */
165
- getByScope(scope: string, lockName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.ManagementLockObject>): void;
153
+ getByScope(scope: string, lockName: string, options?: ManagementLocksGetByScopeOptionalParams): Promise<ManagementLocksGetByScopeResponse>;
166
154
  /**
167
155
  * When you apply a lock at a parent scope, all child resources inherit the same lock. To create
168
156
  * management locks, you must have access to Microsoft.Authorization/* or
169
157
  * Microsoft.Authorization/locks/* actions. Of the built-in roles, only Owner and User Access
170
158
  * Administrator are granted those actions.
171
- * @summary Creates or updates a management lock at the resource level or any level below the
172
- * resource.
173
- * @param resourceGroupName The name of the resource group containing the resource to lock.
174
- * @param resourceProviderNamespace The resource provider namespace of the resource to lock.
175
- * @param parentResourcePath The parent resource identity.
176
- * @param resourceType The resource type of the resource to lock.
177
- * @param resourceName The name of the resource to lock.
178
- * @param lockName The name of lock. The lock name can be a maximum of 260 characters. It cannot
179
- * contain <, > %, &, :, \, ?, /, or any control characters.
180
- * @param parameters Parameters for creating or updating a management lock.
181
- * @param [options] The optional parameters
182
- * @returns Promise<Models.ManagementLocksCreateOrUpdateAtResourceLevelResponse>
183
- */
184
- createOrUpdateAtResourceLevel(resourceGroupName: string, resourceProviderNamespace: string, parentResourcePath: string, resourceType: string, resourceName: string, lockName: string, parameters: Models.ManagementLockObject, options?: msRest.RequestOptionsBase): Promise<Models.ManagementLocksCreateOrUpdateAtResourceLevelResponse>;
185
- /**
186
159
  * @param resourceGroupName The name of the resource group containing the resource to lock.
187
160
  * @param resourceProviderNamespace The resource provider namespace of the resource to lock.
188
161
  * @param parentResourcePath The parent resource identity.
189
162
  * @param resourceType The resource type of the resource to lock.
190
163
  * @param resourceName The name of the resource to lock.
191
164
  * @param lockName The name of lock. The lock name can be a maximum of 260 characters. It cannot
192
- * contain <, > %, &, :, \, ?, /, or any control characters.
165
+ * contain <, > %, &, :, \, ?, /, or any control characters.
193
166
  * @param parameters Parameters for creating or updating a management lock.
194
- * @param callback The callback
167
+ * @param options The options parameters.
195
168
  */
196
- createOrUpdateAtResourceLevel(resourceGroupName: string, resourceProviderNamespace: string, parentResourcePath: string, resourceType: string, resourceName: string, lockName: string, parameters: Models.ManagementLockObject, callback: msRest.ServiceCallback<Models.ManagementLockObject>): void;
197
- /**
198
- * @param resourceGroupName The name of the resource group containing the resource to lock.
199
- * @param resourceProviderNamespace The resource provider namespace of the resource to lock.
200
- * @param parentResourcePath The parent resource identity.
201
- * @param resourceType The resource type of the resource to lock.
202
- * @param resourceName The name of the resource to lock.
203
- * @param lockName The name of lock. The lock name can be a maximum of 260 characters. It cannot
204
- * contain <, > %, &, :, \, ?, /, or any control characters.
205
- * @param parameters Parameters for creating or updating a management lock.
206
- * @param options The optional parameters
207
- * @param callback The callback
208
- */
209
- createOrUpdateAtResourceLevel(resourceGroupName: string, resourceProviderNamespace: string, parentResourcePath: string, resourceType: string, resourceName: string, lockName: string, parameters: Models.ManagementLockObject, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.ManagementLockObject>): void;
169
+ createOrUpdateAtResourceLevel(resourceGroupName: string, resourceProviderNamespace: string, parentResourcePath: string, resourceType: string, resourceName: string, lockName: string, parameters: ManagementLockObject, options?: ManagementLocksCreateOrUpdateAtResourceLevelOptionalParams): Promise<ManagementLocksCreateOrUpdateAtResourceLevelResponse>;
210
170
  /**
211
171
  * To delete management locks, you must have access to Microsoft.Authorization/* or
212
172
  * Microsoft.Authorization/locks/* actions. Of the built-in roles, only Owner and User Access
213
173
  * Administrator are granted those actions.
214
- * @summary Deletes the management lock of a resource or any level below the resource.
215
174
  * @param resourceGroupName The name of the resource group containing the resource with the lock to
216
- * delete.
217
- * @param resourceProviderNamespace The resource provider namespace of the resource with the lock
218
- * to delete.
175
+ * delete.
176
+ * @param resourceProviderNamespace The resource provider namespace of the resource with the lock to
177
+ * delete.
219
178
  * @param parentResourcePath The parent resource identity.
220
179
  * @param resourceType The resource type of the resource with the lock to delete.
221
180
  * @param resourceName The name of the resource with the lock to delete.
222
181
  * @param lockName The name of the lock to delete.
223
- * @param [options] The optional parameters
224
- * @returns Promise<msRest.RestResponse>
182
+ * @param options The options parameters.
225
183
  */
226
- deleteAtResourceLevel(resourceGroupName: string, resourceProviderNamespace: string, parentResourcePath: string, resourceType: string, resourceName: string, lockName: string, options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse>;
227
- /**
228
- * @param resourceGroupName The name of the resource group containing the resource with the lock to
229
- * delete.
230
- * @param resourceProviderNamespace The resource provider namespace of the resource with the lock
231
- * to delete.
232
- * @param parentResourcePath The parent resource identity.
233
- * @param resourceType The resource type of the resource with the lock to delete.
234
- * @param resourceName The name of the resource with the lock to delete.
235
- * @param lockName The name of the lock to delete.
236
- * @param callback The callback
237
- */
238
- deleteAtResourceLevel(resourceGroupName: string, resourceProviderNamespace: string, parentResourcePath: string, resourceType: string, resourceName: string, lockName: string, callback: msRest.ServiceCallback<void>): void;
239
- /**
240
- * @param resourceGroupName The name of the resource group containing the resource with the lock to
241
- * delete.
242
- * @param resourceProviderNamespace The resource provider namespace of the resource with the lock
243
- * to delete.
244
- * @param parentResourcePath The parent resource identity.
245
- * @param resourceType The resource type of the resource with the lock to delete.
246
- * @param resourceName The name of the resource with the lock to delete.
247
- * @param lockName The name of the lock to delete.
248
- * @param options The optional parameters
249
- * @param callback The callback
250
- */
251
- deleteAtResourceLevel(resourceGroupName: string, resourceProviderNamespace: string, parentResourcePath: string, resourceType: string, resourceName: string, lockName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<void>): void;
184
+ deleteAtResourceLevel(resourceGroupName: string, resourceProviderNamespace: string, parentResourcePath: string, resourceType: string, resourceName: string, lockName: string, options?: ManagementLocksDeleteAtResourceLevelOptionalParams): Promise<void>;
252
185
  /**
253
186
  * Get the management lock of a resource or any level below resource.
254
187
  * @param resourceGroupName The name of the resource group.
@@ -257,265 +190,142 @@ export declare class ManagementLocks {
257
190
  * @param resourceType The type of the resource.
258
191
  * @param resourceName The name of the resource.
259
192
  * @param lockName The name of lock.
260
- * @param [options] The optional parameters
261
- * @returns Promise<Models.ManagementLocksGetAtResourceLevelResponse>
262
- */
263
- getAtResourceLevel(resourceGroupName: string, resourceProviderNamespace: string, parentResourcePath: string, resourceType: string, resourceName: string, lockName: string, options?: msRest.RequestOptionsBase): Promise<Models.ManagementLocksGetAtResourceLevelResponse>;
264
- /**
265
- * @param resourceGroupName The name of the resource group.
266
- * @param resourceProviderNamespace The namespace of the resource provider.
267
- * @param parentResourcePath An extra path parameter needed in some services, like SQL Databases.
268
- * @param resourceType The type of the resource.
269
- * @param resourceName The name of the resource.
270
- * @param lockName The name of lock.
271
- * @param callback The callback
272
- */
273
- getAtResourceLevel(resourceGroupName: string, resourceProviderNamespace: string, parentResourcePath: string, resourceType: string, resourceName: string, lockName: string, callback: msRest.ServiceCallback<Models.ManagementLockObject>): void;
274
- /**
275
- * @param resourceGroupName The name of the resource group.
276
- * @param resourceProviderNamespace The namespace of the resource provider.
277
- * @param parentResourcePath An extra path parameter needed in some services, like SQL Databases.
278
- * @param resourceType The type of the resource.
279
- * @param resourceName The name of the resource.
280
- * @param lockName The name of lock.
281
- * @param options The optional parameters
282
- * @param callback The callback
193
+ * @param options The options parameters.
283
194
  */
284
- getAtResourceLevel(resourceGroupName: string, resourceProviderNamespace: string, parentResourcePath: string, resourceType: string, resourceName: string, lockName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.ManagementLockObject>): void;
195
+ getAtResourceLevel(resourceGroupName: string, resourceProviderNamespace: string, parentResourcePath: string, resourceType: string, resourceName: string, lockName: string, options?: ManagementLocksGetAtResourceLevelOptionalParams): Promise<ManagementLocksGetAtResourceLevelResponse>;
285
196
  /**
286
197
  * When you apply a lock at a parent scope, all child resources inherit the same lock. To create
287
198
  * management locks, you must have access to Microsoft.Authorization/* or
288
199
  * Microsoft.Authorization/locks/* actions. Of the built-in roles, only Owner and User Access
289
200
  * Administrator are granted those actions.
290
- * @summary Creates or updates a management lock at the subscription level.
291
201
  * @param lockName The name of lock. The lock name can be a maximum of 260 characters. It cannot
292
- * contain <, > %, &, :, \, ?, /, or any control characters.
202
+ * contain <, > %, &, :, \, ?, /, or any control characters.
293
203
  * @param parameters The management lock parameters.
294
- * @param [options] The optional parameters
295
- * @returns Promise<Models.ManagementLocksCreateOrUpdateAtSubscriptionLevelResponse>
204
+ * @param options The options parameters.
296
205
  */
297
- createOrUpdateAtSubscriptionLevel(lockName: string, parameters: Models.ManagementLockObject, options?: msRest.RequestOptionsBase): Promise<Models.ManagementLocksCreateOrUpdateAtSubscriptionLevelResponse>;
298
- /**
299
- * @param lockName The name of lock. The lock name can be a maximum of 260 characters. It cannot
300
- * contain <, > %, &, :, \, ?, /, or any control characters.
301
- * @param parameters The management lock parameters.
302
- * @param callback The callback
303
- */
304
- createOrUpdateAtSubscriptionLevel(lockName: string, parameters: Models.ManagementLockObject, callback: msRest.ServiceCallback<Models.ManagementLockObject>): void;
305
- /**
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 optional parameters
310
- * @param callback The callback
311
- */
312
- createOrUpdateAtSubscriptionLevel(lockName: string, parameters: Models.ManagementLockObject, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.ManagementLockObject>): void;
206
+ createOrUpdateAtSubscriptionLevel(lockName: string, parameters: ManagementLockObject, options?: ManagementLocksCreateOrUpdateAtSubscriptionLevelOptionalParams): Promise<ManagementLocksCreateOrUpdateAtSubscriptionLevelResponse>;
313
207
  /**
314
208
  * To delete management locks, you must have access to Microsoft.Authorization/* or
315
209
  * Microsoft.Authorization/locks/* actions. Of the built-in roles, only Owner and User Access
316
210
  * Administrator are granted those actions.
317
- * @summary Deletes the management lock at the subscription level.
318
- * @param lockName The name of lock to delete.
319
- * @param [options] The optional parameters
320
- * @returns Promise<msRest.RestResponse>
321
- */
322
- deleteAtSubscriptionLevel(lockName: string, options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse>;
323
- /**
324
211
  * @param lockName The name of lock to delete.
325
- * @param callback The callback
212
+ * @param options The options parameters.
326
213
  */
327
- deleteAtSubscriptionLevel(lockName: string, callback: msRest.ServiceCallback<void>): void;
328
- /**
329
- * @param lockName The name of lock to delete.
330
- * @param options The optional parameters
331
- * @param callback The callback
332
- */
333
- deleteAtSubscriptionLevel(lockName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<void>): void;
214
+ deleteAtSubscriptionLevel(lockName: string, options?: ManagementLocksDeleteAtSubscriptionLevelOptionalParams): Promise<void>;
334
215
  /**
335
216
  * Gets a management lock at the subscription level.
336
217
  * @param lockName The name of the lock to get.
337
- * @param [options] The optional parameters
338
- * @returns Promise<Models.ManagementLocksGetAtSubscriptionLevelResponse>
339
- */
340
- getAtSubscriptionLevel(lockName: string, options?: msRest.RequestOptionsBase): Promise<Models.ManagementLocksGetAtSubscriptionLevelResponse>;
341
- /**
342
- * @param lockName The name of the lock to get.
343
- * @param callback The callback
218
+ * @param options The options parameters.
344
219
  */
345
- getAtSubscriptionLevel(lockName: string, callback: msRest.ServiceCallback<Models.ManagementLockObject>): void;
346
- /**
347
- * @param lockName The name of the lock to get.
348
- * @param options The optional parameters
349
- * @param callback The callback
350
- */
351
- getAtSubscriptionLevel(lockName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.ManagementLockObject>): void;
220
+ getAtSubscriptionLevel(lockName: string, options?: ManagementLocksGetAtSubscriptionLevelOptionalParams): Promise<ManagementLocksGetAtSubscriptionLevelResponse>;
352
221
  /**
353
222
  * Gets all the management locks for a resource group.
354
223
  * @param resourceGroupName The name of the resource group containing the locks to get.
355
- * @param [options] The optional parameters
356
- * @returns Promise<Models.ManagementLocksListAtResourceGroupLevelResponse>
357
- */
358
- listAtResourceGroupLevel(resourceGroupName: string, options?: Models.ManagementLocksListAtResourceGroupLevelOptionalParams): Promise<Models.ManagementLocksListAtResourceGroupLevelResponse>;
359
- /**
360
- * @param resourceGroupName The name of the resource group containing the locks to get.
361
- * @param callback The callback
224
+ * @param options The options parameters.
362
225
  */
363
- listAtResourceGroupLevel(resourceGroupName: string, callback: msRest.ServiceCallback<Models.ManagementLockListResult>): void;
364
- /**
365
- * @param resourceGroupName The name of the resource group containing the locks to get.
366
- * @param options The optional parameters
367
- * @param callback The callback
368
- */
369
- listAtResourceGroupLevel(resourceGroupName: string, options: Models.ManagementLocksListAtResourceGroupLevelOptionalParams, callback: msRest.ServiceCallback<Models.ManagementLockListResult>): void;
226
+ private _listAtResourceGroupLevel;
370
227
  /**
371
228
  * Gets all the management locks for a resource or any level below resource.
372
- * @param resourceGroupName The name of the resource group containing the locked resource. The name
373
- * is case insensitive.
229
+ * @param resourceGroupName The name of the resource group containing the locked resource. The name is
230
+ * case insensitive.
374
231
  * @param resourceProviderNamespace The namespace of the resource provider.
375
232
  * @param parentResourcePath The parent resource identity.
376
233
  * @param resourceType The resource type of the locked resource.
377
234
  * @param resourceName The name of the locked resource.
378
- * @param [options] The optional parameters
379
- * @returns Promise<Models.ManagementLocksListAtResourceLevelResponse>
235
+ * @param options The options parameters.
380
236
  */
381
- listAtResourceLevel(resourceGroupName: string, resourceProviderNamespace: string, parentResourcePath: string, resourceType: string, resourceName: string, options?: Models.ManagementLocksListAtResourceLevelOptionalParams): Promise<Models.ManagementLocksListAtResourceLevelResponse>;
382
- /**
383
- * @param resourceGroupName The name of the resource group containing the locked resource. The name
384
- * is case insensitive.
385
- * @param resourceProviderNamespace The namespace of the resource provider.
386
- * @param parentResourcePath The parent resource identity.
387
- * @param resourceType The resource type of the locked resource.
388
- * @param resourceName The name of the locked resource.
389
- * @param callback The callback
390
- */
391
- listAtResourceLevel(resourceGroupName: string, resourceProviderNamespace: string, parentResourcePath: string, resourceType: string, resourceName: string, callback: msRest.ServiceCallback<Models.ManagementLockListResult>): void;
392
- /**
393
- * @param resourceGroupName The name of the resource group containing the locked resource. The name
394
- * is case insensitive.
395
- * @param resourceProviderNamespace The namespace of the resource provider.
396
- * @param parentResourcePath The parent resource identity.
397
- * @param resourceType The resource type of the locked resource.
398
- * @param resourceName The name of the locked resource.
399
- * @param options The optional parameters
400
- * @param callback The callback
401
- */
402
- listAtResourceLevel(resourceGroupName: string, resourceProviderNamespace: string, parentResourcePath: string, resourceType: string, resourceName: string, options: Models.ManagementLocksListAtResourceLevelOptionalParams, callback: msRest.ServiceCallback<Models.ManagementLockListResult>): void;
237
+ private _listAtResourceLevel;
403
238
  /**
404
239
  * Gets all the management locks for a subscription.
405
- * @param [options] The optional parameters
406
- * @returns Promise<Models.ManagementLocksListAtSubscriptionLevelResponse>
407
- */
408
- listAtSubscriptionLevel(options?: Models.ManagementLocksListAtSubscriptionLevelOptionalParams): Promise<Models.ManagementLocksListAtSubscriptionLevelResponse>;
409
- /**
410
- * @param callback The callback
411
- */
412
- listAtSubscriptionLevel(callback: msRest.ServiceCallback<Models.ManagementLockListResult>): void;
413
- /**
414
- * @param options The optional parameters
415
- * @param callback The callback
240
+ * @param options The options parameters.
416
241
  */
417
- listAtSubscriptionLevel(options: Models.ManagementLocksListAtSubscriptionLevelOptionalParams, callback: msRest.ServiceCallback<Models.ManagementLockListResult>): void;
242
+ private _listAtSubscriptionLevel;
418
243
  /**
419
244
  * Gets all the management locks for a scope.
420
245
  * @param scope The scope for the lock. When providing a scope for the assignment, use
421
- * '/subscriptions/{subscriptionId}' for subscriptions,
422
- * '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}' for resource groups, and
423
- * '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePathIfPresent}/{resourceType}/{resourceName}'
424
- * for resources.
425
- * @param [options] The optional parameters
426
- * @returns Promise<Models.ManagementLocksListByScopeResponse>
427
- */
428
- listByScope(scope: string, options?: Models.ManagementLocksListByScopeOptionalParams): Promise<Models.ManagementLocksListByScopeResponse>;
429
- /**
430
- * @param scope The scope for the lock. When providing a scope for the assignment, use
431
- * '/subscriptions/{subscriptionId}' for subscriptions,
432
- * '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}' for resource groups, and
433
- * '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePathIfPresent}/{resourceType}/{resourceName}'
434
- * for resources.
435
- * @param callback The callback
436
- */
437
- listByScope(scope: string, callback: msRest.ServiceCallback<Models.ManagementLockListResult>): void;
438
- /**
439
- * @param scope The scope for the lock. When providing a scope for the assignment, use
440
- * '/subscriptions/{subscriptionId}' for subscriptions,
441
- * '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}' for resource groups, and
442
- * '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePathIfPresent}/{resourceType}/{resourceName}'
443
- * for resources.
444
- * @param options The optional parameters
445
- * @param callback The callback
246
+ * '/subscriptions/{subscriptionId}' for subscriptions,
247
+ * '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}' for resource groups, and
248
+ * '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePathIfPresent}/{resourceType}/{resourceName}'
249
+ * for resources.
250
+ * @param options The options parameters.
446
251
  */
447
- listByScope(scope: string, options: Models.ManagementLocksListByScopeOptionalParams, callback: msRest.ServiceCallback<Models.ManagementLockListResult>): void;
252
+ private _listByScope;
448
253
  /**
449
- * Gets all the management locks for a resource group.
450
- * @param nextPageLink The NextLink from the previous successful call to List operation.
451
- * @param [options] The optional parameters
452
- * @returns Promise<Models.ManagementLocksListAtResourceGroupLevelNextResponse>
453
- */
454
- listAtResourceGroupLevelNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.ManagementLocksListAtResourceGroupLevelNextResponse>;
455
- /**
456
- * @param nextPageLink The NextLink from the previous successful call to List operation.
457
- * @param callback The callback
458
- */
459
- listAtResourceGroupLevelNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.ManagementLockListResult>): void;
460
- /**
461
- * @param nextPageLink The NextLink from the previous successful call to List operation.
462
- * @param options The optional parameters
463
- * @param callback The callback
464
- */
465
- listAtResourceGroupLevelNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.ManagementLockListResult>): void;
466
- /**
467
- * Gets all the management locks for a resource or any level below resource.
468
- * @param nextPageLink The NextLink from the previous successful call to List operation.
469
- * @param [options] The optional parameters
470
- * @returns Promise<Models.ManagementLocksListAtResourceLevelNextResponse>
471
- */
472
- listAtResourceLevelNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.ManagementLocksListAtResourceLevelNextResponse>;
473
- /**
474
- * @param nextPageLink The NextLink from the previous successful call to List operation.
475
- * @param callback The callback
254
+ * ListAtResourceGroupLevelNext
255
+ * @param resourceGroupName The name of the resource group containing the locks to get.
256
+ * @param nextLink The nextLink from the previous successful call to the ListAtResourceGroupLevel
257
+ * method.
258
+ * @param options The options parameters.
476
259
  */
477
- listAtResourceLevelNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.ManagementLockListResult>): void;
260
+ private _listAtResourceGroupLevelNext;
478
261
  /**
479
- * @param nextPageLink The NextLink from the previous successful call to List operation.
480
- * @param options The optional parameters
481
- * @param callback The callback
262
+ * ListAtResourceLevelNext
263
+ * @param resourceGroupName The name of the resource group containing the locked resource. The name is
264
+ * case insensitive.
265
+ * @param resourceProviderNamespace The namespace of the resource provider.
266
+ * @param parentResourcePath The parent resource identity.
267
+ * @param resourceType The resource type of the locked resource.
268
+ * @param resourceName The name of the locked resource.
269
+ * @param nextLink The nextLink from the previous successful call to the ListAtResourceLevel method.
270
+ * @param options The options parameters.
482
271
  */
483
- listAtResourceLevelNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.ManagementLockListResult>): void;
272
+ private _listAtResourceLevelNext;
484
273
  /**
485
- * Gets all the management locks for a subscription.
486
- * @param nextPageLink The NextLink from the previous successful call to List operation.
487
- * @param [options] The optional parameters
488
- * @returns Promise<Models.ManagementLocksListAtSubscriptionLevelNextResponse>
274
+ * ListAtSubscriptionLevelNext
275
+ * @param nextLink The nextLink from the previous successful call to the ListAtSubscriptionLevel
276
+ * method.
277
+ * @param options The options parameters.
489
278
  */
490
- listAtSubscriptionLevelNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.ManagementLocksListAtSubscriptionLevelNextResponse>;
279
+ private _listAtSubscriptionLevelNext;
491
280
  /**
492
- * @param nextPageLink The NextLink from the previous successful call to List operation.
493
- * @param callback The callback
281
+ * ListByScopeNext
282
+ * @param scope The scope for the lock. When providing a scope for the assignment, use
283
+ * '/subscriptions/{subscriptionId}' for subscriptions,
284
+ * '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}' for resource groups, and
285
+ * '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePathIfPresent}/{resourceType}/{resourceName}'
286
+ * for resources.
287
+ * @param nextLink The nextLink from the previous successful call to the ListByScope method.
288
+ * @param options The options parameters.
494
289
  */
495
- listAtSubscriptionLevelNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.ManagementLockListResult>): void;
290
+ private _listByScopeNext;
496
291
  /**
497
- * @param nextPageLink The NextLink from the previous successful call to List operation.
498
- * @param options The optional parameters
499
- * @param callback The callback
292
+ * ListAtResourceGroupLevelNextNext
293
+ * @param resourceGroupName The name of the resource group containing the locks to get.
294
+ * @param nextLink The nextLink from the previous successful call to the ListAtResourceGroupLevelNext
295
+ * method.
296
+ * @param options The options parameters.
500
297
  */
501
- listAtSubscriptionLevelNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.ManagementLockListResult>): void;
298
+ private _listAtResourceGroupLevelNextNext;
502
299
  /**
503
- * Gets all the management locks for a scope.
504
- * @param nextPageLink The NextLink from the previous successful call to List operation.
505
- * @param [options] The optional parameters
506
- * @returns Promise<Models.ManagementLocksListByScopeNextResponse>
300
+ * ListAtResourceLevelNextNext
301
+ * @param resourceGroupName The name of the resource group containing the locked resource. The name is
302
+ * case insensitive.
303
+ * @param resourceProviderNamespace The namespace of the resource provider.
304
+ * @param parentResourcePath The parent resource identity.
305
+ * @param resourceType The resource type of the locked resource.
306
+ * @param resourceName The name of the locked resource.
307
+ * @param nextLink The nextLink from the previous successful call to the ListAtResourceLevelNext
308
+ * method.
309
+ * @param options The options parameters.
507
310
  */
508
- listByScopeNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.ManagementLocksListByScopeNextResponse>;
311
+ private _listAtResourceLevelNextNext;
509
312
  /**
510
- * @param nextPageLink The NextLink from the previous successful call to List operation.
511
- * @param callback The callback
313
+ * ListAtSubscriptionLevelNextNext
314
+ * @param nextLink The nextLink from the previous successful call to the ListAtSubscriptionLevelNext
315
+ * method.
316
+ * @param options The options parameters.
512
317
  */
513
- listByScopeNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.ManagementLockListResult>): void;
318
+ private _listAtSubscriptionLevelNextNext;
514
319
  /**
515
- * @param nextPageLink The NextLink from the previous successful call to List operation.
516
- * @param options The optional parameters
517
- * @param callback The callback
518
- */
519
- listByScopeNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.ManagementLockListResult>): void;
320
+ * ListByScopeNextNext
321
+ * @param scope The scope for the lock. When providing a scope for the assignment, use
322
+ * '/subscriptions/{subscriptionId}' for subscriptions,
323
+ * '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}' for resource groups, and
324
+ * '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePathIfPresent}/{resourceType}/{resourceName}'
325
+ * for resources.
326
+ * @param nextLink The nextLink from the previous successful call to the ListByScopeNext method.
327
+ * @param options The options parameters.
328
+ */
329
+ private _listByScopeNextNext;
520
330
  }
521
331
  //# sourceMappingURL=managementLocks.d.ts.map