@azure/arm-devcenter 1.1.1-alpha.20250620.1 → 1.1.1-alpha.20250721.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 (219) hide show
  1. package/dist/browser/devCenterClient.js +36 -5
  2. package/dist/browser/devCenterClient.js.map +1 -1
  3. package/dist/browser/lroImpl.js +7 -3
  4. package/dist/browser/lroImpl.js.map +1 -1
  5. package/dist/browser/models/mappers.js +445 -205
  6. package/dist/browser/models/mappers.js.map +1 -1
  7. package/dist/browser/operations/attachedNetworks.js +67 -91
  8. package/dist/browser/operations/attachedNetworks.js.map +1 -1
  9. package/dist/browser/operations/catalogs.js +78 -70
  10. package/dist/browser/operations/catalogs.js.map +1 -1
  11. package/dist/browser/operations/checkNameAvailability.js +1 -0
  12. package/dist/browser/operations/checkNameAvailability.js.map +1 -1
  13. package/dist/browser/operations/checkScopedNameAvailability.js +1 -0
  14. package/dist/browser/operations/checkScopedNameAvailability.js.map +1 -1
  15. package/dist/browser/operations/devBoxDefinitions.js +78 -97
  16. package/dist/browser/operations/devBoxDefinitions.js.map +1 -1
  17. package/dist/browser/operations/devCenters.js +78 -97
  18. package/dist/browser/operations/devCenters.js.map +1 -1
  19. package/dist/browser/operations/environmentDefinitions.js +45 -79
  20. package/dist/browser/operations/environmentDefinitions.js.map +1 -1
  21. package/dist/browser/operations/environmentTypes.js +23 -40
  22. package/dist/browser/operations/environmentTypes.js.map +1 -1
  23. package/dist/browser/operations/galleries.js +45 -52
  24. package/dist/browser/operations/galleries.js.map +1 -1
  25. package/dist/browser/operations/imageVersions.js +23 -40
  26. package/dist/browser/operations/imageVersions.js.map +1 -1
  27. package/dist/browser/operations/images.js +45 -79
  28. package/dist/browser/operations/images.js.map +1 -1
  29. package/dist/browser/operations/networkConnections.js +120 -168
  30. package/dist/browser/operations/networkConnections.js.map +1 -1
  31. package/dist/browser/operations/operationStatuses.js +1 -0
  32. package/dist/browser/operations/operationStatuses.js.map +1 -1
  33. package/dist/browser/operations/operations.js +23 -40
  34. package/dist/browser/operations/operations.js.map +1 -1
  35. package/dist/browser/operations/pools.js +67 -64
  36. package/dist/browser/operations/pools.js.map +1 -1
  37. package/dist/browser/operations/projectAllowedEnvironmentTypes.js +23 -40
  38. package/dist/browser/operations/projectAllowedEnvironmentTypes.js.map +1 -1
  39. package/dist/browser/operations/projectCatalogEnvironmentDefinitions.js +1 -0
  40. package/dist/browser/operations/projectCatalogEnvironmentDefinitions.js.map +1 -1
  41. package/dist/browser/operations/projectCatalogs.js +78 -70
  42. package/dist/browser/operations/projectCatalogs.js.map +1 -1
  43. package/dist/browser/operations/projectEnvironmentTypes.js +23 -40
  44. package/dist/browser/operations/projectEnvironmentTypes.js.map +1 -1
  45. package/dist/browser/operations/projects.js +78 -97
  46. package/dist/browser/operations/projects.js.map +1 -1
  47. package/dist/browser/operations/schedules.js +56 -58
  48. package/dist/browser/operations/schedules.js.map +1 -1
  49. package/dist/browser/operations/skus.js +23 -40
  50. package/dist/browser/operations/skus.js.map +1 -1
  51. package/dist/browser/operations/usages.js +23 -40
  52. package/dist/browser/operations/usages.js.map +1 -1
  53. package/dist/browser/pagingHelper.js +2 -4
  54. package/dist/browser/pagingHelper.js.map +1 -1
  55. package/dist/commonjs/devCenterClient.js +36 -5
  56. package/dist/commonjs/devCenterClient.js.map +1 -1
  57. package/dist/commonjs/lroImpl.js +7 -3
  58. package/dist/commonjs/lroImpl.js.map +1 -1
  59. package/dist/commonjs/models/mappers.js +445 -205
  60. package/dist/commonjs/models/mappers.js.map +1 -1
  61. package/dist/commonjs/operations/attachedNetworks.js +67 -90
  62. package/dist/commonjs/operations/attachedNetworks.js.map +1 -1
  63. package/dist/commonjs/operations/catalogs.js +78 -69
  64. package/dist/commonjs/operations/catalogs.js.map +1 -1
  65. package/dist/commonjs/operations/checkNameAvailability.js +1 -0
  66. package/dist/commonjs/operations/checkNameAvailability.js.map +1 -1
  67. package/dist/commonjs/operations/checkScopedNameAvailability.js +1 -0
  68. package/dist/commonjs/operations/checkScopedNameAvailability.js.map +1 -1
  69. package/dist/commonjs/operations/devBoxDefinitions.js +78 -96
  70. package/dist/commonjs/operations/devBoxDefinitions.js.map +1 -1
  71. package/dist/commonjs/operations/devCenters.js +78 -96
  72. package/dist/commonjs/operations/devCenters.js.map +1 -1
  73. package/dist/commonjs/operations/environmentDefinitions.js +45 -78
  74. package/dist/commonjs/operations/environmentDefinitions.js.map +1 -1
  75. package/dist/commonjs/operations/environmentTypes.js +23 -39
  76. package/dist/commonjs/operations/environmentTypes.js.map +1 -1
  77. package/dist/commonjs/operations/galleries.js +45 -51
  78. package/dist/commonjs/operations/galleries.js.map +1 -1
  79. package/dist/commonjs/operations/imageVersions.js +23 -39
  80. package/dist/commonjs/operations/imageVersions.js.map +1 -1
  81. package/dist/commonjs/operations/images.js +45 -78
  82. package/dist/commonjs/operations/images.js.map +1 -1
  83. package/dist/commonjs/operations/networkConnections.js +120 -167
  84. package/dist/commonjs/operations/networkConnections.js.map +1 -1
  85. package/dist/commonjs/operations/operationStatuses.js +1 -0
  86. package/dist/commonjs/operations/operationStatuses.js.map +1 -1
  87. package/dist/commonjs/operations/operations.js +23 -39
  88. package/dist/commonjs/operations/operations.js.map +1 -1
  89. package/dist/commonjs/operations/pools.js +67 -63
  90. package/dist/commonjs/operations/pools.js.map +1 -1
  91. package/dist/commonjs/operations/projectAllowedEnvironmentTypes.js +23 -39
  92. package/dist/commonjs/operations/projectAllowedEnvironmentTypes.js.map +1 -1
  93. package/dist/commonjs/operations/projectCatalogEnvironmentDefinitions.js +1 -0
  94. package/dist/commonjs/operations/projectCatalogEnvironmentDefinitions.js.map +1 -1
  95. package/dist/commonjs/operations/projectCatalogs.js +78 -69
  96. package/dist/commonjs/operations/projectCatalogs.js.map +1 -1
  97. package/dist/commonjs/operations/projectEnvironmentTypes.js +23 -39
  98. package/dist/commonjs/operations/projectEnvironmentTypes.js.map +1 -1
  99. package/dist/commonjs/operations/projects.js +78 -96
  100. package/dist/commonjs/operations/projects.js.map +1 -1
  101. package/dist/commonjs/operations/schedules.js +56 -57
  102. package/dist/commonjs/operations/schedules.js.map +1 -1
  103. package/dist/commonjs/operations/skus.js +23 -39
  104. package/dist/commonjs/operations/skus.js.map +1 -1
  105. package/dist/commonjs/operations/usages.js +23 -39
  106. package/dist/commonjs/operations/usages.js.map +1 -1
  107. package/dist/commonjs/pagingHelper.js +2 -4
  108. package/dist/commonjs/pagingHelper.js.map +1 -1
  109. package/dist/commonjs/tsdoc-metadata.json +11 -11
  110. package/dist/esm/devCenterClient.js +36 -5
  111. package/dist/esm/devCenterClient.js.map +1 -1
  112. package/dist/esm/lroImpl.js +7 -3
  113. package/dist/esm/lroImpl.js.map +1 -1
  114. package/dist/esm/models/mappers.js +445 -205
  115. package/dist/esm/models/mappers.js.map +1 -1
  116. package/dist/esm/operations/attachedNetworks.js +67 -91
  117. package/dist/esm/operations/attachedNetworks.js.map +1 -1
  118. package/dist/esm/operations/catalogs.js +78 -70
  119. package/dist/esm/operations/catalogs.js.map +1 -1
  120. package/dist/esm/operations/checkNameAvailability.js +1 -0
  121. package/dist/esm/operations/checkNameAvailability.js.map +1 -1
  122. package/dist/esm/operations/checkScopedNameAvailability.js +1 -0
  123. package/dist/esm/operations/checkScopedNameAvailability.js.map +1 -1
  124. package/dist/esm/operations/devBoxDefinitions.js +78 -97
  125. package/dist/esm/operations/devBoxDefinitions.js.map +1 -1
  126. package/dist/esm/operations/devCenters.js +78 -97
  127. package/dist/esm/operations/devCenters.js.map +1 -1
  128. package/dist/esm/operations/environmentDefinitions.js +45 -79
  129. package/dist/esm/operations/environmentDefinitions.js.map +1 -1
  130. package/dist/esm/operations/environmentTypes.js +23 -40
  131. package/dist/esm/operations/environmentTypes.js.map +1 -1
  132. package/dist/esm/operations/galleries.js +45 -52
  133. package/dist/esm/operations/galleries.js.map +1 -1
  134. package/dist/esm/operations/imageVersions.js +23 -40
  135. package/dist/esm/operations/imageVersions.js.map +1 -1
  136. package/dist/esm/operations/images.js +45 -79
  137. package/dist/esm/operations/images.js.map +1 -1
  138. package/dist/esm/operations/networkConnections.js +120 -168
  139. package/dist/esm/operations/networkConnections.js.map +1 -1
  140. package/dist/esm/operations/operationStatuses.js +1 -0
  141. package/dist/esm/operations/operationStatuses.js.map +1 -1
  142. package/dist/esm/operations/operations.js +23 -40
  143. package/dist/esm/operations/operations.js.map +1 -1
  144. package/dist/esm/operations/pools.js +67 -64
  145. package/dist/esm/operations/pools.js.map +1 -1
  146. package/dist/esm/operations/projectAllowedEnvironmentTypes.js +23 -40
  147. package/dist/esm/operations/projectAllowedEnvironmentTypes.js.map +1 -1
  148. package/dist/esm/operations/projectCatalogEnvironmentDefinitions.js +1 -0
  149. package/dist/esm/operations/projectCatalogEnvironmentDefinitions.js.map +1 -1
  150. package/dist/esm/operations/projectCatalogs.js +78 -70
  151. package/dist/esm/operations/projectCatalogs.js.map +1 -1
  152. package/dist/esm/operations/projectEnvironmentTypes.js +23 -40
  153. package/dist/esm/operations/projectEnvironmentTypes.js.map +1 -1
  154. package/dist/esm/operations/projects.js +78 -97
  155. package/dist/esm/operations/projects.js.map +1 -1
  156. package/dist/esm/operations/schedules.js +56 -58
  157. package/dist/esm/operations/schedules.js.map +1 -1
  158. package/dist/esm/operations/skus.js +23 -40
  159. package/dist/esm/operations/skus.js.map +1 -1
  160. package/dist/esm/operations/usages.js +23 -40
  161. package/dist/esm/operations/usages.js.map +1 -1
  162. package/dist/esm/pagingHelper.js +2 -4
  163. package/dist/esm/pagingHelper.js.map +1 -1
  164. package/dist/react-native/devCenterClient.js +36 -5
  165. package/dist/react-native/devCenterClient.js.map +1 -1
  166. package/dist/react-native/lroImpl.js +7 -3
  167. package/dist/react-native/lroImpl.js.map +1 -1
  168. package/dist/react-native/models/mappers.js +445 -205
  169. package/dist/react-native/models/mappers.js.map +1 -1
  170. package/dist/react-native/operations/attachedNetworks.js +67 -91
  171. package/dist/react-native/operations/attachedNetworks.js.map +1 -1
  172. package/dist/react-native/operations/catalogs.js +78 -70
  173. package/dist/react-native/operations/catalogs.js.map +1 -1
  174. package/dist/react-native/operations/checkNameAvailability.js +1 -0
  175. package/dist/react-native/operations/checkNameAvailability.js.map +1 -1
  176. package/dist/react-native/operations/checkScopedNameAvailability.js +1 -0
  177. package/dist/react-native/operations/checkScopedNameAvailability.js.map +1 -1
  178. package/dist/react-native/operations/devBoxDefinitions.js +78 -97
  179. package/dist/react-native/operations/devBoxDefinitions.js.map +1 -1
  180. package/dist/react-native/operations/devCenters.js +78 -97
  181. package/dist/react-native/operations/devCenters.js.map +1 -1
  182. package/dist/react-native/operations/environmentDefinitions.js +45 -79
  183. package/dist/react-native/operations/environmentDefinitions.js.map +1 -1
  184. package/dist/react-native/operations/environmentTypes.js +23 -40
  185. package/dist/react-native/operations/environmentTypes.js.map +1 -1
  186. package/dist/react-native/operations/galleries.js +45 -52
  187. package/dist/react-native/operations/galleries.js.map +1 -1
  188. package/dist/react-native/operations/imageVersions.js +23 -40
  189. package/dist/react-native/operations/imageVersions.js.map +1 -1
  190. package/dist/react-native/operations/images.js +45 -79
  191. package/dist/react-native/operations/images.js.map +1 -1
  192. package/dist/react-native/operations/networkConnections.js +120 -168
  193. package/dist/react-native/operations/networkConnections.js.map +1 -1
  194. package/dist/react-native/operations/operationStatuses.js +1 -0
  195. package/dist/react-native/operations/operationStatuses.js.map +1 -1
  196. package/dist/react-native/operations/operations.js +23 -40
  197. package/dist/react-native/operations/operations.js.map +1 -1
  198. package/dist/react-native/operations/pools.js +67 -64
  199. package/dist/react-native/operations/pools.js.map +1 -1
  200. package/dist/react-native/operations/projectAllowedEnvironmentTypes.js +23 -40
  201. package/dist/react-native/operations/projectAllowedEnvironmentTypes.js.map +1 -1
  202. package/dist/react-native/operations/projectCatalogEnvironmentDefinitions.js +1 -0
  203. package/dist/react-native/operations/projectCatalogEnvironmentDefinitions.js.map +1 -1
  204. package/dist/react-native/operations/projectCatalogs.js +78 -70
  205. package/dist/react-native/operations/projectCatalogs.js.map +1 -1
  206. package/dist/react-native/operations/projectEnvironmentTypes.js +23 -40
  207. package/dist/react-native/operations/projectEnvironmentTypes.js.map +1 -1
  208. package/dist/react-native/operations/projects.js +78 -97
  209. package/dist/react-native/operations/projects.js.map +1 -1
  210. package/dist/react-native/operations/schedules.js +56 -58
  211. package/dist/react-native/operations/schedules.js.map +1 -1
  212. package/dist/react-native/operations/skus.js +23 -40
  213. package/dist/react-native/operations/skus.js.map +1 -1
  214. package/dist/react-native/operations/usages.js +23 -40
  215. package/dist/react-native/operations/usages.js.map +1 -1
  216. package/dist/react-native/pagingHelper.js +2 -4
  217. package/dist/react-native/pagingHelper.js.map +1 -1
  218. package/package.json +2 -2
  219. /package/review/{arm-devcenter.api.md → arm-devcenter-node.api.md} +0 -0
