@azure/arm-baremetalinfrastructure 1.0.0-beta.1 → 1.0.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +71 -0
- package/README.md +2 -2
- package/dist/index.js +1234 -194
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/samples-dev/azureBareMetalInstancesGetSample.js +3 -3
- package/dist-esm/samples-dev/azureBareMetalInstancesListByResourceGroupSample.js +6 -11
- package/dist-esm/samples-dev/azureBareMetalInstancesListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/azureBareMetalInstancesListBySubscriptionSample.js +6 -11
- package/dist-esm/samples-dev/azureBareMetalInstancesListBySubscriptionSample.js.map +1 -1
- package/dist-esm/samples-dev/azureBareMetalInstancesRestartSample.d.ts +2 -0
- package/dist-esm/samples-dev/azureBareMetalInstancesRestartSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/azureBareMetalInstancesRestartSample.js +39 -0
- package/dist-esm/samples-dev/azureBareMetalInstancesRestartSample.js.map +1 -0
- package/dist-esm/samples-dev/azureBareMetalInstancesShutdownSample.d.ts +2 -0
- package/dist-esm/samples-dev/azureBareMetalInstancesShutdownSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/azureBareMetalInstancesShutdownSample.js +39 -0
- package/dist-esm/samples-dev/azureBareMetalInstancesShutdownSample.js.map +1 -0
- package/dist-esm/samples-dev/azureBareMetalInstancesStartSample.d.ts +2 -0
- package/dist-esm/samples-dev/azureBareMetalInstancesStartSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/azureBareMetalInstancesStartSample.js +39 -0
- package/dist-esm/samples-dev/azureBareMetalInstancesStartSample.js.map +1 -0
- package/dist-esm/samples-dev/azureBareMetalInstancesUpdateSample.js +6 -6
- package/dist-esm/samples-dev/azureBareMetalStorageInstancesCreateSample.d.ts +2 -0
- package/dist-esm/samples-dev/azureBareMetalStorageInstancesCreateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/azureBareMetalStorageInstancesCreateSample.js +56 -0
- package/dist-esm/samples-dev/azureBareMetalStorageInstancesCreateSample.js.map +1 -0
- package/dist-esm/samples-dev/azureBareMetalStorageInstancesDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/azureBareMetalStorageInstancesDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/azureBareMetalStorageInstancesDeleteSample.js +39 -0
- package/dist-esm/samples-dev/azureBareMetalStorageInstancesDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/azureBareMetalStorageInstancesGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/azureBareMetalStorageInstancesGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/azureBareMetalStorageInstancesGetSample.js +39 -0
- package/dist-esm/samples-dev/azureBareMetalStorageInstancesGetSample.js.map +1 -0
- package/dist-esm/samples-dev/azureBareMetalStorageInstancesListByResourceGroupSample.d.ts +2 -0
- package/dist-esm/samples-dev/azureBareMetalStorageInstancesListByResourceGroupSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/azureBareMetalStorageInstancesListByResourceGroupSample.js +54 -0
- package/dist-esm/samples-dev/azureBareMetalStorageInstancesListByResourceGroupSample.js.map +1 -0
- package/dist-esm/samples-dev/azureBareMetalStorageInstancesListBySubscriptionSample.d.ts +2 -0
- package/dist-esm/samples-dev/azureBareMetalStorageInstancesListBySubscriptionSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/azureBareMetalStorageInstancesListBySubscriptionSample.js +53 -0
- package/dist-esm/samples-dev/azureBareMetalStorageInstancesListBySubscriptionSample.js.map +1 -0
- package/dist-esm/samples-dev/azureBareMetalStorageInstancesUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/azureBareMetalStorageInstancesUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/azureBareMetalStorageInstancesUpdateSample.js +60 -0
- package/dist-esm/samples-dev/azureBareMetalStorageInstancesUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/operationsListSample.js +4 -9
- package/dist-esm/samples-dev/operationsListSample.js.map +1 -1
- package/dist-esm/src/bareMetalInfrastructureClient.d.ts +3 -2
- package/dist-esm/src/bareMetalInfrastructureClient.d.ts.map +1 -1
- package/dist-esm/src/bareMetalInfrastructureClient.js +5 -4
- package/dist-esm/src/bareMetalInfrastructureClient.js.map +1 -1
- package/dist-esm/src/lroImpl.d.ts +11 -0
- package/dist-esm/src/lroImpl.d.ts.map +1 -0
- package/dist-esm/src/lroImpl.js +21 -0
- package/dist-esm/src/lroImpl.js.map +1 -0
- package/dist-esm/src/models/index.d.ts +370 -81
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +60 -0
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +17 -7
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +372 -96
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.d.ts +3 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -1
- package/dist-esm/src/models/parameters.js +27 -6
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/operations/azureBareMetalInstances.d.ts +65 -14
- package/dist-esm/src/operations/azureBareMetalInstances.d.ts.map +1 -1
- package/dist-esm/src/operations/azureBareMetalInstances.js +290 -30
- package/dist-esm/src/operations/azureBareMetalInstances.js.map +1 -1
- package/dist-esm/src/operations/azureBareMetalStorageInstances.d.ts +93 -0
- package/dist-esm/src/operations/azureBareMetalStorageInstances.d.ts.map +1 -0
- package/dist-esm/src/operations/azureBareMetalStorageInstances.js +404 -0
- package/dist-esm/src/operations/azureBareMetalStorageInstances.js.map +1 -0
- package/dist-esm/src/operations/index.d.ts +1 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -1
- package/dist-esm/src/operations/index.js +1 -0
- package/dist-esm/src/operations/index.js.map +1 -1
- package/dist-esm/src/operations/operations.js +4 -9
- package/dist-esm/src/operations/operations.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/azureBareMetalInstances.d.ts +61 -10
- package/dist-esm/src/operationsInterfaces/azureBareMetalInstances.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/azureBareMetalStorageInstances.d.ts +55 -0
- package/dist-esm/src/operationsInterfaces/azureBareMetalStorageInstances.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/azureBareMetalStorageInstances.js +9 -0
- package/dist-esm/src/operationsInterfaces/azureBareMetalStorageInstances.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/index.js +1 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
- package/dist-esm/test/baremetalinfrastructure_operations_test.spec.js +7 -9
- package/dist-esm/test/baremetalinfrastructure_operations_test.spec.js.map +1 -1
- package/package.json +17 -19
- package/review/arm-baremetalinfrastructure.api.md +244 -19
- package/src/bareMetalInfrastructureClient.ts +17 -5
- package/src/lroImpl.ts +42 -0
- package/src/models/index.ts +417 -84
- package/src/models/mappers.ts +388 -98
- package/src/models/parameters.ts +34 -6
- package/src/operations/azureBareMetalInstances.ts +401 -13
- package/src/operations/azureBareMetalStorageInstances.ts +498 -0
- package/src/operations/index.ts +1 -0
- package/src/operations/operations.ts +1 -1
- package/src/operationsInterfaces/azureBareMetalInstances.ts +105 -9
- package/src/operationsInterfaces/azureBareMetalStorageInstances.ts +99 -0
- package/src/operationsInterfaces/index.ts +1 -0
- package/types/arm-baremetalinfrastructure.d.ts +516 -80
- package/types/tsdoc-metadata.json +1 -1
- package/rollup.config.js +0 -122
package/dist/index.js
CHANGED
|
@@ -5,9 +5,9 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var tslib = require('tslib');
|
|
6
6
|
var coreClient = require('@azure/core-client');
|
|
7
7
|
var coreRestPipeline = require('@azure/core-rest-pipeline');
|
|
8
|
+
var coreLro = require('@azure/core-lro');
|
|
8
9
|
|
|
9
|
-
function
|
|
10
|
-
if (e && e.__esModule) return e;
|
|
10
|
+
function _interopNamespaceDefault(e) {
|
|
11
11
|
var n = Object.create(null);
|
|
12
12
|
if (e) {
|
|
13
13
|
Object.keys(e).forEach(function (k) {
|
|
@@ -20,12 +20,12 @@ function _interopNamespace(e) {
|
|
|
20
20
|
}
|
|
21
21
|
});
|
|
22
22
|
}
|
|
23
|
-
n
|
|
23
|
+
n.default = e;
|
|
24
24
|
return Object.freeze(n);
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
var coreClient__namespace = /*#__PURE__*/
|
|
28
|
-
var coreRestPipeline__namespace = /*#__PURE__*/
|
|
27
|
+
var coreClient__namespace = /*#__PURE__*/_interopNamespaceDefault(coreClient);
|
|
28
|
+
var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespaceDefault(coreRestPipeline);
|
|
29
29
|
|
|
30
30
|
/*
|
|
31
31
|
* Copyright (c) Microsoft Corporation.
|
|
@@ -66,6 +66,26 @@ function setContinuationToken(page, continuationToken) {
|
|
|
66
66
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
67
67
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
68
68
|
*/
|
|
69
|
+
/** Known values of {@link AsyncOperationStatus} that the service accepts. */
|
|
70
|
+
exports.KnownAsyncOperationStatus = void 0;
|
|
71
|
+
(function (KnownAsyncOperationStatus) {
|
|
72
|
+
/** Requesting */
|
|
73
|
+
KnownAsyncOperationStatus["Requesting"] = "Requesting";
|
|
74
|
+
/** Executing */
|
|
75
|
+
KnownAsyncOperationStatus["Executing"] = "Executing";
|
|
76
|
+
/** Succeeded */
|
|
77
|
+
KnownAsyncOperationStatus["Succeeded"] = "Succeeded";
|
|
78
|
+
/** Failed */
|
|
79
|
+
KnownAsyncOperationStatus["Failed"] = "Failed";
|
|
80
|
+
})(exports.KnownAsyncOperationStatus || (exports.KnownAsyncOperationStatus = {}));
|
|
81
|
+
/** Known values of {@link AzureBareMetalInstanceForcePowerState} that the service accepts. */
|
|
82
|
+
exports.KnownAzureBareMetalInstanceForcePowerState = void 0;
|
|
83
|
+
(function (KnownAzureBareMetalInstanceForcePowerState) {
|
|
84
|
+
/** Active */
|
|
85
|
+
KnownAzureBareMetalInstanceForcePowerState["Active"] = "active";
|
|
86
|
+
/** Inactive */
|
|
87
|
+
KnownAzureBareMetalInstanceForcePowerState["Inactive"] = "inactive";
|
|
88
|
+
})(exports.KnownAzureBareMetalInstanceForcePowerState || (exports.KnownAzureBareMetalInstanceForcePowerState = {}));
|
|
69
89
|
/** Known values of {@link AzureBareMetalHardwareTypeNamesEnum} that the service accepts. */
|
|
70
90
|
exports.KnownAzureBareMetalHardwareTypeNamesEnum = void 0;
|
|
71
91
|
(function (KnownAzureBareMetalHardwareTypeNamesEnum) {
|
|
@@ -73,6 +93,8 @@ exports.KnownAzureBareMetalHardwareTypeNamesEnum = void 0;
|
|
|
73
93
|
KnownAzureBareMetalHardwareTypeNamesEnum["CiscoUCS"] = "Cisco_UCS";
|
|
74
94
|
/** HPE */
|
|
75
95
|
KnownAzureBareMetalHardwareTypeNamesEnum["HPE"] = "HPE";
|
|
96
|
+
/** Sdflex */
|
|
97
|
+
KnownAzureBareMetalHardwareTypeNamesEnum["Sdflex"] = "SDFLEX";
|
|
76
98
|
})(exports.KnownAzureBareMetalHardwareTypeNamesEnum || (exports.KnownAzureBareMetalHardwareTypeNamesEnum = {}));
|
|
77
99
|
/** Known values of {@link AzureBareMetalInstanceSizeNamesEnum} that the service accepts. */
|
|
78
100
|
exports.KnownAzureBareMetalInstanceSizeNamesEnum = void 0;
|
|
@@ -127,6 +149,8 @@ exports.KnownAzureBareMetalInstanceSizeNamesEnum = void 0;
|
|
|
127
149
|
KnownAzureBareMetalInstanceSizeNamesEnum["S448Oom"] = "S448oom";
|
|
128
150
|
/** S448Ooo */
|
|
129
151
|
KnownAzureBareMetalInstanceSizeNamesEnum["S448Ooo"] = "S448ooo";
|
|
152
|
+
/** S448Se */
|
|
153
|
+
KnownAzureBareMetalInstanceSizeNamesEnum["S448Se"] = "S448se";
|
|
130
154
|
/** S576M */
|
|
131
155
|
KnownAzureBareMetalInstanceSizeNamesEnum["S576M"] = "S576m";
|
|
132
156
|
/** S576Xm */
|
|
@@ -210,6 +234,42 @@ exports.KnownCreatedByType = void 0;
|
|
|
210
234
|
/** Key */
|
|
211
235
|
KnownCreatedByType["Key"] = "Key";
|
|
212
236
|
})(exports.KnownCreatedByType || (exports.KnownCreatedByType = {}));
|
|
237
|
+
/** Known values of {@link Origin} that the service accepts. */
|
|
238
|
+
exports.KnownOrigin = void 0;
|
|
239
|
+
(function (KnownOrigin) {
|
|
240
|
+
/** User */
|
|
241
|
+
KnownOrigin["User"] = "user";
|
|
242
|
+
/** System */
|
|
243
|
+
KnownOrigin["System"] = "system";
|
|
244
|
+
/** UserSystem */
|
|
245
|
+
KnownOrigin["UserSystem"] = "user,system";
|
|
246
|
+
})(exports.KnownOrigin || (exports.KnownOrigin = {}));
|
|
247
|
+
/** Known values of {@link ActionType} that the service accepts. */
|
|
248
|
+
exports.KnownActionType = void 0;
|
|
249
|
+
(function (KnownActionType) {
|
|
250
|
+
/** Internal */
|
|
251
|
+
KnownActionType["Internal"] = "Internal";
|
|
252
|
+
})(exports.KnownActionType || (exports.KnownActionType = {}));
|
|
253
|
+
/** Known values of {@link ProvisioningState} that the service accepts. */
|
|
254
|
+
exports.KnownProvisioningState = void 0;
|
|
255
|
+
(function (KnownProvisioningState) {
|
|
256
|
+
/** Accepted */
|
|
257
|
+
KnownProvisioningState["Accepted"] = "Accepted";
|
|
258
|
+
/** Creating */
|
|
259
|
+
KnownProvisioningState["Creating"] = "Creating";
|
|
260
|
+
/** Updating */
|
|
261
|
+
KnownProvisioningState["Updating"] = "Updating";
|
|
262
|
+
/** Failed */
|
|
263
|
+
KnownProvisioningState["Failed"] = "Failed";
|
|
264
|
+
/** Succeeded */
|
|
265
|
+
KnownProvisioningState["Succeeded"] = "Succeeded";
|
|
266
|
+
/** Deleting */
|
|
267
|
+
KnownProvisioningState["Deleting"] = "Deleting";
|
|
268
|
+
/** Canceled */
|
|
269
|
+
KnownProvisioningState["Canceled"] = "Canceled";
|
|
270
|
+
/** Migrating */
|
|
271
|
+
KnownProvisioningState["Migrating"] = "Migrating";
|
|
272
|
+
})(exports.KnownProvisioningState || (exports.KnownProvisioningState = {}));
|
|
213
273
|
|
|
214
274
|
/*
|
|
215
275
|
* Copyright (c) Microsoft Corporation.
|
|
@@ -218,6 +278,166 @@ exports.KnownCreatedByType = void 0;
|
|
|
218
278
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
219
279
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
220
280
|
*/
|
|
281
|
+
const OperationStatus = {
|
|
282
|
+
type: {
|
|
283
|
+
name: "Composite",
|
|
284
|
+
className: "OperationStatus",
|
|
285
|
+
modelProperties: {
|
|
286
|
+
name: {
|
|
287
|
+
serializedName: "name",
|
|
288
|
+
type: {
|
|
289
|
+
name: "String"
|
|
290
|
+
}
|
|
291
|
+
},
|
|
292
|
+
status: {
|
|
293
|
+
serializedName: "status",
|
|
294
|
+
type: {
|
|
295
|
+
name: "String"
|
|
296
|
+
}
|
|
297
|
+
},
|
|
298
|
+
startTime: {
|
|
299
|
+
serializedName: "startTime",
|
|
300
|
+
type: {
|
|
301
|
+
name: "String"
|
|
302
|
+
}
|
|
303
|
+
},
|
|
304
|
+
error: {
|
|
305
|
+
serializedName: "error",
|
|
306
|
+
type: {
|
|
307
|
+
name: "Composite",
|
|
308
|
+
className: "OperationStatusError"
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
};
|
|
314
|
+
const OperationStatusError = {
|
|
315
|
+
type: {
|
|
316
|
+
name: "Composite",
|
|
317
|
+
className: "OperationStatusError",
|
|
318
|
+
modelProperties: {
|
|
319
|
+
code: {
|
|
320
|
+
serializedName: "code",
|
|
321
|
+
type: {
|
|
322
|
+
name: "String"
|
|
323
|
+
}
|
|
324
|
+
},
|
|
325
|
+
message: {
|
|
326
|
+
serializedName: "message",
|
|
327
|
+
type: {
|
|
328
|
+
name: "String"
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
};
|
|
334
|
+
const ErrorResponse = {
|
|
335
|
+
type: {
|
|
336
|
+
name: "Composite",
|
|
337
|
+
className: "ErrorResponse",
|
|
338
|
+
modelProperties: {
|
|
339
|
+
error: {
|
|
340
|
+
serializedName: "error",
|
|
341
|
+
type: {
|
|
342
|
+
name: "Composite",
|
|
343
|
+
className: "ErrorDetail"
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
};
|
|
349
|
+
const ErrorDetail = {
|
|
350
|
+
type: {
|
|
351
|
+
name: "Composite",
|
|
352
|
+
className: "ErrorDetail",
|
|
353
|
+
modelProperties: {
|
|
354
|
+
code: {
|
|
355
|
+
serializedName: "code",
|
|
356
|
+
readOnly: true,
|
|
357
|
+
type: {
|
|
358
|
+
name: "String"
|
|
359
|
+
}
|
|
360
|
+
},
|
|
361
|
+
message: {
|
|
362
|
+
serializedName: "message",
|
|
363
|
+
readOnly: true,
|
|
364
|
+
type: {
|
|
365
|
+
name: "String"
|
|
366
|
+
}
|
|
367
|
+
},
|
|
368
|
+
target: {
|
|
369
|
+
serializedName: "target",
|
|
370
|
+
readOnly: true,
|
|
371
|
+
type: {
|
|
372
|
+
name: "String"
|
|
373
|
+
}
|
|
374
|
+
},
|
|
375
|
+
details: {
|
|
376
|
+
serializedName: "details",
|
|
377
|
+
readOnly: true,
|
|
378
|
+
type: {
|
|
379
|
+
name: "Sequence",
|
|
380
|
+
element: {
|
|
381
|
+
type: {
|
|
382
|
+
name: "Composite",
|
|
383
|
+
className: "ErrorDetail"
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
},
|
|
388
|
+
additionalInfo: {
|
|
389
|
+
serializedName: "additionalInfo",
|
|
390
|
+
readOnly: true,
|
|
391
|
+
type: {
|
|
392
|
+
name: "Sequence",
|
|
393
|
+
element: {
|
|
394
|
+
type: {
|
|
395
|
+
name: "Composite",
|
|
396
|
+
className: "ErrorAdditionalInfo"
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
};
|
|
404
|
+
const ErrorAdditionalInfo = {
|
|
405
|
+
type: {
|
|
406
|
+
name: "Composite",
|
|
407
|
+
className: "ErrorAdditionalInfo",
|
|
408
|
+
modelProperties: {
|
|
409
|
+
type: {
|
|
410
|
+
serializedName: "type",
|
|
411
|
+
readOnly: true,
|
|
412
|
+
type: {
|
|
413
|
+
name: "String"
|
|
414
|
+
}
|
|
415
|
+
},
|
|
416
|
+
info: {
|
|
417
|
+
serializedName: "info",
|
|
418
|
+
readOnly: true,
|
|
419
|
+
type: {
|
|
420
|
+
name: "Dictionary",
|
|
421
|
+
value: { type: { name: "any" } }
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
};
|
|
427
|
+
const ForceState = {
|
|
428
|
+
type: {
|
|
429
|
+
name: "Composite",
|
|
430
|
+
className: "ForceState",
|
|
431
|
+
modelProperties: {
|
|
432
|
+
forceState: {
|
|
433
|
+
serializedName: "forceState",
|
|
434
|
+
type: {
|
|
435
|
+
name: "String"
|
|
436
|
+
}
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
}
|
|
440
|
+
};
|
|
221
441
|
const AzureBareMetalInstancesListResult = {
|
|
222
442
|
type: {
|
|
223
443
|
name: "Composite",
|
|
@@ -366,7 +586,7 @@ const NetworkProfile = {
|
|
|
366
586
|
element: {
|
|
367
587
|
type: {
|
|
368
588
|
name: "Composite",
|
|
369
|
-
className: "
|
|
589
|
+
className: "NetworkInterface"
|
|
370
590
|
}
|
|
371
591
|
}
|
|
372
592
|
}
|
|
@@ -381,10 +601,10 @@ const NetworkProfile = {
|
|
|
381
601
|
}
|
|
382
602
|
}
|
|
383
603
|
};
|
|
384
|
-
const
|
|
604
|
+
const NetworkInterface = {
|
|
385
605
|
type: {
|
|
386
606
|
name: "Composite",
|
|
387
|
-
className: "
|
|
607
|
+
className: "NetworkInterface",
|
|
388
608
|
modelProperties: {
|
|
389
609
|
ipAddress: {
|
|
390
610
|
serializedName: "ipAddress",
|
|
@@ -395,6 +615,42 @@ const IpAddress = {
|
|
|
395
615
|
}
|
|
396
616
|
}
|
|
397
617
|
};
|
|
618
|
+
const Resource = {
|
|
619
|
+
type: {
|
|
620
|
+
name: "Composite",
|
|
621
|
+
className: "Resource",
|
|
622
|
+
modelProperties: {
|
|
623
|
+
id: {
|
|
624
|
+
serializedName: "id",
|
|
625
|
+
readOnly: true,
|
|
626
|
+
type: {
|
|
627
|
+
name: "String"
|
|
628
|
+
}
|
|
629
|
+
},
|
|
630
|
+
name: {
|
|
631
|
+
serializedName: "name",
|
|
632
|
+
readOnly: true,
|
|
633
|
+
type: {
|
|
634
|
+
name: "String"
|
|
635
|
+
}
|
|
636
|
+
},
|
|
637
|
+
type: {
|
|
638
|
+
serializedName: "type",
|
|
639
|
+
readOnly: true,
|
|
640
|
+
type: {
|
|
641
|
+
name: "String"
|
|
642
|
+
}
|
|
643
|
+
},
|
|
644
|
+
systemData: {
|
|
645
|
+
serializedName: "systemData",
|
|
646
|
+
type: {
|
|
647
|
+
name: "Composite",
|
|
648
|
+
className: "SystemData"
|
|
649
|
+
}
|
|
650
|
+
}
|
|
651
|
+
}
|
|
652
|
+
}
|
|
653
|
+
};
|
|
398
654
|
const SystemData = {
|
|
399
655
|
type: {
|
|
400
656
|
name: "Composite",
|
|
@@ -439,27 +695,26 @@ const SystemData = {
|
|
|
439
695
|
}
|
|
440
696
|
}
|
|
441
697
|
};
|
|
442
|
-
const
|
|
698
|
+
const OperationListResult = {
|
|
443
699
|
type: {
|
|
444
700
|
name: "Composite",
|
|
445
|
-
className: "
|
|
701
|
+
className: "OperationListResult",
|
|
446
702
|
modelProperties: {
|
|
447
|
-
|
|
448
|
-
serializedName: "
|
|
449
|
-
readOnly: true,
|
|
450
|
-
type: {
|
|
451
|
-
name: "String"
|
|
452
|
-
}
|
|
453
|
-
},
|
|
454
|
-
name: {
|
|
455
|
-
serializedName: "name",
|
|
703
|
+
value: {
|
|
704
|
+
serializedName: "value",
|
|
456
705
|
readOnly: true,
|
|
457
706
|
type: {
|
|
458
|
-
name: "
|
|
707
|
+
name: "Sequence",
|
|
708
|
+
element: {
|
|
709
|
+
type: {
|
|
710
|
+
name: "Composite",
|
|
711
|
+
className: "Operation"
|
|
712
|
+
}
|
|
713
|
+
}
|
|
459
714
|
}
|
|
460
715
|
},
|
|
461
|
-
|
|
462
|
-
serializedName: "
|
|
716
|
+
nextLink: {
|
|
717
|
+
serializedName: "nextLink",
|
|
463
718
|
readOnly: true,
|
|
464
719
|
type: {
|
|
465
720
|
name: "String"
|
|
@@ -468,60 +723,104 @@ const Resource = {
|
|
|
468
723
|
}
|
|
469
724
|
}
|
|
470
725
|
};
|
|
471
|
-
const
|
|
726
|
+
const Operation = {
|
|
472
727
|
type: {
|
|
473
728
|
name: "Composite",
|
|
474
|
-
className: "
|
|
729
|
+
className: "Operation",
|
|
475
730
|
modelProperties: {
|
|
476
|
-
|
|
477
|
-
serializedName: "
|
|
731
|
+
name: {
|
|
732
|
+
serializedName: "name",
|
|
733
|
+
readOnly: true,
|
|
734
|
+
type: {
|
|
735
|
+
name: "String"
|
|
736
|
+
}
|
|
737
|
+
},
|
|
738
|
+
isDataAction: {
|
|
739
|
+
serializedName: "isDataAction",
|
|
740
|
+
readOnly: true,
|
|
741
|
+
type: {
|
|
742
|
+
name: "Boolean"
|
|
743
|
+
}
|
|
744
|
+
},
|
|
745
|
+
display: {
|
|
746
|
+
serializedName: "display",
|
|
478
747
|
type: {
|
|
479
748
|
name: "Composite",
|
|
480
|
-
className: "
|
|
749
|
+
className: "OperationDisplay"
|
|
750
|
+
}
|
|
751
|
+
},
|
|
752
|
+
origin: {
|
|
753
|
+
serializedName: "origin",
|
|
754
|
+
readOnly: true,
|
|
755
|
+
type: {
|
|
756
|
+
name: "String"
|
|
757
|
+
}
|
|
758
|
+
},
|
|
759
|
+
actionType: {
|
|
760
|
+
serializedName: "actionType",
|
|
761
|
+
readOnly: true,
|
|
762
|
+
type: {
|
|
763
|
+
name: "String"
|
|
481
764
|
}
|
|
482
765
|
}
|
|
483
766
|
}
|
|
484
767
|
}
|
|
485
768
|
};
|
|
486
|
-
const
|
|
769
|
+
const OperationDisplay = {
|
|
487
770
|
type: {
|
|
488
771
|
name: "Composite",
|
|
489
|
-
className: "
|
|
772
|
+
className: "OperationDisplay",
|
|
490
773
|
modelProperties: {
|
|
491
|
-
|
|
492
|
-
serializedName: "
|
|
774
|
+
provider: {
|
|
775
|
+
serializedName: "provider",
|
|
493
776
|
readOnly: true,
|
|
494
777
|
type: {
|
|
495
778
|
name: "String"
|
|
496
779
|
}
|
|
497
780
|
},
|
|
498
|
-
|
|
499
|
-
serializedName: "
|
|
781
|
+
resource: {
|
|
782
|
+
serializedName: "resource",
|
|
500
783
|
readOnly: true,
|
|
501
784
|
type: {
|
|
502
785
|
name: "String"
|
|
503
786
|
}
|
|
504
787
|
},
|
|
505
|
-
|
|
506
|
-
serializedName: "
|
|
788
|
+
operation: {
|
|
789
|
+
serializedName: "operation",
|
|
507
790
|
readOnly: true,
|
|
508
791
|
type: {
|
|
509
|
-
name: "
|
|
510
|
-
element: {
|
|
511
|
-
type: {
|
|
512
|
-
name: "Composite",
|
|
513
|
-
className: "ErrorDefinition"
|
|
514
|
-
}
|
|
515
|
-
}
|
|
792
|
+
name: "String"
|
|
516
793
|
}
|
|
517
|
-
}
|
|
518
|
-
|
|
794
|
+
},
|
|
795
|
+
description: {
|
|
796
|
+
serializedName: "description",
|
|
797
|
+
readOnly: true,
|
|
798
|
+
type: {
|
|
799
|
+
name: "String"
|
|
800
|
+
}
|
|
801
|
+
}
|
|
802
|
+
}
|
|
803
|
+
}
|
|
804
|
+
};
|
|
805
|
+
const Tags = {
|
|
806
|
+
type: {
|
|
807
|
+
name: "Composite",
|
|
808
|
+
className: "Tags",
|
|
809
|
+
modelProperties: {
|
|
810
|
+
tags: {
|
|
811
|
+
serializedName: "tags",
|
|
812
|
+
type: {
|
|
813
|
+
name: "Dictionary",
|
|
814
|
+
value: { type: { name: "String" } }
|
|
815
|
+
}
|
|
816
|
+
}
|
|
817
|
+
}
|
|
519
818
|
}
|
|
520
819
|
};
|
|
521
|
-
const
|
|
820
|
+
const AzureBareMetalStorageInstancesListResult = {
|
|
522
821
|
type: {
|
|
523
822
|
name: "Composite",
|
|
524
|
-
className: "
|
|
823
|
+
className: "AzureBareMetalStorageInstancesListResult",
|
|
525
824
|
modelProperties: {
|
|
526
825
|
value: {
|
|
527
826
|
serializedName: "value",
|
|
@@ -530,101 +829,84 @@ const OperationList = {
|
|
|
530
829
|
element: {
|
|
531
830
|
type: {
|
|
532
831
|
name: "Composite",
|
|
533
|
-
className: "
|
|
832
|
+
className: "AzureBareMetalStorageInstance"
|
|
534
833
|
}
|
|
535
834
|
}
|
|
536
835
|
}
|
|
836
|
+
},
|
|
837
|
+
nextLink: {
|
|
838
|
+
serializedName: "nextLink",
|
|
839
|
+
type: {
|
|
840
|
+
name: "String"
|
|
841
|
+
}
|
|
537
842
|
}
|
|
538
843
|
}
|
|
539
844
|
}
|
|
540
845
|
};
|
|
541
|
-
const
|
|
846
|
+
const StorageProperties = {
|
|
542
847
|
type: {
|
|
543
848
|
name: "Composite",
|
|
544
|
-
className: "
|
|
849
|
+
className: "StorageProperties",
|
|
545
850
|
modelProperties: {
|
|
546
|
-
|
|
547
|
-
serializedName: "
|
|
548
|
-
readOnly: true,
|
|
851
|
+
provisioningState: {
|
|
852
|
+
serializedName: "provisioningState",
|
|
549
853
|
type: {
|
|
550
854
|
name: "String"
|
|
551
855
|
}
|
|
552
856
|
},
|
|
553
|
-
|
|
554
|
-
serializedName: "
|
|
857
|
+
offeringType: {
|
|
858
|
+
serializedName: "offeringType",
|
|
555
859
|
type: {
|
|
556
|
-
name: "
|
|
557
|
-
className: "Display"
|
|
860
|
+
name: "String"
|
|
558
861
|
}
|
|
559
862
|
},
|
|
560
|
-
|
|
561
|
-
serializedName: "
|
|
562
|
-
readOnly: true,
|
|
863
|
+
storageType: {
|
|
864
|
+
serializedName: "storageType",
|
|
563
865
|
type: {
|
|
564
|
-
name: "
|
|
866
|
+
name: "String"
|
|
565
867
|
}
|
|
566
|
-
}
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
};
|
|
570
|
-
const Display = {
|
|
571
|
-
type: {
|
|
572
|
-
name: "Composite",
|
|
573
|
-
className: "Display",
|
|
574
|
-
modelProperties: {
|
|
575
|
-
provider: {
|
|
576
|
-
serializedName: "provider",
|
|
577
|
-
readOnly: true,
|
|
868
|
+
},
|
|
869
|
+
generation: {
|
|
870
|
+
serializedName: "generation",
|
|
578
871
|
type: {
|
|
579
872
|
name: "String"
|
|
580
873
|
}
|
|
581
874
|
},
|
|
582
|
-
|
|
583
|
-
serializedName: "
|
|
584
|
-
readOnly: true,
|
|
875
|
+
hardwareType: {
|
|
876
|
+
serializedName: "hardwareType",
|
|
585
877
|
type: {
|
|
586
878
|
name: "String"
|
|
587
879
|
}
|
|
588
880
|
},
|
|
589
|
-
|
|
590
|
-
serializedName: "
|
|
591
|
-
readOnly: true,
|
|
881
|
+
workloadType: {
|
|
882
|
+
serializedName: "workloadType",
|
|
592
883
|
type: {
|
|
593
884
|
name: "String"
|
|
594
885
|
}
|
|
595
886
|
},
|
|
596
|
-
|
|
597
|
-
serializedName: "
|
|
598
|
-
readOnly: true,
|
|
887
|
+
storageBillingProperties: {
|
|
888
|
+
serializedName: "storageBillingProperties",
|
|
599
889
|
type: {
|
|
600
|
-
name: "
|
|
890
|
+
name: "Composite",
|
|
891
|
+
className: "StorageBillingProperties"
|
|
601
892
|
}
|
|
602
893
|
}
|
|
603
894
|
}
|
|
604
895
|
}
|
|
605
896
|
};
|
|
606
|
-
const
|
|
897
|
+
const StorageBillingProperties = {
|
|
607
898
|
type: {
|
|
608
899
|
name: "Composite",
|
|
609
|
-
className: "
|
|
900
|
+
className: "StorageBillingProperties",
|
|
610
901
|
modelProperties: {
|
|
611
|
-
|
|
612
|
-
serializedName: "
|
|
902
|
+
billingMode: {
|
|
903
|
+
serializedName: "billingMode",
|
|
613
904
|
type: {
|
|
614
|
-
name: "
|
|
615
|
-
value: { type: { name: "String" } }
|
|
905
|
+
name: "String"
|
|
616
906
|
}
|
|
617
|
-
}
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
};
|
|
621
|
-
const Result = {
|
|
622
|
-
type: {
|
|
623
|
-
name: "Composite",
|
|
624
|
-
className: "Result",
|
|
625
|
-
modelProperties: {
|
|
626
|
-
sampleProperty: {
|
|
627
|
-
serializedName: "sampleProperty",
|
|
907
|
+
},
|
|
908
|
+
azureBareMetalStorageInstanceSize: {
|
|
909
|
+
serializedName: "azureBareMetalStorageInstanceSize",
|
|
628
910
|
type: {
|
|
629
911
|
name: "String"
|
|
630
912
|
}
|
|
@@ -655,13 +937,7 @@ const AzureBareMetalInstance = {
|
|
|
655
937
|
type: {
|
|
656
938
|
name: "Composite",
|
|
657
939
|
className: "AzureBareMetalInstance",
|
|
658
|
-
modelProperties: Object.assign(Object.assign({}, TrackedResource.type.modelProperties), {
|
|
659
|
-
serializedName: "systemData",
|
|
660
|
-
type: {
|
|
661
|
-
name: "Composite",
|
|
662
|
-
className: "SystemData"
|
|
663
|
-
}
|
|
664
|
-
}, hardwareProfile: {
|
|
940
|
+
modelProperties: Object.assign(Object.assign({}, TrackedResource.type.modelProperties), { hardwareProfile: {
|
|
665
941
|
serializedName: "properties.hardwareProfile",
|
|
666
942
|
type: {
|
|
667
943
|
name: "Composite",
|
|
@@ -723,27 +999,97 @@ const AzureBareMetalInstance = {
|
|
|
723
999
|
} })
|
|
724
1000
|
}
|
|
725
1001
|
};
|
|
1002
|
+
const AzureBareMetalStorageInstance = {
|
|
1003
|
+
type: {
|
|
1004
|
+
name: "Composite",
|
|
1005
|
+
className: "AzureBareMetalStorageInstance",
|
|
1006
|
+
modelProperties: Object.assign(Object.assign({}, TrackedResource.type.modelProperties), { azureBareMetalStorageInstanceUniqueIdentifier: {
|
|
1007
|
+
serializedName: "properties.azureBareMetalStorageInstanceUniqueIdentifier",
|
|
1008
|
+
type: {
|
|
1009
|
+
name: "String"
|
|
1010
|
+
}
|
|
1011
|
+
}, storageProperties: {
|
|
1012
|
+
serializedName: "properties.storageProperties",
|
|
1013
|
+
type: {
|
|
1014
|
+
name: "Composite",
|
|
1015
|
+
className: "StorageProperties"
|
|
1016
|
+
}
|
|
1017
|
+
} })
|
|
1018
|
+
}
|
|
1019
|
+
};
|
|
1020
|
+
const AzureBareMetalInstancesStartHeaders = {
|
|
1021
|
+
type: {
|
|
1022
|
+
name: "Composite",
|
|
1023
|
+
className: "AzureBareMetalInstancesStartHeaders",
|
|
1024
|
+
modelProperties: {
|
|
1025
|
+
location: {
|
|
1026
|
+
serializedName: "location",
|
|
1027
|
+
type: {
|
|
1028
|
+
name: "String"
|
|
1029
|
+
}
|
|
1030
|
+
}
|
|
1031
|
+
}
|
|
1032
|
+
}
|
|
1033
|
+
};
|
|
1034
|
+
const AzureBareMetalInstancesRestartHeaders = {
|
|
1035
|
+
type: {
|
|
1036
|
+
name: "Composite",
|
|
1037
|
+
className: "AzureBareMetalInstancesRestartHeaders",
|
|
1038
|
+
modelProperties: {
|
|
1039
|
+
location: {
|
|
1040
|
+
serializedName: "location",
|
|
1041
|
+
type: {
|
|
1042
|
+
name: "String"
|
|
1043
|
+
}
|
|
1044
|
+
}
|
|
1045
|
+
}
|
|
1046
|
+
}
|
|
1047
|
+
};
|
|
1048
|
+
const AzureBareMetalInstancesShutdownHeaders = {
|
|
1049
|
+
type: {
|
|
1050
|
+
name: "Composite",
|
|
1051
|
+
className: "AzureBareMetalInstancesShutdownHeaders",
|
|
1052
|
+
modelProperties: {
|
|
1053
|
+
location: {
|
|
1054
|
+
serializedName: "location",
|
|
1055
|
+
type: {
|
|
1056
|
+
name: "String"
|
|
1057
|
+
}
|
|
1058
|
+
}
|
|
1059
|
+
}
|
|
1060
|
+
}
|
|
1061
|
+
};
|
|
726
1062
|
|
|
727
1063
|
var Mappers = /*#__PURE__*/Object.freeze({
|
|
728
1064
|
__proto__: null,
|
|
1065
|
+
AzureBareMetalInstance: AzureBareMetalInstance,
|
|
729
1066
|
AzureBareMetalInstancesListResult: AzureBareMetalInstancesListResult,
|
|
730
|
-
|
|
731
|
-
|
|
1067
|
+
AzureBareMetalInstancesRestartHeaders: AzureBareMetalInstancesRestartHeaders,
|
|
1068
|
+
AzureBareMetalInstancesShutdownHeaders: AzureBareMetalInstancesShutdownHeaders,
|
|
1069
|
+
AzureBareMetalInstancesStartHeaders: AzureBareMetalInstancesStartHeaders,
|
|
1070
|
+
AzureBareMetalStorageInstance: AzureBareMetalStorageInstance,
|
|
1071
|
+
AzureBareMetalStorageInstancesListResult: AzureBareMetalStorageInstancesListResult,
|
|
732
1072
|
Disk: Disk,
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
IpAddress: IpAddress,
|
|
736
|
-
SystemData: SystemData,
|
|
737
|
-
Resource: Resource,
|
|
1073
|
+
ErrorAdditionalInfo: ErrorAdditionalInfo,
|
|
1074
|
+
ErrorDetail: ErrorDetail,
|
|
738
1075
|
ErrorResponse: ErrorResponse,
|
|
739
|
-
|
|
740
|
-
|
|
1076
|
+
ForceState: ForceState,
|
|
1077
|
+
HardwareProfile: HardwareProfile,
|
|
1078
|
+
NetworkInterface: NetworkInterface,
|
|
1079
|
+
NetworkProfile: NetworkProfile,
|
|
1080
|
+
OSProfile: OSProfile,
|
|
741
1081
|
Operation: Operation,
|
|
742
|
-
|
|
1082
|
+
OperationDisplay: OperationDisplay,
|
|
1083
|
+
OperationListResult: OperationListResult,
|
|
1084
|
+
OperationStatus: OperationStatus,
|
|
1085
|
+
OperationStatusError: OperationStatusError,
|
|
1086
|
+
Resource: Resource,
|
|
1087
|
+
StorageBillingProperties: StorageBillingProperties,
|
|
1088
|
+
StorageProfile: StorageProfile,
|
|
1089
|
+
StorageProperties: StorageProperties,
|
|
1090
|
+
SystemData: SystemData,
|
|
743
1091
|
Tags: Tags,
|
|
744
|
-
|
|
745
|
-
TrackedResource: TrackedResource,
|
|
746
|
-
AzureBareMetalInstance: AzureBareMetalInstance
|
|
1092
|
+
TrackedResource: TrackedResource
|
|
747
1093
|
});
|
|
748
1094
|
|
|
749
1095
|
/*
|
|
@@ -778,7 +1124,7 @@ const $host = {
|
|
|
778
1124
|
const apiVersion = {
|
|
779
1125
|
parameterPath: "apiVersion",
|
|
780
1126
|
mapper: {
|
|
781
|
-
defaultValue: "
|
|
1127
|
+
defaultValue: "2023-08-04-preview",
|
|
782
1128
|
isConstant: true,
|
|
783
1129
|
serializedName: "api-version",
|
|
784
1130
|
type: {
|
|
@@ -789,13 +1135,10 @@ const apiVersion = {
|
|
|
789
1135
|
const subscriptionId = {
|
|
790
1136
|
parameterPath: "subscriptionId",
|
|
791
1137
|
mapper: {
|
|
792
|
-
constraints: {
|
|
793
|
-
MinLength: 1
|
|
794
|
-
},
|
|
795
1138
|
serializedName: "subscriptionId",
|
|
796
1139
|
required: true,
|
|
797
1140
|
type: {
|
|
798
|
-
name: "
|
|
1141
|
+
name: "Uuid"
|
|
799
1142
|
}
|
|
800
1143
|
}
|
|
801
1144
|
};
|
|
@@ -816,6 +1159,9 @@ const resourceGroupName = {
|
|
|
816
1159
|
const azureBareMetalInstanceName = {
|
|
817
1160
|
parameterPath: "azureBareMetalInstanceName",
|
|
818
1161
|
mapper: {
|
|
1162
|
+
constraints: {
|
|
1163
|
+
Pattern: new RegExp("^[a-zA-Z0-9]+$")
|
|
1164
|
+
},
|
|
819
1165
|
serializedName: "azureBareMetalInstanceName",
|
|
820
1166
|
required: true,
|
|
821
1167
|
type: {
|
|
@@ -834,6 +1180,10 @@ const contentType = {
|
|
|
834
1180
|
}
|
|
835
1181
|
}
|
|
836
1182
|
};
|
|
1183
|
+
const forceParameter = {
|
|
1184
|
+
parameterPath: ["options", "forceParameter"],
|
|
1185
|
+
mapper: ForceState
|
|
1186
|
+
};
|
|
837
1187
|
const tagsParameter = {
|
|
838
1188
|
parameterPath: "tagsParameter",
|
|
839
1189
|
mapper: Tags
|
|
@@ -849,6 +1199,43 @@ const nextLink = {
|
|
|
849
1199
|
},
|
|
850
1200
|
skipEncoding: true
|
|
851
1201
|
};
|
|
1202
|
+
const azureBareMetalStorageInstanceName = {
|
|
1203
|
+
parameterPath: "azureBareMetalStorageInstanceName",
|
|
1204
|
+
mapper: {
|
|
1205
|
+
constraints: {
|
|
1206
|
+
Pattern: new RegExp(".*")
|
|
1207
|
+
},
|
|
1208
|
+
serializedName: "azureBareMetalStorageInstanceName",
|
|
1209
|
+
required: true,
|
|
1210
|
+
type: {
|
|
1211
|
+
name: "String"
|
|
1212
|
+
}
|
|
1213
|
+
}
|
|
1214
|
+
};
|
|
1215
|
+
const requestBodyParameters = {
|
|
1216
|
+
parameterPath: "requestBodyParameters",
|
|
1217
|
+
mapper: AzureBareMetalStorageInstance
|
|
1218
|
+
};
|
|
1219
|
+
|
|
1220
|
+
/*
|
|
1221
|
+
* Copyright (c) Microsoft Corporation.
|
|
1222
|
+
* Licensed under the MIT License.
|
|
1223
|
+
*
|
|
1224
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1225
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1226
|
+
*/
|
|
1227
|
+
function createLroSpec(inputs) {
|
|
1228
|
+
const { args, spec, sendOperationFn } = inputs;
|
|
1229
|
+
return {
|
|
1230
|
+
requestMethod: spec.httpMethod,
|
|
1231
|
+
requestPath: spec.path,
|
|
1232
|
+
sendInitialRequest: () => sendOperationFn(args, spec),
|
|
1233
|
+
sendPollRequest: (path, options) => {
|
|
1234
|
+
const restSpec = tslib.__rest(spec, ["requestBody"]);
|
|
1235
|
+
return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal }));
|
|
1236
|
+
}
|
|
1237
|
+
};
|
|
1238
|
+
}
|
|
852
1239
|
|
|
853
1240
|
/*
|
|
854
1241
|
* Copyright (c) Microsoft Corporation.
|
|
@@ -868,8 +1255,8 @@ class AzureBareMetalInstancesImpl {
|
|
|
868
1255
|
this.client = client;
|
|
869
1256
|
}
|
|
870
1257
|
/**
|
|
871
|
-
*
|
|
872
|
-
* various properties of each Azure
|
|
1258
|
+
* Returns a list of Azure Bare Metal Instances in the specified subscription. The operations returns
|
|
1259
|
+
* various properties of each Azure Bare Metal Instance.
|
|
873
1260
|
* @param options The options parameters.
|
|
874
1261
|
*/
|
|
875
1262
|
listBySubscription(options) {
|
|
@@ -913,16 +1300,11 @@ class AzureBareMetalInstancesImpl {
|
|
|
913
1300
|
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingAll_1() {
|
|
914
1301
|
var _a, e_1, _b, _c;
|
|
915
1302
|
try {
|
|
916
|
-
for (var _d = true, _e = tslib.__asyncValues(this.listBySubscriptionPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
|
|
1303
|
+
for (var _d = true, _e = tslib.__asyncValues(this.listBySubscriptionPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
917
1304
|
_c = _f.value;
|
|
918
1305
|
_d = false;
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
922
|
-
}
|
|
923
|
-
finally {
|
|
924
|
-
_d = true;
|
|
925
|
-
}
|
|
1306
|
+
const page = _c;
|
|
1307
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
926
1308
|
}
|
|
927
1309
|
}
|
|
928
1310
|
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
@@ -935,8 +1317,8 @@ class AzureBareMetalInstancesImpl {
|
|
|
935
1317
|
});
|
|
936
1318
|
}
|
|
937
1319
|
/**
|
|
938
|
-
* Gets a list of
|
|
939
|
-
* operations returns various properties of each Azure
|
|
1320
|
+
* Gets a list of Azure Bare Metal Instances in the specified subscription and resource group. The
|
|
1321
|
+
* operations returns various properties of each Azure Bare Metal Instance.
|
|
940
1322
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
941
1323
|
* @param options The options parameters.
|
|
942
1324
|
*/
|
|
@@ -981,16 +1363,11 @@ class AzureBareMetalInstancesImpl {
|
|
|
981
1363
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
|
|
982
1364
|
var _a, e_2, _b, _c;
|
|
983
1365
|
try {
|
|
984
|
-
for (var _d = true, _e = tslib.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
|
|
1366
|
+
for (var _d = true, _e = tslib.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
985
1367
|
_c = _f.value;
|
|
986
1368
|
_d = false;
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
990
|
-
}
|
|
991
|
-
finally {
|
|
992
|
-
_d = true;
|
|
993
|
-
}
|
|
1369
|
+
const page = _c;
|
|
1370
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
994
1371
|
}
|
|
995
1372
|
}
|
|
996
1373
|
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
@@ -1003,41 +1380,217 @@ class AzureBareMetalInstancesImpl {
|
|
|
1003
1380
|
});
|
|
1004
1381
|
}
|
|
1005
1382
|
/**
|
|
1006
|
-
*
|
|
1007
|
-
*
|
|
1383
|
+
* The operation to start an Azure Bare Metal instance
|
|
1384
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1385
|
+
* @param azureBareMetalInstanceName Name of the Azure Bare Metal Instance, also known as the
|
|
1386
|
+
* ResourceName.
|
|
1387
|
+
* @param options The options parameters.
|
|
1388
|
+
*/
|
|
1389
|
+
beginStart(resourceGroupName, azureBareMetalInstanceName, options) {
|
|
1390
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1391
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1392
|
+
return this.client.sendOperationRequest(args, spec);
|
|
1393
|
+
});
|
|
1394
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1395
|
+
var _a;
|
|
1396
|
+
let currentRawResponse = undefined;
|
|
1397
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
1398
|
+
const callback = (rawResponse, flatResponse) => {
|
|
1399
|
+
currentRawResponse = rawResponse;
|
|
1400
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
1401
|
+
};
|
|
1402
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
1403
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
1404
|
+
return {
|
|
1405
|
+
flatResponse,
|
|
1406
|
+
rawResponse: {
|
|
1407
|
+
statusCode: currentRawResponse.status,
|
|
1408
|
+
body: currentRawResponse.parsedBody,
|
|
1409
|
+
headers: currentRawResponse.headers.toJSON()
|
|
1410
|
+
}
|
|
1411
|
+
};
|
|
1412
|
+
});
|
|
1413
|
+
const lro = createLroSpec({
|
|
1414
|
+
sendOperationFn,
|
|
1415
|
+
args: { resourceGroupName, azureBareMetalInstanceName, options },
|
|
1416
|
+
spec: startOperationSpec
|
|
1417
|
+
});
|
|
1418
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
|
1419
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
1420
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
1421
|
+
resourceLocationConfig: "location"
|
|
1422
|
+
});
|
|
1423
|
+
yield poller.poll();
|
|
1424
|
+
return poller;
|
|
1425
|
+
});
|
|
1426
|
+
}
|
|
1427
|
+
/**
|
|
1428
|
+
* The operation to start an Azure Bare Metal instance
|
|
1429
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1430
|
+
* @param azureBareMetalInstanceName Name of the Azure Bare Metal Instance, also known as the
|
|
1431
|
+
* ResourceName.
|
|
1432
|
+
* @param options The options parameters.
|
|
1433
|
+
*/
|
|
1434
|
+
beginStartAndWait(resourceGroupName, azureBareMetalInstanceName, options) {
|
|
1435
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1436
|
+
const poller = yield this.beginStart(resourceGroupName, azureBareMetalInstanceName, options);
|
|
1437
|
+
return poller.pollUntilDone();
|
|
1438
|
+
});
|
|
1439
|
+
}
|
|
1440
|
+
/**
|
|
1441
|
+
* The operation to restart an Azure Bare Metal Instance
|
|
1442
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1443
|
+
* @param azureBareMetalInstanceName Name of the Azure Bare Metal Instance, also known as the
|
|
1444
|
+
* ResourceName.
|
|
1445
|
+
* @param options The options parameters.
|
|
1446
|
+
*/
|
|
1447
|
+
beginRestart(resourceGroupName, azureBareMetalInstanceName, options) {
|
|
1448
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1449
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1450
|
+
return this.client.sendOperationRequest(args, spec);
|
|
1451
|
+
});
|
|
1452
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1453
|
+
var _a;
|
|
1454
|
+
let currentRawResponse = undefined;
|
|
1455
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
1456
|
+
const callback = (rawResponse, flatResponse) => {
|
|
1457
|
+
currentRawResponse = rawResponse;
|
|
1458
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
1459
|
+
};
|
|
1460
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
1461
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
1462
|
+
return {
|
|
1463
|
+
flatResponse,
|
|
1464
|
+
rawResponse: {
|
|
1465
|
+
statusCode: currentRawResponse.status,
|
|
1466
|
+
body: currentRawResponse.parsedBody,
|
|
1467
|
+
headers: currentRawResponse.headers.toJSON()
|
|
1468
|
+
}
|
|
1469
|
+
};
|
|
1470
|
+
});
|
|
1471
|
+
const lro = createLroSpec({
|
|
1472
|
+
sendOperationFn,
|
|
1473
|
+
args: { resourceGroupName, azureBareMetalInstanceName, options },
|
|
1474
|
+
spec: restartOperationSpec
|
|
1475
|
+
});
|
|
1476
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
|
1477
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
1478
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
1479
|
+
resourceLocationConfig: "location"
|
|
1480
|
+
});
|
|
1481
|
+
yield poller.poll();
|
|
1482
|
+
return poller;
|
|
1483
|
+
});
|
|
1484
|
+
}
|
|
1485
|
+
/**
|
|
1486
|
+
* The operation to restart an Azure Bare Metal Instance
|
|
1487
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1488
|
+
* @param azureBareMetalInstanceName Name of the Azure Bare Metal Instance, also known as the
|
|
1489
|
+
* ResourceName.
|
|
1490
|
+
* @param options The options parameters.
|
|
1491
|
+
*/
|
|
1492
|
+
beginRestartAndWait(resourceGroupName, azureBareMetalInstanceName, options) {
|
|
1493
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1494
|
+
const poller = yield this.beginRestart(resourceGroupName, azureBareMetalInstanceName, options);
|
|
1495
|
+
return poller.pollUntilDone();
|
|
1496
|
+
});
|
|
1497
|
+
}
|
|
1498
|
+
/**
|
|
1499
|
+
* The operation to shutdown an Azure Bare Metal Instance
|
|
1500
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1501
|
+
* @param azureBareMetalInstanceName Name of the Azure Bare Metal Instance, also known as the
|
|
1502
|
+
* ResourceName.
|
|
1503
|
+
* @param options The options parameters.
|
|
1504
|
+
*/
|
|
1505
|
+
beginShutdown(resourceGroupName, azureBareMetalInstanceName, options) {
|
|
1506
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1507
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1508
|
+
return this.client.sendOperationRequest(args, spec);
|
|
1509
|
+
});
|
|
1510
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1511
|
+
var _a;
|
|
1512
|
+
let currentRawResponse = undefined;
|
|
1513
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
1514
|
+
const callback = (rawResponse, flatResponse) => {
|
|
1515
|
+
currentRawResponse = rawResponse;
|
|
1516
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
1517
|
+
};
|
|
1518
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
1519
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
1520
|
+
return {
|
|
1521
|
+
flatResponse,
|
|
1522
|
+
rawResponse: {
|
|
1523
|
+
statusCode: currentRawResponse.status,
|
|
1524
|
+
body: currentRawResponse.parsedBody,
|
|
1525
|
+
headers: currentRawResponse.headers.toJSON()
|
|
1526
|
+
}
|
|
1527
|
+
};
|
|
1528
|
+
});
|
|
1529
|
+
const lro = createLroSpec({
|
|
1530
|
+
sendOperationFn,
|
|
1531
|
+
args: { resourceGroupName, azureBareMetalInstanceName, options },
|
|
1532
|
+
spec: shutdownOperationSpec
|
|
1533
|
+
});
|
|
1534
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
|
1535
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
1536
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
1537
|
+
resourceLocationConfig: "location"
|
|
1538
|
+
});
|
|
1539
|
+
yield poller.poll();
|
|
1540
|
+
return poller;
|
|
1541
|
+
});
|
|
1542
|
+
}
|
|
1543
|
+
/**
|
|
1544
|
+
* The operation to shutdown an Azure Bare Metal Instance
|
|
1545
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1546
|
+
* @param azureBareMetalInstanceName Name of the Azure Bare Metal Instance, also known as the
|
|
1547
|
+
* ResourceName.
|
|
1548
|
+
* @param options The options parameters.
|
|
1549
|
+
*/
|
|
1550
|
+
beginShutdownAndWait(resourceGroupName, azureBareMetalInstanceName, options) {
|
|
1551
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1552
|
+
const poller = yield this.beginShutdown(resourceGroupName, azureBareMetalInstanceName, options);
|
|
1553
|
+
return poller.pollUntilDone();
|
|
1554
|
+
});
|
|
1555
|
+
}
|
|
1556
|
+
/**
|
|
1557
|
+
* Returns a list of Azure Bare Metal Instances in the specified subscription. The operations returns
|
|
1558
|
+
* various properties of each Azure Bare Metal Instance.
|
|
1008
1559
|
* @param options The options parameters.
|
|
1009
1560
|
*/
|
|
1010
1561
|
_listBySubscription(options) {
|
|
1011
|
-
return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec);
|
|
1562
|
+
return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec$1);
|
|
1012
1563
|
}
|
|
1013
1564
|
/**
|
|
1014
|
-
* Gets a list of
|
|
1015
|
-
* operations returns various properties of each Azure
|
|
1565
|
+
* Gets a list of Azure Bare Metal Instances in the specified subscription and resource group. The
|
|
1566
|
+
* operations returns various properties of each Azure Bare Metal Instance.
|
|
1016
1567
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1017
1568
|
* @param options The options parameters.
|
|
1018
1569
|
*/
|
|
1019
1570
|
_listByResourceGroup(resourceGroupName, options) {
|
|
1020
|
-
return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
|
|
1571
|
+
return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec$1);
|
|
1021
1572
|
}
|
|
1022
1573
|
/**
|
|
1023
|
-
* Gets an Azure
|
|
1574
|
+
* Gets an Azure Bare Metal Instance for the specified subscription, resource group, and instance name.
|
|
1024
1575
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1025
|
-
* @param azureBareMetalInstanceName Name of the Azure
|
|
1576
|
+
* @param azureBareMetalInstanceName Name of the Azure Bare Metal Instance, also known as the
|
|
1577
|
+
* ResourceName.
|
|
1026
1578
|
* @param options The options parameters.
|
|
1027
1579
|
*/
|
|
1028
1580
|
get(resourceGroupName, azureBareMetalInstanceName, options) {
|
|
1029
|
-
return this.client.sendOperationRequest({ resourceGroupName, azureBareMetalInstanceName, options }, getOperationSpec);
|
|
1581
|
+
return this.client.sendOperationRequest({ resourceGroupName, azureBareMetalInstanceName, options }, getOperationSpec$1);
|
|
1030
1582
|
}
|
|
1031
1583
|
/**
|
|
1032
|
-
* Patches the Tags field of a Azure
|
|
1033
|
-
* and instance name.
|
|
1584
|
+
* Patches the Tags field of a Azure Bare Metal Instance for the specified subscription, resource
|
|
1585
|
+
* group, and instance name.
|
|
1034
1586
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1035
|
-
* @param azureBareMetalInstanceName Name of the Azure
|
|
1587
|
+
* @param azureBareMetalInstanceName Name of the Azure Bare Metal Instance, also known as the
|
|
1588
|
+
* ResourceName.
|
|
1036
1589
|
* @param tagsParameter Request body that only contains the new Tags field
|
|
1037
1590
|
* @param options The options parameters.
|
|
1038
1591
|
*/
|
|
1039
1592
|
update(resourceGroupName, azureBareMetalInstanceName, tagsParameter, options) {
|
|
1040
|
-
return this.client.sendOperationRequest({ resourceGroupName, azureBareMetalInstanceName, tagsParameter, options }, updateOperationSpec);
|
|
1593
|
+
return this.client.sendOperationRequest({ resourceGroupName, azureBareMetalInstanceName, tagsParameter, options }, updateOperationSpec$1);
|
|
1041
1594
|
}
|
|
1042
1595
|
/**
|
|
1043
1596
|
* ListBySubscriptionNext
|
|
@@ -1045,7 +1598,7 @@ class AzureBareMetalInstancesImpl {
|
|
|
1045
1598
|
* @param options The options parameters.
|
|
1046
1599
|
*/
|
|
1047
1600
|
_listBySubscriptionNext(nextLink, options) {
|
|
1048
|
-
return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionNextOperationSpec);
|
|
1601
|
+
return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionNextOperationSpec$1);
|
|
1049
1602
|
}
|
|
1050
1603
|
/**
|
|
1051
1604
|
* ListByResourceGroupNext
|
|
@@ -1054,48 +1607,140 @@ class AzureBareMetalInstancesImpl {
|
|
|
1054
1607
|
* @param options The options parameters.
|
|
1055
1608
|
*/
|
|
1056
1609
|
_listByResourceGroupNext(resourceGroupName, nextLink, options) {
|
|
1057
|
-
return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
|
|
1610
|
+
return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec$1);
|
|
1058
1611
|
}
|
|
1059
1612
|
}
|
|
1060
1613
|
// Operation Specifications
|
|
1061
|
-
const serializer$
|
|
1062
|
-
const
|
|
1063
|
-
path: "/subscriptions/{subscriptionId}/providers/Microsoft.BareMetalInfrastructure/bareMetalInstances",
|
|
1064
|
-
httpMethod: "
|
|
1614
|
+
const serializer$2 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
1615
|
+
const startOperationSpec = {
|
|
1616
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BareMetalInfrastructure/bareMetalInstances/{azureBareMetalInstanceName}/start",
|
|
1617
|
+
httpMethod: "POST",
|
|
1065
1618
|
responses: {
|
|
1066
1619
|
200: {
|
|
1067
|
-
bodyMapper:
|
|
1620
|
+
bodyMapper: OperationStatus
|
|
1621
|
+
},
|
|
1622
|
+
201: {
|
|
1623
|
+
bodyMapper: OperationStatus
|
|
1624
|
+
},
|
|
1625
|
+
202: {
|
|
1626
|
+
bodyMapper: OperationStatus
|
|
1627
|
+
},
|
|
1628
|
+
204: {
|
|
1629
|
+
bodyMapper: OperationStatus
|
|
1068
1630
|
},
|
|
1069
1631
|
default: {
|
|
1070
1632
|
bodyMapper: ErrorResponse
|
|
1071
1633
|
}
|
|
1072
1634
|
},
|
|
1073
1635
|
queryParameters: [apiVersion],
|
|
1074
|
-
urlParameters: [
|
|
1636
|
+
urlParameters: [
|
|
1637
|
+
$host,
|
|
1638
|
+
subscriptionId,
|
|
1639
|
+
resourceGroupName,
|
|
1640
|
+
azureBareMetalInstanceName
|
|
1641
|
+
],
|
|
1075
1642
|
headerParameters: [accept],
|
|
1076
|
-
serializer: serializer$
|
|
1643
|
+
serializer: serializer$2
|
|
1077
1644
|
};
|
|
1078
|
-
const
|
|
1079
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BareMetalInfrastructure/bareMetalInstances",
|
|
1080
|
-
httpMethod: "
|
|
1645
|
+
const restartOperationSpec = {
|
|
1646
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BareMetalInfrastructure/bareMetalInstances/{azureBareMetalInstanceName}/restart",
|
|
1647
|
+
httpMethod: "POST",
|
|
1081
1648
|
responses: {
|
|
1082
1649
|
200: {
|
|
1083
|
-
bodyMapper:
|
|
1650
|
+
bodyMapper: OperationStatus
|
|
1651
|
+
},
|
|
1652
|
+
201: {
|
|
1653
|
+
bodyMapper: OperationStatus
|
|
1654
|
+
},
|
|
1655
|
+
202: {
|
|
1656
|
+
bodyMapper: OperationStatus
|
|
1657
|
+
},
|
|
1658
|
+
204: {
|
|
1659
|
+
bodyMapper: OperationStatus
|
|
1084
1660
|
},
|
|
1085
1661
|
default: {
|
|
1086
1662
|
bodyMapper: ErrorResponse
|
|
1087
1663
|
}
|
|
1088
1664
|
},
|
|
1665
|
+
requestBody: forceParameter,
|
|
1089
1666
|
queryParameters: [apiVersion],
|
|
1090
1667
|
urlParameters: [
|
|
1091
1668
|
$host,
|
|
1092
1669
|
subscriptionId,
|
|
1093
|
-
resourceGroupName
|
|
1094
|
-
|
|
1670
|
+
resourceGroupName,
|
|
1671
|
+
azureBareMetalInstanceName
|
|
1672
|
+
],
|
|
1673
|
+
headerParameters: [accept, contentType],
|
|
1674
|
+
mediaType: "json",
|
|
1675
|
+
serializer: serializer$2
|
|
1676
|
+
};
|
|
1677
|
+
const shutdownOperationSpec = {
|
|
1678
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BareMetalInfrastructure/bareMetalInstances/{azureBareMetalInstanceName}/shutdown",
|
|
1679
|
+
httpMethod: "POST",
|
|
1680
|
+
responses: {
|
|
1681
|
+
200: {
|
|
1682
|
+
bodyMapper: OperationStatus
|
|
1683
|
+
},
|
|
1684
|
+
201: {
|
|
1685
|
+
bodyMapper: OperationStatus
|
|
1686
|
+
},
|
|
1687
|
+
202: {
|
|
1688
|
+
bodyMapper: OperationStatus
|
|
1689
|
+
},
|
|
1690
|
+
204: {
|
|
1691
|
+
bodyMapper: OperationStatus
|
|
1692
|
+
},
|
|
1693
|
+
default: {
|
|
1694
|
+
bodyMapper: ErrorResponse
|
|
1695
|
+
}
|
|
1696
|
+
},
|
|
1697
|
+
queryParameters: [apiVersion],
|
|
1698
|
+
urlParameters: [
|
|
1699
|
+
$host,
|
|
1700
|
+
subscriptionId,
|
|
1701
|
+
resourceGroupName,
|
|
1702
|
+
azureBareMetalInstanceName
|
|
1703
|
+
],
|
|
1095
1704
|
headerParameters: [accept],
|
|
1096
|
-
serializer: serializer$
|
|
1705
|
+
serializer: serializer$2
|
|
1097
1706
|
};
|
|
1098
|
-
const
|
|
1707
|
+
const listBySubscriptionOperationSpec$1 = {
|
|
1708
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.BareMetalInfrastructure/bareMetalInstances",
|
|
1709
|
+
httpMethod: "GET",
|
|
1710
|
+
responses: {
|
|
1711
|
+
200: {
|
|
1712
|
+
bodyMapper: AzureBareMetalInstancesListResult
|
|
1713
|
+
},
|
|
1714
|
+
default: {
|
|
1715
|
+
bodyMapper: ErrorResponse
|
|
1716
|
+
}
|
|
1717
|
+
},
|
|
1718
|
+
queryParameters: [apiVersion],
|
|
1719
|
+
urlParameters: [$host, subscriptionId],
|
|
1720
|
+
headerParameters: [accept],
|
|
1721
|
+
serializer: serializer$2
|
|
1722
|
+
};
|
|
1723
|
+
const listByResourceGroupOperationSpec$1 = {
|
|
1724
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BareMetalInfrastructure/bareMetalInstances",
|
|
1725
|
+
httpMethod: "GET",
|
|
1726
|
+
responses: {
|
|
1727
|
+
200: {
|
|
1728
|
+
bodyMapper: AzureBareMetalInstancesListResult
|
|
1729
|
+
},
|
|
1730
|
+
default: {
|
|
1731
|
+
bodyMapper: ErrorResponse
|
|
1732
|
+
}
|
|
1733
|
+
},
|
|
1734
|
+
queryParameters: [apiVersion],
|
|
1735
|
+
urlParameters: [
|
|
1736
|
+
$host,
|
|
1737
|
+
subscriptionId,
|
|
1738
|
+
resourceGroupName
|
|
1739
|
+
],
|
|
1740
|
+
headerParameters: [accept],
|
|
1741
|
+
serializer: serializer$2
|
|
1742
|
+
};
|
|
1743
|
+
const getOperationSpec$1 = {
|
|
1099
1744
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BareMetalInfrastructure/bareMetalInstances/{azureBareMetalInstanceName}",
|
|
1100
1745
|
httpMethod: "GET",
|
|
1101
1746
|
responses: {
|
|
@@ -1114,9 +1759,9 @@ const getOperationSpec = {
|
|
|
1114
1759
|
azureBareMetalInstanceName
|
|
1115
1760
|
],
|
|
1116
1761
|
headerParameters: [accept],
|
|
1117
|
-
serializer: serializer$
|
|
1762
|
+
serializer: serializer$2
|
|
1118
1763
|
};
|
|
1119
|
-
const updateOperationSpec = {
|
|
1764
|
+
const updateOperationSpec$1 = {
|
|
1120
1765
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BareMetalInfrastructure/bareMetalInstances/{azureBareMetalInstanceName}",
|
|
1121
1766
|
httpMethod: "PATCH",
|
|
1122
1767
|
responses: {
|
|
@@ -1137,9 +1782,9 @@ const updateOperationSpec = {
|
|
|
1137
1782
|
],
|
|
1138
1783
|
headerParameters: [accept, contentType],
|
|
1139
1784
|
mediaType: "json",
|
|
1140
|
-
serializer: serializer$
|
|
1785
|
+
serializer: serializer$2
|
|
1141
1786
|
};
|
|
1142
|
-
const listBySubscriptionNextOperationSpec = {
|
|
1787
|
+
const listBySubscriptionNextOperationSpec$1 = {
|
|
1143
1788
|
path: "{nextLink}",
|
|
1144
1789
|
httpMethod: "GET",
|
|
1145
1790
|
responses: {
|
|
@@ -1156,9 +1801,9 @@ const listBySubscriptionNextOperationSpec = {
|
|
|
1156
1801
|
nextLink
|
|
1157
1802
|
],
|
|
1158
1803
|
headerParameters: [accept],
|
|
1159
|
-
serializer: serializer$
|
|
1804
|
+
serializer: serializer$2
|
|
1160
1805
|
};
|
|
1161
|
-
const listByResourceGroupNextOperationSpec = {
|
|
1806
|
+
const listByResourceGroupNextOperationSpec$1 = {
|
|
1162
1807
|
path: "{nextLink}",
|
|
1163
1808
|
httpMethod: "GET",
|
|
1164
1809
|
responses: {
|
|
@@ -1176,7 +1821,7 @@ const listByResourceGroupNextOperationSpec = {
|
|
|
1176
1821
|
nextLink
|
|
1177
1822
|
],
|
|
1178
1823
|
headerParameters: [accept],
|
|
1179
|
-
serializer: serializer$
|
|
1824
|
+
serializer: serializer$2
|
|
1180
1825
|
};
|
|
1181
1826
|
|
|
1182
1827
|
/*
|
|
@@ -1228,16 +1873,11 @@ class OperationsImpl {
|
|
|
1228
1873
|
return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
1229
1874
|
var _a, e_1, _b, _c;
|
|
1230
1875
|
try {
|
|
1231
|
-
for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
|
|
1876
|
+
for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
1232
1877
|
_c = _f.value;
|
|
1233
1878
|
_d = false;
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
1237
|
-
}
|
|
1238
|
-
finally {
|
|
1239
|
-
_d = true;
|
|
1240
|
-
}
|
|
1879
|
+
const page = _c;
|
|
1880
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
1241
1881
|
}
|
|
1242
1882
|
}
|
|
1243
1883
|
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
@@ -1258,13 +1898,13 @@ class OperationsImpl {
|
|
|
1258
1898
|
}
|
|
1259
1899
|
}
|
|
1260
1900
|
// Operation Specifications
|
|
1261
|
-
const serializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
1901
|
+
const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
1262
1902
|
const listOperationSpec = {
|
|
1263
1903
|
path: "/providers/Microsoft.BareMetalInfrastructure/operations",
|
|
1264
1904
|
httpMethod: "GET",
|
|
1265
1905
|
responses: {
|
|
1266
1906
|
200: {
|
|
1267
|
-
bodyMapper:
|
|
1907
|
+
bodyMapper: OperationListResult
|
|
1268
1908
|
},
|
|
1269
1909
|
default: {
|
|
1270
1910
|
bodyMapper: ErrorResponse
|
|
@@ -1273,6 +1913,405 @@ const listOperationSpec = {
|
|
|
1273
1913
|
queryParameters: [apiVersion],
|
|
1274
1914
|
urlParameters: [$host],
|
|
1275
1915
|
headerParameters: [accept],
|
|
1916
|
+
serializer: serializer$1
|
|
1917
|
+
};
|
|
1918
|
+
|
|
1919
|
+
/*
|
|
1920
|
+
* Copyright (c) Microsoft Corporation.
|
|
1921
|
+
* Licensed under the MIT License.
|
|
1922
|
+
*
|
|
1923
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1924
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1925
|
+
*/
|
|
1926
|
+
/// <reference lib="esnext.asynciterable" />
|
|
1927
|
+
/** Class containing AzureBareMetalStorageInstances operations. */
|
|
1928
|
+
class AzureBareMetalStorageInstancesImpl {
|
|
1929
|
+
/**
|
|
1930
|
+
* Initialize a new instance of the class AzureBareMetalStorageInstances class.
|
|
1931
|
+
* @param client Reference to the service client
|
|
1932
|
+
*/
|
|
1933
|
+
constructor(client) {
|
|
1934
|
+
this.client = client;
|
|
1935
|
+
}
|
|
1936
|
+
/**
|
|
1937
|
+
* Gets a list of AzureBareMetalStorage instances in the specified subscription. The operations returns
|
|
1938
|
+
* various properties of each Azure Bare Metal Instance.
|
|
1939
|
+
* @param options The options parameters.
|
|
1940
|
+
*/
|
|
1941
|
+
listBySubscription(options) {
|
|
1942
|
+
const iter = this.listBySubscriptionPagingAll(options);
|
|
1943
|
+
return {
|
|
1944
|
+
next() {
|
|
1945
|
+
return iter.next();
|
|
1946
|
+
},
|
|
1947
|
+
[Symbol.asyncIterator]() {
|
|
1948
|
+
return this;
|
|
1949
|
+
},
|
|
1950
|
+
byPage: (settings) => {
|
|
1951
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
1952
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
1953
|
+
}
|
|
1954
|
+
return this.listBySubscriptionPagingPage(options, settings);
|
|
1955
|
+
}
|
|
1956
|
+
};
|
|
1957
|
+
}
|
|
1958
|
+
listBySubscriptionPagingPage(options, settings) {
|
|
1959
|
+
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
|
1960
|
+
let result;
|
|
1961
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
1962
|
+
if (!continuationToken) {
|
|
1963
|
+
result = yield tslib.__await(this._listBySubscription(options));
|
|
1964
|
+
let page = result.value || [];
|
|
1965
|
+
continuationToken = result.nextLink;
|
|
1966
|
+
setContinuationToken(page, continuationToken);
|
|
1967
|
+
yield yield tslib.__await(page);
|
|
1968
|
+
}
|
|
1969
|
+
while (continuationToken) {
|
|
1970
|
+
result = yield tslib.__await(this._listBySubscriptionNext(continuationToken, options));
|
|
1971
|
+
continuationToken = result.nextLink;
|
|
1972
|
+
let page = result.value || [];
|
|
1973
|
+
setContinuationToken(page, continuationToken);
|
|
1974
|
+
yield yield tslib.__await(page);
|
|
1975
|
+
}
|
|
1976
|
+
});
|
|
1977
|
+
}
|
|
1978
|
+
listBySubscriptionPagingAll(options) {
|
|
1979
|
+
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingAll_1() {
|
|
1980
|
+
var _a, e_1, _b, _c;
|
|
1981
|
+
try {
|
|
1982
|
+
for (var _d = true, _e = tslib.__asyncValues(this.listBySubscriptionPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
1983
|
+
_c = _f.value;
|
|
1984
|
+
_d = false;
|
|
1985
|
+
const page = _c;
|
|
1986
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
1987
|
+
}
|
|
1988
|
+
}
|
|
1989
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
1990
|
+
finally {
|
|
1991
|
+
try {
|
|
1992
|
+
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
1993
|
+
}
|
|
1994
|
+
finally { if (e_1) throw e_1.error; }
|
|
1995
|
+
}
|
|
1996
|
+
});
|
|
1997
|
+
}
|
|
1998
|
+
/**
|
|
1999
|
+
* Gets a list of AzureBareMetalStorage instances in the specified subscription and resource group. The
|
|
2000
|
+
* operations returns various properties of each Azure Bare Metal Instance.
|
|
2001
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2002
|
+
* @param options The options parameters.
|
|
2003
|
+
*/
|
|
2004
|
+
listByResourceGroup(resourceGroupName, options) {
|
|
2005
|
+
const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
|
|
2006
|
+
return {
|
|
2007
|
+
next() {
|
|
2008
|
+
return iter.next();
|
|
2009
|
+
},
|
|
2010
|
+
[Symbol.asyncIterator]() {
|
|
2011
|
+
return this;
|
|
2012
|
+
},
|
|
2013
|
+
byPage: (settings) => {
|
|
2014
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
2015
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
2016
|
+
}
|
|
2017
|
+
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
2018
|
+
}
|
|
2019
|
+
};
|
|
2020
|
+
}
|
|
2021
|
+
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
2022
|
+
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
2023
|
+
let result;
|
|
2024
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
2025
|
+
if (!continuationToken) {
|
|
2026
|
+
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
2027
|
+
let page = result.value || [];
|
|
2028
|
+
continuationToken = result.nextLink;
|
|
2029
|
+
setContinuationToken(page, continuationToken);
|
|
2030
|
+
yield yield tslib.__await(page);
|
|
2031
|
+
}
|
|
2032
|
+
while (continuationToken) {
|
|
2033
|
+
result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
|
|
2034
|
+
continuationToken = result.nextLink;
|
|
2035
|
+
let page = result.value || [];
|
|
2036
|
+
setContinuationToken(page, continuationToken);
|
|
2037
|
+
yield yield tslib.__await(page);
|
|
2038
|
+
}
|
|
2039
|
+
});
|
|
2040
|
+
}
|
|
2041
|
+
listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
2042
|
+
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
|
|
2043
|
+
var _a, e_2, _b, _c;
|
|
2044
|
+
try {
|
|
2045
|
+
for (var _d = true, _e = tslib.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
2046
|
+
_c = _f.value;
|
|
2047
|
+
_d = false;
|
|
2048
|
+
const page = _c;
|
|
2049
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
2050
|
+
}
|
|
2051
|
+
}
|
|
2052
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
2053
|
+
finally {
|
|
2054
|
+
try {
|
|
2055
|
+
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
2056
|
+
}
|
|
2057
|
+
finally { if (e_2) throw e_2.error; }
|
|
2058
|
+
}
|
|
2059
|
+
});
|
|
2060
|
+
}
|
|
2061
|
+
/**
|
|
2062
|
+
* Gets a list of AzureBareMetalStorage instances in the specified subscription. The operations returns
|
|
2063
|
+
* various properties of each Azure Bare Metal Instance.
|
|
2064
|
+
* @param options The options parameters.
|
|
2065
|
+
*/
|
|
2066
|
+
_listBySubscription(options) {
|
|
2067
|
+
return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec);
|
|
2068
|
+
}
|
|
2069
|
+
/**
|
|
2070
|
+
* Gets a list of AzureBareMetalStorage instances in the specified subscription and resource group. The
|
|
2071
|
+
* operations returns various properties of each Azure Bare Metal Instance.
|
|
2072
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2073
|
+
* @param options The options parameters.
|
|
2074
|
+
*/
|
|
2075
|
+
_listByResourceGroup(resourceGroupName, options) {
|
|
2076
|
+
return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
|
|
2077
|
+
}
|
|
2078
|
+
/**
|
|
2079
|
+
* Gets an Azure Bare Metal Storage instance for the specified subscription, resource group, and
|
|
2080
|
+
* instance name.
|
|
2081
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2082
|
+
* @param azureBareMetalStorageInstanceName Name of the Azure Bare Metal Storage Instance, also known
|
|
2083
|
+
* as the ResourceName.
|
|
2084
|
+
* @param options The options parameters.
|
|
2085
|
+
*/
|
|
2086
|
+
get(resourceGroupName, azureBareMetalStorageInstanceName, options) {
|
|
2087
|
+
return this.client.sendOperationRequest({ resourceGroupName, azureBareMetalStorageInstanceName, options }, getOperationSpec);
|
|
2088
|
+
}
|
|
2089
|
+
/**
|
|
2090
|
+
* Create an azure bare metal storage resource.
|
|
2091
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2092
|
+
* @param azureBareMetalStorageInstanceName Name of the Azure Bare Metal Storage Instance, also known
|
|
2093
|
+
* as the ResourceName.
|
|
2094
|
+
* @param requestBodyParameters request body for put call
|
|
2095
|
+
* @param options The options parameters.
|
|
2096
|
+
*/
|
|
2097
|
+
create(resourceGroupName, azureBareMetalStorageInstanceName, requestBodyParameters, options) {
|
|
2098
|
+
return this.client.sendOperationRequest({
|
|
2099
|
+
resourceGroupName,
|
|
2100
|
+
azureBareMetalStorageInstanceName,
|
|
2101
|
+
requestBodyParameters,
|
|
2102
|
+
options
|
|
2103
|
+
}, createOperationSpec);
|
|
2104
|
+
}
|
|
2105
|
+
/**
|
|
2106
|
+
* Patches the Tags field of a Azure Bare Metal Storage instance for the specified subscription,
|
|
2107
|
+
* resource group, and instance name.
|
|
2108
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2109
|
+
* @param azureBareMetalStorageInstanceName Name of the Azure Bare Metal Storage Instance, also known
|
|
2110
|
+
* as the ResourceName.
|
|
2111
|
+
* @param tagsParameter Request body that only contains the new Tags field
|
|
2112
|
+
* @param options The options parameters.
|
|
2113
|
+
*/
|
|
2114
|
+
update(resourceGroupName, azureBareMetalStorageInstanceName, tagsParameter, options) {
|
|
2115
|
+
return this.client.sendOperationRequest({
|
|
2116
|
+
resourceGroupName,
|
|
2117
|
+
azureBareMetalStorageInstanceName,
|
|
2118
|
+
tagsParameter,
|
|
2119
|
+
options
|
|
2120
|
+
}, updateOperationSpec);
|
|
2121
|
+
}
|
|
2122
|
+
/**
|
|
2123
|
+
* Delete an AzureBareMetalStorageInstance.
|
|
2124
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2125
|
+
* @param azureBareMetalStorageInstanceName Name of the Azure Bare Metal Storage Instance, also known
|
|
2126
|
+
* as the ResourceName.
|
|
2127
|
+
* @param options The options parameters.
|
|
2128
|
+
*/
|
|
2129
|
+
delete(resourceGroupName, azureBareMetalStorageInstanceName, options) {
|
|
2130
|
+
return this.client.sendOperationRequest({ resourceGroupName, azureBareMetalStorageInstanceName, options }, deleteOperationSpec);
|
|
2131
|
+
}
|
|
2132
|
+
/**
|
|
2133
|
+
* ListBySubscriptionNext
|
|
2134
|
+
* @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
|
|
2135
|
+
* @param options The options parameters.
|
|
2136
|
+
*/
|
|
2137
|
+
_listBySubscriptionNext(nextLink, options) {
|
|
2138
|
+
return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionNextOperationSpec);
|
|
2139
|
+
}
|
|
2140
|
+
/**
|
|
2141
|
+
* ListByResourceGroupNext
|
|
2142
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2143
|
+
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
|
|
2144
|
+
* @param options The options parameters.
|
|
2145
|
+
*/
|
|
2146
|
+
_listByResourceGroupNext(resourceGroupName, nextLink, options) {
|
|
2147
|
+
return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
|
|
2148
|
+
}
|
|
2149
|
+
}
|
|
2150
|
+
// Operation Specifications
|
|
2151
|
+
const serializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
2152
|
+
const listBySubscriptionOperationSpec = {
|
|
2153
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.BareMetalInfrastructure/bareMetalStorageInstances",
|
|
2154
|
+
httpMethod: "GET",
|
|
2155
|
+
responses: {
|
|
2156
|
+
200: {
|
|
2157
|
+
bodyMapper: AzureBareMetalStorageInstancesListResult
|
|
2158
|
+
},
|
|
2159
|
+
default: {
|
|
2160
|
+
bodyMapper: ErrorResponse
|
|
2161
|
+
}
|
|
2162
|
+
},
|
|
2163
|
+
queryParameters: [apiVersion],
|
|
2164
|
+
urlParameters: [$host, subscriptionId],
|
|
2165
|
+
headerParameters: [accept],
|
|
2166
|
+
serializer
|
|
2167
|
+
};
|
|
2168
|
+
const listByResourceGroupOperationSpec = {
|
|
2169
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BareMetalInfrastructure/bareMetalStorageInstances",
|
|
2170
|
+
httpMethod: "GET",
|
|
2171
|
+
responses: {
|
|
2172
|
+
200: {
|
|
2173
|
+
bodyMapper: AzureBareMetalStorageInstancesListResult
|
|
2174
|
+
},
|
|
2175
|
+
default: {
|
|
2176
|
+
bodyMapper: ErrorResponse
|
|
2177
|
+
}
|
|
2178
|
+
},
|
|
2179
|
+
queryParameters: [apiVersion],
|
|
2180
|
+
urlParameters: [
|
|
2181
|
+
$host,
|
|
2182
|
+
subscriptionId,
|
|
2183
|
+
resourceGroupName
|
|
2184
|
+
],
|
|
2185
|
+
headerParameters: [accept],
|
|
2186
|
+
serializer
|
|
2187
|
+
};
|
|
2188
|
+
const getOperationSpec = {
|
|
2189
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BareMetalInfrastructure/bareMetalStorageInstances/{azureBareMetalStorageInstanceName}",
|
|
2190
|
+
httpMethod: "GET",
|
|
2191
|
+
responses: {
|
|
2192
|
+
200: {
|
|
2193
|
+
bodyMapper: AzureBareMetalStorageInstance
|
|
2194
|
+
},
|
|
2195
|
+
default: {
|
|
2196
|
+
bodyMapper: ErrorResponse
|
|
2197
|
+
}
|
|
2198
|
+
},
|
|
2199
|
+
queryParameters: [apiVersion],
|
|
2200
|
+
urlParameters: [
|
|
2201
|
+
$host,
|
|
2202
|
+
subscriptionId,
|
|
2203
|
+
resourceGroupName,
|
|
2204
|
+
azureBareMetalStorageInstanceName
|
|
2205
|
+
],
|
|
2206
|
+
headerParameters: [accept],
|
|
2207
|
+
serializer
|
|
2208
|
+
};
|
|
2209
|
+
const createOperationSpec = {
|
|
2210
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BareMetalInfrastructure/bareMetalStorageInstances/{azureBareMetalStorageInstanceName}",
|
|
2211
|
+
httpMethod: "PUT",
|
|
2212
|
+
responses: {
|
|
2213
|
+
200: {
|
|
2214
|
+
bodyMapper: AzureBareMetalStorageInstance
|
|
2215
|
+
},
|
|
2216
|
+
201: {
|
|
2217
|
+
bodyMapper: AzureBareMetalStorageInstance
|
|
2218
|
+
},
|
|
2219
|
+
default: {
|
|
2220
|
+
bodyMapper: ErrorResponse
|
|
2221
|
+
}
|
|
2222
|
+
},
|
|
2223
|
+
requestBody: requestBodyParameters,
|
|
2224
|
+
queryParameters: [apiVersion],
|
|
2225
|
+
urlParameters: [
|
|
2226
|
+
$host,
|
|
2227
|
+
subscriptionId,
|
|
2228
|
+
resourceGroupName,
|
|
2229
|
+
azureBareMetalStorageInstanceName
|
|
2230
|
+
],
|
|
2231
|
+
headerParameters: [accept, contentType],
|
|
2232
|
+
mediaType: "json",
|
|
2233
|
+
serializer
|
|
2234
|
+
};
|
|
2235
|
+
const updateOperationSpec = {
|
|
2236
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BareMetalInfrastructure/bareMetalStorageInstances/{azureBareMetalStorageInstanceName}",
|
|
2237
|
+
httpMethod: "PATCH",
|
|
2238
|
+
responses: {
|
|
2239
|
+
200: {
|
|
2240
|
+
bodyMapper: AzureBareMetalStorageInstance
|
|
2241
|
+
},
|
|
2242
|
+
default: {
|
|
2243
|
+
bodyMapper: ErrorResponse
|
|
2244
|
+
}
|
|
2245
|
+
},
|
|
2246
|
+
requestBody: tagsParameter,
|
|
2247
|
+
queryParameters: [apiVersion],
|
|
2248
|
+
urlParameters: [
|
|
2249
|
+
$host,
|
|
2250
|
+
subscriptionId,
|
|
2251
|
+
resourceGroupName,
|
|
2252
|
+
azureBareMetalStorageInstanceName
|
|
2253
|
+
],
|
|
2254
|
+
headerParameters: [accept, contentType],
|
|
2255
|
+
mediaType: "json",
|
|
2256
|
+
serializer
|
|
2257
|
+
};
|
|
2258
|
+
const deleteOperationSpec = {
|
|
2259
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BareMetalInfrastructure/bareMetalStorageInstances/{azureBareMetalStorageInstanceName}",
|
|
2260
|
+
httpMethod: "DELETE",
|
|
2261
|
+
responses: {
|
|
2262
|
+
200: {},
|
|
2263
|
+
204: {},
|
|
2264
|
+
default: {
|
|
2265
|
+
bodyMapper: ErrorResponse
|
|
2266
|
+
}
|
|
2267
|
+
},
|
|
2268
|
+
queryParameters: [apiVersion],
|
|
2269
|
+
urlParameters: [
|
|
2270
|
+
$host,
|
|
2271
|
+
subscriptionId,
|
|
2272
|
+
resourceGroupName,
|
|
2273
|
+
azureBareMetalStorageInstanceName
|
|
2274
|
+
],
|
|
2275
|
+
headerParameters: [accept],
|
|
2276
|
+
serializer
|
|
2277
|
+
};
|
|
2278
|
+
const listBySubscriptionNextOperationSpec = {
|
|
2279
|
+
path: "{nextLink}",
|
|
2280
|
+
httpMethod: "GET",
|
|
2281
|
+
responses: {
|
|
2282
|
+
200: {
|
|
2283
|
+
bodyMapper: AzureBareMetalStorageInstancesListResult
|
|
2284
|
+
},
|
|
2285
|
+
default: {
|
|
2286
|
+
bodyMapper: ErrorResponse
|
|
2287
|
+
}
|
|
2288
|
+
},
|
|
2289
|
+
urlParameters: [
|
|
2290
|
+
$host,
|
|
2291
|
+
subscriptionId,
|
|
2292
|
+
nextLink
|
|
2293
|
+
],
|
|
2294
|
+
headerParameters: [accept],
|
|
2295
|
+
serializer
|
|
2296
|
+
};
|
|
2297
|
+
const listByResourceGroupNextOperationSpec = {
|
|
2298
|
+
path: "{nextLink}",
|
|
2299
|
+
httpMethod: "GET",
|
|
2300
|
+
responses: {
|
|
2301
|
+
200: {
|
|
2302
|
+
bodyMapper: AzureBareMetalStorageInstancesListResult
|
|
2303
|
+
},
|
|
2304
|
+
default: {
|
|
2305
|
+
bodyMapper: ErrorResponse
|
|
2306
|
+
}
|
|
2307
|
+
},
|
|
2308
|
+
urlParameters: [
|
|
2309
|
+
$host,
|
|
2310
|
+
subscriptionId,
|
|
2311
|
+
resourceGroupName,
|
|
2312
|
+
nextLink
|
|
2313
|
+
],
|
|
2314
|
+
headerParameters: [accept],
|
|
1276
2315
|
serializer
|
|
1277
2316
|
};
|
|
1278
2317
|
|
|
@@ -1287,7 +2326,7 @@ class BareMetalInfrastructureClient extends coreClient__namespace.ServiceClient
|
|
|
1287
2326
|
/**
|
|
1288
2327
|
* Initializes a new instance of the BareMetalInfrastructureClient class.
|
|
1289
2328
|
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
1290
|
-
* @param subscriptionId The ID of the target subscription.
|
|
2329
|
+
* @param subscriptionId The ID of the target subscription. The value must be an UUID.
|
|
1291
2330
|
* @param options The parameter options
|
|
1292
2331
|
*/
|
|
1293
2332
|
constructor(credentials, subscriptionId, options) {
|
|
@@ -1306,7 +2345,7 @@ class BareMetalInfrastructureClient extends coreClient__namespace.ServiceClient
|
|
|
1306
2345
|
requestContentType: "application/json; charset=utf-8",
|
|
1307
2346
|
credential: credentials
|
|
1308
2347
|
};
|
|
1309
|
-
const packageDetails = `azsdk-js-arm-baremetalinfrastructure/1.0.0-beta.
|
|
2348
|
+
const packageDetails = `azsdk-js-arm-baremetalinfrastructure/1.0.0-beta.2`;
|
|
1310
2349
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
1311
2350
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
1312
2351
|
: `${packageDetails}`;
|
|
@@ -1339,9 +2378,10 @@ class BareMetalInfrastructureClient extends coreClient__namespace.ServiceClient
|
|
|
1339
2378
|
this.subscriptionId = subscriptionId;
|
|
1340
2379
|
// Assigning values to Constant parameters
|
|
1341
2380
|
this.$host = options.$host || "https://management.azure.com";
|
|
1342
|
-
this.apiVersion = options.apiVersion || "
|
|
2381
|
+
this.apiVersion = options.apiVersion || "2023-08-04-preview";
|
|
1343
2382
|
this.azureBareMetalInstances = new AzureBareMetalInstancesImpl(this);
|
|
1344
2383
|
this.operations = new OperationsImpl(this);
|
|
2384
|
+
this.azureBareMetalStorageInstances = new AzureBareMetalStorageInstancesImpl(this);
|
|
1345
2385
|
this.addCustomApiVersionPolicy(options.apiVersion);
|
|
1346
2386
|
}
|
|
1347
2387
|
/** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
|