@azure/arm-templatespecs 2.1.1-alpha.20250212.1 → 2.1.1-alpha.20250214.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 (281) hide show
  1. package/README.md +21 -12
  2. package/dist/browser/index.d.ts +5 -0
  3. package/{dist-esm/src → dist/browser}/index.d.ts.map +1 -1
  4. package/{dist-esm/src → dist/browser}/index.js +4 -4
  5. package/dist/browser/index.js.map +1 -0
  6. package/dist/browser/models/index.js.map +1 -0
  7. package/dist/browser/models/mappers.js.map +1 -0
  8. package/{dist-esm/src → dist/browser}/models/parameters.js +1 -1
  9. package/dist/browser/models/parameters.js.map +1 -0
  10. package/dist/browser/operations/index.d.ts +3 -0
  11. package/{dist-esm/src → dist/browser}/operations/index.d.ts.map +1 -1
  12. package/{dist-esm/src → dist/browser}/operations/index.js +2 -2
  13. package/dist/browser/operations/index.js.map +1 -0
  14. package/{dist-esm/src → dist/browser}/operations/templateSpecVersions.d.ts +3 -3
  15. package/dist/browser/operations/templateSpecVersions.d.ts.map +1 -0
  16. package/{dist-esm/src → dist/browser}/operations/templateSpecVersions.js +3 -3
  17. package/dist/browser/operations/templateSpecVersions.js.map +1 -0
  18. package/{dist-esm/src → dist/browser}/operations/templateSpecs.d.ts +3 -3
  19. package/dist/browser/operations/templateSpecs.d.ts.map +1 -0
  20. package/{dist-esm/src → dist/browser}/operations/templateSpecs.js +3 -3
  21. package/dist/browser/operations/templateSpecs.js.map +1 -0
  22. package/dist/browser/operationsInterfaces/index.d.ts +3 -0
  23. package/{dist-esm/src → dist/browser}/operationsInterfaces/index.d.ts.map +1 -1
  24. package/{dist-esm/src → dist/browser}/operationsInterfaces/index.js +2 -2
  25. package/dist/browser/operationsInterfaces/index.js.map +1 -0
  26. package/{dist-esm/src → dist/browser}/operationsInterfaces/templateSpecVersions.d.ts +1 -1
  27. package/dist/browser/operationsInterfaces/templateSpecVersions.d.ts.map +1 -0
  28. package/dist/browser/operationsInterfaces/templateSpecVersions.js.map +1 -0
  29. package/{dist-esm/src → dist/browser}/operationsInterfaces/templateSpecs.d.ts +1 -1
  30. package/dist/browser/operationsInterfaces/templateSpecs.d.ts.map +1 -0
  31. package/dist/browser/operationsInterfaces/templateSpecs.js.map +1 -0
  32. package/dist/browser/package.json +3 -0
  33. package/dist/browser/pagingHelper.js.map +1 -0
  34. package/{dist-esm/src → dist/browser}/templateSpecsClient.d.ts +2 -2
  35. package/dist/browser/templateSpecsClient.d.ts.map +1 -0
  36. package/{dist-esm/src → dist/browser}/templateSpecsClient.js +15 -18
  37. package/dist/browser/templateSpecsClient.js.map +1 -0
  38. package/dist/commonjs/index.d.ts +5 -0
  39. package/dist/commonjs/index.d.ts.map +1 -0
  40. package/dist/commonjs/index.js +19 -0
  41. package/dist/commonjs/index.js.map +1 -0
  42. package/{types/arm-templatespecs.d.ts → dist/commonjs/models/index.d.ts} +310 -472
  43. package/dist/commonjs/models/index.d.ts.map +1 -0
  44. package/dist/commonjs/models/index.js +29 -0
  45. package/dist/commonjs/models/index.js.map +1 -0
  46. package/dist/commonjs/models/mappers.d.ts +15 -0
  47. package/dist/commonjs/models/mappers.d.ts.map +1 -0
  48. package/dist/commonjs/models/mappers.js +422 -0
  49. package/dist/commonjs/models/mappers.js.map +1 -0
  50. package/dist/commonjs/models/parameters.d.ts +16 -0
  51. package/dist/commonjs/models/parameters.d.ts.map +1 -0
  52. package/dist/commonjs/models/parameters.js +147 -0
  53. package/dist/commonjs/models/parameters.js.map +1 -0
  54. package/dist/commonjs/operations/index.d.ts +3 -0
  55. package/dist/commonjs/operations/index.d.ts.map +1 -0
  56. package/dist/commonjs/operations/index.js +13 -0
  57. package/dist/commonjs/operations/index.js.map +1 -0
  58. package/dist/commonjs/operations/templateSpecVersions.d.ts +72 -0
  59. package/dist/commonjs/operations/templateSpecVersions.d.ts.map +1 -0
  60. package/dist/commonjs/operations/templateSpecVersions.js +297 -0
  61. package/dist/commonjs/operations/templateSpecVersions.js.map +1 -0
  62. package/dist/commonjs/operations/templateSpecs.d.ts +82 -0
  63. package/dist/commonjs/operations/templateSpecs.d.ts.map +1 -0
  64. package/dist/commonjs/operations/templateSpecs.js +389 -0
  65. package/dist/commonjs/operations/templateSpecs.js.map +1 -0
  66. package/dist/commonjs/operationsInterfaces/index.d.ts +3 -0
  67. package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -0
  68. package/dist/commonjs/operationsInterfaces/index.js +13 -0
  69. package/dist/commonjs/operationsInterfaces/index.js.map +1 -0
  70. package/dist/commonjs/operationsInterfaces/templateSpecVersions.d.ts +47 -0
  71. package/dist/commonjs/operationsInterfaces/templateSpecVersions.d.ts.map +1 -0
  72. package/dist/commonjs/operationsInterfaces/templateSpecVersions.js +10 -0
  73. package/dist/commonjs/operationsInterfaces/templateSpecVersions.js.map +1 -0
  74. package/dist/commonjs/operationsInterfaces/templateSpecs.d.ts +46 -0
  75. package/dist/commonjs/operationsInterfaces/templateSpecs.d.ts.map +1 -0
  76. package/dist/commonjs/operationsInterfaces/templateSpecs.js +10 -0
  77. package/dist/commonjs/operationsInterfaces/templateSpecs.js.map +1 -0
  78. package/dist/commonjs/package.json +3 -0
  79. package/dist/commonjs/pagingHelper.d.ts +13 -0
  80. package/dist/commonjs/pagingHelper.d.ts.map +1 -0
  81. package/dist/commonjs/pagingHelper.js +36 -0
  82. package/dist/commonjs/pagingHelper.js.map +1 -0
  83. package/dist/commonjs/templateSpecsClient.d.ts +21 -0
  84. package/dist/commonjs/templateSpecsClient.d.ts.map +1 -0
  85. package/dist/commonjs/templateSpecsClient.js +103 -0
  86. package/dist/commonjs/templateSpecsClient.js.map +1 -0
  87. package/dist/esm/index.d.ts +5 -0
  88. package/dist/esm/index.d.ts.map +1 -0
  89. package/{src/index.ts → dist/esm/index.js} +5 -5
  90. package/dist/esm/index.js.map +1 -0
  91. package/dist/esm/models/index.d.ts +310 -0
  92. package/dist/esm/models/index.d.ts.map +1 -0
  93. package/dist/esm/models/index.js +26 -0
  94. package/dist/esm/models/index.js.map +1 -0
  95. package/dist/esm/models/mappers.d.ts +15 -0
  96. package/dist/esm/models/mappers.d.ts.map +1 -0
  97. package/dist/esm/models/mappers.js +419 -0
  98. package/dist/esm/models/mappers.js.map +1 -0
  99. package/dist/esm/models/parameters.d.ts +16 -0
  100. package/dist/esm/models/parameters.d.ts.map +1 -0
  101. package/dist/esm/models/parameters.js +144 -0
  102. package/dist/esm/models/parameters.js.map +1 -0
  103. package/dist/esm/operations/index.d.ts +3 -0
  104. package/dist/esm/operations/index.d.ts.map +1 -0
  105. package/dist/esm/operations/index.js +10 -0
  106. package/dist/esm/operations/index.js.map +1 -0
  107. package/dist/esm/operations/templateSpecVersions.d.ts +72 -0
  108. package/dist/esm/operations/templateSpecVersions.d.ts.map +1 -0
  109. package/dist/esm/operations/templateSpecVersions.js +293 -0
  110. package/dist/esm/operations/templateSpecVersions.js.map +1 -0
  111. package/dist/esm/operations/templateSpecs.d.ts +82 -0
  112. package/dist/esm/operations/templateSpecs.d.ts.map +1 -0
  113. package/dist/esm/operations/templateSpecs.js +385 -0
  114. package/dist/esm/operations/templateSpecs.js.map +1 -0
  115. package/dist/esm/operationsInterfaces/index.d.ts +3 -0
  116. package/dist/esm/operationsInterfaces/index.d.ts.map +1 -0
  117. package/dist/esm/operationsInterfaces/index.js +10 -0
  118. package/dist/esm/operationsInterfaces/index.js.map +1 -0
  119. package/dist/esm/operationsInterfaces/templateSpecVersions.d.ts +47 -0
  120. package/dist/esm/operationsInterfaces/templateSpecVersions.d.ts.map +1 -0
  121. package/{src/operations/index.ts → dist/esm/operationsInterfaces/templateSpecVersions.js} +2 -3
  122. package/dist/esm/operationsInterfaces/templateSpecVersions.js.map +1 -0
  123. package/dist/esm/operationsInterfaces/templateSpecs.d.ts +46 -0
  124. package/dist/esm/operationsInterfaces/templateSpecs.d.ts.map +1 -0
  125. package/{src/operationsInterfaces/index.ts → dist/esm/operationsInterfaces/templateSpecs.js} +2 -3
  126. package/dist/esm/operationsInterfaces/templateSpecs.js.map +1 -0
  127. package/dist/esm/package.json +3 -0
  128. package/dist/esm/pagingHelper.d.ts +13 -0
  129. package/dist/esm/pagingHelper.d.ts.map +1 -0
  130. package/dist/esm/pagingHelper.js +32 -0
  131. package/dist/esm/pagingHelper.js.map +1 -0
  132. package/dist/esm/templateSpecsClient.d.ts +21 -0
  133. package/dist/esm/templateSpecsClient.d.ts.map +1 -0
  134. package/dist/esm/templateSpecsClient.js +98 -0
  135. package/dist/esm/templateSpecsClient.js.map +1 -0
  136. package/dist/react-native/index.d.ts +5 -0
  137. package/dist/react-native/index.d.ts.map +1 -0
  138. package/dist/react-native/index.js +13 -0
  139. package/dist/react-native/index.js.map +1 -0
  140. package/dist/react-native/models/index.d.ts +310 -0
  141. package/dist/react-native/models/index.d.ts.map +1 -0
  142. package/dist/react-native/models/index.js +26 -0
  143. package/dist/react-native/models/index.js.map +1 -0
  144. package/dist/react-native/models/mappers.d.ts +15 -0
  145. package/dist/react-native/models/mappers.d.ts.map +1 -0
  146. package/dist/react-native/models/mappers.js +419 -0
  147. package/dist/react-native/models/mappers.js.map +1 -0
  148. package/dist/react-native/models/parameters.d.ts +16 -0
  149. package/dist/react-native/models/parameters.d.ts.map +1 -0
  150. package/dist/react-native/models/parameters.js +144 -0
  151. package/dist/react-native/models/parameters.js.map +1 -0
  152. package/dist/react-native/operations/index.d.ts +3 -0
  153. package/dist/react-native/operations/index.d.ts.map +1 -0
  154. package/dist/react-native/operations/index.js +10 -0
  155. package/dist/react-native/operations/index.js.map +1 -0
  156. package/dist/react-native/operations/templateSpecVersions.d.ts +72 -0
  157. package/dist/react-native/operations/templateSpecVersions.d.ts.map +1 -0
  158. package/dist/react-native/operations/templateSpecVersions.js +293 -0
  159. package/dist/react-native/operations/templateSpecVersions.js.map +1 -0
  160. package/dist/react-native/operations/templateSpecs.d.ts +82 -0
  161. package/dist/react-native/operations/templateSpecs.d.ts.map +1 -0
  162. package/dist/react-native/operations/templateSpecs.js +385 -0
  163. package/dist/react-native/operations/templateSpecs.js.map +1 -0
  164. package/dist/react-native/operationsInterfaces/index.d.ts +3 -0
  165. package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -0
  166. package/dist/react-native/operationsInterfaces/index.js +10 -0
  167. package/dist/react-native/operationsInterfaces/index.js.map +1 -0
  168. package/dist/react-native/operationsInterfaces/templateSpecVersions.d.ts +47 -0
  169. package/dist/react-native/operationsInterfaces/templateSpecVersions.d.ts.map +1 -0
  170. package/dist/react-native/operationsInterfaces/templateSpecVersions.js +9 -0
  171. package/dist/react-native/operationsInterfaces/templateSpecVersions.js.map +1 -0
  172. package/dist/react-native/operationsInterfaces/templateSpecs.d.ts +46 -0
  173. package/dist/react-native/operationsInterfaces/templateSpecs.d.ts.map +1 -0
  174. package/dist/react-native/operationsInterfaces/templateSpecs.js +9 -0
  175. package/dist/react-native/operationsInterfaces/templateSpecs.js.map +1 -0
  176. package/dist/react-native/package.json +3 -0
  177. package/dist/react-native/pagingHelper.d.ts +13 -0
  178. package/dist/react-native/pagingHelper.d.ts.map +1 -0
  179. package/dist/react-native/pagingHelper.js +32 -0
  180. package/dist/react-native/pagingHelper.js.map +1 -0
  181. package/dist/react-native/templateSpecsClient.d.ts +21 -0
  182. package/dist/react-native/templateSpecsClient.d.ts.map +1 -0
  183. package/dist/react-native/templateSpecsClient.js +98 -0
  184. package/dist/react-native/templateSpecsClient.js.map +1 -0
  185. package/package.json +66 -35
  186. package/dist/index.js +0 -1433
  187. package/dist/index.js.map +0 -1
  188. package/dist/index.min.js +0 -1
  189. package/dist/index.min.js.map +0 -1
  190. package/dist-esm/samples-dev/templateSpecVersionsCreateOrUpdateSample.d.ts +0 -2
  191. package/dist-esm/samples-dev/templateSpecVersionsCreateOrUpdateSample.d.ts.map +0 -1
  192. package/dist-esm/samples-dev/templateSpecVersionsCreateOrUpdateSample.js +0 -33
  193. package/dist-esm/samples-dev/templateSpecVersionsCreateOrUpdateSample.js.map +0 -1
  194. package/dist-esm/samples-dev/templateSpecVersionsDeleteSample.d.ts +0 -2
  195. package/dist-esm/samples-dev/templateSpecVersionsDeleteSample.d.ts.map +0 -1
  196. package/dist-esm/samples-dev/templateSpecVersionsDeleteSample.js +0 -30
  197. package/dist-esm/samples-dev/templateSpecVersionsDeleteSample.js.map +0 -1
  198. package/dist-esm/samples-dev/templateSpecVersionsGetSample.d.ts +0 -2
  199. package/dist-esm/samples-dev/templateSpecVersionsGetSample.d.ts.map +0 -1
  200. package/dist-esm/samples-dev/templateSpecVersionsGetSample.js +0 -30
  201. package/dist-esm/samples-dev/templateSpecVersionsGetSample.js.map +0 -1
  202. package/dist-esm/samples-dev/templateSpecVersionsListSample.d.ts +0 -2
  203. package/dist-esm/samples-dev/templateSpecVersionsListSample.d.ts.map +0 -1
  204. package/dist-esm/samples-dev/templateSpecVersionsListSample.js +0 -45
  205. package/dist-esm/samples-dev/templateSpecVersionsListSample.js.map +0 -1
  206. package/dist-esm/samples-dev/templateSpecVersionsUpdateSample.d.ts +0 -2
  207. package/dist-esm/samples-dev/templateSpecVersionsUpdateSample.d.ts.map +0 -1
  208. package/dist-esm/samples-dev/templateSpecVersionsUpdateSample.js +0 -29
  209. package/dist-esm/samples-dev/templateSpecVersionsUpdateSample.js.map +0 -1
  210. package/dist-esm/samples-dev/templateSpecsCreateOrUpdateSample.d.ts +0 -2
  211. package/dist-esm/samples-dev/templateSpecsCreateOrUpdateSample.d.ts.map +0 -1
  212. package/dist-esm/samples-dev/templateSpecsCreateOrUpdateSample.js +0 -26
  213. package/dist-esm/samples-dev/templateSpecsCreateOrUpdateSample.js.map +0 -1
  214. package/dist-esm/samples-dev/templateSpecsDeleteSample.d.ts +0 -2
  215. package/dist-esm/samples-dev/templateSpecsDeleteSample.d.ts.map +0 -1
  216. package/dist-esm/samples-dev/templateSpecsDeleteSample.js +0 -29
  217. package/dist-esm/samples-dev/templateSpecsDeleteSample.js.map +0 -1
  218. package/dist-esm/samples-dev/templateSpecsGetSample.d.ts +0 -2
  219. package/dist-esm/samples-dev/templateSpecsGetSample.d.ts.map +0 -1
  220. package/dist-esm/samples-dev/templateSpecsGetSample.js +0 -29
  221. package/dist-esm/samples-dev/templateSpecsGetSample.js.map +0 -1
  222. package/dist-esm/samples-dev/templateSpecsListByResourceGroupSample.d.ts +0 -2
  223. package/dist-esm/samples-dev/templateSpecsListByResourceGroupSample.d.ts.map +0 -1
  224. package/dist-esm/samples-dev/templateSpecsListByResourceGroupSample.js +0 -44
  225. package/dist-esm/samples-dev/templateSpecsListByResourceGroupSample.js.map +0 -1
  226. package/dist-esm/samples-dev/templateSpecsListBySubscriptionSample.d.ts +0 -2
  227. package/dist-esm/samples-dev/templateSpecsListBySubscriptionSample.d.ts.map +0 -1
  228. package/dist-esm/samples-dev/templateSpecsListBySubscriptionSample.js +0 -43
  229. package/dist-esm/samples-dev/templateSpecsListBySubscriptionSample.js.map +0 -1
  230. package/dist-esm/samples-dev/templateSpecsUpdateSample.d.ts +0 -2
  231. package/dist-esm/samples-dev/templateSpecsUpdateSample.d.ts.map +0 -1
  232. package/dist-esm/samples-dev/templateSpecsUpdateSample.js +0 -24
  233. package/dist-esm/samples-dev/templateSpecsUpdateSample.js.map +0 -1
  234. package/dist-esm/src/index.d.ts +0 -5
  235. package/dist-esm/src/index.js.map +0 -1
  236. package/dist-esm/src/models/index.js.map +0 -1
  237. package/dist-esm/src/models/mappers.js.map +0 -1
  238. package/dist-esm/src/models/parameters.js.map +0 -1
  239. package/dist-esm/src/operations/index.d.ts +0 -3
  240. package/dist-esm/src/operations/index.js.map +0 -1
  241. package/dist-esm/src/operations/templateSpecVersions.d.ts.map +0 -1
  242. package/dist-esm/src/operations/templateSpecVersions.js.map +0 -1
  243. package/dist-esm/src/operations/templateSpecs.d.ts.map +0 -1
  244. package/dist-esm/src/operations/templateSpecs.js.map +0 -1
  245. package/dist-esm/src/operationsInterfaces/index.d.ts +0 -3
  246. package/dist-esm/src/operationsInterfaces/index.js.map +0 -1
  247. package/dist-esm/src/operationsInterfaces/templateSpecVersions.d.ts.map +0 -1
  248. package/dist-esm/src/operationsInterfaces/templateSpecVersions.js.map +0 -1
  249. package/dist-esm/src/operationsInterfaces/templateSpecs.d.ts.map +0 -1
  250. package/dist-esm/src/operationsInterfaces/templateSpecs.js.map +0 -1
  251. package/dist-esm/src/pagingHelper.js.map +0 -1
  252. package/dist-esm/src/templateSpecsClient.d.ts.map +0 -1
  253. package/dist-esm/src/templateSpecsClient.js.map +0 -1
  254. package/dist-esm/test/sampleTest.d.ts +0 -2
  255. package/dist-esm/test/sampleTest.d.ts.map +0 -1
  256. package/dist-esm/test/sampleTest.js +0 -42
  257. package/dist-esm/test/sampleTest.js.map +0 -1
  258. package/src/models/index.ts +0 -359
  259. package/src/models/mappers.ts +0 -456
  260. package/src/models/parameters.ts +0 -168
  261. package/src/operations/templateSpecVersions.ts +0 -389
  262. package/src/operations/templateSpecs.ts +0 -476
  263. package/src/operationsInterfaces/templateSpecVersions.ts +0 -91
  264. package/src/operationsInterfaces/templateSpecs.ts +0 -88
  265. package/src/pagingHelper.ts +0 -39
  266. package/src/templateSpecsClient.ts +0 -142
  267. package/tsconfig.json +0 -33
  268. /package/{dist-esm/src → dist/browser}/models/index.d.ts +0 -0
  269. /package/{dist-esm/src → dist/browser}/models/index.d.ts.map +0 -0
  270. /package/{dist-esm/src → dist/browser}/models/index.js +0 -0
  271. /package/{dist-esm/src → dist/browser}/models/mappers.d.ts +0 -0
  272. /package/{dist-esm/src → dist/browser}/models/mappers.d.ts.map +0 -0
  273. /package/{dist-esm/src → dist/browser}/models/mappers.js +0 -0
  274. /package/{dist-esm/src → dist/browser}/models/parameters.d.ts +0 -0
  275. /package/{dist-esm/src → dist/browser}/models/parameters.d.ts.map +0 -0
  276. /package/{dist-esm/src → dist/browser}/operationsInterfaces/templateSpecVersions.js +0 -0
  277. /package/{dist-esm/src → dist/browser}/operationsInterfaces/templateSpecs.js +0 -0
  278. /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts +0 -0
  279. /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts.map +0 -0
  280. /package/{dist-esm/src → dist/browser}/pagingHelper.js +0 -0
  281. /package/{types → dist/commonjs}/tsdoc-metadata.json +0 -0
