@azure/arm-aiinfraoptimization 0.0.0-stage → 1.0.0-beta.1
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
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
var aiInfraOptimizationContext_exports = {};
|
|
29
|
+
__export(aiInfraOptimizationContext_exports, {
|
|
30
|
+
createAIInfraOptimization: () => createAIInfraOptimization
|
|
31
|
+
});
|
|
32
|
+
module.exports = __toCommonJS(aiInfraOptimizationContext_exports);
|
|
33
|
+
var import_logger = require("../logger.js");
|
|
34
|
+
var import_package = __toESM(require("@azure/arm-aiinfraoptimization/package.json"));
|
|
35
|
+
var import_cloudSettingHelpers = require("../static-helpers/cloudSettingHelpers.js");
|
|
36
|
+
var import_core_client = require("@azure-rest/core-client");
|
|
37
|
+
function createAIInfraOptimization(credential, subscriptionId, options = {}) {
|
|
38
|
+
const endpointUrl = options.endpoint ?? (0, import_cloudSettingHelpers.getArmEndpoint)(options.cloudSetting) ?? "https://management.azure.com";
|
|
39
|
+
const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix;
|
|
40
|
+
const userAgentInfo = `azsdk-js-arm-aiinfraoptimization/${import_package.default.version}`;
|
|
41
|
+
const userAgentPrefix = prefixFromOptions ? `${prefixFromOptions} ${userAgentInfo}` : `${userAgentInfo}`;
|
|
42
|
+
const { apiVersion: _, ...updatedOptions } = {
|
|
43
|
+
...options,
|
|
44
|
+
userAgentOptions: { userAgentPrefix },
|
|
45
|
+
loggingOptions: {
|
|
46
|
+
...options.loggingOptions,
|
|
47
|
+
logger: options.loggingOptions?.logger ?? import_logger.logger.info
|
|
48
|
+
},
|
|
49
|
+
credentials: {
|
|
50
|
+
scopes: options.credentials?.scopes ?? ["https://management.azure.com/.default"]
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
const clientContext = (0, import_core_client.getClient)(endpointUrl, credential, updatedOptions);
|
|
54
|
+
const apiVersion = options.apiVersion;
|
|
55
|
+
return { ...clientContext, apiVersion, subscriptionId };
|
|
56
|
+
}
|
|
57
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
58
|
+
0 && (module.exports = {
|
|
59
|
+
createAIInfraOptimization
|
|
60
|
+
});
|
|
61
|
+
//# sourceMappingURL=aiInfraOptimizationContext.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/api/aiInfraOptimizationContext.ts"],
|
|
4
|
+
"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"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,oBAAuB;AACvB,qBAAoB;AAGpB,iCAA+B;AAE/B,yBAA0B;AAsBnB,SAAS,0BACd,YACA,gBACA,UAAmD,CAAC,GACxB;AAC5B,QAAM,cACJ,QAAQ,gBAAY,2CAAe,QAAQ,YAAY,KAAK;AAC9D,QAAM,oBAAoB,SAAS,kBAAkB;AACrD,QAAM,gBAAgB,oCAAoC,eAAAA,QAAQ,OAAO;AACzE,QAAM,kBAAkB,oBACpB,GAAG,iBAAiB,IAAI,aAAa,KACrC,GAAG,aAAa;AACpB,QAAM,EAAE,YAAY,GAAG,GAAG,eAAe,IAAI;AAAA,IAC3C,GAAG;AAAA,IACH,kBAAkB,EAAE,gBAAgB;AAAA,IACpC,gBAAgB;AAAA,MACd,GAAG,QAAQ;AAAA,MACX,QAAQ,QAAQ,gBAAgB,UAAU,qBAAO;AAAA,IACnD;AAAA,IACA,aAAa;AAAA,MACX,QAAQ,QAAQ,aAAa,UAAU,CAAC,uCAAuC;AAAA,IACjF;AAAA,EACF;AACA,QAAM,oBAAgB,8BAAU,aAAa,YAAY,cAAc;AACvE,QAAM,aAAa,QAAQ;AAC3B,SAAO,EAAE,GAAG,eAAe,YAAY,eAAe;AACxD;",
|
|
6
|
+
"names": ["pkgJson"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
var api_exports = {};
|
|
19
|
+
__export(api_exports, {
|
|
20
|
+
createAIInfraOptimization: () => import_aiInfraOptimizationContext.createAIInfraOptimization
|
|
21
|
+
});
|
|
22
|
+
module.exports = __toCommonJS(api_exports);
|
|
23
|
+
var import_aiInfraOptimizationContext = require("./aiInfraOptimizationContext.js");
|
|
24
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
25
|
+
0 && (module.exports = {
|
|
26
|
+
createAIInfraOptimization
|
|
27
|
+
});
|
|
28
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/api/index.ts"],
|
|
4
|
+
"sourcesContent": ["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport type {\n AIInfraOptimizationContext,\n AIInfraOptimizationClientOptionalParams,\n} from \"./aiInfraOptimizationContext.js\";\nexport { createAIInfraOptimization } from \"./aiInfraOptimizationContext.js\";\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAOA,wCAA0C;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
var operations_exports = {};
|
|
19
|
+
__export(operations_exports, {
|
|
20
|
+
list: () => import_operations.list
|
|
21
|
+
});
|
|
22
|
+
module.exports = __toCommonJS(operations_exports);
|
|
23
|
+
var import_operations = require("./operations.js");
|
|
24
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
25
|
+
0 && (module.exports = {
|
|
26
|
+
list
|
|
27
|
+
});
|
|
28
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/api/operations/index.ts"],
|
|
4
|
+
"sourcesContent": ["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport { list } from \"./operations.js\";\nexport type { OperationsListOptionalParams } from \"./options.js\";\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,wBAAqB;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -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,74 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
var operations_exports = {};
|
|
19
|
+
__export(operations_exports, {
|
|
20
|
+
_listDeserialize: () => _listDeserialize,
|
|
21
|
+
_listSend: () => _listSend,
|
|
22
|
+
list: () => list
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(operations_exports);
|
|
25
|
+
var import_models = require("../../models/models.js");
|
|
26
|
+
var import_pagingHelpers = require("../../static-helpers/pagingHelpers.js");
|
|
27
|
+
var import_urlTemplate = require("../../static-helpers/urlTemplate.js");
|
|
28
|
+
var import_core_client = require("@azure-rest/core-client");
|
|
29
|
+
function _listSend(context, options = { requestOptions: {} }) {
|
|
30
|
+
const path = (0, import_urlTemplate.expandUrlTemplate)(
|
|
31
|
+
"/providers/Microsoft.AIInfraOptimization/operations{?api%2Dversion}",
|
|
32
|
+
{
|
|
33
|
+
"api%2Dversion": context.apiVersion ?? "2026-06-01-preview"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding
|
|
37
|
+
}
|
|
38
|
+
);
|
|
39
|
+
return context.path(path).get({
|
|
40
|
+
...(0, import_core_client.operationOptionsToRequestParameters)(options),
|
|
41
|
+
headers: { accept: "application/json", ...options.requestOptions?.headers }
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
async function _listDeserialize(result) {
|
|
45
|
+
const expectedStatuses = ["200"];
|
|
46
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
47
|
+
const error = (0, import_core_client.createRestError)(result);
|
|
48
|
+
if (result.body) {
|
|
49
|
+
error.details = (0, import_models.errorResponseDeserializer)(result.body);
|
|
50
|
+
}
|
|
51
|
+
throw error;
|
|
52
|
+
}
|
|
53
|
+
return (0, import_models._operationListResultDeserializer)(result.body);
|
|
54
|
+
}
|
|
55
|
+
function list(context, options = { requestOptions: {} }) {
|
|
56
|
+
return (0, import_pagingHelpers.buildPagedAsyncIterator)(
|
|
57
|
+
context,
|
|
58
|
+
() => _listSend(context, options),
|
|
59
|
+
_listDeserialize,
|
|
60
|
+
["200"],
|
|
61
|
+
{
|
|
62
|
+
itemName: "value",
|
|
63
|
+
nextLinkName: "nextLink",
|
|
64
|
+
apiVersion: context.apiVersion ?? "2026-06-01-preview"
|
|
65
|
+
}
|
|
66
|
+
);
|
|
67
|
+
}
|
|
68
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
69
|
+
0 && (module.exports = {
|
|
70
|
+
_listDeserialize,
|
|
71
|
+
_listSend,
|
|
72
|
+
list
|
|
73
|
+
});
|
|
74
|
+
//# sourceMappingURL=operations.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/api/operations/operations.ts"],
|
|
4
|
+
"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"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAKA,oBAGO;AAEP,2BAAwC;AACxC,yBAAkC;AAGlC,yBAAqE;AAE9D,SAAS,UACd,SACA,UAAwC,EAAE,gBAAgB,CAAC,EAAE,GAC3C;AAClB,QAAM,WAAO;AAAA,IACX;AAAA,IACA;AAAA,MACE,iBAAiB,QAAQ,cAAc;AAAA,IACzC;AAAA,IACA;AAAA,MACE,eAAe,SAAS,gBAAgB;AAAA,IAC1C;AAAA,EACF;AACA,SAAO,QAAQ,KAAK,IAAI,EAAE,IAAI;AAAA,IAC5B,OAAG,wDAAoC,OAAO;AAAA,IAC9C,SAAS,EAAE,QAAQ,oBAAoB,GAAG,QAAQ,gBAAgB,QAAQ;AAAA,EAC5E,CAAC;AACH;AAEA,eAAsB,iBACpB,QAC+B;AAC/B,QAAM,mBAAmB,CAAC,KAAK;AAC/B,MAAI,CAAC,iBAAiB,SAAS,OAAO,MAAM,GAAG;AAC7C,UAAM,YAAQ,oCAAgB,MAAM;AACpC,QAAI,OAAO,MAAM;AACf,YAAM,cAAU,yCAA0B,OAAO,IAAI;AAAA,IACvD;AAEA,UAAM;AAAA,EACR;AAEA,aAAO,gDAAiC,OAAO,IAAI;AACrD;AAGO,SAAS,KACd,SACA,UAAwC,EAAE,gBAAgB,CAAC,EAAE,GACtB;AACvC,aAAO;AAAA,IACL;AAAA,IACA,MAAM,UAAU,SAAS,OAAO;AAAA,IAChC;AAAA,IACA,CAAC,KAAK;AAAA,IACN;AAAA,MACE,UAAU;AAAA,MACV,cAAc;AAAA,MACd,YAAY,QAAQ,cAAc;AAAA,IACpC;AAAA,EACF;AACF;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __copyProps = (to, from, except, desc) => {
|
|
6
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
7
|
+
for (let key of __getOwnPropNames(from))
|
|
8
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
9
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
10
|
+
}
|
|
11
|
+
return to;
|
|
12
|
+
};
|
|
13
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
14
|
+
var options_exports = {};
|
|
15
|
+
module.exports = __toCommonJS(options_exports);
|
|
16
|
+
//# sourceMappingURL=options.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/api/operations/options.ts"],
|
|
4
|
+
"sourcesContent": ["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { OperationOptions } from \"@azure-rest/core-client\";\n\n/** Optional parameters. */\nexport interface OperationsListOptionalParams extends OperationOptions {}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;AAAA;AAAA;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
var recommendations_exports = {};
|
|
19
|
+
__export(recommendations_exports, {
|
|
20
|
+
recommendVmSku: () => import_operations.recommendVmSku
|
|
21
|
+
});
|
|
22
|
+
module.exports = __toCommonJS(recommendations_exports);
|
|
23
|
+
var import_operations = require("./operations.js");
|
|
24
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
25
|
+
0 && (module.exports = {
|
|
26
|
+
recommendVmSku
|
|
27
|
+
});
|
|
28
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/api/recommendations/index.ts"],
|
|
4
|
+
"sourcesContent": ["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport { recommendVmSku } from \"./operations.js\";\nexport type { RecommendationsRecommendVmSkuOptionalParams } from \"./options.js\";\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,wBAA+B;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -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,68 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
var operations_exports = {};
|
|
19
|
+
__export(operations_exports, {
|
|
20
|
+
_recommendVmSkuDeserialize: () => _recommendVmSkuDeserialize,
|
|
21
|
+
_recommendVmSkuSend: () => _recommendVmSkuSend,
|
|
22
|
+
recommendVmSku: () => recommendVmSku
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(operations_exports);
|
|
25
|
+
var import_models = require("../../models/models.js");
|
|
26
|
+
var import_urlTemplate = require("../../static-helpers/urlTemplate.js");
|
|
27
|
+
var import_core_client = require("@azure-rest/core-client");
|
|
28
|
+
function _recommendVmSkuSend(context, location, body, options = { requestOptions: {} }) {
|
|
29
|
+
const path = (0, import_urlTemplate.expandUrlTemplate)(
|
|
30
|
+
"/subscriptions/{subscriptionId}/providers/Microsoft.AIInfraOptimization/locations/{location}/recommendVmSku{?api%2Dversion}",
|
|
31
|
+
{
|
|
32
|
+
subscriptionId: context.subscriptionId,
|
|
33
|
+
location,
|
|
34
|
+
"api%2Dversion": context.apiVersion ?? "2026-06-01-preview"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding
|
|
38
|
+
}
|
|
39
|
+
);
|
|
40
|
+
return context.path(path).post({
|
|
41
|
+
...(0, import_core_client.operationOptionsToRequestParameters)(options),
|
|
42
|
+
contentType: "application/json",
|
|
43
|
+
headers: { accept: "application/json", ...options.requestOptions?.headers },
|
|
44
|
+
body: (0, import_models.recommendVmSkuRequestSerializer)(body)
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
async function _recommendVmSkuDeserialize(result) {
|
|
48
|
+
const expectedStatuses = ["200"];
|
|
49
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
50
|
+
const error = (0, import_core_client.createRestError)(result);
|
|
51
|
+
if (result.body) {
|
|
52
|
+
error.details = (0, import_models.errorResponseDeserializer)(result.body);
|
|
53
|
+
}
|
|
54
|
+
throw error;
|
|
55
|
+
}
|
|
56
|
+
return (0, import_models.recommendVmSkuResponseDeserializer)(result.body);
|
|
57
|
+
}
|
|
58
|
+
async function recommendVmSku(context, location, body, options = { requestOptions: {} }) {
|
|
59
|
+
const result = await _recommendVmSkuSend(context, location, body, options);
|
|
60
|
+
return _recommendVmSkuDeserialize(result);
|
|
61
|
+
}
|
|
62
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
63
|
+
0 && (module.exports = {
|
|
64
|
+
_recommendVmSkuDeserialize,
|
|
65
|
+
_recommendVmSkuSend,
|
|
66
|
+
recommendVmSku
|
|
67
|
+
});
|
|
68
|
+
//# sourceMappingURL=operations.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/api/recommendations/operations.ts"],
|
|
4
|
+
"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"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAKA,oBAIO;AACP,yBAAkC;AAGlC,yBAAqE;AAE9D,SAAS,oBACd,SACA,UACA,MACA,UAAuD,EAAE,gBAAgB,CAAC,EAAE,GAC1D;AAClB,QAAM,WAAO;AAAA,IACX;AAAA,IACA;AAAA,MACE,gBAAgB,QAAQ;AAAA,MACxB;AAAA,MACA,iBAAiB,QAAQ,cAAc;AAAA,IACzC;AAAA,IACA;AAAA,MACE,eAAe,SAAS,gBAAgB;AAAA,IAC1C;AAAA,EACF;AACA,SAAO,QAAQ,KAAK,IAAI,EAAE,KAAK;AAAA,IAC7B,OAAG,wDAAoC,OAAO;AAAA,IAC9C,aAAa;AAAA,IACb,SAAS,EAAE,QAAQ,oBAAoB,GAAG,QAAQ,gBAAgB,QAAQ;AAAA,IAC1E,UAAM,+CAAgC,IAAI;AAAA,EAC5C,CAAC;AACH;AAEA,eAAsB,2BACpB,QACiC;AACjC,QAAM,mBAAmB,CAAC,KAAK;AAC/B,MAAI,CAAC,iBAAiB,SAAS,OAAO,MAAM,GAAG;AAC7C,UAAM,YAAQ,oCAAgB,MAAM;AACpC,QAAI,OAAO,MAAM;AACf,YAAM,cAAU,yCAA0B,OAAO,IAAI;AAAA,IACvD;AAEA,UAAM;AAAA,EACR;AAEA,aAAO,kDAAmC,OAAO,IAAI;AACvD;AAGA,eAAsB,eACpB,SACA,UACA,MACA,UAAuD,EAAE,gBAAgB,CAAC,EAAE,GAC3C;AACjC,QAAM,SAAS,MAAM,oBAAoB,SAAS,UAAU,MAAM,OAAO;AACzE,SAAO,2BAA2B,MAAM;AAC1C;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __copyProps = (to, from, except, desc) => {
|
|
6
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
7
|
+
for (let key of __getOwnPropNames(from))
|
|
8
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
9
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
10
|
+
}
|
|
11
|
+
return to;
|
|
12
|
+
};
|
|
13
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
14
|
+
var options_exports = {};
|
|
15
|
+
module.exports = __toCommonJS(options_exports);
|
|
16
|
+
//# sourceMappingURL=options.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/api/recommendations/options.ts"],
|
|
4
|
+
"sourcesContent": ["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { OperationOptions } from \"@azure-rest/core-client\";\n\n/** Optional parameters. */\nexport interface RecommendationsRecommendVmSkuOptionalParams extends OperationOptions {}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;AAAA;AAAA;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __copyProps = (to, from, except, desc) => {
|
|
6
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
7
|
+
for (let key of __getOwnPropNames(from))
|
|
8
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
9
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
10
|
+
}
|
|
11
|
+
return to;
|
|
12
|
+
};
|
|
13
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
14
|
+
var classic_exports = {};
|
|
15
|
+
module.exports = __toCommonJS(classic_exports);
|
|
16
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/classic/index.ts"],
|
|
4
|
+
"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"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;AAAA;AAAA;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -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,38 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
var operations_exports = {};
|
|
19
|
+
__export(operations_exports, {
|
|
20
|
+
_getOperationsOperations: () => _getOperationsOperations
|
|
21
|
+
});
|
|
22
|
+
module.exports = __toCommonJS(operations_exports);
|
|
23
|
+
var import_operations = require("../../api/operations/operations.js");
|
|
24
|
+
function _getOperations(context) {
|
|
25
|
+
return {
|
|
26
|
+
list: (options) => (0, import_operations.list)(context, options)
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
function _getOperationsOperations(context) {
|
|
30
|
+
return {
|
|
31
|
+
..._getOperations(context)
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
35
|
+
0 && (module.exports = {
|
|
36
|
+
_getOperationsOperations
|
|
37
|
+
});
|
|
38
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/classic/operations/index.ts"],
|
|
4
|
+
"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"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAIA,wBAAqB;AAWrB,SAAS,eAAe,SAAqC;AAC3D,SAAO;AAAA,IACL,MAAM,CAAC,gBAA2C,wBAAK,SAAS,OAAO;AAAA,EACzE;AACF;AAEO,SAAS,yBACd,SACsB;AACtB,SAAO;AAAA,IACL,GAAG,eAAe,OAAO;AAAA,EAC3B;AACF;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -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,38 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
var recommendations_exports = {};
|
|
19
|
+
__export(recommendations_exports, {
|
|
20
|
+
_getRecommendationsOperations: () => _getRecommendationsOperations
|
|
21
|
+
});
|
|
22
|
+
module.exports = __toCommonJS(recommendations_exports);
|
|
23
|
+
var import_operations = require("../../api/recommendations/operations.js");
|
|
24
|
+
function _getRecommendations(context) {
|
|
25
|
+
return {
|
|
26
|
+
recommendVmSku: (location, body, options) => (0, import_operations.recommendVmSku)(context, location, body, options)
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
function _getRecommendationsOperations(context) {
|
|
30
|
+
return {
|
|
31
|
+
..._getRecommendations(context)
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
35
|
+
0 && (module.exports = {
|
|
36
|
+
_getRecommendationsOperations
|
|
37
|
+
});
|
|
38
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/classic/recommendations/index.ts"],
|
|
4
|
+
"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"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAIA,wBAA+B;AAc/B,SAAS,oBAAoB,SAAqC;AAChE,SAAO;AAAA,IACL,gBAAgB,CACd,UACA,MACA,gBACG,kCAAe,SAAS,UAAU,MAAM,OAAO;AAAA,EACtD;AACF;AAEO,SAAS,8BACd,SAC2B;AAC3B,SAAO;AAAA,IACL,GAAG,oBAAoB,OAAO;AAAA,EAChC;AACF;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|