@azure/arm-computelimit 1.0.0-beta.1 → 1.0.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 (249) hide show
  1. package/README.md +1 -1
  2. package/dist/browser/api/computeLimitContext.d.ts +3 -3
  3. package/dist/browser/api/computeLimitContext.js +4 -23
  4. package/dist/browser/api/computeLimitContext.js.map +1 -1
  5. package/dist/browser/api/features/index.d.ts +3 -0
  6. package/dist/browser/api/features/index.js +4 -0
  7. package/dist/browser/api/features/index.js.map +1 -0
  8. package/dist/browser/api/features/operations.d.ts +19 -0
  9. package/dist/browser/api/features/operations.js +95 -0
  10. package/dist/browser/api/features/operations.js.map +1 -0
  11. package/dist/browser/api/features/options.d.ts +13 -0
  12. package/dist/browser/api/features/options.js +4 -0
  13. package/dist/browser/api/features/options.js.map +1 -0
  14. package/dist/browser/api/guestSubscriptions/index.d.ts +1 -1
  15. package/dist/browser/api/guestSubscriptions/index.js.map +1 -1
  16. package/dist/browser/api/guestSubscriptions/operations.js +8 -17
  17. package/dist/browser/api/guestSubscriptions/operations.js.map +1 -1
  18. package/dist/browser/api/guestSubscriptions/options.js.map +1 -1
  19. package/dist/browser/api/index.d.ts +2 -1
  20. package/dist/browser/api/index.js +1 -1
  21. package/dist/browser/api/index.js.map +1 -1
  22. package/dist/browser/api/operations/index.d.ts +1 -1
  23. package/dist/browser/api/operations/index.js.map +1 -1
  24. package/dist/browser/api/operations/operations.js +3 -6
  25. package/dist/browser/api/operations/operations.js.map +1 -1
  26. package/dist/browser/api/sharedLimits/index.d.ts +1 -1
  27. package/dist/browser/api/sharedLimits/index.js.map +1 -1
  28. package/dist/browser/api/sharedLimits/operations.js +10 -23
  29. package/dist/browser/api/sharedLimits/operations.js.map +1 -1
  30. package/dist/browser/api/sharedLimits/options.js.map +1 -1
  31. package/dist/browser/classic/features/index.d.ts +16 -0
  32. package/dist/browser/classic/features/index.js +16 -0
  33. package/dist/browser/classic/features/index.js.map +1 -0
  34. package/dist/browser/classic/index.d.ts +4 -3
  35. package/dist/browser/classic/index.js.map +1 -1
  36. package/dist/browser/computeLimitClient.d.ts +4 -1
  37. package/dist/browser/computeLimitClient.js +4 -0
  38. package/dist/browser/computeLimitClient.js.map +1 -1
  39. package/dist/browser/index.d.ts +16 -10
  40. package/dist/browser/index.js +2 -1
  41. package/dist/browser/index.js.map +1 -1
  42. package/dist/browser/models/index.d.ts +2 -1
  43. package/dist/browser/models/index.js +1 -1
  44. package/dist/browser/models/index.js.map +1 -1
  45. package/dist/browser/models/models.d.ts +72 -8
  46. package/dist/browser/models/models.js +68 -8
  47. package/dist/browser/models/models.js.map +1 -1
  48. package/dist/browser/restorePollerHelpers.d.ts +21 -0
  49. package/dist/browser/restorePollerHelpers.js +94 -0
  50. package/dist/browser/restorePollerHelpers.js.map +1 -0
  51. package/dist/browser/static-helpers/pagingHelpers.d.ts +2 -0
  52. package/dist/browser/static-helpers/pagingHelpers.js +28 -3
  53. package/dist/browser/static-helpers/pagingHelpers.js.map +1 -1
  54. package/dist/browser/static-helpers/pollingHelpers.d.ts +34 -0
  55. package/dist/browser/static-helpers/pollingHelpers.js +95 -0
  56. package/dist/browser/static-helpers/pollingHelpers.js.map +1 -0
  57. package/dist/browser/static-helpers/urlTemplate.js +20 -5
  58. package/dist/browser/static-helpers/urlTemplate.js.map +1 -1
  59. package/dist/commonjs/api/computeLimitContext.d.ts +3 -3
  60. package/dist/commonjs/api/computeLimitContext.js +43 -44
  61. package/dist/commonjs/api/computeLimitContext.js.map +7 -1
  62. package/dist/commonjs/api/features/index.d.ts +3 -0
  63. package/dist/commonjs/api/features/index.js +32 -0
  64. package/dist/commonjs/api/features/index.js.map +7 -0
  65. package/dist/commonjs/api/features/operations.d.ts +19 -0
  66. package/dist/commonjs/api/features/operations.js +150 -0
  67. package/dist/commonjs/api/features/operations.js.map +7 -0
  68. package/dist/commonjs/api/features/options.d.ts +13 -0
  69. package/dist/commonjs/api/features/options.js +16 -0
  70. package/dist/commonjs/api/features/options.js.map +7 -0
  71. package/dist/commonjs/api/guestSubscriptions/index.d.ts +1 -1
  72. package/dist/commonjs/api/guestSubscriptions/index.js +34 -11
  73. package/dist/commonjs/api/guestSubscriptions/index.js.map +7 -1
  74. package/dist/commonjs/api/guestSubscriptions/operations.js +158 -122
  75. package/dist/commonjs/api/guestSubscriptions/operations.js.map +7 -1
  76. package/dist/commonjs/api/guestSubscriptions/options.js +16 -5
  77. package/dist/commonjs/api/guestSubscriptions/options.js.map +7 -1
  78. package/dist/commonjs/api/index.d.ts +2 -1
  79. package/dist/commonjs/api/index.js +28 -8
  80. package/dist/commonjs/api/index.js.map +7 -1
  81. package/dist/commonjs/api/operations/index.d.ts +1 -1
  82. package/dist/commonjs/api/operations/index.js +28 -8
  83. package/dist/commonjs/api/operations/index.js.map +7 -1
  84. package/dist/commonjs/api/operations/operations.js +62 -33
  85. package/dist/commonjs/api/operations/operations.js.map +7 -1
  86. package/dist/commonjs/api/operations/options.js +16 -5
  87. package/dist/commonjs/api/operations/options.js.map +7 -1
  88. package/dist/commonjs/api/sharedLimits/index.d.ts +1 -1
  89. package/dist/commonjs/api/sharedLimits/index.js +34 -11
  90. package/dist/commonjs/api/sharedLimits/index.js.map +7 -1
  91. package/dist/commonjs/api/sharedLimits/operations.js +158 -126
  92. package/dist/commonjs/api/sharedLimits/operations.js.map +7 -1
  93. package/dist/commonjs/api/sharedLimits/options.js +16 -5
  94. package/dist/commonjs/api/sharedLimits/options.js.map +7 -1
  95. package/dist/commonjs/classic/features/index.d.ts +16 -0
  96. package/dist/commonjs/classic/features/index.js +40 -0
  97. package/dist/commonjs/classic/features/index.js.map +7 -0
  98. package/dist/commonjs/classic/guestSubscriptions/index.js +37 -16
  99. package/dist/commonjs/classic/guestSubscriptions/index.js.map +7 -1
  100. package/dist/commonjs/classic/index.d.ts +4 -3
  101. package/dist/commonjs/classic/index.js +16 -5
  102. package/dist/commonjs/classic/index.js.map +7 -1
  103. package/dist/commonjs/classic/operations/index.js +34 -13
  104. package/dist/commonjs/classic/operations/index.js.map +7 -1
  105. package/dist/commonjs/classic/sharedLimits/index.js +37 -16
  106. package/dist/commonjs/classic/sharedLimits/index.js.map +7 -1
  107. package/dist/commonjs/computeLimitClient.d.ts +4 -1
  108. package/dist/commonjs/computeLimitClient.js +57 -35
  109. package/dist/commonjs/computeLimitClient.js.map +7 -1
  110. package/dist/commonjs/index.d.ts +16 -10
  111. package/dist/commonjs/index.js +47 -16
  112. package/dist/commonjs/index.js.map +7 -1
  113. package/dist/commonjs/logger.js +29 -8
  114. package/dist/commonjs/logger.js.map +7 -1
  115. package/dist/commonjs/models/index.d.ts +2 -1
  116. package/dist/commonjs/models/index.js +38 -12
  117. package/dist/commonjs/models/index.js.map +7 -1
  118. package/dist/commonjs/models/models.d.ts +72 -8
  119. package/dist/commonjs/models/models.js +312 -229
  120. package/dist/commonjs/models/models.js.map +7 -1
  121. package/dist/commonjs/restorePollerHelpers.d.ts +21 -0
  122. package/dist/commonjs/restorePollerHelpers.js +107 -0
  123. package/dist/commonjs/restorePollerHelpers.js.map +7 -0
  124. package/dist/commonjs/static-helpers/cloudSettingHelpers.js +50 -40
  125. package/dist/commonjs/static-helpers/cloudSettingHelpers.js.map +7 -1
  126. package/dist/commonjs/static-helpers/pagingHelpers.d.ts +2 -0
  127. package/dist/commonjs/static-helpers/pagingHelpers.js +125 -103
  128. package/dist/commonjs/static-helpers/pagingHelpers.js.map +7 -1
  129. package/dist/commonjs/static-helpers/pollingHelpers.d.ts +34 -0
  130. package/dist/commonjs/static-helpers/pollingHelpers.js +101 -0
  131. package/dist/commonjs/static-helpers/pollingHelpers.js.map +7 -0
  132. package/dist/commonjs/static-helpers/urlTemplate.js +167 -158
  133. package/dist/commonjs/static-helpers/urlTemplate.js.map +7 -1
  134. package/dist/commonjs/tsdoc-metadata.json +1 -1
  135. package/dist/esm/api/computeLimitContext.d.ts +3 -3
  136. package/dist/esm/api/computeLimitContext.js +4 -23
  137. package/dist/esm/api/computeLimitContext.js.map +1 -1
  138. package/dist/esm/api/features/index.d.ts +3 -0
  139. package/dist/esm/api/features/index.js +4 -0
  140. package/dist/esm/api/features/index.js.map +1 -0
  141. package/dist/esm/api/features/operations.d.ts +19 -0
  142. package/dist/esm/api/features/operations.js +95 -0
  143. package/dist/esm/api/features/operations.js.map +1 -0
  144. package/dist/esm/api/features/options.d.ts +13 -0
  145. package/dist/esm/api/features/options.js +4 -0
  146. package/dist/esm/api/features/options.js.map +1 -0
  147. package/dist/esm/api/guestSubscriptions/index.d.ts +1 -1
  148. package/dist/esm/api/guestSubscriptions/index.js.map +1 -1
  149. package/dist/esm/api/guestSubscriptions/operations.js +8 -17
  150. package/dist/esm/api/guestSubscriptions/operations.js.map +1 -1
  151. package/dist/esm/api/guestSubscriptions/options.js.map +1 -1
  152. package/dist/esm/api/index.d.ts +2 -1
  153. package/dist/esm/api/index.js +1 -1
  154. package/dist/esm/api/index.js.map +1 -1
  155. package/dist/esm/api/operations/index.d.ts +1 -1
  156. package/dist/esm/api/operations/index.js.map +1 -1
  157. package/dist/esm/api/operations/operations.js +3 -6
  158. package/dist/esm/api/operations/operations.js.map +1 -1
  159. package/dist/esm/api/sharedLimits/index.d.ts +1 -1
  160. package/dist/esm/api/sharedLimits/index.js.map +1 -1
  161. package/dist/esm/api/sharedLimits/operations.js +10 -23
  162. package/dist/esm/api/sharedLimits/operations.js.map +1 -1
  163. package/dist/esm/api/sharedLimits/options.js.map +1 -1
  164. package/dist/esm/classic/features/index.d.ts +16 -0
  165. package/dist/esm/classic/features/index.js +16 -0
  166. package/dist/esm/classic/features/index.js.map +1 -0
  167. package/dist/esm/classic/index.d.ts +4 -3
  168. package/dist/esm/classic/index.js.map +1 -1
  169. package/dist/esm/computeLimitClient.d.ts +4 -1
  170. package/dist/esm/computeLimitClient.js +4 -0
  171. package/dist/esm/computeLimitClient.js.map +1 -1
  172. package/dist/esm/index.d.ts +16 -10
  173. package/dist/esm/index.js +2 -1
  174. package/dist/esm/index.js.map +1 -1
  175. package/dist/esm/models/index.d.ts +2 -1
  176. package/dist/esm/models/index.js +1 -1
  177. package/dist/esm/models/index.js.map +1 -1
  178. package/dist/esm/models/models.d.ts +72 -8
  179. package/dist/esm/models/models.js +68 -8
  180. package/dist/esm/models/models.js.map +1 -1
  181. package/dist/esm/restorePollerHelpers.d.ts +21 -0
  182. package/dist/esm/restorePollerHelpers.js +94 -0
  183. package/dist/esm/restorePollerHelpers.js.map +1 -0
  184. package/dist/esm/static-helpers/pagingHelpers.d.ts +2 -0
  185. package/dist/esm/static-helpers/pagingHelpers.js +28 -3
  186. package/dist/esm/static-helpers/pagingHelpers.js.map +1 -1
  187. package/dist/esm/static-helpers/pollingHelpers.d.ts +34 -0
  188. package/dist/esm/static-helpers/pollingHelpers.js +95 -0
  189. package/dist/esm/static-helpers/pollingHelpers.js.map +1 -0
  190. package/dist/esm/static-helpers/urlTemplate.js +20 -5
  191. package/dist/esm/static-helpers/urlTemplate.js.map +1 -1
  192. package/dist/react-native/api/computeLimitContext.d.ts +3 -3
  193. package/dist/react-native/api/computeLimitContext.js +4 -23
  194. package/dist/react-native/api/computeLimitContext.js.map +1 -1
  195. package/dist/react-native/api/features/index.d.ts +3 -0
  196. package/dist/react-native/api/features/index.js +4 -0
  197. package/dist/react-native/api/features/index.js.map +1 -0
  198. package/dist/react-native/api/features/operations.d.ts +19 -0
  199. package/dist/react-native/api/features/operations.js +95 -0
  200. package/dist/react-native/api/features/operations.js.map +1 -0
  201. package/dist/react-native/api/features/options.d.ts +13 -0
  202. package/dist/react-native/api/features/options.js +4 -0
  203. package/dist/react-native/api/features/options.js.map +1 -0
  204. package/dist/react-native/api/guestSubscriptions/index.d.ts +1 -1
  205. package/dist/react-native/api/guestSubscriptions/index.js.map +1 -1
  206. package/dist/react-native/api/guestSubscriptions/operations.js +8 -17
  207. package/dist/react-native/api/guestSubscriptions/operations.js.map +1 -1
  208. package/dist/react-native/api/guestSubscriptions/options.js.map +1 -1
  209. package/dist/react-native/api/index.d.ts +2 -1
  210. package/dist/react-native/api/index.js +1 -1
  211. package/dist/react-native/api/index.js.map +1 -1
  212. package/dist/react-native/api/operations/index.d.ts +1 -1
  213. package/dist/react-native/api/operations/index.js.map +1 -1
  214. package/dist/react-native/api/operations/operations.js +3 -6
  215. package/dist/react-native/api/operations/operations.js.map +1 -1
  216. package/dist/react-native/api/sharedLimits/index.d.ts +1 -1
  217. package/dist/react-native/api/sharedLimits/index.js.map +1 -1
  218. package/dist/react-native/api/sharedLimits/operations.js +10 -23
  219. package/dist/react-native/api/sharedLimits/operations.js.map +1 -1
  220. package/dist/react-native/api/sharedLimits/options.js.map +1 -1
  221. package/dist/react-native/classic/features/index.d.ts +16 -0
  222. package/dist/react-native/classic/features/index.js +16 -0
  223. package/dist/react-native/classic/features/index.js.map +1 -0
  224. package/dist/react-native/classic/index.d.ts +4 -3
  225. package/dist/react-native/classic/index.js.map +1 -1
  226. package/dist/react-native/computeLimitClient.d.ts +4 -1
  227. package/dist/react-native/computeLimitClient.js +4 -0
  228. package/dist/react-native/computeLimitClient.js.map +1 -1
  229. package/dist/react-native/index.d.ts +16 -10
  230. package/dist/react-native/index.js +2 -1
  231. package/dist/react-native/index.js.map +1 -1
  232. package/dist/react-native/models/index.d.ts +2 -1
  233. package/dist/react-native/models/index.js +1 -1
  234. package/dist/react-native/models/index.js.map +1 -1
  235. package/dist/react-native/models/models.d.ts +72 -8
  236. package/dist/react-native/models/models.js +68 -8
  237. package/dist/react-native/models/models.js.map +1 -1
  238. package/dist/react-native/restorePollerHelpers.d.ts +21 -0
  239. package/dist/react-native/restorePollerHelpers.js +94 -0
  240. package/dist/react-native/restorePollerHelpers.js.map +1 -0
  241. package/dist/react-native/static-helpers/pagingHelpers.d.ts +2 -0
  242. package/dist/react-native/static-helpers/pagingHelpers.js +28 -3
  243. package/dist/react-native/static-helpers/pagingHelpers.js.map +1 -1
  244. package/dist/react-native/static-helpers/pollingHelpers.d.ts +34 -0
  245. package/dist/react-native/static-helpers/pollingHelpers.js +95 -0
  246. package/dist/react-native/static-helpers/pollingHelpers.js.map +1 -0
  247. package/dist/react-native/static-helpers/urlTemplate.js +20 -5
  248. package/dist/react-native/static-helpers/urlTemplate.js.map +1 -1
  249. package/package.json +33 -35
