@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/package.json CHANGED
@@ -3,28 +3,20 @@
3
3
  "sdk-type": "mgmt",
4
4
  "author": "Microsoft Corporation",
5
5
  "description": "A generated SDK for ManagementLinkClient.",
6
- "version": "2.0.0-beta.1",
7
- "engines": {
8
- "node": ">=12.0.0"
9
- },
6
+ "version": "2.0.0",
7
+ "engines": { "node": ">=12.0.0" },
10
8
  "dependencies": {
11
- "@azure/core-paging": "^1.1.1",
9
+ "@azure/core-paging": "^1.2.0",
12
10
  "@azure/core-client": "^1.0.0",
13
11
  "@azure/core-auth": "^1.3.0",
14
12
  "@azure/core-rest-pipeline": "^1.1.0",
15
13
  "tslib": "^2.2.0"
16
14
  },
17
- "keywords": [
18
- "node",
19
- "azure",
20
- "typescript",
21
- "browser",
22
- "isomorphic"
23
- ],
15
+ "keywords": ["node", "azure", "typescript", "browser", "isomorphic"],
24
16
  "license": "MIT",
25
17
  "main": "./dist/index.js",
26
- "module": "./esm/index.js",
27
- "types": "./esm/index.d.ts",
18
+ "module": "./dist-esm/src/index.js",
19
+ "types": "./types/arm-links.d.ts",
28
20
  "devDependencies": {
29
21
  "@microsoft/api-extractor": "^7.18.11",
30
22
  "@rollup/plugin-commonjs": "11.0.2",
@@ -34,44 +26,48 @@
34
26
  "mkdirp": "^1.0.4",
35
27
  "rollup": "^1.16.3",
36
28
  "rollup-plugin-sourcemaps": "^0.4.2",
37
- "rollup-plugin-node-resolve": "^3.4.0",
38
29
  "typescript": "~4.2.0",
39
- "uglify-js": "^3.4.9"
30
+ "uglify-js": "^3.4.9",
31
+ "rimraf": "^3.0.0",
32
+ "@azure/identity": "^2.0.1",
33
+ "@azure-tools/test-recorder": "^1.0.0",
34
+ "mocha": "^7.1.1",
35
+ "cross-env": "^7.0.2",
36
+ "@azure/arm-resources": "^5.0.0"
40
37
  },
41
38
  "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/links/arm-links",
42
39
  "repository": {
43
40
  "type": "git",
44
41
  "url": "https://github.com/Azure/azure-sdk-for-js.git"
45
42
  },
46
- "bugs": {
47
- "url": "https://github.com/Azure/azure-sdk-for-js/issues"
48
- },
43
+ "bugs": { "url": "https://github.com/Azure/azure-sdk-for-js/issues" },
49
44
  "files": [
50
45
  "dist/**/*.js",
51
46
  "dist/**/*.js.map",
52
47
  "dist/**/*.d.ts",
53
48
  "dist/**/*.d.ts.map",
54
- "esm/**/*.js",
55
- "esm/**/*.js.map",
56
- "esm/**/*.d.ts",
57
- "esm/**/*.d.ts.map",
49
+ "dist-esm/**/*.js",
50
+ "dist-esm/**/*.js.map",
51
+ "dist-esm/**/*.d.ts",
52
+ "dist-esm/**/*.d.ts.map",
58
53
  "src/**/*.ts",
59
54
  "README.md",
60
55
  "LICENSE",
61
56
  "rollup.config.js",
62
57
  "tsconfig.json",
63
58
  "review/*",
64
- "CHANGELOG.md"
59
+ "CHANGELOG.md",
60
+ "types/*"
65
61
  ],
