@azure/arm-education 1.0.0-beta.2 → 1.0.0-beta.3

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 (90) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/LICENSE +1 -1
  3. package/README.md +1 -1
  4. package/dist/index.js +179 -78
  5. package/dist/index.js.map +1 -1
  6. package/dist/index.min.js +1 -1
  7. package/dist/index.min.js.map +1 -1
  8. package/dist-esm/samples-dev/grantsGetSample.js +9 -2
  9. package/dist-esm/samples-dev/grantsGetSample.js.map +1 -1
  10. package/dist-esm/samples-dev/grantsListAllSample.js +9 -2
  11. package/dist-esm/samples-dev/grantsListAllSample.js.map +1 -1
  12. package/dist-esm/samples-dev/grantsListSample.js +9 -2
  13. package/dist-esm/samples-dev/grantsListSample.js.map +1 -1
  14. package/dist-esm/samples-dev/joinRequestsApproveSample.js +8 -1
  15. package/dist-esm/samples-dev/joinRequestsApproveSample.js.map +1 -1
  16. package/dist-esm/samples-dev/joinRequestsDenySample.js +8 -1
  17. package/dist-esm/samples-dev/joinRequestsDenySample.js.map +1 -1
  18. package/dist-esm/samples-dev/joinRequestsGetSample.js +8 -1
  19. package/dist-esm/samples-dev/joinRequestsGetSample.js.map +1 -1
  20. package/dist-esm/samples-dev/joinRequestsListSample.js +8 -1
  21. package/dist-esm/samples-dev/joinRequestsListSample.js.map +1 -1
  22. package/dist-esm/samples-dev/labsCreateOrUpdateSample.js +8 -1
  23. package/dist-esm/samples-dev/labsCreateOrUpdateSample.js.map +1 -1
  24. package/dist-esm/samples-dev/labsDeleteSample.js +8 -1
  25. package/dist-esm/samples-dev/labsDeleteSample.js.map +1 -1
  26. package/dist-esm/samples-dev/labsGenerateInviteCodeSample.js +8 -1
  27. package/dist-esm/samples-dev/labsGenerateInviteCodeSample.js.map +1 -1
  28. package/dist-esm/samples-dev/labsGetSample.js +9 -2
  29. package/dist-esm/samples-dev/labsGetSample.js.map +1 -1
  30. package/dist-esm/samples-dev/labsListAllSample.js +9 -2
  31. package/dist-esm/samples-dev/labsListAllSample.js.map +1 -1
  32. package/dist-esm/samples-dev/labsListSample.js +9 -2
  33. package/dist-esm/samples-dev/labsListSample.js.map +1 -1
  34. package/dist-esm/samples-dev/operationsListSample.js +8 -1
  35. package/dist-esm/samples-dev/operationsListSample.js.map +1 -1
  36. package/dist-esm/samples-dev/redeemInvitationCodeSample.js +8 -1
  37. package/dist-esm/samples-dev/redeemInvitationCodeSample.js.map +1 -1
  38. package/dist-esm/samples-dev/studentLabsGetSample.js +8 -1
  39. package/dist-esm/samples-dev/studentLabsGetSample.js.map +1 -1
  40. package/dist-esm/samples-dev/studentLabsListAllSample.js +8 -1
  41. package/dist-esm/samples-dev/studentLabsListAllSample.js.map +1 -1
  42. package/dist-esm/samples-dev/studentsCreateOrUpdateSample.js +8 -1
  43. package/dist-esm/samples-dev/studentsCreateOrUpdateSample.js.map +1 -1
  44. package/dist-esm/samples-dev/studentsDeleteSample.js +8 -1
  45. package/dist-esm/samples-dev/studentsDeleteSample.js.map +1 -1
  46. package/dist-esm/samples-dev/studentsGetSample.js +8 -1
  47. package/dist-esm/samples-dev/studentsGetSample.js.map +1 -1
  48. package/dist-esm/samples-dev/studentsListSample.js +8 -1
  49. package/dist-esm/samples-dev/studentsListSample.js.map +1 -1
  50. package/dist-esm/src/educationManagementClient.d.ts.map +1 -1
  51. package/dist-esm/src/educationManagementClient.js +20 -18
  52. package/dist-esm/src/educationManagementClient.js.map +1 -1
  53. package/dist-esm/src/index.d.ts +1 -0
  54. package/dist-esm/src/index.d.ts.map +1 -1
  55. package/dist-esm/src/index.js +1 -0
  56. package/dist-esm/src/index.js.map +1 -1
  57. package/dist-esm/src/models/index.d.ts +0 -14
  58. package/dist-esm/src/models/index.d.ts.map +1 -1
  59. package/dist-esm/src/operations/grants.d.ts.map +1 -1
  60. package/dist-esm/src/operations/grants.js +37 -16
  61. package/dist-esm/src/operations/grants.js.map +1 -1
  62. package/dist-esm/src/operations/joinRequests.d.ts.map +1 -1
  63. package/dist-esm/src/operations/joinRequests.js +19 -8
  64. package/dist-esm/src/operations/joinRequests.js.map +1 -1
  65. package/dist-esm/src/operations/labs.d.ts.map +1 -1
  66. package/dist-esm/src/operations/labs.js +37 -20
  67. package/dist-esm/src/operations/labs.js.map +1 -1
  68. package/dist-esm/src/operations/studentLabs.d.ts.map +1 -1
  69. package/dist-esm/src/operations/studentLabs.js +19 -8
  70. package/dist-esm/src/operations/studentLabs.js.map +1 -1
  71. package/dist-esm/src/operations/students.d.ts.map +1 -1
  72. package/dist-esm/src/operations/students.js +19 -8
  73. package/dist-esm/src/operations/students.js.map +1 -1
  74. package/dist-esm/src/pagingHelper.d.ts +13 -0
  75. package/dist-esm/src/pagingHelper.d.ts.map +1 -0
  76. package/dist-esm/src/pagingHelper.js +32 -0
  77. package/dist-esm/src/pagingHelper.js.map +1 -0
  78. package/package.json +8 -6
  79. package/review/arm-education.api.md +3 -7
  80. package/src/educationManagementClient.ts +26 -20
  81. package/src/index.ts +1 -0
  82. package/src/models/index.ts +6 -26
  83. package/src/operations/grants.ts +46 -22
  84. package/src/operations/joinRequests.ts +27 -14
  85. package/src/operations/labs.ts +52 -31
  86. package/src/operations/studentLabs.ts +21 -9
  87. package/src/operations/students.ts +27 -14
  88. package/src/pagingHelper.ts +39 -0
  89. package/types/arm-education.d.ts +9 -14
  90. package/types/tsdoc-metadata.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"students.js","sourceRoot":"","sources":["../../../src/operations/students.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAIH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAenD,4CAA4C;AAC5C,4CAA4C;AAC5C,MAAM,OAAO,YAAY;IAGvB;;;OAGG;IACH,YAAY,MAAiC;QAC3C,IAAI,CAAC,MAAM,GA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AC;IAC7D,SAAS,EAAE,MAAM;IACjB,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,iBAAiB;SACtC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,iBAAiB;SACtC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,EAAE,UAAU,CAAC,cAAc,CAAC;IACnE,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,kBAAkB;QAC7B,UAAU,CAAC,kBAAkB;QAC7B,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,kBAAkB;KAC9B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC"}
