@azure/arm-portal 1.0.0-alpha.20230201.1 → 1.0.0-alpha.20230202.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 (63) hide show
  1. package/CHANGELOG.md +5 -5
  2. package/LICENSE +1 -1
  3. package/dist/index.js +142 -57
  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/dashboardsCreateOrUpdateSample.js +11 -3
  8. package/dist-esm/samples-dev/dashboardsCreateOrUpdateSample.js.map +1 -1
  9. package/dist-esm/samples-dev/dashboardsDeleteSample.js +11 -3
  10. package/dist-esm/samples-dev/dashboardsDeleteSample.js.map +1 -1
  11. package/dist-esm/samples-dev/dashboardsGetSample.js +11 -3
  12. package/dist-esm/samples-dev/dashboardsGetSample.js.map +1 -1
  13. package/dist-esm/samples-dev/dashboardsListByResourceGroupSample.js +11 -3
  14. package/dist-esm/samples-dev/dashboardsListByResourceGroupSample.js.map +1 -1
  15. package/dist-esm/samples-dev/dashboardsListBySubscriptionSample.js +10 -2
  16. package/dist-esm/samples-dev/dashboardsListBySubscriptionSample.js.map +1 -1
  17. package/dist-esm/samples-dev/dashboardsUpdateSample.js +11 -3
  18. package/dist-esm/samples-dev/dashboardsUpdateSample.js.map +1 -1
  19. package/dist-esm/samples-dev/listTenantConfigurationViolationsListSample.js +10 -2
  20. package/dist-esm/samples-dev/listTenantConfigurationViolationsListSample.js.map +1 -1
  21. package/dist-esm/samples-dev/operationsListSample.js +10 -2
  22. package/dist-esm/samples-dev/operationsListSample.js.map +1 -1
  23. package/dist-esm/samples-dev/tenantConfigurationsCreateSample.js +10 -2
  24. package/dist-esm/samples-dev/tenantConfigurationsCreateSample.js.map +1 -1
  25. package/dist-esm/samples-dev/tenantConfigurationsDeleteSample.js +10 -2
  26. package/dist-esm/samples-dev/tenantConfigurationsDeleteSample.js.map +1 -1
  27. package/dist-esm/samples-dev/tenantConfigurationsGetSample.js +10 -2
  28. package/dist-esm/samples-dev/tenantConfigurationsGetSample.js.map +1 -1
  29. package/dist-esm/samples-dev/tenantConfigurationsListSample.js +10 -2
  30. package/dist-esm/samples-dev/tenantConfigurationsListSample.js.map +1 -1
  31. package/dist-esm/src/index.d.ts +1 -0
  32. package/dist-esm/src/index.d.ts.map +1 -1
  33. package/dist-esm/src/index.js +1 -0
  34. package/dist-esm/src/index.js.map +1 -1
  35. package/dist-esm/src/operations/dashboards.d.ts.map +1 -1
  36. package/dist-esm/src/operations/dashboards.js +37 -16
  37. package/dist-esm/src/operations/dashboards.js.map +1 -1
  38. package/dist-esm/src/operations/listTenantConfigurationViolations.d.ts.map +1 -1
  39. package/dist-esm/src/operations/listTenantConfigurationViolations.js +19 -8
  40. package/dist-esm/src/operations/listTenantConfigurationViolations.js.map +1 -1
  41. package/dist-esm/src/operations/operations.d.ts.map +1 -1
  42. package/dist-esm/src/operations/operations.js +19 -8
  43. package/dist-esm/src/operations/operations.js.map +1 -1
  44. package/dist-esm/src/operations/tenantConfigurations.d.ts.map +1 -1
  45. package/dist-esm/src/operations/tenantConfigurations.js +19 -8
  46. package/dist-esm/src/operations/tenantConfigurations.js.map +1 -1
  47. package/dist-esm/src/pagingHelper.d.ts +13 -0
  48. package/dist-esm/src/pagingHelper.d.ts.map +1 -0
  49. package/dist-esm/src/pagingHelper.js +32 -0
  50. package/dist-esm/src/pagingHelper.js.map +1 -0
  51. package/dist-esm/src/portal.d.ts.map +1 -1
  52. package/dist-esm/src/portal.js +19 -17
  53. package/dist-esm/src/portal.js.map +1 -1
  54. package/package.json +6 -4
  55. package/review/arm-portal.api.md +3 -0
  56. package/src/index.ts +1 -0
  57. package/src/operations/dashboards.ts +46 -19
  58. package/src/operations/listTenantConfigurationViolations.ts +21 -9
  59. package/src/operations/operations.ts +21 -9
  60. package/src/operations/tenantConfigurations.ts +21 -9
  61. package/src/pagingHelper.ts +39 -0
  62. package/src/portal.ts +25 -19
  63. package/types/arm-portal.d.ts +9 -0