package/README.md CHANGED
@@ -48,20 +48,28 @@ Set the values of the client ID, tenant ID, and client secret of the AAD applica
48
48
 
49
49
  For more information about how to create an Azure AD Application check out [this guide](https://learn.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal).
50
50
 
51
- ```javascript
52
- const { TemplateSpecsClient } = require("@azure/arm-templatespecs");
53
- const { DefaultAzureCredential } = require("@azure/identity");
54
- // For client-side applications running in the browser, use InteractiveBrowserCredential instead of DefaultAzureCredential. See https://aka.ms/azsdk/js/identity/examples for more details.
51
+ Using Node.js and Node-like environments, you can use the `DefaultAzureCredential` class to authenticate the client.
52
+
53
+ ```ts snippet:ReadmeSampleCreateClient_Node
54
+ import { TemplateSpecsClient } from "@azure/arm-templatespecs";
55
+ import { DefaultAzureCredential } from "@azure/identity";
55
56
 
56
57
  const subscriptionId = "00000000-0000-0000-0000-000000000000";
57
58
  const client = new TemplateSpecsClient(new DefaultAzureCredential(), subscriptionId);
59
+ ```
60
+
61
+ For browser environments, use the `InteractiveBrowserCredential` from the `@azure/identity` package to authenticate.
62
+
63
+ ```ts snippet:ReadmeSampleCreateClient_Browser
64
+ import { InteractiveBrowserCredential } from "@azure/identity";
65
+ import { TemplateSpecsClient } from "@azure/arm-templatespecs";
58
66
 
59
- // For client-side applications running in the browser, use this code instead:
60
- // const credential = new InteractiveBrowserCredential({
61
- // tenantId: "<YOUR_TENANT_ID>",
62
- // clientId: "<YOUR_CLIENT_ID>"
63
- // });
64
- // const client = new TemplateSpecsClient(credential, subscriptionId);
67
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
68
+ const credential = new InteractiveBrowserCredential({
69
+ tenantId: "<YOUR_TENANT_ID>",
70
+ clientId: "<YOUR_CLIENT_ID>",
71
+ });
72
+ const client = new TemplateSpecsClient(credential, subscriptionId);
65
73
  ```
66
74
 
67
75
  ### JavaScript Bundle
@@ -80,8 +88,9 @@ To use this client library in the browser, first you need to use a bundler. For
80
88
 
81
89
  Enabling logging may help uncover useful information about failures. In order to see a log of HTTP requests and responses, set the `AZURE_LOG_LEVEL` environment variable to `info`. Alternatively, logging can be enabled at runtime by calling `setLogLevel` in the `@azure/logger`:
82
90
 
83
- ```javascript
84
- const { setLogLevel } = require("@azure/logger");
91
+ ```ts snippet:SetLogLevel
92
+ import { setLogLevel } from "@azure/logger";
93
+
85
94
  setLogLevel("info");
86
95
  ```
87
96
 
@@ -0,0 +1,5 @@
1
+ export { getContinuationToken } from "./pagingHelper.js";
2
+ export * from "./models/index.js";
3
+ export { TemplateSpecsClient } from "./templateSpecsClient.js";
4
+ export * from "./operationsInterfaces/index.js";
5
+ //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AACtD,cAAc,UAAU,CAAC;AACzB,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,cAAc,wBAAwB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACzD,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,cAAc,iCAAiC,CAAC"}
@@ -6,8 +6,8 @@
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
8
  /// <reference lib="esnext.asynciterable" />
9
- export { getContinuationToken } from "./pagingHelper";
10
- export * from "./models";
11
- export { TemplateSpecsClient } from "./templateSpecsClient";
12
- export * from "./operationsInterfaces";
9
+ export { getContinuationToken } from "./pagingHelper.js";
10
+ export * from "./models/index.js";
11
+ export { TemplateSpecsClient } from "./templateSpecsClient.js";
12
+ export * from "./operationsInterfaces/index.js";
13
13
  //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,4CAA4C;AAC5C,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACzD,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,cAAc,iCAAiC,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\n/// <reference lib=\"esnext.asynciterable\" />\nexport { getContinuationToken } from \"./pagingHelper.js\";\nexport * from \"./models/index.js\";\nexport { TemplateSpecsClient } from \"./templateSpecsClient.js\";\nexport * from \"./operationsInterfaces/index.js\";\n"]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/models/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AA+LH,sEAAsE;AACtE,MAAM,CAAN,IAAY,kBASX;AATD,WAAY,kBAAkB;IAC5B,WAAW;IACX,mCAAa,CAAA;IACb,kBAAkB;IAClB,iDAA2B,CAAA;IAC3B,sBAAsB;IACtB,yDAAmC,CAAA;IACnC,UAAU;IACV,iCAAW,CAAA;AACb,CAAC,EATW,kBAAkB,KAAlB,kBAAkB,QAS7B;AAcD,+EAA+E;AAC/E,MAAM,CAAN,IAAY,2BAGX;AAHD,WAAY,2BAA2B;IACrC,2DAA2D;IAC3D,oDAAqB,CAAA;AACvB,CAAC,EAHW,2BAA2B,KAA3B,2BAA2B,QAGtC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\n\n/** High-level information about a Template Spec version. */\nexport interface TemplateSpecVersionInfo {\n /**\n * Template Spec version description.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly description?: string;\n /**\n * The timestamp of when the version was created.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly timeCreated?: Date;\n /**\n * The timestamp of when the version was last modified.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly timeModified?: Date;\n}\n\n/** Common properties for all Azure resources. */\nexport interface AzureResourceBase {\n /**\n * String Id used to locate any resource on Azure.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly id?: string;\n /**\n * Name of this resource.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly name?: string;\n /**\n * Type of this resource.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly type?: string;\n /**\n * Azure Resource Manager metadata containing createdBy and modifiedBy information.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly systemData?: SystemData;\n}\n\n/** Metadata pertaining to creation and last modification of the resource. */\nexport interface SystemData {\n /** The identity that created the resource. */\n createdBy?: string;\n /** The type of identity that created the resource. */\n createdByType?: CreatedByType;\n /** The timestamp of resource creation (UTC). */\n createdAt?: Date;\n /** The identity that last modified the resource. */\n lastModifiedBy?: string;\n /** The type of identity that last modified the resource. */\n lastModifiedByType?: CreatedByType;\n /** The timestamp of resource last modification (UTC) */\n lastModifiedAt?: Date;\n}\n\n/** Template Specs error response. */\nexport interface TemplateSpecsError {\n /** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.) */\n error?: ErrorResponse;\n}\n\n/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.) */\nexport interface ErrorResponse {\n /**\n * The error code.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly code?: string;\n /**\n * The error message.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly message?: string;\n /**\n * The error target.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly target?: string;\n /**\n * The error details.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly details?: ErrorResponse[];\n /**\n * The error additional info.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly additionalInfo?: ErrorAdditionalInfo[];\n}\n\n/** The resource management error additional info. */\nexport interface ErrorAdditionalInfo {\n /**\n * The additional info type.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly type?: string;\n /**\n * The additional info.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly info?: Record<string, unknown>;\n}\n\n/** List of Template Specs. */\nexport interface TemplateSpecsListResult {\n /** An array of Template Specs. */\n value?: TemplateSpec[];\n /**\n * The URL to use for getting the next set of results.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly nextLink?: string;\n}\n\n/** Represents a Template Spec artifact containing an embedded Azure Resource Manager template for use as a linked template. */\nexport interface LinkedTemplateArtifact {\n /** A filesystem safe relative path of the artifact. */\n path: string;\n /** The Azure Resource Manager template. */\n template: Record<string, unknown>;\n}\n\n/** List of Template Specs versions */\nexport interface TemplateSpecVersionsListResult {\n /** An array of Template Spec versions. */\n value?: TemplateSpecVersion[];\n /**\n * The URL to use for getting the next set of results.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly nextLink?: string;\n}\n\n/** Template Spec object. */\nexport interface TemplateSpec extends AzureResourceBase {\n /** The location of the Template Spec. It cannot be changed after Template Spec creation. It must be one of the supported Azure locations. */\n location: string;\n /** Resource tags. */\n tags?: { [propertyName: string]: string };\n /** Template Spec description. */\n description?: string;\n /** Template Spec display name. */\n displayName?: string;\n /** The Template Spec metadata. Metadata is an open-ended object and is typically a collection of key-value pairs. */\n metadata?: Record<string, unknown>;\n /**\n * High-level information about the versions within this Template Spec. The keys are the version names. Only populated if the $expand query parameter is set to 'versions'.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly versions?: { [propertyName: string]: TemplateSpecVersionInfo };\n}\n\n/** Template Spec properties to be updated (only tags are currently supported). */\nexport interface TemplateSpecUpdateModel extends AzureResourceBase {\n /** Resource tags. */\n tags?: { [propertyName: string]: string };\n}\n\n/** Template Spec Version object. */\nexport interface TemplateSpecVersion extends AzureResourceBase {\n /** The location of the Template Spec Version. It must match the location of the parent Template Spec. */\n location: string;\n /** Resource tags. */\n tags?: { [propertyName: string]: string };\n /** Template Spec version description. */\n description?: string;\n /** An array of linked template artifacts. */\n linkedTemplates?: LinkedTemplateArtifact[];\n /** The version metadata. Metadata is an open-ended object and is typically a collection of key-value pairs. */\n metadata?: Record<string, unknown>;\n /** The main Azure Resource Manager template content. */\n mainTemplate?: Record<string, unknown>;\n /** The Azure Resource Manager template UI definition content. */\n uiFormDefinition?: Record<string, unknown>;\n}\n\n/** Template Spec Version properties to be updated (only tags are currently supported). */\nexport interface TemplateSpecVersionUpdateModel extends AzureResourceBase {\n /** Resource tags. */\n tags?: { [propertyName: string]: string };\n}\n\n/** Known values of {@link CreatedByType} that the service accepts. */\nexport enum KnownCreatedByType {\n /** User */\n User = \"User\",\n /** Application */\n Application = \"Application\",\n /** ManagedIdentity */\n ManagedIdentity = \"ManagedIdentity\",\n /** Key */\n Key = \"Key\"\n}\n\n/**\n * Defines values for CreatedByType. \\\n * {@link KnownCreatedByType} can be used interchangeably with CreatedByType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **User** \\\n * **Application** \\\n * **ManagedIdentity** \\\n * **Key**\n */\nexport type CreatedByType = string;\n\n/** Known values of {@link TemplateSpecExpandKind} that the service accepts. */\nexport enum KnownTemplateSpecExpandKind {\n /** Includes version information with the Template Spec. */\n Versions = \"versions\"\n}\n\n/**\n * Defines values for TemplateSpecExpandKind. \\\n * {@link KnownTemplateSpecExpandKind} can be used interchangeably with TemplateSpecExpandKind,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **versions**: Includes version information with the Template Spec.\n */\nexport type TemplateSpecExpandKind = string;\n\n/** Optional parameters. */\nexport interface TemplateSpecsCreateOrUpdateOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the createOrUpdate operation. */\nexport type TemplateSpecsCreateOrUpdateResponse = TemplateSpec;\n\n/** Optional parameters. */\nexport interface TemplateSpecsUpdateOptionalParams\n extends coreClient.OperationOptions {\n /** Template Spec resource with the tags to be updated. */\n templateSpec?: TemplateSpecUpdateModel;\n}\n\n/** Contains response data for the update operation. */\nexport type TemplateSpecsUpdateResponse = TemplateSpec;\n\n/** Optional parameters. */\nexport interface TemplateSpecsGetOptionalParams\n extends coreClient.OperationOptions {\n /** Allows for expansion of additional Template Spec details in the response. Optional. */\n expand?: TemplateSpecExpandKind;\n}\n\n/** Contains response data for the get operation. */\nexport type TemplateSpecsGetResponse = TemplateSpec;\n\n/** Optional parameters. */\nexport interface TemplateSpecsDeleteOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Optional parameters. */\nexport interface TemplateSpecsListBySubscriptionOptionalParams\n extends coreClient.OperationOptions {\n /** Allows for expansion of additional Template Spec details in the response. Optional. */\n expand?: TemplateSpecExpandKind;\n}\n\n/** Contains response data for the listBySubscription operation. */\nexport type TemplateSpecsListBySubscriptionResponse = TemplateSpecsListResult;\n\n/** Optional parameters. */\nexport interface TemplateSpecsListByResourceGroupOptionalParams\n extends coreClient.OperationOptions {\n /** Allows for expansion of additional Template Spec details in the response. Optional. */\n expand?: TemplateSpecExpandKind;\n}\n\n/** Contains response data for the listByResourceGroup operation. */\nexport type TemplateSpecsListByResourceGroupResponse = TemplateSpecsListResult;\n\n/** Optional parameters. */\nexport interface TemplateSpecsListBySubscriptionNextOptionalParams\n extends coreClient.OperationOptions {\n /** Allows for expansion of additional Template Spec details in the response. Optional. */\n expand?: TemplateSpecExpandKind;\n}\n\n/** Contains response data for the listBySubscriptionNext operation. */\nexport type TemplateSpecsListBySubscriptionNextResponse = TemplateSpecsListResult;\n\n/** Optional parameters. */\nexport interface TemplateSpecsListByResourceGroupNextOptionalParams\n extends coreClient.OperationOptions {\n /** Allows for expansion of additional Template Spec details in the response. Optional. */\n expand?: TemplateSpecExpandKind;\n}\n\n/** Contains response data for the listByResourceGroupNext operation. */\nexport type TemplateSpecsListByResourceGroupNextResponse = TemplateSpecsListResult;\n\n/** Optional parameters. */\nexport interface TemplateSpecVersionsCreateOrUpdateOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the createOrUpdate operation. */\nexport type TemplateSpecVersionsCreateOrUpdateResponse = TemplateSpecVersion;\n\n/** Optional parameters. */\nexport interface TemplateSpecVersionsUpdateOptionalParams\n extends coreClient.OperationOptions {\n /** Template Spec Version resource with the tags to be updated. */\n templateSpecVersionUpdateModel?: TemplateSpecVersionUpdateModel;\n}\n\n/** Contains response data for the update operation. */\nexport type TemplateSpecVersionsUpdateResponse = TemplateSpecVersion;\n\n/** Optional parameters. */\nexport interface TemplateSpecVersionsGetOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the get operation. */\nexport type TemplateSpecVersionsGetResponse = TemplateSpecVersion;\n\n/** Optional parameters. */\nexport interface TemplateSpecVersionsDeleteOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Optional parameters. */\nexport interface TemplateSpecVersionsListOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the list operation. */\nexport type TemplateSpecVersionsListResponse = TemplateSpecVersionsListResult;\n\n/** Optional parameters. */\nexport interface TemplateSpecVersionsListNextOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the listNext operation. */\nexport type TemplateSpecVersionsListNextResponse = TemplateSpecVersionsListResult;\n\n/** Optional parameters. */\nexport interface TemplateSpecsClientOptionalParams\n extends coreClient.ServiceClientOptions {\n /** server parameter */\n $host?: string;\n /** Api Version */\n apiVersion?: string;\n /** Overrides client endpoint. */\n endpoint?: string;\n}\n"]}
@@ -0,0 +1 @@
1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WAAW;4BACjB,SAAS,EAAE,wBAAwB;yBACpC;qBACF;iBACF;aACF,EACD,QAAQ,EAAE;gBACR,cAAc,EAAE,qBAAqB;gBACrC,IAAI,EAAE;oBACJ,IAAI,EAAE,YAAY;oBAClB,KAAK,EAAE,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE;iBACjC;aACF,EACD,YAAY,EAAE;gBACZ,cAAc,EAAE,yBAAyB;gBACzC,IAAI,EAAE;oBACJ,IAAI,EAAE,YAAY;oBAClB,KAAK,EAAE,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE;iBACjC;aACF,EACD,gBAAgB,EAAE;gBAChB,cAAc,EAAE,6BAA6B;gBAC7C,IAAI,EAAE;oBACJ,IAAI,EAAE,YAAY;oBAClB,KAAK,EAAE,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE;iBACjC;aACF,GACF;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,8BAA8B,GAA+B;IACxE,IAAI,EAAE;QACJ,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,gCAAgC;QAC3C,eAAe,kCACV,iBAAiB,CAAC,IAAI,CAAC,eAAe,KACzC,IAAI,EAAE;gBACJ,cAAc,EAAE,MAAM;gBACtB,IAAI,EAAE;oBACJ,IAAI,EAAE,YAAY;oBAClB,KAAK,EAAE,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;iBACpC;aACF,GACF;KACF;CACF,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\n\nexport const TemplateSpecVersionInfo: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"TemplateSpecVersionInfo\",\n modelProperties: {\n description: {\n serializedName: \"description\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n timeCreated: {\n serializedName: \"timeCreated\",\n readOnly: true,\n type: {\n name: \"DateTime\"\n }\n },\n timeModified: {\n serializedName: \"timeModified\",\n readOnly: true,\n type: {\n name: \"DateTime\"\n }\n }\n }\n }\n};\n\nexport const AzureResourceBase: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"AzureResourceBase\",\n modelProperties: {\n id: {\n serializedName: \"id\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n name: {\n serializedName: \"name\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n type: {\n serializedName: \"type\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n systemData: {\n serializedName: \"systemData\",\n type: {\n name: \"Composite\",\n className: \"SystemData\"\n }\n }\n }\n }\n};\n\nexport const SystemData: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"SystemData\",\n modelProperties: {\n createdBy: {\n serializedName: \"createdBy\",\n type: {\n name: \"String\"\n }\n },\n createdByType: {\n serializedName: \"createdByType\",\n type: {\n name: \"String\"\n }\n },\n createdAt: {\n serializedName: \"createdAt\",\n type: {\n name: \"DateTime\"\n }\n },\n lastModifiedBy: {\n serializedName: \"lastModifiedBy\",\n type: {\n name: \"String\"\n }\n },\n lastModifiedByType: {\n serializedName: \"lastModifiedByType\",\n type: {\n name: \"String\"\n }\n },\n lastModifiedAt: {\n serializedName: \"lastModifiedAt\",\n type: {\n name: \"DateTime\"\n }\n }\n }\n }\n};\n\nexport const TemplateSpecsError: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"TemplateSpecsError\",\n modelProperties: {\n error: {\n serializedName: \"error\",\n type: {\n name: \"Composite\",\n className: \"ErrorResponse\"\n }\n }\n }\n }\n};\n\nexport const ErrorResponse: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ErrorResponse\",\n modelProperties: {\n code: {\n serializedName: \"code\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n message: {\n serializedName: \"message\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n target: {\n serializedName: \"target\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n details: {\n serializedName: \"details\",\n readOnly: true,\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"ErrorResponse\"\n }\n }\n }\n },\n additionalInfo: {\n serializedName: \"additionalInfo\",\n readOnly: true,\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"ErrorAdditionalInfo\"\n }\n }\n }\n }\n }\n }\n};\n\nexport const ErrorAdditionalInfo: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ErrorAdditionalInfo\",\n modelProperties: {\n type: {\n serializedName: \"type\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n info: {\n serializedName: \"info\",\n readOnly: true,\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"any\" } }\n }\n }\n }\n }\n};\n\nexport const TemplateSpecsListResult: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"TemplateSpecsListResult\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"TemplateSpec\"\n }\n }\n }\n },\n nextLink: {\n serializedName: \"nextLink\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const LinkedTemplateArtifact: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"LinkedTemplateArtifact\",\n modelProperties: {\n path: {\n serializedName: \"path\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n template: {\n serializedName: \"template\",\n required: true,\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"any\" } }\n }\n }\n }\n }\n};\n\nexport const TemplateSpecVersionsListResult: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"TemplateSpecVersionsListResult\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"TemplateSpecVersion\"\n }\n }\n }\n },\n nextLink: {\n serializedName: \"nextLink\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const TemplateSpec: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"TemplateSpec\",\n modelProperties: {\n ...AzureResourceBase.type.modelProperties,\n location: {\n serializedName: \"location\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n tags: {\n serializedName: \"tags\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"String\" } }\n }\n },\n description: {\n constraints: {\n MaxLength: 4096\n },\n serializedName: \"properties.description\",\n type: {\n name: \"String\"\n }\n },\n displayName: {\n constraints: {\n MaxLength: 64\n },\n serializedName: \"properties.displayName\",\n type: {\n name: \"String\"\n }\n },\n metadata: {\n serializedName: \"properties.metadata\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"any\" } }\n }\n },\n versions: {\n serializedName: \"properties.versions\",\n readOnly: true,\n type: {\n name: \"Dictionary\",\n value: {\n type: { name: \"Composite\", className: \"TemplateSpecVersionInfo\" }\n }\n }\n }\n }\n }\n};\n\nexport const TemplateSpecUpdateModel: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"TemplateSpecUpdateModel\",\n modelProperties: {\n ...AzureResourceBase.type.modelProperties,\n tags: {\n serializedName: \"tags\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"String\" } }\n }\n }\n }\n }\n};\n\nexport const TemplateSpecVersion: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"TemplateSpecVersion\",\n modelProperties: {\n ...AzureResourceBase.type.modelProperties,\n location: {\n serializedName: \"location\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n tags: {\n serializedName: \"tags\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"String\" } }\n }\n },\n description: {\n constraints: {\n MaxLength: 4096\n },\n serializedName: \"properties.description\",\n type: {\n name: \"String\"\n }\n },\n linkedTemplates: {\n serializedName: \"properties.linkedTemplates\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"LinkedTemplateArtifact\"\n }\n }\n }\n },\n metadata: {\n serializedName: \"properties.metadata\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"any\" } }\n }\n },\n mainTemplate: {\n serializedName: \"properties.mainTemplate\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"any\" } }\n }\n },\n uiFormDefinition: {\n serializedName: \"properties.uiFormDefinition\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"any\" } }\n }\n }\n }\n }\n};\n\nexport const TemplateSpecVersionUpdateModel: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"TemplateSpecVersionUpdateModel\",\n modelProperties: {\n ...AzureResourceBase.type.modelProperties,\n tags: {\n serializedName: \"tags\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"String\" } }\n }\n }\n }\n }\n};\n"]}
@@ -5,7 +5,7 @@
5
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
- import { TemplateSpec as TemplateSpecMapper, TemplateSpecUpdateModel as TemplateSpecUpdateModelMapper, TemplateSpecVersion as TemplateSpecVersionMapper, TemplateSpecVersionUpdateModel as TemplateSpecVersionUpdateModelMapper } from "../models/mappers";
8
+ import { TemplateSpec as TemplateSpecMapper, TemplateSpecUpdateModel as TemplateSpecUpdateModelMapper, TemplateSpecVersion as TemplateSpecVersionMapper, TemplateSpecVersionUpdateModel as TemplateSpecVersionUpdateModelMapper } from "../models/mappers.js";
9
9
  export const contentType = {
10
10
  parameterPath: ["options", "contentType"],
11
11
  mapper: {
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parameters.js","sourceRoot":"","sources":["../../../src/models/parameters.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAOH,OAAO,EAC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F;IACD,YAAY,EAAE,IAAI;CACnB,CAAC;AAEF,MAAM,CAAC,MAAM,wBAAwB,GAAuB;IAC1D,aAAa,EAAE,0BAA0B;IACzC,MAAM,EAAE,yBAAyB;CAClC,CAAC;AAEF,MAAM,CAAC,MAAM,mBAAmB,GAA0B;IACxD,aAAa,EAAE,qBAAqB;IACpC,MAAM,EAAE;QACN,WAAW,EAAE;YACX,OAAO,EAAE,IAAI,MAAM,CAAC,qBAAqB,CAAC;YAC1C,SAAS,EAAE,EAAE;YACb,SAAS,EAAE,CAAC;SACb;QACD,cAAc,EAAE,qBAAqB;QACrC,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,8BAA8B,GAAuB;IAChE,aAAa,EAAE,CAAC,SAAS,EAAE,gCAAgC,CAAC;IAC5D,MAAM,EAAE,oCAAoC;CAC7C,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport {\n OperationParameter,\n OperationURLParameter,\n OperationQueryParameter\n} from \"@azure/core-client\";\nimport {\n TemplateSpec as TemplateSpecMapper,\n TemplateSpecUpdateModel as TemplateSpecUpdateModelMapper,\n TemplateSpecVersion as TemplateSpecVersionMapper,\n TemplateSpecVersionUpdateModel as TemplateSpecVersionUpdateModelMapper\n} from \"../models/mappers.js\";\n\nexport const contentType: OperationParameter = {\n parameterPath: [\"options\", \"contentType\"],\n mapper: {\n defaultValue: \"application/json\",\n isConstant: true,\n serializedName: \"Content-Type\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const templateSpec: OperationParameter = {\n parameterPath: \"templateSpec\",\n mapper: TemplateSpecMapper\n};\n\nexport const accept: OperationParameter = {\n parameterPath: \"accept\",\n mapper: {\n defaultValue: \"application/json\",\n isConstant: true,\n serializedName: \"Accept\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const $host: OperationURLParameter = {\n parameterPath: \"$host\",\n mapper: {\n serializedName: \"$host\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n skipEncoding: true\n};\n\nexport const subscriptionId: OperationURLParameter = {\n parameterPath: \"subscriptionId\",\n mapper: {\n serializedName: \"subscriptionId\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const resourceGroupName: OperationURLParameter = {\n parameterPath: \"resourceGroupName\",\n mapper: {\n constraints: {\n Pattern: new RegExp(\"^[-\\\\w\\\\._\\\\(\\\\)]+$\"),\n MaxLength: 90,\n MinLength: 1\n },\n serializedName: \"resourceGroupName\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const templateSpecName: OperationURLParameter = {\n parameterPath: \"templateSpecName\",\n mapper: {\n constraints: {\n Pattern: new RegExp(\"^[-\\\\w\\\\._\\\\(\\\\)]+$\"),\n MaxLength: 90,\n MinLength: 1\n },\n serializedName: \"templateSpecName\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const apiVersion: OperationQueryParameter = {\n parameterPath: \"apiVersion\",\n mapper: {\n defaultValue: \"2021-05-01\",\n isConstant: true,\n serializedName: \"api-version\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const templateSpec1: OperationParameter = {\n parameterPath: [\"options\", \"templateSpec\"],\n mapper: TemplateSpecUpdateModelMapper\n};\n\nexport const expand: OperationQueryParameter = {\n parameterPath: [\"options\", \"expand\"],\n mapper: {\n serializedName: \"$expand\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const nextLink: OperationURLParameter = {\n parameterPath: \"nextLink\",\n mapper: {\n serializedName: \"nextLink\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n skipEncoding: true\n};\n\nexport const templateSpecVersionModel: OperationParameter = {\n parameterPath: \"templateSpecVersionModel\",\n mapper: TemplateSpecVersionMapper\n};\n\nexport const templateSpecVersion: OperationURLParameter = {\n parameterPath: \"templateSpecVersion\",\n mapper: {\n constraints: {\n Pattern: new RegExp(\"^[-\\\\w\\\\._\\\\(\\\\)]+$\"),\n MaxLength: 90,\n MinLength: 1\n },\n serializedName: \"templateSpecVersion\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const templateSpecVersionUpdateModel: OperationParameter = {\n parameterPath: [\"options\", \"templateSpecVersionUpdateModel\"],\n mapper: TemplateSpecVersionUpdateModelMapper\n};\n"]}
@@ -0,0 +1,3 @@
1
+ export * from "./templateSpecs.js";
2
+ export * from "./templateSpecVersions.js";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":"AAQA,cAAc,iBAAiB,CAAC;AAChC,cAAc,wBAAwB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":"AAQA,cAAc,oBAAoB,CAAC;AACnC,cAAc,2BAA2B,CAAC"}
@@ -5,6 +5,6 @@
5
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
- export * from "./templateSpecs";
9
- export * from "./templateSpecVersions";
8
+ export * from "./templateSpecs.js";
9
+ export * from "./templateSpecVersions.js";
10
10
  //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,oBAAoB,CAAC;AACnC,cAAc,2BAA2B,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nexport * from \"./templateSpecs.js\";\nexport * from \"./templateSpecVersions.js\";\n"]}
