@azure/arm-managedapplications 3.0.0-alpha.20250211.1 → 3.0.0-alpha.20250213.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (418) hide show
  1. package/README.md +21 -14
  2. package/{dist-esm/src → dist/browser}/applicationClient.d.ts +2 -2
  3. package/dist/browser/applicationClient.d.ts.map +1 -0
  4. package/{dist-esm/src → dist/browser}/applicationClient.js +19 -21
  5. package/dist/browser/applicationClient.js.map +1 -0
  6. package/dist/browser/index.d.ts +5 -0
  7. package/{dist-esm/src → dist/browser}/index.d.ts.map +1 -1
  8. package/{dist-esm/src → dist/browser}/index.js +4 -4
  9. package/dist/browser/index.js.map +1 -0
  10. package/dist/browser/lroImpl.js.map +1 -0
  11. package/dist/browser/models/index.js.map +1 -0
  12. package/dist/browser/models/mappers.js.map +1 -0
  13. package/{dist-esm/src → dist/browser}/models/parameters.js +1 -1
  14. package/dist/browser/models/parameters.js.map +1 -0
  15. package/{dist-esm/src → dist/browser}/operations/applicationDefinitions.d.ts +3 -3
  16. package/dist/browser/operations/applicationDefinitions.d.ts.map +1 -0
  17. package/{dist-esm/src → dist/browser}/operations/applicationDefinitions.js +3 -3
  18. package/dist/browser/operations/applicationDefinitions.js.map +1 -0
  19. package/{dist-esm/src → dist/browser}/operations/applications.d.ts +3 -3
  20. package/dist/browser/operations/applications.d.ts.map +1 -0
  21. package/{dist-esm/src → dist/browser}/operations/applications.js +301 -333
  22. package/dist/browser/operations/applications.js.map +1 -0
  23. package/dist/browser/operations/index.d.ts +4 -0
  24. package/{dist-esm/src → dist/browser}/operations/index.d.ts.map +1 -1
  25. package/{dist-esm/src/operationsInterfaces → dist/browser/operations}/index.js +3 -3
  26. package/dist/browser/operations/index.js.map +1 -0
  27. package/{dist-esm/src → dist/browser}/operations/jitRequests.d.ts +3 -3
  28. package/dist/browser/operations/jitRequests.d.ts.map +1 -0
  29. package/{dist-esm/src → dist/browser}/operations/jitRequests.js +40 -45
  30. package/dist/browser/operations/jitRequests.js.map +1 -0
  31. package/{dist-esm/src → dist/browser}/operationsInterfaces/applicationDefinitions.d.ts +1 -1
  32. package/dist/browser/operationsInterfaces/applicationDefinitions.d.ts.map +1 -0
  33. package/dist/browser/operationsInterfaces/applicationDefinitions.js.map +1 -0
  34. package/{dist-esm/src → dist/browser}/operationsInterfaces/applications.d.ts +1 -1
  35. package/dist/browser/operationsInterfaces/applications.d.ts.map +1 -0
  36. package/dist/browser/operationsInterfaces/applications.js.map +1 -0
  37. package/dist/browser/operationsInterfaces/index.d.ts +4 -0
  38. package/{dist-esm/src → dist/browser}/operationsInterfaces/index.d.ts.map +1 -1
  39. package/{dist-esm/src/operations → dist/browser/operationsInterfaces}/index.js +3 -3
  40. package/dist/browser/operationsInterfaces/index.js.map +1 -0
  41. package/{dist-esm/src → dist/browser}/operationsInterfaces/jitRequests.d.ts +1 -1
  42. package/dist/browser/operationsInterfaces/jitRequests.d.ts.map +1 -0
  43. package/dist/browser/operationsInterfaces/jitRequests.js.map +1 -0
  44. package/dist/browser/package.json +3 -0
  45. package/dist/browser/pagingHelper.js.map +1 -0
  46. package/dist/commonjs/applicationClient.d.ts +42 -0
  47. package/dist/commonjs/applicationClient.d.ts.map +1 -0
  48. package/dist/commonjs/applicationClient.js +215 -0
  49. package/dist/commonjs/applicationClient.js.map +1 -0
  50. package/dist/commonjs/index.d.ts +5 -0
  51. package/dist/commonjs/index.d.ts.map +1 -0
  52. package/dist/commonjs/index.js +19 -0
  53. package/dist/commonjs/index.js.map +1 -0
  54. package/dist/commonjs/lroImpl.d.ts +11 -0
  55. package/dist/commonjs/lroImpl.d.ts.map +1 -0
  56. package/dist/commonjs/lroImpl.js +17 -0
  57. package/dist/commonjs/lroImpl.js.map +1 -0
  58. package/{types/arm-managedapplications.d.ts → dist/commonjs/models/index.d.ts} +1191 -1682
  59. package/dist/commonjs/models/index.d.ts.map +1 -0
  60. package/dist/commonjs/models/index.js +179 -0
  61. package/dist/commonjs/models/index.js.map +1 -0
  62. package/dist/commonjs/models/mappers.d.ts +48 -0
  63. package/dist/commonjs/models/mappers.d.ts.map +1 -0
  64. package/dist/commonjs/models/mappers.js +1637 -0
  65. package/dist/commonjs/models/mappers.js.map +1 -0
  66. package/dist/commonjs/models/parameters.d.ts +22 -0
  67. package/dist/commonjs/models/parameters.d.ts.map +1 -0
  68. package/dist/commonjs/models/parameters.js +190 -0
  69. package/dist/commonjs/models/parameters.js.map +1 -0
  70. package/dist/commonjs/operations/applicationDefinitions.d.ts +113 -0
  71. package/dist/commonjs/operations/applicationDefinitions.d.ts.map +1 -0
  72. package/dist/commonjs/operations/applicationDefinitions.js +518 -0
  73. package/dist/commonjs/operations/applicationDefinitions.js.map +1 -0
  74. package/dist/commonjs/operations/applications.d.ts +208 -0
  75. package/dist/commonjs/operations/applications.d.ts.map +1 -0
  76. package/dist/commonjs/operations/applications.js +1014 -0
  77. package/dist/commonjs/operations/applications.js.map +1 -0
  78. package/dist/commonjs/operations/index.d.ts +4 -0
  79. package/dist/commonjs/operations/index.d.ts.map +1 -0
  80. package/dist/commonjs/operations/index.js +14 -0
  81. package/dist/commonjs/operations/index.js.map +1 -0
  82. package/dist/commonjs/operations/jitRequests.d.ts +63 -0
  83. package/dist/commonjs/operations/jitRequests.d.ts.map +1 -0
  84. package/dist/commonjs/operations/jitRequests.js +260 -0
  85. package/dist/commonjs/operations/jitRequests.js.map +1 -0
  86. package/dist/commonjs/operationsInterfaces/applicationDefinitions.d.ts +77 -0
  87. package/dist/commonjs/operationsInterfaces/applicationDefinitions.d.ts.map +1 -0
  88. package/dist/commonjs/operationsInterfaces/applicationDefinitions.js +10 -0
  89. package/dist/commonjs/operationsInterfaces/applicationDefinitions.js.map +1 -0
  90. package/dist/commonjs/operationsInterfaces/applications.d.ts +172 -0
  91. package/dist/commonjs/operationsInterfaces/applications.d.ts.map +1 -0
  92. package/dist/commonjs/operationsInterfaces/applications.js +10 -0
  93. package/dist/commonjs/operationsInterfaces/applications.js.map +1 -0
  94. package/dist/commonjs/operationsInterfaces/index.d.ts +4 -0
  95. package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -0
  96. package/dist/commonjs/operationsInterfaces/index.js +14 -0
  97. package/dist/commonjs/operationsInterfaces/index.js.map +1 -0
  98. package/dist/commonjs/operationsInterfaces/jitRequests.d.ts +55 -0
  99. package/dist/commonjs/operationsInterfaces/jitRequests.d.ts.map +1 -0
  100. package/dist/commonjs/operationsInterfaces/jitRequests.js +10 -0
  101. package/dist/commonjs/operationsInterfaces/jitRequests.js.map +1 -0
  102. package/dist/commonjs/package.json +3 -0
  103. package/dist/commonjs/pagingHelper.d.ts +13 -0
  104. package/dist/commonjs/pagingHelper.d.ts.map +1 -0
  105. package/dist/commonjs/pagingHelper.js +36 -0
  106. package/dist/commonjs/pagingHelper.js.map +1 -0
  107. package/dist/esm/applicationClient.d.ts +42 -0
  108. package/dist/esm/applicationClient.d.ts.map +1 -0
  109. package/dist/esm/applicationClient.js +211 -0
  110. package/dist/esm/applicationClient.js.map +1 -0
  111. package/dist/esm/index.d.ts +5 -0
  112. package/dist/esm/index.d.ts.map +1 -0
  113. package/{src/index.ts → dist/esm/index.js} +5 -5
  114. package/dist/esm/index.js.map +1 -0
  115. package/dist/esm/lroImpl.d.ts +11 -0
  116. package/dist/esm/lroImpl.d.ts.map +1 -0
  117. package/dist/esm/lroImpl.js +14 -0
  118. package/dist/esm/lroImpl.js.map +1 -0
  119. package/dist/esm/models/index.d.ts +1191 -0
  120. package/dist/esm/models/index.d.ts.map +1 -0
  121. package/dist/esm/models/index.js +176 -0
  122. package/dist/esm/models/index.js.map +1 -0
  123. package/dist/esm/models/mappers.d.ts +48 -0
  124. package/dist/esm/models/mappers.d.ts.map +1 -0
  125. package/dist/esm/models/mappers.js +1634 -0
  126. package/dist/esm/models/mappers.js.map +1 -0
  127. package/dist/esm/models/parameters.d.ts +22 -0
  128. package/dist/esm/models/parameters.d.ts.map +1 -0
  129. package/dist/esm/models/parameters.js +187 -0
  130. package/dist/esm/models/parameters.js.map +1 -0
  131. package/dist/esm/operations/applicationDefinitions.d.ts +113 -0
  132. package/dist/esm/operations/applicationDefinitions.d.ts.map +1 -0
  133. package/dist/esm/operations/applicationDefinitions.js +514 -0
  134. package/dist/esm/operations/applicationDefinitions.js.map +1 -0
  135. package/dist/esm/operations/applications.d.ts +208 -0
  136. package/dist/esm/operations/applications.d.ts.map +1 -0
  137. package/dist/esm/operations/applications.js +1010 -0
  138. package/dist/esm/operations/applications.js.map +1 -0
  139. package/dist/esm/operations/index.d.ts +4 -0
  140. package/dist/esm/operations/index.d.ts.map +1 -0
  141. package/dist/esm/operations/index.js +11 -0
  142. package/dist/esm/operations/index.js.map +1 -0
  143. package/dist/esm/operations/jitRequests.d.ts +63 -0
  144. package/dist/esm/operations/jitRequests.d.ts.map +1 -0
  145. package/dist/esm/operations/jitRequests.js +255 -0
  146. package/dist/esm/operations/jitRequests.js.map +1 -0
  147. package/dist/esm/operationsInterfaces/applicationDefinitions.d.ts +77 -0
  148. package/dist/esm/operationsInterfaces/applicationDefinitions.d.ts.map +1 -0
  149. package/{src/operations/index.ts → dist/esm/operationsInterfaces/applicationDefinitions.js} +2 -4
  150. package/dist/esm/operationsInterfaces/applicationDefinitions.js.map +1 -0
  151. package/dist/esm/operationsInterfaces/applications.d.ts +172 -0
  152. package/dist/esm/operationsInterfaces/applications.d.ts.map +1 -0
  153. package/dist/esm/operationsInterfaces/applications.js +9 -0
  154. package/dist/esm/operationsInterfaces/applications.js.map +1 -0
  155. package/dist/esm/operationsInterfaces/index.d.ts +4 -0
  156. package/dist/esm/operationsInterfaces/index.d.ts.map +1 -0
  157. package/dist/esm/operationsInterfaces/index.js +11 -0
  158. package/dist/esm/operationsInterfaces/index.js.map +1 -0
  159. package/dist/esm/operationsInterfaces/jitRequests.d.ts +55 -0
  160. package/dist/esm/operationsInterfaces/jitRequests.d.ts.map +1 -0
  161. package/dist/esm/operationsInterfaces/jitRequests.js +9 -0
  162. package/dist/esm/operationsInterfaces/jitRequests.js.map +1 -0
  163. package/dist/esm/package.json +3 -0
  164. package/dist/esm/pagingHelper.d.ts +13 -0
  165. package/dist/esm/pagingHelper.d.ts.map +1 -0
  166. package/dist/esm/pagingHelper.js +32 -0
  167. package/dist/esm/pagingHelper.js.map +1 -0
  168. package/dist/react-native/applicationClient.d.ts +42 -0
  169. package/dist/react-native/applicationClient.d.ts.map +1 -0
  170. package/dist/react-native/applicationClient.js +211 -0
  171. package/dist/react-native/applicationClient.js.map +1 -0
  172. package/dist/react-native/index.d.ts +5 -0
  173. package/dist/react-native/index.d.ts.map +1 -0
  174. package/dist/react-native/index.js +13 -0
  175. package/dist/react-native/index.js.map +1 -0
  176. package/dist/react-native/lroImpl.d.ts +11 -0
  177. package/dist/react-native/lroImpl.d.ts.map +1 -0
  178. package/dist/react-native/lroImpl.js +14 -0
  179. package/dist/react-native/lroImpl.js.map +1 -0
  180. package/dist/react-native/models/index.d.ts +1191 -0
  181. package/dist/react-native/models/index.d.ts.map +1 -0
  182. package/dist/react-native/models/index.js +176 -0
  183. package/dist/react-native/models/index.js.map +1 -0
  184. package/dist/react-native/models/mappers.d.ts +48 -0
  185. package/dist/react-native/models/mappers.d.ts.map +1 -0
  186. package/dist/react-native/models/mappers.js +1634 -0
  187. package/dist/react-native/models/mappers.js.map +1 -0
  188. package/dist/react-native/models/parameters.d.ts +22 -0
  189. package/dist/react-native/models/parameters.d.ts.map +1 -0
  190. package/dist/react-native/models/parameters.js +187 -0
  191. package/dist/react-native/models/parameters.js.map +1 -0
  192. package/dist/react-native/operations/applicationDefinitions.d.ts +113 -0
  193. package/dist/react-native/operations/applicationDefinitions.d.ts.map +1 -0
  194. package/dist/react-native/operations/applicationDefinitions.js +514 -0
  195. package/dist/react-native/operations/applicationDefinitions.js.map +1 -0
  196. package/dist/react-native/operations/applications.d.ts +208 -0
  197. package/dist/react-native/operations/applications.d.ts.map +1 -0
  198. package/dist/react-native/operations/applications.js +1010 -0
  199. package/dist/react-native/operations/applications.js.map +1 -0
  200. package/dist/react-native/operations/index.d.ts +4 -0
  201. package/dist/react-native/operations/index.d.ts.map +1 -0
  202. package/dist/react-native/operations/index.js +11 -0
  203. package/dist/react-native/operations/index.js.map +1 -0
  204. package/dist/react-native/operations/jitRequests.d.ts +63 -0
  205. package/dist/react-native/operations/jitRequests.d.ts.map +1 -0
  206. package/dist/react-native/operations/jitRequests.js +255 -0
  207. package/dist/react-native/operations/jitRequests.js.map +1 -0
  208. package/dist/react-native/operationsInterfaces/applicationDefinitions.d.ts +77 -0
  209. package/dist/react-native/operationsInterfaces/applicationDefinitions.d.ts.map +1 -0
  210. package/dist/react-native/operationsInterfaces/applicationDefinitions.js +9 -0
  211. package/dist/react-native/operationsInterfaces/applicationDefinitions.js.map +1 -0
  212. package/dist/react-native/operationsInterfaces/applications.d.ts +172 -0
  213. package/dist/react-native/operationsInterfaces/applications.d.ts.map +1 -0
  214. package/dist/react-native/operationsInterfaces/applications.js +9 -0
  215. package/dist/react-native/operationsInterfaces/applications.js.map +1 -0
  216. package/dist/react-native/operationsInterfaces/index.d.ts +4 -0
  217. package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -0
  218. package/dist/react-native/operationsInterfaces/index.js +11 -0
  219. package/dist/react-native/operationsInterfaces/index.js.map +1 -0
  220. package/dist/react-native/operationsInterfaces/jitRequests.d.ts +55 -0
  221. package/dist/react-native/operationsInterfaces/jitRequests.d.ts.map +1 -0
  222. package/dist/react-native/operationsInterfaces/jitRequests.js +9 -0
  223. package/dist/react-native/operationsInterfaces/jitRequests.js.map +1 -0
  224. package/dist/react-native/package.json +3 -0
  225. package/dist/react-native/pagingHelper.d.ts +13 -0
  226. package/dist/react-native/pagingHelper.d.ts.map +1 -0
  227. package/dist/react-native/pagingHelper.js +32 -0
  228. package/dist/react-native/pagingHelper.js.map +1 -0
  229. package/package.json +70 -41
  230. package/dist/index.js +0 -4127
  231. package/dist/index.js.map +0 -1
  232. package/dist/index.min.js +0 -1
  233. package/dist/index.min.js.map +0 -1
  234. package/dist-esm/samples-dev/applicationDefinitionsCreateOrUpdateByIdSample.d.ts +0 -2
  235. package/dist-esm/samples-dev/applicationDefinitionsCreateOrUpdateByIdSample.d.ts.map +0 -1
  236. package/dist-esm/samples-dev/applicationDefinitionsCreateOrUpdateByIdSample.js +0 -36
  237. package/dist-esm/samples-dev/applicationDefinitionsCreateOrUpdateByIdSample.js.map +0 -1
  238. package/dist-esm/samples-dev/applicationDefinitionsCreateOrUpdateSample.d.ts +0 -2
  239. package/dist-esm/samples-dev/applicationDefinitionsCreateOrUpdateSample.d.ts.map +0 -1
  240. package/dist-esm/samples-dev/applicationDefinitionsCreateOrUpdateSample.js +0 -36
  241. package/dist-esm/samples-dev/applicationDefinitionsCreateOrUpdateSample.js.map +0 -1
  242. package/dist-esm/samples-dev/applicationDefinitionsDeleteByIdSample.d.ts +0 -2
  243. package/dist-esm/samples-dev/applicationDefinitionsDeleteByIdSample.d.ts.map +0 -1
  244. package/dist-esm/samples-dev/applicationDefinitionsDeleteByIdSample.js +0 -36
  245. package/dist-esm/samples-dev/applicationDefinitionsDeleteByIdSample.js.map +0 -1
  246. package/dist-esm/samples-dev/applicationDefinitionsDeleteSample.d.ts +0 -2
  247. package/dist-esm/samples-dev/applicationDefinitionsDeleteSample.d.ts.map +0 -1
  248. package/dist-esm/samples-dev/applicationDefinitionsDeleteSample.js +0 -36
  249. package/dist-esm/samples-dev/applicationDefinitionsDeleteSample.js.map +0 -1
  250. package/dist-esm/samples-dev/applicationDefinitionsGetByIdSample.d.ts +0 -2
  251. package/dist-esm/samples-dev/applicationDefinitionsGetByIdSample.d.ts.map +0 -1
  252. package/dist-esm/samples-dev/applicationDefinitionsGetByIdSample.js +0 -36
  253. package/dist-esm/samples-dev/applicationDefinitionsGetByIdSample.js.map +0 -1
  254. package/dist-esm/samples-dev/applicationDefinitionsGetSample.d.ts +0 -2
  255. package/dist-esm/samples-dev/applicationDefinitionsGetSample.d.ts.map +0 -1
  256. package/dist-esm/samples-dev/applicationDefinitionsGetSample.js +0 -36
  257. package/dist-esm/samples-dev/applicationDefinitionsGetSample.js.map +0 -1
  258. package/dist-esm/samples-dev/applicationDefinitionsListByResourceGroupSample.d.ts +0 -2
  259. package/dist-esm/samples-dev/applicationDefinitionsListByResourceGroupSample.d.ts.map +0 -1
  260. package/dist-esm/samples-dev/applicationDefinitionsListByResourceGroupSample.js +0 -51
  261. package/dist-esm/samples-dev/applicationDefinitionsListByResourceGroupSample.js.map +0 -1
  262. package/dist-esm/samples-dev/applicationDefinitionsListBySubscriptionSample.d.ts +0 -2
  263. package/dist-esm/samples-dev/applicationDefinitionsListBySubscriptionSample.d.ts.map +0 -1
  264. package/dist-esm/samples-dev/applicationDefinitionsListBySubscriptionSample.js +0 -50
  265. package/dist-esm/samples-dev/applicationDefinitionsListBySubscriptionSample.js.map +0 -1
  266. package/dist-esm/samples-dev/applicationDefinitionsUpdateByIdSample.d.ts +0 -2
  267. package/dist-esm/samples-dev/applicationDefinitionsUpdateByIdSample.d.ts.map +0 -1
  268. package/dist-esm/samples-dev/applicationDefinitionsUpdateByIdSample.js +0 -32
  269. package/dist-esm/samples-dev/applicationDefinitionsUpdateByIdSample.js.map +0 -1
  270. package/dist-esm/samples-dev/applicationDefinitionsUpdateSample.d.ts +0 -2
  271. package/dist-esm/samples-dev/applicationDefinitionsUpdateSample.d.ts.map +0 -1
  272. package/dist-esm/samples-dev/applicationDefinitionsUpdateSample.js +0 -32
  273. package/dist-esm/samples-dev/applicationDefinitionsUpdateSample.js.map +0 -1
  274. package/dist-esm/samples-dev/applicationsCreateOrUpdateByIdSample.d.ts +0 -2
  275. package/dist-esm/samples-dev/applicationsCreateOrUpdateByIdSample.d.ts.map +0 -1
  276. package/dist-esm/samples-dev/applicationsCreateOrUpdateByIdSample.js +0 -32
  277. package/dist-esm/samples-dev/applicationsCreateOrUpdateByIdSample.js.map +0 -1
  278. package/dist-esm/samples-dev/applicationsCreateOrUpdateSample.d.ts +0 -2
  279. package/dist-esm/samples-dev/applicationsCreateOrUpdateSample.d.ts.map +0 -1
  280. package/dist-esm/samples-dev/applicationsCreateOrUpdateSample.js +0 -34
  281. package/dist-esm/samples-dev/applicationsCreateOrUpdateSample.js.map +0 -1
  282. package/dist-esm/samples-dev/applicationsDeleteByIdSample.d.ts +0 -2
  283. package/dist-esm/samples-dev/applicationsDeleteByIdSample.d.ts.map +0 -1
  284. package/dist-esm/samples-dev/applicationsDeleteByIdSample.js +0 -34
  285. package/dist-esm/samples-dev/applicationsDeleteByIdSample.js.map +0 -1
  286. package/dist-esm/samples-dev/applicationsDeleteSample.d.ts +0 -2
  287. package/dist-esm/samples-dev/applicationsDeleteSample.d.ts.map +0 -1
  288. package/dist-esm/samples-dev/applicationsDeleteSample.js +0 -36
  289. package/dist-esm/samples-dev/applicationsDeleteSample.js.map +0 -1
  290. package/dist-esm/samples-dev/applicationsGetByIdSample.d.ts +0 -2
  291. package/dist-esm/samples-dev/applicationsGetByIdSample.d.ts.map +0 -1
  292. package/dist-esm/samples-dev/applicationsGetByIdSample.js +0 -34
  293. package/dist-esm/samples-dev/applicationsGetByIdSample.js.map +0 -1
  294. package/dist-esm/samples-dev/applicationsGetSample.d.ts +0 -2
  295. package/dist-esm/samples-dev/applicationsGetSample.d.ts.map +0 -1
  296. package/dist-esm/samples-dev/applicationsGetSample.js +0 -36
  297. package/dist-esm/samples-dev/applicationsGetSample.js.map +0 -1
  298. package/dist-esm/samples-dev/applicationsListAllowedUpgradePlansSample.d.ts +0 -2
  299. package/dist-esm/samples-dev/applicationsListAllowedUpgradePlansSample.d.ts.map +0 -1
  300. package/dist-esm/samples-dev/applicationsListAllowedUpgradePlansSample.js +0 -36
  301. package/dist-esm/samples-dev/applicationsListAllowedUpgradePlansSample.js.map +0 -1
  302. package/dist-esm/samples-dev/applicationsListByResourceGroupSample.d.ts +0 -2
  303. package/dist-esm/samples-dev/applicationsListByResourceGroupSample.d.ts.map +0 -1
  304. package/dist-esm/samples-dev/applicationsListByResourceGroupSample.js +0 -51
  305. package/dist-esm/samples-dev/applicationsListByResourceGroupSample.js.map +0 -1
  306. package/dist-esm/samples-dev/applicationsListBySubscriptionSample.d.ts +0 -2
  307. package/dist-esm/samples-dev/applicationsListBySubscriptionSample.d.ts.map +0 -1
  308. package/dist-esm/samples-dev/applicationsListBySubscriptionSample.js +0 -50
  309. package/dist-esm/samples-dev/applicationsListBySubscriptionSample.js.map +0 -1
  310. package/dist-esm/samples-dev/applicationsListTokensSample.d.ts +0 -2
  311. package/dist-esm/samples-dev/applicationsListTokensSample.d.ts.map +0 -1
  312. package/dist-esm/samples-dev/applicationsListTokensSample.js +0 -33
  313. package/dist-esm/samples-dev/applicationsListTokensSample.js.map +0 -1
  314. package/dist-esm/samples-dev/applicationsRefreshPermissionsSample.d.ts +0 -2
  315. package/dist-esm/samples-dev/applicationsRefreshPermissionsSample.d.ts.map +0 -1
  316. package/dist-esm/samples-dev/applicationsRefreshPermissionsSample.js +0 -36
  317. package/dist-esm/samples-dev/applicationsRefreshPermissionsSample.js.map +0 -1
  318. package/dist-esm/samples-dev/applicationsUpdateAccessSample.d.ts +0 -2
  319. package/dist-esm/samples-dev/applicationsUpdateAccessSample.d.ts.map +0 -1
  320. package/dist-esm/samples-dev/applicationsUpdateAccessSample.js +0 -40
  321. package/dist-esm/samples-dev/applicationsUpdateAccessSample.js.map +0 -1
  322. package/dist-esm/samples-dev/applicationsUpdateByIdSample.d.ts +0 -2
  323. package/dist-esm/samples-dev/applicationsUpdateByIdSample.d.ts.map +0 -1
  324. package/dist-esm/samples-dev/applicationsUpdateByIdSample.js +0 -33
  325. package/dist-esm/samples-dev/applicationsUpdateByIdSample.js.map +0 -1
  326. package/dist-esm/samples-dev/applicationsUpdateSample.d.ts +0 -2
  327. package/dist-esm/samples-dev/applicationsUpdateSample.d.ts.map +0 -1
  328. package/dist-esm/samples-dev/applicationsUpdateSample.js +0 -35
  329. package/dist-esm/samples-dev/applicationsUpdateSample.js.map +0 -1
  330. package/dist-esm/samples-dev/jitRequestsCreateOrUpdateSample.d.ts +0 -2
  331. package/dist-esm/samples-dev/jitRequestsCreateOrUpdateSample.d.ts.map +0 -1
  332. package/dist-esm/samples-dev/jitRequestsCreateOrUpdateSample.js +0 -43
  333. package/dist-esm/samples-dev/jitRequestsCreateOrUpdateSample.js.map +0 -1
  334. package/dist-esm/samples-dev/jitRequestsDeleteSample.d.ts +0 -2
  335. package/dist-esm/samples-dev/jitRequestsDeleteSample.d.ts.map +0 -1
  336. package/dist-esm/samples-dev/jitRequestsDeleteSample.js +0 -36
  337. package/dist-esm/samples-dev/jitRequestsDeleteSample.js.map +0 -1
  338. package/dist-esm/samples-dev/jitRequestsGetSample.d.ts +0 -2
  339. package/dist-esm/samples-dev/jitRequestsGetSample.d.ts.map +0 -1
  340. package/dist-esm/samples-dev/jitRequestsGetSample.js +0 -36
  341. package/dist-esm/samples-dev/jitRequestsGetSample.js.map +0 -1
  342. package/dist-esm/samples-dev/jitRequestsListByResourceGroupSample.d.ts +0 -2
  343. package/dist-esm/samples-dev/jitRequestsListByResourceGroupSample.d.ts.map +0 -1
  344. package/dist-esm/samples-dev/jitRequestsListByResourceGroupSample.js +0 -35
  345. package/dist-esm/samples-dev/jitRequestsListByResourceGroupSample.js.map +0 -1
  346. package/dist-esm/samples-dev/jitRequestsListBySubscriptionSample.d.ts +0 -2
  347. package/dist-esm/samples-dev/jitRequestsListBySubscriptionSample.d.ts.map +0 -1
  348. package/dist-esm/samples-dev/jitRequestsListBySubscriptionSample.js +0 -34
  349. package/dist-esm/samples-dev/jitRequestsListBySubscriptionSample.js.map +0 -1
  350. package/dist-esm/samples-dev/jitRequestsUpdateSample.d.ts +0 -2
  351. package/dist-esm/samples-dev/jitRequestsUpdateSample.d.ts.map +0 -1
  352. package/dist-esm/samples-dev/jitRequestsUpdateSample.js +0 -30
  353. package/dist-esm/samples-dev/jitRequestsUpdateSample.js.map +0 -1
  354. package/dist-esm/samples-dev/listOperationsSample.d.ts +0 -2
  355. package/dist-esm/samples-dev/listOperationsSample.d.ts.map +0 -1
  356. package/dist-esm/samples-dev/listOperationsSample.js +0 -49
  357. package/dist-esm/samples-dev/listOperationsSample.js.map +0 -1
  358. package/dist-esm/src/applicationClient.d.ts.map +0 -1
  359. package/dist-esm/src/applicationClient.js.map +0 -1
  360. package/dist-esm/src/index.d.ts +0 -5
  361. package/dist-esm/src/index.js.map +0 -1
  362. package/dist-esm/src/lroImpl.js.map +0 -1
  363. package/dist-esm/src/models/index.js.map +0 -1
  364. package/dist-esm/src/models/mappers.js.map +0 -1
  365. package/dist-esm/src/models/parameters.js.map +0 -1
  366. package/dist-esm/src/operations/applicationDefinitions.d.ts.map +0 -1
  367. package/dist-esm/src/operations/applicationDefinitions.js.map +0 -1
  368. package/dist-esm/src/operations/applications.d.ts.map +0 -1
  369. package/dist-esm/src/operations/applications.js.map +0 -1
  370. package/dist-esm/src/operations/index.d.ts +0 -4
  371. package/dist-esm/src/operations/index.js.map +0 -1
  372. package/dist-esm/src/operations/jitRequests.d.ts.map +0 -1
  373. package/dist-esm/src/operations/jitRequests.js.map +0 -1
  374. package/dist-esm/src/operationsInterfaces/applicationDefinitions.d.ts.map +0 -1
  375. package/dist-esm/src/operationsInterfaces/applicationDefinitions.js.map +0 -1
  376. package/dist-esm/src/operationsInterfaces/applications.d.ts.map +0 -1
  377. package/dist-esm/src/operationsInterfaces/applications.js.map +0 -1
  378. package/dist-esm/src/operationsInterfaces/index.d.ts +0 -4
  379. package/dist-esm/src/operationsInterfaces/index.js.map +0 -1
  380. package/dist-esm/src/operationsInterfaces/jitRequests.d.ts.map +0 -1
  381. package/dist-esm/src/operationsInterfaces/jitRequests.js.map +0 -1
  382. package/dist-esm/src/pagingHelper.js.map +0 -1
  383. package/dist-esm/test/managedapplications_operations_test.spec.d.ts +0 -4
  384. package/dist-esm/test/managedapplications_operations_test.spec.d.ts.map +0 -1
  385. package/dist-esm/test/managedapplications_operations_test.spec.js +0 -75
  386. package/dist-esm/test/managedapplications_operations_test.spec.js.map +0 -1
  387. package/src/applicationClient.ts +0 -291
  388. package/src/lroImpl.ts +0 -38
  389. package/src/models/index.ts +0 -1346
  390. package/src/models/mappers.ts +0 -1752
  391. package/src/models/parameters.ts +0 -221
  392. package/src/operations/applicationDefinitions.ts +0 -652
  393. package/src/operations/applications.ts +0 -1397
  394. package/src/operations/jitRequests.ts +0 -366
  395. package/src/operationsInterfaces/applicationDefinitions.ts +0 -146
  396. package/src/operationsInterfaces/applications.ts +0 -312
  397. package/src/operationsInterfaces/index.ts +0 -11
  398. package/src/operationsInterfaces/jitRequests.ts +0 -110
  399. package/src/pagingHelper.ts +0 -39
  400. package/tsconfig.json +0 -33
  401. /package/{dist-esm/src → dist/browser}/lroImpl.d.ts +0 -0
  402. /package/{dist-esm/src → dist/browser}/lroImpl.d.ts.map +0 -0
  403. /package/{dist-esm/src → dist/browser}/lroImpl.js +0 -0
  404. /package/{dist-esm/src → dist/browser}/models/index.d.ts +0 -0
  405. /package/{dist-esm/src → dist/browser}/models/index.d.ts.map +0 -0
  406. /package/{dist-esm/src → dist/browser}/models/index.js +0 -0
  407. /package/{dist-esm/src → dist/browser}/models/mappers.d.ts +0 -0
  408. /package/{dist-esm/src → dist/browser}/models/mappers.d.ts.map +0 -0
  409. /package/{dist-esm/src → dist/browser}/models/mappers.js +0 -0
  410. /package/{dist-esm/src → dist/browser}/models/parameters.d.ts +0 -0
  411. /package/{dist-esm/src → dist/browser}/models/parameters.d.ts.map +0 -0
  412. /package/{dist-esm/src → dist/browser}/operationsInterfaces/applicationDefinitions.js +0 -0
  413. /package/{dist-esm/src → dist/browser}/operationsInterfaces/applications.js +0 -0
  414. /package/{dist-esm/src → dist/browser}/operationsInterfaces/jitRequests.js +0 -0
  415. /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts +0 -0
  416. /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts.map +0 -0
  417. /package/{dist-esm/src → dist/browser}/pagingHelper.js +0 -0
  418. /package/{types → dist/commonjs}/tsdoc-metadata.json +0 -0