@@ -1,148 +1,184 @@
1
- "use strict";
2
- // Copyright (c) Microsoft Corporation.
3
- // Licensed under the MIT License.
4
- Object.defineProperty(exports, "__esModule", { value: true });
5
- exports._listBySubscriptionLocationResourceSend = _listBySubscriptionLocationResourceSend;
6
- exports._listBySubscriptionLocationResourceDeserialize = _listBySubscriptionLocationResourceDeserialize;
7
- exports.listBySubscriptionLocationResource = listBySubscriptionLocationResource;
8
- exports._$deleteSend = _$deleteSend;
9
- exports._$deleteDeserialize = _$deleteDeserialize;
10
- exports.$delete = $delete;
11
- exports._createSend = _createSend;
12
- exports._createDeserialize = _createDeserialize;
13
- exports.create = create;
14
- exports._getSend = _getSend;
15
- exports._getDeserialize = _getDeserialize;
16
- exports.get = get;
17
- const models_js_1 = require("../../models/models.js");
18
- const pagingHelpers_js_1 = require("../../static-helpers/pagingHelpers.js");
19
- const urlTemplate_js_1 = require("../../static-helpers/urlTemplate.js");
20
- const core_client_1 = require("@azure-rest/core-client");
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+ var operations_exports = {};
19
+ __export(operations_exports, {
20
+ $delete: () => $delete,
21
+ _$deleteDeserialize: () => _$deleteDeserialize,
22
+ _$deleteSend: () => _$deleteSend,
23
+ _createDeserialize: () => _createDeserialize,
24
+ _createSend: () => _createSend,
25
+ _getDeserialize: () => _getDeserialize,
26
+ _getSend: () => _getSend,
27
+ _listBySubscriptionLocationResourceDeserialize: () => _listBySubscriptionLocationResourceDeserialize,
28
+ _listBySubscriptionLocationResourceSend: () => _listBySubscriptionLocationResourceSend,
29
+ create: () => create,
30
+ get: () => get,
31
+ listBySubscriptionLocationResource: () => listBySubscriptionLocationResource
32
+ });
33
+ module.exports = __toCommonJS(operations_exports);
34
+ var import_models = require("../../models/models.js");
35
+ var import_pagingHelpers = require("../../static-helpers/pagingHelpers.js");
36
+ var import_urlTemplate = require("../../static-helpers/urlTemplate.js");
37
+ var import_core_client = require("@azure-rest/core-client");
21
38
  function _listBySubscriptionLocationResourceSend(context, location, options = {
22
- requestOptions: {},
39
+ requestOptions: {}
23
40
  }) {
24
- const path = (0, urlTemplate_js_1.expandUrlTemplate)("/subscriptions/{subscriptionId}/providers/Microsoft.ComputeLimit/locations/{location}/guestSubscriptions{?api%2Dversion}", {
25
- subscriptionId: context.subscriptionId,
26
- location: location,
27
- "api%2Dversion": context.apiVersion,
28
- }, {
29
- allowReserved: options?.requestOptions?.skipUrlEncoding,
30
- });
31
- return context.path(path).get({
32
- ...(0, core_client_1.operationOptionsToRequestParameters)(options),
33
- headers: {
34
- accept: "application/json",
35
- ...options.requestOptions?.headers,
36
- },
37
- });
41
+ const path = (0, import_urlTemplate.expandUrlTemplate)(
42
+ "/subscriptions/{subscriptionId}/providers/Microsoft.ComputeLimit/locations/{location}/guestSubscriptions{?api%2Dversion}",
43
+ {
44
+ subscriptionId: context.subscriptionId,
45
+ location,
46
+ "api%2Dversion": context.apiVersion ?? "2026-03-20"
47
+ },
48
+ {
49
+ allowReserved: options?.requestOptions?.skipUrlEncoding
50
+ }
51
+ );
52
+ return context.path(path).get({
53
+ ...(0, import_core_client.operationOptionsToRequestParameters)(options),
54
+ headers: { accept: "application/json", ...options.requestOptions?.headers }
55
+ });
38
56
  }
