@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
|
@@ -0,0 +1,447 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
export function _operationListResultDeserializer(item) {
|
|
4
|
+
return {
|
|
5
|
+
value: operationArrayDeserializer(item["value"]),
|
|
6
|
+
nextLink: item["nextLink"],
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
export function operationArrayDeserializer(result) {
|
|
10
|
+
return result.map((item) => {
|
|
11
|
+
return operationDeserializer(item);
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
export function operationDeserializer(item) {
|
|
15
|
+
return {
|
|
16
|
+
name: item["name"],
|
|
17
|
+
isDataAction: item["isDataAction"],
|
|
18
|
+
display: !item["display"] ? item["display"] : operationDisplayDeserializer(item["display"]),
|
|
19
|
+
origin: item["origin"],
|
|
20
|
+
actionType: item["actionType"],
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
export function operationDisplayDeserializer(item) {
|
|
24
|
+
return {
|
|
25
|
+
provider: item["provider"],
|
|
26
|
+
resource: item["resource"],
|
|
27
|
+
operation: item["operation"],
|
|
28
|
+
description: item["description"],
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
/** The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is "user,system" */
|
|
32
|
+
export var KnownOrigin;
|
|
33
|
+
(function (KnownOrigin) {
|
|
34
|
+
/** Indicates the operation is initiated by a user. */
|
|
35
|
+
KnownOrigin["User"] = "user";
|
|
36
|
+
/** Indicates the operation is initiated by a system. */
|
|
37
|
+
KnownOrigin["System"] = "system";
|
|
38
|
+
/** Indicates the operation is initiated by a user or system. */
|
|
39
|
+
KnownOrigin["UserSystem"] = "user,system";
|
|
40
|
+
})(KnownOrigin || (KnownOrigin = {}));
|
|
41
|
+
/** Extensible enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. */
|
|
42
|
+
export var KnownActionType;
|
|
43
|
+
(function (KnownActionType) {
|
|
44
|
+
/** Actions are for internal-only APIs. */
|
|
45
|
+
KnownActionType["Internal"] = "Internal";
|
|
46
|
+
})(KnownActionType || (KnownActionType = {}));
|
|
47
|
+
export function errorResponseDeserializer(item) {
|
|
48
|
+
return {
|
|
49
|
+
error: !item["error"] ? item["error"] : errorDetailDeserializer(item["error"]),
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
export function errorDetailDeserializer(item) {
|
|
53
|
+
return {
|
|
54
|
+
code: item["code"],
|
|
55
|
+
message: item["message"],
|
|
56
|
+
target: item["target"],
|
|
57
|
+
details: !item["details"] ? item["details"] : errorDetailArrayDeserializer(item["details"]),
|
|
58
|
+
additionalInfo: !item["additionalInfo"]
|
|
59
|
+
? item["additionalInfo"]
|
|
60
|
+
: errorAdditionalInfoArrayDeserializer(item["additionalInfo"]),
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
export function errorDetailArrayDeserializer(result) {
|
|
64
|
+
return result.map((item) => {
|
|
65
|
+
return errorDetailDeserializer(item);
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
export function errorAdditionalInfoArrayDeserializer(result) {
|
|
69
|
+
return result.map((item) => {
|
|
70
|
+
return errorAdditionalInfoDeserializer(item);
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
export function errorAdditionalInfoDeserializer(item) {
|
|
74
|
+
return {
|
|
75
|
+
type: item["type"],
|
|
76
|
+
info: item["info"],
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
export function recommendVmSkuRequestSerializer(item) {
|
|
80
|
+
return {
|
|
81
|
+
model: !item["model"] ? item["model"] : recommendVmSkuModelSerializer(item["model"]),
|
|
82
|
+
workload: !item["workload"]
|
|
83
|
+
? item["workload"]
|
|
84
|
+
: recommendVmSkuWorkloadSerializer(item["workload"]),
|
|
85
|
+
deployment: !item["deployment"]
|
|
86
|
+
? item["deployment"]
|
|
87
|
+
: recommendVmSkuDeploymentSerializer(item["deployment"]),
|
|
88
|
+
optimization: !item["optimization"]
|
|
89
|
+
? item["optimization"]
|
|
90
|
+
: recommendVmSkuOptimizationSerializer(item["optimization"]),
|
|
91
|
+
targetVmSizes: !item["targetVmSizes"]
|
|
92
|
+
? item["targetVmSizes"]
|
|
93
|
+
: item["targetVmSizes"].map((p) => {
|
|
94
|
+
return p;
|
|
95
|
+
}),
|
|
96
|
+
subscriptionOptions: !item["subscriptionOptions"]
|
|
97
|
+
? item["subscriptionOptions"]
|
|
98
|
+
: recommendVmSkuSubscriptionOptionsSerializer(item["subscriptionOptions"]),
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
export function recommendVmSkuModelSerializer(item) {
|
|
102
|
+
return {
|
|
103
|
+
huggingFaceModelId: item["huggingFaceModelId"],
|
|
104
|
+
parameterCount: item["parameterCount"],
|
|
105
|
+
weightPrecision: item["weightPrecision"],
|
|
106
|
+
numLayers: item["numLayers"],
|
|
107
|
+
numKeyValueHeads: item["numKeyValueHeads"],
|
|
108
|
+
headDim: item["headDim"],
|
|
109
|
+
maxContextLength: item["maxContextLength"],
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
/** The precision a model's weights are served at. */
|
|
113
|
+
export var KnownWeightPrecision;
|
|
114
|
+
(function (KnownWeightPrecision) {
|
|
115
|
+
/** 32-bit floating point. */
|
|
116
|
+
KnownWeightPrecision["FP32"] = "FP32";
|
|
117
|
+
/** 16-bit floating point. */
|
|
118
|
+
KnownWeightPrecision["FP16"] = "FP16";
|
|
119
|
+
/** 16-bit brain floating point. */
|
|
120
|
+
KnownWeightPrecision["BF16"] = "BF16";
|
|
121
|
+
/** 8-bit floating point. */
|
|
122
|
+
KnownWeightPrecision["FP8"] = "FP8";
|
|
123
|
+
/** 8-bit integer. */
|
|
124
|
+
KnownWeightPrecision["INT8"] = "INT8";
|
|
125
|
+
/** 4-bit integer. */
|
|
126
|
+
KnownWeightPrecision["INT4"] = "INT4";
|
|
127
|
+
/** 4-bit floating point. */
|
|
128
|
+
KnownWeightPrecision["FP4"] = "FP4";
|
|
129
|
+
})(KnownWeightPrecision || (KnownWeightPrecision = {}));
|
|
130
|
+
export function recommendVmSkuWorkloadSerializer(item) {
|
|
131
|
+
return {
|
|
132
|
+
maxConcurrentRequestsPerReplica: item["maxConcurrentRequestsPerReplica"],
|
|
133
|
+
tokenBudget: !item["tokenBudget"]
|
|
134
|
+
? item["tokenBudget"]
|
|
135
|
+
: recommendVmSkuTokenBudgetSerializer(item["tokenBudget"]),
|
|
136
|
+
};
|
|
137
|
+
}
|
|
138
|
+
export function recommendVmSkuTokenBudgetSerializer(item) {
|
|
139
|
+
return { promptTokens: item["promptTokens"], maxOutputTokens: item["maxOutputTokens"] };
|
|
140
|
+
}
|
|
141
|
+
export function recommendVmSkuDeploymentSerializer(item) {
|
|
142
|
+
return { replicaCount: item["replicaCount"], procurementOption: item["procurementOption"] };
|
|
143
|
+
}
|
|
144
|
+
/** The Azure virtual machine procurement option. */
|
|
145
|
+
export var KnownProcurementOption;
|
|
146
|
+
(function (KnownProcurementOption) {
|
|
147
|
+
/** Use standard on-demand capacity. */
|
|
148
|
+
KnownProcurementOption["OnDemand"] = "OnDemand";
|
|
149
|
+
/** Use interruptible Spot capacity. */
|
|
150
|
+
KnownProcurementOption["Spot"] = "Spot";
|
|
151
|
+
})(KnownProcurementOption || (KnownProcurementOption = {}));
|
|
152
|
+
export function recommendVmSkuOptimizationSerializer(item) {
|
|
153
|
+
return {
|
|
154
|
+
rankingPreference: item["rankingPreference"],
|
|
155
|
+
maxDeploymentCostPerHour: !item["maxDeploymentCostPerHour"]
|
|
156
|
+
? item["maxDeploymentCostPerHour"]
|
|
157
|
+
: recommendVmSkuHourlyCostSerializer(item["maxDeploymentCostPerHour"]),
|
|
158
|
+
};
|
|
159
|
+
}
|
|
160
|
+
/** The preference used to rank the recommended options. */
|
|
161
|
+
export var KnownRankingPreference;
|
|
162
|
+
(function (KnownRankingPreference) {
|
|
163
|
+
/** Rank the options by deployment cost. */
|
|
164
|
+
KnownRankingPreference["Cost"] = "Cost";
|
|
165
|
+
/** Rank the options by inference latency. */
|
|
166
|
+
KnownRankingPreference["Latency"] = "Latency";
|
|
167
|
+
})(KnownRankingPreference || (KnownRankingPreference = {}));
|
|
168
|
+
export function recommendVmSkuHourlyCostSerializer(item) {
|
|
169
|
+
return { amount: item["amount"], currencyCode: item["currencyCode"] };
|
|
170
|
+
}
|
|
171
|
+
export function recommendVmSkuSubscriptionOptionsSerializer(item) {
|
|
172
|
+
return {
|
|
173
|
+
includeQuota: item["includeQuota"],
|
|
174
|
+
includePlacement: item["includePlacement"],
|
|
175
|
+
includePricing: item["includePricing"],
|
|
176
|
+
};
|
|
177
|
+
}
|
|
178
|
+
export function recommendVmSkuResponseDeserializer(item) {
|
|
179
|
+
return {
|
|
180
|
+
options: recommendVmSkuOptionArrayDeserializer(item["options"]),
|
|
181
|
+
sizing: recommendVmSkuSizingDeserializer(item["sizing"]),
|
|
182
|
+
};
|
|
183
|
+
}
|
|
184
|
+
export function recommendVmSkuOptionArrayDeserializer(result) {
|
|
185
|
+
return result.map((item) => {
|
|
186
|
+
return recommendVmSkuOptionDeserializer(item);
|
|
187
|
+
});
|
|
188
|
+
}
|
|
189
|
+
export function recommendVmSkuOptionDeserializer(item) {
|
|
190
|
+
return {
|
|
191
|
+
vmSize: item["vmSize"],
|
|
192
|
+
recommendationRank: item["recommendationRank"],
|
|
193
|
+
readiness: recommendVmSkuReadinessDeserializer(item["readiness"]),
|
|
194
|
+
topology: recommendVmSkuTopologyDeserializer(item["topology"]),
|
|
195
|
+
cost: recommendVmSkuCostDeserializer(item["cost"]),
|
|
196
|
+
quota: !item["quota"] ? item["quota"] : recommendVmSkuQuotaDeserializer(item["quota"]),
|
|
197
|
+
placement: !item["placement"]
|
|
198
|
+
? item["placement"]
|
|
199
|
+
: recommendVmSkuPlacementDeserializer(item["placement"]),
|
|
200
|
+
azureMlRecommended: item["azureMlRecommended"],
|
|
201
|
+
benchmark: !item["benchmark"]
|
|
202
|
+
? item["benchmark"]
|
|
203
|
+
: recommendVmSkuBenchmarkDeserializer(item["benchmark"]),
|
|
204
|
+
documentationUrl: item["documentationUrl"],
|
|
205
|
+
performanceEstimate: !item["performanceEstimate"]
|
|
206
|
+
? item["performanceEstimate"]
|
|
207
|
+
: recommendVmSkuPerformanceEstimateDeserializer(item["performanceEstimate"]),
|
|
208
|
+
};
|
|
209
|
+
}
|
|
210
|
+
export function recommendVmSkuReadinessDeserializer(item) {
|
|
211
|
+
return {
|
|
212
|
+
status: item["status"],
|
|
213
|
+
reason: item["reason"],
|
|
214
|
+
};
|
|
215
|
+
}
|
|
216
|
+
/** The current actionability of a recommended option. */
|
|
217
|
+
export var KnownReadinessStatus;
|
|
218
|
+
(function (KnownReadinessStatus) {
|
|
219
|
+
/** The option can be attempted without a known prerequisite action. */
|
|
220
|
+
KnownReadinessStatus["ReadyToAttempt"] = "ReadyToAttempt";
|
|
221
|
+
/** The option requires a quota increase before deployment. */
|
|
222
|
+
KnownReadinessStatus["QuotaIncreaseRequired"] = "QuotaIncreaseRequired";
|
|
223
|
+
/** The option requires an external verification before deployment. */
|
|
224
|
+
KnownReadinessStatus["VerificationRequired"] = "VerificationRequired";
|
|
225
|
+
/** The option is not available to the subscription in the requested region. */
|
|
226
|
+
KnownReadinessStatus["Unavailable"] = "Unavailable";
|
|
227
|
+
})(KnownReadinessStatus || (KnownReadinessStatus = {}));
|
|
228
|
+
export function recommendVmSkuTopologyDeserializer(item) {
|
|
229
|
+
return {
|
|
230
|
+
estimatedNodeCountPerReplica: item["estimatedNodeCountPerReplica"],
|
|
231
|
+
estimatedTotalNodeCount: item["estimatedTotalNodeCount"],
|
|
232
|
+
accelerator: recommendVmSkuAcceleratorDeserializer(item["accelerator"]),
|
|
233
|
+
};
|
|
234
|
+
}
|
|
235
|
+
export function recommendVmSkuAcceleratorDeserializer(item) {
|
|
236
|
+
return {
|
|
237
|
+
model: item["model"],
|
|
238
|
+
countPerVm: item["countPerVm"],
|
|
239
|
+
memoryGiBPerAccelerator: item["memoryGiBPerAccelerator"],
|
|
240
|
+
};
|
|
241
|
+
}
|
|
242
|
+
export function recommendVmSkuCostDeserializer(item) {
|
|
243
|
+
return {
|
|
244
|
+
currencyCode: item["currencyCode"],
|
|
245
|
+
vmHourly: item["vmHourly"],
|
|
246
|
+
deploymentHourly: item["deploymentHourly"],
|
|
247
|
+
source: item["source"],
|
|
248
|
+
priceAsOf: !item["priceAsOf"] ? item["priceAsOf"] : new Date(item["priceAsOf"]),
|
|
249
|
+
error: !item["error"] ? item["error"] : recommendVmSkuStageErrorDeserializer(item["error"]),
|
|
250
|
+
};
|
|
251
|
+
}
|
|
252
|
+
/** The source a price was resolved from. */
|
|
253
|
+
export var KnownCostSource;
|
|
254
|
+
(function (KnownCostSource) {
|
|
255
|
+
/** The price came from the public Azure retail catalog. */
|
|
256
|
+
KnownCostSource["AzureRetail"] = "AzureRetail";
|
|
257
|
+
/** The price came from the caller's Azure subscription. */
|
|
258
|
+
KnownCostSource["AzureSubscription"] = "AzureSubscription";
|
|
259
|
+
/** The price is fixed illustrative data for a contract preview. */
|
|
260
|
+
KnownCostSource["StaticPreview"] = "StaticPreview";
|
|
261
|
+
})(KnownCostSource || (KnownCostSource = {}));
|
|
262
|
+
export function recommendVmSkuStageErrorDeserializer(item) {
|
|
263
|
+
return {
|
|
264
|
+
code: item["code"],
|
|
265
|
+
message: item["message"],
|
|
266
|
+
};
|
|
267
|
+
}
|
|
268
|
+
/** The reason an optional subscription-scoped stage did not complete. */
|
|
269
|
+
export var KnownStageErrorCode;
|
|
270
|
+
(function (KnownStageErrorCode) {
|
|
271
|
+
/** The stage exceeded its deadline. */
|
|
272
|
+
KnownStageErrorCode["TimedOut"] = "TimedOut";
|
|
273
|
+
/** The stage was throttled. */
|
|
274
|
+
KnownStageErrorCode["Throttled"] = "Throttled";
|
|
275
|
+
/** The service reached its active caller partition capacity. */
|
|
276
|
+
KnownStageErrorCode["PartitionCapacityExceeded"] = "PartitionCapacityExceeded";
|
|
277
|
+
/** A downstream dependency call failed. */
|
|
278
|
+
KnownStageErrorCode["DependencyError"] = "DependencyError";
|
|
279
|
+
/** Required downstream data was unavailable. */
|
|
280
|
+
KnownStageErrorCode["DataUnavailable"] = "DataUnavailable";
|
|
281
|
+
/** The optional evaluation call budget was exhausted. */
|
|
282
|
+
KnownStageErrorCode["EvaluationBudgetExceeded"] = "EvaluationBudgetExceeded";
|
|
283
|
+
})(KnownStageErrorCode || (KnownStageErrorCode = {}));
|
|
284
|
+
export function recommendVmSkuQuotaDeserializer(item) {
|
|
285
|
+
return {
|
|
286
|
+
status: item["status"],
|
|
287
|
+
reason: item["reason"],
|
|
288
|
+
error: !item["error"] ? item["error"] : recommendVmSkuStageErrorDeserializer(item["error"]),
|
|
289
|
+
maxAvailableReplicaCount: item["maxAvailableReplicaCount"],
|
|
290
|
+
increase: !item["increase"]
|
|
291
|
+
? item["increase"]
|
|
292
|
+
: recommendVmSkuQuotaIncreaseDeserializer(item["increase"]),
|
|
293
|
+
};
|
|
294
|
+
}
|
|
295
|
+
/** Whether subscription quota is sufficient for a requested deployment. */
|
|
296
|
+
export var KnownQuotaStatus;
|
|
297
|
+
(function (KnownQuotaStatus) {
|
|
298
|
+
/** Quota is sufficient for the requested replicas. */
|
|
299
|
+
KnownQuotaStatus["Available"] = "Available";
|
|
300
|
+
/** Quota is insufficient for the requested replicas. */
|
|
301
|
+
KnownQuotaStatus["Unavailable"] = "Unavailable";
|
|
302
|
+
/** Quota could not be determined. */
|
|
303
|
+
KnownQuotaStatus["Unknown"] = "Unknown";
|
|
304
|
+
})(KnownQuotaStatus || (KnownQuotaStatus = {}));
|
|
305
|
+
export function recommendVmSkuQuotaIncreaseDeserializer(item) {
|
|
306
|
+
return {
|
|
307
|
+
limits: recommendVmSkuQuotaLimitArrayDeserializer(item["limits"]),
|
|
308
|
+
portalUrl: item["portalUrl"],
|
|
309
|
+
};
|
|
310
|
+
}
|
|
311
|
+
export function recommendVmSkuQuotaLimitArrayDeserializer(result) {
|
|
312
|
+
return result.map((item) => {
|
|
313
|
+
return recommendVmSkuQuotaLimitDeserializer(item);
|
|
314
|
+
});
|
|
315
|
+
}
|
|
316
|
+
export function recommendVmSkuQuotaLimitDeserializer(item) {
|
|
317
|
+
return {
|
|
318
|
+
name: item["name"],
|
|
319
|
+
currentUsage: item["currentUsage"],
|
|
320
|
+
currentLimit: item["currentLimit"],
|
|
321
|
+
requiredLimit: item["requiredLimit"],
|
|
322
|
+
};
|
|
323
|
+
}
|
|
324
|
+
export function recommendVmSkuPlacementDeserializer(item) {
|
|
325
|
+
return {
|
|
326
|
+
status: item["status"],
|
|
327
|
+
reason: item["reason"],
|
|
328
|
+
error: !item["error"] ? item["error"] : recommendVmSkuStageErrorDeserializer(item["error"]),
|
|
329
|
+
recommendedAvailabilityZones: !item["recommendedAvailabilityZones"]
|
|
330
|
+
? item["recommendedAvailabilityZones"]
|
|
331
|
+
: item["recommendedAvailabilityZones"].map((p) => {
|
|
332
|
+
return p;
|
|
333
|
+
}),
|
|
334
|
+
};
|
|
335
|
+
}
|
|
336
|
+
/** The outcome of a capacity placement query. */
|
|
337
|
+
export var KnownPlacementStatus;
|
|
338
|
+
(function (KnownPlacementStatus) {
|
|
339
|
+
/** The placement check completed successfully. */
|
|
340
|
+
KnownPlacementStatus["Evaluated"] = "Evaluated";
|
|
341
|
+
/** The placement check failed. */
|
|
342
|
+
KnownPlacementStatus["Failed"] = "Failed";
|
|
343
|
+
/** The placement check was not run. */
|
|
344
|
+
KnownPlacementStatus["NotEvaluated"] = "NotEvaluated";
|
|
345
|
+
/** The placement check is not supported for this option. */
|
|
346
|
+
KnownPlacementStatus["Unsupported"] = "Unsupported";
|
|
347
|
+
})(KnownPlacementStatus || (KnownPlacementStatus = {}));
|
|
348
|
+
export function recommendVmSkuBenchmarkDeserializer(item) {
|
|
349
|
+
return {
|
|
350
|
+
level: item["level"],
|
|
351
|
+
modelClass: item["modelClass"],
|
|
352
|
+
scenario: item["scenario"],
|
|
353
|
+
submitterCount: item["submitterCount"],
|
|
354
|
+
submissionId: item["submissionId"],
|
|
355
|
+
benchmarkModel: item["benchmarkModel"],
|
|
356
|
+
submitter: item["submitter"],
|
|
357
|
+
system: item["system"],
|
|
358
|
+
throughput: item["throughput"],
|
|
359
|
+
throughputUnit: item["throughputUnit"],
|
|
360
|
+
software: item["software"],
|
|
361
|
+
operatingSystem: item["operatingSystem"],
|
|
362
|
+
weightDataTypes: item["weightDataTypes"],
|
|
363
|
+
p99TtftMs: item["p99TtftMs"],
|
|
364
|
+
p99TpotMs: item["p99TpotMs"],
|
|
365
|
+
};
|
|
366
|
+
}
|
|
367
|
+
/** How closely benchmark evidence matches a recommended topology. */
|
|
368
|
+
export var KnownBenchmarkLevel;
|
|
369
|
+
(function (KnownBenchmarkLevel) {
|
|
370
|
+
/** The accelerator family has benchmark evidence at a different topology. */
|
|
371
|
+
KnownBenchmarkLevel["Benchmarked"] = "Benchmarked";
|
|
372
|
+
/** The benchmark matches the recommended node and accelerator counts. */
|
|
373
|
+
KnownBenchmarkLevel["TopologyMatched"] = "TopologyMatched";
|
|
374
|
+
})(KnownBenchmarkLevel || (KnownBenchmarkLevel = {}));
|
|
375
|
+
export function recommendVmSkuPerformanceEstimateDeserializer(item) {
|
|
376
|
+
return {
|
|
377
|
+
deploymentOutputTokensPerSecond: item["deploymentOutputTokensPerSecond"],
|
|
378
|
+
ttftMs: item["ttftMs"],
|
|
379
|
+
};
|
|
380
|
+
}
|
|
381
|
+
export function recommendVmSkuSizingDeserializer(item) {
|
|
382
|
+
return {
|
|
383
|
+
model: recommendVmSkuSizingModelDeserializer(item["model"]),
|
|
384
|
+
workload: recommendVmSkuSizingWorkloadDeserializer(item["workload"]),
|
|
385
|
+
memory: recommendVmSkuMemoryDeserializer(item["memory"]),
|
|
386
|
+
basis: recommendVmSkuSizingBasisDeserializer(item["basis"]),
|
|
387
|
+
};
|
|
388
|
+
}
|
|
389
|
+
export function recommendVmSkuSizingModelDeserializer(item) {
|
|
390
|
+
return {
|
|
391
|
+
parameterCount: item["parameterCount"],
|
|
392
|
+
weightPrecision: item["weightPrecision"],
|
|
393
|
+
huggingFaceModelId: item["huggingFaceModelId"],
|
|
394
|
+
};
|
|
395
|
+
}
|
|
396
|
+
export function recommendVmSkuSizingWorkloadDeserializer(item) {
|
|
397
|
+
return {
|
|
398
|
+
maxConcurrentRequestsPerReplica: item["maxConcurrentRequestsPerReplica"],
|
|
399
|
+
contextLength: item["contextLength"],
|
|
400
|
+
};
|
|
401
|
+
}
|
|
402
|
+
export function recommendVmSkuMemoryDeserializer(item) {
|
|
403
|
+
return {
|
|
404
|
+
modelWeightsGiB: item["modelWeightsGiB"],
|
|
405
|
+
kvCacheGiBPerRequest: item["kvCacheGiBPerRequest"],
|
|
406
|
+
kvCacheGiBTotal: item["kvCacheGiBTotal"],
|
|
407
|
+
modelAndKvCacheGiB: item["modelAndKvCacheGiB"],
|
|
408
|
+
};
|
|
409
|
+
}
|
|
410
|
+
export function recommendVmSkuSizingBasisDeserializer(item) {
|
|
411
|
+
return {
|
|
412
|
+
parameterCountSource: item["parameterCountSource"],
|
|
413
|
+
modelWeightsCalculation: item["modelWeightsCalculation"],
|
|
414
|
+
contextLengthSource: item["contextLengthSource"],
|
|
415
|
+
};
|
|
416
|
+
}
|
|
417
|
+
/** Where a model parameter count was resolved from. */
|
|
418
|
+
export var KnownParameterCountSource;
|
|
419
|
+
(function (KnownParameterCountSource) {
|
|
420
|
+
/** The parameter count was supplied in the request. */
|
|
421
|
+
KnownParameterCountSource["Request"] = "Request";
|
|
422
|
+
/** The parameter count was resolved from Hugging Face metadata. */
|
|
423
|
+
KnownParameterCountSource["HuggingFace"] = "HuggingFace";
|
|
424
|
+
})(KnownParameterCountSource || (KnownParameterCountSource = {}));
|
|
425
|
+
/** How model weight memory was calculated. */
|
|
426
|
+
export var KnownModelWeightsCalculation;
|
|
427
|
+
(function (KnownModelWeightsCalculation) {
|
|
428
|
+
/** The memory was calculated from the published model artifact size. */
|
|
429
|
+
KnownModelWeightsCalculation["ArtifactSize"] = "ArtifactSize";
|
|
430
|
+
/** The memory was estimated from the model parameter count. */
|
|
431
|
+
KnownModelWeightsCalculation["EstimatedFromParameterCount"] = "EstimatedFromParameterCount";
|
|
432
|
+
})(KnownModelWeightsCalculation || (KnownModelWeightsCalculation = {}));
|
|
433
|
+
/** Where a context length was resolved from. */
|
|
434
|
+
export var KnownContextLengthSource;
|
|
435
|
+
(function (KnownContextLengthSource) {
|
|
436
|
+
/** The context length is the sum of the request's `workload.tokenBudget.promptTokens` and `maxOutputTokens`. */
|
|
437
|
+
KnownContextLengthSource["Request"] = "Request";
|
|
438
|
+
/** No token budget was supplied, so the service default context length was used. */
|
|
439
|
+
KnownContextLengthSource["Default"] = "Default";
|
|
440
|
+
})(KnownContextLengthSource || (KnownContextLengthSource = {}));
|
|
441
|
+
/** The available API versions. */
|
|
442
|
+
export var KnownVersions;
|
|
443
|
+
(function (KnownVersions) {
|
|
444
|
+
/** The 2026-06-01-preview API version. */
|
|
445
|
+
KnownVersions["V20260601Preview"] = "2026-06-01-preview";
|
|
446
|
+
})(KnownVersions || (KnownVersions = {}));
|
|
447
|
+
//# sourceMappingURL=models.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"models.js","sourceRoot":"","sources":["../../../src/models/models.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAiBlC,MAAM,UAAU,gCAAgC,CAAC,IAAS;IACxD,OAAO;QACL,KAAK,EAAE,0BAA0B,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAChD,QAAQ,EAAE,IAAI,CAAC,UAAU,CAAC;KAC3B,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,0BAA0B,CAAC,MAAwB;IACjE,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;QACzB,OAAO,qBAAqB,CAAC,IAAI,CAAC,CAAC;IACrC,CAAC,CAAC,CAAC;AACL,CAAC;AAgBD,MAAM,UAAU,qBAAqB,CAAC,IAAS;IAC7C,OAAO;QACL,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC;QAClB,YAAY,EAAE,IAAI,CAAC,cAAc,CAAC;QAClC,OAAO,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,4BAA4B,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QAC3F,MAAM,EAAE,IAAI,CAAC,QAAQ,CAAC;QACtB,UAAU,EAAE,IAAI,CAAC,YAA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AALD,WAAY,4BAA4B;IACtC,wEAAwE;IACxE,6DAA6B,CAAA;IAC7B,+DAA+D;IAC/D,2FAA2D,CAAA;AAC7D,CAAC,EALW,4BAA4B,KAA5B,4BAA4B,QAKvC;AAYD,gDAAgD;AAChD,MAAM,CAAN,IAAY,wBAKX;AALD,WAAY,wBAAwB;IAClC,gHAAgH;IAChH,+CAAmB,CAAA;IACnB,oFAAoF;IACpF,+CAAmB,CAAA;AACrB,CAAC,EALW,wBAAwB,KAAxB,wBAAwB,QAKnC;AAYD,kCAAkC;AAClC,MAAM,CAAN,IAAY,aAGX;AAHD,WAAY,aAAa;IACvB,0CAA0C;IAC1C,wDAAuC,CAAA;AACzC,CAAC,EAHW,aAAa,KAAb,aAAa,QAGxB","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/*\n * This file contains only generated model types and their (de)serializers.\n * Disable the following rules for internal models with '_' prefix and deserializers which require 'any' for raw JSON input.\n */\n/* eslint-disable @typescript-eslint/naming-convention */\n/* eslint-disable @typescript-eslint/explicit-module-boundary-types */\n\n/** A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of results. */\nexport interface _OperationListResult {\n /** The Operation items on this page */\n value: Operation[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _operationListResultDeserializer(item: any): _OperationListResult {\n return {\n value: operationArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function operationArrayDeserializer(result: Array<Operation>): any[] {\n return result.map((item) => {\n return operationDeserializer(item);\n });\n}\n\n/** Details of a REST API operation, returned from the Resource Provider Operations API */\nexport interface Operation {\n /** The name of the operation, as per Resource-Based Access Control (RBAC). Examples: \"Microsoft.Compute/virtualMachines/write\", \"Microsoft.Compute/virtualMachines/capture/action\" */\n readonly name?: string;\n /** Whether the operation applies to data-plane. This is \"true\" for data-plane operations and \"false\" for Azure Resource Manager/control-plane operations. */\n readonly isDataAction?: boolean;\n /** Localized display information for this particular operation. */\n display?: OperationDisplay;\n /** The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is \"user,system\" */\n readonly origin?: Origin;\n /** Extensible enum. Indicates the action type. \"Internal\" refers to actions that are for internal only APIs. */\n readonly actionType?: ActionType;\n}\n\nexport function operationDeserializer(item: any): Operation {\n return {\n name: item[\"name\"],\n isDataAction: item[\"isDataAction\"],\n display: !item[\"display\"] ? item[\"display\"] : operationDisplayDeserializer(item[\"display\"]),\n origin: item[\"origin\"],\n actionType: item[\"actionType\"],\n };\n}\n\n/** Localized display information for an operation. */\nexport interface OperationDisplay {\n /** The localized friendly form of the resource provider name, e.g. \"Microsoft Monitoring Insights\" or \"Microsoft Compute\". */\n readonly provider?: string;\n /** The localized friendly name of the resource type related to this operation. E.g. \"Virtual Machines\" or \"Job Schedule Collections\". */\n readonly resource?: string;\n /** The concise, localized friendly name for the operation; suitable for dropdowns. E.g. \"Create or Update Virtual Machine\", \"Restart Virtual Machine\". */\n readonly operation?: string;\n /** The short, localized friendly description of the operation; suitable for tool tips and detailed views. */\n readonly description?: string;\n}\n\nexport function operationDisplayDeserializer(item: any): OperationDisplay {\n return {\n provider: item[\"provider\"],\n resource: item[\"resource\"],\n operation: item[\"operation\"],\n description: item[\"description\"],\n };\n}\n\n/** The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is \"user,system\" */\nexport enum KnownOrigin {\n /** Indicates the operation is initiated by a user. */\n User = \"user\",\n /** Indicates the operation is initiated by a system. */\n System = \"system\",\n /** Indicates the operation is initiated by a user or system. */\n UserSystem = \"user,system\",\n}\n\n/**\n * The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is \"user,system\" \\\n * {@link KnownOrigin} can be used interchangeably with Origin,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **user**: Indicates the operation is initiated by a user. \\\n * **system**: Indicates the operation is initiated by a system. \\\n * **user,system**: Indicates the operation is initiated by a user or system.\n */\nexport type Origin = string;\n\n/** Extensible enum. Indicates the action type. \"Internal\" refers to actions that are for internal only APIs. */\nexport enum KnownActionType {\n /** Actions are for internal-only APIs. */\n Internal = \"Internal\",\n}\n\n/**\n * Extensible enum. Indicates the action type. \"Internal\" refers to actions that are for internal only APIs. \\\n * {@link KnownActionType} can be used interchangeably with ActionType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Internal**: Actions are for internal-only APIs.\n */\nexport type ActionType = string;\n\n/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. */\nexport interface ErrorResponse {\n /** The error object. */\n error?: ErrorDetail;\n}\n\nexport function errorResponseDeserializer(item: any): ErrorResponse {\n return {\n error: !item[\"error\"] ? item[\"error\"] : errorDetailDeserializer(item[\"error\"]),\n };\n}\n\n/** The error detail. */\nexport interface ErrorDetail {\n /** The error code. */\n readonly code?: string;\n /** The error message. */\n readonly message?: string;\n /** The error target. */\n readonly target?: string;\n /** The error details. */\n readonly details?: ErrorDetail[];\n /** The error additional info. */\n readonly additionalInfo?: ErrorAdditionalInfo[];\n}\n\nexport function errorDetailDeserializer(item: any): ErrorDetail {\n return {\n code: item[\"code\"],\n message: item[\"message\"],\n target: item[\"target\"],\n details: !item[\"details\"] ? item[\"details\"] : errorDetailArrayDeserializer(item[\"details\"]),\n additionalInfo: !item[\"additionalInfo\"]\n ? item[\"additionalInfo\"]\n : errorAdditionalInfoArrayDeserializer(item[\"additionalInfo\"]),\n };\n}\n\nexport function errorDetailArrayDeserializer(result: Array<ErrorDetail>): any[] {\n return result.map((item) => {\n return errorDetailDeserializer(item);\n });\n}\n\nexport function errorAdditionalInfoArrayDeserializer(result: Array<ErrorAdditionalInfo>): any[] {\n return result.map((item) => {\n return errorAdditionalInfoDeserializer(item);\n });\n}\n\n/** The resource management error additional info. */\nexport interface ErrorAdditionalInfo {\n /** The additional info type. */\n readonly type?: string;\n /** The additional info. */\n readonly info?: any;\n}\n\nexport function errorAdditionalInfoDeserializer(item: any): ErrorAdditionalInfo {\n return {\n type: item[\"type\"],\n info: item[\"info\"],\n };\n}\n\n/** The parameters used to request an Azure virtual machine size recommendation for an AI workload. */\nexport interface RecommendVmSkuRequest {\n /** Model identity, sizing inputs, and optional maximum model context length. */\n model?: RecommendVmSkuModel;\n /** Inference request concurrency and token shape assumptions. */\n workload?: RecommendVmSkuWorkload;\n /** Deployment scale and Azure virtual machine procurement option. */\n deployment?: RecommendVmSkuDeployment;\n /** Ranking preference and optional deployment-wide hourly cost limit. */\n optimization?: RecommendVmSkuOptimization;\n /** The Azure virtual machine candidate set. When supplied, only these virtual machine sizes are ranked. Entries must be non-blank and unique, compared case-insensitively. */\n targetVmSizes?: string[];\n /** The subscription-scoped lookups to include in the recommendation. */\n subscriptionOptions?: RecommendVmSkuSubscriptionOptions;\n}\n\nexport function recommendVmSkuRequestSerializer(item: RecommendVmSkuRequest): any {\n return {\n model: !item[\"model\"] ? item[\"model\"] : recommendVmSkuModelSerializer(item[\"model\"]),\n workload: !item[\"workload\"]\n ? item[\"workload\"]\n : recommendVmSkuWorkloadSerializer(item[\"workload\"]),\n deployment: !item[\"deployment\"]\n ? item[\"deployment\"]\n : recommendVmSkuDeploymentSerializer(item[\"deployment\"]),\n optimization: !item[\"optimization\"]\n ? item[\"optimization\"]\n : recommendVmSkuOptimizationSerializer(item[\"optimization\"]),\n targetVmSizes: !item[\"targetVmSizes\"]\n ? item[\"targetVmSizes\"]\n : item[\"targetVmSizes\"].map((p: any) => {\n return p;\n }),\n subscriptionOptions: !item[\"subscriptionOptions\"]\n ? item[\"subscriptionOptions\"]\n : recommendVmSkuSubscriptionOptionsSerializer(item[\"subscriptionOptions\"]),\n };\n}\n\n/** Model inputs used for metadata resolution and memory sizing. */\nexport interface RecommendVmSkuModel {\n /** The Hugging Face model identifier, for example `meta-llama/Llama-3.1-70B-Instruct`. */\n huggingFaceModelId?: string;\n /** The logical total model parameter count, including all mixture-of-experts experts. May be supplied with or without a model identifier. */\n parameterCount?: number;\n /** The precision the model weights are served at. Matched case-insensitively. */\n weightPrecision?: WeightPrecision;\n /** The model layer count, used for architecture-aware key-value cache sizing. Supply all architecture fields together with a parameter count. */\n numLayers?: number;\n /** The model key-value head count, used for architecture-aware key-value cache sizing. Supply all architecture fields together with a parameter count. */\n numKeyValueHeads?: number;\n /** The attention head dimension, used for architecture-aware key-value cache sizing. Supply all architecture fields together with a parameter count. */\n headDim?: number;\n /** The maximum context length the model supports, in tokens. Used only as an upper bound for the sizing context length when Hugging Face metadata provides no usable maximum. */\n maxContextLength?: number;\n}\n\nexport function recommendVmSkuModelSerializer(item: RecommendVmSkuModel): any {\n return {\n huggingFaceModelId: item[\"huggingFaceModelId\"],\n parameterCount: item[\"parameterCount\"],\n weightPrecision: item[\"weightPrecision\"],\n numLayers: item[\"numLayers\"],\n numKeyValueHeads: item[\"numKeyValueHeads\"],\n headDim: item[\"headDim\"],\n maxContextLength: item[\"maxContextLength\"],\n };\n}\n\n/** The precision a model's weights are served at. */\nexport enum KnownWeightPrecision {\n /** 32-bit floating point. */\n FP32 = \"FP32\",\n /** 16-bit floating point. */\n FP16 = \"FP16\",\n /** 16-bit brain floating point. */\n BF16 = \"BF16\",\n /** 8-bit floating point. */\n FP8 = \"FP8\",\n /** 8-bit integer. */\n INT8 = \"INT8\",\n /** 4-bit integer. */\n INT4 = \"INT4\",\n /** 4-bit floating point. */\n FP4 = \"FP4\",\n}\n\n/**\n * The precision a model's weights are served at. \\\n * {@link KnownWeightPrecision} can be used interchangeably with WeightPrecision,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **FP32**: 32-bit floating point. \\\n * **FP16**: 16-bit floating point. \\\n * **BF16**: 16-bit brain floating point. \\\n * **FP8**: 8-bit floating point. \\\n * **INT8**: 8-bit integer. \\\n * **INT4**: 4-bit integer. \\\n * **FP4**: 4-bit floating point.\n */\nexport type WeightPrecision = string;\n\n/** Inference workload assumptions that affect memory sizing. */\nexport interface RecommendVmSkuWorkload {\n /** The maximum number of simultaneous inference requests handled by each deployment replica. */\n maxConcurrentRequestsPerReplica?: number;\n /** The prompt and output token budget used for key-value cache sizing. */\n tokenBudget?: RecommendVmSkuTokenBudget;\n}\n\nexport function recommendVmSkuWorkloadSerializer(item: RecommendVmSkuWorkload): any {\n return {\n maxConcurrentRequestsPerReplica: item[\"maxConcurrentRequestsPerReplica\"],\n tokenBudget: !item[\"tokenBudget\"]\n ? item[\"tokenBudget\"]\n : recommendVmSkuTokenBudgetSerializer(item[\"tokenBudget\"]),\n };\n}\n\n/** The per-request token budget used to size the inference key-value cache. */\nexport interface RecommendVmSkuTokenBudget {\n /** The number of prompt, or input, tokens per inference request. Must be supplied together with `maxOutputTokens`, and the two must total from 1 through 2147483647 without exceeding the model's maximum context length. */\n promptTokens?: number;\n /** The maximum number of generated output tokens per inference request. Must be supplied together with `promptTokens`, and the two must total from 1 through 2147483647 without exceeding the model's maximum context length. */\n maxOutputTokens?: number;\n}\n\nexport function recommendVmSkuTokenBudgetSerializer(item: RecommendVmSkuTokenBudget): any {\n return { promptTokens: item[\"promptTokens\"], maxOutputTokens: item[\"maxOutputTokens\"] };\n}\n\n/** Deployment scale and procurement inputs. */\nexport interface RecommendVmSkuDeployment {\n /** The number of deployment replicas used for cost, quota, and placement calculations. */\n replicaCount?: number;\n /** The Azure virtual machine procurement option. */\n procurementOption?: ProcurementOption;\n}\n\nexport function recommendVmSkuDeploymentSerializer(item: RecommendVmSkuDeployment): any {\n return { replicaCount: item[\"replicaCount\"], procurementOption: item[\"procurementOption\"] };\n}\n\n/** The Azure virtual machine procurement option. */\nexport enum KnownProcurementOption {\n /** Use standard on-demand capacity. */\n OnDemand = \"OnDemand\",\n /** Use interruptible Spot capacity. */\n Spot = \"Spot\",\n}\n\n/**\n * The Azure virtual machine procurement option. \\\n * {@link KnownProcurementOption} can be used interchangeably with ProcurementOption,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **OnDemand**: Use standard on-demand capacity. \\\n * **Spot**: Use interruptible Spot capacity.\n */\nexport type ProcurementOption = string;\n\n/** Ranking preference and optional deployment-wide hourly cost limit. */\nexport interface RecommendVmSkuOptimization {\n /** The preference used to rank the recommended options. */\n rankingPreference?: RankingPreference;\n /** The deployment-wide hourly cost ceiling. */\n maxDeploymentCostPerHour?: RecommendVmSkuHourlyCost;\n}\n\nexport function recommendVmSkuOptimizationSerializer(item: RecommendVmSkuOptimization): any {\n return {\n rankingPreference: item[\"rankingPreference\"],\n maxDeploymentCostPerHour: !item[\"maxDeploymentCostPerHour\"]\n ? item[\"maxDeploymentCostPerHour\"]\n : recommendVmSkuHourlyCostSerializer(item[\"maxDeploymentCostPerHour\"]),\n };\n}\n\n/** The preference used to rank the recommended options. */\nexport enum KnownRankingPreference {\n /** Rank the options by deployment cost. */\n Cost = \"Cost\",\n /** Rank the options by inference latency. */\n Latency = \"Latency\",\n}\n\n/**\n * The preference used to rank the recommended options. \\\n * {@link KnownRankingPreference} can be used interchangeably with RankingPreference,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Cost**: Rank the options by deployment cost. \\\n * **Latency**: Rank the options by inference latency.\n */\nexport type RankingPreference = string;\n\n/** A currency-qualified deployment-wide hourly cost. */\nexport interface RecommendVmSkuHourlyCost {\n /** The maximum cost per hour for the whole deployment. Must be greater than zero when supplied. */\n amount?: number;\n /** The ISO 4217 currency code the amount is expressed in. The recommendation service currently supports `USD`. */\n currencyCode?: string;\n}\n\nexport function recommendVmSkuHourlyCostSerializer(item: RecommendVmSkuHourlyCost): any {\n return { amount: item[\"amount\"], currencyCode: item[\"currencyCode\"] };\n}\n\n/** The subscription-scoped lookups to include in the recommendation. */\nexport interface RecommendVmSkuSubscriptionOptions {\n /** Whether to evaluate subscription quota for candidate virtual machine sizes. */\n includeQuota?: boolean;\n /** Whether to query placement scores for candidate virtual machine sizes with available quota. */\n includePlacement?: boolean;\n /** Whether to fetch subscription-scoped virtual machine pricing. */\n includePricing?: boolean;\n}\n\nexport function recommendVmSkuSubscriptionOptionsSerializer(\n item: RecommendVmSkuSubscriptionOptions,\n): any {\n return {\n includeQuota: item[\"includeQuota\"],\n includePlacement: item[\"includePlacement\"],\n includePricing: item[\"includePricing\"],\n };\n}\n\n/** The recommended Azure virtual machine sizes for the workload, with the sizing calculation they were derived from. */\nexport interface RecommendVmSkuResponse {\n /** The recommended virtual machine size options, ordered from the best to the worst match. */\n options: RecommendVmSkuOption[];\n /** The resolved workload sizing shared by every option. */\n sizing: RecommendVmSkuSizing;\n}\n\nexport function recommendVmSkuResponseDeserializer(item: any): RecommendVmSkuResponse {\n return {\n options: recommendVmSkuOptionArrayDeserializer(item[\"options\"]),\n sizing: recommendVmSkuSizingDeserializer(item[\"sizing\"]),\n };\n}\n\nexport function recommendVmSkuOptionArrayDeserializer(result: Array<RecommendVmSkuOption>): any[] {\n return result.map((item) => {\n return recommendVmSkuOptionDeserializer(item);\n });\n}\n\n/** One ranked virtual machine size recommendation. */\nexport interface RecommendVmSkuOption {\n /** The Azure virtual machine size name, for example `Standard_NC24ads_A100_v4`. */\n vmSize: string;\n /** The rank of this option within the response, where 1 is the best match. */\n recommendationRank: number;\n /** How ready this option is to deploy. */\n readiness: RecommendVmSkuReadiness;\n /** The deployment topology for this option. */\n topology: RecommendVmSkuTopology;\n /** The deployment cost for this option. */\n cost: RecommendVmSkuCost;\n /** The subscription quota evidence for this option. Returned only when `subscriptionOptions.includeQuota` is set. */\n quota?: RecommendVmSkuQuota;\n /** The capacity placement evidence for this option. Returned only when `subscriptionOptions.includePlacement` is set. */\n placement?: RecommendVmSkuPlacement;\n /** Whether the Azure Machine Learning model catalog recommends this virtual machine size for the model. */\n azureMlRecommended?: boolean;\n /** The external benchmark evidence selected for this option. */\n benchmark?: RecommendVmSkuBenchmark;\n /** A URL to the Azure documentation page for this virtual machine size. */\n documentationUrl?: string;\n /** The advisory deployment throughput and per-request latency estimate for this option. */\n performanceEstimate?: RecommendVmSkuPerformanceEstimate;\n}\n\nexport function recommendVmSkuOptionDeserializer(item: any): RecommendVmSkuOption {\n return {\n vmSize: item[\"vmSize\"],\n recommendationRank: item[\"recommendationRank\"],\n readiness: recommendVmSkuReadinessDeserializer(item[\"readiness\"]),\n topology: recommendVmSkuTopologyDeserializer(item[\"topology\"]),\n cost: recommendVmSkuCostDeserializer(item[\"cost\"]),\n quota: !item[\"quota\"] ? item[\"quota\"] : recommendVmSkuQuotaDeserializer(item[\"quota\"]),\n placement: !item[\"placement\"]\n ? item[\"placement\"]\n : recommendVmSkuPlacementDeserializer(item[\"placement\"]),\n azureMlRecommended: item[\"azureMlRecommended\"],\n benchmark: !item[\"benchmark\"]\n ? item[\"benchmark\"]\n : recommendVmSkuBenchmarkDeserializer(item[\"benchmark\"]),\n documentationUrl: item[\"documentationUrl\"],\n performanceEstimate: !item[\"performanceEstimate\"]\n ? item[\"performanceEstimate\"]\n : recommendVmSkuPerformanceEstimateDeserializer(item[\"performanceEstimate\"]),\n };\n}\n\n/** How ready a recommended option is to deploy. */\nexport interface RecommendVmSkuReadiness {\n /** The current actionability of the recommendation. */\n status: ReadinessStatus;\n /** A human-readable explanation of the readiness status. */\n reason: string;\n}\n\nexport function recommendVmSkuReadinessDeserializer(item: any): RecommendVmSkuReadiness {\n return {\n status: item[\"status\"],\n reason: item[\"reason\"],\n };\n}\n\n/** The current actionability of a recommended option. */\nexport enum KnownReadinessStatus {\n /** The option can be attempted without a known prerequisite action. */\n ReadyToAttempt = \"ReadyToAttempt\",\n /** The option requires a quota increase before deployment. */\n QuotaIncreaseRequired = \"QuotaIncreaseRequired\",\n /** The option requires an external verification before deployment. */\n VerificationRequired = \"VerificationRequired\",\n /** The option is not available to the subscription in the requested region. */\n Unavailable = \"Unavailable\",\n}\n\n/**\n * The current actionability of a recommended option. \\\n * {@link KnownReadinessStatus} can be used interchangeably with ReadinessStatus,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **ReadyToAttempt**: The option can be attempted without a known prerequisite action. \\\n * **QuotaIncreaseRequired**: The option requires a quota increase before deployment. \\\n * **VerificationRequired**: The option requires an external verification before deployment. \\\n * **Unavailable**: The option is not available to the subscription in the requested region.\n */\nexport type ReadinessStatus = string;\n\n/** The deployment topology for one virtual machine size option. */\nexport interface RecommendVmSkuTopology {\n /** The estimated number of virtual machine nodes required for a single replica. */\n estimatedNodeCountPerReplica: number;\n /** The estimated total number of virtual machine nodes across all replicas. */\n estimatedTotalNodeCount: number;\n /** The accelerator hardware available in each virtual machine. */\n accelerator: RecommendVmSkuAccelerator;\n}\n\nexport function recommendVmSkuTopologyDeserializer(item: any): RecommendVmSkuTopology {\n return {\n estimatedNodeCountPerReplica: item[\"estimatedNodeCountPerReplica\"],\n estimatedTotalNodeCount: item[\"estimatedTotalNodeCount\"],\n accelerator: recommendVmSkuAcceleratorDeserializer(item[\"accelerator\"]),\n };\n}\n\n/** The accelerator hardware available in each virtual machine. */\nexport interface RecommendVmSkuAccelerator {\n /** The accelerator model name, for example `A100` or `H100`. */\n model: string;\n /** The number of accelerator devices in each virtual machine. */\n countPerVm: number;\n /** The memory capacity of a single accelerator device, in gibibytes. */\n memoryGiBPerAccelerator: number;\n}\n\nexport function recommendVmSkuAcceleratorDeserializer(item: any): RecommendVmSkuAccelerator {\n return {\n model: item[\"model\"],\n countPerVm: item[\"countPerVm\"],\n memoryGiBPerAccelerator: item[\"memoryGiBPerAccelerator\"],\n };\n}\n\n/** The deployment cost for one virtual machine size option. */\nexport interface RecommendVmSkuCost {\n /** The ISO 4217 currency code all amounts in this object are expressed in. */\n currencyCode: string;\n /** The price per hour for a single virtual machine, in the stated currency. */\n vmHourly: number;\n /** The price per hour for the whole deployment, in the stated currency. */\n deploymentHourly: number;\n /** The source the price was resolved from. */\n source: CostSource;\n /** The date and time the price was observed. */\n priceAsOf?: Date;\n /** The error that prevented subscription-scoped pricing from being resolved, if any. */\n error?: RecommendVmSkuStageError;\n}\n\nexport function recommendVmSkuCostDeserializer(item: any): RecommendVmSkuCost {\n return {\n currencyCode: item[\"currencyCode\"],\n vmHourly: item[\"vmHourly\"],\n deploymentHourly: item[\"deploymentHourly\"],\n source: item[\"source\"],\n priceAsOf: !item[\"priceAsOf\"] ? item[\"priceAsOf\"] : new Date(item[\"priceAsOf\"]),\n error: !item[\"error\"] ? item[\"error\"] : recommendVmSkuStageErrorDeserializer(item[\"error\"]),\n };\n}\n\n/** The source a price was resolved from. */\nexport enum KnownCostSource {\n /** The price came from the public Azure retail catalog. */\n AzureRetail = \"AzureRetail\",\n /** The price came from the caller's Azure subscription. */\n AzureSubscription = \"AzureSubscription\",\n /** The price is fixed illustrative data for a contract preview. */\n StaticPreview = \"StaticPreview\",\n}\n\n/**\n * The source a price was resolved from. \\\n * {@link KnownCostSource} can be used interchangeably with CostSource,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **AzureRetail**: The price came from the public Azure retail catalog. \\\n * **AzureSubscription**: The price came from the caller's Azure subscription. \\\n * **StaticPreview**: The price is fixed illustrative data for a contract preview.\n */\nexport type CostSource = string;\n\n/** An error from an optional subscription-scoped recommendation stage. */\nexport interface RecommendVmSkuStageError {\n /** The reason the stage did not complete. */\n code: StageErrorCode;\n /** A human-readable description of the error. */\n message: string;\n}\n\nexport function recommendVmSkuStageErrorDeserializer(item: any): RecommendVmSkuStageError {\n return {\n code: item[\"code\"],\n message: item[\"message\"],\n };\n}\n\n/** The reason an optional subscription-scoped stage did not complete. */\nexport enum KnownStageErrorCode {\n /** The stage exceeded its deadline. */\n TimedOut = \"TimedOut\",\n /** The stage was throttled. */\n Throttled = \"Throttled\",\n /** The service reached its active caller partition capacity. */\n PartitionCapacityExceeded = \"PartitionCapacityExceeded\",\n /** A downstream dependency call failed. */\n DependencyError = \"DependencyError\",\n /** Required downstream data was unavailable. */\n DataUnavailable = \"DataUnavailable\",\n /** The optional evaluation call budget was exhausted. */\n EvaluationBudgetExceeded = \"EvaluationBudgetExceeded\",\n}\n\n/**\n * The reason an optional subscription-scoped stage did not complete. \\\n * {@link KnownStageErrorCode} can be used interchangeably with StageErrorCode,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **TimedOut**: The stage exceeded its deadline. \\\n * **Throttled**: The stage was throttled. \\\n * **PartitionCapacityExceeded**: The service reached its active caller partition capacity. \\\n * **DependencyError**: A downstream dependency call failed. \\\n * **DataUnavailable**: Required downstream data was unavailable. \\\n * **EvaluationBudgetExceeded**: The optional evaluation call budget was exhausted.\n */\nexport type StageErrorCode = string;\n\n/** The subscription quota evidence for one virtual machine size option. */\nexport interface RecommendVmSkuQuota {\n /** Whether subscription quota is sufficient for the requested deployment. */\n status: QuotaStatus;\n /** A human-readable explanation of the quota status. */\n reason?: string;\n /** The error that prevented quota from being evaluated, if any. */\n error?: RecommendVmSkuStageError;\n /** The maximum number of replicas that can be deployed with the available quota. */\n maxAvailableReplicaCount?: number;\n /** The quota increase required before this option can be deployed. */\n increase?: RecommendVmSkuQuotaIncrease;\n}\n\nexport function recommendVmSkuQuotaDeserializer(item: any): RecommendVmSkuQuota {\n return {\n status: item[\"status\"],\n reason: item[\"reason\"],\n error: !item[\"error\"] ? item[\"error\"] : recommendVmSkuStageErrorDeserializer(item[\"error\"]),\n maxAvailableReplicaCount: item[\"maxAvailableReplicaCount\"],\n increase: !item[\"increase\"]\n ? item[\"increase\"]\n : recommendVmSkuQuotaIncreaseDeserializer(item[\"increase\"]),\n };\n}\n\n/** Whether subscription quota is sufficient for a requested deployment. */\nexport enum KnownQuotaStatus {\n /** Quota is sufficient for the requested replicas. */\n Available = \"Available\",\n /** Quota is insufficient for the requested replicas. */\n Unavailable = \"Unavailable\",\n /** Quota could not be determined. */\n Unknown = \"Unknown\",\n}\n\n/**\n * Whether subscription quota is sufficient for a requested deployment. \\\n * {@link KnownQuotaStatus} can be used interchangeably with QuotaStatus,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Available**: Quota is sufficient for the requested replicas. \\\n * **Unavailable**: Quota is insufficient for the requested replicas. \\\n * **Unknown**: Quota could not be determined.\n */\nexport type QuotaStatus = string;\n\n/** The quota limits to raise before retrying a deployment. */\nexport interface RecommendVmSkuQuotaIncrease {\n /** The individual quota limits that block the requested deployment. */\n limits: RecommendVmSkuQuotaLimit[];\n /** A URL to the Azure portal page for submitting the quota increase. */\n portalUrl: string;\n}\n\nexport function recommendVmSkuQuotaIncreaseDeserializer(item: any): RecommendVmSkuQuotaIncrease {\n return {\n limits: recommendVmSkuQuotaLimitArrayDeserializer(item[\"limits\"]),\n portalUrl: item[\"portalUrl\"],\n };\n}\n\nexport function recommendVmSkuQuotaLimitArrayDeserializer(\n result: Array<RecommendVmSkuQuotaLimit>,\n): any[] {\n return result.map((item) => {\n return recommendVmSkuQuotaLimitDeserializer(item);\n });\n}\n\n/** One quota limit that blocks the requested deployment. */\nexport interface RecommendVmSkuQuotaLimit {\n /** The name of the quota to raise. */\n name: string;\n /** The current usage against the quota. */\n currentUsage: number;\n /** The current quota limit. */\n currentLimit: number;\n /** The quota limit required to deploy the workload. */\n requiredLimit: number;\n}\n\nexport function recommendVmSkuQuotaLimitDeserializer(item: any): RecommendVmSkuQuotaLimit {\n return {\n name: item[\"name\"],\n currentUsage: item[\"currentUsage\"],\n currentLimit: item[\"currentLimit\"],\n requiredLimit: item[\"requiredLimit\"],\n };\n}\n\n/** The capacity placement evidence for one virtual machine size option. */\nexport interface RecommendVmSkuPlacement {\n /** The outcome of the placement query. */\n status: PlacementStatus;\n /** A human-readable explanation of the placement status. */\n reason?: string;\n /** The error that prevented placement from being evaluated, if any. */\n error?: RecommendVmSkuStageError;\n /** The availability zones recommended for the deployment, in preference order. */\n recommendedAvailabilityZones?: string[];\n}\n\nexport function recommendVmSkuPlacementDeserializer(item: any): RecommendVmSkuPlacement {\n return {\n status: item[\"status\"],\n reason: item[\"reason\"],\n error: !item[\"error\"] ? item[\"error\"] : recommendVmSkuStageErrorDeserializer(item[\"error\"]),\n recommendedAvailabilityZones: !item[\"recommendedAvailabilityZones\"]\n ? item[\"recommendedAvailabilityZones\"]\n : item[\"recommendedAvailabilityZones\"].map((p: any) => {\n return p;\n }),\n };\n}\n\n/** The outcome of a capacity placement query. */\nexport enum KnownPlacementStatus {\n /** The placement check completed successfully. */\n Evaluated = \"Evaluated\",\n /** The placement check failed. */\n Failed = \"Failed\",\n /** The placement check was not run. */\n NotEvaluated = \"NotEvaluated\",\n /** The placement check is not supported for this option. */\n Unsupported = \"Unsupported\",\n}\n\n/**\n * The outcome of a capacity placement query. \\\n * {@link KnownPlacementStatus} can be used interchangeably with PlacementStatus,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Evaluated**: The placement check completed successfully. \\\n * **Failed**: The placement check failed. \\\n * **NotEvaluated**: The placement check was not run. \\\n * **Unsupported**: The placement check is not supported for this option.\n */\nexport type PlacementStatus = string;\n\n/** The external benchmark evidence selected for one virtual machine size option. */\nexport interface RecommendVmSkuBenchmark {\n /** How closely the benchmark evidence matches the recommended topology. */\n level: BenchmarkLevel;\n /** The model size class the benchmark covers, for example `70b`. */\n modelClass: string;\n /** The benchmark scenario, for example `Server` or `Offline`. */\n scenario: string;\n /** The number of submitters that published results for this configuration. */\n submitterCount: number;\n /** The identifier of the selected benchmark submission. */\n submissionId?: string;\n /** The model the benchmark was measured on. */\n benchmarkModel?: string;\n /** The organization that published the benchmark submission. */\n submitter?: string;\n /** The system the benchmark was measured on. */\n system?: string;\n /** The throughput observed in the benchmark submission. */\n throughput?: number;\n /** The unit the observed throughput is expressed in, for example `Tokens/s`. */\n throughputUnit?: string;\n /** The serving software the benchmark was measured with. */\n software?: string;\n /** The operating system the benchmark was measured on. */\n operatingSystem?: string;\n /** The weight data types used in the benchmark submission. */\n weightDataTypes?: string;\n /** The 99th-percentile time to first token observed in the benchmark, in milliseconds. */\n p99TtftMs?: number;\n /** The 99th-percentile time per output token observed in the benchmark, in milliseconds. */\n p99TpotMs?: number;\n}\n\nexport function recommendVmSkuBenchmarkDeserializer(item: any): RecommendVmSkuBenchmark {\n return {\n level: item[\"level\"],\n modelClass: item[\"modelClass\"],\n scenario: item[\"scenario\"],\n submitterCount: item[\"submitterCount\"],\n submissionId: item[\"submissionId\"],\n benchmarkModel: item[\"benchmarkModel\"],\n submitter: item[\"submitter\"],\n system: item[\"system\"],\n throughput: item[\"throughput\"],\n throughputUnit: item[\"throughputUnit\"],\n software: item[\"software\"],\n operatingSystem: item[\"operatingSystem\"],\n weightDataTypes: item[\"weightDataTypes\"],\n p99TtftMs: item[\"p99TtftMs\"],\n p99TpotMs: item[\"p99TpotMs\"],\n };\n}\n\n/** How closely benchmark evidence matches a recommended topology. */\nexport enum KnownBenchmarkLevel {\n /** The accelerator family has benchmark evidence at a different topology. */\n Benchmarked = \"Benchmarked\",\n /** The benchmark matches the recommended node and accelerator counts. */\n TopologyMatched = \"TopologyMatched\",\n}\n\n/**\n * How closely benchmark evidence matches a recommended topology. \\\n * {@link KnownBenchmarkLevel} can be used interchangeably with BenchmarkLevel,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Benchmarked**: The accelerator family has benchmark evidence at a different topology. \\\n * **TopologyMatched**: The benchmark matches the recommended node and accelerator counts.\n */\nexport type BenchmarkLevel = string;\n\n/** An advisory deployment throughput and per-request latency estimate. */\nexport interface RecommendVmSkuPerformanceEstimate {\n /** The estimated number of output tokens generated per second across the whole deployment. */\n deploymentOutputTokensPerSecond: number;\n /** The estimated time to first token for a single request, in milliseconds. */\n ttftMs: number;\n}\n\nexport function recommendVmSkuPerformanceEstimateDeserializer(\n item: any,\n): RecommendVmSkuPerformanceEstimate {\n return {\n deploymentOutputTokensPerSecond: item[\"deploymentOutputTokensPerSecond\"],\n ttftMs: item[\"ttftMs\"],\n };\n}\n\n/** The resolved workload sizing shared by every recommended option. */\nexport interface RecommendVmSkuSizing {\n /** The resolved model identity and weight precision. */\n model: RecommendVmSkuSizingModel;\n /** The resolved per-replica workload inputs used for memory sizing. */\n workload: RecommendVmSkuSizingWorkload;\n /** The memory calculation shared by every returned option. */\n memory: RecommendVmSkuMemory;\n /** The sources used for the sizing calculation. */\n basis: RecommendVmSkuSizingBasis;\n}\n\nexport function recommendVmSkuSizingDeserializer(item: any): RecommendVmSkuSizing {\n return {\n model: recommendVmSkuSizingModelDeserializer(item[\"model\"]),\n workload: recommendVmSkuSizingWorkloadDeserializer(item[\"workload\"]),\n memory: recommendVmSkuMemoryDeserializer(item[\"memory\"]),\n basis: recommendVmSkuSizingBasisDeserializer(item[\"basis\"]),\n };\n}\n\n/** The resolved model identity and weight precision. */\nexport interface RecommendVmSkuSizingModel {\n /** The logical total model parameter count used for sizing. */\n parameterCount: number;\n /** The precision the model weights were sized at. */\n weightPrecision: WeightPrecision;\n /** The Hugging Face model identifier the sizing metadata was resolved from. */\n huggingFaceModelId?: string;\n}\n\nexport function recommendVmSkuSizingModelDeserializer(item: any): RecommendVmSkuSizingModel {\n return {\n parameterCount: item[\"parameterCount\"],\n weightPrecision: item[\"weightPrecision\"],\n huggingFaceModelId: item[\"huggingFaceModelId\"],\n };\n}\n\n/** The resolved per-replica workload inputs used for memory sizing. */\nexport interface RecommendVmSkuSizingWorkload {\n /** The maximum number of simultaneous inference requests handled by each replica. */\n maxConcurrentRequestsPerReplica: number;\n /** The context length, in tokens, used to size the key-value cache: the sum of `promptTokens` and `maxOutputTokens` when a token budget is supplied, otherwise the service default. */\n contextLength: number;\n}\n\nexport function recommendVmSkuSizingWorkloadDeserializer(item: any): RecommendVmSkuSizingWorkload {\n return {\n maxConcurrentRequestsPerReplica: item[\"maxConcurrentRequestsPerReplica\"],\n contextLength: item[\"contextLength\"],\n };\n}\n\n/** The memory calculation shared by every returned option. */\nexport interface RecommendVmSkuMemory {\n /** The memory required for the model weights, in gibibytes. */\n modelWeightsGiB: number;\n /** The key-value cache memory required for a single concurrent request, in gibibytes. */\n kvCacheGiBPerRequest: number;\n /** The key-value cache memory required for all concurrent requests on a replica, in gibibytes. */\n kvCacheGiBTotal: number;\n /** The combined model-weight and key-value cache memory required per replica, in gibibytes. */\n modelAndKvCacheGiB: number;\n}\n\nexport function recommendVmSkuMemoryDeserializer(item: any): RecommendVmSkuMemory {\n return {\n modelWeightsGiB: item[\"modelWeightsGiB\"],\n kvCacheGiBPerRequest: item[\"kvCacheGiBPerRequest\"],\n kvCacheGiBTotal: item[\"kvCacheGiBTotal\"],\n modelAndKvCacheGiB: item[\"modelAndKvCacheGiB\"],\n };\n}\n\n/** The sources used for the sizing calculation. */\nexport interface RecommendVmSkuSizingBasis {\n /** Where the model parameter count was resolved from. */\n parameterCountSource: ParameterCountSource;\n /** How the model weight memory was calculated. */\n modelWeightsCalculation: ModelWeightsCalculation;\n /** Where the context length was resolved from. */\n contextLengthSource: ContextLengthSource;\n}\n\nexport function recommendVmSkuSizingBasisDeserializer(item: any): RecommendVmSkuSizingBasis {\n return {\n parameterCountSource: item[\"parameterCountSource\"],\n modelWeightsCalculation: item[\"modelWeightsCalculation\"],\n contextLengthSource: item[\"contextLengthSource\"],\n };\n}\n\n/** Where a model parameter count was resolved from. */\nexport enum KnownParameterCountSource {\n /** The parameter count was supplied in the request. */\n Request = \"Request\",\n /** The parameter count was resolved from Hugging Face metadata. */\n HuggingFace = \"HuggingFace\",\n}\n\n/**\n * Where a model parameter count was resolved from. \\\n * {@link KnownParameterCountSource} can be used interchangeably with ParameterCountSource,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Request**: The parameter count was supplied in the request. \\\n * **HuggingFace**: The parameter count was resolved from Hugging Face metadata.\n */\nexport type ParameterCountSource = string;\n\n/** How model weight memory was calculated. */\nexport enum KnownModelWeightsCalculation {\n /** The memory was calculated from the published model artifact size. */\n ArtifactSize = \"ArtifactSize\",\n /** The memory was estimated from the model parameter count. */\n EstimatedFromParameterCount = \"EstimatedFromParameterCount\",\n}\n\n/**\n * How model weight memory was calculated. \\\n * {@link KnownModelWeightsCalculation} can be used interchangeably with ModelWeightsCalculation,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **ArtifactSize**: The memory was calculated from the published model artifact size. \\\n * **EstimatedFromParameterCount**: The memory was estimated from the model parameter count.\n */\nexport type ModelWeightsCalculation = string;\n\n/** Where a context length was resolved from. */\nexport enum KnownContextLengthSource {\n /** The context length is the sum of the request's `workload.tokenBudget.promptTokens` and `maxOutputTokens`. */\n Request = \"Request\",\n /** No token budget was supplied, so the service default context length was used. */\n Default = \"Default\",\n}\n\n/**\n * Where a context length was resolved from. \\\n * {@link KnownContextLengthSource} can be used interchangeably with ContextLengthSource,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Request**: The context length is the sum of the request's `workload.tokenBudget.promptTokens` and `maxOutputTokens`. \\\n * **Default**: No token budget was supplied, so the service default context length was used.\n */\nexport type ContextLengthSource = string;\n\n/** The available API versions. */\nexport enum KnownVersions {\n /** The 2026-06-01-preview API version. */\n V20260601Preview = \"2026-06-01-preview\",\n}\n"]}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* An enum to describe Azure Cloud environments.
|
|
3
|
+
* @enum {string}
|
|
4
|
+
*/
|
|
5
|
+
export declare enum AzureClouds {
|
|
6
|
+
/** Azure public cloud, which is the default cloud for Azure SDKs. */
|
|
7
|
+
AZURE_PUBLIC_CLOUD = "AZURE_PUBLIC_CLOUD",
|
|
8
|
+
/** Azure China cloud */
|
|
9
|
+
AZURE_CHINA_CLOUD = "AZURE_CHINA_CLOUD",
|
|
10
|
+
/** Azure US government cloud */
|
|
11
|
+
AZURE_US_GOVERNMENT = "AZURE_US_GOVERNMENT"
|
|
12
|
+
}
|
|
13
|
+
/** The supported values for cloud setting as a string literal type */
|
|
14
|
+
export type AzureSupportedClouds = `${AzureClouds}`;
|
|
15
|
+
/**
|
|
16
|
+
* Gets the Azure Resource Manager endpoint URL for the specified cloud setting.
|
|
17
|
+
* @param cloudSetting - The Azure cloud environment setting. Use one of the AzureClouds enum values.
|
|
18
|
+
* @returns The ARM endpoint URL for the specified cloud, or undefined if cloudSetting is undefined.
|
|
19
|
+
* @throws {Error} Throws an error if an unknown cloud setting is provided.
|
|
20
|
+
*/
|
|
21
|
+
export declare function getArmEndpoint(cloudSetting?: AzureSupportedClouds): string | undefined;
|
|
22
|
+
//# sourceMappingURL=cloudSettingHelpers.d.ts.map
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
/**
|
|
4
|
+
* An enum to describe Azure Cloud environments.
|
|
5
|
+
* @enum {string}
|
|
6
|
+
*/
|
|
7
|
+
export var AzureClouds;
|
|
8
|
+
(function (AzureClouds) {
|
|
9
|
+
/** Azure public cloud, which is the default cloud for Azure SDKs. */
|
|
10
|
+
AzureClouds["AZURE_PUBLIC_CLOUD"] = "AZURE_PUBLIC_CLOUD";
|
|
11
|
+
/** Azure China cloud */
|
|
12
|
+
AzureClouds["AZURE_CHINA_CLOUD"] = "AZURE_CHINA_CLOUD";
|
|
13
|
+
/** Azure US government cloud */
|
|
14
|
+
AzureClouds["AZURE_US_GOVERNMENT"] = "AZURE_US_GOVERNMENT";
|
|
15
|
+
})(AzureClouds || (AzureClouds = {}));
|
|
16
|
+
/**
|
|
17
|
+
* Gets the Azure Resource Manager endpoint URL for the specified cloud setting.
|
|
18
|
+
* @param cloudSetting - The Azure cloud environment setting. Use one of the AzureClouds enum values.
|
|
19
|
+
* @returns The ARM endpoint URL for the specified cloud, or undefined if cloudSetting is undefined.
|
|
20
|
+
* @throws {Error} Throws an error if an unknown cloud setting is provided.
|
|
21
|
+
*/
|
|
22
|
+
export function getArmEndpoint(cloudSetting) {
|
|
23
|
+
if (cloudSetting === undefined) {
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
26
|
+
const cloudEndpoints = {
|
|
27
|
+
AZURE_CHINA_CLOUD: "https://management.chinacloudapi.cn/",
|
|
28
|
+
AZURE_US_GOVERNMENT: "https://management.usgovcloudapi.net/",
|
|
29
|
+
AZURE_PUBLIC_CLOUD: "https://management.azure.com/",
|
|
30
|
+
};
|
|
31
|
+
if (cloudSetting in cloudEndpoints) {
|
|
32
|
+
return cloudEndpoints[cloudSetting];
|
|
33
|
+
}
|
|
34
|
+
else {
|
|
35
|
+
throw new Error(`Unknown cloud setting: ${cloudSetting}. Please refer to the enum AzureClouds for possible values.`);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=cloudSettingHelpers.js.map
|