@azure/arm-visualstudio 4.0.0-beta.2 → 4.0.0-beta.3

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 (389) hide show
  1. package/CHANGELOG.md +12 -2
  2. package/LICENSE +4 -4
  3. package/README.md +27 -18
  4. package/dist/browser/index.d.ts +4 -0
  5. package/dist/browser/index.d.ts.map +1 -0
  6. package/{dist-esm/src → dist/browser}/index.js +3 -3
  7. package/dist/browser/index.js.map +1 -0
  8. package/{dist-esm/src → dist/browser}/lroImpl.js +13 -9
  9. package/dist/browser/lroImpl.js.map +1 -0
  10. package/{dist-esm/src → dist/browser}/models/index.d.ts +16 -16
  11. package/{dist-esm/src → dist/browser}/models/index.d.ts.map +1 -1
  12. package/dist/browser/models/index.js.map +1 -0
  13. package/{dist-esm/src → dist/browser}/models/mappers.js +17 -7
  14. package/dist/browser/models/mappers.js.map +1 -0
  15. package/{dist-esm/src → dist/browser}/models/parameters.js +1 -1
  16. package/dist/browser/models/parameters.js.map +1 -0
  17. package/{dist-esm/src → dist/browser}/operations/accounts.d.ts +3 -3
  18. package/dist/browser/operations/accounts.d.ts.map +1 -0
  19. package/{dist-esm/src → dist/browser}/operations/accounts.js +3 -2
  20. package/dist/browser/operations/accounts.js.map +1 -0
  21. package/{dist-esm/src → dist/browser}/operations/extensions.d.ts +3 -3
  22. package/dist/browser/operations/extensions.d.ts.map +1 -0
  23. package/{dist-esm/src → dist/browser}/operations/extensions.js +3 -2
  24. package/dist/browser/operations/extensions.js.map +1 -0
  25. package/dist/browser/operations/index.d.ts +5 -0
  26. package/{dist-esm/src → dist/browser}/operations/index.d.ts.map +1 -1
  27. package/{dist-esm/src/operationsInterfaces → dist/browser/operations}/index.js +4 -4
  28. package/dist/browser/operations/index.js.map +1 -0
  29. package/{dist-esm/src → dist/browser}/operations/operations.d.ts +3 -3
  30. package/dist/browser/operations/operations.d.ts.map +1 -0
  31. package/{dist-esm/src → dist/browser}/operations/operations.js +3 -2
  32. package/dist/browser/operations/operations.js.map +1 -0
  33. package/{dist-esm/src → dist/browser}/operations/projects.d.ts +3 -3
  34. package/dist/browser/operations/projects.d.ts.map +1 -0
  35. package/{dist-esm/src → dist/browser}/operations/projects.js +41 -40
  36. package/dist/browser/operations/projects.js.map +1 -0
  37. package/{dist-esm/src → dist/browser}/operationsInterfaces/accounts.d.ts +1 -1
  38. package/dist/browser/operationsInterfaces/accounts.d.ts.map +1 -0
  39. package/dist/browser/operationsInterfaces/accounts.js.map +1 -0
  40. package/{dist-esm/src → dist/browser}/operationsInterfaces/extensions.d.ts +1 -1
  41. package/dist/browser/operationsInterfaces/extensions.d.ts.map +1 -0
  42. package/dist/browser/operationsInterfaces/extensions.js.map +1 -0
  43. package/dist/browser/operationsInterfaces/index.d.ts +5 -0
  44. package/{dist-esm/src → dist/browser}/operationsInterfaces/index.d.ts.map +1 -1
  45. package/{dist-esm/src/operations → dist/browser/operationsInterfaces}/index.js +4 -4
  46. package/dist/browser/operationsInterfaces/index.js.map +1 -0
  47. package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.d.ts +1 -1
  48. package/dist/browser/operationsInterfaces/operations.d.ts.map +1 -0
  49. package/dist/browser/operationsInterfaces/operations.js.map +1 -0
  50. package/{dist-esm/src → dist/browser}/operationsInterfaces/projects.d.ts +1 -1
  51. package/dist/browser/operationsInterfaces/projects.d.ts.map +1 -0
  52. package/dist/browser/operationsInterfaces/projects.js.map +1 -0
  53. package/dist/browser/package.json +3 -0
  54. package/{dist-esm/src → dist/browser}/visualStudioResourceProviderClient.d.ts +2 -2
  55. package/dist/browser/visualStudioResourceProviderClient.d.ts.map +1 -0
  56. package/{dist-esm/src → dist/browser}/visualStudioResourceProviderClient.js +33 -24
  57. package/dist/browser/visualStudioResourceProviderClient.js.map +1 -0
  58. package/dist/commonjs/index.d.ts +4 -0
  59. package/dist/commonjs/index.d.ts.map +1 -0
  60. package/dist/commonjs/index.js +16 -0
  61. package/dist/commonjs/index.js.map +1 -0
  62. package/dist/commonjs/lroImpl.d.ts +16 -0
  63. package/dist/commonjs/lroImpl.d.ts.map +1 -0
  64. package/dist/commonjs/lroImpl.js +37 -0
  65. package/dist/commonjs/lroImpl.js.map +1 -0
  66. package/dist/commonjs/models/index.d.ts +253 -0
  67. package/dist/commonjs/models/index.d.ts.map +1 -0
  68. package/dist/commonjs/models/index.js +10 -0
  69. package/dist/commonjs/models/index.js.map +1 -0
  70. package/dist/commonjs/models/mappers.d.ts +18 -0
  71. package/dist/commonjs/models/mappers.d.ts.map +1 -0
  72. package/dist/commonjs/models/mappers.js +410 -0
  73. package/dist/commonjs/models/mappers.js.map +1 -0
  74. package/dist/commonjs/models/parameters.d.ts +21 -0
  75. package/dist/commonjs/models/parameters.d.ts.map +1 -0
  76. package/dist/commonjs/models/parameters.js +174 -0
  77. package/dist/commonjs/models/parameters.js.map +1 -0
  78. package/dist/commonjs/operations/accounts.d.ts +57 -0
  79. package/dist/commonjs/operations/accounts.d.ts.map +1 -0
  80. package/dist/commonjs/operations/accounts.js +191 -0
  81. package/dist/commonjs/operations/accounts.js.map +1 -0
  82. package/dist/commonjs/operations/extensions.d.ts +54 -0
  83. package/dist/commonjs/operations/extensions.d.ts.map +1 -0
  84. package/dist/commonjs/operations/extensions.js +196 -0
  85. package/dist/commonjs/operations/extensions.js.map +1 -0
  86. package/dist/commonjs/operations/index.d.ts +5 -0
  87. package/dist/commonjs/operations/index.d.ts.map +1 -0
  88. package/dist/commonjs/operations/index.js +15 -0
  89. package/dist/commonjs/operations/index.js.map +1 -0
  90. package/dist/commonjs/operations/operations.d.ts +18 -0
  91. package/dist/commonjs/operations/operations.d.ts.map +1 -0
  92. package/dist/commonjs/operations/operations.js +48 -0
  93. package/dist/commonjs/operations/operations.js.map +1 -0
  94. package/dist/commonjs/operations/projects.d.ts +77 -0
  95. package/dist/commonjs/operations/projects.d.ts.map +1 -0
  96. package/dist/commonjs/operations/projects.js +261 -0
  97. package/dist/commonjs/operations/projects.js.map +1 -0
  98. package/dist/commonjs/operationsInterfaces/accounts.d.ts +49 -0
  99. package/dist/commonjs/operationsInterfaces/accounts.d.ts.map +1 -0
  100. package/dist/commonjs/operationsInterfaces/accounts.js +10 -0
  101. package/dist/commonjs/operationsInterfaces/accounts.js.map +1 -0
  102. package/dist/commonjs/operationsInterfaces/extensions.d.ts +46 -0
  103. package/dist/commonjs/operationsInterfaces/extensions.d.ts.map +1 -0
  104. package/dist/commonjs/operationsInterfaces/extensions.js +10 -0
  105. package/dist/commonjs/operationsInterfaces/extensions.js.map +1 -0
  106. package/dist/commonjs/operationsInterfaces/index.d.ts +5 -0
  107. package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -0
  108. package/dist/commonjs/operationsInterfaces/index.js +15 -0
  109. package/dist/commonjs/operationsInterfaces/index.js.map +1 -0
  110. package/dist/commonjs/operationsInterfaces/operations.d.ts +10 -0
  111. package/dist/commonjs/operationsInterfaces/operations.d.ts.map +1 -0
  112. package/dist/commonjs/operationsInterfaces/operations.js +10 -0
  113. package/dist/commonjs/operationsInterfaces/operations.js.map +1 -0
  114. package/dist/commonjs/operationsInterfaces/projects.d.ts +69 -0
  115. package/dist/commonjs/operationsInterfaces/projects.d.ts.map +1 -0
  116. package/dist/commonjs/operationsInterfaces/projects.js +10 -0
  117. package/dist/commonjs/operationsInterfaces/projects.js.map +1 -0
  118. package/dist/commonjs/package.json +3 -0
  119. package/{types → dist/commonjs}/tsdoc-metadata.json +11 -11
  120. package/dist/commonjs/visualStudioResourceProviderClient.d.ts +23 -0
  121. package/dist/commonjs/visualStudioResourceProviderClient.d.ts.map +1 -0
  122. package/dist/commonjs/visualStudioResourceProviderClient.js +117 -0
  123. package/dist/commonjs/visualStudioResourceProviderClient.js.map +1 -0
  124. package/dist/esm/index.d.ts +4 -0
  125. package/dist/esm/index.d.ts.map +1 -0
  126. package/{src/index.ts → dist/esm/index.js} +4 -4
  127. package/dist/esm/index.js.map +1 -0
  128. package/dist/esm/lroImpl.d.ts +16 -0
  129. package/dist/esm/lroImpl.d.ts.map +1 -0
  130. package/dist/esm/lroImpl.js +33 -0
  131. package/dist/esm/lroImpl.js.map +1 -0
  132. package/dist/esm/models/index.d.ts +253 -0
  133. package/dist/esm/models/index.d.ts.map +1 -0
  134. package/dist/esm/models/index.js +9 -0
  135. package/dist/esm/models/index.js.map +1 -0
  136. package/dist/esm/models/mappers.d.ts +18 -0
  137. package/dist/esm/models/mappers.d.ts.map +1 -0
  138. package/dist/esm/models/mappers.js +407 -0
  139. package/dist/esm/models/mappers.js.map +1 -0
  140. package/dist/esm/models/parameters.d.ts +21 -0
  141. package/dist/esm/models/parameters.d.ts.map +1 -0
  142. package/dist/esm/models/parameters.js +171 -0
  143. package/dist/esm/models/parameters.js.map +1 -0
  144. package/dist/esm/operations/accounts.d.ts +57 -0
  145. package/dist/esm/operations/accounts.d.ts.map +1 -0
  146. package/dist/esm/operations/accounts.js +186 -0
  147. package/dist/esm/operations/accounts.js.map +1 -0
  148. package/dist/esm/operations/extensions.d.ts +54 -0
  149. package/dist/esm/operations/extensions.d.ts.map +1 -0
  150. package/dist/esm/operations/extensions.js +191 -0
  151. package/dist/esm/operations/extensions.js.map +1 -0
  152. package/dist/esm/operations/index.d.ts +5 -0
  153. package/dist/esm/operations/index.d.ts.map +1 -0
  154. package/dist/esm/operations/index.js +12 -0
  155. package/dist/esm/operations/index.js.map +1 -0
  156. package/dist/esm/operations/operations.d.ts +18 -0
  157. package/dist/esm/operations/operations.d.ts.map +1 -0
  158. package/dist/esm/operations/operations.js +43 -0
  159. package/dist/esm/operations/operations.js.map +1 -0
  160. package/dist/esm/operations/projects.d.ts +77 -0
  161. package/dist/esm/operations/projects.d.ts.map +1 -0
  162. package/dist/esm/operations/projects.js +256 -0
  163. package/dist/esm/operations/projects.js.map +1 -0
  164. package/dist/esm/operationsInterfaces/accounts.d.ts +49 -0
  165. package/dist/esm/operationsInterfaces/accounts.d.ts.map +1 -0
  166. package/dist/esm/operationsInterfaces/accounts.js +9 -0
  167. package/dist/esm/operationsInterfaces/accounts.js.map +1 -0
  168. package/dist/esm/operationsInterfaces/extensions.d.ts +46 -0
  169. package/dist/esm/operationsInterfaces/extensions.d.ts.map +1 -0
  170. package/dist/esm/operationsInterfaces/extensions.js +9 -0
  171. package/dist/esm/operationsInterfaces/extensions.js.map +1 -0
  172. package/dist/esm/operationsInterfaces/index.d.ts +5 -0
  173. package/dist/esm/operationsInterfaces/index.d.ts.map +1 -0
  174. package/dist/esm/operationsInterfaces/index.js +12 -0
  175. package/dist/esm/operationsInterfaces/index.js.map +1 -0
  176. package/dist/esm/operationsInterfaces/operations.d.ts +10 -0
  177. package/dist/esm/operationsInterfaces/operations.d.ts.map +1 -0
  178. package/dist/esm/operationsInterfaces/operations.js +9 -0
  179. package/dist/esm/operationsInterfaces/operations.js.map +1 -0
  180. package/dist/esm/operationsInterfaces/projects.d.ts +69 -0
  181. package/dist/esm/operationsInterfaces/projects.d.ts.map +1 -0
  182. package/dist/esm/operationsInterfaces/projects.js +9 -0
  183. package/dist/esm/operationsInterfaces/projects.js.map +1 -0
  184. package/dist/esm/package.json +3 -0
  185. package/dist/esm/visualStudioResourceProviderClient.d.ts +23 -0
  186. package/dist/esm/visualStudioResourceProviderClient.d.ts.map +1 -0
  187. package/dist/esm/visualStudioResourceProviderClient.js +112 -0
  188. package/dist/esm/visualStudioResourceProviderClient.js.map +1 -0
  189. package/dist/react-native/index.d.ts +4 -0
  190. package/dist/react-native/index.d.ts.map +1 -0
  191. package/dist/react-native/index.js +11 -0
  192. package/dist/react-native/index.js.map +1 -0
  193. package/dist/react-native/lroImpl.d.ts +16 -0
  194. package/dist/react-native/lroImpl.d.ts.map +1 -0
  195. package/dist/react-native/lroImpl.js +33 -0
  196. package/dist/react-native/lroImpl.js.map +1 -0
  197. package/dist/react-native/models/index.d.ts +253 -0
  198. package/dist/react-native/models/index.d.ts.map +1 -0
  199. package/dist/react-native/models/index.js +9 -0
  200. package/dist/react-native/models/index.js.map +1 -0
  201. package/dist/react-native/models/mappers.d.ts +18 -0
  202. package/dist/react-native/models/mappers.d.ts.map +1 -0
  203. package/dist/react-native/models/mappers.js +407 -0
  204. package/dist/react-native/models/mappers.js.map +1 -0
  205. package/dist/react-native/models/parameters.d.ts +21 -0
  206. package/dist/react-native/models/parameters.d.ts.map +1 -0
  207. package/dist/react-native/models/parameters.js +171 -0
  208. package/dist/react-native/models/parameters.js.map +1 -0
  209. package/dist/react-native/operations/accounts.d.ts +57 -0
  210. package/dist/react-native/operations/accounts.d.ts.map +1 -0
  211. package/dist/react-native/operations/accounts.js +186 -0
  212. package/dist/react-native/operations/accounts.js.map +1 -0
  213. package/dist/react-native/operations/extensions.d.ts +54 -0
  214. package/dist/react-native/operations/extensions.d.ts.map +1 -0
  215. package/dist/react-native/operations/extensions.js +191 -0
  216. package/dist/react-native/operations/extensions.js.map +1 -0
  217. package/dist/react-native/operations/index.d.ts +5 -0
  218. package/dist/react-native/operations/index.d.ts.map +1 -0
  219. package/dist/react-native/operations/index.js +12 -0
  220. package/dist/react-native/operations/index.js.map +1 -0
  221. package/dist/react-native/operations/operations.d.ts +18 -0
  222. package/dist/react-native/operations/operations.d.ts.map +1 -0
  223. package/dist/react-native/operations/operations.js +43 -0
  224. package/dist/react-native/operations/operations.js.map +1 -0
  225. package/dist/react-native/operations/projects.d.ts +77 -0
  226. package/dist/react-native/operations/projects.d.ts.map +1 -0
  227. package/dist/react-native/operations/projects.js +256 -0
  228. package/dist/react-native/operations/projects.js.map +1 -0
  229. package/dist/react-native/operationsInterfaces/accounts.d.ts +49 -0
  230. package/dist/react-native/operationsInterfaces/accounts.d.ts.map +1 -0
  231. package/dist/react-native/operationsInterfaces/accounts.js +9 -0
  232. package/dist/react-native/operationsInterfaces/accounts.js.map +1 -0
  233. package/dist/react-native/operationsInterfaces/extensions.d.ts +46 -0
  234. package/dist/react-native/operationsInterfaces/extensions.d.ts.map +1 -0
  235. package/dist/react-native/operationsInterfaces/extensions.js +9 -0
  236. package/dist/react-native/operationsInterfaces/extensions.js.map +1 -0
  237. package/dist/react-native/operationsInterfaces/index.d.ts +5 -0
  238. package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -0
  239. package/dist/react-native/operationsInterfaces/index.js +12 -0
  240. package/dist/react-native/operationsInterfaces/index.js.map +1 -0
  241. package/dist/react-native/operationsInterfaces/operations.d.ts +10 -0
  242. package/dist/react-native/operationsInterfaces/operations.d.ts.map +1 -0
  243. package/dist/react-native/operationsInterfaces/operations.js +9 -0
  244. package/dist/react-native/operationsInterfaces/operations.js.map +1 -0
  245. package/dist/react-native/operationsInterfaces/projects.d.ts +69 -0
  246. package/dist/react-native/operationsInterfaces/projects.d.ts.map +1 -0
  247. package/dist/react-native/operationsInterfaces/projects.js +9 -0
  248. package/dist/react-native/operationsInterfaces/projects.js.map +1 -0
  249. package/dist/react-native/package.json +3 -0
  250. package/dist/react-native/visualStudioResourceProviderClient.d.ts +23 -0
  251. package/dist/react-native/visualStudioResourceProviderClient.d.ts.map +1 -0
  252. package/dist/react-native/visualStudioResourceProviderClient.js +112 -0
  253. package/dist/react-native/visualStudioResourceProviderClient.js.map +1 -0
  254. package/package.json +85 -76
  255. package/dist/index.js +0 -1403
  256. package/dist/index.js.map +0 -1
  257. package/dist/index.min.js +0 -1
  258. package/dist/index.min.js.map +0 -1
  259. package/dist-esm/samples-dev/accountsCheckNameAvailabilitySample.d.ts +0 -2
  260. package/dist-esm/samples-dev/accountsCheckNameAvailabilitySample.d.ts.map +0 -1
  261. package/dist-esm/samples-dev/accountsCheckNameAvailabilitySample.js +0 -33
  262. package/dist-esm/samples-dev/accountsCheckNameAvailabilitySample.js.map +0 -1
  263. package/dist-esm/samples-dev/accountsCreateOrUpdateSample.d.ts +0 -2
  264. package/dist-esm/samples-dev/accountsCreateOrUpdateSample.d.ts.map +0 -1
  265. package/dist-esm/samples-dev/accountsCreateOrUpdateSample.js +0 -38
  266. package/dist-esm/samples-dev/accountsCreateOrUpdateSample.js.map +0 -1
  267. package/dist-esm/samples-dev/accountsDeleteSample.d.ts +0 -2
  268. package/dist-esm/samples-dev/accountsDeleteSample.d.ts.map +0 -1
  269. package/dist-esm/samples-dev/accountsDeleteSample.js +0 -31
  270. package/dist-esm/samples-dev/accountsDeleteSample.js.map +0 -1
  271. package/dist-esm/samples-dev/accountsGetSample.d.ts +0 -2
  272. package/dist-esm/samples-dev/accountsGetSample.d.ts.map +0 -1
  273. package/dist-esm/samples-dev/accountsGetSample.js +0 -31
  274. package/dist-esm/samples-dev/accountsGetSample.js.map +0 -1
  275. package/dist-esm/samples-dev/accountsListByResourceGroupSample.d.ts +0 -2
  276. package/dist-esm/samples-dev/accountsListByResourceGroupSample.d.ts.map +0 -1
  277. package/dist-esm/samples-dev/accountsListByResourceGroupSample.js +0 -30
  278. package/dist-esm/samples-dev/accountsListByResourceGroupSample.js.map +0 -1
  279. package/dist-esm/samples-dev/accountsUpdateSample.d.ts +0 -2
  280. package/dist-esm/samples-dev/accountsUpdateSample.d.ts.map +0 -1
  281. package/dist-esm/samples-dev/accountsUpdateSample.js +0 -32
  282. package/dist-esm/samples-dev/accountsUpdateSample.js.map +0 -1
  283. package/dist-esm/samples-dev/extensionsCreateSample.d.ts +0 -2
  284. package/dist-esm/samples-dev/extensionsCreateSample.d.ts.map +0 -1
  285. package/dist-esm/samples-dev/extensionsCreateSample.js +0 -44
  286. package/dist-esm/samples-dev/extensionsCreateSample.js.map +0 -1
  287. package/dist-esm/samples-dev/extensionsDeleteSample.d.ts +0 -2
  288. package/dist-esm/samples-dev/extensionsDeleteSample.d.ts.map +0 -1
  289. package/dist-esm/samples-dev/extensionsDeleteSample.js +0 -32
  290. package/dist-esm/samples-dev/extensionsDeleteSample.js.map +0 -1
  291. package/dist-esm/samples-dev/extensionsGetSample.d.ts +0 -2
  292. package/dist-esm/samples-dev/extensionsGetSample.d.ts.map +0 -1
  293. package/dist-esm/samples-dev/extensionsGetSample.js +0 -32
  294. package/dist-esm/samples-dev/extensionsGetSample.js.map +0 -1
  295. package/dist-esm/samples-dev/extensionsListByAccountSample.d.ts +0 -2
  296. package/dist-esm/samples-dev/extensionsListByAccountSample.d.ts.map +0 -1
  297. package/dist-esm/samples-dev/extensionsListByAccountSample.js +0 -31
  298. package/dist-esm/samples-dev/extensionsListByAccountSample.js.map +0 -1
  299. package/dist-esm/samples-dev/extensionsUpdateSample.d.ts +0 -2
  300. package/dist-esm/samples-dev/extensionsUpdateSample.d.ts.map +0 -1
  301. package/dist-esm/samples-dev/extensionsUpdateSample.js +0 -44
  302. package/dist-esm/samples-dev/extensionsUpdateSample.js.map +0 -1
  303. package/dist-esm/samples-dev/operationsListSample.d.ts +0 -2
  304. package/dist-esm/samples-dev/operationsListSample.d.ts.map +0 -1
  305. package/dist-esm/samples-dev/operationsListSample.js +0 -29
  306. package/dist-esm/samples-dev/operationsListSample.js.map +0 -1
  307. package/dist-esm/samples-dev/projectsCreateSample.d.ts +0 -2
  308. package/dist-esm/samples-dev/projectsCreateSample.d.ts.map +0 -1
  309. package/dist-esm/samples-dev/projectsCreateSample.js +0 -43
  310. package/dist-esm/samples-dev/projectsCreateSample.js.map +0 -1
  311. package/dist-esm/samples-dev/projectsGetJobStatusSample.d.ts +0 -2
  312. package/dist-esm/samples-dev/projectsGetJobStatusSample.d.ts.map +0 -1
  313. package/dist-esm/samples-dev/projectsGetJobStatusSample.js +0 -36
  314. package/dist-esm/samples-dev/projectsGetJobStatusSample.js.map +0 -1
  315. package/dist-esm/samples-dev/projectsGetSample.d.ts +0 -2
  316. package/dist-esm/samples-dev/projectsGetSample.d.ts.map +0 -1
  317. package/dist-esm/samples-dev/projectsGetSample.js +0 -32
  318. package/dist-esm/samples-dev/projectsGetSample.js.map +0 -1
  319. package/dist-esm/samples-dev/projectsListByResourceGroupSample.d.ts +0 -2
  320. package/dist-esm/samples-dev/projectsListByResourceGroupSample.d.ts.map +0 -1
  321. package/dist-esm/samples-dev/projectsListByResourceGroupSample.js +0 -31
  322. package/dist-esm/samples-dev/projectsListByResourceGroupSample.js.map +0 -1
  323. package/dist-esm/samples-dev/projectsUpdateSample.d.ts +0 -2
  324. package/dist-esm/samples-dev/projectsUpdateSample.d.ts.map +0 -1
  325. package/dist-esm/samples-dev/projectsUpdateSample.js +0 -40
  326. package/dist-esm/samples-dev/projectsUpdateSample.js.map +0 -1
  327. package/dist-esm/src/index.d.ts +0 -4
  328. package/dist-esm/src/index.d.ts.map +0 -1
  329. package/dist-esm/src/index.js.map +0 -1
  330. package/dist-esm/src/lroImpl.js.map +0 -1
  331. package/dist-esm/src/models/index.js.map +0 -1
  332. package/dist-esm/src/models/mappers.js.map +0 -1
  333. package/dist-esm/src/models/parameters.js.map +0 -1
  334. package/dist-esm/src/operations/accounts.d.ts.map +0 -1
  335. package/dist-esm/src/operations/accounts.js.map +0 -1
  336. package/dist-esm/src/operations/extensions.d.ts.map +0 -1
  337. package/dist-esm/src/operations/extensions.js.map +0 -1
  338. package/dist-esm/src/operations/index.d.ts +0 -5
  339. package/dist-esm/src/operations/index.js.map +0 -1
  340. package/dist-esm/src/operations/operations.d.ts.map +0 -1
  341. package/dist-esm/src/operations/operations.js.map +0 -1
  342. package/dist-esm/src/operations/projects.d.ts.map +0 -1
  343. package/dist-esm/src/operations/projects.js.map +0 -1
  344. package/dist-esm/src/operationsInterfaces/accounts.d.ts.map +0 -1
  345. package/dist-esm/src/operationsInterfaces/accounts.js.map +0 -1
  346. package/dist-esm/src/operationsInterfaces/extensions.d.ts.map +0 -1
  347. package/dist-esm/src/operationsInterfaces/extensions.js.map +0 -1
  348. package/dist-esm/src/operationsInterfaces/index.d.ts +0 -5
  349. package/dist-esm/src/operationsInterfaces/index.js.map +0 -1
  350. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +0 -1
  351. package/dist-esm/src/operationsInterfaces/operations.js.map +0 -1
  352. package/dist-esm/src/operationsInterfaces/projects.d.ts.map +0 -1
  353. package/dist-esm/src/operationsInterfaces/projects.js.map +0 -1
  354. package/dist-esm/src/visualStudioResourceProviderClient.d.ts.map +0 -1
  355. package/dist-esm/src/visualStudioResourceProviderClient.js.map +0 -1
  356. package/dist-esm/test/sampleTest.d.ts +0 -2
  357. package/dist-esm/test/sampleTest.d.ts.map +0 -1
  358. package/dist-esm/test/sampleTest.js +0 -38
  359. package/dist-esm/test/sampleTest.js.map +0 -1
  360. package/rollup.config.js +0 -122
  361. package/src/lroImpl.ts +0 -34
  362. package/src/models/index.ts +0 -299
  363. package/src/models/mappers.ts +0 -424
  364. package/src/models/parameters.ts +0 -201
  365. package/src/operations/accounts.ts +0 -261
  366. package/src/operations/extensions.ts +0 -259
  367. package/src/operations/index.ts +0 -12
  368. package/src/operations/operations.ts +0 -55
  369. package/src/operations/projects.ts +0 -358
  370. package/src/operationsInterfaces/accounts.ts +0 -96
  371. package/src/operationsInterfaces/extensions.ts +0 -91
  372. package/src/operationsInterfaces/index.ts +0 -12
  373. package/src/operationsInterfaces/operations.ts +0 -21
  374. package/src/operationsInterfaces/projects.ts +0 -128
  375. package/src/visualStudioResourceProviderClient.ts +0 -156
  376. package/tsconfig.json +0 -33
  377. package/types/arm-visualstudio.d.ts +0 -495
  378. /package/{dist-esm/src → dist/browser}/lroImpl.d.ts +0 -0
  379. /package/{dist-esm/src → dist/browser}/lroImpl.d.ts.map +0 -0
  380. /package/{dist-esm/src → dist/browser}/models/index.js +0 -0
  381. /package/{dist-esm/src → dist/browser}/models/mappers.d.ts +0 -0
  382. /package/{dist-esm/src → dist/browser}/models/mappers.d.ts.map +0 -0
  383. /package/{dist-esm/src → dist/browser}/models/parameters.d.ts +0 -0
  384. /package/{dist-esm/src → dist/browser}/models/parameters.d.ts.map +0 -0
  385. /package/{dist-esm/src → dist/browser}/operationsInterfaces/accounts.js +0 -0
  386. /package/{dist-esm/src → dist/browser}/operationsInterfaces/extensions.js +0 -0
  387. /package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.js +0 -0
  388. /package/{dist-esm/src → dist/browser}/operationsInterfaces/projects.js +0 -0
  389. /package/review/{arm-visualstudio.api.md → arm-visualstudio-node.api.md} +0 -0
