@azure/arm-devhub 1.0.0-beta.2 → 1.0.0-beta.4

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 (284) hide show
  1. package/CHANGELOG.md +53 -2
  2. package/LICENSE +4 -4
  3. package/README.md +25 -18
  4. package/{dist-esm/src → dist/browser}/developerHubServiceClient.d.ts +9 -2
  5. package/dist/browser/developerHubServiceClient.d.ts.map +1 -0
  6. package/{dist-esm/src → dist/browser}/developerHubServiceClient.js +67 -27
  7. package/dist/browser/developerHubServiceClient.js.map +1 -0
  8. package/dist/browser/index.d.ts +5 -0
  9. package/dist/browser/index.d.ts.map +1 -0
  10. package/{dist-esm/src → dist/browser}/index.js +4 -4
  11. package/dist/browser/index.js.map +1 -0
  12. package/{dist-esm/src → dist/browser}/models/index.d.ts +222 -20
  13. package/dist/browser/models/index.d.ts.map +1 -0
  14. package/dist/browser/models/index.js +130 -0
  15. package/dist/browser/models/index.js.map +1 -0
  16. package/{dist-esm/src → dist/browser}/models/mappers.d.ts +1 -0
  17. package/{dist-esm/src → dist/browser}/models/mappers.d.ts.map +1 -1
  18. package/{dist-esm/src → dist/browser}/models/mappers.js +219 -22
  19. package/dist/browser/models/mappers.js.map +1 -0
  20. package/{dist-esm/src → dist/browser}/models/parameters.d.ts +2 -1
  21. package/{dist-esm/src → dist/browser}/models/parameters.d.ts.map +1 -1
  22. package/{dist-esm/src → dist/browser}/models/parameters.js +8 -4
  23. package/dist/browser/models/parameters.js.map +1 -0
  24. package/dist/browser/operations/index.d.ts +3 -0
  25. package/{dist-esm/src → dist/browser}/operations/index.d.ts.map +1 -1
  26. package/{dist-esm/src → dist/browser}/operations/index.js +2 -2
  27. package/dist/browser/operations/index.js.map +1 -0
  28. package/{dist-esm/src → dist/browser}/operations/operations.d.ts +3 -3
  29. package/dist/browser/operations/operations.d.ts.map +1 -0
  30. package/{dist-esm/src → dist/browser}/operations/operations.js +3 -2
  31. package/dist/browser/operations/operations.js.map +1 -0
  32. package/{dist-esm/src → dist/browser}/operations/workflowOperations.d.ts +3 -3
  33. package/dist/browser/operations/workflowOperations.d.ts.map +1 -0
  34. package/{dist-esm/src → dist/browser}/operations/workflowOperations.js +50 -80
  35. package/dist/browser/operations/workflowOperations.js.map +1 -0
  36. package/dist/browser/operationsInterfaces/index.d.ts +3 -0
  37. package/{dist-esm/src → dist/browser}/operationsInterfaces/index.d.ts.map +1 -1
  38. package/{dist-esm/src → dist/browser}/operationsInterfaces/index.js +2 -2
  39. package/dist/browser/operationsInterfaces/index.js.map +1 -0
  40. package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.d.ts +1 -1
  41. package/dist/browser/operationsInterfaces/operations.d.ts.map +1 -0
  42. package/dist/browser/operationsInterfaces/operations.js.map +1 -0
  43. package/{dist-esm/src → dist/browser}/operationsInterfaces/workflowOperations.d.ts +1 -1
  44. package/dist/browser/operationsInterfaces/workflowOperations.d.ts.map +1 -0
  45. package/dist/browser/operationsInterfaces/workflowOperations.js.map +1 -0
  46. package/dist/browser/package.json +3 -0
  47. package/{dist-esm/src → dist/browser}/pagingHelper.js +2 -4
  48. package/dist/browser/pagingHelper.js.map +1 -0
  49. package/dist/commonjs/developerHubServiceClient.d.ts +48 -0
  50. package/dist/commonjs/developerHubServiceClient.d.ts.map +1 -0
  51. package/dist/commonjs/developerHubServiceClient.js +238 -0
  52. package/dist/commonjs/developerHubServiceClient.js.map +1 -0
  53. package/dist/commonjs/index.d.ts +5 -0
  54. package/dist/commonjs/index.d.ts.map +1 -0
  55. package/dist/commonjs/index.js +19 -0
  56. package/dist/commonjs/index.js.map +1 -0
  57. package/{types/arm-devhub.d.ts → dist/commonjs/models/index.d.ts} +658 -616
  58. package/dist/commonjs/models/index.d.ts.map +1 -0
  59. package/dist/commonjs/models/index.js +133 -0
  60. package/dist/commonjs/models/index.js.map +1 -0
  61. package/dist/commonjs/models/mappers.d.ts +25 -0
  62. package/dist/commonjs/models/mappers.d.ts.map +1 -0
  63. package/dist/commonjs/models/mappers.js +850 -0
  64. package/dist/commonjs/models/mappers.js.map +1 -0
  65. package/dist/commonjs/models/parameters.d.ts +18 -0
  66. package/dist/commonjs/models/parameters.d.ts.map +1 -0
  67. package/dist/commonjs/models/parameters.js +167 -0
  68. package/dist/commonjs/models/parameters.js.map +1 -0
  69. package/dist/commonjs/operations/index.d.ts +3 -0
  70. package/dist/commonjs/operations/index.d.ts.map +1 -0
  71. package/dist/commonjs/operations/index.js +13 -0
  72. package/dist/commonjs/operations/index.js.map +1 -0
  73. package/dist/commonjs/operations/operations.d.ts +18 -0
  74. package/dist/commonjs/operations/operations.d.ts.map +1 -0
  75. package/dist/commonjs/operations/operations.js +52 -0
  76. package/dist/commonjs/operations/operations.js.map +1 -0
  77. package/dist/commonjs/operations/workflowOperations.d.ts +83 -0
  78. package/dist/commonjs/operations/workflowOperations.d.ts.map +1 -0
  79. package/dist/commonjs/operations/workflowOperations.js +357 -0
  80. package/dist/commonjs/operations/workflowOperations.js.map +1 -0
  81. package/dist/commonjs/operationsInterfaces/index.d.ts +3 -0
  82. package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -0
  83. package/dist/commonjs/operationsInterfaces/index.js +13 -0
  84. package/dist/commonjs/operationsInterfaces/index.js.map +1 -0
  85. package/dist/commonjs/operationsInterfaces/operations.d.ts +10 -0
  86. package/dist/commonjs/operationsInterfaces/operations.d.ts.map +1 -0
  87. package/dist/commonjs/operationsInterfaces/operations.js +10 -0
  88. package/dist/commonjs/operationsInterfaces/operations.js.map +1 -0
  89. package/dist/commonjs/operationsInterfaces/workflowOperations.d.ts +47 -0
  90. package/dist/commonjs/operationsInterfaces/workflowOperations.d.ts.map +1 -0
  91. package/dist/commonjs/operationsInterfaces/workflowOperations.js +10 -0
  92. package/dist/commonjs/operationsInterfaces/workflowOperations.js.map +1 -0
  93. package/dist/commonjs/package.json +3 -0
  94. package/dist/commonjs/pagingHelper.d.ts +13 -0
  95. package/dist/commonjs/pagingHelper.d.ts.map +1 -0
  96. package/dist/commonjs/pagingHelper.js +34 -0
  97. package/dist/commonjs/pagingHelper.js.map +1 -0
  98. package/{types → dist/commonjs}/tsdoc-metadata.json +11 -11
  99. package/dist/esm/developerHubServiceClient.d.ts +48 -0
  100. package/dist/esm/developerHubServiceClient.d.ts.map +1 -0
  101. package/dist/esm/developerHubServiceClient.js +233 -0
  102. package/dist/esm/developerHubServiceClient.js.map +1 -0
  103. package/dist/esm/index.d.ts +5 -0
  104. package/dist/esm/index.d.ts.map +1 -0
  105. package/{src/index.ts → dist/esm/index.js} +5 -5
  106. package/dist/esm/index.js.map +1 -0
  107. package/dist/esm/models/index.d.ts +658 -0
  108. package/dist/esm/models/index.d.ts.map +1 -0
  109. package/dist/esm/models/index.js +130 -0
  110. package/dist/esm/models/index.js.map +1 -0
  111. package/dist/esm/models/mappers.d.ts +25 -0
  112. package/dist/esm/models/mappers.d.ts.map +1 -0
  113. package/dist/esm/models/mappers.js +847 -0
  114. package/dist/esm/models/mappers.js.map +1 -0
  115. package/dist/esm/models/parameters.d.ts +18 -0
  116. package/dist/esm/models/parameters.d.ts.map +1 -0
  117. package/dist/esm/models/parameters.js +164 -0
  118. package/dist/esm/models/parameters.js.map +1 -0
  119. package/dist/esm/operations/index.d.ts +3 -0
  120. package/dist/esm/operations/index.d.ts.map +1 -0
  121. package/dist/esm/operations/index.js +10 -0
  122. package/dist/esm/operations/index.js.map +1 -0
  123. package/dist/esm/operations/operations.d.ts +18 -0
  124. package/dist/esm/operations/operations.d.ts.map +1 -0
  125. package/dist/esm/operations/operations.js +47 -0
  126. package/dist/esm/operations/operations.js.map +1 -0
  127. package/dist/esm/operations/workflowOperations.d.ts +83 -0
  128. package/dist/esm/operations/workflowOperations.d.ts.map +1 -0
  129. package/dist/esm/operations/workflowOperations.js +352 -0
  130. package/dist/esm/operations/workflowOperations.js.map +1 -0
  131. package/dist/esm/operationsInterfaces/index.d.ts +3 -0
  132. package/dist/esm/operationsInterfaces/index.d.ts.map +1 -0
  133. package/dist/esm/operationsInterfaces/index.js +10 -0
  134. package/dist/esm/operationsInterfaces/index.js.map +1 -0
  135. package/dist/esm/operationsInterfaces/operations.d.ts +10 -0
  136. package/dist/esm/operationsInterfaces/operations.d.ts.map +1 -0
  137. package/{src/operations/index.ts → dist/esm/operationsInterfaces/operations.js} +2 -3
  138. package/dist/esm/operationsInterfaces/operations.js.map +1 -0
  139. package/dist/esm/operationsInterfaces/workflowOperations.d.ts +47 -0
  140. package/dist/esm/operationsInterfaces/workflowOperations.d.ts.map +1 -0
  141. package/{src/operationsInterfaces/index.ts → dist/esm/operationsInterfaces/workflowOperations.js} +2 -3
  142. package/dist/esm/operationsInterfaces/workflowOperations.js.map +1 -0
  143. package/dist/esm/package.json +3 -0
  144. package/dist/esm/pagingHelper.d.ts +13 -0
  145. package/dist/esm/pagingHelper.d.ts.map +1 -0
  146. package/dist/esm/pagingHelper.js +30 -0
  147. package/dist/esm/pagingHelper.js.map +1 -0
  148. package/dist/react-native/developerHubServiceClient.d.ts +48 -0
  149. package/dist/react-native/developerHubServiceClient.d.ts.map +1 -0
  150. package/dist/react-native/developerHubServiceClient.js +233 -0
  151. package/dist/react-native/developerHubServiceClient.js.map +1 -0
  152. package/dist/react-native/index.d.ts +5 -0
  153. package/dist/react-native/index.d.ts.map +1 -0
  154. package/dist/react-native/index.js +13 -0
  155. package/dist/react-native/index.js.map +1 -0
  156. package/dist/react-native/models/index.d.ts +658 -0
  157. package/dist/react-native/models/index.d.ts.map +1 -0
  158. package/dist/react-native/models/index.js +130 -0
  159. package/dist/react-native/models/index.js.map +1 -0
  160. package/dist/react-native/models/mappers.d.ts +25 -0
  161. package/dist/react-native/models/mappers.d.ts.map +1 -0
  162. package/dist/react-native/models/mappers.js +847 -0
  163. package/dist/react-native/models/mappers.js.map +1 -0
  164. package/dist/react-native/models/parameters.d.ts +18 -0
  165. package/dist/react-native/models/parameters.d.ts.map +1 -0
  166. package/dist/react-native/models/parameters.js +164 -0
  167. package/dist/react-native/models/parameters.js.map +1 -0
  168. package/dist/react-native/operations/index.d.ts +3 -0
  169. package/dist/react-native/operations/index.d.ts.map +1 -0
  170. package/dist/react-native/operations/index.js +10 -0
  171. package/dist/react-native/operations/index.js.map +1 -0
  172. package/dist/react-native/operations/operations.d.ts +18 -0
  173. package/dist/react-native/operations/operations.d.ts.map +1 -0
  174. package/dist/react-native/operations/operations.js +47 -0
  175. package/dist/react-native/operations/operations.js.map +1 -0
  176. package/dist/react-native/operations/workflowOperations.d.ts +83 -0
  177. package/dist/react-native/operations/workflowOperations.d.ts.map +1 -0
  178. package/dist/react-native/operations/workflowOperations.js +352 -0
  179. package/dist/react-native/operations/workflowOperations.js.map +1 -0
  180. package/dist/react-native/operationsInterfaces/index.d.ts +3 -0
  181. package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -0
  182. package/dist/react-native/operationsInterfaces/index.js +10 -0
  183. package/dist/react-native/operationsInterfaces/index.js.map +1 -0
  184. package/dist/react-native/operationsInterfaces/operations.d.ts +10 -0
  185. package/dist/react-native/operationsInterfaces/operations.d.ts.map +1 -0
  186. package/dist/react-native/operationsInterfaces/operations.js +9 -0
  187. package/dist/react-native/operationsInterfaces/operations.js.map +1 -0
  188. package/dist/react-native/operationsInterfaces/workflowOperations.d.ts +47 -0
  189. package/dist/react-native/operationsInterfaces/workflowOperations.d.ts.map +1 -0
  190. package/dist/react-native/operationsInterfaces/workflowOperations.js +9 -0
  191. package/dist/react-native/operationsInterfaces/workflowOperations.js.map +1 -0
  192. package/dist/react-native/package.json +3 -0
  193. package/dist/react-native/pagingHelper.d.ts +13 -0
  194. package/dist/react-native/pagingHelper.d.ts.map +1 -0
  195. package/dist/react-native/pagingHelper.js +30 -0
  196. package/dist/react-native/pagingHelper.js.map +1 -0
  197. package/package.json +85 -76
  198. package/review/{arm-devhub.api.md → arm-devhub-node.api.md} +110 -2
  199. package/dist/index.js +0 -1562
  200. package/dist/index.js.map +0 -1
  201. package/dist/index.min.js +0 -1
  202. package/dist/index.min.js.map +0 -1
  203. package/dist-esm/samples-dev/gitHubOAuthCallbackSample.d.ts +0 -2
  204. package/dist-esm/samples-dev/gitHubOAuthCallbackSample.d.ts.map +0 -1
  205. package/dist-esm/samples-dev/gitHubOAuthCallbackSample.js +0 -39
  206. package/dist-esm/samples-dev/gitHubOAuthCallbackSample.js.map +0 -1
  207. package/dist-esm/samples-dev/gitHubOAuthSample.d.ts +0 -2
  208. package/dist-esm/samples-dev/gitHubOAuthSample.d.ts.map +0 -1
  209. package/dist-esm/samples-dev/gitHubOAuthSample.js +0 -41
  210. package/dist-esm/samples-dev/gitHubOAuthSample.js.map +0 -1
  211. package/dist-esm/samples-dev/listGitHubOAuthSample.d.ts +0 -2
  212. package/dist-esm/samples-dev/listGitHubOAuthSample.d.ts.map +0 -1
  213. package/dist-esm/samples-dev/listGitHubOAuthSample.js +0 -37
  214. package/dist-esm/samples-dev/listGitHubOAuthSample.js.map +0 -1
  215. package/dist-esm/samples-dev/operationsListSample.d.ts +0 -2
  216. package/dist-esm/samples-dev/operationsListSample.d.ts.map +0 -1
  217. package/dist-esm/samples-dev/operationsListSample.js +0 -37
  218. package/dist-esm/samples-dev/operationsListSample.js.map +0 -1
  219. package/dist-esm/samples-dev/workflowCreateOrUpdateSample.d.ts +0 -2
  220. package/dist-esm/samples-dev/workflowCreateOrUpdateSample.d.ts.map +0 -1
  221. package/dist-esm/samples-dev/workflowCreateOrUpdateSample.js +0 -63
  222. package/dist-esm/samples-dev/workflowCreateOrUpdateSample.js.map +0 -1
  223. package/dist-esm/samples-dev/workflowDeleteSample.d.ts +0 -2
  224. package/dist-esm/samples-dev/workflowDeleteSample.d.ts.map +0 -1
  225. package/dist-esm/samples-dev/workflowDeleteSample.js +0 -38
  226. package/dist-esm/samples-dev/workflowDeleteSample.js.map +0 -1
  227. package/dist-esm/samples-dev/workflowGetSample.d.ts +0 -2
  228. package/dist-esm/samples-dev/workflowGetSample.d.ts.map +0 -1
  229. package/dist-esm/samples-dev/workflowGetSample.js +0 -38
  230. package/dist-esm/samples-dev/workflowGetSample.js.map +0 -1
  231. package/dist-esm/samples-dev/workflowListByResourceGroupSample.d.ts +0 -2
  232. package/dist-esm/samples-dev/workflowListByResourceGroupSample.d.ts.map +0 -1
  233. package/dist-esm/samples-dev/workflowListByResourceGroupSample.js +0 -55
  234. package/dist-esm/samples-dev/workflowListByResourceGroupSample.js.map +0 -1
  235. package/dist-esm/samples-dev/workflowListSample.d.ts +0 -2
  236. package/dist-esm/samples-dev/workflowListSample.d.ts.map +0 -1
  237. package/dist-esm/samples-dev/workflowListSample.js +0 -50
  238. package/dist-esm/samples-dev/workflowListSample.js.map +0 -1
  239. package/dist-esm/samples-dev/workflowUpdateTagsSample.d.ts +0 -2
  240. package/dist-esm/samples-dev/workflowUpdateTagsSample.d.ts.map +0 -1
  241. package/dist-esm/samples-dev/workflowUpdateTagsSample.js +0 -41
  242. package/dist-esm/samples-dev/workflowUpdateTagsSample.js.map +0 -1
  243. package/dist-esm/src/developerHubServiceClient.d.ts.map +0 -1
  244. package/dist-esm/src/developerHubServiceClient.js.map +0 -1
  245. package/dist-esm/src/index.d.ts +0 -6
  246. package/dist-esm/src/index.d.ts.map +0 -1
  247. package/dist-esm/src/index.js.map +0 -1
  248. package/dist-esm/src/models/index.d.ts.map +0 -1
  249. package/dist-esm/src/models/index.js +0 -56
  250. package/dist-esm/src/models/index.js.map +0 -1
  251. package/dist-esm/src/models/mappers.js.map +0 -1
  252. package/dist-esm/src/models/parameters.js.map +0 -1
  253. package/dist-esm/src/operations/index.d.ts +0 -3
  254. package/dist-esm/src/operations/index.js.map +0 -1
  255. package/dist-esm/src/operations/operations.d.ts.map +0 -1
  256. package/dist-esm/src/operations/operations.js.map +0 -1
  257. package/dist-esm/src/operations/workflowOperations.d.ts.map +0 -1
  258. package/dist-esm/src/operations/workflowOperations.js.map +0 -1
  259. package/dist-esm/src/operationsInterfaces/index.d.ts +0 -3
  260. package/dist-esm/src/operationsInterfaces/index.js.map +0 -1
  261. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +0 -1
  262. package/dist-esm/src/operationsInterfaces/operations.js.map +0 -1
  263. package/dist-esm/src/operationsInterfaces/workflowOperations.d.ts.map +0 -1
  264. package/dist-esm/src/operationsInterfaces/workflowOperations.js.map +0 -1
  265. package/dist-esm/src/pagingHelper.js.map +0 -1
  266. package/dist-esm/test/devhub_examples.spec.d.ts +0 -4
  267. package/dist-esm/test/devhub_examples.spec.d.ts.map +0 -1
  268. package/dist-esm/test/devhub_examples.spec.js +0 -67
  269. package/dist-esm/test/devhub_examples.spec.js.map +0 -1
  270. package/rollup.config.js +0 -122
  271. package/src/developerHubServiceClient.ts +0 -269
  272. package/src/models/index.ts +0 -515
  273. package/src/models/mappers.ts +0 -699
  274. package/src/models/parameters.ts +0 -186
  275. package/src/operations/operations.ts +0 -59
  276. package/src/operations/workflowOperations.ts +0 -476
  277. package/src/operationsInterfaces/operations.ts +0 -21
  278. package/src/operationsInterfaces/workflowOperations.ts +0 -92
  279. package/src/pagingHelper.ts +0 -39
  280. package/tsconfig.json +0 -33
  281. /package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.js +0 -0
  282. /package/{dist-esm/src → dist/browser}/operationsInterfaces/workflowOperations.js +0 -0
  283. /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts +0 -0
  284. /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts.map +0 -0
