@azure/arm-links 2.0.0-beta.1 → 2.0.0

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 +6 -11
  2. package/README.md +15 -9
  3. package/dist/index.js +6 -247
  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}/managementLinkClient.d.ts +5 -2
  12. package/dist-esm/src/managementLinkClient.d.ts.map +1 -0
  13. package/{esm/managementLinkClientContext.js → dist-esm/src/managementLinkClient.js} +7 -4
  14. package/dist-esm/src/managementLinkClient.js.map +1 -0
  15. package/{esm → dist-esm/src}/models/index.d.ts +0 -17
  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/index.d.ts +0 -0
  28. package/dist-esm/src/operations/index.d.ts.map +1 -0
  29. package/{esm → dist-esm/src}/operations/index.js +0 -0
  30. package/dist-esm/src/operations/index.js.map +1 -0
  31. package/{esm → dist-esm/src}/operations/operations.d.ts +4 -19
  32. package/dist-esm/src/operations/operations.d.ts.map +1 -0
  33. package/{esm → dist-esm/src}/operations/operations.js +1 -72
  34. package/dist-esm/src/operations/operations.js.map +1 -0
  35. package/{esm/operationsInterfaces → dist-esm/src/operations}/resourceLinks.d.ts +43 -19
  36. package/dist-esm/src/operations/resourceLinks.d.ts.map +1 -0
  37. package/{esm → dist-esm/src}/operations/resourceLinks.js +1 -152
  38. package/dist-esm/src/operations/resourceLinks.js.map +1 -0
  39. package/{esm → dist-esm/src}/operationsInterfaces/index.d.ts +0 -0
  40. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  41. package/{esm → dist-esm/src}/operationsInterfaces/index.js +0 -0
  42. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  43. package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
  44. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
  45. package/{esm → dist-esm/src}/operationsInterfaces/operations.js +1 -1
  46. package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
  47. package/dist-esm/src/operationsInterfaces/resourceLinks.d.ts +45 -0
  48. package/dist-esm/src/operationsInterfaces/resourceLinks.d.ts.map +1 -0
  49. package/{esm → dist-esm/src}/operationsInterfaces/resourceLinks.js +1 -1
  50. package/dist-esm/src/operationsInterfaces/resourceLinks.js.map +1 -0
  51. package/dist-esm/test/links_examples.d.ts +4 -0
  52. package/dist-esm/test/links_examples.d.ts.map +1 -0
  53. package/dist-esm/test/links_examples.js +129 -0
  54. package/dist-esm/test/links_examples.js.map +1 -0
  55. package/package.json +28 -33
  56. package/review/arm-links.api.md +5 -36
  57. package/src/index.ts +0 -1
  58. package/src/managementLinkClient.ts +46 -3
  59. package/src/models/index.ts +0 -24
  60. package/src/operations/operations.ts +5 -82
  61. package/src/operations/resourceLinks.ts +5 -186
  62. package/src/operationsInterfaces/operations.ts +1 -15
  63. package/src/operationsInterfaces/resourceLinks.ts +0 -25
  64. package/tsconfig.json +2 -3
  65. package/{esm/index.d.ts → types/arm-links.d.ts} +4 -58
  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/managementLinkClient.d.ts.map +0 -1
  70. package/esm/managementLinkClient.js +0 -23
  71. package/esm/managementLinkClient.js.map +0 -1
  72. package/esm/managementLinkClientContext.d.ts +0 -16
  73. package/esm/managementLinkClientContext.d.ts.map +0 -1
  74. package/esm/managementLinkClientContext.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/index.d.ts.map +0 -1
  82. package/esm/operations/index.js.map +0 -1
  83. package/esm/operations/operations.d.ts.map +0 -1
  84. package/esm/operations/operations.js.map +0 -1
  85. package/esm/operations/resourceLinks.d.ts +0 -120
  86. package/esm/operations/resourceLinks.d.ts.map +0 -1
  87. package/esm/operations/resourceLinks.js.map +0 -1
  88. package/esm/operationsInterfaces/index.d.ts.map +0 -1
  89. package/esm/operationsInterfaces/index.js.map +0 -1
  90. package/esm/operationsInterfaces/operations.d.ts +0 -18
  91. package/esm/operationsInterfaces/operations.d.ts.map +0 -1
  92. package/esm/operationsInterfaces/operations.js.map +0 -1
  93. package/esm/operationsInterfaces/resourceLinks.d.ts.map +0 -1
  94. package/esm/operationsInterfaces/resourceLinks.js.map +0 -1
  95. package/src/managementLinkClientContext.ts +0 -70
