@azure/arm-computelimit 1.0.0 → 1.1.0

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 (256) hide show
  1. package/dist/browser/api/computeLimitContext.js +4 -2
  2. package/dist/browser/api/computeLimitContext.js.map +1 -1
  3. package/dist/browser/api/features/index.d.ts +2 -2
  4. package/dist/browser/api/features/index.js +1 -1
  5. package/dist/browser/api/features/index.js.map +1 -1
  6. package/dist/browser/api/features/operations.d.ts +5 -1
  7. package/dist/browser/api/features/operations.js +43 -8
  8. package/dist/browser/api/features/operations.js.map +1 -1
  9. package/dist/browser/api/features/options.d.ts +8 -0
  10. package/dist/browser/api/features/options.js.map +1 -1
  11. package/dist/browser/api/guestSubscriptions/operations.d.ts +0 -5
  12. package/dist/browser/api/guestSubscriptions/operations.js +5 -10
  13. package/dist/browser/api/guestSubscriptions/operations.js.map +1 -1
  14. package/dist/browser/api/operations/operations.js +2 -2
  15. package/dist/browser/api/operations/operations.js.map +1 -1
  16. package/dist/browser/api/sharedLimits/operations.d.ts +0 -5
  17. package/dist/browser/api/sharedLimits/operations.js +5 -10
  18. package/dist/browser/api/sharedLimits/operations.js.map +1 -1
  19. package/dist/browser/api/vmFamilies/index.d.ts +3 -0
  20. package/dist/browser/api/vmFamilies/index.js +4 -0
  21. package/dist/browser/api/vmFamilies/index.js.map +1 -0
  22. package/dist/browser/api/vmFamilies/operations.d.ts +14 -0
  23. package/dist/browser/api/vmFamilies/operations.js +62 -0
  24. package/dist/browser/api/vmFamilies/operations.js.map +1 -0
  25. package/dist/browser/api/vmFamilies/options.d.ts +10 -0
  26. package/dist/browser/api/vmFamilies/options.js.map +1 -0
  27. package/dist/browser/classic/features/index.d.ts +3 -1
  28. package/dist/browser/classic/features/index.js +2 -1
  29. package/dist/browser/classic/features/index.js.map +1 -1
  30. package/dist/browser/classic/guestSubscriptions/index.d.ts +0 -5
  31. package/dist/browser/classic/guestSubscriptions/index.js.map +1 -1
  32. package/dist/browser/classic/index.d.ts +1 -0
  33. package/dist/browser/classic/index.js.map +1 -1
  34. package/dist/browser/classic/sharedLimits/index.d.ts +0 -5
  35. package/dist/browser/classic/sharedLimits/index.js.map +1 -1
  36. package/dist/browser/classic/vmFamilies/index.d.ts +13 -0
  37. package/dist/browser/classic/vmFamilies/index.js +15 -0
  38. package/dist/browser/classic/vmFamilies/index.js.map +1 -0
  39. package/dist/browser/computeLimitClient.d.ts +3 -0
  40. package/dist/browser/computeLimitClient.js +4 -0
  41. package/dist/browser/computeLimitClient.js.map +1 -1
  42. package/dist/browser/index.d.ts +5 -3
  43. package/dist/browser/index.js +1 -0
  44. package/dist/browser/index.js.map +1 -1
  45. package/dist/browser/models/index.d.ts +1 -1
  46. package/dist/browser/models/index.js.map +1 -1
  47. package/dist/browser/models/models.d.ts +34 -1
  48. package/dist/browser/models/models.js +37 -0
  49. package/dist/browser/models/models.js.map +1 -1
  50. package/dist/browser/restorePollerHelpers.js +3 -2
  51. package/dist/browser/restorePollerHelpers.js.map +1 -1
  52. package/dist/browser/static-helpers/pagingHelpers.js +1 -1
  53. package/dist/browser/static-helpers/pagingHelpers.js.map +1 -1
  54. package/dist/browser/static-helpers/pollingHelpers.js +1 -1
  55. package/dist/browser/static-helpers/pollingHelpers.js.map +1 -1
  56. package/dist/commonjs/api/computeLimitContext.js +4 -2
  57. package/dist/commonjs/api/computeLimitContext.js.map +2 -2
  58. package/dist/commonjs/api/features/index.d.ts +2 -2
  59. package/dist/commonjs/api/features/index.js +2 -0
  60. package/dist/commonjs/api/features/index.js.map +2 -2
  61. package/dist/commonjs/api/features/operations.d.ts +5 -1
  62. package/dist/commonjs/api/features/operations.js +52 -8
  63. package/dist/commonjs/api/features/operations.js.map +2 -2
  64. package/dist/commonjs/api/features/options.d.ts +8 -0
  65. package/dist/commonjs/api/features/options.js.map +1 -1
  66. package/dist/commonjs/api/guestSubscriptions/operations.d.ts +0 -5
  67. package/dist/commonjs/api/guestSubscriptions/operations.js +5 -5
  68. package/dist/commonjs/api/guestSubscriptions/operations.js.map +2 -2
  69. package/dist/commonjs/api/operations/operations.js +2 -2
  70. package/dist/commonjs/api/operations/operations.js.map +1 -1
  71. package/dist/commonjs/api/sharedLimits/operations.d.ts +0 -5
  72. package/dist/commonjs/api/sharedLimits/operations.js +5 -5
  73. package/dist/commonjs/api/sharedLimits/operations.js.map +2 -2
  74. package/dist/commonjs/api/vmFamilies/index.d.ts +3 -0
  75. package/dist/commonjs/api/vmFamilies/index.js +30 -0
  76. package/dist/commonjs/api/vmFamilies/index.js.map +7 -0
  77. package/dist/commonjs/api/vmFamilies/operations.d.ts +14 -0
  78. package/dist/commonjs/api/vmFamilies/operations.js +108 -0
  79. package/dist/commonjs/api/vmFamilies/operations.js.map +7 -0
  80. package/dist/commonjs/api/vmFamilies/options.d.ts +10 -0
  81. package/dist/commonjs/api/vmFamilies/options.js +16 -0
  82. package/dist/commonjs/api/vmFamilies/options.js.map +7 -0
  83. package/dist/commonjs/classic/features/index.d.ts +3 -1
  84. package/dist/commonjs/classic/features/index.js +1 -0
  85. package/dist/commonjs/classic/features/index.js.map +2 -2
  86. package/dist/commonjs/classic/guestSubscriptions/index.d.ts +0 -5
  87. package/dist/commonjs/classic/guestSubscriptions/index.js.map +2 -2
  88. package/dist/commonjs/classic/index.d.ts +1 -0
  89. package/dist/commonjs/classic/index.js.map +1 -1
  90. package/dist/commonjs/classic/sharedLimits/index.d.ts +0 -5
  91. package/dist/commonjs/classic/sharedLimits/index.js.map +2 -2
  92. package/dist/commonjs/classic/vmFamilies/index.d.ts +13 -0
  93. package/dist/commonjs/classic/vmFamilies/index.js +39 -0
  94. package/dist/commonjs/classic/vmFamilies/index.js.map +7 -0
  95. package/dist/commonjs/computeLimitClient.d.ts +3 -0
  96. package/dist/commonjs/computeLimitClient.js +4 -0
  97. package/dist/commonjs/computeLimitClient.js.map +2 -2
  98. package/dist/commonjs/index.d.ts +5 -3
  99. package/dist/commonjs/index.js +5 -0
  100. package/dist/commonjs/index.js.map +2 -2
  101. package/dist/commonjs/models/index.d.ts +1 -1
  102. package/dist/commonjs/models/index.js.map +2 -2
  103. package/dist/commonjs/models/models.d.ts +34 -1
  104. package/dist/commonjs/models/models.js +43 -2
  105. package/dist/commonjs/models/models.js.map +2 -2
  106. package/dist/commonjs/restorePollerHelpers.js +2 -1
  107. package/dist/commonjs/restorePollerHelpers.js.map +2 -2
  108. package/dist/commonjs/static-helpers/pagingHelpers.js +1 -1
  109. package/dist/commonjs/static-helpers/pagingHelpers.js.map +2 -2
  110. package/dist/commonjs/static-helpers/pollingHelpers.js +1 -1
  111. package/dist/commonjs/static-helpers/pollingHelpers.js.map +2 -2
  112. package/dist/commonjs/tsdoc-metadata.json +1 -1
  113. package/dist/esm/api/computeLimitContext.js +4 -2
  114. package/dist/esm/api/computeLimitContext.js.map +1 -1
  115. package/dist/esm/api/features/index.d.ts +2 -2
  116. package/dist/esm/api/features/index.js +1 -1
  117. package/dist/esm/api/features/index.js.map +1 -1
  118. package/dist/esm/api/features/operations.d.ts +5 -1
  119. package/dist/esm/api/features/operations.js +43 -8
  120. package/dist/esm/api/features/operations.js.map +1 -1
  121. package/dist/esm/api/features/options.d.ts +8 -0
  122. package/dist/esm/api/features/options.js.map +1 -1
  123. package/dist/esm/api/guestSubscriptions/operations.d.ts +0 -5
  124. package/dist/esm/api/guestSubscriptions/operations.js +5 -10
  125. package/dist/esm/api/guestSubscriptions/operations.js.map +1 -1
  126. package/dist/esm/api/operations/operations.js +2 -2
  127. package/dist/esm/api/operations/operations.js.map +1 -1
  128. package/dist/esm/api/sharedLimits/operations.d.ts +0 -5
  129. package/dist/esm/api/sharedLimits/operations.js +5 -10
  130. package/dist/esm/api/sharedLimits/operations.js.map +1 -1
  131. package/dist/esm/api/vmFamilies/index.d.ts +3 -0
  132. package/dist/esm/api/vmFamilies/index.js +4 -0
  133. package/dist/esm/api/vmFamilies/index.js.map +1 -0
  134. package/dist/esm/api/vmFamilies/operations.d.ts +14 -0
  135. package/dist/esm/api/vmFamilies/operations.js +62 -0
  136. package/dist/esm/api/vmFamilies/operations.js.map +1 -0
  137. package/dist/esm/api/vmFamilies/options.d.ts +10 -0
  138. package/dist/esm/api/vmFamilies/options.js.map +1 -0
  139. package/dist/esm/classic/features/index.d.ts +3 -1
  140. package/dist/esm/classic/features/index.js +2 -1
  141. package/dist/esm/classic/features/index.js.map +1 -1
  142. package/dist/esm/classic/guestSubscriptions/index.d.ts +0 -5
  143. package/dist/esm/classic/guestSubscriptions/index.js.map +1 -1
  144. package/dist/esm/classic/index.d.ts +1 -0
  145. package/dist/esm/classic/index.js.map +1 -1
  146. package/dist/esm/classic/sharedLimits/index.d.ts +0 -5
  147. package/dist/esm/classic/sharedLimits/index.js.map +1 -1
  148. package/dist/esm/classic/vmFamilies/index.d.ts +13 -0
  149. package/dist/esm/classic/vmFamilies/index.js +15 -0
  150. package/dist/esm/classic/vmFamilies/index.js.map +1 -0
  151. package/dist/esm/computeLimitClient.d.ts +3 -0
  152. package/dist/esm/computeLimitClient.js +4 -0
  153. package/dist/esm/computeLimitClient.js.map +1 -1
  154. package/dist/esm/index.d.ts +5 -3
  155. package/dist/esm/index.js +1 -0
  156. package/dist/esm/index.js.map +1 -1
  157. package/dist/esm/models/index.d.ts +1 -1
  158. package/dist/esm/models/index.js.map +1 -1
  159. package/dist/esm/models/models.d.ts +34 -1
  160. package/dist/esm/models/models.js +37 -0
  161. package/dist/esm/models/models.js.map +1 -1
  162. package/dist/esm/restorePollerHelpers.js +3 -2
  163. package/dist/esm/restorePollerHelpers.js.map +1 -1
  164. package/dist/esm/static-helpers/pagingHelpers.js +1 -1
  165. package/dist/esm/static-helpers/pagingHelpers.js.map +1 -1
  166. package/dist/esm/static-helpers/pollingHelpers.js +1 -1
  167. package/dist/esm/static-helpers/pollingHelpers.js.map +1 -1
  168. package/package.json +32 -38
  169. package/dist/react-native/api/computeLimitContext.d.ts +0 -22
  170. package/dist/react-native/api/computeLimitContext.js +0 -24
  171. package/dist/react-native/api/computeLimitContext.js.map +0 -1
  172. package/dist/react-native/api/features/index.d.ts +0 -3
  173. package/dist/react-native/api/features/index.js +0 -4
  174. package/dist/react-native/api/features/index.js.map +0 -1
  175. package/dist/react-native/api/features/operations.d.ts +0 -19
  176. package/dist/react-native/api/features/operations.js +0 -95
  177. package/dist/react-native/api/features/operations.js.map +0 -1
  178. package/dist/react-native/api/features/options.d.ts +0 -13
  179. package/dist/react-native/api/features/options.js.map +0 -1
  180. package/dist/react-native/api/guestSubscriptions/index.d.ts +0 -3
  181. package/dist/react-native/api/guestSubscriptions/index.js +0 -4
  182. package/dist/react-native/api/guestSubscriptions/index.js.map +0 -1
  183. package/dist/react-native/api/guestSubscriptions/operations.d.ts +0 -27
  184. package/dist/react-native/api/guestSubscriptions/operations.js +0 -125
  185. package/dist/react-native/api/guestSubscriptions/operations.js.map +0 -1
  186. package/dist/react-native/api/guestSubscriptions/options.d.ts +0 -14
  187. package/dist/react-native/api/guestSubscriptions/options.js.map +0 -1
  188. package/dist/react-native/api/index.d.ts +0 -3
  189. package/dist/react-native/api/index.js +0 -4
  190. package/dist/react-native/api/index.js.map +0 -1
  191. package/dist/react-native/api/operations/index.d.ts +0 -3
  192. package/dist/react-native/api/operations/index.js +0 -4
  193. package/dist/react-native/api/operations/index.js.map +0 -1
  194. package/dist/react-native/api/operations/operations.d.ts +0 -10
  195. package/dist/react-native/api/operations/operations.js +0 -31
  196. package/dist/react-native/api/operations/operations.js.map +0 -1
  197. package/dist/react-native/api/operations/options.d.ts +0 -5
  198. package/dist/react-native/api/operations/options.js +0 -4
  199. package/dist/react-native/api/operations/options.js.map +0 -1
  200. package/dist/react-native/api/sharedLimits/index.d.ts +0 -3
  201. package/dist/react-native/api/sharedLimits/index.js +0 -4
  202. package/dist/react-native/api/sharedLimits/index.js.map +0 -1
  203. package/dist/react-native/api/sharedLimits/operations.d.ts +0 -27
  204. package/dist/react-native/api/sharedLimits/operations.js +0 -121
  205. package/dist/react-native/api/sharedLimits/operations.js.map +0 -1
  206. package/dist/react-native/api/sharedLimits/options.d.ts +0 -14
  207. package/dist/react-native/api/sharedLimits/options.js +0 -4
  208. package/dist/react-native/api/sharedLimits/options.js.map +0 -1
  209. package/dist/react-native/classic/features/index.d.ts +0 -16
  210. package/dist/react-native/classic/features/index.js +0 -16
  211. package/dist/react-native/classic/features/index.js.map +0 -1
  212. package/dist/react-native/classic/guestSubscriptions/index.d.ts +0 -22
  213. package/dist/react-native/classic/guestSubscriptions/index.js +0 -17
  214. package/dist/react-native/classic/guestSubscriptions/index.js.map +0 -1
  215. package/dist/react-native/classic/index.d.ts +0 -5
  216. package/dist/react-native/classic/index.js +0 -4
  217. package/dist/react-native/classic/index.js.map +0 -1
  218. package/dist/react-native/classic/operations/index.d.ts +0 -11
  219. package/dist/react-native/classic/operations/index.js +0 -14
  220. package/dist/react-native/classic/operations/index.js.map +0 -1
  221. package/dist/react-native/classic/sharedLimits/index.d.ts +0 -22
  222. package/dist/react-native/classic/sharedLimits/index.js +0 -17
  223. package/dist/react-native/classic/sharedLimits/index.js.map +0 -1
  224. package/dist/react-native/computeLimitClient.d.ts +0 -24
  225. package/dist/react-native/computeLimitClient.js +0 -37
  226. package/dist/react-native/computeLimitClient.js.map +0 -1
  227. package/dist/react-native/index.d.ts +0 -18
  228. package/dist/react-native/index.js +0 -8
  229. package/dist/react-native/index.js.map +0 -1
  230. package/dist/react-native/logger.d.ts +0 -2
  231. package/dist/react-native/logger.js +0 -5
  232. package/dist/react-native/logger.js.map +0 -1
  233. package/dist/react-native/models/index.d.ts +0 -3
  234. package/dist/react-native/models/index.js +0 -4
  235. package/dist/react-native/models/index.js.map +0 -1
  236. package/dist/react-native/models/models.d.ts +0 -308
  237. package/dist/react-native/models/models.js +0 -304
  238. package/dist/react-native/models/models.js.map +0 -1
  239. package/dist/react-native/package.json +0 -3
  240. package/dist/react-native/restorePollerHelpers.d.ts +0 -21
  241. package/dist/react-native/restorePollerHelpers.js +0 -94
  242. package/dist/react-native/restorePollerHelpers.js.map +0 -1
  243. package/dist/react-native/static-helpers/cloudSettingHelpers.d.ts +0 -22
  244. package/dist/react-native/static-helpers/cloudSettingHelpers.js +0 -38
  245. package/dist/react-native/static-helpers/cloudSettingHelpers.js.map +0 -1
  246. package/dist/react-native/static-helpers/pagingHelpers.d.ts +0 -74
  247. package/dist/react-native/static-helpers/pagingHelpers.js +0 -143
  248. package/dist/react-native/static-helpers/pagingHelpers.js.map +0 -1
  249. package/dist/react-native/static-helpers/pollingHelpers.d.ts +0 -34
  250. package/dist/react-native/static-helpers/pollingHelpers.js +0 -95
  251. package/dist/react-native/static-helpers/pollingHelpers.js.map +0 -1
  252. package/dist/react-native/static-helpers/urlTemplate.d.ts +0 -5
  253. package/dist/react-native/static-helpers/urlTemplate.js +0 -200
  254. package/dist/react-native/static-helpers/urlTemplate.js.map +0 -1
  255. /package/dist/{react-native/api/features → browser/api/vmFamilies}/options.js +0 -0
  256. /package/dist/{react-native/api/guestSubscriptions → esm/api/vmFamilies}/options.js +0 -0
