@azure/arm-resourcehealth 3.1.1-alpha.20230201.1 → 3.2.1-alpha.20230203.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (60) hide show
  1. package/CHANGELOG.md +17 -1
  2. package/LICENSE +1 -1
  3. package/dist/index.js +161 -86
  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/samples-dev/availabilityStatusesGetByResourceSample.js +10 -2
  8. package/dist-esm/samples-dev/availabilityStatusesGetByResourceSample.js.map +1 -1
  9. package/dist-esm/samples-dev/availabilityStatusesListByResourceGroupSample.js +10 -3
  10. package/dist-esm/samples-dev/availabilityStatusesListByResourceGroupSample.js.map +1 -1
  11. package/dist-esm/samples-dev/availabilityStatusesListBySubscriptionIdSample.js +9 -2
  12. package/dist-esm/samples-dev/availabilityStatusesListBySubscriptionIdSample.js.map +1 -1
  13. package/dist-esm/samples-dev/availabilityStatusesListSample.js +10 -2
  14. package/dist-esm/samples-dev/availabilityStatusesListSample.js.map +1 -1
  15. package/dist-esm/samples-dev/childAvailabilityStatusesGetByResourceSample.js +10 -2
  16. package/dist-esm/samples-dev/childAvailabilityStatusesGetByResourceSample.js.map +1 -1
  17. package/dist-esm/samples-dev/childAvailabilityStatusesListSample.js +10 -2
  18. package/dist-esm/samples-dev/childAvailabilityStatusesListSample.js.map +1 -1
  19. package/dist-esm/samples-dev/childResourcesListSample.js +10 -2
  20. package/dist-esm/samples-dev/childResourcesListSample.js.map +1 -1
  21. package/dist-esm/samples-dev/emergingIssuesGetSample.js +10 -2
  22. package/dist-esm/samples-dev/emergingIssuesGetSample.js.map +1 -1
  23. package/dist-esm/samples-dev/emergingIssuesListSample.js +10 -2
  24. package/dist-esm/samples-dev/emergingIssuesListSample.js.map +1 -1
  25. package/dist-esm/src/index.d.ts +1 -0
  26. package/dist-esm/src/index.d.ts.map +1 -1
  27. package/dist-esm/src/index.js +1 -0
  28. package/dist-esm/src/index.js.map +1 -1
  29. package/dist-esm/src/microsoftResourceHealth.d.ts.map +1 -1
  30. package/dist-esm/src/microsoftResourceHealth.js +20 -18
  31. package/dist-esm/src/microsoftResourceHealth.js.map +1 -1
  32. package/dist-esm/src/models/index.d.ts +0 -20
  33. package/dist-esm/src/models/index.d.ts.map +1 -1
  34. package/dist-esm/src/operations/availabilityStatuses.d.ts.map +1 -1
  35. package/dist-esm/src/operations/availabilityStatuses.js +55 -36
  36. package/dist-esm/src/operations/availabilityStatuses.js.map +1 -1
  37. package/dist-esm/src/operations/childAvailabilityStatuses.d.ts.map +1 -1
  38. package/dist-esm/src/operations/childAvailabilityStatuses.js +19 -12
  39. package/dist-esm/src/operations/childAvailabilityStatuses.js.map +1 -1
  40. package/dist-esm/src/operations/childResources.d.ts.map +1 -1
  41. package/dist-esm/src/operations/childResources.js +19 -12
  42. package/dist-esm/src/operations/childResources.js.map +1 -1
  43. package/dist-esm/src/operations/emergingIssues.d.ts.map +1 -1
  44. package/dist-esm/src/operations/emergingIssues.js +19 -8
  45. package/dist-esm/src/operations/emergingIssues.js.map +1 -1
  46. package/dist-esm/src/pagingHelper.d.ts +13 -0
  47. package/dist-esm/src/pagingHelper.d.ts.map +1 -0
  48. package/dist-esm/src/pagingHelper.js +32 -0
  49. package/dist-esm/src/pagingHelper.js.map +1 -0
  50. package/package.json +6 -4
  51. package/review/arm-resourcehealth.api.md +3 -10
  52. package/src/index.ts +1 -0
  53. package/src/microsoftResourceHealth.ts +26 -20
  54. package/src/models/index.ts +5 -30
  55. package/src/operations/availabilityStatuses.ts +66 -40
  56. package/src/operations/childAvailabilityStatuses.ts +22 -14
  57. package/src/operations/childResources.ts +21 -13
  58. package/src/operations/emergingIssues.ts +22 -10
  59. package/src/pagingHelper.ts +39 -0
  60. package/types/arm-resourcehealth.d.ts +9 -20
