@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
@@ -6,13 +6,12 @@
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 { ManagementLocks } 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
  ManagementLockObject,
18
17
  ManagementLocksListAtResourceGroupLevelNextOptionalParams,
@@ -23,10 +22,6 @@ import {
23
22
  ManagementLocksListAtSubscriptionLevelOptionalParams,
24
23
  ManagementLocksListByScopeNextOptionalParams,
25
24
  ManagementLocksListByScopeOptionalParams,
26
- ManagementLocksListAtResourceGroupLevelNextNextOptionalParams,
27
- ManagementLocksListAtResourceLevelNextNextOptionalParams,
28
- ManagementLocksListAtSubscriptionLevelNextNextOptionalParams,
29
- ManagementLocksListByScopeNextNextOptionalParams,
30
25
  ManagementLocksCreateOrUpdateAtResourceGroupLevelOptionalParams,
31
26
  ManagementLocksCreateOrUpdateAtResourceGroupLevelResponse,
32
27
  ManagementLocksDeleteAtResourceGroupLevelOptionalParams,
@@ -54,23 +49,19 @@ import {
54
49
  ManagementLocksListAtResourceGroupLevelNextResponse,
55
50
  ManagementLocksListAtResourceLevelNextResponse,
56
51
  ManagementLocksListAtSubscriptionLevelNextResponse,
57
- ManagementLocksListByScopeNextResponse,
58
- ManagementLocksListAtResourceGroupLevelNextNextResponse,
59
- ManagementLocksListAtResourceLevelNextNextResponse,
60
- ManagementLocksListAtSubscriptionLevelNextNextResponse,
61
- ManagementLocksListByScopeNextNextResponse
52
+ ManagementLocksListByScopeNextResponse
62
53
  } from "../models";
63
54
 
64
55
  /// <reference lib="esnext.asynciterable" />
65
- /** Class representing a ManagementLocks. */
56
+ /** Class containing ManagementLocks operations. */
66
57
  export class ManagementLocksImpl implements ManagementLocks {
67
- private readonly client: ManagementLockClientContext;
58
+ private readonly client: ManagementLockClient;
68
59
 
69
60
  /**
70
61
  * Initialize a new instance of the class ManagementLocks class.
71
62
  * @param client Reference to the service client
72
63
  */
73
- constructor(client: ManagementLockClientContext) {
64
+ constructor(client: ManagementLockClient) {
74
65
  this.client = client;
75
66
  }
76
67
 
@@ -330,299 +321,6 @@ export class ManagementLocksImpl implements ManagementLocks {
330
321
  }
331
322
  }
332
323
 
333
- /**
334
- * ListAtResourceGroupLevelNext
335
- * @param resourceGroupName The name of the resource group containing the locks to get.
336
- * @param nextLink The nextLink from the previous successful call to the ListAtResourceGroupLevel
337
- * method.
338
- * @param options The options parameters.
339
- */
340
- public listAtResourceGroupLevelNext(
341
- resourceGroupName: string,
342
- nextLink: string,
343
- options?: ManagementLocksListAtResourceGroupLevelNextOptionalParams
344
- ): PagedAsyncIterableIterator<ManagementLockObject> {
345
- const iter = this.listAtResourceGroupLevelNextPagingAll(
346
- resourceGroupName,
347
- nextLink,
348
- options
349
- );
350
- return {
351
- next() {
352
- return iter.next();
353
- },
354
- [Symbol.asyncIterator]() {
355
- return this;
356
- },
357
- byPage: () => {
358
- return this.listAtResourceGroupLevelNextPagingPage(
359
- resourceGroupName,
360
- nextLink,
361
- options
362
- );
363
- }
364
- };
365
- }
366
-
367
- private async *listAtResourceGroupLevelNextPagingPage(
368
- resourceGroupName: string,
369
- nextLink: string,
370
- options?: ManagementLocksListAtResourceGroupLevelNextOptionalParams
371
- ): AsyncIterableIterator<ManagementLockObject[]> {
372
- let result = await this._listAtResourceGroupLevelNext(
373
- resourceGroupName,
374
- nextLink,
375
- options
376
- );
377
- yield result.value || [];
378
- let continuationToken = result.nextLink;
379
- while (continuationToken) {
380
- result = await this._listAtResourceGroupLevelNextNext(
381
- resourceGroupName,
382
- continuationToken,
383
- options
384
- );
385
- continuationToken = result.nextLink;
386
- yield result.value || [];
387
- }
388
- }
389
-
390
- private async *listAtResourceGroupLevelNextPagingAll(
391
- resourceGroupName: string,
392
- nextLink: string,
393
- options?: ManagementLocksListAtResourceGroupLevelNextOptionalParams
394
- ): AsyncIterableIterator<ManagementLockObject> {
395
- for await (const page of this.listAtResourceGroupLevelNextPagingPage(
396
- resourceGroupName,
397
- nextLink,
398
- options
399
- )) {
400
- yield* page;
401
- }
402
- }
403
-
404
- /**
405
- * ListAtResourceLevelNext
406
- * @param resourceGroupName The name of the resource group containing the locked resource. The name is
407
- * case insensitive.
408
- * @param resourceProviderNamespace The namespace of the resource provider.
409
- * @param parentResourcePath The parent resource identity.
410
- * @param resourceType The resource type of the locked resource.
411
- * @param resourceName The name of the locked resource.
412
- * @param nextLink The nextLink from the previous successful call to the ListAtResourceLevel method.
413
- * @param options The options parameters.
414
- */
415
- public listAtResourceLevelNext(
416
- resourceGroupName: string,
417
- resourceProviderNamespace: string,
418
- parentResourcePath: string,
419
- resourceType: string,
420
- resourceName: string,
421
- nextLink: string,
422
- options?: ManagementLocksListAtResourceLevelNextOptionalParams
423
- ): PagedAsyncIterableIterator<ManagementLockObject> {
424
- const iter = this.listAtResourceLevelNextPagingAll(
425
- resourceGroupName,
426
- resourceProviderNamespace,
427
- parentResourcePath,
428
- resourceType,
429
- resourceName,
430
- nextLink,
431
- options
432
- );
433
- return {
434
- next() {
435
- return iter.next();
436
- },
437
- [Symbol.asyncIterator]() {
438
- return this;
439
- },
440
- byPage: () => {
441
- return this.listAtResourceLevelNextPagingPage(
442
- resourceGroupName,
443
- resourceProviderNamespace,
444
- parentResourcePath,
445
- resourceType,
446
- resourceName,
447
- nextLink,
448
- options
449
- );
450
- }
451
- };
452
- }
453
-
454
- private async *listAtResourceLevelNextPagingPage(
455
- resourceGroupName: string,
456
- resourceProviderNamespace: string,
457
- parentResourcePath: string,
458
- resourceType: string,
459
- resourceName: string,
460
- nextLink: string,
461
- options?: ManagementLocksListAtResourceLevelNextOptionalParams
462
- ): AsyncIterableIterator<ManagementLockObject[]> {
463
- let result = await this._listAtResourceLevelNext(
464
- resourceGroupName,
465
- resourceProviderNamespace,
466
- parentResourcePath,
467
- resourceType,
468
- resourceName,
469
- nextLink,
470
- options
471
- );
472
- yield result.value || [];
473
- let continuationToken = result.nextLink;
474
- while (continuationToken) {
475
- result = await this._listAtResourceLevelNextNext(
476
- resourceGroupName,
477
- resourceProviderNamespace,
478
- parentResourcePath,
479
- resourceType,
480
- resourceName,
481
- continuationToken,
482
- options
483
- );
484
- continuationToken = result.nextLink;
485
- yield result.value || [];
486
- }
487
- }
488
-
489
- private async *listAtResourceLevelNextPagingAll(
490
- resourceGroupName: string,
491
- resourceProviderNamespace: string,
492
- parentResourcePath: string,
493
- resourceType: string,
494
- resourceName: string,
495
- nextLink: string,
496
- options?: ManagementLocksListAtResourceLevelNextOptionalParams
497
- ): AsyncIterableIterator<ManagementLockObject> {
498
- for await (const page of this.listAtResourceLevelNextPagingPage(
499
- resourceGroupName,
500
- resourceProviderNamespace,
501
- parentResourcePath,
502
- resourceType,
503
- resourceName,
504
- nextLink,
505
- options
506
- )) {
507
- yield* page;
508
- }
509
- }
510
-
511
- /**
512
- * ListAtSubscriptionLevelNext
513
- * @param nextLink The nextLink from the previous successful call to the ListAtSubscriptionLevel
514
- * method.
515
- * @param options The options parameters.
516
- */
517
- public listAtSubscriptionLevelNext(
518
- nextLink: string,
519
- options?: ManagementLocksListAtSubscriptionLevelNextOptionalParams
520
- ): PagedAsyncIterableIterator<ManagementLockObject> {
521
- const iter = this.listAtSubscriptionLevelNextPagingAll(nextLink, options);
522
- return {
523
- next() {
524
- return iter.next();
525
- },
526
- [Symbol.asyncIterator]() {
527
- return this;
528
- },
529
- byPage: () => {
530
- return this.listAtSubscriptionLevelNextPagingPage(nextLink, options);
531
- }
532
- };
533
- }
534
-
535
- private async *listAtSubscriptionLevelNextPagingPage(
536
- nextLink: string,
537
- options?: ManagementLocksListAtSubscriptionLevelNextOptionalParams
538
- ): AsyncIterableIterator<ManagementLockObject[]> {
539
- let result = await this._listAtSubscriptionLevelNext(nextLink, options);
540
- yield result.value || [];
541
- let continuationToken = result.nextLink;
542
- while (continuationToken) {
543
- result = await this._listAtSubscriptionLevelNextNext(
544
- continuationToken,
545
- options
546
- );
547
- continuationToken = result.nextLink;
548
- yield result.value || [];
549
- }
550
- }
551
-
552
- private async *listAtSubscriptionLevelNextPagingAll(
553
- nextLink: string,
554
- options?: ManagementLocksListAtSubscriptionLevelNextOptionalParams
555
- ): AsyncIterableIterator<ManagementLockObject> {
556
- for await (const page of this.listAtSubscriptionLevelNextPagingPage(
557
- nextLink,
558
- options
559
- )) {
560
- yield* page;
561
- }
562
- }
563
-
564
- /**
565
- * ListByScopeNext
566
- * @param scope The scope for the lock. When providing a scope for the assignment, use
567
- * '/subscriptions/{subscriptionId}' for subscriptions,
568
- * '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}' for resource groups, and
569
- * '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePathIfPresent}/{resourceType}/{resourceName}'
570
- * for resources.
571
- * @param nextLink The nextLink from the previous successful call to the ListByScope method.
572
- * @param options The options parameters.
573
- */
574
- public listByScopeNext(
575
- scope: string,
576
- nextLink: string,
577
- options?: ManagementLocksListByScopeNextOptionalParams
578
- ): PagedAsyncIterableIterator<ManagementLockObject> {
579
- const iter = this.listByScopeNextPagingAll(scope, nextLink, options);
580
- return {
581
- next() {
582
- return iter.next();
583
- },
584
- [Symbol.asyncIterator]() {
585
- return this;
586
- },
587
- byPage: () => {
588
- return this.listByScopeNextPagingPage(scope, nextLink, options);
589
- }
590
- };
591
- }
592
-
593
- private async *listByScopeNextPagingPage(
594
- scope: string,
595
- nextLink: string,
596
- options?: ManagementLocksListByScopeNextOptionalParams
597
- ): AsyncIterableIterator<ManagementLockObject[]> {
598
- let result = await this._listByScopeNext(scope, nextLink, options);
599
- yield result.value || [];
600
- let continuationToken = result.nextLink;
601
- while (continuationToken) {
602
- result = await this._listByScopeNextNext(
603
- scope,
604
- continuationToken,
605
- options
606
- );
607
- continuationToken = result.nextLink;
608
- yield result.value || [];
609
- }
610
- }
611
-
612
- private async *listByScopeNextPagingAll(
613
- scope: string,
614
- nextLink: string,
615
- options?: ManagementLocksListByScopeNextOptionalParams
616
- ): AsyncIterableIterator<ManagementLockObject> {
617
- for await (const page of this.listByScopeNextPagingPage(
618
- scope,
619
- nextLink,
620
- options
621
- )) {
622
- yield* page;
623
- }
624
- }
625
-
626
324
  /**
627
325
  * When you apply a lock at a parent scope, all child resources inherit the same lock. To create
628
326
  * management locks, you must have access to Microsoft.Authorization/* or
@@ -1068,96 +766,6 @@ export class ManagementLocksImpl implements ManagementLocks {
1068
766
  listByScopeNextOperationSpec
1069
767
  );
1070
768
  }
1071
-
1072
- /**
1073
- * ListAtResourceGroupLevelNextNext
1074
- * @param resourceGroupName The name of the resource group containing the locks to get.
1075
- * @param nextLink The nextLink from the previous successful call to the ListAtResourceGroupLevelNext
1076
- * method.
1077
- * @param options The options parameters.
1078
- */
1079
- private _listAtResourceGroupLevelNextNext(
1080
- resourceGroupName: string,
1081
- nextLink: string,
1082
- options?: ManagementLocksListAtResourceGroupLevelNextNextOptionalParams
1083
- ): Promise<ManagementLocksListAtResourceGroupLevelNextNextResponse> {
1084
- return this.client.sendOperationRequest(
1085
- { resourceGroupName, nextLink, options },
1086
- listAtResourceGroupLevelNextNextOperationSpec
1087
- );
1088
- }
1089
-
1090
- /**
1091
- * ListAtResourceLevelNextNext
1092
- * @param resourceGroupName The name of the resource group containing the locked resource. The name is
1093
- * case insensitive.
1094
- * @param resourceProviderNamespace The namespace of the resource provider.
1095
- * @param parentResourcePath The parent resource identity.
1096
- * @param resourceType The resource type of the locked resource.
1097
- * @param resourceName The name of the locked resource.
1098
- * @param nextLink The nextLink from the previous successful call to the ListAtResourceLevelNext
1099
- * method.
1100
- * @param options The options parameters.
1101
- */
1102
- private _listAtResourceLevelNextNext(
1103
- resourceGroupName: string,
1104
- resourceProviderNamespace: string,
1105
- parentResourcePath: string,
1106
- resourceType: string,
1107
- resourceName: string,
1108
- nextLink: string,
1109
- options?: ManagementLocksListAtResourceLevelNextNextOptionalParams
1110
- ): Promise<ManagementLocksListAtResourceLevelNextNextResponse> {
1111
- return this.client.sendOperationRequest(
1112
- {
1113
- resourceGroupName,
1114
- resourceProviderNamespace,
1115
- parentResourcePath,
1116
- resourceType,
1117
- resourceName,
1118
- nextLink,
1119
- options
1120
- },
1121
- listAtResourceLevelNextNextOperationSpec
1122
- );
1123
- }
1124
-
1125
- /**
1126
- * ListAtSubscriptionLevelNextNext
1127
- * @param nextLink The nextLink from the previous successful call to the ListAtSubscriptionLevelNext
1128
- * method.
1129
- * @param options The options parameters.
1130
- */
1131
- private _listAtSubscriptionLevelNextNext(
1132
- nextLink: string,
1133
- options?: ManagementLocksListAtSubscriptionLevelNextNextOptionalParams
1134
- ): Promise<ManagementLocksListAtSubscriptionLevelNextNextResponse> {
1135
- return this.client.sendOperationRequest(
1136
- { nextLink, options },
1137
- listAtSubscriptionLevelNextNextOperationSpec
1138
- );
1139
- }
1140
-
1141
- /**
1142
- * ListByScopeNextNext
1143
- * @param scope The scope for the lock. When providing a scope for the assignment, use
1144
- * '/subscriptions/{subscriptionId}' for subscriptions,
1145
- * '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}' for resource groups, and
1146
- * '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePathIfPresent}/{resourceType}/{resourceName}'
1147
- * for resources.
1148
- * @param nextLink The nextLink from the previous successful call to the ListByScopeNext method.
1149
- * @param options The options parameters.
1150
- */
1151
- private _listByScopeNextNext(
1152
- scope: string,
1153
- nextLink: string,
1154
- options?: ManagementLocksListByScopeNextNextOptionalParams
1155
- ): Promise<ManagementLocksListByScopeNextNextResponse> {
1156
- return this.client.sendOperationRequest(
1157
- { scope, nextLink, options },
1158
- listByScopeNextNextOperationSpec
1159
- );
1160
- }
1161
769
  }
1162
770
  // Operation Specifications
1163
771
  const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
@@ -1518,73 +1126,3 @@ const listByScopeNextOperationSpec: coreClient.OperationSpec = {
1518
1126
  headerParameters: [Parameters.accept],
1519
1127
  serializer
1520
1128
  };
1521
- const listAtResourceGroupLevelNextNextOperationSpec: coreClient.OperationSpec = {
1522
- path: "{nextLink}",
1523
- httpMethod: "GET",
1524
- responses: {
1525
- 200: {
1526
- bodyMapper: Mappers.ManagementLockListResult
1527
- }
1528
- },
1529
- queryParameters: [Parameters.apiVersion, Parameters.filter],
1530
- urlParameters: [
1531
- Parameters.$host,
1532
- Parameters.nextLink,
1533
- Parameters.resourceGroupName,
1534
- Parameters.subscriptionId
1535
- ],
1536
- headerParameters: [Parameters.accept],
1537
- serializer
1538
- };
1539
- const listAtResourceLevelNextNextOperationSpec: coreClient.OperationSpec = {
1540
- path: "{nextLink}",
1541
- httpMethod: "GET",
1542
- responses: {
1543
- 200: {
1544
- bodyMapper: Mappers.ManagementLockListResult
1545
- }
1546
- },
1547
- queryParameters: [Parameters.apiVersion, Parameters.filter],
1548
- urlParameters: [
1549
- Parameters.$host,
1550
- Parameters.nextLink,
1551
- Parameters.resourceGroupName,
1552
- Parameters.subscriptionId,
1553
- Parameters.resourceProviderNamespace,
1554
- Parameters.parentResourcePath,
1555
- Parameters.resourceType,
1556
- Parameters.resourceName
1557
- ],
1558
- headerParameters: [Parameters.accept],
1559
- serializer
1560
- };
1561
- const listAtSubscriptionLevelNextNextOperationSpec: coreClient.OperationSpec = {
1562
- path: "{nextLink}",
1563
- httpMethod: "GET",
1564
- responses: {
1565
- 200: {
1566
- bodyMapper: Mappers.ManagementLockListResult
1567
- }
1568
- },
1569
- queryParameters: [Parameters.apiVersion, Parameters.filter],
1570
- urlParameters: [
1571
- Parameters.$host,
1572
- Parameters.nextLink,
1573
- Parameters.subscriptionId
1574
- ],
1575
- headerParameters: [Parameters.accept],
1576
- serializer
1577
- };
1578
- const listByScopeNextNextOperationSpec: coreClient.OperationSpec = {
1579
- path: "{nextLink}",
1580
- httpMethod: "GET",
1581
- responses: {
1582
- 200: {
1583
- bodyMapper: Mappers.ManagementLockListResult
1584
- }
1585
- },
1586
- queryParameters: [Parameters.apiVersion, Parameters.filter],
1587
- urlParameters: [Parameters.$host, Parameters.nextLink, Parameters.scope],
1588
- headerParameters: [Parameters.accept],
1589
- serializer
1590
- };
@@ -6,11 +6,9 @@
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 {
12
11
  Operation,
13
- AuthorizationOperationsListNextOptionalParams,
14
12
  AuthorizationOperationsListOptionalParams
15
13
  } from "../models";
16
14
 
@@ -24,13 +22,4 @@ export interface AuthorizationOperations {
24
22
  list(
25
23
  options?: AuthorizationOperationsListOptionalParams
26
24
  ): PagedAsyncIterableIterator<Operation>;
27
- /**
28
- * ListNext
29
- * @param nextLink The nextLink from the previous successful call to the List method.
30
- * @param options The options parameters.
31
- */
32
- listNext(
33
- nextLink: string,
34
- options?: AuthorizationOperationsListNextOptionalParams
35
- ): PagedAsyncIterableIterator<Operation>;
36
25
  }
@@ -6,17 +6,12 @@
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 {
12
11
  ManagementLockObject,
13
- ManagementLocksListAtResourceGroupLevelNextOptionalParams,
14
12
  ManagementLocksListAtResourceGroupLevelOptionalParams,
15
- ManagementLocksListAtResourceLevelNextOptionalParams,
16
13
  ManagementLocksListAtResourceLevelOptionalParams,
17
- ManagementLocksListAtSubscriptionLevelNextOptionalParams,
18
14
  ManagementLocksListAtSubscriptionLevelOptionalParams,
19
- ManagementLocksListByScopeNextOptionalParams,
20
15
  ManagementLocksListByScopeOptionalParams,
21
16
  ManagementLocksCreateOrUpdateAtResourceGroupLevelOptionalParams,
22
17
  ManagementLocksCreateOrUpdateAtResourceGroupLevelResponse,
@@ -90,63 +85,6 @@ export interface ManagementLocks {
90
85
  scope: string,
91
86
  options?: ManagementLocksListByScopeOptionalParams
92
87
  ): PagedAsyncIterableIterator<ManagementLockObject>;
93
- /**
94
- * ListAtResourceGroupLevelNext
95
- * @param resourceGroupName The name of the resource group containing the locks to get.
96
- * @param nextLink The nextLink from the previous successful call to the ListAtResourceGroupLevel
97
- * method.
98
- * @param options The options parameters.
99
- */
100
- listAtResourceGroupLevelNext(
101
- resourceGroupName: string,
102
- nextLink: string,
103
- options?: ManagementLocksListAtResourceGroupLevelNextOptionalParams
104
- ): PagedAsyncIterableIterator<ManagementLockObject>;
105
- /**
106
- * ListAtResourceLevelNext
107
- * @param resourceGroupName The name of the resource group containing the locked resource. The name is
108
- * case insensitive.
109
- * @param resourceProviderNamespace The namespace of the resource provider.
110
- * @param parentResourcePath The parent resource identity.
111
- * @param resourceType The resource type of the locked resource.
112
- * @param resourceName The name of the locked resource.
113
- * @param nextLink The nextLink from the previous successful call to the ListAtResourceLevel method.
114
- * @param options The options parameters.
115
- */
116
- listAtResourceLevelNext(
117
- resourceGroupName: string,
118
- resourceProviderNamespace: string,
119
- parentResourcePath: string,
120
- resourceType: string,
121
- resourceName: string,
122
- nextLink: string,
123
- options?: ManagementLocksListAtResourceLevelNextOptionalParams
124
- ): PagedAsyncIterableIterator<ManagementLockObject>;
125
- /**
126
- * ListAtSubscriptionLevelNext
127
- * @param nextLink The nextLink from the previous successful call to the ListAtSubscriptionLevel
128
- * method.
129
- * @param options The options parameters.
130
- */
131
- listAtSubscriptionLevelNext(
132
- nextLink: string,
133
- options?: ManagementLocksListAtSubscriptionLevelNextOptionalParams
134
- ): PagedAsyncIterableIterator<ManagementLockObject>;
135
- /**
136
- * ListByScopeNext
137
- * @param scope The scope for the lock. When providing a scope for the assignment, use
138
- * '/subscriptions/{subscriptionId}' for subscriptions,
139
- * '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}' for resource groups, and
140
- * '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePathIfPresent}/{resourceType}/{resourceName}'
141
- * for resources.
142
- * @param nextLink The nextLink from the previous successful call to the ListByScope method.
143
- * @param options The options parameters.
144
- */
145
- listByScopeNext(
146
- scope: string,
147
- nextLink: string,
148
- options?: ManagementLocksListByScopeNextOptionalParams
149
- ): PagedAsyncIterableIterator<ManagementLockObject>;
150
88
  /**
151
89
  * When you apply a lock at a parent scope, all child resources inherit the same lock. To create
152
90
  * management locks, you must have access to Microsoft.Authorization/* or
package/tsconfig.json CHANGED
@@ -9,12 +9,11 @@
9
9
  "esModuleInterop": true,
10
10
  "allowSyntheticDefaultImports": true,
11
11
  "forceConsistentCasingInFileNames": true,
12
- "preserveConstEnums": true,
13
12
  "lib": ["es6", "dom"],
14
13
  "declaration": true,
15
- "outDir": "./esm",
14
+ "outDir": "./dist-esm",
16
15
  "importHelpers": true
17
16
  },
18
- "include": ["./src/**/*.ts"],
17
+ "include": ["./src/**/*.ts", "./test/**/*.ts"],
19
18
  "exclude": ["node_modules"]
20
19
  }