@@ -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"}
@@ -1 +1 @@
1
- {"version":3,"file":"portal.d.ts","sourceRoot":"","sources":["../../src/portal.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAOjD,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAO7C,OAAO,EACL,UAAU,EACV,UAAU,EACV,oBAAoB,EACpB,iCAAiC,EAClC,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAEhD,qBAAa,MAAO,SAAQ,UAAU,CAAC,aAAa;IAClD,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;IAEvB;;;;;;OAMG;gBAED,WAAW,EAAE,QAAQ,CAAC,eAAe,EACrC,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,oBAAoB;IA2EhC,8GAA8G;IAC9G,OAAO,CAAC,yBAAyB;IA2BjC,UAAU,EAAE,UAAU,CAAC;IACvB,UAAU,EAAE,UAAU,CAAC;IACvB,oBAAoB,EAAE,oBAAoB,CAAC;IAC3C,iCAAiC,EAAE,iCAAiC,CAAC;CACtE"}
1
+ {"version":3,"file":"portal.d.ts","sourceRoot":"","sources":["../../src/portal.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAOjD,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAO7C,OAAO,EACL,UAAU,EACV,UAAU,EACV,oBAAoB,EACpB,iCAAiC,EAClC,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAEhD,qBAAa,MAAO,SAAQ,UAAU,CAAC,aAAa;IAClD,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;IAEvB;;;;;;OAMG;gBAED,WAAW,EAAE,QAAQ,CAAC,eAAe,EACrC,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,oBAAoB;IAiFhC,8GAA8G;IAC9G,OAAO,CAAC,yBAAyB;IA2BjC,UAAU,EAAE,UAAU,CAAC;IACvB,UAAU,EAAE,UAAU,CAAC;IACvB,oBAAoB,EAAE,oBAAoB,CAAC;IAC3C,iCAAiC,EAAE,iCAAiC,CAAC;CACtE"}
@@ -18,7 +18,7 @@ export class Portal extends coreClient.ServiceClient {
18
18
  * @param options The parameter options
19
19
  */
20
20
  constructor(credentials, subscriptionId, options) {
21
- var _a, _b;
21
+ var _a, _b, _c;
22
22
  if (credentials === undefined) {
23
23
  throw new Error("'credentials' cannot be null");
24
24
  }
@@ -37,28 +37,30 @@ export class Portal extends coreClient.ServiceClient {
37
37
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
38
38
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
39
39
  : `${packageDetails}`;
40
- if (!options.credentialScopes) {
41
- options.credentialScopes = ["https://management.azure.com/.default"];
42
- }
43
40
  const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
44
41
  userAgentPrefix
45
- }, baseUri: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
42
+ }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
46
43
  super(optionsWithDefaults);
44
+ let bearerTokenAuthenticationPolicyFound = false;
47
45
  if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
48
46
  const pipelinePolicies = options.pipeline.getOrderedPolicies();
49
- const bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
47
+ bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
50
48
  coreRestPipeline.bearerTokenAuthenticationPolicyName);
51
- if (!bearerTokenAuthenticationPolicyFound) {
52
- this.pipeline.removePolicy({
53
- name: coreRestPipeline.bearerTokenAuthenticationPolicyName
54
- });
55
- this.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({
56
- scopes: `${optionsWithDefaults.baseUri}/.default`,
57
- challengeCallbacks: {
58
- authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge
59
- }
60
- }));
61
- }
49
+ }
50
+ if (!options ||
51
+ !options.pipeline ||
52
+ options.pipeline.getOrderedPolicies().length == 0 ||
53
+ !bearerTokenAuthenticationPolicyFound) {
54
+ this.pipeline.removePolicy({
55
+ name: coreRestPipeline.bearerTokenAuthenticationPolicyName
56
+ });
57
+ this.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({
58
+ credential: credentials,
59
+ scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
60
+ challengeCallbacks: {
61
+ authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge
62
+ }
63
+ }));
62
64
  }