39
57
  async function _listBySubscriptionLocationResourceDeserialize(result) {
40
- const expectedStatuses = ["200"];
41
- if (!expectedStatuses.includes(result.status)) {
42
- const error = (0, core_client_1.createRestError)(result);
43
- error.details = (0, models_js_1.errorResponseDeserializer)(result.body);
44
- throw error;
45
- }
46
- return (0, models_js_1._guestSubscriptionListResultDeserializer)(result.body);
58
+ const expectedStatuses = ["200"];
59
+ if (!expectedStatuses.includes(result.status)) {
60
+ const error = (0, import_core_client.createRestError)(result);
61
+ error.details = (0, import_models.errorResponseDeserializer)(result.body);
62
+ throw error;
63
+ }
64
+ return (0, import_models._guestSubscriptionListResultDeserializer)(result.body);
47
65
  }
48
- /** Lists all guest subscriptions in a location. */
49
66
  function listBySubscriptionLocationResource(context, location, options = {
50
- requestOptions: {},
67
+ requestOptions: {}
51
68
  }) {
52
- return (0, pagingHelpers_js_1.buildPagedAsyncIterator)(context, () => _listBySubscriptionLocationResourceSend(context, location, options), _listBySubscriptionLocationResourceDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink" });
69
+ return (0, import_pagingHelpers.buildPagedAsyncIterator)(
70
+ context,
71
+ () => _listBySubscriptionLocationResourceSend(context, location, options),
72
+ _listBySubscriptionLocationResourceDeserialize,
73
+ ["200"],
74
+ { itemName: "value", nextLinkName: "nextLink", apiVersion: context.apiVersion ?? "2026-03-20" }
75
+ );
53
76
  }
54
77
  function _$deleteSend(context, location, guestSubscriptionId, options = { requestOptions: {} }) {
55
- const path = (0, urlTemplate_js_1.expandUrlTemplate)("/subscriptions/{subscriptionId}/providers/Microsoft.ComputeLimit/locations/{location}/guestSubscriptions/{guestSubscriptionId}{?api%2Dversion}", {
56
- subscriptionId: context.subscriptionId,
57
- location: location,
58
- guestSubscriptionId: guestSubscriptionId,
59
- "api%2Dversion": context.apiVersion,
60
- }, {
61
- allowReserved: options?.requestOptions?.skipUrlEncoding,
62
- });
63
- return context.path(path).delete({ ...(0, core_client_1.operationOptionsToRequestParameters)(options) });
78
+ const path = (0, import_urlTemplate.expandUrlTemplate)(
79
+ "/subscriptions/{subscriptionId}/providers/Microsoft.ComputeLimit/locations/{location}/guestSubscriptions/{guestSubscriptionId}{?api%2Dversion}",
80
+ {
81
+ subscriptionId: context.subscriptionId,
82
+ location,
83
+ guestSubscriptionId,
84
+ "api%2Dversion": context.apiVersion ?? "2026-03-20"
85
+ },
86
+ {
87
+ allowReserved: options?.requestOptions?.skipUrlEncoding
88
+ }
89
+ );
90
+ return context.path(path).delete({ ...(0, import_core_client.operationOptionsToRequestParameters)(options) });
64
91
  }
65
92
  async function _$deleteDeserialize(result) {
66
- const expectedStatuses = ["200", "204"];
67
- if (!expectedStatuses.includes(result.status)) {
68
- const error = (0, core_client_1.createRestError)(result);
69
- error.details = (0, models_js_1.errorResponseDeserializer)(result.body);
70
- throw error;
71
- }
72
- return;
93
+ const expectedStatuses = ["200", "204"];
94
+ if (!expectedStatuses.includes(result.status)) {
95
+ const error = (0, import_core_client.createRestError)(result);
96
+ error.details = (0, import_models.errorResponseDeserializer)(result.body);
97
+ throw error;
98
+ }
99
+ return;
73
100
  }
74
- /** Deletes a subscription as a guest to stop consuming the compute limits shared by the host subscription. */
75
- /**
76
- * @fixme delete is a reserved word that cannot be used as an operation name.
77
- * Please add @clientName("clientName") or @clientName("<JS-Specific-Name>", "javascript")
78
- * to the operation to override the generated name.
79
- */
80
101
  async function $delete(context, location, guestSubscriptionId, options = { requestOptions: {} }) {
81
- const result = await _$deleteSend(context, location, guestSubscriptionId, options);
82
- return _$deleteDeserialize(result);
102
+ const result = await _$deleteSend(context, location, guestSubscriptionId, options);
103
+ return _$deleteDeserialize(result);
83
104
  }
84
105
  function _createSend(context, location, guestSubscriptionId, resource, options = { requestOptions: {} }) {
85
- const path = (0, urlTemplate_js_1.expandUrlTemplate)("/subscriptions/{subscriptionId}/providers/Microsoft.ComputeLimit/locations/{location}/guestSubscriptions/{guestSubscriptionId}{?api%2Dversion}", {
86
- subscriptionId: context.subscriptionId,
87
- location: location,
88
- guestSubscriptionId: guestSubscriptionId,
89
- "api%2Dversion": context.apiVersion,
90
- }, {
91
- allowReserved: options?.requestOptions?.skipUrlEncoding,
92
- });
93
- return context.path(path).put({
94
- ...(0, core_client_1.operationOptionsToRequestParameters)(options),
95
- contentType: "application/json",
96
- headers: {
97
- accept: "application/json",
98
- ...options.requestOptions?.headers,
99
- },
100
- body: (0, models_js_1.guestSubscriptionSerializer)(resource),
101
- });
106
+ const path = (0, import_urlTemplate.expandUrlTemplate)(
107
+ "/subscriptions/{subscriptionId}/providers/Microsoft.ComputeLimit/locations/{location}/guestSubscriptions/{guestSubscriptionId}{?api%2Dversion}",
108
+ {
109
+ subscriptionId: context.subscriptionId,
110
+ location,
111
+ guestSubscriptionId,
112
+ "api%2Dversion": context.apiVersion ?? "2026-03-20"
113
+ },
114
+ {
115
+ allowReserved: options?.requestOptions?.skipUrlEncoding
116
+ }
117
+ );
118
+ return context.path(path).put({
119
+ ...(0, import_core_client.operationOptionsToRequestParameters)(options),
120
+ contentType: "application/json",
121
+ headers: { accept: "application/json", ...options.requestOptions?.headers },
122
+ body: (0, import_models.guestSubscriptionSerializer)(resource)
123
+ });
102
124
  }
103
125
  async function _createDeserialize(result) {
104
- const expectedStatuses = ["200", "201"];
105
- if (!expectedStatuses.includes(result.status)) {
106
- const error = (0, core_client_1.createRestError)(result);
107
- error.details = (0, models_js_1.errorResponseDeserializer)(result.body);
108
- throw error;
109
- }
110
- return (0, models_js_1.guestSubscriptionDeserializer)(result.body);
126
+ const expectedStatuses = ["200", "201"];
127
+ if (!expectedStatuses.includes(result.status)) {
128
+ const error = (0, import_core_client.createRestError)(result);
129
+ error.details = (0, import_models.errorResponseDeserializer)(result.body);
130
+ throw error;
131
+ }
132
+ return (0, import_models.guestSubscriptionDeserializer)(result.body);
111
133
  }
112
- /** Adds a subscription as a guest to consume the compute limits shared by the host subscription. */
113
134
  async function create(context, location, guestSubscriptionId, resource, options = { requestOptions: {} }) {
114
- const result = await _createSend(context, location, guestSubscriptionId, resource, options);
115
- return _createDeserialize(result);
135
+ const result = await _createSend(context, location, guestSubscriptionId, resource, options);
136
+ return _createDeserialize(result);
116
137
  }
117
138
  function _getSend(context, location, guestSubscriptionId, options = { requestOptions: {} }) {
118
- const path = (0, urlTemplate_js_1.expandUrlTemplate)("/subscriptions/{subscriptionId}/providers/Microsoft.ComputeLimit/locations/{location}/guestSubscriptions/{guestSubscriptionId}{?api%2Dversion}", {
119
- subscriptionId: context.subscriptionId,
120
- location: location,
121
- guestSubscriptionId: guestSubscriptionId,
122
- "api%2Dversion": context.apiVersion,
123
- }, {
124
- allowReserved: options?.requestOptions?.skipUrlEncoding,
125
- });
126
- return context.path(path).get({
127
- ...(0, core_client_1.operationOptionsToRequestParameters)(options),
128
- headers: {
129
- accept: "application/json",
130
- ...options.requestOptions?.headers,
131
- },
132
- });
139
+ const path = (0, import_urlTemplate.expandUrlTemplate)(
140
+ "/subscriptions/{subscriptionId}/providers/Microsoft.ComputeLimit/locations/{location}/guestSubscriptions/{guestSubscriptionId}{?api%2Dversion}",
141
+ {
142
+ subscriptionId: context.subscriptionId,
143
+ location,
144
+ guestSubscriptionId,
145
+ "api%2Dversion": context.apiVersion ?? "2026-03-20"
146
+ },
147
+ {
148
+ allowReserved: options?.requestOptions?.skipUrlEncoding
149
+ }
150
+ );
151
+ return context.path(path).get({
152
+ ...(0, import_core_client.operationOptionsToRequestParameters)(options),
153
+ headers: { accept: "application/json", ...options.requestOptions?.headers }
154
+ });
133
155
  }
134
156
  async function _getDeserialize(result) {
135
- const expectedStatuses = ["200"];
136
- if (!expectedStatuses.includes(result.status)) {
137
- const error = (0, core_client_1.createRestError)(result);
138
- error.details = (0, models_js_1.errorResponseDeserializer)(result.body);
139
- throw error;
140
- }
141
- return (0, models_js_1.guestSubscriptionDeserializer)(result.body);
157
+ const expectedStatuses = ["200"];
158
+ if (!expectedStatuses.includes(result.status)) {
159
+ const error = (0, import_core_client.createRestError)(result);
160
+ error.details = (0, import_models.errorResponseDeserializer)(result.body);
161
+ throw error;
162
+ }
163
+ return (0, import_models.guestSubscriptionDeserializer)(result.body);
142
164
  }
143
- /** Gets the properties of a guest subscription. */
144
165
  async function get(context, location, guestSubscriptionId, options = { requestOptions: {} }) {
145
- const result = await _getSend(context, location, guestSubscriptionId, options);
146
- return _getDeserialize(result);
166
+ const result = await _getSend(context, location, guestSubscriptionId, options);
167
+ return _getDeserialize(result);
147
168
  }
148
- //# sourceMappingURL=operations.js.map
169
+ // Annotate the CommonJS export names for ESM import in node:
170
+ 0 && (module.exports = {
171
+ $delete,
172
+ _$deleteDeserialize,
173
+ _$deleteSend,
174
+ _createDeserialize,
175
+ _createSend,
176
+ _getDeserialize,
177
+ _getSend,
178
+ _listBySubscriptionLocationResourceDeserialize,
179
+ _listBySubscriptionLocationResourceSend,
180
+ create,
181
+ get,
182
+ listBySubscriptionLocationResource
183
+ });
184
+ //# sourceMappingURL=operations.js.map
@@ -1 +1,7 @@
1
- {"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../../src/api/guestSubscriptions/operations.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAsBlC,0FAyBC;AAED,wGAWC;AAGD,gFAcC;AAED,oCAmBC;AAED,kDASC;AAQD,0BAQC;AAED,kCA4BC;AAED,gDAWC;AAGD,wBASC;AAED,4BAyBC;AAED,0CASC;AAGD,kBAQC;AAjOD,sDAKgC;AAEhC,4EAAgF;AAChF,wEAAwE;AAQxE,yDAA+F;AAE/F,SAAgB,uCAAuC,CACrD,OAAe,EACf,QAAgB,EAChB,UAA8E;IAC5E,cAAc,EAAE,EAAE;CACnB;IAED,MAAM,IAAI,GAAG,IAAA,kCAAiB,EAC5B,0HAA0H,EAC1H;QACE,cAAc,EAAE,OAAO,CAAC,cAAc;QACtC,QAAQ,EAA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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,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\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 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\" },\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,\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 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,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).put({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\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 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,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\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 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
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../src/api/guestSubscriptions/operations.ts"],
4
+ "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"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAKA,oBAKO;AAEP,2BAAwC;AACxC,yBAAkC;AAQlC,yBAAqE;AAE9D,SAAS,w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UAAkD,EAAE,gBAAgB,CAAC,EAAE,GAC3C;AAC5B,QAAM,SAAS,MAAM,YAAY,SAAS,UAAU,qBAAqB,UAAU,OAAO;AAC1F,SAAO,mBAAmB,MAAM;AAClC;AAEO,SAAS,SACd,SACA,UACA,qBACA,UAA+C,EAAE,gBAAgB,CAAC,EAAE,GAClD;AAClB,QAAM,WAAO;AAAA,IACX;AAAA,IACA;AAAA,MACE,gBAAgB,QAAQ;AAAA,MACxB;AAAA,MACA;AAAA,MACA,iBAAiB,QAAQ,cAAc;AAAA,IACzC;AAAA,IACA;AAAA,MACE,eAAe,SAAS,gBAAgB;AAAA,IAC1C;AAAA,EACF;AACA,SAAO,QAAQ,KAAK,IAAI,EAAE,IAAI;AAAA,IAC5B,OAAG,wDAAoC,OAAO;AAAA,IAC9C,SAAS,EAAE,QAAQ,oBAAoB,GAAG,QAAQ,gBAAgB,QAAQ;AAAA,EAC5E,CAAC;AACH;AAEA,eAAsB,gBAAgB,QAA2D;AAC/F,QAAM,mBAAmB,CAAC,KAAK;AAC/B,MAAI,CAAC,iBAAiB,SAAS,OAAO,MAAM,GAAG;AAC7C,UAAM,YAAQ,oCAAgB,MAAM;AACpC,UAAM,cAAU,yCAA0B,OAAO,IAAI;AAErD,UAAM;AAAA,EACR;AAEA,aAAO,6CAA8B,OAAO,IAAI;AAClD;AAGA,eAAsB,IACpB,SACA,UACA,qBACA,UAA+C,EAAE,gBAAgB,CAAC,EAAE,GACxC;AAC5B,QAAM,SAAS,MAAM,SAAS,SAAS,UAAU,qBAAqB,OAAO;AAC7E,SAAO,gBAAgB,MAAM;AAC/B;",
6
+ "names": []
7
+ }
@@ -1,5 +1,16 @@
1
- "use strict";
2
- // Copyright (c) Microsoft Corporation.
3
- // Licensed under the MIT License.
4
- Object.defineProperty(exports, "__esModule", { value: true });
5
- //# sourceMappingURL=options.js.map
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __copyProps = (to, from, except, desc) => {
6
+ if (from && typeof from === "object" || typeof from === "function") {
7
+ for (let key of __getOwnPropNames(from))
8
+ if (!__hasOwnProp.call(to, key) && key !== except)
9
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
10
+ }
11
+ return to;
12
+ };
13
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
14
+ var options_exports = {};
15
+ module.exports = __toCommonJS(options_exports);
16
+ //# sourceMappingURL=options.js.map
@@ -1 +1,7 @@
1
- {"version":3,"file":"options.js","sourceRoot":"","sources":["../../../../src/api/guestSubscriptions/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 GuestSubscriptionsListBySubscriptionLocationResourceOptionalParams\n extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface GuestSubscriptionsDeleteOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface GuestSubscriptionsCreateOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface GuestSubscriptionsGetOptionalParams extends OperationOptions {}\n"]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../src/api/guestSubscriptions/options.ts"],
4
+ "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 GuestSubscriptionsListBySubscriptionLocationResourceOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface GuestSubscriptionsDeleteOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface GuestSubscriptionsCreateOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface GuestSubscriptionsGetOptionalParams extends OperationOptions {}\n"],
5
+ "mappings": ";;;;;;;;;;;;;AAAA;AAAA;",
6
+ "names": []
7
+ }
@@ -1,2 +1,3 @@
1
- export { createComputeLimit, ComputeLimitContext, ComputeLimitClientOptionalParams, } from "./computeLimitContext.js";
1
+ export type { ComputeLimitContext, ComputeLimitClientOptionalParams, } from "./computeLimitContext.js";
2
+ export { createComputeLimit } from "./computeLimitContext.js";
2
3
  //# sourceMappingURL=index.d.ts.map