1
+ {"version":3,"file":"students.js","sourceRoot":"","sources":["../../../src/operations/students.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;AAenD,4CAA4C;AAC5C,4CAA4C;AAC5C,MAAM,OAAO,YAAY;IAGvB;;;OAGG;IACH,YAAY,MAAiC;QAC3C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;OAMG;IACI,IAAI,CACT,kBAA0B,EAC1B,kBAA0B,EAC1B,kBAA0B,EAC1B,OAAoC;QAEpC,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAC7B,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,EAClB,OAAO,CACR,CAAC;QACF,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC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Aa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,kBAAkB;QAC7B,UAAU,CAAC,kBAAkB;QAC7B,UAAU,CAAC,kBAAkB;QAC7B,UAAU,CAAC,YAAY;KACxB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,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,iBAAiB;SACtC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,iBAAiB;SACtC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,kBAAkB;QAC7B,UAAU,CAAC,kBAAkB;QAC7B,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,kBAAkB;KAC9B;IACD,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 EducationManagementClient.",
6
- "version": "1.0.0-beta.2",
6
+ "version": "1.0.0-beta.3",
7
7
  "engines": {
8
- "node": ">=12.0.0"
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"
@@ -26,7 +26,7 @@
26
26
  "module": "./dist-esm/src/index.js",
27
27
  "types": "./types/arm-education.d.ts",
28
28
  "devDependencies": {
29
- "@microsoft/api-extractor": "7.18.11",
29
+ "@microsoft/api-extractor": "^7.31.1",
30
30
  "@rollup/plugin-commonjs": "^21.0.1",
31
31
  "@rollup/plugin-json": "^4.1.0",
32
32
  "@rollup/plugin-multi-entry": "^4.1.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"
48
50
  },
49
- "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/education/arm-education",
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/education/arm-education",
111
113
  "//sampleConfiguration": {
112
114
  "productName": "",
113
115
  "productSlugs": [
@@ -60,6 +60,9 @@ export interface ErrorResponseBody {
60
60
  error?: ErrorResponse;
61
61
  }
62
62
 
63
+ // @public
64
+ export function getContinuationToken(page: unknown): string | undefined;
65
+
63
66
  // @public
64
67
  export interface GrantDetails extends Resource {
65
68
  readonly allocatedBudget?: Amount;
@@ -93,7 +96,6 @@ export type GrantsGetResponse = GrantDetails;
93
96
 
94
97
  // @public
95
98
  export interface GrantsListAllNextOptionalParams extends coreClient.OperationOptions {
96
- includeAllocatedBudget?: boolean;
97
99
  }
98
100
 
99
101
  // @public
@@ -109,7 +111,6 @@ export type GrantsListAllResponse = GrantListResponse;
109
111
 
110
112
  // @public
111
113
  export interface GrantsListNextOptionalParams extends coreClient.OperationOptions {
112
- includeAllocatedBudget?: boolean;
113
114
  }
114
115
 
115
116
  // @public
@@ -173,7 +174,6 @@ export type JoinRequestsGetResponse = JoinRequestDetails;
173
174
 
174
175
  // @public
175
176
  export interface JoinRequestsListNextOptionalParams extends coreClient.OperationOptions {
176
- includeDenied?: boolean;
177
177
  }
178
178
 
179
179
  // @public
@@ -311,8 +311,6 @@ export type LabsGetResponse = LabDetails;
311
311
 
312
312
  // @public
313
313
  export interface LabsListAllNextOptionalParams extends coreClient.OperationOptions {
314
- includeBudget?: boolean;
315
- includeDeleted?: boolean;
316
314
  }
317
315
 
318
316
  // @public
@@ -329,7 +327,6 @@ export type LabsListAllResponse = LabListResult;
329
327
 
330
328
  // @public
331
329
  export interface LabsListNextOptionalParams extends coreClient.OperationOptions {
332
- includeBudget?: boolean;
333
330
  }
334
331
 
335
332
  // @public
@@ -504,7 +501,6 @@ export type StudentsGetResponse = StudentDetails;
504
501
 
505
502
  // @public
506
503
  export interface StudentsListNextOptionalParams extends coreClient.OperationOptions {
507
- includeDeleted?: boolean;
508
504
  }
509
505
 
510
506
  // @public
@@ -64,47 +64,53 @@ export class EducationManagementClient extends coreClient.ServiceClient {
64
64
  credential: credentials
65
65
  };
66
66
 
67
- const packageDetails = `azsdk-js-arm-education/1.0.0-beta.2`;
67
+ const packageDetails = `azsdk-js-arm-education/1.0.0-beta.3`;
68
68
  const userAgentPrefix =
69
69
  options.userAgentOptions && options.userAgentOptions.userAgentPrefix
70
70
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
71
71
  : `${packageDetails}`;
72
72
 
73
- if (!options.credentialScopes) {
74
- options.credentialScopes = ["https://management.azure.com/.default"];
75
- }
76
73
  const optionsWithDefaults = {
77
74
  ...defaults,
78
75
  ...options,
79
76
  userAgentOptions: {
80
77
  userAgentPrefix
81
78
  },
82
- baseUri:
79
+ endpoint:
83
80
  options.endpoint ?? options.baseUri ?? "https://management.azure.com"
84
81
  };
85
82
  super(optionsWithDefaults);
86
83
 
84
+ let bearerTokenAuthenticationPolicyFound: boolean = false;
87
85
  if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
88
86
  const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies();
89
- const bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(
87
+ bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(
90
88
  (pipelinePolicy) =>
91
89
  pipelinePolicy.name ===
92
90
  coreRestPipeline.bearerTokenAuthenticationPolicyName
93
91
  );
94
- if (!bearerTokenAuthenticationPolicyFound) {
95
- this.pipeline.removePolicy({
96
- name: coreRestPipeline.bearerTokenAuthenticationPolicyName
97
- });
98
- this.pipeline.addPolicy(
99
- coreRestPipeline.bearerTokenAuthenticationPolicy({
100
- scopes: `${optionsWithDefaults.baseUri}/.default`,
101
- challengeCallbacks: {
102
- authorizeRequestOnChallenge:
103
- coreClient.authorizeRequestOnClaimChallenge
104
- }
105
- })
106
- );
107
- }
92
+ }
93
+ if (
94
+ !options ||
95
+ !options.pipeline ||
96
+ options.pipeline.getOrderedPolicies().length == 0 ||
97
+ !bearerTokenAuthenticationPolicyFound
98
+ ) {
99
+ this.pipeline.removePolicy({
100
+ name: coreRestPipeline.bearerTokenAuthenticationPolicyName
101
+ });
102
+ this.pipeline.addPolicy(
103
+ coreRestPipeline.bearerTokenAuthenticationPolicy({
104
+ credential: credentials,
105
+ scopes:
106
+ optionsWithDefaults.credentialScopes ??
107
+ `${optionsWithDefaults.endpoint}/.default`,
108
+ challengeCallbacks: {
109
+ authorizeRequestOnChallenge:
110
+ coreClient.authorizeRequestOnClaimChallenge
111
+ }
112
+ })
113
+ );
108
114
  }
109
115
 
110
116
  // Assigning values to Constant parameters
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 { EducationManagementClient } from "./educationManagementClient";
12
13
  export * from "./operationsInterfaces";
@@ -607,20 +607,14 @@ export type GrantsGetResponse = GrantDetails;
607
607
 
608
608
  /** Optional parameters. */
609
609
  export interface GrantsListAllNextOptionalParams
610
- extends coreClient.OperationOptions {
611
- /** May be used to include information about budget that has been allocated. */
612
- includeAllocatedBudget?: boolean;
613
- }
610
+ extends coreClient.OperationOptions {}
614
611
 
615
612
  /** Contains response data for the listAllNext operation. */
616
613
  export type GrantsListAllNextResponse = GrantListResponse;
617
614
 
618
615
  /** Optional parameters. */
619
616
  export interface GrantsListNextOptionalParams
620
- extends coreClient.OperationOptions {
621
- /** May be used to include information about budget that has been allocated. */
622
- includeAllocatedBudget?: boolean;
623
- }
617
+ extends coreClient.OperationOptions {}
624
618
 
625
619
  /** Contains response data for the listNext operation. */
626
620
  export type GrantsListNextResponse = GrantListResponse;
@@ -676,22 +670,14 @@ export type LabsGenerateInviteCodeResponse = LabDetails;
676
670
 
677
671
  /** Optional parameters. */
678
672
  export interface LabsListAllNextOptionalParams
679
- extends coreClient.OperationOptions {
680
- /** May be used to include budget information. */
681
- includeBudget?: boolean;
682
- /** May be used to show deleted items. */
683
- includeDeleted?: boolean;
684
- }
673
+ extends coreClient.OperationOptions {}
685
674
 
686
675
  /** Contains response data for the listAllNext operation. */
687
676
  export type LabsListAllNextResponse = LabListResult;
688
677
 
689
678
  /** Optional parameters. */
690
679
  export interface LabsListNextOptionalParams
691
- extends coreClient.OperationOptions {
692
- /** May be used to include budget information. */
693
- includeBudget?: boolean;
694
- }
680
+ extends coreClient.OperationOptions {}
695
681
 
696
682
  /** Contains response data for the listNext operation. */
697
683
  export type LabsListNextResponse = LabListResult;
@@ -723,10 +709,7 @@ export interface JoinRequestsDenyOptionalParams
723
709
 
724
710
  /** Optional parameters. */
725
711
  export interface JoinRequestsListNextOptionalParams
726
- extends coreClient.OperationOptions {
727
- /** Include denied */
728
- includeDenied?: boolean;
729
- }
712
+ extends coreClient.OperationOptions {}
730
713
 
731
714
  /** Contains response data for the listNext operation. */
732
715
  export type JoinRequestsListNextResponse = JoinRequestList;
@@ -765,10 +748,7 @@ export type StudentsCreateOrUpdateResponse = StudentDetails;
765
748
 
766
749
  /** Optional parameters. */
767
750
  export interface StudentsListNextOptionalParams
768
- extends coreClient.OperationOptions {
769
- /** May be used to show deleted items. */
770
- includeDeleted?: boolean;
771
- }
751
+ extends coreClient.OperationOptions {}
772
752
 
773
753
  /** Contains response data for the listNext operation. */
774
754
  export type StudentsListNextResponse = StudentListResult;
@@ -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 { Grants } 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
  GrantDetails,
17
18
  GrantsListAllNextOptionalParams,
18
19
  GrantsListAllOptionalParams,
20
+ GrantsListAllResponse,
19
21
  GrantsListNextOptionalParams,
20
22
  GrantsListOptionalParams,
21
- GrantsListAllResponse,
22
23
  GrantsListResponse,
23
24
  GrantsGetOptionalParams,
24
25
  GrantsGetResponse,
@@ -54,22 +55,34 @@ export class GrantsImpl implements Grants {
54
55
  [Symbol.asyncIterator]() {
55
56
  return this;
56
57
  },
57
- byPage: () => {
58
- return this.listAllPagingPage(options);
58
+ byPage: (settings?: PageSettings) => {
59
+ if (settings?.maxPageSize) {
60
+ throw new Error("maxPageSize is not supported by this operation.");
61
+ }
62
+ return this.listAllPagingPage(options, settings);
59
63
  }
60
64
  };
61
65
  }
62
66
 
63
67
  private async *listAllPagingPage(
64
- options?: GrantsListAllOptionalParams
68
+ options?: GrantsListAllOptionalParams,
69
+ settings?: PageSettings
65
70
  ): AsyncIterableIterator<GrantDetails[]> {
66
- let result = await this._listAll(options);
67
- yield result.value || [];
68
- let continuationToken = result.nextLink;
71
+ let result: GrantsListAllResponse;
72
+ let continuationToken = settings?.continuationToken;
73
+ if (!continuationToken) {
74
+ result = await this._listAll(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._listAllNext(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
 
@@ -104,11 +117,15 @@ export class GrantsImpl implements Grants {
104
117
  [Symbol.asyncIterator]() {
105
118
  return this;
106
119
  },
107
- byPage: () => {
120
+ byPage: (settings?: PageSettings) => {
121
+ if (settings?.maxPageSize) {
122
+ throw new Error("maxPageSize is not supported by this operation.");
123
+ }
108
124
  return this.listPagingPage(
109
125
  billingAccountName,
110
126
  billingProfileName,
111
- options
127
+ options,
128
+ settings
112
129
  );
113
130
  }
114
131
  };
@@ -117,15 +134,22 @@ export class GrantsImpl implements Grants {
117
134
  private async *listPagingPage(
118
135
  billingAccountName: string,
119
136
  billingProfileName: string,
120
- options?: GrantsListOptionalParams
137
+ options?: GrantsListOptionalParams,
138
+ settings?: PageSettings
121
139
  ): AsyncIterableIterator<GrantDetails[]> {
122
- let result = await this._list(
123
- billingAccountName,
124
- billingProfileName,
125
- options
126
- );
127
- yield result.value || [];
128
- let continuationToken = result.nextLink;
140
+ let result: GrantsListResponse;
141
+ let continuationToken = settings?.continuationToken;
142
+ if (!continuationToken) {
143
+ result = await this._list(
144
+ billingAccountName,
145
+ billingProfileName,
146
+ options
147
+ );
148
+ let page = result.value || [];
149
+ continuationToken = result.nextLink;
150
+ setContinuationToken(page, continuationToken);
151
+ yield page;
152
+ }
129
153
  while (continuationToken) {
130
154
  result = await this._listNext(
131
155
  billingAccountName,
@@ -134,7 +158,9 @@ export class GrantsImpl implements Grants {
134
158
  options
135
159
  );
136
160
  continuationToken = result.nextLink;
137
- yield result.value || [];
161
+ let page = result.value || [];
162
+ setContinuationToken(page, continuationToken);
163
+ yield page;
138
164
  }
139
165
  }
140
166
 
@@ -302,7 +328,6 @@ const listAllNextOperationSpec: coreClient.OperationSpec = {
302
328
  bodyMapper: Mappers.ErrorResponseBody
303
329
  }
304
330
  },
305
- queryParameters: [Parameters.apiVersion, Parameters.includeAllocatedBudget],
306
331
  urlParameters: [Parameters.$host, Parameters.nextLink],
307
332
  headerParameters: [Parameters.accept],
308
333
  serializer
@@ -318,7 +343,6 @@ const listNextOperationSpec: coreClient.OperationSpec = {
318
343
  bodyMapper: Mappers.ErrorResponseBody
319
344
  }
320
345
  },
321
- queryParameters: [Parameters.apiVersion, Parameters.includeAllocatedBudget],
322
346
  urlParameters: [
323
347
  Parameters.$host,
324
348
  Parameters.billingAccountName,
@@ -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 { JoinRequests } from "../operationsInterfaces";
11
12
  import * as coreClient from "@azure/core-client";
12
13
  import * as Mappers from "../models/mappers";
@@ -63,12 +64,16 @@ export class JoinRequestsImpl implements JoinRequests {
63
64
  [Symbol.asyncIterator]() {
64
65
  return this;
65
66
  },
66
- byPage: () => {
67
+ byPage: (settings?: PageSettings) => {
68
+ if (settings?.maxPageSize) {
69
+ throw new Error("maxPageSize is not supported by this operation.");
70
+ }
67
71
  return this.listPagingPage(
68
72
  billingAccountName,
69
73
  billingProfileName,
70
74
  invoiceSectionName,
71
- options
75
+ options,
76
+ settings
72
77
  );
73
78
  }
74
79
  };
@@ -78,16 +83,23 @@ export class JoinRequestsImpl implements JoinRequests {
78
83
  billingAccountName: string,
79
84
  billingProfileName: string,
80
85
  invoiceSectionName: string,
81
- options?: JoinRequestsListOptionalParams
86
+ options?: JoinRequestsListOptionalParams,
87
+ settings?: PageSettings
82
88
  ): AsyncIterableIterator<JoinRequestDetails[]> {
83
- let result = await this._list(
84
- billingAccountName,
85
- billingProfileName,
86
- invoiceSectionName,
87
- options
88
- );
89
- yield result.value || [];
90
- let continuationToken = result.nextLink;
89
+ let result: JoinRequestsListResponse;
90
+ let continuationToken = settings?.continuationToken;
91
+ if (!continuationToken) {
92
+ result = await this._list(
93
+ billingAccountName,
94
+ billingProfileName,
95
+ invoiceSectionName,
96
+ options
97
+ );
98
+ let page = result.value || [];
99
+ continuationToken = result.nextLink;
100
+ setContinuationToken(page, continuationToken);
101
+ yield page;
102
+ }
91
103
  while (continuationToken) {
92
104
  result = await this._listNext(
93
105
  billingAccountName,
@@ -97,7 +109,9 @@ export class JoinRequestsImpl implements JoinRequests {
97
109
  options
98
110
  );
99
111
  continuationToken = result.nextLink;
100
- yield result.value || [];
112
+ let page = result.value || [];
113
+ setContinuationToken(page, continuationToken);
114
+ yield page;
101
115
  }
102
116
  }
103
117
 
@@ -345,7 +359,6 @@ const listNextOperationSpec: coreClient.OperationSpec = {
345
359
  bodyMapper: Mappers.ErrorResponseBody
346
360
  }
347
361
  },
348
- queryParameters: [Parameters.apiVersion, Parameters.includeDenied],
349
362
  urlParameters: [
350
363
  Parameters.$host,
351
364
  Parameters.billingAccountName,