package/dist/index.js DELETED
@@ -1,4127 +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 _interopNamespaceDefault(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__*/_interopNamespaceDefault(coreClient);
28
- var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespaceDefault(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 ProvisioningState} that the service accepts. */
86
- exports.KnownProvisioningState = void 0;
87
- (function (KnownProvisioningState) {
88
- /** NotSpecified */
89
- KnownProvisioningState["NotSpecified"] = "NotSpecified";
90
- /** Accepted */
91
- KnownProvisioningState["Accepted"] = "Accepted";
92
- /** Running */
93
- KnownProvisioningState["Running"] = "Running";
94
- /** Deleting */
95
- KnownProvisioningState["Deleting"] = "Deleting";
96
- /** Deleted */
97
- KnownProvisioningState["Deleted"] = "Deleted";
98
- /** Canceled */
99
- KnownProvisioningState["Canceled"] = "Canceled";
100
- /** Failed */
101
- KnownProvisioningState["Failed"] = "Failed";
102
- /** Succeeded */
103
- KnownProvisioningState["Succeeded"] = "Succeeded";
104
- /** Updating */
105
- KnownProvisioningState["Updating"] = "Updating";
106
- })(exports.KnownProvisioningState || (exports.KnownProvisioningState = {}));
107
- /** Known values of {@link JitApprovalMode} that the service accepts. */
108
- exports.KnownJitApprovalMode = void 0;
109
- (function (KnownJitApprovalMode) {
110
- /** NotSpecified */
111
- KnownJitApprovalMode["NotSpecified"] = "NotSpecified";
112
- /** AutoApprove */
113
- KnownJitApprovalMode["AutoApprove"] = "AutoApprove";
114
- /** ManualApprove */
115
- KnownJitApprovalMode["ManualApprove"] = "ManualApprove";
116
- })(exports.KnownJitApprovalMode || (exports.KnownJitApprovalMode = {}));
117
- /** Known values of {@link JitApproverType} that the service accepts. */
118
- exports.KnownJitApproverType = void 0;
119
- (function (KnownJitApproverType) {
120
- /** User */
121
- KnownJitApproverType["User"] = "user";
122
- /** Group */
123
- KnownJitApproverType["Group"] = "group";
124
- })(exports.KnownJitApproverType || (exports.KnownJitApproverType = {}));
125
- /** Known values of {@link ApplicationManagementMode} that the service accepts. */
126
- exports.KnownApplicationManagementMode = void 0;
127
- (function (KnownApplicationManagementMode) {
128
- /** NotSpecified */
129
- KnownApplicationManagementMode["NotSpecified"] = "NotSpecified";
130
- /** Unmanaged */
131
- KnownApplicationManagementMode["Unmanaged"] = "Unmanaged";
132
- /** Managed */
133
- KnownApplicationManagementMode["Managed"] = "Managed";
134
- })(exports.KnownApplicationManagementMode || (exports.KnownApplicationManagementMode = {}));
135
- /** Known values of {@link ApplicationArtifactName} that the service accepts. */
136
- exports.KnownApplicationArtifactName = void 0;
137
- (function (KnownApplicationArtifactName) {
138
- /** NotSpecified */
139
- KnownApplicationArtifactName["NotSpecified"] = "NotSpecified";
140
- /** ViewDefinition */
141
- KnownApplicationArtifactName["ViewDefinition"] = "ViewDefinition";
142
- /** Authorizations */
143
- KnownApplicationArtifactName["Authorizations"] = "Authorizations";
144
- /** CustomRoleDefinition */
145
- KnownApplicationArtifactName["CustomRoleDefinition"] = "CustomRoleDefinition";
146
- })(exports.KnownApplicationArtifactName || (exports.KnownApplicationArtifactName = {}));
147
- /** Known values of {@link CreatedByType} that the service accepts. */
148
- exports.KnownCreatedByType = void 0;
149
- (function (KnownCreatedByType) {
150
- /** User */
151
- KnownCreatedByType["User"] = "User";
152
- /** Application */
153
- KnownCreatedByType["Application"] = "Application";
154
- /** ManagedIdentity */
155
- KnownCreatedByType["ManagedIdentity"] = "ManagedIdentity";
156
- /** Key */
157
- KnownCreatedByType["Key"] = "Key";
158
- })(exports.KnownCreatedByType || (exports.KnownCreatedByType = {}));
159
- /** Known values of {@link ApplicationDefinitionArtifactName} that the service accepts. */
160
- exports.KnownApplicationDefinitionArtifactName = void 0;
161
- (function (KnownApplicationDefinitionArtifactName) {
162
- /** NotSpecified */
163
- KnownApplicationDefinitionArtifactName["NotSpecified"] = "NotSpecified";
164
- /** ApplicationResourceTemplate */
165
- KnownApplicationDefinitionArtifactName["ApplicationResourceTemplate"] = "ApplicationResourceTemplate";
166
- /** CreateUiDefinition */
167
- KnownApplicationDefinitionArtifactName["CreateUiDefinition"] = "CreateUiDefinition";
168
- /** MainTemplateParameters */
169
- KnownApplicationDefinitionArtifactName["MainTemplateParameters"] = "MainTemplateParameters";
170
- })(exports.KnownApplicationDefinitionArtifactName || (exports.KnownApplicationDefinitionArtifactName = {}));
171
- /** Known values of {@link DeploymentMode} that the service accepts. */
172
- exports.KnownDeploymentMode = void 0;
173
- (function (KnownDeploymentMode) {
174
- /** NotSpecified */
175
- KnownDeploymentMode["NotSpecified"] = "NotSpecified";
176
- /** Incremental */
177
- KnownDeploymentMode["Incremental"] = "Incremental";
178
- /** Complete */
179
- KnownDeploymentMode["Complete"] = "Complete";
180
- })(exports.KnownDeploymentMode || (exports.KnownDeploymentMode = {}));
181
- /** Known values of {@link JitSchedulingType} that the service accepts. */
182
- exports.KnownJitSchedulingType = void 0;
183
- (function (KnownJitSchedulingType) {
184
- /** NotSpecified */
185
- KnownJitSchedulingType["NotSpecified"] = "NotSpecified";
186
- /** Once */
187
- KnownJitSchedulingType["Once"] = "Once";
188
- /** Recurring */
189
- KnownJitSchedulingType["Recurring"] = "Recurring";
190
- })(exports.KnownJitSchedulingType || (exports.KnownJitSchedulingType = {}));
191
- /** Known values of {@link JitRequestState} that the service accepts. */
192
- exports.KnownJitRequestState = void 0;
193
- (function (KnownJitRequestState) {
194
- /** NotSpecified */
195
- KnownJitRequestState["NotSpecified"] = "NotSpecified";
196
- /** Pending */
197
- KnownJitRequestState["Pending"] = "Pending";
198
- /** Approved */
199
- KnownJitRequestState["Approved"] = "Approved";
200
- /** Denied */
201
- KnownJitRequestState["Denied"] = "Denied";
202
- /** Failed */
203
- KnownJitRequestState["Failed"] = "Failed";
204
- /** Canceled */
205
- KnownJitRequestState["Canceled"] = "Canceled";
206
- /** Expired */
207
- KnownJitRequestState["Expired"] = "Expired";
208
- /** Timeout */
209
- KnownJitRequestState["Timeout"] = "Timeout";
210
- })(exports.KnownJitRequestState || (exports.KnownJitRequestState = {}));
211
- /** Known values of {@link Status} that the service accepts. */
212
- exports.KnownStatus = void 0;
213
- (function (KnownStatus) {
214
- /** NotSpecified */
215
- KnownStatus["NotSpecified"] = "NotSpecified";
216
- /** Elevate */
217
- KnownStatus["Elevate"] = "Elevate";
218
- /** Remove */
219
- KnownStatus["Remove"] = "Remove";
220
- })(exports.KnownStatus || (exports.KnownStatus = {}));
221
- /** Known values of {@link Substatus} that the service accepts. */
222
- exports.KnownSubstatus = void 0;
223
- (function (KnownSubstatus) {
224
- /** NotSpecified */
225
- KnownSubstatus["NotSpecified"] = "NotSpecified";
226
- /** Approved */
227
- KnownSubstatus["Approved"] = "Approved";
228
- /** Denied */
229
- KnownSubstatus["Denied"] = "Denied";
230
- /** Failed */
231
- KnownSubstatus["Failed"] = "Failed";
232
- /** Expired */
233
- KnownSubstatus["Expired"] = "Expired";
234
- /** Timeout */
235
- KnownSubstatus["Timeout"] = "Timeout";
236
- })(exports.KnownSubstatus || (exports.KnownSubstatus = {}));
237
-
238
- /*
239
- * Copyright (c) Microsoft Corporation.
240
- * Licensed under the MIT License.
241
- *
242
- * Code generated by Microsoft (R) AutoRest Code Generator.
243
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
244
- */
245
- const OperationListResult = {
246
- type: {
247
- name: "Composite",
248
- className: "OperationListResult",
249
- modelProperties: {
250
- value: {
251
- serializedName: "value",
252
- readOnly: true,
253
- type: {
254
- name: "Sequence",
255
- element: {
256
- type: {
257
- name: "Composite",
258
- className: "Operation"
259
- }
260
- }
261
- }
262
- },
263
- nextLink: {
264
- serializedName: "nextLink",
265
- readOnly: true,
266
- type: {
267
- name: "String"
268
- }
269
- }
270
- }
271
- }
272
- };
273
- const Operation = {
274
- type: {
275
- name: "Composite",
276
- className: "Operation",
277
- modelProperties: {
278
- name: {
279
- serializedName: "name",
280
- readOnly: true,
281
- type: {
282
- name: "String"
283
- }
284
- },
285
- isDataAction: {
286
- serializedName: "isDataAction",
287
- readOnly: true,
288
- type: {
289
- name: "Boolean"
290
- }
291
- },
292
- display: {
293
- serializedName: "display",
294
- type: {
295
- name: "Composite",
296
- className: "OperationDisplay"
297
- }
298
- },
299
- origin: {
300
- serializedName: "origin",
301
- readOnly: true,
302
- type: {
303
- name: "String"
304
- }
305
- },
306
- actionType: {
307
- serializedName: "actionType",
308
- readOnly: true,
309
- type: {
310
- name: "String"
311
- }
312
- }
313
- }
314
- }
315
- };
316
- const OperationDisplay = {
317
- type: {
318
- name: "Composite",
319
- className: "OperationDisplay",
320
- modelProperties: {
321
- provider: {
322
- serializedName: "provider",
323
- readOnly: true,
324
- type: {
325
- name: "String"
326
- }
327
- },
328
- resource: {
329
- serializedName: "resource",
330
- readOnly: true,
331
- type: {
332
- name: "String"
333
- }
334
- },
335
- operation: {
336
- serializedName: "operation",
337
- readOnly: true,
338
- type: {
339
- name: "String"
340
- }
341
- },
342
- description: {
343
- serializedName: "description",
344
- readOnly: true,
345
- type: {
346
- name: "String"
347
- }
348
- }
349
- }
350
- }
351
- };
352
- const ErrorResponse = {
353
- type: {
354
- name: "Composite",
355
- className: "ErrorResponse",
356
- modelProperties: {
357
- error: {
358
- serializedName: "error",
359
- type: {
360
- name: "Composite",
361
- className: "ErrorDetail"
362
- }
363
- }
364
- }
365
- }
366
- };
367
- const ErrorDetail = {
368
- type: {
369
- name: "Composite",
370
- className: "ErrorDetail",
371
- modelProperties: {
372
- code: {
373
- serializedName: "code",
374
- readOnly: true,
375
- type: {
376
- name: "String"
377
- }
378
- },
379
- message: {
380
- serializedName: "message",
381
- readOnly: true,
382
- type: {
383
- name: "String"
384
- }
385
- },
386
- target: {
387
- serializedName: "target",
388
- readOnly: true,
389
- type: {
390
- name: "String"
391
- }
392
- },
393
- details: {
394
- serializedName: "details",
395
- readOnly: true,
396
- type: {
397
- name: "Sequence",
398
- element: {
399
- type: {
400
- name: "Composite",
401
- className: "ErrorDetail"
402
- }
403
- }
404
- }
405
- },
406
- additionalInfo: {
407
- serializedName: "additionalInfo",
408
- readOnly: true,
409
- type: {
410
- name: "Sequence",
411
- element: {
412
- type: {
413
- name: "Composite",
414
- className: "ErrorAdditionalInfo"
415
- }
416
- }
417
- }
418
- }
419
- }
420
- }
421
- };
422
- const ErrorAdditionalInfo = {
423
- type: {
424
- name: "Composite",
425
- className: "ErrorAdditionalInfo",
426
- modelProperties: {
427
- type: {
428
- serializedName: "type",
429
- readOnly: true,
430
- type: {
431
- name: "String"
432
- }
433
- },
434
- info: {
435
- serializedName: "info",
436
- readOnly: true,
437
- type: {
438
- name: "Dictionary",
439
- value: { type: { name: "any" } }
440
- }
441
- }
442
- }
443
- }
444
- };
445
- const ApplicationBillingDetailsDefinition = {
446
- type: {
447
- name: "Composite",
448
- className: "ApplicationBillingDetailsDefinition",
449
- modelProperties: {
450
- resourceUsageId: {
451
- serializedName: "resourceUsageId",
452
- type: {
453
- name: "String"
454
- }
455
- }
456
- }
457
- }
458
- };
459
- const ApplicationJitAccessPolicy = {
460
- type: {
461
- name: "Composite",
462
- className: "ApplicationJitAccessPolicy",
463
- modelProperties: {
464
- jitAccessEnabled: {
465
- serializedName: "jitAccessEnabled",
466
- required: true,
467
- type: {
468
- name: "Boolean"
469
- }
470
- },
471
- jitApprovalMode: {
472
- serializedName: "jitApprovalMode",
473
- type: {
474
- name: "String"
475
- }
476
- },
477
- jitApprovers: {
478
- serializedName: "jitApprovers",
479
- type: {
480
- name: "Sequence",
481
- element: {
482
- type: {
483
- name: "Composite",
484
- className: "JitApproverDefinition"
485
- }
486
- }
487
- }
488
- },
489
- maximumJitAccessDuration: {
490
- serializedName: "maximumJitAccessDuration",
491
- type: {
492
- name: "String"
493
- }
494
- }
495
- }
496
- }
497
- };
498
- const JitApproverDefinition = {
499
- type: {
500
- name: "Composite",
501
- className: "JitApproverDefinition",
502
- modelProperties: {
503
- id: {
504
- serializedName: "id",
505
- required: true,
506
- type: {
507
- name: "String"
508
- }
509
- },
510
- type: {
511
- serializedName: "type",
512
- type: {
513
- name: "String"
514
- }
515
- },
516
- displayName: {
517
- serializedName: "displayName",
518
- type: {
519
- name: "String"
520
- }
521
- }
522
- }
523
- }
524
- };
525
- const ApplicationAuthorization = {
526
- type: {
527
- name: "Composite",
528
- className: "ApplicationAuthorization",
529
- modelProperties: {
530
- principalId: {
531
- serializedName: "principalId",
532
- required: true,
533
- type: {
534
- name: "String"
535
- }
536
- },
537
- roleDefinitionId: {
538
- serializedName: "roleDefinitionId",
539
- required: true,
540
- type: {
541
- name: "String"
542
- }
543
- }
544
- }
545
- }
546
- };
547
- const ApplicationPackageContact = {
548
- type: {
549
- name: "Composite",
550
- className: "ApplicationPackageContact",
551
- modelProperties: {
552
- contactName: {
553
- serializedName: "contactName",
554
- type: {
555
- name: "String"
556
- }
557
- },
558
- email: {
559
- serializedName: "email",
560
- required: true,
561
- type: {
562
- name: "String"
563
- }
564
- },
565
- phone: {
566
- serializedName: "phone",
567
- required: true,
568
- type: {
569
- name: "String"
570
- }
571
- }
572
- }
573
- }
574
- };
575
- const ApplicationPackageSupportUrls = {
576
- type: {
577
- name: "Composite",
578
- className: "ApplicationPackageSupportUrls",
579
- modelProperties: {
580
- publicAzure: {
581
- serializedName: "publicAzure",
582
- type: {
583
- name: "String"
584
- }
585
- },
586
- governmentCloud: {
587
- serializedName: "governmentCloud",
588
- type: {
589
- name: "String"
590
- }
591
- }
592
- }
593
- }
594
- };
595
- const ApplicationArtifact = {
596
- type: {
597
- name: "Composite",
598
- className: "ApplicationArtifact",
599
- modelProperties: {
600
- name: {
601
- serializedName: "name",
602
- required: true,
603
- type: {
604
- name: "String"
605
- }
606
- },
607
- uri: {
608
- serializedName: "uri",
609
- required: true,
610
- type: {
611
- name: "String"
612
- }
613
- },
614
- type: {
615
- serializedName: "type",
616
- required: true,
617
- type: {
618
- name: "Enum",
619
- allowedValues: ["NotSpecified", "Template", "Custom"]
620
- }
621
- }
622
- }
623
- }
624
- };
625
- const ApplicationClientDetails = {
626
- type: {
627
- name: "Composite",
628
- className: "ApplicationClientDetails",
629
- modelProperties: {
630
- oid: {
631
- serializedName: "oid",
632
- type: {
633
- name: "String"
634
- }
635
- },
636
- puid: {
637
- serializedName: "puid",
638
- type: {
639
- name: "String"
640
- }
641
- },
642
- applicationId: {
643
- serializedName: "applicationId",
644
- type: {
645
- name: "String"
646
- }
647
- }
648
- }
649
- }
650
- };
651
- const Plan = {
652
- type: {
653
- name: "Composite",
654
- className: "Plan",
655
- modelProperties: {
656
- name: {
657
- serializedName: "name",
658
- required: true,
659
- type: {
660
- name: "String"
661
- }
662
- },
663
- publisher: {
664
- serializedName: "publisher",
665
- required: true,
666
- type: {
667
- name: "String"
668
- }
669
- },
670
- product: {
671
- serializedName: "product",
672
- required: true,
673
- type: {
674
- name: "String"
675
- }
676
- },
677
- promotionCode: {
678
- serializedName: "promotionCode",
679
- type: {
680
- name: "String"
681
- }
682
- },
683
- version: {
684
- serializedName: "version",
685
- required: true,
686
- type: {
687
- name: "String"
688
- }
689
- }
690
- }
691
- }
692
- };
693
- const Identity = {
694
- type: {
695
- name: "Composite",
696
- className: "Identity",
697
- modelProperties: {
698
- principalId: {
699
- serializedName: "principalId",
700
- readOnly: true,
701
- type: {
702
- name: "String"
703
- }
704
- },
705
- tenantId: {
706
- serializedName: "tenantId",
707
- readOnly: true,
708
- type: {
709
- name: "String"
710
- }
711
- },
712
- type: {
713
- serializedName: "type",
714
- type: {
715
- name: "Enum",
716
- allowedValues: [
717
- "SystemAssigned",
718
- "UserAssigned",
719
- "SystemAssigned, UserAssigned",
720
- "None"
721
- ]
722
- }
723
- },
724
- userAssignedIdentities: {
725
- serializedName: "userAssignedIdentities",
726
- type: {
727
- name: "Dictionary",
728
- value: {
729
- type: {
730
- name: "Composite",
731
- className: "UserAssignedResourceIdentity"
732
- }
733
- }
734
- }
735
- }
736
- }
737
- }
738
- };
739
- const UserAssignedResourceIdentity = {
740
- type: {
741
- name: "Composite",
742
- className: "UserAssignedResourceIdentity",
743
- modelProperties: {
744
- principalId: {
745
- serializedName: "principalId",
746
- readOnly: true,
747
- type: {
748
- name: "String"
749
- }
750
- },
751
- tenantId: {
752
- serializedName: "tenantId",
753
- readOnly: true,
754
- type: {
755
- name: "String"
756
- }
757
- }
758
- }
759
- }
760
- };
761
- const Sku = {
762
- type: {
763
- name: "Composite",
764
- className: "Sku",
765
- modelProperties: {
766
- name: {
767
- serializedName: "name",
768
- required: true,
769
- type: {
770
- name: "String"
771
- }
772
- },
773
- tier: {
774
- serializedName: "tier",
775
- type: {
776
- name: "String"
777
- }
778
- },
779
- size: {
780
- serializedName: "size",
781
- type: {
782
- name: "String"
783
- }
784
- },
785
- family: {
786
- serializedName: "family",
787
- type: {
788
- name: "String"
789
- }
790
- },
791
- model: {
792
- serializedName: "model",
793
- type: {
794
- name: "String"
795
- }
796
- },
797
- capacity: {
798
- serializedName: "capacity",
799
- type: {
800
- name: "Number"
801
- }
802
- }
803
- }
804
- }
805
- };
806
- const Resource = {
807
- type: {
808
- name: "Composite",
809
- className: "Resource",
810
- modelProperties: {
811
- id: {
812
- serializedName: "id",
813
- readOnly: true,
814
- type: {
815
- name: "String"
816
- }
817
- },
818
- name: {
819
- serializedName: "name",
820
- readOnly: true,
821
- type: {
822
- name: "String"
823
- }
824
- },
825
- type: {
826
- serializedName: "type",
827
- readOnly: true,
828
- type: {
829
- name: "String"
830
- }
831
- },
832
- location: {
833
- serializedName: "location",
834
- type: {
835
- name: "String"
836
- }
837
- },
838
- tags: {
839
- serializedName: "tags",
840
- type: {
841
- name: "Dictionary",
842
- value: { type: { name: "String" } }
843
- }
844
- },
845
- systemData: {
846
- serializedName: "systemData",
847
- type: {
848
- name: "Composite",
849
- className: "SystemData"
850
- }
851
- }
852
- }
853
- }
854
- };
855
- const SystemData = {
856
- type: {
857
- name: "Composite",
858
- className: "SystemData",
859
- modelProperties: {
860
- createdBy: {
861
- serializedName: "createdBy",
862
- type: {
863
- name: "String"
864
- }
865
- },
866
- createdByType: {
867
- serializedName: "createdByType",
868
- type: {
869
- name: "String"
870
- }
871
- },
872
- createdAt: {
873
- serializedName: "createdAt",
874
- type: {
875
- name: "DateTime"
876
- }
877
- },
878
- lastModifiedBy: {
879
- serializedName: "lastModifiedBy",
880
- type: {
881
- name: "String"
882
- }
883
- },
884
- lastModifiedByType: {
885
- serializedName: "lastModifiedByType",
886
- type: {
887
- name: "String"
888
- }
889
- },
890
- lastModifiedAt: {
891
- serializedName: "lastModifiedAt",
892
- type: {
893
- name: "DateTime"
894
- }
895
- }
896
- }
897
- }
898
- };
899
- const PlanPatchable = {
900
- type: {
901
- name: "Composite",
902
- className: "PlanPatchable",
903
- modelProperties: {
904
- name: {
905
- serializedName: "name",
906
- type: {
907
- name: "String"
908
- }
909
- },
910
- publisher: {
911
- serializedName: "publisher",
912
- type: {
913
- name: "String"
914
- }
915
- },
916
- product: {
917
- serializedName: "product",
918
- type: {
919
- name: "String"
920
- }
921
- },
922
- promotionCode: {
923
- serializedName: "promotionCode",
924
- type: {
925
- name: "String"
926
- }
927
- },
928
- version: {
929
- serializedName: "version",
930
- type: {
931
- name: "String"
932
- }
933
- }
934
- }
935
- }
936
- };
937
- const ApplicationDefinitionArtifact = {
938
- type: {
939
- name: "Composite",
940
- className: "ApplicationDefinitionArtifact",
941
- modelProperties: {
942
- name: {
943
- serializedName: "name",
944
- required: true,
945
- type: {
946
- name: "String"
947
- }
948
- },
949
- uri: {
950
- serializedName: "uri",
951
- required: true,
952
- type: {
953
- name: "String"
954
- }
955
- },
956
- type: {
957
- serializedName: "type",
958
- required: true,
959
- type: {
960
- name: "Enum",
961
- allowedValues: ["NotSpecified", "Template", "Custom"]
962
- }
963
- }
964
- }
965
- }
966
- };
967
- const ApplicationNotificationPolicy = {
968
- type: {
969
- name: "Composite",
970
- className: "ApplicationNotificationPolicy",
971
- modelProperties: {
972
- notificationEndpoints: {
973
- serializedName: "notificationEndpoints",
974
- required: true,
975
- type: {
976
- name: "Sequence",
977
- element: {
978
- type: {
979
- name: "Composite",
980
- className: "ApplicationNotificationEndpoint"
981
- }
982
- }
983
- }
984
- }
985
- }
986
- }
987
- };
988
- const ApplicationNotificationEndpoint = {
989
- type: {
990
- name: "Composite",
991
- className: "ApplicationNotificationEndpoint",
992
- modelProperties: {
993
- uri: {
994
- serializedName: "uri",
995
- required: true,
996
- type: {
997
- name: "String"
998
- }
999
- }
1000
- }
1001
- }
1002
- };
1003
- const ApplicationPackageLockingPolicyDefinition = {
1004
- type: {
1005
- name: "Composite",
1006
- className: "ApplicationPackageLockingPolicyDefinition",
1007
- modelProperties: {
1008
- allowedActions: {
1009
- serializedName: "allowedActions",
1010
- type: {
1011
- name: "Sequence",
1012
- element: {
1013
- type: {
1014
- name: "String"
1015
- }
1016
- }
1017
- }
1018
- },
1019
- allowedDataActions: {
1020
- serializedName: "allowedDataActions",
1021
- type: {
1022
- name: "Sequence",
1023
- element: {
1024
- type: {
1025
- name: "String"
1026
- }
1027
- }
1028
- }
1029
- }
1030
- }
1031
- }
1032
- };
1033
- const ApplicationDeploymentPolicy = {
1034
- type: {
1035
- name: "Composite",
1036
- className: "ApplicationDeploymentPolicy",
1037
- modelProperties: {
1038
- deploymentMode: {
1039
- serializedName: "deploymentMode",
1040
- required: true,
1041
- type: {
1042
- name: "String"
1043
- }
1044
- }
1045
- }
1046
- }
1047
- };
1048
- const ApplicationManagementPolicy = {
1049
- type: {
1050
- name: "Composite",
1051
- className: "ApplicationManagementPolicy",
1052
- modelProperties: {
1053
- mode: {
1054
- serializedName: "mode",
1055
- type: {
1056
- name: "String"
1057
- }
1058
- }
1059
- }
1060
- }
1061
- };
1062
- const ApplicationPolicy = {
1063
- type: {
1064
- name: "Composite",
1065
- className: "ApplicationPolicy",
1066
- modelProperties: {
1067
- name: {
1068
- serializedName: "name",
1069
- type: {
1070
- name: "String"
1071
- }
1072
- },
1073
- policyDefinitionId: {
1074
- serializedName: "policyDefinitionId",
1075
- type: {
1076
- name: "String"
1077
- }
1078
- },
1079
- parameters: {
1080
- serializedName: "parameters",
1081
- type: {
1082
- name: "String"
1083
- }
1084
- }
1085
- }
1086
- }
1087
- };
1088
- const ApplicationDefinitionPatchable = {
1089
- type: {
1090
- name: "Composite",
1091
- className: "ApplicationDefinitionPatchable",
1092
- modelProperties: {
1093
- tags: {
1094
- serializedName: "tags",
1095
- type: {
1096
- name: "Dictionary",
1097
- value: { type: { name: "String" } }
1098
- }
1099
- }
1100
- }
1101
- }
1102
- };
1103
- const ApplicationDefinitionListResult = {
1104
- type: {
1105
- name: "Composite",
1106
- className: "ApplicationDefinitionListResult",
1107
- modelProperties: {
1108
- value: {
1109
- serializedName: "value",
1110
- type: {
1111
- name: "Sequence",
1112
- element: {
1113
- type: {
1114
- name: "Composite",
1115
- className: "ApplicationDefinition"
1116
- }
1117
- }
1118
- }
1119
- },
1120
- nextLink: {
1121
- serializedName: "nextLink",
1122
- type: {
1123
- name: "String"
1124
- }
1125
- }
1126
- }
1127
- }
1128
- };
1129
- const ApplicationListResult = {
1130
- type: {
1131
- name: "Composite",
1132
- className: "ApplicationListResult",
1133
- modelProperties: {
1134
- value: {
1135
- serializedName: "value",
1136
- type: {
1137
- name: "Sequence",
1138
- element: {
1139
- type: {
1140
- name: "Composite",
1141
- className: "Application"
1142
- }
1143
- }
1144
- }
1145
- },
1146
- nextLink: {
1147
- serializedName: "nextLink",
1148
- type: {
1149
- name: "String"
1150
- }
1151
- }
1152
- }
1153
- }
1154
- };
1155
- const JitAuthorizationPolicies = {
1156
- type: {
1157
- name: "Composite",
1158
- className: "JitAuthorizationPolicies",
1159
- modelProperties: {
1160
- principalId: {
1161
- serializedName: "principalId",
1162
- required: true,
1163
- type: {
1164
- name: "String"
1165
- }
1166
- },
1167
- roleDefinitionId: {
1168
- serializedName: "roleDefinitionId",
1169
- required: true,
1170
- type: {
1171
- name: "String"
1172
- }
1173
- }
1174
- }
1175
- }
1176
- };
1177
- const JitSchedulingPolicy = {
1178
- type: {
1179
- name: "Composite",
1180
- className: "JitSchedulingPolicy",
1181
- modelProperties: {
1182
- type: {
1183
- serializedName: "type",
1184
- required: true,
1185
- type: {
1186
- name: "String"
1187
- }
1188
- },
1189
- duration: {
1190
- serializedName: "duration",
1191
- required: true,
1192
- type: {
1193
- name: "TimeSpan"
1194
- }
1195
- },
1196
- startTime: {
1197
- serializedName: "startTime",
1198
- required: true,
1199
- type: {
1200
- name: "DateTime"
1201
- }
1202
- }
1203
- }
1204
- }
1205
- };
1206
- const JitRequestPatchable = {
1207
- type: {
1208
- name: "Composite",
1209
- className: "JitRequestPatchable",
1210
- modelProperties: {
1211
- tags: {
1212
- serializedName: "tags",
1213
- type: {
1214
- name: "Dictionary",
1215
- value: { type: { name: "String" } }
1216
- }
1217
- }
1218
- }
1219
- }
1220
- };
1221
- const JitRequestDefinitionListResult = {
1222
- type: {
1223
- name: "Composite",
1224
- className: "JitRequestDefinitionListResult",
1225
- modelProperties: {
1226
- value: {
1227
- serializedName: "value",
1228
- type: {
1229
- name: "Sequence",
1230
- element: {
1231
- type: {
1232
- name: "Composite",
1233
- className: "JitRequestDefinition"
1234
- }
1235
- }
1236
- }
1237
- },
1238
- nextLink: {
1239
- serializedName: "nextLink",
1240
- type: {
1241
- name: "String"
1242
- }
1243
- }
1244
- }
1245
- }
1246
- };
1247
- const AllowedUpgradePlansResult = {
1248
- type: {
1249
- name: "Composite",
1250
- className: "AllowedUpgradePlansResult",
1251
- modelProperties: {
1252
- value: {
1253
- serializedName: "value",
1254
- type: {
1255
- name: "Sequence",
1256
- element: {
1257
- type: {
1258
- name: "Composite",
1259
- className: "Plan"
1260
- }
1261
- }
1262
- }
1263
- }
1264
- }
1265
- }
1266
- };
1267
- const UpdateAccessDefinition = {
1268
- type: {
1269
- name: "Composite",
1270
- className: "UpdateAccessDefinition",
1271
- modelProperties: {
1272
- approver: {
1273
- serializedName: "approver",
1274
- type: {
1275
- name: "String"
1276
- }
1277
- },
1278
- metadata: {
1279
- serializedName: "metadata",
1280
- type: {
1281
- name: "Composite",
1282
- className: "JitRequestMetadata"
1283
- }
1284
- },
1285
- status: {
1286
- serializedName: "status",
1287
- required: true,
1288
- type: {
1289
- name: "String"
1290
- }
1291
- },
1292
- subStatus: {
1293
- serializedName: "subStatus",
1294
- required: true,
1295
- type: {
1296
- name: "String"
1297
- }
1298
- }
1299
- }
1300
- }
1301
- };
1302
- const JitRequestMetadata = {
1303
- type: {
1304
- name: "Composite",
1305
- className: "JitRequestMetadata",
1306
- modelProperties: {
1307
- originRequestId: {
1308
- serializedName: "originRequestId",
1309
- type: {
1310
- name: "String"
1311
- }
1312
- },
1313
- requestorId: {
1314
- serializedName: "requestorId",
1315
- type: {
1316
- name: "String"
1317
- }
1318
- },
1319
- tenantDisplayName: {
1320
- serializedName: "tenantDisplayName",
1321
- type: {
1322
- name: "String"
1323
- }
1324
- },
1325
- subjectDisplayName: {
1326
- serializedName: "subjectDisplayName",
1327
- type: {
1328
- name: "String"
1329
- }
1330
- }
1331
- }
1332
- }
1333
- };
1334
- const ListTokenRequest = {
1335
- type: {
1336
- name: "Composite",
1337
- className: "ListTokenRequest",
1338
- modelProperties: {
1339
- authorizationAudience: {
1340
- serializedName: "authorizationAudience",
1341
- type: {
1342
- name: "String"
1343
- }
1344
- },
1345
- userAssignedIdentities: {
1346
- serializedName: "userAssignedIdentities",
1347
- type: {
1348
- name: "Sequence",
1349
- element: {
1350
- type: {
1351
- name: "String"
1352
- }
1353
- }
1354
- }
1355
- }
1356
- }
1357
- }
1358
- };
1359
- const ManagedIdentityTokenResult = {
1360
- type: {
1361
- name: "Composite",
1362
- className: "ManagedIdentityTokenResult",
1363
- modelProperties: {
1364
- value: {
1365
- serializedName: "value",
1366
- type: {
1367
- name: "Sequence",
1368
- element: {
1369
- type: {
1370
- name: "Composite",
1371
- className: "ManagedIdentityToken"
1372
- }
1373
- }
1374
- }
1375
- }
1376
- }
1377
- }
1378
- };
1379
- const ManagedIdentityToken = {
1380
- type: {
1381
- name: "Composite",
1382
- className: "ManagedIdentityToken",
1383
- modelProperties: {
1384
- accessToken: {
1385
- serializedName: "accessToken",
1386
- type: {
1387
- name: "String"
1388
- }
1389
- },
1390
- expiresIn: {
1391
- serializedName: "expiresIn",
1392
- type: {
1393
- name: "String"
1394
- }
1395
- },
1396
- expiresOn: {
1397
- serializedName: "expiresOn",
1398
- type: {
1399
- name: "String"
1400
- }
1401
- },
1402
- notBefore: {
1403
- serializedName: "notBefore",
1404
- type: {
1405
- name: "String"
1406
- }
1407
- },
1408
- authorizationAudience: {
1409
- serializedName: "authorizationAudience",
1410
- type: {
1411
- name: "String"
1412
- }
1413
- },
1414
- resourceId: {
1415
- serializedName: "resourceId",
1416
- type: {
1417
- name: "String"
1418
- }
1419
- },
1420
- tokenType: {
1421
- serializedName: "tokenType",
1422
- type: {
1423
- name: "String"
1424
- }
1425
- }
1426
- }
1427
- }
1428
- };
1429
- const GenericResource = {
1430
- type: {
1431
- name: "Composite",
1432
- className: "GenericResource",
1433
- modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { managedBy: {
1434
- serializedName: "managedBy",
1435
- type: {
1436
- name: "String"
1437
- }
1438
- }, sku: {
1439
- serializedName: "sku",
1440
- type: {
1441
- name: "Composite",
1442
- className: "Sku"
1443
- }
1444
- } })
1445
- }
1446
- };
1447
- const JitRequestDefinition = {
1448
- type: {
1449
- name: "Composite",
1450
- className: "JitRequestDefinition",
1451
- modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { applicationResourceId: {
1452
- serializedName: "properties.applicationResourceId",
1453
- type: {
1454
- name: "String"
1455
- }
1456
- }, publisherTenantId: {
1457
- serializedName: "properties.publisherTenantId",
1458
- readOnly: true,
1459
- type: {
1460
- name: "String"
1461
- }
1462
- }, jitAuthorizationPolicies: {
1463
- serializedName: "properties.jitAuthorizationPolicies",
1464
- type: {
1465
- name: "Sequence",
1466
- element: {
1467
- type: {
1468
- name: "Composite",
1469
- className: "JitAuthorizationPolicies"
1470
- }
1471
- }
1472
- }
1473
- }, jitSchedulingPolicy: {
1474
- serializedName: "properties.jitSchedulingPolicy",
1475
- type: {
1476
- name: "Composite",
1477
- className: "JitSchedulingPolicy"
1478
- }
1479
- }, provisioningState: {
1480
- serializedName: "properties.provisioningState",
1481
- readOnly: true,
1482
- type: {
1483
- name: "String"
1484
- }
1485
- }, jitRequestState: {
1486
- serializedName: "properties.jitRequestState",
1487
- readOnly: true,
1488
- type: {
1489
- name: "String"
1490
- }
1491
- }, createdBy: {
1492
- serializedName: "properties.createdBy",
1493
- type: {
1494
- name: "Composite",
1495
- className: "ApplicationClientDetails"
1496
- }
1497
- }, updatedBy: {
1498
- serializedName: "properties.updatedBy",
1499
- type: {
1500
- name: "Composite",
1501
- className: "ApplicationClientDetails"
1502
- }
1503
- } })
1504
- }
1505
- };
1506
- const Application = {
1507
- type: {
1508
- name: "Composite",
1509
- className: "Application",
1510
- modelProperties: Object.assign(Object.assign({}, GenericResource.type.modelProperties), { plan: {
1511
- serializedName: "plan",
1512
- type: {
1513
- name: "Composite",
1514
- className: "Plan"
1515
- }
1516
- }, kind: {
1517
- constraints: {
1518
- Pattern: new RegExp("^[-\\w\\._,\\(\\)]+$")
1519
- },
1520
- serializedName: "kind",
1521
- required: true,
1522
- type: {
1523
- name: "String"
1524
- }
1525
- }, identity: {
1526
- serializedName: "identity",
1527
- type: {
1528
- name: "Composite",
1529
- className: "Identity"
1530
- }
1531
- }, managedResourceGroupId: {
1532
- serializedName: "properties.managedResourceGroupId",
1533
- type: {
1534
- name: "String"
1535
- }
1536
- }, applicationDefinitionId: {
1537
- serializedName: "properties.applicationDefinitionId",
1538
- type: {
1539
- name: "String"
1540
- }
1541
- }, parameters: {
1542
- serializedName: "properties.parameters",
1543
- type: {
1544
- name: "Dictionary",
1545
- value: { type: { name: "any" } }
1546
- }
1547
- }, outputs: {
1548
- serializedName: "properties.outputs",
1549
- readOnly: true,
1550
- type: {
1551
- name: "Dictionary",
1552
- value: { type: { name: "any" } }
1553
- }
1554
- }, provisioningState: {
1555
- serializedName: "properties.provisioningState",
1556
- readOnly: true,
1557
- type: {
1558
- name: "String"
1559
- }
1560
- }, billingDetails: {
1561
- serializedName: "properties.billingDetails",
1562
- type: {
1563
- name: "Composite",
1564
- className: "ApplicationBillingDetailsDefinition"
1565
- }
1566
- }, jitAccessPolicy: {
1567
- serializedName: "properties.jitAccessPolicy",
1568
- type: {
1569
- name: "Composite",
1570
- className: "ApplicationJitAccessPolicy"
1571
- }
1572
- }, publisherTenantId: {
1573
- serializedName: "properties.publisherTenantId",
1574
- readOnly: true,
1575
- type: {
1576
- name: "String"
1577
- }
1578
- }, authorizations: {
1579
- serializedName: "properties.authorizations",
1580
- readOnly: true,
1581
- type: {
1582
- name: "Sequence",
1583
- element: {
1584
- type: {
1585
- name: "Composite",
1586
- className: "ApplicationAuthorization"
1587
- }
1588
- }
1589
- }
1590
- }, managementMode: {
1591
- serializedName: "properties.managementMode",
1592
- readOnly: true,
1593
- type: {
1594
- name: "String"
1595
- }
1596
- }, customerSupport: {
1597
- serializedName: "properties.customerSupport",
1598
- type: {
1599
- name: "Composite",
1600
- className: "ApplicationPackageContact"
1601
- }
1602
- }, supportUrls: {
1603
- serializedName: "properties.supportUrls",
1604
- type: {
1605
- name: "Composite",
1606
- className: "ApplicationPackageSupportUrls"
1607
- }
1608
- }, artifacts: {
1609
- serializedName: "properties.artifacts",
1610
- readOnly: true,
1611
- type: {
1612
- name: "Sequence",
1613
- element: {
1614
- type: {
1615
- name: "Composite",
1616
- className: "ApplicationArtifact"
1617
- }
1618
- }
1619
- }
1620
- }, createdBy: {
1621
- serializedName: "properties.createdBy",
1622
- type: {
1623
- name: "Composite",
1624
- className: "ApplicationClientDetails"
1625
- }
1626
- }, updatedBy: {
1627
- serializedName: "properties.updatedBy",
1628
- type: {
1629
- name: "Composite",
1630
- className: "ApplicationClientDetails"
1631
- }
1632
- } })
1633
- }
1634
- };
1635
- const ApplicationPatchable = {
1636
- type: {
1637
- name: "Composite",
1638
- className: "ApplicationPatchable",
1639
- modelProperties: Object.assign(Object.assign({}, GenericResource.type.modelProperties), { plan: {
1640
- serializedName: "plan",
1641
- type: {
1642
- name: "Composite",
1643
- className: "PlanPatchable"
1644
- }
1645
- }, kind: {
1646
- constraints: {
1647
- Pattern: new RegExp("^[-\\w\\._,\\(\\)]+$")
1648
- },
1649
- serializedName: "kind",
1650
- type: {
1651
- name: "String"
1652
- }
1653
- }, identity: {
1654
- serializedName: "identity",
1655
- type: {
1656
- name: "Composite",
1657
- className: "Identity"
1658
- }
1659
- }, managedResourceGroupId: {
1660
- serializedName: "properties.managedResourceGroupId",
1661
- type: {
1662
- name: "String"
1663
- }
1664
- }, applicationDefinitionId: {
1665
- serializedName: "properties.applicationDefinitionId",
1666
- type: {
1667
- name: "String"
1668
- }
1669
- }, parameters: {
1670
- serializedName: "properties.parameters",
1671
- type: {
1672
- name: "Dictionary",
1673
- value: { type: { name: "any" } }
1674
- }
1675
- }, outputs: {
1676
- serializedName: "properties.outputs",
1677
- readOnly: true,
1678
- type: {
1679
- name: "Dictionary",
1680
- value: { type: { name: "any" } }
1681
- }
1682
- }, provisioningState: {
1683
- serializedName: "properties.provisioningState",
1684
- readOnly: true,
1685
- type: {
1686
- name: "String"
1687
- }
1688
- }, billingDetails: {
1689
- serializedName: "properties.billingDetails",
1690
- type: {
1691
- name: "Composite",
1692
- className: "ApplicationBillingDetailsDefinition"
1693
- }
1694
- }, jitAccessPolicy: {
1695
- serializedName: "properties.jitAccessPolicy",
1696
- type: {
1697
- name: "Composite",
1698
- className: "ApplicationJitAccessPolicy"
1699
- }
1700
- }, publisherTenantId: {
1701
- serializedName: "properties.publisherTenantId",
1702
- readOnly: true,
1703
- type: {
1704
- name: "String"
1705
- }
1706
- }, authorizations: {
1707
- serializedName: "properties.authorizations",
1708
- readOnly: true,
1709
- type: {
1710
- name: "Sequence",
1711
- element: {
1712
- type: {
1713
- name: "Composite",
1714
- className: "ApplicationAuthorization"
1715
- }
1716
- }
1717
- }
1718
- }, managementMode: {
1719
- serializedName: "properties.managementMode",
1720
- readOnly: true,
1721
- type: {
1722
- name: "String"
1723
- }
1724
- }, customerSupport: {
1725
- serializedName: "properties.customerSupport",
1726
- type: {
1727
- name: "Composite",
1728
- className: "ApplicationPackageContact"
1729
- }
1730
- }, supportUrls: {
1731
- serializedName: "properties.supportUrls",
1732
- type: {
1733
- name: "Composite",
1734
- className: "ApplicationPackageSupportUrls"
1735
- }
1736
- }, artifacts: {
1737
- serializedName: "properties.artifacts",
1738
- readOnly: true,
1739
- type: {
1740
- name: "Sequence",
1741
- element: {
1742
- type: {
1743
- name: "Composite",
1744
- className: "ApplicationArtifact"
1745
- }
1746
- }
1747
- }
1748
- }, createdBy: {
1749
- serializedName: "properties.createdBy",
1750
- type: {
1751
- name: "Composite",
1752
- className: "ApplicationClientDetails"
1753
- }
1754
- }, updatedBy: {
1755
- serializedName: "properties.updatedBy",
1756
- type: {
1757
- name: "Composite",
1758
- className: "ApplicationClientDetails"
1759
- }
1760
- } })
1761
- }
1762
- };
1763
- const ApplicationDefinition = {
1764
- type: {
1765
- name: "Composite",
1766
- className: "ApplicationDefinition",
1767
- modelProperties: Object.assign(Object.assign({}, GenericResource.type.modelProperties), { lockLevel: {
1768
- serializedName: "properties.lockLevel",
1769
- required: true,
1770
- type: {
1771
- name: "Enum",
1772
- allowedValues: ["CanNotDelete", "ReadOnly", "None"]
1773
- }
1774
- }, displayName: {
1775
- serializedName: "properties.displayName",
1776
- type: {
1777
- name: "String"
1778
- }
1779
- }, isEnabled: {
1780
- serializedName: "properties.isEnabled",
1781
- type: {
1782
- name: "Boolean"
1783
- }
1784
- }, authorizations: {
1785
- serializedName: "properties.authorizations",
1786
- type: {
1787
- name: "Sequence",
1788
- element: {
1789
- type: {
1790
- name: "Composite",
1791
- className: "ApplicationAuthorization"
1792
- }
1793
- }
1794
- }
1795
- }, artifacts: {
1796
- serializedName: "properties.artifacts",
1797
- type: {
1798
- name: "Sequence",
1799
- element: {
1800
- type: {
1801
- name: "Composite",
1802
- className: "ApplicationDefinitionArtifact"
1803
- }
1804
- }
1805
- }
1806
- }, description: {
1807
- serializedName: "properties.description",
1808
- type: {
1809
- name: "String"
1810
- }
1811
- }, packageFileUri: {
1812
- serializedName: "properties.packageFileUri",
1813
- type: {
1814
- name: "String"
1815
- }
1816
- }, storageAccountId: {
1817
- serializedName: "properties.storageAccountId",
1818
- type: {
1819
- name: "String"
1820
- }
1821
- }, mainTemplate: {
1822
- serializedName: "properties.mainTemplate",
1823
- type: {
1824
- name: "Dictionary",
1825
- value: { type: { name: "any" } }
1826
- }
1827
- }, createUiDefinition: {
1828
- serializedName: "properties.createUiDefinition",
1829
- type: {
1830
- name: "Dictionary",
1831
- value: { type: { name: "any" } }
1832
- }
1833
- }, notificationPolicy: {
1834
- serializedName: "properties.notificationPolicy",
1835
- type: {
1836
- name: "Composite",
1837
- className: "ApplicationNotificationPolicy"
1838
- }
1839
- }, lockingPolicy: {
1840
- serializedName: "properties.lockingPolicy",
1841
- type: {
1842
- name: "Composite",
1843
- className: "ApplicationPackageLockingPolicyDefinition"
1844
- }
1845
- }, deploymentPolicy: {
1846
- serializedName: "properties.deploymentPolicy",
1847
- type: {
1848
- name: "Composite",
1849
- className: "ApplicationDeploymentPolicy"
1850
- }
1851
- }, managementPolicy: {
1852
- serializedName: "properties.managementPolicy",
1853
- type: {
1854
- name: "Composite",
1855
- className: "ApplicationManagementPolicy"
1856
- }
1857
- }, policies: {
1858
- serializedName: "properties.policies",
1859
- type: {
1860
- name: "Sequence",
1861
- element: {
1862
- type: {
1863
- name: "Composite",
1864
- className: "ApplicationPolicy"
1865
- }
1866
- }
1867
- }
1868
- } })
1869
- }
1870
- };
1871
-
1872
- var Mappers = /*#__PURE__*/Object.freeze({
1873
- __proto__: null,
1874
- AllowedUpgradePlansResult: AllowedUpgradePlansResult,
1875
- Application: Application,
1876
- ApplicationArtifact: ApplicationArtifact,
1877
- ApplicationAuthorization: ApplicationAuthorization,
1878
- ApplicationBillingDetailsDefinition: ApplicationBillingDetailsDefinition,
1879
- ApplicationClientDetails: ApplicationClientDetails,
1880
- ApplicationDefinition: ApplicationDefinition,
1881
- ApplicationDefinitionArtifact: ApplicationDefinitionArtifact,
1882
- ApplicationDefinitionListResult: ApplicationDefinitionListResult,
1883
- ApplicationDefinitionPatchable: ApplicationDefinitionPatchable,
1884
- ApplicationDeploymentPolicy: ApplicationDeploymentPolicy,
1885
- ApplicationJitAccessPolicy: ApplicationJitAccessPolicy,
1886
- ApplicationListResult: ApplicationListResult,
1887
- ApplicationManagementPolicy: ApplicationManagementPolicy,
1888
- ApplicationNotificationEndpoint: ApplicationNotificationEndpoint,
1889
- ApplicationNotificationPolicy: ApplicationNotificationPolicy,
1890
- ApplicationPackageContact: ApplicationPackageContact,
1891
- ApplicationPackageLockingPolicyDefinition: ApplicationPackageLockingPolicyDefinition,
1892
- ApplicationPackageSupportUrls: ApplicationPackageSupportUrls,
1893
- ApplicationPatchable: ApplicationPatchable,
1894
- ApplicationPolicy: ApplicationPolicy,
1895
- ErrorAdditionalInfo: ErrorAdditionalInfo,
1896
- ErrorDetail: ErrorDetail,
1897
- ErrorResponse: ErrorResponse,
1898
- GenericResource: GenericResource,
1899
- Identity: Identity,
1900
- JitApproverDefinition: JitApproverDefinition,
1901
- JitAuthorizationPolicies: JitAuthorizationPolicies,
1902
- JitRequestDefinition: JitRequestDefinition,
1903
- JitRequestDefinitionListResult: JitRequestDefinitionListResult,
1904
- JitRequestMetadata: JitRequestMetadata,
1905
- JitRequestPatchable: JitRequestPatchable,
1906
- JitSchedulingPolicy: JitSchedulingPolicy,
1907
- ListTokenRequest: ListTokenRequest,
1908
- ManagedIdentityToken: ManagedIdentityToken,
1909
- ManagedIdentityTokenResult: ManagedIdentityTokenResult,
1910
- Operation: Operation,
1911
- OperationDisplay: OperationDisplay,
1912
- OperationListResult: OperationListResult,
1913
- Plan: Plan,
1914
- PlanPatchable: PlanPatchable,
1915
- Resource: Resource,
1916
- Sku: Sku,
1917
- SystemData: SystemData,
1918
- UpdateAccessDefinition: UpdateAccessDefinition,
1919
- UserAssignedResourceIdentity: UserAssignedResourceIdentity
1920
- });
1921
-
1922
- /*
1923
- * Copyright (c) Microsoft Corporation.
1924
- * Licensed under the MIT License.
1925
- *
1926
- * Code generated by Microsoft (R) AutoRest Code Generator.
1927
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1928
- */
1929
- const accept = {
1930
- parameterPath: "accept",
1931
- mapper: {
1932
- defaultValue: "application/json",
1933
- isConstant: true,
1934
- serializedName: "Accept",
1935
- type: {
1936
- name: "String"
1937
- }
1938
- }
1939
- };
1940
- const $host = {
1941
- parameterPath: "$host",
1942
- mapper: {
1943
- serializedName: "$host",
1944
- required: true,
1945
- type: {
1946
- name: "String"
1947
- }
1948
- },
1949
- skipEncoding: true
1950
- };
1951
- const apiVersion = {
1952
- parameterPath: "apiVersion",
1953
- mapper: {
1954
- defaultValue: "2021-07-01",
1955
- isConstant: true,
1956
- serializedName: "api-version",
1957
- type: {
1958
- name: "String"
1959
- }
1960
- }
1961
- };
1962
- const nextLink = {
1963
- parameterPath: "nextLink",
1964
- mapper: {
1965
- serializedName: "nextLink",
1966
- required: true,
1967
- type: {
1968
- name: "String"
1969
- }
1970
- },
1971
- skipEncoding: true
1972
- };
1973
- const subscriptionId = {
1974
- parameterPath: "subscriptionId",
1975
- mapper: {
1976
- constraints: {
1977
- MinLength: 1
1978
- },
1979
- serializedName: "subscriptionId",
1980
- required: true,
1981
- type: {
1982
- name: "String"
1983
- }
1984
- }
1985
- };
1986
- const resourceGroupName = {
1987
- parameterPath: "resourceGroupName",
1988
- mapper: {
1989
- constraints: {
1990
- MaxLength: 90,
1991
- MinLength: 1
1992
- },
1993
- serializedName: "resourceGroupName",
1994
- required: true,
1995
- type: {
1996
- name: "String"
1997
- }
1998
- }
1999
- };
2000
- const applicationName = {
2001
- parameterPath: "applicationName",
2002
- mapper: {
2003
- constraints: {
2004
- MaxLength: 64,
2005
- MinLength: 3
2006
- },
2007
- serializedName: "applicationName",
2008
- required: true,
2009
- type: {
2010
- name: "String"
2011
- }
2012
- }
2013
- };
2014
- const contentType = {
2015
- parameterPath: ["options", "contentType"],
2016
- mapper: {
2017
- defaultValue: "application/json",
2018
- isConstant: true,
2019
- serializedName: "Content-Type",
2020
- type: {
2021
- name: "String"
2022
- }
2023
- }
2024
- };
2025
- const parameters = {
2026
- parameterPath: "parameters",
2027
- mapper: Application
2028
- };
2029
- const parameters1 = {
2030
- parameterPath: ["options", "parameters"],
2031
- mapper: ApplicationPatchable
2032
- };
2033
- const applicationId = {
2034
- parameterPath: "applicationId",
2035
- mapper: {
2036
- serializedName: "applicationId",
2037
- required: true,
2038
- type: {
2039
- name: "String"
2040
- }
2041
- },
2042
- skipEncoding: true
2043
- };
2044
- const parameters2 = {
2045
- parameterPath: "parameters",
2046
- mapper: UpdateAccessDefinition
2047
- };
2048
- const parameters3 = {
2049
- parameterPath: "parameters",
2050
- mapper: ListTokenRequest
2051
- };
2052
- const applicationDefinitionName = {
2053
- parameterPath: "applicationDefinitionName",
2054
- mapper: {
2055
- constraints: {
2056
- MaxLength: 64,
2057
- MinLength: 3
2058
- },
2059
- serializedName: "applicationDefinitionName",
2060
- required: true,
2061
- type: {
2062
- name: "String"
2063
- }
2064
- }
2065
- };
2066
- const parameters4 = {
2067
- parameterPath: "parameters",
2068
- mapper: ApplicationDefinition
2069
- };
2070
- const parameters5 = {
2071
- parameterPath: "parameters",
2072
- mapper: ApplicationDefinitionPatchable
2073
- };
2074
- const resourceGroupName1 = {
2075
- parameterPath: "resourceGroupName",
2076
- mapper: {
2077
- constraints: {
2078
- Pattern: new RegExp("^[-\\w\\._\\(\\)]+$"),
2079
- MaxLength: 90,
2080
- MinLength: 1
2081
- },
2082
- serializedName: "resourceGroupName",
2083
- required: true,
2084
- type: {
2085
- name: "String"
2086
- }
2087
- }
2088
- };
2089
- const jitRequestName = {
2090
- parameterPath: "jitRequestName",
2091
- mapper: {
2092
- serializedName: "jitRequestName",
2093
- required: true,
2094
- type: {
2095
- name: "String"
2096
- }
2097
- }
2098
- };
2099
- const parameters6 = {
2100
- parameterPath: "parameters",
2101
- mapper: JitRequestDefinition
2102
- };
2103
- const parameters7 = {
2104
- parameterPath: "parameters",
2105
- mapper: JitRequestPatchable
2106
- };
2107
-
2108
- function createLroSpec(inputs) {
2109
- const { args, spec, sendOperationFn } = inputs;
2110
- return {
2111
- requestMethod: spec.httpMethod,
2112
- requestPath: spec.path,
2113
- sendInitialRequest: () => sendOperationFn(args, spec),
2114
- sendPollRequest: (path, options) => {
2115
- const { requestBody } = spec, restSpec = tslib.__rest(spec, ["requestBody"]);
2116
- return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal }));
2117
- }
2118
- };
2119
- }
2120
-
2121
- /*
2122
- * Copyright (c) Microsoft Corporation.
2123
- * Licensed under the MIT License.
2124
- *
2125
- * Code generated by Microsoft (R) AutoRest Code Generator.
2126
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
2127
- */
2128
- /// <reference lib="esnext.asynciterable" />
2129
- /** Class containing Applications operations. */
2130
- class ApplicationsImpl {
2131
- /**
2132
- * Initialize a new instance of the class Applications class.
2133
- * @param client Reference to the service client
2134
- */
2135
- constructor(client) {
2136
- this.client = client;
2137
- }
2138
- /**
2139
- * Lists all the applications within a resource group.
2140
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
2141
- * @param options The options parameters.
2142
- */
2143
- listByResourceGroup(resourceGroupName, options) {
2144
- const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
2145
- return {
2146
- next() {
2147
- return iter.next();
2148
- },
2149
- [Symbol.asyncIterator]() {
2150
- return this;
2151
- },
2152
- byPage: (settings) => {
2153
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
2154
- throw new Error("maxPageSize is not supported by this operation.");
2155
- }
2156
- return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
2157
- }
2158
- };
2159
- }
2160
- listByResourceGroupPagingPage(resourceGroupName, options, settings) {
2161
- return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
2162
- let result;
2163
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
2164
- if (!continuationToken) {
2165
- result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
2166
- let page = result.value || [];
2167
- continuationToken = result.nextLink;
2168
- setContinuationToken(page, continuationToken);
2169
- yield yield tslib.__await(page);
2170
- }
2171
- while (continuationToken) {
2172
- result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
2173
- continuationToken = result.nextLink;
2174
- let page = result.value || [];
2175
- setContinuationToken(page, continuationToken);
2176
- yield yield tslib.__await(page);
2177
- }
2178
- });
2179
- }
2180
- listByResourceGroupPagingAll(resourceGroupName, options) {
2181
- return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
2182
- var _a, e_1, _b, _c;
2183
- try {
2184
- for (var _d = true, _e = tslib.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
2185
- _c = _f.value;
2186
- _d = false;
2187
- const page = _c;
2188
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
2189
- }
2190
- }
2191
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
2192
- finally {
2193
- try {
2194
- if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
2195
- }
2196
- finally { if (e_1) throw e_1.error; }
2197
- }
2198
- });
2199
- }
2200
- /**
2201
- * Lists all the applications within a subscription.
2202
- * @param options The options parameters.
2203
- */
2204
- listBySubscription(options) {
2205
- const iter = this.listBySubscriptionPagingAll(options);
2206
- return {
2207
- next() {
2208
- return iter.next();
2209
- },
2210
- [Symbol.asyncIterator]() {
2211
- return this;
2212
- },
2213
- byPage: (settings) => {
2214
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
2215
- throw new Error("maxPageSize is not supported by this operation.");
2216
- }
2217
- return this.listBySubscriptionPagingPage(options, settings);
2218
- }
2219
- };
2220
- }
2221
- listBySubscriptionPagingPage(options, settings) {
2222
- return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
2223
- let result;
2224
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
2225
- if (!continuationToken) {
2226
- result = yield tslib.__await(this._listBySubscription(options));
2227
- let page = result.value || [];
2228
- continuationToken = result.nextLink;
2229
- setContinuationToken(page, continuationToken);
2230
- yield yield tslib.__await(page);
2231
- }
2232
- while (continuationToken) {
2233
- result = yield tslib.__await(this._listBySubscriptionNext(continuationToken, options));
2234
- continuationToken = result.nextLink;
2235
- let page = result.value || [];
2236
- setContinuationToken(page, continuationToken);
2237
- yield yield tslib.__await(page);
2238
- }
2239
- });
2240
- }
2241
- listBySubscriptionPagingAll(options) {
2242
- return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingAll_1() {
2243
- var _a, e_2, _b, _c;
2244
- try {
2245
- for (var _d = true, _e = tslib.__asyncValues(this.listBySubscriptionPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
2246
- _c = _f.value;
2247
- _d = false;
2248
- const page = _c;
2249
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
2250
- }
2251
- }
2252
- catch (e_2_1) { e_2 = { error: e_2_1 }; }
2253
- finally {
2254
- try {
2255
- if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
2256
- }
2257
- finally { if (e_2) throw e_2.error; }
2258
- }
2259
- });
2260
- }
2261
- /**
2262
- * Gets the managed application.
2263
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
2264
- * @param applicationName The name of the managed application.
2265
- * @param options The options parameters.
2266
- */
2267
- get(resourceGroupName, applicationName, options) {
2268
- return this.client.sendOperationRequest({ resourceGroupName, applicationName, options }, getOperationSpec$2);
2269
- }
2270
- /**
2271
- * Deletes the managed application.
2272
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
2273
- * @param applicationName The name of the managed application.
2274
- * @param options The options parameters.
2275
- */
2276
- beginDelete(resourceGroupName, applicationName, options) {
2277
- return tslib.__awaiter(this, void 0, void 0, function* () {
2278
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2279
- return this.client.sendOperationRequest(args, spec);
2280
- });
2281
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2282
- var _a;
2283
- let currentRawResponse = undefined;
2284
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
2285
- const callback = (rawResponse, flatResponse) => {
2286
- currentRawResponse = rawResponse;
2287
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
2288
- };
2289
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
2290
- const flatResponse = yield directSendOperation(updatedArgs, spec);
2291
- return {
2292
- flatResponse,
2293
- rawResponse: {
2294
- statusCode: currentRawResponse.status,
2295
- body: currentRawResponse.parsedBody,
2296
- headers: currentRawResponse.headers.toJSON()
2297
- }
2298
- };
2299
- });
2300
- const lro = createLroSpec({
2301
- sendOperationFn,
2302
- args: { resourceGroupName, applicationName, options },
2303
- spec: deleteOperationSpec$2
2304
- });
2305
- const poller = yield coreLro.createHttpPoller(lro, {
2306
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2307
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
2308
- resourceLocationConfig: "azure-async-operation"
2309
- });
2310
- yield poller.poll();
2311
- return poller;
2312
- });
2313
- }
2314
- /**
2315
- * Deletes the managed application.
2316
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
2317
- * @param applicationName The name of the managed application.
2318
- * @param options The options parameters.
2319
- */
2320
- beginDeleteAndWait(resourceGroupName, applicationName, options) {
2321
- return tslib.__awaiter(this, void 0, void 0, function* () {
2322
- const poller = yield this.beginDelete(resourceGroupName, applicationName, options);
2323
- return poller.pollUntilDone();
2324
- });
2325
- }
2326
- /**
2327
- * Creates or updates a managed application.
2328
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
2329
- * @param applicationName The name of the managed application.
2330
- * @param parameters Parameters supplied to the create or update a managed application.
2331
- * @param options The options parameters.
2332
- */
2333
- beginCreateOrUpdate(resourceGroupName, applicationName, parameters, options) {
2334
- return tslib.__awaiter(this, void 0, void 0, function* () {
2335
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2336
- return this.client.sendOperationRequest(args, spec);
2337
- });
2338
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2339
- var _a;
2340
- let currentRawResponse = undefined;
2341
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
2342
- const callback = (rawResponse, flatResponse) => {
2343
- currentRawResponse = rawResponse;
2344
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
2345
- };
2346
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
2347
- const flatResponse = yield directSendOperation(updatedArgs, spec);
2348
- return {
2349
- flatResponse,
2350
- rawResponse: {
2351
- statusCode: currentRawResponse.status,
2352
- body: currentRawResponse.parsedBody,
2353
- headers: currentRawResponse.headers.toJSON()
2354
- }
2355
- };
2356
- });
2357
- const lro = createLroSpec({
2358
- sendOperationFn,
2359
- args: { resourceGroupName, applicationName, parameters, options },
2360
- spec: createOrUpdateOperationSpec$2
2361
- });
2362
- const poller = yield coreLro.createHttpPoller(lro, {
2363
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2364
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
2365
- resourceLocationConfig: "azure-async-operation"
2366
- });
2367
- yield poller.poll();
2368
- return poller;
2369
- });
2370
- }
2371
- /**
2372
- * Creates or updates a managed application.
2373
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
2374
- * @param applicationName The name of the managed application.
2375
- * @param parameters Parameters supplied to the create or update a managed application.
2376
- * @param options The options parameters.
2377
- */
2378
- beginCreateOrUpdateAndWait(resourceGroupName, applicationName, parameters, options) {
2379
- return tslib.__awaiter(this, void 0, void 0, function* () {
2380
- const poller = yield this.beginCreateOrUpdate(resourceGroupName, applicationName, parameters, options);
2381
- return poller.pollUntilDone();
2382
- });
2383
- }
2384
- /**
2385
- * Updates an existing managed application.
2386
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
2387
- * @param applicationName The name of the managed application.
2388
- * @param options The options parameters.
2389
- */
2390
- beginUpdate(resourceGroupName, applicationName, options) {
2391
- return tslib.__awaiter(this, void 0, void 0, function* () {
2392
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2393
- return this.client.sendOperationRequest(args, spec);
2394
- });
2395
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2396
- var _a;
2397
- let currentRawResponse = undefined;
2398
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
2399
- const callback = (rawResponse, flatResponse) => {
2400
- currentRawResponse = rawResponse;
2401
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
2402
- };
2403
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
2404
- const flatResponse = yield directSendOperation(updatedArgs, spec);
2405
- return {
2406
- flatResponse,
2407
- rawResponse: {
2408
- statusCode: currentRawResponse.status,
2409
- body: currentRawResponse.parsedBody,
2410
- headers: currentRawResponse.headers.toJSON()
2411
- }
2412
- };
2413
- });
2414
- const lro = createLroSpec({
2415
- sendOperationFn,
2416
- args: { resourceGroupName, applicationName, options },
2417
- spec: updateOperationSpec$2
2418
- });
2419
- const poller = yield coreLro.createHttpPoller(lro, {
2420
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2421
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
2422
- resourceLocationConfig: "azure-async-operation"
2423
- });
2424
- yield poller.poll();
2425
- return poller;
2426
- });
2427
- }
2428
- /**
2429
- * Updates an existing managed application.
2430
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
2431
- * @param applicationName The name of the managed application.
2432
- * @param options The options parameters.
2433
- */
2434
- beginUpdateAndWait(resourceGroupName, applicationName, options) {
2435
- return tslib.__awaiter(this, void 0, void 0, function* () {
2436
- const poller = yield this.beginUpdate(resourceGroupName, applicationName, options);
2437
- return poller.pollUntilDone();
2438
- });
2439
- }
2440
- /**
2441
- * Lists all the applications within a resource group.
2442
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
2443
- * @param options The options parameters.
2444
- */
2445
- _listByResourceGroup(resourceGroupName, options) {
2446
- return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec$2);
2447
- }
2448
- /**
2449
- * Lists all the applications within a subscription.
2450
- * @param options The options parameters.
2451
- */
2452
- _listBySubscription(options) {
2453
- return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec$2);
2454
- }
2455
- /**
2456
- * Gets the managed application.
2457
- * @param applicationId The fully qualified ID of the managed application, including the managed
2458
- * application name and the managed application resource type. Use the format,
2459
- * /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applications/{application-name}
2460
- * @param options The options parameters.
2461
- */
2462
- getById(applicationId, options) {
2463
- return this.client.sendOperationRequest({ applicationId, options }, getByIdOperationSpec$1);
2464
- }
2465
- /**
2466
- * Deletes the managed application.
2467
- * @param applicationId The fully qualified ID of the managed application, including the managed
2468
- * application name and the managed application resource type. Use the format,
2469
- * /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applications/{application-name}
2470
- * @param options The options parameters.
2471
- */
2472
- beginDeleteById(applicationId, options) {
2473
- return tslib.__awaiter(this, void 0, void 0, function* () {
2474
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2475
- return this.client.sendOperationRequest(args, spec);
2476
- });
2477
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2478
- var _a;
2479
- let currentRawResponse = undefined;
2480
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
2481
- const callback = (rawResponse, flatResponse) => {
2482
- currentRawResponse = rawResponse;
2483
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
2484
- };
2485
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
2486
- const flatResponse = yield directSendOperation(updatedArgs, spec);
2487
- return {
2488
- flatResponse,
2489
- rawResponse: {
2490
- statusCode: currentRawResponse.status,
2491
- body: currentRawResponse.parsedBody,
2492
- headers: currentRawResponse.headers.toJSON()
2493
- }
2494
- };
2495
- });
2496
- const lro = createLroSpec({
2497
- sendOperationFn,
2498
- args: { applicationId, options },
2499
- spec: deleteByIdOperationSpec$1
2500
- });
2501
- const poller = yield coreLro.createHttpPoller(lro, {
2502
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2503
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
2504
- resourceLocationConfig: "azure-async-operation"
2505
- });
2506
- yield poller.poll();
2507
- return poller;
2508
- });
2509
- }
2510
- /**
2511
- * Deletes the managed application.
2512
- * @param applicationId The fully qualified ID of the managed application, including the managed
2513
- * application name and the managed application resource type. Use the format,
2514
- * /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applications/{application-name}
2515
- * @param options The options parameters.
2516
- */
2517
- beginDeleteByIdAndWait(applicationId, options) {
2518
- return tslib.__awaiter(this, void 0, void 0, function* () {
2519
- const poller = yield this.beginDeleteById(applicationId, options);
2520
- return poller.pollUntilDone();
2521
- });
2522
- }
2523
- /**
2524
- * Creates or updates a managed application.
2525
- * @param applicationId The fully qualified ID of the managed application, including the managed
2526
- * application name and the managed application resource type. Use the format,
2527
- * /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applications/{application-name}
2528
- * @param parameters Parameters supplied to the create or update a managed application.
2529
- * @param options The options parameters.
2530
- */
2531
- beginCreateOrUpdateById(applicationId, parameters, options) {
2532
- return tslib.__awaiter(this, void 0, void 0, function* () {
2533
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2534
- return this.client.sendOperationRequest(args, spec);
2535
- });
2536
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2537
- var _a;
2538
- let currentRawResponse = undefined;
2539
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
2540
- const callback = (rawResponse, flatResponse) => {
2541
- currentRawResponse = rawResponse;
2542
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
2543
- };
2544
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
2545
- const flatResponse = yield directSendOperation(updatedArgs, spec);
2546
- return {
2547
- flatResponse,
2548
- rawResponse: {
2549
- statusCode: currentRawResponse.status,
2550
- body: currentRawResponse.parsedBody,
2551
- headers: currentRawResponse.headers.toJSON()
2552
- }
2553
- };
2554
- });
2555
- const lro = createLroSpec({
2556
- sendOperationFn,
2557
- args: { applicationId, parameters, options },
2558
- spec: createOrUpdateByIdOperationSpec$1
2559
- });
2560
- const poller = yield coreLro.createHttpPoller(lro, {
2561
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2562
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
2563
- resourceLocationConfig: "azure-async-operation"
2564
- });
2565
- yield poller.poll();
2566
- return poller;
2567
- });
2568
- }
2569
- /**
2570
- * Creates or updates a managed application.
2571
- * @param applicationId The fully qualified ID of the managed application, including the managed
2572
- * application name and the managed application resource type. Use the format,
2573
- * /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applications/{application-name}
2574
- * @param parameters Parameters supplied to the create or update a managed application.
2575
- * @param options The options parameters.
2576
- */
2577
- beginCreateOrUpdateByIdAndWait(applicationId, parameters, options) {
2578
- return tslib.__awaiter(this, void 0, void 0, function* () {
2579
- const poller = yield this.beginCreateOrUpdateById(applicationId, parameters, options);
2580
- return poller.pollUntilDone();
2581
- });
2582
- }
2583
- /**
2584
- * Updates an existing managed application.
2585
- * @param applicationId The fully qualified ID of the managed application, including the managed
2586
- * application name and the managed application resource type. Use the format,
2587
- * /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applications/{application-name}
2588
- * @param options The options parameters.
2589
- */
2590
- beginUpdateById(applicationId, options) {
2591
- return tslib.__awaiter(this, void 0, void 0, function* () {
2592
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2593
- return this.client.sendOperationRequest(args, spec);
2594
- });
2595
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2596
- var _a;
2597
- let currentRawResponse = undefined;
2598
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
2599
- const callback = (rawResponse, flatResponse) => {
2600
- currentRawResponse = rawResponse;
2601
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
2602
- };
2603
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
2604
- const flatResponse = yield directSendOperation(updatedArgs, spec);
2605
- return {
2606
- flatResponse,
2607
- rawResponse: {
2608
- statusCode: currentRawResponse.status,
2609
- body: currentRawResponse.parsedBody,
2610
- headers: currentRawResponse.headers.toJSON()
2611
- }
2612
- };
2613
- });
2614
- const lro = createLroSpec({
2615
- sendOperationFn,
2616
- args: { applicationId, options },
2617
- spec: updateByIdOperationSpec$1
2618
- });
2619
- const poller = yield coreLro.createHttpPoller(lro, {
2620
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2621
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
2622
- resourceLocationConfig: "azure-async-operation"
2623
- });
2624
- yield poller.poll();
2625
- return poller;
2626
- });
2627
- }
2628
- /**
2629
- * Updates an existing managed application.
2630
- * @param applicationId The fully qualified ID of the managed application, including the managed
2631
- * application name and the managed application resource type. Use the format,
2632
- * /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applications/{application-name}
2633
- * @param options The options parameters.
2634
- */
2635
- beginUpdateByIdAndWait(applicationId, options) {
2636
- return tslib.__awaiter(this, void 0, void 0, function* () {
2637
- const poller = yield this.beginUpdateById(applicationId, options);
2638
- return poller.pollUntilDone();
2639
- });
2640
- }
2641
- /**
2642
- * Refresh Permissions for application.
2643
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
2644
- * @param applicationName The name of the managed application.
2645
- * @param options The options parameters.
2646
- */
2647
- beginRefreshPermissions(resourceGroupName, applicationName, options) {
2648
- return tslib.__awaiter(this, void 0, void 0, function* () {
2649
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2650
- return this.client.sendOperationRequest(args, spec);
2651
- });
2652
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2653
- var _a;
2654
- let currentRawResponse = undefined;
2655
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
2656
- const callback = (rawResponse, flatResponse) => {
2657
- currentRawResponse = rawResponse;
2658
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
2659
- };
2660
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
2661
- const flatResponse = yield directSendOperation(updatedArgs, spec);
2662
- return {
2663
- flatResponse,
2664
- rawResponse: {
2665
- statusCode: currentRawResponse.status,
2666
- body: currentRawResponse.parsedBody,
2667
- headers: currentRawResponse.headers.toJSON()
2668
- }
2669
- };
2670
- });
2671
- const lro = createLroSpec({
2672
- sendOperationFn,
2673
- args: { resourceGroupName, applicationName, options },
2674
- spec: refreshPermissionsOperationSpec
2675
- });
2676
- const poller = yield coreLro.createHttpPoller(lro, {
2677
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2678
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
2679
- resourceLocationConfig: "location"
2680
- });
2681
- yield poller.poll();
2682
- return poller;
2683
- });
2684
- }
2685
- /**
2686
- * Refresh Permissions for application.
2687
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
2688
- * @param applicationName The name of the managed application.
2689
- * @param options The options parameters.
2690
- */
2691
- beginRefreshPermissionsAndWait(resourceGroupName, applicationName, options) {
2692
- return tslib.__awaiter(this, void 0, void 0, function* () {
2693
- const poller = yield this.beginRefreshPermissions(resourceGroupName, applicationName, options);
2694
- return poller.pollUntilDone();
2695
- });
2696
- }
2697
- /**
2698
- * List allowed upgrade plans for application.
2699
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
2700
- * @param applicationName The name of the managed application.
2701
- * @param options The options parameters.
2702
- */
2703
- listAllowedUpgradePlans(resourceGroupName, applicationName, options) {
2704
- return this.client.sendOperationRequest({ resourceGroupName, applicationName, options }, listAllowedUpgradePlansOperationSpec);
2705
- }
2706
- /**
2707
- * Update access for application.
2708
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
2709
- * @param applicationName The name of the managed application.
2710
- * @param parameters Request body parameters to list tokens.
2711
- * @param options The options parameters.
2712
- */
2713
- beginUpdateAccess(resourceGroupName, applicationName, parameters, options) {
2714
- return tslib.__awaiter(this, void 0, void 0, function* () {
2715
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2716
- return this.client.sendOperationRequest(args, spec);
2717
- });
2718
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2719
- var _a;
2720
- let currentRawResponse = undefined;
2721
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
2722
- const callback = (rawResponse, flatResponse) => {
2723
- currentRawResponse = rawResponse;
2724
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
2725
- };
2726
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
2727
- const flatResponse = yield directSendOperation(updatedArgs, spec);
2728
- return {
2729
- flatResponse,
2730
- rawResponse: {
2731
- statusCode: currentRawResponse.status,
2732
- body: currentRawResponse.parsedBody,
2733
- headers: currentRawResponse.headers.toJSON()
2734
- }
2735
- };
2736
- });
2737
- const lro = createLroSpec({
2738
- sendOperationFn,
2739
- args: { resourceGroupName, applicationName, parameters, options },
2740
- spec: updateAccessOperationSpec
2741
- });
2742
- const poller = yield coreLro.createHttpPoller(lro, {
2743
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2744
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
2745
- resourceLocationConfig: "location"
2746
- });
2747
- yield poller.poll();
2748
- return poller;
2749
- });
2750
- }
2751
- /**
2752
- * Update access for application.
2753
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
2754
- * @param applicationName The name of the managed application.
2755
- * @param parameters Request body parameters to list tokens.
2756
- * @param options The options parameters.
2757
- */
2758
- beginUpdateAccessAndWait(resourceGroupName, applicationName, parameters, options) {
2759
- return tslib.__awaiter(this, void 0, void 0, function* () {
2760
- const poller = yield this.beginUpdateAccess(resourceGroupName, applicationName, parameters, options);
2761
- return poller.pollUntilDone();
2762
- });
2763
- }
2764
- /**
2765
- * List tokens for application.
2766
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
2767
- * @param applicationName The name of the managed application.
2768
- * @param parameters Request body parameters to list tokens.
2769
- * @param options The options parameters.
2770
- */
2771
- listTokens(resourceGroupName, applicationName, parameters, options) {
2772
- return this.client.sendOperationRequest({ resourceGroupName, applicationName, parameters, options }, listTokensOperationSpec);
2773
- }
2774
- /**
2775
- * ListByResourceGroupNext
2776
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
2777
- * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
2778
- * @param options The options parameters.
2779
- */
2780
- _listByResourceGroupNext(resourceGroupName, nextLink, options) {
2781
- return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec$1);
2782
- }
2783
- /**
2784
- * ListBySubscriptionNext
2785
- * @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
2786
- * @param options The options parameters.
2787
- */
2788
- _listBySubscriptionNext(nextLink, options) {
2789
- return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionNextOperationSpec$1);
2790
- }
2791
- }
2792
- // Operation Specifications
2793
- const serializer$3 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
2794
- const getOperationSpec$2 = {
2795
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications/{applicationName}",
2796
- httpMethod: "GET",
2797
- responses: {
2798
- 200: {
2799
- bodyMapper: Application
2800
- },
2801
- 404: {},
2802
- default: {
2803
- bodyMapper: ErrorResponse
2804
- }
2805
- },
2806
- queryParameters: [apiVersion],
2807
- urlParameters: [
2808
- $host,
2809
- subscriptionId,
2810
- resourceGroupName,
2811
- applicationName
2812
- ],
2813
- headerParameters: [accept],
2814
- serializer: serializer$3
2815
- };
2816
- const deleteOperationSpec$2 = {
2817
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications/{applicationName}",
2818
- httpMethod: "DELETE",
2819
- responses: {
2820
- 200: {},
2821
- 201: {},
2822
- 202: {},
2823
- 204: {},
2824
- default: {
2825
- bodyMapper: ErrorResponse
2826
- }
2827
- },
2828
- queryParameters: [apiVersion],
2829
- urlParameters: [
2830
- $host,
2831
- subscriptionId,
2832
- resourceGroupName,
2833
- applicationName
2834
- ],
2835
- headerParameters: [accept],
2836
- serializer: serializer$3
2837
- };
2838
- const createOrUpdateOperationSpec$2 = {
2839
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications/{applicationName}",
2840
- httpMethod: "PUT",
2841
- responses: {
2842
- 200: {
2843
- bodyMapper: Application
2844
- },
2845
- 201: {
2846
- bodyMapper: Application
2847
- },
2848
- 202: {
2849
- bodyMapper: Application
2850
- },
2851
- 204: {
2852
- bodyMapper: Application
2853
- },
2854
- default: {
2855
- bodyMapper: ErrorResponse
2856
- }
2857
- },
2858
- requestBody: parameters,
2859
- queryParameters: [apiVersion],
2860
- urlParameters: [
2861
- $host,
2862
- subscriptionId,
2863
- resourceGroupName,
2864
- applicationName
2865
- ],
2866
- headerParameters: [accept, contentType],
2867
- mediaType: "json",
2868
- serializer: serializer$3
2869
- };
2870
- const updateOperationSpec$2 = {
2871
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications/{applicationName}",
2872
- httpMethod: "PATCH",
2873
- responses: {
2874
- 200: {
2875
- bodyMapper: ApplicationPatchable
2876
- },
2877
- 201: {
2878
- bodyMapper: ApplicationPatchable
2879
- },
2880
- 202: {
2881
- bodyMapper: ApplicationPatchable
2882
- },
2883
- 204: {
2884
- bodyMapper: ApplicationPatchable
2885
- },
2886
- default: {
2887
- bodyMapper: ErrorResponse
2888
- }
2889
- },
2890
- requestBody: parameters1,
2891
- queryParameters: [apiVersion],
2892
- urlParameters: [
2893
- $host,
2894
- subscriptionId,
2895
- resourceGroupName,
2896
- applicationName
2897
- ],
2898
- headerParameters: [accept, contentType],
2899
- mediaType: "json",
2900
- serializer: serializer$3
2901
- };
2902
- const listByResourceGroupOperationSpec$2 = {
2903
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications",
2904
- httpMethod: "GET",
2905
- responses: {
2906
- 200: {
2907
- bodyMapper: ApplicationListResult
2908
- },
2909
- default: {
2910
- bodyMapper: ErrorResponse
2911
- }
2912
- },
2913
- queryParameters: [apiVersion],
2914
- urlParameters: [
2915
- $host,
2916
- subscriptionId,
2917
- resourceGroupName
2918
- ],
2919
- headerParameters: [accept],
2920
- serializer: serializer$3
2921
- };
2922
- const listBySubscriptionOperationSpec$2 = {
2923
- path: "/subscriptions/{subscriptionId}/providers/Microsoft.Solutions/applications",
2924
- httpMethod: "GET",
2925
- responses: {
2926
- 200: {
2927
- bodyMapper: ApplicationListResult
2928
- },
2929
- default: {
2930
- bodyMapper: ErrorResponse
2931
- }
2932
- },
2933
- queryParameters: [apiVersion],
2934
- urlParameters: [$host, subscriptionId],
2935
- headerParameters: [accept],
2936
- serializer: serializer$3
2937
- };
2938
- const getByIdOperationSpec$1 = {
2939
- path: "/{applicationId}",
2940
- httpMethod: "GET",
2941
- responses: {
2942
- 200: {
2943
- bodyMapper: Application
2944
- },
2945
- 404: {},
2946
- default: {
2947
- bodyMapper: ErrorResponse
2948
- }
2949
- },
2950
- queryParameters: [apiVersion],
2951
- urlParameters: [$host, applicationId],
2952
- headerParameters: [accept],
2953
- serializer: serializer$3
2954
- };
2955
- const deleteByIdOperationSpec$1 = {
2956
- path: "/{applicationId}",
2957
- httpMethod: "DELETE",
2958
- responses: {
2959
- 200: {},
2960
- 201: {},
2961
- 202: {},
2962
- 204: {},
2963
- default: {
2964
- bodyMapper: ErrorResponse
2965
- }
2966
- },
2967
- queryParameters: [apiVersion],
2968
- urlParameters: [$host, applicationId],
2969
- headerParameters: [accept],
2970
- serializer: serializer$3
2971
- };
2972
- const createOrUpdateByIdOperationSpec$1 = {
2973
- path: "/{applicationId}",
2974
- httpMethod: "PUT",
2975
- responses: {
2976
- 200: {
2977
- bodyMapper: Application
2978
- },
2979
- 201: {
2980
- bodyMapper: Application
2981
- },
2982
- 202: {
2983
- bodyMapper: Application
2984
- },
2985
- 204: {
2986
- bodyMapper: Application
2987
- },
2988
- default: {
2989
- bodyMapper: ErrorResponse
2990
- }
2991
- },
2992
- requestBody: parameters,
2993
- queryParameters: [apiVersion],
2994
- urlParameters: [$host, applicationId],
2995
- headerParameters: [accept, contentType],
2996
- mediaType: "json",
2997
- serializer: serializer$3
2998
- };
2999
- const updateByIdOperationSpec$1 = {
3000
- path: "/{applicationId}",
3001
- httpMethod: "PATCH",
3002
- responses: {
3003
- 200: {
3004
- bodyMapper: ApplicationPatchable
3005
- },
3006
- 201: {
3007
- bodyMapper: ApplicationPatchable
3008
- },
3009
- 202: {
3010
- bodyMapper: ApplicationPatchable
3011
- },
3012
- 204: {
3013
- bodyMapper: ApplicationPatchable
3014
- },
3015
- default: {
3016
- bodyMapper: ErrorResponse
3017
- }
3018
- },
3019
- requestBody: parameters1,
3020
- queryParameters: [apiVersion],
3021
- urlParameters: [$host, applicationId],
3022
- headerParameters: [accept, contentType],
3023
- mediaType: "json",
3024
- serializer: serializer$3
3025
- };
3026
- const refreshPermissionsOperationSpec = {
3027
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications/{applicationName}/refreshPermissions",
3028
- httpMethod: "POST",
3029
- responses: {
3030
- 200: {},
3031
- 201: {},
3032
- 202: {},
3033
- 204: {},
3034
- default: {
3035
- bodyMapper: ErrorResponse
3036
- }
3037
- },
3038
- queryParameters: [apiVersion],
3039
- urlParameters: [
3040
- $host,
3041
- subscriptionId,
3042
- resourceGroupName,
3043
- applicationName
3044
- ],
3045
- headerParameters: [accept],
3046
- serializer: serializer$3
3047
- };
3048
- const listAllowedUpgradePlansOperationSpec = {
3049
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications/{applicationName}/listAllowedUpgradePlans",
3050
- httpMethod: "POST",
3051
- responses: {
3052
- 200: {
3053
- bodyMapper: AllowedUpgradePlansResult
3054
- },
3055
- default: {
3056
- bodyMapper: ErrorResponse
3057
- }
3058
- },
3059
- queryParameters: [apiVersion],
3060
- urlParameters: [
3061
- $host,
3062
- subscriptionId,
3063
- resourceGroupName,
3064
- applicationName
3065
- ],
3066
- headerParameters: [accept],
3067
- serializer: serializer$3
3068
- };
3069
- const updateAccessOperationSpec = {
3070
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications/{applicationName}/updateAccess",
3071
- httpMethod: "POST",
3072
- responses: {
3073
- 200: {},
3074
- 201: {},
3075
- 202: {},
3076
- 204: {},
3077
- default: {
3078
- bodyMapper: ErrorResponse
3079
- }
3080
- },
3081
- requestBody: parameters2,
3082
- queryParameters: [apiVersion],
3083
- urlParameters: [
3084
- $host,
3085
- subscriptionId,
3086
- resourceGroupName,
3087
- applicationName
3088
- ],
3089
- headerParameters: [accept, contentType],
3090
- mediaType: "json",
3091
- serializer: serializer$3
3092
- };
3093
- const listTokensOperationSpec = {
3094
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications/{applicationName}/listTokens",
3095
- httpMethod: "POST",
3096
- responses: {
3097
- 200: {
3098
- bodyMapper: ManagedIdentityTokenResult
3099
- },
3100
- default: {
3101
- bodyMapper: ErrorResponse
3102
- }
3103
- },
3104
- requestBody: parameters3,
3105
- queryParameters: [apiVersion],
3106
- urlParameters: [
3107
- $host,
3108
- subscriptionId,
3109
- resourceGroupName,
3110
- applicationName
3111
- ],
3112
- headerParameters: [accept, contentType],
3113
- mediaType: "json",
3114
- serializer: serializer$3
3115
- };
3116
- const listByResourceGroupNextOperationSpec$1 = {
3117
- path: "{nextLink}",
3118
- httpMethod: "GET",
3119
- responses: {
3120
- 200: {
3121
- bodyMapper: ApplicationListResult
3122
- },
3123
- default: {
3124
- bodyMapper: ErrorResponse
3125
- }
3126
- },
3127
- urlParameters: [
3128
- $host,
3129
- nextLink,
3130
- subscriptionId,
3131
- resourceGroupName
3132
- ],
3133
- headerParameters: [accept],
3134
- serializer: serializer$3
3135
- };
3136
- const listBySubscriptionNextOperationSpec$1 = {
3137
- path: "{nextLink}",
3138
- httpMethod: "GET",
3139
- responses: {
3140
- 200: {
3141
- bodyMapper: ApplicationListResult
3142
- },
3143
- default: {
3144
- bodyMapper: ErrorResponse
3145
- }
3146
- },
3147
- urlParameters: [
3148
- $host,
3149
- nextLink,
3150
- subscriptionId
3151
- ],
3152
- headerParameters: [accept],
3153
- serializer: serializer$3
3154
- };
3155
-
3156
- /*
3157
- * Copyright (c) Microsoft Corporation.
3158
- * Licensed under the MIT License.
3159
- *
3160
- * Code generated by Microsoft (R) AutoRest Code Generator.
3161
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
3162
- */
3163
- /// <reference lib="esnext.asynciterable" />
3164
- /** Class containing ApplicationDefinitions operations. */
3165
- class ApplicationDefinitionsImpl {
3166
- /**
3167
- * Initialize a new instance of the class ApplicationDefinitions class.
3168
- * @param client Reference to the service client
3169
- */
3170
- constructor(client) {
3171
- this.client = client;
3172
- }
3173
- /**
3174
- * Lists the managed application definitions in a resource group.
3175
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
3176
- * @param options The options parameters.
3177
- */
3178
- listByResourceGroup(resourceGroupName, options) {
3179
- const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
3180
- return {
3181
- next() {
3182
- return iter.next();
3183
- },
3184
- [Symbol.asyncIterator]() {
3185
- return this;
3186
- },
3187
- byPage: (settings) => {
3188
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
3189
- throw new Error("maxPageSize is not supported by this operation.");
3190
- }
3191
- return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
3192
- }
3193
- };
3194
- }
3195
- listByResourceGroupPagingPage(resourceGroupName, options, settings) {
3196
- return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
3197
- let result;
3198
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
3199
- if (!continuationToken) {
3200
- result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
3201
- let page = result.value || [];
3202
- continuationToken = result.nextLink;
3203
- setContinuationToken(page, continuationToken);
3204
- yield yield tslib.__await(page);
3205
- }
3206
- while (continuationToken) {
3207
- result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
3208
- continuationToken = result.nextLink;
3209
- let page = result.value || [];
3210
- setContinuationToken(page, continuationToken);
3211
- yield yield tslib.__await(page);
3212
- }
3213
- });
3214
- }
3215
- listByResourceGroupPagingAll(resourceGroupName, options) {
3216
- return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
3217
- var _a, e_1, _b, _c;
3218
- try {
3219
- for (var _d = true, _e = tslib.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
3220
- _c = _f.value;
3221
- _d = false;
3222
- const page = _c;
3223
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
3224
- }
3225
- }
3226
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
3227
- finally {
3228
- try {
3229
- if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
3230
- }
3231
- finally { if (e_1) throw e_1.error; }
3232
- }
3233
- });
3234
- }
3235
- /**
3236
- * Lists all the application definitions within a subscription.
3237
- * @param options The options parameters.
3238
- */
3239
- listBySubscription(options) {
3240
- const iter = this.listBySubscriptionPagingAll(options);
3241
- return {
3242
- next() {
3243
- return iter.next();
3244
- },
3245
- [Symbol.asyncIterator]() {
3246
- return this;
3247
- },
3248
- byPage: (settings) => {
3249
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
3250
- throw new Error("maxPageSize is not supported by this operation.");
3251
- }
3252
- return this.listBySubscriptionPagingPage(options, settings);
3253
- }
3254
- };
3255
- }
3256
- listBySubscriptionPagingPage(options, settings) {
3257
- return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
3258
- let result;
3259
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
3260
- if (!continuationToken) {
3261
- result = yield tslib.__await(this._listBySubscription(options));
3262
- let page = result.value || [];
3263
- continuationToken = result.nextLink;
3264
- setContinuationToken(page, continuationToken);
3265
- yield yield tslib.__await(page);
3266
- }
3267
- while (continuationToken) {
3268
- result = yield tslib.__await(this._listBySubscriptionNext(continuationToken, options));
3269
- continuationToken = result.nextLink;
3270
- let page = result.value || [];
3271
- setContinuationToken(page, continuationToken);
3272
- yield yield tslib.__await(page);
3273
- }
3274
- });
3275
- }
3276
- listBySubscriptionPagingAll(options) {
3277
- return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingAll_1() {
3278
- var _a, e_2, _b, _c;
3279
- try {
3280
- for (var _d = true, _e = tslib.__asyncValues(this.listBySubscriptionPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
3281
- _c = _f.value;
3282
- _d = false;
3283
- const page = _c;
3284
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
3285
- }
3286
- }
3287
- catch (e_2_1) { e_2 = { error: e_2_1 }; }
3288
- finally {
3289
- try {
3290
- if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
3291
- }
3292
- finally { if (e_2) throw e_2.error; }
3293
- }
3294
- });
3295
- }
3296
- /**
3297
- * Gets the managed application definition.
3298
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
3299
- * @param applicationDefinitionName The name of the managed application definition.
3300
- * @param options The options parameters.
3301
- */
3302
- get(resourceGroupName, applicationDefinitionName, options) {
3303
- return this.client.sendOperationRequest({ resourceGroupName, applicationDefinitionName, options }, getOperationSpec$1);
3304
- }
3305
- /**
3306
- * Deletes the managed application definition.
3307
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
3308
- * @param applicationDefinitionName The name of the managed application definition.
3309
- * @param options The options parameters.
3310
- */
3311
- delete(resourceGroupName, applicationDefinitionName, options) {
3312
- return this.client.sendOperationRequest({ resourceGroupName, applicationDefinitionName, options }, deleteOperationSpec$1);
3313
- }
3314
- /**
3315
- * Creates or updates a managed application definition.
3316
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
3317
- * @param applicationDefinitionName The name of the managed application definition.
3318
- * @param parameters Parameters supplied to the create or update an managed application definition.
3319
- * @param options The options parameters.
3320
- */
3321
- createOrUpdate(resourceGroupName, applicationDefinitionName, parameters, options) {
3322
- return this.client.sendOperationRequest({ resourceGroupName, applicationDefinitionName, parameters, options }, createOrUpdateOperationSpec$1);
3323
- }
3324
- /**
3325
- * Updates the managed application definition.
3326
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
3327
- * @param applicationDefinitionName The name of the managed application definition.
3328
- * @param parameters Parameters supplied to the update a managed application definition.
3329
- * @param options The options parameters.
3330
- */
3331
- update(resourceGroupName, applicationDefinitionName, parameters, options) {
3332
- return this.client.sendOperationRequest({ resourceGroupName, applicationDefinitionName, parameters, options }, updateOperationSpec$1);
3333
- }
3334
- /**
3335
- * Lists the managed application definitions in a resource group.
3336
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
3337
- * @param options The options parameters.
3338
- */
3339
- _listByResourceGroup(resourceGroupName, options) {
3340
- return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec$1);
3341
- }
3342
- /**
3343
- * Lists all the application definitions within a subscription.
3344
- * @param options The options parameters.
3345
- */
3346
- _listBySubscription(options) {
3347
- return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec$1);
3348
- }
3349
- /**
3350
- * Gets the managed application definition.
3351
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
3352
- * @param applicationDefinitionName The name of the managed application definition.
3353
- * @param options The options parameters.
3354
- */
3355
- getById(resourceGroupName, applicationDefinitionName, options) {
3356
- return this.client.sendOperationRequest({ resourceGroupName, applicationDefinitionName, options }, getByIdOperationSpec);
3357
- }
3358
- /**
3359
- * Deletes the managed application definition.
3360
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
3361
- * @param applicationDefinitionName The name of the managed application definition.
3362
- * @param options The options parameters.
3363
- */
3364
- deleteById(resourceGroupName, applicationDefinitionName, options) {
3365
- return this.client.sendOperationRequest({ resourceGroupName, applicationDefinitionName, options }, deleteByIdOperationSpec);
3366
- }
3367
- /**
3368
- * Creates or updates a managed application definition.
3369
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
3370
- * @param applicationDefinitionName The name of the managed application definition.
3371
- * @param parameters Parameters supplied to the create or update a managed application definition.
3372
- * @param options The options parameters.
3373
- */
3374
- createOrUpdateById(resourceGroupName, applicationDefinitionName, parameters, options) {
3375
- return this.client.sendOperationRequest({ resourceGroupName, applicationDefinitionName, parameters, options }, createOrUpdateByIdOperationSpec);
3376
- }
3377
- /**
3378
- * Updates the managed application definition.
3379
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
3380
- * @param applicationDefinitionName The name of the managed application definition.
3381
- * @param parameters Parameters supplied to the update a managed application definition.
3382
- * @param options The options parameters.
3383
- */
3384
- updateById(resourceGroupName, applicationDefinitionName, parameters, options) {
3385
- return this.client.sendOperationRequest({ resourceGroupName, applicationDefinitionName, parameters, options }, updateByIdOperationSpec);
3386
- }
3387
- /**
3388
- * ListByResourceGroupNext
3389
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
3390
- * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
3391
- * @param options The options parameters.
3392
- */
3393
- _listByResourceGroupNext(resourceGroupName, nextLink, options) {
3394
- return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
3395
- }
3396
- /**
3397
- * ListBySubscriptionNext
3398
- * @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
3399
- * @param options The options parameters.
3400
- */
3401
- _listBySubscriptionNext(nextLink, options) {
3402
- return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionNextOperationSpec);
3403
- }
3404
- }
3405
- // Operation Specifications
3406
- const serializer$2 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
3407
- const getOperationSpec$1 = {
3408
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applicationDefinitions/{applicationDefinitionName}",
3409
- httpMethod: "GET",
3410
- responses: {
3411
- 200: {
3412
- bodyMapper: ApplicationDefinition
3413
- },
3414
- 404: {},
3415
- default: {
3416
- bodyMapper: ErrorResponse
3417
- }
3418
- },
3419
- queryParameters: [apiVersion],
3420
- urlParameters: [
3421
- $host,
3422
- subscriptionId,
3423
- resourceGroupName,
3424
- applicationDefinitionName
3425
- ],
3426
- headerParameters: [accept],
3427
- serializer: serializer$2
3428
- };
3429
- const deleteOperationSpec$1 = {
3430
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applicationDefinitions/{applicationDefinitionName}",
3431
- httpMethod: "DELETE",
3432
- responses: {
3433
- 200: {},
3434
- 204: {},
3435
- default: {
3436
- bodyMapper: ErrorResponse
3437
- }
3438
- },
3439
- queryParameters: [apiVersion],
3440
- urlParameters: [
3441
- $host,
3442
- subscriptionId,
3443
- resourceGroupName,
3444
- applicationDefinitionName
3445
- ],
3446
- headerParameters: [accept],
3447
- serializer: serializer$2
3448
- };
3449
- const createOrUpdateOperationSpec$1 = {
3450
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applicationDefinitions/{applicationDefinitionName}",
3451
- httpMethod: "PUT",
3452
- responses: {
3453
- 200: {
3454
- bodyMapper: ApplicationDefinition
3455
- },
3456
- 201: {
3457
- bodyMapper: ApplicationDefinition
3458
- },
3459
- default: {
3460
- bodyMapper: ErrorResponse
3461
- }
3462
- },
3463
- requestBody: parameters4,
3464
- queryParameters: [apiVersion],
3465
- urlParameters: [
3466
- $host,
3467
- subscriptionId,
3468
- resourceGroupName,
3469
- applicationDefinitionName
3470
- ],
3471
- headerParameters: [accept, contentType],
3472
- mediaType: "json",
3473
- serializer: serializer$2
3474
- };
3475
- const updateOperationSpec$1 = {
3476
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applicationDefinitions/{applicationDefinitionName}",
3477
- httpMethod: "PATCH",
3478
- responses: {
3479
- 200: {
3480
- bodyMapper: ApplicationDefinition
3481
- },
3482
- default: {
3483
- bodyMapper: ErrorResponse
3484
- }
3485
- },
3486
- requestBody: parameters5,
3487
- queryParameters: [apiVersion],
3488
- urlParameters: [
3489
- $host,
3490
- subscriptionId,
3491
- resourceGroupName,
3492
- applicationDefinitionName
3493
- ],
3494
- headerParameters: [accept, contentType],
3495
- mediaType: "json",
3496
- serializer: serializer$2
3497
- };
3498
- const listByResourceGroupOperationSpec$1 = {
3499
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applicationDefinitions",
3500
- httpMethod: "GET",
3501
- responses: {
3502
- 200: {
3503
- bodyMapper: ApplicationDefinitionListResult
3504
- },
3505
- default: {
3506
- bodyMapper: ErrorResponse
3507
- }
3508
- },
3509
- queryParameters: [apiVersion],
3510
- urlParameters: [
3511
- $host,
3512
- subscriptionId,
3513
- resourceGroupName
3514
- ],
3515
- headerParameters: [accept],
3516
- serializer: serializer$2
3517
- };
3518
- const listBySubscriptionOperationSpec$1 = {
3519
- path: "/subscriptions/{subscriptionId}/providers/Microsoft.Solutions/applicationDefinitions",
3520
- httpMethod: "GET",
3521
- responses: {
3522
- 200: {
3523
- bodyMapper: ApplicationDefinitionListResult
3524
- },
3525
- default: {
3526
- bodyMapper: ErrorResponse
3527
- }
3528
- },
3529
- queryParameters: [apiVersion],
3530
- urlParameters: [$host, subscriptionId],
3531
- headerParameters: [accept],
3532
- serializer: serializer$2
3533
- };
3534
- const getByIdOperationSpec = {
3535
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applicationDefinitions/{applicationDefinitionName}",
3536
- httpMethod: "GET",
3537
- responses: {
3538
- 200: {
3539
- bodyMapper: ApplicationDefinition
3540
- },
3541
- 404: {},
3542
- default: {
3543
- bodyMapper: ErrorResponse
3544
- }
3545
- },
3546
- queryParameters: [apiVersion],
3547
- urlParameters: [
3548
- $host,
3549
- subscriptionId,
3550
- applicationDefinitionName,
3551
- resourceGroupName1
3552
- ],
3553
- headerParameters: [accept],
3554
- serializer: serializer$2
3555
- };
3556
- const deleteByIdOperationSpec = {
3557
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applicationDefinitions/{applicationDefinitionName}",
3558
- httpMethod: "DELETE",
3559
- responses: {
3560
- 200: {},
3561
- 204: {},
3562
- default: {
3563
- bodyMapper: ErrorResponse
3564
- }
3565
- },
3566
- queryParameters: [apiVersion],
3567
- urlParameters: [
3568
- $host,
3569
- subscriptionId,
3570
- applicationDefinitionName,
3571
- resourceGroupName1
3572
- ],
3573
- headerParameters: [accept],
3574
- serializer: serializer$2
3575
- };
3576
- const createOrUpdateByIdOperationSpec = {
3577
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applicationDefinitions/{applicationDefinitionName}",
3578
- httpMethod: "PUT",
3579
- responses: {
3580
- 200: {
3581
- bodyMapper: ApplicationDefinition
3582
- },
3583
- 201: {
3584
- bodyMapper: ApplicationDefinition
3585
- },
3586
- default: {
3587
- bodyMapper: ErrorResponse
3588
- }
3589
- },
3590
- requestBody: parameters4,
3591
- queryParameters: [apiVersion],
3592
- urlParameters: [
3593
- $host,
3594
- subscriptionId,
3595
- applicationDefinitionName,
3596
- resourceGroupName1
3597
- ],
3598
- headerParameters: [accept, contentType],
3599
- mediaType: "json",
3600
- serializer: serializer$2
3601
- };
3602
- const updateByIdOperationSpec = {
3603
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applicationDefinitions/{applicationDefinitionName}",
3604
- httpMethod: "PATCH",
3605
- responses: {
3606
- 200: {
3607
- bodyMapper: ApplicationDefinition
3608
- },
3609
- default: {
3610
- bodyMapper: ErrorResponse
3611
- }
3612
- },
3613
- requestBody: parameters5,
3614
- queryParameters: [apiVersion],
3615
- urlParameters: [
3616
- $host,
3617
- subscriptionId,
3618
- resourceGroupName,
3619
- applicationDefinitionName
3620
- ],
3621
- headerParameters: [accept, contentType],
3622
- mediaType: "json",
3623
- serializer: serializer$2
3624
- };
3625
- const listByResourceGroupNextOperationSpec = {
3626
- path: "{nextLink}",
3627
- httpMethod: "GET",
3628
- responses: {
3629
- 200: {
3630
- bodyMapper: ApplicationDefinitionListResult
3631
- },
3632
- default: {
3633
- bodyMapper: ErrorResponse
3634
- }
3635
- },
3636
- urlParameters: [
3637
- $host,
3638
- nextLink,
3639
- subscriptionId,
3640
- resourceGroupName
3641
- ],
3642
- headerParameters: [accept],
3643
- serializer: serializer$2
3644
- };
3645
- const listBySubscriptionNextOperationSpec = {
3646
- path: "{nextLink}",
3647
- httpMethod: "GET",
3648
- responses: {
3649
- 200: {
3650
- bodyMapper: ApplicationDefinitionListResult
3651
- },
3652
- default: {
3653
- bodyMapper: ErrorResponse
3654
- }
3655
- },
3656
- urlParameters: [
3657
- $host,
3658
- nextLink,
3659
- subscriptionId
3660
- ],
3661
- headerParameters: [accept],
3662
- serializer: serializer$2
3663
- };
3664
-
3665
- /*
3666
- * Copyright (c) Microsoft Corporation.
3667
- * Licensed under the MIT License.
3668
- *
3669
- * Code generated by Microsoft (R) AutoRest Code Generator.
3670
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
3671
- */
3672
- /** Class containing JitRequests operations. */
3673
- class JitRequestsImpl {
3674
- /**
3675
- * Initialize a new instance of the class JitRequests class.
3676
- * @param client Reference to the service client
3677
- */
3678
- constructor(client) {
3679
- this.client = client;
3680
- }
3681
- /**
3682
- * Gets the JIT request.
3683
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
3684
- * @param jitRequestName The name of the JIT request.
3685
- * @param options The options parameters.
3686
- */
3687
- get(resourceGroupName, jitRequestName, options) {
3688
- return this.client.sendOperationRequest({ resourceGroupName, jitRequestName, options }, getOperationSpec);
3689
- }
3690
- /**
3691
- * Creates or updates the JIT request.
3692
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
3693
- * @param jitRequestName The name of the JIT request.
3694
- * @param parameters Parameters supplied to the update JIT request.
3695
- * @param options The options parameters.
3696
- */
3697
- beginCreateOrUpdate(resourceGroupName, jitRequestName, parameters, options) {
3698
- return tslib.__awaiter(this, void 0, void 0, function* () {
3699
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3700
- return this.client.sendOperationRequest(args, spec);
3701
- });
3702
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3703
- var _a;
3704
- let currentRawResponse = undefined;
3705
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
3706
- const callback = (rawResponse, flatResponse) => {
3707
- currentRawResponse = rawResponse;
3708
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
3709
- };
3710
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
3711
- const flatResponse = yield directSendOperation(updatedArgs, spec);
3712
- return {
3713
- flatResponse,
3714
- rawResponse: {
3715
- statusCode: currentRawResponse.status,
3716
- body: currentRawResponse.parsedBody,
3717
- headers: currentRawResponse.headers.toJSON()
3718
- }
3719
- };
3720
- });
3721
- const lro = createLroSpec({
3722
- sendOperationFn,
3723
- args: { resourceGroupName, jitRequestName, parameters, options },
3724
- spec: createOrUpdateOperationSpec
3725
- });
3726
- const poller = yield coreLro.createHttpPoller(lro, {
3727
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3728
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
3729
- resourceLocationConfig: "azure-async-operation"
3730
- });
3731
- yield poller.poll();
3732
- return poller;
3733
- });
3734
- }
3735
- /**
3736
- * Creates or updates the JIT request.
3737
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
3738
- * @param jitRequestName The name of the JIT request.
3739
- * @param parameters Parameters supplied to the update JIT request.
3740
- * @param options The options parameters.
3741
- */
3742
- beginCreateOrUpdateAndWait(resourceGroupName, jitRequestName, parameters, options) {
3743
- return tslib.__awaiter(this, void 0, void 0, function* () {
3744
- const poller = yield this.beginCreateOrUpdate(resourceGroupName, jitRequestName, parameters, options);
3745
- return poller.pollUntilDone();
3746
- });
3747
- }
3748
- /**
3749
- * Updates the JIT request.
3750
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
3751
- * @param jitRequestName The name of the JIT request.
3752
- * @param parameters Parameters supplied to the update JIT request.
3753
- * @param options The options parameters.
3754
- */
3755
- update(resourceGroupName, jitRequestName, parameters, options) {
3756
- return this.client.sendOperationRequest({ resourceGroupName, jitRequestName, parameters, options }, updateOperationSpec);
3757
- }
3758
- /**
3759
- * Deletes the JIT request.
3760
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
3761
- * @param jitRequestName The name of the JIT request.
3762
- * @param options The options parameters.
3763
- */
3764
- delete(resourceGroupName, jitRequestName, options) {
3765
- return this.client.sendOperationRequest({ resourceGroupName, jitRequestName, options }, deleteOperationSpec);
3766
- }
3767
- /**
3768
- * Lists all JIT requests within the subscription.
3769
- * @param options The options parameters.
3770
- */
3771
- listBySubscription(options) {
3772
- return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec);
3773
- }
3774
- /**
3775
- * Lists all JIT requests within the resource group.
3776
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
3777
- * @param options The options parameters.
3778
- */
3779
- listByResourceGroup(resourceGroupName, options) {
3780
- return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
3781
- }
3782
- }
3783
- // Operation Specifications
3784
- const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
3785
- const getOperationSpec = {
3786
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/jitRequests/{jitRequestName}",
3787
- httpMethod: "GET",
3788
- responses: {
3789
- 200: {
3790
- bodyMapper: JitRequestDefinition
3791
- },
3792
- 404: {},
3793
- default: {
3794
- bodyMapper: ErrorResponse
3795
- }
3796
- },
3797
- queryParameters: [apiVersion],
3798
- urlParameters: [
3799
- $host,
3800
- subscriptionId,
3801
- resourceGroupName,
3802
- jitRequestName
3803
- ],
3804
- headerParameters: [accept],
3805
- serializer: serializer$1
3806
- };
3807
- const createOrUpdateOperationSpec = {
3808
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/jitRequests/{jitRequestName}",
3809
- httpMethod: "PUT",
3810
- responses: {
3811
- 200: {
3812
- bodyMapper: JitRequestDefinition
3813
- },
3814
- 201: {
3815
- bodyMapper: JitRequestDefinition
3816
- },
3817
- 202: {
3818
- bodyMapper: JitRequestDefinition
3819
- },
3820
- 204: {
3821
- bodyMapper: JitRequestDefinition
3822
- },
3823
- default: {
3824
- bodyMapper: ErrorResponse
3825
- }
3826
- },
3827
- requestBody: parameters6,
3828
- queryParameters: [apiVersion],
3829
- urlParameters: [
3830
- $host,
3831
- subscriptionId,
3832
- resourceGroupName,
3833
- jitRequestName
3834
- ],
3835
- headerParameters: [accept, contentType],
3836
- mediaType: "json",
3837
- serializer: serializer$1
3838
- };
3839
- const updateOperationSpec = {
3840
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/jitRequests/{jitRequestName}",
3841
- httpMethod: "PATCH",
3842
- responses: {
3843
- 200: {
3844
- bodyMapper: JitRequestDefinition
3845
- },
3846
- default: {
3847
- bodyMapper: ErrorResponse
3848
- }
3849
- },
3850
- requestBody: parameters7,
3851
- queryParameters: [apiVersion],
3852
- urlParameters: [
3853
- $host,
3854
- subscriptionId,
3855
- resourceGroupName,
3856
- jitRequestName
3857
- ],
3858
- headerParameters: [accept, contentType],
3859
- mediaType: "json",
3860
- serializer: serializer$1
3861
- };
3862
- const deleteOperationSpec = {
3863
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/jitRequests/{jitRequestName}",
3864
- httpMethod: "DELETE",
3865
- responses: {
3866
- 200: {},
3867
- 204: {},
3868
- default: {
3869
- bodyMapper: ErrorResponse
3870
- }
3871
- },
3872
- queryParameters: [apiVersion],
3873
- urlParameters: [
3874
- $host,
3875
- subscriptionId,
3876
- resourceGroupName,
3877
- jitRequestName
3878
- ],
3879
- headerParameters: [accept],
3880
- serializer: serializer$1
3881
- };
3882
- const listBySubscriptionOperationSpec = {
3883
- path: "/subscriptions/{subscriptionId}/providers/Microsoft.Solutions/jitRequests",
3884
- httpMethod: "GET",
3885
- responses: {
3886
- 200: {
3887
- bodyMapper: JitRequestDefinitionListResult
3888
- },
3889
- default: {
3890
- bodyMapper: ErrorResponse
3891
- }
3892
- },
3893
- queryParameters: [apiVersion],
3894
- urlParameters: [$host, subscriptionId],
3895
- headerParameters: [accept],
3896
- serializer: serializer$1
3897
- };
3898
- const listByResourceGroupOperationSpec = {
3899
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/jitRequests",
3900
- httpMethod: "GET",
3901
- responses: {
3902
- 200: {
3903
- bodyMapper: JitRequestDefinitionListResult
3904
- },
3905
- default: {
3906
- bodyMapper: ErrorResponse
3907
- }
3908
- },
3909
- queryParameters: [apiVersion],
3910
- urlParameters: [
3911
- $host,
3912
- subscriptionId,
3913
- resourceGroupName
3914
- ],
3915
- headerParameters: [accept],
3916
- serializer: serializer$1
3917
- };
3918
-
3919
- /*
3920
- * Copyright (c) Microsoft Corporation.
3921
- * Licensed under the MIT License.
3922
- *
3923
- * Code generated by Microsoft (R) AutoRest Code Generator.
3924
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
3925
- */
3926
- /// <reference lib="esnext.asynciterable" />
3927
- class ApplicationClient extends coreClient__namespace.ServiceClient {
3928
- constructor(credentials, subscriptionIdOrOptions, options) {
3929
- var _a, _b, _c;
3930
- if (credentials === undefined) {
3931
- throw new Error("'credentials' cannot be null");
3932
- }
3933
- let subscriptionId;
3934
- if (typeof subscriptionIdOrOptions === "string") {
3935
- subscriptionId = subscriptionIdOrOptions;
3936
- }
3937
- else if (typeof subscriptionIdOrOptions === "object") {
3938
- options = subscriptionIdOrOptions;
3939
- }
3940
- // Initializing default values for options
3941
- if (!options) {
3942
- options = {};
3943
- }
3944
- const defaults = {
3945
- requestContentType: "application/json; charset=utf-8",
3946
- credential: credentials
3947
- };
3948
- const packageDetails = `azsdk-js-arm-managedapplications/3.0.0`;
3949
- const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
3950
- ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
3951
- : `${packageDetails}`;
3952
- const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
3953
- userAgentPrefix
3954
- }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
3955
- super(optionsWithDefaults);
3956
- let bearerTokenAuthenticationPolicyFound = false;
3957
- if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
3958
- const pipelinePolicies = options.pipeline.getOrderedPolicies();
3959
- bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
3960
- coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
3961
- }
3962
- if (!options ||
3963
- !options.pipeline ||
3964
- options.pipeline.getOrderedPolicies().length == 0 ||
3965
- !bearerTokenAuthenticationPolicyFound) {
3966
- this.pipeline.removePolicy({
3967
- name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName
3968
- });
3969
- this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
3970
- credential: credentials,
3971
- scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
3972
- challengeCallbacks: {
3973
- authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
3974
- }
3975
- }));
3976
- }
3977
- // Parameter assignments
3978
- this.subscriptionId = subscriptionId;
3979
- // Assigning values to Constant parameters
3980
- this.$host = options.$host || "https://management.azure.com";
3981
- this.apiVersion = options.apiVersion || "2021-07-01";
3982
- this.applications = new ApplicationsImpl(this);
3983
- this.applicationDefinitions = new ApplicationDefinitionsImpl(this);
3984
- this.jitRequests = new JitRequestsImpl(this);
3985
- this.addCustomApiVersionPolicy(options.apiVersion);
3986
- }
3987
- /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
3988
- addCustomApiVersionPolicy(apiVersion) {
3989
- if (!apiVersion) {
3990
- return;
3991
- }
3992
- const apiVersionPolicy = {
3993
- name: "CustomApiVersionPolicy",
3994
- sendRequest(request, next) {
3995
- return tslib.__awaiter(this, void 0, void 0, function* () {
3996
- const param = request.url.split("?");
3997
- if (param.length > 1) {
3998
- const newParams = param[1].split("&").map((item) => {
3999
- if (item.indexOf("api-version") > -1) {
4000
- return "api-version=" + apiVersion;
4001
- }
4002
- else {
4003
- return item;
4004
- }
4005
- });
4006
- request.url = param[0] + "?" + newParams.join("&");
4007
- }
4008
- return next(request);
4009
- });
4010
- }
4011
- };
4012
- this.pipeline.addPolicy(apiVersionPolicy);
4013
- }
4014
- /**
4015
- * Lists all of the available Microsoft.Solutions REST API operations.
4016
- * @param options The options parameters.
4017
- */
4018
- listOperations(options) {
4019
- const iter = this.listOperationsPagingAll(options);
4020
- return {
4021
- next() {
4022
- return iter.next();
4023
- },
4024
- [Symbol.asyncIterator]() {
4025
- return this;
4026
- },
4027
- byPage: (settings) => {
4028
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
4029
- throw new Error("maxPageSize is not supported by this operation.");
4030
- }
4031
- return this.listOperationsPagingPage(options, settings);
4032
- }
4033
- };
4034
- }
4035
- listOperationsPagingPage(options, settings) {
4036
- return tslib.__asyncGenerator(this, arguments, function* listOperationsPagingPage_1() {
4037
- let result;
4038
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
4039
- if (!continuationToken) {
4040
- result = yield tslib.__await(this._listOperations(options));
4041
- let page = result.value || [];
4042
- continuationToken = result.nextLink;
4043
- setContinuationToken(page, continuationToken);
4044
- yield yield tslib.__await(page);
4045
- }
4046
- while (continuationToken) {
4047
- result = yield tslib.__await(this._listOperationsNext(continuationToken, options));
4048
- continuationToken = result.nextLink;
4049
- let page = result.value || [];
4050
- setContinuationToken(page, continuationToken);
4051
- yield yield tslib.__await(page);
4052
- }
4053
- });
4054
- }
4055
- listOperationsPagingAll(options) {
4056
- return tslib.__asyncGenerator(this, arguments, function* listOperationsPagingAll_1() {
4057
- var _a, e_1, _b, _c;
4058
- try {
4059
- for (var _d = true, _e = tslib.__asyncValues(this.listOperationsPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
4060
- _c = _f.value;
4061
- _d = false;
4062
- const page = _c;
4063
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
4064
- }
4065
- }
4066
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
4067
- finally {
4068
- try {
4069
- if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
4070
- }
4071
- finally { if (e_1) throw e_1.error; }
4072
- }
4073
- });
4074
- }
4075
- /**
4076
- * Lists all of the available Microsoft.Solutions REST API operations.
4077
- * @param options The options parameters.
4078
- */
4079
- _listOperations(options) {
4080
- return this.sendOperationRequest({ options }, listOperationsOperationSpec);
4081
- }
4082
- /**
4083
- * ListOperationsNext
4084
- * @param nextLink The nextLink from the previous successful call to the ListOperations method.
4085
- * @param options The options parameters.
4086
- */
4087
- _listOperationsNext(nextLink, options) {
4088
- return this.sendOperationRequest({ nextLink, options }, listOperationsNextOperationSpec);
4089
- }
4090
- }
4091
- // Operation Specifications
4092
- const serializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
4093
- const listOperationsOperationSpec = {
4094
- path: "/providers/Microsoft.Solutions/operations",
4095
- httpMethod: "GET",
4096
- responses: {
4097
- 200: {
4098
- bodyMapper: OperationListResult
4099
- },
4100
- default: {
4101
- bodyMapper: ErrorResponse
4102
- }
4103
- },
4104
- queryParameters: [apiVersion],
4105
- urlParameters: [$host],
4106
- headerParameters: [accept],
4107
- serializer
4108
- };
4109
- const listOperationsNextOperationSpec = {
4110
- path: "{nextLink}",
4111
- httpMethod: "GET",
4112
- responses: {
4113
- 200: {
4114
- bodyMapper: OperationListResult
4115
- },
4116
- default: {
4117
- bodyMapper: ErrorResponse
4118
- }
4119
- },
4120
- urlParameters: [$host, nextLink],
4121
- headerParameters: [accept],
4122
- serializer
4123
- };
4124
-
4125
- exports.ApplicationClient = ApplicationClient;
4126
- exports.getContinuationToken = getContinuationToken;
4127
- //# sourceMappingURL=index.js.map