63
65
  // Parameter assignments
64
66
  this.subscriptionId = subscriptionId;
@@ -1 +1 @@
1
- {"version":3,"file":"portal.js","sourceRoot":"","sources":["../../src/portal.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2B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,EACxB,IAAiB;;oBAEjB,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;oBACrC,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE;wBACpB,MAAM,SAAS,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;4BACjD,IAAI,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,EAAE;gCACpC,OAAO,cAAc,GAAG,UAAU,CAAC;6BACpC;iCAAM;gCACL,OAAO,IAAI,CAAC;6BACb;wBACH,CAAC,CAAC,CAAC;wBACH,OAAO,CAAC,GAAG,GAAG,KAAK,CAAC,CAAC,CAAC,GAAG,GAAG,GAAG,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;qBACpD;oBACD,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC;gBACvB,CAAC;aAAA;SACF,CAAC;QACF,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAC5C,CAAC;CAMF"}
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 Portal.",
6
- "version": "1.0.0-alpha.20230201.1",
6
+ "version": "1.0.0-alpha.20230202.1",
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/portal/arm-portal",
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/portal/arm-portal",
111
113
  "//sampleConfiguration": {
112
114
  "productName": "",
113
115
  "productSlugs": [
@@ -153,6 +153,9 @@ export interface ErrorResponse {
153
153
  error?: ErrorDefinition;
154
154
  }
155
155
 
156
+ // @public
157
+ export function getContinuationToken(page: unknown): string | undefined;
158
+
156
159
  // @public
157
160
  export enum KnownConfigurationName {
158
161
  Default = "default"
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 { Portal } from "./portal";
12
13
  export * from "./operationsInterfaces";
@@ -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 { Dashboards } from "../operationsInterfaces";
11
12
  import * as coreClient from "@azure/core-client";
12
13
  import * as Mappers from "../models/mappers";
@@ -16,8 +17,10 @@ import {
16
17
  Dashboard,
17
18
  DashboardsListByResourceGroupNextOptionalParams,
18
19
  DashboardsListByResourceGroupOptionalParams,
20
+ DashboardsListByResourceGroupResponse,
19
21
  DashboardsListBySubscriptionNextOptionalParams,
20
22
  DashboardsListBySubscriptionOptionalParams,
23
+ DashboardsListBySubscriptionResponse,
21
24
  DashboardsCreateOrUpdateOptionalParams,
22
25
  DashboardsCreateOrUpdateResponse,
23
26
  DashboardsDeleteOptionalParams,
@@ -26,8 +29,6 @@ import {
26
29
  PatchableDashboard,
27
30
  DashboardsUpdateOptionalParams,
28
31
  DashboardsUpdateResponse,
29
- DashboardsListByResourceGroupResponse,
30
- DashboardsListBySubscriptionResponse,
31
32
  DashboardsListByResourceGroupNextResponse,
32
33
  DashboardsListBySubscriptionNextResponse
33
34
  } from "../models";
@@ -62,19 +63,33 @@ export class DashboardsImpl implements Dashboards {
62
63
  [Symbol.asyncIterator]() {
63
64
  return this;
64
65
  },
65
- byPage: () => {
66
- return this.listByResourceGroupPagingPage(resourceGroupName, options);
66
+ byPage: (settings?: PageSettings) => {
67
+ if (settings?.maxPageSize) {
68
+ throw new Error("maxPageSize is not supported by this operation.");
69
+ }
70
+ return this.listByResourceGroupPagingPage(
71
+ resourceGroupName,
72
+ options,
73
+ settings
74
+ );
67
75
  }
68
76
  };
69
77
  }
70
78
 
71
79
  private async *listByResourceGroupPagingPage(
72
80
  resourceGroupName: string,
73
- options?: DashboardsListByResourceGroupOptionalParams
81
+ options?: DashboardsListByResourceGroupOptionalParams,
82
+ settings?: PageSettings
74
83
  ): AsyncIterableIterator<Dashboard[]> {
75
- let result = await this._listByResourceGroup(resourceGroupName, options);
76
- yield result.value || [];
77
- let continuationToken = result.nextLink;
84
+ let result: DashboardsListByResourceGroupResponse;
85
+ let continuationToken = settings?.continuationToken;
86
+ if (!continuationToken) {
87
+ result = await this._listByResourceGroup(resourceGroupName, options);
88
+ let page = result.value || [];
89
+ continuationToken = result.nextLink;
90
+ setContinuationToken(page, continuationToken);
91
+ yield page;
92
+ }
78
93
  while (continuationToken) {
79
94
  result = await this._listByResourceGroupNext(
80
95
  resourceGroupName,
@@ -82,7 +97,9 @@ export class DashboardsImpl implements Dashboards {
82
97
  options
83
98
  );
84
99
  continuationToken = result.nextLink;
85
- yield result.value || [];
100
+ let page = result.value || [];
101
+ setContinuationToken(page, continuationToken);
102
+ yield page;
86
103
  }
87
104
  }
88
105
 
@@ -113,22 +130,34 @@ export class DashboardsImpl implements Dashboards {
113
130
  [Symbol.asyncIterator]() {
114
131
  return this;
115
132
  },
116
- byPage: () => {
117
- return this.listBySubscriptionPagingPage(options);
133
+ byPage: (settings?: PageSettings) => {
134
+ if (settings?.maxPageSize) {
135
+ throw new Error("maxPageSize is not supported by this operation.");
136
+ }
137
+ return this.listBySubscriptionPagingPage(options, settings);
118
138
  }
119
139
  };
120
140
  }
121
141
 
122
142
  private async *listBySubscriptionPagingPage(
123
- options?: DashboardsListBySubscriptionOptionalParams
143
+ options?: DashboardsListBySubscriptionOptionalParams,
144
+ settings?: PageSettings
124
145
  ): AsyncIterableIterator<Dashboard[]> {
125
- let result = await this._listBySubscription(options);
126
- yield result.value || [];
127
- let continuationToken = result.nextLink;
146
+ let result: DashboardsListBySubscriptionResponse;
147
+ let continuationToken = settings?.continuationToken;
148
+ if (!continuationToken) {
149
+ result = await this._listBySubscription(options);
150
+ let page = result.value || [];
151
+ continuationToken = result.nextLink;
152
+ setContinuationToken(page, continuationToken);
153
+ yield page;
154
+ }
128
155
  while (continuationToken) {
129
156
  result = await this._listBySubscriptionNext(continuationToken, options);
130
157
  continuationToken = result.nextLink;
131
- yield result.value || [];
158
+ let page = result.value || [];
159
+ setContinuationToken(page, continuationToken);
160
+ yield page;
132
161
  }
133
162
  }
134
163
 
@@ -419,7 +448,6 @@ const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {
419
448
  bodyMapper: Mappers.ErrorResponse
420
449
  }
421
450
  },
422
- queryParameters: [Parameters.apiVersion],
423
451
  urlParameters: [
424
452
  Parameters.$host,
425
453
  Parameters.nextLink,
@@ -440,7 +468,6 @@ const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = {
440
468
  bodyMapper: Mappers.ErrorResponse
441
469
  }
442
470
  },
443
- queryParameters: [Parameters.apiVersion],
444
471
  urlParameters: [
445
472
  Parameters.$host,
446
473
  Parameters.nextLink,
@@ -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 { ListTenantConfigurationViolations } from "../operationsInterfaces";
11
12
  import * as coreClient from "@azure/core-client";
12
13
  import * as Mappers from "../models/mappers";
@@ -49,22 +50,34 @@ export class ListTenantConfigurationViolationsImpl
49
50
  [Symbol.asyncIterator]() {
50
51
  return this;
51
52
  },
52
- byPage: () => {
53
- return this.listPagingPage(options);
53
+ byPage: (settings?: PageSettings) => {
54
+ if (settings?.maxPageSize) {
55
+ throw new Error("maxPageSize is not supported by this operation.");
56
+ }
57
+ return this.listPagingPage(options, settings);
54
58
  }
55
59
  };
56
60
  }
57
61
 
58
62
  private async *listPagingPage(
59
- options?: ListTenantConfigurationViolationsListOptionalParams
63
+ options?: ListTenantConfigurationViolationsListOptionalParams,
64
+ settings?: PageSettings
60
65
  ): AsyncIterableIterator<Violation[]> {
61
- let result = await this._list(options);
62
- yield result.value || [];
63
- let continuationToken = result.nextLink;
66
+ let result: ListTenantConfigurationViolationsListResponse;
67
+ let continuationToken = settings?.continuationToken;
68
+ if (!continuationToken) {
69
+ result = await this._list(options);
70
+ let page = result.value || [];
71
+ continuationToken = result.nextLink;
72
+ setContinuationToken(page, continuationToken);
73
+ yield page;
74
+ }
64
75
  while (continuationToken) {
65
76
  result = await this._listNext(continuationToken, options);
66
77
  continuationToken = result.nextLink;
67
- yield result.value || [];
78
+ let page = result.value || [];
79
+ setContinuationToken(page, continuationToken);
80
+ yield page;
68
81
  }
69
82
  }
70
83
 
@@ -131,7 +144,6 @@ const listNextOperationSpec: coreClient.OperationSpec = {
131
144
  bodyMapper: Mappers.ErrorResponse
132
145
  }
133
146
  },
134
- queryParameters: [Parameters.apiVersion],
135
147
  urlParameters: [Parameters.$host, Parameters.nextLink],
136
148
  headerParameters: [Parameters.accept],
137
149
  serializer
@@ -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 { Operations } from "../operationsInterfaces";
11
12
  import * as coreClient from "@azure/core-client";
12
13
  import * as Mappers from "../models/mappers";
@@ -48,22 +49,34 @@ export class OperationsImpl implements Operations {
48
49
  [Symbol.asyncIterator]() {
49
50
  return this;
50
51
  },
51
- byPage: () => {
52
- return this.listPagingPage(options);
52
+ byPage: (settings?: PageSettings) => {
53
+ if (settings?.maxPageSize) {
54
+ throw new Error("maxPageSize is not supported by this operation.");
55
+ }
56
+ return this.listPagingPage(options, settings);
53
57
  }
54
58
  };
55
59
  }
56
60
 
57
61
  private async *listPagingPage(
58
- options?: OperationsListOptionalParams
62
+ options?: OperationsListOptionalParams,
63
+ settings?: PageSettings
59
64
  ): AsyncIterableIterator<ResourceProviderOperation[]> {
60
- let result = await this._list(options);
61
- yield result.value || [];
62
- let continuationToken = result.nextLink;
65
+ let result: OperationsListResponse;
66
+ let continuationToken = settings?.continuationToken;
67
+ if (!continuationToken) {
68
+ result = await this._list(options);
69
+ let page = result.value || [];
70
+ continuationToken = result.nextLink;
71
+ setContinuationToken(page, continuationToken);
72
+ yield page;
73
+ }
63
74
  while (continuationToken) {
64
75
  result = await this._listNext(continuationToken, options);
65
76
  continuationToken = result.nextLink;
66
- yield result.value || [];
77
+ let page = result.value || [];
78
+ setContinuationToken(page, continuationToken);
79
+ yield page;
67
80
  }
68
81
  }
69
82
 
@@ -130,7 +143,6 @@ const listNextOperationSpec: coreClient.OperationSpec = {
130
143
  bodyMapper: Mappers.ErrorResponse
131
144
  }
132
145
  },
133
- queryParameters: [Parameters.apiVersion],
134
146
  urlParameters: [Parameters.$host, Parameters.nextLink],
135
147
  headerParameters: [Parameters.accept],
136
148
  serializer
@@ -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 { TenantConfigurations } from "../operationsInterfaces";
11
12
  import * as coreClient from "@azure/core-client";
12
13
  import * as Mappers from "../models/mappers";
@@ -54,22 +55,34 @@ export class TenantConfigurationsImpl implements TenantConfigurations {
54
55
  [Symbol.asyncIterator]() {
55
56
  return this;
56
57
  },
57
- byPage: () => {
58
- return this.listPagingPage(options);
58
+ byPage: (settings?: PageSettings) => {
59
+ if (settings?.maxPageSize) {
60
+ throw new Error("maxPageSize is not supported by this operation.");
61
+ }
62
+ return this.listPagingPage(options, settings);
59
63
  }
60
64
  };
61
65
  }
62
66
 
63
67
  private async *listPagingPage(
64
- options?: TenantConfigurationsListOptionalParams
68
+ options?: TenantConfigurationsListOptionalParams,
69
+ settings?: PageSettings
65
70
  ): AsyncIterableIterator<Configuration[]> {
66
- let result = await this._list(options);
67
- yield result.value || [];
68
- let continuationToken = result.nextLink;
71
+ let result: TenantConfigurationsListResponse;
72
+ let continuationToken = settings?.continuationToken;
73
+ if (!continuationToken) {
74
+ result = await this._list(options);
75
+ let page = result.value || [];
76
+ continuationToken = result.nextLink;
77
+ setContinuationToken(page, continuationToken);
78
+ yield page;
79
+ }
69
80
  while (continuationToken) {
70
81
  result = await this._listNext(continuationToken, options);
71
82
  continuationToken = result.nextLink;
72
- yield result.value || [];
83
+ let page = result.value || [];
84
+ setContinuationToken(page, continuationToken);
85
+ yield page;
73
86
  }
74
87
  }
75
88
 
@@ -237,7 +250,6 @@ const listNextOperationSpec: coreClient.OperationSpec = {
237
250
  bodyMapper: Mappers.ErrorResponse
238
251
  }
239
252
  },
240
- queryParameters: [Parameters.apiVersion],
241
253
  urlParameters: [Parameters.$host, Parameters.nextLink],
242
254
  headerParameters: [Parameters.accept],
243
255
  serializer
@@ -0,0 +1,39 @@
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
+
9
+ export interface PageInfo {
10
+ continuationToken?: string;
11
+ }
12
+
13
+ const pageMap = new WeakMap<object, PageInfo>();
14
+
15
+ /**
16
+ * Given the last `.value` produced by the `byPage` iterator,
17
+ * returns a continuation token that can be used to begin paging from
18
+ * that point later.
19
+ * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
20
+ * @returns The continuation token that can be passed into byPage() during future calls.
21
+ */
22
+ export function getContinuationToken(page: unknown): string | undefined {
23
+ if (typeof page !== "object" || page === null) {
24
+ return undefined;
25
+ }
26
+ return pageMap.get(page)?.continuationToken;
27
+ }
28
+
29
+ export function setContinuationToken(
30
+ page: unknown,
31
+ continuationToken: string | undefined
32
+ ): void {
33
+ if (typeof page !== "object" || page === null || !continuationToken) {
34
+ return;
35
+ }
36
+ const pageInfo = pageMap.get(page) ?? {};
37
+ pageInfo.continuationToken = continuationToken;
38
+ pageMap.set(page, pageInfo);
39
+ }
package/src/portal.ts CHANGED
@@ -67,41 +67,47 @@ export class Portal extends coreClient.ServiceClient {
67
67
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
68
68
  : `${packageDetails}`;
69
69
 
70
- if (!options.credentialScopes) {
71
- options.credentialScopes = ["https://management.azure.com/.default"];
72
- }
73
70
  const optionsWithDefaults = {
74
71
  ...defaults,
75
72
  ...options,
76
73
  userAgentOptions: {
77
74
  userAgentPrefix
78
75
  },
79
- baseUri:
76
+ endpoint:
80
77
  options.endpoint ?? options.baseUri ?? "https://management.azure.com"
81
78
  };
82
79
  super(optionsWithDefaults);
83
80
 
81
+ let bearerTokenAuthenticationPolicyFound: boolean = false;
84
82
  if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
85
83
  const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies();
86
- const bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(
84
+ bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(
87
85
  (pipelinePolicy) =>
88
86
  pipelinePolicy.name ===
89
87
  coreRestPipeline.bearerTokenAuthenticationPolicyName
90
88
  );
91
- if (!bearerTokenAuthenticationPolicyFound) {
92
- this.pipeline.removePolicy({
93
- name: coreRestPipeline.bearerTokenAuthenticationPolicyName
94
- });
95
- this.pipeline.addPolicy(
96
- coreRestPipeline.bearerTokenAuthenticationPolicy({
97
- scopes: `${optionsWithDefaults.baseUri}/.default`,
98
- challengeCallbacks: {
99
- authorizeRequestOnChallenge:
100
- coreClient.authorizeRequestOnClaimChallenge
101
- }
102
- })
103
- );
104
- }
89
+ }
90
+ if (
91
+ !options ||
92
+ !options.pipeline ||
93
+ options.pipeline.getOrderedPolicies().length == 0 ||
94
+ !bearerTokenAuthenticationPolicyFound
95
+ ) {
96
+ this.pipeline.removePolicy({
97
+ name: coreRestPipeline.bearerTokenAuthenticationPolicyName
98
+ });
99
+ this.pipeline.addPolicy(
100
+ coreRestPipeline.bearerTokenAuthenticationPolicy({
101
+ credential: credentials,
102
+ scopes:
103
+ optionsWithDefaults.credentialScopes ??
104
+ `${optionsWithDefaults.endpoint}/.default`,
105
+ challengeCallbacks: {
106
+ authorizeRequestOnChallenge:
107
+ coreClient.authorizeRequestOnClaimChallenge
108
+ }
109
+ })
110
+ );
105
111
  }
106
112
  // Parameter assignments
107
113
  this.subscriptionId = subscriptionId;
@@ -233,6 +233,15 @@ export declare interface ErrorResponse {
233
233
  error?: ErrorDefinition;
234
234
  }
235
235
 
236
+ /**
237
+ * Given the last `.value` produced by the `byPage` iterator,
238
+ * returns a continuation token that can be used to begin paging from
239
+ * that point later.
240
+ * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
241
+ * @returns The continuation token that can be passed into byPage() during future calls.
242
+ */
243
+ export declare function getContinuationToken(page: unknown): string | undefined;
244
+
236
245
  /** Known values of {@link ConfigurationName} that the service accepts. */
237
246
  export declare enum KnownConfigurationName {
238
247
  /** Default */