@@ -5,14 +5,14 @@
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
- import { setContinuationToken } from "../pagingHelper";
8
+ import { setContinuationToken } from "../pagingHelper.js";
10
9
  import * as coreClient from "@azure/core-client";
11
- import * as Mappers from "../models/mappers";
12
- import * as Parameters from "../models/parameters";
10
+ import * as Mappers from "../models/mappers.js";
11
+ import * as Parameters from "../models/parameters.js";
13
12
  /// <reference lib="esnext.asynciterable" />
14
13
  /** Class containing WorkflowOperations operations. */
15
14
  export class WorkflowOperationsImpl {
15
+ client;
16
16
  /**
17
17
  * Initialize a new instance of the class WorkflowOperations class.
18
18
  * @param client Reference to the service client
@@ -34,50 +34,35 @@ export class WorkflowOperationsImpl {
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.listPagingPage(options, settings);
41
41
  }
42
42
  };
43
43
  }
44
- listPagingPage(options, settings) {
45
- return __asyncGenerator(this, arguments, function* listPagingPage_1() {
46
- let result;
47
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
48
- if (!continuationToken) {
49
- result = yield __await(this._list(options));
50
- let page = result.value || [];
51
- continuationToken = result.nextLink;
52
- setContinuationToken(page, continuationToken);
53
- yield yield __await(page);
54
- }
55
- while (continuationToken) {
56
- result = yield __await(this._listNext(continuationToken, options));
57
- continuationToken = result.nextLink;
58
- let page = result.value || [];
59
- setContinuationToken(page, continuationToken);
60
- yield yield __await(page);
61
- }
62
- });
44
+ async *listPagingPage(options, settings) {
45
+ let result;
46
+ let continuationToken = settings?.continuationToken;
47
+ if (!continuationToken) {
48
+ result = await this._list(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._listNext(continuationToken, options);
56
+ continuationToken = result.nextLink;
57
+ let page = result.value || [];
58
+ setContinuationToken(page, continuationToken);
59
+ yield page;
60
+ }
63
61
  }
64
- listPagingAll(options) {
65
- return __asyncGenerator(this, arguments, function* listPagingAll_1() {
66
- var e_1, _a;
67
- try {
68
- for (var _b = __asyncValues(this.listPagingPage(options)), _c; _c = yield __await(_b.next()), !_c.done;) {
69
- const page = _c.value;
70
- yield __await(yield* __asyncDelegator(__asyncValues(page)));
71
- }
72
- }
73
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
74
- finally {
75
- try {
76
- if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
77
- }
78
- finally { if (e_1) throw e_1.error; }
79
- }
80
- });
62
+ async *listPagingAll(options) {
63
+ for await (const page of this.listPagingPage(options)) {
64
+ yield* page;
65
+ }
81
66
  }
82
67
  /**
83
68
  * Gets a list of workflows within a resource group.
@@ -94,50 +79,35 @@ export class WorkflowOperationsImpl {
94
79
  return this;
95
80
  },
96
81
  byPage: (settings) => {
97
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
82
+ if (settings?.maxPageSize) {
98
83
  throw new Error("maxPageSize is not supported by this operation.");
99
84
  }
100
85
  return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
101
86
  }
102
87
  };
103
88
  }
104
- listByResourceGroupPagingPage(resourceGroupName, options, settings) {
105
- return __asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
106
- let result;
107
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
108
- if (!continuationToken) {
109
- result = yield __await(this._listByResourceGroup(resourceGroupName, options));
110
- let page = result.value || [];
111
- continuationToken = result.nextLink;
112
- setContinuationToken(page, continuationToken);
113
- yield yield __await(page);
114
- }
115
- while (continuationToken) {
116
- result = yield __await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
117
- continuationToken = result.nextLink;
118
- let page = result.value || [];
119
- setContinuationToken(page, continuationToken);
120
- yield yield __await(page);
121
- }
122
- });
89
+ async *listByResourceGroupPagingPage(resourceGroupName, options, settings) {
90
+ let result;
91
+ let continuationToken = settings?.continuationToken;
92
+ if (!continuationToken) {
93
+ result = await this._listByResourceGroup(resourceGroupName, options);
94
+ let page = result.value || [];
95
+ continuationToken = result.nextLink;
96
+ setContinuationToken(page, continuationToken);
97
+ yield page;
98
+ }
99
+ while (continuationToken) {
100
+ result = await this._listByResourceGroupNext(resourceGroupName, continuationToken, options);
101
+ continuationToken = result.nextLink;
102
+ let page = result.value || [];
103
+ setContinuationToken(page, continuationToken);
104
+ yield page;
105
+ }
123
106
  }
124
- listByResourceGroupPagingAll(resourceGroupName, options) {
125
- return __asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
126
- var e_2, _a;
127
- try {
128
- for (var _b = __asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
129
- const page = _c.value;
130
- yield __await(yield* __asyncDelegator(__asyncValues(page)));
131
- }
132
- }
133
- catch (e_2_1) { e_2 = { error: e_2_1 }; }
134
- finally {
135
- try {
136
- if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
137
- }
138
- finally { if (e_2) throw e_2.error; }
139
- }
140
- });
107
+ async *listByResourceGroupPagingAll(resourceGroupName, options) {
108
+ for await (const page of this.listByResourceGroupPagingPage(resourceGroupName, options)) {
109
+ yield* page;
110
+ }
141
111
  }
142
112
  /**
143
113
  * Gets a list of workflows associated with the specified subscription.
@@ -283,7 +253,7 @@ const createOrUpdateOperationSpec = {
283
253
  bodyMapper: Mappers.ErrorResponse
284
254
  }
285
255
  },
286
- requestBody: Parameters.parameters1,
256
+ requestBody: Parameters.parameters2,
287
257
  queryParameters: [Parameters.apiVersion],
288
258
  urlParameters: [
289
259
  Parameters.$host,
@@ -328,7 +298,7 @@ const updateTagsOperationSpec = {
328
298
  bodyMapper: Mappers.ErrorResponse
329
299
  }
330
300
  },
331
- requestBody: Parameters.parameters2,
301
+ requestBody: Parameters.parameters3,
332
302
  queryParameters: [Parameters.apiVersion],
333
303
  urlParameters: [
334
304
  Parameters.$host,
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workflowOperations.js","sourceRoot":"","sources":["../../../src/operations/workflowOperations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBA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cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,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 { WorkflowOperations } 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 { DeveloperHubServiceClient } from \"../developerHubServiceClient.js\";\nimport {\n Workflow,\n WorkflowListNextOptionalParams,\n WorkflowListOptionalParams,\n WorkflowListResponse,\n WorkflowListByResourceGroupNextOptionalParams,\n WorkflowListByResourceGroupOptionalParams,\n WorkflowListByResourceGroupResponse,\n WorkflowGetOptionalParams,\n WorkflowGetResponse,\n WorkflowCreateOrUpdateOptionalParams,\n WorkflowCreateOrUpdateResponse,\n WorkflowDeleteOptionalParams,\n WorkflowDeleteResponse,\n TagsObject,\n WorkflowUpdateTagsOptionalParams,\n WorkflowUpdateTagsResponse,\n WorkflowListNextResponse,\n WorkflowListByResourceGroupNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing WorkflowOperations operations. */\nexport class WorkflowOperationsImpl implements WorkflowOperations {\n private readonly client: DeveloperHubServiceClient;\n\n /**\n * Initialize a new instance of the class WorkflowOperations class.\n * @param client Reference to the service client\n */\n constructor(client: DeveloperHubServiceClient) {\n this.client = client;\n }\n\n /**\n * Gets a list of workflows associated with the specified subscription.\n * @param options The options parameters.\n */\n public list(\n options?: WorkflowListOptionalParams\n ): PagedAsyncIterableIterator<Workflow> {\n const iter = this.listPagingAll(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.listPagingPage(options, settings);\n }\n };\n }\n\n private async *listPagingPage(\n options?: WorkflowListOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<Workflow[]> {\n let result: WorkflowListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(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._listNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n options?: WorkflowListOptionalParams\n ): AsyncIterableIterator<Workflow> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Gets a list of workflows within a resource group.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param options The options parameters.\n */\n public listByResourceGroup(\n resourceGroupName: string,\n options?: WorkflowListByResourceGroupOptionalParams\n ): PagedAsyncIterableIterator<Workflow> {\n const iter = this.listByResourceGroupPagingAll(resourceGroupName, 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.listByResourceGroupPagingPage(\n resourceGroupName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listByResourceGroupPagingPage(\n resourceGroupName: string,\n options?: WorkflowListByResourceGroupOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<Workflow[]> {\n let result: WorkflowListByResourceGroupResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByResourceGroup(resourceGroupName, 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._listByResourceGroupNext(\n resourceGroupName,\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 *listByResourceGroupPagingAll(\n resourceGroupName: string,\n options?: WorkflowListByResourceGroupOptionalParams\n ): AsyncIterableIterator<Workflow> {\n for await (const page of this.listByResourceGroupPagingPage(\n resourceGroupName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Gets a list of workflows associated with the specified subscription.\n * @param options The options parameters.\n */\n private _list(\n options?: WorkflowListOptionalParams\n ): Promise<WorkflowListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * Gets a list of workflows within a resource group.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param options The options parameters.\n */\n private _listByResourceGroup(\n resourceGroupName: string,\n options?: WorkflowListByResourceGroupOptionalParams\n ): Promise<WorkflowListByResourceGroupResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, options },\n listByResourceGroupOperationSpec\n );\n }\n\n /**\n * Gets a workflow.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workflowName The name of the workflow resource.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n workflowName: string,\n options?: WorkflowGetOptionalParams\n ): Promise<WorkflowGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workflowName, options },\n getOperationSpec\n );\n }\n\n /**\n * Creates or updates a workflow\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workflowName The name of the workflow resource.\n * @param parameters Resource representation of a workflow\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n workflowName: string,\n parameters: Workflow,\n options?: WorkflowCreateOrUpdateOptionalParams\n ): Promise<WorkflowCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workflowName, parameters, options },\n createOrUpdateOperationSpec\n );\n }\n\n /**\n * Deletes a workflow\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workflowName The name of the workflow resource.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n workflowName: string,\n options?: WorkflowDeleteOptionalParams\n ): Promise<WorkflowDeleteResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workflowName, options },\n deleteOperationSpec\n );\n }\n\n /**\n * Updates tags on a workflow.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workflowName The name of the workflow resource.\n * @param parameters Parameters supplied to the Update Workflow Tags operation.\n * @param options The options parameters.\n */\n updateTags(\n resourceGroupName: string,\n workflowName: string,\n parameters: TagsObject,\n options?: WorkflowUpdateTagsOptionalParams\n ): Promise<WorkflowUpdateTagsResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workflowName, parameters, options },\n updateTagsOperationSpec\n );\n }\n\n /**\n * ListNext\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n nextLink: string,\n options?: WorkflowListNextOptionalParams\n ): Promise<WorkflowListNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listNextOperationSpec\n );\n }\n\n /**\n * ListByResourceGroupNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.\n * @param options The options parameters.\n */\n private _listByResourceGroupNext(\n resourceGroupName: string,\n nextLink: string,\n options?: WorkflowListByResourceGroupNextOptionalParams\n ): Promise<WorkflowListByResourceGroupNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, nextLink, options },\n listByResourceGroupNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.DevHub/workflows\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.WorkflowListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByResourceGroupOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevHub/workflows\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.WorkflowListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.managedClusterResource],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevHub/workflows/{workflowName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Workflow\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workflowName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevHub/workflows/{workflowName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.Workflow\n },\n 201: {\n bodyMapper: Mappers.Workflow\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.parameters2,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workflowName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevHub/workflows/{workflowName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {\n bodyMapper: Mappers.DeleteWorkflowResponse\n },\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workflowName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst updateTagsOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevHub/workflows/{workflowName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.Workflow\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.parameters3,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workflowName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.WorkflowListResult\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};\nconst listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.WorkflowListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.nextLink\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
@@ -0,0 +1,3 @@
1
+ export * from "./operations.js";
2
+ export * from "./workflowOperations.js";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAQA,cAAc,cAAc,CAAC;AAC7B,cAAc,sBAAsB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAQA,cAAc,iBAAiB,CAAC;AAChC,cAAc,yBAAyB,CAAC"}
@@ -5,6 +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
- export * from "./operations";
9
- export * from "./workflowOperations";
8
+ export * from "./operations.js";
9
+ export * from "./workflowOperations.js";
10
10
  //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,iBAAiB,CAAC;AAChC,cAAc,yBAAyB,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\nexport * from \"./operations.js\";\nexport * from \"./workflowOperations.js\";\n"]}
@@ -1,4 +1,4 @@
1
- import { OperationsListOptionalParams, OperationsListResponse } from "../models";
1
+ import { OperationsListOptionalParams, OperationsListResponse } from "../models/index.js";
2
2
  /** Interface representing a Operations. */
3
3
  export interface Operations {
4
4
  /**
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/operations.ts"],"names":[],"mappings":"AAQA,OAAO,EACL,4BAA4B,EAC5B,sBAAsB,EACvB,MAAM,oBAAoB,CAAC;AAE5B,2CAA2C;AAC3C,MAAM,WAAW,UAAU;IACzB;;;OAGG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,4BAA4B,GAAG,OAAO,CAAC,sBAAsB,CAAC,CAAC;CAC/E"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/operations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG","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 {\n OperationsListOptionalParams,\n OperationsListResponse\n} from \"../models/index.js\";\n\n/** Interface representing a Operations. */\nexport interface Operations {\n /**\n * Returns list of operations.\n * @param options The options parameters.\n */\n list(options?: OperationsListOptionalParams): Promise<OperationsListResponse>;\n}\n"]}
@@ -1,5 +1,5 @@
1
1
  import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
- import { Workflow, WorkflowListOptionalParams, WorkflowListByResourceGroupOptionalParams, WorkflowGetOptionalParams, WorkflowGetResponse, WorkflowCreateOrUpdateOptionalParams, WorkflowCreateOrUpdateResponse, WorkflowDeleteOptionalParams, WorkflowDeleteResponse, TagsObject, WorkflowUpdateTagsOptionalParams, WorkflowUpdateTagsResponse } from "../models";
2
+ import { Workflow, WorkflowListOptionalParams, WorkflowListByResourceGroupOptionalParams, WorkflowGetOptionalParams, WorkflowGetResponse, WorkflowCreateOrUpdateOptionalParams, WorkflowCreateOrUpdateResponse, WorkflowDeleteOptionalParams, WorkflowDeleteResponse, TagsObject, WorkflowUpdateTagsOptionalParams, WorkflowUpdateTagsResponse } from "../models/index.js";
3
3
  /** Interface representing a WorkflowOperations. */
4
4
  export interface WorkflowOperations {
5
5
  /**
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workflowOperations.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/workflowOperations.ts"],"names":[],"mappings":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ourceRoot":"","sources":["../../../src/operationsInterfaces/workflowOperations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG","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 } from \"@azure/core-paging\";\nimport {\n Workflow,\n WorkflowListOptionalParams,\n WorkflowListByResourceGroupOptionalParams,\n WorkflowGetOptionalParams,\n WorkflowGetResponse,\n WorkflowCreateOrUpdateOptionalParams,\n WorkflowCreateOrUpdateResponse,\n WorkflowDeleteOptionalParams,\n WorkflowDeleteResponse,\n TagsObject,\n WorkflowUpdateTagsOptionalParams,\n WorkflowUpdateTagsResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Interface representing a WorkflowOperations. */\nexport interface WorkflowOperations {\n /**\n * Gets a list of workflows associated with the specified subscription.\n * @param options The options parameters.\n */\n list(\n options?: WorkflowListOptionalParams\n ): PagedAsyncIterableIterator<Workflow>;\n /**\n * Gets a list of workflows within a resource group.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param options The options parameters.\n */\n listByResourceGroup(\n resourceGroupName: string,\n options?: WorkflowListByResourceGroupOptionalParams\n ): PagedAsyncIterableIterator<Workflow>;\n /**\n * Gets a workflow.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workflowName The name of the workflow resource.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n workflowName: string,\n options?: WorkflowGetOptionalParams\n ): Promise<WorkflowGetResponse>;\n /**\n * Creates or updates a workflow\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workflowName The name of the workflow resource.\n * @param parameters Resource representation of a workflow\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n workflowName: string,\n parameters: Workflow,\n options?: WorkflowCreateOrUpdateOptionalParams\n ): Promise<WorkflowCreateOrUpdateResponse>;\n /**\n * Deletes a workflow\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workflowName The name of the workflow resource.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n workflowName: string,\n options?: WorkflowDeleteOptionalParams\n ): Promise<WorkflowDeleteResponse>;\n /**\n * Updates tags on a workflow.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workflowName The name of the workflow resource.\n * @param parameters Parameters supplied to the Update Workflow Tags operation.\n * @param options The options parameters.\n */\n updateTags(\n resourceGroupName: string,\n workflowName: string,\n parameters: TagsObject,\n options?: WorkflowUpdateTagsOptionalParams\n ): Promise<WorkflowUpdateTagsResponse>;\n}\n"]}
@@ -0,0 +1,3 @@
1
+ {
2
+ "type": "module"
3
+ }
@@ -14,18 +14,16 @@ const pageMap = new WeakMap();
14
14
  * @returns The continuation token that can be passed into byPage() during future calls.
15
15
  */
16
16
  export function getContinuationToken(page) {
17
- var _a;
18
17
  if (typeof page !== "object" || page === null) {
19
18
  return undefined;
20
19
  }
21
- return (_a = pageMap.get(page)) === null || _a === void 0 ? void 0 : _a.continuationToken;
20
+ return pageMap.get(page)?.continuationToken;
22
21
  }
23
22
  export function setContinuationToken(page, continuationToken) {
24
- var _a;
25
23
  if (typeof page !== "object" || page === null || !continuationToken) {
26
24
  return;
27
25
  }
28
- const pageInfo = (_a = pageMap.get(page)) !== null && _a !== void 0 ? _a : {};
26
+ const pageInfo = pageMap.get(page) ?? {};
29
27
  pageInfo.continuationToken = continuationToken;
30
28
  pageMap.set(page, pageInfo);
31
29
  }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pagingHelper.js","sourceRoot":"","sources":["../../src/pagingHelper.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAMH,MAAM,OAAO,GAAG,IAAI,OAAO,EAAoB,CAAC;AAEhD;;;;;;GAMG;AACH,MAAM,UAAU,oBAAoB,CAAC,IAAa;IAChD,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,EAAE,CAAC;QAC9C,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,OAAO,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,iBAAiB,CAAC;AAC9C,CAAC;AAED,MAAM,UAAU,oBAAoB,CAClC,IAAa,EACb,iBAAqC;IAErC,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,IAAI,CAAC,iBAAiB,EAAE,CAAC;QACpE,OAAO;IACT,CAAC;IACD,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;IACzC,QAAQ,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;IAC/C,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;AAC9B,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\nexport interface PageInfo {\n continuationToken?: string;\n}\n\nconst pageMap = new WeakMap<object, PageInfo>();\n\n/**\n * Given the last `.value` produced by the `byPage` iterator,\n * returns a continuation token that can be used to begin paging from\n * that point later.\n * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.\n * @returns The continuation token that can be passed into byPage() during future calls.\n */\nexport function getContinuationToken(page: unknown): string | undefined {\n if (typeof page !== \"object\" || page === null) {\n return undefined;\n }\n return pageMap.get(page)?.continuationToken;\n}\n\nexport function setContinuationToken(\n page: unknown,\n continuationToken: string | undefined\n): void {\n if (typeof page !== \"object\" || page === null || !continuationToken) {\n return;\n }\n const pageInfo = pageMap.get(page) ?? {};\n pageInfo.continuationToken = continuationToken;\n pageMap.set(page, pageInfo);\n}\n"]}
@@ -0,0 +1,48 @@
1
+ import * as coreClient from "@azure/core-client";
2
+ import * as coreAuth from "@azure/core-auth";
3
+ import { Operations, WorkflowOperations } from "./operationsInterfaces/index.js";
4
+ import { DeveloperHubServiceClientOptionalParams, GitHubOAuthOptionalParams, GitHubOAuthOperationResponse, GitHubOAuthCallbackOptionalParams, GitHubOAuthCallbackResponse, ListGitHubOAuthOptionalParams, ListGitHubOAuthResponse, ArtifactGenerationProperties, GeneratePreviewArtifactsOptionalParams, GeneratePreviewArtifactsResponse } from "./models/index.js";
5
+ export declare class DeveloperHubServiceClient extends coreClient.ServiceClient {
6
+ $host: string;
7
+ apiVersion: string;
8
+ subscriptionId: string;
9
+ /**
10
+ * Initializes a new instance of the DeveloperHubServiceClient class.
11
+ * @param credentials Subscription credentials which uniquely identify client subscription.
12
+ * @param subscriptionId The ID of the target subscription.
13
+ * @param options The parameter options
14
+ */
15
+ constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: DeveloperHubServiceClientOptionalParams);
16
+ /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
17
+ private addCustomApiVersionPolicy;
18
+ /**
19
+ * Gets GitHubOAuth info used to authenticate users with the Developer Hub GitHub App.
20
+ * @param location The name of Azure region.
21
+ * @param options The options parameters.
22
+ */
23
+ gitHubOAuth(location: string, options?: GitHubOAuthOptionalParams): Promise<GitHubOAuthOperationResponse>;
24
+ /**
25
+ * Callback URL to hit once authenticated with GitHub App to have the service store the OAuth token.
26
+ * @param location The name of Azure region.
27
+ * @param code The code response from authenticating the GitHub App.
28
+ * @param state The state response from authenticating the GitHub App.
29
+ * @param options The options parameters.
30
+ */
31
+ gitHubOAuthCallback(location: string, code: string, state: string, options?: GitHubOAuthCallbackOptionalParams): Promise<GitHubOAuthCallbackResponse>;
32
+ /**
33
+ * Callback URL to hit once authenticated with GitHub App to have the service store the OAuth token.
34
+ * @param location The name of Azure region.
35
+ * @param options The options parameters.
36
+ */
37
+ listGitHubOAuth(location: string, options?: ListGitHubOAuthOptionalParams): Promise<ListGitHubOAuthResponse>;
38
+ /**
39
+ * Generate preview dockerfile and manifests.
40
+ * @param location The name of Azure region.
41
+ * @param parameters Properties used for generating artifacts such as Dockerfiles and manifests.
42
+ * @param options The options parameters.
43
+ */
44
+ generatePreviewArtifacts(location: string, parameters: ArtifactGenerationProperties, options?: GeneratePreviewArtifactsOptionalParams): Promise<GeneratePreviewArtifactsResponse>;
45
+ operations: Operations;
46
+ workflowOperations: WorkflowOperations;
47
+ }
48
+ //# sourceMappingURL=developerHubServiceClient.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"developerHubServiceClient.d.ts","sourceRoot":"","sources":["../../src/developerHubServiceClient.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAOjD,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAE7C,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAGjF,OAAO,EACL,uCAAuC,EACvC,yBAAyB,EACzB,4BAA4B,EAC5B,iCAAiC,EACjC,2BAA2B,EAC3B,6BAA6B,EAC7B,uBAAuB,EACvB,4BAA4B,EAC5B,sCAAsC,EACtC,gCAAgC,EACjC,MAAM,mBAAmB,CAAC;AAE3B,qBAAa,yBAA0B,SAAQ,UAAU,CAAC,aAAa;IACrE,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;IAEvB;;;;;OAKG;gBAED,WAAW,EAAE,QAAQ,CAAC,eAAe,EACrC,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,uCAAuC;IA6EnD,8GAA8G;IAC9G,OAAO,CAAC,yBAAyB;IA2BjC;;;;OAIG;IACH,WAAW,CACT,QAAQ,EAAE,MAAM,EAChB,OAAO,CAAC,EAAE,yBAAyB,GAClC,OAAO,CAAC,4BAA4B,CAAC;IAOxC;;;;;;OAMG;IACH,mBAAmB,CACjB,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,MAAM,EACb,OAAO,CAAC,EAAE,iCAAiC,GAC1C,OAAO,CAAC,2BAA2B,CAAC;IAOvC;;;;OAIG;IACH,eAAe,CACb,QAAQ,EAAE,MAAM,EAChB,OAAO,CAAC,EAAE,6BAA6B,GACtC,OAAO,CAAC,uBAAuB,CAAC;IAOnC;;;;;OAKG;IACH,wBAAwB,CACtB,QAAQ,EAAE,MAAM,EAChB,UAAU,EAAE,4BAA4B,EACxC,OAAO,CAAC,EAAE,sCAAsC,GAC/C,OAAO,CAAC,gCAAgC,CAAC;IAO5C,UAAU,EAAE,UAAU,CAAC;IACvB,kBAAkB,EAAE,kBAAkB,CAAC;CACxC"}
@@ -0,0 +1,238 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) Microsoft Corporation.
4
+ * Licensed under the MIT License.
5
+ *
6
+ * Code generated by Microsoft (R) AutoRest Code Generator.
7
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.DeveloperHubServiceClient = void 0;
11
+ const tslib_1 = require("tslib");
12
+ const coreClient = tslib_1.__importStar(require("@azure/core-client"));
13
+ const coreRestPipeline = tslib_1.__importStar(require("@azure/core-rest-pipeline"));
14
+ const index_js_1 = require("./operations/index.js");
15
+ const Parameters = tslib_1.__importStar(require("./models/parameters.js"));
16
+ const Mappers = tslib_1.__importStar(require("./models/mappers.js"));
17
+ class DeveloperHubServiceClient extends coreClient.ServiceClient {
18
+ $host;
19
+ apiVersion;
20
+ subscriptionId;
21
+ /**
22
+ * Initializes a new instance of the DeveloperHubServiceClient class.
23
+ * @param credentials Subscription credentials which uniquely identify client subscription.
24
+ * @param subscriptionId The ID of the target subscription.
25
+ * @param options The parameter options
26
+ */
27
+ constructor(credentials, subscriptionId, options) {
28
+ if (credentials === undefined) {
29
+ throw new Error("'credentials' cannot be null");
30
+ }
31
+ if (subscriptionId === undefined) {
32
+ throw new Error("'subscriptionId' cannot be null");
33
+ }
34
+ // Initializing default values for options
35
+ if (!options) {
36
+ options = {};
37
+ }
38
+ const defaults = {
39
+ requestContentType: "application/json; charset=utf-8",
40
+ credential: credentials
41
+ };
42
+ const packageDetails = `azsdk-js-arm-devhub/1.0.0-beta.4`;
43
+ const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
44
+ ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
45
+ : `${packageDetails}`;
46
+ const optionsWithDefaults = {
47
+ ...defaults,
48
+ ...options,
49
+ userAgentOptions: {
50
+ userAgentPrefix
51
+ },
52
+ endpoint: options.endpoint ?? options.baseUri ?? "https://management.azure.com"
53
+ };
54
+ super(optionsWithDefaults);
55
+ let bearerTokenAuthenticationPolicyFound = false;
56
+ if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
57
+ const pipelinePolicies = options.pipeline.getOrderedPolicies();
58
+ bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
59
+ coreRestPipeline.bearerTokenAuthenticationPolicyName);
60
+ }
61
+ if (!options ||
62
+ !options.pipeline ||
63
+ options.pipeline.getOrderedPolicies().length == 0 ||
64
+ !bearerTokenAuthenticationPolicyFound) {
65
+ this.pipeline.removePolicy({
66
+ name: coreRestPipeline.bearerTokenAuthenticationPolicyName
67
+ });
68
+ this.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({
69
+ credential: credentials,
70
+ scopes: optionsWithDefaults.credentialScopes ??
71
+ `${optionsWithDefaults.endpoint}/.default`,
72
+ challengeCallbacks: {
73
+ authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge
74
+ }
75
+ }));
76
+ }
77
+ // Parameter assignments
78
+ this.subscriptionId = subscriptionId;
79
+ // Assigning values to Constant parameters
80
+ this.$host = options.$host || "https://management.azure.com";
81
+ this.apiVersion = options.apiVersion || "2022-10-11-preview";
82
+ this.operations = new index_js_1.OperationsImpl(this);
83
+ this.workflowOperations = new index_js_1.WorkflowOperationsImpl(this);
84
+ this.addCustomApiVersionPolicy(options.apiVersion);
85
+ }
86
+ /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
87
+ addCustomApiVersionPolicy(apiVersion) {
88
+ if (!apiVersion) {
89
+ return;
90
+ }
91
+ const apiVersionPolicy = {
92
+ name: "CustomApiVersionPolicy",
93
+ async sendRequest(request, next) {
94
+ const param = request.url.split("?");
95
+ if (param.length > 1) {
96
+ const newParams = param[1].split("&").map((item) => {
97
+ if (item.indexOf("api-version") > -1) {
98
+ return "api-version=" + apiVersion;
99
+ }
100
+ else {
101
+ return item;
102
+ }
103
+ });
104
+ request.url = param[0] + "?" + newParams.join("&");
105
+ }
106
+ return next(request);
107
+ }
108
+ };
109
+ this.pipeline.addPolicy(apiVersionPolicy);
110
+ }
111
+ /**
112
+ * Gets GitHubOAuth info used to authenticate users with the Developer Hub GitHub App.
113
+ * @param location The name of Azure region.
114
+ * @param options The options parameters.
115
+ */
116
+ gitHubOAuth(location, options) {
117
+ return this.sendOperationRequest({ location, options }, gitHubOAuthOperationSpec);
118
+ }
119
+ /**
120
+ * Callback URL to hit once authenticated with GitHub App to have the service store the OAuth token.
121
+ * @param location The name of Azure region.
122
+ * @param code The code response from authenticating the GitHub App.
123
+ * @param state The state response from authenticating the GitHub App.
124
+ * @param options The options parameters.
125
+ */
126
+ gitHubOAuthCallback(location, code, state, options) {
127
+ return this.sendOperationRequest({ location, code, state, options }, gitHubOAuthCallbackOperationSpec);
128
+ }
129
+ /**
130
+ * Callback URL to hit once authenticated with GitHub App to have the service store the OAuth token.
131
+ * @param location The name of Azure region.
132
+ * @param options The options parameters.
133
+ */
134
+ listGitHubOAuth(location, options) {
135
+ return this.sendOperationRequest({ location, options }, listGitHubOAuthOperationSpec);
136
+ }
137
+ /**
138
+ * Generate preview dockerfile and manifests.
139
+ * @param location The name of Azure region.
140
+ * @param parameters Properties used for generating artifacts such as Dockerfiles and manifests.
141
+ * @param options The options parameters.
142
+ */
143
+ generatePreviewArtifacts(location, parameters, options) {
144
+ return this.sendOperationRequest({ location, parameters, options }, generatePreviewArtifactsOperationSpec);
145
+ }
146
+ operations;
147
+ workflowOperations;
148
+ }
149
+ exports.DeveloperHubServiceClient = DeveloperHubServiceClient;
150
+ // Operation Specifications
151
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
152
+ const gitHubOAuthOperationSpec = {
153
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.DevHub/locations/{location}/githuboauth/default/getGitHubOAuthInfo",
154
+ httpMethod: "POST",
155
+ responses: {
156
+ 200: {
157
+ bodyMapper: Mappers.GitHubOAuthInfoResponse
158
+ },
159
+ default: {
160
+ bodyMapper: Mappers.ErrorResponse
161
+ }
162
+ },
163
+ requestBody: Parameters.parameters,
164
+ queryParameters: [Parameters.apiVersion],
165
+ urlParameters: [
166
+ Parameters.$host,
167
+ Parameters.subscriptionId,
168
+ Parameters.location
169
+ ],
170
+ headerParameters: [Parameters.accept, Parameters.contentType],
171
+ mediaType: "json",
172
+ serializer
173
+ };
174
+ const gitHubOAuthCallbackOperationSpec = {
175
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.DevHub/locations/{location}/githuboauth/default",
176
+ httpMethod: "GET",
177
+ responses: {
178
+ 200: {
179
+ bodyMapper: Mappers.GitHubOAuthResponse
180
+ },
181
+ default: {
182
+ bodyMapper: Mappers.ErrorResponse
183
+ }
184
+ },
185
+ queryParameters: [Parameters.apiVersion, Parameters.code, Parameters.state],
186
+ urlParameters: [
187
+ Parameters.$host,
188
+ Parameters.subscriptionId,
189
+ Parameters.location
190
+ ],
191
+ headerParameters: [Parameters.accept],
192
+ serializer
193
+ };
194
+ const listGitHubOAuthOperationSpec = {
195
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.DevHub/locations/{location}/githuboauth",
196
+ httpMethod: "GET",
197
+ responses: {
198
+ 200: {
199
+ bodyMapper: Mappers.GitHubOAuthListResponse
200
+ },
201
+ default: {
202
+ bodyMapper: Mappers.ErrorResponse
203
+ }
204
+ },
205
+ queryParameters: [Parameters.apiVersion],
206
+ urlParameters: [
207
+ Parameters.$host,
208
+ Parameters.subscriptionId,
209
+ Parameters.location
210
+ ],
211
+ headerParameters: [Parameters.accept],
212
+ serializer
213
+ };
214
+ const generatePreviewArtifactsOperationSpec = {
215
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.DevHub/locations/{location}/generatePreviewArtifacts",
216
+ httpMethod: "POST",
217
+ responses: {
218
+ 200: {
219
+ bodyMapper: {
220
+ type: { name: "Dictionary", value: { type: { name: "String" } } }
221
+ }
222
+ },
223
+ default: {
224
+ bodyMapper: Mappers.ErrorResponse
225
+ }
226
+ },
227
+ requestBody: Parameters.parameters1,
228
+ queryParameters: [Parameters.apiVersion],
229
+ urlParameters: [
230
+ Parameters.$host,
231
+ Parameters.subscriptionId,
232
+ Parameters.location
233
+ ],
234
+ headerParameters: [Parameters.accept, Parameters.contentType],
235
+ mediaType: "json",
236
+ serializer
237
+ };
238
+ //# sourceMappingURL=developerHubServiceClient.js.map