@azure/arm-computelimit 1.1.0 → 1.2.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/dist/browser/api/computeLimitContext.js +1 -1
- package/dist/browser/api/computeLimitContext.js.map +1 -1
- package/dist/browser/api/features/operations.d.ts +2 -2
- package/dist/browser/api/features/operations.js +21 -13
- package/dist/browser/api/features/operations.js.map +1 -1
- package/dist/browser/api/guestSubscriptions/operations.js +17 -9
- package/dist/browser/api/guestSubscriptions/operations.js.map +1 -1
- package/dist/browser/api/memberCapOverrides/index.d.ts +3 -0
- package/dist/browser/api/memberCapOverrides/index.js +4 -0
- package/dist/browser/api/memberCapOverrides/index.js.map +1 -0
- package/dist/browser/api/memberCapOverrides/operations.d.ts +22 -0
- package/dist/browser/api/memberCapOverrides/operations.js +128 -0
- package/dist/browser/api/memberCapOverrides/operations.js.map +1 -0
- package/dist/browser/api/memberCapOverrides/options.d.ts +14 -0
- package/dist/browser/api/memberCapOverrides/options.js +4 -0
- package/dist/browser/api/memberCapOverrides/options.js.map +1 -0
- package/dist/browser/api/operations/operations.js +5 -3
- package/dist/browser/api/operations/operations.js.map +1 -1
- package/dist/browser/api/sharedLimitCaps/index.d.ts +3 -0
- package/dist/browser/api/sharedLimitCaps/index.js +4 -0
- package/dist/browser/api/sharedLimitCaps/index.js.map +1 -0
- package/dist/browser/api/sharedLimitCaps/operations.d.ts +30 -0
- package/dist/browser/api/sharedLimitCaps/operations.js +160 -0
- package/dist/browser/api/sharedLimitCaps/operations.js.map +1 -0
- package/dist/browser/api/sharedLimitCaps/options.d.ts +17 -0
- package/dist/browser/api/sharedLimitCaps/options.js +4 -0
- package/dist/browser/api/sharedLimitCaps/options.js.map +1 -0
- package/dist/browser/api/sharedLimits/operations.js +17 -9
- package/dist/browser/api/sharedLimits/operations.js.map +1 -1
- package/dist/browser/api/vmFamilies/operations.js +9 -5
- package/dist/browser/api/vmFamilies/operations.js.map +1 -1
- package/dist/browser/classic/features/index.d.ts +2 -2
- package/dist/browser/classic/features/index.js.map +1 -1
- package/dist/browser/classic/index.d.ts +2 -0
- package/dist/browser/classic/index.js.map +1 -1
- package/dist/browser/classic/memberCapOverrides/index.d.ts +17 -0
- package/dist/browser/classic/memberCapOverrides/index.js +17 -0
- package/dist/browser/classic/memberCapOverrides/index.js.map +1 -0
- package/dist/browser/classic/sharedLimitCaps/index.d.ts +23 -0
- package/dist/browser/classic/sharedLimitCaps/index.js +18 -0
- package/dist/browser/classic/sharedLimitCaps/index.js.map +1 -0
- package/dist/browser/computeLimitClient.d.ts +6 -0
- package/dist/browser/computeLimitClient.js +8 -0
- package/dist/browser/computeLimitClient.js.map +1 -1
- package/dist/browser/index.d.ts +4 -2
- package/dist/browser/index.js.map +1 -1
- package/dist/browser/models/index.d.ts +1 -1
- package/dist/browser/models/index.js.map +1 -1
- package/dist/browser/models/models.d.ts +111 -1
- package/dist/browser/models/models.js +120 -0
- package/dist/browser/models/models.js.map +1 -1
- package/dist/browser/restorePollerHelpers.js.map +1 -1
- package/dist/browser/static-helpers/pollingHelpers.d.ts +1 -1
- package/dist/browser/static-helpers/pollingHelpers.js.map +1 -1
- package/dist/commonjs/api/computeLimitContext.js +1 -1
- package/dist/commonjs/api/computeLimitContext.js.map +1 -1
- package/dist/commonjs/api/features/operations.d.ts +2 -2
- package/dist/commonjs/api/features/operations.js +19 -11
- package/dist/commonjs/api/features/operations.js.map +2 -2
- package/dist/commonjs/api/guestSubscriptions/operations.js +17 -9
- package/dist/commonjs/api/guestSubscriptions/operations.js.map +2 -2
- package/dist/commonjs/api/memberCapOverrides/index.d.ts +3 -0
- package/dist/commonjs/api/memberCapOverrides/index.js +34 -0
- package/dist/commonjs/api/memberCapOverrides/index.js.map +7 -0
- package/dist/commonjs/api/memberCapOverrides/operations.d.ts +22 -0
- package/dist/commonjs/api/memberCapOverrides/operations.js +199 -0
- package/dist/commonjs/api/memberCapOverrides/operations.js.map +7 -0
- package/dist/commonjs/api/memberCapOverrides/options.d.ts +14 -0
- package/dist/commonjs/api/memberCapOverrides/options.js +16 -0
- package/dist/commonjs/api/memberCapOverrides/options.js.map +7 -0
- package/dist/commonjs/api/operations/operations.js +5 -3
- package/dist/commonjs/api/operations/operations.js.map +2 -2
- package/dist/commonjs/api/sharedLimitCaps/index.d.ts +3 -0
- package/dist/commonjs/api/sharedLimitCaps/index.js +36 -0
- package/dist/commonjs/api/sharedLimitCaps/index.js.map +7 -0
- package/dist/commonjs/api/sharedLimitCaps/operations.d.ts +30 -0
- package/dist/commonjs/api/sharedLimitCaps/operations.js +229 -0
- package/dist/commonjs/api/sharedLimitCaps/operations.js.map +7 -0
- package/dist/commonjs/api/sharedLimitCaps/options.d.ts +17 -0
- package/dist/commonjs/api/sharedLimitCaps/options.js +16 -0
- package/dist/commonjs/api/sharedLimitCaps/options.js.map +7 -0
- package/dist/commonjs/api/sharedLimits/operations.js +17 -9
- package/dist/commonjs/api/sharedLimits/operations.js.map +2 -2
- package/dist/commonjs/api/vmFamilies/operations.js +9 -5
- package/dist/commonjs/api/vmFamilies/operations.js.map +2 -2
- package/dist/commonjs/classic/features/index.d.ts +2 -2
- package/dist/commonjs/classic/features/index.js.map +1 -1
- package/dist/commonjs/classic/index.d.ts +2 -0
- package/dist/commonjs/classic/index.js.map +1 -1
- package/dist/commonjs/classic/memberCapOverrides/index.d.ts +17 -0
- package/dist/commonjs/classic/memberCapOverrides/index.js +41 -0
- package/dist/commonjs/classic/memberCapOverrides/index.js.map +7 -0
- package/dist/commonjs/classic/sharedLimitCaps/index.d.ts +23 -0
- package/dist/commonjs/classic/sharedLimitCaps/index.js +42 -0
- package/dist/commonjs/classic/sharedLimitCaps/index.js.map +7 -0
- package/dist/commonjs/computeLimitClient.d.ts +6 -0
- package/dist/commonjs/computeLimitClient.js +8 -0
- package/dist/commonjs/computeLimitClient.js.map +2 -2
- package/dist/commonjs/index.d.ts +4 -2
- package/dist/commonjs/index.js.map +2 -2
- package/dist/commonjs/models/index.d.ts +1 -1
- package/dist/commonjs/models/index.js.map +2 -2
- package/dist/commonjs/models/models.d.ts +111 -1
- package/dist/commonjs/models/models.js +147 -0
- package/dist/commonjs/models/models.js.map +2 -2
- package/dist/commonjs/restorePollerHelpers.js.map +2 -2
- package/dist/commonjs/static-helpers/pollingHelpers.d.ts +1 -1
- package/dist/commonjs/static-helpers/pollingHelpers.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +1 -1
- package/dist/esm/api/computeLimitContext.js +1 -1
- package/dist/esm/api/computeLimitContext.js.map +1 -1
- package/dist/esm/api/features/operations.d.ts +2 -2
- package/dist/esm/api/features/operations.js +21 -13
- package/dist/esm/api/features/operations.js.map +1 -1
- package/dist/esm/api/guestSubscriptions/operations.js +17 -9
- package/dist/esm/api/guestSubscriptions/operations.js.map +1 -1
- package/dist/esm/api/memberCapOverrides/index.d.ts +3 -0
- package/dist/esm/api/memberCapOverrides/index.js +4 -0
- package/dist/esm/api/memberCapOverrides/index.js.map +1 -0
- package/dist/esm/api/memberCapOverrides/operations.d.ts +22 -0
- package/dist/esm/api/memberCapOverrides/operations.js +128 -0
- package/dist/esm/api/memberCapOverrides/operations.js.map +1 -0
- package/dist/esm/api/memberCapOverrides/options.d.ts +14 -0
- package/dist/esm/api/memberCapOverrides/options.js +4 -0
- package/dist/esm/api/memberCapOverrides/options.js.map +1 -0
- package/dist/esm/api/operations/operations.js +5 -3
- package/dist/esm/api/operations/operations.js.map +1 -1
- package/dist/esm/api/sharedLimitCaps/index.d.ts +3 -0
- package/dist/esm/api/sharedLimitCaps/index.js +4 -0
- package/dist/esm/api/sharedLimitCaps/index.js.map +1 -0
- package/dist/esm/api/sharedLimitCaps/operations.d.ts +30 -0
- package/dist/esm/api/sharedLimitCaps/operations.js +160 -0
- package/dist/esm/api/sharedLimitCaps/operations.js.map +1 -0
- package/dist/esm/api/sharedLimitCaps/options.d.ts +17 -0
- package/dist/esm/api/sharedLimitCaps/options.js +4 -0
- package/dist/esm/api/sharedLimitCaps/options.js.map +1 -0
- package/dist/esm/api/sharedLimits/operations.js +17 -9
- package/dist/esm/api/sharedLimits/operations.js.map +1 -1
- package/dist/esm/api/vmFamilies/operations.js +9 -5
- package/dist/esm/api/vmFamilies/operations.js.map +1 -1
- package/dist/esm/classic/features/index.d.ts +2 -2
- package/dist/esm/classic/features/index.js.map +1 -1
- package/dist/esm/classic/index.d.ts +2 -0
- package/dist/esm/classic/index.js.map +1 -1
- package/dist/esm/classic/memberCapOverrides/index.d.ts +17 -0
- package/dist/esm/classic/memberCapOverrides/index.js +17 -0
- package/dist/esm/classic/memberCapOverrides/index.js.map +1 -0
- package/dist/esm/classic/sharedLimitCaps/index.d.ts +23 -0
- package/dist/esm/classic/sharedLimitCaps/index.js +18 -0
- package/dist/esm/classic/sharedLimitCaps/index.js.map +1 -0
- package/dist/esm/computeLimitClient.d.ts +6 -0
- package/dist/esm/computeLimitClient.js +8 -0
- package/dist/esm/computeLimitClient.js.map +1 -1
- package/dist/esm/index.d.ts +4 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/models/index.d.ts +1 -1
- package/dist/esm/models/index.js.map +1 -1
- package/dist/esm/models/models.d.ts +111 -1
- package/dist/esm/models/models.js +120 -0
- package/dist/esm/models/models.js.map +1 -1
- package/dist/esm/restorePollerHelpers.js.map +1 -1
- package/dist/esm/static-helpers/pollingHelpers.d.ts +1 -1
- package/dist/esm/static-helpers/pollingHelpers.js.map +1 -1
- package/package.json +33 -5
|
@@ -0,0 +1,229 @@
|
|
|
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
|
+
$delete: () => $delete,
|
|
21
|
+
_$deleteDeserialize: () => _$deleteDeserialize,
|
|
22
|
+
_$deleteSend: () => _$deleteSend,
|
|
23
|
+
_createOrUpdateDeserialize: () => _createOrUpdateDeserialize,
|
|
24
|
+
_createOrUpdateSend: () => _createOrUpdateSend,
|
|
25
|
+
_getDeserialize: () => _getDeserialize,
|
|
26
|
+
_getSend: () => _getSend,
|
|
27
|
+
_listBySubscriptionLocationResourceDeserialize: () => _listBySubscriptionLocationResourceDeserialize,
|
|
28
|
+
_listBySubscriptionLocationResourceSend: () => _listBySubscriptionLocationResourceSend,
|
|
29
|
+
_setMemberCapOverridesDeserialize: () => _setMemberCapOverridesDeserialize,
|
|
30
|
+
_setMemberCapOverridesSend: () => _setMemberCapOverridesSend,
|
|
31
|
+
createOrUpdate: () => createOrUpdate,
|
|
32
|
+
get: () => get,
|
|
33
|
+
listBySubscriptionLocationResource: () => listBySubscriptionLocationResource,
|
|
34
|
+
setMemberCapOverrides: () => setMemberCapOverrides
|
|
35
|
+
});
|
|
36
|
+
module.exports = __toCommonJS(operations_exports);
|
|
37
|
+
var import_models = require("../../models/models.js");
|
|
38
|
+
var import_pagingHelpers = require("../../static-helpers/pagingHelpers.js");
|
|
39
|
+
var import_urlTemplate = require("../../static-helpers/urlTemplate.js");
|
|
40
|
+
var import_core_client = require("@azure-rest/core-client");
|
|
41
|
+
function _setMemberCapOverridesSend(context, location, vmFamilyName, body, options = { requestOptions: {} }) {
|
|
42
|
+
const path = (0, import_urlTemplate.expandUrlTemplate)(
|
|
43
|
+
"/subscriptions/{subscriptionId}/providers/Microsoft.ComputeLimit/locations/{location}/sharedLimitCaps/{vmFamilyName}/setMemberCapOverrides{?api%2Dversion}",
|
|
44
|
+
{
|
|
45
|
+
subscriptionId: context.subscriptionId,
|
|
46
|
+
location,
|
|
47
|
+
vmFamilyName,
|
|
48
|
+
"api%2Dversion": context.apiVersion ?? "2026-07-01"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding
|
|
52
|
+
}
|
|
53
|
+
);
|
|
54
|
+
return context.path(path).post({
|
|
55
|
+
...(0, import_core_client.operationOptionsToRequestParameters)(options),
|
|
56
|
+
contentType: "application/json",
|
|
57
|
+
headers: { accept: "application/json", ...options.requestOptions?.headers },
|
|
58
|
+
body: (0, import_models.setMemberCapOverridesRequestSerializer)(body)
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
async function _setMemberCapOverridesDeserialize(result) {
|
|
62
|
+
const expectedStatuses = ["200"];
|
|
63
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
64
|
+
const error = (0, import_core_client.createRestError)(result);
|
|
65
|
+
if (result.body) {
|
|
66
|
+
error.details = (0, import_models.errorResponseDeserializer)(result.body);
|
|
67
|
+
}
|
|
68
|
+
throw error;
|
|
69
|
+
}
|
|
70
|
+
return (0, import_models.setMemberCapOverridesResultDeserializer)(result.body);
|
|
71
|
+
}
|
|
72
|
+
async function setMemberCapOverrides(context, location, vmFamilyName, body, options = { requestOptions: {} }) {
|
|
73
|
+
const result = await _setMemberCapOverridesSend(context, location, vmFamilyName, body, options);
|
|
74
|
+
return _setMemberCapOverridesDeserialize(result);
|
|
75
|
+
}
|
|
76
|
+
function _listBySubscriptionLocationResourceSend(context, location, options = { requestOptions: {} }) {
|
|
77
|
+
const path = (0, import_urlTemplate.expandUrlTemplate)(
|
|
78
|
+
"/subscriptions/{subscriptionId}/providers/Microsoft.ComputeLimit/locations/{location}/sharedLimitCaps{?api%2Dversion}",
|
|
79
|
+
{
|
|
80
|
+
subscriptionId: context.subscriptionId,
|
|
81
|
+
location,
|
|
82
|
+
"api%2Dversion": context.apiVersion ?? "2026-07-01"
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding
|
|
86
|
+
}
|
|
87
|
+
);
|
|
88
|
+
return context.path(path).get({
|
|
89
|
+
...(0, import_core_client.operationOptionsToRequestParameters)(options),
|
|
90
|
+
headers: { accept: "application/json", ...options.requestOptions?.headers }
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
async function _listBySubscriptionLocationResourceDeserialize(result) {
|
|
94
|
+
const expectedStatuses = ["200"];
|
|
95
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
96
|
+
const error = (0, import_core_client.createRestError)(result);
|
|
97
|
+
if (result.body) {
|
|
98
|
+
error.details = (0, import_models.errorResponseDeserializer)(result.body);
|
|
99
|
+
}
|
|
100
|
+
throw error;
|
|
101
|
+
}
|
|
102
|
+
return (0, import_models._sharedLimitCapListResultDeserializer)(result.body);
|
|
103
|
+
}
|
|
104
|
+
function listBySubscriptionLocationResource(context, location, options = { requestOptions: {} }) {
|
|
105
|
+
return (0, import_pagingHelpers.buildPagedAsyncIterator)(
|
|
106
|
+
context,
|
|
107
|
+
() => _listBySubscriptionLocationResourceSend(context, location, options),
|
|
108
|
+
_listBySubscriptionLocationResourceDeserialize,
|
|
109
|
+
["200"],
|
|
110
|
+
{ itemName: "value", nextLinkName: "nextLink", apiVersion: context.apiVersion ?? "2026-07-01" }
|
|
111
|
+
);
|
|
112
|
+
}
|
|
113
|
+
function _$deleteSend(context, location, vmFamilyName, options = { requestOptions: {} }) {
|
|
114
|
+
const path = (0, import_urlTemplate.expandUrlTemplate)(
|
|
115
|
+
"/subscriptions/{subscriptionId}/providers/Microsoft.ComputeLimit/locations/{location}/sharedLimitCaps/{vmFamilyName}{?api%2Dversion}",
|
|
116
|
+
{
|
|
117
|
+
subscriptionId: context.subscriptionId,
|
|
118
|
+
location,
|
|
119
|
+
vmFamilyName,
|
|
120
|
+
"api%2Dversion": context.apiVersion ?? "2026-07-01"
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding
|
|
124
|
+
}
|
|
125
|
+
);
|
|
126
|
+
return context.path(path).delete({ ...(0, import_core_client.operationOptionsToRequestParameters)(options) });
|
|
127
|
+
}
|
|
128
|
+
async function _$deleteDeserialize(result) {
|
|
129
|
+
const expectedStatuses = ["200", "204"];
|
|
130
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
131
|
+
const error = (0, import_core_client.createRestError)(result);
|
|
132
|
+
if (result.body) {
|
|
133
|
+
error.details = (0, import_models.errorResponseDeserializer)(result.body);
|
|
134
|
+
}
|
|
135
|
+
throw error;
|
|
136
|
+
}
|
|
137
|
+
return;
|
|
138
|
+
}
|
|
139
|
+
async function $delete(context, location, vmFamilyName, options = { requestOptions: {} }) {
|
|
140
|
+
const result = await _$deleteSend(context, location, vmFamilyName, options);
|
|
141
|
+
return _$deleteDeserialize(result);
|
|
142
|
+
}
|
|
143
|
+
function _createOrUpdateSend(context, location, vmFamilyName, resource, options = { requestOptions: {} }) {
|
|
144
|
+
const path = (0, import_urlTemplate.expandUrlTemplate)(
|
|
145
|
+
"/subscriptions/{subscriptionId}/providers/Microsoft.ComputeLimit/locations/{location}/sharedLimitCaps/{vmFamilyName}{?api%2Dversion}",
|
|
146
|
+
{
|
|
147
|
+
subscriptionId: context.subscriptionId,
|
|
148
|
+
location,
|
|
149
|
+
vmFamilyName,
|
|
150
|
+
"api%2Dversion": context.apiVersion ?? "2026-07-01"
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding
|
|
154
|
+
}
|
|
155
|
+
);
|
|
156
|
+
return context.path(path).put({
|
|
157
|
+
...(0, import_core_client.operationOptionsToRequestParameters)(options),
|
|
158
|
+
contentType: "application/json",
|
|
159
|
+
headers: { accept: "application/json", ...options.requestOptions?.headers },
|
|
160
|
+
body: (0, import_models.sharedLimitCapSerializer)(resource)
|
|
161
|
+
});
|
|
162
|
+
}
|
|
163
|
+
async function _createOrUpdateDeserialize(result) {
|
|
164
|
+
const expectedStatuses = ["200", "201"];
|
|
165
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
166
|
+
const error = (0, import_core_client.createRestError)(result);
|
|
167
|
+
if (result.body) {
|
|
168
|
+
error.details = (0, import_models.errorResponseDeserializer)(result.body);
|
|
169
|
+
}
|
|
170
|
+
throw error;
|
|
171
|
+
}
|
|
172
|
+
return (0, import_models.sharedLimitCapDeserializer)(result.body);
|
|
173
|
+
}
|
|
174
|
+
async function createOrUpdate(context, location, vmFamilyName, resource, options = { requestOptions: {} }) {
|
|
175
|
+
const result = await _createOrUpdateSend(context, location, vmFamilyName, resource, options);
|
|
176
|
+
return _createOrUpdateDeserialize(result);
|
|
177
|
+
}
|
|
178
|
+
function _getSend(context, location, vmFamilyName, options = { requestOptions: {} }) {
|
|
179
|
+
const path = (0, import_urlTemplate.expandUrlTemplate)(
|
|
180
|
+
"/subscriptions/{subscriptionId}/providers/Microsoft.ComputeLimit/locations/{location}/sharedLimitCaps/{vmFamilyName}{?api%2Dversion}",
|
|
181
|
+
{
|
|
182
|
+
subscriptionId: context.subscriptionId,
|
|
183
|
+
location,
|
|
184
|
+
vmFamilyName,
|
|
185
|
+
"api%2Dversion": context.apiVersion ?? "2026-07-01"
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding
|
|
189
|
+
}
|
|
190
|
+
);
|
|
191
|
+
return context.path(path).get({
|
|
192
|
+
...(0, import_core_client.operationOptionsToRequestParameters)(options),
|
|
193
|
+
headers: { accept: "application/json", ...options.requestOptions?.headers }
|
|
194
|
+
});
|
|
195
|
+
}
|
|
196
|
+
async function _getDeserialize(result) {
|
|
197
|
+
const expectedStatuses = ["200"];
|
|
198
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
199
|
+
const error = (0, import_core_client.createRestError)(result);
|
|
200
|
+
if (result.body) {
|
|
201
|
+
error.details = (0, import_models.errorResponseDeserializer)(result.body);
|
|
202
|
+
}
|
|
203
|
+
throw error;
|
|
204
|
+
}
|
|
205
|
+
return (0, import_models.sharedLimitCapDeserializer)(result.body);
|
|
206
|
+
}
|
|
207
|
+
async function get(context, location, vmFamilyName, options = { requestOptions: {} }) {
|
|
208
|
+
const result = await _getSend(context, location, vmFamilyName, options);
|
|
209
|
+
return _getDeserialize(result);
|
|
210
|
+
}
|
|
211
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
212
|
+
0 && (module.exports = {
|
|
213
|
+
$delete,
|
|
214
|
+
_$deleteDeserialize,
|
|
215
|
+
_$deleteSend,
|
|
216
|
+
_createOrUpdateDeserialize,
|
|
217
|
+
_createOrUpdateSend,
|
|
218
|
+
_getDeserialize,
|
|
219
|
+
_getSend,
|
|
220
|
+
_listBySubscriptionLocationResourceDeserialize,
|
|
221
|
+
_listBySubscriptionLocationResourceSend,
|
|
222
|
+
_setMemberCapOverridesDeserialize,
|
|
223
|
+
_setMemberCapOverridesSend,
|
|
224
|
+
createOrUpdate,
|
|
225
|
+
get,
|
|
226
|
+
listBySubscriptionLocationResource,
|
|
227
|
+
setMemberCapOverrides
|
|
228
|
+
});
|
|
229
|
+
//# sourceMappingURL=operations.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/api/sharedLimitCaps/operations.ts"],
|
|
4
|
+
"sourcesContent": ["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { ComputeLimitContext as Client } from \"../index.js\";\nimport type {\n SharedLimitCap,\n _SharedLimitCapListResult,\n SetMemberCapOverridesRequest,\n SetMemberCapOverridesResult,\n} from \"../../models/models.js\";\nimport {\n errorResponseDeserializer,\n sharedLimitCapSerializer,\n sharedLimitCapDeserializer,\n _sharedLimitCapListResultDeserializer,\n setMemberCapOverridesRequestSerializer,\n setMemberCapOverridesResultDeserializer,\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 {\n SharedLimitCapsSetMemberCapOverridesOptionalParams,\n SharedLimitCapsListBySubscriptionLocationResourceOptionalParams,\n SharedLimitCapsDeleteOptionalParams,\n SharedLimitCapsCreateOrUpdateOptionalParams,\n SharedLimitCapsGetOptionalParams,\n} from \"./options.js\";\nimport type { StreamableMethod, PathUncheckedResponse } from \"@azure-rest/core-client\";\nimport { createRestError, operationOptionsToRequestParameters } from \"@azure-rest/core-client\";\n\nexport function _setMemberCapOverridesSend(\n context: Client,\n location: string,\n vmFamilyName: string,\n body: SetMemberCapOverridesRequest,\n options: SharedLimitCapsSetMemberCapOverridesOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.ComputeLimit/locations/{location}/sharedLimitCaps/{vmFamilyName}/setMemberCapOverrides{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n location: location,\n vmFamilyName: vmFamilyName,\n \"api%2Dversion\": context.apiVersion ?? \"2026-07-01\",\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: setMemberCapOverridesRequestSerializer(body),\n });\n}\n\nexport async function _setMemberCapOverridesDeserialize(\n result: PathUncheckedResponse,\n): Promise<SetMemberCapOverridesResult> {\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 setMemberCapOverridesResultDeserializer(result.body);\n}\n\n/**\n * Replaces the full set of per-member cap overrides for this shared limit\n * cap. The supplied array becomes the new complete set of overrides;\n * supplying an empty array clears all existing overrides.\n */\nexport async function setMemberCapOverrides(\n context: Client,\n location: string,\n vmFamilyName: string,\n body: SetMemberCapOverridesRequest,\n options: SharedLimitCapsSetMemberCapOverridesOptionalParams = { requestOptions: {} },\n): Promise<SetMemberCapOverridesResult> {\n const result = await _setMemberCapOverridesSend(context, location, vmFamilyName, body, options);\n return _setMemberCapOverridesDeserialize(result);\n}\n\nexport function _listBySubscriptionLocationResourceSend(\n context: Client,\n location: string,\n options: SharedLimitCapsListBySubscriptionLocationResourceOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.ComputeLimit/locations/{location}/sharedLimitCaps{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n location: location,\n \"api%2Dversion\": context.apiVersion ?? \"2026-07-01\",\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 _listBySubscriptionLocationResourceDeserialize(\n result: PathUncheckedResponse,\n): Promise<_SharedLimitCapListResult> {\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 _sharedLimitCapListResultDeserializer(result.body);\n}\n\n/** Lists all shared limit cap configurations visible to the caller's subscription. */\nexport function listBySubscriptionLocationResource(\n context: Client,\n location: string,\n options: SharedLimitCapsListBySubscriptionLocationResourceOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<SharedLimitCap> {\n return buildPagedAsyncIterator(\n context,\n () => _listBySubscriptionLocationResourceSend(context, location, options),\n _listBySubscriptionLocationResourceDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\", apiVersion: context.apiVersion ?? \"2026-07-01\" },\n );\n}\n\nexport function _$deleteSend(\n context: Client,\n location: string,\n vmFamilyName: string,\n options: SharedLimitCapsDeleteOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.ComputeLimit/locations/{location}/sharedLimitCaps/{vmFamilyName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n location: location,\n vmFamilyName: vmFamilyName,\n \"api%2Dversion\": context.apiVersion ?? \"2026-07-01\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).delete({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _$deleteDeserialize(result: PathUncheckedResponse): Promise<void> {\n const expectedStatuses = [\"200\", \"204\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = errorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return;\n}\n\n/** Deletes the shared limit cap configuration for a VM family. The caller's subscription is treated as the host subscription. */\nexport async function $delete(\n context: Client,\n location: string,\n vmFamilyName: string,\n options: SharedLimitCapsDeleteOptionalParams = { requestOptions: {} },\n): Promise<void> {\n const result = await _$deleteSend(context, location, vmFamilyName, options);\n return _$deleteDeserialize(result);\n}\n\nexport function _createOrUpdateSend(\n context: Client,\n location: string,\n vmFamilyName: string,\n resource: SharedLimitCap,\n options: SharedLimitCapsCreateOrUpdateOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.ComputeLimit/locations/{location}/sharedLimitCaps/{vmFamilyName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n location: location,\n vmFamilyName: vmFamilyName,\n \"api%2Dversion\": context.apiVersion ?? \"2026-07-01\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).put({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n body: sharedLimitCapSerializer(resource),\n });\n}\n\nexport async function _createOrUpdateDeserialize(\n result: PathUncheckedResponse,\n): Promise<SharedLimitCap> {\n const expectedStatuses = [\"200\", \"201\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = errorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return sharedLimitCapDeserializer(result.body);\n}\n\n/** Creates or replaces the shared limit cap configuration for a VM family. */\nexport async function createOrUpdate(\n context: Client,\n location: string,\n vmFamilyName: string,\n resource: SharedLimitCap,\n options: SharedLimitCapsCreateOrUpdateOptionalParams = { requestOptions: {} },\n): Promise<SharedLimitCap> {\n const result = await _createOrUpdateSend(context, location, vmFamilyName, resource, options);\n return _createOrUpdateDeserialize(result);\n}\n\nexport function _getSend(\n context: Client,\n location: string,\n vmFamilyName: string,\n options: SharedLimitCapsGetOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.ComputeLimit/locations/{location}/sharedLimitCaps/{vmFamilyName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n location: location,\n vmFamilyName: vmFamilyName,\n \"api%2Dversion\": context.apiVersion ?? \"2026-07-01\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n });\n}\n\nexport async function _getDeserialize(result: PathUncheckedResponse): Promise<SharedLimitCap> {\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 sharedLimitCapDeserializer(result.body);\n}\n\n/** Gets the shared limit cap configuration for a VM family, as visible to the caller's subscription. */\nexport async function get(\n context: Client,\n location: string,\n vmFamilyName: string,\n options: SharedLimitCapsGetOptionalParams = { requestOptions: {} },\n): Promise<SharedLimitCap> {\n const result = await _getSend(context, location, vmFamilyName, options);\n return _getDeserialize(result);\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAUA,oBAOO;AAEP,2BAAwC;AACxC,yBAAkC;AASlC,yBAAqE;AAE9D,SAAS,2BACd,SACA,UACA,cACA,MACA,UAA8D,EAAE,gBAAgB,CAAC,EAAE,GACjE;AAClB,QAAM,WAAO;AAAA,IACX;AAAA,IACA;AAAA,MACE,gBAAgB,QAAQ;AAAA,MACxB;AAAA,MACA;AAAA,MACA,iBAAiB,QAAQ,cAAc;AAAA,IACzC;AAAA,IACA;AAAA,MACE,eAAe,SAAS,gBAAgB;AAAA,IAC1C;AAAA,EACF;AACA,SAAO,QAAQ,KAAK,IAAI,EAAE,KAAK;AAAA,IAC7B,OAAG,wDAAoC,OAAO;AAAA,IAC9C,aAAa;AAAA,IACb,SAAS,EAAE,QAAQ,oBAAoB,GAAG,QAAQ,gBAAgB,QAAQ;AAAA,IAC1E,UAAM,sDAAuC,IAAI;AAAA,EACnD,CAAC;AACH;AAEA,eAAsB,kCACpB,QACsC;AACtC,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,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,EAAE,GACxC;AACzB,QAAM,SAAS,MAAM,SAAS,SAAS,UAAU,cAAc,OAAO;AACtE,SAAO,gBAAgB,MAAM;AAC/B;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { OperationOptions } from "@azure-rest/core-client";
|
|
2
|
+
/** Optional parameters. */
|
|
3
|
+
export interface SharedLimitCapsSetMemberCapOverridesOptionalParams extends OperationOptions {
|
|
4
|
+
}
|
|
5
|
+
/** Optional parameters. */
|
|
6
|
+
export interface SharedLimitCapsListBySubscriptionLocationResourceOptionalParams extends OperationOptions {
|
|
7
|
+
}
|
|
8
|
+
/** Optional parameters. */
|
|
9
|
+
export interface SharedLimitCapsDeleteOptionalParams extends OperationOptions {
|
|
10
|
+
}
|
|
11
|
+
/** Optional parameters. */
|
|
12
|
+
export interface SharedLimitCapsCreateOrUpdateOptionalParams extends OperationOptions {
|
|
13
|
+
}
|
|
14
|
+
/** Optional parameters. */
|
|
15
|
+
export interface SharedLimitCapsGetOptionalParams extends OperationOptions {
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=options.d.ts.map
|
|
@@ -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/sharedLimitCaps/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 SharedLimitCapsSetMemberCapOverridesOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface SharedLimitCapsListBySubscriptionLocationResourceOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface SharedLimitCapsDeleteOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface SharedLimitCapsCreateOrUpdateOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface SharedLimitCapsGetOptionalParams extends OperationOptions {}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;AAAA;AAAA;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -41,7 +41,7 @@ function _listBySubscriptionLocationResourceSend(context, location, options = {
|
|
|
41
41
|
{
|
|
42
42
|
subscriptionId: context.subscriptionId,
|
|
43
43
|
location,
|
|
44
|
-
"api%2Dversion": context.apiVersion ?? "2026-
|
|
44
|
+
"api%2Dversion": context.apiVersion ?? "2026-07-01"
|
|
45
45
|
},
|
|
46
46
|
{
|
|
47
47
|
allowReserved: options?.requestOptions?.skipUrlEncoding
|
|
@@ -56,7 +56,9 @@ async function _listBySubscriptionLocationResourceDeserialize(result) {
|
|
|
56
56
|
const expectedStatuses = ["200"];
|
|
57
57
|
if (!expectedStatuses.includes(result.status)) {
|
|
58
58
|
const error = (0, import_core_client.createRestError)(result);
|
|
59
|
-
|
|
59
|
+
if (result.body) {
|
|
60
|
+
error.details = (0, import_models.errorResponseDeserializer)(result.body);
|
|
61
|
+
}
|
|
60
62
|
throw error;
|
|
61
63
|
}
|
|
62
64
|
return (0, import_models._sharedLimitListResultDeserializer)(result.body);
|
|
@@ -67,7 +69,7 @@ function listBySubscriptionLocationResource(context, location, options = { reque
|
|
|
67
69
|
() => _listBySubscriptionLocationResourceSend(context, location, options),
|
|
68
70
|
_listBySubscriptionLocationResourceDeserialize,
|
|
69
71
|
["200"],
|
|
70
|
-
{ itemName: "value", nextLinkName: "nextLink", apiVersion: context.apiVersion ?? "2026-
|
|
72
|
+
{ itemName: "value", nextLinkName: "nextLink", apiVersion: context.apiVersion ?? "2026-07-01" }
|
|
71
73
|
);
|
|
72
74
|
}
|
|
73
75
|
function _$deleteSend(context, location, name, options = { requestOptions: {} }) {
|
|
@@ -77,7 +79,7 @@ function _$deleteSend(context, location, name, options = { requestOptions: {} })
|
|
|
77
79
|
subscriptionId: context.subscriptionId,
|
|
78
80
|
location,
|
|
79
81
|
name,
|
|
80
|
-
"api%2Dversion": context.apiVersion ?? "2026-
|
|
82
|
+
"api%2Dversion": context.apiVersion ?? "2026-07-01"
|
|
81
83
|
},
|
|
82
84
|
{
|
|
83
85
|
allowReserved: options?.requestOptions?.skipUrlEncoding
|
|
@@ -89,7 +91,9 @@ async function _$deleteDeserialize(result) {
|
|
|
89
91
|
const expectedStatuses = ["200", "204"];
|
|
90
92
|
if (!expectedStatuses.includes(result.status)) {
|
|
91
93
|
const error = (0, import_core_client.createRestError)(result);
|
|
92
|
-
|
|
94
|
+
if (result.body) {
|
|
95
|
+
error.details = (0, import_models.errorResponseDeserializer)(result.body);
|
|
96
|
+
}
|
|
93
97
|
throw error;
|
|
94
98
|
}
|
|
95
99
|
return;
|
|
@@ -105,7 +109,7 @@ function _createSend(context, location, name, resource, options = { requestOptio
|
|
|
105
109
|
subscriptionId: context.subscriptionId,
|
|
106
110
|
location,
|
|
107
111
|
name,
|
|
108
|
-
"api%2Dversion": context.apiVersion ?? "2026-
|
|
112
|
+
"api%2Dversion": context.apiVersion ?? "2026-07-01"
|
|
109
113
|
},
|
|
110
114
|
{
|
|
111
115
|
allowReserved: options?.requestOptions?.skipUrlEncoding
|
|
@@ -122,7 +126,9 @@ async function _createDeserialize(result) {
|
|
|
122
126
|
const expectedStatuses = ["200", "201"];
|
|
123
127
|
if (!expectedStatuses.includes(result.status)) {
|
|
124
128
|
const error = (0, import_core_client.createRestError)(result);
|
|
125
|
-
|
|
129
|
+
if (result.body) {
|
|
130
|
+
error.details = (0, import_models.errorResponseDeserializer)(result.body);
|
|
131
|
+
}
|
|
126
132
|
throw error;
|
|
127
133
|
}
|
|
128
134
|
return (0, import_models.sharedLimitDeserializer)(result.body);
|
|
@@ -138,7 +144,7 @@ function _getSend(context, location, name, options = { requestOptions: {} }) {
|
|
|
138
144
|
subscriptionId: context.subscriptionId,
|
|
139
145
|
location,
|
|
140
146
|
name,
|
|
141
|
-
"api%2Dversion": context.apiVersion ?? "2026-
|
|
147
|
+
"api%2Dversion": context.apiVersion ?? "2026-07-01"
|
|
142
148
|
},
|
|
143
149
|
{
|
|
144
150
|
allowReserved: options?.requestOptions?.skipUrlEncoding
|
|
@@ -153,7 +159,9 @@ async function _getDeserialize(result) {
|
|
|
153
159
|
const expectedStatuses = ["200"];
|
|
154
160
|
if (!expectedStatuses.includes(result.status)) {
|
|
155
161
|
const error = (0, import_core_client.createRestError)(result);
|
|
156
|
-
|
|
162
|
+
if (result.body) {
|
|
163
|
+
error.details = (0, import_models.errorResponseDeserializer)(result.body);
|
|
164
|
+
}
|
|
157
165
|
throw error;
|
|
158
166
|
}
|
|
159
167
|
return (0, import_models.sharedLimitDeserializer)(result.body);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/api/sharedLimits/operations.ts"],
|
|
4
|
-
"sourcesContent": ["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { ComputeLimitContext as Client } from \"../index.js\";\nimport type { SharedLimit, _SharedLimitListResult } from \"../../models/models.js\";\nimport {\n errorResponseDeserializer,\n sharedLimitSerializer,\n sharedLimitDeserializer,\n _sharedLimitListResultDeserializer,\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 {\n SharedLimitsListBySubscriptionLocationResourceOptionalParams,\n SharedLimitsDeleteOptionalParams,\n SharedLimitsCreateOptionalParams,\n SharedLimitsGetOptionalParams,\n} from \"./options.js\";\nimport type { StreamableMethod, PathUncheckedResponse } from \"@azure-rest/core-client\";\nimport { createRestError, operationOptionsToRequestParameters } from \"@azure-rest/core-client\";\n\nexport function _listBySubscriptionLocationResourceSend(\n context: Client,\n location: string,\n options: SharedLimitsListBySubscriptionLocationResourceOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.ComputeLimit/locations/{location}/sharedLimits{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n location: location,\n \"api%2Dversion\": context.apiVersion ?? \"2026-
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAKA,oBAKO;AAEP,2BAAwC;AACxC,yBAAkC;AAQlC,yBAAqE;AAE9D,SAAS,wCACd,SACA,UACA,UAAwE,EAAE,gBAAgB,CAAC,EAAE,GAC3E;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,IAAI;AAAA,IAC5B,OAAG,wDAAoC,OAAO;AAAA,IAC9C,SAAS,EAAE,QAAQ,oBAAoB,GAAG,QAAQ,gBAAgB,QAAQ;AAAA,EAC5E,CAAC;AACH;AAEA,eAAsB,+CACpB,QACiC;AACjC,QAAM,mBAAmB,CAAC,KAAK;AAC/B,MAAI,CAAC,iBAAiB,SAAS,OAAO,MAAM,GAAG;AAC7C,UAAM,YAAQ,oCAAgB,MAAM;AACpC,
|
|
4
|
+
"sourcesContent": ["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { ComputeLimitContext as Client } from \"../index.js\";\nimport type { SharedLimit, _SharedLimitListResult } from \"../../models/models.js\";\nimport {\n errorResponseDeserializer,\n sharedLimitSerializer,\n sharedLimitDeserializer,\n _sharedLimitListResultDeserializer,\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 {\n SharedLimitsListBySubscriptionLocationResourceOptionalParams,\n SharedLimitsDeleteOptionalParams,\n SharedLimitsCreateOptionalParams,\n SharedLimitsGetOptionalParams,\n} from \"./options.js\";\nimport type { StreamableMethod, PathUncheckedResponse } from \"@azure-rest/core-client\";\nimport { createRestError, operationOptionsToRequestParameters } from \"@azure-rest/core-client\";\n\nexport function _listBySubscriptionLocationResourceSend(\n context: Client,\n location: string,\n options: SharedLimitsListBySubscriptionLocationResourceOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.ComputeLimit/locations/{location}/sharedLimits{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n location: location,\n \"api%2Dversion\": context.apiVersion ?? \"2026-07-01\",\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 _listBySubscriptionLocationResourceDeserialize(\n result: PathUncheckedResponse,\n): Promise<_SharedLimitListResult> {\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 _sharedLimitListResultDeserializer(result.body);\n}\n\n/** Lists all compute limits shared by the host subscription with its guest subscriptions. */\nexport function listBySubscriptionLocationResource(\n context: Client,\n location: string,\n options: SharedLimitsListBySubscriptionLocationResourceOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<SharedLimit> {\n return buildPagedAsyncIterator(\n context,\n () => _listBySubscriptionLocationResourceSend(context, location, options),\n _listBySubscriptionLocationResourceDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\", apiVersion: context.apiVersion ?? \"2026-07-01\" },\n );\n}\n\nexport function _$deleteSend(\n context: Client,\n location: string,\n name: string,\n options: SharedLimitsDeleteOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.ComputeLimit/locations/{location}/sharedLimits/{name}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n location: location,\n name: name,\n \"api%2Dversion\": context.apiVersion ?? \"2026-07-01\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).delete({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _$deleteDeserialize(result: PathUncheckedResponse): Promise<void> {\n const expectedStatuses = [\"200\", \"204\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = errorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return;\n}\n\n/** Disables sharing of a compute limit by the host subscription with its guest subscriptions. */\nexport async function $delete(\n context: Client,\n location: string,\n name: string,\n options: SharedLimitsDeleteOptionalParams = { requestOptions: {} },\n): Promise<void> {\n const result = await _$deleteSend(context, location, name, options);\n return _$deleteDeserialize(result);\n}\n\nexport function _createSend(\n context: Client,\n location: string,\n name: string,\n resource: SharedLimit,\n options: SharedLimitsCreateOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.ComputeLimit/locations/{location}/sharedLimits/{name}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n location: location,\n name: name,\n \"api%2Dversion\": context.apiVersion ?? \"2026-07-01\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).put({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n body: sharedLimitSerializer(resource),\n });\n}\n\nexport async function _createDeserialize(result: PathUncheckedResponse): Promise<SharedLimit> {\n const expectedStatuses = [\"200\", \"201\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = errorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return sharedLimitDeserializer(result.body);\n}\n\n/** Enables sharing of a compute limit by the host subscription with its guest subscriptions. */\nexport async function create(\n context: Client,\n location: string,\n name: string,\n resource: SharedLimit,\n options: SharedLimitsCreateOptionalParams = { requestOptions: {} },\n): Promise<SharedLimit> {\n const result = await _createSend(context, location, name, resource, options);\n return _createDeserialize(result);\n}\n\nexport function _getSend(\n context: Client,\n location: string,\n name: string,\n options: SharedLimitsGetOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.ComputeLimit/locations/{location}/sharedLimits/{name}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n location: location,\n name: name,\n \"api%2Dversion\": context.apiVersion ?? \"2026-07-01\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n });\n}\n\nexport async function _getDeserialize(result: PathUncheckedResponse): Promise<SharedLimit> {\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 sharedLimitDeserializer(result.body);\n}\n\n/** Gets the properties of a compute limit shared by the host subscription with its guest subscriptions. */\nexport async function get(\n context: Client,\n location: string,\n name: string,\n options: SharedLimitsGetOptionalParams = { requestOptions: {} },\n): Promise<SharedLimit> {\n const result = await _getSend(context, location, name, options);\n return _getDeserialize(result);\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAKA,oBAKO;AAEP,2BAAwC;AACxC,yBAAkC;AAQlC,yBAAqE;AAE9D,SAAS,wCACd,SACA,UACA,UAAwE,EAAE,gBAAgB,CAAC,EAAE,GAC3E;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,IAAI;AAAA,IAC5B,OAAG,wDAAoC,OAAO;AAAA,IAC9C,SAAS,EAAE,QAAQ,oBAAoB,GAAG,QAAQ,gBAAgB,QAAQ;AAAA,EAC5E,CAAC;AACH;AAEA,eAAsB,+CACpB,QACiC;AACjC,QAAM,mBAAmB,CAAC,KAAK;AAC/B,MAAI,CAAC,iBAAiB,SAAS,OAAO,MAAM,GAAG;AAC7C,UAAM,YAA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C5B,OAAG,wDAAoC,OAAO;AAAA,IAC9C,SAAS,EAAE,QAAQ,oBAAoB,GAAG,QAAQ,gBAAgB,QAAQ;AAAA,EAC5E,CAAC;AACH;AAEA,eAAsB,gBAAgB,QAAqD;AACzF,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,uCAAwB,OAAO,IAAI;AAC5C;AAGA,eAAsB,IACpB,SACA,UACA,MACA,UAAyC,EAAE,gBAAgB,CAAC,EAAE,GACxC;AACtB,QAAM,SAAS,MAAM,SAAS,SAAS,UAAU,MAAM,OAAO;AAC9D,SAAO,gBAAgB,MAAM;AAC/B;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -35,7 +35,7 @@ function _listBySubscriptionLocationResourceSend(context, location, options = {
|
|
|
35
35
|
{
|
|
36
36
|
subscriptionId: context.subscriptionId,
|
|
37
37
|
location,
|
|
38
|
-
"api%2Dversion": context.apiVersion ?? "2026-
|
|
38
|
+
"api%2Dversion": context.apiVersion ?? "2026-07-01",
|
|
39
39
|
"%24filter": options?.filter
|
|
40
40
|
},
|
|
41
41
|
{
|
|
@@ -51,7 +51,9 @@ async function _listBySubscriptionLocationResourceDeserialize(result) {
|
|
|
51
51
|
const expectedStatuses = ["200"];
|
|
52
52
|
if (!expectedStatuses.includes(result.status)) {
|
|
53
53
|
const error = (0, import_core_client.createRestError)(result);
|
|
54
|
-
|
|
54
|
+
if (result.body) {
|
|
55
|
+
error.details = (0, import_models.errorResponseDeserializer)(result.body);
|
|
56
|
+
}
|
|
55
57
|
throw error;
|
|
56
58
|
}
|
|
57
59
|
return (0, import_models._vmFamilyListResultDeserializer)(result.body);
|
|
@@ -62,7 +64,7 @@ function listBySubscriptionLocationResource(context, location, options = { reque
|
|
|
62
64
|
() => _listBySubscriptionLocationResourceSend(context, location, options),
|
|
63
65
|
_listBySubscriptionLocationResourceDeserialize,
|
|
64
66
|
["200"],
|
|
65
|
-
{ itemName: "value", nextLinkName: "nextLink", apiVersion: context.apiVersion ?? "2026-
|
|
67
|
+
{ itemName: "value", nextLinkName: "nextLink", apiVersion: context.apiVersion ?? "2026-07-01" }
|
|
66
68
|
);
|
|
67
69
|
}
|
|
68
70
|
function _getSend(context, location, vmFamilyName, options = { requestOptions: {} }) {
|
|
@@ -72,7 +74,7 @@ function _getSend(context, location, vmFamilyName, options = { requestOptions: {
|
|
|
72
74
|
subscriptionId: context.subscriptionId,
|
|
73
75
|
location,
|
|
74
76
|
vmFamilyName,
|
|
75
|
-
"api%2Dversion": context.apiVersion ?? "2026-
|
|
77
|
+
"api%2Dversion": context.apiVersion ?? "2026-07-01"
|
|
76
78
|
},
|
|
77
79
|
{
|
|
78
80
|
allowReserved: options?.requestOptions?.skipUrlEncoding
|
|
@@ -87,7 +89,9 @@ async function _getDeserialize(result) {
|
|
|
87
89
|
const expectedStatuses = ["200"];
|
|
88
90
|
if (!expectedStatuses.includes(result.status)) {
|
|
89
91
|
const error = (0, import_core_client.createRestError)(result);
|
|
90
|
-
|
|
92
|
+
if (result.body) {
|
|
93
|
+
error.details = (0, import_models.errorResponseDeserializer)(result.body);
|
|
94
|
+
}
|
|
91
95
|
throw error;
|
|
92
96
|
}
|
|
93
97
|
return (0, import_models.vmFamilyDeserializer)(result.body);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/api/vmFamilies/operations.ts"],
|
|
4
|
-
"sourcesContent": ["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { ComputeLimitContext as Client } from \"../index.js\";\nimport type { VmFamily, _VmFamilyListResult } from \"../../models/models.js\";\nimport {\n errorResponseDeserializer,\n vmFamilyDeserializer,\n _vmFamilyListResultDeserializer,\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 {\n VmFamiliesListBySubscriptionLocationResourceOptionalParams,\n VmFamiliesGetOptionalParams,\n} from \"./options.js\";\nimport type { StreamableMethod, PathUncheckedResponse } from \"@azure-rest/core-client\";\nimport { createRestError, operationOptionsToRequestParameters } from \"@azure-rest/core-client\";\n\nexport function _listBySubscriptionLocationResourceSend(\n context: Client,\n location: string,\n options: VmFamiliesListBySubscriptionLocationResourceOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.ComputeLimit/locations/{location}/vmFamilies{?api%2Dversion,%24filter}\",\n {\n subscriptionId: context.subscriptionId,\n location: location,\n \"api%2Dversion\": context.apiVersion ?? \"2026-
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAKA,oBAIO;AAEP,2BAAwC;AACxC,yBAAkC;AAMlC,yBAAqE;AAE9D,SAAS,wCACd,SACA,UACA,UAAsE,EAAE,gBAAgB,CAAC,EAAE,GACzE;AAClB,QAAM,WAAO;AAAA,IACX;AAAA,IACA;AAAA,MACE,gBAAgB,QAAQ;AAAA,MACxB;AAAA,MACA,iBAAiB,QAAQ,cAAc;AAAA,MACvC,aAAa,SAAS;AAAA,IACxB;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,+CACpB,QAC8B;AAC9B,QAAM,mBAAmB,CAAC,KAAK;AAC/B,MAAI,CAAC,iBAAiB,SAAS,OAAO,MAAM,GAAG;AAC7C,UAAM,YAAQ,oCAAgB,MAAM;AACpC,
|
|
4
|
+
"sourcesContent": ["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { ComputeLimitContext as Client } from \"../index.js\";\nimport type { VmFamily, _VmFamilyListResult } from \"../../models/models.js\";\nimport {\n errorResponseDeserializer,\n vmFamilyDeserializer,\n _vmFamilyListResultDeserializer,\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 {\n VmFamiliesListBySubscriptionLocationResourceOptionalParams,\n VmFamiliesGetOptionalParams,\n} from \"./options.js\";\nimport type { StreamableMethod, PathUncheckedResponse } from \"@azure-rest/core-client\";\nimport { createRestError, operationOptionsToRequestParameters } from \"@azure-rest/core-client\";\n\nexport function _listBySubscriptionLocationResourceSend(\n context: Client,\n location: string,\n options: VmFamiliesListBySubscriptionLocationResourceOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.ComputeLimit/locations/{location}/vmFamilies{?api%2Dversion,%24filter}\",\n {\n subscriptionId: context.subscriptionId,\n location: location,\n \"api%2Dversion\": context.apiVersion ?? \"2026-07-01\",\n \"%24filter\": options?.filter,\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 _listBySubscriptionLocationResourceDeserialize(\n result: PathUncheckedResponse,\n): Promise<_VmFamilyListResult> {\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 _vmFamilyListResultDeserializer(result.body);\n}\n\n/** Lists all VM families for the subscription at the specified location. */\nexport function listBySubscriptionLocationResource(\n context: Client,\n location: string,\n options: VmFamiliesListBySubscriptionLocationResourceOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<VmFamily> {\n return buildPagedAsyncIterator(\n context,\n () => _listBySubscriptionLocationResourceSend(context, location, options),\n _listBySubscriptionLocationResourceDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\", apiVersion: context.apiVersion ?? \"2026-07-01\" },\n );\n}\n\nexport function _getSend(\n context: Client,\n location: string,\n vmFamilyName: string,\n options: VmFamiliesGetOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.ComputeLimit/locations/{location}/vmFamilies/{vmFamilyName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n location: location,\n vmFamilyName: vmFamilyName,\n \"api%2Dversion\": context.apiVersion ?? \"2026-07-01\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n });\n}\n\nexport async function _getDeserialize(result: PathUncheckedResponse): Promise<VmFamily> {\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 vmFamilyDeserializer(result.body);\n}\n\n/** Gets the properties of a VM family. */\nexport async function get(\n context: Client,\n location: string,\n vmFamilyName: string,\n options: VmFamiliesGetOptionalParams = { requestOptions: {} },\n): Promise<VmFamily> {\n const result = await _getSend(context, location, vmFamilyName, options);\n return _getDeserialize(result);\n}\n"],
|
|
5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,IACX;AAAA,IACA;AAAA,MACE,gBAAgB,QAAQ;AAAA,MACxB;AAAA,MACA;AAAA,MACA,iBAAiB,QAAQ,cAAc;AAAA,IACzC;AAAA,IACA;AAAA,MACE,eAAe,SAAS,gBAAgB;AAAA,IAC1C;AAAA,EACF;AACA,SAAO,QAAQ,KAAK,IAAI,EAAE,IAAI;AAAA,IAC5B,OAAG,wDAAoC,OAAO;AAAA,IAC9C,SAAS,EAAE,QAAQ,oBAAoB,GAAG,QAAQ,gBAAgB,QAAQ;AAAA,EAC5E,CAAC;AACH;AAEA,eAAsB,gBAAgB,QAAkD;AACtF,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,oCAAqB,OAAO,IAAI;AACzC;AAGA,eAAsB,IACpB,SACA,UACA,cACA,UAAuC,EAAE,gBAAgB,CAAC,EAAE,GACzC;AACnB,QAAM,SAAS,MAAM,SAAS,SAAS,UAAU,cAAc,OAAO;AACtE,SAAO,gBAAgB,MAAM;AAC/B;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -5,9 +5,9 @@ import type { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelp
|
|
|
5
5
|
import type { PollerLike, OperationState } from "@azure/core-lro";
|
|
6
6
|
/** Interface representing a Features operations. */
|
|
7
7
|
export interface FeaturesOperations {
|
|
8
|
-
/** Disables a compute limit feature for the subscription at the specified location. */
|
|
8
|
+
/** Disables a compute limit feature for the subscription at the specified location. Requires the Contributor role. */
|
|
9
9
|
disable: (location: string, featureName: string, options?: FeaturesDisableOptionalParams) => PollerLike<OperationState<OperationStatusResult>, OperationStatusResult>;
|
|
10
|
-
/** Enables a compute limit feature for the subscription at the specified location. */
|
|
10
|
+
/** Enables a compute limit feature for the subscription at the specified location. Requires the Contributor role. */
|
|
11
11
|
enable: (location: string, featureName: string, options?: FeaturesEnableOptionalParams) => PollerLike<OperationState<OperationStatusResult>, OperationStatusResult>;
|
|
12
12
|
/** Lists all compute limit features for the subscription at the specified location. */
|
|
13
13
|
listBySubscriptionLocationResource: (location: string, options?: FeaturesListBySubscriptionLocationResourceOptionalParams) => PagedAsyncIterableIterator<Feature>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/classic/features/index.ts"],
|
|
4
|
-
"sourcesContent": ["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { ComputeLimitContext } from \"../../api/computeLimitContext.js\";\nimport {\n disable,\n enable,\n listBySubscriptionLocationResource,\n get,\n} from \"../../api/features/operations.js\";\nimport type {\n FeaturesDisableOptionalParams,\n FeaturesEnableOptionalParams,\n FeaturesListBySubscriptionLocationResourceOptionalParams,\n FeaturesGetOptionalParams,\n} from \"../../api/features/options.js\";\nimport type { Feature, OperationStatusResult } from \"../../models/models.js\";\nimport type { PagedAsyncIterableIterator } from \"../../static-helpers/pagingHelpers.js\";\nimport type { PollerLike, OperationState } from \"@azure/core-lro\";\n\n/** Interface representing a Features operations. */\nexport interface FeaturesOperations {\n /** Disables a compute limit feature for the subscription at the specified location. */\n disable: (\n location: string,\n featureName: string,\n options?: FeaturesDisableOptionalParams,\n ) => PollerLike<OperationState<OperationStatusResult>, OperationStatusResult>;\n /** Enables a compute limit feature for the subscription at the specified location. */\n enable: (\n location: string,\n featureName: string,\n options?: FeaturesEnableOptionalParams,\n ) => PollerLike<OperationState<OperationStatusResult>, OperationStatusResult>;\n /** Lists all compute limit features for the subscription at the specified location. */\n listBySubscriptionLocationResource: (\n location: string,\n options?: FeaturesListBySubscriptionLocationResourceOptionalParams,\n ) => PagedAsyncIterableIterator<Feature>;\n /** Gets the properties of a compute limit feature. */\n get: (\n location: string,\n featureName: string,\n options?: FeaturesGetOptionalParams,\n ) => Promise<Feature>;\n}\n\nfunction _getFeatures(context: ComputeLimitContext) {\n return {\n disable: (location: string, featureName: string, options?: FeaturesDisableOptionalParams) =>\n disable(context, location, featureName, options),\n enable: (location: string, featureName: string, options?: FeaturesEnableOptionalParams) =>\n enable(context, location, featureName, options),\n listBySubscriptionLocationResource: (\n location: string,\n options?: FeaturesListBySubscriptionLocationResourceOptionalParams,\n ) => listBySubscriptionLocationResource(context, location, options),\n get: (location: string, featureName: string, options?: FeaturesGetOptionalParams) =>\n get(context, location, featureName, options),\n };\n}\n\nexport function _getFeaturesOperations(context: ComputeLimitContext): FeaturesOperations {\n return {\n ..._getFeatures(context),\n };\n}\n"],
|
|
4
|
+
"sourcesContent": ["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { ComputeLimitContext } from \"../../api/computeLimitContext.js\";\nimport {\n disable,\n enable,\n listBySubscriptionLocationResource,\n get,\n} from \"../../api/features/operations.js\";\nimport type {\n FeaturesDisableOptionalParams,\n FeaturesEnableOptionalParams,\n FeaturesListBySubscriptionLocationResourceOptionalParams,\n FeaturesGetOptionalParams,\n} from \"../../api/features/options.js\";\nimport type { Feature, OperationStatusResult } from \"../../models/models.js\";\nimport type { PagedAsyncIterableIterator } from \"../../static-helpers/pagingHelpers.js\";\nimport type { PollerLike, OperationState } from \"@azure/core-lro\";\n\n/** Interface representing a Features operations. */\nexport interface FeaturesOperations {\n /** Disables a compute limit feature for the subscription at the specified location. Requires the Contributor role. */\n disable: (\n location: string,\n featureName: string,\n options?: FeaturesDisableOptionalParams,\n ) => PollerLike<OperationState<OperationStatusResult>, OperationStatusResult>;\n /** Enables a compute limit feature for the subscription at the specified location. Requires the Contributor role. */\n enable: (\n location: string,\n featureName: string,\n options?: FeaturesEnableOptionalParams,\n ) => PollerLike<OperationState<OperationStatusResult>, OperationStatusResult>;\n /** Lists all compute limit features for the subscription at the specified location. */\n listBySubscriptionLocationResource: (\n location: string,\n options?: FeaturesListBySubscriptionLocationResourceOptionalParams,\n ) => PagedAsyncIterableIterator<Feature>;\n /** Gets the properties of a compute limit feature. */\n get: (\n location: string,\n featureName: string,\n options?: FeaturesGetOptionalParams,\n ) => Promise<Feature>;\n}\n\nfunction _getFeatures(context: ComputeLimitContext) {\n return {\n disable: (location: string, featureName: string, options?: FeaturesDisableOptionalParams) =>\n disable(context, location, featureName, options),\n enable: (location: string, featureName: string, options?: FeaturesEnableOptionalParams) =>\n enable(context, location, featureName, options),\n listBySubscriptionLocationResource: (\n location: string,\n options?: FeaturesListBySubscriptionLocationResourceOptionalParams,\n ) => listBySubscriptionLocationResource(context, location, options),\n get: (location: string, featureName: string, options?: FeaturesGetOptionalParams) =>\n get(context, location, featureName, options),\n };\n}\n\nexport function _getFeaturesOperations(context: ComputeLimitContext): FeaturesOperations {\n return {\n ..._getFeatures(context),\n };\n}\n"],
|
|
5
5
|
"mappings": ";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAIA,wBAKO;AAsCP,SAAS,aAAa,SAA8B;AAClD,SAAO;AAAA,IACL,SAAS,CAAC,UAAkB,aAAqB,gBAC/C,2BAAQ,SAAS,UAAU,aAAa,OAAO;AAAA,IACjD,QAAQ,CAAC,UAAkB,aAAqB,gBAC9C,0BAAO,SAAS,UAAU,aAAa,OAAO;AAAA,IAChD,oCAAoC,CAClC,UACA,gBACG,sDAAmC,SAAS,UAAU,OAAO;AAAA,IAClE,KAAK,CAAC,UAAkB,aAAqB,gBAC3C,uBAAI,SAAS,UAAU,aAAa,OAAO;AAAA,EAC/C;AACF;AAEO,SAAS,uBAAuB,SAAkD;AACvF,SAAO;AAAA,IACL,GAAG,aAAa,OAAO;AAAA,EACzB;AACF;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export type { FeaturesOperations } from "./features/index.js";
|
|
2
2
|
export type { GuestSubscriptionsOperations } from "./guestSubscriptions/index.js";
|
|
3
|
+
export type { MemberCapOverridesOperations } from "./memberCapOverrides/index.js";
|
|
3
4
|
export type { OperationsOperations } from "./operations/index.js";
|
|
5
|
+
export type { SharedLimitCapsOperations } from "./sharedLimitCaps/index.js";
|
|
4
6
|
export type { SharedLimitsOperations } from "./sharedLimits/index.js";
|
|
5
7
|
export type { VmFamiliesOperations } from "./vmFamilies/index.js";
|
|
6
8
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/classic/index.ts"],
|
|
4
|
-
"sourcesContent": ["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport type { FeaturesOperations } from \"./features/index.js\";\nexport type { GuestSubscriptionsOperations } from \"./guestSubscriptions/index.js\";\nexport type { OperationsOperations } from \"./operations/index.js\";\nexport type { SharedLimitsOperations } from \"./sharedLimits/index.js\";\nexport type { VmFamiliesOperations } from \"./vmFamilies/index.js\";\n"],
|
|
4
|
+
"sourcesContent": ["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport type { FeaturesOperations } from \"./features/index.js\";\nexport type { GuestSubscriptionsOperations } from \"./guestSubscriptions/index.js\";\nexport type { MemberCapOverridesOperations } from \"./memberCapOverrides/index.js\";\nexport type { OperationsOperations } from \"./operations/index.js\";\nexport type { SharedLimitCapsOperations } from \"./sharedLimitCaps/index.js\";\nexport type { SharedLimitsOperations } from \"./sharedLimits/index.js\";\nexport type { VmFamiliesOperations } from \"./vmFamilies/index.js\";\n"],
|
|
5
5
|
"mappings": ";;;;;;;;;;;;;AAAA;AAAA;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { ComputeLimitContext } from "../../api/computeLimitContext.js";
|
|
2
|
+
import type { MemberCapOverridesListByParentOptionalParams, MemberCapOverridesDeleteOptionalParams, MemberCapOverridesCreateOrUpdateOptionalParams, MemberCapOverridesGetOptionalParams } from "../../api/memberCapOverrides/options.js";
|
|
3
|
+
import type { MemberCapOverride } from "../../models/models.js";
|
|
4
|
+
import type { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js";
|
|
5
|
+
/** Interface representing a MemberCapOverrides operations. */
|
|
6
|
+
export interface MemberCapOverridesOperations {
|
|
7
|
+
/** Lists all per-member cap overrides configured under a SharedLimitCap. */
|
|
8
|
+
listByParent: (location: string, vmFamilyName: string, options?: MemberCapOverridesListByParentOptionalParams) => PagedAsyncIterableIterator<MemberCapOverride>;
|
|
9
|
+
/** Removes the per-member cap override for a member subscription. */
|
|
10
|
+
delete: (location: string, vmFamilyName: string, memberSubscriptionId: string, options?: MemberCapOverridesDeleteOptionalParams) => Promise<void>;
|
|
11
|
+
/** Creates or replaces the cap override for a single member subscription. */
|
|
12
|
+
createOrUpdate: (location: string, vmFamilyName: string, memberSubscriptionId: string, resource: MemberCapOverride, options?: MemberCapOverridesCreateOrUpdateOptionalParams) => Promise<MemberCapOverride>;
|
|
13
|
+
/** Gets the cap override configured for a single member subscription. */
|
|
14
|
+
get: (location: string, vmFamilyName: string, memberSubscriptionId: string, options?: MemberCapOverridesGetOptionalParams) => Promise<MemberCapOverride>;
|
|
15
|
+
}
|
|
16
|
+
export declare function _getMemberCapOverridesOperations(context: ComputeLimitContext): MemberCapOverridesOperations;
|
|
17
|
+
//# sourceMappingURL=index.d.ts.map
|