@@ -7,7 +7,7 @@ import { getClient } from "@azure-rest/core-client";
7
7
  export function createComputeLimit(credential, subscriptionId, options = {}) {
8
8
  const endpointUrl = options.endpoint ?? getArmEndpoint(options.cloudSetting) ?? "https://management.azure.com";
9
9
  const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix;
10
- const userAgentInfo = `azsdk-js-arm-computelimit/1.0.0`;
10
+ const userAgentInfo = `azsdk-js-arm-computelimit/1.1.0`;
11
11
  const userAgentPrefix = prefixFromOptions
12
12
  ? `${prefixFromOptions} azsdk-js-api ${userAgentInfo}`
13
13
  : `azsdk-js-api ${userAgentInfo}`;
@@ -15,7 +15,9 @@ export function createComputeLimit(credential, subscriptionId, options = {}) {
15
15
  ...options,
16
16
  userAgentOptions: { userAgentPrefix },
17
17
  loggingOptions: { logger: options.loggingOptions?.logger ?? logger.info },
18
- credentials: { scopes: options.credentials?.scopes ?? [`${endpointUrl}/.default`] },
18
+ credentials: {
19
+ scopes: options.credentials?.scopes ?? ["https://management.azure.com/.default"],
20
+ },
19
21
  };
20
22
  const clientContext = getClient(endpointUrl, credential, updatedOptions);
21
23
  const apiVersion = options.apiVersion;
@@ -1 +1 @@
1
- {"version":3,"file":"computeLimitContext.js","sourceRoot":"","sources":["../../../src/api/computeLimitContext.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAGtC,OAAO,EAAE,cAAc,EAAE,MAAM,0CAA0C,CAAC;AAE1E,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAqBpD,uDAAuD;AACvD,MAAM,UAAU,kBAAkB,CAChC,UAA2B,EAC3B,cAAsB,EACtB,UAA4C,EAAE;IAE9C,MAAM,WAAW,GACf,OAAO,CAAC,QAAQ,IAAI,cAAc,CAAC,OAAO,CAAC,YAAY,CAAC,IAAI,8BAA8B,CAAC;IAC7F,MAAM,iBAAiB,GAAG,OAAO,EAAE,gBAAgB,EAAE,eAAe,CAAC;IACrE,MAAM,aAAa,GAAG,iCAAiC,CAAC;IACxD,MAAM,eAAe,GAAG,iBAAiB;QACvC,CAAC,CAAC,GAAG,iBAAiB,iBAAiB,aAAa,EAAE;QACtD,CAAC,CAAC,gBAAgB,aAAa,EAAE,CAAC;IACpC,MAAM,EAAE,UAAU,EAAE,CAAC,EAAE,GAAG,cAAc,EAAE,GAAG;QAC3C,GAAG,OAAO;QACV,gBAAgB,EAAE,EAAE,eAAe,EAAE;QACrC,cAAc,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,cAAc,EAAE,MAAM,IAAI,MAAM,CAAC,IAAI,EAAE;QACzE,WAAW,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,WAAW,EAAE,MAAM,IAAI,CAAC,GAAG,WAAW,WAAW,CAAC,EAAE;KACpF,CAAC;IACF,MAAM,aAAa,GAAG,SAAS,CAAC,WAAW,EAAE,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,MAAM,UAAU,GAAG,OAAO,CAAC,UAAU,CAAC;IACtC,OAAO,EAAE,GAAG,aAAa,EAAE,UAAU,EAAE,cAAc,EAAyB,CAAC;AACjF,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { logger } from \"../logger.js\";\nimport { KnownVersions } from \"../models/models.js\";\nimport type { AzureSupportedClouds } from \"../static-helpers/cloudSettingHelpers.js\";\nimport { getArmEndpoint } from \"../static-helpers/cloudSettingHelpers.js\";\nimport type { Client, ClientOptions } from \"@azure-rest/core-client\";\nimport { getClient } from \"@azure-rest/core-client\";\nimport type { TokenCredential } from \"@azure/core-auth\";\n\n/** Microsoft Azure Compute Limit Resource Provider. */\nexport interface ComputeLimitContext extends Client {\n /** The ID of the target subscription. The value must be an UUID. */\n subscriptionId: string;\n /** The API version to use for this operation. */\n /** Known values of {@link KnownVersions} that the service accepts. */\n apiVersion?: string;\n}\n\n/** Optional parameters for the client. */\nexport interface ComputeLimitClientOptionalParams extends ClientOptions {\n /** The API version to use for this operation. */\n /** Known values of {@link KnownVersions} that the service accepts. */\n apiVersion?: string;\n /** Specifies the Azure cloud environment for the client. */\n cloudSetting?: AzureSupportedClouds;\n}\n\n/** Microsoft Azure Compute Limit Resource Provider. */\nexport function createComputeLimit(\n credential: TokenCredential,\n subscriptionId: string,\n options: ComputeLimitClientOptionalParams = {},\n): ComputeLimitContext {\n const endpointUrl =\n options.endpoint ?? getArmEndpoint(options.cloudSetting) ?? \"https://management.azure.com\";\n const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix;\n const userAgentInfo = `azsdk-js-arm-computelimit/1.0.0`;\n const userAgentPrefix = prefixFromOptions\n ? `${prefixFromOptions} azsdk-js-api ${userAgentInfo}`\n : `azsdk-js-api ${userAgentInfo}`;\n const { apiVersion: _, ...updatedOptions } = {\n ...options,\n userAgentOptions: { userAgentPrefix },\n loggingOptions: { logger: options.loggingOptions?.logger ?? logger.info },\n credentials: { scopes: options.credentials?.scopes ?? [`${endpointUrl}/.default`] },\n };\n const clientContext = getClient(endpointUrl, credential, updatedOptions);\n const apiVersion = options.apiVersion;\n return { ...clientContext, apiVersion, subscriptionId } as ComputeLimitContext;\n}\n"]}
1
+ {"version":3,"file":"computeLimitContext.js","sourceRoot":"","sources":["../../../src/api/computeLimitContext.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAGtC,OAAO,EAAE,cAAc,EAAE,MAAM,0CAA0C,CAAC;AAE1E,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAqBpD,uDAAuD;AACvD,MAAM,UAAU,kBAAkB,CAChC,UAA2B,EAC3B,cAAsB,EACtB,UAA4C,EAAE;IAE9C,MAAM,WAAW,GACf,OAAO,CAAC,QAAQ,IAAI,cAAc,CAAC,OAAO,CAAC,YAAY,CAAC,IAAI,8BAA8B,CAAC;IAC7F,MAAM,iBAAiB,GAAG,OAAO,EAAE,gBAAgB,EAAE,eAAe,CAAC;IACrE,MAAM,aAAa,GAAG,iCAAiC,CAAC;IACxD,MAAM,eAAe,GAAG,iBAAiB;QACvC,CAAC,CAAC,GAAG,iBAAiB,iBAAiB,aAAa,EAAE;QACtD,CAAC,CAAC,gBAAgB,aAAa,EAAE,CAAC;IACpC,MAAM,EAAE,UAAU,EAAE,CAAC,EAAE,GAAG,cAAc,EAAE,GAAG;QAC3C,GAAG,OAAO;QACV,gBAAgB,EAAE,EAAE,eAAe,EAAE;QACrC,cAAc,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,cAAc,EAAE,MAAM,IAAI,MAAM,CAAC,IAAI,EAAE;QACzE,WAAW,EAAE;YACX,MAAM,EAAE,OAAO,CAAC,WAAW,EAAE,MAAM,IAAI,CAAC,uCAAuC,CAAC;SACjF;KACF,CAAC;IACF,MAAM,aAAa,GAAG,SAAS,CAAC,WAAW,EAAE,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,MAAM,UAAU,GAAG,OAAO,CAAC,UAAU,CAAC;IACtC,OAAO,EAAE,GAAG,aAAa,EAAE,UAAU,EAAE,cAAc,EAAyB,CAAC;AACjF,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { logger } from \"../logger.js\";\nimport { KnownVersions } from \"../models/models.js\";\nimport type { AzureSupportedClouds } from \"../static-helpers/cloudSettingHelpers.js\";\nimport { getArmEndpoint } from \"../static-helpers/cloudSettingHelpers.js\";\nimport type { Client, ClientOptions } from \"@azure-rest/core-client\";\nimport { getClient } from \"@azure-rest/core-client\";\nimport type { TokenCredential } from \"@azure/core-auth\";\n\n/** Microsoft Azure Compute Limit Resource Provider. */\nexport interface ComputeLimitContext extends Client {\n /** The ID of the target subscription. The value must be an UUID. */\n subscriptionId: string;\n /** The API version to use for this operation. */\n /** Known values of {@link KnownVersions} that the service accepts. */\n apiVersion?: string;\n}\n\n/** Optional parameters for the client. */\nexport interface ComputeLimitClientOptionalParams extends ClientOptions {\n /** The API version to use for this operation. */\n /** Known values of {@link KnownVersions} that the service accepts. */\n apiVersion?: string;\n /** Specifies the Azure cloud environment for the client. */\n cloudSetting?: AzureSupportedClouds;\n}\n\n/** Microsoft Azure Compute Limit Resource Provider. */\nexport function createComputeLimit(\n credential: TokenCredential,\n subscriptionId: string,\n options: ComputeLimitClientOptionalParams = {},\n): ComputeLimitContext {\n const endpointUrl =\n options.endpoint ?? getArmEndpoint(options.cloudSetting) ?? \"https://management.azure.com\";\n const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix;\n const userAgentInfo = `azsdk-js-arm-computelimit/1.1.0`;\n const userAgentPrefix = prefixFromOptions\n ? `${prefixFromOptions} azsdk-js-api ${userAgentInfo}`\n : `azsdk-js-api ${userAgentInfo}`;\n const { apiVersion: _, ...updatedOptions } = {\n ...options,\n userAgentOptions: { userAgentPrefix },\n loggingOptions: { logger: options.loggingOptions?.logger ?? logger.info },\n credentials: {\n scopes: options.credentials?.scopes ?? [\"https://management.azure.com/.default\"],\n },\n };\n const clientContext = getClient(endpointUrl, credential, updatedOptions);\n const apiVersion = options.apiVersion;\n return { ...clientContext, apiVersion, subscriptionId } as ComputeLimitContext;\n}\n"]}
@@ -1,3 +1,3 @@
1
- export { enable, listBySubscriptionLocationResource, get } from "./operations.js";
2
- export type { FeaturesEnableOptionalParams, FeaturesListBySubscriptionLocationResourceOptionalParams, FeaturesGetOptionalParams, } from "./options.js";
1
+ export { disable, enable, listBySubscriptionLocationResource, get } from "./operations.js";
2
+ export type { FeaturesDisableOptionalParams, FeaturesEnableOptionalParams, FeaturesListBySubscriptionLocationResourceOptionalParams, FeaturesGetOptionalParams, } from "./options.js";
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1,4 +1,4 @@
1
1
  // Copyright (c) Microsoft Corporation.
2
2
  // Licensed under the MIT License.
3
- export { enable, listBySubscriptionLocationResource, get } from "./operations.js";
3
+ export { disable, enable, listBySubscriptionLocationResource, get } from "./operations.js";
4
4
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/features/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,MAAM,EAAE,kCAAkC,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport { enable, listBySubscriptionLocationResource, get } from \"./operations.js\";\nexport type {\n FeaturesEnableOptionalParams,\n FeaturesListBySubscriptionLocationResourceOptionalParams,\n FeaturesGetOptionalParams,\n} from \"./options.js\";\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/features/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,kCAAkC,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport { disable, enable, listBySubscriptionLocationResource, get } from \"./operations.js\";\nexport type {\n FeaturesDisableOptionalParams,\n FeaturesEnableOptionalParams,\n FeaturesListBySubscriptionLocationResourceOptionalParams,\n FeaturesGetOptionalParams,\n} from \"./options.js\";\n"]}
@@ -1,9 +1,13 @@
1
1
  import type { ComputeLimitContext as Client } from "../index.js";
