@azure/arm-aiinfraoptimization 0.0.0-stage → 1.0.0-beta.2
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.
- package/LICENSE +21 -0
- package/README.md +114 -2
- package/dist/browser/aiInfraOptimizationClient.d.ts +18 -0
- package/dist/browser/aiInfraOptimizationClient.js +22 -0
- package/dist/browser/aiInfraOptimizationClient.js.map +1 -0
- package/dist/browser/api/aiInfraOptimizationContext.d.ts +22 -0
- package/dist/browser/api/aiInfraOptimizationContext.js +30 -0
- package/dist/browser/api/aiInfraOptimizationContext.js.map +1 -0
- package/dist/browser/api/index.d.ts +3 -0
- package/dist/browser/api/index.js +4 -0
- package/dist/browser/api/index.js.map +1 -0
- package/dist/browser/api/operations/index.d.ts +3 -0
- package/dist/browser/api/operations/index.js +4 -0
- package/dist/browser/api/operations/index.js.map +1 -0
- package/dist/browser/api/operations/operations.d.ts +10 -0
- package/dist/browser/api/operations/operations.js +37 -0
- package/dist/browser/api/operations/operations.js.map +1 -0
- package/dist/browser/api/operations/options.d.ts +5 -0
- package/dist/browser/api/operations/options.js +4 -0
- package/dist/browser/api/operations/options.js.map +1 -0
- package/dist/browser/api/recommendations/index.d.ts +3 -0
- package/dist/browser/api/recommendations/index.js +4 -0
- package/dist/browser/api/recommendations/index.js.map +1 -0
- package/dist/browser/api/recommendations/operations.d.ts +9 -0
- package/dist/browser/api/recommendations/operations.js +37 -0
- package/dist/browser/api/recommendations/operations.js.map +1 -0
- package/dist/browser/api/recommendations/options.d.ts +5 -0
- package/dist/browser/api/recommendations/options.js +4 -0
- package/dist/browser/api/recommendations/options.js.map +1 -0
- package/dist/browser/classic/index.d.ts +3 -0
- package/dist/browser/classic/index.js +4 -0
- package/dist/browser/classic/index.js.map +1 -0
- package/dist/browser/classic/operations/index.d.ts +11 -0
- package/dist/browser/classic/operations/index.js +14 -0
- package/dist/browser/classic/operations/index.js.map +1 -0
- package/dist/browser/classic/recommendations/index.d.ts +10 -0
- package/dist/browser/classic/recommendations/index.js +14 -0
- package/dist/browser/classic/recommendations/index.js.map +1 -0
- package/dist/browser/index.d.ts +15 -0
- package/dist/browser/index.js +8 -0
- package/dist/browser/index.js.map +1 -0
- package/dist/browser/logger.d.ts +2 -0
- package/dist/browser/logger.js +5 -0
- package/dist/browser/logger.js.map +1 -0
- package/dist/browser/models/index.d.ts +3 -0
- package/dist/browser/models/index.js +4 -0
- package/dist/browser/models/index.js.map +1 -0
- package/dist/browser/models/models.d.ts +652 -0
- package/dist/browser/models/models.js +447 -0
- package/dist/browser/models/models.js.map +1 -0
- package/dist/browser/package.json +8 -0
- package/dist/browser/static-helpers/cloudSettingHelpers.d.ts +22 -0
- package/dist/browser/static-helpers/cloudSettingHelpers.js +38 -0
- package/dist/browser/static-helpers/cloudSettingHelpers.js.map +1 -0
- package/dist/browser/static-helpers/pagingHelpers.d.ts +74 -0
- package/dist/browser/static-helpers/pagingHelpers.js +143 -0
- package/dist/browser/static-helpers/pagingHelpers.js.map +1 -0
- package/dist/browser/static-helpers/urlTemplate.d.ts +5 -0
- package/dist/browser/static-helpers/urlTemplate.js +202 -0
- package/dist/browser/static-helpers/urlTemplate.js.map +1 -0
- package/dist/commonjs/aiInfraOptimizationClient.d.ts +18 -0
- package/dist/commonjs/aiInfraOptimizationClient.js +46 -0
- package/dist/commonjs/aiInfraOptimizationClient.js.map +7 -0
- package/dist/commonjs/api/aiInfraOptimizationContext.d.ts +22 -0
- package/dist/commonjs/api/aiInfraOptimizationContext.js +61 -0
- package/dist/commonjs/api/aiInfraOptimizationContext.js.map +7 -0
- package/dist/commonjs/api/index.d.ts +3 -0
- package/dist/commonjs/api/index.js +28 -0
- package/dist/commonjs/api/index.js.map +7 -0
- package/dist/commonjs/api/operations/index.d.ts +3 -0
- package/dist/commonjs/api/operations/index.js +28 -0
- package/dist/commonjs/api/operations/index.js.map +7 -0
- package/dist/commonjs/api/operations/operations.d.ts +10 -0
- package/dist/commonjs/api/operations/operations.js +74 -0
- package/dist/commonjs/api/operations/operations.js.map +7 -0
- package/dist/commonjs/api/operations/options.d.ts +5 -0
- package/dist/commonjs/api/operations/options.js +16 -0
- package/dist/commonjs/api/operations/options.js.map +7 -0
- package/dist/commonjs/api/recommendations/index.d.ts +3 -0
- package/dist/commonjs/api/recommendations/index.js +28 -0
- package/dist/commonjs/api/recommendations/index.js.map +7 -0
- package/dist/commonjs/api/recommendations/operations.d.ts +9 -0
- package/dist/commonjs/api/recommendations/operations.js +68 -0
- package/dist/commonjs/api/recommendations/operations.js.map +7 -0
- package/dist/commonjs/api/recommendations/options.d.ts +5 -0
- package/dist/commonjs/api/recommendations/options.js +16 -0
- package/dist/commonjs/api/recommendations/options.js.map +7 -0
- package/dist/commonjs/classic/index.d.ts +3 -0
- package/dist/commonjs/classic/index.js +16 -0
- package/dist/commonjs/classic/index.js.map +7 -0
- package/dist/commonjs/classic/operations/index.d.ts +11 -0
- package/dist/commonjs/classic/operations/index.js +38 -0
- package/dist/commonjs/classic/operations/index.js.map +7 -0
- package/dist/commonjs/classic/recommendations/index.d.ts +10 -0
- package/dist/commonjs/classic/recommendations/index.js +38 -0
- package/dist/commonjs/classic/recommendations/index.js.map +7 -0
- package/dist/commonjs/index.d.ts +15 -0
- package/dist/commonjs/index.js +67 -0
- package/dist/commonjs/index.js.map +7 -0
- package/dist/commonjs/logger.d.ts +2 -0
- package/dist/commonjs/logger.js +29 -0
- package/dist/commonjs/logger.js.map +7 -0
- package/dist/commonjs/models/index.d.ts +3 -0
- package/dist/commonjs/models/index.js +56 -0
- package/dist/commonjs/models/index.js.map +7 -0
- package/dist/commonjs/models/models.d.ts +652 -0
- package/dist/commonjs/models/models.js +488 -0
- package/dist/commonjs/models/models.js.map +7 -0
- package/dist/commonjs/package.json +8 -0
- package/dist/commonjs/static-helpers/cloudSettingHelpers.d.ts +22 -0
- package/dist/commonjs/static-helpers/cloudSettingHelpers.js +52 -0
- package/dist/commonjs/static-helpers/cloudSettingHelpers.js.map +7 -0
- package/dist/commonjs/static-helpers/pagingHelpers.d.ts +74 -0
- package/dist/commonjs/static-helpers/pagingHelpers.js +143 -0
- package/dist/commonjs/static-helpers/pagingHelpers.js.map +7 -0
- package/dist/commonjs/static-helpers/urlTemplate.d.ts +5 -0
- package/dist/commonjs/static-helpers/urlTemplate.js +197 -0
- package/dist/commonjs/static-helpers/urlTemplate.js.map +7 -0
- package/dist/commonjs/tsdoc-metadata.json +11 -0
- package/dist/esm/aiInfraOptimizationClient.d.ts +18 -0
- package/dist/esm/aiInfraOptimizationClient.js +22 -0
- package/dist/esm/aiInfraOptimizationClient.js.map +1 -0
- package/dist/esm/api/aiInfraOptimizationContext.d.ts +22 -0
- package/dist/esm/api/aiInfraOptimizationContext.js +30 -0
- package/dist/esm/api/aiInfraOptimizationContext.js.map +1 -0
- package/dist/esm/api/index.d.ts +3 -0
- package/dist/esm/api/index.js +4 -0
- package/dist/esm/api/index.js.map +1 -0
- package/dist/esm/api/operations/index.d.ts +3 -0
- package/dist/esm/api/operations/index.js +4 -0
- package/dist/esm/api/operations/index.js.map +1 -0
- package/dist/esm/api/operations/operations.d.ts +10 -0
- package/dist/esm/api/operations/operations.js +37 -0
- package/dist/esm/api/operations/operations.js.map +1 -0
- package/dist/esm/api/operations/options.d.ts +5 -0
- package/dist/esm/api/operations/options.js +4 -0
- package/dist/esm/api/operations/options.js.map +1 -0
- package/dist/esm/api/recommendations/index.d.ts +3 -0
- package/dist/esm/api/recommendations/index.js +4 -0
- package/dist/esm/api/recommendations/index.js.map +1 -0
- package/dist/esm/api/recommendations/operations.d.ts +9 -0
- package/dist/esm/api/recommendations/operations.js +37 -0
- package/dist/esm/api/recommendations/operations.js.map +1 -0
- package/dist/esm/api/recommendations/options.d.ts +5 -0
- package/dist/esm/api/recommendations/options.js +4 -0
- package/dist/esm/api/recommendations/options.js.map +1 -0
- package/dist/esm/classic/index.d.ts +3 -0
- package/dist/esm/classic/index.js +4 -0
- package/dist/esm/classic/index.js.map +1 -0
- package/dist/esm/classic/operations/index.d.ts +11 -0
- package/dist/esm/classic/operations/index.js +14 -0
- package/dist/esm/classic/operations/index.js.map +1 -0
- package/dist/esm/classic/recommendations/index.d.ts +10 -0
- package/dist/esm/classic/recommendations/index.js +14 -0
- package/dist/esm/classic/recommendations/index.js.map +1 -0
- package/dist/esm/index.d.ts +15 -0
- package/dist/esm/index.js +8 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/logger.d.ts +2 -0
- package/dist/esm/logger.js +5 -0
- package/dist/esm/logger.js.map +1 -0
- package/dist/esm/models/index.d.ts +3 -0
- package/dist/esm/models/index.js +4 -0
- package/dist/esm/models/index.js.map +1 -0
- package/dist/esm/models/models.d.ts +652 -0
- package/dist/esm/models/models.js +447 -0
- package/dist/esm/models/models.js.map +1 -0
- package/dist/esm/package.json +8 -0
- package/dist/esm/static-helpers/cloudSettingHelpers.d.ts +22 -0
- package/dist/esm/static-helpers/cloudSettingHelpers.js +38 -0
- package/dist/esm/static-helpers/cloudSettingHelpers.js.map +1 -0
- package/dist/esm/static-helpers/pagingHelpers.d.ts +74 -0
- package/dist/esm/static-helpers/pagingHelpers.js +143 -0
- package/dist/esm/static-helpers/pagingHelpers.js.map +1 -0
- package/dist/esm/static-helpers/urlTemplate.d.ts +5 -0
- package/dist/esm/static-helpers/urlTemplate.js +202 -0
- package/dist/esm/static-helpers/urlTemplate.js.map +1 -0
- package/package.json +165 -3
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
CHANGED
|
@@ -1,3 +1,115 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Azure AIInfraOptimization client library for JavaScript
|
|
2
2
|
|
|
3
|
-
This
|
|
3
|
+
This package contains an isomorphic SDK (runs both in Node.js and in browsers) for Azure AIInfraOptimization client.
|
|
4
|
+
|
|
5
|
+
Microsoft.AIInfraOptimization Resource Provider management API.
|
|
6
|
+
|
|
7
|
+
Key links:
|
|
8
|
+
|
|
9
|
+
- [Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/aiinfraoptimization/arm-aiinfraoptimization)
|
|
10
|
+
- [Package (NPM)](https://www.npmjs.com/package/@azure/arm-aiinfraoptimization)
|
|
11
|
+
- [API reference documentation](https://learn.microsoft.com/javascript/api/@azure/arm-aiinfraoptimization?view=azure-node-preview)
|
|
12
|
+
- [Samples](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/aiinfraoptimization/arm-aiinfraoptimization/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-aiinfraoptimization` package
|
|
28
|
+
|
|
29
|
+
Install the Azure AIInfraOptimization client library for JavaScript with `npm`:
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
npm install @azure/arm-aiinfraoptimization
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
### Create and authenticate a `AIInfraOptimizationClient`
|
|
36
|
+
|
|
37
|
+
To create a client object to access the Azure AIInfraOptimization API, you will need the `endpoint` of your Azure AIInfraOptimization resource and a `credential`. The Azure AIInfraOptimization client can use Microsoft Entra credentials to authenticate.
|
|
38
|
+
You can find the endpoint for your Azure AIInfraOptimization resource in the [Azure Portal][azure_portal].
|
|
39
|
+
|
|
40
|
+
You can authenticate with Microsoft Entra ID using a credential from the [@azure/identity][azure_identity] library or [an existing Microsoft Entra token](https://github.com/Azure/azure-sdk-for-js/blob/main/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 Microsoft Entra application and grant access to Azure AIInfraOptimization** 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 a Microsoft Entra application check out [this guide](https://learn.microsoft.com/entra/identity-platform/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 { AIInfraOptimizationClient } from "@azure/arm-aiinfraoptimization";
|
|
56
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
|
57
|
+
|
|
58
|
+
const subscriptionId = "00000000-0000-0000-0000-000000000000";
|
|
59
|
+
const client = new AIInfraOptimizationClient(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 { AIInfraOptimizationClient } from "@azure/arm-aiinfraoptimization";
|
|
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 AIInfraOptimizationClient(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
|
+
### AIInfraOptimizationClient
|
|
83
|
+
|
|
84
|
+
`AIInfraOptimizationClient` is the primary interface for developers using the Azure AIInfraOptimization client library. Explore the methods on this client object to understand the different features of the Azure AIInfraOptimization 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/aiinfraoptimization/arm-aiinfraoptimization/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,18 @@
|
|
|
1
|
+
import type { AIInfraOptimizationClientOptionalParams } from "./api/index.js";
|
|
2
|
+
import type { OperationsOperations } from "./classic/operations/index.js";
|
|
3
|
+
import type { RecommendationsOperations } from "./classic/recommendations/index.js";
|
|
4
|
+
import type { TokenCredential } from "@azure/core-auth";
|
|
5
|
+
import type { Pipeline } from "@azure/core-rest-pipeline";
|
|
6
|
+
export type { AIInfraOptimizationClientOptionalParams } from "./api/aiInfraOptimizationContext.js";
|
|
7
|
+
export declare class AIInfraOptimizationClient {
|
|
8
|
+
private _client;
|
|
9
|
+
/** The pipeline used by this client to make requests */
|
|
10
|
+
readonly pipeline: Pipeline;
|
|
11
|
+
/** Microsoft.AIInfraOptimization Resource Provider management API. */
|
|
12
|
+
constructor(credential: TokenCredential, subscriptionId: string, options?: AIInfraOptimizationClientOptionalParams);
|
|
13
|
+
/** The operation groups for recommendations */
|
|
14
|
+
readonly recommendations: RecommendationsOperations;
|
|
15
|
+
/** The operation groups for operations */
|
|
16
|
+
readonly operations: OperationsOperations;
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=aiInfraOptimizationClient.d.ts.map
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
import { createAIInfraOptimization } from "./api/index.js";
|
|
4
|
+
import { _getOperationsOperations } from "./classic/operations/index.js";
|
|
5
|
+
import { _getRecommendationsOperations } from "./classic/recommendations/index.js";
|
|
6
|
+
export class AIInfraOptimizationClient {
|
|
7
|
+
_client;
|
|
8
|
+
/** The pipeline used by this client to make requests */
|
|
9
|
+
pipeline;
|
|
10
|
+
/** Microsoft.AIInfraOptimization Resource Provider management API. */
|
|
11
|
+
constructor(credential, subscriptionId, options = {}) {
|
|
12
|
+
this._client = createAIInfraOptimization(credential, subscriptionId, options);
|
|
13
|
+
this.pipeline = this._client.pipeline;
|
|
14
|
+
this.recommendations = _getRecommendationsOperations(this._client);
|
|
15
|
+
this.operations = _getOperationsOperations(this._client);
|
|
16
|
+
}
|
|
17
|
+
/** The operation groups for recommendations */
|
|
18
|
+
recommendations;
|
|
19
|
+
/** The operation groups for operations */
|
|
20
|
+
operations;
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=aiInfraOptimizationClient.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"aiInfraOptimizationClient.js","sourceRoot":"","sources":["../../src/aiInfraOptimizationClient.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAMlC,OAAO,EAAE,yBAAyB,EAAE,MAAM,gBAAgB,CAAC;AAE3D,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AAEzE,OAAO,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AAMnF,MAAM,OAAO,yBAAyB;IAC5B,OAAO,CAA6B;IAC5C,wDAAwD;IACxC,QAAQ,CAAW;IAEnC,sEAAsE;IACtE,YACE,UAA2B,EAC3B,cAAsB,EACtB,UAAmD,EAAE;QAErD,IAAI,CAAC,OAAO,GAAG,yBAAyB,CAAC,UAAU,EAAE,cAAc,EAAE,OAAO,CAAC,CAAC;QAC9E,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC;QACtC,IAAI,CAAC,eAAe,GAAG,6BAA6B,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACnE,IAAI,CAAC,UAAU,GAAG,wBAAwB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC3D,CAAC;IAED,+CAA+C;IAC/B,eAAe,CAA4B;IAC3D,0CAA0C;IAC1B,UAAU,CAAuB;CAClD","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type {\n AIInfraOptimizationContext,\n AIInfraOptimizationClientOptionalParams,\n} from \"./api/index.js\";\nimport { createAIInfraOptimization } from \"./api/index.js\";\nimport type { OperationsOperations } from \"./classic/operations/index.js\";\nimport { _getOperationsOperations } from \"./classic/operations/index.js\";\nimport type { RecommendationsOperations } from \"./classic/recommendations/index.js\";\nimport { _getRecommendationsOperations } from \"./classic/recommendations/index.js\";\nimport type { TokenCredential } from \"@azure/core-auth\";\nimport type { Pipeline } from \"@azure/core-rest-pipeline\";\n\nexport type { AIInfraOptimizationClientOptionalParams } from \"./api/aiInfraOptimizationContext.js\";\n\nexport class AIInfraOptimizationClient {\n private _client: AIInfraOptimizationContext;\n /** The pipeline used by this client to make requests */\n public readonly pipeline: Pipeline;\n\n /** Microsoft.AIInfraOptimization Resource Provider management API. */\n constructor(\n credential: TokenCredential,\n subscriptionId: string,\n options: AIInfraOptimizationClientOptionalParams = {},\n ) {\n this._client = createAIInfraOptimization(credential, subscriptionId, options);\n this.pipeline = this._client.pipeline;\n this.recommendations = _getRecommendationsOperations(this._client);\n this.operations = _getOperationsOperations(this._client);\n }\n\n /** The operation groups for recommendations */\n public readonly recommendations: RecommendationsOperations;\n /** The operation groups for operations */\n public readonly operations: OperationsOperations;\n}\n"]}
|
|
@@ -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
|
+
/** Microsoft.AIInfraOptimization Resource Provider management API. */
|
|
5
|
+
export interface AIInfraOptimizationContext extends Client {
|
|
6
|
+
/** The ID of the target subscription. The value must be an UUID. */
|
|
7
|
+
subscriptionId: string;
|
|
8
|
+
/** The API version to use for this operation. */
|
|
9
|
+
/** Known values of {@link KnownVersions} that the service accepts. */
|
|
10
|
+
apiVersion?: string;
|
|
11
|
+
}
|
|
12
|
+
/** Optional parameters for the client. */
|
|
13
|
+
export interface AIInfraOptimizationClientOptionalParams 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
|
+
/** Microsoft.AIInfraOptimization Resource Provider management API. */
|
|
21
|
+
export declare function createAIInfraOptimization(credential: TokenCredential, subscriptionId: string, options?: AIInfraOptimizationClientOptionalParams): AIInfraOptimizationContext;
|
|
22
|
+
//# sourceMappingURL=aiInfraOptimizationContext.d.ts.map
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
import { logger } from "../logger.js";
|
|
4
|
+
import pkgJson from "@azure/arm-aiinfraoptimization/package.json" with { type: "json" };
|
|
5
|
+
import { getArmEndpoint } from "../static-helpers/cloudSettingHelpers.js";
|
|
6
|
+
import { getClient } from "@azure-rest/core-client";
|
|
7
|
+
/** Microsoft.AIInfraOptimization Resource Provider management API. */
|
|
8
|
+
export function createAIInfraOptimization(credential, subscriptionId, options = {}) {
|
|
9
|
+
const endpointUrl = options.endpoint ?? getArmEndpoint(options.cloudSetting) ?? "https://management.azure.com";
|
|
10
|
+
const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix;
|
|
11
|
+
const userAgentInfo = `azsdk-js-arm-aiinfraoptimization/${pkgJson.version}`;
|
|
12
|
+
const userAgentPrefix = prefixFromOptions
|
|
13
|
+
? `${prefixFromOptions} ${userAgentInfo}`
|
|
14
|
+
: `${userAgentInfo}`;
|
|
15
|
+
const { apiVersion: _, ...updatedOptions } = {
|
|
16
|
+
...options,
|
|
17
|
+
userAgentOptions: { userAgentPrefix },
|
|
18
|
+
loggingOptions: {
|
|
19
|
+
...options.loggingOptions,
|
|
20
|
+
logger: options.loggingOptions?.logger ?? logger.info,
|
|
21
|
+
},
|
|
22
|
+
credentials: {
|
|
23
|
+
scopes: options.credentials?.scopes ?? ["https://management.azure.com/.default"],
|
|
24
|
+
},
|
|
25
|
+
};
|
|
26
|
+
const clientContext = getClient(endpointUrl, credential, updatedOptions);
|
|
27
|
+
const apiVersion = options.apiVersion;
|
|
28
|
+
return { ...clientContext, apiVersion, subscriptionId };
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=aiInfraOptimizationContext.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"aiInfraOptimizationContext.js","sourceRoot":"","sources":["../../../src/api/aiInfraOptimizationContext.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,OAAO,MAAM,6CAA6C,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AAGxF,OAAO,EAAE,cAAc,EAAE,MAAM,0CAA0C,CAAC;AAE1E,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAqBpD,sEAAsE;AACtE,MAAM,UAAU,yBAAyB,CACvC,UAA2B,EAC3B,cAAsB,EACtB,UAAmD,EAAE;IAErD,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,oCAAoC,OAAO,CAAC,OAAO,EAAE,CAAC;IAC5E,MAAM,eAAe,GAAG,iBAAiB;QACvC,CAAC,CAAC,GAAG,iBAAiB,IAAI,aAAa,EAAE;QACzC,CAAC,CAAC,GAAG,aAAa,EAAE,CAAC;IACvB,MAAM,EAAE,UAAU,EAAE,CAAC,EAAE,GAAG,cAAc,EAAE,GAAG;QAC3C,GAAG,OAAO;QACV,gBAAgB,EAAE,EAAE,eAAe,EAAE;QACrC,cAAc,EAAE;YACd,GAAG,OAAO,CAAC,cAAc;YACzB,MAAM,EAAE,OAAO,CAAC,cAAc,EAAE,MAAM,IAAI,MAAM,CAAC,IAAI;SACtD;QACD,WAAW,EAAE;YACX,MAAM,EAAE,OAAO,CAAC,WAAW,EAAE,MAAM,IAAI,CAAC,uCAAuC,CAAC;SACjF;KACF,CAAC;IACF,MAAM,aAAa,GAAG,SAAS,CAAC,WAAW,EAAE,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,MAAM,UAAU,GAAG,OAAO,CAAC,UAAU,CAAC;IACtC,OAAO,EAAE,GAAG,aAAa,EAAE,UAAU,EAAE,cAAc,EAAgC,CAAC;AACxF,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { logger } from \"../logger.js\";\nimport pkgJson from \"@azure/arm-aiinfraoptimization/package.json\" with { type: \"json\" };\nimport { KnownVersions } from \"../models/models.js\";\nimport type { AzureSupportedClouds } from \"../static-helpers/cloudSettingHelpers.js\";\nimport { getArmEndpoint } from \"../static-helpers/cloudSettingHelpers.js\";\nimport type { Client, ClientOptions } from \"@azure-rest/core-client\";\nimport { getClient } from \"@azure-rest/core-client\";\nimport type { TokenCredential } from \"@azure/core-auth\";\n\n/** Microsoft.AIInfraOptimization Resource Provider management API. */\nexport interface AIInfraOptimizationContext 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 AIInfraOptimizationClientOptionalParams extends ClientOptions {\n /** The API version to use for this operation. */\n /** Known values of {@link KnownVersions} that the service accepts. */\n apiVersion?: string;\n /** Specifies the Azure cloud environment for the client. */\n cloudSetting?: AzureSupportedClouds;\n}\n\n/** Microsoft.AIInfraOptimization Resource Provider management API. */\nexport function createAIInfraOptimization(\n credential: TokenCredential,\n subscriptionId: string,\n options: AIInfraOptimizationClientOptionalParams = {},\n): AIInfraOptimizationContext {\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-aiinfraoptimization/${pkgJson.version}`;\n const userAgentPrefix = prefixFromOptions\n ? `${prefixFromOptions} ${userAgentInfo}`\n : `${userAgentInfo}`;\n const { apiVersion: _, ...updatedOptions } = {\n ...options,\n userAgentOptions: { userAgentPrefix },\n loggingOptions: {\n ...options.loggingOptions,\n logger: options.loggingOptions?.logger ?? logger.info,\n },\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 AIInfraOptimizationContext;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/api/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAMlC,OAAO,EAAE,yBAAyB,EAAE,MAAM,iCAAiC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport type {\n AIInfraOptimizationContext,\n AIInfraOptimizationClientOptionalParams,\n} from \"./aiInfraOptimizationContext.js\";\nexport { createAIInfraOptimization } from \"./aiInfraOptimizationContext.js\";\n"]}
|
|
@@ -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 type { OperationsListOptionalParams } from \"./options.js\";\n"]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { AIInfraOptimizationContext 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,37 @@
|
|
|
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.AIInfraOptimization/operations{?api%2Dversion}", {
|
|
9
|
+
"api%2Dversion": context.apiVersion ?? "2026-06-01-preview",
|
|
10
|
+
}, {
|
|
11
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
12
|
+
});
|
|
13
|
+
return context.path(path).get({
|
|
14
|
+
...operationOptionsToRequestParameters(options),
|
|
15
|
+
headers: { accept: "application/json", ...options.requestOptions?.headers },
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
export async function _listDeserialize(result) {
|
|
19
|
+
const expectedStatuses = ["200"];
|
|
20
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
21
|
+
const error = createRestError(result);
|
|
22
|
+
if (result.body) {
|
|
23
|
+
error.details = errorResponseDeserializer(result.body);
|
|
24
|
+
}
|
|
25
|
+
throw error;
|
|
26
|
+
}
|
|
27
|
+
return _operationListResultDeserializer(result.body);
|
|
28
|
+
}
|
|
29
|
+
/** List the operations for the provider */
|
|
30
|
+
export function list(context, options = { requestOptions: {} }) {
|
|
31
|
+
return buildPagedAsyncIterator(context, () => _listSend(context, options), _listDeserialize, ["200"], {
|
|
32
|
+
itemName: "value",
|
|
33
|
+
nextLinkName: "nextLink",
|
|
34
|
+
apiVersion: context.apiVersion ?? "2026-06-01-preview",
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
//# 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,qEAAqE,EACrE;QACE,eAAe,EAAE,OAAO,CAAC,UAAU,IAAI,oBAAoB;KAC5D,EACD;QACE,aAAa,EAAE,OAAO,EAAE,cAAc,EAAE,eAAe;KACxD,CACF,CAAC;IACF,OAAO,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC;QAC5B,GAAG,mCAAmC,CAAC,OAAO,CAAC;QAC/C,OAAO,EAAE,EAAE,MAAM,EAAE,kBAAkB,EAAE,GAAG,OAAO,CAAC,cAAc,EAAE,OAAO,EAAE;KAC5E,CAAC,CAAC;AACL,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,gBAAgB,CACpC,MAA6B;IAE7B,MAAM,gBAAgB,GAAG,CAAC,KAAK,CAAC,CAAC;IACjC,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;QAC9C,MAAM,KAAK,GAAG,eAAe,CAAC,MAAM,CAAC,CAAC;QACtC,IAAI,MAAM,CAAC,IAAI,EAAE,CAAC;YAChB,KAAK,CAAC,OAAO,GAAG,yBAAyB,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QACzD,CAAC;QAED,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;QACE,QAAQ,EAAE,OAAO;QACjB,YAAY,EAAE,UAAU;QACxB,UAAU,EAAE,OAAO,CAAC,UAAU,IAAI,oBAAoB;KACvD,CACF,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { AIInfraOptimizationContext 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.AIInfraOptimization/operations{?api%2Dversion}\",\n {\n \"api%2Dversion\": context.apiVersion ?? \"2026-06-01-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<_OperationListResult> {\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 _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 {\n itemName: \"value\",\n nextLinkName: \"nextLink\",\n apiVersion: context.apiVersion ?? \"2026-06-01-preview\",\n },\n );\n}\n"]}
|
|
@@ -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 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/recommendations/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport { recommendVmSku } from \"./operations.js\";\nexport type { RecommendationsRecommendVmSkuOptionalParams } from \"./options.js\";\n"]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { AIInfraOptimizationContext as Client } from "../index.js";
|
|
2
|
+
import type { RecommendVmSkuRequest, RecommendVmSkuResponse } from "../../models/models.js";
|
|
3
|
+
import type { RecommendationsRecommendVmSkuOptionalParams } from "./options.js";
|
|
4
|
+
import type { StreamableMethod, PathUncheckedResponse } from "@azure-rest/core-client";
|
|
5
|
+
export declare function _recommendVmSkuSend(context: Client, location: string, body: RecommendVmSkuRequest, options?: RecommendationsRecommendVmSkuOptionalParams): StreamableMethod;
|
|
6
|
+
export declare function _recommendVmSkuDeserialize(result: PathUncheckedResponse): Promise<RecommendVmSkuResponse>;
|
|
7
|
+
/** Recommends Azure virtual machine sizes for an AI workload in the specified subscription and azure location. */
|
|
8
|
+
export declare function recommendVmSku(context: Client, location: string, body: RecommendVmSkuRequest, options?: RecommendationsRecommendVmSkuOptionalParams): Promise<RecommendVmSkuResponse>;
|
|
9
|
+
//# sourceMappingURL=operations.d.ts.map
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
import { errorResponseDeserializer, recommendVmSkuRequestSerializer, recommendVmSkuResponseDeserializer, } from "../../models/models.js";
|
|
4
|
+
import { expandUrlTemplate } from "../../static-helpers/urlTemplate.js";
|
|
5
|
+
import { createRestError, operationOptionsToRequestParameters } from "@azure-rest/core-client";
|
|
6
|
+
export function _recommendVmSkuSend(context, location, body, options = { requestOptions: {} }) {
|
|
7
|
+
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/providers/Microsoft.AIInfraOptimization/locations/{location}/recommendVmSku{?api%2Dversion}", {
|
|
8
|
+
subscriptionId: context.subscriptionId,
|
|
9
|
+
location: location,
|
|
10
|
+
"api%2Dversion": context.apiVersion ?? "2026-06-01-preview",
|
|
11
|
+
}, {
|
|
12
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
13
|
+
});
|
|
14
|
+
return context.path(path).post({
|
|
15
|
+
...operationOptionsToRequestParameters(options),
|
|
16
|
+
contentType: "application/json",
|
|
17
|
+
headers: { accept: "application/json", ...options.requestOptions?.headers },
|
|
18
|
+
body: recommendVmSkuRequestSerializer(body),
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
export async function _recommendVmSkuDeserialize(result) {
|
|
22
|
+
const expectedStatuses = ["200"];
|
|
23
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
24
|
+
const error = createRestError(result);
|
|
25
|
+
if (result.body) {
|
|
26
|
+
error.details = errorResponseDeserializer(result.body);
|
|
27
|
+
}
|
|
28
|
+
throw error;
|
|
29
|
+
}
|
|
30
|
+
return recommendVmSkuResponseDeserializer(result.body);
|
|
31
|
+
}
|
|
32
|
+
/** Recommends Azure virtual machine sizes for an AI workload in the specified subscription and azure location. */
|
|
33
|
+
export async function recommendVmSku(context, location, body, options = { requestOptions: {} }) {
|
|
34
|
+
const result = await _recommendVmSkuSend(context, location, body, options);
|
|
35
|
+
return _recommendVmSkuDeserialize(result);
|
|
36
|
+
}
|
|
37
|
+
//# sourceMappingURL=operations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../../src/api/recommendations/operations.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAIlC,OAAO,EACL,yBAAyB,EACzB,+BAA+B,EAC/B,kCAAkC,GACnC,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AAGxE,OAAO,EAAE,eAAe,EAAE,mCAAmC,EAAE,MAAM,yBAAyB,CAAC;AAE/F,MAAM,UAAU,mBAAmB,CACjC,OAAe,EACf,QAAgB,EAChB,IAA2B,EAC3B,UAAuD,EAAE,cAAc,EAAE,EAAE,EAAE;IAE7E,MAAM,IAAI,GAAG,iBAAiB,CAC5B,6HAA6H,EAC7H;QACE,cAAc,EAAE,OAAO,CAAC,cAAc;QACtC,QAAQ,EAAE,QAAQ;QAClB,eAAe,EAAE,OAAO,CAAC,UAAU,IAAI,oBAAoB;KAC5D,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,EAAE,MAAM,EAAE,kBAAkB,EAAE,GAAG,OAAO,CAAC,cAAc,EAAE,OAAO,EAAE;QAC3E,IAAI,EAAE,+BAA+B,CAAC,IAAI,CAAC;KAC5C,CAAC,CAAC;AACL,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,0BAA0B,CAC9C,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,IAAI,MAAM,CAAC,IAAI,EAAE,CAAC;YAChB,KAAK,CAAC,OAAO,GAAG,yBAAyB,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QACzD,CAAC;QAED,MAAM,KAAK,CAAC;IACd,CAAC;IAED,OAAO,kCAAkC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AACzD,CAAC;AAED,kHAAkH;AAClH,MAAM,CAAC,KAAK,UAAU,cAAc,CAClC,OAAe,EACf,QAAgB,EAChB,IAA2B,EAC3B,UAAuD,EAAE,cAAc,EAAE,EAAE,EAAE;IAE7E,MAAM,MAAM,GAAG,MAAM,mBAAmB,CAAC,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;IAC3E,OAAO,0BAA0B,CAAC,MAAM,CAAC,CAAC;AAC5C,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { AIInfraOptimizationContext as Client } from \"../index.js\";\nimport type { RecommendVmSkuRequest, RecommendVmSkuResponse } from \"../../models/models.js\";\nimport {\n errorResponseDeserializer,\n recommendVmSkuRequestSerializer,\n recommendVmSkuResponseDeserializer,\n} from \"../../models/models.js\";\nimport { expandUrlTemplate } from \"../../static-helpers/urlTemplate.js\";\nimport type { RecommendationsRecommendVmSkuOptionalParams } from \"./options.js\";\nimport type { StreamableMethod, PathUncheckedResponse } from \"@azure-rest/core-client\";\nimport { createRestError, operationOptionsToRequestParameters } from \"@azure-rest/core-client\";\n\nexport function _recommendVmSkuSend(\n context: Client,\n location: string,\n body: RecommendVmSkuRequest,\n options: RecommendationsRecommendVmSkuOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.AIInfraOptimization/locations/{location}/recommendVmSku{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n location: location,\n \"api%2Dversion\": context.apiVersion ?? \"2026-06-01-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: recommendVmSkuRequestSerializer(body),\n });\n}\n\nexport async function _recommendVmSkuDeserialize(\n result: PathUncheckedResponse,\n): Promise<RecommendVmSkuResponse> {\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 recommendVmSkuResponseDeserializer(result.body);\n}\n\n/** Recommends Azure virtual machine sizes for an AI workload in the specified subscription and azure location. */\nexport async function recommendVmSku(\n context: Client,\n location: string,\n body: RecommendVmSkuRequest,\n options: RecommendationsRecommendVmSkuOptionalParams = { requestOptions: {} },\n): Promise<RecommendVmSkuResponse> {\n const result = await _recommendVmSkuSend(context, location, body, options);\n return _recommendVmSkuDeserialize(result);\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"options.js","sourceRoot":"","sources":["../../../../src/api/recommendations/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 RecommendationsRecommendVmSkuOptionalParams extends OperationOptions {}\n"]}
|
|
@@ -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 type { OperationsOperations } from \"./operations/index.js\";\nexport type { RecommendationsOperations } from \"./recommendations/index.js\";\n"]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { AIInfraOptimizationContext } from "../../api/aiInfraOptimizationContext.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: AIInfraOptimizationContext): 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,OAAmC;IACzD,OAAO;QACL,IAAI,EAAE,CAAC,OAAsC,EAAE,EAAE,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,CAAC;KACzE,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,wBAAwB,CACtC,OAAmC;IAEnC,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 { AIInfraOptimizationContext } from \"../../api/aiInfraOptimizationContext.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: AIInfraOptimizationContext) {\n return {\n list: (options?: OperationsListOptionalParams) => list(context, options),\n };\n}\n\nexport function _getOperationsOperations(\n context: AIInfraOptimizationContext,\n): OperationsOperations {\n return {\n ..._getOperations(context),\n };\n}\n"]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { AIInfraOptimizationContext } from "../../api/aiInfraOptimizationContext.js";
|
|
2
|
+
import type { RecommendationsRecommendVmSkuOptionalParams } from "../../api/recommendations/options.js";
|
|
3
|
+
import type { RecommendVmSkuRequest, RecommendVmSkuResponse } from "../../models/models.js";
|
|
4
|
+
/** Interface representing a Recommendations operations. */
|
|
5
|
+
export interface RecommendationsOperations {
|
|
6
|
+
/** Recommends Azure virtual machine sizes for an AI workload in the specified subscription and azure location. */
|
|
7
|
+
recommendVmSku: (location: string, body: RecommendVmSkuRequest, options?: RecommendationsRecommendVmSkuOptionalParams) => Promise<RecommendVmSkuResponse>;
|
|
8
|
+
}
|
|
9
|
+
export declare function _getRecommendationsOperations(context: AIInfraOptimizationContext): RecommendationsOperations;
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
import { recommendVmSku } from "../../api/recommendations/operations.js";
|
|
4
|
+
function _getRecommendations(context) {
|
|
5
|
+
return {
|
|
6
|
+
recommendVmSku: (location, body, options) => recommendVmSku(context, location, body, options),
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
export function _getRecommendationsOperations(context) {
|
|
10
|
+
return {
|
|
11
|
+
..._getRecommendations(context),
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/classic/recommendations/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EAAE,cAAc,EAAE,MAAM,yCAAyC,CAAC;AAczE,SAAS,mBAAmB,CAAC,OAAmC;IAC9D,OAAO;QACL,cAAc,EAAE,CACd,QAAgB,EAChB,IAA2B,EAC3B,OAAqD,EACrD,EAAE,CAAC,cAAc,CAAC,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,CAAC;KACtD,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,6BAA6B,CAC3C,OAAmC;IAEnC,OAAO;QACL,GAAG,mBAAmB,CAAC,OAAO,CAAC;KAChC,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { AIInfraOptimizationContext } from \"../../api/aiInfraOptimizationContext.js\";\nimport { recommendVmSku } from \"../../api/recommendations/operations.js\";\nimport type { RecommendationsRecommendVmSkuOptionalParams } from \"../../api/recommendations/options.js\";\nimport type { RecommendVmSkuRequest, RecommendVmSkuResponse } from \"../../models/models.js\";\n\n/** Interface representing a Recommendations operations. */\nexport interface RecommendationsOperations {\n /** Recommends Azure virtual machine sizes for an AI workload in the specified subscription and azure location. */\n recommendVmSku: (\n location: string,\n body: RecommendVmSkuRequest,\n options?: RecommendationsRecommendVmSkuOptionalParams,\n ) => Promise<RecommendVmSkuResponse>;\n}\n\nfunction _getRecommendations(context: AIInfraOptimizationContext) {\n return {\n recommendVmSku: (\n location: string,\n body: RecommendVmSkuRequest,\n options?: RecommendationsRecommendVmSkuOptionalParams,\n ) => recommendVmSku(context, location, body, options),\n };\n}\n\nexport function _getRecommendationsOperations(\n context: AIInfraOptimizationContext,\n): RecommendationsOperations {\n return {\n ..._getRecommendations(context),\n };\n}\n"]}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { AzureSupportedClouds } from "./static-helpers/cloudSettingHelpers.js";
|
|
2
|
+
import { AzureClouds } from "./static-helpers/cloudSettingHelpers.js";
|
|
3
|
+
import type { PageSettings, ContinuablePage, PagedAsyncIterableIterator } from "./static-helpers/pagingHelpers.js";
|
|
4
|
+
export { AIInfraOptimizationClient } from "./aiInfraOptimizationClient.js";
|
|
5
|
+
export type { Operation, OperationDisplay, Origin, ActionType, ErrorResponse, ErrorDetail, ErrorAdditionalInfo, RecommendVmSkuRequest, RecommendVmSkuModel, WeightPrecision, RecommendVmSkuWorkload, RecommendVmSkuTokenBudget, RecommendVmSkuDeployment, ProcurementOption, RecommendVmSkuOptimization, RankingPreference, RecommendVmSkuHourlyCost, RecommendVmSkuSubscriptionOptions, RecommendVmSkuResponse, RecommendVmSkuOption, RecommendVmSkuReadiness, ReadinessStatus, RecommendVmSkuTopology, RecommendVmSkuAccelerator, RecommendVmSkuCost, CostSource, RecommendVmSkuStageError, StageErrorCode, RecommendVmSkuQuota, QuotaStatus, RecommendVmSkuQuotaIncrease, RecommendVmSkuQuotaLimit, RecommendVmSkuPlacement, PlacementStatus, RecommendVmSkuBenchmark, BenchmarkLevel, RecommendVmSkuPerformanceEstimate, RecommendVmSkuSizing, RecommendVmSkuSizingModel, RecommendVmSkuSizingWorkload, RecommendVmSkuMemory, RecommendVmSkuSizingBasis, ParameterCountSource, ModelWeightsCalculation, ContextLengthSource, } from "./models/index.js";
|
|
6
|
+
export { KnownOrigin, KnownActionType, KnownWeightPrecision, KnownProcurementOption, KnownRankingPreference, KnownReadinessStatus, KnownCostSource, KnownStageErrorCode, KnownQuotaStatus, KnownPlacementStatus, KnownBenchmarkLevel, KnownParameterCountSource, KnownModelWeightsCalculation, KnownContextLengthSource, KnownVersions, } from "./models/index.js";
|
|
7
|
+
export type { AIInfraOptimizationClientOptionalParams } from "./api/index.js";
|
|
8
|
+
export type { OperationsListOptionalParams } from "./api/operations/index.js";
|
|
9
|
+
export type { RecommendationsRecommendVmSkuOptionalParams } from "./api/recommendations/index.js";
|
|
10
|
+
export type { OperationsOperations, RecommendationsOperations } from "./classic/index.js";
|
|
11
|
+
export type { PageSettings, ContinuablePage, PagedAsyncIterableIterator };
|
|
12
|
+
export { AzureClouds };
|
|
13
|
+
export type { AzureSupportedClouds };
|
|
14
|
+
export { RestError, isRestError } from "@azure/core-rest-pipeline";
|
|
15
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
import { AzureClouds } from "./static-helpers/cloudSettingHelpers.js";
|
|
4
|
+
export { AIInfraOptimizationClient } from "./aiInfraOptimizationClient.js";
|
|
5
|
+
export { KnownOrigin, KnownActionType, KnownWeightPrecision, KnownProcurementOption, KnownRankingPreference, KnownReadinessStatus, KnownCostSource, KnownStageErrorCode, KnownQuotaStatus, KnownPlacementStatus, KnownBenchmarkLevel, KnownParameterCountSource, KnownModelWeightsCalculation, KnownContextLengthSource, KnownVersions, } from "./models/index.js";
|
|
6
|
+
export { AzureClouds };
|
|
7
|
+
export { RestError, isRestError } from "@azure/core-rest-pipeline";
|
|
8
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EAAE,WAAW,EAAE,MAAM,yCAAyC,CAAC;AAOtE,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAgD3E,OAAO,EACL,WAAW,EACX,eAAe,EACf,oBAAoB,EACpB,sBAAsB,EACtB,sBAAsB,EACtB,oBAAoB,EACpB,eAAe,EACf,mBAAmB,EACnB,gBAAgB,EAChB,oBAAoB,EACpB,mBAAmB,EACnB,yBAAyB,EACzB,4BAA4B,EAC5B,wBAAwB,EACxB,aAAa,GACd,MAAM,mBAAmB,CAAC;AAM3B,OAAO,EAAE,WAAW,EAAE,CAAC;AAEvB,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { AzureSupportedClouds } from \"./static-helpers/cloudSettingHelpers.js\";\nimport { AzureClouds } from \"./static-helpers/cloudSettingHelpers.js\";\nimport type {\n PageSettings,\n ContinuablePage,\n PagedAsyncIterableIterator,\n} from \"./static-helpers/pagingHelpers.js\";\n\nexport { AIInfraOptimizationClient } from \"./aiInfraOptimizationClient.js\";\nexport type {\n Operation,\n OperationDisplay,\n Origin,\n ActionType,\n ErrorResponse,\n ErrorDetail,\n ErrorAdditionalInfo,\n RecommendVmSkuRequest,\n RecommendVmSkuModel,\n WeightPrecision,\n RecommendVmSkuWorkload,\n RecommendVmSkuTokenBudget,\n RecommendVmSkuDeployment,\n ProcurementOption,\n RecommendVmSkuOptimization,\n RankingPreference,\n RecommendVmSkuHourlyCost,\n RecommendVmSkuSubscriptionOptions,\n RecommendVmSkuResponse,\n RecommendVmSkuOption,\n RecommendVmSkuReadiness,\n ReadinessStatus,\n RecommendVmSkuTopology,\n RecommendVmSkuAccelerator,\n RecommendVmSkuCost,\n CostSource,\n RecommendVmSkuStageError,\n StageErrorCode,\n RecommendVmSkuQuota,\n QuotaStatus,\n RecommendVmSkuQuotaIncrease,\n RecommendVmSkuQuotaLimit,\n RecommendVmSkuPlacement,\n PlacementStatus,\n RecommendVmSkuBenchmark,\n BenchmarkLevel,\n RecommendVmSkuPerformanceEstimate,\n RecommendVmSkuSizing,\n RecommendVmSkuSizingModel,\n RecommendVmSkuSizingWorkload,\n RecommendVmSkuMemory,\n RecommendVmSkuSizingBasis,\n ParameterCountSource,\n ModelWeightsCalculation,\n ContextLengthSource,\n} from \"./models/index.js\";\nexport {\n KnownOrigin,\n KnownActionType,\n KnownWeightPrecision,\n KnownProcurementOption,\n KnownRankingPreference,\n KnownReadinessStatus,\n KnownCostSource,\n KnownStageErrorCode,\n KnownQuotaStatus,\n KnownPlacementStatus,\n KnownBenchmarkLevel,\n KnownParameterCountSource,\n KnownModelWeightsCalculation,\n KnownContextLengthSource,\n KnownVersions,\n} from \"./models/index.js\";\nexport type { AIInfraOptimizationClientOptionalParams } from \"./api/index.js\";\nexport type { OperationsListOptionalParams } from \"./api/operations/index.js\";\nexport type { RecommendationsRecommendVmSkuOptionalParams } from \"./api/recommendations/index.js\";\nexport type { OperationsOperations, RecommendationsOperations } from \"./classic/index.js\";\nexport type { PageSettings, ContinuablePage, PagedAsyncIterableIterator };\nexport { AzureClouds };\nexport type { AzureSupportedClouds };\nexport { RestError, isRestError } from \"@azure/core-rest-pipeline\";\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logger.js","sourceRoot":"","sources":["../../src/logger.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AACnD,MAAM,CAAC,MAAM,MAAM,GAAG,kBAAkB,CAAC,yBAAyB,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { createClientLogger } from \"@azure/logger\";\nexport const logger = createClientLogger(\"arm-aiinfraoptimization\");\n"]}
|