@azure/arm-baremetalinfrastructure 1.0.0-alpha.20250620.1 → 1.0.0-alpha.20250721.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/bareMetalInfrastructureClient.js +16 -5
- package/dist/browser/bareMetalInfrastructureClient.js.map +1 -1
- package/dist/browser/lroImpl.js +7 -3
- package/dist/browser/lroImpl.js.map +1 -1
- package/dist/browser/models/mappers.js +37 -17
- package/dist/browser/models/mappers.js.map +1 -1
- package/dist/browser/operations/azureBareMetalInstances.js +78 -97
- package/dist/browser/operations/azureBareMetalInstances.js.map +1 -1
- package/dist/browser/operations/azureBareMetalStorageInstances.js +45 -79
- package/dist/browser/operations/azureBareMetalStorageInstances.js.map +1 -1
- package/dist/browser/operations/operations.js +10 -27
- package/dist/browser/operations/operations.js.map +1 -1
- package/dist/browser/pagingHelper.js +2 -4
- package/dist/browser/pagingHelper.js.map +1 -1
- package/dist/commonjs/bareMetalInfrastructureClient.js +16 -5
- package/dist/commonjs/bareMetalInfrastructureClient.js.map +1 -1
- package/dist/commonjs/lroImpl.js +7 -3
- package/dist/commonjs/lroImpl.js.map +1 -1
- package/dist/commonjs/models/mappers.js +37 -17
- package/dist/commonjs/models/mappers.js.map +1 -1
- package/dist/commonjs/operations/azureBareMetalInstances.js +78 -96
- package/dist/commonjs/operations/azureBareMetalInstances.js.map +1 -1
- package/dist/commonjs/operations/azureBareMetalStorageInstances.js +45 -78
- package/dist/commonjs/operations/azureBareMetalStorageInstances.js.map +1 -1
- package/dist/commonjs/operations/operations.js +10 -26
- package/dist/commonjs/operations/operations.js.map +1 -1
- package/dist/commonjs/pagingHelper.js +2 -4
- package/dist/commonjs/pagingHelper.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +11 -11
- package/dist/esm/bareMetalInfrastructureClient.js +16 -5
- package/dist/esm/bareMetalInfrastructureClient.js.map +1 -1
- package/dist/esm/lroImpl.js +7 -3
- package/dist/esm/lroImpl.js.map +1 -1
- package/dist/esm/models/mappers.js +37 -17
- package/dist/esm/models/mappers.js.map +1 -1
- package/dist/esm/operations/azureBareMetalInstances.js +78 -97
- package/dist/esm/operations/azureBareMetalInstances.js.map +1 -1
- package/dist/esm/operations/azureBareMetalStorageInstances.js +45 -79
- package/dist/esm/operations/azureBareMetalStorageInstances.js.map +1 -1
- package/dist/esm/operations/operations.js +10 -27
- package/dist/esm/operations/operations.js.map +1 -1
- package/dist/esm/pagingHelper.js +2 -4
- package/dist/esm/pagingHelper.js.map +1 -1
- package/dist/react-native/bareMetalInfrastructureClient.js +16 -5
- package/dist/react-native/bareMetalInfrastructureClient.js.map +1 -1
- package/dist/react-native/lroImpl.js +7 -3
- package/dist/react-native/lroImpl.js.map +1 -1
- package/dist/react-native/models/mappers.js +37 -17
- package/dist/react-native/models/mappers.js.map +1 -1
- package/dist/react-native/operations/azureBareMetalInstances.js +78 -97
- package/dist/react-native/operations/azureBareMetalInstances.js.map +1 -1
- package/dist/react-native/operations/azureBareMetalStorageInstances.js +45 -79
- package/dist/react-native/operations/azureBareMetalStorageInstances.js.map +1 -1
- package/dist/react-native/operations/operations.js +10 -27
- package/dist/react-native/operations/operations.js.map +1 -1
- package/dist/react-native/pagingHelper.js +2 -4
- package/dist/react-native/pagingHelper.js.map +1 -1
- package/package.json +2 -2
- /package/review/{arm-baremetalinfrastructure.api.md → arm-baremetalinfrastructure-node.api.md} +0 -0
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
|
-
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
|
9
8
|
import { setContinuationToken } from "../pagingHelper.js";
|
|
10
9
|
import * as coreClient from "@azure/core-client";
|
|
11
10
|
import * as Mappers from "../models/mappers.js";
|
|
@@ -15,6 +14,7 @@ import { createLroSpec } from "../lroImpl.js";
|
|
|
15
14
|
/// <reference lib="esnext.asynciterable" />
|
|
16
15
|
/** Class containing AzureBareMetalInstances operations. */
|
|
17
16
|
export class AzureBareMetalInstancesImpl {
|
|
17
|
+
client;
|
|
18
18
|
/**
|
|
19
19
|
* Initialize a new instance of the class AzureBareMetalInstances class.
|
|
20
20
|
* @param client Reference to the service client
|
|
@@ -37,52 +37,35 @@ export class AzureBareMetalInstancesImpl {
|
|
|
37
37
|
return this;
|
|
38
38
|
},
|
|
39
39
|
byPage: (settings) => {
|
|
40
|
-
if (settings
|
|
40
|
+
if (settings?.maxPageSize) {
|
|
41
41
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
42
42
|
}
|
|
43
43
|
return this.listBySubscriptionPagingPage(options, settings);
|
|
44
44
|
}
|
|
45
45
|
};
|
|
46
46
|
}
|
|
47
|
-
listBySubscriptionPagingPage(options, settings) {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
}
|
|
65
|
-
});
|
|
47
|
+
async *listBySubscriptionPagingPage(options, settings) {
|
|
48
|
+
let result;
|
|
49
|
+
let continuationToken = settings?.continuationToken;
|
|
50
|
+
if (!continuationToken) {
|
|
51
|
+
result = await this._listBySubscription(options);
|
|
52
|
+
let page = result.value || [];
|
|
53
|
+
continuationToken = result.nextLink;
|
|
54
|
+
setContinuationToken(page, continuationToken);
|
|
55
|
+
yield page;
|
|
56
|
+
}
|
|
57
|
+
while (continuationToken) {
|
|
58
|
+
result = await this._listBySubscriptionNext(continuationToken, options);
|
|
59
|
+
continuationToken = result.nextLink;
|
|
60
|
+
let page = result.value || [];
|
|
61
|
+
setContinuationToken(page, continuationToken);
|
|
62
|
+
yield page;
|
|
63
|
+
}
|
|
66
64
|
}
|
|
67
|
-
listBySubscriptionPagingAll(options) {
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
for (var _d = true, _e = __asyncValues(this.listBySubscriptionPagingPage(options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
72
|
-
_c = _f.value;
|
|
73
|
-
_d = false;
|
|
74
|
-
const page = _c;
|
|
75
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
79
|
-
finally {
|
|
80
|
-
try {
|
|
81
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
82
|
-
}
|
|
83
|
-
finally { if (e_1) throw e_1.error; }
|
|
84
|
-
}
|
|
85
|
-
});
|
|
65
|
+
async *listBySubscriptionPagingAll(options) {
|
|
66
|
+
for await (const page of this.listBySubscriptionPagingPage(options)) {
|
|
67
|
+
yield* page;
|
|
68
|
+
}
|
|
86
69
|
}
|
|
87
70
|
/**
|
|
88
71
|
* Gets a list of Azure Bare Metal Instances in the specified subscription and resource group. The
|
|
@@ -100,52 +83,35 @@ export class AzureBareMetalInstancesImpl {
|
|
|
100
83
|
return this;
|
|
101
84
|
},
|
|
102
85
|
byPage: (settings) => {
|
|
103
|
-
if (settings
|
|
86
|
+
if (settings?.maxPageSize) {
|
|
104
87
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
105
88
|
}
|
|
106
89
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
107
90
|
}
|
|
108
91
|
};
|
|
109
92
|
}
|
|
110
|
-
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
}
|
|
128
|
-
});
|
|
93
|
+
async *listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
94
|
+
let result;
|
|
95
|
+
let continuationToken = settings?.continuationToken;
|
|
96
|
+
if (!continuationToken) {
|
|
97
|
+
result = await this._listByResourceGroup(resourceGroupName, options);
|
|
98
|
+
let page = result.value || [];
|
|
99
|
+
continuationToken = result.nextLink;
|
|
100
|
+
setContinuationToken(page, continuationToken);
|
|
101
|
+
yield page;
|
|
102
|
+
}
|
|
103
|
+
while (continuationToken) {
|
|
104
|
+
result = await this._listByResourceGroupNext(resourceGroupName, continuationToken, options);
|
|
105
|
+
continuationToken = result.nextLink;
|
|
106
|
+
let page = result.value || [];
|
|
107
|
+
setContinuationToken(page, continuationToken);
|
|
108
|
+
yield page;
|
|
109
|
+
}
|
|
129
110
|
}
|
|
130
|
-
listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
for (var _d = true, _e = __asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
135
|
-
_c = _f.value;
|
|
136
|
-
_d = false;
|
|
137
|
-
const page = _c;
|
|
138
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
142
|
-
finally {
|
|
143
|
-
try {
|
|
144
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
145
|
-
}
|
|
146
|
-
finally { if (e_2) throw e_2.error; }
|
|
147
|
-
}
|
|
148
|
-
});
|
|
111
|
+
async *listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
112
|
+
for await (const page of this.listByResourceGroupPagingPage(resourceGroupName, options)) {
|
|
113
|
+
yield* page;
|
|
114
|
+
}
|
|
149
115
|
}
|
|
150
116
|
/**
|
|
151
117
|
* The operation to start an Azure Bare Metal instance
|
|
@@ -159,14 +125,19 @@ export class AzureBareMetalInstancesImpl {
|
|
|
159
125
|
return this.client.sendOperationRequest(args, spec);
|
|
160
126
|
};
|
|
161
127
|
const sendOperationFn = async (args, spec) => {
|
|
162
|
-
var _a;
|
|
163
128
|
let currentRawResponse = undefined;
|
|
164
|
-
const providedCallback =
|
|
129
|
+
const providedCallback = args.options?.onResponse;
|
|
165
130
|
const callback = (rawResponse, flatResponse) => {
|
|
166
131
|
currentRawResponse = rawResponse;
|
|
167
|
-
providedCallback
|
|
132
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
133
|
+
};
|
|
134
|
+
const updatedArgs = {
|
|
135
|
+
...args,
|
|
136
|
+
options: {
|
|
137
|
+
...args.options,
|
|
138
|
+
onResponse: callback
|
|
139
|
+
}
|
|
168
140
|
};
|
|
169
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
170
141
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
171
142
|
return {
|
|
172
143
|
flatResponse,
|
|
@@ -183,8 +154,8 @@ export class AzureBareMetalInstancesImpl {
|
|
|
183
154
|
spec: startOperationSpec
|
|
184
155
|
});
|
|
185
156
|
const poller = await createHttpPoller(lro, {
|
|
186
|
-
restoreFrom: options
|
|
187
|
-
intervalInMs: options
|
|
157
|
+
restoreFrom: options?.resumeFrom,
|
|
158
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
188
159
|
resourceLocationConfig: "location"
|
|
189
160
|
});
|
|
190
161
|
await poller.poll();
|
|
@@ -213,14 +184,19 @@ export class AzureBareMetalInstancesImpl {
|
|
|
213
184
|
return this.client.sendOperationRequest(args, spec);
|
|
214
185
|
};
|
|
215
186
|
const sendOperationFn = async (args, spec) => {
|
|
216
|
-
var _a;
|
|
217
187
|
let currentRawResponse = undefined;
|
|
218
|
-
const providedCallback =
|
|
188
|
+
const providedCallback = args.options?.onResponse;
|
|
219
189
|
const callback = (rawResponse, flatResponse) => {
|
|
220
190
|
currentRawResponse = rawResponse;
|
|
221
|
-
providedCallback
|
|
191
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
192
|
+
};
|
|
193
|
+
const updatedArgs = {
|
|
194
|
+
...args,
|
|
195
|
+
options: {
|
|
196
|
+
...args.options,
|
|
197
|
+
onResponse: callback
|
|
198
|
+
}
|
|
222
199
|
};
|
|
223
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
224
200
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
225
201
|
return {
|
|
226
202
|
flatResponse,
|
|
@@ -237,8 +213,8 @@ export class AzureBareMetalInstancesImpl {
|
|
|
237
213
|
spec: restartOperationSpec
|
|
238
214
|
});
|
|
239
215
|
const poller = await createHttpPoller(lro, {
|
|
240
|
-
restoreFrom: options
|
|
241
|
-
intervalInMs: options
|
|
216
|
+
restoreFrom: options?.resumeFrom,
|
|
217
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
242
218
|
resourceLocationConfig: "location"
|
|
243
219
|
});
|
|
244
220
|
await poller.poll();
|
|
@@ -267,14 +243,19 @@ export class AzureBareMetalInstancesImpl {
|
|
|
267
243
|
return this.client.sendOperationRequest(args, spec);
|
|
268
244
|
};
|
|
269
245
|
const sendOperationFn = async (args, spec) => {
|
|
270
|
-
var _a;
|
|
271
246
|
let currentRawResponse = undefined;
|
|
272
|
-
const providedCallback =
|
|
247
|
+
const providedCallback = args.options?.onResponse;
|
|
273
248
|
const callback = (rawResponse, flatResponse) => {
|
|
274
249
|
currentRawResponse = rawResponse;
|
|
275
|
-
providedCallback
|
|
250
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
251
|
+
};
|
|
252
|
+
const updatedArgs = {
|
|
253
|
+
...args,
|
|
254
|
+
options: {
|
|
255
|
+
...args.options,
|
|
256
|
+
onResponse: callback
|
|
257
|
+
}
|
|
276
258
|
};
|
|
277
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
278
259
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
279
260
|
return {
|
|
280
261
|
flatResponse,
|
|
@@ -291,8 +272,8 @@ export class AzureBareMetalInstancesImpl {
|
|
|
291
272
|
spec: shutdownOperationSpec
|
|
292
273
|
});
|
|
293
274
|
const poller = await createHttpPoller(lro, {
|
|
294
|
-
restoreFrom: options
|
|
295
|
-
intervalInMs: options
|
|
275
|
+
restoreFrom: options?.resumeFrom,
|
|
276
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
296
277
|
resourceLocationConfig: "location"
|
|
297
278
|
});
|
|
298
279
|
await poller.poll();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"azureBareMetalInstances.js","sourceRoot":"","sources":["../../../src/operations/azureBareMetalInstances.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAEtD,OAAO,EAGL,gBAAgB,EACjB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAwB9C,4CAA4C;AAC5C,2DAA2D;AAC3D,MAAM,OAAO,2BAA2B;IAGtC;;;OAGG;IACH,YAAY,MAAqC;QAC/C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACI,kBAAkB,CACvB,OAAiE;QAEjE,MAAM,IAAI,GAAG,IAAI,CAAC,2BAA2B,CAAC,OAAO,CAAC,CAAC;QACvD,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC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AC;AACF,MAAM,mCAAmC,GAA6B;IACpE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,iCAAiC;SACtD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,oCAAoC,GAA6B;IACrE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,iCAAiC;SACtD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { AzureBareMetalInstances } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { BareMetalInfrastructureClient } from \"../bareMetalInfrastructureClient.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n AzureBareMetalInstance,\n AzureBareMetalInstancesListBySubscriptionNextOptionalParams,\n AzureBareMetalInstancesListBySubscriptionOptionalParams,\n AzureBareMetalInstancesListBySubscriptionResponse,\n AzureBareMetalInstancesListByResourceGroupNextOptionalParams,\n AzureBareMetalInstancesListByResourceGroupOptionalParams,\n AzureBareMetalInstancesListByResourceGroupResponse,\n AzureBareMetalInstancesStartOptionalParams,\n AzureBareMetalInstancesStartResponse,\n AzureBareMetalInstancesRestartOptionalParams,\n AzureBareMetalInstancesRestartResponse,\n AzureBareMetalInstancesShutdownOptionalParams,\n AzureBareMetalInstancesShutdownResponse,\n AzureBareMetalInstancesGetOptionalParams,\n AzureBareMetalInstancesGetResponse,\n Tags,\n AzureBareMetalInstancesUpdateOptionalParams,\n AzureBareMetalInstancesUpdateResponse,\n AzureBareMetalInstancesListBySubscriptionNextResponse,\n AzureBareMetalInstancesListByResourceGroupNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing AzureBareMetalInstances operations. */\nexport class AzureBareMetalInstancesImpl implements AzureBareMetalInstances {\n private readonly client: BareMetalInfrastructureClient;\n\n /**\n * Initialize a new instance of the class AzureBareMetalInstances class.\n * @param client Reference to the service client\n */\n constructor(client: BareMetalInfrastructureClient) {\n this.client = client;\n }\n\n /**\n * Returns a list of Azure Bare Metal Instances in the specified subscription. The operations returns\n * various properties of each Azure Bare Metal Instance.\n * @param options The options parameters.\n */\n public listBySubscription(\n options?: AzureBareMetalInstancesListBySubscriptionOptionalParams\n ): PagedAsyncIterableIterator<AzureBareMetalInstance> {\n const iter = this.listBySubscriptionPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listBySubscriptionPagingPage(options, settings);\n }\n };\n }\n\n private async *listBySubscriptionPagingPage(\n options?: AzureBareMetalInstancesListBySubscriptionOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<AzureBareMetalInstance[]> {\n let result: AzureBareMetalInstancesListBySubscriptionResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listBySubscription(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listBySubscriptionNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listBySubscriptionPagingAll(\n options?: AzureBareMetalInstancesListBySubscriptionOptionalParams\n ): AsyncIterableIterator<AzureBareMetalInstance> {\n for await (const page of this.listBySubscriptionPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Gets a list of Azure Bare Metal Instances in the specified subscription and resource group. The\n * operations returns various properties of each Azure Bare Metal Instance.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param options The options parameters.\n */\n public listByResourceGroup(\n resourceGroupName: string,\n options?: AzureBareMetalInstancesListByResourceGroupOptionalParams\n ): PagedAsyncIterableIterator<AzureBareMetalInstance> {\n const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByResourceGroupPagingPage(\n resourceGroupName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listByResourceGroupPagingPage(\n resourceGroupName: string,\n options?: AzureBareMetalInstancesListByResourceGroupOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<AzureBareMetalInstance[]> {\n let result: AzureBareMetalInstancesListByResourceGroupResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByResourceGroup(resourceGroupName, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByResourceGroupNext(\n resourceGroupName,\n continuationToken,\n options\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByResourceGroupPagingAll(\n resourceGroupName: string,\n options?: AzureBareMetalInstancesListByResourceGroupOptionalParams\n ): AsyncIterableIterator<AzureBareMetalInstance> {\n for await (const page of this.listByResourceGroupPagingPage(\n resourceGroupName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * The operation to start an Azure Bare Metal instance\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param azureBareMetalInstanceName Name of the Azure Bare Metal Instance, also known as the\n * ResourceName.\n * @param options The options parameters.\n */\n async beginStart(\n resourceGroupName: string,\n azureBareMetalInstanceName: string,\n options?: AzureBareMetalInstancesStartOptionalParams\n ): Promise<\n SimplePollerLike<\n OperationState<AzureBareMetalInstancesStartResponse>,\n AzureBareMetalInstancesStartResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<AzureBareMetalInstancesStartResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, azureBareMetalInstanceName, options },\n spec: startOperationSpec\n });\n const poller = await createHttpPoller<\n AzureBareMetalInstancesStartResponse,\n OperationState<AzureBareMetalInstancesStartResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\"\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * The operation to start an Azure Bare Metal instance\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param azureBareMetalInstanceName Name of the Azure Bare Metal Instance, also known as the\n * ResourceName.\n * @param options The options parameters.\n */\n async beginStartAndWait(\n resourceGroupName: string,\n azureBareMetalInstanceName: string,\n options?: AzureBareMetalInstancesStartOptionalParams\n ): Promise<AzureBareMetalInstancesStartResponse> {\n const poller = await this.beginStart(\n resourceGroupName,\n azureBareMetalInstanceName,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * The operation to restart an Azure Bare Metal Instance\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param azureBareMetalInstanceName Name of the Azure Bare Metal Instance, also known as the\n * ResourceName.\n * @param options The options parameters.\n */\n async beginRestart(\n resourceGroupName: string,\n azureBareMetalInstanceName: string,\n options?: AzureBareMetalInstancesRestartOptionalParams\n ): Promise<\n SimplePollerLike<\n OperationState<AzureBareMetalInstancesRestartResponse>,\n AzureBareMetalInstancesRestartResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<AzureBareMetalInstancesRestartResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, azureBareMetalInstanceName, options },\n spec: restartOperationSpec\n });\n const poller = await createHttpPoller<\n AzureBareMetalInstancesRestartResponse,\n OperationState<AzureBareMetalInstancesRestartResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\"\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * The operation to restart an Azure Bare Metal Instance\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param azureBareMetalInstanceName Name of the Azure Bare Metal Instance, also known as the\n * ResourceName.\n * @param options The options parameters.\n */\n async beginRestartAndWait(\n resourceGroupName: string,\n azureBareMetalInstanceName: string,\n options?: AzureBareMetalInstancesRestartOptionalParams\n ): Promise<AzureBareMetalInstancesRestartResponse> {\n const poller = await this.beginRestart(\n resourceGroupName,\n azureBareMetalInstanceName,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * The operation to shutdown an Azure Bare Metal Instance\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param azureBareMetalInstanceName Name of the Azure Bare Metal Instance, also known as the\n * ResourceName.\n * @param options The options parameters.\n */\n async beginShutdown(\n resourceGroupName: string,\n azureBareMetalInstanceName: string,\n options?: AzureBareMetalInstancesShutdownOptionalParams\n ): Promise<\n SimplePollerLike<\n OperationState<AzureBareMetalInstancesShutdownResponse>,\n AzureBareMetalInstancesShutdownResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<AzureBareMetalInstancesShutdownResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, azureBareMetalInstanceName, options },\n spec: shutdownOperationSpec\n });\n const poller = await createHttpPoller<\n AzureBareMetalInstancesShutdownResponse,\n OperationState<AzureBareMetalInstancesShutdownResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\"\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * The operation to shutdown an Azure Bare Metal Instance\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param azureBareMetalInstanceName Name of the Azure Bare Metal Instance, also known as the\n * ResourceName.\n * @param options The options parameters.\n */\n async beginShutdownAndWait(\n resourceGroupName: string,\n azureBareMetalInstanceName: string,\n options?: AzureBareMetalInstancesShutdownOptionalParams\n ): Promise<AzureBareMetalInstancesShutdownResponse> {\n const poller = await this.beginShutdown(\n resourceGroupName,\n azureBareMetalInstanceName,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Returns a list of Azure Bare Metal Instances in the specified subscription. The operations returns\n * various properties of each Azure Bare Metal Instance.\n * @param options The options parameters.\n */\n private _listBySubscription(\n options?: AzureBareMetalInstancesListBySubscriptionOptionalParams\n ): Promise<AzureBareMetalInstancesListBySubscriptionResponse> {\n return this.client.sendOperationRequest(\n { options },\n listBySubscriptionOperationSpec\n );\n }\n\n /**\n * Gets a list of Azure Bare Metal Instances in the specified subscription and resource group. The\n * operations returns various properties of each Azure Bare Metal Instance.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param options The options parameters.\n */\n private _listByResourceGroup(\n resourceGroupName: string,\n options?: AzureBareMetalInstancesListByResourceGroupOptionalParams\n ): Promise<AzureBareMetalInstancesListByResourceGroupResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, options },\n listByResourceGroupOperationSpec\n );\n }\n\n /**\n * Gets an Azure Bare Metal Instance for the specified subscription, resource group, and instance name.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param azureBareMetalInstanceName Name of the Azure Bare Metal Instance, also known as the\n * ResourceName.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n azureBareMetalInstanceName: string,\n options?: AzureBareMetalInstancesGetOptionalParams\n ): Promise<AzureBareMetalInstancesGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, azureBareMetalInstanceName, options },\n getOperationSpec\n );\n }\n\n /**\n * Patches the Tags field of a Azure Bare Metal Instance for the specified subscription, resource\n * group, and instance name.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param azureBareMetalInstanceName Name of the Azure Bare Metal Instance, also known as the\n * ResourceName.\n * @param tagsParameter Request body that only contains the new Tags field\n * @param options The options parameters.\n */\n update(\n resourceGroupName: string,\n azureBareMetalInstanceName: string,\n tagsParameter: Tags,\n options?: AzureBareMetalInstancesUpdateOptionalParams\n ): Promise<AzureBareMetalInstancesUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, azureBareMetalInstanceName, tagsParameter, options },\n updateOperationSpec\n );\n }\n\n /**\n * ListBySubscriptionNext\n * @param nextLink The nextLink from the previous successful call to the ListBySubscription method.\n * @param options The options parameters.\n */\n private _listBySubscriptionNext(\n nextLink: string,\n options?: AzureBareMetalInstancesListBySubscriptionNextOptionalParams\n ): Promise<AzureBareMetalInstancesListBySubscriptionNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listBySubscriptionNextOperationSpec\n );\n }\n\n /**\n * ListByResourceGroupNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.\n * @param options The options parameters.\n */\n private _listByResourceGroupNext(\n resourceGroupName: string,\n nextLink: string,\n options?: AzureBareMetalInstancesListByResourceGroupNextOptionalParams\n ): Promise<AzureBareMetalInstancesListByResourceGroupNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, nextLink, options },\n listByResourceGroupNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst startOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BareMetalInfrastructure/bareMetalInstances/{azureBareMetalInstanceName}/start\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationStatus\n },\n 201: {\n bodyMapper: Mappers.OperationStatus\n },\n 202: {\n bodyMapper: Mappers.OperationStatus\n },\n 204: {\n bodyMapper: Mappers.OperationStatus\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.azureBareMetalInstanceName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst restartOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BareMetalInfrastructure/bareMetalInstances/{azureBareMetalInstanceName}/restart\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationStatus\n },\n 201: {\n bodyMapper: Mappers.OperationStatus\n },\n 202: {\n bodyMapper: Mappers.OperationStatus\n },\n 204: {\n bodyMapper: Mappers.OperationStatus\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.forceParameter,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.azureBareMetalInstanceName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst shutdownOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BareMetalInfrastructure/bareMetalInstances/{azureBareMetalInstanceName}/shutdown\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationStatus\n },\n 201: {\n bodyMapper: Mappers.OperationStatus\n },\n 202: {\n bodyMapper: Mappers.OperationStatus\n },\n 204: {\n bodyMapper: Mappers.OperationStatus\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.azureBareMetalInstanceName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listBySubscriptionOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/providers/Microsoft.BareMetalInfrastructure/bareMetalInstances\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AzureBareMetalInstancesListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByResourceGroupOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BareMetalInfrastructure/bareMetalInstances\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AzureBareMetalInstancesListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BareMetalInfrastructure/bareMetalInstances/{azureBareMetalInstanceName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AzureBareMetalInstance\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.azureBareMetalInstanceName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BareMetalInfrastructure/bareMetalInstances/{azureBareMetalInstanceName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.AzureBareMetalInstance\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.tagsParameter,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.azureBareMetalInstanceName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst listBySubscriptionNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AzureBareMetalInstancesListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.nextLink\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AzureBareMetalInstancesListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.nextLink\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
1
|
+
{"version":3,"file":"azureBareMetalInstances.js","sourceRoot":"","sources":["../../../src/operations/azureBareMetalInstances.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAEtD,OAAO,EAGL,gBAAgB,EACjB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAwB9C,4CAA4C;AAC5C,2DAA2D;AAC3D,MAAM,OAAO,2BAA2B;IACrB,MAAM,CAAgC;IAEvD;;;OAGG;IACH,YAAY,MAAqC;QAC/C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACI,kBAAkB,CACvB,OAAiE;QAEjE,MAAM,IAAI,GAAG,IAAI,CAAC,2BAA2B,CAAC,OAAO,CAAC,CAAC;QACvD,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,EAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD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CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { AzureBareMetalInstances } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { BareMetalInfrastructureClient } from \"../bareMetalInfrastructureClient.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n AzureBareMetalInstance,\n AzureBareMetalInstancesListBySubscriptionNextOptionalParams,\n AzureBareMetalInstancesListBySubscriptionOptionalParams,\n AzureBareMetalInstancesListBySubscriptionResponse,\n AzureBareMetalInstancesListByResourceGroupNextOptionalParams,\n AzureBareMetalInstancesListByResourceGroupOptionalParams,\n AzureBareMetalInstancesListByResourceGroupResponse,\n AzureBareMetalInstancesStartOptionalParams,\n AzureBareMetalInstancesStartResponse,\n AzureBareMetalInstancesRestartOptionalParams,\n AzureBareMetalInstancesRestartResponse,\n AzureBareMetalInstancesShutdownOptionalParams,\n AzureBareMetalInstancesShutdownResponse,\n AzureBareMetalInstancesGetOptionalParams,\n AzureBareMetalInstancesGetResponse,\n Tags,\n AzureBareMetalInstancesUpdateOptionalParams,\n AzureBareMetalInstancesUpdateResponse,\n AzureBareMetalInstancesListBySubscriptionNextResponse,\n AzureBareMetalInstancesListByResourceGroupNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing AzureBareMetalInstances operations. */\nexport class AzureBareMetalInstancesImpl implements AzureBareMetalInstances {\n private readonly client: BareMetalInfrastructureClient;\n\n /**\n * Initialize a new instance of the class AzureBareMetalInstances class.\n * @param client Reference to the service client\n */\n constructor(client: BareMetalInfrastructureClient) {\n this.client = client;\n }\n\n /**\n * Returns a list of Azure Bare Metal Instances in the specified subscription. The operations returns\n * various properties of each Azure Bare Metal Instance.\n * @param options The options parameters.\n */\n public listBySubscription(\n options?: AzureBareMetalInstancesListBySubscriptionOptionalParams\n ): PagedAsyncIterableIterator<AzureBareMetalInstance> {\n const iter = this.listBySubscriptionPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listBySubscriptionPagingPage(options, settings);\n }\n };\n }\n\n private async *listBySubscriptionPagingPage(\n options?: AzureBareMetalInstancesListBySubscriptionOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<AzureBareMetalInstance[]> {\n let result: AzureBareMetalInstancesListBySubscriptionResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listBySubscription(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listBySubscriptionNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listBySubscriptionPagingAll(\n options?: AzureBareMetalInstancesListBySubscriptionOptionalParams\n ): AsyncIterableIterator<AzureBareMetalInstance> {\n for await (const page of this.listBySubscriptionPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Gets a list of Azure Bare Metal Instances in the specified subscription and resource group. The\n * operations returns various properties of each Azure Bare Metal Instance.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param options The options parameters.\n */\n public listByResourceGroup(\n resourceGroupName: string,\n options?: AzureBareMetalInstancesListByResourceGroupOptionalParams\n ): PagedAsyncIterableIterator<AzureBareMetalInstance> {\n const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByResourceGroupPagingPage(\n resourceGroupName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listByResourceGroupPagingPage(\n resourceGroupName: string,\n options?: AzureBareMetalInstancesListByResourceGroupOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<AzureBareMetalInstance[]> {\n let result: AzureBareMetalInstancesListByResourceGroupResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByResourceGroup(resourceGroupName, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByResourceGroupNext(\n resourceGroupName,\n continuationToken,\n options\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByResourceGroupPagingAll(\n resourceGroupName: string,\n options?: AzureBareMetalInstancesListByResourceGroupOptionalParams\n ): AsyncIterableIterator<AzureBareMetalInstance> {\n for await (const page of this.listByResourceGroupPagingPage(\n resourceGroupName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * The operation to start an Azure Bare Metal instance\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param azureBareMetalInstanceName Name of the Azure Bare Metal Instance, also known as the\n * ResourceName.\n * @param options The options parameters.\n */\n async beginStart(\n resourceGroupName: string,\n azureBareMetalInstanceName: string,\n options?: AzureBareMetalInstancesStartOptionalParams\n ): Promise<\n SimplePollerLike<\n OperationState<AzureBareMetalInstancesStartResponse>,\n AzureBareMetalInstancesStartResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<AzureBareMetalInstancesStartResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, azureBareMetalInstanceName, options },\n spec: startOperationSpec\n });\n const poller = await createHttpPoller<\n AzureBareMetalInstancesStartResponse,\n OperationState<AzureBareMetalInstancesStartResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\"\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * The operation to start an Azure Bare Metal instance\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param azureBareMetalInstanceName Name of the Azure Bare Metal Instance, also known as the\n * ResourceName.\n * @param options The options parameters.\n */\n async beginStartAndWait(\n resourceGroupName: string,\n azureBareMetalInstanceName: string,\n options?: AzureBareMetalInstancesStartOptionalParams\n ): Promise<AzureBareMetalInstancesStartResponse> {\n const poller = await this.beginStart(\n resourceGroupName,\n azureBareMetalInstanceName,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * The operation to restart an Azure Bare Metal Instance\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param azureBareMetalInstanceName Name of the Azure Bare Metal Instance, also known as the\n * ResourceName.\n * @param options The options parameters.\n */\n async beginRestart(\n resourceGroupName: string,\n azureBareMetalInstanceName: string,\n options?: AzureBareMetalInstancesRestartOptionalParams\n ): Promise<\n SimplePollerLike<\n OperationState<AzureBareMetalInstancesRestartResponse>,\n AzureBareMetalInstancesRestartResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<AzureBareMetalInstancesRestartResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, azureBareMetalInstanceName, options },\n spec: restartOperationSpec\n });\n const poller = await createHttpPoller<\n AzureBareMetalInstancesRestartResponse,\n OperationState<AzureBareMetalInstancesRestartResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\"\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * The operation to restart an Azure Bare Metal Instance\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param azureBareMetalInstanceName Name of the Azure Bare Metal Instance, also known as the\n * ResourceName.\n * @param options The options parameters.\n */\n async beginRestartAndWait(\n resourceGroupName: string,\n azureBareMetalInstanceName: string,\n options?: AzureBareMetalInstancesRestartOptionalParams\n ): Promise<AzureBareMetalInstancesRestartResponse> {\n const poller = await this.beginRestart(\n resourceGroupName,\n azureBareMetalInstanceName,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * The operation to shutdown an Azure Bare Metal Instance\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param azureBareMetalInstanceName Name of the Azure Bare Metal Instance, also known as the\n * ResourceName.\n * @param options The options parameters.\n */\n async beginShutdown(\n resourceGroupName: string,\n azureBareMetalInstanceName: string,\n options?: AzureBareMetalInstancesShutdownOptionalParams\n ): Promise<\n SimplePollerLike<\n OperationState<AzureBareMetalInstancesShutdownResponse>,\n AzureBareMetalInstancesShutdownResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<AzureBareMetalInstancesShutdownResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, azureBareMetalInstanceName, options },\n spec: shutdownOperationSpec\n });\n const poller = await createHttpPoller<\n AzureBareMetalInstancesShutdownResponse,\n OperationState<AzureBareMetalInstancesShutdownResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\"\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * The operation to shutdown an Azure Bare Metal Instance\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param azureBareMetalInstanceName Name of the Azure Bare Metal Instance, also known as the\n * ResourceName.\n * @param options The options parameters.\n */\n async beginShutdownAndWait(\n resourceGroupName: string,\n azureBareMetalInstanceName: string,\n options?: AzureBareMetalInstancesShutdownOptionalParams\n ): Promise<AzureBareMetalInstancesShutdownResponse> {\n const poller = await this.beginShutdown(\n resourceGroupName,\n azureBareMetalInstanceName,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Returns a list of Azure Bare Metal Instances in the specified subscription. The operations returns\n * various properties of each Azure Bare Metal Instance.\n * @param options The options parameters.\n */\n private _listBySubscription(\n options?: AzureBareMetalInstancesListBySubscriptionOptionalParams\n ): Promise<AzureBareMetalInstancesListBySubscriptionResponse> {\n return this.client.sendOperationRequest(\n { options },\n listBySubscriptionOperationSpec\n );\n }\n\n /**\n * Gets a list of Azure Bare Metal Instances in the specified subscription and resource group. The\n * operations returns various properties of each Azure Bare Metal Instance.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param options The options parameters.\n */\n private _listByResourceGroup(\n resourceGroupName: string,\n options?: AzureBareMetalInstancesListByResourceGroupOptionalParams\n ): Promise<AzureBareMetalInstancesListByResourceGroupResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, options },\n listByResourceGroupOperationSpec\n );\n }\n\n /**\n * Gets an Azure Bare Metal Instance for the specified subscription, resource group, and instance name.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param azureBareMetalInstanceName Name of the Azure Bare Metal Instance, also known as the\n * ResourceName.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n azureBareMetalInstanceName: string,\n options?: AzureBareMetalInstancesGetOptionalParams\n ): Promise<AzureBareMetalInstancesGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, azureBareMetalInstanceName, options },\n getOperationSpec\n );\n }\n\n /**\n * Patches the Tags field of a Azure Bare Metal Instance for the specified subscription, resource\n * group, and instance name.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param azureBareMetalInstanceName Name of the Azure Bare Metal Instance, also known as the\n * ResourceName.\n * @param tagsParameter Request body that only contains the new Tags field\n * @param options The options parameters.\n */\n update(\n resourceGroupName: string,\n azureBareMetalInstanceName: string,\n tagsParameter: Tags,\n options?: AzureBareMetalInstancesUpdateOptionalParams\n ): Promise<AzureBareMetalInstancesUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, azureBareMetalInstanceName, tagsParameter, options },\n updateOperationSpec\n );\n }\n\n /**\n * ListBySubscriptionNext\n * @param nextLink The nextLink from the previous successful call to the ListBySubscription method.\n * @param options The options parameters.\n */\n private _listBySubscriptionNext(\n nextLink: string,\n options?: AzureBareMetalInstancesListBySubscriptionNextOptionalParams\n ): Promise<AzureBareMetalInstancesListBySubscriptionNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listBySubscriptionNextOperationSpec\n );\n }\n\n /**\n * ListByResourceGroupNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.\n * @param options The options parameters.\n */\n private _listByResourceGroupNext(\n resourceGroupName: string,\n nextLink: string,\n options?: AzureBareMetalInstancesListByResourceGroupNextOptionalParams\n ): Promise<AzureBareMetalInstancesListByResourceGroupNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, nextLink, options },\n listByResourceGroupNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst startOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BareMetalInfrastructure/bareMetalInstances/{azureBareMetalInstanceName}/start\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationStatus\n },\n 201: {\n bodyMapper: Mappers.OperationStatus\n },\n 202: {\n bodyMapper: Mappers.OperationStatus\n },\n 204: {\n bodyMapper: Mappers.OperationStatus\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.azureBareMetalInstanceName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst restartOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BareMetalInfrastructure/bareMetalInstances/{azureBareMetalInstanceName}/restart\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationStatus\n },\n 201: {\n bodyMapper: Mappers.OperationStatus\n },\n 202: {\n bodyMapper: Mappers.OperationStatus\n },\n 204: {\n bodyMapper: Mappers.OperationStatus\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.forceParameter,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.azureBareMetalInstanceName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst shutdownOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BareMetalInfrastructure/bareMetalInstances/{azureBareMetalInstanceName}/shutdown\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationStatus\n },\n 201: {\n bodyMapper: Mappers.OperationStatus\n },\n 202: {\n bodyMapper: Mappers.OperationStatus\n },\n 204: {\n bodyMapper: Mappers.OperationStatus\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.azureBareMetalInstanceName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listBySubscriptionOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/providers/Microsoft.BareMetalInfrastructure/bareMetalInstances\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AzureBareMetalInstancesListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByResourceGroupOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BareMetalInfrastructure/bareMetalInstances\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AzureBareMetalInstancesListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BareMetalInfrastructure/bareMetalInstances/{azureBareMetalInstanceName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AzureBareMetalInstance\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.azureBareMetalInstanceName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BareMetalInfrastructure/bareMetalInstances/{azureBareMetalInstanceName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.AzureBareMetalInstance\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.tagsParameter,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.azureBareMetalInstanceName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst listBySubscriptionNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AzureBareMetalInstancesListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.nextLink\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AzureBareMetalInstancesListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.nextLink\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
|
-
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
|
9
8
|
import { setContinuationToken } from "../pagingHelper.js";
|
|
10
9
|
import * as coreClient from "@azure/core-client";
|
|
11
10
|
import * as Mappers from "../models/mappers.js";
|
|
@@ -13,6 +12,7 @@ import * as Parameters from "../models/parameters.js";
|
|
|
13
12
|
/// <reference lib="esnext.asynciterable" />
|
|
14
13
|
/** Class containing AzureBareMetalStorageInstances operations. */
|
|
15
14
|
export class AzureBareMetalStorageInstancesImpl {
|
|
15
|
+
client;
|
|
16
16
|
/**
|
|
17
17
|
* Initialize a new instance of the class AzureBareMetalStorageInstances class.
|
|
18
18
|
* @param client Reference to the service client
|
|
@@ -35,52 +35,35 @@ export class AzureBareMetalStorageInstancesImpl {
|
|
|
35
35
|
return this;
|
|
36
36
|
},
|
|
37
37
|
byPage: (settings) => {
|
|
38
|
-
if (settings
|
|
38
|
+
if (settings?.maxPageSize) {
|
|
39
39
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
40
40
|
}
|
|
41
41
|
return this.listBySubscriptionPagingPage(options, settings);
|
|
42
42
|
}
|
|
43
43
|
};
|
|
44
44
|
}
|
|
45
|
-
listBySubscriptionPagingPage(options, settings) {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
}
|
|
63
|
-
});
|
|
45
|
+
async *listBySubscriptionPagingPage(options, settings) {
|
|
46
|
+
let result;
|
|
47
|
+
let continuationToken = settings?.continuationToken;
|
|
48
|
+
if (!continuationToken) {
|
|
49
|
+
result = await this._listBySubscription(options);
|
|
50
|
+
let page = result.value || [];
|
|
51
|
+
continuationToken = result.nextLink;
|
|
52
|
+
setContinuationToken(page, continuationToken);
|
|
53
|
+
yield page;
|
|
54
|
+
}
|
|
55
|
+
while (continuationToken) {
|
|
56
|
+
result = await this._listBySubscriptionNext(continuationToken, options);
|
|
57
|
+
continuationToken = result.nextLink;
|
|
58
|
+
let page = result.value || [];
|
|
59
|
+
setContinuationToken(page, continuationToken);
|
|
60
|
+
yield page;
|
|
61
|
+
}
|
|
64
62
|
}
|
|
65
|
-
listBySubscriptionPagingAll(options) {
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
for (var _d = true, _e = __asyncValues(this.listBySubscriptionPagingPage(options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
70
|
-
_c = _f.value;
|
|
71
|
-
_d = false;
|
|
72
|
-
const page = _c;
|
|
73
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
77
|
-
finally {
|
|
78
|
-
try {
|
|
79
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
80
|
-
}
|
|
81
|
-
finally { if (e_1) throw e_1.error; }
|
|
82
|
-
}
|
|
83
|
-
});
|
|
63
|
+
async *listBySubscriptionPagingAll(options) {
|
|
64
|
+
for await (const page of this.listBySubscriptionPagingPage(options)) {
|
|
65
|
+
yield* page;
|
|
66
|
+
}
|
|
84
67
|
}
|
|
85
68
|
/**
|
|
86
69
|
* Gets a list of AzureBareMetalStorage instances in the specified subscription and resource group. The
|
|
@@ -98,52 +81,35 @@ export class AzureBareMetalStorageInstancesImpl {
|
|
|
98
81
|
return this;
|
|
99
82
|
},
|
|
100
83
|
byPage: (settings) => {
|
|
101
|
-
if (settings
|
|
84
|
+
if (settings?.maxPageSize) {
|
|
102
85
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
103
86
|
}
|
|
104
87
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
105
88
|
}
|
|
106
89
|
};
|
|
107
90
|
}
|
|
108
|
-
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
}
|
|
126
|
-
});
|
|
91
|
+
async *listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
92
|
+
let result;
|
|
93
|
+
let continuationToken = settings?.continuationToken;
|
|
94
|
+
if (!continuationToken) {
|
|
95
|
+
result = await this._listByResourceGroup(resourceGroupName, options);
|
|
96
|
+
let page = result.value || [];
|
|
97
|
+
continuationToken = result.nextLink;
|
|
98
|
+
setContinuationToken(page, continuationToken);
|
|
99
|
+
yield page;
|
|
100
|
+
}
|
|
101
|
+
while (continuationToken) {
|
|
102
|
+
result = await this._listByResourceGroupNext(resourceGroupName, continuationToken, options);
|
|
103
|
+
continuationToken = result.nextLink;
|
|
104
|
+
let page = result.value || [];
|
|
105
|
+
setContinuationToken(page, continuationToken);
|
|
106
|
+
yield page;
|
|
107
|
+
}
|
|
127
108
|
}
|
|
128
|
-
listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
for (var _d = true, _e = __asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
133
|
-
_c = _f.value;
|
|
134
|
-
_d = false;
|
|
135
|
-
const page = _c;
|
|
136
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
140
|
-
finally {
|
|
141
|
-
try {
|
|
142
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
143
|
-
}
|
|
144
|
-
finally { if (e_2) throw e_2.error; }
|
|
145
|
-
}
|
|
146
|
-
});
|
|
109
|
+
async *listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
110
|
+
for await (const page of this.listByResourceGroupPagingPage(resourceGroupName, options)) {
|
|
111
|
+
yield* page;
|
|
112
|
+
}
|
|
147
113
|
}
|
|
148
114
|
/**
|
|
149
115
|
* Gets a list of AzureBareMetalStorage instances in the specified subscription. The operations returns
|