2
2
  import type { Feature, _FeatureListResult, OperationStatusResult } from "../../models/models.js";
3
3
  import type { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js";
4
- import type { FeaturesEnableOptionalParams, FeaturesListBySubscriptionLocationResourceOptionalParams, FeaturesGetOptionalParams } from "./options.js";
4
+ import type { FeaturesDisableOptionalParams, FeaturesEnableOptionalParams, FeaturesListBySubscriptionLocationResourceOptionalParams, FeaturesGetOptionalParams } from "./options.js";
5
5
  import type { StreamableMethod, PathUncheckedResponse } from "@azure-rest/core-client";
6
6
  import type { PollerLike, OperationState } from "@azure/core-lro";
7
+ export declare function _disableSend(context: Client, location: string, featureName: string, options?: FeaturesDisableOptionalParams): StreamableMethod;
8
+ export declare function _disableDeserialize(result: PathUncheckedResponse): Promise<OperationStatusResult>;
9
+ /** Disables a compute limit feature for the subscription at the specified location. */
10
+ export declare function disable(context: Client, location: string, featureName: string, options?: FeaturesDisableOptionalParams): PollerLike<OperationState<OperationStatusResult>, OperationStatusResult>;
7
11
  export declare function _enableSend(context: Client, location: string, featureName: string, options?: FeaturesEnableOptionalParams): StreamableMethod;
8
12
  export declare function _enableDeserialize(result: PathUncheckedResponse): Promise<OperationStatusResult>;
9
13
  /** Enables a compute limit feature for the subscription at the specified location. */
@@ -1,26 +1,61 @@
1
1
  // Copyright (c) Microsoft Corporation.
2
2
  // Licensed under the MIT License.
3
- import { errorResponseDeserializer, featureDeserializer, _featureListResultDeserializer, operationStatusResultDeserializer, } from "../../models/models.js";
3
+ import { errorResponseDeserializer, featureDeserializer, _featureListResultDeserializer, featureEnableRequestSerializer, operationStatusResultDeserializer, } from "../../models/models.js";
4
4
  import { buildPagedAsyncIterator } from "../../static-helpers/pagingHelpers.js";
5
5
  import { getLongRunningPoller } from "../../static-helpers/pollingHelpers.js";
6
6
  import { expandUrlTemplate } from "../../static-helpers/urlTemplate.js";
7
7
  import { createRestError, operationOptionsToRequestParameters } from "@azure-rest/core-client";
8
+ export function _disableSend(context, location, featureName, options = { requestOptions: {} }) {
9
+ const path = expandUrlTemplate("/subscriptions/{subscriptionId}/providers/Microsoft.ComputeLimit/locations/{location}/features/{featureName}/disable{?api%2Dversion}", {
10
+ subscriptionId: context.subscriptionId,
11
+ location: location,
12
+ featureName: featureName,
13
+ "api%2Dversion": context.apiVersion ?? "2026-06-01",
14
+ }, {
15
+ allowReserved: options?.requestOptions?.skipUrlEncoding,
16
+ });
17
+ return context.path(path).post({
18
+ ...operationOptionsToRequestParameters(options),
19
+ headers: { accept: "application/json", ...options.requestOptions?.headers },
20
+ });
21
+ }
22
+ export async function _disableDeserialize(result) {
23
+ const expectedStatuses = ["200", "202", "201"];
24
+ if (!expectedStatuses.includes(result.status)) {
25
+ const error = createRestError(result);
26
+ error.details = errorResponseDeserializer(result.body);
27
+ throw error;
28
+ }
29
+ return operationStatusResultDeserializer(result.body);
30
+ }
31
+ /** Disables a compute limit feature for the subscription at the specified location. */
32
+ export function disable(context, location, featureName, options = { requestOptions: {} }) {
33
+ return getLongRunningPoller(context, _disableDeserialize, ["200", "202", "201"], {
34
+ updateIntervalInMs: options?.updateIntervalInMs,
35
+ abortSignal: options?.abortSignal,
36
+ getInitialResponse: () => _disableSend(context, location, featureName, options),
37
+ resourceLocationConfig: "location",
38
+ apiVersion: context.apiVersion ?? "2026-06-01",
39
+ });
40
+ }
8
41
  export function _enableSend(context, location, featureName, options = { requestOptions: {} }) {
9
42
  const path = expandUrlTemplate("/subscriptions/{subscriptionId}/providers/Microsoft.ComputeLimit/locations/{location}/features/{featureName}/enable{?api%2Dversion}", {
10
43
  subscriptionId: context.subscriptionId,
11
44
  location: location,
12
45
  featureName: featureName,
13
- "api%2Dversion": context.apiVersion ?? "2026-03-20",
46
+ "api%2Dversion": context.apiVersion ?? "2026-06-01",
14
47
  }, {
15
48
  allowReserved: options?.requestOptions?.skipUrlEncoding,
16
49
  });
17
50
  return context.path(path).post({
18
51
  ...operationOptionsToRequestParameters(options),
52
+ contentType: "application/json",
19
53
  headers: { accept: "application/json", ...options.requestOptions?.headers },
54
+ body: !options?.body ? options?.body : featureEnableRequestSerializer(options?.body),
20
55
  });
21
56
  }
22
57
  export async function _enableDeserialize(result) {
23
- const expectedStatuses = ["202", "200", "201"];
58
+ const expectedStatuses = ["200", "202", "201"];
24
59
  if (!expectedStatuses.includes(result.status)) {
25
60
  const error = createRestError(result);
26
61
  error.details = errorResponseDeserializer(result.body);
@@ -30,19 +65,19 @@ export async function _enableDeserialize(result) {
30
65
  }
31
66
  /** Enables a compute limit feature for the subscription at the specified location. */
32
67
  export function enable(context, location, featureName, options = { requestOptions: {} }) {
33
- return getLongRunningPoller(context, _enableDeserialize, ["202", "200", "201"], {
68
+ return getLongRunningPoller(context, _enableDeserialize, ["200", "202", "201"], {
34
69
  updateIntervalInMs: options?.updateIntervalInMs,
35
70
  abortSignal: options?.abortSignal,
36
71
  getInitialResponse: () => _enableSend(context, location, featureName, options),
37
72
  resourceLocationConfig: "location",
38
- apiVersion: context.apiVersion ?? "2026-03-20",
73
+ apiVersion: context.apiVersion ?? "2026-06-01",
39
74
  });
40
75
  }
41
76
  export function _listBySubscriptionLocationResourceSend(context, location, options = { requestOptions: {} }) {
42
77
  const path = expandUrlTemplate("/subscriptions/{subscriptionId}/providers/Microsoft.ComputeLimit/locations/{location}/features{?api%2Dversion}", {
43
78
  subscriptionId: context.subscriptionId,
44
79
  location: location,
45
- "api%2Dversion": context.apiVersion ?? "2026-03-20",
80
+ "api%2Dversion": context.apiVersion ?? "2026-06-01",
46
81
  }, {
47
82
  allowReserved: options?.requestOptions?.skipUrlEncoding,
48
83
  });
@@ -62,14 +97,14 @@ export async function _listBySubscriptionLocationResourceDeserialize(result) {
62
97
  }
63
98
  /** Lists all compute limit features for the subscription at the specified location. */
64
99
  export function listBySubscriptionLocationResource(context, location, options = { requestOptions: {} }) {
65
- return buildPagedAsyncIterator(context, () => _listBySubscriptionLocationResourceSend(context, location, options), _listBySubscriptionLocationResourceDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink", apiVersion: context.apiVersion ?? "2026-03-20" });
100
+ return buildPagedAsyncIterator(context, () => _listBySubscriptionLocationResourceSend(context, location, options), _listBySubscriptionLocationResourceDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink", apiVersion: context.apiVersion ?? "2026-06-01" });
66
101
  }
67
102
  export function _getSend(context, location, featureName, options = { requestOptions: {} }) {
68
103
  const path = expandUrlTemplate("/subscriptions/{subscriptionId}/providers/Microsoft.ComputeLimit/locations/{location}/features/{featureName}{?api%2Dversion}", {
69
104
  subscriptionId: context.subscriptionId,
70
105
  location: location,
71
106
  featureName: featureName,
72
- "api%2Dversion": context.apiVersion ?? "2026-03-20",
107
+ "api%2Dversion": context.apiVersion ?? "2026-06-01",
73
108
  }, {
74
109
  allowReserved: options?.requestOptions?.skipUrlEncoding,
75
110
  });
@@ -1 +1 @@
1
- {"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../../src/api/features/operations.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAIlC,OAAO,EACL,yBAAyB,EACzB,mBAAmB,EACnB,8BAA8B,EAC9B,iCAAiC,GAClC,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAChF,OAAO,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAC9E,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AAOxE,OAAO,EAAE,eAAe,EAAE,mCAAmC,EAAE,MAAM,yBAAyB,CAAC;AAG/F,MAA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KAAK,GAAG,eAAe,CAAC,MAAM,CAAC,CAAC;QACtC,KAAK,CAAC,OAAO,GAAG,yBAAyB,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QAEvD,MAAM,KAAK,CAAC;IACd,CAAC;IAED,OAAO,mBAAmB,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AAC1C,CAAC;AAED,sDAAsD;AACtD,MAAM,CAAC,KAAK,UAAU,GAAG,CACvB,OAAe,EACf,QAAgB,EAChB,WAAmB,EACnB,UAAqC,EAAE,cAAc,EAAE,EAAE,EAAE;IAE3D,MAAM,MAAM,GAAG,MAAM,QAAQ,CAAC,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC;IACvE,OAAO,eAAe,CAAC,MAAM,CAAC,CAAC;AACjC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { ComputeLimitContext as Client } from \"../index.js\";\nimport type { Feature, _FeatureListResult, OperationStatusResult } from \"../../models/models.js\";\nimport {\n errorResponseDeserializer,\n featureDeserializer,\n _featureListResultDeserializer,\n operationStatusResultDeserializer,\n} from \"../../models/models.js\";\nimport type { PagedAsyncIterableIterator } from \"../../static-helpers/pagingHelpers.js\";\nimport { buildPagedAsyncIterator } from \"../../static-helpers/pagingHelpers.js\";\nimport { getLongRunningPoller } from \"../../static-helpers/pollingHelpers.js\";\nimport { expandUrlTemplate } from \"../../static-helpers/urlTemplate.js\";\nimport type {\n FeaturesEnableOptionalParams,\n FeaturesListBySubscriptionLocationResourceOptionalParams,\n FeaturesGetOptionalParams,\n} from \"./options.js\";\nimport type { StreamableMethod, PathUncheckedResponse } from \"@azure-rest/core-client\";\nimport { createRestError, operationOptionsToRequestParameters } from \"@azure-rest/core-client\";\nimport type { PollerLike, OperationState } from \"@azure/core-lro\";\n\nexport function _enableSend(\n context: Client,\n location: string,\n featureName: string,\n options: FeaturesEnableOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.ComputeLimit/locations/{location}/features/{featureName}/enable{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n location: location,\n featureName: featureName,\n \"api%2Dversion\": context.apiVersion ?? \"2026-03-20\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).post({\n ...operationOptionsToRequestParameters(options),\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n });\n}\n\nexport async function _enableDeserialize(\n result: PathUncheckedResponse,\n): Promise<OperationStatusResult> {\n const expectedStatuses = [\"202\", \"200\", \"201\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n\n throw error;\n }\n\n return operationStatusResultDeserializer(result.body);\n}\n\n/** Enables a compute limit feature for the subscription at the specified location. */\nexport function enable(\n context: Client,\n location: string,\n featureName: string,\n options: FeaturesEnableOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<OperationStatusResult>, OperationStatusResult> {\n return getLongRunningPoller(context, _enableDeserialize, [\"202\", \"200\", \"201\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () => _enableSend(context, location, featureName, options),\n resourceLocationConfig: \"location\",\n apiVersion: context.apiVersion ?? \"2026-03-20\",\n }) as PollerLike<OperationState<OperationStatusResult>, OperationStatusResult>;\n}\n\nexport function _listBySubscriptionLocationResourceSend(\n context: Client,\n location: string,\n options: FeaturesListBySubscriptionLocationResourceOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.ComputeLimit/locations/{location}/features{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n location: location,\n \"api%2Dversion\": context.apiVersion ?? \"2026-03-20\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n });\n}\n\nexport async function _listBySubscriptionLocationResourceDeserialize(\n result: PathUncheckedResponse,\n): Promise<_FeatureListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n\n throw error;\n }\n\n return _featureListResultDeserializer(result.body);\n}\n\n/** Lists all compute limit features for the subscription at the specified location. */\nexport function listBySubscriptionLocationResource(\n context: Client,\n location: string,\n options: FeaturesListBySubscriptionLocationResourceOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<Feature> {\n return buildPagedAsyncIterator(\n context,\n () => _listBySubscriptionLocationResourceSend(context, location, options),\n _listBySubscriptionLocationResourceDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\", apiVersion: context.apiVersion ?? \"2026-03-20\" },\n );\n}\n\nexport function _getSend(\n context: Client,\n location: string,\n featureName: string,\n options: FeaturesGetOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.ComputeLimit/locations/{location}/features/{featureName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n location: location,\n featureName: featureName,\n \"api%2Dversion\": context.apiVersion ?? \"2026-03-20\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n });\n}\n\nexport async function _getDeserialize(result: PathUncheckedResponse): Promise<Feature> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n\n throw error;\n }\n\n return featureDeserializer(result.body);\n}\n\n/** Gets the properties of a compute limit feature. */\nexport async function get(\n context: Client,\n location: string,\n featureName: string,\n options: FeaturesGetOptionalParams = { requestOptions: {} },\n): Promise<Feature> {\n const result = await _getSend(context, location, featureName, options);\n return _getDeserialize(result);\n}\n"]}
1
+ {"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../../src/api/features/operations.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAIlC,OAAO,EACL,yBAAyB,EACzB,mBAAmB,EACnB,8BAA8B,EAC9B,8BAA8B,EAC9B,iCAAiC,GAClC,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAChF,OAAO,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAC9E,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AAQxE,OAAO,EAAE,eAAe,EAAE,mCAAmC,EAAE,MAAM,yBAAyB,CAAC;AAG/F,MAAM,UAAU,YAAY,CAC1B,OAAe,EACf,QAAgB,EAChB,WAAmB,EACnB,UAAyC,EAAE,cAAc,EAAE,EAAE,EAAE;IAE/D,MAAM,IAAI,GAAG,iBAAiB,CAC5B,sIAAsI,EACtI;QACE,cAAc,EAAE,OAAO,CAAC,cAAc;QACtC,QAAQ,EAAE,QAAQ;QAClB,WAAW,EAAE,WAAW;QACxB,eAAe,EAAE,OAAO,CAAC,UAAU,IAAI,YAAY;KACpD,EACD;QACE,aAAa,EAAE,OAAO,EAAE,cAAc,EAAE,eAAe;KACxD,CACF,CAAC;IACF,OAAO,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC;QAC7B,GAAG,mCAAmC,CAAC,OAAO,CAAC;QAC/C,OAAO,EAAE,EAAE,MAAM,EAAE,kBAAkB,EAAE,GAAG,OAAO,CAAC,cAAc,EAAE,OAAO,EAAE;KAC5E,CAAC,CAAC;AACL,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,mBAAmB,CACvC,MAA6B;IAE7B,MAAM,gBAAgB,GAAG,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;IAC/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AAM,CAAC,KAAK,UAAU,GAAG,CACvB,OAAe,EACf,QAAgB,EAChB,WAAmB,EACnB,UAAqC,EAAE,cAAc,EAAE,EAAE,EAAE;IAE3D,MAAM,MAAM,GAAG,MAAM,QAAQ,CAAC,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC;IACvE,OAAO,eAAe,CAAC,MAAM,CAAC,CAAC;AACjC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { ComputeLimitContext as Client } from \"../index.js\";\nimport type { Feature, _FeatureListResult, OperationStatusResult } from \"../../models/models.js\";\nimport {\n errorResponseDeserializer,\n featureDeserializer,\n _featureListResultDeserializer,\n featureEnableRequestSerializer,\n operationStatusResultDeserializer,\n} from \"../../models/models.js\";\nimport type { PagedAsyncIterableIterator } from \"../../static-helpers/pagingHelpers.js\";\nimport { buildPagedAsyncIterator } from \"../../static-helpers/pagingHelpers.js\";\nimport { getLongRunningPoller } from \"../../static-helpers/pollingHelpers.js\";\nimport { expandUrlTemplate } from \"../../static-helpers/urlTemplate.js\";\nimport type {\n FeaturesDisableOptionalParams,\n FeaturesEnableOptionalParams,\n FeaturesListBySubscriptionLocationResourceOptionalParams,\n FeaturesGetOptionalParams,\n} from \"./options.js\";\nimport type { StreamableMethod, PathUncheckedResponse } from \"@azure-rest/core-client\";\nimport { createRestError, operationOptionsToRequestParameters } from \"@azure-rest/core-client\";\nimport type { PollerLike, OperationState } from \"@azure/core-lro\";\n\nexport function _disableSend(\n context: Client,\n location: string,\n featureName: string,\n options: FeaturesDisableOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.ComputeLimit/locations/{location}/features/{featureName}/disable{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n location: location,\n featureName: featureName,\n \"api%2Dversion\": context.apiVersion ?? \"2026-06-01\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).post({\n ...operationOptionsToRequestParameters(options),\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n });\n}\n\nexport async function _disableDeserialize(\n result: PathUncheckedResponse,\n): Promise<OperationStatusResult> {\n const expectedStatuses = [\"200\", \"202\", \"201\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n\n throw error;\n }\n\n return operationStatusResultDeserializer(result.body);\n}\n\n/** Disables a compute limit feature for the subscription at the specified location. */\nexport function disable(\n context: Client,\n location: string,\n featureName: string,\n options: FeaturesDisableOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<OperationStatusResult>, OperationStatusResult> {\n return getLongRunningPoller(context, _disableDeserialize, [\"200\", \"202\", \"201\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () => _disableSend(context, location, featureName, options),\n resourceLocationConfig: \"location\",\n apiVersion: context.apiVersion ?? \"2026-06-01\",\n }) as PollerLike<OperationState<OperationStatusResult>, OperationStatusResult>;\n}\n\nexport function _enableSend(\n context: Client,\n location: string,\n featureName: string,\n options: FeaturesEnableOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.ComputeLimit/locations/{location}/features/{featureName}/enable{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n location: location,\n featureName: featureName,\n \"api%2Dversion\": context.apiVersion ?? \"2026-06-01\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).post({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n body: !options?.body ? options?.body : featureEnableRequestSerializer(options?.body),\n });\n}\n\nexport async function _enableDeserialize(\n result: PathUncheckedResponse,\n): Promise<OperationStatusResult> {\n const expectedStatuses = [\"200\", \"202\", \"201\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n\n throw error;\n }\n\n return operationStatusResultDeserializer(result.body);\n}\n\n/** Enables a compute limit feature for the subscription at the specified location. */\nexport function enable(\n context: Client,\n location: string,\n featureName: string,\n options: FeaturesEnableOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<OperationStatusResult>, OperationStatusResult> {\n return getLongRunningPoller(context, _enableDeserialize, [\"200\", \"202\", \"201\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () => _enableSend(context, location, featureName, options),\n resourceLocationConfig: \"location\",\n apiVersion: context.apiVersion ?? \"2026-06-01\",\n }) as PollerLike<OperationState<OperationStatusResult>, OperationStatusResult>;\n}\n\nexport function _listBySubscriptionLocationResourceSend(\n context: Client,\n location: string,\n options: FeaturesListBySubscriptionLocationResourceOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.ComputeLimit/locations/{location}/features{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n location: location,\n \"api%2Dversion\": context.apiVersion ?? \"2026-06-01\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n });\n}\n\nexport async function _listBySubscriptionLocationResourceDeserialize(\n result: PathUncheckedResponse,\n): Promise<_FeatureListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n\n throw error;\n }\n\n return _featureListResultDeserializer(result.body);\n}\n\n/** Lists all compute limit features for the subscription at the specified location. */\nexport function listBySubscriptionLocationResource(\n context: Client,\n location: string,\n options: FeaturesListBySubscriptionLocationResourceOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<Feature> {\n return buildPagedAsyncIterator(\n context,\n () => _listBySubscriptionLocationResourceSend(context, location, options),\n _listBySubscriptionLocationResourceDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\", apiVersion: context.apiVersion ?? \"2026-06-01\" },\n );\n}\n\nexport function _getSend(\n context: Client,\n location: string,\n featureName: string,\n options: FeaturesGetOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.ComputeLimit/locations/{location}/features/{featureName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n location: location,\n featureName: featureName,\n \"api%2Dversion\": context.apiVersion ?? \"2026-06-01\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n });\n}\n\nexport async function _getDeserialize(result: PathUncheckedResponse): Promise<Feature> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n\n throw error;\n }\n\n return featureDeserializer(result.body);\n}\n\n/** Gets the properties of a compute limit feature. */\nexport async function get(\n context: Client,\n location: string,\n featureName: string,\n options: FeaturesGetOptionalParams = { requestOptions: {} },\n): Promise<Feature> {\n const result = await _getSend(context, location, featureName, options);\n return _getDeserialize(result);\n}\n"]}
@@ -1,8 +1,16 @@
1
+ import type { FeatureEnableRequest } from "../../models/models.js";
1
2
  import type { OperationOptions } from "@azure-rest/core-client";
2
3
  /** Optional parameters. */
4
+ export interface FeaturesDisableOptionalParams extends OperationOptions {
5
+ /** Delay to wait until next poll, in milliseconds. */
6
+ updateIntervalInMs?: number;
7
+ }
8
+ /** Optional parameters. */
3
9
  export interface FeaturesEnableOptionalParams extends OperationOptions {
4
10
  /** Delay to wait until next poll, in milliseconds. */
5
11
  updateIntervalInMs?: number;
12
+ /** The content of the action request */
13
+ body?: FeatureEnableRequest;
6
14
  }
7
15
  /** Optional parameters. */
8
16
  export interface FeaturesListBySubscriptionLocationResourceOptionalParams extends OperationOptions {
@@ -1 +1 @@
1
- {"version":3,"file":"options.js","sourceRoot":"","sources":["../../../../src/api/features/options.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { OperationOptions } from \"@azure-rest/core-client\";\n\n/** Optional parameters. */\nexport interface FeaturesEnableOptionalParams extends OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n}\n\n/** Optional parameters. */\nexport interface FeaturesListBySubscriptionLocationResourceOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface FeaturesGetOptionalParams extends OperationOptions {}\n"]}
1
+ {"version":3,"file":"options.js","sourceRoot":"","sources":["../../../../src/api/features/options.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { FeatureEnableRequest } from \"../../models/models.js\";\nimport type { OperationOptions } from \"@azure-rest/core-client\";\n\n/** Optional parameters. */\nexport interface FeaturesDisableOptionalParams extends OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n}\n\n/** Optional parameters. */\nexport interface FeaturesEnableOptionalParams extends OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n /** The content of the action request */\n body?: FeatureEnableRequest;\n}\n\n/** Optional parameters. */\nexport interface FeaturesListBySubscriptionLocationResourceOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface FeaturesGetOptionalParams extends OperationOptions {}\n"]}
@@ -10,11 +10,6 @@ export declare function listBySubscriptionLocationResource(context: Client, loca
10
10
  export declare function _$deleteSend(context: Client, location: string, guestSubscriptionId: string, options?: GuestSubscriptionsDeleteOptionalParams): StreamableMethod;
11
11
  export declare function _$deleteDeserialize(result: PathUncheckedResponse): Promise<void>;
12
12
  /** Deletes a subscription as a guest to stop consuming the compute limits shared by the host subscription. */
13
- /**
14
- * @fixme delete is a reserved word that cannot be used as an operation name.
15
- * Please add @clientName("clientName") or @clientName("<JS-Specific-Name>", "javascript")
16
- * to the operation to override the generated name.
17
- */
18
13
  export declare function $delete(context: Client, location: string, guestSubscriptionId: string, options?: GuestSubscriptionsDeleteOptionalParams): Promise<void>;
19
14
  export declare function _createSend(context: Client, location: string, guestSubscriptionId: string, resource: GuestSubscription, options?: GuestSubscriptionsCreateOptionalParams): StreamableMethod;
20
15
  export declare function _createDeserialize(result: PathUncheckedResponse): Promise<GuestSubscription>;
@@ -10,7 +10,7 @@ export function _listBySubscriptionLocationResourceSend(context, location, optio
10
10
  const path = expandUrlTemplate("/subscriptions/{subscriptionId}/providers/Microsoft.ComputeLimit/locations/{location}/guestSubscriptions{?api%2Dversion}", {
11
11
  subscriptionId: context.subscriptionId,
12
12
  location: location,
13
- "api%2Dversion": context.apiVersion ?? "2026-03-20",
13
+ "api%2Dversion": context.apiVersion ?? "2026-06-01",
14
14
  }, {
15
15
  allowReserved: options?.requestOptions?.skipUrlEncoding,
16
16
  });
@@ -32,14 +32,14 @@ export async function _listBySubscriptionLocationResourceDeserialize(result) {
32
32
  export function listBySubscriptionLocationResource(context, location, options = {
33
33
  requestOptions: {},
34
34
  }) {
35
- return buildPagedAsyncIterator(context, () => _listBySubscriptionLocationResourceSend(context, location, options), _listBySubscriptionLocationResourceDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink", apiVersion: context.apiVersion ?? "2026-03-20" });
35
+ return buildPagedAsyncIterator(context, () => _listBySubscriptionLocationResourceSend(context, location, options), _listBySubscriptionLocationResourceDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink", apiVersion: context.apiVersion ?? "2026-06-01" });
36
36
  }
37
37
  export function _$deleteSend(context, location, guestSubscriptionId, options = { requestOptions: {} }) {
38
38
  const path = expandUrlTemplate("/subscriptions/{subscriptionId}/providers/Microsoft.ComputeLimit/locations/{location}/guestSubscriptions/{guestSubscriptionId}{?api%2Dversion}", {
39
39
  subscriptionId: context.subscriptionId,
40
40
  location: location,
41
41
  guestSubscriptionId: guestSubscriptionId,
42
- "api%2Dversion": context.apiVersion ?? "2026-03-20",
42
+ "api%2Dversion": context.apiVersion ?? "2026-06-01",
43
43
  }, {
44
44
  allowReserved: options?.requestOptions?.skipUrlEncoding,
45
45
  });
@@ -55,11 +55,6 @@ export async function _$deleteDeserialize(result) {
55
55
  return;
56
56
  }
57
57
  /** Deletes a subscription as a guest to stop consuming the compute limits shared by the host subscription. */
58
- /**
59
- * @fixme delete is a reserved word that cannot be used as an operation name.
60
- * Please add @clientName("clientName") or @clientName("<JS-Specific-Name>", "javascript")
61
- * to the operation to override the generated name.
62
- */
63
58
  export async function $delete(context, location, guestSubscriptionId, options = { requestOptions: {} }) {
64
59
  const result = await _$deleteSend(context, location, guestSubscriptionId, options);
65
60
  return _$deleteDeserialize(result);
@@ -69,7 +64,7 @@ export function _createSend(context, location, guestSubscriptionId, resource, op
69
64
  subscriptionId: context.subscriptionId,
70
65
  location: location,
71
66
  guestSubscriptionId: guestSubscriptionId,
72
- "api%2Dversion": context.apiVersion ?? "2026-03-20",
67
+ "api%2Dversion": context.apiVersion ?? "2026-06-01",
73
68
  }, {
74
69
  allowReserved: options?.requestOptions?.skipUrlEncoding,
75
70
  });
@@ -99,7 +94,7 @@ export function _getSend(context, location, guestSubscriptionId, options = { req
99
94
  subscriptionId: context.subscriptionId,
100
95
  location: location,
101
96
  guestSubscriptionId: guestSubscriptionId,
102
- "api%2Dversion": context.apiVersion ?? "2026-03-20",
97
+ "api%2Dversion": context.apiVersion ?? "2026-06-01",
103
98
  }, {
104
99
  allowReserved: options?.requestOptions?.skipUrlEncoding,
105
100
  });
@@ -1 +1 @@
1
- {"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../../src/api/guestSubscriptions/operations.ts"],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AAED,MAAM,CAAC,KAAK,UAAU,eAAe,CAAC,MAA6B;IACjE,MAAM,gBAAgB,GAAG,CAAC,KAAK,CAAC,CAAC;IACjC,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;QAC9C,MAAM,KAAK,GAAG,eAAe,CAAC,MAAM,CAAC,CAAC;QACtC,KAAK,CAAC,OAAO,GAAG,yBAAyB,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QAEvD,MAAM,KAAK,CAAC;IACd,CAAC;IAED,OAAO,6BAA6B,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AACpD,CAAC;AAED,mDAAmD;AACnD,MAAM,CAAC,KAAK,UAAU,GAAG,CACvB,OAAe,EACf,QAAgB,EAChB,mBAA2B,EAC3B,UAA+C,EAAE,cAAc,EAAE,EAAE,EAAE;IAErE,MAAM,MAAM,GAAG,MAAM,QAAQ,CAAC,OAAO,EAAE,QAAQ,EAAE,mBAAmB,EAAE,OAAO,CAAC,CAAC;IAC/E,OAAO,eAAe,CAAC,MAAM,CAAC,CAAC;AACjC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { ComputeLimitContext as Client } from \"../index.js\";\nimport type { GuestSubscription, _GuestSubscriptionListResult } from \"../../models/models.js\";\nimport {\n errorResponseDeserializer,\n guestSubscriptionSerializer,\n guestSubscriptionDeserializer,\n _guestSubscriptionListResultDeserializer,\n} from \"../../models/models.js\";\nimport type { PagedAsyncIterableIterator } from \"../../static-helpers/pagingHelpers.js\";\nimport { buildPagedAsyncIterator } from \"../../static-helpers/pagingHelpers.js\";\nimport { expandUrlTemplate } from \"../../static-helpers/urlTemplate.js\";\nimport type {\n GuestSubscriptionsListBySubscriptionLocationResourceOptionalParams,\n GuestSubscriptionsDeleteOptionalParams,\n GuestSubscriptionsCreateOptionalParams,\n GuestSubscriptionsGetOptionalParams,\n} from \"./options.js\";\nimport type { StreamableMethod, PathUncheckedResponse } from \"@azure-rest/core-client\";\nimport { createRestError, operationOptionsToRequestParameters } from \"@azure-rest/core-client\";\n\nexport function _listBySubscriptionLocationResourceSend(\n context: Client,\n location: string,\n options: GuestSubscriptionsListBySubscriptionLocationResourceOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.ComputeLimit/locations/{location}/guestSubscriptions{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n location: location,\n \"api%2Dversion\": context.apiVersion ?? \"2026-03-20\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n });\n}\n\nexport async function _listBySubscriptionLocationResourceDeserialize(\n result: PathUncheckedResponse,\n): Promise<_GuestSubscriptionListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n\n throw error;\n }\n\n return _guestSubscriptionListResultDeserializer(result.body);\n}\n\n/** Lists all guest subscriptions in a location. */\nexport function listBySubscriptionLocationResource(\n context: Client,\n location: string,\n options: GuestSubscriptionsListBySubscriptionLocationResourceOptionalParams = {\n requestOptions: {},\n },\n): PagedAsyncIterableIterator<GuestSubscription> {\n return buildPagedAsyncIterator(\n context,\n () => _listBySubscriptionLocationResourceSend(context, location, options),\n _listBySubscriptionLocationResourceDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\", apiVersion: context.apiVersion ?? \"2026-03-20\" },\n );\n}\n\nexport function _$deleteSend(\n context: Client,\n location: string,\n guestSubscriptionId: string,\n options: GuestSubscriptionsDeleteOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.ComputeLimit/locations/{location}/guestSubscriptions/{guestSubscriptionId}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n location: location,\n guestSubscriptionId: guestSubscriptionId,\n \"api%2Dversion\": context.apiVersion ?? \"2026-03-20\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).delete({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _$deleteDeserialize(result: PathUncheckedResponse): Promise<void> {\n const expectedStatuses = [\"200\", \"204\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n\n throw error;\n }\n\n return;\n}\n\n/** Deletes a subscription as a guest to stop consuming the compute limits shared by the host subscription. */\n/**\n * @fixme delete is a reserved word that cannot be used as an operation name.\n * Please add @clientName(\"clientName\") or @clientName(\"<JS-Specific-Name>\", \"javascript\")\n * to the operation to override the generated name.\n */\nexport async function $delete(\n context: Client,\n location: string,\n guestSubscriptionId: string,\n options: GuestSubscriptionsDeleteOptionalParams = { requestOptions: {} },\n): Promise<void> {\n const result = await _$deleteSend(context, location, guestSubscriptionId, options);\n return _$deleteDeserialize(result);\n}\n\nexport function _createSend(\n context: Client,\n location: string,\n guestSubscriptionId: string,\n resource: GuestSubscription,\n options: GuestSubscriptionsCreateOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.ComputeLimit/locations/{location}/guestSubscriptions/{guestSubscriptionId}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n location: location,\n guestSubscriptionId: guestSubscriptionId,\n \"api%2Dversion\": context.apiVersion ?? \"2026-03-20\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).put({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n body: guestSubscriptionSerializer(resource),\n });\n}\n\nexport async function _createDeserialize(\n result: PathUncheckedResponse,\n): Promise<GuestSubscription> {\n const expectedStatuses = [\"200\", \"201\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n\n throw error;\n }\n\n return guestSubscriptionDeserializer(result.body);\n}\n\n/** Adds a subscription as a guest to consume the compute limits shared by the host subscription. */\nexport async function create(\n context: Client,\n location: string,\n guestSubscriptionId: string,\n resource: GuestSubscription,\n options: GuestSubscriptionsCreateOptionalParams = { requestOptions: {} },\n): Promise<GuestSubscription> {\n const result = await _createSend(context, location, guestSubscriptionId, resource, options);\n return _createDeserialize(result);\n}\n\nexport function _getSend(\n context: Client,\n location: string,\n guestSubscriptionId: string,\n options: GuestSubscriptionsGetOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.ComputeLimit/locations/{location}/guestSubscriptions/{guestSubscriptionId}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n location: location,\n guestSubscriptionId: guestSubscriptionId,\n \"api%2Dversion\": context.apiVersion ?? \"2026-03-20\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n });\n}\n\nexport async function _getDeserialize(result: PathUncheckedResponse): Promise<GuestSubscription> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n\n throw error;\n }\n\n return guestSubscriptionDeserializer(result.body);\n}\n\n/** Gets the properties of a guest subscription. */\nexport async function get(\n context: Client,\n location: string,\n guestSubscriptionId: string,\n options: GuestSubscriptionsGetOptionalParams = { requestOptions: {} },\n): Promise<GuestSubscription> {\n const result = await _getSend(context, location, guestSubscriptionId, options);\n return _getDeserialize(result);\n}\n"]}
1
+ {"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../../src/api/guestSubscriptions/operations.ts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AAC,KAAK,UAAU,eAAe,CAAC,MAA6B;IACjE,MAAM,gBAAgB,GAAG,CAAC,KAAK,CAAC,CAAC;IACjC,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;QAC9C,MAAM,KAAK,GAAG,eAAe,CAAC,MAAM,CAAC,CAAC;QACtC,KAAK,CAAC,OAAO,GAAG,yBAAyB,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QAEvD,MAAM,KAAK,CAAC;IACd,CAAC;IAED,OAAO,6BAA6B,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AACpD,CAAC;AAED,mDAAmD;AACnD,MAAM,CAAC,KAAK,UAAU,GAAG,CACvB,OAAe,EACf,QAAgB,EAChB,mBAA2B,EAC3B,UAA+C,EAAE,cAAc,EAAE,EAAE,EAAE;IAErE,MAAM,MAAM,GAAG,MAAM,QAAQ,CAAC,OAAO,EAAE,QAAQ,EAAE,mBAAmB,EAAE,OAAO,CAAC,CAAC;IAC/E,OAAO,eAAe,CAAC,MAAM,CAAC,CAAC;AACjC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { ComputeLimitContext as Client } from \"../index.js\";\nimport type { GuestSubscription, _GuestSubscriptionListResult } from \"../../models/models.js\";\nimport {\n errorResponseDeserializer,\n guestSubscriptionSerializer,\n guestSubscriptionDeserializer,\n _guestSubscriptionListResultDeserializer,\n} from \"../../models/models.js\";\nimport type { PagedAsyncIterableIterator } from \"../../static-helpers/pagingHelpers.js\";\nimport { buildPagedAsyncIterator } from \"../../static-helpers/pagingHelpers.js\";\nimport { expandUrlTemplate } from \"../../static-helpers/urlTemplate.js\";\nimport type {\n GuestSubscriptionsListBySubscriptionLocationResourceOptionalParams,\n GuestSubscriptionsDeleteOptionalParams,\n GuestSubscriptionsCreateOptionalParams,\n GuestSubscriptionsGetOptionalParams,\n} from \"./options.js\";\nimport type { StreamableMethod, PathUncheckedResponse } from \"@azure-rest/core-client\";\nimport { createRestError, operationOptionsToRequestParameters } from \"@azure-rest/core-client\";\n\nexport function _listBySubscriptionLocationResourceSend(\n context: Client,\n location: string,\n options: GuestSubscriptionsListBySubscriptionLocationResourceOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.ComputeLimit/locations/{location}/guestSubscriptions{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n location: location,\n \"api%2Dversion\": context.apiVersion ?? \"2026-06-01\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n });\n}\n\nexport async function _listBySubscriptionLocationResourceDeserialize(\n result: PathUncheckedResponse,\n): Promise<_GuestSubscriptionListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n\n throw error;\n }\n\n return _guestSubscriptionListResultDeserializer(result.body);\n}\n\n/** Lists all guest subscriptions in a location. */\nexport function listBySubscriptionLocationResource(\n context: Client,\n location: string,\n options: GuestSubscriptionsListBySubscriptionLocationResourceOptionalParams = {\n requestOptions: {},\n },\n): PagedAsyncIterableIterator<GuestSubscription> {\n return buildPagedAsyncIterator(\n context,\n () => _listBySubscriptionLocationResourceSend(context, location, options),\n _listBySubscriptionLocationResourceDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\", apiVersion: context.apiVersion ?? \"2026-06-01\" },\n );\n}\n\nexport function _$deleteSend(\n context: Client,\n location: string,\n guestSubscriptionId: string,\n options: GuestSubscriptionsDeleteOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.ComputeLimit/locations/{location}/guestSubscriptions/{guestSubscriptionId}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n location: location,\n guestSubscriptionId: guestSubscriptionId,\n \"api%2Dversion\": context.apiVersion ?? \"2026-06-01\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).delete({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _$deleteDeserialize(result: PathUncheckedResponse): Promise<void> {\n const expectedStatuses = [\"200\", \"204\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n\n throw error;\n }\n\n return;\n}\n\n/** Deletes a subscription as a guest to stop consuming the compute limits shared by the host subscription. */\nexport async function $delete(\n context: Client,\n location: string,\n guestSubscriptionId: string,\n options: GuestSubscriptionsDeleteOptionalParams = { requestOptions: {} },\n): Promise<void> {\n const result = await _$deleteSend(context, location, guestSubscriptionId, options);\n return _$deleteDeserialize(result);\n}\n\nexport function _createSend(\n context: Client,\n location: string,\n guestSubscriptionId: string,\n resource: GuestSubscription,\n options: GuestSubscriptionsCreateOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.ComputeLimit/locations/{location}/guestSubscriptions/{guestSubscriptionId}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n location: location,\n guestSubscriptionId: guestSubscriptionId,\n \"api%2Dversion\": context.apiVersion ?? \"2026-06-01\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).put({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n body: guestSubscriptionSerializer(resource),\n });\n}\n\nexport async function _createDeserialize(\n result: PathUncheckedResponse,\n): Promise<GuestSubscription> {\n const expectedStatuses = [\"200\", \"201\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n\n throw error;\n }\n\n return guestSubscriptionDeserializer(result.body);\n}\n\n/** Adds a subscription as a guest to consume the compute limits shared by the host subscription. */\nexport async function create(\n context: Client,\n location: string,\n guestSubscriptionId: string,\n resource: GuestSubscription,\n options: GuestSubscriptionsCreateOptionalParams = { requestOptions: {} },\n): Promise<GuestSubscription> {\n const result = await _createSend(context, location, guestSubscriptionId, resource, options);\n return _createDeserialize(result);\n}\n\nexport function _getSend(\n context: Client,\n location: string,\n guestSubscriptionId: string,\n options: GuestSubscriptionsGetOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.ComputeLimit/locations/{location}/guestSubscriptions/{guestSubscriptionId}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n location: location,\n guestSubscriptionId: guestSubscriptionId,\n \"api%2Dversion\": context.apiVersion ?? \"2026-06-01\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n });\n}\n\nexport async function _getDeserialize(result: PathUncheckedResponse): Promise<GuestSubscription> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n\n throw error;\n }\n\n return guestSubscriptionDeserializer(result.body);\n}\n\n/** Gets the properties of a guest subscription. */\nexport async function get(\n context: Client,\n location: string,\n guestSubscriptionId: string,\n options: GuestSubscriptionsGetOptionalParams = { requestOptions: {} },\n): Promise<GuestSubscription> {\n const result = await _getSend(context, location, guestSubscriptionId, options);\n return _getDeserialize(result);\n}\n"]}
@@ -6,7 +6,7 @@ import { expandUrlTemplate } from "../../static-helpers/urlTemplate.js";
6
6
  import { createRestError, operationOptionsToRequestParameters } from "@azure-rest/core-client";
7
7
  export function _listSend(context, options = { requestOptions: {} }) {
8
8
  const path = expandUrlTemplate("/providers/Microsoft.ComputeLimit/operations{?api%2Dversion}", {
9
- "api%2Dversion": context.apiVersion ?? "2026-03-20",
9
+ "api%2Dversion": context.apiVersion ?? "2026-06-01",
10
10
  }, {
11
11
  allowReserved: options?.requestOptions?.skipUrlEncoding,
12
12
  });
@@ -26,6 +26,6 @@ export async function _listDeserialize(result) {
26
26
  }
27
27
  /** List the operations for the provider */
28
28
  export function list(context, options = { requestOptions: {} }) {
29
- return buildPagedAsyncIterator(context, () => _listSend(context, options), _listDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink", apiVersion: context.apiVersion ?? "2026-03-20" });
29
+ return buildPagedAsyncIterator(context, () => _listSend(context, options), _listDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink", apiVersion: context.apiVersion ?? "2026-06-01" });
30
30
  }
31
31
  //# sourceMappingURL=operations.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../../src/api/operations/operations.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAIlC,OAAO,EACL,gCAAgC,EAChC,yBAAyB,GAC1B,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAChF,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AAGxE,OAAO,EAAE,eAAe,EAAE,mCAAmC,EAAE,MAAM,yBAAyB,CAAC;AAE/F,MAAM,UAAU,SAAS,CACvB,OAAe,EACf,UAAwC,EAAE,cAAc,EAAE,EAAE,EAAE;IAE9D,MAAM,IAAI,GAAG,iBAAiB,CAC5B,8DAA8D,EAC9D;QACE,eAAe,EAAE,OAAO,CAAC,UAAU,IAAI,YAAY;KACpD,EACD;QACE,aAAa,EAAE,OAAO,EAAE,cAAc,EAAE,eAAe;KACxD,CACF,CAAC;IACF,OAAO,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC;QAC5B,GAAG,mCAAmC,CAAC,OAAO,CAAC;QAC/C,OAAO,EAAE,EAAE,MAAM,EAAE,kBAAkB,EAAE,GAAG,OAAO,CAAC,cAAc,EAAE,OAAO,EAAE;KAC5E,CAAC,CAAC;AACL,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,gBAAgB,CACpC,MAA6B;IAE7B,MAAM,gBAAgB,GAAG,CAAC,KAAK,CAAC,CAAC;IACjC,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;QAC9C,MAAM,KAAK,GAAG,eAAe,CAAC,MAAM,CAAC,CAAC;QACtC,KAAK,CAAC,OAAO,GAAG,yBAAyB,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QAEvD,MAAM,KAAK,CAAC;IACd,CAAC;IAED,OAAO,gCAAgC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AACvD,CAAC;AAED,2CAA2C;AAC3C,MAAM,UAAU,IAAI,CAClB,OAAe,EACf,UAAwC,EAAE,cAAc,EAAE,EAAE,EAAE;IAE9D,OAAO,uBAAuB,CAC5B,OAAO,EACP,GAAG,EAAE,CAAC,SAAS,CAAC,OAAO,EAAE,OAAO,CAAC,EACjC,gBAAgB,EAChB,CAAC,KAAK,CAAC,EACP,EAAE,QAAQ,EAAE,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,UAAU,EAAE,OAAO,CAAC,UAAU,IAAI,YAAY,EAAE,CAChG,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { ComputeLimitContext as Client } from \"../index.js\";\nimport type { _OperationListResult, Operation } from \"../../models/models.js\";\nimport {\n _operationListResultDeserializer,\n errorResponseDeserializer,\n} from \"../../models/models.js\";\nimport type { PagedAsyncIterableIterator } from \"../../static-helpers/pagingHelpers.js\";\nimport { buildPagedAsyncIterator } from \"../../static-helpers/pagingHelpers.js\";\nimport { expandUrlTemplate } from \"../../static-helpers/urlTemplate.js\";\nimport type { OperationsListOptionalParams } from \"./options.js\";\nimport type { StreamableMethod, PathUncheckedResponse } from \"@azure-rest/core-client\";\nimport { createRestError, operationOptionsToRequestParameters } from \"@azure-rest/core-client\";\n\nexport function _listSend(\n context: Client,\n options: OperationsListOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/providers/Microsoft.ComputeLimit/operations{?api%2Dversion}\",\n {\n \"api%2Dversion\": context.apiVersion ?? \"2026-03-20\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n });\n}\n\nexport async function _listDeserialize(\n result: PathUncheckedResponse,\n): Promise<_OperationListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n\n throw error;\n }\n\n return _operationListResultDeserializer(result.body);\n}\n\n/** List the operations for the provider */\nexport function list(\n context: Client,\n options: OperationsListOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<Operation> {\n return buildPagedAsyncIterator(\n context,\n () => _listSend(context, options),\n _listDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\", apiVersion: context.apiVersion ?? \"2026-03-20\" },\n );\n}\n"]}
1
+ {"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../../src/api/operations/operations.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAIlC,OAAO,EACL,gCAAgC,EAChC,yBAAyB,GAC1B,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAChF,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AAGxE,OAAO,EAAE,eAAe,EAAE,mCAAmC,EAAE,MAAM,yBAAyB,CAAC;AAE/F,MAAM,UAAU,SAAS,CACvB,OAAe,EACf,UAAwC,EAAE,cAAc,EAAE,E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under the MIT License.\n\nimport type { ComputeLimitContext as Client } from \"../index.js\";\nimport type { _OperationListResult, Operation } from \"../../models/models.js\";\nimport {\n _operationListResultDeserializer,\n errorResponseDeserializer,\n} from \"../../models/models.js\";\nimport type { PagedAsyncIterableIterator } from \"../../static-helpers/pagingHelpers.js\";\nimport { buildPagedAsyncIterator } from \"../../static-helpers/pagingHelpers.js\";\nimport { expandUrlTemplate } from \"../../static-helpers/urlTemplate.js\";\nimport type { OperationsListOptionalParams } from \"./options.js\";\nimport type { StreamableMethod, PathUncheckedResponse } from \"@azure-rest/core-client\";\nimport { createRestError, operationOptionsToRequestParameters } from \"@azure-rest/core-client\";\n\nexport function _listSend(\n context: Client,\n options: OperationsListOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/providers/Microsoft.ComputeLimit/operations{?api%2Dversion}\",\n {\n \"api%2Dversion\": context.apiVersion ?? \"2026-06-01\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n });\n}\n\nexport async function _listDeserialize(\n result: PathUncheckedResponse,\n): Promise<_OperationListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n\n throw error;\n }\n\n return _operationListResultDeserializer(result.body);\n}\n\n/** List the operations for the provider */\nexport function list(\n context: Client,\n options: OperationsListOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<Operation> {\n return buildPagedAsyncIterator(\n context,\n () => _listSend(context, options),\n _listDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\", apiVersion: context.apiVersion ?? \"2026-06-01\" },\n );\n}\n"]}
@@ -10,11 +10,6 @@ export declare function listBySubscriptionLocationResource(context: Client, loca
10
10
  export declare function _$deleteSend(context: Client, location: string, name: string, options?: SharedLimitsDeleteOptionalParams): StreamableMethod;
11
11
  export declare function _$deleteDeserialize(result: PathUncheckedResponse): Promise<void>;
12
12
  /** Disables sharing of a compute limit by the host subscription with its guest subscriptions. */
13
- /**
14
- * @fixme delete is a reserved word that cannot be used as an operation name.
15
- * Please add @clientName("clientName") or @clientName("<JS-Specific-Name>", "javascript")
16
- * to the operation to override the generated name.
17
- */
18
13
  export declare function $delete(context: Client, location: string, name: string, options?: SharedLimitsDeleteOptionalParams): Promise<void>;
19
14
  export declare function _createSend(context: Client, location: string, name: string, resource: SharedLimit, options?: SharedLimitsCreateOptionalParams): StreamableMethod;
20
15
  export declare function _createDeserialize(result: PathUncheckedResponse): Promise<SharedLimit>;
@@ -8,7 +8,7 @@ export function _listBySubscriptionLocationResourceSend(context, location, optio
8
8
  const path = expandUrlTemplate("/subscriptions/{subscriptionId}/providers/Microsoft.ComputeLimit/locations/{location}/sharedLimits{?api%2Dversion}", {
9
9
  subscriptionId: context.subscriptionId,
10
10
  location: location,
11
- "api%2Dversion": context.apiVersion ?? "2026-03-20",
11
+ "api%2Dversion": context.apiVersion ?? "2026-06-01",
12
12
  }, {
13
13
  allowReserved: options?.requestOptions?.skipUrlEncoding,
14
14
  });
@@ -28,14 +28,14 @@ export async function _listBySubscriptionLocationResourceDeserialize(result) {
28
28
  }
29
29
  /** Lists all compute limits shared by the host subscription with its guest subscriptions. */
30
30
  export function listBySubscriptionLocationResource(context, location, options = { requestOptions: {} }) {
31
- return buildPagedAsyncIterator(context, () => _listBySubscriptionLocationResourceSend(context, location, options), _listBySubscriptionLocationResourceDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink", apiVersion: context.apiVersion ?? "2026-03-20" });
31
+ return buildPagedAsyncIterator(context, () => _listBySubscriptionLocationResourceSend(context, location, options), _listBySubscriptionLocationResourceDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink", apiVersion: context.apiVersion ?? "2026-06-01" });
32
32
  }
33
33
  export function _$deleteSend(context, location, name, options = { requestOptions: {} }) {
34
34
  const path = expandUrlTemplate("/subscriptions/{subscriptionId}/providers/Microsoft.ComputeLimit/locations/{location}/sharedLimits/{name}{?api%2Dversion}", {
35
35
  subscriptionId: context.subscriptionId,
36
36
  location: location,
37
37
  name: name,
38
- "api%2Dversion": context.apiVersion ?? "2026-03-20",
38
+ "api%2Dversion": context.apiVersion ?? "2026-06-01",
39
39
  }, {
40
40
  allowReserved: options?.requestOptions?.skipUrlEncoding,
41
41
  });
@@ -51,11 +51,6 @@ export async function _$deleteDeserialize(result) {
51
51
  return;
52
52
  }
53
53
  /** Disables sharing of a compute limit by the host subscription with its guest subscriptions. */
54
- /**
55
- * @fixme delete is a reserved word that cannot be used as an operation name.
56
- * Please add @clientName("clientName") or @clientName("<JS-Specific-Name>", "javascript")
57
- * to the operation to override the generated name.
58
- */
59
54
  export async function $delete(context, location, name, options = { requestOptions: {} }) {
60
55
  const result = await _$deleteSend(context, location, name, options);
61
56
  return _$deleteDeserialize(result);
@@ -65,7 +60,7 @@ export function _createSend(context, location, name, resource, options = { reque
65
60
  subscriptionId: context.subscriptionId,
66
61
  location: location,
67
62
  name: name,
68
- "api%2Dversion": context.apiVersion ?? "2026-03-20",
63
+ "api%2Dversion": context.apiVersion ?? "2026-06-01",
69
64
  }, {
70
65
  allowReserved: options?.requestOptions?.skipUrlEncoding,
71
66
  });
@@ -95,7 +90,7 @@ export function _getSend(context, location, name, options = { requestOptions: {}
95
90
  subscriptionId: context.subscriptionId,
96
91
  location: location,
97
92
  name: name,
98
- "api%2Dversion": context.apiVersion ?? "2026-03-20",
93
+ "api%2Dversion": context.apiVersion ?? "2026-06-01",
99
94
  }, {
100
95
  allowReserved: options?.requestOptions?.skipUrlEncoding,
101
96
  });
@@ -1 +1 @@
1
- {"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../../src/api/sharedLimits/operations.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAIlC,OAAO,EACL,yBAAyB,EACzB,qBAAqB,EACrB,uBAAuB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AAM,CAAC,MAAM,CAAC,EAAE,CAAC;QAC9C,MAAM,KAAK,GAAG,eAAe,CAAC,MAAM,CAAC,CAAC;QACtC,KAAK,CAAC,OAAO,GAAG,yBAAyB,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QAEvD,MAAM,KAAK,CAAC;IACd,CAAC;IAED,OAAO,uBAAuB,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AAC9C,CAAC;AAED,2GAA2G;AAC3G,MAAM,CAAC,KAAK,UAAU,GAAG,CACvB,OAAe,EACf,QAAgB,EAChB,IAAY,EACZ,UAAyC,EAAE,cAAc,EAAE,EAAE,EAAE;IAE/D,MAAM,MAAM,GAAG,MAAM,QAAQ,CAAC,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;IAChE,OAAO,eAAe,CAAC,MAAM,CAAC,CAAC;AACjC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { ComputeLimitContext as Client } from \"../index.js\";\nimport type { SharedLimit, _SharedLimitListResult } from \"../../models/models.js\";\nimport {\n errorResponseDeserializer,\n sharedLimitSerializer,\n sharedLimitDeserializer,\n _sharedLimitListResultDeserializer,\n} from \"../../models/models.js\";\nimport type { PagedAsyncIterableIterator } from \"../../static-helpers/pagingHelpers.js\";\nimport { buildPagedAsyncIterator } from \"../../static-helpers/pagingHelpers.js\";\nimport { expandUrlTemplate } from \"../../static-helpers/urlTemplate.js\";\nimport type {\n SharedLimitsListBySubscriptionLocationResourceOptionalParams,\n SharedLimitsDeleteOptionalParams,\n SharedLimitsCreateOptionalParams,\n SharedLimitsGetOptionalParams,\n} from \"./options.js\";\nimport type { StreamableMethod, PathUncheckedResponse } from \"@azure-rest/core-client\";\nimport { createRestError, operationOptionsToRequestParameters } from \"@azure-rest/core-client\";\n\nexport function _listBySubscriptionLocationResourceSend(\n context: Client,\n location: string,\n options: SharedLimitsListBySubscriptionLocationResourceOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.ComputeLimit/locations/{location}/sharedLimits{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n location: location,\n \"api%2Dversion\": context.apiVersion ?? \"2026-03-20\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n });\n}\n\nexport async function _listBySubscriptionLocationResourceDeserialize(\n result: PathUncheckedResponse,\n): Promise<_SharedLimitListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n\n throw error;\n }\n\n return _sharedLimitListResultDeserializer(result.body);\n}\n\n/** Lists all compute limits shared by the host subscription with its guest subscriptions. */\nexport function listBySubscriptionLocationResource(\n context: Client,\n location: string,\n options: SharedLimitsListBySubscriptionLocationResourceOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<SharedLimit> {\n return buildPagedAsyncIterator(\n context,\n () => _listBySubscriptionLocationResourceSend(context, location, options),\n _listBySubscriptionLocationResourceDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\", apiVersion: context.apiVersion ?? \"2026-03-20\" },\n );\n}\n\nexport function _$deleteSend(\n context: Client,\n location: string,\n name: string,\n options: SharedLimitsDeleteOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.ComputeLimit/locations/{location}/sharedLimits/{name}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n location: location,\n name: name,\n \"api%2Dversion\": context.apiVersion ?? \"2026-03-20\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).delete({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _$deleteDeserialize(result: PathUncheckedResponse): Promise<void> {\n const expectedStatuses = [\"200\", \"204\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n\n throw error;\n }\n\n return;\n}\n\n/** Disables sharing of a compute limit by the host subscription with its guest subscriptions. */\n/**\n * @fixme delete is a reserved word that cannot be used as an operation name.\n * Please add @clientName(\"clientName\") or @clientName(\"<JS-Specific-Name>\", \"javascript\")\n * to the operation to override the generated name.\n */\nexport async function $delete(\n context: Client,\n location: string,\n name: string,\n options: SharedLimitsDeleteOptionalParams = { requestOptions: {} },\n): Promise<void> {\n const result = await _$deleteSend(context, location, name, options);\n return _$deleteDeserialize(result);\n}\n\nexport function _createSend(\n context: Client,\n location: string,\n name: string,\n resource: SharedLimit,\n options: SharedLimitsCreateOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.ComputeLimit/locations/{location}/sharedLimits/{name}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n location: location,\n name: name,\n \"api%2Dversion\": context.apiVersion ?? \"2026-03-20\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).put({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n body: sharedLimitSerializer(resource),\n });\n}\n\nexport async function _createDeserialize(result: PathUncheckedResponse): Promise<SharedLimit> {\n const expectedStatuses = [\"200\", \"201\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n\n throw error;\n }\n\n return sharedLimitDeserializer(result.body);\n}\n\n/** Enables sharing of a compute limit by the host subscription with its guest subscriptions. */\nexport async function create(\n context: Client,\n location: string,\n name: string,\n resource: SharedLimit,\n options: SharedLimitsCreateOptionalParams = { requestOptions: {} },\n): Promise<SharedLimit> {\n const result = await _createSend(context, location, name, resource, options);\n return _createDeserialize(result);\n}\n\nexport function _getSend(\n context: Client,\n location: string,\n name: string,\n options: SharedLimitsGetOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.ComputeLimit/locations/{location}/sharedLimits/{name}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n location: location,\n name: name,\n \"api%2Dversion\": context.apiVersion ?? \"2026-03-20\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n });\n}\n\nexport async function _getDeserialize(result: PathUncheckedResponse): Promise<SharedLimit> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n\n throw error;\n }\n\n return sharedLimitDeserializer(result.body);\n}\n\n/** Gets the properties of a compute limit shared by the host subscription with its guest subscriptions. */\nexport async function get(\n context: Client,\n location: string,\n name: string,\n options: SharedLimitsGetOptionalParams = { requestOptions: {} },\n): Promise<SharedLimit> {\n const result = await _getSend(context, location, name, options);\n return _getDeserialize(result);\n}\n"]}
1
+ {"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../../src/api/sharedLimits/operations.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAIlC,OAAO,EACL,yBAAyB,EACzB,qBAAqB,EACrB,uBAAuB,EACvB,kCAAkC,GACnC,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAChF,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AAQxE,OAAO,EAAE,eAAe,EAAE,mCAAmC,EAAE,MAAM,yBAAyB,CAAC;AAE/F,MAAM,UAAU,uCAAuC,CACrD,OAAe,EACf,QAAgB,EAChB,UAAwE,EAAE,cAAc,EAAE,EA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AAG,CACvB,OAAe,EACf,QAAgB,EAChB,IAAY,EACZ,UAAyC,EAAE,cAAc,EAAE,EAAE,EAAE;IAE/D,MAAM,MAAM,GAAG,MAAM,QAAQ,CAAC,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;IAChE,OAAO,eAAe,CAAC,MAAM,CAAC,CAAC;AACjC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { ComputeLimitContext as Client } from \"../index.js\";\nimport type { SharedLimit, _SharedLimitListResult } from \"../../models/models.js\";\nimport {\n errorResponseDeserializer,\n sharedLimitSerializer,\n sharedLimitDeserializer,\n _sharedLimitListResultDeserializer,\n} from \"../../models/models.js\";\nimport type { PagedAsyncIterableIterator } from \"../../static-helpers/pagingHelpers.js\";\nimport { buildPagedAsyncIterator } from \"../../static-helpers/pagingHelpers.js\";\nimport { expandUrlTemplate } from \"../../static-helpers/urlTemplate.js\";\nimport type {\n SharedLimitsListBySubscriptionLocationResourceOptionalParams,\n SharedLimitsDeleteOptionalParams,\n SharedLimitsCreateOptionalParams,\n SharedLimitsGetOptionalParams,\n} from \"./options.js\";\nimport type { StreamableMethod, PathUncheckedResponse } from \"@azure-rest/core-client\";\nimport { createRestError, operationOptionsToRequestParameters } from \"@azure-rest/core-client\";\n\nexport function _listBySubscriptionLocationResourceSend(\n context: Client,\n location: string,\n options: SharedLimitsListBySubscriptionLocationResourceOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.ComputeLimit/locations/{location}/sharedLimits{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n location: location,\n \"api%2Dversion\": context.apiVersion ?? \"2026-06-01\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n });\n}\n\nexport async function _listBySubscriptionLocationResourceDeserialize(\n result: PathUncheckedResponse,\n): Promise<_SharedLimitListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n\n throw error;\n }\n\n return _sharedLimitListResultDeserializer(result.body);\n}\n\n/** Lists all compute limits shared by the host subscription with its guest subscriptions. */\nexport function listBySubscriptionLocationResource(\n context: Client,\n location: string,\n options: SharedLimitsListBySubscriptionLocationResourceOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<SharedLimit> {\n return buildPagedAsyncIterator(\n context,\n () => _listBySubscriptionLocationResourceSend(context, location, options),\n _listBySubscriptionLocationResourceDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\", apiVersion: context.apiVersion ?? \"2026-06-01\" },\n );\n}\n\nexport function _$deleteSend(\n context: Client,\n location: string,\n name: string,\n options: SharedLimitsDeleteOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.ComputeLimit/locations/{location}/sharedLimits/{name}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n location: location,\n name: name,\n \"api%2Dversion\": context.apiVersion ?? \"2026-06-01\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).delete({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _$deleteDeserialize(result: PathUncheckedResponse): Promise<void> {\n const expectedStatuses = [\"200\", \"204\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n\n throw error;\n }\n\n return;\n}\n\n/** Disables sharing of a compute limit by the host subscription with its guest subscriptions. */\nexport async function $delete(\n context: Client,\n location: string,\n name: string,\n options: SharedLimitsDeleteOptionalParams = { requestOptions: {} },\n): Promise<void> {\n const result = await _$deleteSend(context, location, name, options);\n return _$deleteDeserialize(result);\n}\n\nexport function _createSend(\n context: Client,\n location: string,\n name: string,\n resource: SharedLimit,\n options: SharedLimitsCreateOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.ComputeLimit/locations/{location}/sharedLimits/{name}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n location: location,\n name: name,\n \"api%2Dversion\": context.apiVersion ?? \"2026-06-01\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).put({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n body: sharedLimitSerializer(resource),\n });\n}\n\nexport async function _createDeserialize(result: PathUncheckedResponse): Promise<SharedLimit> {\n const expectedStatuses = [\"200\", \"201\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n\n throw error;\n }\n\n return sharedLimitDeserializer(result.body);\n}\n\n/** Enables sharing of a compute limit by the host subscription with its guest subscriptions. */\nexport async function create(\n context: Client,\n location: string,\n name: string,\n resource: SharedLimit,\n options: SharedLimitsCreateOptionalParams = { requestOptions: {} },\n): Promise<SharedLimit> {\n const result = await _createSend(context, location, name, resource, options);\n return _createDeserialize(result);\n}\n\nexport function _getSend(\n context: Client,\n location: string,\n name: string,\n options: SharedLimitsGetOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.ComputeLimit/locations/{location}/sharedLimits/{name}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n location: location,\n name: name,\n \"api%2Dversion\": context.apiVersion ?? \"2026-06-01\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n });\n}\n\nexport async function _getDeserialize(result: PathUncheckedResponse): Promise<SharedLimit> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n\n throw error;\n }\n\n return sharedLimitDeserializer(result.body);\n}\n\n/** Gets the properties of a compute limit shared by the host subscription with its guest subscriptions. */\nexport async function get(\n context: Client,\n location: string,\n name: string,\n options: SharedLimitsGetOptionalParams = { requestOptions: {} },\n): Promise<SharedLimit> {\n const result = await _getSend(context, location, name, options);\n return _getDeserialize(result);\n}\n"]}
@@ -0,0 +1,3 @@
1
+ export { listBySubscriptionLocationResource, get } from "./operations.js";
2
+ export type { VmFamiliesListBySubscriptionLocationResourceOptionalParams, VmFamiliesGetOptionalParams, } from "./options.js";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,4 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ export { listBySubscriptionLocationResource, get } from "./operations.js";
4
+ //# sourceMappingURL=index.js.map