@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
package/dist/index.js DELETED
@@ -1,1562 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- var tslib = require('tslib');
6
- var coreClient = require('@azure/core-client');
7
- var coreRestPipeline = require('@azure/core-rest-pipeline');
8
-
9
- function _interopNamespace(e) {
10
- if (e && e.__esModule) return e;
11
- var n = Object.create(null);
12
- if (e) {
13
- Object.keys(e).forEach(function (k) {
14
- if (k !== 'default') {
15
- var d = Object.getOwnPropertyDescriptor(e, k);
16
- Object.defineProperty(n, k, d.get ? d : {
17
- enumerable: true,
18
- get: function () { return e[k]; }
19
- });
20
- }
21
- });
22
- }
23
- n["default"] = e;
24
- return Object.freeze(n);
25
- }
26
-
27
- var coreClient__namespace = /*#__PURE__*/_interopNamespace(coreClient);
28
- var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespace(coreRestPipeline);
29
-
30
- /*
31
- * Copyright (c) Microsoft Corporation.
32
- * Licensed under the MIT License.
33
- *
34
- * Code generated by Microsoft (R) AutoRest Code Generator.
35
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
36
- */
37
- const pageMap = new WeakMap();
38
- /**
39
- * Given the last `.value` produced by the `byPage` iterator,
40
- * returns a continuation token that can be used to begin paging from
41
- * that point later.
42
- * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
43
- * @returns The continuation token that can be passed into byPage() during future calls.
44
- */
45
- function getContinuationToken(page) {
46
- var _a;
47
- if (typeof page !== "object" || page === null) {
48
- return undefined;
49
- }
50
- return (_a = pageMap.get(page)) === null || _a === void 0 ? void 0 : _a.continuationToken;
51
- }
52
- function setContinuationToken(page, continuationToken) {
53
- var _a;
54
- if (typeof page !== "object" || page === null || !continuationToken) {
55
- return;
56
- }
57
- const pageInfo = (_a = pageMap.get(page)) !== null && _a !== void 0 ? _a : {};
58
- pageInfo.continuationToken = continuationToken;
59
- pageMap.set(page, pageInfo);
60
- }
61
-
62
- /*
63
- * Copyright (c) Microsoft Corporation.
64
- * Licensed under the MIT License.
65
- *
66
- * Code generated by Microsoft (R) AutoRest Code Generator.
67
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
68
- */
69
- /** Known values of {@link Origin} that the service accepts. */
70
- exports.KnownOrigin = void 0;
71
- (function (KnownOrigin) {
72
- /** User */
73
- KnownOrigin["User"] = "user";
74
- /** System */
75
- KnownOrigin["System"] = "system";
76
- /** UserSystem */
77
- KnownOrigin["UserSystem"] = "user,system";
78
- })(exports.KnownOrigin || (exports.KnownOrigin = {}));
79
- /** Known values of {@link ActionType} that the service accepts. */
80
- exports.KnownActionType = void 0;
81
- (function (KnownActionType) {
82
- /** Internal */
83
- KnownActionType["Internal"] = "Internal";
84
- })(exports.KnownActionType || (exports.KnownActionType = {}));
85
- /** Known values of {@link CreatedByType} that the service accepts. */
86
- exports.KnownCreatedByType = void 0;
87
- (function (KnownCreatedByType) {
88
- /** User */
89
- KnownCreatedByType["User"] = "User";
90
- /** Application */
91
- KnownCreatedByType["Application"] = "Application";
92
- /** ManagedIdentity */
93
- KnownCreatedByType["ManagedIdentity"] = "ManagedIdentity";
94
- /** Key */
95
- KnownCreatedByType["Key"] = "Key";
96
- })(exports.KnownCreatedByType || (exports.KnownCreatedByType = {}));
97
- /** Known values of {@link ManifestType} that the service accepts. */
98
- exports.KnownManifestType = void 0;
99
- (function (KnownManifestType) {
100
- /** Repositories using helm */
101
- KnownManifestType["Helm"] = "helm";
102
- /** Repositories using kubernetes manifests */
103
- KnownManifestType["Kube"] = "kube";
104
- })(exports.KnownManifestType || (exports.KnownManifestType = {}));
105
- /** Known values of {@link PullRequestStatus} that the service accepts. */
106
- exports.KnownPullRequestStatus = void 0;
107
- (function (KnownPullRequestStatus) {
108
- /** Pull Request state unknown. */
109
- KnownPullRequestStatus["Unknown"] = "unknown";
110
- /** Pull Request submitted to repository. */
111
- KnownPullRequestStatus["Submitted"] = "submitted";
112
- /** Pull Request merged into repository. */
113
- KnownPullRequestStatus["Merged"] = "merged";
114
- /** Workflow no longer found within repository. */
115
- KnownPullRequestStatus["Removed"] = "removed";
116
- })(exports.KnownPullRequestStatus || (exports.KnownPullRequestStatus = {}));
117
-
118
- /*
119
- * Copyright (c) Microsoft Corporation.
120
- * Licensed under the MIT License.
121
- *
122
- * Code generated by Microsoft (R) AutoRest Code Generator.
123
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
124
- */
125
- const OperationListResult = {
126
- type: {
127
- name: "Composite",
128
- className: "OperationListResult",
129
- modelProperties: {
130
- value: {
131
- serializedName: "value",
132
- readOnly: true,
133
- type: {
134
- name: "Sequence",
135
- element: {
136
- type: {
137
- name: "Composite",
138
- className: "Operation"
139
- }
140
- }
141
- }
142
- },
143
- nextLink: {
144
- serializedName: "nextLink",
145
- readOnly: true,
146
- type: {
147
- name: "String"
148
- }
149
- }
150
- }
151
- }
152
- };
153
- const Operation = {
154
- type: {
155
- name: "Composite",
156
- className: "Operation",
157
- modelProperties: {
158
- name: {
159
- serializedName: "name",
160
- readOnly: true,
161
- type: {
162
- name: "String"
163
- }
164
- },
165
- isDataAction: {
166
- serializedName: "isDataAction",
167
- readOnly: true,
168
- type: {
169
- name: "Boolean"
170
- }
171
- },
172
- display: {
173
- serializedName: "display",
174
- type: {
175
- name: "Composite",
176
- className: "OperationDisplay"
177
- }
178
- },
179
- origin: {
180
- serializedName: "origin",
181
- readOnly: true,
182
- type: {
183
- name: "String"
184
- }
185
- },
186
- actionType: {
187
- serializedName: "actionType",
188
- readOnly: true,
189
- type: {
190
- name: "String"
191
- }
192
- }
193
- }
194
- }
195
- };
196
- const OperationDisplay = {
197
- type: {
198
- name: "Composite",
199
- className: "OperationDisplay",
200
- modelProperties: {
201
- provider: {
202
- serializedName: "provider",
203
- readOnly: true,
204
- type: {
205
- name: "String"
206
- }
207
- },
208
- resource: {
209
- serializedName: "resource",
210
- readOnly: true,
211
- type: {
212
- name: "String"
213
- }
214
- },
215
- operation: {
216
- serializedName: "operation",
217
- readOnly: true,
218
- type: {
219
- name: "String"
220
- }
221
- },
222
- description: {
223
- serializedName: "description",
224
- readOnly: true,
225
- type: {
226
- name: "String"
227
- }
228
- }
229
- }
230
- }
231
- };
232
- const ErrorResponse = {
233
- type: {
234
- name: "Composite",
235
- className: "ErrorResponse",
236
- modelProperties: {
237
- error: {
238
- serializedName: "error",
239
- type: {
240
- name: "Composite",
241
- className: "ErrorDetail"
242
- }
243
- }
244
- }
245
- }
246
- };
247
- const ErrorDetail = {
248
- type: {
249
- name: "Composite",
250
- className: "ErrorDetail",
251
- modelProperties: {
252
- code: {
253
- serializedName: "code",
254
- readOnly: true,
255
- type: {
256
- name: "String"
257
- }
258
- },
259
- message: {
260
- serializedName: "message",
261
- readOnly: true,
262
- type: {
263
- name: "String"
264
- }
265
- },
266
- target: {
267
- serializedName: "target",
268
- readOnly: true,
269
- type: {
270
- name: "String"
271
- }
272
- },
273
- details: {
274
- serializedName: "details",
275
- readOnly: true,
276
- type: {
277
- name: "Sequence",
278
- element: {
279
- type: {
280
- name: "Composite",
281
- className: "ErrorDetail"
282
- }
283
- }
284
- }
285
- },
286
- additionalInfo: {
287
- serializedName: "additionalInfo",
288
- readOnly: true,
289
- type: {
290
- name: "Sequence",
291
- element: {
292
- type: {
293
- name: "Composite",
294
- className: "ErrorAdditionalInfo"
295
- }
296
- }
297
- }
298
- }
299
- }
300
- }
301
- };
302
- const ErrorAdditionalInfo = {
303
- type: {
304
- name: "Composite",
305
- className: "ErrorAdditionalInfo",
306
- modelProperties: {
307
- type: {
308
- serializedName: "type",
309
- readOnly: true,
310
- type: {
311
- name: "String"
312
- }
313
- },
314
- info: {
315
- serializedName: "info",
316
- readOnly: true,
317
- type: {
318
- name: "Dictionary",
319
- value: { type: { name: "any" } }
320
- }
321
- }
322
- }
323
- }
324
- };
325
- const GitHubOAuthCallRequest = {
326
- type: {
327
- name: "Composite",
328
- className: "GitHubOAuthCallRequest",
329
- modelProperties: {
330
- redirectUrl: {
331
- serializedName: "redirectUrl",
332
- type: {
333
- name: "String"
334
- }
335
- }
336
- }
337
- }
338
- };
339
- const GitHubOAuthInfoResponse = {
340
- type: {
341
- name: "Composite",
342
- className: "GitHubOAuthInfoResponse",
343
- modelProperties: {
344
- authURL: {
345
- serializedName: "authURL",
346
- type: {
347
- name: "String"
348
- }
349
- },
350
- token: {
351
- serializedName: "token",
352
- type: {
353
- name: "String"
354
- }
355
- }
356
- }
357
- }
358
- };
359
- const Resource = {
360
- type: {
361
- name: "Composite",
362
- className: "Resource",
363
- modelProperties: {
364
- id: {
365
- serializedName: "id",
366
- readOnly: true,
367
- type: {
368
- name: "String"
369
- }
370
- },
371
- name: {
372
- serializedName: "name",
373
- readOnly: true,
374
- type: {
375
- name: "String"
376
- }
377
- },
378
- type: {
379
- serializedName: "type",
380
- readOnly: true,
381
- type: {
382
- name: "String"
383
- }
384
- },
385
- systemData: {
386
- serializedName: "systemData",
387
- type: {
388
- name: "Composite",
389
- className: "SystemData"
390
- }
391
- }
392
- }
393
- }
394
- };
395
- const SystemData = {
396
- type: {
397
- name: "Composite",
398
- className: "SystemData",
399
- modelProperties: {
400
- createdBy: {
401
- serializedName: "createdBy",
402
- type: {
403
- name: "String"
404
- }
405
- },
406
- createdByType: {
407
- serializedName: "createdByType",
408
- type: {
409
- name: "String"
410
- }
411
- },
412
- createdAt: {
413
- serializedName: "createdAt",
414
- type: {
415
- name: "DateTime"
416
- }
417
- },
418
- lastModifiedBy: {
419
- serializedName: "lastModifiedBy",
420
- type: {
421
- name: "String"
422
- }
423
- },
424
- lastModifiedByType: {
425
- serializedName: "lastModifiedByType",
426
- type: {
427
- name: "String"
428
- }
429
- },
430
- lastModifiedAt: {
431
- serializedName: "lastModifiedAt",
432
- type: {
433
- name: "DateTime"
434
- }
435
- }
436
- }
437
- }
438
- };
439
- const GitHubOAuthListResponse = {
440
- type: {
441
- name: "Composite",
442
- className: "GitHubOAuthListResponse",
443
- modelProperties: {
444
- value: {
445
- serializedName: "value",
446
- type: {
447
- name: "Sequence",
448
- element: {
449
- type: {
450
- name: "Composite",
451
- className: "GitHubOAuthResponse"
452
- }
453
- }
454
- }
455
- }
456
- }
457
- }
458
- };
459
- const WorkflowListResult = {
460
- type: {
461
- name: "Composite",
462
- className: "WorkflowListResult",
463
- modelProperties: {
464
- value: {
465
- serializedName: "value",
466
- type: {
467
- name: "Sequence",
468
- element: {
469
- type: {
470
- name: "Composite",
471
- className: "Workflow"
472
- }
473
- }
474
- }
475
- },
476
- nextLink: {
477
- serializedName: "nextLink",
478
- readOnly: true,
479
- type: {
480
- name: "String"
481
- }
482
- }
483
- }
484
- }
485
- };
486
- const DeploymentProperties = {
487
- type: {
488
- name: "Composite",
489
- className: "DeploymentProperties",
490
- modelProperties: {
491
- manifestType: {
492
- serializedName: "manifestType",
493
- type: {
494
- name: "String"
495
- }
496
- },
497
- kubeManifestLocations: {
498
- serializedName: "kubeManifestLocations",
499
- type: {
500
- name: "Sequence",
501
- element: {
502
- type: {
503
- name: "String"
504
- }
505
- }
506
- }
507
- },
508
- helmChartPath: {
509
- serializedName: "helmChartPath",
510
- type: {
511
- name: "String"
512
- }
513
- },
514
- helmValues: {
515
- serializedName: "helmValues",
516
- type: {
517
- name: "String"
518
- }
519
- },
520
- overrides: {
521
- serializedName: "overrides",
522
- type: {
523
- name: "Dictionary",
524
- value: { type: { name: "String" } }
525
- }
526
- }
527
- }
528
- }
529
- };
530
- const Acr = {
531
- type: {
532
- name: "Composite",
533
- className: "Acr",
534
- modelProperties: {
535
- acrSubscriptionId: {
536
- serializedName: "acrSubscriptionId",
537
- type: {
538
- name: "String"
539
- }
540
- },
541
- acrResourceGroup: {
542
- serializedName: "acrResourceGroup",
543
- type: {
544
- name: "String"
545
- }
546
- },
547
- acrRegistryName: {
548
- serializedName: "acrRegistryName",
549
- type: {
550
- name: "String"
551
- }
552
- },
553
- acrRepositoryName: {
554
- serializedName: "acrRepositoryName",
555
- type: {
556
- name: "String"
557
- }
558
- }
559
- }
560
- }
561
- };
562
- const GitHubWorkflowProfileOidcCredentials = {
563
- type: {
564
- name: "Composite",
565
- className: "GitHubWorkflowProfileOidcCredentials",
566
- modelProperties: {
567
- azureClientId: {
568
- serializedName: "azureClientId",
569
- type: {
570
- name: "String"
571
- }
572
- },
573
- azureTenantId: {
574
- serializedName: "azureTenantId",
575
- type: {
576
- name: "String"
577
- }
578
- }
579
- }
580
- }
581
- };
582
- const WorkflowRun = {
583
- type: {
584
- name: "Composite",
585
- className: "WorkflowRun",
586
- modelProperties: {
587
- succeeded: {
588
- serializedName: "succeeded",
589
- readOnly: true,
590
- type: {
591
- name: "Boolean"
592
- }
593
- },
594
- workflowRunURL: {
595
- serializedName: "workflowRunURL",
596
- readOnly: true,
597
- type: {
598
- name: "String"
599
- }
600
- },
601
- lastRunAt: {
602
- serializedName: "lastRunAt",
603
- readOnly: true,
604
- type: {
605
- name: "DateTime"
606
- }
607
- }
608
- }
609
- }
610
- };
611
- const DeleteWorkflowResponse = {
612
- type: {
613
- name: "Composite",
614
- className: "DeleteWorkflowResponse",
615
- modelProperties: {
616
- status: {
617
- serializedName: "status",
618
- type: {
619
- name: "String"
620
- }
621
- }
622
- }
623
- }
624
- };
625
- const TagsObject = {
626
- type: {
627
- name: "Composite",
628
- className: "TagsObject",
629
- modelProperties: {
630
- tags: {
631
- serializedName: "tags",
632
- type: {
633
- name: "Dictionary",
634
- value: { type: { name: "String" } }
635
- }
636
- }
637
- }
638
- }
639
- };
640
- const ProxyResource = {
641
- type: {
642
- name: "Composite",
643
- className: "ProxyResource",
644
- modelProperties: Object.assign({}, Resource.type.modelProperties)
645
- }
646
- };
647
- const TrackedResource = {
648
- type: {
649
- name: "Composite",
650
- className: "TrackedResource",
651
- modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { tags: {
652
- serializedName: "tags",
653
- type: {
654
- name: "Dictionary",
655
- value: { type: { name: "String" } }
656
- }
657
- }, location: {
658
- serializedName: "location",
659
- required: true,
660
- type: {
661
- name: "String"
662
- }
663
- } })
664
- }
665
- };
666
- const GitHubOAuthResponse = {
667
- type: {
668
- name: "Composite",
669
- className: "GitHubOAuthResponse",
670
- modelProperties: Object.assign(Object.assign({}, ProxyResource.type.modelProperties), { username: {
671
- serializedName: "properties.username",
672
- type: {
673
- name: "String"
674
- }
675
- } })
676
- }
677
- };
678
- const Workflow = {
679
- type: {
680
- name: "Composite",
681
- className: "Workflow",
682
- modelProperties: Object.assign(Object.assign({}, TrackedResource.type.modelProperties), { repositoryOwner: {
683
- serializedName: "properties.githubWorkflowProfile.repositoryOwner",
684
- type: {
685
- name: "String"
686
- }
687
- }, repositoryName: {
688
- serializedName: "properties.githubWorkflowProfile.repositoryName",
689
- type: {
690
- name: "String"
691
- }
692
- }, branchName: {
693
- serializedName: "properties.githubWorkflowProfile.branchName",
694
- type: {
695
- name: "String"
696
- }
697
- }, dockerfile: {
698
- serializedName: "properties.githubWorkflowProfile.dockerfile",
699
- type: {
700
- name: "String"
701
- }
702
- }, dockerBuildContext: {
703
- serializedName: "properties.githubWorkflowProfile.dockerBuildContext",
704
- type: {
705
- name: "String"
706
- }
707
- }, deploymentProperties: {
708
- serializedName: "properties.githubWorkflowProfile.deploymentProperties",
709
- type: {
710
- name: "Composite",
711
- className: "DeploymentProperties"
712
- }
713
- }, namespace: {
714
- serializedName: "properties.githubWorkflowProfile.namespace",
715
- type: {
716
- name: "String"
717
- }
718
- }, acr: {
719
- serializedName: "properties.githubWorkflowProfile.acr",
720
- type: {
721
- name: "Composite",
722
- className: "Acr"
723
- }
724
- }, oidcCredentials: {
725
- serializedName: "properties.githubWorkflowProfile.oidcCredentials",
726
- type: {
727
- name: "Composite",
728
- className: "GitHubWorkflowProfileOidcCredentials"
729
- }
730
- }, aksResourceId: {
731
- serializedName: "properties.githubWorkflowProfile.aksResourceId",
732
- type: {
733
- name: "String"
734
- }
735
- }, prURL: {
736
- serializedName: "properties.githubWorkflowProfile.prURL",
737
- readOnly: true,
738
- type: {
739
- name: "String"
740
- }
741
- }, pullNumber: {
742
- serializedName: "properties.githubWorkflowProfile.pullNumber",
743
- readOnly: true,
744
- type: {
745
- name: "Number"
746
- }
747
- }, prStatus: {
748
- serializedName: "properties.githubWorkflowProfile.prStatus",
749
- readOnly: true,
750
- type: {
751
- name: "String"
752
- }
753
- }, lastWorkflowRun: {
754
- serializedName: "properties.githubWorkflowProfile.lastWorkflowRun",
755
- type: {
756
- name: "Composite",
757
- className: "WorkflowRun"
758
- }
759
- }, authStatus: {
760
- serializedName: "properties.githubWorkflowProfile.authStatus",
761
- type: {
762
- name: "String"
763
- }
764
- } })
765
- }
766
- };
767
-
768
- var Mappers = /*#__PURE__*/Object.freeze({
769
- __proto__: null,
770
- OperationListResult: OperationListResult,
771
- Operation: Operation,
772
- OperationDisplay: OperationDisplay,
773
- ErrorResponse: ErrorResponse,
774
- ErrorDetail: ErrorDetail,
775
- ErrorAdditionalInfo: ErrorAdditionalInfo,
776
- GitHubOAuthCallRequest: GitHubOAuthCallRequest,
777
- GitHubOAuthInfoResponse: GitHubOAuthInfoResponse,
778
- Resource: Resource,
779
- SystemData: SystemData,
780
- GitHubOAuthListResponse: GitHubOAuthListResponse,
781
- WorkflowListResult: WorkflowListResult,
782
- DeploymentProperties: DeploymentProperties,
783
- Acr: Acr,
784
- GitHubWorkflowProfileOidcCredentials: GitHubWorkflowProfileOidcCredentials,
785
- WorkflowRun: WorkflowRun,
786
- DeleteWorkflowResponse: DeleteWorkflowResponse,
787
- TagsObject: TagsObject,
788
- ProxyResource: ProxyResource,
789
- TrackedResource: TrackedResource,
790
- GitHubOAuthResponse: GitHubOAuthResponse,
791
- Workflow: Workflow
792
- });
793
-
794
- /*
795
- * Copyright (c) Microsoft Corporation.
796
- * Licensed under the MIT License.
797
- *
798
- * Code generated by Microsoft (R) AutoRest Code Generator.
799
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
800
- */
801
- const accept = {
802
- parameterPath: "accept",
803
- mapper: {
804
- defaultValue: "application/json",
805
- isConstant: true,
806
- serializedName: "Accept",
807
- type: {
808
- name: "String"
809
- }
810
- }
811
- };
812
- const $host = {
813
- parameterPath: "$host",
814
- mapper: {
815
- serializedName: "$host",
816
- required: true,
817
- type: {
818
- name: "String"
819
- }
820
- },
821
- skipEncoding: true
822
- };
823
- const apiVersion = {
824
- parameterPath: "apiVersion",
825
- mapper: {
826
- defaultValue: "2022-04-01-preview",
827
- isConstant: true,
828
- serializedName: "api-version",
829
- type: {
830
- name: "String"
831
- }
832
- }
833
- };
834
- const contentType = {
835
- parameterPath: ["options", "contentType"],
836
- mapper: {
837
- defaultValue: "application/json",
838
- isConstant: true,
839
- serializedName: "Content-Type",
840
- type: {
841
- name: "String"
842
- }
843
- }
844
- };
845
- const parameters = {
846
- parameterPath: ["options", "parameters"],
847
- mapper: GitHubOAuthCallRequest
848
- };
849
- const subscriptionId = {
850
- parameterPath: "subscriptionId",
851
- mapper: {
852
- constraints: {
853
- MinLength: 1
854
- },
855
- serializedName: "subscriptionId",
856
- required: true,
857
- type: {
858
- name: "String"
859
- }
860
- }
861
- };
862
- const location = {
863
- parameterPath: "location",
864
- mapper: {
865
- constraints: {
866
- MinLength: 1
867
- },
868
- serializedName: "location",
869
- required: true,
870
- type: {
871
- name: "String"
872
- }
873
- }
874
- };
875
- const code = {
876
- parameterPath: "code",
877
- mapper: {
878
- serializedName: "code",
879
- required: true,
880
- type: {
881
- name: "String"
882
- }
883
- }
884
- };
885
- const state = {
886
- parameterPath: "state",
887
- mapper: {
888
- serializedName: "state",
889
- required: true,
890
- type: {
891
- name: "String"
892
- }
893
- }
894
- };
895
- const resourceGroupName = {
896
- parameterPath: "resourceGroupName",
897
- mapper: {
898
- constraints: {
899
- MaxLength: 90,
900
- MinLength: 1
901
- },
902
- serializedName: "resourceGroupName",
903
- required: true,
904
- type: {
905
- name: "String"
906
- }
907
- }
908
- };
909
- const managedClusterResource = {
910
- parameterPath: ["options", "managedClusterResource"],
911
- mapper: {
912
- serializedName: "managedClusterResource",
913
- type: {
914
- name: "String"
915
- }
916
- }
917
- };
918
- const workflowName = {
919
- parameterPath: "workflowName",
920
- mapper: {
921
- constraints: {
922
- Pattern: new RegExp("^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$"),
923
- MaxLength: 63,
924
- MinLength: 1
925
- },
926
- serializedName: "workflowName",
927
- required: true,
928
- type: {
929
- name: "String"
930
- }
931
- }
932
- };
933
- const parameters1 = {
934
- parameterPath: "parameters",
935
- mapper: Workflow
936
- };
937
- const parameters2 = {
938
- parameterPath: "parameters",
939
- mapper: TagsObject
940
- };
941
- const nextLink = {
942
- parameterPath: "nextLink",
943
- mapper: {
944
- serializedName: "nextLink",
945
- required: true,
946
- type: {
947
- name: "String"
948
- }
949
- },
950
- skipEncoding: true
951
- };
952
-
953
- /*
954
- * Copyright (c) Microsoft Corporation.
955
- * Licensed under the MIT License.
956
- *
957
- * Code generated by Microsoft (R) AutoRest Code Generator.
958
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
959
- */
960
- /** Class containing Operations operations. */
961
- class OperationsImpl {
962
- /**
963
- * Initialize a new instance of the class Operations class.
964
- * @param client Reference to the service client
965
- */
966
- constructor(client) {
967
- this.client = client;
968
- }
969
- /**
970
- * Returns list of operations.
971
- * @param options The options parameters.
972
- */
973
- list(options) {
974
- return this.client.sendOperationRequest({ options }, listOperationSpec$1);
975
- }
976
- }
977
- // Operation Specifications
978
- const serializer$2 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
979
- const listOperationSpec$1 = {
980
- path: "/providers/Microsoft.DevHub/operations",
981
- httpMethod: "GET",
982
- responses: {
983
- 200: {
984
- bodyMapper: OperationListResult
985
- },
986
- default: {
987
- bodyMapper: ErrorResponse
988
- }
989
- },
990
- queryParameters: [apiVersion],
991
- urlParameters: [$host],
992
- headerParameters: [accept],
993
- serializer: serializer$2
994
- };
995
-
996
- /*
997
- * Copyright (c) Microsoft Corporation.
998
- * Licensed under the MIT License.
999
- *
1000
- * Code generated by Microsoft (R) AutoRest Code Generator.
1001
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1002
- */
1003
- /// <reference lib="esnext.asynciterable" />
1004
- /** Class containing WorkflowOperations operations. */
1005
- class WorkflowOperationsImpl {
1006
- /**
1007
- * Initialize a new instance of the class WorkflowOperations class.
1008
- * @param client Reference to the service client
1009
- */
1010
- constructor(client) {
1011
- this.client = client;
1012
- }
1013
- /**
1014
- * Gets a list of workflows associated with the specified subscription.
1015
- * @param options The options parameters.
1016
- */
1017
- list(options) {
1018
- const iter = this.listPagingAll(options);
1019
- return {
1020
- next() {
1021
- return iter.next();
1022
- },
1023
- [Symbol.asyncIterator]() {
1024
- return this;
1025
- },
1026
- byPage: (settings) => {
1027
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
1028
- throw new Error("maxPageSize is not supported by this operation.");
1029
- }
1030
- return this.listPagingPage(options, settings);
1031
- }
1032
- };
1033
- }
1034
- listPagingPage(options, settings) {
1035
- return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
1036
- let result;
1037
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
1038
- if (!continuationToken) {
1039
- result = yield tslib.__await(this._list(options));
1040
- let page = result.value || [];
1041
- continuationToken = result.nextLink;
1042
- setContinuationToken(page, continuationToken);
1043
- yield yield tslib.__await(page);
1044
- }
1045
- while (continuationToken) {
1046
- result = yield tslib.__await(this._listNext(continuationToken, options));
1047
- continuationToken = result.nextLink;
1048
- let page = result.value || [];
1049
- setContinuationToken(page, continuationToken);
1050
- yield yield tslib.__await(page);
1051
- }
1052
- });
1053
- }
1054
- listPagingAll(options) {
1055
- return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
1056
- var e_1, _a;
1057
- try {
1058
- for (var _b = tslib.__asyncValues(this.listPagingPage(options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
1059
- const page = _c.value;
1060
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
1061
- }
1062
- }
1063
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
1064
- finally {
1065
- try {
1066
- if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
1067
- }
1068
- finally { if (e_1) throw e_1.error; }
1069
- }
1070
- });
1071
- }
1072
- /**
1073
- * Gets a list of workflows within a resource group.
1074
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1075
- * @param options The options parameters.
1076
- */
1077
- listByResourceGroup(resourceGroupName, options) {
1078
- const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
1079
- return {
1080
- next() {
1081
- return iter.next();
1082
- },
1083
- [Symbol.asyncIterator]() {
1084
- return this;
1085
- },
1086
- byPage: (settings) => {
1087
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
1088
- throw new Error("maxPageSize is not supported by this operation.");
1089
- }
1090
- return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
1091
- }
1092
- };
1093
- }
1094
- listByResourceGroupPagingPage(resourceGroupName, options, settings) {
1095
- return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
1096
- let result;
1097
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
1098
- if (!continuationToken) {
1099
- result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
1100
- let page = result.value || [];
1101
- continuationToken = result.nextLink;
1102
- setContinuationToken(page, continuationToken);
1103
- yield yield tslib.__await(page);
1104
- }
1105
- while (continuationToken) {
1106
- result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
1107
- continuationToken = result.nextLink;
1108
- let page = result.value || [];
1109
- setContinuationToken(page, continuationToken);
1110
- yield yield tslib.__await(page);
1111
- }
1112
- });
1113
- }
1114
- listByResourceGroupPagingAll(resourceGroupName, options) {
1115
- return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
1116
- var e_2, _a;
1117
- try {
1118
- for (var _b = tslib.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
1119
- const page = _c.value;
1120
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
1121
- }
1122
- }
1123
- catch (e_2_1) { e_2 = { error: e_2_1 }; }
1124
- finally {
1125
- try {
1126
- if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
1127
- }
1128
- finally { if (e_2) throw e_2.error; }
1129
- }
1130
- });
1131
- }
1132
- /**
1133
- * Gets a list of workflows associated with the specified subscription.
1134
- * @param options The options parameters.
1135
- */
1136
- _list(options) {
1137
- return this.client.sendOperationRequest({ options }, listOperationSpec);
1138
- }
1139
- /**
1140
- * Gets a list of workflows within a resource group.
1141
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1142
- * @param options The options parameters.
1143
- */
1144
- _listByResourceGroup(resourceGroupName, options) {
1145
- return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
1146
- }
1147
- /**
1148
- * Gets a workflow.
1149
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1150
- * @param workflowName The name of the workflow resource.
1151
- * @param options The options parameters.
1152
- */
1153
- get(resourceGroupName, workflowName, options) {
1154
- return this.client.sendOperationRequest({ resourceGroupName, workflowName, options }, getOperationSpec);
1155
- }
1156
- /**
1157
- * Creates or updates a workflow
1158
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1159
- * @param workflowName The name of the workflow resource.
1160
- * @param parameters Resource representation of a workflow
1161
- * @param options The options parameters.
1162
- */
1163
- createOrUpdate(resourceGroupName, workflowName, parameters, options) {
1164
- return this.client.sendOperationRequest({ resourceGroupName, workflowName, parameters, options }, createOrUpdateOperationSpec);
1165
- }
1166
- /**
1167
- * Deletes a workflow
1168
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1169
- * @param workflowName The name of the workflow resource.
1170
- * @param options The options parameters.
1171
- */
1172
- delete(resourceGroupName, workflowName, options) {
1173
- return this.client.sendOperationRequest({ resourceGroupName, workflowName, options }, deleteOperationSpec);
1174
- }
1175
- /**
1176
- * Updates tags on a workflow.
1177
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1178
- * @param workflowName The name of the workflow resource.
1179
- * @param parameters Parameters supplied to the Update Workflow Tags operation.
1180
- * @param options The options parameters.
1181
- */
1182
- updateTags(resourceGroupName, workflowName, parameters, options) {
1183
- return this.client.sendOperationRequest({ resourceGroupName, workflowName, parameters, options }, updateTagsOperationSpec);
1184
- }
1185
- /**
1186
- * ListNext
1187
- * @param nextLink The nextLink from the previous successful call to the List method.
1188
- * @param options The options parameters.
1189
- */
1190
- _listNext(nextLink, options) {
1191
- return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
1192
- }
1193
- /**
1194
- * ListByResourceGroupNext
1195
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1196
- * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
1197
- * @param options The options parameters.
1198
- */
1199
- _listByResourceGroupNext(resourceGroupName, nextLink, options) {
1200
- return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
1201
- }
1202
- }
1203
- // Operation Specifications
1204
- const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
1205
- const listOperationSpec = {
1206
- path: "/subscriptions/{subscriptionId}/providers/Microsoft.DevHub/workflows",
1207
- httpMethod: "GET",
1208
- responses: {
1209
- 200: {
1210
- bodyMapper: WorkflowListResult
1211
- },
1212
- default: {
1213
- bodyMapper: ErrorResponse
1214
- }
1215
- },
1216
- queryParameters: [apiVersion],
1217
- urlParameters: [$host, subscriptionId],
1218
- headerParameters: [accept],
1219
- serializer: serializer$1
1220
- };
1221
- const listByResourceGroupOperationSpec = {
1222
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevHub/workflows",
1223
- httpMethod: "GET",
1224
- responses: {
1225
- 200: {
1226
- bodyMapper: WorkflowListResult
1227
- },
1228
- default: {
1229
- bodyMapper: ErrorResponse
1230
- }
1231
- },
1232
- queryParameters: [apiVersion, managedClusterResource],
1233
- urlParameters: [
1234
- $host,
1235
- subscriptionId,
1236
- resourceGroupName
1237
- ],
1238
- headerParameters: [accept],
1239
- serializer: serializer$1
1240
- };
1241
- const getOperationSpec = {
1242
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevHub/workflows/{workflowName}",
1243
- httpMethod: "GET",
1244
- responses: {
1245
- 200: {
1246
- bodyMapper: Workflow
1247
- },
1248
- default: {
1249
- bodyMapper: ErrorResponse
1250
- }
1251
- },
1252
- queryParameters: [apiVersion],
1253
- urlParameters: [
1254
- $host,
1255
- subscriptionId,
1256
- resourceGroupName,
1257
- workflowName
1258
- ],
1259
- headerParameters: [accept],
1260
- serializer: serializer$1
1261
- };
1262
- const createOrUpdateOperationSpec = {
1263
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevHub/workflows/{workflowName}",
1264
- httpMethod: "PUT",
1265
- responses: {
1266
- 200: {
1267
- bodyMapper: Workflow
1268
- },
1269
- 201: {
1270
- bodyMapper: Workflow
1271
- },
1272
- default: {
1273
- bodyMapper: ErrorResponse
1274
- }
1275
- },
1276
- requestBody: parameters1,
1277
- queryParameters: [apiVersion],
1278
- urlParameters: [
1279
- $host,
1280
- subscriptionId,
1281
- resourceGroupName,
1282
- workflowName
1283
- ],
1284
- headerParameters: [accept, contentType],
1285
- mediaType: "json",
1286
- serializer: serializer$1
1287
- };
1288
- const deleteOperationSpec = {
1289
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevHub/workflows/{workflowName}",
1290
- httpMethod: "DELETE",
1291
- responses: {
1292
- 200: {
1293
- bodyMapper: DeleteWorkflowResponse
1294
- },
1295
- 204: {},
1296
- default: {
1297
- bodyMapper: ErrorResponse
1298
- }
1299
- },
1300
- queryParameters: [apiVersion],
1301
- urlParameters: [
1302
- $host,
1303
- subscriptionId,
1304
- resourceGroupName,
1305
- workflowName
1306
- ],
1307
- headerParameters: [accept],
1308
- serializer: serializer$1
1309
- };
1310
- const updateTagsOperationSpec = {
1311
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevHub/workflows/{workflowName}",
1312
- httpMethod: "PATCH",
1313
- responses: {
1314
- 200: {
1315
- bodyMapper: Workflow
1316
- },
1317
- default: {
1318
- bodyMapper: ErrorResponse
1319
- }
1320
- },
1321
- requestBody: parameters2,
1322
- queryParameters: [apiVersion],
1323
- urlParameters: [
1324
- $host,
1325
- subscriptionId,
1326
- resourceGroupName,
1327
- workflowName
1328
- ],
1329
- headerParameters: [accept, contentType],
1330
- mediaType: "json",
1331
- serializer: serializer$1
1332
- };
1333
- const listNextOperationSpec = {
1334
- path: "{nextLink}",
1335
- httpMethod: "GET",
1336
- responses: {
1337
- 200: {
1338
- bodyMapper: WorkflowListResult
1339
- },
1340
- default: {
1341
- bodyMapper: ErrorResponse
1342
- }
1343
- },
1344
- urlParameters: [
1345
- $host,
1346
- subscriptionId,
1347
- nextLink
1348
- ],
1349
- headerParameters: [accept],
1350
- serializer: serializer$1
1351
- };
1352
- const listByResourceGroupNextOperationSpec = {
1353
- path: "{nextLink}",
1354
- httpMethod: "GET",
1355
- responses: {
1356
- 200: {
1357
- bodyMapper: WorkflowListResult
1358
- },
1359
- default: {
1360
- bodyMapper: ErrorResponse
1361
- }
1362
- },
1363
- urlParameters: [
1364
- $host,
1365
- subscriptionId,
1366
- resourceGroupName,
1367
- nextLink
1368
- ],
1369
- headerParameters: [accept],
1370
- serializer: serializer$1
1371
- };
1372
-
1373
- /*
1374
- * Copyright (c) Microsoft Corporation.
1375
- * Licensed under the MIT License.
1376
- *
1377
- * Code generated by Microsoft (R) AutoRest Code Generator.
1378
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1379
- */
1380
- class DeveloperHubServiceClient extends coreClient__namespace.ServiceClient {
1381
- /**
1382
- * Initializes a new instance of the DeveloperHubServiceClient class.
1383
- * @param credentials Subscription credentials which uniquely identify client subscription.
1384
- * @param subscriptionId The ID of the target subscription.
1385
- * @param options The parameter options
1386
- */
1387
- constructor(credentials, subscriptionId, options) {
1388
- var _a, _b, _c;
1389
- if (credentials === undefined) {
1390
- throw new Error("'credentials' cannot be null");
1391
- }
1392
- if (subscriptionId === undefined) {
1393
- throw new Error("'subscriptionId' cannot be null");
1394
- }
1395
- // Initializing default values for options
1396
- if (!options) {
1397
- options = {};
1398
- }
1399
- const defaults = {
1400
- requestContentType: "application/json; charset=utf-8",
1401
- credential: credentials
1402
- };
1403
- const packageDetails = `azsdk-js-arm-devhub/1.0.0-beta.2`;
1404
- const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
1405
- ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
1406
- : `${packageDetails}`;
1407
- const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
1408
- userAgentPrefix
1409
- }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
1410
- super(optionsWithDefaults);
1411
- let bearerTokenAuthenticationPolicyFound = false;
1412
- if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
1413
- const pipelinePolicies = options.pipeline.getOrderedPolicies();
1414
- bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
1415
- coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
1416
- }
1417
- if (!options ||
1418
- !options.pipeline ||
1419
- options.pipeline.getOrderedPolicies().length == 0 ||
1420
- !bearerTokenAuthenticationPolicyFound) {
1421
- this.pipeline.removePolicy({
1422
- name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName
1423
- });
1424
- this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
1425
- credential: credentials,
1426
- scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
1427
- challengeCallbacks: {
1428
- authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
1429
- }
1430
- }));
1431
- }
1432
- // Parameter assignments
1433
- this.subscriptionId = subscriptionId;
1434
- // Assigning values to Constant parameters
1435
- this.$host = options.$host || "https://management.azure.com";
1436
- this.apiVersion = options.apiVersion || "2022-04-01-preview";
1437
- this.operations = new OperationsImpl(this);
1438
- this.workflowOperations = new WorkflowOperationsImpl(this);
1439
- this.addCustomApiVersionPolicy(options.apiVersion);
1440
- }
1441
- /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
1442
- addCustomApiVersionPolicy(apiVersion) {
1443
- if (!apiVersion) {
1444
- return;
1445
- }
1446
- const apiVersionPolicy = {
1447
- name: "CustomApiVersionPolicy",
1448
- sendRequest(request, next) {
1449
- return tslib.__awaiter(this, void 0, void 0, function* () {
1450
- const param = request.url.split("?");
1451
- if (param.length > 1) {
1452
- const newParams = param[1].split("&").map((item) => {
1453
- if (item.indexOf("api-version") > -1) {
1454
- return "api-version=" + apiVersion;
1455
- }
1456
- else {
1457
- return item;
1458
- }
1459
- });
1460
- request.url = param[0] + "?" + newParams.join("&");
1461
- }
1462
- return next(request);
1463
- });
1464
- }
1465
- };
1466
- this.pipeline.addPolicy(apiVersionPolicy);
1467
- }
1468
- /**
1469
- * Gets GitHubOAuth info used to authenticate users with the Developer Hub GitHub App.
1470
- * @param location The name of Azure region.
1471
- * @param options The options parameters.
1472
- */
1473
- gitHubOAuth(location, options) {
1474
- return this.sendOperationRequest({ location, options }, gitHubOAuthOperationSpec);
1475
- }
1476
- /**
1477
- * Callback URL to hit once authenticated with GitHub App to have the service store the OAuth token.
1478
- * @param location The name of Azure region.
1479
- * @param code The code response from authenticating the GitHub App.
1480
- * @param state The state response from authenticating the GitHub App.
1481
- * @param options The options parameters.
1482
- */
1483
- gitHubOAuthCallback(location, code, state, options) {
1484
- return this.sendOperationRequest({ location, code, state, options }, gitHubOAuthCallbackOperationSpec);
1485
- }
1486
- /**
1487
- * Callback URL to hit once authenticated with GitHub App to have the service store the OAuth token.
1488
- * @param location The name of Azure region.
1489
- * @param options The options parameters.
1490
- */
1491
- listGitHubOAuth(location, options) {
1492
- return this.sendOperationRequest({ location, options }, listGitHubOAuthOperationSpec);
1493
- }
1494
- }
1495
- // Operation Specifications
1496
- const serializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
1497
- const gitHubOAuthOperationSpec = {
1498
- path: "/subscriptions/{subscriptionId}/providers/Microsoft.DevHub/locations/{location}/githuboauth/default/getGitHubOAuthInfo",
1499
- httpMethod: "POST",
1500
- responses: {
1501
- 200: {
1502
- bodyMapper: GitHubOAuthInfoResponse
1503
- },
1504
- default: {
1505
- bodyMapper: ErrorResponse
1506
- }
1507
- },
1508
- requestBody: parameters,
1509
- queryParameters: [apiVersion],
1510
- urlParameters: [
1511
- $host,
1512
- subscriptionId,
1513
- location
1514
- ],
1515
- headerParameters: [accept, contentType],
1516
- mediaType: "json",
1517
- serializer
1518
- };
1519
- const gitHubOAuthCallbackOperationSpec = {
1520
- path: "/subscriptions/{subscriptionId}/providers/Microsoft.DevHub/locations/{location}/githuboauth/default",
1521
- httpMethod: "GET",
1522
- responses: {
1523
- 200: {
1524
- bodyMapper: GitHubOAuthResponse
1525
- },
1526
- default: {
1527
- bodyMapper: ErrorResponse
1528
- }
1529
- },
1530
- queryParameters: [apiVersion, code, state],
1531
- urlParameters: [
1532
- $host,
1533
- subscriptionId,
1534
- location
1535
- ],
1536
- headerParameters: [accept],
1537
- serializer
1538
- };
1539
- const listGitHubOAuthOperationSpec = {
1540
- path: "/subscriptions/{subscriptionId}/providers/Microsoft.DevHub/locations/{location}/githuboauth",
1541
- httpMethod: "GET",
1542
- responses: {
1543
- 200: {
1544
- bodyMapper: GitHubOAuthListResponse
1545
- },
1546
- default: {
1547
- bodyMapper: ErrorResponse
1548
- }
1549
- },
1550
- queryParameters: [apiVersion],
1551
- urlParameters: [
1552
- $host,
1553
- subscriptionId,
1554
- location
1555
- ],
1556
- headerParameters: [accept],
1557
- serializer
1558
- };
1559
-
1560
- exports.DeveloperHubServiceClient = DeveloperHubServiceClient;
1561
- exports.getContinuationToken = getContinuationToken;
1562
- //# sourceMappingURL=index.js.map