@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
@@ -5,7 +5,6 @@
5
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
- import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
9
8
  import { setContinuationToken } from "../pagingHelper.js";
10
9
  import * as coreClient from "@azure/core-client";
11
10
  import * as Mappers from "../models/mappers.js";
@@ -15,6 +14,7 @@ import { createLroSpec } from "../lroImpl.js";
15
14
  /// <reference lib="esnext.asynciterable" />
16
15
  /** Class containing Schedules operations. */
17
16
  export class SchedulesImpl {
17
+ client;
18
18
  /**
19
19
  * Initialize a new instance of the class Schedules class.
20
20
  * @param client Reference to the service client
@@ -39,52 +39,35 @@ export class SchedulesImpl {
39
39
  return this;
40
40
  },
41
41
  byPage: (settings) => {
42
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
42
+ if (settings?.maxPageSize) {
43
43
  throw new Error("maxPageSize is not supported by this operation.");
44
44
  }
45
45
  return this.listByPoolPagingPage(resourceGroupName, projectName, poolName, options, settings);
46
46
  },
47
47
  };
48
48
  }
49
- listByPoolPagingPage(resourceGroupName, projectName, poolName, options, settings) {
50
- return __asyncGenerator(this, arguments, function* listByPoolPagingPage_1() {
51
- let result;
52
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
53
- if (!continuationToken) {
54
- result = yield __await(this._listByPool(resourceGroupName, projectName, poolName, options));
55
- let page = result.value || [];
56
- continuationToken = result.nextLink;
57
- setContinuationToken(page, continuationToken);
58
- yield yield __await(page);
59
- }
60
- while (continuationToken) {
61
- result = yield __await(this._listByPoolNext(resourceGroupName, projectName, poolName, continuationToken, options));
62
- continuationToken = result.nextLink;
63
- let page = result.value || [];
64
- setContinuationToken(page, continuationToken);
65
- yield yield __await(page);
66
- }
67
- });
49
+ async *listByPoolPagingPage(resourceGroupName, projectName, poolName, options, settings) {
50
+ let result;
51
+ let continuationToken = settings?.continuationToken;
52
+ if (!continuationToken) {
53
+ result = await this._listByPool(resourceGroupName, projectName, poolName, options);
54
+ let page = result.value || [];
55
+ continuationToken = result.nextLink;
56
+ setContinuationToken(page, continuationToken);
57
+ yield page;
58
+ }
59
+ while (continuationToken) {
60
+ result = await this._listByPoolNext(resourceGroupName, projectName, poolName, continuationToken, options);
61
+ continuationToken = result.nextLink;
62
+ let page = result.value || [];
63
+ setContinuationToken(page, continuationToken);
64
+ yield page;
65
+ }
68
66
  }
69
- listByPoolPagingAll(resourceGroupName, projectName, poolName, options) {
70
- return __asyncGenerator(this, arguments, function* listByPoolPagingAll_1() {
71
- var _a, e_1, _b, _c;
72
- try {
73
- for (var _d = true, _e = __asyncValues(this.listByPoolPagingPage(resourceGroupName, projectName, poolName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
74
- _c = _f.value;
75
- _d = false;
76
- const page = _c;
77
- yield __await(yield* __asyncDelegator(__asyncValues(page)));
78
- }
79
- }
80
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
81
- finally {
82
- try {
83
- if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
84
- }
85
- finally { if (e_1) throw e_1.error; }
86
- }
87
- });
67
+ async *listByPoolPagingAll(resourceGroupName, projectName, poolName, options) {
68
+ for await (const page of this.listByPoolPagingPage(resourceGroupName, projectName, poolName, options)) {
69
+ yield* page;
70
+ }
88
71
  }
89
72
  /**
90
73
  * Lists schedules for a pool
@@ -121,14 +104,19 @@ export class SchedulesImpl {
121
104
  return this.client.sendOperationRequest(args, spec);
122
105
  };
123
106
  const sendOperationFn = async (args, spec) => {
124
- var _a;
125
107
  let currentRawResponse = undefined;
126
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
108
+ const providedCallback = args.options?.onResponse;
127
109
  const callback = (rawResponse, flatResponse) => {
128
110
  currentRawResponse = rawResponse;
129
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
111
+ providedCallback?.(rawResponse, flatResponse);
112
+ };
113
+ const updatedArgs = {
114
+ ...args,
115
+ options: {
116
+ ...args.options,
117
+ onResponse: callback,
118
+ },
130
119
  };
131
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
132
120
  const flatResponse = await directSendOperation(updatedArgs, spec);
133
121
  return {
134
122
  flatResponse,
@@ -152,8 +140,8 @@ export class SchedulesImpl {
152
140
  spec: createOrUpdateOperationSpec,
153
141
  });
154
142
  const poller = await createHttpPoller(lro, {
155
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
156
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
143
+ restoreFrom: options?.resumeFrom,
144
+ intervalInMs: options?.updateIntervalInMs,
157
145
  resourceLocationConfig: "azure-async-operation",
158
146
  });
159
147
  await poller.poll();
@@ -186,14 +174,19 @@ export class SchedulesImpl {
186
174
  return this.client.sendOperationRequest(args, spec);
187
175
  };
188
176
  const sendOperationFn = async (args, spec) => {
189
- var _a;
190
177
  let currentRawResponse = undefined;
191
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
178
+ const providedCallback = args.options?.onResponse;
192
179
  const callback = (rawResponse, flatResponse) => {
193
180
  currentRawResponse = rawResponse;
194
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
181
+ providedCallback?.(rawResponse, flatResponse);
182
+ };
183
+ const updatedArgs = {
184
+ ...args,
185
+ options: {
186
+ ...args.options,
187
+ onResponse: callback,
188
+ },
195
189
  };
196
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
197
190
  const flatResponse = await directSendOperation(updatedArgs, spec);
198
191
  return {
199
192
  flatResponse,
@@ -217,8 +210,8 @@ export class SchedulesImpl {
217
210
  spec: updateOperationSpec,
218
211
  });
219
212
  const poller = await createHttpPoller(lro, {
220
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
221
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
213
+ restoreFrom: options?.resumeFrom,
214
+ intervalInMs: options?.updateIntervalInMs,
222
215
  resourceLocationConfig: "azure-async-operation",
223
216
  });
224
217
  await poller.poll();
@@ -250,14 +243,19 @@ export class SchedulesImpl {
250
243
  return this.client.sendOperationRequest(args, spec);
251
244
  };
252
245
  const sendOperationFn = async (args, spec) => {
253
- var _a;
254
246
  let currentRawResponse = undefined;
255
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
247
+ const providedCallback = args.options?.onResponse;
256
248
  const callback = (rawResponse, flatResponse) => {
257
249
  currentRawResponse = rawResponse;
258
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
250
+ providedCallback?.(rawResponse, flatResponse);
251
+ };
252
+ const updatedArgs = {
253
+ ...args,
254
+ options: {
255
+ ...args.options,
256
+ onResponse: callback,
257
+ },
259
258
  };
260
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
261
259
  const flatResponse = await directSendOperation(updatedArgs, spec);
262
260
  return {
263
261
  flatResponse,
@@ -274,8 +272,8 @@ export class SchedulesImpl {
274
272
  spec: deleteOperationSpec,
275
273
  });
276
274
  const poller = await createHttpPoller(lro, {
277
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
278
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
275
+ restoreFrom: options?.resumeFrom,
276
+ intervalInMs: options?.updateIntervalInMs,
279
277
  resourceLocationConfig: "azure-async-operation",
280
278
  });
281
279
  await poller.poll();
@@ -1 +1 @@
1
- {"version":3,"file":"schedules.js","sourceRoot":"","sources":["../../../src/operations/schedules.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAEtD,OAAO,EAGL,gBAAgB,GACjB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAkB9C,4CAA4C;AAC5C,6CAA6C;AAC7C,MAAM,OAAO,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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U,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"]}
1
+ {"version":3,"file":"schedules.js","sourceRoot":"","sources":["../../../src/operations/schedules.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAEtD,OAAO,EAGL,gBAAgB,GACjB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAkB9C,4CAA4C;AAC5C,6CAA6C;AAC7C,MAAM,OAAO,aAAa;IACP,MAAM,CAAkB;IAEzC;;;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,EAAE,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;IAEO,KAAK,CAAC,CAAC,oBAAoB,CACjC,iBAAyB,EACzB,WAAmB,EACnB,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AC,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"]}
@@ -5,7 +5,6 @@
5
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
- import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
9
8
  import { setContinuationToken } from "../pagingHelper.js";
10
9
  import * as coreClient from "@azure/core-client";
11
10
  import * as Mappers from "../models/mappers.js";
@@ -13,6 +12,7 @@ import * as Parameters from "../models/parameters.js";
13
12
  /// <reference lib="esnext.asynciterable" />
14
13
  /** Class containing Skus operations. */
15
14
  export class SkusImpl {
15
+ client;
16
16
  /**
17
17
  * Initialize a new instance of the class Skus class.
18
18
  * @param client Reference to the service client
@@ -34,52 +34,35 @@ export class SkusImpl {
34
34
  return this;
35
35
  },
36
36
  byPage: (settings) => {
37
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
37
+ if (settings?.maxPageSize) {
38
38
  throw new Error("maxPageSize is not supported by this operation.");
39
39
  }
40
40
  return this.listBySubscriptionPagingPage(options, settings);
41
41
  },
42
42
  };
43
43
  }
44
- listBySubscriptionPagingPage(options, settings) {
45
- return __asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
46
- let result;
47
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
48
- if (!continuationToken) {
49
- result = yield __await(this._listBySubscription(options));
50
- let page = result.value || [];
51
- continuationToken = result.nextLink;
52
- setContinuationToken(page, continuationToken);
53
- yield yield __await(page);
54
- }
55
- while (continuationToken) {
56
- result = yield __await(this._listBySubscriptionNext(continuationToken, options));
57
- continuationToken = result.nextLink;
58
- let page = result.value || [];
59
- setContinuationToken(page, continuationToken);
60
- yield yield __await(page);
61
- }
62
- });
44
+ async *listBySubscriptionPagingPage(options, settings) {
45
+ let result;
46
+ let continuationToken = settings?.continuationToken;
47
+ if (!continuationToken) {
48
+ result = await this._listBySubscription(options);
49
+ let page = result.value || [];
50
+ continuationToken = result.nextLink;
51
+ setContinuationToken(page, continuationToken);
52
+ yield page;
53
+ }
54
+ while (continuationToken) {
55
+ result = await this._listBySubscriptionNext(continuationToken, options);
56
+ continuationToken = result.nextLink;
57
+ let page = result.value || [];
58
+ setContinuationToken(page, continuationToken);
59
+ yield page;
60
+ }
63
61
  }
64
- listBySubscriptionPagingAll(options) {
65
- return __asyncGenerator(this, arguments, function* listBySubscriptionPagingAll_1() {
66
- var _a, e_1, _b, _c;
67
- try {
68
- for (var _d = true, _e = __asyncValues(this.listBySubscriptionPagingPage(options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
69
- _c = _f.value;
70
- _d = false;
71
- const page = _c;
72
- yield __await(yield* __asyncDelegator(__asyncValues(page)));
73
- }
74
- }
75
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
76
- finally {
77
- try {
78
- if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
79
- }
80
- finally { if (e_1) throw e_1.error; }
81
- }
82
- });
62
+ async *listBySubscriptionPagingAll(options) {
63
+ for await (const page of this.listBySubscriptionPagingPage(options)) {
64
+ yield* page;
65
+ }
83
66
  }
84
67
  /**
85
68
  * 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,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAUtD,4CAA4C;AAC5C,wCAAwC;AACxC,MAAM,OAAO,QAAQ;IAGnB;;;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,aAAR,QAAQ,uBAAR,QAAQ,CAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,4BAA4B,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;YAC9D,CAAC;SACF,CAAC;IACJ,CAAC;IAEc,4BAA4B,CACzC,OAA8C,EAC9C,QAAuB;;YAEvB,IAAI,MAAsC,CAAC;YAC3C,IAAI,iBAAiB,GAAG,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,iBAAiB,CAAC;YACpD,IAAI,CAAC,i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,EAAE,EACrB,mCAAmC,CACpC,CAAC;IACJ,CAAC;CACF;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"]}
1
+ {"version":3,"file":"skus.js","sourceRoot":"","sources":["../../../src/operations/skus.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AA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AAC,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"]}
@@ -5,7 +5,6 @@
5
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
- import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
9
8
  import { setContinuationToken } from "../pagingHelper.js";
10
9
  import * as coreClient from "@azure/core-client";
11
10
  import * as Mappers from "../models/mappers.js";
@@ -13,6 +12,7 @@ import * as Parameters from "../models/parameters.js";
13
12
  /// <reference lib="esnext.asynciterable" />
14
13
  /** Class containing Usages operations. */
15
14
  export class UsagesImpl {
15
+ client;
16
16
  /**
17
17
  * Initialize a new instance of the class Usages class.
18
18
  * @param client Reference to the service client
@@ -35,52 +35,35 @@ export class UsagesImpl {
35
35
  return this;
36
36
  },
37
37
  byPage: (settings) => {
38
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
38
+ if (settings?.maxPageSize) {
39
39
  throw new Error("maxPageSize is not supported by this operation.");
40
40
  }
41
41
  return this.listByLocationPagingPage(location, options, settings);
42
42
  },
43
43
  };
44
44
  }
45
- listByLocationPagingPage(location, options, settings) {
46
- return __asyncGenerator(this, arguments, function* listByLocationPagingPage_1() {
47
- let result;
48
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
49
- if (!continuationToken) {
50
- result = yield __await(this._listByLocation(location, options));
51
- let page = result.value || [];
52
- continuationToken = result.nextLink;
53
- setContinuationToken(page, continuationToken);
54
- yield yield __await(page);
55
- }
56
- while (continuationToken) {
57
- result = yield __await(this._listByLocationNext(location, continuationToken, options));
58
- continuationToken = result.nextLink;
59
- let page = result.value || [];
60
- setContinuationToken(page, continuationToken);
61
- yield yield __await(page);
62
- }
63
- });
45
+ async *listByLocationPagingPage(location, options, settings) {
46
+ let result;
47
+ let continuationToken = settings?.continuationToken;
48
+ if (!continuationToken) {
49
+ result = await this._listByLocation(location, options);
50
+ let page = result.value || [];
51
+ continuationToken = result.nextLink;
52
+ setContinuationToken(page, continuationToken);
53
+ yield page;
54
+ }
55
+ while (continuationToken) {
56
+ result = await this._listByLocationNext(location, continuationToken, options);
57
+ continuationToken = result.nextLink;
58
+ let page = result.value || [];
59
+ setContinuationToken(page, continuationToken);
60
+ yield page;
61
+ }
64
62
  }
65
- listByLocationPagingAll(location, options) {
66
- return __asyncGenerator(this, arguments, function* listByLocationPagingAll_1() {
67
- var _a, e_1, _b, _c;
68
- try {
69
- for (var _d = true, _e = __asyncValues(this.listByLocationPagingPage(location, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
70
- _c = _f.value;
71
- _d = false;
72
- const page = _c;
73
- yield __await(yield* __asyncDelegator(__asyncValues(page)));
74
- }
75
- }
76
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
77
- finally {
78
- try {
79
- if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
80
- }
81
- finally { if (e_1) throw e_1.error; }
82
- }
83
- });
63
+ async *listByLocationPagingAll(location, options) {
64
+ for await (const page of this.listByLocationPagingPage(location, options)) {
65
+ yield* page;
66
+ }
84
67
  }
85
68
  /**
86
69
  * Lists the current usages and limits in this location for the provided subscription.
@@ -1 +1 @@
1
- {"version":3,"file":"us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C,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,EAC/B,+BAA+B,CAChC,CAAC;IACJ,CAAC;CACF;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"]}
1
+ {"version":3,"file":"usages.js","sourceRoot":"","sources":["../../../src/operations/usages.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBA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,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"]}