@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
|
@@ -0,0 +1,498 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
|
10
|
+
import { setContinuationToken } from "../pagingHelper";
|
|
11
|
+
import { AzureBareMetalStorageInstances } from "../operationsInterfaces";
|
|
12
|
+
import * as coreClient from "@azure/core-client";
|
|
13
|
+
import * as Mappers from "../models/mappers";
|
|
14
|
+
import * as Parameters from "../models/parameters";
|
|
15
|
+
import { BareMetalInfrastructureClient } from "../bareMetalInfrastructureClient";
|
|
16
|
+
import {
|
|
17
|
+
AzureBareMetalStorageInstance,
|
|
18
|
+
AzureBareMetalStorageInstancesListBySubscriptionNextOptionalParams,
|
|
19
|
+
AzureBareMetalStorageInstancesListBySubscriptionOptionalParams,
|
|
20
|
+
AzureBareMetalStorageInstancesListBySubscriptionResponse,
|
|
21
|
+
AzureBareMetalStorageInstancesListByResourceGroupNextOptionalParams,
|
|
22
|
+
AzureBareMetalStorageInstancesListByResourceGroupOptionalParams,
|
|
23
|
+
AzureBareMetalStorageInstancesListByResourceGroupResponse,
|
|
24
|
+
AzureBareMetalStorageInstancesGetOptionalParams,
|
|
25
|
+
AzureBareMetalStorageInstancesGetResponse,
|
|
26
|
+
AzureBareMetalStorageInstancesCreateOptionalParams,
|
|
27
|
+
AzureBareMetalStorageInstancesCreateResponse,
|
|
28
|
+
Tags,
|
|
29
|
+
AzureBareMetalStorageInstancesUpdateOptionalParams,
|
|
30
|
+
AzureBareMetalStorageInstancesUpdateResponse,
|
|
31
|
+
AzureBareMetalStorageInstancesDeleteOptionalParams,
|
|
32
|
+
AzureBareMetalStorageInstancesListBySubscriptionNextResponse,
|
|
33
|
+
AzureBareMetalStorageInstancesListByResourceGroupNextResponse
|
|
34
|
+
} from "../models";
|
|
35
|
+
|
|
36
|
+
/// <reference lib="esnext.asynciterable" />
|
|
37
|
+
/** Class containing AzureBareMetalStorageInstances operations. */
|
|
38
|
+
export class AzureBareMetalStorageInstancesImpl
|
|
39
|
+
implements AzureBareMetalStorageInstances {
|
|
40
|
+
private readonly client: BareMetalInfrastructureClient;
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Initialize a new instance of the class AzureBareMetalStorageInstances class.
|
|
44
|
+
* @param client Reference to the service client
|
|
45
|
+
*/
|
|
46
|
+
constructor(client: BareMetalInfrastructureClient) {
|
|
47
|
+
this.client = client;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Gets a list of AzureBareMetalStorage instances in the specified subscription. The operations returns
|
|
52
|
+
* various properties of each Azure Bare Metal Instance.
|
|
53
|
+
* @param options The options parameters.
|
|
54
|
+
*/
|
|
55
|
+
public listBySubscription(
|
|
56
|
+
options?: AzureBareMetalStorageInstancesListBySubscriptionOptionalParams
|
|
57
|
+
): PagedAsyncIterableIterator<AzureBareMetalStorageInstance> {
|
|
58
|
+
const iter = this.listBySubscriptionPagingAll(options);
|
|
59
|
+
return {
|
|
60
|
+
next() {
|
|
61
|
+
return iter.next();
|
|
62
|
+
},
|
|
63
|
+
[Symbol.asyncIterator]() {
|
|
64
|
+
return this;
|
|
65
|
+
},
|
|
66
|
+
byPage: (settings?: PageSettings) => {
|
|
67
|
+
if (settings?.maxPageSize) {
|
|
68
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
69
|
+
}
|
|
70
|
+
return this.listBySubscriptionPagingPage(options, settings);
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
private async *listBySubscriptionPagingPage(
|
|
76
|
+
options?: AzureBareMetalStorageInstancesListBySubscriptionOptionalParams,
|
|
77
|
+
settings?: PageSettings
|
|
78
|
+
): AsyncIterableIterator<AzureBareMetalStorageInstance[]> {
|
|
79
|
+
let result: AzureBareMetalStorageInstancesListBySubscriptionResponse;
|
|
80
|
+
let continuationToken = settings?.continuationToken;
|
|
81
|
+
if (!continuationToken) {
|
|
82
|
+
result = await this._listBySubscription(options);
|
|
83
|
+
let page = result.value || [];
|
|
84
|
+
continuationToken = result.nextLink;
|
|
85
|
+
setContinuationToken(page, continuationToken);
|
|
86
|
+
yield page;
|
|
87
|
+
}
|
|
88
|
+
while (continuationToken) {
|
|
89
|
+
result = await this._listBySubscriptionNext(continuationToken, options);
|
|
90
|
+
continuationToken = result.nextLink;
|
|
91
|
+
let page = result.value || [];
|
|
92
|
+
setContinuationToken(page, continuationToken);
|
|
93
|
+
yield page;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
private async *listBySubscriptionPagingAll(
|
|
98
|
+
options?: AzureBareMetalStorageInstancesListBySubscriptionOptionalParams
|
|
99
|
+
): AsyncIterableIterator<AzureBareMetalStorageInstance> {
|
|
100
|
+
for await (const page of this.listBySubscriptionPagingPage(options)) {
|
|
101
|
+
yield* page;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* Gets a list of AzureBareMetalStorage instances in the specified subscription and resource group. The
|
|
107
|
+
* operations returns various properties of each Azure Bare Metal Instance.
|
|
108
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
109
|
+
* @param options The options parameters.
|
|
110
|
+
*/
|
|
111
|
+
public listByResourceGroup(
|
|
112
|
+
resourceGroupName: string,
|
|
113
|
+
options?: AzureBareMetalStorageInstancesListByResourceGroupOptionalParams
|
|
114
|
+
): PagedAsyncIterableIterator<AzureBareMetalStorageInstance> {
|
|
115
|
+
const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
|
|
116
|
+
return {
|
|
117
|
+
next() {
|
|
118
|
+
return iter.next();
|
|
119
|
+
},
|
|
120
|
+
[Symbol.asyncIterator]() {
|
|
121
|
+
return this;
|
|
122
|
+
},
|
|
123
|
+
byPage: (settings?: PageSettings) => {
|
|
124
|
+
if (settings?.maxPageSize) {
|
|
125
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
126
|
+
}
|
|
127
|
+
return this.listByResourceGroupPagingPage(
|
|
128
|
+
resourceGroupName,
|
|
129
|
+
options,
|
|
130
|
+
settings
|
|
131
|
+
);
|
|
132
|
+
}
|
|
133
|
+
};
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
private async *listByResourceGroupPagingPage(
|
|
137
|
+
resourceGroupName: string,
|
|
138
|
+
options?: AzureBareMetalStorageInstancesListByResourceGroupOptionalParams,
|
|
139
|
+
settings?: PageSettings
|
|
140
|
+
): AsyncIterableIterator<AzureBareMetalStorageInstance[]> {
|
|
141
|
+
let result: AzureBareMetalStorageInstancesListByResourceGroupResponse;
|
|
142
|
+
let continuationToken = settings?.continuationToken;
|
|
143
|
+
if (!continuationToken) {
|
|
144
|
+
result = await this._listByResourceGroup(resourceGroupName, options);
|
|
145
|
+
let page = result.value || [];
|
|
146
|
+
continuationToken = result.nextLink;
|
|
147
|
+
setContinuationToken(page, continuationToken);
|
|
148
|
+
yield page;
|
|
149
|
+
}
|
|
150
|
+
while (continuationToken) {
|
|
151
|
+
result = await this._listByResourceGroupNext(
|
|
152
|
+
resourceGroupName,
|
|
153
|
+
continuationToken,
|
|
154
|
+
options
|
|
155
|
+
);
|
|
156
|
+
continuationToken = result.nextLink;
|
|
157
|
+
let page = result.value || [];
|
|
158
|
+
setContinuationToken(page, continuationToken);
|
|
159
|
+
yield page;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
private async *listByResourceGroupPagingAll(
|
|
164
|
+
resourceGroupName: string,
|
|
165
|
+
options?: AzureBareMetalStorageInstancesListByResourceGroupOptionalParams
|
|
166
|
+
): AsyncIterableIterator<AzureBareMetalStorageInstance> {
|
|
167
|
+
for await (const page of this.listByResourceGroupPagingPage(
|
|
168
|
+
resourceGroupName,
|
|
169
|
+
options
|
|
170
|
+
)) {
|
|
171
|
+
yield* page;
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* Gets a list of AzureBareMetalStorage instances in the specified subscription. The operations returns
|
|
177
|
+
* various properties of each Azure Bare Metal Instance.
|
|
178
|
+
* @param options The options parameters.
|
|
179
|
+
*/
|
|
180
|
+
private _listBySubscription(
|
|
181
|
+
options?: AzureBareMetalStorageInstancesListBySubscriptionOptionalParams
|
|
182
|
+
): Promise<AzureBareMetalStorageInstancesListBySubscriptionResponse> {
|
|
183
|
+
return this.client.sendOperationRequest(
|
|
184
|
+
{ options },
|
|
185
|
+
listBySubscriptionOperationSpec
|
|
186
|
+
);
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
/**
|
|
190
|
+
* Gets a list of AzureBareMetalStorage instances in the specified subscription and resource group. The
|
|
191
|
+
* operations returns various properties of each Azure Bare Metal Instance.
|
|
192
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
193
|
+
* @param options The options parameters.
|
|
194
|
+
*/
|
|
195
|
+
private _listByResourceGroup(
|
|
196
|
+
resourceGroupName: string,
|
|
197
|
+
options?: AzureBareMetalStorageInstancesListByResourceGroupOptionalParams
|
|
198
|
+
): Promise<AzureBareMetalStorageInstancesListByResourceGroupResponse> {
|
|
199
|
+
return this.client.sendOperationRequest(
|
|
200
|
+
{ resourceGroupName, options },
|
|
201
|
+
listByResourceGroupOperationSpec
|
|
202
|
+
);
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
/**
|
|
206
|
+
* Gets an Azure Bare Metal Storage instance for the specified subscription, resource group, and
|
|
207
|
+
* instance name.
|
|
208
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
209
|
+
* @param azureBareMetalStorageInstanceName Name of the Azure Bare Metal Storage Instance, also known
|
|
210
|
+
* as the ResourceName.
|
|
211
|
+
* @param options The options parameters.
|
|
212
|
+
*/
|
|
213
|
+
get(
|
|
214
|
+
resourceGroupName: string,
|
|
215
|
+
azureBareMetalStorageInstanceName: string,
|
|
216
|
+
options?: AzureBareMetalStorageInstancesGetOptionalParams
|
|
217
|
+
): Promise<AzureBareMetalStorageInstancesGetResponse> {
|
|
218
|
+
return this.client.sendOperationRequest(
|
|
219
|
+
{ resourceGroupName, azureBareMetalStorageInstanceName, options },
|
|
220
|
+
getOperationSpec
|
|
221
|
+
);
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
/**
|
|
225
|
+
* Create an azure bare metal storage resource.
|
|
226
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
227
|
+
* @param azureBareMetalStorageInstanceName Name of the Azure Bare Metal Storage Instance, also known
|
|
228
|
+
* as the ResourceName.
|
|
229
|
+
* @param requestBodyParameters request body for put call
|
|
230
|
+
* @param options The options parameters.
|
|
231
|
+
*/
|
|
232
|
+
create(
|
|
233
|
+
resourceGroupName: string,
|
|
234
|
+
azureBareMetalStorageInstanceName: string,
|
|
235
|
+
requestBodyParameters: AzureBareMetalStorageInstance,
|
|
236
|
+
options?: AzureBareMetalStorageInstancesCreateOptionalParams
|
|
237
|
+
): Promise<AzureBareMetalStorageInstancesCreateResponse> {
|
|
238
|
+
return this.client.sendOperationRequest(
|
|
239
|
+
{
|
|
240
|
+
resourceGroupName,
|
|
241
|
+
azureBareMetalStorageInstanceName,
|
|
242
|
+
requestBodyParameters,
|
|
243
|
+
options
|
|
244
|
+
},
|
|
245
|
+
createOperationSpec
|
|
246
|
+
);
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
/**
|
|
250
|
+
* Patches the Tags field of a Azure Bare Metal Storage instance for the specified subscription,
|
|
251
|
+
* resource group, and instance name.
|
|
252
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
253
|
+
* @param azureBareMetalStorageInstanceName Name of the Azure Bare Metal Storage Instance, also known
|
|
254
|
+
* as the ResourceName.
|
|
255
|
+
* @param tagsParameter Request body that only contains the new Tags field
|
|
256
|
+
* @param options The options parameters.
|
|
257
|
+
*/
|
|
258
|
+
update(
|
|
259
|
+
resourceGroupName: string,
|
|
260
|
+
azureBareMetalStorageInstanceName: string,
|
|
261
|
+
tagsParameter: Tags,
|
|
262
|
+
options?: AzureBareMetalStorageInstancesUpdateOptionalParams
|
|
263
|
+
): Promise<AzureBareMetalStorageInstancesUpdateResponse> {
|
|
264
|
+
return this.client.sendOperationRequest(
|
|
265
|
+
{
|
|
266
|
+
resourceGroupName,
|
|
267
|
+
azureBareMetalStorageInstanceName,
|
|
268
|
+
tagsParameter,
|
|
269
|
+
options
|
|
270
|
+
},
|
|
271
|
+
updateOperationSpec
|
|
272
|
+
);
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
/**
|
|
276
|
+
* Delete an AzureBareMetalStorageInstance.
|
|
277
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
278
|
+
* @param azureBareMetalStorageInstanceName Name of the Azure Bare Metal Storage Instance, also known
|
|
279
|
+
* as the ResourceName.
|
|
280
|
+
* @param options The options parameters.
|
|
281
|
+
*/
|
|
282
|
+
delete(
|
|
283
|
+
resourceGroupName: string,
|
|
284
|
+
azureBareMetalStorageInstanceName: string,
|
|
285
|
+
options?: AzureBareMetalStorageInstancesDeleteOptionalParams
|
|
286
|
+
): Promise<void> {
|
|
287
|
+
return this.client.sendOperationRequest(
|
|
288
|
+
{ resourceGroupName, azureBareMetalStorageInstanceName, options },
|
|
289
|
+
deleteOperationSpec
|
|
290
|
+
);
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
/**
|
|
294
|
+
* ListBySubscriptionNext
|
|
295
|
+
* @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
|
|
296
|
+
* @param options The options parameters.
|
|
297
|
+
*/
|
|
298
|
+
private _listBySubscriptionNext(
|
|
299
|
+
nextLink: string,
|
|
300
|
+
options?: AzureBareMetalStorageInstancesListBySubscriptionNextOptionalParams
|
|
301
|
+
): Promise<AzureBareMetalStorageInstancesListBySubscriptionNextResponse> {
|
|
302
|
+
return this.client.sendOperationRequest(
|
|
303
|
+
{ nextLink, options },
|
|
304
|
+
listBySubscriptionNextOperationSpec
|
|
305
|
+
);
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
/**
|
|
309
|
+
* ListByResourceGroupNext
|
|
310
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
311
|
+
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
|
|
312
|
+
* @param options The options parameters.
|
|
313
|
+
*/
|
|
314
|
+
private _listByResourceGroupNext(
|
|
315
|
+
resourceGroupName: string,
|
|
316
|
+
nextLink: string,
|
|
317
|
+
options?: AzureBareMetalStorageInstancesListByResourceGroupNextOptionalParams
|
|
318
|
+
): Promise<AzureBareMetalStorageInstancesListByResourceGroupNextResponse> {
|
|
319
|
+
return this.client.sendOperationRequest(
|
|
320
|
+
{ resourceGroupName, nextLink, options },
|
|
321
|
+
listByResourceGroupNextOperationSpec
|
|
322
|
+
);
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
// Operation Specifications
|
|
326
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
327
|
+
|
|
328
|
+
const listBySubscriptionOperationSpec: coreClient.OperationSpec = {
|
|
329
|
+
path:
|
|
330
|
+
"/subscriptions/{subscriptionId}/providers/Microsoft.BareMetalInfrastructure/bareMetalStorageInstances",
|
|
331
|
+
httpMethod: "GET",
|
|
332
|
+
responses: {
|
|
333
|
+
200: {
|
|
334
|
+
bodyMapper: Mappers.AzureBareMetalStorageInstancesListResult
|
|
335
|
+
},
|
|
336
|
+
default: {
|
|
337
|
+
bodyMapper: Mappers.ErrorResponse
|
|
338
|
+
}
|
|
339
|
+
},
|
|
340
|
+
queryParameters: [Parameters.apiVersion],
|
|
341
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
342
|
+
headerParameters: [Parameters.accept],
|
|
343
|
+
serializer
|
|
344
|
+
};
|
|
345
|
+
const listByResourceGroupOperationSpec: coreClient.OperationSpec = {
|
|
346
|
+
path:
|
|
347
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BareMetalInfrastructure/bareMetalStorageInstances",
|
|
348
|
+
httpMethod: "GET",
|
|
349
|
+
responses: {
|
|
350
|
+
200: {
|
|
351
|
+
bodyMapper: Mappers.AzureBareMetalStorageInstancesListResult
|
|
352
|
+
},
|
|
353
|
+
default: {
|
|
354
|
+
bodyMapper: Mappers.ErrorResponse
|
|
355
|
+
}
|
|
356
|
+
},
|
|
357
|
+
queryParameters: [Parameters.apiVersion],
|
|
358
|
+
urlParameters: [
|
|
359
|
+
Parameters.$host,
|
|
360
|
+
Parameters.subscriptionId,
|
|
361
|
+
Parameters.resourceGroupName
|
|
362
|
+
],
|
|
363
|
+
headerParameters: [Parameters.accept],
|
|
364
|
+
serializer
|
|
365
|
+
};
|
|
366
|
+
const getOperationSpec: coreClient.OperationSpec = {
|
|
367
|
+
path:
|
|
368
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BareMetalInfrastructure/bareMetalStorageInstances/{azureBareMetalStorageInstanceName}",
|
|
369
|
+
httpMethod: "GET",
|
|
370
|
+
responses: {
|
|
371
|
+
200: {
|
|
372
|
+
bodyMapper: Mappers.AzureBareMetalStorageInstance
|
|
373
|
+
},
|
|
374
|
+
default: {
|
|
375
|
+
bodyMapper: Mappers.ErrorResponse
|
|
376
|
+
}
|
|
377
|
+
},
|
|
378
|
+
queryParameters: [Parameters.apiVersion],
|
|
379
|
+
urlParameters: [
|
|
380
|
+
Parameters.$host,
|
|
381
|
+
Parameters.subscriptionId,
|
|
382
|
+
Parameters.resourceGroupName,
|
|
383
|
+
Parameters.azureBareMetalStorageInstanceName
|
|
384
|
+
],
|
|
385
|
+
headerParameters: [Parameters.accept],
|
|
386
|
+
serializer
|
|
387
|
+
};
|
|
388
|
+
const createOperationSpec: coreClient.OperationSpec = {
|
|
389
|
+
path:
|
|
390
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BareMetalInfrastructure/bareMetalStorageInstances/{azureBareMetalStorageInstanceName}",
|
|
391
|
+
httpMethod: "PUT",
|
|
392
|
+
responses: {
|
|
393
|
+
200: {
|
|
394
|
+
bodyMapper: Mappers.AzureBareMetalStorageInstance
|
|
395
|
+
},
|
|
396
|
+
201: {
|
|
397
|
+
bodyMapper: Mappers.AzureBareMetalStorageInstance
|
|
398
|
+
},
|
|
399
|
+
default: {
|
|
400
|
+
bodyMapper: Mappers.ErrorResponse
|
|
401
|
+
}
|
|
402
|
+
},
|
|
403
|
+
requestBody: Parameters.requestBodyParameters,
|
|
404
|
+
queryParameters: [Parameters.apiVersion],
|
|
405
|
+
urlParameters: [
|
|
406
|
+
Parameters.$host,
|
|
407
|
+
Parameters.subscriptionId,
|
|
408
|
+
Parameters.resourceGroupName,
|
|
409
|
+
Parameters.azureBareMetalStorageInstanceName
|
|
410
|
+
],
|
|
411
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
412
|
+
mediaType: "json",
|
|
413
|
+
serializer
|
|
414
|
+
};
|
|
415
|
+
const updateOperationSpec: coreClient.OperationSpec = {
|
|
416
|
+
path:
|
|
417
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BareMetalInfrastructure/bareMetalStorageInstances/{azureBareMetalStorageInstanceName}",
|
|
418
|
+
httpMethod: "PATCH",
|
|
419
|
+
responses: {
|
|
420
|
+
200: {
|
|
421
|
+
bodyMapper: Mappers.AzureBareMetalStorageInstance
|
|
422
|
+
},
|
|
423
|
+
default: {
|
|
424
|
+
bodyMapper: Mappers.ErrorResponse
|
|
425
|
+
}
|
|
426
|
+
},
|
|
427
|
+
requestBody: Parameters.tagsParameter,
|
|
428
|
+
queryParameters: [Parameters.apiVersion],
|
|
429
|
+
urlParameters: [
|
|
430
|
+
Parameters.$host,
|
|
431
|
+
Parameters.subscriptionId,
|
|
432
|
+
Parameters.resourceGroupName,
|
|
433
|
+
Parameters.azureBareMetalStorageInstanceName
|
|
434
|
+
],
|
|
435
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
436
|
+
mediaType: "json",
|
|
437
|
+
serializer
|
|
438
|
+
};
|
|
439
|
+
const deleteOperationSpec: coreClient.OperationSpec = {
|
|
440
|
+
path:
|
|
441
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BareMetalInfrastructure/bareMetalStorageInstances/{azureBareMetalStorageInstanceName}",
|
|
442
|
+
httpMethod: "DELETE",
|
|
443
|
+
responses: {
|
|
444
|
+
200: {},
|
|
445
|
+
204: {},
|
|
446
|
+
default: {
|
|
447
|
+
bodyMapper: Mappers.ErrorResponse
|
|
448
|
+
}
|
|
449
|
+
},
|
|
450
|
+
queryParameters: [Parameters.apiVersion],
|
|
451
|
+
urlParameters: [
|
|
452
|
+
Parameters.$host,
|
|
453
|
+
Parameters.subscriptionId,
|
|
454
|
+
Parameters.resourceGroupName,
|
|
455
|
+
Parameters.azureBareMetalStorageInstanceName
|
|
456
|
+
],
|
|
457
|
+
headerParameters: [Parameters.accept],
|
|
458
|
+
serializer
|
|
459
|
+
};
|
|
460
|
+
const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = {
|
|
461
|
+
path: "{nextLink}",
|
|
462
|
+
httpMethod: "GET",
|
|
463
|
+
responses: {
|
|
464
|
+
200: {
|
|
465
|
+
bodyMapper: Mappers.AzureBareMetalStorageInstancesListResult
|
|
466
|
+
},
|
|
467
|
+
default: {
|
|
468
|
+
bodyMapper: Mappers.ErrorResponse
|
|
469
|
+
}
|
|
470
|
+
},
|
|
471
|
+
urlParameters: [
|
|
472
|
+
Parameters.$host,
|
|
473
|
+
Parameters.subscriptionId,
|
|
474
|
+
Parameters.nextLink
|
|
475
|
+
],
|
|
476
|
+
headerParameters: [Parameters.accept],
|
|
477
|
+
serializer
|
|
478
|
+
};
|
|
479
|
+
const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {
|
|
480
|
+
path: "{nextLink}",
|
|
481
|
+
httpMethod: "GET",
|
|
482
|
+
responses: {
|
|
483
|
+
200: {
|
|
484
|
+
bodyMapper: Mappers.AzureBareMetalStorageInstancesListResult
|
|
485
|
+
},
|
|
486
|
+
default: {
|
|
487
|
+
bodyMapper: Mappers.ErrorResponse
|
|
488
|
+
}
|
|
489
|
+
},
|
|
490
|
+
urlParameters: [
|
|
491
|
+
Parameters.$host,
|
|
492
|
+
Parameters.subscriptionId,
|
|
493
|
+
Parameters.resourceGroupName,
|
|
494
|
+
Parameters.nextLink
|
|
495
|
+
],
|
|
496
|
+
headerParameters: [Parameters.accept],
|
|
497
|
+
serializer
|
|
498
|
+
};
|
package/src/operations/index.ts
CHANGED
|
@@ -7,10 +7,17 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
+
import { SimplePollerLike, OperationState } from "@azure/core-lro";
|
|
10
11
|
import {
|
|
11
12
|
AzureBareMetalInstance,
|
|
12
13
|
AzureBareMetalInstancesListBySubscriptionOptionalParams,
|
|
13
14
|
AzureBareMetalInstancesListByResourceGroupOptionalParams,
|
|
15
|
+
AzureBareMetalInstancesStartOptionalParams,
|
|
16
|
+
AzureBareMetalInstancesStartResponse,
|
|
17
|
+
AzureBareMetalInstancesRestartOptionalParams,
|
|
18
|
+
AzureBareMetalInstancesRestartResponse,
|
|
19
|
+
AzureBareMetalInstancesShutdownOptionalParams,
|
|
20
|
+
AzureBareMetalInstancesShutdownResponse,
|
|
14
21
|
AzureBareMetalInstancesGetOptionalParams,
|
|
15
22
|
AzureBareMetalInstancesGetResponse,
|
|
16
23
|
Tags,
|
|
@@ -22,16 +29,16 @@ import {
|
|
|
22
29
|
/** Interface representing a AzureBareMetalInstances. */
|
|
23
30
|
export interface AzureBareMetalInstances {
|
|
24
31
|
/**
|
|
25
|
-
*
|
|
26
|
-
* various properties of each Azure
|
|
32
|
+
* Returns a list of Azure Bare Metal Instances in the specified subscription. The operations returns
|
|
33
|
+
* various properties of each Azure Bare Metal Instance.
|
|
27
34
|
* @param options The options parameters.
|
|
28
35
|
*/
|
|
29
36
|
listBySubscription(
|
|
30
37
|
options?: AzureBareMetalInstancesListBySubscriptionOptionalParams
|
|
31
38
|
): PagedAsyncIterableIterator<AzureBareMetalInstance>;
|
|
32
39
|
/**
|
|
33
|
-
* Gets a list of
|
|
34
|
-
* operations returns various properties of each Azure
|
|
40
|
+
* Gets a list of Azure Bare Metal Instances in the specified subscription and resource group. The
|
|
41
|
+
* operations returns various properties of each Azure Bare Metal Instance.
|
|
35
42
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
36
43
|
* @param options The options parameters.
|
|
37
44
|
*/
|
|
@@ -40,9 +47,97 @@ export interface AzureBareMetalInstances {
|
|
|
40
47
|
options?: AzureBareMetalInstancesListByResourceGroupOptionalParams
|
|
41
48
|
): PagedAsyncIterableIterator<AzureBareMetalInstance>;
|
|
42
49
|
/**
|
|
43
|
-
*
|
|
50
|
+
* The operation to start an Azure Bare Metal instance
|
|
44
51
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
45
|
-
* @param azureBareMetalInstanceName Name of the Azure
|
|
52
|
+
* @param azureBareMetalInstanceName Name of the Azure Bare Metal Instance, also known as the
|
|
53
|
+
* ResourceName.
|
|
54
|
+
* @param options The options parameters.
|
|
55
|
+
*/
|
|
56
|
+
beginStart(
|
|
57
|
+
resourceGroupName: string,
|
|
58
|
+
azureBareMetalInstanceName: string,
|
|
59
|
+
options?: AzureBareMetalInstancesStartOptionalParams
|
|
60
|
+
): Promise<
|
|
61
|
+
SimplePollerLike<
|
|
62
|
+
OperationState<AzureBareMetalInstancesStartResponse>,
|
|
63
|
+
AzureBareMetalInstancesStartResponse
|
|
64
|
+
>
|
|
65
|
+
>;
|
|
66
|
+
/**
|
|
67
|
+
* The operation to start an Azure Bare Metal instance
|
|
68
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
69
|
+
* @param azureBareMetalInstanceName Name of the Azure Bare Metal Instance, also known as the
|
|
70
|
+
* ResourceName.
|
|
71
|
+
* @param options The options parameters.
|
|
72
|
+
*/
|
|
73
|
+
beginStartAndWait(
|
|
74
|
+
resourceGroupName: string,
|
|
75
|
+
azureBareMetalInstanceName: string,
|
|
76
|
+
options?: AzureBareMetalInstancesStartOptionalParams
|
|
77
|
+
): Promise<AzureBareMetalInstancesStartResponse>;
|
|
78
|
+
/**
|
|
79
|
+
* The operation to restart an Azure Bare Metal Instance
|
|
80
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
81
|
+
* @param azureBareMetalInstanceName Name of the Azure Bare Metal Instance, also known as the
|
|
82
|
+
* ResourceName.
|
|
83
|
+
* @param options The options parameters.
|
|
84
|
+
*/
|
|
85
|
+
beginRestart(
|
|
86
|
+
resourceGroupName: string,
|
|
87
|
+
azureBareMetalInstanceName: string,
|
|
88
|
+
options?: AzureBareMetalInstancesRestartOptionalParams
|
|
89
|
+
): Promise<
|
|
90
|
+
SimplePollerLike<
|
|
91
|
+
OperationState<AzureBareMetalInstancesRestartResponse>,
|
|
92
|
+
AzureBareMetalInstancesRestartResponse
|
|
93
|
+
>
|
|
94
|
+
>;
|
|
95
|
+
/**
|
|
96
|
+
* The operation to restart an Azure Bare Metal Instance
|
|
97
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
98
|
+
* @param azureBareMetalInstanceName Name of the Azure Bare Metal Instance, also known as the
|
|
99
|
+
* ResourceName.
|
|
100
|
+
* @param options The options parameters.
|
|
101
|
+
*/
|
|
102
|
+
beginRestartAndWait(
|
|
103
|
+
resourceGroupName: string,
|
|
104
|
+
azureBareMetalInstanceName: string,
|
|
105
|
+
options?: AzureBareMetalInstancesRestartOptionalParams
|
|
106
|
+
): Promise<AzureBareMetalInstancesRestartResponse>;
|
|
107
|
+
/**
|
|
108
|
+
* The operation to shutdown an Azure Bare Metal Instance
|
|
109
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
110
|
+
* @param azureBareMetalInstanceName Name of the Azure Bare Metal Instance, also known as the
|
|
111
|
+
* ResourceName.
|
|
112
|
+
* @param options The options parameters.
|
|
113
|
+
*/
|
|
114
|
+
beginShutdown(
|
|
115
|
+
resourceGroupName: string,
|
|
116
|
+
azureBareMetalInstanceName: string,
|
|
117
|
+
options?: AzureBareMetalInstancesShutdownOptionalParams
|
|
118
|
+
): Promise<
|
|
119
|
+
SimplePollerLike<
|
|
120
|
+
OperationState<AzureBareMetalInstancesShutdownResponse>,
|
|
121
|
+
AzureBareMetalInstancesShutdownResponse
|
|
122
|
+
>
|
|
123
|
+
>;
|
|
124
|
+
/**
|
|
125
|
+
* The operation to shutdown an Azure Bare Metal Instance
|
|
126
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
127
|
+
* @param azureBareMetalInstanceName Name of the Azure Bare Metal Instance, also known as the
|
|
128
|
+
* ResourceName.
|
|
129
|
+
* @param options The options parameters.
|
|
130
|
+
*/
|
|
131
|
+
beginShutdownAndWait(
|
|
132
|
+
resourceGroupName: string,
|
|
133
|
+
azureBareMetalInstanceName: string,
|
|
134
|
+
options?: AzureBareMetalInstancesShutdownOptionalParams
|
|
135
|
+
): Promise<AzureBareMetalInstancesShutdownResponse>;
|
|
136
|
+
/**
|
|
137
|
+
* Gets an Azure Bare Metal Instance for the specified subscription, resource group, and instance name.
|
|
138
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
139
|
+
* @param azureBareMetalInstanceName Name of the Azure Bare Metal Instance, also known as the
|
|
140
|
+
* ResourceName.
|
|
46
141
|
* @param options The options parameters.
|
|
47
142
|
*/
|
|
48
143
|
get(
|
|
@@ -51,10 +146,11 @@ export interface AzureBareMetalInstances {
|
|
|
51
146
|
options?: AzureBareMetalInstancesGetOptionalParams
|
|
52
147
|
): Promise<AzureBareMetalInstancesGetResponse>;
|
|
53
148
|
/**
|
|
54
|
-
* Patches the Tags field of a Azure
|
|
55
|
-
* and instance name.
|
|
149
|
+
* Patches the Tags field of a Azure Bare Metal Instance for the specified subscription, resource
|
|
150
|
+
* group, and instance name.
|
|
56
151
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
57
|
-
* @param azureBareMetalInstanceName Name of the Azure
|
|
152
|
+
* @param azureBareMetalInstanceName Name of the Azure Bare Metal Instance, also known as the
|
|
153
|
+
* ResourceName.
|
|
58
154
|
* @param tagsParameter Request body that only contains the new Tags field
|
|
59
155
|
* @param options The options parameters.
|
|
60
156
|
*/
|