66
62
  "scripts": {
67
- "build": "tsc && rollup -c rollup.config.js && npm run minify && mkdirp ./review && npm run extract-api",
63
+ "build": "npm run clean && tsc && rollup -c 2>&1 && npm run minify && mkdirp ./review && npm run extract-api",
68
64
  "minify": "uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js",
69
65
  "prepack": "npm run build",
70
66
  "pack": "npm pack 2>&1",
71
- "extract-api": "mkdirp ./review && api-extractor run --local",
67
+ "extract-api": "api-extractor run --local",
72
68
  "lint": "echo skipped",
73
69
  "audit": "echo skipped",
74
- "clean": "echo skipped",
70
+ "clean": "rimraf dist dist-browser dist-esm test-dist temp types *.tgz *.log",
75
71
  "build:node": "echo skipped",
76
72
  "build:browser": "echo skipped",
77
73
  "build:test": "echo skipped",
@@ -79,16 +75,15 @@
79
75
  "check-format": "echo skipped",
80
76
  "execute:samples": "echo skipped",
81
77
  "format": "echo skipped",
82
- "test": "echo skipped",
83
- "prebuild": "echo skipped",
78
+ "test": "npm run integration-test",
84
79
  "test:node": "echo skipped",
85
80
  "test:browser": "echo skipped",
86
- "unit-test": "echo skipped",
87
- "unit-test:node": "echo skipped",
81
+ "unit-test": "npm run unit-test:node && npm run unit-test:browser",
82
+ "unit-test:node": "cross-env TEST_MODE=playback npm run integration-test:node",
88
83
  "unit-test:browser": "echo skipped",
84
+ "integration-test": "npm run integration-test:node && npm run integration-test:browser",
85
+ "integration-test:node": "mocha -r esm --require ts-node/register --timeout 1200000 --full-trace test/*.ts --reporter ../../../common/tools/mocha-multi-reporter.js",
89
86
  "integration-test:browser": "echo skipped",
90
- "integration-test:node": "echo skipped",
91
- "integration-test": "echo skipped",
92
87
  "docs": "echo skipped"
93
88
  },
94
89
  "sideEffects": false,
@@ -9,22 +9,17 @@ import * as coreClient from '@azure/core-client';
9
9
  import { PagedAsyncIterableIterator } from '@azure/core-paging';
10
10
 
11
11
  // @public (undocumented)
12
- export class ManagementLinkClient extends ManagementLinkClientContext {
13
- constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: ManagementLinkClientOptionalParams);
14
- // (undocumented)
15
- operations: Operations;
16
- // (undocumented)
17
- resourceLinks: ResourceLinks;
18
- }
19
-
20
- // @public (undocumented)
21
- export class ManagementLinkClientContext extends coreClient.ServiceClient {
12
+ export class ManagementLinkClient extends coreClient.ServiceClient {
22
13
  // (undocumented)
23
14
  $host: string;
24
15
  constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: ManagementLinkClientOptionalParams);
25
16
  // (undocumented)
26
17
  apiVersion: string;
27
18
  // (undocumented)
19
+ operations: Operations;
20
+ // (undocumented)
21
+ resourceLinks: ResourceLinks;
22
+ // (undocumented)
28
23
  subscriptionId: string;
29
24
  }
30
25
 
