@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
@@ -0,0 +1,357 @@
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.WorkflowOperationsImpl = void 0;
11
+ const tslib_1 = require("tslib");
12
+ const pagingHelper_js_1 = require("../pagingHelper.js");
13
+ const coreClient = tslib_1.__importStar(require("@azure/core-client"));
14
+ const Mappers = tslib_1.__importStar(require("../models/mappers.js"));
15
+ const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
16
+ /// <reference lib="esnext.asynciterable" />
17
+ /** Class containing WorkflowOperations operations. */
18
+ class WorkflowOperationsImpl {
19
+ client;
20
+ /**
21
+ * Initialize a new instance of the class WorkflowOperations class.
22
+ * @param client Reference to the service client
23
+ */
24
+ constructor(client) {
25
+ this.client = client;
26
+ }
27
+ /**
28
+ * Gets a list of workflows associated with the specified subscription.
29
+ * @param options The options parameters.
30
+ */
31
+ list(options) {
32
+ const iter = this.listPagingAll(options);
33
+ return {
34
+ next() {
35
+ return iter.next();
36
+ },
37
+ [Symbol.asyncIterator]() {
38
+ return this;
39
+ },
40
+ byPage: (settings) => {
41
+ if (settings?.maxPageSize) {
42
+ throw new Error("maxPageSize is not supported by this operation.");
43
+ }
44
+ return this.listPagingPage(options, settings);
45
+ }
46
+ };
47
+ }
48
+ async *listPagingPage(options, settings) {
49
+ let result;
50
+ let continuationToken = settings?.continuationToken;
51
+ if (!continuationToken) {
52
+ result = await this._list(options);
53
+ let page = result.value || [];
54
+ continuationToken = result.nextLink;
55
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
56
+ yield page;
57
+ }
58
+ while (continuationToken) {
59
+ result = await this._listNext(continuationToken, options);
60
+ continuationToken = result.nextLink;
61
+ let page = result.value || [];
62
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
63
+ yield page;
64
+ }
65
+ }
66
+ async *listPagingAll(options) {
67
+ for await (const page of this.listPagingPage(options)) {
68
+ yield* page;
69
+ }
70
+ }
71
+ /**
72
+ * Gets a list of workflows within a resource group.
73
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
74
+ * @param options The options parameters.
75
+ */
76
+ listByResourceGroup(resourceGroupName, options) {
77
+ const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
78
+ return {
79
+ next() {
80
+ return iter.next();
81
+ },
82
+ [Symbol.asyncIterator]() {
83
+ return this;
84
+ },
85
+ byPage: (settings) => {
86
+ if (settings?.maxPageSize) {
87
+ throw new Error("maxPageSize is not supported by this operation.");
88
+ }
89
+ return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
90
+ }
91
+ };
92
+ }
93
+ async *listByResourceGroupPagingPage(resourceGroupName, options, settings) {
94
+ let result;
95
+ let continuationToken = settings?.continuationToken;
96
+ if (!continuationToken) {
97
+ result = await this._listByResourceGroup(resourceGroupName, options);
98
+ let page = result.value || [];
99
+ continuationToken = result.nextLink;
100
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
101
+ yield page;
102
+ }
103
+ while (continuationToken) {
104
+ result = await this._listByResourceGroupNext(resourceGroupName, continuationToken, options);
105
+ continuationToken = result.nextLink;
106
+ let page = result.value || [];
107
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
108
+ yield page;
109
+ }
110
+ }
111
+ async *listByResourceGroupPagingAll(resourceGroupName, options) {
112
+ for await (const page of this.listByResourceGroupPagingPage(resourceGroupName, options)) {
113
+ yield* page;
114
+ }
115
+ }
116
+ /**
117
+ * Gets a list of workflows associated with the specified subscription.
118
+ * @param options The options parameters.
119
+ */
120
+ _list(options) {
121
+ return this.client.sendOperationRequest({ options }, listOperationSpec);
122
+ }
123
+ /**
124
+ * Gets a list of workflows within a resource group.
125
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
126
+ * @param options The options parameters.
127
+ */
128
+ _listByResourceGroup(resourceGroupName, options) {
129
+ return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
130
+ }
131
+ /**
132
+ * Gets a workflow.
133
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
134
+ * @param workflowName The name of the workflow resource.
135
+ * @param options The options parameters.
136
+ */
137
+ get(resourceGroupName, workflowName, options) {
138
+ return this.client.sendOperationRequest({ resourceGroupName, workflowName, options }, getOperationSpec);
139
+ }
140
+ /**
141
+ * Creates or updates a workflow
142
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
143
+ * @param workflowName The name of the workflow resource.
144
+ * @param parameters Resource representation of a workflow
145
+ * @param options The options parameters.
146
+ */
147
+ createOrUpdate(resourceGroupName, workflowName, parameters, options) {
148
+ return this.client.sendOperationRequest({ resourceGroupName, workflowName, parameters, options }, createOrUpdateOperationSpec);
149
+ }
150
+ /**
151
+ * Deletes a workflow
152
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
153
+ * @param workflowName The name of the workflow resource.
154
+ * @param options The options parameters.
155
+ */
156
+ delete(resourceGroupName, workflowName, options) {
157
+ return this.client.sendOperationRequest({ resourceGroupName, workflowName, options }, deleteOperationSpec);
158
+ }
159
+ /**
160
+ * Updates tags on a workflow.
161
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
162
+ * @param workflowName The name of the workflow resource.
163
+ * @param parameters Parameters supplied to the Update Workflow Tags operation.
164
+ * @param options The options parameters.
165
+ */
166
+ updateTags(resourceGroupName, workflowName, parameters, options) {
167
+ return this.client.sendOperationRequest({ resourceGroupName, workflowName, parameters, options }, updateTagsOperationSpec);
168
+ }
169
+ /**
170
+ * ListNext
171
+ * @param nextLink The nextLink from the previous successful call to the List method.
172
+ * @param options The options parameters.
173
+ */
174
+ _listNext(nextLink, options) {
175
+ return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
176
+ }
177
+ /**
178
+ * ListByResourceGroupNext
179
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
180
+ * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
181
+ * @param options The options parameters.
182
+ */
183
+ _listByResourceGroupNext(resourceGroupName, nextLink, options) {
184
+ return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
185
+ }
186
+ }
187
+ exports.WorkflowOperationsImpl = WorkflowOperationsImpl;
188
+ // Operation Specifications
189
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
190
+ const listOperationSpec = {
191
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.DevHub/workflows",
192
+ httpMethod: "GET",
193
+ responses: {
194
+ 200: {
195
+ bodyMapper: Mappers.WorkflowListResult
196
+ },
197
+ default: {
198
+ bodyMapper: Mappers.ErrorResponse
199
+ }
200
+ },
201
+ queryParameters: [Parameters.apiVersion],
202
+ urlParameters: [Parameters.$host, Parameters.subscriptionId],
203
+ headerParameters: [Parameters.accept],
204
+ serializer
205
+ };
206
+ const listByResourceGroupOperationSpec = {
207
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevHub/workflows",
208
+ httpMethod: "GET",
209
+ responses: {
210
+ 200: {
211
+ bodyMapper: Mappers.WorkflowListResult
212
+ },
213
+ default: {
214
+ bodyMapper: Mappers.ErrorResponse
215
+ }
216
+ },
217
+ queryParameters: [Parameters.apiVersion, Parameters.managedClusterResource],
218
+ urlParameters: [
219
+ Parameters.$host,
220
+ Parameters.subscriptionId,
221
+ Parameters.resourceGroupName
222
+ ],
223
+ headerParameters: [Parameters.accept],
224
+ serializer
225
+ };
226
+ const getOperationSpec = {
227
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevHub/workflows/{workflowName}",
228
+ httpMethod: "GET",
229
+ responses: {
230
+ 200: {
231
+ bodyMapper: Mappers.Workflow
232
+ },
233
+ default: {
234
+ bodyMapper: Mappers.ErrorResponse
235
+ }
236
+ },
237
+ queryParameters: [Parameters.apiVersion],
238
+ urlParameters: [
239
+ Parameters.$host,
240
+ Parameters.subscriptionId,
241
+ Parameters.resourceGroupName,
242
+ Parameters.workflowName
243
+ ],
244
+ headerParameters: [Parameters.accept],
245
+ serializer
246
+ };
247
+ const createOrUpdateOperationSpec = {
248
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevHub/workflows/{workflowName}",
249
+ httpMethod: "PUT",
250
+ responses: {
251
+ 200: {
252
+ bodyMapper: Mappers.Workflow
253
+ },
254
+ 201: {
255
+ bodyMapper: Mappers.Workflow
256
+ },
257
+ default: {
258
+ bodyMapper: Mappers.ErrorResponse
259
+ }
260
+ },
261
+ requestBody: Parameters.parameters2,
262
+ queryParameters: [Parameters.apiVersion],
263
+ urlParameters: [
264
+ Parameters.$host,
265
+ Parameters.subscriptionId,
266
+ Parameters.resourceGroupName,
267
+ Parameters.workflowName
268
+ ],
269
+ headerParameters: [Parameters.accept, Parameters.contentType],
270
+ mediaType: "json",
271
+ serializer
272
+ };
273
+ const deleteOperationSpec = {
274
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevHub/workflows/{workflowName}",
275
+ httpMethod: "DELETE",
276
+ responses: {
277
+ 200: {
278
+ bodyMapper: Mappers.DeleteWorkflowResponse
279
+ },
280
+ 204: {},
281
+ default: {
282
+ bodyMapper: Mappers.ErrorResponse
283
+ }
284
+ },
285
+ queryParameters: [Parameters.apiVersion],
286
+ urlParameters: [
287
+ Parameters.$host,
288
+ Parameters.subscriptionId,
289
+ Parameters.resourceGroupName,
290
+ Parameters.workflowName
291
+ ],
292
+ headerParameters: [Parameters.accept],
293
+ serializer
294
+ };
295
+ const updateTagsOperationSpec = {
296
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevHub/workflows/{workflowName}",
297
+ httpMethod: "PATCH",
298
+ responses: {
299
+ 200: {
300
+ bodyMapper: Mappers.Workflow
301
+ },
302
+ default: {
303
+ bodyMapper: Mappers.ErrorResponse
304
+ }
305
+ },
306
+ requestBody: Parameters.parameters3,
307
+ queryParameters: [Parameters.apiVersion],
308
+ urlParameters: [
309
+ Parameters.$host,
310
+ Parameters.subscriptionId,
311
+ Parameters.resourceGroupName,
312
+ Parameters.workflowName
313
+ ],
314
+ headerParameters: [Parameters.accept, Parameters.contentType],
315
+ mediaType: "json",
316
+ serializer
317
+ };
318
+ const listNextOperationSpec = {
319
+ path: "{nextLink}",
320
+ httpMethod: "GET",
321
+ responses: {
322
+ 200: {
323
+ bodyMapper: Mappers.WorkflowListResult
324
+ },
325
+ default: {
326
+ bodyMapper: Mappers.ErrorResponse
327
+ }
328
+ },
329
+ urlParameters: [
330
+ Parameters.$host,
331
+ Parameters.subscriptionId,
332
+ Parameters.nextLink
333
+ ],
334
+ headerParameters: [Parameters.accept],
335
+ serializer
336
+ };
337
+ const listByResourceGroupNextOperationSpec = {
338
+ path: "{nextLink}",
339
+ httpMethod: "GET",
340
+ responses: {
341
+ 200: {
342
+ bodyMapper: Mappers.WorkflowListResult
343
+ },
344
+ default: {
345
+ bodyMapper: Mappers.ErrorResponse
346
+ }
347
+ },
348
+ urlParameters: [
349
+ Parameters.$host,
350
+ Parameters.subscriptionId,
351
+ Parameters.resourceGroupName,
352
+ Parameters.nextLink
353
+ ],
354
+ headerParameters: [Parameters.accept],
355
+ serializer
356
+ };
357
+ //# sourceMappingURL=workflowOperations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workflowOperations.js","sourceRoot":"","sources":["../../../src/operations/workflowOperations.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAuBtD,4CAA4C;AAC5C,sDAAsD;AACtD,MAAa,sBAAsB;IAChB,MAAM,CAA4B;IAEnD;;;OAGG;IACH,YAAY,MAAiC;QAC3C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACI,IAAI,CACT,OAAoC;QAEpC,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QACzC,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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M,qBAAqB,GAA6B;IACtD,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,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,oCAAoC,GAA6B;IACrE,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;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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAQA,cAAc,iBAAiB,CAAC;AAChC,cAAc,yBAAyB,CAAC"}
@@ -0,0 +1,13 @@
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
+ const tslib_1 = require("tslib");
11
+ tslib_1.__exportStar(require("./operations.js"), exports);
12
+ tslib_1.__exportStar(require("./workflowOperations.js"), exports);
13
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,0DAAgC;AAChC,kEAAwC","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"]}
@@ -0,0 +1,10 @@
1
+ import { OperationsListOptionalParams, OperationsListResponse } from "../models/index.js";
2
+ /** Interface representing a Operations. */
3
+ export interface Operations {
4
+ /**
5
+ * Returns list of operations.
6
+ * @param options The options parameters.
7
+ */
8
+ list(options?: OperationsListOptionalParams): Promise<OperationsListResponse>;
9
+ }
10
+ //# sourceMappingURL=operations.d.ts.map
@@ -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,10 @@
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
+ //# sourceMappingURL=operations.js.map
@@ -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"]}
@@ -0,0 +1,47 @@
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { Workflow, WorkflowListOptionalParams, WorkflowListByResourceGroupOptionalParams, WorkflowGetOptionalParams, WorkflowGetResponse, WorkflowCreateOrUpdateOptionalParams, WorkflowCreateOrUpdateResponse, WorkflowDeleteOptionalParams, WorkflowDeleteResponse, TagsObject, WorkflowUpdateTagsOptionalParams, WorkflowUpdateTagsResponse } from "../models/index.js";
3
+ /** Interface representing a WorkflowOperations. */
4
+ export interface WorkflowOperations {
5
+ /**
6
+ * Gets a list of workflows associated with the specified subscription.
7
+ * @param options The options parameters.
8
+ */
9
+ list(options?: WorkflowListOptionalParams): PagedAsyncIterableIterator<Workflow>;
10
+ /**
11
+ * Gets a list of workflows within a resource group.
12
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
13
+ * @param options The options parameters.
14
+ */
15
+ listByResourceGroup(resourceGroupName: string, options?: WorkflowListByResourceGroupOptionalParams): PagedAsyncIterableIterator<Workflow>;
16
+ /**
17
+ * Gets a workflow.
18
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
19
+ * @param workflowName The name of the workflow resource.
20
+ * @param options The options parameters.
21
+ */
22
+ get(resourceGroupName: string, workflowName: string, options?: WorkflowGetOptionalParams): Promise<WorkflowGetResponse>;
23
+ /**
24
+ * Creates or updates a workflow
25
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
26
+ * @param workflowName The name of the workflow resource.
27
+ * @param parameters Resource representation of a workflow
28
+ * @param options The options parameters.
29
+ */
30
+ createOrUpdate(resourceGroupName: string, workflowName: string, parameters: Workflow, options?: WorkflowCreateOrUpdateOptionalParams): Promise<WorkflowCreateOrUpdateResponse>;
31
+ /**
32
+ * Deletes a workflow
33
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
34
+ * @param workflowName The name of the workflow resource.
35
+ * @param options The options parameters.
36
+ */
37
+ delete(resourceGroupName: string, workflowName: string, options?: WorkflowDeleteOptionalParams): Promise<WorkflowDeleteResponse>;
38
+ /**
39
+ * Updates tags on a workflow.
40
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
41
+ * @param workflowName The name of the workflow resource.
42
+ * @param parameters Parameters supplied to the Update Workflow Tags operation.
43
+ * @param options The options parameters.
44
+ */
45
+ updateTags(resourceGroupName: string, workflowName: string, parameters: TagsObject, options?: WorkflowUpdateTagsOptionalParams): Promise<WorkflowUpdateTagsResponse>;
46
+ }
47
+ //# sourceMappingURL=workflowOperations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workflowOperations.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/workflowOperations.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EACL,QAAQ,EACR,0BAA0B,EAC1B,yCAAyC,EACzC,yBAAyB,EACzB,mBAAmB,EACnB,oCAAoC,EACpC,8BAA8B,EAC9B,4BAA4B,EAC5B,sBAAsB,EACtB,UAAU,EACV,gCAAgC,EAChC,0BAA0B,EAC3B,MAAM,oBAAoB,CAAC;AAG5B,mDAAmD;AACnD,MAAM,WAAW,kBAAkB;IACjC;;;OAGG;IACH,IAAI,CACF,OAAO,CAAC,EAAE,0BAA0B,GACnC,0BAA0B,CAAC,QAAQ,CAAC,CAAC;IACxC;;;;OAIG;IACH,mBAAmB,CACjB,iBAAiB,EAAE,MAAM,EACzB,OAAO,CAAC,EAAE,yCAAyC,GAClD,0BAA0B,CAAC,QAAQ,CAAC,CAAC;IACxC;;;;;OAKG;IACH,GAAG,CACD,iBAAiB,EAAE,MAAM,EACzB,YAAY,EAAE,MAAM,EACpB,OAAO,CAAC,EAAE,yBAAyB,GAClC,OAAO,CAAC,mBAAmB,CAAC,CAAC;IAChC;;;;;;OAMG;IACH,cAAc,CACZ,iBAAiB,EAAE,MAAM,EACzB,YAAY,EAAE,MAAM,EACpB,UAAU,EAAE,QAAQ,EACpB,OAAO,CAAC,EAAE,oCAAoC,GAC7C,OAAO,CAAC,8BAA8B,CAAC,CAAC;IAC3C;;;;;OAKG;IACH,MAAM,CACJ,iBAAiB,EAAE,MAAM,EACzB,YAAY,EAAE,MAAM,EACpB,OAAO,CAAC,EAAE,4BAA4B,GACrC,OAAO,CAAC,sBAAsB,CAAC,CAAC;IACnC;;;;;;OAMG;IACH,UAAU,CACR,iBAAiB,EAAE,MAAM,EACzB,YAAY,EAAE,MAAM,EACpB,UAAU,EAAE,UAAU,EACtB,OAAO,CAAC,EAAE,gCAAgC,GACzC,OAAO,CAAC,0BAA0B,CAAC,CAAC;CACxC"}
@@ -0,0 +1,10 @@
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
+ //# sourceMappingURL=workflowOperations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workflowOperations.js","sourceRoot":"","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": "commonjs"
3
+ }
@@ -0,0 +1,13 @@
1
+ export interface PageInfo {
2
+ continuationToken?: string;
3
+ }
4
+ /**
5
+ * Given the last `.value` produced by the `byPage` iterator,
6
+ * returns a continuation token that can be used to begin paging from
7
+ * that point later.
8
+ * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
9
+ * @returns The continuation token that can be passed into byPage() during future calls.
10
+ */
11
+ export declare function getContinuationToken(page: unknown): string | undefined;
12
+ export declare function setContinuationToken(page: unknown, continuationToken: string | undefined): void;
13
+ //# sourceMappingURL=pagingHelper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pagingHelper.d.ts","sourceRoot":"","sources":["../../src/pagingHelper.ts"],"names":[],"mappings":"AAQA,MAAM,WAAW,QAAQ;IACvB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAID;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAKtE;AAED,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,OAAO,EACb,iBAAiB,EAAE,MAAM,GAAG,SAAS,GACpC,IAAI,CAON"}
@@ -0,0 +1,34 @@
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.getContinuationToken = getContinuationToken;
11
+ exports.setContinuationToken = setContinuationToken;
12
+ const pageMap = new WeakMap();
13
+ /**
14
+ * Given the last `.value` produced by the `byPage` iterator,
15
+ * returns a continuation token that can be used to begin paging from
16
+ * that point later.
17
+ * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
18
+ * @returns The continuation token that can be passed into byPage() during future calls.
19
+ */
20
+ function getContinuationToken(page) {
21
+ if (typeof page !== "object" || page === null) {
22
+ return undefined;
23
+ }
24
+ return pageMap.get(page)?.continuationToken;
25
+ }
26
+ function setContinuationToken(page, continuationToken) {
27
+ if (typeof page !== "object" || page === null || !continuationToken) {
28
+ return;
29
+ }
30
+ const pageInfo = pageMap.get(page) ?? {};
31
+ pageInfo.continuationToken = continuationToken;
32
+ pageMap.set(page, pageInfo);
33
+ }
34
+ //# sourceMappingURL=pagingHelper.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pagingHelper.js","sourceRoot":"","sources":["../../src/pagingHelper.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;AAeH,oDAKC;AAED,oDAUC;AA1BD,MAAM,OAAO,GAAG,IAAI,OAAO,EAAoB,CAAC;AAEhD;;;;;;GAMG;AACH,SAAgB,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,SAAgB,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"]}
@@ -1,11 +1,11 @@
1
- // This file is read by tools that parse documentation comments conforming to the TSDoc standard.
2
- // It should be published with your NPM package. It should not be tracked by Git.
3
- {
4
- "tsdocVersion": "0.12",
5
- "toolPackages": [
6
- {
7
- "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.33.7"
9
- }
10
- ]
11
- }
1
+ // This file is read by tools that parse documentation comments conforming to the TSDoc standard.
2
+ // It should be published with your NPM package. It should not be tracked by Git.
3
+ {
4
+ "tsdocVersion": "0.12",
5
+ "toolPackages": [
6
+ {
7
+ "packageName": "@microsoft/api-extractor",
8
+ "packageVersion": "7.52.10"
9
+ }
10
+ ]
11
+ }