@azure/arm-hybridcompute 5.0.0-beta.2 → 5.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/extensionMetadata/operations.js +3 -7
  3. package/dist/browser/api/extensionMetadata/operations.js.map +1 -1
  4. package/dist/browser/api/extensionMetadata/options.js.map +1 -1
  5. package/dist/browser/api/extensionMetadataV2/operations.js +3 -7
  6. package/dist/browser/api/extensionMetadataV2/operations.js.map +1 -1
  7. package/dist/browser/api/extensionMetadataV2/options.js.map +1 -1
  8. package/dist/browser/api/extensionPublisher/operations.js +2 -6
  9. package/dist/browser/api/extensionPublisher/operations.js.map +1 -1
  10. package/dist/browser/api/extensionType/operations.js +2 -6
  11. package/dist/browser/api/extensionType/operations.js.map +1 -1
  12. package/dist/browser/api/gateways/operations.js +10 -18
  13. package/dist/browser/api/gateways/operations.js.map +1 -1
  14. package/dist/browser/api/gateways/options.js.map +1 -1
  15. package/dist/browser/api/hybridComputeManagementContext.d.ts +2 -2
  16. package/dist/browser/api/hybridComputeManagementContext.js +4 -4
  17. package/dist/browser/api/hybridComputeManagementContext.js.map +1 -1
  18. package/dist/browser/api/licenseProfiles/operations.js +9 -13
  19. package/dist/browser/api/licenseProfiles/operations.js.map +1 -1
  20. package/dist/browser/api/licenseProfiles/options.js.map +1 -1
  21. package/dist/browser/api/licenses/operations.js +13 -21
  22. package/dist/browser/api/licenses/operations.js.map +1 -1
  23. package/dist/browser/api/licenses/options.js.map +1 -1
  24. package/dist/browser/api/machineExtensions/operations.js +9 -13
  25. package/dist/browser/api/machineExtensions/operations.js.map +1 -1
  26. package/dist/browser/api/machineExtensions/options.js.map +1 -1
  27. package/dist/browser/api/machineRunCommands/operations.js +7 -11
  28. package/dist/browser/api/machineRunCommands/operations.js.map +1 -1
  29. package/dist/browser/api/machineRunCommands/options.js.map +1 -1
  30. package/dist/browser/api/machines/operations.js +13 -21
  31. package/dist/browser/api/machines/operations.js.map +1 -1
  32. package/dist/browser/api/machines/options.js.map +1 -1
  33. package/dist/browser/api/networkProfileOperations/operations.js +1 -1
  34. package/dist/browser/api/networkProfileOperations/operations.js.map +1 -1
  35. package/dist/browser/api/networkSecurityPerimeterConfigurations/operations.js +5 -9
  36. package/dist/browser/api/networkSecurityPerimeterConfigurations/operations.js.map +1 -1
  37. package/dist/browser/api/networkSecurityPerimeterConfigurations/options.js.map +1 -1
  38. package/dist/browser/api/operations/operations.js +2 -6
  39. package/dist/browser/api/operations/operations.js.map +1 -1
  40. package/dist/browser/api/operations.js +4 -4
  41. package/dist/browser/api/operations.js.map +1 -1
  42. package/dist/browser/api/options.js.map +1 -1
  43. package/dist/browser/api/privateEndpointConnections/operations.js +7 -11
  44. package/dist/browser/api/privateEndpointConnections/operations.js.map +1 -1
  45. package/dist/browser/api/privateEndpointConnections/options.js.map +1 -1
  46. package/dist/browser/api/privateLinkResources/operations.js +3 -7
  47. package/dist/browser/api/privateLinkResources/operations.js.map +1 -1
  48. package/dist/browser/api/privateLinkResources/options.js.map +1 -1
  49. package/dist/browser/api/privateLinkScopes/operations.js +11 -19
  50. package/dist/browser/api/privateLinkScopes/operations.js.map +1 -1
  51. package/dist/browser/api/privateLinkScopes/options.js.map +1 -1
  52. package/dist/browser/api/settings/operations.js +3 -3
  53. package/dist/browser/api/settings/operations.js.map +1 -1
  54. package/dist/browser/api/settings/options.js.map +1 -1
  55. package/dist/browser/classic/extensionMetadata/index.js.map +1 -1
  56. package/dist/browser/classic/extensionMetadataV2/index.js.map +1 -1
  57. package/dist/browser/classic/extensionPublisher/index.js.map +1 -1
  58. package/dist/browser/classic/extensionType/index.js.map +1 -1
  59. package/dist/browser/classic/gateways/index.js.map +1 -1
  60. package/dist/browser/classic/licenseProfiles/index.js.map +1 -1
  61. package/dist/browser/classic/licenses/index.js.map +1 -1
  62. package/dist/browser/classic/machineExtensions/index.js.map +1 -1
  63. package/dist/browser/classic/machineRunCommands/index.js.map +1 -1
  64. package/dist/browser/classic/machines/index.js.map +1 -1
  65. package/dist/browser/classic/networkProfileOperations/index.js.map +1 -1
  66. package/dist/browser/classic/networkSecurityPerimeterConfigurations/index.js.map +1 -1
  67. package/dist/browser/classic/operations/index.js.map +1 -1
  68. package/dist/browser/classic/privateEndpointConnections/index.js.map +1 -1
  69. package/dist/browser/classic/privateLinkResources/index.js.map +1 -1
  70. package/dist/browser/classic/privateLinkScopes/index.js.map +1 -1
  71. package/dist/browser/classic/settings/index.js.map +1 -1
  72. package/dist/browser/hybridComputeManagementClient.js +2 -9
  73. package/dist/browser/hybridComputeManagementClient.js.map +1 -1
  74. package/dist/browser/index.d.ts +2 -2
  75. package/dist/browser/index.js +1 -1
  76. package/dist/browser/index.js.map +1 -1
  77. package/dist/browser/models/index.d.ts +2 -2
  78. package/dist/browser/models/index.js +1 -1
  79. package/dist/browser/models/index.js.map +1 -1
  80. package/dist/browser/models/models.d.ts +78 -21
  81. package/dist/browser/models/models.js +89 -10
  82. package/dist/browser/models/models.js.map +1 -1
  83. package/dist/browser/restorePollerHelpers.js.map +1 -1
  84. package/dist/commonjs/api/extensionMetadata/operations.js +3 -7
  85. package/dist/commonjs/api/extensionMetadata/operations.js.map +2 -2
  86. package/dist/commonjs/api/extensionMetadata/options.js.map +1 -1
  87. package/dist/commonjs/api/extensionMetadataV2/operations.js +3 -7
  88. package/dist/commonjs/api/extensionMetadataV2/operations.js.map +2 -2
  89. package/dist/commonjs/api/extensionMetadataV2/options.js.map +1 -1
  90. package/dist/commonjs/api/extensionPublisher/operations.js +2 -6
  91. package/dist/commonjs/api/extensionPublisher/operations.js.map +2 -2
  92. package/dist/commonjs/api/extensionType/operations.js +2 -6
  93. package/dist/commonjs/api/extensionType/operations.js.map +2 -2
  94. package/dist/commonjs/api/gateways/operations.js +10 -18
  95. package/dist/commonjs/api/gateways/operations.js.map +2 -2
  96. package/dist/commonjs/api/gateways/options.js.map +1 -1
  97. package/dist/commonjs/api/hybridComputeManagementContext.d.ts +2 -2
  98. package/dist/commonjs/api/hybridComputeManagementContext.js +2 -2
  99. package/dist/commonjs/api/hybridComputeManagementContext.js.map +2 -2
  100. package/dist/commonjs/api/licenseProfiles/operations.js +9 -13
  101. package/dist/commonjs/api/licenseProfiles/operations.js.map +2 -2
  102. package/dist/commonjs/api/licenseProfiles/options.js.map +1 -1
  103. package/dist/commonjs/api/licenses/operations.js +13 -21
  104. package/dist/commonjs/api/licenses/operations.js.map +2 -2
  105. package/dist/commonjs/api/licenses/options.js.map +1 -1
  106. package/dist/commonjs/api/machineExtensions/operations.js +9 -13
  107. package/dist/commonjs/api/machineExtensions/operations.js.map +2 -2
  108. package/dist/commonjs/api/machineExtensions/options.js.map +1 -1
  109. package/dist/commonjs/api/machineRunCommands/operations.js +7 -11
  110. package/dist/commonjs/api/machineRunCommands/operations.js.map +2 -2
  111. package/dist/commonjs/api/machineRunCommands/options.js.map +1 -1
  112. package/dist/commonjs/api/machines/operations.js +13 -21
  113. package/dist/commonjs/api/machines/operations.js.map +2 -2
  114. package/dist/commonjs/api/machines/options.js.map +1 -1
  115. package/dist/commonjs/api/networkProfileOperations/operations.js +1 -1
  116. package/dist/commonjs/api/networkProfileOperations/operations.js.map +2 -2
  117. package/dist/commonjs/api/networkSecurityPerimeterConfigurations/operations.js +5 -9
  118. package/dist/commonjs/api/networkSecurityPerimeterConfigurations/operations.js.map +2 -2
  119. package/dist/commonjs/api/networkSecurityPerimeterConfigurations/options.js.map +1 -1
  120. package/dist/commonjs/api/operations/operations.js +2 -6
  121. package/dist/commonjs/api/operations/operations.js.map +2 -2
  122. package/dist/commonjs/api/operations.js +4 -4
  123. package/dist/commonjs/api/operations.js.map +2 -2
  124. package/dist/commonjs/api/options.js.map +1 -1
  125. package/dist/commonjs/api/privateEndpointConnections/operations.js +7 -11
  126. package/dist/commonjs/api/privateEndpointConnections/operations.js.map +2 -2
  127. package/dist/commonjs/api/privateEndpointConnections/options.js.map +1 -1
  128. package/dist/commonjs/api/privateLinkResources/operations.js +3 -7
  129. package/dist/commonjs/api/privateLinkResources/operations.js.map +2 -2
  130. package/dist/commonjs/api/privateLinkResources/options.js.map +1 -1
  131. package/dist/commonjs/api/privateLinkScopes/operations.js +11 -19
  132. package/dist/commonjs/api/privateLinkScopes/operations.js.map +2 -2
  133. package/dist/commonjs/api/privateLinkScopes/options.js.map +1 -1
  134. package/dist/commonjs/api/settings/operations.js +3 -3
  135. package/dist/commonjs/api/settings/operations.js.map +2 -2
  136. package/dist/commonjs/api/settings/options.js.map +1 -1
  137. package/dist/commonjs/classic/extensionMetadata/index.js.map +2 -2
  138. package/dist/commonjs/classic/extensionMetadataV2/index.js.map +2 -2
  139. package/dist/commonjs/classic/extensionPublisher/index.js.map +2 -2
  140. package/dist/commonjs/classic/extensionType/index.js.map +2 -2
  141. package/dist/commonjs/classic/gateways/index.js.map +2 -2
  142. package/dist/commonjs/classic/licenseProfiles/index.js.map +2 -2
  143. package/dist/commonjs/classic/licenses/index.js.map +2 -2
  144. package/dist/commonjs/classic/machineExtensions/index.js.map +2 -2
  145. package/dist/commonjs/classic/machineRunCommands/index.js.map +2 -2
  146. package/dist/commonjs/classic/machines/index.js.map +2 -2
  147. package/dist/commonjs/classic/networkProfileOperations/index.js.map +2 -2
  148. package/dist/commonjs/classic/networkSecurityPerimeterConfigurations/index.js.map +2 -2
  149. package/dist/commonjs/classic/operations/index.js.map +2 -2
  150. package/dist/commonjs/classic/privateEndpointConnections/index.js.map +2 -2
  151. package/dist/commonjs/classic/privateLinkResources/index.js.map +2 -2
  152. package/dist/commonjs/classic/privateLinkScopes/index.js.map +2 -2
  153. package/dist/commonjs/classic/settings/index.js.map +2 -2
  154. package/dist/commonjs/hybridComputeManagementClient.js +2 -7
  155. package/dist/commonjs/hybridComputeManagementClient.js.map +2 -2
  156. package/dist/commonjs/index.d.ts +2 -2
  157. package/dist/commonjs/index.js +4 -0
  158. package/dist/commonjs/index.js.map +2 -2
  159. package/dist/commonjs/models/index.d.ts +2 -2
  160. package/dist/commonjs/models/index.js +4 -0
  161. package/dist/commonjs/models/index.js.map +2 -2
  162. package/dist/commonjs/models/models.d.ts +78 -21
  163. package/dist/commonjs/models/models.js +69 -14
  164. package/dist/commonjs/models/models.js.map +3 -3
  165. package/dist/commonjs/restorePollerHelpers.js.map +2 -2
  166. package/dist/commonjs/tsdoc-metadata.json +1 -1
  167. package/dist/esm/api/extensionMetadata/operations.js +3 -7
  168. package/dist/esm/api/extensionMetadata/operations.js.map +1 -1
  169. package/dist/esm/api/extensionMetadata/options.js.map +1 -1
  170. package/dist/esm/api/extensionMetadataV2/operations.js +3 -7
  171. package/dist/esm/api/extensionMetadataV2/operations.js.map +1 -1
  172. package/dist/esm/api/extensionMetadataV2/options.js.map +1 -1
  173. package/dist/esm/api/extensionPublisher/operations.js +2 -6
  174. package/dist/esm/api/extensionPublisher/operations.js.map +1 -1
  175. package/dist/esm/api/extensionType/operations.js +2 -6
  176. package/dist/esm/api/extensionType/operations.js.map +1 -1
  177. package/dist/esm/api/gateways/operations.js +10 -18
  178. package/dist/esm/api/gateways/operations.js.map +1 -1
  179. package/dist/esm/api/gateways/options.js.map +1 -1
  180. package/dist/esm/api/hybridComputeManagementContext.d.ts +2 -2
  181. package/dist/esm/api/hybridComputeManagementContext.js +4 -4
  182. package/dist/esm/api/hybridComputeManagementContext.js.map +1 -1
  183. package/dist/esm/api/licenseProfiles/operations.js +9 -13
  184. package/dist/esm/api/licenseProfiles/operations.js.map +1 -1
  185. package/dist/esm/api/licenseProfiles/options.js.map +1 -1
  186. package/dist/esm/api/licenses/operations.js +13 -21
  187. package/dist/esm/api/licenses/operations.js.map +1 -1
  188. package/dist/esm/api/licenses/options.js.map +1 -1
  189. package/dist/esm/api/machineExtensions/operations.js +9 -13
  190. package/dist/esm/api/machineExtensions/operations.js.map +1 -1
  191. package/dist/esm/api/machineExtensions/options.js.map +1 -1
  192. package/dist/esm/api/machineRunCommands/operations.js +7 -11
  193. package/dist/esm/api/machineRunCommands/operations.js.map +1 -1
  194. package/dist/esm/api/machineRunCommands/options.js.map +1 -1
  195. package/dist/esm/api/machines/operations.js +13 -21
  196. package/dist/esm/api/machines/operations.js.map +1 -1
  197. package/dist/esm/api/machines/options.js.map +1 -1
  198. package/dist/esm/api/networkProfileOperations/operations.js +1 -1
  199. package/dist/esm/api/networkProfileOperations/operations.js.map +1 -1
  200. package/dist/esm/api/networkSecurityPerimeterConfigurations/operations.js +5 -9
  201. package/dist/esm/api/networkSecurityPerimeterConfigurations/operations.js.map +1 -1
  202. package/dist/esm/api/networkSecurityPerimeterConfigurations/options.js.map +1 -1
  203. package/dist/esm/api/operations/operations.js +2 -6
  204. package/dist/esm/api/operations/operations.js.map +1 -1
  205. package/dist/esm/api/operations.js +4 -4
  206. package/dist/esm/api/operations.js.map +1 -1
  207. package/dist/esm/api/options.js.map +1 -1
  208. package/dist/esm/api/privateEndpointConnections/operations.js +7 -11
  209. package/dist/esm/api/privateEndpointConnections/operations.js.map +1 -1
  210. package/dist/esm/api/privateEndpointConnections/options.js.map +1 -1
  211. package/dist/esm/api/privateLinkResources/operations.js +3 -7
  212. package/dist/esm/api/privateLinkResources/operations.js.map +1 -1
  213. package/dist/esm/api/privateLinkResources/options.js.map +1 -1
  214. package/dist/esm/api/privateLinkScopes/operations.js +11 -19
  215. package/dist/esm/api/privateLinkScopes/operations.js.map +1 -1
  216. package/dist/esm/api/privateLinkScopes/options.js.map +1 -1
  217. package/dist/esm/api/settings/operations.js +3 -3
  218. package/dist/esm/api/settings/operations.js.map +1 -1
  219. package/dist/esm/api/settings/options.js.map +1 -1
  220. package/dist/esm/classic/extensionMetadata/index.js.map +1 -1
  221. package/dist/esm/classic/extensionMetadataV2/index.js.map +1 -1
  222. package/dist/esm/classic/extensionPublisher/index.js.map +1 -1
  223. package/dist/esm/classic/extensionType/index.js.map +1 -1
  224. package/dist/esm/classic/gateways/index.js.map +1 -1
  225. package/dist/esm/classic/licenseProfiles/index.js.map +1 -1
  226. package/dist/esm/classic/licenses/index.js.map +1 -1
  227. package/dist/esm/classic/machineExtensions/index.js.map +1 -1
  228. package/dist/esm/classic/machineRunCommands/index.js.map +1 -1
  229. package/dist/esm/classic/machines/index.js.map +1 -1
  230. package/dist/esm/classic/networkProfileOperations/index.js.map +1 -1
  231. package/dist/esm/classic/networkSecurityPerimeterConfigurations/index.js.map +1 -1
  232. package/dist/esm/classic/operations/index.js.map +1 -1
  233. package/dist/esm/classic/privateEndpointConnections/index.js.map +1 -1
  234. package/dist/esm/classic/privateLinkResources/index.js.map +1 -1
  235. package/dist/esm/classic/privateLinkScopes/index.js.map +1 -1
  236. package/dist/esm/classic/settings/index.js.map +1 -1
  237. package/dist/esm/hybridComputeManagementClient.js +2 -9
  238. package/dist/esm/hybridComputeManagementClient.js.map +1 -1
  239. package/dist/esm/index.d.ts +2 -2
  240. package/dist/esm/index.js +1 -1
  241. package/dist/esm/index.js.map +1 -1
  242. package/dist/esm/models/index.d.ts +2 -2
  243. package/dist/esm/models/index.js +1 -1
  244. package/dist/esm/models/index.js.map +1 -1
  245. package/dist/esm/models/models.d.ts +78 -21
  246. package/dist/esm/models/models.js +89 -10
  247. package/dist/esm/models/models.js.map +1 -1
  248. package/dist/esm/restorePollerHelpers.js.map +1 -1
  249. package/package.json +9 -9
