@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.
Files changed (95) hide show
  1. package/CHANGELOG.md +15 -10
  2. package/README.md +15 -9
  3. package/dist/index.js +6 -432
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.min.js +1 -1
  6. package/dist/index.min.js.map +1 -1
  7. package/dist-esm/src/index.d.ts +5 -0
  8. package/dist-esm/src/index.d.ts.map +1 -0
  9. package/{esm → dist-esm/src}/index.js +0 -1
  10. package/dist-esm/src/index.js.map +1 -0
  11. package/{esm → dist-esm/src}/managementLockClient.d.ts +5 -2
  12. package/dist-esm/src/managementLockClient.d.ts.map +1 -0
  13. package/{esm/managementLockClientContext.js → dist-esm/src/managementLockClient.js} +7 -4
  14. package/dist-esm/src/managementLockClient.js.map +1 -0
  15. package/{esm → dist-esm/src}/models/index.d.ts +0 -33
  16. package/dist-esm/src/models/index.d.ts.map +1 -0
  17. package/{esm → dist-esm/src}/models/index.js +0 -0
  18. package/dist-esm/src/models/index.js.map +1 -0
  19. package/{esm → dist-esm/src}/models/mappers.d.ts +0 -0
  20. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  21. package/{esm → dist-esm/src}/models/mappers.js +0 -0
  22. package/dist-esm/src/models/mappers.js.map +1 -0
  23. package/{esm → dist-esm/src}/models/parameters.d.ts +0 -0
  24. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  25. package/{esm → dist-esm/src}/models/parameters.js +0 -0
  26. package/dist-esm/src/models/parameters.js.map +1 -0
  27. package/{esm → dist-esm/src}/operations/authorizationOperations.d.ts +4 -19
  28. package/dist-esm/src/operations/authorizationOperations.d.ts.map +1 -0
  29. package/{esm → dist-esm/src}/operations/authorizationOperations.js +1 -72
  30. package/dist-esm/src/operations/authorizationOperations.js.map +1 -0
  31. package/{esm → dist-esm/src}/operations/index.d.ts +0 -0
  32. package/dist-esm/src/operations/index.d.ts.map +1 -0
  33. package/{esm → dist-esm/src}/operations/index.js +0 -0
  34. package/dist-esm/src/operations/index.js.map +1 -0
  35. package/{esm/operationsInterfaces → dist-esm/src/operations}/managementLocks.d.ts +89 -42
  36. package/dist-esm/src/operations/managementLocks.d.ts.map +1 -0
  37. package/{esm → dist-esm/src}/operations/managementLocks.js +1 -337
  38. package/dist-esm/src/operations/managementLocks.js.map +1 -0
  39. package/dist-esm/src/operationsInterfaces/authorizationOperations.d.ts +11 -0
  40. package/dist-esm/src/operationsInterfaces/authorizationOperations.d.ts.map +1 -0
  41. package/{esm → dist-esm/src}/operationsInterfaces/authorizationOperations.js +1 -1
  42. package/dist-esm/src/operationsInterfaces/authorizationOperations.js.map +1 -0
  43. package/{esm → dist-esm/src}/operationsInterfaces/index.d.ts +0 -0
  44. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  45. package/{esm → dist-esm/src}/operationsInterfaces/index.js +0 -0
  46. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  47. package/dist-esm/src/operationsInterfaces/managementLocks.d.ts +159 -0
  48. package/dist-esm/src/operationsInterfaces/managementLocks.d.ts.map +1 -0
  49. package/{esm → dist-esm/src}/operationsInterfaces/managementLocks.js +1 -1
  50. package/dist-esm/src/operationsInterfaces/managementLocks.js.map +1 -0
  51. package/dist-esm/test/locks_examples.d.ts +4 -0
  52. package/dist-esm/test/locks_examples.d.ts.map +1 -0
  53. package/dist-esm/test/locks_examples.js +106 -0
  54. package/dist-esm/test/locks_examples.js.map +1 -0
  55. package/package.json +24 -20
  56. package/review/arm-locks.api.md +5 -55
  57. package/src/index.ts +0 -1
  58. package/src/managementLockClient.ts +46 -3
  59. package/src/models/index.ts +0 -47
  60. package/src/operations/authorizationOperations.ts +5 -82
  61. package/src/operations/managementLocks.ts +5 -467
  62. package/src/operationsInterfaces/authorizationOperations.ts +0 -11
  63. package/src/operationsInterfaces/managementLocks.ts +0 -62
  64. package/tsconfig.json +2 -3
  65. package/{esm/index.d.ts → types/arm-locks.d.ts} +4 -101
  66. package/types/tsdoc-metadata.json +11 -0
  67. package/esm/index.d.ts.map +0 -1
  68. package/esm/index.js.map +0 -1
  69. package/esm/managementLockClient.d.ts.map +0 -1
  70. package/esm/managementLockClient.js +0 -23
  71. package/esm/managementLockClient.js.map +0 -1
  72. package/esm/managementLockClientContext.d.ts +0 -16
  73. package/esm/managementLockClientContext.d.ts.map +0 -1
  74. package/esm/managementLockClientContext.js.map +0 -1
  75. package/esm/models/index.d.ts.map +0 -1
  76. package/esm/models/index.js.map +0 -1
  77. package/esm/models/mappers.d.ts.map +0 -1
  78. package/esm/models/mappers.js.map +0 -1
  79. package/esm/models/parameters.d.ts.map +0 -1
  80. package/esm/models/parameters.js.map +0 -1
  81. package/esm/operations/authorizationOperations.d.ts.map +0 -1
  82. package/esm/operations/authorizationOperations.js.map +0 -1
  83. package/esm/operations/index.d.ts.map +0 -1
  84. package/esm/operations/index.js.map +0 -1
  85. package/esm/operations/managementLocks.d.ts +0 -331
  86. package/esm/operations/managementLocks.d.ts.map +0 -1
  87. package/esm/operations/managementLocks.js.map +0 -1
  88. package/esm/operationsInterfaces/authorizationOperations.d.ts +0 -18
  89. package/esm/operationsInterfaces/authorizationOperations.d.ts.map +0 -1
  90. package/esm/operationsInterfaces/authorizationOperations.js.map +0 -1
  91. package/esm/operationsInterfaces/index.d.ts.map +0 -1
  92. package/esm/operationsInterfaces/index.js.map +0 -1
  93. package/esm/operationsInterfaces/managementLocks.d.ts.map +0 -1
  94. package/esm/operationsInterfaces/managementLocks.js.map +0 -1
  95. package/src/managementLockClientContext.ts +0 -70
@@ -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 { ManagementLockClientContext } from "../managementLockClientContext";
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 representing a AuthorizationOperations. */
24
+ /** Class containing AuthorizationOperations operations. */
28
25
  export class AuthorizationOperationsImpl implements AuthorizationOperations {
29
- private readonly client: ManagementLockClientContext;
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: ManagementLockClientContext) {
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
- };