@azure/arm-locks 2.1.1-alpha.20250718.1 → 2.1.1-alpha.20250721.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/managementLockClient.js +15 -5
- package/dist/browser/managementLockClient.js.map +1 -1
- package/dist/browser/operations/authorizationOperations.js +23 -40
- package/dist/browser/operations/authorizationOperations.js.map +1 -1
- package/dist/browser/operations/managementLocks.js +93 -161
- package/dist/browser/operations/managementLocks.js.map +1 -1
- package/dist/browser/pagingHelper.js +2 -4
- package/dist/browser/pagingHelper.js.map +1 -1
- package/dist/commonjs/managementLockClient.js +15 -5
- package/dist/commonjs/managementLockClient.js.map +1 -1
- package/dist/commonjs/operations/authorizationOperations.js +23 -39
- package/dist/commonjs/operations/authorizationOperations.js.map +1 -1
- package/dist/commonjs/operations/managementLocks.js +93 -160
- package/dist/commonjs/operations/managementLocks.js.map +1 -1
- package/dist/commonjs/pagingHelper.js +2 -4
- package/dist/commonjs/pagingHelper.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +11 -11
- package/dist/esm/managementLockClient.js +15 -5
- package/dist/esm/managementLockClient.js.map +1 -1
- package/dist/esm/operations/authorizationOperations.js +23 -40
- package/dist/esm/operations/authorizationOperations.js.map +1 -1
- package/dist/esm/operations/managementLocks.js +93 -161
- package/dist/esm/operations/managementLocks.js.map +1 -1
- package/dist/esm/pagingHelper.js +2 -4
- package/dist/esm/pagingHelper.js.map +1 -1
- package/dist/react-native/managementLockClient.js +15 -5
- package/dist/react-native/managementLockClient.js.map +1 -1
- package/dist/react-native/operations/authorizationOperations.js +23 -40
- package/dist/react-native/operations/authorizationOperations.js.map +1 -1
- package/dist/react-native/operations/managementLocks.js +93 -161
- package/dist/react-native/operations/managementLocks.js.map +1 -1
- package/dist/react-native/pagingHelper.js +2 -4
- package/dist/react-native/pagingHelper.js.map +1 -1
- package/package.json +2 -2
- package/review/arm-locks-node.api.md +305 -305
|
@@ -14,18 +14,16 @@ const pageMap = new WeakMap();
|
|
|
14
14
|
* @returns The continuation token that can be passed into byPage().
|
|
15
15
|
*/
|
|
16
16
|
export function getContinuationToken(page) {
|
|
17
|
-
var _a;
|
|
18
17
|
if (typeof page !== "object" || page === null) {
|
|
19
18
|
return undefined;
|
|
20
19
|
}
|
|
21
|
-
return
|
|
20
|
+
return pageMap.get(page)?.continuationToken;
|
|
22
21
|
}
|
|
23
22
|
export function setContinuationToken(page, continuationToken) {
|
|
24
|
-
var _a;
|
|
25
23
|
if (typeof page !== "object" || page === null || !continuationToken) {
|
|
26
24
|
return;
|
|
27
25
|
}
|
|
28
|
-
const pageInfo =
|
|
26
|
+
const pageInfo = pageMap.get(page) ?? {};
|
|
29
27
|
pageInfo.continuationToken = continuationToken;
|
|
30
28
|
pageMap.set(page, pageInfo);
|
|
31
29
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pagingHelper.js","sourceRoot":"","sources":["../../src/pagingHelper.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAMH,MAAM,OAAO,GAAG,IAAI,OAAO,EAAoB,CAAC;AAEhD;;;;;;GAMG;AACH,MAAM,UAAU,oBAAoB,CAAC,IAAa
|
|
1
|
+
{"version":3,"file":"pagingHelper.js","sourceRoot":"","sources":["../../src/pagingHelper.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAMH,MAAM,OAAO,GAAG,IAAI,OAAO,EAAoB,CAAC;AAEhD;;;;;;GAMG;AACH,MAAM,UAAU,oBAAoB,CAAC,IAAa;IAChD,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,EAAE,CAAC;QAC9C,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,OAAO,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,iBAAiB,CAAC;AAC9C,CAAC;AAED,MAAM,UAAU,oBAAoB,CAClC,IAAa,EACb,iBAAqC;IAErC,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,IAAI,CAAC,iBAAiB,EAAE,CAAC;QACpE,OAAO;IACT,CAAC;IACD,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;IACzC,QAAQ,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;IAC/C,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;AAC9B,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nexport interface PageInfo {\n continuationToken?: string;\n}\n\nconst pageMap = new WeakMap<object, PageInfo>();\n\n/**\n * Given a result page from a pageable operation, returns a\n * continuation token that can be used to begin paging from\n * that point later.\n * @param page A result object from calling .byPage() on a paged operation.\n * @returns The continuation token that can be passed into byPage().\n */\nexport function getContinuationToken(page: unknown): string | undefined {\n if (typeof page !== \"object\" || page === null) {\n return undefined;\n }\n return pageMap.get(page)?.continuationToken;\n}\n\nexport function setContinuationToken(\n page: unknown,\n continuationToken: string | undefined\n): void {\n if (typeof page !== \"object\" || page === null || !continuationToken) {\n return;\n }\n const pageInfo = pageMap.get(page) ?? {};\n pageInfo.continuationToken = continuationToken;\n pageMap.set(page, pageInfo);\n}\n"]}
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"sdk-type": "mgmt",
|
|
4
4
|
"author": "Microsoft Corporation",
|
|
5
5
|
"description": "A generated SDK for ManagementLockClient.",
|
|
6
|
-
"version": "2.1.1-alpha.
|
|
6
|
+
"version": "2.1.1-alpha.20250721.1",
|
|
7
7
|
"engines": {
|
|
8
8
|
"node": ">=20.0.0"
|
|
9
9
|
},
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
},
|
|
90
90
|
"type": "module",
|
|
91
91
|
"tshy": {
|
|
92
|
-
"project": "
|
|
92
|
+
"project": "../../../tsconfig.src.build.json",
|
|
93
93
|
"exports": {
|
|
94
94
|
"./package.json": "./package.json",
|
|
95
95
|
".": "./src/index.ts"
|
|
@@ -1,305 +1,305 @@
|
|
|
1
|
-
## API Report File for "@azure/arm-locks"
|
|
2
|
-
|
|
3
|
-
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
|
|
4
|
-
|
|
5
|
-
```ts
|
|
6
|
-
|
|
7
|
-
import * as coreAuth from '@azure/core-auth';
|
|
8
|
-
import * as coreClient from '@azure/core-client';
|
|
9
|
-
import { PagedAsyncIterableIterator } from '@azure/core-paging';
|
|
10
|
-
|
|
11
|
-
// @public
|
|
12
|
-
export interface AuthorizationOperations {
|
|
13
|
-
list(options?: AuthorizationOperationsListOptionalParams): PagedAsyncIterableIterator<Operation>;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
// @public
|
|
17
|
-
export interface AuthorizationOperationsListNextOptionalParams extends coreClient.OperationOptions {
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
// @public
|
|
21
|
-
export type AuthorizationOperationsListNextResponse = OperationListResult;
|
|
22
|
-
|
|
23
|
-
// @public
|
|
24
|
-
export interface AuthorizationOperationsListOptionalParams extends coreClient.OperationOptions {
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
// @public
|
|
28
|
-
export type AuthorizationOperationsListResponse = OperationListResult;
|
|
29
|
-
|
|
30
|
-
// @public
|
|
31
|
-
export type CreatedByType = string;
|
|
32
|
-
|
|
33
|
-
// @public
|
|
34
|
-
export interface ErrorAdditionalInfo {
|
|
35
|
-
readonly info?: Record<string, unknown>;
|
|
36
|
-
readonly type?: string;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
// @public
|
|
40
|
-
export interface ErrorDetail {
|
|
41
|
-
readonly additionalInfo?: ErrorAdditionalInfo[];
|
|
42
|
-
readonly code?: string;
|
|
43
|
-
readonly details?: ErrorDetail[];
|
|
44
|
-
readonly message?: string;
|
|
45
|
-
readonly target?: string;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
// @public
|
|
49
|
-
export interface ErrorResponse {
|
|
50
|
-
error?: ErrorDetail;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
// @public
|
|
54
|
-
export function getContinuationToken(page: unknown): string | undefined;
|
|
55
|
-
|
|
56
|
-
// @public
|
|
57
|
-
export enum KnownCreatedByType {
|
|
58
|
-
Application = "Application",
|
|
59
|
-
Key = "Key",
|
|
60
|
-
ManagedIdentity = "ManagedIdentity",
|
|
61
|
-
User = "User"
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
// @public
|
|
65
|
-
export enum KnownLockLevel {
|
|
66
|
-
CanNotDelete = "CanNotDelete",
|
|
67
|
-
NotSpecified = "NotSpecified",
|
|
68
|
-
ReadOnly = "ReadOnly"
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
// @public
|
|
72
|
-
export type LockLevel = string;
|
|
73
|
-
|
|
74
|
-
// @public (undocumented)
|
|
75
|
-
export class ManagementLockClient extends coreClient.ServiceClient {
|
|
76
|
-
// (undocumented)
|
|
77
|
-
$host: string;
|
|
78
|
-
constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: ManagementLockClientOptionalParams);
|
|
79
|
-
// (undocumented)
|
|
80
|
-
apiVersion: string;
|
|
81
|
-
// (undocumented)
|
|
82
|
-
authorizationOperations: AuthorizationOperations;
|
|
83
|
-
// (undocumented)
|
|
84
|
-
managementLocks: ManagementLocks;
|
|
85
|
-
// (undocumented)
|
|
86
|
-
subscriptionId: string;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
// @public
|
|
90
|
-
export interface ManagementLockClientOptionalParams extends coreClient.ServiceClientOptions {
|
|
91
|
-
$host?: string;
|
|
92
|
-
apiVersion?: string;
|
|
93
|
-
endpoint?: string;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
// @public
|
|
97
|
-
export interface ManagementLockListResult {
|
|
98
|
-
nextLink?: string;
|
|
99
|
-
value?: ManagementLockObject[];
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
// @public
|
|
103
|
-
export interface ManagementLockObject {
|
|
104
|
-
readonly id?: string;
|
|
105
|
-
level: LockLevel;
|
|
106
|
-
readonly name?: string;
|
|
107
|
-
notes?: string;
|
|
108
|
-
owners?: ManagementLockOwner[];
|
|
109
|
-
readonly systemData?: SystemData;
|
|
110
|
-
readonly type?: string;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
// @public
|
|
114
|
-
export interface ManagementLockOwner {
|
|
115
|
-
applicationId?: string;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
// @public
|
|
119
|
-
export interface ManagementLocks {
|
|
120
|
-
createOrUpdateAtResourceGroupLevel(resourceGroupName: string, lockName: string, parameters: ManagementLockObject, options?: ManagementLocksCreateOrUpdateAtResourceGroupLevelOptionalParams): Promise<ManagementLocksCreateOrUpdateAtResourceGroupLevelResponse>;
|
|
121
|
-
createOrUpdateAtResourceLevel(resourceGroupName: string, resourceProviderNamespace: string, parentResourcePath: string, resourceType: string, resourceName: string, lockName: string, parameters: ManagementLockObject, options?: ManagementLocksCreateOrUpdateAtResourceLevelOptionalParams): Promise<ManagementLocksCreateOrUpdateAtResourceLevelResponse>;
|
|
122
|
-
createOrUpdateAtSubscriptionLevel(lockName: string, parameters: ManagementLockObject, options?: ManagementLocksCreateOrUpdateAtSubscriptionLevelOptionalParams): Promise<ManagementLocksCreateOrUpdateAtSubscriptionLevelResponse>;
|
|
123
|
-
createOrUpdateByScope(scope: string, lockName: string, parameters: ManagementLockObject, options?: ManagementLocksCreateOrUpdateByScopeOptionalParams): Promise<ManagementLocksCreateOrUpdateByScopeResponse>;
|
|
124
|
-
deleteAtResourceGroupLevel(resourceGroupName: string, lockName: string, options?: ManagementLocksDeleteAtResourceGroupLevelOptionalParams): Promise<void>;
|
|
125
|
-
deleteAtResourceLevel(resourceGroupName: string, resourceProviderNamespace: string, parentResourcePath: string, resourceType: string, resourceName: string, lockName: string, options?: ManagementLocksDeleteAtResourceLevelOptionalParams): Promise<void>;
|
|
126
|
-
deleteAtSubscriptionLevel(lockName: string, options?: ManagementLocksDeleteAtSubscriptionLevelOptionalParams): Promise<void>;
|
|
127
|
-
deleteByScope(scope: string, lockName: string, options?: ManagementLocksDeleteByScopeOptionalParams): Promise<void>;
|
|
128
|
-
getAtResourceGroupLevel(resourceGroupName: string, lockName: string, options?: ManagementLocksGetAtResourceGroupLevelOptionalParams): Promise<ManagementLocksGetAtResourceGroupLevelResponse>;
|
|
129
|
-
getAtResourceLevel(resourceGroupName: string, resourceProviderNamespace: string, parentResourcePath: string, resourceType: string, resourceName: string, lockName: string, options?: ManagementLocksGetAtResourceLevelOptionalParams): Promise<ManagementLocksGetAtResourceLevelResponse>;
|
|
130
|
-
getAtSubscriptionLevel(lockName: string, options?: ManagementLocksGetAtSubscriptionLevelOptionalParams): Promise<ManagementLocksGetAtSubscriptionLevelResponse>;
|
|
131
|
-
getByScope(scope: string, lockName: string, options?: ManagementLocksGetByScopeOptionalParams): Promise<ManagementLocksGetByScopeResponse>;
|
|
132
|
-
listAtResourceGroupLevel(resourceGroupName: string, options?: ManagementLocksListAtResourceGroupLevelOptionalParams): PagedAsyncIterableIterator<ManagementLockObject>;
|
|
133
|
-
listAtResourceLevel(resourceGroupName: string, resourceProviderNamespace: string, parentResourcePath: string, resourceType: string, resourceName: string, options?: ManagementLocksListAtResourceLevelOptionalParams): PagedAsyncIterableIterator<ManagementLockObject>;
|
|
134
|
-
listAtSubscriptionLevel(options?: ManagementLocksListAtSubscriptionLevelOptionalParams): PagedAsyncIterableIterator<ManagementLockObject>;
|
|
135
|
-
listByScope(scope: string, options?: ManagementLocksListByScopeOptionalParams): PagedAsyncIterableIterator<ManagementLockObject>;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
// @public
|
|
139
|
-
export interface ManagementLocksCreateOrUpdateAtResourceGroupLevelOptionalParams extends coreClient.OperationOptions {
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
// @public
|
|
143
|
-
export type ManagementLocksCreateOrUpdateAtResourceGroupLevelResponse = ManagementLockObject;
|
|
144
|
-
|
|
145
|
-
// @public
|
|
146
|
-
export interface ManagementLocksCreateOrUpdateAtResourceLevelOptionalParams extends coreClient.OperationOptions {
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
// @public
|
|
150
|
-
export type ManagementLocksCreateOrUpdateAtResourceLevelResponse = ManagementLockObject;
|
|
151
|
-
|
|
152
|
-
// @public
|
|
153
|
-
export interface ManagementLocksCreateOrUpdateAtSubscriptionLevelOptionalParams extends coreClient.OperationOptions {
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
// @public
|
|
157
|
-
export type ManagementLocksCreateOrUpdateAtSubscriptionLevelResponse = ManagementLockObject;
|
|
158
|
-
|
|
159
|
-
// @public
|
|
160
|
-
export interface ManagementLocksCreateOrUpdateByScopeOptionalParams extends coreClient.OperationOptions {
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
// @public
|
|
164
|
-
export type ManagementLocksCreateOrUpdateByScopeResponse = ManagementLockObject;
|
|
165
|
-
|
|
166
|
-
// @public
|
|
167
|
-
export interface ManagementLocksDeleteAtResourceGroupLevelOptionalParams extends coreClient.OperationOptions {
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
// @public
|
|
171
|
-
export interface ManagementLocksDeleteAtResourceLevelOptionalParams extends coreClient.OperationOptions {
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
// @public
|
|
175
|
-
export interface ManagementLocksDeleteAtSubscriptionLevelOptionalParams extends coreClient.OperationOptions {
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
// @public
|
|
179
|
-
export interface ManagementLocksDeleteByScopeOptionalParams extends coreClient.OperationOptions {
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
// @public
|
|
183
|
-
export interface ManagementLocksGetAtResourceGroupLevelOptionalParams extends coreClient.OperationOptions {
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
// @public
|
|
187
|
-
export type ManagementLocksGetAtResourceGroupLevelResponse = ManagementLockObject;
|
|
188
|
-
|
|
189
|
-
// @public
|
|
190
|
-
export interface ManagementLocksGetAtResourceLevelOptionalParams extends coreClient.OperationOptions {
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
// @public
|
|
194
|
-
export type ManagementLocksGetAtResourceLevelResponse = ManagementLockObject;
|
|
195
|
-
|
|
196
|
-
// @public
|
|
197
|
-
export interface ManagementLocksGetAtSubscriptionLevelOptionalParams extends coreClient.OperationOptions {
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
// @public
|
|
201
|
-
export type ManagementLocksGetAtSubscriptionLevelResponse = ManagementLockObject;
|
|
202
|
-
|
|
203
|
-
// @public
|
|
204
|
-
export interface ManagementLocksGetByScopeOptionalParams extends coreClient.OperationOptions {
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
// @public
|
|
208
|
-
export type ManagementLocksGetByScopeResponse = ManagementLockObject;
|
|
209
|
-
|
|
210
|
-
// @public
|
|
211
|
-
export interface ManagementLocksListAtResourceGroupLevelNextOptionalParams extends coreClient.OperationOptions {
|
|
212
|
-
filter?: string;
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
// @public
|
|
216
|
-
export type ManagementLocksListAtResourceGroupLevelNextResponse = ManagementLockListResult;
|
|
217
|
-
|
|
218
|
-
// @public
|
|
219
|
-
export interface ManagementLocksListAtResourceGroupLevelOptionalParams extends coreClient.OperationOptions {
|
|
220
|
-
filter?: string;
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
// @public
|
|
224
|
-
export type ManagementLocksListAtResourceGroupLevelResponse = ManagementLockListResult;
|
|
225
|
-
|
|
226
|
-
// @public
|
|
227
|
-
export interface ManagementLocksListAtResourceLevelNextOptionalParams extends coreClient.OperationOptions {
|
|
228
|
-
filter?: string;
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
// @public
|
|
232
|
-
export type ManagementLocksListAtResourceLevelNextResponse = ManagementLockListResult;
|
|
233
|
-
|
|
234
|
-
// @public
|
|
235
|
-
export interface ManagementLocksListAtResourceLevelOptionalParams extends coreClient.OperationOptions {
|
|
236
|
-
filter?: string;
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
// @public
|
|
240
|
-
export type ManagementLocksListAtResourceLevelResponse = ManagementLockListResult;
|
|
241
|
-
|
|
242
|
-
// @public
|
|
243
|
-
export interface ManagementLocksListAtSubscriptionLevelNextOptionalParams extends coreClient.OperationOptions {
|
|
244
|
-
filter?: string;
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
// @public
|
|
248
|
-
export type ManagementLocksListAtSubscriptionLevelNextResponse = ManagementLockListResult;
|
|
249
|
-
|
|
250
|
-
// @public
|
|
251
|
-
export interface ManagementLocksListAtSubscriptionLevelOptionalParams extends coreClient.OperationOptions {
|
|
252
|
-
filter?: string;
|
|
253
|
-
}
|
|
254
|
-
|
|
255
|
-
// @public
|
|
256
|
-
export type ManagementLocksListAtSubscriptionLevelResponse = ManagementLockListResult;
|
|
257
|
-
|
|
258
|
-
// @public
|
|
259
|
-
export interface ManagementLocksListByScopeNextOptionalParams extends coreClient.OperationOptions {
|
|
260
|
-
filter?: string;
|
|
261
|
-
}
|
|
262
|
-
|
|
263
|
-
// @public
|
|
264
|
-
export type ManagementLocksListByScopeNextResponse = ManagementLockListResult;
|
|
265
|
-
|
|
266
|
-
// @public
|
|
267
|
-
export interface ManagementLocksListByScopeOptionalParams extends coreClient.OperationOptions {
|
|
268
|
-
filter?: string;
|
|
269
|
-
}
|
|
270
|
-
|
|
271
|
-
// @public
|
|
272
|
-
export type ManagementLocksListByScopeResponse = ManagementLockListResult;
|
|
273
|
-
|
|
274
|
-
// @public
|
|
275
|
-
export interface Operation {
|
|
276
|
-
display?: OperationDisplay;
|
|
277
|
-
name?: string;
|
|
278
|
-
}
|
|
279
|
-
|
|
280
|
-
// @public
|
|
281
|
-
export interface OperationDisplay {
|
|
282
|
-
operation?: string;
|
|
283
|
-
provider?: string;
|
|
284
|
-
resource?: string;
|
|
285
|
-
}
|
|
286
|
-
|
|
287
|
-
// @public
|
|
288
|
-
export interface OperationListResult {
|
|
289
|
-
nextLink?: string;
|
|
290
|
-
value?: Operation[];
|
|
291
|
-
}
|
|
292
|
-
|
|
293
|
-
// @public
|
|
294
|
-
export interface SystemData {
|
|
295
|
-
createdAt?: Date;
|
|
296
|
-
createdBy?: string;
|
|
297
|
-
createdByType?: CreatedByType;
|
|
298
|
-
lastModifiedAt?: Date;
|
|
299
|
-
lastModifiedBy?: string;
|
|
300
|
-
lastModifiedByType?: CreatedByType;
|
|
301
|
-
}
|
|
302
|
-
|
|
303
|
-
// (No @packageDocumentation comment for this package)
|
|
304
|
-
|
|
305
|
-
```
|
|
1
|
+
## API Report File for "@azure/arm-locks"
|
|
2
|
+
|
|
3
|
+
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
|
|
4
|
+
|
|
5
|
+
```ts
|
|
6
|
+
|
|
7
|
+
import * as coreAuth from '@azure/core-auth';
|
|
8
|
+
import * as coreClient from '@azure/core-client';
|
|
9
|
+
import { PagedAsyncIterableIterator } from '@azure/core-paging';
|
|
10
|
+
|
|
11
|
+
// @public
|
|
12
|
+
export interface AuthorizationOperations {
|
|
13
|
+
list(options?: AuthorizationOperationsListOptionalParams): PagedAsyncIterableIterator<Operation>;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
// @public
|
|
17
|
+
export interface AuthorizationOperationsListNextOptionalParams extends coreClient.OperationOptions {
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
// @public
|
|
21
|
+
export type AuthorizationOperationsListNextResponse = OperationListResult;
|
|
22
|
+
|
|
23
|
+
// @public
|
|
24
|
+
export interface AuthorizationOperationsListOptionalParams extends coreClient.OperationOptions {
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
// @public
|
|
28
|
+
export type AuthorizationOperationsListResponse = OperationListResult;
|
|
29
|
+
|
|
30
|
+
// @public
|
|
31
|
+
export type CreatedByType = string;
|
|
32
|
+
|
|
33
|
+
// @public
|
|
34
|
+
export interface ErrorAdditionalInfo {
|
|
35
|
+
readonly info?: Record<string, unknown>;
|
|
36
|
+
readonly type?: string;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
// @public
|
|
40
|
+
export interface ErrorDetail {
|
|
41
|
+
readonly additionalInfo?: ErrorAdditionalInfo[];
|
|
42
|
+
readonly code?: string;
|
|
43
|
+
readonly details?: ErrorDetail[];
|
|
44
|
+
readonly message?: string;
|
|
45
|
+
readonly target?: string;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
// @public
|
|
49
|
+
export interface ErrorResponse {
|
|
50
|
+
error?: ErrorDetail;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
// @public
|
|
54
|
+
export function getContinuationToken(page: unknown): string | undefined;
|
|
55
|
+
|
|
56
|
+
// @public
|
|
57
|
+
export enum KnownCreatedByType {
|
|
58
|
+
Application = "Application",
|
|
59
|
+
Key = "Key",
|
|
60
|
+
ManagedIdentity = "ManagedIdentity",
|
|
61
|
+
User = "User"
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
// @public
|
|
65
|
+
export enum KnownLockLevel {
|
|
66
|
+
CanNotDelete = "CanNotDelete",
|
|
67
|
+
NotSpecified = "NotSpecified",
|
|
68
|
+
ReadOnly = "ReadOnly"
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
// @public
|
|
72
|
+
export type LockLevel = string;
|
|
73
|
+
|
|
74
|
+
// @public (undocumented)
|
|
75
|
+
export class ManagementLockClient extends coreClient.ServiceClient {
|
|
76
|
+
// (undocumented)
|
|
77
|
+
$host: string;
|
|
78
|
+
constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: ManagementLockClientOptionalParams);
|
|
79
|
+
// (undocumented)
|
|
80
|
+
apiVersion: string;
|
|
81
|
+
// (undocumented)
|
|
82
|
+
authorizationOperations: AuthorizationOperations;
|
|
83
|
+
// (undocumented)
|
|
84
|
+
managementLocks: ManagementLocks;
|
|
85
|
+
// (undocumented)
|
|
86
|
+
subscriptionId: string;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
// @public
|
|
90
|
+
export interface ManagementLockClientOptionalParams extends coreClient.ServiceClientOptions {
|
|
91
|
+
$host?: string;
|
|
92
|
+
apiVersion?: string;
|
|
93
|
+
endpoint?: string;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
// @public
|
|
97
|
+
export interface ManagementLockListResult {
|
|
98
|
+
nextLink?: string;
|
|
99
|
+
value?: ManagementLockObject[];
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
// @public
|
|
103
|
+
export interface ManagementLockObject {
|
|
104
|
+
readonly id?: string;
|
|
105
|
+
level: LockLevel;
|
|
106
|
+
readonly name?: string;
|
|
107
|
+
notes?: string;
|
|
108
|
+
owners?: ManagementLockOwner[];
|
|
109
|
+
readonly systemData?: SystemData;
|
|
110
|
+
readonly type?: string;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
// @public
|
|
114
|
+
export interface ManagementLockOwner {
|
|
115
|
+
applicationId?: string;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
// @public
|
|
119
|
+
export interface ManagementLocks {
|
|
120
|
+
createOrUpdateAtResourceGroupLevel(resourceGroupName: string, lockName: string, parameters: ManagementLockObject, options?: ManagementLocksCreateOrUpdateAtResourceGroupLevelOptionalParams): Promise<ManagementLocksCreateOrUpdateAtResourceGroupLevelResponse>;
|
|
121
|
+
createOrUpdateAtResourceLevel(resourceGroupName: string, resourceProviderNamespace: string, parentResourcePath: string, resourceType: string, resourceName: string, lockName: string, parameters: ManagementLockObject, options?: ManagementLocksCreateOrUpdateAtResourceLevelOptionalParams): Promise<ManagementLocksCreateOrUpdateAtResourceLevelResponse>;
|
|
122
|
+
createOrUpdateAtSubscriptionLevel(lockName: string, parameters: ManagementLockObject, options?: ManagementLocksCreateOrUpdateAtSubscriptionLevelOptionalParams): Promise<ManagementLocksCreateOrUpdateAtSubscriptionLevelResponse>;
|
|
123
|
+
createOrUpdateByScope(scope: string, lockName: string, parameters: ManagementLockObject, options?: ManagementLocksCreateOrUpdateByScopeOptionalParams): Promise<ManagementLocksCreateOrUpdateByScopeResponse>;
|
|
124
|
+
deleteAtResourceGroupLevel(resourceGroupName: string, lockName: string, options?: ManagementLocksDeleteAtResourceGroupLevelOptionalParams): Promise<void>;
|
|
125
|
+
deleteAtResourceLevel(resourceGroupName: string, resourceProviderNamespace: string, parentResourcePath: string, resourceType: string, resourceName: string, lockName: string, options?: ManagementLocksDeleteAtResourceLevelOptionalParams): Promise<void>;
|
|
126
|
+
deleteAtSubscriptionLevel(lockName: string, options?: ManagementLocksDeleteAtSubscriptionLevelOptionalParams): Promise<void>;
|
|
127
|
+
deleteByScope(scope: string, lockName: string, options?: ManagementLocksDeleteByScopeOptionalParams): Promise<void>;
|
|
128
|
+
getAtResourceGroupLevel(resourceGroupName: string, lockName: string, options?: ManagementLocksGetAtResourceGroupLevelOptionalParams): Promise<ManagementLocksGetAtResourceGroupLevelResponse>;
|
|
129
|
+
getAtResourceLevel(resourceGroupName: string, resourceProviderNamespace: string, parentResourcePath: string, resourceType: string, resourceName: string, lockName: string, options?: ManagementLocksGetAtResourceLevelOptionalParams): Promise<ManagementLocksGetAtResourceLevelResponse>;
|
|
130
|
+
getAtSubscriptionLevel(lockName: string, options?: ManagementLocksGetAtSubscriptionLevelOptionalParams): Promise<ManagementLocksGetAtSubscriptionLevelResponse>;
|
|
131
|
+
getByScope(scope: string, lockName: string, options?: ManagementLocksGetByScopeOptionalParams): Promise<ManagementLocksGetByScopeResponse>;
|
|
132
|
+
listAtResourceGroupLevel(resourceGroupName: string, options?: ManagementLocksListAtResourceGroupLevelOptionalParams): PagedAsyncIterableIterator<ManagementLockObject>;
|
|
133
|
+
listAtResourceLevel(resourceGroupName: string, resourceProviderNamespace: string, parentResourcePath: string, resourceType: string, resourceName: string, options?: ManagementLocksListAtResourceLevelOptionalParams): PagedAsyncIterableIterator<ManagementLockObject>;
|
|
134
|
+
listAtSubscriptionLevel(options?: ManagementLocksListAtSubscriptionLevelOptionalParams): PagedAsyncIterableIterator<ManagementLockObject>;
|
|
135
|
+
listByScope(scope: string, options?: ManagementLocksListByScopeOptionalParams): PagedAsyncIterableIterator<ManagementLockObject>;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
// @public
|
|
139
|
+
export interface ManagementLocksCreateOrUpdateAtResourceGroupLevelOptionalParams extends coreClient.OperationOptions {
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
// @public
|
|
143
|
+
export type ManagementLocksCreateOrUpdateAtResourceGroupLevelResponse = ManagementLockObject;
|
|
144
|
+
|
|
145
|
+
// @public
|
|
146
|
+
export interface ManagementLocksCreateOrUpdateAtResourceLevelOptionalParams extends coreClient.OperationOptions {
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
// @public
|
|
150
|
+
export type ManagementLocksCreateOrUpdateAtResourceLevelResponse = ManagementLockObject;
|
|
151
|
+
|
|
152
|
+
// @public
|
|
153
|
+
export interface ManagementLocksCreateOrUpdateAtSubscriptionLevelOptionalParams extends coreClient.OperationOptions {
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
// @public
|
|
157
|
+
export type ManagementLocksCreateOrUpdateAtSubscriptionLevelResponse = ManagementLockObject;
|
|
158
|
+
|
|
159
|
+
// @public
|
|
160
|
+
export interface ManagementLocksCreateOrUpdateByScopeOptionalParams extends coreClient.OperationOptions {
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
// @public
|
|
164
|
+
export type ManagementLocksCreateOrUpdateByScopeResponse = ManagementLockObject;
|
|
165
|
+
|
|
166
|
+
// @public
|
|
167
|
+
export interface ManagementLocksDeleteAtResourceGroupLevelOptionalParams extends coreClient.OperationOptions {
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
// @public
|
|
171
|
+
export interface ManagementLocksDeleteAtResourceLevelOptionalParams extends coreClient.OperationOptions {
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
// @public
|
|
175
|
+
export interface ManagementLocksDeleteAtSubscriptionLevelOptionalParams extends coreClient.OperationOptions {
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
// @public
|
|
179
|
+
export interface ManagementLocksDeleteByScopeOptionalParams extends coreClient.OperationOptions {
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
// @public
|
|
183
|
+
export interface ManagementLocksGetAtResourceGroupLevelOptionalParams extends coreClient.OperationOptions {
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
// @public
|
|
187
|
+
export type ManagementLocksGetAtResourceGroupLevelResponse = ManagementLockObject;
|
|
188
|
+
|
|
189
|
+
// @public
|
|
190
|
+
export interface ManagementLocksGetAtResourceLevelOptionalParams extends coreClient.OperationOptions {
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
// @public
|
|
194
|
+
export type ManagementLocksGetAtResourceLevelResponse = ManagementLockObject;
|
|
195
|
+
|
|
196
|
+
// @public
|
|
197
|
+
export interface ManagementLocksGetAtSubscriptionLevelOptionalParams extends coreClient.OperationOptions {
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
// @public
|
|
201
|
+
export type ManagementLocksGetAtSubscriptionLevelResponse = ManagementLockObject;
|
|
202
|
+
|
|
203
|
+
// @public
|
|
204
|
+
export interface ManagementLocksGetByScopeOptionalParams extends coreClient.OperationOptions {
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
// @public
|
|
208
|
+
export type ManagementLocksGetByScopeResponse = ManagementLockObject;
|
|
209
|
+
|
|
210
|
+
// @public
|
|
211
|
+
export interface ManagementLocksListAtResourceGroupLevelNextOptionalParams extends coreClient.OperationOptions {
|
|
212
|
+
filter?: string;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
// @public
|
|
216
|
+
export type ManagementLocksListAtResourceGroupLevelNextResponse = ManagementLockListResult;
|
|
217
|
+
|
|
218
|
+
// @public
|
|
219
|
+
export interface ManagementLocksListAtResourceGroupLevelOptionalParams extends coreClient.OperationOptions {
|
|
220
|
+
filter?: string;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
// @public
|
|
224
|
+
export type ManagementLocksListAtResourceGroupLevelResponse = ManagementLockListResult;
|
|
225
|
+
|
|
226
|
+
// @public
|
|
227
|
+
export interface ManagementLocksListAtResourceLevelNextOptionalParams extends coreClient.OperationOptions {
|
|
228
|
+
filter?: string;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
// @public
|
|
232
|
+
export type ManagementLocksListAtResourceLevelNextResponse = ManagementLockListResult;
|
|
233
|
+
|
|
234
|
+
// @public
|
|
235
|
+
export interface ManagementLocksListAtResourceLevelOptionalParams extends coreClient.OperationOptions {
|
|
236
|
+
filter?: string;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
// @public
|
|
240
|
+
export type ManagementLocksListAtResourceLevelResponse = ManagementLockListResult;
|
|
241
|
+
|
|
242
|
+
// @public
|
|
243
|
+
export interface ManagementLocksListAtSubscriptionLevelNextOptionalParams extends coreClient.OperationOptions {
|
|
244
|
+
filter?: string;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
// @public
|
|
248
|
+
export type ManagementLocksListAtSubscriptionLevelNextResponse = ManagementLockListResult;
|
|
249
|
+
|
|
250
|
+
// @public
|
|
251
|
+
export interface ManagementLocksListAtSubscriptionLevelOptionalParams extends coreClient.OperationOptions {
|
|
252
|
+
filter?: string;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
// @public
|
|
256
|
+
export type ManagementLocksListAtSubscriptionLevelResponse = ManagementLockListResult;
|
|
257
|
+
|
|
258
|
+
// @public
|
|
259
|
+
export interface ManagementLocksListByScopeNextOptionalParams extends coreClient.OperationOptions {
|
|
260
|
+
filter?: string;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
// @public
|
|
264
|
+
export type ManagementLocksListByScopeNextResponse = ManagementLockListResult;
|
|
265
|
+
|
|
266
|
+
// @public
|
|
267
|
+
export interface ManagementLocksListByScopeOptionalParams extends coreClient.OperationOptions {
|
|
268
|
+
filter?: string;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
// @public
|
|
272
|
+
export type ManagementLocksListByScopeResponse = ManagementLockListResult;
|
|
273
|
+
|
|
274
|
+
// @public
|
|
275
|
+
export interface Operation {
|
|
276
|
+
display?: OperationDisplay;
|
|
277
|
+
name?: string;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
// @public
|
|
281
|
+
export interface OperationDisplay {
|
|
282
|
+
operation?: string;
|
|
283
|
+
provider?: string;
|
|
284
|
+
resource?: string;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
// @public
|
|
288
|
+
export interface OperationListResult {
|
|
289
|
+
nextLink?: string;
|
|
290
|
+
value?: Operation[];
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
// @public
|
|
294
|
+
export interface SystemData {
|
|
295
|
+
createdAt?: Date;
|
|
296
|
+
createdBy?: string;
|
|
297
|
+
createdByType?: CreatedByType;
|
|
298
|
+
lastModifiedAt?: Date;
|
|
299
|
+
lastModifiedBy?: string;
|
|
300
|
+
lastModifiedByType?: CreatedByType;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
// (No @packageDocumentation comment for this package)
|
|
304
|
+
|
|
305
|
+
```
|