@@ -26,8 +26,8 @@ var import_core_client = require("@azure-rest/core-client");
26
26
  function createHybridComputeManagement(credential, subscriptionId, options = {}) {
27
27
  const endpointUrl = options.endpoint ?? (0, import_cloudSettingHelpers.getArmEndpoint)(options.cloudSetting) ?? "https://management.azure.com";
28
28
  const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix;
29
- const userAgentInfo = `azsdk-js-arm-hybridcompute/5.0.0-beta.2`;
30
- const userAgentPrefix = prefixFromOptions ? `${prefixFromOptions} azsdk-js-api ${userAgentInfo}` : `azsdk-js-api ${userAgentInfo}`;
29
+ const userAgentInfo = `azsdk-js-arm-hybridcompute/5.0.0`;
30
+ const userAgentPrefix = prefixFromOptions ? `${prefixFromOptions} ${userAgentInfo}` : `${userAgentInfo}`;
31
31
  const { apiVersion: _, ...updatedOptions } = {
32
32
  ...options,
33
33
  userAgentOptions: { userAgentPrefix },
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/api/hybridComputeManagementContext.ts"],
4
- "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/** Azure Arc( Servers and K8s Clusters) API reference for Private Link's Scopes management. */\nexport interface HybridComputeManagementContext 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 HybridComputeManagementClientOptionalParams 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/** Azure Arc( Servers and K8s Clusters) API reference for Private Link's Scopes management. */\nexport function createHybridComputeManagement(\n credential: TokenCredential,\n subscriptionId: string,\n options: HybridComputeManagementClientOptionalParams = {},\n): HybridComputeManagementContext {\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-hybridcompute/5.0.0-beta.2`;\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 HybridComputeManagementContext;\n}\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,oBAAuB;AAGvB,iCAA+B;AAE/B,yBAA0B;AAsBnB,SAAS,8BACd,YACA,gBACA,UAAuD,CAAC,GACxB;AAChC,QAAM,cACJ,QAAQ,gBAAY,2CAAe,QAAQ,YAAY,KAAK;AAC9D,QAAM,oBAAoB,SAAS,kBAAkB;AACrD,QAAM,gBAAgB;AACtB,QAAM,kBAAkB,oBACpB,GAAG,iBAAiB,iBAAiB,aAAa,KAClD,gBAAgB,aAAa;AACjC,QAAM,EAAE,YAAY,GAAG,GAAG,eAAe,IAAI;AAAA,IAC3C,GAAG;AAAA,IACH,kBAAkB,EAAE,gBAAgB;AAAA,IACpC,gBAAgB,EAAE,QAAQ,QAAQ,gBAAgB,UAAU,qBAAO,KAAK;AAAA,IACxE,aAAa;AAAA,MACX,QAAQ,QAAQ,aAAa,UAAU,CAAC,uCAAuC;AAAA,IACjF;AAAA,EACF;AACA,QAAM,oBAAgB,8BAAU,aAAa,YAAY,cAAc;AACvE,QAAM,aAAa,QAAQ;AAC3B,SAAO,EAAE,GAAG,eAAe,YAAY,eAAe;AACxD;",
4
+ "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/** Azure Arc API reference for managing connected machines, machine extensions, run commands, gateways, licenses, license profiles, private link scopes, and related HybridCompute resources. */\nexport interface HybridComputeManagementContext 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 HybridComputeManagementClientOptionalParams 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/** Azure Arc API reference for managing connected machines, machine extensions, run commands, gateways, licenses, license profiles, private link scopes, and related HybridCompute resources. */\nexport function createHybridComputeManagement(\n credential: TokenCredential,\n subscriptionId: string,\n options: HybridComputeManagementClientOptionalParams = {},\n): HybridComputeManagementContext {\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-hybridcompute/5.0.0`;\n const userAgentPrefix = prefixFromOptions\n ? `${prefixFromOptions} ${userAgentInfo}`\n : `${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 HybridComputeManagementContext;\n}\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,oBAAuB;AAGvB,iCAA+B;AAE/B,yBAA0B;AAsBnB,SAAS,8BACd,YACA,gBACA,UAAuD,CAAC,GACxB;AAChC,QAAM,cACJ,QAAQ,gBAAY,2CAAe,QAAQ,YAAY,KAAK;AAC9D,QAAM,oBAAoB,SAAS,kBAAkB;AACrD,QAAM,gBAAgB;AACtB,QAAM,kBAAkB,oBACpB,GAAG,iBAAiB,IAAI,aAAa,KACrC,GAAG,aAAa;AACpB,QAAM,EAAE,YAAY,GAAG,GAAG,eAAe,IAAI;AAAA,IAC3C,GAAG;AAAA,IACH,kBAAkB,EAAE,gBAAgB;AAAA,IACpC,gBAAgB,EAAE,QAAQ,QAAQ,gBAAgB,UAAU,qBAAO,KAAK;AAAA,IACxE,aAAa;AAAA,MACX,QAAQ,QAAQ,aAAa,UAAU,CAAC,uCAAuC;AAAA,IACjF;AAAA,EACF;AACA,QAAM,oBAAgB,8BAAU,aAAa,YAAY,cAAc;AACvE,QAAM,aAAa,QAAQ;AAC3B,SAAO,EAAE,GAAG,eAAe,YAAY,eAAe;AACxD;",
6
6
  "names": []
7
7
  }
@@ -46,7 +46,7 @@ function _listSend(context, resourceGroupName, machineName, options = { requestO
46
46
  subscriptionId: context.subscriptionId,
47
47
  resourceGroupName,
48
48
  machineName,
49
- "api%2Dversion": context.apiVersion ?? "2025-09-16-preview"
49
+ "api%2Dversion": context.apiVersion ?? "2026-07-15"
50
50
  },
51
51
  {
52
52
  allowReserved: options?.requestOptions?.skipUrlEncoding
@@ -74,11 +74,7 @@ function list(context, resourceGroupName, machineName, options = { requestOption
74
74
  () => _listSend(context, resourceGroupName, machineName, options),
75
75
  _listDeserialize,
76
76
  ["200"],
77
- {
78
- itemName: "value",
79
- nextLinkName: "nextLink",
80
- apiVersion: context.apiVersion ?? "2025-09-16-preview"
81
- }
77
+ { itemName: "value", nextLinkName: "nextLink", apiVersion: context.apiVersion ?? "2026-07-15" }
82
78
  );
83
79
  }
84
80
  function _$deleteSend(context, resourceGroupName, machineName, options = { requestOptions: {} }) {
@@ -89,7 +85,7 @@ function _$deleteSend(context, resourceGroupName, machineName, options = { reque
89
85
  resourceGroupName,
90
86
  machineName,
91
87
  licenseProfileName: "default",
92
- "api%2Dversion": context.apiVersion ?? "2025-09-16-preview"
88
+ "api%2Dversion": context.apiVersion ?? "2026-07-15"
93
89
  },
94
90
  {
95
91
  allowReserved: options?.requestOptions?.skipUrlEncoding
@@ -114,7 +110,7 @@ function $delete(context, resourceGroupName, machineName, options = { requestOpt
114
110
  abortSignal: options?.abortSignal,
115
111
  getInitialResponse: () => _$deleteSend(context, resourceGroupName, machineName, options),
116
112
  resourceLocationConfig: "location",
117
- apiVersion: context.apiVersion ?? "2025-09-16-preview"
113
+ apiVersion: context.apiVersion ?? "2026-07-15"
118
114
  });
119
115
  }
120
116
  function _updateSend(context, resourceGroupName, machineName, parameters, options = { requestOptions: {} }) {
@@ -125,7 +121,7 @@ function _updateSend(context, resourceGroupName, machineName, parameters, option
125
121
  resourceGroupName,
126
122
  machineName,
127
123
  licenseProfileName: "default",
128
- "api%2Dversion": context.apiVersion ?? "2025-09-16-preview"
124
+ "api%2Dversion": context.apiVersion ?? "2026-07-15"
129
125
  },
130
126
  {
131
127
  allowReserved: options?.requestOptions?.skipUrlEncoding
@@ -155,7 +151,7 @@ function update(context, resourceGroupName, machineName, parameters, options = {
155
151
  abortSignal: options?.abortSignal,
156
152
  getInitialResponse: () => _updateSend(context, resourceGroupName, machineName, parameters, options),
157
153
  resourceLocationConfig: "location",
158
- apiVersion: context.apiVersion ?? "2025-09-16-preview"
154
+ apiVersion: context.apiVersion ?? "2026-07-15"
159
155
  });
160
156
  }
161
157
  function _createOrUpdateSend(context, resourceGroupName, machineName, parameters, options = { requestOptions: {} }) {
@@ -166,7 +162,7 @@ function _createOrUpdateSend(context, resourceGroupName, machineName, parameters
166
162
  resourceGroupName,
167
163
  machineName,
168
164
  licenseProfileName: "default",
169
- "api%2Dversion": context.apiVersion ?? "2025-09-16-preview"
165
+ "api%2Dversion": context.apiVersion ?? "2026-07-15"
170
166
  },
171
167
  {
172
168
  allowReserved: options?.requestOptions?.skipUrlEncoding
@@ -196,7 +192,7 @@ function createOrUpdate(context, resourceGroupName, machineName, parameters, opt
196
192
  abortSignal: options?.abortSignal,
197
193
  getInitialResponse: () => _createOrUpdateSend(context, resourceGroupName, machineName, parameters, options),
198
194
  resourceLocationConfig: "location",
199
- apiVersion: context.apiVersion ?? "2025-09-16-preview"
195
+ apiVersion: context.apiVersion ?? "2026-07-15"
200
196
  });
201
197
  }
202
198
  function _getSend(context, resourceGroupName, machineName, options = { requestOptions: {} }) {
@@ -207,7 +203,7 @@ function _getSend(context, resourceGroupName, machineName, options = { requestOp
207
203
  resourceGroupName,
208
204
  machineName,
209
205
  licenseProfileName: "default",
210
- "api%2Dversion": context.apiVersion ?? "2025-09-16-preview"
206
+ "api%2Dversion": context.apiVersion ?? "2026-07-15"
211
207
  },
212
208
  {
213
209
  allowReserved: options?.requestOptions?.skipUrlEncoding
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/api/licenseProfiles/operations.ts"],
4
- "sourcesContent": ["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { HybridComputeManagementContext as Client } from \"../index.js\";\nimport type {\n LicenseProfile,\n LicenseProfileUpdate,\n _LicenseProfilesListResult,\n} from \"../../models/models.js\";\nimport {\n errorResponseDeserializer,\n licenseProfileSerializer,\n licenseProfileDeserializer,\n licenseProfileUpdateSerializer,\n _licenseProfilesListResultDeserializer,\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 LicenseProfilesListOptionalParams,\n LicenseProfilesDeleteOptionalParams,\n LicenseProfilesUpdateOptionalParams,\n LicenseProfilesCreateOrUpdateOptionalParams,\n LicenseProfilesGetOptionalParams,\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 _listSend(\n context: Client,\n resourceGroupName: string,\n machineName: string,\n options: LicenseProfilesListOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/licenseProfiles{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n machineName: machineName,\n \"api%2Dversion\": context.apiVersion ?? \"2025-09-16-preview\",\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<_LicenseProfilesListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = errorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return _licenseProfilesListResultDeserializer(result.body);\n}\n\n/** The operation to get all license profiles of a non-Azure machine */\nexport function list(\n context: Client,\n resourceGroupName: string,\n machineName: string,\n options: LicenseProfilesListOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<LicenseProfile> {\n return buildPagedAsyncIterator(\n context,\n () => _listSend(context, resourceGroupName, machineName, options),\n _listDeserialize,\n [\"200\"],\n {\n itemName: \"value\",\n nextLinkName: \"nextLink\",\n apiVersion: context.apiVersion ?? \"2025-09-16-preview\",\n },\n );\n}\n\nexport function _$deleteSend(\n context: Client,\n resourceGroupName: string,\n machineName: string,\n options: LicenseProfilesDeleteOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/licenseProfiles/{licenseProfileName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n machineName: machineName,\n licenseProfileName: \"default\",\n \"api%2Dversion\": context.apiVersion ?? \"2025-09-16-preview\",\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 = [\"202\", \"204\", \"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = errorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return;\n}\n\n/** The operation to delete a license profile. */\nexport function $delete(\n context: Client,\n resourceGroupName: string,\n machineName: string,\n options: LicenseProfilesDeleteOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<void>, void> {\n return getLongRunningPoller(context, _$deleteDeserialize, [\"202\", \"204\", \"200\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () => _$deleteSend(context, resourceGroupName, machineName, options),\n resourceLocationConfig: \"location\",\n apiVersion: context.apiVersion ?? \"2025-09-16-preview\",\n }) as PollerLike<OperationState<void>, void>;\n}\n\nexport function _updateSend(\n context: Client,\n resourceGroupName: string,\n machineName: string,\n parameters: LicenseProfileUpdate,\n options: LicenseProfilesUpdateOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/licenseProfiles/{licenseProfileName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n machineName: machineName,\n licenseProfileName: \"default\",\n \"api%2Dversion\": context.apiVersion ?? \"2025-09-16-preview\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).patch({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n body: licenseProfileUpdateSerializer(parameters),\n });\n}\n\nexport async function _updateDeserialize(result: PathUncheckedResponse): Promise<LicenseProfile> {\n const expectedStatuses = [\"200\", \"202\", \"201\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = errorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return licenseProfileDeserializer(result.body);\n}\n\n/** The operation to update a license profile. */\nexport function update(\n context: Client,\n resourceGroupName: string,\n machineName: string,\n parameters: LicenseProfileUpdate,\n options: LicenseProfilesUpdateOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<LicenseProfile>, LicenseProfile> {\n return getLongRunningPoller(context, _updateDeserialize, [\"200\", \"202\", \"201\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _updateSend(context, resourceGroupName, machineName, parameters, options),\n resourceLocationConfig: \"location\",\n apiVersion: context.apiVersion ?? \"2025-09-16-preview\",\n }) as PollerLike<OperationState<LicenseProfile>, LicenseProfile>;\n}\n\nexport function _createOrUpdateSend(\n context: Client,\n resourceGroupName: string,\n machineName: string,\n parameters: LicenseProfile,\n options: LicenseProfilesCreateOrUpdateOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/licenseProfiles/{licenseProfileName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n machineName: machineName,\n licenseProfileName: \"default\",\n \"api%2Dversion\": context.apiVersion ?? \"2025-09-16-preview\",\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: licenseProfileSerializer(parameters),\n });\n}\n\nexport async function _createOrUpdateDeserialize(\n result: PathUncheckedResponse,\n): Promise<LicenseProfile> {\n const expectedStatuses = [\"200\", \"201\", \"202\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = errorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return licenseProfileDeserializer(result.body);\n}\n\n/** The operation to create or update a license profile. */\nexport function createOrUpdate(\n context: Client,\n resourceGroupName: string,\n machineName: string,\n parameters: LicenseProfile,\n options: LicenseProfilesCreateOrUpdateOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<LicenseProfile>, LicenseProfile> {\n return getLongRunningPoller(context, _createOrUpdateDeserialize, [\"200\", \"201\", \"202\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _createOrUpdateSend(context, resourceGroupName, machineName, parameters, options),\n resourceLocationConfig: \"location\",\n apiVersion: context.apiVersion ?? \"2025-09-16-preview\",\n }) as PollerLike<OperationState<LicenseProfile>, LicenseProfile>;\n}\n\nexport function _getSend(\n context: Client,\n resourceGroupName: string,\n machineName: string,\n options: LicenseProfilesGetOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/licenseProfiles/{licenseProfileName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n machineName: machineName,\n licenseProfileName: \"default\",\n \"api%2Dversion\": context.apiVersion ?? \"2025-09-16-preview\",\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<LicenseProfile> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = errorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return licenseProfileDeserializer(result.body);\n}\n\n/** Retrieves information about the view of a license profile. */\nexport async function get(\n context: Client,\n resourceGroupName: string,\n machineName: string,\n options: LicenseProfilesGetOptionalParams = { requestOptions: {} },\n): Promise<LicenseProfile> {\n const result = await _getSend(context, resourceGroupName, machineName, 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;AAAA;AAAA;AAAA;AASA,oBAMO;AAEP,2BAAwC;AACxC,4BAAqC;AACrC,yBAAkC;AASlC,yBAAqE;AAG9D,SAAS,UACd,SACA,mBACA,aACA,UAA6C,EAAE,gBAAgB,CAAC,EAAE,GAChD;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,iBACpB,QACqC;AACrC,QAAM,mBAAmB,CAAC,KAAK;AAC/B,MAAI,CAAC,iBAAiB,SAAS,OAAO,MAAM,GAAG;AAC7C,UAAM,YAAQ,oCAAgB,MAAM;AACpC,QAA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SACA,mBACA,aACA,UAA4C,EAAE,gBAAgB,CAAC,EAAE,GAC/C;AAClB,QAAM,WAAO;AAAA,IACX;AAAA,IACA;AAAA,MACE,gBAAgB,QAAQ;AAAA,MACxB;AAAA,MACA;AAAA,MACA,oBAAoB;AAAA,MACpB,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,QAAwD;AAC5F,QAAM,mBAAmB,CAAC,KAAK;AAC/B,MAAI,CAAC,iBAAiB,SAAS,OAAO,MAAM,GAAG;AAC7C,UAAM,YAAQ,oCAAgB,MAAM;AACpC,QAAI,OAAO,MAAM;AACf,YAAM,cAAU,yCAA0B,OAAO,IAAI;AAAA,IACvD;AAEA,UAAM;AAAA,EACR;AAEA,aAAO,0CAA2B,OAAO,IAAI;AAC/C;AAGA,eAAsB,IACpB,SACA,mBACA,aACA,UAA4C,EAAE,gBAAgB,CAAC,EAAE,GACxC;AACzB,QAAM,SAAS,MAAM,SAAS,SAAS,mBAAmB,aAAa,OAAO;AAC9E,SAAO,gBAAgB,MAAM;AAC/B;",
4
+ "sourcesContent": ["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { HybridComputeManagementContext as Client } from \"../index.js\";\nimport type {\n LicenseProfile,\n LicenseProfileUpdate,\n _LicenseProfilesListResult,\n} from \"../../models/models.js\";\nimport {\n errorResponseDeserializer,\n licenseProfileSerializer,\n licenseProfileDeserializer,\n licenseProfileUpdateSerializer,\n _licenseProfilesListResultDeserializer,\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 LicenseProfilesListOptionalParams,\n LicenseProfilesDeleteOptionalParams,\n LicenseProfilesUpdateOptionalParams,\n LicenseProfilesCreateOrUpdateOptionalParams,\n LicenseProfilesGetOptionalParams,\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 _listSend(\n context: Client,\n resourceGroupName: string,\n machineName: string,\n options: LicenseProfilesListOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/licenseProfiles{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n machineName: machineName,\n \"api%2Dversion\": context.apiVersion ?? \"2026-07-15\",\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<_LicenseProfilesListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = errorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return _licenseProfilesListResultDeserializer(result.body);\n}\n/** The operation to get all license profiles of a non-Azure machine */\nexport function list(\n context: Client,\n resourceGroupName: string,\n machineName: string,\n options: LicenseProfilesListOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<LicenseProfile> {\n return buildPagedAsyncIterator(\n context,\n () => _listSend(context, resourceGroupName, machineName, options),\n _listDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\", apiVersion: context.apiVersion ?? \"2026-07-15\" },\n );\n}\n\nexport function _$deleteSend(\n context: Client,\n resourceGroupName: string,\n machineName: string,\n options: LicenseProfilesDeleteOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/licenseProfiles/{licenseProfileName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n machineName: machineName,\n licenseProfileName: \"default\",\n \"api%2Dversion\": context.apiVersion ?? \"2026-07-15\",\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 = [\"202\", \"204\", \"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = errorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return;\n}\n/** The operation to delete a license profile. */\nexport function $delete(\n context: Client,\n resourceGroupName: string,\n machineName: string,\n options: LicenseProfilesDeleteOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<void>, void> {\n return getLongRunningPoller(context, _$deleteDeserialize, [\"202\", \"204\", \"200\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () => _$deleteSend(context, resourceGroupName, machineName, options),\n resourceLocationConfig: \"location\",\n apiVersion: context.apiVersion ?? \"2026-07-15\",\n }) as PollerLike<OperationState<void>, void>;\n}\n\nexport function _updateSend(\n context: Client,\n resourceGroupName: string,\n machineName: string,\n parameters: LicenseProfileUpdate,\n options: LicenseProfilesUpdateOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/licenseProfiles/{licenseProfileName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n machineName: machineName,\n licenseProfileName: \"default\",\n \"api%2Dversion\": context.apiVersion ?? \"2026-07-15\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).patch({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n body: licenseProfileUpdateSerializer(parameters),\n });\n}\n\nexport async function _updateDeserialize(result: PathUncheckedResponse): Promise<LicenseProfile> {\n const expectedStatuses = [\"200\", \"202\", \"201\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = errorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return licenseProfileDeserializer(result.body);\n}\n/** The operation to update a license profile. */\nexport function update(\n context: Client,\n resourceGroupName: string,\n machineName: string,\n parameters: LicenseProfileUpdate,\n options: LicenseProfilesUpdateOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<LicenseProfile>, LicenseProfile> {\n return getLongRunningPoller(context, _updateDeserialize, [\"200\", \"202\", \"201\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _updateSend(context, resourceGroupName, machineName, parameters, options),\n resourceLocationConfig: \"location\",\n apiVersion: context.apiVersion ?? \"2026-07-15\",\n }) as PollerLike<OperationState<LicenseProfile>, LicenseProfile>;\n}\n\nexport function _createOrUpdateSend(\n context: Client,\n resourceGroupName: string,\n machineName: string,\n parameters: LicenseProfile,\n options: LicenseProfilesCreateOrUpdateOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/licenseProfiles/{licenseProfileName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n machineName: machineName,\n licenseProfileName: \"default\",\n \"api%2Dversion\": context.apiVersion ?? \"2026-07-15\",\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: licenseProfileSerializer(parameters),\n });\n}\n\nexport async function _createOrUpdateDeserialize(\n result: PathUncheckedResponse,\n): Promise<LicenseProfile> {\n const expectedStatuses = [\"200\", \"201\", \"202\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = errorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return licenseProfileDeserializer(result.body);\n}\n/** The operation to create or update a license profile. */\nexport function createOrUpdate(\n context: Client,\n resourceGroupName: string,\n machineName: string,\n parameters: LicenseProfile,\n options: LicenseProfilesCreateOrUpdateOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<LicenseProfile>, LicenseProfile> {\n return getLongRunningPoller(context, _createOrUpdateDeserialize, [\"200\", \"201\", \"202\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _createOrUpdateSend(context, resourceGroupName, machineName, parameters, options),\n resourceLocationConfig: \"location\",\n apiVersion: context.apiVersion ?? \"2026-07-15\",\n }) as PollerLike<OperationState<LicenseProfile>, LicenseProfile>;\n}\n\nexport function _getSend(\n context: Client,\n resourceGroupName: string,\n machineName: string,\n options: LicenseProfilesGetOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/licenseProfiles/{licenseProfileName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n machineName: machineName,\n licenseProfileName: \"default\",\n \"api%2Dversion\": context.apiVersion ?? \"2026-07-15\",\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<LicenseProfile> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = errorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return licenseProfileDeserializer(result.body);\n}\n/** Retrieves information about the view of a license profile. */\nexport async function get(\n context: Client,\n resourceGroupName: string,\n machineName: string,\n options: LicenseProfilesGetOptionalParams = { requestOptions: {} },\n): Promise<LicenseProfile> {\n const result = await _getSend(context, resourceGroupName, machineName, 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;AAAA;AAAA;AAAA;AASA,oBAMO;AAEP,2BAAwC;AACxC,4BAAqC;AACrC,yBAAkC;AASlC,yBAAqE;AAG9D,SAAS,UACd,SACA,mBACA,aACA,UAA6C,EAAE,gBAAgB,CAAC,EAAE,GAChD;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,QAA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AAS;AAAA,IACtB,oBAAoB,MAClB,oBAAoB,SAAS,mBAAmB,aAAa,YAAY,OAAO;AAAA,IAClF,wBAAwB;AAAA,IACxB,YAAY,QAAQ,cAAc;AAAA,EACpC,CAAC;AACH;AAEO,SAAS,SACd,SACA,mBACA,aACA,UAA4C,EAAE,gBAAgB,CAAC,EAAE,GAC/C;AAClB,QAAM,WAAO;AAAA,IACX;AAAA,IACA;AAAA,MACE,gBAAgB,QAAQ;AAAA,MACxB;AAAA,MACA;AAAA,MACA,oBAAoB;AAAA,MACpB,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,QAAwD;AAC5F,QAAM,mBAAmB,CAAC,KAAK;AAC/B,MAAI,CAAC,iBAAiB,SAAS,OAAO,MAAM,GAAG;AAC7C,UAAM,YAAQ,oCAAgB,MAAM;AACpC,QAAI,OAAO,MAAM;AACf,YAAM,cAAU,yCAA0B,OAAO,IAAI;AAAA,IACvD;AAEA,UAAM;AAAA,EACR;AAEA,aAAO,0CAA2B,OAAO,IAAI;AAC/C;AAEA,eAAsB,IACpB,SACA,mBACA,aACA,UAA4C,EAAE,gBAAgB,CAAC,EAAE,GACxC;AACzB,QAAM,SAAS,MAAM,SAAS,SAAS,mBAAmB,aAAa,OAAO;AAC9E,SAAO,gBAAgB,MAAM;AAC/B;",
6
6
  "names": []
7
7
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/api/licenseProfiles/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 LicenseProfilesListOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface LicenseProfilesDeleteOptionalParams extends OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n}\n\n/** Optional parameters. */\nexport interface LicenseProfilesUpdateOptionalParams extends OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n}\n\n/** Optional parameters. */\nexport interface LicenseProfilesCreateOrUpdateOptionalParams extends OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n}\n\n/** Optional parameters. */\nexport interface LicenseProfilesGetOptionalParams extends OperationOptions {}\n"],
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 LicenseProfilesListOptionalParams extends OperationOptions {}\n/** Optional parameters. */\nexport interface LicenseProfilesDeleteOptionalParams extends OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n}\n/** Optional parameters. */\nexport interface LicenseProfilesUpdateOptionalParams extends OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n}\n/** Optional parameters. */\nexport interface LicenseProfilesCreateOrUpdateOptionalParams extends OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n}\n/** Optional parameters. */\nexport interface LicenseProfilesGetOptionalParams extends OperationOptions {}\n"],
5
5
  "mappings": ";;;;;;;;;;;;;AAAA;AAAA;",
6
6
  "names": []
7
7
  }
@@ -50,7 +50,7 @@ function _validateLicenseSend(context, parameters, options = { requestOptions: {
50
50
  "/subscriptions/{subscriptionId}/providers/Microsoft.HybridCompute/validateLicense{?api%2Dversion}",
51
51
  {
52
52
  subscriptionId: context.subscriptionId,
53
- "api%2Dversion": context.apiVersion ?? "2025-09-16-preview"
53
+ "api%2Dversion": context.apiVersion ?? "2026-07-15"
54
54
  },
55
55
  {
56
56
  allowReserved: options?.requestOptions?.skipUrlEncoding
@@ -80,7 +80,7 @@ function validateLicense(context, parameters, options = { requestOptions: {} })
80
80
  abortSignal: options?.abortSignal,
81
81
  getInitialResponse: () => _validateLicenseSend(context, parameters, options),
82
82
  resourceLocationConfig: "location",
83
- apiVersion: context.apiVersion ?? "2025-09-16-preview"
83
+ apiVersion: context.apiVersion ?? "2026-07-15"
84
84
  });
85
85
  }
86
86
  function _listBySubscriptionSend(context, options = { requestOptions: {} }) {
@@ -88,7 +88,7 @@ function _listBySubscriptionSend(context, options = { requestOptions: {} }) {
88
88
  "/subscriptions/{subscriptionId}/providers/Microsoft.HybridCompute/licenses{?api%2Dversion}",
89
89
  {
90
90
  subscriptionId: context.subscriptionId,
91
- "api%2Dversion": context.apiVersion ?? "2025-09-16-preview"
91
+ "api%2Dversion": context.apiVersion ?? "2026-07-15"
92
92
  },
93
93
  {
94
94
  allowReserved: options?.requestOptions?.skipUrlEncoding
@@ -116,11 +116,7 @@ function listBySubscription(context, options = { requestOptions: {} }) {
116
116
  () => _listBySubscriptionSend(context, options),
117
117
  _listBySubscriptionDeserialize,
118
118
  ["200"],
119
- {
120
- itemName: "value",
121
- nextLinkName: "nextLink",
122
- apiVersion: context.apiVersion ?? "2025-09-16-preview"
123
- }
119
+ { itemName: "value", nextLinkName: "nextLink", apiVersion: context.apiVersion ?? "2026-07-15" }
124
120
  );
125
121
  }
126
122
  function _listByResourceGroupSend(context, resourceGroupName, options = { requestOptions: {} }) {
@@ -129,7 +125,7 @@ function _listByResourceGroupSend(context, resourceGroupName, options = { reques
129
125
  {
130
126
  subscriptionId: context.subscriptionId,
131
127
  resourceGroupName,
132
- "api%2Dversion": context.apiVersion ?? "2025-09-16-preview"
128
+ "api%2Dversion": context.apiVersion ?? "2026-07-15"
133
129
  },
134
130
  {
135
131
  allowReserved: options?.requestOptions?.skipUrlEncoding
@@ -157,11 +153,7 @@ function listByResourceGroup(context, resourceGroupName, options = { requestOpti
157
153
  () => _listByResourceGroupSend(context, resourceGroupName, options),
158
154
  _listByResourceGroupDeserialize,
159
155
  ["200"],
160
- {
161
- itemName: "value",
162
- nextLinkName: "nextLink",
163
- apiVersion: context.apiVersion ?? "2025-09-16-preview"
164
- }
156
+ { itemName: "value", nextLinkName: "nextLink", apiVersion: context.apiVersion ?? "2026-07-15" }
165
157
  );
166
158
  }
167
159
  function _$deleteSend(context, resourceGroupName, licenseName, options = { requestOptions: {} }) {
@@ -171,7 +163,7 @@ function _$deleteSend(context, resourceGroupName, licenseName, options = { reque
171
163
  subscriptionId: context.subscriptionId,
172
164
  resourceGroupName,
173
165
  licenseName,
174
- "api%2Dversion": context.apiVersion ?? "2025-09-16-preview"
166
+ "api%2Dversion": context.apiVersion ?? "2026-07-15"
175
167
  },
176
168
  {
177
169
  allowReserved: options?.requestOptions?.skipUrlEncoding
@@ -196,7 +188,7 @@ function $delete(context, resourceGroupName, licenseName, options = { requestOpt
196
188
  abortSignal: options?.abortSignal,
197
189
  getInitialResponse: () => _$deleteSend(context, resourceGroupName, licenseName, options),
198
190
  resourceLocationConfig: "location",
199
- apiVersion: context.apiVersion ?? "2025-09-16-preview"
191
+ apiVersion: context.apiVersion ?? "2026-07-15"
200
192
  });
201
193
  }
202
194
  function _updateSend(context, resourceGroupName, licenseName, parameters, options = { requestOptions: {} }) {
@@ -206,7 +198,7 @@ function _updateSend(context, resourceGroupName, licenseName, parameters, option
206
198
  subscriptionId: context.subscriptionId,
207
199
  resourceGroupName,
208
200
  licenseName,
209
- "api%2Dversion": context.apiVersion ?? "2025-09-16-preview"
201
+ "api%2Dversion": context.apiVersion ?? "2026-07-15"
210
202
  },
211
203
  {
212
204
  allowReserved: options?.requestOptions?.skipUrlEncoding
@@ -236,7 +228,7 @@ function update(context, resourceGroupName, licenseName, parameters, options = {
236
228
  abortSignal: options?.abortSignal,
237
229
  getInitialResponse: () => _updateSend(context, resourceGroupName, licenseName, parameters, options),
238
230
  resourceLocationConfig: "location",
239
- apiVersion: context.apiVersion ?? "2025-09-16-preview"
231
+ apiVersion: context.apiVersion ?? "2026-07-15"
240
232
  });
241
233
  }
242
234
  function _createOrUpdateSend(context, resourceGroupName, licenseName, parameters, options = { requestOptions: {} }) {
@@ -246,7 +238,7 @@ function _createOrUpdateSend(context, resourceGroupName, licenseName, parameters
246
238
  subscriptionId: context.subscriptionId,
247
239
  resourceGroupName,
248
240
  licenseName,
249
- "api%2Dversion": context.apiVersion ?? "2025-09-16-preview"
241
+ "api%2Dversion": context.apiVersion ?? "2026-07-15"
250
242
  },
251
243
  {
252
244
  allowReserved: options?.requestOptions?.skipUrlEncoding
@@ -276,7 +268,7 @@ function createOrUpdate(context, resourceGroupName, licenseName, parameters, opt
276
268
  abortSignal: options?.abortSignal,
277
269
  getInitialResponse: () => _createOrUpdateSend(context, resourceGroupName, licenseName, parameters, options),
278
270
  resourceLocationConfig: "location",
279
- apiVersion: context.apiVersion ?? "2025-09-16-preview"
271
+ apiVersion: context.apiVersion ?? "2026-07-15"
280
272
  });
281
273
  }
282
274
  function _getSend(context, resourceGroupName, licenseName, options = { requestOptions: {} }) {
@@ -286,7 +278,7 @@ function _getSend(context, resourceGroupName, licenseName, options = { requestOp
286
278
  subscriptionId: context.subscriptionId,
287
279
  resourceGroupName,
288
280
  licenseName,
289
- "api%2Dversion": context.apiVersion ?? "2025-09-16-preview"
281
+ "api%2Dversion": context.apiVersion ?? "2026-07-15"
290
282
  },
291
283
  {
292
284
  allowReserved: options?.requestOptions?.skipUrlEncoding
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/api/licenses/operations.ts"],
4
- "sourcesContent": ["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { HybridComputeManagementContext as Client } from \"../index.js\";\nimport type { License, LicenseUpdate, _LicensesListResult } from \"../../models/models.js\";\nimport {\n errorResponseDeserializer,\n licenseSerializer,\n licenseDeserializer,\n licenseUpdateSerializer,\n _licensesListResultDeserializer,\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 LicensesValidateLicenseOptionalParams,\n LicensesListBySubscriptionOptionalParams,\n LicensesListByResourceGroupOptionalParams,\n LicensesDeleteOptionalParams,\n LicensesUpdateOptionalParams,\n LicensesCreateOrUpdateOptionalParams,\n LicensesGetOptionalParams,\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 _validateLicenseSend(\n context: Client,\n parameters: License,\n options: LicensesValidateLicenseOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.HybridCompute/validateLicense{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n \"api%2Dversion\": context.apiVersion ?? \"2025-09-16-preview\",\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: licenseSerializer(parameters),\n });\n}\n\nexport async function _validateLicenseDeserialize(result: PathUncheckedResponse): Promise<License> {\n const expectedStatuses = [\"200\", \"201\", \"202\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = errorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return licenseDeserializer(result.body);\n}\n\n/** The operation to validate a license. */\nexport function validateLicense(\n context: Client,\n parameters: License,\n options: LicensesValidateLicenseOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<License>, License> {\n return getLongRunningPoller(context, _validateLicenseDeserialize, [\"200\", \"201\", \"202\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () => _validateLicenseSend(context, parameters, options),\n resourceLocationConfig: \"location\",\n apiVersion: context.apiVersion ?? \"2025-09-16-preview\",\n }) as PollerLike<OperationState<License>, License>;\n}\n\nexport function _listBySubscriptionSend(\n context: Client,\n options: LicensesListBySubscriptionOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.HybridCompute/licenses{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n \"api%2Dversion\": context.apiVersion ?? \"2025-09-16-preview\",\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 _listBySubscriptionDeserialize(\n result: PathUncheckedResponse,\n): Promise<_LicensesListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = errorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return _licensesListResultDeserializer(result.body);\n}\n\n/** The operation to get all licenses of a non-Azure machine */\nexport function listBySubscription(\n context: Client,\n options: LicensesListBySubscriptionOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<License> {\n return buildPagedAsyncIterator(\n context,\n () => _listBySubscriptionSend(context, options),\n _listBySubscriptionDeserialize,\n [\"200\"],\n {\n itemName: \"value\",\n nextLinkName: \"nextLink\",\n apiVersion: context.apiVersion ?? \"2025-09-16-preview\",\n },\n );\n}\n\nexport function _listByResourceGroupSend(\n context: Client,\n resourceGroupName: string,\n options: LicensesListByResourceGroupOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/licenses{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n \"api%2Dversion\": context.apiVersion ?? \"2025-09-16-preview\",\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 _listByResourceGroupDeserialize(\n result: PathUncheckedResponse,\n): Promise<_LicensesListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = errorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return _licensesListResultDeserializer(result.body);\n}\n\n/** The operation to get all licenses of a non-Azure machine */\nexport function listByResourceGroup(\n context: Client,\n resourceGroupName: string,\n options: LicensesListByResourceGroupOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<License> {\n return buildPagedAsyncIterator(\n context,\n () => _listByResourceGroupSend(context, resourceGroupName, options),\n _listByResourceGroupDeserialize,\n [\"200\"],\n {\n itemName: \"value\",\n nextLinkName: \"nextLink\",\n apiVersion: context.apiVersion ?? \"2025-09-16-preview\",\n },\n );\n}\n\nexport function _$deleteSend(\n context: Client,\n resourceGroupName: string,\n licenseName: string,\n options: LicensesDeleteOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/licenses/{licenseName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n licenseName: licenseName,\n \"api%2Dversion\": context.apiVersion ?? \"2025-09-16-preview\",\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\", \"202\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = errorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return;\n}\n\n/** The operation to delete a license. */\nexport function $delete(\n context: Client,\n resourceGroupName: string,\n licenseName: string,\n options: LicensesDeleteOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<void>, void> {\n return getLongRunningPoller(context, _$deleteDeserialize, [\"200\", \"204\", \"202\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () => _$deleteSend(context, resourceGroupName, licenseName, options),\n resourceLocationConfig: \"location\",\n apiVersion: context.apiVersion ?? \"2025-09-16-preview\",\n }) as PollerLike<OperationState<void>, void>;\n}\n\nexport function _updateSend(\n context: Client,\n resourceGroupName: string,\n licenseName: string,\n parameters: LicenseUpdate,\n options: LicensesUpdateOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/licenses/{licenseName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n licenseName: licenseName,\n \"api%2Dversion\": context.apiVersion ?? \"2025-09-16-preview\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).patch({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n body: licenseUpdateSerializer(parameters),\n });\n}\n\nexport async function _updateDeserialize(result: PathUncheckedResponse): Promise<License> {\n const expectedStatuses = [\"200\", \"201\", \"202\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = errorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return licenseDeserializer(result.body);\n}\n\n/** The operation to update a license. */\nexport function update(\n context: Client,\n resourceGroupName: string,\n licenseName: string,\n parameters: LicenseUpdate,\n options: LicensesUpdateOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<License>, License> {\n return getLongRunningPoller(context, _updateDeserialize, [\"200\", \"201\", \"202\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _updateSend(context, resourceGroupName, licenseName, parameters, options),\n resourceLocationConfig: \"location\",\n apiVersion: context.apiVersion ?? \"2025-09-16-preview\",\n }) as PollerLike<OperationState<License>, License>;\n}\n\nexport function _createOrUpdateSend(\n context: Client,\n resourceGroupName: string,\n licenseName: string,\n parameters: License,\n options: LicensesCreateOrUpdateOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/licenses/{licenseName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n licenseName: licenseName,\n \"api%2Dversion\": context.apiVersion ?? \"2025-09-16-preview\",\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: licenseSerializer(parameters),\n });\n}\n\nexport async function _createOrUpdateDeserialize(result: PathUncheckedResponse): Promise<License> {\n const expectedStatuses = [\"200\", \"201\", \"202\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = errorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return licenseDeserializer(result.body);\n}\n\n/** The operation to create or update a license. */\nexport function createOrUpdate(\n context: Client,\n resourceGroupName: string,\n licenseName: string,\n parameters: License,\n options: LicensesCreateOrUpdateOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<License>, License> {\n return getLongRunningPoller(context, _createOrUpdateDeserialize, [\"200\", \"201\", \"202\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _createOrUpdateSend(context, resourceGroupName, licenseName, parameters, options),\n resourceLocationConfig: \"location\",\n apiVersion: context.apiVersion ?? \"2025-09-16-preview\",\n }) as PollerLike<OperationState<License>, License>;\n}\n\nexport function _getSend(\n context: Client,\n resourceGroupName: string,\n licenseName: string,\n options: LicensesGetOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/licenses/{licenseName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n licenseName: licenseName,\n \"api%2Dversion\": context.apiVersion ?? \"2025-09-16-preview\",\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<License> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = errorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return licenseDeserializer(result.body);\n}\n\n/** Retrieves information about the view of a license. */\nexport async function get(\n context: Client,\n resourceGroupName: string,\n licenseName: string,\n options: LicensesGetOptionalParams = { requestOptions: {} },\n): Promise<License> {\n const result = await _getSend(context, resourceGroupName, licenseName, 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;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA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AAAA,IACtB,oBAAoB,MAClB,oBAAoB,SAAS,mBAAmB,aAAa,YAAY,OAAO;AAAA,IAClF,wBAAwB;AAAA,IACxB,YAAY,QAAQ,cAAc;AAAA,EACpC,CAAC;AACH;AAEO,SAAS,SACd,SACA,mBACA,aACA,UAAqC,EAAE,gBAAgB,CAAC,EAAE,GACxC;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,QAAiD;AACrF,QAAM,mBAAmB,CAAC,KAAK;AAC/B,MAAI,CAAC,iBAAiB,SAAS,OAAO,MAAM,GAAG;AAC7C,UAAM,YAAQ,oCAAgB,MAAM;AACpC,QAAI,OAAO,MAAM;AACf,YAAM,cAAU,yCAA0B,OAAO,IAAI;AAAA,IACvD;AAEA,UAAM;AAAA,EACR;AAEA,aAAO,mCAAoB,OAAO,IAAI;AACxC;AAGA,eAAsB,IACpB,SACA,mBACA,aACA,UAAqC,EAAE,gBAAgB,CAAC,EAAE,GACxC;AAClB,QAAM,SAAS,MAAM,SAAS,SAAS,mBAAmB,aAAa,OAAO;AAC9E,SAAO,gBAAgB,MAAM;AAC/B;",
4
+ "sourcesContent": ["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { HybridComputeManagementContext as Client } from \"../index.js\";\nimport type { License, LicenseUpdate, _LicensesListResult } from \"../../models/models.js\";\nimport {\n errorResponseDeserializer,\n licenseSerializer,\n licenseDeserializer,\n licenseUpdateSerializer,\n _licensesListResultDeserializer,\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 LicensesValidateLicenseOptionalParams,\n LicensesListBySubscriptionOptionalParams,\n LicensesListByResourceGroupOptionalParams,\n LicensesDeleteOptionalParams,\n LicensesUpdateOptionalParams,\n LicensesCreateOrUpdateOptionalParams,\n LicensesGetOptionalParams,\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 _validateLicenseSend(\n context: Client,\n parameters: License,\n options: LicensesValidateLicenseOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.HybridCompute/validateLicense{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n \"api%2Dversion\": context.apiVersion ?? \"2026-07-15\",\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: licenseSerializer(parameters),\n });\n}\n\nexport async function _validateLicenseDeserialize(result: PathUncheckedResponse): Promise<License> {\n const expectedStatuses = [\"200\", \"201\", \"202\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = errorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return licenseDeserializer(result.body);\n}\n/** The operation to validate a license. */\nexport function validateLicense(\n context: Client,\n parameters: License,\n options: LicensesValidateLicenseOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<License>, License> {\n return getLongRunningPoller(context, _validateLicenseDeserialize, [\"200\", \"201\", \"202\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () => _validateLicenseSend(context, parameters, options),\n resourceLocationConfig: \"location\",\n apiVersion: context.apiVersion ?? \"2026-07-15\",\n }) as PollerLike<OperationState<License>, License>;\n}\n\nexport function _listBySubscriptionSend(\n context: Client,\n options: LicensesListBySubscriptionOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.HybridCompute/licenses{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n \"api%2Dversion\": context.apiVersion ?? \"2026-07-15\",\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 _listBySubscriptionDeserialize(\n result: PathUncheckedResponse,\n): Promise<_LicensesListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = errorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return _licensesListResultDeserializer(result.body);\n}\n/** The operation to get all licenses of a non-Azure machine */\nexport function listBySubscription(\n context: Client,\n options: LicensesListBySubscriptionOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<License> {\n return buildPagedAsyncIterator(\n context,\n () => _listBySubscriptionSend(context, options),\n _listBySubscriptionDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\", apiVersion: context.apiVersion ?? \"2026-07-15\" },\n );\n}\n\nexport function _listByResourceGroupSend(\n context: Client,\n resourceGroupName: string,\n options: LicensesListByResourceGroupOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/licenses{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n \"api%2Dversion\": context.apiVersion ?? \"2026-07-15\",\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 _listByResourceGroupDeserialize(\n result: PathUncheckedResponse,\n): Promise<_LicensesListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = errorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return _licensesListResultDeserializer(result.body);\n}\n/** The operation to get all licenses of a non-Azure machine */\nexport function listByResourceGroup(\n context: Client,\n resourceGroupName: string,\n options: LicensesListByResourceGroupOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<License> {\n return buildPagedAsyncIterator(\n context,\n () => _listByResourceGroupSend(context, resourceGroupName, options),\n _listByResourceGroupDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\", apiVersion: context.apiVersion ?? \"2026-07-15\" },\n );\n}\n\nexport function _$deleteSend(\n context: Client,\n resourceGroupName: string,\n licenseName: string,\n options: LicensesDeleteOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/licenses/{licenseName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n licenseName: licenseName,\n \"api%2Dversion\": context.apiVersion ?? \"2026-07-15\",\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\", \"202\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = errorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return;\n}\n/** The operation to delete a license. */\nexport function $delete(\n context: Client,\n resourceGroupName: string,\n licenseName: string,\n options: LicensesDeleteOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<void>, void> {\n return getLongRunningPoller(context, _$deleteDeserialize, [\"200\", \"204\", \"202\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () => _$deleteSend(context, resourceGroupName, licenseName, options),\n resourceLocationConfig: \"location\",\n apiVersion: context.apiVersion ?? \"2026-07-15\",\n }) as PollerLike<OperationState<void>, void>;\n}\n\nexport function _updateSend(\n context: Client,\n resourceGroupName: string,\n licenseName: string,\n parameters: LicenseUpdate,\n options: LicensesUpdateOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/licenses/{licenseName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n licenseName: licenseName,\n \"api%2Dversion\": context.apiVersion ?? \"2026-07-15\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).patch({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n body: licenseUpdateSerializer(parameters),\n });\n}\n\nexport async function _updateDeserialize(result: PathUncheckedResponse): Promise<License> {\n const expectedStatuses = [\"200\", \"201\", \"202\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = errorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return licenseDeserializer(result.body);\n}\n/** The operation to update a license. */\nexport function update(\n context: Client,\n resourceGroupName: string,\n licenseName: string,\n parameters: LicenseUpdate,\n options: LicensesUpdateOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<License>, License> {\n return getLongRunningPoller(context, _updateDeserialize, [\"200\", \"201\", \"202\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _updateSend(context, resourceGroupName, licenseName, parameters, options),\n resourceLocationConfig: \"location\",\n apiVersion: context.apiVersion ?? \"2026-07-15\",\n }) as PollerLike<OperationState<License>, License>;\n}\n\nexport function _createOrUpdateSend(\n context: Client,\n resourceGroupName: string,\n licenseName: string,\n parameters: License,\n options: LicensesCreateOrUpdateOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/licenses/{licenseName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n licenseName: licenseName,\n \"api%2Dversion\": context.apiVersion ?? \"2026-07-15\",\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: licenseSerializer(parameters),\n });\n}\n\nexport async function _createOrUpdateDeserialize(result: PathUncheckedResponse): Promise<License> {\n const expectedStatuses = [\"200\", \"201\", \"202\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = errorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return licenseDeserializer(result.body);\n}\n/** The operation to create or update a license. */\nexport function createOrUpdate(\n context: Client,\n resourceGroupName: string,\n licenseName: string,\n parameters: License,\n options: LicensesCreateOrUpdateOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<License>, License> {\n return getLongRunningPoller(context, _createOrUpdateDeserialize, [\"200\", \"201\", \"202\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _createOrUpdateSend(context, resourceGroupName, licenseName, parameters, options),\n resourceLocationConfig: \"location\",\n apiVersion: context.apiVersion ?? \"2026-07-15\",\n }) as PollerLike<OperationState<License>, License>;\n}\n\nexport function _getSend(\n context: Client,\n resourceGroupName: string,\n licenseName: string,\n options: LicensesGetOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/licenses/{licenseName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n licenseName: licenseName,\n \"api%2Dversion\": context.apiVersion ?? \"2026-07-15\",\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<License> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = errorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return licenseDeserializer(result.body);\n}\n/** Retrieves information about the view of a license. */\nexport async function get(\n context: Client,\n resourceGroupName: string,\n licenseName: string,\n options: LicensesGetOptionalParams = { requestOptions: {} },\n): Promise<License> {\n const result = await _getSend(context, resourceGroupName, licenseName, 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;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAKA,oBAMO;AAEP,2BAAwC;AACxC,4BAAqC;AACrC,yBAAkC;AAWlC,yBAAqE;AAG9D,SAAS,qBACd,SACA,YACA,UAAi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SACd,SACA,mBACA,aACA,UAAqC,EAAE,gBAAgB,CAAC,EAAE,GACxC;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,QAAiD;AACrF,QAAM,mBAAmB,CAAC,KAAK;AAC/B,MAAI,CAAC,iBAAiB,SAAS,OAAO,MAAM,GAAG;AAC7C,UAAM,YAAQ,oCAAgB,MAAM;AACpC,QAAI,OAAO,MAAM;AACf,YAAM,cAAU,yCAA0B,OAAO,IAAI;AAAA,IACvD;AAEA,UAAM;AAAA,EACR;AAEA,aAAO,mCAAoB,OAAO,IAAI;AACxC;AAEA,eAAsB,IACpB,SACA,mBACA,aACA,UAAqC,EAAE,gBAAgB,CAAC,EAAE,GACxC;AAClB,QAAM,SAAS,MAAM,SAAS,SAAS,mBAAmB,aAAa,OAAO;AAC9E,SAAO,gBAAgB,MAAM;AAC/B;",
6
6
  "names": []
7
7
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/api/licenses/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 LicensesValidateLicenseOptionalParams extends OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n}\n\n/** Optional parameters. */\nexport interface LicensesListBySubscriptionOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface LicensesListByResourceGroupOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface LicensesDeleteOptionalParams extends OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n}\n\n/** Optional parameters. */\nexport interface LicensesUpdateOptionalParams extends OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n}\n\n/** Optional parameters. */\nexport interface LicensesCreateOrUpdateOptionalParams extends OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n}\n\n/** Optional parameters. */\nexport interface LicensesGetOptionalParams extends OperationOptions {}\n"],
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 LicensesValidateLicenseOptionalParams extends OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n}\n/** Optional parameters. */\nexport interface LicensesListBySubscriptionOptionalParams extends OperationOptions {}\n/** Optional parameters. */\nexport interface LicensesListByResourceGroupOptionalParams extends OperationOptions {}\n/** Optional parameters. */\nexport interface LicensesDeleteOptionalParams extends OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n}\n/** Optional parameters. */\nexport interface LicensesUpdateOptionalParams extends OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n}\n/** Optional parameters. */\nexport interface LicensesCreateOrUpdateOptionalParams extends OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n}\n/** Optional parameters. */\nexport interface LicensesGetOptionalParams extends OperationOptions {}\n"],
5
5
  "mappings": ";;;;;;;;;;;;;AAAA;AAAA;",
6
6
  "names": []
7
7
  }
@@ -46,7 +46,7 @@ function _listSend(context, resourceGroupName, machineName, options = { requestO
46
46
  subscriptionId: context.subscriptionId,
47
47
  resourceGroupName,
48
48
  machineName,
49
- "api%2Dversion": context.apiVersion ?? "2025-09-16-preview",
49
+ "api%2Dversion": context.apiVersion ?? "2026-07-15",
50
50
  "%24expand": options?.expand
51
51
  },
52
52
  {
@@ -75,11 +75,7 @@ function list(context, resourceGroupName, machineName, options = { requestOption
75
75
  () => _listSend(context, resourceGroupName, machineName, options),
76
76
  _listDeserialize,
77
77
  ["200"],
78
- {
79
- itemName: "value",
80
- nextLinkName: "nextLink",
81
- apiVersion: context.apiVersion ?? "2025-09-16-preview"
82
- }
78
+ { itemName: "value", nextLinkName: "nextLink", apiVersion: context.apiVersion ?? "2026-07-15" }
83
79
  );
84
80
  }
85
81
  function _$deleteSend(context, resourceGroupName, machineName, extensionName, options = { requestOptions: {} }) {
@@ -90,7 +86,7 @@ function _$deleteSend(context, resourceGroupName, machineName, extensionName, op
90
86
  resourceGroupName,
91
87
  machineName,
92
88
  extensionName,
93
- "api%2Dversion": context.apiVersion ?? "2025-09-16-preview"
89
+ "api%2Dversion": context.apiVersion ?? "2026-07-15"
94
90
  },
95
91
  {
96
92
  allowReserved: options?.requestOptions?.skipUrlEncoding
@@ -115,7 +111,7 @@ function $delete(context, resourceGroupName, machineName, extensionName, options
115
111
  abortSignal: options?.abortSignal,
116
112
  getInitialResponse: () => _$deleteSend(context, resourceGroupName, machineName, extensionName, options),
117
113
  resourceLocationConfig: "location",
118
- apiVersion: context.apiVersion ?? "2025-09-16-preview"
114
+ apiVersion: context.apiVersion ?? "2026-07-15"
119
115
  });
120
116
  }
121
117
  function _updateSend(context, resourceGroupName, machineName, extensionName, extensionParameters, options = { requestOptions: {} }) {
@@ -126,7 +122,7 @@ function _updateSend(context, resourceGroupName, machineName, extensionName, ext
126
122
  resourceGroupName,
127
123
  machineName,
128
124
  extensionName,
129
- "api%2Dversion": context.apiVersion ?? "2025-09-16-preview"
125
+ "api%2Dversion": context.apiVersion ?? "2026-07-15"
130
126
  },
131
127
  {
132
128
  allowReserved: options?.requestOptions?.skipUrlEncoding
@@ -163,7 +159,7 @@ function update(context, resourceGroupName, machineName, extensionName, extensio
163
159
  options
164
160
  ),
165
161
  resourceLocationConfig: "location",
166
- apiVersion: context.apiVersion ?? "2025-09-16-preview"
162
+ apiVersion: context.apiVersion ?? "2026-07-15"
167
163
  });
168
164
  }
169
165
  function _createOrUpdateSend(context, resourceGroupName, machineName, extensionName, extensionParameters, options = { requestOptions: {} }) {
@@ -174,7 +170,7 @@ function _createOrUpdateSend(context, resourceGroupName, machineName, extensionN
174
170
  resourceGroupName,
175
171
  machineName,
176
172
  extensionName,
177
- "api%2Dversion": context.apiVersion ?? "2025-09-16-preview"
173
+ "api%2Dversion": context.apiVersion ?? "2026-07-15"
178
174
  },
179
175
  {
180
176
  allowReserved: options?.requestOptions?.skipUrlEncoding
@@ -211,7 +207,7 @@ function createOrUpdate(context, resourceGroupName, machineName, extensionName,
211
207
  options
212
208
  ),
213
209
  resourceLocationConfig: "location",
214
- apiVersion: context.apiVersion ?? "2025-09-16-preview"
210
+ apiVersion: context.apiVersion ?? "2026-07-15"
215
211
  });
216
212
  }
217
213
  function _getSend(context, resourceGroupName, machineName, extensionName, options = { requestOptions: {} }) {
@@ -222,7 +218,7 @@ function _getSend(context, resourceGroupName, machineName, extensionName, option
222
218
  resourceGroupName,
223
219
  machineName,
224
220
  extensionName,
225
- "api%2Dversion": context.apiVersion ?? "2025-09-16-preview"
221
+ "api%2Dversion": context.apiVersion ?? "2026-07-15"
226
222
  },
227
223
  {
228
224
  allowReserved: options?.requestOptions?.skipUrlEncoding