@@ -1,7 +1,7 @@
1
1
  import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
- import { TemplateSpecVersions } from "../operationsInterfaces";
3
- import { TemplateSpecsClient } from "../templateSpecsClient";
4
- import { TemplateSpecVersion, TemplateSpecVersionsListOptionalParams, TemplateSpecVersionsCreateOrUpdateOptionalParams, TemplateSpecVersionsCreateOrUpdateResponse, TemplateSpecVersionsUpdateOptionalParams, TemplateSpecVersionsUpdateResponse, TemplateSpecVersionsGetOptionalParams, TemplateSpecVersionsGetResponse, TemplateSpecVersionsDeleteOptionalParams } from "../models";
2
+ import { TemplateSpecVersions } from "../operationsInterfaces/index.js";
3
+ import { TemplateSpecsClient } from "../templateSpecsClient.js";
4
+ import { TemplateSpecVersion, TemplateSpecVersionsListOptionalParams, TemplateSpecVersionsCreateOrUpdateOptionalParams, TemplateSpecVersionsCreateOrUpdateResponse, TemplateSpecVersionsUpdateOptionalParams, TemplateSpecVersionsUpdateResponse, TemplateSpecVersionsGetOptionalParams, TemplateSpecVersionsGetResponse, TemplateSpecVersionsDeleteOptionalParams } from "../models/index.js";
5
5
  /** Class containing TemplateSpecVersions operations. */