package/CHANGELOG.md CHANGED
@@ -1,16 +1,11 @@
1
1
  # Release History
2
+
3
+ ## 2.0.0 (2021-12-07)
2
4
 
3
- ## 2.0.0-beta.1 (2021-10-09)
5
+ The package of @azure/arm-links is using our next generation design principles since version 2.0.0, which contains breaking changes.
4
6
 
5
- This is the first preview for the new version of the `@azure/arm-links` package that follows the new [guidelines for TypeScript SDKs](https://azure.github.io/azure-sdk/typescript_introduction.html) for Azure services.
7
+ To understand the detail of the change, please refer to [Changelog](https://aka.ms/js-track2-changelog).
6
8
 
7
- While this package remains auto generated, the SDK generator itself has undergone changes to comply with the above guidelines in order to generate packages that are idiomatic to the JavaScript/TypeScript ecosystem and consistent with other packages for Azure services. For more on this, please see [State of the Azure SDK 2021](https://devblogs.microsoft.com/azure-sdk/state-of-the-azure-sdk-2021/).
9
+ To migrate the existing applications to the latest version, please refer to [Migration Guide](https://aka.ms/js-track2-migration-guide).
8
10
 
9
- Please note that this version has breaking changes, all of which were made after careful consideration during the authoring of the guidelines and user studies.
10
-
11
- **Noteworthy changes and features**
12
- - Authentication: The packages `@azure/ms-rest-nodeauth` or `@azure/ms-rest-browserauth` are no longer supported. Use package [@azure/identity](https://www.npmjs.com/package/@azure/identity) instead. Select a credential from Azure Identity examples based on the authentication method of your choice.
13
- - Callbacks: Method overloads that used callbacks have been removed and the use of promises is encouraged instead.
14
- - List operations now return an iterable result that follows the `PagedAsyncIterableIterator` interface as opposed to the previous model where you had to make a new request using the link to the next page.
15
- - Long running operations i.e. the Lro related object returned by methods whose names started with `begin`, now uses `pollUntilDone` to check whether the request is finished, instead of `pollUntilFinished`. To get the final result, use the corresponding method that will have the suffix `AndWait`.
16
- - The SDK only supports ECMAScript 2015 (ES6) and beyond, all projects that referenced this SDK should be upgraded to use ES6.
11
+ To learn more, please refer to our documentation [Quick Start](https://aka.ms/js-track2-quickstart).
package/README.md CHANGED
@@ -4,7 +4,7 @@ This package contains an isomorphic SDK (runs both in Node.js and in browsers) f
4
4
 
5
5
  Azure resources can be linked together to form logical relationships. You can establish links between resources belonging to different resource groups. However, all the linked resources must belong to the same subscription. Each resource can be linked to 50 other resources. If any of the linked resources are deleted or moved, the link owner must clean up the remaining link.
6
6
 
7
- [Source code](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/links/arm-links) |
7
+ [Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/links/arm-links) |
8
8
  [Package (NPM)](https://www.npmjs.com/package/@azure/arm-links) |
9
9
  [API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-links) |
10
10
  [Samples](https://github.com/Azure-Samples/azure-samples-js-management)
@@ -33,17 +33,19 @@ npm install @azure/arm-links
33
33
  To create a client object to access the Azure ManagementLink API, you will need the `endpoint` of your Azure ManagementLink resource and a `credential`. The Azure ManagementLink client can use Azure Active Directory credentials to authenticate.
34
34
  You can find the endpoint for your Azure ManagementLink resource in the [Azure Portal][azure_portal].
35
35
 
36
- #### Using an Azure Active Directory Credential
36
+ You can authenticate with Azure Active Directory using a credential from the [@azure/identity][azure_identity] library or [an existing AAD Token](https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/identity/identity/samples/AzureIdentityExamples.md#authenticating-with-a-pre-fetched-access-token).
37
37
 
38
- You can authenticate with Azure Active Directory using the [Azure Identity library][azure_identity]. To use the [DefaultAzureCredential][defaultazurecredential] provider shown below, or other credential providers provided with the Azure SDK, please install the `@azure/identity` package:
38
+ To use the [DefaultAzureCredential][defaultazurecredential] provider shown below, or other credential providers provided with the Azure SDK, please install the `@azure/identity` package:
39
39
 
40
40
  ```bash
41
41
  npm install @azure/identity
42
42
  ```
43
43
 
44
- You will also need to register a new AAD application and grant access to Azure ManagementLink by assigning the suitable role to your service principal (note: roles such as `"Owner"` will not grant the necessary permissions).
44
+ You will also need to **register a new AAD application and grant access to Azure ManagementLink** by assigning the suitable role to your service principal (note: roles such as `"Owner"` will not grant the necessary permissions).
45
45
  Set the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`.
46
46
 
47
+ For more information about how to create an Azure AD Application check out [this guide](https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal).
48
+
47
49
  ```javascript
48
50
  const { ManagementLinkClient } = require("@azure/arm-links");
49
51
  const { DefaultAzureCredential } = require("@azure/identity");
@@ -51,6 +53,10 @@ const subscriptionId = "00000000-0000-0000-0000-000000000000";
51
53
  const client = new ManagementLinkClient(new DefaultAzureCredential(), subscriptionId);
52
54
  ```
53
55
 
56
+
57
+ ### JavaScript Bundle
58
+ To use this client library in the browser, first you need to use a bundler. For details on how to do this, please refer to our [bundling documentation](https://aka.ms/AzureSDKBundling).
59
+
54
60
  ## Key concepts
55
61
 
56
62
  ### ManagementLinkClient
@@ -64,11 +70,11 @@ const client = new ManagementLinkClient(new DefaultAzureCredential(), subscripti
64
70
  Enabling logging may help uncover useful information about failures. In order to see a log of HTTP requests and responses, set the `AZURE_LOG_LEVEL` environment variable to `info`. Alternatively, logging can be enabled at runtime by calling `setLogLevel` in the `@azure/logger`:
65
71
 
66
72
  ```javascript
67
- import { setLogLevel } from "@azure/logger";
73
+ const { setLogLevel } = require("@azure/logger");
68
74
  setLogLevel("info");
69
75
  ```
70
76
 
71
- For more detailed instructions on how to enable logs, you can look at the [@azure/logger package docs](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/core/logger).
77
+ For more detailed instructions on how to enable logs, you can look at the [@azure/logger package docs](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/core/logger).
72
78
 
73
79
  ## Next steps
74
80
 
@@ -76,7 +82,7 @@ Please take a look at the [samples](https://github.com/Azure-Samples/azure-sampl
76
82
 
77
83
  ## Contributing
78
84
 
79
- If you'd like to contribute to this library, please read the [contributing guide](https://github.com/Azure/azure-sdk-for-js/blob/master/CONTRIBUTING.md) to learn more about how to build and test the code.
85
+ If you'd like to contribute to this library, please read the [contributing guide](https://github.com/Azure/azure-sdk-for-js/blob/main/CONTRIBUTING.md) to learn more about how to build and test the code.
80
86
 
81
87
  ## Related projects
82
88
 
@@ -88,5 +94,5 @@ If you'd like to contribute to this library, please read the [contributing guide
88
94
  [azure_sub]: https://azure.microsoft.com/free/
89
95
  [azure_sub]: https://azure.microsoft.com/free/
90
96
  [azure_portal]: https://portal.azure.com
91
- [azure_identity]: https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/identity/identity
92
- [defaultazurecredential]: https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/identity/identity#defaultazurecredential
97
+ [azure_identity]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity
98
+ [defaultazurecredential]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity#defaultazurecredential
package/dist/index.js CHANGED
@@ -2,9 +2,8 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var tslib = require('tslib');
6
- require('@azure/core-paging');
7
5
  var coreClient = require('@azure/core-client');
6
+ var tslib = require('tslib');
8
7
 
9
8
  /*
10
9
  * Copyright (c) Microsoft Corporation.
@@ -339,7 +338,7 @@ const filter1 = {
339
338
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
340
339
  */
341
340
  /// <reference lib="esnext.asynciterable" />
342
- /** Class representing a Operations. */
341
+ /** Class containing Operations operations. */
343
342
  class OperationsImpl {
344
343
  /**
345
344
  * Initialize a new instance of the class Operations class.
@@ -396,55 +395,6 @@ class OperationsImpl {
396
395
  }
397
396
  });
398
397
  }
399
- /**
400
- * ListNext
401
- * @param nextLink The nextLink from the previous successful call to the List method.
402
- * @param options The options parameters.
403
- */
404
- listNext(nextLink, options) {
405
- const iter = this.listNextPagingAll(nextLink, options);
406
- return {
407
- next() {
408
- return iter.next();
409
- },
410
- [Symbol.asyncIterator]() {
411
- return this;
412
- },
413
- byPage: () => {
414
- return this.listNextPagingPage(nextLink, options);
415
- }
416
- };
417
- }
418
- listNextPagingPage(nextLink, options) {
419
- return tslib.__asyncGenerator(this, arguments, function* listNextPagingPage_1() {
420
- let result = yield tslib.__await(this._listNext(nextLink, options));
421
- yield yield tslib.__await(result.value || []);
422
- let continuationToken = result.nextLink;
423
- while (continuationToken) {
424
- result = yield tslib.__await(this._listNextNext(continuationToken, options));
425
- continuationToken = result.nextLink;
426
- yield yield tslib.__await(result.value || []);
427
- }
428
- });
429
- }
430
- listNextPagingAll(nextLink, options) {
431
- return tslib.__asyncGenerator(this, arguments, function* listNextPagingAll_1() {
432
- var e_2, _a;
433
- try {
434
- for (var _b = tslib.__asyncValues(this.listNextPagingPage(nextLink, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
435
- const page = _c.value;
436
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
437
- }
438
- }
439
- catch (e_2_1) { e_2 = { error: e_2_1 }; }
440
- finally {
441
- try {
442
- if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
443
- }
444
- finally { if (e_2) throw e_2.error; }
445
- }
446
- });
447
- }
448
398
  /**
449
399
  * Lists all of the available Microsoft.Resources REST API operations.
450
400
  * @param options The options parameters.
@@ -460,14 +410,6 @@ class OperationsImpl {
460
410
  _listNext(nextLink, options) {
461
411
  return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
462
412
  }
463
- /**
464
- * ListNextNext
465
- * @param nextLink The nextLink from the previous successful call to the ListNext method.
466
- * @param options The options parameters.
467
- */
468
- _listNextNext(nextLink, options) {
469
- return this.client.sendOperationRequest({ nextLink, options }, listNextNextOperationSpec);
470
- }
471
413
  }
472
414
  // Operation Specifications
473
415
  const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
@@ -497,19 +439,6 @@ const listNextOperationSpec = {
497
439
  headerParameters: [accept],
498
440
  serializer
499
441
  };
500
- const listNextNextOperationSpec = {
501
- path: "{nextLink}",
502
- httpMethod: "GET",
503
- responses: {
504
- 200: {
505
- bodyMapper: OperationListResult
506
- }
507
- },
508
- queryParameters: [apiVersion],
509
- urlParameters: [$host, nextLink],
510
- headerParameters: [accept],
511
- serializer
512
- };
513
442
 
514
443
  /*
515
444
  * Copyright (c) Microsoft Corporation.
@@ -519,7 +448,7 @@ const listNextNextOperationSpec = {
519
448
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
520
449
  */
521
450
  /// <reference lib="esnext.asynciterable" />
522
- /** Class representing a ResourceLinks. */
451
+ /** Class containing ResourceLinks operations. */
523
452
  class ResourceLinksImpl {
524
453
  /**
525
454
  * Initialize a new instance of the class ResourceLinks class.
@@ -627,107 +556,6 @@ class ResourceLinksImpl {
627
556
  }
628
557
  });
629
558
  }
630
- /**
631
- * ListAtSubscriptionNext
632
- * @param nextLink The nextLink from the previous successful call to the ListAtSubscription method.
633
- * @param options The options parameters.
634
- */
635
- listAtSubscriptionNext(nextLink, options) {
636
- const iter = this.listAtSubscriptionNextPagingAll(nextLink, options);
637
- return {
638
- next() {
639
- return iter.next();
640
- },
641
- [Symbol.asyncIterator]() {
642
- return this;
643
- },
644
- byPage: () => {
645
- return this.listAtSubscriptionNextPagingPage(nextLink, options);
646
- }
647
- };
648
- }
649
- listAtSubscriptionNextPagingPage(nextLink, options) {
650
- return tslib.__asyncGenerator(this, arguments, function* listAtSubscriptionNextPagingPage_1() {
651
- let result = yield tslib.__await(this._listAtSubscriptionNext(nextLink, options));
652
- yield yield tslib.__await(result.value || []);
653
- let continuationToken = result.nextLink;
654
- while (continuationToken) {
655
- result = yield tslib.__await(this._listAtSubscriptionNextNext(continuationToken, options));
656
- continuationToken = result.nextLink;
657
- yield yield tslib.__await(result.value || []);
658
- }
659
- });
660
- }
661
- listAtSubscriptionNextPagingAll(nextLink, options) {
662
- return tslib.__asyncGenerator(this, arguments, function* listAtSubscriptionNextPagingAll_1() {
663
- var e_3, _a;
664
- try {
665
- for (var _b = tslib.__asyncValues(this.listAtSubscriptionNextPagingPage(nextLink, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
666
- const page = _c.value;
667
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
668
- }
669
- }
670
- catch (e_3_1) { e_3 = { error: e_3_1 }; }
671
- finally {
672
- try {
673
- if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
674
- }
675
- finally { if (e_3) throw e_3.error; }
676
- }
677
- });
678
- }
679
- /**
680
- * ListAtSourceScopeNext
681
- * @param scope The fully qualified ID of the scope for getting the resource links. For example, to
682
- * list resource links at and under a resource group, set the scope to
683
- * /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myGroup.
684
- * @param nextLink The nextLink from the previous successful call to the ListAtSourceScope method.
685
- * @param options The options parameters.
686
- */
687
- listAtSourceScopeNext(scope, nextLink, options) {
688
- const iter = this.listAtSourceScopeNextPagingAll(scope, nextLink, options);
689
- return {
690
- next() {
691
- return iter.next();
692
- },
693
- [Symbol.asyncIterator]() {
694
- return this;
695
- },
696
- byPage: () => {
697
- return this.listAtSourceScopeNextPagingPage(scope, nextLink, options);
698
- }
699
- };
700
- }
701
- listAtSourceScopeNextPagingPage(scope, nextLink, options) {
702
- return tslib.__asyncGenerator(this, arguments, function* listAtSourceScopeNextPagingPage_1() {
703
- let result = yield tslib.__await(this._listAtSourceScopeNext(scope, nextLink, options));
704
- yield yield tslib.__await(result.value || []);
705
- let continuationToken = result.nextLink;
706
- while (continuationToken) {
707
- result = yield tslib.__await(this._listAtSourceScopeNextNext(scope, continuationToken, options));
708
- continuationToken = result.nextLink;
709
- yield yield tslib.__await(result.value || []);
710
- }
711
- });
712
- }
713
- listAtSourceScopeNextPagingAll(scope, nextLink, options) {
714
- return tslib.__asyncGenerator(this, arguments, function* listAtSourceScopeNextPagingAll_1() {
715
- var e_4, _a;
716
- try {
717
- for (var _b = tslib.__asyncValues(this.listAtSourceScopeNextPagingPage(scope, nextLink, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
718
- const page = _c.value;
719
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
720
- }
721
- }
722
- catch (e_4_1) { e_4 = { error: e_4_1 }; }
723
- finally {
724
- try {
725
- if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
726
- }
727
- finally { if (e_4) throw e_4.error; }
728
- }
729
- });
730
- }
731
559
  /**
732
560
  * Deletes a resource link with the specified ID.
733
561
  * @param linkId The fully qualified ID of the resource link. Use the format,
@@ -796,25 +624,6 @@ class ResourceLinksImpl {
796
624
  _listAtSourceScopeNext(scope, nextLink, options) {
797
625
  return this.client.sendOperationRequest({ scope, nextLink, options }, listAtSourceScopeNextOperationSpec);
798
626
  }
799
- /**
800
- * ListAtSubscriptionNextNext
801
- * @param nextLink The nextLink from the previous successful call to the ListAtSubscriptionNext method.
802
- * @param options The options parameters.
803
- */
804
- _listAtSubscriptionNextNext(nextLink, options) {
805
- return this.client.sendOperationRequest({ nextLink, options }, listAtSubscriptionNextNextOperationSpec);
806
- }
807
- /**
808
- * ListAtSourceScopeNextNext
809
- * @param scope The fully qualified ID of the scope for getting the resource links. For example, to
810
- * list resource links at and under a resource group, set the scope to
811
- * /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myGroup.
812
- * @param nextLink The nextLink from the previous successful call to the ListAtSourceScopeNext method.
813
- * @param options The options parameters.
814
- */
815
- _listAtSourceScopeNextNext(scope, nextLink, options) {
816
- return this.client.sendOperationRequest({ scope, nextLink, options }, listAtSourceScopeNextNextOperationSpec);
817
- }
818
627
  }
819
628
  // Operation Specifications
820
629
  const serializer$1 = coreClient.createSerializer(Mappers, /* isXml */ false);
@@ -913,36 +722,6 @@ const listAtSourceScopeNextOperationSpec = {
913
722
  headerParameters: [accept],
914
723
  serializer: serializer$1
915
724
  };
916
- const listAtSubscriptionNextNextOperationSpec = {
917
- path: "{nextLink}",
918
- httpMethod: "GET",
919
- responses: {
920
- 200: {
921
- bodyMapper: ResourceLinkResult
922
- }
923
- },
924
- queryParameters: [apiVersion, filter],
925
- urlParameters: [
926
- $host,
927
- nextLink,
928
- subscriptionId
929
- ],
930
- headerParameters: [accept],
931
- serializer: serializer$1
932
- };
933
- const listAtSourceScopeNextNextOperationSpec = {
934
- path: "{nextLink}",
935
- httpMethod: "GET",
936
- responses: {
937
- 200: {
938
- bodyMapper: ResourceLinkResult
939
- }
940
- },
941
- queryParameters: [apiVersion, filter1],
942
- urlParameters: [$host, nextLink, scope],
943
- headerParameters: [accept],
944
- serializer: serializer$1
945
- };
946
725
 
947
726
  /*
948
727
  * Copyright (c) Microsoft Corporation.
@@ -951,9 +730,9 @@ const listAtSourceScopeNextNextOperationSpec = {
951
730
  * Code generated by Microsoft (R) AutoRest Code Generator.
952
731
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
953
732
  */
954
- class ManagementLinkClientContext extends coreClient.ServiceClient {
733
+ class ManagementLinkClient extends coreClient.ServiceClient {
955
734
  /**
956
- * Initializes a new instance of the ManagementLinkClientContext class.
735
+ * Initializes a new instance of the ManagementLinkClient class.
957
736
  * @param credentials Subscription credentials which uniquely identify client subscription.
958
737
  * @param subscriptionId The ID of the target subscription.
959
738
  * @param options The parameter options
@@ -973,7 +752,7 @@ class ManagementLinkClientContext extends coreClient.ServiceClient {
973
752
  requestContentType: "application/json; charset=utf-8",
974
753
  credential: credentials
975
754
  };
976
- const packageDetails = `azsdk-js-arm-links/2.0.0-beta.1`;
755
+ const packageDetails = `azsdk-js-arm-links/2.0.0`;
977
756
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
978
757
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
979
758
  : `${packageDetails}`;
@@ -989,30 +768,10 @@ class ManagementLinkClientContext extends coreClient.ServiceClient {
989
768
  // Assigning values to Constant parameters
990
769
  this.$host = options.$host || "https://management.azure.com";
991
770
  this.apiVersion = options.apiVersion || "2016-09-01";
992
- }
993
- }
994
-
995
- /*
996
- * Copyright (c) Microsoft Corporation.
997
- * Licensed under the MIT License.
998
- *
999
- * Code generated by Microsoft (R) AutoRest Code Generator.
1000
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1001
- */
1002
- class ManagementLinkClient extends ManagementLinkClientContext {
1003
- /**
1004
- * Initializes a new instance of the ManagementLinkClient class.
1005
- * @param credentials Subscription credentials which uniquely identify client subscription.
1006
- * @param subscriptionId The ID of the target subscription.
1007
- * @param options The parameter options
1008
- */
1009
- constructor(credentials, subscriptionId, options) {
1010
- super(credentials, subscriptionId, options);
1011
771
  this.operations = new OperationsImpl(this);
1012
772
  this.resourceLinks = new ResourceLinksImpl(this);
1013
773
  }
1014
774
  }
1015
775
 
1016
776
  exports.ManagementLinkClient = ManagementLinkClient;
1017
- exports.ManagementLinkClientContext = ManagementLinkClientContext;
1018
777
  //# sourceMappingURL=index.js.map