@@ -58,16 +53,8 @@ export interface OperationListResult {
58
53
  // @public
59
54
  export interface Operations {
60
55
  list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator<Operation>;
61
- listNext(nextLink: string, options?: OperationsListNextOptionalParams): PagedAsyncIterableIterator<Operation>;
62
- }
63
-
64
- // @public
65
- export interface OperationsListNextNextOptionalParams extends coreClient.OperationOptions {
66
56
  }
67
57
 
68
- // @public
69
- export type OperationsListNextNextResponse = OperationListResult;
70
-
71
58
  // @public
72
59
  export interface OperationsListNextOptionalParams extends coreClient.OperationOptions {
73
60
  }
@@ -114,9 +101,7 @@ export interface ResourceLinks {
114
101
  delete(linkId: string, options?: ResourceLinksDeleteOptionalParams): Promise<void>;
115
102
  get(linkId: string, options?: ResourceLinksGetOptionalParams): Promise<ResourceLinksGetResponse>;
116
103
  listAtSourceScope(scope: string, options?: ResourceLinksListAtSourceScopeOptionalParams): PagedAsyncIterableIterator<ResourceLink>;
117
- listAtSourceScopeNext(scope: string, nextLink: string, options?: ResourceLinksListAtSourceScopeNextOptionalParams): PagedAsyncIterableIterator<ResourceLink>;
118
104
  listAtSubscription(options?: ResourceLinksListAtSubscriptionOptionalParams): PagedAsyncIterableIterator<ResourceLink>;
119
- listAtSubscriptionNext(nextLink: string, options?: ResourceLinksListAtSubscriptionNextOptionalParams): PagedAsyncIterableIterator<ResourceLink>;
120
105
  }
121
106
 
122
107
  // @public
@@ -137,13 +122,6 @@ export interface ResourceLinksGetOptionalParams extends coreClient.OperationOpti
137
122
  // @public
138
123
  export type ResourceLinksGetResponse = ResourceLink;
139
124
 
140
- // @public
141
- export interface ResourceLinksListAtSourceScopeNextNextOptionalParams extends coreClient.OperationOptions {
142
- }
143
-
144
- // @public
145
- export type ResourceLinksListAtSourceScopeNextNextResponse = ResourceLinkResult;
146
-
147
125
  // @public
148
126
  export interface ResourceLinksListAtSourceScopeNextOptionalParams extends coreClient.OperationOptions {
149
127
  }
@@ -158,14 +136,6 @@ export interface ResourceLinksListAtSourceScopeOptionalParams extends coreClient
158
136
  // @public
159
137
  export type ResourceLinksListAtSourceScopeResponse = ResourceLinkResult;
160
138
 
161
- // @public
162
- export interface ResourceLinksListAtSubscriptionNextNextOptionalParams extends coreClient.OperationOptions {
163
- filter?: string;
164
- }
165
-
166
- // @public
167
- export type ResourceLinksListAtSubscriptionNextNextResponse = ResourceLinkResult;
168
-
169
139
  // @public
170
140
  export interface ResourceLinksListAtSubscriptionNextOptionalParams extends coreClient.OperationOptions {
171
141
  filter?: string;
@@ -182,7 +152,6 @@ export interface ResourceLinksListAtSubscriptionOptionalParams extends coreClien
182
152
  // @public
183
153
  export type ResourceLinksListAtSubscriptionResponse = ResourceLinkResult;
184
154
 
185
-
186
155
  // (No @packageDocumentation comment for this package)
187
156
 
188
157
  ```
package/src/index.ts CHANGED
@@ -9,5 +9,4 @@
9
9
  /// <reference lib="esnext.asynciterable" />
10
10
  export * from "./models";
11
11
  export { ManagementLinkClient } from "./managementLinkClient";
12
- export { ManagementLinkClientContext } from "./managementLinkClientContext";
13
12
  export * from "./operationsInterfaces";
@@ -6,13 +6,17 @@
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
8
 
9
+ import * as coreClient from "@azure/core-client";
9
10
  import * as coreAuth from "@azure/core-auth";
10
11
  import { OperationsImpl, ResourceLinksImpl } from "./operations";
11
12
  import { Operations, ResourceLinks } from "./operationsInterfaces";
12
- import { ManagementLinkClientContext } from "./managementLinkClientContext";
13
13
  import { ManagementLinkClientOptionalParams } from "./models";
14
14
 
15
- export class ManagementLinkClient extends ManagementLinkClientContext {
15
+ export class ManagementLinkClient extends coreClient.ServiceClient {
16
+ $host: string;
17
+ apiVersion: string;
18
+ subscriptionId: string;
19
+
16
20
  /**
17
21
  * Initializes a new instance of the ManagementLinkClient class.
18
22
  * @param credentials Subscription credentials which uniquely identify client subscription.
@@ -24,7 +28,46 @@ export class ManagementLinkClient extends ManagementLinkClientContext {
24
28
  subscriptionId: string,
25
29
  options?: ManagementLinkClientOptionalParams
26
30
  ) {
27
- super(credentials, subscriptionId, options);
31
+ if (credentials === undefined) {
32
+ throw new Error("'credentials' cannot be null");
33
+ }
34
+ if (subscriptionId === undefined) {
35
+ throw new Error("'subscriptionId' cannot be null");
36
+ }
37
+
38
+ // Initializing default values for options
39
+ if (!options) {
40
+ options = {};
41
+ }
42
+ const defaults: ManagementLinkClientOptionalParams = {
43
+ requestContentType: "application/json; charset=utf-8",
44
+ credential: credentials
45
+ };
46
+
47
+ const packageDetails = `azsdk-js-arm-links/2.0.0`;
48
+ const userAgentPrefix =
49
+ options.userAgentOptions && options.userAgentOptions.userAgentPrefix
50
+ ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
51
+ : `${packageDetails}`;
52
+
53
+ if (!options.credentialScopes) {
54
+ options.credentialScopes = ["https://management.azure.com/.default"];
55
+ }
56
+ const optionsWithDefaults = {
57
+ ...defaults,
58
+ ...options,
59
+ userAgentOptions: {
60
+ userAgentPrefix
61
+ },
62
+ baseUri: options.endpoint || "https://management.azure.com"
63
+ };
64
+ super(optionsWithDefaults);
65
+ // Parameter assignments
66
+ this.subscriptionId = subscriptionId;
67
+
68
+ // Assigning values to Constant parameters
69
+ this.$host = options.$host || "https://management.azure.com";
70
+ this.apiVersion = options.apiVersion || "2016-09-01";
28
71
  this.operations = new OperationsImpl(this);
29
72
  this.resourceLinks = new ResourceLinksImpl(this);
30
73
  }
@@ -101,13 +101,6 @@ export interface OperationsListNextOptionalParams
101
101
  /** Contains response data for the listNext operation. */
102
102
  export type OperationsListNextResponse = OperationListResult;
103
103
 
104
- /** Optional parameters. */
105
- export interface OperationsListNextNextOptionalParams
106
- extends coreClient.OperationOptions {}
107
-
108
- /** Contains response data for the listNextNext operation. */
109
- export type OperationsListNextNextResponse = OperationListResult;
110
-
111
104
  /** Optional parameters. */
112
105
  export interface ResourceLinksDeleteOptionalParams
113
106
  extends coreClient.OperationOptions {}
@@ -160,23 +153,6 @@ export interface ResourceLinksListAtSourceScopeNextOptionalParams
160
153
  /** Contains response data for the listAtSourceScopeNext operation. */
161
154
  export type ResourceLinksListAtSourceScopeNextResponse = ResourceLinkResult;
162
155
 
163
- /** Optional parameters. */
164
- export interface ResourceLinksListAtSubscriptionNextNextOptionalParams
165
- extends coreClient.OperationOptions {
166
- /** The filter to apply on the list resource links operation. The supported filter for list resource links is targetId. For example, $filter=targetId eq {value} */
167
- filter?: string;
168
- }
169
-
170
- /** Contains response data for the listAtSubscriptionNextNext operation. */
171
- export type ResourceLinksListAtSubscriptionNextNextResponse = ResourceLinkResult;
172
-
173
- /** Optional parameters. */
174
- export interface ResourceLinksListAtSourceScopeNextNextOptionalParams
175
- extends coreClient.OperationOptions {}
176
-
177
- /** Contains response data for the listAtSourceScopeNextNext operation. */
178
- export type ResourceLinksListAtSourceScopeNextNextResponse = ResourceLinkResult;
179
-
180
156
  /** Optional parameters. */
181
157
  export interface ManagementLinkClientOptionalParams
182
158
  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 { Operations } 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 { ManagementLinkClientContext } from "../managementLinkClientContext";
14
+ import { ManagementLinkClient } from "../managementLinkClient";
16
15
  import {
17
16
  Operation,
18
17
  OperationsListNextOptionalParams,
19
18
  OperationsListOptionalParams,
20
- OperationsListNextNextOptionalParams,
21
19
  OperationsListResponse,
22
- OperationsListNextResponse,
23
- OperationsListNextNextResponse
20
+ OperationsListNextResponse
24
21
  } from "../models";
25
22
 
26
23
  /// <reference lib="esnext.asynciterable" />
27
- /** Class representing a Operations. */
24
+ /** Class containing Operations operations. */
28
25
  export class OperationsImpl implements Operations {
29
- private readonly client: ManagementLinkClientContext;
26
+ private readonly client: ManagementLinkClient;
30
27
 
31
28
  /**
32
29
  * Initialize a new instance of the class Operations class.
33
30
  * @param client Reference to the service client
34
31
  */
35
- constructor(client: ManagementLinkClientContext) {
32
+ constructor(client: ManagementLinkClient) {
36
33
  this.client = client;
37
34
  }
38
35
 
@@ -78,52 +75,6 @@ export class OperationsImpl implements Operations {
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?: OperationsListNextOptionalParams
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?: OperationsListNextOptionalParams
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?: OperationsListNextOptionalParams
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.Resources REST API operations.
129
80
  * @param options The options parameters.
@@ -148,21 +99,6 @@ export class OperationsImpl implements Operations {
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?: OperationsListNextNextOptionalParams
160
- ): Promise<OperationsListNextNextResponse> {
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
- };