@@ -1,8 +1,28 @@
1
- "use strict";
2
- // Copyright (c) Microsoft Corporation.
3
- // Licensed under the MIT License.
4
- Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.createComputeLimit = void 0;
6
- var computeLimitContext_js_1 = require("./computeLimitContext.js");
7
- Object.defineProperty(exports, "createComputeLimit", { enumerable: true, get: function () { return computeLimitContext_js_1.createComputeLimit; } });
8
- //# sourceMappingURL=index.js.map
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+ var api_exports = {};
19
+ __export(api_exports, {
20
+ createComputeLimit: () => import_computeLimitContext.createComputeLimit
21
+ });
22
+ module.exports = __toCommonJS(api_exports);
23
+ var import_computeLimitContext = require("./computeLimitContext.js");
24
+ // Annotate the CommonJS export names for ESM import in node:
25
+ 0 && (module.exports = {
26
+ createComputeLimit
27
+ });
28
+ //# sourceMappingURL=index.js.map
@@ -1 +1,7 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/api/index.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAElC,mEAIkC;AAHhC,4HAAA,kBAAkB,OAAA","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport {\n createComputeLimit,\n ComputeLimitContext,\n ComputeLimitClientOptionalParams,\n} from \"./computeLimitContext.js\";\n"]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/api/index.ts"],
4
+ "sourcesContent": ["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport type {\n ComputeLimitContext,\n ComputeLimitClientOptionalParams,\n} from \"./computeLimitContext.js\";\nexport { createComputeLimit } from \"./computeLimitContext.js\";\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAOA,iCAAmC;",
6
+ "names": []
7
+ }
@@ -1,3 +1,3 @@
1
1
  export { list } from "./operations.js";
