@azure/arm-computerecommender 1.0.0-alpha.20250926.3

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 (236) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +115 -0
  3. package/dist/browser/api/computeRecommenderManagementContext.d.ts +22 -0
  4. package/dist/browser/api/computeRecommenderManagementContext.js +43 -0
  5. package/dist/browser/api/computeRecommenderManagementContext.js.map +1 -0
  6. package/dist/browser/api/index.d.ts +2 -0
  7. package/dist/browser/api/index.js +4 -0
  8. package/dist/browser/api/index.js.map +1 -0
  9. package/dist/browser/api/operations/index.d.ts +3 -0
  10. package/dist/browser/api/operations/index.js +4 -0
  11. package/dist/browser/api/operations/index.js.map +1 -0
  12. package/dist/browser/api/operations/operations.d.ts +10 -0
  13. package/dist/browser/api/operations/operations.js +34 -0
  14. package/dist/browser/api/operations/operations.js.map +1 -0
  15. package/dist/browser/api/operations/options.d.ts +5 -0
  16. package/dist/browser/api/operations/options.js +4 -0
  17. package/dist/browser/api/operations/options.js.map +1 -0
  18. package/dist/browser/api/spotPlacementScores/index.d.ts +3 -0
  19. package/dist/browser/api/spotPlacementScores/index.js +4 -0
  20. package/dist/browser/api/spotPlacementScores/index.js.map +1 -0
  21. package/dist/browser/api/spotPlacementScores/operations.d.ts +13 -0
  22. package/dist/browser/api/spotPlacementScores/operations.js +68 -0
  23. package/dist/browser/api/spotPlacementScores/operations.js.map +1 -0
  24. package/dist/browser/api/spotPlacementScores/options.d.ts +8 -0
  25. package/dist/browser/api/spotPlacementScores/options.js +4 -0
  26. package/dist/browser/api/spotPlacementScores/options.js.map +1 -0
  27. package/dist/browser/classic/index.d.ts +3 -0
  28. package/dist/browser/classic/index.js +4 -0
  29. package/dist/browser/classic/index.js.map +1 -0
  30. package/dist/browser/classic/operations/index.d.ts +11 -0
  31. package/dist/browser/classic/operations/index.js +14 -0
  32. package/dist/browser/classic/operations/index.js.map +1 -0
  33. package/dist/browser/classic/spotPlacementScores/index.d.ts +12 -0
  34. package/dist/browser/classic/spotPlacementScores/index.js +15 -0
  35. package/dist/browser/classic/spotPlacementScores/index.js.map +1 -0
  36. package/dist/browser/computeRecommenderManagementClient.d.ts +18 -0
  37. package/dist/browser/computeRecommenderManagementClient.js +29 -0
  38. package/dist/browser/computeRecommenderManagementClient.js.map +1 -0
  39. package/dist/browser/index.d.ts +11 -0
  40. package/dist/browser/index.js +7 -0
  41. package/dist/browser/index.js.map +1 -0
  42. package/dist/browser/logger.d.ts +2 -0
  43. package/dist/browser/logger.js +5 -0
  44. package/dist/browser/logger.js.map +1 -0
  45. package/dist/browser/models/index.d.ts +2 -0
  46. package/dist/browser/models/index.js +4 -0
  47. package/dist/browser/models/index.js.map +1 -0
  48. package/dist/browser/models/models.d.ts +219 -0
  49. package/dist/browser/models/models.js +214 -0
  50. package/dist/browser/models/models.js.map +1 -0
  51. package/dist/browser/package.json +3 -0
  52. package/dist/browser/static-helpers/cloudSettingHelpers.d.ts +22 -0
  53. package/dist/browser/static-helpers/cloudSettingHelpers.js +38 -0
  54. package/dist/browser/static-helpers/cloudSettingHelpers.js.map +1 -0
  55. package/dist/browser/static-helpers/pagingHelpers.d.ts +72 -0
  56. package/dist/browser/static-helpers/pagingHelpers.js +118 -0
  57. package/dist/browser/static-helpers/pagingHelpers.js.map +1 -0
  58. package/dist/browser/static-helpers/urlTemplate.d.ts +5 -0
  59. package/dist/browser/static-helpers/urlTemplate.js +185 -0
  60. package/dist/browser/static-helpers/urlTemplate.js.map +1 -0
  61. package/dist/commonjs/api/computeRecommenderManagementContext.d.ts +22 -0
  62. package/dist/commonjs/api/computeRecommenderManagementContext.js +46 -0
  63. package/dist/commonjs/api/computeRecommenderManagementContext.js.map +1 -0
  64. package/dist/commonjs/api/index.d.ts +2 -0
  65. package/dist/commonjs/api/index.js +8 -0
  66. package/dist/commonjs/api/index.js.map +1 -0
  67. package/dist/commonjs/api/operations/index.d.ts +3 -0
  68. package/dist/commonjs/api/operations/index.js +8 -0
  69. package/dist/commonjs/api/operations/index.js.map +1 -0
  70. package/dist/commonjs/api/operations/operations.d.ts +10 -0
  71. package/dist/commonjs/api/operations/operations.js +39 -0
  72. package/dist/commonjs/api/operations/operations.js.map +1 -0
  73. package/dist/commonjs/api/operations/options.d.ts +5 -0
  74. package/dist/commonjs/api/operations/options.js +5 -0
  75. package/dist/commonjs/api/operations/options.js.map +1 -0
  76. package/dist/commonjs/api/spotPlacementScores/index.d.ts +3 -0
  77. package/dist/commonjs/api/spotPlacementScores/index.js +9 -0
  78. package/dist/commonjs/api/spotPlacementScores/index.js.map +1 -0
  79. package/dist/commonjs/api/spotPlacementScores/operations.d.ts +13 -0
  80. package/dist/commonjs/api/spotPlacementScores/operations.js +76 -0
  81. package/dist/commonjs/api/spotPlacementScores/operations.js.map +1 -0
  82. package/dist/commonjs/api/spotPlacementScores/options.d.ts +8 -0
  83. package/dist/commonjs/api/spotPlacementScores/options.js +5 -0
  84. package/dist/commonjs/api/spotPlacementScores/options.js.map +1 -0
  85. package/dist/commonjs/classic/index.d.ts +3 -0
  86. package/dist/commonjs/classic/index.js +5 -0
  87. package/dist/commonjs/classic/index.js.map +1 -0
  88. package/dist/commonjs/classic/operations/index.d.ts +11 -0
  89. package/dist/commonjs/classic/operations/index.js +17 -0
  90. package/dist/commonjs/classic/operations/index.js.map +1 -0
  91. package/dist/commonjs/classic/spotPlacementScores/index.d.ts +12 -0
  92. package/dist/commonjs/classic/spotPlacementScores/index.js +18 -0
  93. package/dist/commonjs/classic/spotPlacementScores/index.js.map +1 -0
  94. package/dist/commonjs/computeRecommenderManagementClient.d.ts +18 -0
  95. package/dist/commonjs/computeRecommenderManagementClient.js +33 -0
  96. package/dist/commonjs/computeRecommenderManagementClient.js.map +1 -0
  97. package/dist/commonjs/index.d.ts +11 -0
  98. package/dist/commonjs/index.js +15 -0
  99. package/dist/commonjs/index.js.map +1 -0
  100. package/dist/commonjs/logger.d.ts +2 -0
  101. package/dist/commonjs/logger.js +8 -0
  102. package/dist/commonjs/logger.js.map +1 -0
  103. package/dist/commonjs/models/index.d.ts +2 -0
  104. package/dist/commonjs/models/index.js +11 -0
  105. package/dist/commonjs/models/index.js.map +1 -0
  106. package/dist/commonjs/models/models.d.ts +219 -0
  107. package/dist/commonjs/models/models.js +239 -0
  108. package/dist/commonjs/models/models.js.map +1 -0
  109. package/dist/commonjs/package.json +3 -0
  110. package/dist/commonjs/static-helpers/cloudSettingHelpers.d.ts +22 -0
  111. package/dist/commonjs/static-helpers/cloudSettingHelpers.js +42 -0
  112. package/dist/commonjs/static-helpers/cloudSettingHelpers.js.map +1 -0
  113. package/dist/commonjs/static-helpers/pagingHelpers.d.ts +72 -0
  114. package/dist/commonjs/static-helpers/pagingHelpers.js +121 -0
  115. package/dist/commonjs/static-helpers/pagingHelpers.js.map +1 -0
  116. package/dist/commonjs/static-helpers/urlTemplate.d.ts +5 -0
  117. package/dist/commonjs/static-helpers/urlTemplate.js +188 -0
  118. package/dist/commonjs/static-helpers/urlTemplate.js.map +1 -0
  119. package/dist/commonjs/tsdoc-metadata.json +11 -0
  120. package/dist/esm/api/computeRecommenderManagementContext.d.ts +22 -0
  121. package/dist/esm/api/computeRecommenderManagementContext.js +43 -0
  122. package/dist/esm/api/computeRecommenderManagementContext.js.map +1 -0
  123. package/dist/esm/api/index.d.ts +2 -0
  124. package/dist/esm/api/index.js +4 -0
  125. package/dist/esm/api/index.js.map +1 -0
  126. package/dist/esm/api/operations/index.d.ts +3 -0
  127. package/dist/esm/api/operations/index.js +4 -0
  128. package/dist/esm/api/operations/index.js.map +1 -0
  129. package/dist/esm/api/operations/operations.d.ts +10 -0
  130. package/dist/esm/api/operations/operations.js +34 -0
  131. package/dist/esm/api/operations/operations.js.map +1 -0
  132. package/dist/esm/api/operations/options.d.ts +5 -0
  133. package/dist/esm/api/operations/options.js +4 -0
  134. package/dist/esm/api/operations/options.js.map +1 -0
  135. package/dist/esm/api/spotPlacementScores/index.d.ts +3 -0
  136. package/dist/esm/api/spotPlacementScores/index.js +4 -0
  137. package/dist/esm/api/spotPlacementScores/index.js.map +1 -0
  138. package/dist/esm/api/spotPlacementScores/operations.d.ts +13 -0
  139. package/dist/esm/api/spotPlacementScores/operations.js +68 -0
  140. package/dist/esm/api/spotPlacementScores/operations.js.map +1 -0
  141. package/dist/esm/api/spotPlacementScores/options.d.ts +8 -0
  142. package/dist/esm/api/spotPlacementScores/options.js +4 -0
  143. package/dist/esm/api/spotPlacementScores/options.js.map +1 -0
  144. package/dist/esm/classic/index.d.ts +3 -0
  145. package/dist/esm/classic/index.js +4 -0
  146. package/dist/esm/classic/index.js.map +1 -0
  147. package/dist/esm/classic/operations/index.d.ts +11 -0
  148. package/dist/esm/classic/operations/index.js +14 -0
  149. package/dist/esm/classic/operations/index.js.map +1 -0
  150. package/dist/esm/classic/spotPlacementScores/index.d.ts +12 -0
  151. package/dist/esm/classic/spotPlacementScores/index.js +15 -0
  152. package/dist/esm/classic/spotPlacementScores/index.js.map +1 -0
  153. package/dist/esm/computeRecommenderManagementClient.d.ts +18 -0
  154. package/dist/esm/computeRecommenderManagementClient.js +29 -0
  155. package/dist/esm/computeRecommenderManagementClient.js.map +1 -0
  156. package/dist/esm/index.d.ts +11 -0
  157. package/dist/esm/index.js +7 -0
  158. package/dist/esm/index.js.map +1 -0
  159. package/dist/esm/logger.d.ts +2 -0
  160. package/dist/esm/logger.js +5 -0
  161. package/dist/esm/logger.js.map +1 -0
  162. package/dist/esm/models/index.d.ts +2 -0
  163. package/dist/esm/models/index.js +4 -0
  164. package/dist/esm/models/index.js.map +1 -0
  165. package/dist/esm/models/models.d.ts +219 -0
  166. package/dist/esm/models/models.js +214 -0
  167. package/dist/esm/models/models.js.map +1 -0
  168. package/dist/esm/package.json +3 -0
  169. package/dist/esm/static-helpers/cloudSettingHelpers.d.ts +22 -0
  170. package/dist/esm/static-helpers/cloudSettingHelpers.js +38 -0
  171. package/dist/esm/static-helpers/cloudSettingHelpers.js.map +1 -0
  172. package/dist/esm/static-helpers/pagingHelpers.d.ts +72 -0
  173. package/dist/esm/static-helpers/pagingHelpers.js +118 -0
  174. package/dist/esm/static-helpers/pagingHelpers.js.map +1 -0
  175. package/dist/esm/static-helpers/urlTemplate.d.ts +5 -0
  176. package/dist/esm/static-helpers/urlTemplate.js +185 -0
  177. package/dist/esm/static-helpers/urlTemplate.js.map +1 -0
  178. package/dist/react-native/api/computeRecommenderManagementContext.d.ts +22 -0
  179. package/dist/react-native/api/computeRecommenderManagementContext.js +43 -0
  180. package/dist/react-native/api/computeRecommenderManagementContext.js.map +1 -0
  181. package/dist/react-native/api/index.d.ts +2 -0
  182. package/dist/react-native/api/index.js +4 -0
  183. package/dist/react-native/api/index.js.map +1 -0
  184. package/dist/react-native/api/operations/index.d.ts +3 -0
  185. package/dist/react-native/api/operations/index.js +4 -0
  186. package/dist/react-native/api/operations/index.js.map +1 -0
  187. package/dist/react-native/api/operations/operations.d.ts +10 -0
  188. package/dist/react-native/api/operations/operations.js +34 -0
  189. package/dist/react-native/api/operations/operations.js.map +1 -0
  190. package/dist/react-native/api/operations/options.d.ts +5 -0
  191. package/dist/react-native/api/operations/options.js +4 -0
  192. package/dist/react-native/api/operations/options.js.map +1 -0
  193. package/dist/react-native/api/spotPlacementScores/index.d.ts +3 -0
  194. package/dist/react-native/api/spotPlacementScores/index.js +4 -0
  195. package/dist/react-native/api/spotPlacementScores/index.js.map +1 -0
  196. package/dist/react-native/api/spotPlacementScores/operations.d.ts +13 -0
  197. package/dist/react-native/api/spotPlacementScores/operations.js +68 -0
  198. package/dist/react-native/api/spotPlacementScores/operations.js.map +1 -0
  199. package/dist/react-native/api/spotPlacementScores/options.d.ts +8 -0
  200. package/dist/react-native/api/spotPlacementScores/options.js +4 -0
  201. package/dist/react-native/api/spotPlacementScores/options.js.map +1 -0
  202. package/dist/react-native/classic/index.d.ts +3 -0
  203. package/dist/react-native/classic/index.js +4 -0
  204. package/dist/react-native/classic/index.js.map +1 -0
  205. package/dist/react-native/classic/operations/index.d.ts +11 -0
  206. package/dist/react-native/classic/operations/index.js +14 -0
  207. package/dist/react-native/classic/operations/index.js.map +1 -0
  208. package/dist/react-native/classic/spotPlacementScores/index.d.ts +12 -0
  209. package/dist/react-native/classic/spotPlacementScores/index.js +15 -0
  210. package/dist/react-native/classic/spotPlacementScores/index.js.map +1 -0
  211. package/dist/react-native/computeRecommenderManagementClient.d.ts +18 -0
  212. package/dist/react-native/computeRecommenderManagementClient.js +29 -0
  213. package/dist/react-native/computeRecommenderManagementClient.js.map +1 -0
  214. package/dist/react-native/index.d.ts +11 -0
  215. package/dist/react-native/index.js +7 -0
  216. package/dist/react-native/index.js.map +1 -0
  217. package/dist/react-native/logger.d.ts +2 -0
  218. package/dist/react-native/logger.js +5 -0
  219. package/dist/react-native/logger.js.map +1 -0
  220. package/dist/react-native/models/index.d.ts +2 -0
  221. package/dist/react-native/models/index.js +4 -0
  222. package/dist/react-native/models/index.js.map +1 -0
  223. package/dist/react-native/models/models.d.ts +219 -0
  224. package/dist/react-native/models/models.js +214 -0
  225. package/dist/react-native/models/models.js.map +1 -0
  226. package/dist/react-native/package.json +3 -0
  227. package/dist/react-native/static-helpers/cloudSettingHelpers.d.ts +22 -0
  228. package/dist/react-native/static-helpers/cloudSettingHelpers.js +38 -0
  229. package/dist/react-native/static-helpers/cloudSettingHelpers.js.map +1 -0
  230. package/dist/react-native/static-helpers/pagingHelpers.d.ts +72 -0
  231. package/dist/react-native/static-helpers/pagingHelpers.js +118 -0
  232. package/dist/react-native/static-helpers/pagingHelpers.js.map +1 -0
  233. package/dist/react-native/static-helpers/urlTemplate.d.ts +5 -0
  234. package/dist/react-native/static-helpers/urlTemplate.js +185 -0
  235. package/dist/react-native/static-helpers/urlTemplate.js.map +1 -0
  236. package/package.json +210 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ Copyright (c) Microsoft Corporation.
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,115 @@
1
+ # Azure ComputeRecommenderResourceProvider client library for JavaScript
2
+
3
+ This package contains an isomorphic SDK (runs both in Node.js and in browsers) for Azure ComputeRecommenderResourceProvider client.
4
+
5
+ The Compute Recommender Resource Provider Client
6
+
7
+ Key links:
8
+
9
+ - [Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/compute/arm-computerecommender)
10
+ - [Package (NPM)](https://www.npmjs.com/package/@azure/arm-computerecommender)
11
+ - [API reference documentation](https://learn.microsoft.com/javascript/api/@azure/arm-computerecommender?view=azure-node-preview)
12
+ - [Samples](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/compute/arm-computerecommender/samples)
13
+
14
+ ## Getting started
15
+
16
+ ### Currently supported environments
17
+
18
+ - [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule)
19
+ - Latest versions of Safari, Chrome, Edge and Firefox.
20
+
21
+ See our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUPPORT.md) for more details.
22
+
23
+ ### Prerequisites
24
+
25
+ - An [Azure subscription][azure_sub].
26
+
27
+ ### Install the `@azure/arm-computerecommender` package
28
+
29
+ Install the Azure ComputeRecommenderResourceProvider client library for JavaScript with `npm`:
30
+
31
+ ```bash
32
+ npm install @azure/arm-computerecommender
33
+ ```
34
+
35
+ ### Create and authenticate a `ComputeRecommenderManagementClient`
36
+
37
+ To create a client object to access the Azure ComputeRecommenderResourceProvider API, you will need the `endpoint` of your Azure ComputeRecommenderResourceProvider resource and a `credential`. The Azure ComputeRecommenderResourceProvider client can use Azure Active Directory credentials to authenticate.
38
+ You can find the endpoint for your Azure ComputeRecommenderResourceProvider resource in the [Azure Portal][azure_portal].
39
+
40
+ You can authenticate with Azure Active Directory using a credential from the [@azure/identity][azure_identity] library or [an existing AAD Token](https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/identity/identity/samples/AzureIdentityExamples.md#authenticating-with-a-pre-fetched-access-token).
41
+
42
+ To use the [DefaultAzureCredential][defaultazurecredential] provider shown below, or other credential providers provided with the Azure SDK, please install the `@azure/identity` package:
43
+
44
+ ```bash
45
+ npm install @azure/identity
46
+ ```
47
+
48
+ You will also need to **register a new AAD application and grant access to Azure ComputeRecommenderResourceProvider** by assigning the suitable role to your service principal (note: roles such as `"Owner"` will not grant the necessary permissions).
49
+
50
+ For more information about how to create an Azure AD Application check out [this guide](https://learn.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal).
51
+
52
+ Using Node.js and Node-like environments, you can use the `DefaultAzureCredential` class to authenticate the client.
53
+
54
+ ```ts snippet:ReadmeSampleCreateClient_Node
55
+ import { ComputeRecommenderManagementClient } from "@azure/arm-computerecommender";
56
+ import { DefaultAzureCredential } from "@azure/identity";
57
+
58
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
59
+ const client = new ComputeRecommenderManagementClient(new DefaultAzureCredential(), subscriptionId);
60
+ ```
61
+
62
+ For browser environments, use the `InteractiveBrowserCredential` from the `@azure/identity` package to authenticate.
63
+
64
+ ```ts snippet:ReadmeSampleCreateClient_Browser
65
+ import { InteractiveBrowserCredential } from "@azure/identity";
66
+ import { ComputeRecommenderManagementClient } from "@azure/arm-computerecommender";
67
+
68
+ const credential = new InteractiveBrowserCredential({
69
+ tenantId: "<YOUR_TENANT_ID>",
70
+ clientId: "<YOUR_CLIENT_ID>",
71
+ });
72
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
73
+ const client = new ComputeRecommenderManagementClient(credential, subscriptionId);
74
+ ```
75
+
76
+
77
+ ### JavaScript Bundle
78
+ To use this client library in the browser, first you need to use a bundler. For details on how to do this, please refer to our [bundling documentation](https://aka.ms/AzureSDKBundling).
79
+
80
+ ## Key concepts
81
+
82
+ ### ComputeRecommenderManagementClient
83
+
84
+ `ComputeRecommenderManagementClient` is the primary interface for developers using the Azure ComputeRecommenderResourceProvider client library. Explore the methods on this client object to understand the different features of the Azure ComputeRecommenderResourceProvider service that you can access.
85
+
86
+ ## Troubleshooting
87
+
88
+ ### Logging
89
+
90
+ Enabling logging may help uncover useful information about failures. In order to see a log of HTTP requests and responses, set the `AZURE_LOG_LEVEL` environment variable to `info`. Alternatively, logging can be enabled at runtime by calling `setLogLevel` in the `@azure/logger`:
91
+
92
+ ```ts snippet:SetLogLevel
93
+ import { setLogLevel } from "@azure/logger";
94
+
95
+ setLogLevel("info");
96
+ ```
97
+
98
+ For more detailed instructions on how to enable logs, you can look at the [@azure/logger package docs](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/core/logger).
99
+
100
+ ## Next steps
101
+
102
+ Please take a look at the [samples](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/compute/arm-computerecommender/samples) directory for detailed examples on how to use this library.
103
+
104
+ ## Contributing
105
+
106
+ If you'd like to contribute to this library, please read the [contributing guide](https://github.com/Azure/azure-sdk-for-js/blob/main/CONTRIBUTING.md) to learn more about how to build and test the code.
107
+
108
+ ## Related projects
109
+
110
+ - [Microsoft Azure SDK for JavaScript](https://github.com/Azure/azure-sdk-for-js)
111
+
112
+ [azure_sub]: https://azure.microsoft.com/free/
113
+ [azure_portal]: https://portal.azure.com
114
+ [azure_identity]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity
115
+ [defaultazurecredential]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity#defaultazurecredential
@@ -0,0 +1,22 @@
1
+ import type { AzureSupportedClouds } from "../static-helpers/cloudSettingHelpers.js";
2
+ import type { Client, ClientOptions } from "@azure-rest/core-client";
3
+ import type { TokenCredential } from "@azure/core-auth";
4
+ /** The Compute Recommender Resource Provider Client */
5
+ export interface ComputeRecommenderManagementContext extends Client {
6
+ /** The API version to use for this operation. */
7
+ /** Known values of {@link KnownVersions} that the service accepts. */
8
+ apiVersion: string;
9
+ /** The ID of the target subscription. The value must be an UUID. */
10
+ subscriptionId: string;
11
+ }
12
+ /** Optional parameters for the client. */
13
+ export interface ComputeRecommenderManagementClientOptionalParams extends ClientOptions {
14
+ /** The API version to use for this operation. */
15
+ /** Known values of {@link KnownVersions} that the service accepts. */
16
+ apiVersion?: string;
17
+ /** Specifies the Azure cloud environment for the client. */
18
+ cloudSetting?: AzureSupportedClouds;
19
+ }
20
+ /** The Compute Recommender Resource Provider Client */
21
+ export declare function createComputeRecommenderManagement(credential: TokenCredential, subscriptionId: string, options?: ComputeRecommenderManagementClientOptionalParams): ComputeRecommenderManagementContext;
22
+ //# sourceMappingURL=computeRecommenderManagementContext.d.ts.map
@@ -0,0 +1,43 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ import { logger } from "../logger.js";
4
+ import { getArmEndpoint } from "../static-helpers/cloudSettingHelpers.js";
5
+ import { getClient } from "@azure-rest/core-client";
6
+ /** The Compute Recommender Resource Provider Client */
7
+ export function createComputeRecommenderManagement(credential, subscriptionId, options = {}) {
8
+ const endpointUrl = options.endpoint ?? getArmEndpoint(options.cloudSetting) ?? "https://management.azure.com";
9
+ const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix;
10
+ const userAgentInfo = `azsdk-js-arm-computerecommender/1.0.0-beta.1`;
11
+ const userAgentPrefix = prefixFromOptions
12
+ ? `${prefixFromOptions} azsdk-js-api ${userAgentInfo}`
13
+ : `azsdk-js-api ${userAgentInfo}`;
14
+ const { apiVersion: _, ...updatedOptions } = {
15
+ ...options,
16
+ userAgentOptions: { userAgentPrefix },
17
+ loggingOptions: { logger: options.loggingOptions?.logger ?? logger.info },
18
+ credentials: {
19
+ scopes: options.credentials?.scopes ?? [`${endpointUrl}/.default`],
20
+ },
21
+ };
22
+ const clientContext = getClient(endpointUrl, credential, updatedOptions);
23
+ clientContext.pipeline.removePolicy({ name: "ApiVersionPolicy" });
24
+ const apiVersion = options.apiVersion ?? "2025-06-05";
25
+ clientContext.pipeline.addPolicy({
26
+ name: "ClientApiVersionPolicy",
27
+ sendRequest: (req, next) => {
28
+ // Use the apiVersion defined in request url directly
29
+ // Append one if there is no apiVersion and we have one at client options
30
+ const url = new URL(req.url);
31
+ if (!url.searchParams.get("api-version")) {
32
+ req.url = `${req.url}${Array.from(url.searchParams.keys()).length > 0 ? "&" : "?"}api-version=${apiVersion}`;
33
+ }
34
+ return next(req);
35
+ },
36
+ });
37
+ return {
38
+ ...clientContext,
39
+ apiVersion,
40
+ subscriptionId,
41
+ };
42
+ }
43
+ //# sourceMappingURL=computeRecommenderManagementContext.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"computeRecommenderManagementContext.js","sourceRoot":"","sources":["../../../src/api/computeRecommenderManagementContext.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAGtC,OAAO,EAAE,cAAc,EAAE,MAAM,0CAA0C,CAAC;AAE1E,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAqBpD,uDAAuD;AACvD,MAAM,UAAU,kCAAkC,CAChD,UAA2B,EAC3B,cAAsB,EACtB,UAA4D,EAAE;IAE9D,MAAM,WAAW,GACf,OAAO,CAAC,QAAQ,IAAI,cAAc,CAAC,OAAO,CAAC,YAAY,CAAC,IAAI,8BAA8B,CAAC;IAC7F,MAAM,iBAAiB,GAAG,OAAO,EAAE,gBAAgB,EAAE,eAAe,CAAC;IACrE,MAAM,aAAa,GAAG,8CAA8C,CAAC;IACrE,MAAM,eAAe,GAAG,iBAAiB;QACvC,CAAC,CAAC,GAAG,iBAAiB,iBAAiB,aAAa,EAAE;QACtD,CAAC,CAAC,gBAAgB,aAAa,EAAE,CAAC;IACpC,MAAM,EAAE,UAAU,EAAE,CAAC,EAAE,GAAG,cAAc,EAAE,GAAG;QAC3C,GAAG,OAAO;QACV,gBAAgB,EAAE,EAAE,eAAe,EAAE;QACrC,cAAc,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,cAAc,EAAE,MAAM,IAAI,MAAM,CAAC,IAAI,EAAE;QACzE,WAAW,EAAE;YACX,MAAM,EAAE,OAAO,CAAC,WAAW,EAAE,MAAM,IAAI,CAAC,GAAG,WAAW,WAAW,CAAC;SACnE;KACF,CAAC;IACF,MAAM,aAAa,GAAG,SAAS,CAAC,WAAW,EAAE,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,aAAa,CAAC,QAAQ,CAAC,YAAY,CAAC,EAAE,IAAI,EAAE,kBAAkB,EAAE,CAAC,CAAC;IAClE,MAAM,UAAU,GAAG,OAAO,CAAC,UAAU,IAAI,YAAY,CAAC;IACtD,aAAa,CAAC,QAAQ,CAAC,SAAS,CAAC;QAC/B,IAAI,EAAE,wBAAwB;QAC9B,WAAW,EAAE,CAAC,GAAG,EAAE,IAAI,EAAE,EAAE;YACzB,qDAAqD;YACrD,yEAAyE;YACzE,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;YAC7B,IAAI,CAAC,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,aAAa,CAAC,EAAE,CAAC;gBACzC,GAAG,CAAC,GAAG,GAAG,GAAG,GAAG,CAAC,GAAG,GAClB,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GACzD,eAAe,UAAU,EAAE,CAAC;YAC9B,CAAC;YAED,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC;QACnB,CAAC;KACF,CAAC,CAAC;IACH,OAAO;QACL,GAAG,aAAa;QAChB,UAAU;QACV,cAAc;KACwB,CAAC;AAC3C,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { logger } from \"../logger.js\";\nimport { KnownVersions } from \"../models/models.js\";\nimport type { AzureSupportedClouds } from \"../static-helpers/cloudSettingHelpers.js\";\nimport { getArmEndpoint } from \"../static-helpers/cloudSettingHelpers.js\";\nimport type { Client, ClientOptions } from \"@azure-rest/core-client\";\nimport { getClient } from \"@azure-rest/core-client\";\nimport type { TokenCredential } from \"@azure/core-auth\";\n\n/** The Compute Recommender Resource Provider Client */\nexport interface ComputeRecommenderManagementContext extends Client {\n /** The API version to use for this operation. */\n /** Known values of {@link KnownVersions} that the service accepts. */\n apiVersion: string;\n /** The ID of the target subscription. The value must be an UUID. */\n subscriptionId: string;\n}\n\n/** Optional parameters for the client. */\nexport interface ComputeRecommenderManagementClientOptionalParams 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/** The Compute Recommender Resource Provider Client */\nexport function createComputeRecommenderManagement(\n credential: TokenCredential,\n subscriptionId: string,\n options: ComputeRecommenderManagementClientOptionalParams = {},\n): ComputeRecommenderManagementContext {\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-computerecommender/1.0.0-beta.1`;\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 ?? [`${endpointUrl}/.default`],\n },\n };\n const clientContext = getClient(endpointUrl, credential, updatedOptions);\n clientContext.pipeline.removePolicy({ name: \"ApiVersionPolicy\" });\n const apiVersion = options.apiVersion ?? \"2025-06-05\";\n clientContext.pipeline.addPolicy({\n name: \"ClientApiVersionPolicy\",\n sendRequest: (req, next) => {\n // Use the apiVersion defined in request url directly\n // Append one if there is no apiVersion and we have one at client options\n const url = new URL(req.url);\n if (!url.searchParams.get(\"api-version\")) {\n req.url = `${req.url}${\n Array.from(url.searchParams.keys()).length > 0 ? \"&\" : \"?\"\n }api-version=${apiVersion}`;\n }\n\n return next(req);\n },\n });\n return {\n ...clientContext,\n apiVersion,\n subscriptionId,\n } as ComputeRecommenderManagementContext;\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export { createComputeRecommenderManagement, ComputeRecommenderManagementContext, ComputeRecommenderManagementClientOptionalParams, } from "./computeRecommenderManagementContext.js";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,4 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ export { createComputeRecommenderManagement, } from "./computeRecommenderManagementContext.js";
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/api/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EACL,kCAAkC,GAGnC,MAAM,0CAA0C,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport {\n createComputeRecommenderManagement,\n ComputeRecommenderManagementContext,\n ComputeRecommenderManagementClientOptionalParams,\n} from \"./computeRecommenderManagementContext.js\";\n"]}
@@ -0,0 +1,3 @@
1
+ export { list } from "./operations.js";
2
+ export { OperationsListOptionalParams } from "./options.js";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,4 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ export { list } from "./operations.js";
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/operations/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport { list } from \"./operations.js\";\nexport { OperationsListOptionalParams } from \"./options.js\";\n"]}
@@ -0,0 +1,10 @@
1
+ import type { ComputeRecommenderManagementContext as Client } from "../index.js";
2
+ import type { _OperationListResult, Operation } from "../../models/models.js";
3
+ import type { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js";
4
+ import type { OperationsListOptionalParams } from "./options.js";
5
+ import type { StreamableMethod, PathUncheckedResponse } from "@azure-rest/core-client";
6
+ export declare function _listSend(context: Client, options?: OperationsListOptionalParams): StreamableMethod;
7
+ export declare function _listDeserialize(result: PathUncheckedResponse): Promise<_OperationListResult>;
8
+ /** List the operations for the provider */
9
+ export declare function list(context: Client, options?: OperationsListOptionalParams): PagedAsyncIterableIterator<Operation>;
10
+ //# sourceMappingURL=operations.d.ts.map
@@ -0,0 +1,34 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ import { _operationListResultDeserializer, errorResponseDeserializer, } from "../../models/models.js";
4
+ import { buildPagedAsyncIterator } from "../../static-helpers/pagingHelpers.js";
5
+ import { expandUrlTemplate } from "../../static-helpers/urlTemplate.js";
6
+ import { createRestError, operationOptionsToRequestParameters } from "@azure-rest/core-client";
7
+ export function _listSend(context, options = { requestOptions: {} }) {
8
+ const path = expandUrlTemplate("/providers/Microsoft.Compute/operations{?api%2Dversion}", {
9
+ "api%2Dversion": context.apiVersion,
10
+ }, {
11
+ allowReserved: options?.requestOptions?.skipUrlEncoding,
12
+ });
13
+ return context.path(path).get({
14
+ ...operationOptionsToRequestParameters(options),
15
+ headers: {
16
+ accept: "application/json",
17
+ ...options.requestOptions?.headers,
18
+ },
19
+ });
20
+ }
21
+ export async function _listDeserialize(result) {
22
+ const expectedStatuses = ["200"];
23
+ if (!expectedStatuses.includes(result.status)) {
24
+ const error = createRestError(result);
25
+ error.details = errorResponseDeserializer(result.body);
26
+ throw error;
27
+ }
28
+ return _operationListResultDeserializer(result.body);
29
+ }
30
+ /** List the operations for the provider */
31
+ export function list(context, options = { requestOptions: {} }) {
32
+ return buildPagedAsyncIterator(context, () => _listSend(context, options), _listDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink" });
33
+ }
34
+ //# sourceMappingURL=operations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../../src/api/operations/operations.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAIlC,OAAO,EACL,gCAAgC,EAChC,yBAAyB,GAC1B,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAChF,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AAGxE,OAAO,EAAE,eAAe,EAAE,mCAAmC,EAAE,MAAM,yBAAyB,CAAC;AAE/F,MAAM,UAAU,SAAS,CACvB,OAAe,EACf,UAAwC,EAAE,cAAc,EAAE,EAAE,EAAE;IAE9D,MAAM,IAAI,GAAG,iBAAiB,CAC5B,yDAAyD,EACzD;QACE,eAAe,EAAE,OAAO,CAAC,UAAU;KACpC,EACD;QACE,aAAa,EAAE,OAAO,EAAE,cAAc,EAAE,eAAe;KACxD,CACF,CAAC;IACF,OAAO,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC;QAC5B,GAAG,mCAAmC,CAAC,OAAO,CAAC;QAC/C,OAAO,EAAE;YACP,MAAM,EAAE,kBAAkB;YAC1B,GAAG,OAAO,CAAC,cAAc,EAAE,OAAO;SACnC;KACF,CAAC,CAAC;AACL,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,gBAAgB,CACpC,MAA6B;IAE7B,MAAM,gBAAgB,GAAG,CAAC,KAAK,CAAC,CAAC;IACjC,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;QAC9C,MAAM,KAAK,GAAG,eAAe,CAAC,MAAM,CAAC,CAAC;QACtC,KAAK,CAAC,OAAO,GAAG,yBAAyB,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QACvD,MAAM,KAAK,CAAC;IACd,CAAC;IAED,OAAO,gCAAgC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AACvD,CAAC;AAED,2CAA2C;AAC3C,MAAM,UAAU,IAAI,CAClB,OAAe,EACf,UAAwC,EAAE,cAAc,EAAE,EAAE,EAAE;IAE9D,OAAO,uBAAuB,CAC5B,OAAO,EACP,GAAG,EAAE,CAAC,SAAS,CAAC,OAAO,EAAE,OAAO,CAAC,EACjC,gBAAgB,EAChB,CAAC,KAAK,CAAC,EACP,EAAE,QAAQ,EAAE,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,CAChD,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { ComputeRecommenderManagementContext as Client } from \"../index.js\";\nimport type { _OperationListResult, Operation } from \"../../models/models.js\";\nimport {\n _operationListResultDeserializer,\n errorResponseDeserializer,\n} from \"../../models/models.js\";\nimport type { PagedAsyncIterableIterator } from \"../../static-helpers/pagingHelpers.js\";\nimport { buildPagedAsyncIterator } from \"../../static-helpers/pagingHelpers.js\";\nimport { expandUrlTemplate } from \"../../static-helpers/urlTemplate.js\";\nimport type { OperationsListOptionalParams } from \"./options.js\";\nimport type { StreamableMethod, PathUncheckedResponse } from \"@azure-rest/core-client\";\nimport { createRestError, operationOptionsToRequestParameters } from \"@azure-rest/core-client\";\n\nexport function _listSend(\n context: Client,\n options: OperationsListOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/providers/Microsoft.Compute/operations{?api%2Dversion}\",\n {\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _listDeserialize(\n result: PathUncheckedResponse,\n): Promise<_OperationListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return _operationListResultDeserializer(result.body);\n}\n\n/** List the operations for the provider */\nexport function list(\n context: Client,\n options: OperationsListOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<Operation> {\n return buildPagedAsyncIterator(\n context,\n () => _listSend(context, options),\n _listDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\" },\n );\n}\n"]}
@@ -0,0 +1,5 @@
1
+ import type { OperationOptions } from "@azure-rest/core-client";
2
+ /** Optional parameters. */
3
+ export interface OperationsListOptionalParams extends OperationOptions {
4
+ }
5
+ //# sourceMappingURL=options.d.ts.map
@@ -0,0 +1,4 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ export {};
4
+ //# sourceMappingURL=options.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"options.js","sourceRoot":"","sources":["../../../../src/api/operations/options.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { OperationOptions } from \"@azure-rest/core-client\";\n\n/** Optional parameters. */\nexport interface OperationsListOptionalParams extends OperationOptions {}\n"]}
@@ -0,0 +1,3 @@
1
+ export { post, get } from "./operations.js";
2
+ export { SpotPlacementScoresPostOptionalParams, SpotPlacementScoresGetOptionalParams, } from "./options.js";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,4 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ export { post, get } from "./operations.js";
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/spotPlacementScores/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport { post, get } from \"./operations.js\";\nexport {\n SpotPlacementScoresPostOptionalParams,\n SpotPlacementScoresGetOptionalParams,\n} from \"./options.js\";\n"]}
@@ -0,0 +1,13 @@
1
+ import type { ComputeRecommenderManagementContext as Client } from "../index.js";
2
+ import type { ComputeDiagnosticBase, SpotPlacementScoresInput, SpotPlacementScoresResponse } from "../../models/models.js";
3
+ import type { SpotPlacementScoresPostOptionalParams, SpotPlacementScoresGetOptionalParams } from "./options.js";
4
+ import type { StreamableMethod, PathUncheckedResponse } from "@azure-rest/core-client";
5
+ export declare function _postSend(context: Client, location: string, spotPlacementScoresInput: SpotPlacementScoresInput, options?: SpotPlacementScoresPostOptionalParams): StreamableMethod;
6
+ export declare function _postDeserialize(result: PathUncheckedResponse): Promise<SpotPlacementScoresResponse>;
7
+ /** Generates placement scores for Spot VM skus. */
8
+ export declare function post(context: Client, location: string, spotPlacementScoresInput: SpotPlacementScoresInput, options?: SpotPlacementScoresPostOptionalParams): Promise<SpotPlacementScoresResponse>;
9
+ export declare function _getSend(context: Client, location: string, options?: SpotPlacementScoresGetOptionalParams): StreamableMethod;
10
+ export declare function _getDeserialize(result: PathUncheckedResponse): Promise<ComputeDiagnosticBase>;
11
+ /** Gets Spot Placement Scores metadata. */
12
+ export declare function get(context: Client, location: string, options?: SpotPlacementScoresGetOptionalParams): Promise<ComputeDiagnosticBase>;
13
+ //# sourceMappingURL=operations.d.ts.map
@@ -0,0 +1,68 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ import { errorResponseDeserializer, computeDiagnosticBaseDeserializer, spotPlacementScoresInputSerializer, spotPlacementScoresResponseDeserializer, } from "../../models/models.js";
4
+ import { expandUrlTemplate } from "../../static-helpers/urlTemplate.js";
5
+ import { createRestError, operationOptionsToRequestParameters } from "@azure-rest/core-client";
6
+ export function _postSend(context, location, spotPlacementScoresInput, options = { requestOptions: {} }) {
7
+ const path = expandUrlTemplate("/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/placementScores/spot/generate{?api%2Dversion}", {
8
+ subscriptionId: context.subscriptionId,
9
+ location: location,
10
+ "api%2Dversion": context.apiVersion,
11
+ }, {
12
+ allowReserved: options?.requestOptions?.skipUrlEncoding,
13
+ });
14
+ return context.path(path).post({
15
+ ...operationOptionsToRequestParameters(options),
16
+ contentType: "application/json",
17
+ headers: {
18
+ accept: "application/json",
19
+ ...options.requestOptions?.headers,
20
+ },
21
+ body: spotPlacementScoresInputSerializer(spotPlacementScoresInput),
22
+ });
23
+ }
24
+ export async function _postDeserialize(result) {
25
+ const expectedStatuses = ["200"];
26
+ if (!expectedStatuses.includes(result.status)) {
27
+ const error = createRestError(result);
28
+ error.details = errorResponseDeserializer(result.body);
29
+ throw error;
30
+ }
31
+ return spotPlacementScoresResponseDeserializer(result.body);
32
+ }
33
+ /** Generates placement scores for Spot VM skus. */
34
+ export async function post(context, location, spotPlacementScoresInput, options = { requestOptions: {} }) {
35
+ const result = await _postSend(context, location, spotPlacementScoresInput, options);
36
+ return _postDeserialize(result);
37
+ }
38
+ export function _getSend(context, location, options = { requestOptions: {} }) {
39
+ const path = expandUrlTemplate("/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/placementScores/spot{?api%2Dversion}", {
40
+ subscriptionId: context.subscriptionId,
41
+ location: location,
42
+ "api%2Dversion": context.apiVersion,
43
+ }, {
44
+ allowReserved: options?.requestOptions?.skipUrlEncoding,
45
+ });
46
+ return context.path(path).get({
47
+ ...operationOptionsToRequestParameters(options),
48
+ headers: {
49
+ accept: "application/json",
50
+ ...options.requestOptions?.headers,
51
+ },
52
+ });
53
+ }
54
+ export async function _getDeserialize(result) {
55
+ const expectedStatuses = ["200"];
56
+ if (!expectedStatuses.includes(result.status)) {
57
+ const error = createRestError(result);
58
+ error.details = errorResponseDeserializer(result.body);
59
+ throw error;
60
+ }
61
+ return computeDiagnosticBaseDeserializer(result.body);
62
+ }
63
+ /** Gets Spot Placement Scores metadata. */
64
+ export async function get(context, location, options = { requestOptions: {} }) {
65
+ const result = await _getSend(context, location, options);
66
+ return _getDeserialize(result);
67
+ }
68
+ //# sourceMappingURL=operations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../../src/api/spotPlacementScores/operations.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAQlC,OAAO,EACL,yBAAyB,EACzB,iCAAiC,EACjC,kCAAkC,EAClC,uCAAuC,GACxC,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AAMxE,OAAO,EAAE,eAAe,EAAE,mCAAmC,EAAE,MAAM,yBAAyB,CAAC;AAE/F,MAAM,UAAU,SAAS,CACvB,OAAe,EACf,QAAgB,EAChB,wBAAkD,EAClD,UAAiD,EAAE,cAAc,EAAE,EAAE,EAAE;IAEvE,MAAM,IAAI,GAAG,iBAAiB,CAC5B,gIAAgI,EAChI;QACE,cAAc,EAAE,OAAO,CAAC,cAAc;QACtC,QAAQ,EAAE,QAAQ;QAClB,eAAe,EAAE,OAAO,CAAC,UAAU;KACpC,EACD;QACE,aAAa,EAAE,OAAO,EAAE,cAAc,EAAE,eAAe;KACxD,CACF,CAAC;IACF,OAAO,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC;QAC7B,GAAG,mCAAmC,CAAC,OAAO,CAAC;QAC/C,WAAW,EAAE,kBAAkB;QAC/B,OAAO,EAAE;YACP,MAAM,EAAE,kBAAkB;YAC1B,GAAG,OAAO,CAAC,cAAc,EAAE,OAAO;SACnC;QACD,IAAI,EAAE,kCAAkC,CAAC,wBAAwB,CAAC;KACnE,CAAC,CAAC;AACL,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,gBAAgB,CACpC,MAA6B;IAE7B,MAAM,gBAAgB,GAAG,CAAC,KAAK,CAAC,CAAC;IACjC,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;QAC9C,MAAM,KAAK,GAAG,eAAe,CAAC,MAAM,CAAC,CAAC;QACtC,KAAK,CAAC,OAAO,GAAG,yBAAyB,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QACvD,MAAM,KAAK,CAAC;IACd,CAAC;IAED,OAAO,uCAAuC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AAC9D,CAAC;AAED,mDAAmD;AACnD,MAAM,CAAC,KAAK,UAAU,IAAI,CACxB,OAAe,EACf,QAAgB,EAChB,wBAAkD,EAClD,UAAiD,EAAE,cAAc,EAAE,EAAE,EAAE;IAEvE,MAAM,MAAM,GAAG,MAAM,SAAS,CAAC,OAAO,EAAE,QAAQ,EAAE,wBAAwB,EAAE,OAAO,CAAC,CAAC;IACrF,OAAO,gBAAgB,CAAC,MAAM,CAAC,CAAC;AAClC,CAAC;AAED,MAAM,UAAU,QAAQ,CACtB,OAAe,EACf,QAAgB,EAChB,UAAgD,EAAE,cAAc,EAAE,EAAE,EAAE;IAEtE,MAAM,IAAI,GAAG,iBAAiB,CAC5B,uHAAuH,EACvH;QACE,cAAc,EAAE,OAAO,CAAC,cAAc;QACtC,QAAQ,EAAE,QAAQ;QAClB,eAAe,EAAE,OAAO,CAAC,UAAU;KACpC,EACD;QACE,aAAa,EAAE,OAAO,EAAE,cAAc,EAAE,eAAe;KACxD,CACF,CAAC;IACF,OAAO,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC;QAC5B,GAAG,mCAAmC,CAAC,OAAO,CAAC;QAC/C,OAAO,EAAE;YACP,MAAM,EAAE,kBAAkB;YAC1B,GAAG,OAAO,CAAC,cAAc,EAAE,OAAO;SACnC;KACF,CAAC,CAAC;AACL,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,eAAe,CACnC,MAA6B;IAE7B,MAAM,gBAAgB,GAAG,CAAC,KAAK,CAAC,CAAC;IACjC,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;QAC9C,MAAM,KAAK,GAAG,eAAe,CAAC,MAAM,CAAC,CAAC;QACtC,KAAK,CAAC,OAAO,GAAG,yBAAyB,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QACvD,MAAM,KAAK,CAAC;IACd,CAAC;IAED,OAAO,iCAAiC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AACxD,CAAC;AAED,2CAA2C;AAC3C,MAAM,CAAC,KAAK,UAAU,GAAG,CACvB,OAAe,EACf,QAAgB,EAChB,UAAgD,EAAE,cAAc,EAAE,EAAE,EAAE;IAEtE,MAAM,MAAM,GAAG,MAAM,QAAQ,CAAC,OAAO,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC;IAC1D,OAAO,eAAe,CAAC,MAAM,CAAC,CAAC;AACjC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { ComputeRecommenderManagementContext as Client } from \"../index.js\";\nimport type {\n ComputeDiagnosticBase,\n SpotPlacementScoresInput,\n SpotPlacementScoresResponse,\n} from \"../../models/models.js\";\nimport {\n errorResponseDeserializer,\n computeDiagnosticBaseDeserializer,\n spotPlacementScoresInputSerializer,\n spotPlacementScoresResponseDeserializer,\n} from \"../../models/models.js\";\nimport { expandUrlTemplate } from \"../../static-helpers/urlTemplate.js\";\nimport type {\n SpotPlacementScoresPostOptionalParams,\n SpotPlacementScoresGetOptionalParams,\n} from \"./options.js\";\nimport type { StreamableMethod, PathUncheckedResponse } from \"@azure-rest/core-client\";\nimport { createRestError, operationOptionsToRequestParameters } from \"@azure-rest/core-client\";\n\nexport function _postSend(\n context: Client,\n location: string,\n spotPlacementScoresInput: SpotPlacementScoresInput,\n options: SpotPlacementScoresPostOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/placementScores/spot/generate{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n location: location,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).post({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n body: spotPlacementScoresInputSerializer(spotPlacementScoresInput),\n });\n}\n\nexport async function _postDeserialize(\n result: PathUncheckedResponse,\n): Promise<SpotPlacementScoresResponse> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return spotPlacementScoresResponseDeserializer(result.body);\n}\n\n/** Generates placement scores for Spot VM skus. */\nexport async function post(\n context: Client,\n location: string,\n spotPlacementScoresInput: SpotPlacementScoresInput,\n options: SpotPlacementScoresPostOptionalParams = { requestOptions: {} },\n): Promise<SpotPlacementScoresResponse> {\n const result = await _postSend(context, location, spotPlacementScoresInput, options);\n return _postDeserialize(result);\n}\n\nexport function _getSend(\n context: Client,\n location: string,\n options: SpotPlacementScoresGetOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/placementScores/spot{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n location: location,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _getDeserialize(\n result: PathUncheckedResponse,\n): Promise<ComputeDiagnosticBase> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return computeDiagnosticBaseDeserializer(result.body);\n}\n\n/** Gets Spot Placement Scores metadata. */\nexport async function get(\n context: Client,\n location: string,\n options: SpotPlacementScoresGetOptionalParams = { requestOptions: {} },\n): Promise<ComputeDiagnosticBase> {\n const result = await _getSend(context, location, options);\n return _getDeserialize(result);\n}\n"]}
@@ -0,0 +1,8 @@
1
+ import type { OperationOptions } from "@azure-rest/core-client";
2
+ /** Optional parameters. */
3
+ export interface SpotPlacementScoresPostOptionalParams extends OperationOptions {
4
+ }
5
+ /** Optional parameters. */
6
+ export interface SpotPlacementScoresGetOptionalParams extends OperationOptions {
7
+ }
8
+ //# sourceMappingURL=options.d.ts.map
@@ -0,0 +1,4 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ export {};
4
+ //# sourceMappingURL=options.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"options.js","sourceRoot":"","sources":["../../../../src/api/spotPlacementScores/options.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { OperationOptions } from \"@azure-rest/core-client\";\n\n/** Optional parameters. */\nexport interface SpotPlacementScoresPostOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface SpotPlacementScoresGetOptionalParams extends OperationOptions {}\n"]}
@@ -0,0 +1,3 @@
1
+ export { OperationsOperations } from "./operations/index.js";
2
+ export { SpotPlacementScoresOperations } from "./spotPlacementScores/index.js";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,4 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ export {};
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/classic/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport { OperationsOperations } from \"./operations/index.js\";\nexport { SpotPlacementScoresOperations } from \"./spotPlacementScores/index.js\";\n"]}
@@ -0,0 +1,11 @@
1
+ import type { ComputeRecommenderManagementContext } from "../../api/computeRecommenderManagementContext.js";
2
+ import type { OperationsListOptionalParams } from "../../api/operations/options.js";
3
+ import type { Operation } from "../../models/models.js";
4
+ import type { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js";
5
+ /** Interface representing a Operations operations. */
6
+ export interface OperationsOperations {
7
+ /** List the operations for the provider */
8
+ list: (options?: OperationsListOptionalParams) => PagedAsyncIterableIterator<Operation>;
9
+ }
10
+ export declare function _getOperationsOperations(context: ComputeRecommenderManagementContext): OperationsOperations;
11
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,14 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ import { list } from "../../api/operations/operations.js";
4
+ function _getOperations(context) {
5
+ return {
6
+ list: (options) => list(context, options),
7
+ };
8
+ }
9
+ export function _getOperationsOperations(context) {
10
+ return {
11
+ ..._getOperations(context),
12
+ };
13
+ }
14
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/classic/operations/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EAAE,IAAI,EAAE,MAAM,oCAAoC,CAAC;AAW1D,SAAS,cAAc,CAAC,OAA4C;IAClE,OAAO;QACL,IAAI,EAAE,CAAC,OAAsC,EAAE,EAAE,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,CAAC;KACzE,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,wBAAwB,CACtC,OAA4C;IAE5C,OAAO;QACL,GAAG,cAAc,CAAC,OAAO,CAAC;KAC3B,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { ComputeRecommenderManagementContext } from \"../../api/computeRecommenderManagementContext.js\";\nimport { list } from \"../../api/operations/operations.js\";\nimport type { OperationsListOptionalParams } from \"../../api/operations/options.js\";\nimport type { Operation } from \"../../models/models.js\";\nimport type { PagedAsyncIterableIterator } from \"../../static-helpers/pagingHelpers.js\";\n\n/** Interface representing a Operations operations. */\nexport interface OperationsOperations {\n /** List the operations for the provider */\n list: (options?: OperationsListOptionalParams) => PagedAsyncIterableIterator<Operation>;\n}\n\nfunction _getOperations(context: ComputeRecommenderManagementContext) {\n return {\n list: (options?: OperationsListOptionalParams) => list(context, options),\n };\n}\n\nexport function _getOperationsOperations(\n context: ComputeRecommenderManagementContext,\n): OperationsOperations {\n return {\n ..._getOperations(context),\n };\n}\n"]}
@@ -0,0 +1,12 @@
1
+ import type { ComputeRecommenderManagementContext } from "../../api/computeRecommenderManagementContext.js";
2
+ import type { SpotPlacementScoresPostOptionalParams, SpotPlacementScoresGetOptionalParams } from "../../api/spotPlacementScores/options.js";
3
+ import type { ComputeDiagnosticBase, SpotPlacementScoresInput, SpotPlacementScoresResponse } from "../../models/models.js";
4
+ /** Interface representing a SpotPlacementScores operations. */
5
+ export interface SpotPlacementScoresOperations {
6
+ /** Generates placement scores for Spot VM skus. */
7
+ post: (location: string, spotPlacementScoresInput: SpotPlacementScoresInput, options?: SpotPlacementScoresPostOptionalParams) => Promise<SpotPlacementScoresResponse>;
8
+ /** Gets Spot Placement Scores metadata. */
9
+ get: (location: string, options?: SpotPlacementScoresGetOptionalParams) => Promise<ComputeDiagnosticBase>;
10
+ }
11
+ export declare function _getSpotPlacementScoresOperations(context: ComputeRecommenderManagementContext): SpotPlacementScoresOperations;
12
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,15 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ import { post, get } from "../../api/spotPlacementScores/operations.js";
4
+ function _getSpotPlacementScores(context) {
5
+ return {
6
+ post: (location, spotPlacementScoresInput, options) => post(context, location, spotPlacementScoresInput, options),
7
+ get: (location, options) => get(context, location, options),
8
+ };
9
+ }
10
+ export function _getSpotPlacementScoresOperations(context) {
11
+ return {
12
+ ..._getSpotPlacementScores(context),
13
+ };
14
+ }
15
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/classic/spotPlacementScores/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,6CAA6C,CAAC;AA0BxE,SAAS,uBAAuB,CAAC,OAA4C;IAC3E,OAAO;QACL,IAAI,EAAE,CACJ,QAAgB,EAChB,wBAAkD,EAClD,OAA+C,EAC/C,EAAE,CAAC,IAAI,CAAC,OAAO,EAAE,QAAQ,EAAE,wBAAwB,EAAE,OAAO,CAAC;QAC/D,GAAG,EAAE,CAAC,QAAgB,EAAE,OAA8C,EAAE,EAAE,CACxE,GAAG,CAAC,OAAO,EAAE,QAAQ,EAAE,OAAO,CAAC;KAClC,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,iCAAiC,CAC/C,OAA4C;IAE5C,OAAO;QACL,GAAG,uBAAuB,CAAC,OAAO,CAAC;KACpC,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { ComputeRecommenderManagementContext } from \"../../api/computeRecommenderManagementContext.js\";\nimport { post, get } from \"../../api/spotPlacementScores/operations.js\";\nimport type {\n SpotPlacementScoresPostOptionalParams,\n SpotPlacementScoresGetOptionalParams,\n} from \"../../api/spotPlacementScores/options.js\";\nimport type {\n ComputeDiagnosticBase,\n SpotPlacementScoresInput,\n SpotPlacementScoresResponse,\n} from \"../../models/models.js\";\n\n/** Interface representing a SpotPlacementScores operations. */\nexport interface SpotPlacementScoresOperations {\n /** Generates placement scores for Spot VM skus. */\n post: (\n location: string,\n spotPlacementScoresInput: SpotPlacementScoresInput,\n options?: SpotPlacementScoresPostOptionalParams,\n ) => Promise<SpotPlacementScoresResponse>;\n /** Gets Spot Placement Scores metadata. */\n get: (\n location: string,\n options?: SpotPlacementScoresGetOptionalParams,\n ) => Promise<ComputeDiagnosticBase>;\n}\n\nfunction _getSpotPlacementScores(context: ComputeRecommenderManagementContext) {\n return {\n post: (\n location: string,\n spotPlacementScoresInput: SpotPlacementScoresInput,\n options?: SpotPlacementScoresPostOptionalParams,\n ) => post(context, location, spotPlacementScoresInput, options),\n get: (location: string, options?: SpotPlacementScoresGetOptionalParams) =>\n get(context, location, options),\n };\n}\n\nexport function _getSpotPlacementScoresOperations(\n context: ComputeRecommenderManagementContext,\n): SpotPlacementScoresOperations {\n return {\n ..._getSpotPlacementScores(context),\n };\n}\n"]}
@@ -0,0 +1,18 @@
1
+ import type { ComputeRecommenderManagementClientOptionalParams } from "./api/index.js";
2
+ import type { OperationsOperations } from "./classic/operations/index.js";
3
+ import type { SpotPlacementScoresOperations } from "./classic/spotPlacementScores/index.js";
4
+ import type { TokenCredential } from "@azure/core-auth";
5
+ import type { Pipeline } from "@azure/core-rest-pipeline";
6
+ export { ComputeRecommenderManagementClientOptionalParams } from "./api/computeRecommenderManagementContext.js";
7
+ export declare class ComputeRecommenderManagementClient {
8
+ private _client;
9
+ /** The pipeline used by this client to make requests */
10
+ readonly pipeline: Pipeline;
11
+ /** The Compute Recommender Resource Provider Client */
12
+ constructor(credential: TokenCredential, subscriptionId: string, options?: ComputeRecommenderManagementClientOptionalParams);
13
+ /** The operation groups for spotPlacementScores */
14
+ readonly spotPlacementScores: SpotPlacementScoresOperations;
15
+ /** The operation groups for operations */
16
+ readonly operations: OperationsOperations;
17
+ }
18
+ //# sourceMappingURL=computeRecommenderManagementClient.d.ts.map
@@ -0,0 +1,29 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ import { createComputeRecommenderManagement } from "./api/index.js";
4
+ import { _getOperationsOperations } from "./classic/operations/index.js";
5
+ import { _getSpotPlacementScoresOperations } from "./classic/spotPlacementScores/index.js";
6
+ export class ComputeRecommenderManagementClient {
7
+ _client;
8
+ /** The pipeline used by this client to make requests */
9
+ pipeline;
10
+ /** The Compute Recommender Resource Provider Client */
11
+ constructor(credential, subscriptionId, options = {}) {
12
+ const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix;
13
+ const userAgentPrefix = prefixFromOptions
14
+ ? `${prefixFromOptions} azsdk-js-client`
15
+ : `azsdk-js-client`;
16
+ this._client = createComputeRecommenderManagement(credential, subscriptionId, {
17
+ ...options,
18
+ userAgentOptions: { userAgentPrefix },
19
+ });
20
+ this.pipeline = this._client.pipeline;
21
+ this.spotPlacementScores = _getSpotPlacementScoresOperations(this._client);
22
+ this.operations = _getOperationsOperations(this._client);
23
+ }
24
+ /** The operation groups for spotPlacementScores */
25
+ spotPlacementScores;
26
+ /** The operation groups for operations */
27
+ operations;
28
+ }
29
+ //# sourceMappingURL=computeRecommenderManagementClient.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"computeRecommenderManagementClient.js","sourceRoot":"","sources":["../../src/computeRecommenderManagementClient.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAMlC,OAAO,EAAE,kCAAkC,EAAE,MAAM,gBAAgB,CAAC;AAEpE,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AAEzE,OAAO,EAAE,iCAAiC,EAAE,MAAM,wCAAwC,CAAC;AAM3F,MAAM,OAAO,kCAAkC;IACrC,OAAO,CAAsC;IACrD,wDAAwD;IACxC,QAAQ,CAAW;IAEnC,uDAAuD;IACvD,YACE,UAA2B,EAC3B,cAAsB,EACtB,UAA4D,EAAE;QAE9D,MAAM,iBAAiB,GAAG,OAAO,EAAE,gBAAgB,EAAE,eAAe,CAAC;QACrE,MAAM,eAAe,GAAG,iBAAiB;YACvC,CAAC,CAAC,GAAG,iBAAiB,kBAAkB;YACxC,CAAC,CAAC,iBAAiB,CAAC;QACtB,IAAI,CAAC,OAAO,GAAG,kCAAkC,CAAC,UAAU,EAAE,cAAc,EAAE;YAC5E,GAAG,OAAO;YACV,gBAAgB,EAAE,EAAE,eAAe,EAAE;SACtC,CAAC,CAAC;QACH,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC;QACtC,IAAI,CAAC,mBAAmB,GAAG,iCAAiC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC3E,IAAI,CAAC,UAAU,GAAG,wBAAwB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC3D,CAAC;IAED,mDAAmD;IACnC,mBAAmB,CAAgC;IACnE,0CAA0C;IAC1B,UAAU,CAAuB;CAClD","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type {\n ComputeRecommenderManagementContext,\n ComputeRecommenderManagementClientOptionalParams,\n} from \"./api/index.js\";\nimport { createComputeRecommenderManagement } from \"./api/index.js\";\nimport type { OperationsOperations } from \"./classic/operations/index.js\";\nimport { _getOperationsOperations } from \"./classic/operations/index.js\";\nimport type { SpotPlacementScoresOperations } from \"./classic/spotPlacementScores/index.js\";\nimport { _getSpotPlacementScoresOperations } from \"./classic/spotPlacementScores/index.js\";\nimport type { TokenCredential } from \"@azure/core-auth\";\nimport type { Pipeline } from \"@azure/core-rest-pipeline\";\n\nexport { ComputeRecommenderManagementClientOptionalParams } from \"./api/computeRecommenderManagementContext.js\";\n\nexport class ComputeRecommenderManagementClient {\n private _client: ComputeRecommenderManagementContext;\n /** The pipeline used by this client to make requests */\n public readonly pipeline: Pipeline;\n\n /** The Compute Recommender Resource Provider Client */\n constructor(\n credential: TokenCredential,\n subscriptionId: string,\n options: ComputeRecommenderManagementClientOptionalParams = {},\n ) {\n const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix;\n const userAgentPrefix = prefixFromOptions\n ? `${prefixFromOptions} azsdk-js-client`\n : `azsdk-js-client`;\n this._client = createComputeRecommenderManagement(credential, subscriptionId, {\n ...options,\n userAgentOptions: { userAgentPrefix },\n });\n this.pipeline = this._client.pipeline;\n this.spotPlacementScores = _getSpotPlacementScoresOperations(this._client);\n this.operations = _getOperationsOperations(this._client);\n }\n\n /** The operation groups for spotPlacementScores */\n public readonly spotPlacementScores: SpotPlacementScoresOperations;\n /** The operation groups for operations */\n public readonly operations: OperationsOperations;\n}\n"]}