@@ -6,6 +6,7 @@
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
8
  import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
9
+ import { setContinuationToken } from "../pagingHelper";
9
10
  import * as coreClient from "@azure/core-client";
10
11
  import * as Mappers from "../models/mappers";
11
12
  import * as Parameters from "../models/parameters";
@@ -32,20 +33,31 @@ export class EmergingIssuesImpl {
32
33
  [Symbol.asyncIterator]() {
33
34
  return this;
34
35
  },
35
- byPage: () => {
36
- return this.listPagingPage(options);
36
+ byPage: (settings) => {
37
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
38
+ throw new Error("maxPageSize is not supported by this operation.");
39
+ }
40
+ return this.listPagingPage(options, settings);
37
41
  }
38
42
  };
39
43
  }
40
- listPagingPage(options) {
44
+ listPagingPage(options, settings) {
41
45
  return __asyncGenerator(this, arguments, function* listPagingPage_1() {
42
- let result = yield __await(this._list(options));
43
- yield yield __await(result.value || []);
44
- let continuationToken = result.nextLink;
46
+ let result;
47
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
48
+ if (!continuationToken) {
49
+ result = yield __await(this._list(options));
50
+ let page = result.value || [];
51
+ continuationToken = result.nextLink;
52
+ setContinuationToken(page, continuationToken);
53
+ yield yield __await(page);
54
+ }
45
55
  while (continuationToken) {
46
56
  result = yield __await(this._listNext(continuationToken, options));
47
57
  continuationToken = result.nextLink;
48
- yield yield __await(result.value || []);
58
+ let page = result.value || [];
59
+ setContinuationToken(page, continuationToken);
60
+ yield yield __await(page);
49
61
  }
50
62
  });
51
63
  }
@@ -135,7 +147,6 @@ const listNextOperationSpec = {
135
147
  bodyMapper: Mappers.ErrorResponse
136
148
  }
137
149
  },
138
- queryParameters: [Parameters.apiVersion],
139
150
  urlParameters: [Parameters.$host, Parameters.nextLink],
140
151
  headerParameters: [Parameters.accept],
141
152
  serializer