6
6
  export declare class TemplateSpecVersionsImpl implements TemplateSpecVersions {
7
7
  private readonly client;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"templateSpecVersions.d.ts","sourceRoot":"","sources":["../../../src/operations/templateSpecVersions.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAE9E,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AAIxE,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EACL,mBAAmB,EAEnB,sCAAsC,EAEtC,gDAAgD,EAChD,0CAA0C,EAC1C,wCAAwC,EACxC,kCAAkC,EAClC,qCAAqC,EACrC,+BAA+B,EAC/B,wCAAwC,EAEzC,MAAM,oBAAoB,CAAC;AAG5B,wDAAwD;AACxD,qBAAa,wBAAyB,YAAW,oBAAoB;IACnE,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAsB;IAE7C;;;OAGG;gBACS,MAAM,EAAE,mBAAmB;IAIvC;;;;;OAKG;IACI,IAAI,CACT,iBAAiB,EAAE,MAAM,EACzB,gBAAgB,EAAE,MAAM,EACxB,OAAO,CAAC,EAAE,sCAAsC,GAC/C,0BAA0B,CAAC,mBAAmB,CAAC;YA2BnC,cAAc;YA6Bd,aAAa;IAc5B;;;;;;;OAOG;IACH,cAAc,CACZ,iBAAiB,EAAE,MAAM,EACzB,gBAAgB,EAAE,MAAM,EACxB,mBAAmB,EAAE,MAAM,EAC3B,wBAAwB,EAAE,mBAAmB,EAC7C,OAAO,CAAC,EAAE,gDAAgD,GACzD,OAAO,CAAC,0CAA0C,CAAC;IAatD;;;;;;OAMG;IACH,MAAM,CACJ,iBAAiB,EAAE,MAAM,EACzB,gBAAgB,EAAE,MAAM,EACxB,mBAAmB,EAAE,MAAM,EAC3B,OAAO,CAAC,EAAE,wCAAwC,GACjD,OAAO,CAAC,kCAAkC,CAAC;IAO9C;;;;;;OAMG;IACH,GAAG,CACD,iBAAiB,EAAE,MAAM,EACzB,gBAAgB,EAAE,MAAM,EACxB,mBAAmB,EAAE,MAAM,EAC3B,OAAO,CAAC,EAAE,qCAAqC,GAC9C,OAAO,CAAC,+BAA+B,CAAC;IAO3C;;;;;;;OAOG;IACH,MAAM,CACJ,iBAAiB,EAAE,MAAM,EACzB,gBAAgB,EAAE,MAAM,EACxB,mBAAmB,EAAE,MAAM,EAC3B,OAAO,CAAC,EAAE,wCAAwC,GACjD,OAAO,CAAC,IAAI,CAAC;IAOhB;;;;;OAKG;IACH,OAAO,CAAC,KAAK;IAWb;;;;;;OAMG;IACH,OAAO,CAAC,SAAS;CAWlB"}
@@ -6,10 +6,10 @@
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
8
  import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
9
- import { setContinuationToken } from "../pagingHelper";
9
+ import { setContinuationToken } from "../pagingHelper.js";
10
10
  import * as coreClient from "@azure/core-client";
11
- import * as Mappers from "../models/mappers";
12
- import * as Parameters from "../models/parameters";
11
+ import * as Mappers from "../models/mappers.js";
12
+ import * as Parameters from "../models/parameters.js";
13
13
  /// <reference lib="esnext.asynciterable" />
14
14
  /** Class containing TemplateSpecVersions operations. */
15
15
  export class TemplateSpecVersionsImpl {
@@ -0,0 +1 @@
1
+ {"version":3,"file":"templateSpecVersions.js","sourceRoot":"","sources":["../../../src/operations/templateSpecVersions.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAiBtD,4CAA4C;AAC5C,wDAAwD;AACxD,MAAM,OAAO,wBAAwB;IAGnC;;;OAGG;IACH,YAAY,MAA2B;QACrC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,IAAI,CACT,iBAAyB,EACzB,gBAAwB,EACxB,OAAgD;QAEhD,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAC7B,iBAAiB,EACjB,gBAAgB,EAChB,OAAO,CACR,CAAC;QACF,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAA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C,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,gBAAgB;QAC3B,UAAU,CAAC,mBAAmB;KAC/B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,iBAAiB,GAA6B;IAClD,IAAI,EACF,4IAA4I;IAC9I,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,8BAA8B;SACnD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,kBAAkB;SACvC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,gBAAgB;KAC5B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,8BAA8B;SACnD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,kBAAkB;SACvC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,gBAAgB;QAC3B,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { TemplateSpecVersions } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { TemplateSpecsClient } from \"../templateSpecsClient.js\";\nimport {\n TemplateSpecVersion,\n TemplateSpecVersionsListNextOptionalParams,\n TemplateSpecVersionsListOptionalParams,\n TemplateSpecVersionsListResponse,\n TemplateSpecVersionsCreateOrUpdateOptionalParams,\n TemplateSpecVersionsCreateOrUpdateResponse,\n TemplateSpecVersionsUpdateOptionalParams,\n TemplateSpecVersionsUpdateResponse,\n TemplateSpecVersionsGetOptionalParams,\n TemplateSpecVersionsGetResponse,\n TemplateSpecVersionsDeleteOptionalParams,\n TemplateSpecVersionsListNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing TemplateSpecVersions operations. */\nexport class TemplateSpecVersionsImpl implements TemplateSpecVersions {\n private readonly client: TemplateSpecsClient;\n\n /**\n * Initialize a new instance of the class TemplateSpecVersions class.\n * @param client Reference to the service client\n */\n constructor(client: TemplateSpecsClient) {\n this.client = client;\n }\n\n /**\n * Lists all the Template Spec versions in the specified Template Spec.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param templateSpecName Name of the Template Spec.\n * @param options The options parameters.\n */\n public list(\n resourceGroupName: string,\n templateSpecName: string,\n options?: TemplateSpecVersionsListOptionalParams\n ): PagedAsyncIterableIterator<TemplateSpecVersion> {\n const iter = this.listPagingAll(\n resourceGroupName,\n templateSpecName,\n options\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(\n resourceGroupName,\n templateSpecName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listPagingPage(\n resourceGroupName: string,\n templateSpecName: string,\n options?: TemplateSpecVersionsListOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<TemplateSpecVersion[]> {\n let result: TemplateSpecVersionsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(resourceGroupName, templateSpecName, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(\n resourceGroupName,\n templateSpecName,\n continuationToken,\n options\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n resourceGroupName: string,\n templateSpecName: string,\n options?: TemplateSpecVersionsListOptionalParams\n ): AsyncIterableIterator<TemplateSpecVersion> {\n for await (const page of this.listPagingPage(\n resourceGroupName,\n templateSpecName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Creates or updates a Template Spec version.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param templateSpecName Name of the Template Spec.\n * @param templateSpecVersion The version of the Template Spec.\n * @param templateSpecVersionModel Template Spec Version supplied to the operation.\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n templateSpecName: string,\n templateSpecVersion: string,\n templateSpecVersionModel: TemplateSpecVersion,\n options?: TemplateSpecVersionsCreateOrUpdateOptionalParams\n ): Promise<TemplateSpecVersionsCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n templateSpecName,\n templateSpecVersion,\n templateSpecVersionModel,\n options\n },\n createOrUpdateOperationSpec\n );\n }\n\n /**\n * Updates Template Spec Version tags with specified values.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param templateSpecName Name of the Template Spec.\n * @param templateSpecVersion The version of the Template Spec.\n * @param options The options parameters.\n */\n update(\n resourceGroupName: string,\n templateSpecName: string,\n templateSpecVersion: string,\n options?: TemplateSpecVersionsUpdateOptionalParams\n ): Promise<TemplateSpecVersionsUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, templateSpecName, templateSpecVersion, options },\n updateOperationSpec\n );\n }\n\n /**\n * Gets a Template Spec version from a specific Template Spec.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param templateSpecName Name of the Template Spec.\n * @param templateSpecVersion The version of the Template Spec.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n templateSpecName: string,\n templateSpecVersion: string,\n options?: TemplateSpecVersionsGetOptionalParams\n ): Promise<TemplateSpecVersionsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, templateSpecName, templateSpecVersion, options },\n getOperationSpec\n );\n }\n\n /**\n * Deletes a specific version from a Template Spec. When operation completes, status code 200 returned\n * without content.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param templateSpecName Name of the Template Spec.\n * @param templateSpecVersion The version of the Template Spec.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n templateSpecName: string,\n templateSpecVersion: string,\n options?: TemplateSpecVersionsDeleteOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, templateSpecName, templateSpecVersion, options },\n deleteOperationSpec\n );\n }\n\n /**\n * Lists all the Template Spec versions in the specified Template Spec.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param templateSpecName Name of the Template Spec.\n * @param options The options parameters.\n */\n private _list(\n resourceGroupName: string,\n templateSpecName: string,\n options?: TemplateSpecVersionsListOptionalParams\n ): Promise<TemplateSpecVersionsListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, templateSpecName, options },\n listOperationSpec\n );\n }\n\n /**\n * ListNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param templateSpecName Name of the Template Spec.\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n resourceGroupName: string,\n templateSpecName: string,\n nextLink: string,\n options?: TemplateSpecVersionsListNextOptionalParams\n ): Promise<TemplateSpecVersionsListNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, templateSpecName, nextLink, options },\n listNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/templateSpecs/{templateSpecName}/versions/{templateSpecVersion}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.TemplateSpecVersion\n },\n 201: {\n bodyMapper: Mappers.TemplateSpecVersion\n },\n default: {\n bodyMapper: Mappers.TemplateSpecsError\n }\n },\n requestBody: Parameters.templateSpecVersionModel,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.templateSpecName,\n Parameters.templateSpecVersion\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/templateSpecs/{templateSpecName}/versions/{templateSpecVersion}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.TemplateSpecVersion\n },\n default: {\n bodyMapper: Mappers.TemplateSpecsError\n }\n },\n requestBody: Parameters.templateSpecVersionUpdateModel,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.templateSpecName,\n Parameters.templateSpecVersion\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/templateSpecs/{templateSpecName}/versions/{templateSpecVersion}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.TemplateSpecVersion\n },\n default: {\n bodyMapper: Mappers.TemplateSpecsError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.templateSpecName,\n Parameters.templateSpecVersion\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/templateSpecs/{templateSpecName}/versions/{templateSpecVersion}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.TemplateSpecsError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.templateSpecName,\n Parameters.templateSpecVersion\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/templateSpecs/{templateSpecName}/versions\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.TemplateSpecVersionsListResult\n },\n default: {\n bodyMapper: Mappers.TemplateSpecsError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.templateSpecName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.TemplateSpecVersionsListResult\n },\n default: {\n bodyMapper: Mappers.TemplateSpecsError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.templateSpecName,\n Parameters.nextLink\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
@@ -1,7 +1,7 @@
1
1
  import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
- import { TemplateSpecs } from "../operationsInterfaces";
3
- import { TemplateSpecsClient } from "../templateSpecsClient";
4
- import { TemplateSpec, TemplateSpecsListBySubscriptionOptionalParams, TemplateSpecsListByResourceGroupOptionalParams, TemplateSpecsCreateOrUpdateOptionalParams, TemplateSpecsCreateOrUpdateResponse, TemplateSpecsUpdateOptionalParams, TemplateSpecsUpdateResponse, TemplateSpecsGetOptionalParams, TemplateSpecsGetResponse, TemplateSpecsDeleteOptionalParams } from "../models";
2
+ import { TemplateSpecs } from "../operationsInterfaces/index.js";
3
+ import { TemplateSpecsClient } from "../templateSpecsClient.js";
4
+ import { TemplateSpec, TemplateSpecsListBySubscriptionOptionalParams, TemplateSpecsListByResourceGroupOptionalParams, TemplateSpecsCreateOrUpdateOptionalParams, TemplateSpecsCreateOrUpdateResponse, TemplateSpecsUpdateOptionalParams, TemplateSpecsUpdateResponse, TemplateSpecsGetOptionalParams, TemplateSpecsGetResponse, TemplateSpecsDeleteOptionalParams } from "../models/index.js";
5
5
  /** Class containing TemplateSpecs operations. */
6
6
  export declare class TemplateSpecsImpl implements TemplateSpecs {
7
7
  private readonly client;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"templateSpecs.d.ts","sourceRoot":"","sources":["../../../src/operations/templateSpecs.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAE9E,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AAIjE,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EACL,YAAY,EAEZ,6CAA6C,EAG7C,8CAA8C,EAE9C,yCAAyC,EACzC,mCAAmC,EACnC,iCAAiC,EACjC,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BAAuB;IAU/B;;;;;OAKG;IACH,OAAO,CAAC,wBAAwB;CAUjC"}
@@ -6,10 +6,10 @@
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
8
  import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
9
- import { setContinuationToken } from "../pagingHelper";
9
+ import { setContinuationToken } from "../pagingHelper.js";
10
10
  import * as coreClient from "@azure/core-client";
11
- import * as Mappers from "../models/mappers";
12
- import * as Parameters from "../models/parameters";
11
+ import * as Mappers from "../models/mappers.js";
12
+ import * as Parameters from "../models/parameters.js";
13
13
  /// <reference lib="esnext.asynciterable" />
14
14
  /** Class containing TemplateSpecs operations. */
15
15
  export class TemplateSpecsImpl {
@@ -0,0 +1 @@
1
+ {"version":3,"file":"templateSpecs.js","sourceRoot":"","sources":["../../../src/operations/templateSpecs.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAqBtD,4CAA4C;AAC5C,iDAAiD;AACjD,MAAM,OAAO,iBAAiB;IAG5B;;;OAGG;IACH,YAAY,MAA2B;QACrC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACI,kBAAkB,CACvB,OAAuD;QAEvD,MAAM,IAAI,GAAG,IAAI,CAAC,2BAA2B,CAAC,OAAO,CAAC,CAAC;QACvD,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,aAAR,Q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BAAiB;QAC5B,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { TemplateSpecs } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { TemplateSpecsClient } from \"../templateSpecsClient.js\";\nimport {\n TemplateSpec,\n TemplateSpecsListBySubscriptionNextOptionalParams,\n TemplateSpecsListBySubscriptionOptionalParams,\n TemplateSpecsListBySubscriptionResponse,\n TemplateSpecsListByResourceGroupNextOptionalParams,\n TemplateSpecsListByResourceGroupOptionalParams,\n TemplateSpecsListByResourceGroupResponse,\n TemplateSpecsCreateOrUpdateOptionalParams,\n TemplateSpecsCreateOrUpdateResponse,\n TemplateSpecsUpdateOptionalParams,\n TemplateSpecsUpdateResponse,\n TemplateSpecsGetOptionalParams,\n TemplateSpecsGetResponse,\n TemplateSpecsDeleteOptionalParams,\n TemplateSpecsListBySubscriptionNextResponse,\n TemplateSpecsListByResourceGroupNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing TemplateSpecs operations. */\nexport class TemplateSpecsImpl implements TemplateSpecs {\n private readonly client: TemplateSpecsClient;\n\n /**\n * Initialize a new instance of the class TemplateSpecs class.\n * @param client Reference to the service client\n */\n constructor(client: TemplateSpecsClient) {\n this.client = client;\n }\n\n /**\n * Lists all the Template Specs within the specified subscriptions.\n * @param options The options parameters.\n */\n public listBySubscription(\n options?: TemplateSpecsListBySubscriptionOptionalParams\n ): PagedAsyncIterableIterator<TemplateSpec> {\n const iter = this.listBySubscriptionPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listBySubscriptionPagingPage(options, settings);\n }\n };\n }\n\n private async *listBySubscriptionPagingPage(\n options?: TemplateSpecsListBySubscriptionOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<TemplateSpec[]> {\n let result: TemplateSpecsListBySubscriptionResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listBySubscription(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listBySubscriptionNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listBySubscriptionPagingAll(\n options?: TemplateSpecsListBySubscriptionOptionalParams\n ): AsyncIterableIterator<TemplateSpec> {\n for await (const page of this.listBySubscriptionPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Lists all the Template Specs within the specified resource group.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param options The options parameters.\n */\n public listByResourceGroup(\n resourceGroupName: string,\n options?: TemplateSpecsListByResourceGroupOptionalParams\n ): PagedAsyncIterableIterator<TemplateSpec> {\n const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByResourceGroupPagingPage(\n resourceGroupName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listByResourceGroupPagingPage(\n resourceGroupName: string,\n options?: TemplateSpecsListByResourceGroupOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<TemplateSpec[]> {\n let result: TemplateSpecsListByResourceGroupResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByResourceGroup(resourceGroupName, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByResourceGroupNext(\n resourceGroupName,\n continuationToken,\n options\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByResourceGroupPagingAll(\n resourceGroupName: string,\n options?: TemplateSpecsListByResourceGroupOptionalParams\n ): AsyncIterableIterator<TemplateSpec> {\n for await (const page of this.listByResourceGroupPagingPage(\n resourceGroupName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Creates or updates a Template Spec.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param templateSpecName Name of the Template Spec.\n * @param templateSpec Template Spec supplied to the operation.\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n templateSpecName: string,\n templateSpec: TemplateSpec,\n options?: TemplateSpecsCreateOrUpdateOptionalParams\n ): Promise<TemplateSpecsCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, templateSpecName, templateSpec, options },\n createOrUpdateOperationSpec\n );\n }\n\n /**\n * Updates Template Spec tags with specified values.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param templateSpecName Name of the Template Spec.\n * @param options The options parameters.\n */\n update(\n resourceGroupName: string,\n templateSpecName: string,\n options?: TemplateSpecsUpdateOptionalParams\n ): Promise<TemplateSpecsUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, templateSpecName, options },\n updateOperationSpec\n );\n }\n\n /**\n * Gets a Template Spec with a given name.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param templateSpecName Name of the Template Spec.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n templateSpecName: string,\n options?: TemplateSpecsGetOptionalParams\n ): Promise<TemplateSpecsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, templateSpecName, options },\n getOperationSpec\n );\n }\n\n /**\n * Deletes a Template Spec by name. When operation completes, status code 200 returned without content.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param templateSpecName Name of the Template Spec.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n templateSpecName: string,\n options?: TemplateSpecsDeleteOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, templateSpecName, options },\n deleteOperationSpec\n );\n }\n\n /**\n * Lists all the Template Specs within the specified subscriptions.\n * @param options The options parameters.\n */\n private _listBySubscription(\n options?: TemplateSpecsListBySubscriptionOptionalParams\n ): Promise<TemplateSpecsListBySubscriptionResponse> {\n return this.client.sendOperationRequest(\n { options },\n listBySubscriptionOperationSpec\n );\n }\n\n /**\n * Lists all the Template Specs within the specified resource group.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param options The options parameters.\n */\n private _listByResourceGroup(\n resourceGroupName: string,\n options?: TemplateSpecsListByResourceGroupOptionalParams\n ): Promise<TemplateSpecsListByResourceGroupResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, options },\n listByResourceGroupOperationSpec\n );\n }\n\n /**\n * ListBySubscriptionNext\n * @param nextLink The nextLink from the previous successful call to the ListBySubscription method.\n * @param options The options parameters.\n */\n private _listBySubscriptionNext(\n nextLink: string,\n options?: TemplateSpecsListBySubscriptionNextOptionalParams\n ): Promise<TemplateSpecsListBySubscriptionNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listBySubscriptionNextOperationSpec\n );\n }\n\n /**\n * ListByResourceGroupNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.\n * @param options The options parameters.\n */\n private _listByResourceGroupNext(\n resourceGroupName: string,\n nextLink: string,\n options?: TemplateSpecsListByResourceGroupNextOptionalParams\n ): Promise<TemplateSpecsListByResourceGroupNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, nextLink, options },\n listByResourceGroupNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/templateSpecs/{templateSpecName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.TemplateSpec\n },\n 201: {\n bodyMapper: Mappers.TemplateSpec\n },\n default: {\n bodyMapper: Mappers.TemplateSpecsError\n }\n },\n requestBody: Parameters.templateSpec,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.templateSpecName\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/templateSpecs/{templateSpecName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.TemplateSpec\n },\n default: {\n bodyMapper: Mappers.TemplateSpecsError\n }\n },\n requestBody: Parameters.templateSpec1,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.templateSpecName\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/templateSpecs/{templateSpecName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.TemplateSpec\n },\n default: {\n bodyMapper: Mappers.TemplateSpecsError\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.expand],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.templateSpecName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/templateSpecs/{templateSpecName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.TemplateSpecsError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.templateSpecName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listBySubscriptionOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/providers/Microsoft.Resources/templateSpecs/\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.TemplateSpecsListResult\n },\n default: {\n bodyMapper: Mappers.TemplateSpecsError\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.expand],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByResourceGroupOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/templateSpecs/\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.TemplateSpecsListResult\n },\n default: {\n bodyMapper: Mappers.TemplateSpecsError\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.expand],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listBySubscriptionNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.TemplateSpecsListResult\n },\n default: {\n bodyMapper: Mappers.TemplateSpecsError\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.expand],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.nextLink\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.TemplateSpecsListResult\n },\n default: {\n bodyMapper: Mappers.TemplateSpecsError\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.expand],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.nextLink\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
@@ -0,0 +1,3 @@
1
+ export * from "./templateSpecs.js";
2
+ export * from "./templateSpecVersions.js";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAQA,cAAc,iBAAiB,CAAC;AAChC,cAAc,wBAAwB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAQA,cAAc,oBAAoB,CAAC;AACnC,cAAc,2BAA2B,CAAC"}
@@ -5,6 +5,6 @@
5
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
- export * from "./templateSpecs";
9
- export * from "./templateSpecVersions";
8
+ export * from "./templateSpecs.js";
9
+ export * from "./templateSpecVersions.js";
10
10
  //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,oBAAoB,CAAC;AACnC,cAAc,2BAA2B,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nexport * from \"./templateSpecs.js\";\nexport * from \"./templateSpecVersions.js\";\n"]}
@@ -1,5 +1,5 @@
1
1
  import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
- import { TemplateSpecVersion, TemplateSpecVersionsListOptionalParams, TemplateSpecVersionsCreateOrUpdateOptionalParams, TemplateSpecVersionsCreateOrUpdateResponse, TemplateSpecVersionsUpdateOptionalParams, TemplateSpecVersionsUpdateResponse, TemplateSpecVersionsGetOptionalParams, TemplateSpecVersionsGetResponse, TemplateSpecVersionsDeleteOptionalParams } from "../models";
2
+ import { TemplateSpecVersion, TemplateSpecVersionsListOptionalParams, TemplateSpecVersionsCreateOrUpdateOptionalParams, TemplateSpecVersionsCreateOrUpdateResponse, TemplateSpecVersionsUpdateOptionalParams, TemplateSpecVersionsUpdateResponse, TemplateSpecVersionsGetOptionalParams, TemplateSpecVersionsGetResponse, TemplateSpecVersionsDeleteOptionalParams } from "../models/index.js";
3
3
  /** Interface representing a TemplateSpecVersions. */
4
4
  export interface TemplateSpecVersions {
5
5
  /**
@@ -0,0 +1 @@
1
+ {"version":3,"file":"templateSpecVersions.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/templateSpecVersions.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EACL,mBAAmB,EACnB,sCAAsC,EACtC,gDAAgD,EAChD,0CAA0C,EAC1C,wCAAwC,EACxC,kCAAkC,EAClC,qCAAqC,EACrC,+BAA+B,EAC/B,wCAAwC,EACzC,MAAM,oBAAoB,CAAC;AAG5B,qDAAqD;AACrD,MAAM,WAAW,oBAAoB;IACnC;;;;;OAKG;IACH,IAAI,CACF,iBAAiB,EAAE,MAAM,EACzB,gBAAgB,EAAE,MAAM,EACxB,OAAO,CAAC,EAAE,sCAAsC,GAC/C,0BAA0B,CAAC,mBAAmB,CAAC,CAAC;IACnD;;;;;;;OAOG;IACH,cAAc,CACZ,iBAAiB,EAAE,MAAM,EACzB,gBAAgB,EAAE,MAAM,EACxB,mBAAmB,EAAE,MAAM,EAC3B,wBAAwB,EAAE,mBAAmB,EAC7C,OAAO,CAAC,EAAE,gDAAgD,GACzD,OAAO,CAAC,0CAA0C,CAAC,CAAC;IACvD;;;;;;OAMG;IACH,MAAM,CACJ,iBAAiB,EAAE,MAAM,EACzB,gBAAgB,EAAE,MAAM,EACxB,mBAAmB,EAAE,MAAM,EAC3B,OAAO,CAAC,EAAE,wCAAwC,GACjD,OAAO,CAAC,kCAAkC,CAAC,CAAC;IAC/C;;;;;;OAMG;IACH,GAAG,CACD,iBAAiB,EAAE,MAAM,EACzB,gBAAgB,EAAE,MAAM,EACxB,mBAAmB,EAAE,MAAM,EAC3B,OAAO,CAAC,EAAE,qCAAqC,GAC9C,OAAO,CAAC,+BAA+B,CAAC,CAAC;IAC5C;;;;;;;OAOG;IACH,MAAM,CACJ,iBAAiB,EAAE,MAAM,EACzB,gBAAgB,EAAE,MAAM,EACxB,mBAAmB,EAAE,MAAM,EAC3B,OAAO,CAAC,EAAE,wCAAwC,GACjD,OAAO,CAAC,IAAI,CAAC,CAAC;CAClB"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"templateSpecVersions.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/templateSpecVersions.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator } from \"@azure/core-paging\";\nimport {\n TemplateSpecVersion,\n TemplateSpecVersionsListOptionalParams,\n TemplateSpecVersionsCreateOrUpdateOptionalParams,\n TemplateSpecVersionsCreateOrUpdateResponse,\n TemplateSpecVersionsUpdateOptionalParams,\n TemplateSpecVersionsUpdateResponse,\n TemplateSpecVersionsGetOptionalParams,\n TemplateSpecVersionsGetResponse,\n TemplateSpecVersionsDeleteOptionalParams\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Interface representing a TemplateSpecVersions. */\nexport interface TemplateSpecVersions {\n /**\n * Lists all the Template Spec versions in the specified Template Spec.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param templateSpecName Name of the Template Spec.\n * @param options The options parameters.\n */\n list(\n resourceGroupName: string,\n templateSpecName: string,\n options?: TemplateSpecVersionsListOptionalParams\n ): PagedAsyncIterableIterator<TemplateSpecVersion>;\n /**\n * Creates or updates a Template Spec version.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param templateSpecName Name of the Template Spec.\n * @param templateSpecVersion The version of the Template Spec.\n * @param templateSpecVersionModel Template Spec Version supplied to the operation.\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n templateSpecName: string,\n templateSpecVersion: string,\n templateSpecVersionModel: TemplateSpecVersion,\n options?: TemplateSpecVersionsCreateOrUpdateOptionalParams\n ): Promise<TemplateSpecVersionsCreateOrUpdateResponse>;\n /**\n * Updates Template Spec Version tags with specified values.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param templateSpecName Name of the Template Spec.\n * @param templateSpecVersion The version of the Template Spec.\n * @param options The options parameters.\n */\n update(\n resourceGroupName: string,\n templateSpecName: string,\n templateSpecVersion: string,\n options?: TemplateSpecVersionsUpdateOptionalParams\n ): Promise<TemplateSpecVersionsUpdateResponse>;\n /**\n * Gets a Template Spec version from a specific Template Spec.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param templateSpecName Name of the Template Spec.\n * @param templateSpecVersion The version of the Template Spec.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n templateSpecName: string,\n templateSpecVersion: string,\n options?: TemplateSpecVersionsGetOptionalParams\n ): Promise<TemplateSpecVersionsGetResponse>;\n /**\n * Deletes a specific version from a Template Spec. When operation completes, status code 200 returned\n * without content.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param templateSpecName Name of the Template Spec.\n * @param templateSpecVersion The version of the Template Spec.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n templateSpecName: string,\n templateSpecVersion: string,\n options?: TemplateSpecVersionsDeleteOptionalParams\n ): Promise<void>;\n}\n"]}
@@ -1,5 +1,5 @@
1
1
  import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
- import { TemplateSpec, TemplateSpecsListBySubscriptionOptionalParams, TemplateSpecsListByResourceGroupOptionalParams, TemplateSpecsCreateOrUpdateOptionalParams, TemplateSpecsCreateOrUpdateResponse, TemplateSpecsUpdateOptionalParams, TemplateSpecsUpdateResponse, TemplateSpecsGetOptionalParams, TemplateSpecsGetResponse, TemplateSpecsDeleteOptionalParams } from "../models";
2
+ import { TemplateSpec, TemplateSpecsListBySubscriptionOptionalParams, TemplateSpecsListByResourceGroupOptionalParams, TemplateSpecsCreateOrUpdateOptionalParams, TemplateSpecsCreateOrUpdateResponse, TemplateSpecsUpdateOptionalParams, TemplateSpecsUpdateResponse, TemplateSpecsGetOptionalParams, TemplateSpecsGetResponse, TemplateSpecsDeleteOptionalParams } from "../models/index.js";
3
3
  /** Interface representing a TemplateSpecs. */
4
4
  export interface TemplateSpecs {
5
5
  /**
@@ -0,0 +1 @@
1
+ {"version":3,"file":"templateSpecs.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/templateSpecs.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EACL,YAAY,EACZ,6CAA6C,EAC7C,8CAA8C,EAC9C,yCAAyC,EACzC,mCAAmC,EACnC,iCAAiC,EACjC,2BAA2B,EAC3B,8BAA8B,EAC9B,wBAAwB,EACxB,iCAAiC,EAClC,MAAM,oBAAoB,CAAC;AAG5B,8CAA8C;AAC9C,MAAM,WAAW,aAAa;IAC5B;;;OAGG;IACH,kBAAkB,CAChB,OAAO,CAAC,EAAE,6CAA6C,GACtD,0BAA0B,CAAC,YAAY,CAAC,CAAC;IAC5C;;;;OAIG;IACH,mBAAmB,CACjB,iBAAiB,EAAE,MAAM,EACzB,OAAO,CAAC,EAAE,8CAA8C,GACvD,0BAA0B,CAAC,YAAY,CAAC,CAAC;IAC5C;;;;;;OAMG;IACH,cAAc,CACZ,iBAAiB,EAAE,MAAM,EACzB,gBAAgB,EAAE,MAAM,EACxB,YAAY,EAAE,YAAY,EAC1B,OAAO,CAAC,EAAE,yCAAyC,GAClD,OAAO,CAAC,mCAAmC,CAAC,CAAC;IAChD;;;;;OAKG;IACH,MAAM,CACJ,iBAAiB,EAAE,MAAM,EACzB,gBAAgB,EAAE,MAAM,EACxB,OAAO,CAAC,EAAE,iCAAiC,GAC1C,OAAO,CAAC,2BAA2B,CAAC,CAAC;IACxC;;;;;OAKG;IACH,GAAG,CACD,iBAAiB,EAAE,MAAM,EACzB,gBAAgB,EAAE,MAAM,EACxB,OAAO,CAAC,EAAE,8BAA8B,GACvC,OAAO,CAAC,wBAAwB,CAAC,CAAC;IACrC;;;;;OAKG;IACH,MAAM,CACJ,iBAAiB,EAAE,MAAM,EACzB,gBAAgB,EAAE,MAAM,EACxB,OAAO,CAAC,EAAE,iCAAiC,GAC1C,OAAO,CAAC,IAAI,CAAC,CAAC;CAClB"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"templateSpecs.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/templateSpecs.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator } from \"@azure/core-paging\";\nimport {\n TemplateSpec,\n TemplateSpecsListBySubscriptionOptionalParams,\n TemplateSpecsListByResourceGroupOptionalParams,\n TemplateSpecsCreateOrUpdateOptionalParams,\n TemplateSpecsCreateOrUpdateResponse,\n TemplateSpecsUpdateOptionalParams,\n TemplateSpecsUpdateResponse,\n TemplateSpecsGetOptionalParams,\n TemplateSpecsGetResponse,\n TemplateSpecsDeleteOptionalParams\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Interface representing a TemplateSpecs. */\nexport interface TemplateSpecs {\n /**\n * Lists all the Template Specs within the specified subscriptions.\n * @param options The options parameters.\n */\n listBySubscription(\n options?: TemplateSpecsListBySubscriptionOptionalParams\n ): PagedAsyncIterableIterator<TemplateSpec>;\n /**\n * Lists all the Template Specs within the specified resource group.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param options The options parameters.\n */\n listByResourceGroup(\n resourceGroupName: string,\n options?: TemplateSpecsListByResourceGroupOptionalParams\n ): PagedAsyncIterableIterator<TemplateSpec>;\n /**\n * Creates or updates a Template Spec.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param templateSpecName Name of the Template Spec.\n * @param templateSpec Template Spec supplied to the operation.\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n templateSpecName: string,\n templateSpec: TemplateSpec,\n options?: TemplateSpecsCreateOrUpdateOptionalParams\n ): Promise<TemplateSpecsCreateOrUpdateResponse>;\n /**\n * Updates Template Spec tags with specified values.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param templateSpecName Name of the Template Spec.\n * @param options The options parameters.\n */\n update(\n resourceGroupName: string,\n templateSpecName: string,\n options?: TemplateSpecsUpdateOptionalParams\n ): Promise<TemplateSpecsUpdateResponse>;\n /**\n * Gets a Template Spec with a given name.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param templateSpecName Name of the Template Spec.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n templateSpecName: string,\n options?: TemplateSpecsGetOptionalParams\n ): Promise<TemplateSpecsGetResponse>;\n /**\n * Deletes a Template Spec by name. When operation completes, status code 200 returned without content.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param templateSpecName Name of the Template Spec.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n templateSpecName: string,\n options?: TemplateSpecsDeleteOptionalParams\n ): Promise<void>;\n}\n"]}
@@ -0,0 +1,3 @@
1
+ {
2
+ "type": "module"
3
+ }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pagingHelper.js","sourceRoot":"","sources":["../../src/pagingHelper.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAMH,MAAM,OAAO,GAAG,IAAI,OAAO,EAAoB,CAAC;AAEhD;;;;;;GAMG;AACH,MAAM,UAAU,oBAAoB,CAAC,IAAa;;IAChD,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,EAAE,CAAC;QAC9C,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,OAAO,MAAA,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,0CAAE,iBAAiB,CAAC;AAC9C,CAAC;AAED,MAAM,UAAU,oBAAoB,CAClC,IAAa,EACb,iBAAqC;;IAErC,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,IAAI,CAAC,iBAAiB,EAAE,CAAC;QACpE,OAAO;IACT,CAAC;IACD,MAAM,QAAQ,GAAG,MAAA,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,mCAAI,EAAE,CAAC;IACzC,QAAQ,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;IAC/C,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;AAC9B,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nexport interface PageInfo {\n continuationToken?: string;\n}\n\nconst pageMap = new WeakMap<object, PageInfo>();\n\n/**\n * Given a result page from a pageable operation, returns a\n * continuation token that can be used to begin paging from\n * that point later.\n * @param page A result object from calling .byPage() on a paged operation.\n * @returns The continuation token that can be passed into byPage().\n */\nexport function getContinuationToken(page: unknown): string | undefined {\n if (typeof page !== \"object\" || page === null) {\n return undefined;\n }\n return pageMap.get(page)?.continuationToken;\n}\n\nexport function setContinuationToken(\n page: unknown,\n continuationToken: string | undefined\n): void {\n if (typeof page !== \"object\" || page === null || !continuationToken) {\n return;\n }\n const pageInfo = pageMap.get(page) ?? {};\n pageInfo.continuationToken = continuationToken;\n pageMap.set(page, pageInfo);\n}\n"]}
@@ -1,7 +1,7 @@
1
1
  import * as coreClient from "@azure/core-client";
2
2
  import * as coreAuth from "@azure/core-auth";
3
- import { TemplateSpecs, TemplateSpecVersions } from "./operationsInterfaces";
4
- import { TemplateSpecsClientOptionalParams } from "./models";
3
+ import { TemplateSpecs, TemplateSpecVersions } from "./operationsInterfaces/index.js";
4
+ import { TemplateSpecsClientOptionalParams } from "./models/index.js";
5
5
  export declare class TemplateSpecsClient extends coreClient.ServiceClient {
6
6
  $host: string;
7
7
  subscriptionId: string;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"templateSpecsClient.d.ts","sourceRoot":"","sources":["../../src/templateSpecsClient.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAOjD,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAE7C,OAAO,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAC;AACtF,OAAO,EAAE,iCAAiC,EAAE,MAAM,mBAAmB,CAAC;AAEtE,qBAAa,mBAAoB,SAAQ,UAAU,CAAC,aAAa;IAC/D,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,EAAE,MAAM,CAAC;IACvB,UAAU,EAAE,MAAM,CAAC;IAEnB;;;;;OAKG;gBAED,WAAW,EAAE,QAAQ,CAAC,eAAe,EACrC,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,iCAAiC;IA6E7C,8GAA8G;IAC9G,OAAO,CAAC,yBAAyB;IA2BjC,aAAa,EAAE,aAAa,CAAC;IAC7B,oBAAoB,EAAE,oBAAoB,CAAC;CAC5C"}
@@ -5,10 +5,9 @@
5
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
- import { __awaiter } from "tslib";
9
8
  import * as coreClient from "@azure/core-client";
10
9
  import * as coreRestPipeline from "@azure/core-rest-pipeline";
11
- import { TemplateSpecsImpl, TemplateSpecVersionsImpl } from "./operations";
10
+ import { TemplateSpecsImpl, TemplateSpecVersionsImpl } from "./operations/index.js";
12
11
  export class TemplateSpecsClient extends coreClient.ServiceClient {
13
12
  /**
14
13
  * Initializes a new instance of the TemplateSpecsClient class.
@@ -77,22 +76,20 @@ export class TemplateSpecsClient extends coreClient.ServiceClient {
77
76
  }
78
77
  const apiVersionPolicy = {
79
78
  name: "CustomApiVersionPolicy",
80
- sendRequest(request, next) {
81
- return __awaiter(this, void 0, void 0, function* () {
82
- const param = request.url.split("?");
83
- if (param.length > 1) {
84
- const newParams = param[1].split("&").map((item) => {
85
- if (item.indexOf("api-version") > -1) {
86
- return "api-version=" + apiVersion;
87
- }
88
- else {
89
- return item;
90
- }
91
- });
92
- request.url = param[0] + "?" + newParams.join("&");
93
- }
94
- return next(request);
95
- });
79
+ async sendRequest(request, next) {
80
+ const param = request.url.split("?");
81
+ if (param.length > 1) {
82
+ const newParams = param[1].split("&").map((item) => {
83
+ if (item.indexOf("api-version") > -1) {
84
+ return "api-version=" + apiVersion;
85
+ }
86
+ else {
87
+ return item;
88
+ }
89
+ });
90
+ request.url = param[0] + "?" + newParams.join("&");
91
+ }
92
+ return next(request);
96
93
  }
97
94
  };
98
95
  this.pipeline.addPolicy(apiVersionPolicy);
@@ -0,0 +1 @@
1
+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,IAAI,CAAC,oBAAoB,GAAG,IAAI,wBAAwB,CAAC,IAAI,CAAC,CAAC;QAC/D,IAAI,CAAC,yBAAyB,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;IACrD,CAAC;IAED,8GAA8G;IACtG,yBAAyB,CAAC,UAAmB;QACnD,IAAI,CAAC,UAAU,EAAE,CAAC;YAChB,OAAO;QACT,CAAC;QACD,MAAM,gBAAgB,GAAG;YACvB,IAAI,EAAE,wBAAwB;YAC9B,KAAK,CAAC,WAAW,CACf,OAAwB,EACxB,IAAiB;gBAEjB,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;gBACrC,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;oBACrB,MAAM,SAAS,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;wBACjD,IAAI,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC;4BACrC,OAAO,cAAc,GAAG,UAAU,CAAC;wBACrC,CAAC;6BAAM,CAAC;4BACN,OAAO,IAAI,CAAC;wBACd,CAAC;oBACH,CAAC,CAAC,CAAC;oBACH,OAAO,CAAC,GAAG,GAAG,KAAK,CAAC,CAAC,CAAC,GAAG,GAAG,GAAG,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;gBACrD,CAAC;gBACD,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC;YACvB,CAAC;SACF,CAAC;QACF,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAC5C,CAAC;CAIF","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport {\n PipelineRequest,\n PipelineResponse,\n SendRequest\n} from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport { TemplateSpecsImpl, TemplateSpecVersionsImpl } from \"./operations/index.js\";\nimport { TemplateSpecs, TemplateSpecVersions } from \"./operationsInterfaces/index.js\";\nimport { TemplateSpecsClientOptionalParams } from \"./models/index.js\";\n\nexport class TemplateSpecsClient extends coreClient.ServiceClient {\n $host: string;\n subscriptionId: string;\n apiVersion: string;\n\n /**\n * Initializes a new instance of the TemplateSpecsClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId Subscription Id which forms part of the URI for every service call.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: TemplateSpecsClientOptionalParams\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n if (subscriptionId === undefined) {\n throw new Error(\"'subscriptionId' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: TemplateSpecsClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials\n };\n\n const packageDetails = `azsdk-js-arm-templatespecs/2.1.1`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix\n },\n endpoint:\n options.endpoint ?? options.baseUri ?? \"https://management.azure.com\"\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name ===\n coreRestPipeline.bearerTokenAuthenticationPolicyName\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ??\n `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge:\n coreClient.authorizeRequestOnClaimChallenge\n }\n })\n );\n }\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.apiVersion = options.apiVersion || \"2021-05-01\";\n this.templateSpecs = new TemplateSpecsImpl(this);\n this.templateSpecVersions = new TemplateSpecVersionsImpl(this);\n this.addCustomApiVersionPolicy(options.apiVersion);\n }\n\n /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */\n private addCustomApiVersionPolicy(apiVersion?: string) {\n if (!apiVersion) {\n return;\n }\n const apiVersionPolicy = {\n name: \"CustomApiVersionPolicy\",\n async sendRequest(\n request: PipelineRequest,\n next: SendRequest\n ): Promise<PipelineResponse> {\n const param = request.url.split(\"?\");\n if (param.length > 1) {\n const newParams = param[1].split(\"&\").map((item) => {\n if (item.indexOf(\"api-version\") > -1) {\n return \"api-version=\" + apiVersion;\n } else {\n return item;\n }\n });\n request.url = param[0] + \"?\" + newParams.join(\"&\");\n }\n return next(request);\n }\n };\n this.pipeline.addPolicy(apiVersionPolicy);\n }\n\n templateSpecs: TemplateSpecs;\n templateSpecVersions: TemplateSpecVersions;\n}\n"]}
@@ -0,0 +1,5 @@
1
+ export { getContinuationToken } from "./pagingHelper.js";
2
+ export * from "./models/index.js";
3
+ export { TemplateSpecsClient } from "./templateSpecsClient.js";
4
+ export * from "./operationsInterfaces/index.js";
5
+ //# sourceMappingURL=index.d.ts.map