@@ -18,6 +18,7 @@ const lroImpl_js_1 = require("../lroImpl.js");
18
18
  /// <reference lib="esnext.asynciterable" />
19
19
  /** Class containing Schedules operations. */
20
20
  class SchedulesImpl {
21
+ client;
21
22
  /**
22
23
  * Initialize a new instance of the class Schedules class.
23
24
  * @param client Reference to the service client
@@ -42,52 +43,35 @@ class SchedulesImpl {
42
43
  return this;
43
44
  },
44
45
  byPage: (settings) => {
45
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
46
+ if (settings?.maxPageSize) {
46
47
  throw new Error("maxPageSize is not supported by this operation.");
47
48
  }
48
49
  return this.listByPoolPagingPage(resourceGroupName, projectName, poolName, options, settings);
49
50
  },
50
51
  };
51
52
  }
52
- listByPoolPagingPage(resourceGroupName, projectName, poolName, options, settings) {
53
- return tslib_1.__asyncGenerator(this, arguments, function* listByPoolPagingPage_1() {
54
- let result;
55
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
56
- if (!continuationToken) {
57
- result = yield tslib_1.__await(this._listByPool(resourceGroupName, projectName, poolName, options));
58
- let page = result.value || [];
59
- continuationToken = result.nextLink;
60
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
61
- yield yield tslib_1.__await(page);
62
- }
63
- while (continuationToken) {
64
- result = yield tslib_1.__await(this._listByPoolNext(resourceGroupName, projectName, poolName, continuationToken, options));
65
- continuationToken = result.nextLink;
66
- let page = result.value || [];
67
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
68
- yield yield tslib_1.__await(page);
69
- }
70
- });
53
+ async *listByPoolPagingPage(resourceGroupName, projectName, poolName, options, settings) {
54
+ let result;
55
+ let continuationToken = settings?.continuationToken;
56
+ if (!continuationToken) {
57
+ result = await this._listByPool(resourceGroupName, projectName, poolName, options);
58
+ let page = result.value || [];
59
+ continuationToken = result.nextLink;
60
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
61
+ yield page;
62
+ }
63
+ while (continuationToken) {
64
+ result = await this._listByPoolNext(resourceGroupName, projectName, poolName, continuationToken, options);
65
+ continuationToken = result.nextLink;
66
+ let page = result.value || [];
67
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
68
+ yield page;
69
+ }
71
70
  }
72
- listByPoolPagingAll(resourceGroupName, projectName, poolName, options) {
73
- return tslib_1.__asyncGenerator(this, arguments, function* listByPoolPagingAll_1() {
74
- var _a, e_1, _b, _c;
75
- try {
76
- for (var _d = true, _e = tslib_1.__asyncValues(this.listByPoolPagingPage(resourceGroupName, projectName, poolName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
77
- _c = _f.value;
78
- _d = false;
79
- const page = _c;
80
- yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
81
- }
82
- }
83
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
84
- finally {
85
- try {
86
- if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
87
- }
88
- finally { if (e_1) throw e_1.error; }
89
- }
90
- });
71
+ async *listByPoolPagingAll(resourceGroupName, projectName, poolName, options) {
72
+ for await (const page of this.listByPoolPagingPage(resourceGroupName, projectName, poolName, options)) {
73
+ yield* page;
74
+ }
91
75
  }
92
76
  /**
93
77
  * Lists schedules for a pool
@@ -124,14 +108,19 @@ class SchedulesImpl {
124
108
  return this.client.sendOperationRequest(args, spec);
125
109
  };
126
110
  const sendOperationFn = async (args, spec) => {
127
- var _a;
128
111
  let currentRawResponse = undefined;
129
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
112
+ const providedCallback = args.options?.onResponse;
130
113
  const callback = (rawResponse, flatResponse) => {
131
114
  currentRawResponse = rawResponse;
132
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
115
+ providedCallback?.(rawResponse, flatResponse);
116
+ };
117
+ const updatedArgs = {
118
+ ...args,
119
+ options: {
120
+ ...args.options,
121
+ onResponse: callback,
122
+ },
133
123
  };
134
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
135
124
  const flatResponse = await directSendOperation(updatedArgs, spec);
136
125
  return {
137
126
  flatResponse,
@@ -155,8 +144,8 @@ class SchedulesImpl {
155
144
  spec: createOrUpdateOperationSpec,
156
145
  });
157
146
  const poller = await (0, core_lro_1.createHttpPoller)(lro, {
158
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
159
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
147
+ restoreFrom: options?.resumeFrom,
148
+ intervalInMs: options?.updateIntervalInMs,
160
149
  resourceLocationConfig: "azure-async-operation",
161
150
  });
162
151
  await poller.poll();
@@ -189,14 +178,19 @@ class SchedulesImpl {
189
178
  return this.client.sendOperationRequest(args, spec);
190
179
  };
191
180
  const sendOperationFn = async (args, spec) => {
192
- var _a;
193
181
  let currentRawResponse = undefined;
194
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
182
+ const providedCallback = args.options?.onResponse;
195
183
  const callback = (rawResponse, flatResponse) => {
196
184
  currentRawResponse = rawResponse;
197
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
185
+ providedCallback?.(rawResponse, flatResponse);
186
+ };
187
+ const updatedArgs = {
188
+ ...args,
189
+ options: {
190
+ ...args.options,
191
+ onResponse: callback,
192
+ },
198
193
  };
199
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
200
194
  const flatResponse = await directSendOperation(updatedArgs, spec);
201
195
  return {
202
196
  flatResponse,
@@ -220,8 +214,8 @@ class SchedulesImpl {
220
214
  spec: updateOperationSpec,
221
215
  });
222
216
  const poller = await (0, core_lro_1.createHttpPoller)(lro, {
223
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
224
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
217
+ restoreFrom: options?.resumeFrom,
218
+ intervalInMs: options?.updateIntervalInMs,
225
219
  resourceLocationConfig: "azure-async-operation",
226
220
  });
227
221
  await poller.poll();
@@ -253,14 +247,19 @@ class SchedulesImpl {
253
247
  return this.client.sendOperationRequest(args, spec);
254
248
  };
255
249
  const sendOperationFn = async (args, spec) => {
256
- var _a;
257
250
  let currentRawResponse = undefined;
258
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
251
+ const providedCallback = args.options?.onResponse;
259
252
  const callback = (rawResponse, flatResponse) => {
260
253
  currentRawResponse = rawResponse;
261
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
254
+ providedCallback?.(rawResponse, flatResponse);
255
+ };
256
+ const updatedArgs = {
257
+ ...args,
258
+ options: {
259
+ ...args.options,
260
+ onResponse: callback,
261
+ },
262
262
  };
263
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
264
263
  const flatResponse = await directSendOperation(updatedArgs, spec);
265
264
  return {
266
265
  flatResponse,
@@ -277,8 +276,8 @@ class SchedulesImpl {
277
276
  spec: deleteOperationSpec,
278
277
  });
279
278
  const poller = await (0, core_lro_1.createHttpPoller)(lro, {
280
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
281
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
279
+ restoreFrom: options?.resumeFrom,
280
+ intervalInMs: options?.updateIntervalInMs,
282
281
  resourceLocationConfig: "azure-async-operation",
283
282
  });
284
283
  await poller.poll();
@@ -1 +1 @@
1
- {"version":3,"file":"schedules.js","sourceRoot":"","sources":["../../../src/operations/schedules.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAEtD,8CAIyB;AACzB,8CAA8C;AAkB9C,4CAA4C;AAC5C,6CAA6C;AAC7C,MAAa,aAAa;IAGxB;;;OAGG;IACH,YAAY,MAAuB;QACjC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;OAMG;IACI,UAAU,CACf,iBAAyB,EACzB,WAAmB,EACnB,QAAgB,EAChB,OAA2C;QAE3C,MAAM,IAAI,GAAG,IAAI,CAAC,mBAAmB,CACnC,iBAAiB,EACjB,WAAW,EACX,QAAQ,EACR,OAAO,CACR,CAAC;QACF,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,oBAAoB,CAC9B,iBAAiB,EACjB,WAAW,EACX,QAAQ,EACR,OAAO,EACP,QAAQ,CACT,CAAC;YACJ,CAAC;SACF,CAAC;IACJ,CAAC;IAEc,oBA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Y;KACxB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,2BAA2B,GAA6B;IAC5D,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,kBAAkB;SACvC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { Schedules } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { DevCenterClient } from \"../devCenterClient.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n Schedule,\n SchedulesListByPoolNextOptionalParams,\n SchedulesListByPoolOptionalParams,\n SchedulesListByPoolResponse,\n SchedulesGetOptionalParams,\n SchedulesGetResponse,\n SchedulesCreateOrUpdateOptionalParams,\n SchedulesCreateOrUpdateResponse,\n ScheduleUpdate,\n SchedulesUpdateOptionalParams,\n SchedulesUpdateResponse,\n SchedulesDeleteOptionalParams,\n SchedulesDeleteResponse,\n SchedulesListByPoolNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Schedules operations. */\nexport class SchedulesImpl implements Schedules {\n private readonly client: DevCenterClient;\n\n /**\n * Initialize a new instance of the class Schedules class.\n * @param client Reference to the service client\n */\n constructor(client: DevCenterClient) {\n this.client = client;\n }\n\n /**\n * Lists schedules for a pool\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param projectName The name of the project.\n * @param poolName Name of the pool.\n * @param options The options parameters.\n */\n public listByPool(\n resourceGroupName: string,\n projectName: string,\n poolName: string,\n options?: SchedulesListByPoolOptionalParams,\n ): PagedAsyncIterableIterator<Schedule> {\n const iter = this.listByPoolPagingAll(\n resourceGroupName,\n projectName,\n poolName,\n options,\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByPoolPagingPage(\n resourceGroupName,\n projectName,\n poolName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByPoolPagingPage(\n resourceGroupName: string,\n projectName: string,\n poolName: string,\n options?: SchedulesListByPoolOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<Schedule[]> {\n let result: SchedulesListByPoolResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByPool(\n resourceGroupName,\n projectName,\n poolName,\n options,\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByPoolNext(\n resourceGroupName,\n projectName,\n poolName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByPoolPagingAll(\n resourceGroupName: string,\n projectName: string,\n poolName: string,\n options?: SchedulesListByPoolOptionalParams,\n ): AsyncIterableIterator<Schedule> {\n for await (const page of this.listByPoolPagingPage(\n resourceGroupName,\n projectName,\n poolName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists schedules for a pool\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param projectName The name of the project.\n * @param poolName Name of the pool.\n * @param options The options parameters.\n */\n private _listByPool(\n resourceGroupName: string,\n projectName: string,\n poolName: string,\n options?: SchedulesListByPoolOptionalParams,\n ): Promise<SchedulesListByPoolResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, projectName, poolName, options },\n listByPoolOperationSpec,\n );\n }\n\n /**\n * Gets a schedule resource.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param projectName The name of the project.\n * @param poolName Name of the pool.\n * @param scheduleName The name of the schedule that uniquely identifies it.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n projectName: string,\n poolName: string,\n scheduleName: string,\n options?: SchedulesGetOptionalParams,\n ): Promise<SchedulesGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, projectName, poolName, scheduleName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Creates or updates a Schedule.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param projectName The name of the project.\n * @param poolName Name of the pool.\n * @param scheduleName The name of the schedule that uniquely identifies it.\n * @param body Represents a scheduled task\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n resourceGroupName: string,\n projectName: string,\n poolName: string,\n scheduleName: string,\n body: Schedule,\n options?: SchedulesCreateOrUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<SchedulesCreateOrUpdateResponse>,\n SchedulesCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<SchedulesCreateOrUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n projectName,\n poolName,\n scheduleName,\n body,\n options,\n },\n spec: createOrUpdateOperationSpec,\n });\n const poller = await createHttpPoller<\n SchedulesCreateOrUpdateResponse,\n OperationState<SchedulesCreateOrUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"azure-async-operation\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Creates or updates a Schedule.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param projectName The name of the project.\n * @param poolName Name of the pool.\n * @param scheduleName The name of the schedule that uniquely identifies it.\n * @param body Represents a scheduled task\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n resourceGroupName: string,\n projectName: string,\n poolName: string,\n scheduleName: string,\n body: Schedule,\n options?: SchedulesCreateOrUpdateOptionalParams,\n ): Promise<SchedulesCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n resourceGroupName,\n projectName,\n poolName,\n scheduleName,\n body,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Partially updates a Scheduled.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param projectName The name of the project.\n * @param poolName Name of the pool.\n * @param scheduleName The name of the schedule that uniquely identifies it.\n * @param body Represents a scheduled task.\n * @param options The options parameters.\n */\n async beginUpdate(\n resourceGroupName: string,\n projectName: string,\n poolName: string,\n scheduleName: string,\n body: ScheduleUpdate,\n options?: SchedulesUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<SchedulesUpdateResponse>,\n SchedulesUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<SchedulesUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n projectName,\n poolName,\n scheduleName,\n body,\n options,\n },\n spec: updateOperationSpec,\n });\n const poller = await createHttpPoller<\n SchedulesUpdateResponse,\n OperationState<SchedulesUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"azure-async-operation\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Partially updates a Scheduled.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param projectName The name of the project.\n * @param poolName Name of the pool.\n * @param scheduleName The name of the schedule that uniquely identifies it.\n * @param body Represents a scheduled task.\n * @param options The options parameters.\n */\n async beginUpdateAndWait(\n resourceGroupName: string,\n projectName: string,\n poolName: string,\n scheduleName: string,\n body: ScheduleUpdate,\n options?: SchedulesUpdateOptionalParams,\n ): Promise<SchedulesUpdateResponse> {\n const poller = await this.beginUpdate(\n resourceGroupName,\n projectName,\n poolName,\n scheduleName,\n body,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Deletes a Scheduled.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param projectName The name of the project.\n * @param poolName Name of the pool.\n * @param scheduleName The name of the schedule that uniquely identifies it.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n projectName: string,\n poolName: string,\n scheduleName: string,\n options?: SchedulesDeleteOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<SchedulesDeleteResponse>,\n SchedulesDeleteResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<SchedulesDeleteResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, projectName, poolName, scheduleName, options },\n spec: deleteOperationSpec,\n });\n const poller = await createHttpPoller<\n SchedulesDeleteResponse,\n OperationState<SchedulesDeleteResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"azure-async-operation\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Deletes a Scheduled.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param projectName The name of the project.\n * @param poolName Name of the pool.\n * @param scheduleName The name of the schedule that uniquely identifies it.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n projectName: string,\n poolName: string,\n scheduleName: string,\n options?: SchedulesDeleteOptionalParams,\n ): Promise<SchedulesDeleteResponse> {\n const poller = await this.beginDelete(\n resourceGroupName,\n projectName,\n poolName,\n scheduleName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * ListByPoolNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param projectName The name of the project.\n * @param poolName Name of the pool.\n * @param nextLink The nextLink from the previous successful call to the ListByPool method.\n * @param options The options parameters.\n */\n private _listByPoolNext(\n resourceGroupName: string,\n projectName: string,\n poolName: string,\n nextLink: string,\n options?: SchedulesListByPoolNextOptionalParams,\n ): Promise<SchedulesListByPoolNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, projectName, poolName, nextLink, options },\n listByPoolNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByPoolOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/pools/{poolName}/schedules\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ScheduleListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion, Parameters.top],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.projectName,\n Parameters.poolName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/pools/{poolName}/schedules/{scheduleName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Schedule,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion, Parameters.top],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.projectName,\n Parameters.poolName,\n Parameters.scheduleName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/pools/{poolName}/schedules/{scheduleName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.Schedule,\n },\n 201: {\n bodyMapper: Mappers.Schedule,\n },\n 202: {\n bodyMapper: Mappers.Schedule,\n },\n 204: {\n bodyMapper: Mappers.Schedule,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.body16,\n queryParameters: [Parameters.apiVersion, Parameters.top],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.projectName,\n Parameters.poolName,\n Parameters.scheduleName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/pools/{poolName}/schedules/{scheduleName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.Schedule,\n },\n 201: {\n bodyMapper: Mappers.Schedule,\n },\n 202: {\n bodyMapper: Mappers.Schedule,\n },\n 204: {\n bodyMapper: Mappers.Schedule,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.body17,\n queryParameters: [Parameters.apiVersion, Parameters.top],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.projectName,\n Parameters.poolName,\n Parameters.scheduleName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/pools/{poolName}/schedules/{scheduleName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {\n headersMapper: Mappers.SchedulesDeleteHeaders,\n },\n 201: {\n headersMapper: Mappers.SchedulesDeleteHeaders,\n },\n 202: {\n headersMapper: Mappers.SchedulesDeleteHeaders,\n },\n 204: {\n headersMapper: Mappers.SchedulesDeleteHeaders,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion, Parameters.top],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.projectName,\n Parameters.poolName,\n Parameters.scheduleName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByPoolNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ScheduleListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.nextLink,\n Parameters.projectName,\n Parameters.poolName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
1
+ {"version":3,"file":"schedules.js","sourceRoot":"","sources":["../../../src/operations/schedules.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAEtD,8CAIyB;AACzB,8CAA8C;AAkB9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AAa,EAAE,OAAO,CAAC,sBAAsB;SAC9C;QACD,GAAG,EAAE;YACH,aAAa,EAAE,OAAO,CAAC,sBAAsB;SAC9C;QACD,GAAG,EAAE;YACH,aAAa,EAAE,OAAO,CAAC,sBAAsB;SAC9C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,EAAE,UAAU,CAAC,GAAG,CAAC;IACxD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,YAAY;KACxB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,2BAA2B,GAA6B;IAC5D,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,kBAAkB;SACvC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { Schedules } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { DevCenterClient } from \"../devCenterClient.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n Schedule,\n SchedulesListByPoolNextOptionalParams,\n SchedulesListByPoolOptionalParams,\n SchedulesListByPoolResponse,\n SchedulesGetOptionalParams,\n SchedulesGetResponse,\n SchedulesCreateOrUpdateOptionalParams,\n SchedulesCreateOrUpdateResponse,\n ScheduleUpdate,\n SchedulesUpdateOptionalParams,\n SchedulesUpdateResponse,\n SchedulesDeleteOptionalParams,\n SchedulesDeleteResponse,\n SchedulesListByPoolNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Schedules operations. */\nexport class SchedulesImpl implements Schedules {\n private readonly client: DevCenterClient;\n\n /**\n * Initialize a new instance of the class Schedules class.\n * @param client Reference to the service client\n */\n constructor(client: DevCenterClient) {\n this.client = client;\n }\n\n /**\n * Lists schedules for a pool\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param projectName The name of the project.\n * @param poolName Name of the pool.\n * @param options The options parameters.\n */\n public listByPool(\n resourceGroupName: string,\n projectName: string,\n poolName: string,\n options?: SchedulesListByPoolOptionalParams,\n ): PagedAsyncIterableIterator<Schedule> {\n const iter = this.listByPoolPagingAll(\n resourceGroupName,\n projectName,\n poolName,\n options,\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByPoolPagingPage(\n resourceGroupName,\n projectName,\n poolName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByPoolPagingPage(\n resourceGroupName: string,\n projectName: string,\n poolName: string,\n options?: SchedulesListByPoolOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<Schedule[]> {\n let result: SchedulesListByPoolResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByPool(\n resourceGroupName,\n projectName,\n poolName,\n options,\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByPoolNext(\n resourceGroupName,\n projectName,\n poolName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByPoolPagingAll(\n resourceGroupName: string,\n projectName: string,\n poolName: string,\n options?: SchedulesListByPoolOptionalParams,\n ): AsyncIterableIterator<Schedule> {\n for await (const page of this.listByPoolPagingPage(\n resourceGroupName,\n projectName,\n poolName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists schedules for a pool\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param projectName The name of the project.\n * @param poolName Name of the pool.\n * @param options The options parameters.\n */\n private _listByPool(\n resourceGroupName: string,\n projectName: string,\n poolName: string,\n options?: SchedulesListByPoolOptionalParams,\n ): Promise<SchedulesListByPoolResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, projectName, poolName, options },\n listByPoolOperationSpec,\n );\n }\n\n /**\n * Gets a schedule resource.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param projectName The name of the project.\n * @param poolName Name of the pool.\n * @param scheduleName The name of the schedule that uniquely identifies it.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n projectName: string,\n poolName: string,\n scheduleName: string,\n options?: SchedulesGetOptionalParams,\n ): Promise<SchedulesGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, projectName, poolName, scheduleName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Creates or updates a Schedule.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param projectName The name of the project.\n * @param poolName Name of the pool.\n * @param scheduleName The name of the schedule that uniquely identifies it.\n * @param body Represents a scheduled task\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n resourceGroupName: string,\n projectName: string,\n poolName: string,\n scheduleName: string,\n body: Schedule,\n options?: SchedulesCreateOrUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<SchedulesCreateOrUpdateResponse>,\n SchedulesCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<SchedulesCreateOrUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n projectName,\n poolName,\n scheduleName,\n body,\n options,\n },\n spec: createOrUpdateOperationSpec,\n });\n const poller = await createHttpPoller<\n SchedulesCreateOrUpdateResponse,\n OperationState<SchedulesCreateOrUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"azure-async-operation\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Creates or updates a Schedule.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param projectName The name of the project.\n * @param poolName Name of the pool.\n * @param scheduleName The name of the schedule that uniquely identifies it.\n * @param body Represents a scheduled task\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n resourceGroupName: string,\n projectName: string,\n poolName: string,\n scheduleName: string,\n body: Schedule,\n options?: SchedulesCreateOrUpdateOptionalParams,\n ): Promise<SchedulesCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n resourceGroupName,\n projectName,\n poolName,\n scheduleName,\n body,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Partially updates a Scheduled.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param projectName The name of the project.\n * @param poolName Name of the pool.\n * @param scheduleName The name of the schedule that uniquely identifies it.\n * @param body Represents a scheduled task.\n * @param options The options parameters.\n */\n async beginUpdate(\n resourceGroupName: string,\n projectName: string,\n poolName: string,\n scheduleName: string,\n body: ScheduleUpdate,\n options?: SchedulesUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<SchedulesUpdateResponse>,\n SchedulesUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<SchedulesUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n projectName,\n poolName,\n scheduleName,\n body,\n options,\n },\n spec: updateOperationSpec,\n });\n const poller = await createHttpPoller<\n SchedulesUpdateResponse,\n OperationState<SchedulesUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"azure-async-operation\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Partially updates a Scheduled.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param projectName The name of the project.\n * @param poolName Name of the pool.\n * @param scheduleName The name of the schedule that uniquely identifies it.\n * @param body Represents a scheduled task.\n * @param options The options parameters.\n */\n async beginUpdateAndWait(\n resourceGroupName: string,\n projectName: string,\n poolName: string,\n scheduleName: string,\n body: ScheduleUpdate,\n options?: SchedulesUpdateOptionalParams,\n ): Promise<SchedulesUpdateResponse> {\n const poller = await this.beginUpdate(\n resourceGroupName,\n projectName,\n poolName,\n scheduleName,\n body,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Deletes a Scheduled.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param projectName The name of the project.\n * @param poolName Name of the pool.\n * @param scheduleName The name of the schedule that uniquely identifies it.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n projectName: string,\n poolName: string,\n scheduleName: string,\n options?: SchedulesDeleteOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<SchedulesDeleteResponse>,\n SchedulesDeleteResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<SchedulesDeleteResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, projectName, poolName, scheduleName, options },\n spec: deleteOperationSpec,\n });\n const poller = await createHttpPoller<\n SchedulesDeleteResponse,\n OperationState<SchedulesDeleteResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"azure-async-operation\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Deletes a Scheduled.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param projectName The name of the project.\n * @param poolName Name of the pool.\n * @param scheduleName The name of the schedule that uniquely identifies it.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n projectName: string,\n poolName: string,\n scheduleName: string,\n options?: SchedulesDeleteOptionalParams,\n ): Promise<SchedulesDeleteResponse> {\n const poller = await this.beginDelete(\n resourceGroupName,\n projectName,\n poolName,\n scheduleName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * ListByPoolNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param projectName The name of the project.\n * @param poolName Name of the pool.\n * @param nextLink The nextLink from the previous successful call to the ListByPool method.\n * @param options The options parameters.\n */\n private _listByPoolNext(\n resourceGroupName: string,\n projectName: string,\n poolName: string,\n nextLink: string,\n options?: SchedulesListByPoolNextOptionalParams,\n ): Promise<SchedulesListByPoolNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, projectName, poolName, nextLink, options },\n listByPoolNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByPoolOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/pools/{poolName}/schedules\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ScheduleListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion, Parameters.top],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.projectName,\n Parameters.poolName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/pools/{poolName}/schedules/{scheduleName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Schedule,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion, Parameters.top],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.projectName,\n Parameters.poolName,\n Parameters.scheduleName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/pools/{poolName}/schedules/{scheduleName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.Schedule,\n },\n 201: {\n bodyMapper: Mappers.Schedule,\n },\n 202: {\n bodyMapper: Mappers.Schedule,\n },\n 204: {\n bodyMapper: Mappers.Schedule,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.body16,\n queryParameters: [Parameters.apiVersion, Parameters.top],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.projectName,\n Parameters.poolName,\n Parameters.scheduleName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/pools/{poolName}/schedules/{scheduleName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.Schedule,\n },\n 201: {\n bodyMapper: Mappers.Schedule,\n },\n 202: {\n bodyMapper: Mappers.Schedule,\n },\n 204: {\n bodyMapper: Mappers.Schedule,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.body17,\n queryParameters: [Parameters.apiVersion, Parameters.top],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.projectName,\n Parameters.poolName,\n Parameters.scheduleName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/pools/{poolName}/schedules/{scheduleName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {\n headersMapper: Mappers.SchedulesDeleteHeaders,\n },\n 201: {\n headersMapper: Mappers.SchedulesDeleteHeaders,\n },\n 202: {\n headersMapper: Mappers.SchedulesDeleteHeaders,\n },\n 204: {\n headersMapper: Mappers.SchedulesDeleteHeaders,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion, Parameters.top],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.projectName,\n Parameters.poolName,\n Parameters.scheduleName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByPoolNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ScheduleListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.nextLink,\n Parameters.projectName,\n Parameters.poolName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
@@ -16,6 +16,7 @@ const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
16
16
  /// <reference lib="esnext.asynciterable" />
17
17
  /** Class containing Skus operations. */
18
18
  class SkusImpl {
19
+ client;
19
20
  /**
20
21
  * Initialize a new instance of the class Skus class.
21
22
  * @param client Reference to the service client
@@ -37,52 +38,35 @@ class SkusImpl {
37
38
  return this;
38
39
  },
39
40
  byPage: (settings) => {
40
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
41
+ if (settings?.maxPageSize) {
41
42
  throw new Error("maxPageSize is not supported by this operation.");
42
43
  }
43
44
  return this.listBySubscriptionPagingPage(options, settings);
44
45
  },
45
46
  };
46
47
  }
47
- listBySubscriptionPagingPage(options, settings) {
48
- return tslib_1.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
49
- let result;
50
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
51
- if (!continuationToken) {
52
- result = yield tslib_1.__await(this._listBySubscription(options));
53
- let page = result.value || [];
54
- continuationToken = result.nextLink;
55
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
56
- yield yield tslib_1.__await(page);
57
- }
58
- while (continuationToken) {
59
- result = yield tslib_1.__await(this._listBySubscriptionNext(continuationToken, options));
60
- continuationToken = result.nextLink;
61
- let page = result.value || [];
62
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
63
- yield yield tslib_1.__await(page);
64
- }
65
- });
48
+ async *listBySubscriptionPagingPage(options, settings) {
49
+ let result;
50
+ let continuationToken = settings?.continuationToken;
51
+ if (!continuationToken) {
52
+ result = await this._listBySubscription(options);
53
+ let page = result.value || [];
54
+ continuationToken = result.nextLink;
55
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
56
+ yield page;
57
+ }
58
+ while (continuationToken) {
59
+ result = await this._listBySubscriptionNext(continuationToken, options);
60
+ continuationToken = result.nextLink;
61
+ let page = result.value || [];
62
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
63
+ yield page;
64
+ }
66
65
  }
67
- listBySubscriptionPagingAll(options) {
68
- return tslib_1.__asyncGenerator(this, arguments, function* listBySubscriptionPagingAll_1() {
69
- var _a, e_1, _b, _c;
70
- try {
71
- for (var _d = true, _e = tslib_1.__asyncValues(this.listBySubscriptionPagingPage(options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
72
- _c = _f.value;
73
- _d = false;
74
- const page = _c;
75
- yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
76
- }
77
- }
78
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
79
- finally {
80
- try {
81
- if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
82
- }
83
- finally { if (e_1) throw e_1.error; }
84
- }
85
- });
66
+ async *listBySubscriptionPagingAll(options) {
67
+ for await (const page of this.listBySubscriptionPagingPage(options)) {
68
+ yield* page;
69
+ }
86
70
  }
87
71
  /**
88
72
  * Lists the Microsoft.DevCenter SKUs available in a subscription
@@ -1 +1 @@
1
- {"version":3,"file":"skus.js","sourceRoot":"","sources":["../../../src/operations/skus.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAUtD,4CAA4C;AAC5C,wCAAwC;AACxC,MAAa,QAAQ;IAGnB;;;OAGG;IACH,YAAY,MAAuB;QACjC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG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,UAAU,CAAC,cAAc,CAAC;IAC5D,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,mCAAmC,GAA6B;IACpE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { Skus } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { DevCenterClient } from \"../devCenterClient.js\";\nimport {\n DevCenterSku,\n SkusListBySubscriptionNextOptionalParams,\n SkusListBySubscriptionOptionalParams,\n SkusListBySubscriptionResponse,\n SkusListBySubscriptionNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Skus operations. */\nexport class SkusImpl implements Skus {\n private readonly client: DevCenterClient;\n\n /**\n * Initialize a new instance of the class Skus class.\n * @param client Reference to the service client\n */\n constructor(client: DevCenterClient) {\n this.client = client;\n }\n\n /**\n * Lists the Microsoft.DevCenter SKUs available in a subscription\n * @param options The options parameters.\n */\n public listBySubscription(\n options?: SkusListBySubscriptionOptionalParams,\n ): PagedAsyncIterableIterator<DevCenterSku> {\n const iter = this.listBySubscriptionPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listBySubscriptionPagingPage(options, settings);\n },\n };\n }\n\n private async *listBySubscriptionPagingPage(\n options?: SkusListBySubscriptionOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<DevCenterSku[]> {\n let result: SkusListBySubscriptionResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listBySubscription(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listBySubscriptionNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listBySubscriptionPagingAll(\n options?: SkusListBySubscriptionOptionalParams,\n ): AsyncIterableIterator<DevCenterSku> {\n for await (const page of this.listBySubscriptionPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Lists the Microsoft.DevCenter SKUs available in a subscription\n * @param options The options parameters.\n */\n private _listBySubscription(\n options?: SkusListBySubscriptionOptionalParams,\n ): Promise<SkusListBySubscriptionResponse> {\n return this.client.sendOperationRequest(\n { options },\n listBySubscriptionOperationSpec,\n );\n }\n\n /**\n * ListBySubscriptionNext\n * @param nextLink The nextLink from the previous successful call to the ListBySubscription method.\n * @param options The options parameters.\n */\n private _listBySubscriptionNext(\n nextLink: string,\n options?: SkusListBySubscriptionNextOptionalParams,\n ): Promise<SkusListBySubscriptionNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listBySubscriptionNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listBySubscriptionOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.DevCenter/skus\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SkuListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion, Parameters.top],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listBySubscriptionNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SkuListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
1
+ {"version":3,"file":"skus.js","sourceRoot":"","sources":["../../../src/operations/skus.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAUtD,4CAA4C;AAC5C,wCAAwC;AACxC,MAAa,QAAQ;IACF,MAAM,CAAkB;IAEzC;;;OAGG;IACH,YAAY,MAAuB;QACjC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACI,kBAAkB,CACvB,OAA8C;QAE9C,MAAM,IAAI,GAAG,IAAI,CAAC,2BAA2B,CAAC,OAAO,CAAC,CAAC;QACvD,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,EAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO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IACK,uBAAuB,CAC7B,QAAgB,EAChB,OAAkD;QAElD,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,QAAQ,EAAE,OAAO,EAAE,EACrB,mCAAmC,CACpC,CAAC;IACJ,CAAC;CACF;AA5FD,4BA4FC;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,+BAA+B,GAA6B;IAChE,IAAI,EAAE,oEAAoE;IAC1E,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,EAAE,UAAU,CAAC,GAAG,CAAC;IACxD,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,cAAc,CAAC;IAC5D,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,mCAAmC,GAA6B;IACpE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { Skus } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { DevCenterClient } from \"../devCenterClient.js\";\nimport {\n DevCenterSku,\n SkusListBySubscriptionNextOptionalParams,\n SkusListBySubscriptionOptionalParams,\n SkusListBySubscriptionResponse,\n SkusListBySubscriptionNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Skus operations. */\nexport class SkusImpl implements Skus {\n private readonly client: DevCenterClient;\n\n /**\n * Initialize a new instance of the class Skus class.\n * @param client Reference to the service client\n */\n constructor(client: DevCenterClient) {\n this.client = client;\n }\n\n /**\n * Lists the Microsoft.DevCenter SKUs available in a subscription\n * @param options The options parameters.\n */\n public listBySubscription(\n options?: SkusListBySubscriptionOptionalParams,\n ): PagedAsyncIterableIterator<DevCenterSku> {\n const iter = this.listBySubscriptionPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listBySubscriptionPagingPage(options, settings);\n },\n };\n }\n\n private async *listBySubscriptionPagingPage(\n options?: SkusListBySubscriptionOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<DevCenterSku[]> {\n let result: SkusListBySubscriptionResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listBySubscription(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listBySubscriptionNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listBySubscriptionPagingAll(\n options?: SkusListBySubscriptionOptionalParams,\n ): AsyncIterableIterator<DevCenterSku> {\n for await (const page of this.listBySubscriptionPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Lists the Microsoft.DevCenter SKUs available in a subscription\n * @param options The options parameters.\n */\n private _listBySubscription(\n options?: SkusListBySubscriptionOptionalParams,\n ): Promise<SkusListBySubscriptionResponse> {\n return this.client.sendOperationRequest(\n { options },\n listBySubscriptionOperationSpec,\n );\n }\n\n /**\n * ListBySubscriptionNext\n * @param nextLink The nextLink from the previous successful call to the ListBySubscription method.\n * @param options The options parameters.\n */\n private _listBySubscriptionNext(\n nextLink: string,\n options?: SkusListBySubscriptionNextOptionalParams,\n ): Promise<SkusListBySubscriptionNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listBySubscriptionNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listBySubscriptionOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.DevCenter/skus\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SkuListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion, Parameters.top],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listBySubscriptionNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SkuListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
@@ -16,6 +16,7 @@ const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
16
16
  /// <reference lib="esnext.asynciterable" />
17
17
  /** Class containing Usages operations. */
18
18
  class UsagesImpl {
19
+ client;
19
20
  /**
20
21
  * Initialize a new instance of the class Usages class.
21
22
  * @param client Reference to the service client
@@ -38,52 +39,35 @@ class UsagesImpl {
38
39
  return this;
39
40
  },
40
41
  byPage: (settings) => {
41
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
42
+ if (settings?.maxPageSize) {
42
43
  throw new Error("maxPageSize is not supported by this operation.");
43
44
  }
44
45
  return this.listByLocationPagingPage(location, options, settings);
45
46
  },
46
47
  };
47
48
  }
48
- listByLocationPagingPage(location, options, settings) {
49
- return tslib_1.__asyncGenerator(this, arguments, function* listByLocationPagingPage_1() {
50
- let result;
51
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
52
- if (!continuationToken) {
53
- result = yield tslib_1.__await(this._listByLocation(location, options));
54
- let page = result.value || [];
55
- continuationToken = result.nextLink;
56
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
57
- yield yield tslib_1.__await(page);
58
- }
59
- while (continuationToken) {
60
- result = yield tslib_1.__await(this._listByLocationNext(location, continuationToken, options));
61
- continuationToken = result.nextLink;
62
- let page = result.value || [];
63
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
64
- yield yield tslib_1.__await(page);
65
- }
66
- });
49
+ async *listByLocationPagingPage(location, options, settings) {
50
+ let result;
51
+ let continuationToken = settings?.continuationToken;
52
+ if (!continuationToken) {
53
+ result = await this._listByLocation(location, options);
54
+ let page = result.value || [];
55
+ continuationToken = result.nextLink;
56
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
57
+ yield page;
58
+ }
59
+ while (continuationToken) {
60
+ result = await this._listByLocationNext(location, continuationToken, options);
61
+ continuationToken = result.nextLink;
62
+ let page = result.value || [];
63
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
64
+ yield page;
65
+ }
67
66
  }
68
- listByLocationPagingAll(location, options) {
69
- return tslib_1.__asyncGenerator(this, arguments, function* listByLocationPagingAll_1() {
70
- var _a, e_1, _b, _c;
71
- try {
72
- for (var _d = true, _e = tslib_1.__asyncValues(this.listByLocationPagingPage(location, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
73
- _c = _f.value;
74
- _d = false;
75
- const page = _c;
76
- yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
77
- }
78
- }
79
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
80
- finally {
81
- try {
82
- if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
83
- }
84
- finally { if (e_1) throw e_1.error; }
85
- }
86
- });
67
+ async *listByLocationPagingAll(location, options) {
68
+ for await (const page of this.listByLocationPagingPage(location, options)) {
69
+ yield* page;
70
+ }
87
71
  }
88
72
  /**
89
73
  * Lists the current usages and limits in this location for the provided subscription.
@@ -1 +1 @@
1
- {"version":3,"file":"usages.js","sourceRoot":"","sources":["../../../src/operations/usages.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAUtD,4CAA4C;AAC5C,0CAA0C;AAC1C,MAAa,UAAU;IAGrB;;;OAGG;IACH,YAAY,MAAuB;QACjC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACI,cAAc,CACnB,QAAgB,EAChB,OAA4C;QAE5C,MAAM,IAAI,GAAG,IAAI,CAAC,uBAAuB,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;QAC7D,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,WAAW,EAAE,CAAC;oBA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C,gBAAgB;SACrC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { Usages } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { DevCenterClient } from \"../devCenterClient.js\";\nimport {\n Usage,\n UsagesListByLocationNextOptionalParams,\n UsagesListByLocationOptionalParams,\n UsagesListByLocationResponse,\n UsagesListByLocationNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Usages operations. */\nexport class UsagesImpl implements Usages {\n private readonly client: DevCenterClient;\n\n /**\n * Initialize a new instance of the class Usages class.\n * @param client Reference to the service client\n */\n constructor(client: DevCenterClient) {\n this.client = client;\n }\n\n /**\n * Lists the current usages and limits in this location for the provided subscription.\n * @param location The Azure region\n * @param options The options parameters.\n */\n public listByLocation(\n location: string,\n options?: UsagesListByLocationOptionalParams,\n ): PagedAsyncIterableIterator<Usage> {\n const iter = this.listByLocationPagingAll(location, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByLocationPagingPage(location, options, settings);\n },\n };\n }\n\n private async *listByLocationPagingPage(\n location: string,\n options?: UsagesListByLocationOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<Usage[]> {\n let result: UsagesListByLocationResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByLocation(location, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByLocationNext(\n location,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByLocationPagingAll(\n location: string,\n options?: UsagesListByLocationOptionalParams,\n ): AsyncIterableIterator<Usage> {\n for await (const page of this.listByLocationPagingPage(location, options)) {\n yield* page;\n }\n }\n\n /**\n * Lists the current usages and limits in this location for the provided subscription.\n * @param location The Azure region\n * @param options The options parameters.\n */\n private _listByLocation(\n location: string,\n options?: UsagesListByLocationOptionalParams,\n ): Promise<UsagesListByLocationResponse> {\n return this.client.sendOperationRequest(\n { location, options },\n listByLocationOperationSpec,\n );\n }\n\n /**\n * ListByLocationNext\n * @param location The Azure region\n * @param nextLink The nextLink from the previous successful call to the ListByLocation method.\n * @param options The options parameters.\n */\n private _listByLocationNext(\n location: string,\n nextLink: string,\n options?: UsagesListByLocationNextOptionalParams,\n ): Promise<UsagesListByLocationNextResponse> {\n return this.client.sendOperationRequest(\n { location, nextLink, options },\n listByLocationNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByLocationOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.DevCenter/locations/{location}/usages\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ListUsagesResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.location,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByLocationNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ListUsagesResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.nextLink,\n Parameters.location,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
1
+ {"version":3,"file":"usages.js","sourceRoot":"","sources":["../../../src/operations/usages.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAUtD,4CAA4C;AAC5C,0CAA0C;AAC1C,MAAa,UAAU;IACJ,MAAM,CAAkB;IAEzC;;;OAGG;IACH,YAAY,MAAuB;QACjC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACI,cAAc,CACnB,QAAgB,EAChB,OAA4C;QAE5C,MAAM,IAAI,GAAG,IAAI,CAAC,uBAAuB,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;QAC7D,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,EAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,wBAAwB,CAAC,QAAQ,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAC;YACpE,CAAC;SACF,CAAC;IACJ,CAAC;IAEO,KAAK,CAAC,CAAC,wBAAwB,CACrC,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,OAAgD;QAEhD,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,EAC/B,+BAA+B,CAChC,CAAC;IACJ,CAAC;CACF;AAxGD,gCAwGC;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,2BAA2B,GAA6B;IAC5D,IAAI,EAAE,2FAA2F;IACjG,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,gBAAgB;SACrC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,+BAA+B,GAA6B;IAChE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,gBAAgB;SACrC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { Usages } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { DevCenterClient } from \"../devCenterClient.js\";\nimport {\n Usage,\n UsagesListByLocationNextOptionalParams,\n UsagesListByLocationOptionalParams,\n UsagesListByLocationResponse,\n UsagesListByLocationNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Usages operations. */\nexport class UsagesImpl implements Usages {\n private readonly client: DevCenterClient;\n\n /**\n * Initialize a new instance of the class Usages class.\n * @param client Reference to the service client\n */\n constructor(client: DevCenterClient) {\n this.client = client;\n }\n\n /**\n * Lists the current usages and limits in this location for the provided subscription.\n * @param location The Azure region\n * @param options The options parameters.\n */\n public listByLocation(\n location: string,\n options?: UsagesListByLocationOptionalParams,\n ): PagedAsyncIterableIterator<Usage> {\n const iter = this.listByLocationPagingAll(location, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByLocationPagingPage(location, options, settings);\n },\n };\n }\n\n private async *listByLocationPagingPage(\n location: string,\n options?: UsagesListByLocationOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<Usage[]> {\n let result: UsagesListByLocationResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByLocation(location, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByLocationNext(\n location,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByLocationPagingAll(\n location: string,\n options?: UsagesListByLocationOptionalParams,\n ): AsyncIterableIterator<Usage> {\n for await (const page of this.listByLocationPagingPage(location, options)) {\n yield* page;\n }\n }\n\n /**\n * Lists the current usages and limits in this location for the provided subscription.\n * @param location The Azure region\n * @param options The options parameters.\n */\n private _listByLocation(\n location: string,\n options?: UsagesListByLocationOptionalParams,\n ): Promise<UsagesListByLocationResponse> {\n return this.client.sendOperationRequest(\n { location, options },\n listByLocationOperationSpec,\n );\n }\n\n /**\n * ListByLocationNext\n * @param location The Azure region\n * @param nextLink The nextLink from the previous successful call to the ListByLocation method.\n * @param options The options parameters.\n */\n private _listByLocationNext(\n location: string,\n nextLink: string,\n options?: UsagesListByLocationNextOptionalParams,\n ): Promise<UsagesListByLocationNextResponse> {\n return this.client.sendOperationRequest(\n { location, nextLink, options },\n listByLocationNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByLocationOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.DevCenter/locations/{location}/usages\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ListUsagesResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.location,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByLocationNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ListUsagesResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.nextLink,\n Parameters.location,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
@@ -18,18 +18,16 @@ const pageMap = new WeakMap();
18
18
  * @returns The continuation token that can be passed into byPage() during future calls.
19
19
  */
20
20
  function getContinuationToken(page) {
21
- var _a;
22
21
  if (typeof page !== "object" || page === null) {
23
22
  return undefined;
24
23
  }
25
- return (_a = pageMap.get(page)) === null || _a === void 0 ? void 0 : _a.continuationToken;
24
+ return pageMap.get(page)?.continuationToken;
26
25
  }
27
26
  function setContinuationToken(page, continuationToken) {
28
- var _a;
29
27
  if (typeof page !== "object" || page === null || !continuationToken) {
30
28
  return;
31
29
  }
32
- const pageInfo = (_a = pageMap.get(page)) !== null && _a !== void 0 ? _a : {};
30
+ const pageInfo = pageMap.get(page) ?? {};
33
31
  pageInfo.continuationToken = continuationToken;
34
32
  pageMap.set(page, pageInfo);
35
33
  }