2
- export { OperationsListOptionalParams } from "./options.js";
2
+ export type { OperationsListOptionalParams } from "./options.js";
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1,8 +1,28 @@
1
- "use strict";
2
- // Copyright (c) Microsoft Corporation.
3
- // Licensed under the MIT License.
4
- Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.list = void 0;
6
- var operations_js_1 = require("./operations.js");
7
- Object.defineProperty(exports, "list", { enumerable: true, get: function () { return operations_js_1.list; } });
8
- //# sourceMappingURL=index.js.map
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+ var operations_exports = {};
19
+ __export(operations_exports, {
20
+ list: () => import_operations.list
21
+ });
22
+ module.exports = __toCommonJS(operations_exports);
23
+ var import_operations = require("./operations.js");
24
+ // Annotate the CommonJS export names for ESM import in node:
25
+ 0 && (module.exports = {
26
+ list
27
+ });
28
+ //# sourceMappingURL=index.js.map
@@ -1 +1,7 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/operations/index.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAElC,iDAAuC;AAA9B,qGAAA,IAAI,OAAA","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport { list } from \"./operations.js\";\nexport { OperationsListOptionalParams } from \"./options.js\";\n"]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../src/api/operations/index.ts"],
4
+ "sourcesContent": ["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport { list } from \"./operations.js\";\nexport type { OperationsListOptionalParams } from \"./options.js\";\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,wBAAqB;",
6
+ "names": []
7
+ }
@@ -1,39 +1,68 @@
1
- "use strict";
2
- // Copyright (c) Microsoft Corporation.
3
- // Licensed under the MIT License.
4
- Object.defineProperty(exports, "__esModule", { value: true });
5
- exports._listSend = _listSend;
6
- exports._listDeserialize = _listDeserialize;
7
- exports.list = list;
8
- const models_js_1 = require("../../models/models.js");
9
- const pagingHelpers_js_1 = require("../../static-helpers/pagingHelpers.js");
10
- const urlTemplate_js_1 = require("../../static-helpers/urlTemplate.js");
11
- const core_client_1 = require("@azure-rest/core-client");
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+ var operations_exports = {};
19
+ __export(operations_exports, {
20
+ _listDeserialize: () => _listDeserialize,
21
+ _listSend: () => _listSend,
22
+ list: () => list
23
+ });
24
+ module.exports = __toCommonJS(operations_exports);
25
+ var import_models = require("../../models/models.js");
26
+ var import_pagingHelpers = require("../../static-helpers/pagingHelpers.js");
27
+ var import_urlTemplate = require("../../static-helpers/urlTemplate.js");
28
+ var import_core_client = require("@azure-rest/core-client");
12
29
  function _listSend(context, options = { requestOptions: {} }) {
13
- const path = (0, urlTemplate_js_1.expandUrlTemplate)("/providers/Microsoft.ComputeLimit/operations{?api%2Dversion}", {
14
- "api%2Dversion": context.apiVersion,
15
- }, {
16
- allowReserved: options?.requestOptions?.skipUrlEncoding,
17
- });
18
- return context.path(path).get({
19
- ...(0, core_client_1.operationOptionsToRequestParameters)(options),
20
- headers: {
21
- accept: "application/json",
22
- ...options.requestOptions?.headers,
23
- },
24
- });
30
+ const path = (0, import_urlTemplate.expandUrlTemplate)(
31
+ "/providers/Microsoft.ComputeLimit/operations{?api%2Dversion}",
32
+ {
33
+ "api%2Dversion": context.apiVersion ?? "2026-03-20"
34
+ },
35
+ {
36
+ allowReserved: options?.requestOptions?.skipUrlEncoding
37
+ }
38
+ );
39
+ return context.path(path).get({
40
+ ...(0, import_core_client.operationOptionsToRequestParameters)(options),
41
+ headers: { accept: "application/json", ...options.requestOptions?.headers }
42
+ });
25
43
  }
