@azure/arm-locks 2.0.0-beta.1 → 2.0.1-alpha.20211215.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/CHANGELOG.md +15 -10
- package/README.md +15 -9
- package/dist/index.js +6 -432
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/src/index.d.ts +5 -0
- package/dist-esm/src/index.d.ts.map +1 -0
- package/{esm → dist-esm/src}/index.js +0 -1
- package/dist-esm/src/index.js.map +1 -0
- package/{esm → dist-esm/src}/managementLockClient.d.ts +5 -2
- package/dist-esm/src/managementLockClient.d.ts.map +1 -0
- package/{esm/managementLockClientContext.js → dist-esm/src/managementLockClient.js} +7 -4
- package/dist-esm/src/managementLockClient.js.map +1 -0
- package/{esm → dist-esm/src}/models/index.d.ts +0 -33
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/index.js +0 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/{esm → dist-esm/src}/models/mappers.d.ts +0 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/mappers.js +0 -0
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/{esm → dist-esm/src}/models/parameters.d.ts +0 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/parameters.js +0 -0
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/{esm → dist-esm/src}/operations/authorizationOperations.d.ts +4 -19
- package/dist-esm/src/operations/authorizationOperations.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operations/authorizationOperations.js +1 -72
- package/dist-esm/src/operations/authorizationOperations.js.map +1 -0
- package/{esm → dist-esm/src}/operations/index.d.ts +0 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operations/index.js +0 -0
- package/dist-esm/src/operations/index.js.map +1 -0
- package/{esm/operationsInterfaces → dist-esm/src/operations}/managementLocks.d.ts +89 -42
- package/dist-esm/src/operations/managementLocks.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operations/managementLocks.js +1 -337
- package/dist-esm/src/operations/managementLocks.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/authorizationOperations.d.ts +11 -0
- package/dist-esm/src/operationsInterfaces/authorizationOperations.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operationsInterfaces/authorizationOperations.js +1 -1
- package/dist-esm/src/operationsInterfaces/authorizationOperations.js.map +1 -0
- package/{esm → dist-esm/src}/operationsInterfaces/index.d.ts +0 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operationsInterfaces/index.js +0 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/managementLocks.d.ts +159 -0
- package/dist-esm/src/operationsInterfaces/managementLocks.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operationsInterfaces/managementLocks.js +1 -1
- package/dist-esm/src/operationsInterfaces/managementLocks.js.map +1 -0
- package/dist-esm/test/locks_examples.d.ts +4 -0
- package/dist-esm/test/locks_examples.d.ts.map +1 -0
- package/dist-esm/test/locks_examples.js +106 -0
- package/dist-esm/test/locks_examples.js.map +1 -0
- package/package.json +24 -20
- package/review/arm-locks.api.md +5 -55
- package/src/index.ts +0 -1
- package/src/managementLockClient.ts +46 -3
- package/src/models/index.ts +0 -47
- package/src/operations/authorizationOperations.ts +5 -82
- package/src/operations/managementLocks.ts +5 -467
- package/src/operationsInterfaces/authorizationOperations.ts +0 -11
- package/src/operationsInterfaces/managementLocks.ts +0 -62
- package/tsconfig.json +2 -3
- package/{esm/index.d.ts → types/arm-locks.d.ts} +4 -101
- package/types/tsdoc-metadata.json +11 -0
- package/esm/index.d.ts.map +0 -1
- package/esm/index.js.map +0 -1
- package/esm/managementLockClient.d.ts.map +0 -1
- package/esm/managementLockClient.js +0 -23
- package/esm/managementLockClient.js.map +0 -1
- package/esm/managementLockClientContext.d.ts +0 -16
- package/esm/managementLockClientContext.d.ts.map +0 -1
- package/esm/managementLockClientContext.js.map +0 -1
- package/esm/models/index.d.ts.map +0 -1
- package/esm/models/index.js.map +0 -1
- package/esm/models/mappers.d.ts.map +0 -1
- package/esm/models/mappers.js.map +0 -1
- package/esm/models/parameters.d.ts.map +0 -1
- package/esm/models/parameters.js.map +0 -1
- package/esm/operations/authorizationOperations.d.ts.map +0 -1
- package/esm/operations/authorizationOperations.js.map +0 -1
- package/esm/operations/index.d.ts.map +0 -1
- package/esm/operations/index.js.map +0 -1
- package/esm/operations/managementLocks.d.ts +0 -331
- package/esm/operations/managementLocks.d.ts.map +0 -1
- package/esm/operations/managementLocks.js.map +0 -1
- package/esm/operationsInterfaces/authorizationOperations.d.ts +0 -18
- package/esm/operationsInterfaces/authorizationOperations.d.ts.map +0 -1
- package/esm/operationsInterfaces/authorizationOperations.js.map +0 -1
- package/esm/operationsInterfaces/index.d.ts.map +0 -1
- package/esm/operationsInterfaces/index.js.map +0 -1
- package/esm/operationsInterfaces/managementLocks.d.ts.map +0 -1
- package/esm/operationsInterfaces/managementLocks.js.map +0 -1
- package/src/managementLockClientContext.ts +0 -70
package/src/models/index.ts
CHANGED
@@ -105,13 +105,6 @@ export interface AuthorizationOperationsListNextOptionalParams
|
|
105
105
|
/** Contains response data for the listNext operation. */
|
106
106
|
export type AuthorizationOperationsListNextResponse = OperationListResult;
|
107
107
|
|
108
|
-
/** Optional parameters. */
|
109
|
-
export interface AuthorizationOperationsListNextNextOptionalParams
|
110
|
-
extends coreClient.OperationOptions {}
|
111
|
-
|
112
|
-
/** Contains response data for the listNextNext operation. */
|
113
|
-
export type AuthorizationOperationsListNextNextResponse = OperationListResult;
|
114
|
-
|
115
108
|
/** Optional parameters. */
|
116
109
|
export interface ManagementLocksCreateOrUpdateAtResourceGroupLevelOptionalParams
|
117
110
|
extends coreClient.OperationOptions {}
|
@@ -264,46 +257,6 @@ export interface ManagementLocksListByScopeNextOptionalParams
|
|
264
257
|
/** Contains response data for the listByScopeNext operation. */
|
265
258
|
export type ManagementLocksListByScopeNextResponse = ManagementLockListResult;
|
266
259
|
|
267
|
-
/** Optional parameters. */
|
268
|
-
export interface ManagementLocksListAtResourceGroupLevelNextNextOptionalParams
|
269
|
-
extends coreClient.OperationOptions {
|
270
|
-
/** The filter to apply on the operation. */
|
271
|
-
filter?: string;
|
272
|
-
}
|
273
|
-
|
274
|
-
/** Contains response data for the listAtResourceGroupLevelNextNext operation. */
|
275
|
-
export type ManagementLocksListAtResourceGroupLevelNextNextResponse = ManagementLockListResult;
|
276
|
-
|
277
|
-
/** Optional parameters. */
|
278
|
-
export interface ManagementLocksListAtResourceLevelNextNextOptionalParams
|
279
|
-
extends coreClient.OperationOptions {
|
280
|
-
/** The filter to apply on the operation. */
|
281
|
-
filter?: string;
|
282
|
-
}
|
283
|
-
|
284
|
-
/** Contains response data for the listAtResourceLevelNextNext operation. */
|
285
|
-
export type ManagementLocksListAtResourceLevelNextNextResponse = ManagementLockListResult;
|
286
|
-
|
287
|
-
/** Optional parameters. */
|
288
|
-
export interface ManagementLocksListAtSubscriptionLevelNextNextOptionalParams
|
289
|
-
extends coreClient.OperationOptions {
|
290
|
-
/** The filter to apply on the operation. */
|
291
|
-
filter?: string;
|
292
|
-
}
|
293
|
-
|
294
|
-
/** Contains response data for the listAtSubscriptionLevelNextNext operation. */
|
295
|
-
export type ManagementLocksListAtSubscriptionLevelNextNextResponse = ManagementLockListResult;
|
296
|
-
|
297
|
-
/** Optional parameters. */
|
298
|
-
export interface ManagementLocksListByScopeNextNextOptionalParams
|
299
|
-
extends coreClient.OperationOptions {
|
300
|
-
/** The filter to apply on the operation. */
|
301
|
-
filter?: string;
|
302
|
-
}
|
303
|
-
|
304
|
-
/** Contains response data for the listByScopeNextNext operation. */
|
305
|
-
export type ManagementLocksListByScopeNextNextResponse = ManagementLockListResult;
|
306
|
-
|
307
260
|
/** Optional parameters. */
|
308
261
|
export interface ManagementLockClientOptionalParams
|
309
262
|
extends coreClient.ServiceClientOptions {
|
@@ -6,33 +6,30 @@
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
7
7
|
*/
|
8
8
|
|
9
|
-
import "@azure/core-paging";
|
10
9
|
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
11
10
|
import { AuthorizationOperations } from "../operationsInterfaces";
|
12
11
|
import * as coreClient from "@azure/core-client";
|
13
12
|
import * as Mappers from "../models/mappers";
|
14
13
|
import * as Parameters from "../models/parameters";
|
15
|
-
import {
|
14
|
+
import { ManagementLockClient } from "../managementLockClient";
|
16
15
|
import {
|
17
16
|
Operation,
|
18
17
|
AuthorizationOperationsListNextOptionalParams,
|
19
18
|
AuthorizationOperationsListOptionalParams,
|
20
|
-
AuthorizationOperationsListNextNextOptionalParams,
|
21
19
|
AuthorizationOperationsListResponse,
|
22
|
-
AuthorizationOperationsListNextResponse
|
23
|
-
AuthorizationOperationsListNextNextResponse
|
20
|
+
AuthorizationOperationsListNextResponse
|
24
21
|
} from "../models";
|
25
22
|
|
26
23
|
/// <reference lib="esnext.asynciterable" />
|
27
|
-
/** Class
|
24
|
+
/** Class containing AuthorizationOperations operations. */
|
28
25
|
export class AuthorizationOperationsImpl implements AuthorizationOperations {
|
29
|
-
private readonly client:
|
26
|
+
private readonly client: ManagementLockClient;
|
30
27
|
|
31
28
|
/**
|
32
29
|
* Initialize a new instance of the class AuthorizationOperations class.
|
33
30
|
* @param client Reference to the service client
|
34
31
|
*/
|
35
|
-
constructor(client:
|
32
|
+
constructor(client: ManagementLockClient) {
|
36
33
|
this.client = client;
|
37
34
|
}
|
38
35
|
|
@@ -78,52 +75,6 @@ export class AuthorizationOperationsImpl implements AuthorizationOperations {
|
|
78
75
|
}
|
79
76
|
}
|
80
77
|
|
81
|
-
/**
|
82
|
-
* ListNext
|
83
|
-
* @param nextLink The nextLink from the previous successful call to the List method.
|
84
|
-
* @param options The options parameters.
|
85
|
-
*/
|
86
|
-
public listNext(
|
87
|
-
nextLink: string,
|
88
|
-
options?: AuthorizationOperationsListNextOptionalParams
|
89
|
-
): PagedAsyncIterableIterator<Operation> {
|
90
|
-
const iter = this.listNextPagingAll(nextLink, options);
|
91
|
-
return {
|
92
|
-
next() {
|
93
|
-
return iter.next();
|
94
|
-
},
|
95
|
-
[Symbol.asyncIterator]() {
|
96
|
-
return this;
|
97
|
-
},
|
98
|
-
byPage: () => {
|
99
|
-
return this.listNextPagingPage(nextLink, options);
|
100
|
-
}
|
101
|
-
};
|
102
|
-
}
|
103
|
-
|
104
|
-
private async *listNextPagingPage(
|
105
|
-
nextLink: string,
|
106
|
-
options?: AuthorizationOperationsListNextOptionalParams
|
107
|
-
): AsyncIterableIterator<Operation[]> {
|
108
|
-
let result = await this._listNext(nextLink, options);
|
109
|
-
yield result.value || [];
|
110
|
-
let continuationToken = result.nextLink;
|
111
|
-
while (continuationToken) {
|
112
|
-
result = await this._listNextNext(continuationToken, options);
|
113
|
-
continuationToken = result.nextLink;
|
114
|
-
yield result.value || [];
|
115
|
-
}
|
116
|
-
}
|
117
|
-
|
118
|
-
private async *listNextPagingAll(
|
119
|
-
nextLink: string,
|
120
|
-
options?: AuthorizationOperationsListNextOptionalParams
|
121
|
-
): AsyncIterableIterator<Operation> {
|
122
|
-
for await (const page of this.listNextPagingPage(nextLink, options)) {
|
123
|
-
yield* page;
|
124
|
-
}
|
125
|
-
}
|
126
|
-
|
127
78
|
/**
|
128
79
|
* Lists all of the available Microsoft.Authorization REST API operations.
|
129
80
|
* @param options The options parameters.
|
@@ -148,21 +99,6 @@ export class AuthorizationOperationsImpl implements AuthorizationOperations {
|
|
148
99
|
listNextOperationSpec
|
149
100
|
);
|
150
101
|
}
|
151
|
-
|
152
|
-
/**
|
153
|
-
* ListNextNext
|
154
|
-
* @param nextLink The nextLink from the previous successful call to the ListNext method.
|
155
|
-
* @param options The options parameters.
|
156
|
-
*/
|
157
|
-
private _listNextNext(
|
158
|
-
nextLink: string,
|
159
|
-
options?: AuthorizationOperationsListNextNextOptionalParams
|
160
|
-
): Promise<AuthorizationOperationsListNextNextResponse> {
|
161
|
-
return this.client.sendOperationRequest(
|
162
|
-
{ nextLink, options },
|
163
|
-
listNextNextOperationSpec
|
164
|
-
);
|
165
|
-
}
|
166
102
|
}
|
167
103
|
// Operation Specifications
|
168
104
|
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
@@ -193,16 +129,3 @@ const listNextOperationSpec: coreClient.OperationSpec = {
|
|
193
129
|
headerParameters: [Parameters.accept],
|
194
130
|
serializer
|
195
131
|
};
|
196
|
-
const listNextNextOperationSpec: coreClient.OperationSpec = {
|
197
|
-
path: "{nextLink}",
|
198
|
-
httpMethod: "GET",
|
199
|
-
responses: {
|
200
|
-
200: {
|
201
|
-
bodyMapper: Mappers.OperationListResult
|
202
|
-
}
|
203
|
-
},
|
204
|
-
queryParameters: [Parameters.apiVersion],
|
205
|
-
urlParameters: [Parameters.$host, Parameters.nextLink],
|
206
|
-
headerParameters: [Parameters.accept],
|
207
|
-
serializer
|
208
|
-
};
|