package/dist/index.js DELETED
@@ -1,1403 +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
- var coreLro = require('@azure/core-lro');
9
-
10
- function _interopNamespace(e) {
11
- if (e && e.__esModule) return e;
12
- var n = Object.create(null);
13
- if (e) {
14
- Object.keys(e).forEach(function (k) {
15
- if (k !== 'default') {
16
- var d = Object.getOwnPropertyDescriptor(e, k);
17
- Object.defineProperty(n, k, d.get ? d : {
18
- enumerable: true,
19
- get: function () { return e[k]; }
20
- });
21
- }
22
- });
23
- }
24
- n["default"] = e;
25
- return Object.freeze(n);
26
- }
27
-
28
- var coreClient__namespace = /*#__PURE__*/_interopNamespace(coreClient);
29
- var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespace(coreRestPipeline);
30
-
31
- /*
32
- * Copyright (c) Microsoft Corporation.
33
- * Licensed under the MIT License.
34
- *
35
- * Code generated by Microsoft (R) AutoRest Code Generator.
36
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
37
- */
38
- const OperationListResult = {
39
- type: {
40
- name: "Composite",
41
- className: "OperationListResult",
42
- modelProperties: {
43
- value: {
44
- serializedName: "value",
45
- type: {
46
- name: "Sequence",
47
- element: {
48
- type: {
49
- name: "Composite",
50
- className: "Operation"
51
- }
52
- }
53
- }
54
- }
55
- }
56
- }
57
- };
58
- const Operation = {
59
- type: {
60
- name: "Composite",
61
- className: "Operation",
62
- modelProperties: {
63
- display: {
64
- serializedName: "display",
65
- type: {
66
- name: "Composite",
67
- className: "OperationProperties"
68
- }
69
- },
70
- name: {
71
- serializedName: "name",
72
- type: {
73
- name: "String"
74
- }
75
- }
76
- }
77
- }
78
- };
79
- const OperationProperties = {
80
- type: {
81
- name: "Composite",
82
- className: "OperationProperties",
83
- modelProperties: {
84
- description: {
85
- serializedName: "description",
86
- type: {
87
- name: "String"
88
- }
89
- },
90
- operation: {
91
- serializedName: "operation",
92
- type: {
93
- name: "String"
94
- }
95
- },
96
- provider: {
97
- serializedName: "provider",
98
- type: {
99
- name: "String"
100
- }
101
- },
102
- resource: {
103
- serializedName: "resource",
104
- type: {
105
- name: "String"
106
- }
107
- }
108
- }
109
- }
110
- };
111
- const CheckNameAvailabilityParameter = {
112
- type: {
113
- name: "Composite",
114
- className: "CheckNameAvailabilityParameter",
115
- modelProperties: {
116
- resourceName: {
117
- serializedName: "resourceName",
118
- type: {
119
- name: "String"
120
- }
121
- },
122
- resourceType: {
123
- serializedName: "resourceType",
124
- type: {
125
- name: "String"
126
- }
127
- }
128
- }
129
- }
130
- };
131
- const CheckNameAvailabilityResult = {
132
- type: {
133
- name: "Composite",
134
- className: "CheckNameAvailabilityResult",
135
- modelProperties: {
136
- message: {
137
- serializedName: "message",
138
- type: {
139
- name: "String"
140
- }
141
- },
142
- nameAvailable: {
143
- serializedName: "nameAvailable",
144
- type: {
145
- name: "Boolean"
146
- }
147
- }
148
- }
149
- }
150
- };
151
- const AccountResourceListResult = {
152
- type: {
153
- name: "Composite",
154
- className: "AccountResourceListResult",
155
- modelProperties: {
156
- value: {
157
- serializedName: "value",
158
- type: {
159
- name: "Sequence",
160
- element: {
161
- type: {
162
- name: "Composite",
163
- className: "AccountResource"
164
- }
165
- }
166
- }
167
- }
168
- }
169
- }
170
- };
171
- const Resource = {
172
- type: {
173
- name: "Composite",
174
- className: "Resource",
175
- modelProperties: {
176
- id: {
177
- serializedName: "id",
178
- readOnly: true,
179
- type: {
180
- name: "String"
181
- }
182
- },
183
- location: {
184
- serializedName: "location",
185
- type: {
186
- name: "String"
187
- }
188
- },
189
- name: {
190
- serializedName: "name",
191
- readOnly: true,
192
- type: {
193
- name: "String"
194
- }
195
- },
196
- tags: {
197
- serializedName: "tags",
198
- type: {
199
- name: "Dictionary",
200
- value: { type: { name: "String" } }
201
- }
202
- },
203
- type: {
204
- serializedName: "type",
205
- readOnly: true,
206
- type: {
207
- name: "String"
208
- }
209
- }
210
- }
211
- }
212
- };
213
- const ExtensionResourceListResult = {
214
- type: {
215
- name: "Composite",
216
- className: "ExtensionResourceListResult",
217
- modelProperties: {
218
- value: {
219
- serializedName: "value",
220
- type: {
221
- name: "Sequence",
222
- element: {
223
- type: {
224
- name: "Composite",
225
- className: "ExtensionResource"
226
- }
227
- }
228
- }
229
- }
230
- }
231
- }
232
- };
233
- const ExtensionResourcePlan = {
234
- type: {
235
- name: "Composite",
236
- className: "ExtensionResourcePlan",
237
- modelProperties: {
238
- name: {
239
- serializedName: "name",
240
- type: {
241
- name: "String"
242
- }
243
- },
244
- product: {
245
- serializedName: "product",
246
- type: {
247
- name: "String"
248
- }
249
- },
250
- promotionCode: {
251
- serializedName: "promotionCode",
252
- type: {
253
- name: "String"
254
- }
255
- },
256
- publisher: {
257
- serializedName: "publisher",
258
- type: {
259
- name: "String"
260
- }
261
- },
262
- version: {
263
- serializedName: "version",
264
- type: {
265
- name: "String"
266
- }
267
- }
268
- }
269
- }
270
- };
271
- const ExtensionResourceRequest = {
272
- type: {
273
- name: "Composite",
274
- className: "ExtensionResourceRequest",
275
- modelProperties: {
276
- location: {
277
- serializedName: "location",
278
- type: {
279
- name: "String"
280
- }
281
- },
282
- plan: {
283
- serializedName: "plan",
284
- type: {
285
- name: "Composite",
286
- className: "ExtensionResourcePlan"
287
- }
288
- },
289
- properties: {
290
- serializedName: "properties",
291
- type: {
292
- name: "Dictionary",
293
- value: { type: { name: "String" } }
294
- }
295
- },
296
- tags: {
297
- serializedName: "tags",
298
- type: {
299
- name: "Dictionary",
300
- value: { type: { name: "String" } }
301
- }
302
- }
303
- }
304
- }
305
- };
306
- const AccountResourceRequest = {
307
- type: {
308
- name: "Composite",
309
- className: "AccountResourceRequest",
310
- modelProperties: {
311
- accountName: {
312
- serializedName: "accountName",
313
- type: {
314
- name: "String"
315
- }
316
- },
317
- location: {
318
- serializedName: "location",
319
- type: {
320
- name: "String"
321
- }
322
- },
323
- operationType: {
324
- serializedName: "operationType",
325
- type: {
326
- name: "Enum",
327
- allowedValues: ["unknown", "create", "update", "link"]
328
- }
329
- },
330
- properties: {
331
- serializedName: "properties",
332
- type: {
333
- name: "Dictionary",
334
- value: { type: { name: "String" } }
335
- }
336
- },
337
- tags: {
338
- serializedName: "tags",
339
- type: {
340
- name: "Dictionary",
341
- value: { type: { name: "String" } }
342
- }
343
- }
344
- }
345
- }
346
- };
347
- const AccountTagRequest = {
348
- type: {
349
- name: "Composite",
350
- className: "AccountTagRequest",
351
- modelProperties: {
352
- tags: {
353
- serializedName: "tags",
354
- type: {
355
- name: "Dictionary",
356
- value: { type: { name: "String" } }
357
- }
358
- }
359
- }
360
- }
361
- };
362
- const ProjectResourceListResult = {
363
- type: {
364
- name: "Composite",
365
- className: "ProjectResourceListResult",
366
- modelProperties: {
367
- value: {
368
- serializedName: "value",
369
- type: {
370
- name: "Sequence",
371
- element: {
372
- type: {
373
- name: "Composite",
374
- className: "ProjectResource"
375
- }
376
- }
377
- }
378
- }
379
- }
380
- }
381
- };
382
- const AccountResource = {
383
- type: {
384
- name: "Composite",
385
- className: "AccountResource",
386
- modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { properties: {
387
- serializedName: "properties",
388
- type: {
389
- name: "Dictionary",
390
- value: { type: { name: "String" } }
391
- }
392
- } })
393
- }
394
- };
395
- const ExtensionResource = {
396
- type: {
397
- name: "Composite",
398
- className: "ExtensionResource",
399
- modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { plan: {
400
- serializedName: "plan",
401
- type: {
402
- name: "Composite",
403
- className: "ExtensionResourcePlan"
404
- }
405
- }, properties: {
406
- serializedName: "properties",
407
- type: {
408
- name: "Dictionary",
409
- value: { type: { name: "String" } }
410
- }
411
- } })
412
- }
413
- };
414
- const ProjectResource = {
415
- type: {
416
- name: "Composite",
417
- className: "ProjectResource",
418
- modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { properties: {
419
- serializedName: "properties",
420
- type: {
421
- name: "Dictionary",
422
- value: { type: { name: "String" } }
423
- }
424
- } })
425
- }
426
- };
427
-
428
- var Mappers = /*#__PURE__*/Object.freeze({
429
- __proto__: null,
430
- OperationListResult: OperationListResult,
431
- Operation: Operation,
432
- OperationProperties: OperationProperties,
433
- CheckNameAvailabilityParameter: CheckNameAvailabilityParameter,
434
- CheckNameAvailabilityResult: CheckNameAvailabilityResult,
435
- AccountResourceListResult: AccountResourceListResult,
436
- Resource: Resource,
437
- ExtensionResourceListResult: ExtensionResourceListResult,
438
- ExtensionResourcePlan: ExtensionResourcePlan,
439
- ExtensionResourceRequest: ExtensionResourceRequest,
440
- AccountResourceRequest: AccountResourceRequest,
441
- AccountTagRequest: AccountTagRequest,
442
- ProjectResourceListResult: ProjectResourceListResult,
443
- AccountResource: AccountResource,
444
- ExtensionResource: ExtensionResource,
445
- ProjectResource: ProjectResource
446
- });
447
-
448
- /*
449
- * Copyright (c) Microsoft Corporation.
450
- * Licensed under the MIT License.
451
- *
452
- * Code generated by Microsoft (R) AutoRest Code Generator.
453
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
454
- */
455
- const accept = {
456
- parameterPath: "accept",
457
- mapper: {
458
- defaultValue: "application/json",
459
- isConstant: true,
460
- serializedName: "Accept",
461
- type: {
462
- name: "String"
463
- }
464
- }
465
- };
466
- const $host = {
467
- parameterPath: "$host",
468
- mapper: {
469
- serializedName: "$host",
470
- required: true,
471
- type: {
472
- name: "String"
473
- }
474
- },
475
- skipEncoding: true
476
- };
477
- const contentType = {
478
- parameterPath: ["options", "contentType"],
479
- mapper: {
480
- defaultValue: "application/json",
481
- isConstant: true,
482
- serializedName: "Content-Type",
483
- type: {
484
- name: "String"
485
- }
486
- }
487
- };
488
- const body = {
489
- parameterPath: "body",
490
- mapper: CheckNameAvailabilityParameter
491
- };
492
- const subscriptionId = {
493
- parameterPath: "subscriptionId",
494
- mapper: {
495
- serializedName: "subscriptionId",
496
- required: true,
497
- type: {
498
- name: "String"
499
- }
500
- }
501
- };
502
- const apiVersion = {
503
- parameterPath: "apiVersion",
504
- mapper: {
505
- defaultValue: "2014-04-01-preview",
506
- isConstant: true,
507
- serializedName: "api-version",
508
- type: {
509
- name: "String"
510
- }
511
- }
512
- };
513
- const resourceGroupName = {
514
- parameterPath: "resourceGroupName",
515
- mapper: {
516
- serializedName: "resourceGroupName",
517
- required: true,
518
- type: {
519
- name: "String"
520
- }
521
- }
522
- };
523
- const body1 = {
524
- parameterPath: "body",
525
- mapper: AccountResourceRequest
526
- };
527
- const resourceName = {
528
- parameterPath: "resourceName",
529
- mapper: {
530
- serializedName: "resourceName",
531
- required: true,
532
- type: {
533
- name: "String"
534
- }
535
- }
536
- };
537
- const body2 = {
538
- parameterPath: "body",
539
- mapper: AccountTagRequest
540
- };
541
- const accountResourceName = {
542
- parameterPath: "accountResourceName",
543
- mapper: {
544
- serializedName: "accountResourceName",
545
- required: true,
546
- type: {
547
- name: "String"
548
- }
549
- }
550
- };
551
- const body3 = {
552
- parameterPath: "body",
553
- mapper: ExtensionResourceRequest
554
- };
555
- const extensionResourceName = {
556
- parameterPath: "extensionResourceName",
557
- mapper: {
558
- serializedName: "extensionResourceName",
559
- required: true,
560
- type: {
561
- name: "String"
562
- }
563
- }
564
- };
565
- const rootResourceName = {
566
- parameterPath: "rootResourceName",
567
- mapper: {
568
- serializedName: "rootResourceName",
569
- required: true,
570
- type: {
571
- name: "String"
572
- }
573
- }
574
- };
575
- const body4 = {
576
- parameterPath: "body",
577
- mapper: ProjectResource
578
- };
579
- const validating = {
580
- parameterPath: ["options", "validating"],
581
- mapper: {
582
- serializedName: "validating",
583
- type: {
584
- name: "String"
585
- }
586
- }
587
- };
588
- const subContainerName = {
589
- parameterPath: "subContainerName",
590
- mapper: {
591
- serializedName: "subContainerName",
592
- required: true,
593
- type: {
594
- name: "String"
595
- }
596
- }
597
- };
598
- const operation = {
599
- parameterPath: "operation",
600
- mapper: {
601
- serializedName: "operation",
602
- required: true,
603
- type: {
604
- name: "String"
605
- }
606
- }
607
- };
608
- const jobId = {
609
- parameterPath: ["options", "jobId"],
610
- mapper: {
611
- serializedName: "jobId",
612
- type: {
613
- name: "Uuid"
614
- }
615
- }
616
- };
617
-
618
- /*
619
- * Copyright (c) Microsoft Corporation.
620
- * Licensed under the MIT License.
621
- *
622
- * Code generated by Microsoft (R) AutoRest Code Generator.
623
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
624
- */
625
- /** Class containing Operations operations. */
626
- class OperationsImpl {
627
- /**
628
- * Initialize a new instance of the class Operations class.
629
- * @param client Reference to the service client
630
- */
631
- constructor(client) {
632
- this.client = client;
633
- }
634
- /**
635
- * Gets the details of all operations possible on the Microsoft.VisualStudio resource provider.
636
- * @param options The options parameters.
637
- */
638
- list(options) {
639
- return this.client.sendOperationRequest({ options }, listOperationSpec);
640
- }
641
- }
642
- // Operation Specifications
643
- const serializer$3 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
644
- const listOperationSpec = {
645
- path: "/providers/microsoft.visualstudio/operations",
646
- httpMethod: "GET",
647
- responses: {
648
- 200: {
649
- bodyMapper: OperationListResult
650
- }
651
- },
652
- urlParameters: [$host],
653
- headerParameters: [accept],
654
- serializer: serializer$3
655
- };
656
-
657
- /*
658
- * Copyright (c) Microsoft Corporation.
659
- * Licensed under the MIT License.
660
- *
661
- * Code generated by Microsoft (R) AutoRest Code Generator.
662
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
663
- */
664
- /** Class containing Accounts operations. */
665
- class AccountsImpl {
666
- /**
667
- * Initialize a new instance of the class Accounts class.
668
- * @param client Reference to the service client
669
- */
670
- constructor(client) {
671
- this.client = client;
672
- }
673
- /**
674
- * Checks if the specified Visual Studio Team Services account name is available. Resource name can be
675
- * either an account name or an account name and PUID.
676
- * @param body Parameters describing the name to check availability for.
677
- * @param options The options parameters.
678
- */
679
- checkNameAvailability(body, options) {
680
- return this.client.sendOperationRequest({ body, options }, checkNameAvailabilityOperationSpec);
681
- }
682
- /**
683
- * Gets all Visual Studio Team Services account resources under the resource group linked to the
684
- * specified Azure subscription.
685
- * @param resourceGroupName Name of the resource group within the Azure subscription.
686
- * @param options The options parameters.
687
- */
688
- listByResourceGroup(resourceGroupName, options) {
689
- return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec$1);
690
- }
691
- /**
692
- * Creates or updates a Visual Studio Team Services account resource.
693
- * @param resourceGroupName Name of the resource group within the Azure subscription.
694
- * @param resourceName Name of the resource.
695
- * @param body The request data.
696
- * @param options The options parameters.
697
- */
698
- createOrUpdate(resourceGroupName, resourceName, body, options) {
699
- return this.client.sendOperationRequest({ resourceGroupName, resourceName, body, options }, createOrUpdateOperationSpec);
700
- }
701
- /**
702
- * Deletes a Visual Studio Team Services account resource.
703
- * @param resourceGroupName Name of the resource group within the Azure subscription.
704
- * @param resourceName Name of the resource.
705
- * @param options The options parameters.
706
- */
707
- delete(resourceGroupName, resourceName, options) {
708
- return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, deleteOperationSpec$1);
709
- }
710
- /**
711
- * Gets the Visual Studio Team Services account resource details.
712
- * @param resourceGroupName Name of the resource group within the Azure subscription.
713
- * @param resourceName Name of the resource.
714
- * @param options The options parameters.
715
- */
716
- get(resourceGroupName, resourceName, options) {
717
- return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, getOperationSpec$2);
718
- }
719
- /**
720
- * Updates tags for Visual Studio Team Services account resource.
721
- * @param resourceGroupName Name of the resource group within the Azure subscription.
722
- * @param resourceName Name of the resource.
723
- * @param body The request data.
724
- * @param options The options parameters.
725
- */
726
- update(resourceGroupName, resourceName, body, options) {
727
- return this.client.sendOperationRequest({ resourceGroupName, resourceName, body, options }, updateOperationSpec$2);
728
- }
729
- }
730
- // Operation Specifications
731
- const serializer$2 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
732
- const checkNameAvailabilityOperationSpec = {
733
- path: "/subscriptions/{subscriptionId}/providers/microsoft.visualstudio/checkNameAvailability",
734
- httpMethod: "POST",
735
- responses: {
736
- 200: {
737
- bodyMapper: CheckNameAvailabilityResult
738
- }
739
- },
740
- requestBody: body,
741
- queryParameters: [apiVersion],
742
- urlParameters: [$host, subscriptionId],
743
- headerParameters: [accept, contentType],
744
- mediaType: "json",
745
- serializer: serializer$2
746
- };
747
- const listByResourceGroupOperationSpec$1 = {
748
- path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.visualstudio/account",
749
- httpMethod: "GET",
750
- responses: {
751
- 200: {
752
- bodyMapper: AccountResourceListResult
753
- }
754
- },
755
- queryParameters: [apiVersion],
756
- urlParameters: [
757
- $host,
758
- subscriptionId,
759
- resourceGroupName
760
- ],
761
- headerParameters: [accept],
762
- serializer: serializer$2
763
- };
764
- const createOrUpdateOperationSpec = {
765
- path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.visualstudio/account/{resourceName}",
766
- httpMethod: "PUT",
767
- responses: {
768
- 200: {
769
- bodyMapper: AccountResource
770
- },
771
- 404: {}
772
- },
773
- requestBody: body1,
774
- queryParameters: [apiVersion],
775
- urlParameters: [
776
- $host,
777
- subscriptionId,
778
- resourceGroupName,
779
- resourceName
780
- ],
781
- headerParameters: [accept, contentType],
782
- mediaType: "json",
783
- serializer: serializer$2
784
- };
785
- const deleteOperationSpec$1 = {
786
- path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.visualstudio/account/{resourceName}",
787
- httpMethod: "DELETE",
788
- responses: { 200: {} },
789
- queryParameters: [apiVersion],
790
- urlParameters: [
791
- $host,
792
- subscriptionId,
793
- resourceGroupName,
794
- resourceName
795
- ],
796
- serializer: serializer$2
797
- };
798
- const getOperationSpec$2 = {
799
- path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.visualstudio/account/{resourceName}",
800
- httpMethod: "GET",
801
- responses: {
802
- 200: {
803
- bodyMapper: AccountResource
804
- },
805
- 404: {}
806
- },
807
- queryParameters: [apiVersion],
808
- urlParameters: [
809
- $host,
810
- subscriptionId,
811
- resourceGroupName,
812
- resourceName
813
- ],
814
- headerParameters: [accept],
815
- serializer: serializer$2
816
- };
817
- const updateOperationSpec$2 = {
818
- path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.visualstudio/account/{resourceName}",
819
- httpMethod: "PATCH",
820
- responses: {
821
- 200: {
822
- bodyMapper: AccountResource
823
- },
824
- 404: {}
825
- },
826
- requestBody: body2,
827
- queryParameters: [apiVersion],
828
- urlParameters: [
829
- $host,
830
- subscriptionId,
831
- resourceGroupName,
832
- resourceName
833
- ],
834
- headerParameters: [accept, contentType],
835
- mediaType: "json",
836
- serializer: serializer$2
837
- };
838
-
839
- /*
840
- * Copyright (c) Microsoft Corporation.
841
- * Licensed under the MIT License.
842
- *
843
- * Code generated by Microsoft (R) AutoRest Code Generator.
844
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
845
- */
846
- /** Class containing Extensions operations. */
847
- class ExtensionsImpl {
848
- /**
849
- * Initialize a new instance of the class Extensions class.
850
- * @param client Reference to the service client
851
- */
852
- constructor(client) {
853
- this.client = client;
854
- }
855
- /**
856
- * Gets the details of the extension resources created within the resource group.
857
- * @param resourceGroupName Name of the resource group within the Azure subscription.
858
- * @param accountResourceName The name of the Visual Studio Team Services account resource.
859
- * @param options The options parameters.
860
- */
861
- listByAccount(resourceGroupName, accountResourceName, options) {
862
- return this.client.sendOperationRequest({ resourceGroupName, accountResourceName, options }, listByAccountOperationSpec);
863
- }
864
- /**
865
- * Registers the extension with a Visual Studio Team Services account.
866
- * @param resourceGroupName Name of the resource group within the Azure subscription.
867
- * @param accountResourceName The name of the Visual Studio Team Services account resource.
868
- * @param extensionResourceName The name of the extension.
869
- * @param body An object containing additional information related to the extension request.
870
- * @param options The options parameters.
871
- */
872
- create(resourceGroupName, accountResourceName, extensionResourceName, body, options) {
873
- return this.client.sendOperationRequest({
874
- resourceGroupName,
875
- accountResourceName,
876
- extensionResourceName,
877
- body,
878
- options
879
- }, createOperationSpec$1);
880
- }
881
- /**
882
- * Removes an extension resource registration for a Visual Studio Team Services account.
883
- * @param resourceGroupName Name of the resource group within the Azure subscription.
884
- * @param accountResourceName The name of the Visual Studio Team Services account resource.
885
- * @param extensionResourceName The name of the extension.
886
- * @param options The options parameters.
887
- */
888
- delete(resourceGroupName, accountResourceName, extensionResourceName, options) {
889
- return this.client.sendOperationRequest({
890
- resourceGroupName,
891
- accountResourceName,
892
- extensionResourceName,
893
- options
894
- }, deleteOperationSpec);
895
- }
896
- /**
897
- * Gets the details of an extension associated with a Visual Studio Team Services account resource.
898
- * @param resourceGroupName Name of the resource group within the Azure subscription.
899
- * @param accountResourceName The name of the Visual Studio Team Services account resource.
900
- * @param extensionResourceName The name of the extension.
901
- * @param options The options parameters.
902
- */
903
- get(resourceGroupName, accountResourceName, extensionResourceName, options) {
904
- return this.client.sendOperationRequest({
905
- resourceGroupName,
906
- accountResourceName,
907
- extensionResourceName,
908
- options
909
- }, getOperationSpec$1);
910
- }
911
- /**
912
- * Updates an existing extension registration for the Visual Studio Team Services account.
913
- * @param resourceGroupName Name of the resource group within the Azure subscription.
914
- * @param accountResourceName The name of the Visual Studio Team Services account resource.
915
- * @param extensionResourceName The name of the extension.
916
- * @param body An object containing additional information related to the extension request.
917
- * @param options The options parameters.
918
- */
919
- update(resourceGroupName, accountResourceName, extensionResourceName, body, options) {
920
- return this.client.sendOperationRequest({
921
- resourceGroupName,
922
- accountResourceName,
923
- extensionResourceName,
924
- body,
925
- options
926
- }, updateOperationSpec$1);
927
- }
928
- }
929
- // Operation Specifications
930
- const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
931
- const listByAccountOperationSpec = {
932
- path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.visualstudio/account/{accountResourceName}/extension",
933
- httpMethod: "GET",
934
- responses: {
935
- 200: {
936
- bodyMapper: ExtensionResourceListResult
937
- }
938
- },
939
- queryParameters: [apiVersion],
940
- urlParameters: [
941
- $host,
942
- subscriptionId,
943
- resourceGroupName,
944
- accountResourceName
945
- ],
946
- headerParameters: [accept],
947
- serializer: serializer$1
948
- };
949
- const createOperationSpec$1 = {
950
- path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.visualstudio/account/{accountResourceName}/extension/{extensionResourceName}",
951
- httpMethod: "PUT",
952
- responses: {
953
- 200: {
954
- bodyMapper: ExtensionResource
955
- }
956
- },
957
- requestBody: body3,
958
- queryParameters: [apiVersion],
959
- urlParameters: [
960
- $host,
961
- subscriptionId,
962
- resourceGroupName,
963
- accountResourceName,
964
- extensionResourceName
965
- ],
966
- headerParameters: [accept, contentType],
967
- mediaType: "json",
968
- serializer: serializer$1
969
- };
970
- const deleteOperationSpec = {
971
- path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.visualstudio/account/{accountResourceName}/extension/{extensionResourceName}",
972
- httpMethod: "DELETE",
973
- responses: { 200: {} },
974
- queryParameters: [apiVersion],
975
- urlParameters: [
976
- $host,
977
- subscriptionId,
978
- resourceGroupName,
979
- accountResourceName,
980
- extensionResourceName
981
- ],
982
- serializer: serializer$1
983
- };
984
- const getOperationSpec$1 = {
985
- path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.visualstudio/account/{accountResourceName}/extension/{extensionResourceName}",
986
- httpMethod: "GET",
987
- responses: {
988
- 200: {
989
- bodyMapper: ExtensionResource
990
- },
991
- 404: {}
992
- },
993
- queryParameters: [apiVersion],
994
- urlParameters: [
995
- $host,
996
- subscriptionId,
997
- resourceGroupName,
998
- accountResourceName,
999
- extensionResourceName
1000
- ],
1001
- headerParameters: [accept],
1002
- serializer: serializer$1
1003
- };
1004
- const updateOperationSpec$1 = {
1005
- path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.visualstudio/account/{accountResourceName}/extension/{extensionResourceName}",
1006
- httpMethod: "PATCH",
1007
- responses: {
1008
- 200: {
1009
- bodyMapper: ExtensionResource
1010
- }
1011
- },
1012
- requestBody: body3,
1013
- queryParameters: [apiVersion],
1014
- urlParameters: [
1015
- $host,
1016
- subscriptionId,
1017
- resourceGroupName,
1018
- accountResourceName,
1019
- extensionResourceName
1020
- ],
1021
- headerParameters: [accept, contentType],
1022
- mediaType: "json",
1023
- serializer: serializer$1
1024
- };
1025
-
1026
- /*
1027
- * Copyright (c) Microsoft Corporation.
1028
- * Licensed under the MIT License.
1029
- *
1030
- * Code generated by Microsoft (R) AutoRest Code Generator.
1031
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1032
- */
1033
- class LroImpl {
1034
- constructor(sendOperationFn, args, spec, requestPath = spec.path, requestMethod = spec.httpMethod) {
1035
- this.sendOperationFn = sendOperationFn;
1036
- this.args = args;
1037
- this.spec = spec;
1038
- this.requestPath = requestPath;
1039
- this.requestMethod = requestMethod;
1040
- }
1041
- sendInitialRequest() {
1042
- return tslib.__awaiter(this, void 0, void 0, function* () {
1043
- return this.sendOperationFn(this.args, this.spec);
1044
- });
1045
- }
1046
- sendPollRequest(path) {
1047
- return tslib.__awaiter(this, void 0, void 0, function* () {
1048
- const _a = this.spec, restSpec = tslib.__rest(_a, ["requestBody"]);
1049
- return this.sendOperationFn(this.args, Object.assign(Object.assign({}, restSpec), { path, httpMethod: "GET" }));
1050
- });
1051
- }
1052
- }
1053
-
1054
- /*
1055
- * Copyright (c) Microsoft Corporation.
1056
- * Licensed under the MIT License.
1057
- *
1058
- * Code generated by Microsoft (R) AutoRest Code Generator.
1059
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1060
- */
1061
- /** Class containing Projects operations. */
1062
- class ProjectsImpl {
1063
- /**
1064
- * Initialize a new instance of the class Projects class.
1065
- * @param client Reference to the service client
1066
- */
1067
- constructor(client) {
1068
- this.client = client;
1069
- }
1070
- /**
1071
- * Gets all Visual Studio Team Services project resources created in the specified Team Services
1072
- * account.
1073
- * @param resourceGroupName Name of the resource group within the Azure subscription.
1074
- * @param rootResourceName Name of the Team Services account.
1075
- * @param options The options parameters.
1076
- */
1077
- listByResourceGroup(resourceGroupName, rootResourceName, options) {
1078
- return this.client.sendOperationRequest({ resourceGroupName, rootResourceName, options }, listByResourceGroupOperationSpec);
1079
- }
1080
- /**
1081
- * Creates a Team Services project in the collection with the specified name. 'VersionControlOption'
1082
- * and 'ProcessTemplateId' must be specified in the resource properties. Valid values for
1083
- * VersionControlOption: Git, Tfvc. Valid values for ProcessTemplateId:
1084
- * 6B724908-EF14-45CF-84F8-768B5384DA45, ADCC42AB-9882-485E-A3ED-7678F01F66BC,
1085
- * 27450541-8E31-4150-9947-DC59F998FC01 (these IDs correspond to Scrum, Agile, and CMMI process
1086
- * templates).
1087
- * @param resourceGroupName Name of the resource group within the Azure subscription.
1088
- * @param rootResourceName Name of the Team Services account.
1089
- * @param resourceName Name of the Team Services project.
1090
- * @param body The request data.
1091
- * @param options The options parameters.
1092
- */
1093
- beginCreate(resourceGroupName, rootResourceName, resourceName, body, options) {
1094
- return tslib.__awaiter(this, void 0, void 0, function* () {
1095
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1096
- return this.client.sendOperationRequest(args, spec);
1097
- });
1098
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1099
- var _a;
1100
- let currentRawResponse = undefined;
1101
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1102
- const callback = (rawResponse, flatResponse) => {
1103
- currentRawResponse = rawResponse;
1104
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1105
- };
1106
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1107
- const flatResponse = yield directSendOperation(updatedArgs, spec);
1108
- return {
1109
- flatResponse,
1110
- rawResponse: {
1111
- statusCode: currentRawResponse.status,
1112
- body: currentRawResponse.parsedBody,
1113
- headers: currentRawResponse.headers.toJSON()
1114
- }
1115
- };
1116
- });
1117
- const lro = new LroImpl(sendOperation, { resourceGroupName, rootResourceName, resourceName, body, options }, createOperationSpec);
1118
- const poller = new coreLro.LroEngine(lro, {
1119
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1120
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
1121
- });
1122
- yield poller.poll();
1123
- return poller;
1124
- });
1125
- }
1126
- /**
1127
- * Creates a Team Services project in the collection with the specified name. 'VersionControlOption'
1128
- * and 'ProcessTemplateId' must be specified in the resource properties. Valid values for
1129
- * VersionControlOption: Git, Tfvc. Valid values for ProcessTemplateId:
1130
- * 6B724908-EF14-45CF-84F8-768B5384DA45, ADCC42AB-9882-485E-A3ED-7678F01F66BC,
1131
- * 27450541-8E31-4150-9947-DC59F998FC01 (these IDs correspond to Scrum, Agile, and CMMI process
1132
- * templates).
1133
- * @param resourceGroupName Name of the resource group within the Azure subscription.
1134
- * @param rootResourceName Name of the Team Services account.
1135
- * @param resourceName Name of the Team Services project.
1136
- * @param body The request data.
1137
- * @param options The options parameters.
1138
- */
1139
- beginCreateAndWait(resourceGroupName, rootResourceName, resourceName, body, options) {
1140
- return tslib.__awaiter(this, void 0, void 0, function* () {
1141
- const poller = yield this.beginCreate(resourceGroupName, rootResourceName, resourceName, body, options);
1142
- return poller.pollUntilDone();
1143
- });
1144
- }
1145
- /**
1146
- * Gets the details of a Team Services project resource.
1147
- * @param resourceGroupName Name of the resource group within the Azure subscription.
1148
- * @param rootResourceName Name of the Team Services account.
1149
- * @param resourceName Name of the Team Services project.
1150
- * @param options The options parameters.
1151
- */
1152
- get(resourceGroupName, rootResourceName, resourceName, options) {
1153
- return this.client.sendOperationRequest({ resourceGroupName, rootResourceName, resourceName, options }, getOperationSpec);
1154
- }
1155
- /**
1156
- * Updates the tags of the specified Team Services project.
1157
- * @param resourceGroupName Name of the resource group within the Azure subscription.
1158
- * @param rootResourceName Name of the Team Services account.
1159
- * @param resourceName Name of the Team Services project.
1160
- * @param body The request data.
1161
- * @param options The options parameters.
1162
- */
1163
- update(resourceGroupName, rootResourceName, resourceName, body, options) {
1164
- return this.client.sendOperationRequest({ resourceGroupName, rootResourceName, resourceName, body, options }, updateOperationSpec);
1165
- }
1166
- /**
1167
- * Gets the status of the project resource creation job.
1168
- * @param resourceGroupName Name of the resource group within the Azure subscription.
1169
- * @param rootResourceName Name of the Team Services account.
1170
- * @param resourceName Name of the Team Services project.
1171
- * @param subContainerName This parameter should be set to the resourceName.
1172
- * @param operation The operation type. The only supported value is 'put'.
1173
- * @param options The options parameters.
1174
- */
1175
- getJobStatus(resourceGroupName, rootResourceName, resourceName, subContainerName, operation, options) {
1176
- return this.client.sendOperationRequest({
1177
- resourceGroupName,
1178
- rootResourceName,
1179
- resourceName,
1180
- subContainerName,
1181
- operation,
1182
- options
1183
- }, getJobStatusOperationSpec);
1184
- }
1185
- }
1186
- // Operation Specifications
1187
- const serializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
1188
- const listByResourceGroupOperationSpec = {
1189
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.visualstudio/account/{rootResourceName}/project",
1190
- httpMethod: "GET",
1191
- responses: {
1192
- 200: {
1193
- bodyMapper: ProjectResourceListResult
1194
- }
1195
- },
1196
- queryParameters: [apiVersion],
1197
- urlParameters: [
1198
- $host,
1199
- subscriptionId,
1200
- resourceGroupName,
1201
- rootResourceName
1202
- ],
1203
- headerParameters: [accept],
1204
- serializer
1205
- };
1206
- const createOperationSpec = {
1207
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.visualstudio/account/{rootResourceName}/project/{resourceName}",
1208
- httpMethod: "PUT",
1209
- responses: {
1210
- 200: {
1211
- bodyMapper: ProjectResource
1212
- },
1213
- 201: {
1214
- bodyMapper: ProjectResource
1215
- },
1216
- 202: {
1217
- bodyMapper: ProjectResource
1218
- },
1219
- 204: {
1220
- bodyMapper: ProjectResource
1221
- }
1222
- },
1223
- requestBody: body4,
1224
- queryParameters: [apiVersion, validating],
1225
- urlParameters: [
1226
- $host,
1227
- subscriptionId,
1228
- resourceGroupName,
1229
- resourceName,
1230
- rootResourceName
1231
- ],
1232
- headerParameters: [accept, contentType],
1233
- mediaType: "json",
1234
- serializer
1235
- };
1236
- const getOperationSpec = {
1237
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.visualstudio/account/{rootResourceName}/project/{resourceName}",
1238
- httpMethod: "GET",
1239
- responses: {
1240
- 200: {
1241
- bodyMapper: ProjectResource
1242
- },
1243
- 404: {}
1244
- },
1245
- queryParameters: [apiVersion],
1246
- urlParameters: [
1247
- $host,
1248
- subscriptionId,
1249
- resourceGroupName,
1250
- resourceName,
1251
- rootResourceName
1252
- ],
1253
- headerParameters: [accept],
1254
- serializer
1255
- };
1256
- const updateOperationSpec = {
1257
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.visualstudio/account/{rootResourceName}/project/{resourceName}",
1258
- httpMethod: "PATCH",
1259
- responses: {
1260
- 200: {
1261
- bodyMapper: ProjectResource
1262
- }
1263
- },
1264
- requestBody: body4,
1265
- queryParameters: [apiVersion],
1266
- urlParameters: [
1267
- $host,
1268
- subscriptionId,
1269
- resourceGroupName,
1270
- resourceName,
1271
- rootResourceName
1272
- ],
1273
- headerParameters: [accept, contentType],
1274
- mediaType: "json",
1275
- serializer
1276
- };
1277
- const getJobStatusOperationSpec = {
1278
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.visualstudio/account/{rootResourceName}/project/{resourceName}/subContainers/{subContainerName}/status",
1279
- httpMethod: "GET",
1280
- responses: {
1281
- 200: {
1282
- bodyMapper: ProjectResource
1283
- },
1284
- 202: {}
1285
- },
1286
- queryParameters: [
1287
- apiVersion,
1288
- operation,
1289
- jobId
1290
- ],
1291
- urlParameters: [
1292
- $host,
1293
- subscriptionId,
1294
- resourceGroupName,
1295
- resourceName,
1296
- rootResourceName,
1297
- subContainerName
1298
- ],
1299
- headerParameters: [accept],
1300
- serializer
1301
- };
1302
-
1303
- /*
1304
- * Copyright (c) Microsoft Corporation.
1305
- * Licensed under the MIT License.
1306
- *
1307
- * Code generated by Microsoft (R) AutoRest Code Generator.
1308
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1309
- */
1310
- class VisualStudioResourceProviderClient extends coreClient__namespace.ServiceClient {
1311
- /**
1312
- * Initializes a new instance of the VisualStudioResourceProviderClient class.
1313
- * @param credentials Subscription credentials which uniquely identify client subscription.
1314
- * @param subscriptionId The Azure subscription identifier.
1315
- * @param options The parameter options
1316
- */
1317
- constructor(credentials, subscriptionId, options) {
1318
- var _a, _b, _c;
1319
- if (credentials === undefined) {
1320
- throw new Error("'credentials' cannot be null");
1321
- }
1322
- if (subscriptionId === undefined) {
1323
- throw new Error("'subscriptionId' cannot be null");
1324
- }
1325
- // Initializing default values for options
1326
- if (!options) {
1327
- options = {};
1328
- }
1329
- const defaults = {
1330
- requestContentType: "application/json; charset=utf-8",
1331
- credential: credentials
1332
- };
1333
- const packageDetails = `azsdk-js-arm-visualstudio/4.0.0-beta.2`;
1334
- const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
1335
- ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
1336
- : `${packageDetails}`;
1337
- const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
1338
- userAgentPrefix
1339
- }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
1340
- super(optionsWithDefaults);
1341
- let bearerTokenAuthenticationPolicyFound = false;
1342
- if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
1343
- const pipelinePolicies = options.pipeline.getOrderedPolicies();
1344
- bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
1345
- coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
1346
- }
1347
- if (!options ||
1348
- !options.pipeline ||
1349
- options.pipeline.getOrderedPolicies().length == 0 ||
1350
- !bearerTokenAuthenticationPolicyFound) {
1351
- this.pipeline.removePolicy({
1352
- name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName
1353
- });
1354
- this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
1355
- credential: credentials,
1356
- scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
1357
- challengeCallbacks: {
1358
- authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
1359
- }
1360
- }));
1361
- }
1362
- // Parameter assignments
1363
- this.subscriptionId = subscriptionId;
1364
- // Assigning values to Constant parameters
1365
- this.$host = options.$host || "https://management.azure.com";
1366
- this.apiVersion = options.apiVersion || "2014-04-01-preview";
1367
- this.operations = new OperationsImpl(this);
1368
- this.accounts = new AccountsImpl(this);
1369
- this.extensions = new ExtensionsImpl(this);
1370
- this.projects = new ProjectsImpl(this);
1371
- this.addCustomApiVersionPolicy(options.apiVersion);
1372
- }
1373
- /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
1374
- addCustomApiVersionPolicy(apiVersion) {
1375
- if (!apiVersion) {
1376
- return;
1377
- }
1378
- const apiVersionPolicy = {
1379
- name: "CustomApiVersionPolicy",
1380
- sendRequest(request, next) {
1381
- return tslib.__awaiter(this, void 0, void 0, function* () {
1382
- const param = request.url.split("?");
1383
- if (param.length > 1) {
1384
- const newParams = param[1].split("&").map((item) => {
1385
- if (item.indexOf("api-version") > -1) {
1386
- return "api-version=" + apiVersion;
1387
- }
1388
- else {
1389
- return item;
1390
- }
1391
- });
1392
- request.url = param[0] + "?" + newParams.join("&");
1393
- }
1394
- return next(request);
1395
- });
1396
- }
1397
- };
1398
- this.pipeline.addPolicy(apiVersionPolicy);
1399
- }
1400
- }
1401
-
1402
- exports.VisualStudioResourceProviderClient = VisualStudioResourceProviderClient;
1403
- //# sourceMappingURL=index.js.map