26
44
  async function _listDeserialize(result) {
27
- const expectedStatuses = ["200"];
28
- if (!expectedStatuses.includes(result.status)) {
29
- const error = (0, core_client_1.createRestError)(result);
30
- error.details = (0, models_js_1.errorResponseDeserializer)(result.body);
31
- throw error;
32
- }
33
- return (0, models_js_1._operationListResultDeserializer)(result.body);
45
+ const expectedStatuses = ["200"];
46
+ if (!expectedStatuses.includes(result.status)) {
47
+ const error = (0, import_core_client.createRestError)(result);
48
+ error.details = (0, import_models.errorResponseDeserializer)(result.body);
49
+ throw error;
50
+ }
51
+ return (0, import_models._operationListResultDeserializer)(result.body);
34
52
  }
35
- /** List the operations for the provider */
36
53
  function list(context, options = { requestOptions: {} }) {
37
- return (0, pagingHelpers_js_1.buildPagedAsyncIterator)(context, () => _listSend(context, options), _listDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink" });
54
+ return (0, import_pagingHelpers.buildPagedAsyncIterator)(
55
+ context,
56
+ () => _listSend(context, options),
57
+ _listDeserialize,
58
+ ["200"],
59
+ { itemName: "value", nextLinkName: "nextLink", apiVersion: context.apiVersion ?? "2026-03-20" }
60
+ );
38
61
  }
39
- //# sourceMappingURL=operations.js.map
62
+ // Annotate the CommonJS export names for ESM import in node:
63
+ 0 && (module.exports = {
64
+ _listDeserialize,
65
+ _listSend,
66
+ list
67
+ });
68
+ //# sourceMappingURL=operations.js.map