@@ -1 +1 @@
1
- {"version":3,"file":"emergingIssues.js","sourceRoot":"","sources":["../../../src/operations/emergingIssues.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAIH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,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AAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC;IACjC,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,uBAAuB;SAC5C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC;IACtD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC"}
1
+ {"version":3,"file":"emergingIssues.js","sourceRoot":"","sources":["../../../src/operations/emergingIssues.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAEvD,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAYnD,4CAA4C;AAC5C,kDAAkD;AAClD,MAAM,OAAO,kBAAkB;IAG7B;;;OAGG;IACH,YAAY,MAA+B;QACzC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACI,IAAI,CACT,OAA0C;QAE1C,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QACzC,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAA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S,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,uBAAuB;SAC5C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC;IACjC,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,uBAAuB;SAC5C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC;IACtD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC"}
@@ -0,0 +1,13 @@
1
+ export interface PageInfo {
2
+ continuationToken?: string;
3
+ }
4
+ /**
5
+ * Given the last `.value` produced by the `byPage` iterator,
6
+ * returns a continuation token that can be used to begin paging from
7
+ * that point later.
8
+ * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
9
+ * @returns The continuation token that can be passed into byPage() during future calls.
10
+ */
11
+ export declare function getContinuationToken(page: unknown): string | undefined;
12
+ export declare function setContinuationToken(page: unknown, continuationToken: string | undefined): void;
13
+ //# sourceMappingURL=pagingHelper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pagingHelper.d.ts","sourceRoot":"","sources":["../../src/pagingHelper.ts"],"names":[],"mappings":"AAQA,MAAM,WAAW,QAAQ;IACvB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAID;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAKtE;AAED,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,OAAO,EACb,iBAAiB,EAAE,MAAM,GAAG,SAAS,GACpC,IAAI,CAON"}
@@ -0,0 +1,32 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ const pageMap = new WeakMap();
9
+ /**
10
+ * Given the last `.value` produced by the `byPage` iterator,
11
+ * returns a continuation token that can be used to begin paging from
12
+ * that point later.
13
+ * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
14
+ * @returns The continuation token that can be passed into byPage() during future calls.
15
+ */
16
+ export function getContinuationToken(page) {
17
+ var _a;
18
+ if (typeof page !== "object" || page === null) {
19
+ return undefined;
20
+ }
21
+ return (_a = pageMap.get(page)) === null || _a === void 0 ? void 0 : _a.continuationToken;
22
+ }
23
+ export function setContinuationToken(page, continuationToken) {
24
+ var _a;
25
+ if (typeof page !== "object" || page === null || !continuationToken) {
26
+ return;
27
+ }
28
+ const pageInfo = (_a = pageMap.get(page)) !== null && _a !== void 0 ? _a : {};
29
+ pageInfo.continuationToken = continuationToken;
30
+ pageMap.set(page, pageInfo);
31
+ }
32
+ //# sourceMappingURL=pagingHelper.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pagingHelper.js","sourceRoot":"","sources":["../../src/pagingHelper.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAMH,MAAM,OAAO,GAAG,IAAI,OAAO,EAAoB,CAAC;AAEhD;;;;;;GAMG;AACH,MAAM,UAAU,oBAAoB,CAAC,IAAa;;IAChD,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,EAAE;QAC7C,OAAO,SAAS,CAAC;KAClB;IACD,OAAO,MAAA,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,0CAAE,iBAAiB,CAAC;AAC9C,CAAC;AAED,MAAM,UAAU,oBAAoB,CAClC,IAAa,EACb,iBAAqC;;IAErC,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,IAAI,CAAC,iBAAiB,EAAE;QACnE,OAAO;KACR;IACD,MAAM,QAAQ,GAAG,MAAA,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,mCAAI,EAAE,CAAC;IACzC,QAAQ,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;IAC/C,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;AAC9B,CAAC"}
package/package.json CHANGED
@@ -3,13 +3,13 @@
3
3
  "sdk-type": "mgmt",
4
4
  "author": "Microsoft Corporation",
5
5
  "description": "A generated SDK for MicrosoftResourceHealth.",
6
- "version": "3.1.1-alpha.20230201.1",
6
+ "version": "3.2.1-alpha.20230203.3",
7
7
  "engines": {
8
8
  "node": ">=14.0.0"
9
9
  },
10
10
  "dependencies": {
11
11
  "@azure/core-paging": "^1.2.0",
12
- "@azure/core-client": "^1.5.0",
12
+ "@azure/core-client": "^1.6.1",
13
13
  "@azure/core-auth": "^1.3.0",
14
14
  "@azure/core-rest-pipeline": "^1.8.0",
15
15
  "tslib": "^2.2.0"
@@ -34,9 +34,10 @@
34
34
  "mkdirp": "^1.0.4",
35
35
  "rollup": "^2.66.1",
36
36
  "rollup-plugin-sourcemaps": "^0.6.3",
37
- "typescript": "~4.2.0",
37
+ "typescript": "~4.8.0",
38
38
  "uglify-js": "^3.4.9",
39
39
  "rimraf": "^3.0.0",
40
+ "dotenv": "^8.2.0",
40
41
  "@azure/identity": "^2.0.1",
41
42
  "@azure-tools/test-recorder": "^2.0.0",
42
43
  "@azure-tools/test-credential": "^1.0.0",
@@ -44,9 +45,9 @@
44
45
  "@types/chai": "^4.2.8",
45
46
  "chai": "^4.2.0",
46
47
  "cross-env": "^7.0.2",
48
+ "@types/node": "^14.0.0",
47
49
  "@azure/dev-tool": ">=1.0.0-alpha <1.0.0-alphb"
48
50
  },
49
- "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/resourcehealth/arm-resourcehealth",
50
51
  "repository": {
51
52
  "type": "git",
52
53
  "url": "https://github.com/Azure/azure-sdk-for-js.git"
@@ -108,6 +109,7 @@
108
109
  ]
109
110
  },
110
111
  "autoPublish": true,
112
+ "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/resourcehealth/arm-resourcehealth",
111
113
  "//sampleConfiguration": {
112
114
  "productName": "",
113
115
  "productSlugs": [
@@ -39,8 +39,6 @@ export type AvailabilityStatusesGetByResourceResponse = AvailabilityStatus;
39
39
 
40
40
  // @public
41
41
  export interface AvailabilityStatusesListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {
42
- expand?: string;
43
- filter?: string;
44
42
  }
45
43
 
46
44
  // @public
@@ -57,8 +55,6 @@ export type AvailabilityStatusesListByResourceGroupResponse = AvailabilityStatus
57
55
 
58
56
  // @public
59
57
  export interface AvailabilityStatusesListBySubscriptionIdNextOptionalParams extends coreClient.OperationOptions {
60
- expand?: string;
61
- filter?: string;
62
58
  }
63
59
 
64
60
  // @public
@@ -75,8 +71,6 @@ export type AvailabilityStatusesListBySubscriptionIdResponse = AvailabilityStatu
75
71
 
76
72
  // @public
77
73
  export interface AvailabilityStatusesListNextOptionalParams extends coreClient.OperationOptions {
78
- expand?: string;
79
- filter?: string;
80
74
  }
81
75
 
82
76
  // @public
@@ -141,8 +135,6 @@ export type ChildAvailabilityStatusesGetByResourceResponse = AvailabilityStatus;
141
135
 
142
136
  // @public
143
137
  export interface ChildAvailabilityStatusesListNextOptionalParams extends coreClient.OperationOptions {
144
- expand?: string;
145
- filter?: string;
146
138
  }
147
139
 
148
140
  // @public
@@ -164,8 +156,6 @@ export interface ChildResources {
164
156
 
165
157
  // @public
166
158
  export interface ChildResourcesListNextOptionalParams extends coreClient.OperationOptions {
167
- expand?: string;
168
- filter?: string;
169
159
  }
170
160
 
171
161
  // @public
@@ -234,6 +224,9 @@ export interface ErrorResponse {
234
224
  readonly message?: string;
235
225
  }
236
226
 
227
+ // @public
228
+ export function getContinuationToken(page: unknown): string | undefined;
229
+
237
230
  // @public
238
231
  export interface ImpactedRegion {
239
232
  id?: string;
package/src/index.ts CHANGED
@@ -7,6 +7,7 @@
7
7
  */
8
8
 
9
9
  /// <reference lib="esnext.asynciterable" />
10
+ export { getContinuationToken } from "./pagingHelper";
10
11
  export * from "./models";
11
12
  export { MicrosoftResourceHealth } from "./microsoftResourceHealth";
12
13
  export * from "./operationsInterfaces";
@@ -63,47 +63,53 @@ export class MicrosoftResourceHealth extends coreClient.ServiceClient {
63
63
  credential: credentials
64
64
  };
65
65
 
66
- const packageDetails = `azsdk-js-arm-resourcehealth/3.1.1`;
66
+ const packageDetails = `azsdk-js-arm-resourcehealth/3.2.1`;
67
67
  const userAgentPrefix =
68
68
  options.userAgentOptions && options.userAgentOptions.userAgentPrefix
69
69
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
70
70
  : `${packageDetails}`;
71
71
 
72
- if (!options.credentialScopes) {
73
- options.credentialScopes = ["https://management.azure.com/.default"];
74
- }
75
72
  const optionsWithDefaults = {
76
73
  ...defaults,
77
74
  ...options,
78
75
  userAgentOptions: {
79
76
  userAgentPrefix
80
77
  },
81
- baseUri:
78
+ endpoint:
82
79
  options.endpoint ?? options.baseUri ?? "https://management.azure.com"
83
80
  };
84
81
  super(optionsWithDefaults);
85
82
 
83
+ let bearerTokenAuthenticationPolicyFound: boolean = false;
86
84
  if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
87
85
  const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies();
88
- const bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(
86
+ bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(
89
87
  (pipelinePolicy) =>
90
88
  pipelinePolicy.name ===
91
89
  coreRestPipeline.bearerTokenAuthenticationPolicyName
92
90
  );
93
- if (!bearerTokenAuthenticationPolicyFound) {
94
- this.pipeline.removePolicy({
95
- name: coreRestPipeline.bearerTokenAuthenticationPolicyName
96
- });
97
- this.pipeline.addPolicy(
98
- coreRestPipeline.bearerTokenAuthenticationPolicy({
99
- scopes: `${optionsWithDefaults.baseUri}/.default`,
100
- challengeCallbacks: {
101
- authorizeRequestOnChallenge:
102
- coreClient.authorizeRequestOnClaimChallenge
103
- }
104
- })
105
- );
106
- }
91
+ }
92
+ if (
93
+ !options ||
94
+ !options.pipeline ||
95
+ options.pipeline.getOrderedPolicies().length == 0 ||
96
+ !bearerTokenAuthenticationPolicyFound
97
+ ) {
98
+ this.pipeline.removePolicy({
99
+ name: coreRestPipeline.bearerTokenAuthenticationPolicyName
100
+ });
101
+ this.pipeline.addPolicy(
102
+ coreRestPipeline.bearerTokenAuthenticationPolicy({
103
+ credential: credentials,
104
+ scopes:
105
+ optionsWithDefaults.credentialScopes ??
106
+ `${optionsWithDefaults.endpoint}/.default`,
107
+ challengeCallbacks: {
108
+ authorizeRequestOnChallenge:
109
+ coreClient.authorizeRequestOnClaimChallenge
110
+ }
111
+ })
112
+ );
107
113
  }
108
114
  // Parameter assignments
109
115
  this.subscriptionId = subscriptionId;
@@ -350,36 +350,21 @@ export type AvailabilityStatusesListResponse = AvailabilityStatusListResult;
350
350
 
351
351
  /** Optional parameters. */
352
352
  export interface AvailabilityStatusesListBySubscriptionIdNextOptionalParams
353
- extends coreClient.OperationOptions {
354
- /** The filter to apply on the operation. For more information please see https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN */
355
- filter?: string;
356
- /** Setting $expand=recommendedactions in url query expands the recommendedactions in the response. */
357
- expand?: string;
358
- }
353
+ extends coreClient.OperationOptions {}
359
354
 
360
355
  /** Contains response data for the listBySubscriptionIdNext operation. */
361
356
  export type AvailabilityStatusesListBySubscriptionIdNextResponse = AvailabilityStatusListResult;
362
357
 
363
358
  /** Optional parameters. */
364
359
  export interface AvailabilityStatusesListByResourceGroupNextOptionalParams
365
- extends coreClient.OperationOptions {
366
- /** The filter to apply on the operation. For more information please see https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN */
367
- filter?: string;
368
- /** Setting $expand=recommendedactions in url query expands the recommendedactions in the response. */
369
- expand?: string;
370
- }
360
+ extends coreClient.OperationOptions {}
371
361
 
372
362
  /** Contains response data for the listByResourceGroupNext operation. */
373
363
  export type AvailabilityStatusesListByResourceGroupNextResponse = AvailabilityStatusListResult;
374
364
 
375
365
  /** Optional parameters. */
376
366
  export interface AvailabilityStatusesListNextOptionalParams
377
- extends coreClient.OperationOptions {
378
- /** The filter to apply on the operation. For more information please see https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN */
379
- filter?: string;
380
- /** Setting $expand=recommendedactions in url query expands the recommendedactions in the response. */
381
- expand?: string;
382
- }
367
+ extends coreClient.OperationOptions {}
383
368
 
384
369
  /** Contains response data for the listNext operation. */
385
370
  export type AvailabilityStatusesListNextResponse = AvailabilityStatusListResult;
@@ -410,12 +395,7 @@ export type ChildAvailabilityStatusesListResponse = AvailabilityStatusListResult
410
395
 
411
396
  /** Optional parameters. */
412
397
  export interface ChildAvailabilityStatusesListNextOptionalParams
413
- extends coreClient.OperationOptions {
414
- /** The filter to apply on the operation. For more information please see https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN */
415
- filter?: string;
416
- /** Setting $expand=recommendedactions in url query expands the recommendedactions in the response. */
417
- expand?: string;
418
- }
398
+ extends coreClient.OperationOptions {}
419
399
 
420
400
  /** Contains response data for the listNext operation. */
421
401
  export type ChildAvailabilityStatusesListNextResponse = AvailabilityStatusListResult;
@@ -434,12 +414,7 @@ export type ChildResourcesListResponse = AvailabilityStatusListResult;
434
414
 
435
415
  /** Optional parameters. */
436
416
  export interface ChildResourcesListNextOptionalParams
437
- extends coreClient.OperationOptions {
438
- /** The filter to apply on the operation. For more information please see https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN */
439
- filter?: string;
440
- /** Setting $expand=recommendedactions in url query expands the recommendedactions in the response. */
441
- expand?: string;
442
- }
417
+ extends coreClient.OperationOptions {}
443
418
 
444
419
  /** Contains response data for the listNext operation. */
445
420
  export type ChildResourcesListNextResponse = AvailabilityStatusListResult;
@@ -6,7 +6,8 @@
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
8
 
9
- import { PagedAsyncIterableIterator } from "@azure/core-paging";
9
+ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
10
+ import { setContinuationToken } from "../pagingHelper";
10
11
  import { AvailabilityStatuses } from "../operationsInterfaces";
11
12
  import * as coreClient from "@azure/core-client";
12
13
  import * as Mappers from "../models/mappers";
@@ -16,15 +17,15 @@ import {
16
17
  AvailabilityStatus,
17
18
  AvailabilityStatusesListBySubscriptionIdNextOptionalParams,
18
19
  AvailabilityStatusesListBySubscriptionIdOptionalParams,
20
+ AvailabilityStatusesListBySubscriptionIdResponse,
19
21
  AvailabilityStatusesListByResourceGroupNextOptionalParams,
20
22
  AvailabilityStatusesListByResourceGroupOptionalParams,
23
+ AvailabilityStatusesListByResourceGroupResponse,
21
24
  AvailabilityStatusesListNextOptionalParams,
22
25
  AvailabilityStatusesListOptionalParams,
23
- AvailabilityStatusesListBySubscriptionIdResponse,
24
- AvailabilityStatusesListByResourceGroupResponse,
26
+ AvailabilityStatusesListResponse,
25
27
  AvailabilityStatusesGetByResourceOptionalParams,
26
28
  AvailabilityStatusesGetByResourceResponse,
27
- AvailabilityStatusesListResponse,
28
29
  AvailabilityStatusesListBySubscriptionIdNextResponse,
29
30
  AvailabilityStatusesListByResourceGroupNextResponse,
30
31
  AvailabilityStatusesListNextResponse
@@ -59,22 +60,34 @@ export class AvailabilityStatusesImpl implements AvailabilityStatuses {
59
60
  [Symbol.asyncIterator]() {
60
61
  return this;
61
62
  },
62
- byPage: () => {
63
- return this.listBySubscriptionIdPagingPage(options);
63
+ byPage: (settings?: PageSettings) => {
64
+ if (settings?.maxPageSize) {
65
+ throw new Error("maxPageSize is not supported by this operation.");
66
+ }
67
+ return this.listBySubscriptionIdPagingPage(options, settings);
64
68
  }
65
69
  };
66
70
  }
67
71
 
68
72
  private async *listBySubscriptionIdPagingPage(
69
- options?: AvailabilityStatusesListBySubscriptionIdOptionalParams
73
+ options?: AvailabilityStatusesListBySubscriptionIdOptionalParams,
74
+ settings?: PageSettings
70
75
  ): AsyncIterableIterator<AvailabilityStatus[]> {
71
- let result = await this._listBySubscriptionId(options);
72
- yield result.value || [];
73
- let continuationToken = result.nextLink;
76
+ let result: AvailabilityStatusesListBySubscriptionIdResponse;
77
+ let continuationToken = settings?.continuationToken;
78
+ if (!continuationToken) {
79
+ result = await this._listBySubscriptionId(options);
80
+ let page = result.value || [];
81
+ continuationToken = result.nextLink;
82
+ setContinuationToken(page, continuationToken);
83
+ yield page;
84
+ }
74
85
  while (continuationToken) {
75
86
  result = await this._listBySubscriptionIdNext(continuationToken, options);
76
87
  continuationToken = result.nextLink;
77
- yield result.value || [];
88
+ let page = result.value || [];
89
+ setContinuationToken(page, continuationToken);
90
+ yield page;
78
91
  }
79
92
  }
80
93
 
@@ -104,19 +117,33 @@ export class AvailabilityStatusesImpl implements AvailabilityStatuses {
104
117
  [Symbol.asyncIterator]() {
105
118
  return this;
106
119
  },
107
- byPage: () => {
108
- return this.listByResourceGroupPagingPage(resourceGroupName, options);
120
+ byPage: (settings?: PageSettings) => {
121
+ if (settings?.maxPageSize) {
122
+ throw new Error("maxPageSize is not supported by this operation.");
123
+ }
124
+ return this.listByResourceGroupPagingPage(
125
+ resourceGroupName,
126
+ options,
127
+ settings
128
+ );
109
129
  }
110
130
  };
111
131
  }
112
132
 
113
133
  private async *listByResourceGroupPagingPage(
114
134
  resourceGroupName: string,
115
- options?: AvailabilityStatusesListByResourceGroupOptionalParams
135
+ options?: AvailabilityStatusesListByResourceGroupOptionalParams,
136
+ settings?: PageSettings
116
137
  ): AsyncIterableIterator<AvailabilityStatus[]> {
117
- let result = await this._listByResourceGroup(resourceGroupName, options);
118
- yield result.value || [];
119
- let continuationToken = result.nextLink;
138
+ let result: AvailabilityStatusesListByResourceGroupResponse;
139
+ let continuationToken = settings?.continuationToken;
140
+ if (!continuationToken) {
141
+ result = await this._listByResourceGroup(resourceGroupName, options);
142
+ let page = result.value || [];
143
+ continuationToken = result.nextLink;
144
+ setContinuationToken(page, continuationToken);
145
+ yield page;
146
+ }
120
147
  while (continuationToken) {
121
148
  result = await this._listByResourceGroupNext(
122
149
  resourceGroupName,
@@ -124,7 +151,9 @@ export class AvailabilityStatusesImpl implements AvailabilityStatuses {
124
151
  options
125
152
  );
126
153
  continuationToken = result.nextLink;
127
- yield result.value || [];
154
+ let page = result.value || [];
155
+ setContinuationToken(page, continuationToken);
156
+ yield page;
128
157
  }
129
158
  }
130
159
 
@@ -162,23 +191,35 @@ export class AvailabilityStatusesImpl implements AvailabilityStatuses {
162
191
  [Symbol.asyncIterator]() {
163
192
  return this;
164
193
  },
165
- byPage: () => {
166
- return this.listPagingPage(resourceUri, options);
194
+ byPage: (settings?: PageSettings) => {
195
+ if (settings?.maxPageSize) {
196
+ throw new Error("maxPageSize is not supported by this operation.");
197
+ }
198
+ return this.listPagingPage(resourceUri, options, settings);
167
199
  }
168
200
  };
169
201
  }
170
202
 
171
203
  private async *listPagingPage(
172
204
  resourceUri: string,
173
- options?: AvailabilityStatusesListOptionalParams
205
+ options?: AvailabilityStatusesListOptionalParams,
206
+ settings?: PageSettings
174
207
  ): AsyncIterableIterator<AvailabilityStatus[]> {
175
- let result = await this._list(resourceUri, options);
176
- yield result.value || [];
177
- let continuationToken = result.nextLink;
208
+ let result: AvailabilityStatusesListResponse;
209
+ let continuationToken = settings?.continuationToken;
210
+ if (!continuationToken) {
211
+ result = await this._list(resourceUri, options);
212
+ let page = result.value || [];
213
+ continuationToken = result.nextLink;
214
+ setContinuationToken(page, continuationToken);
215
+ yield page;
216
+ }
178
217
  while (continuationToken) {
179
218
  result = await this._listNext(resourceUri, continuationToken, options);
180
219
  continuationToken = result.nextLink;
181
- yield result.value || [];
220
+ let page = result.value || [];
221
+ setContinuationToken(page, continuationToken);
222
+ yield page;
182
223
  }
183
224
  }
184
225
 
@@ -415,11 +456,6 @@ const listBySubscriptionIdNextOperationSpec: coreClient.OperationSpec = {
415
456
  bodyMapper: Mappers.ErrorResponse
416
457
  }
417
458
  },
418
- queryParameters: [
419
- Parameters.apiVersion,
420
- Parameters.filter,
421
- Parameters.expand
422
- ],
423
459
  urlParameters: [
424
460
  Parameters.$host,
425
461
  Parameters.subscriptionId,
@@ -439,11 +475,6 @@ const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {
439
475
  bodyMapper: Mappers.ErrorResponse
440
476
  }
441
477
  },
442
- queryParameters: [
443
- Parameters.apiVersion,
444
- Parameters.filter,
445
- Parameters.expand
446
- ],
447
478
  urlParameters: [
448
479
  Parameters.$host,
449
480
  Parameters.subscriptionId,
@@ -464,11 +495,6 @@ const listNextOperationSpec: coreClient.OperationSpec = {
464
495
  bodyMapper: Mappers.ErrorResponse
465
496
  }
466
497
  },
467
- queryParameters: [
468
- Parameters.apiVersion,
469
- Parameters.filter,
470
- Parameters.expand
471
- ],
472
498
  urlParameters: [
473
499
  Parameters.$host,
474
500
  Parameters.resourceUri,
@@ -6,7 +6,8 @@
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
8
 
9
- import { PagedAsyncIterableIterator } from "@azure/core-paging";
9
+ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
10
+ import { setContinuationToken } from "../pagingHelper";
10
11
  import { ChildAvailabilityStatuses } from "../operationsInterfaces";
11
12
  import * as coreClient from "@azure/core-client";
12
13
  import * as Mappers from "../models/mappers";
@@ -16,9 +17,9 @@ import {
16
17
  AvailabilityStatus,
17
18
  ChildAvailabilityStatusesListNextOptionalParams,
18
19
  ChildAvailabilityStatusesListOptionalParams,
20
+ ChildAvailabilityStatusesListResponse,
19
21
  ChildAvailabilityStatusesGetByResourceOptionalParams,
20
22
  ChildAvailabilityStatusesGetByResourceResponse,
21
- ChildAvailabilityStatusesListResponse,
22
23
  ChildAvailabilityStatusesListNextResponse
23
24
  } from "../models";
24
25
 
@@ -56,23 +57,35 @@ export class ChildAvailabilityStatusesImpl
56
57
  [Symbol.asyncIterator]() {
57
58
  return this;
58
59
  },
59
- byPage: () => {
60
- return this.listPagingPage(resourceUri, options);
60
+ byPage: (settings?: PageSettings) => {
61
+ if (settings?.maxPageSize) {
62
+ throw new Error("maxPageSize is not supported by this operation.");
63
+ }
64
+ return this.listPagingPage(resourceUri, options, settings);
61
65
  }
62
66
  };
63
67
  }
64
68
 
65
69
  private async *listPagingPage(
66
70
  resourceUri: string,
67
- options?: ChildAvailabilityStatusesListOptionalParams
71
+ options?: ChildAvailabilityStatusesListOptionalParams,
72
+ settings?: PageSettings
68
73
  ): AsyncIterableIterator<AvailabilityStatus[]> {
69
- let result = await this._list(resourceUri, options);
70
- yield result.value || [];
71
- let continuationToken = result.nextLink;
74
+ let result: ChildAvailabilityStatusesListResponse;
75
+ let continuationToken = settings?.continuationToken;
76
+ if (!continuationToken) {
77
+ result = await this._list(resourceUri, options);
78
+ let page = result.value || [];
79
+ continuationToken = result.nextLink;
80
+ setContinuationToken(page, continuationToken);
81
+ yield page;
82
+ }
72
83
  while (continuationToken) {
73
84
  result = await this._listNext(resourceUri, continuationToken, options);
74
85
  continuationToken = result.nextLink;
75
- yield result.value || [];
86
+ let page = result.value || [];
87
+ setContinuationToken(page, continuationToken);
88
+ yield page;
76
89
  }
77
90
  }
78
91
 
@@ -195,11 +208,6 @@ const listNextOperationSpec: coreClient.OperationSpec = {
195
208
  bodyMapper: Mappers.ErrorResponse
196
209
  }
197
210
  },
198
- queryParameters: [
199
- Parameters.apiVersion,
200
- Parameters.filter,
201
- Parameters.expand
202
- ],
203
211
  urlParameters: [
204
212
  Parameters.$host,
205
213
  Parameters.resourceUri,