@azure/arm-baremetalinfrastructure 1.0.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (97) hide show
  1. package/CHANGELOG.md +5 -0
  2. package/LICENSE +21 -0
  3. package/README.md +109 -0
  4. package/dist/index.js +1378 -0
  5. package/dist/index.js.map +1 -0
  6. package/dist/index.min.js +1 -0
  7. package/dist/index.min.js.map +1 -0
  8. package/dist-esm/samples-dev/azureBareMetalInstancesGetSample.d.ts +2 -0
  9. package/dist-esm/samples-dev/azureBareMetalInstancesGetSample.d.ts.map +1 -0
  10. package/dist-esm/samples-dev/azureBareMetalInstancesGetSample.js +39 -0
  11. package/dist-esm/samples-dev/azureBareMetalInstancesGetSample.js.map +1 -0
  12. package/dist-esm/samples-dev/azureBareMetalInstancesListByResourceGroupSample.d.ts +2 -0
  13. package/dist-esm/samples-dev/azureBareMetalInstancesListByResourceGroupSample.d.ts.map +1 -0
  14. package/dist-esm/samples-dev/azureBareMetalInstancesListByResourceGroupSample.js +59 -0
  15. package/dist-esm/samples-dev/azureBareMetalInstancesListByResourceGroupSample.js.map +1 -0
  16. package/dist-esm/samples-dev/azureBareMetalInstancesListBySubscriptionSample.d.ts +2 -0
  17. package/dist-esm/samples-dev/azureBareMetalInstancesListBySubscriptionSample.d.ts.map +1 -0
  18. package/dist-esm/samples-dev/azureBareMetalInstancesListBySubscriptionSample.js +58 -0
  19. package/dist-esm/samples-dev/azureBareMetalInstancesListBySubscriptionSample.js.map +1 -0
  20. package/dist-esm/samples-dev/azureBareMetalInstancesUpdateSample.d.ts +2 -0
  21. package/dist-esm/samples-dev/azureBareMetalInstancesUpdateSample.d.ts.map +1 -0
  22. package/dist-esm/samples-dev/azureBareMetalInstancesUpdateSample.js +60 -0
  23. package/dist-esm/samples-dev/azureBareMetalInstancesUpdateSample.js.map +1 -0
  24. package/dist-esm/samples-dev/operationsListSample.d.ts +2 -0
  25. package/dist-esm/samples-dev/operationsListSample.d.ts.map +1 -0
  26. package/dist-esm/samples-dev/operationsListSample.js +58 -0
  27. package/dist-esm/samples-dev/operationsListSample.js.map +1 -0
  28. package/dist-esm/src/bareMetalInfrastructureClient.d.ts +21 -0
  29. package/dist-esm/src/bareMetalInfrastructureClient.d.ts.map +1 -0
  30. package/dist-esm/src/bareMetalInfrastructureClient.js +101 -0
  31. package/dist-esm/src/bareMetalInfrastructureClient.js.map +1 -0
  32. package/dist-esm/src/index.d.ts +6 -0
  33. package/dist-esm/src/index.d.ts.map +1 -0
  34. package/dist-esm/src/index.js +13 -0
  35. package/dist-esm/src/index.js.map +1 -0
  36. package/dist-esm/src/models/index.d.ts +519 -0
  37. package/dist-esm/src/models/index.d.ts.map +1 -0
  38. package/dist-esm/src/models/index.js +152 -0
  39. package/dist-esm/src/models/index.js.map +1 -0
  40. package/dist-esm/src/models/mappers.d.ts +20 -0
  41. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  42. package/dist-esm/src/models/mappers.js +513 -0
  43. package/dist-esm/src/models/mappers.js.map +1 -0
  44. package/dist-esm/src/models/parameters.d.ts +11 -0
  45. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  46. package/dist-esm/src/models/parameters.js +105 -0
  47. package/dist-esm/src/models/parameters.js.map +1 -0
  48. package/dist-esm/src/operations/azureBareMetalInstances.d.ts +73 -0
  49. package/dist-esm/src/operations/azureBareMetalInstances.d.ts.map +1 -0
  50. package/dist-esm/src/operations/azureBareMetalInstances.js +334 -0
  51. package/dist-esm/src/operations/azureBareMetalInstances.js.map +1 -0
  52. package/dist-esm/src/operations/index.d.ts +3 -0
  53. package/dist-esm/src/operations/index.d.ts.map +1 -0
  54. package/dist-esm/src/operations/index.js +10 -0
  55. package/dist-esm/src/operations/index.js.map +1 -0
  56. package/dist-esm/src/operations/operations.d.ts +26 -0
  57. package/dist-esm/src/operations/operations.d.ts.map +1 -0
  58. package/dist-esm/src/operations/operations.js +101 -0
  59. package/dist-esm/src/operations/operations.js.map +1 -0
  60. package/dist-esm/src/operationsInterfaces/azureBareMetalInstances.d.ts +35 -0
  61. package/dist-esm/src/operationsInterfaces/azureBareMetalInstances.d.ts.map +1 -0
  62. package/dist-esm/src/operationsInterfaces/azureBareMetalInstances.js +9 -0
  63. package/dist-esm/src/operationsInterfaces/azureBareMetalInstances.js.map +1 -0
  64. package/dist-esm/src/operationsInterfaces/index.d.ts +3 -0
  65. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  66. package/dist-esm/src/operationsInterfaces/index.js +10 -0
  67. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  68. package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
  69. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
  70. package/dist-esm/src/operationsInterfaces/operations.js +9 -0
  71. package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
  72. package/dist-esm/src/pagingHelper.d.ts +13 -0
  73. package/dist-esm/src/pagingHelper.d.ts.map +1 -0
  74. package/dist-esm/src/pagingHelper.js +32 -0
  75. package/dist-esm/src/pagingHelper.js.map +1 -0
  76. package/dist-esm/test/baremetalinfrastructure_operations_test.spec.d.ts +4 -0
  77. package/dist-esm/test/baremetalinfrastructure_operations_test.spec.d.ts.map +1 -0
  78. package/dist-esm/test/baremetalinfrastructure_operations_test.spec.js +78 -0
  79. package/dist-esm/test/baremetalinfrastructure_operations_test.spec.js.map +1 -0
  80. package/package.json +121 -0
  81. package/review/arm-baremetalinfrastructure.api.md +325 -0
  82. package/rollup.config.js +122 -0
  83. package/src/bareMetalInfrastructureClient.ts +142 -0
  84. package/src/index.ts +13 -0
  85. package/src/models/index.ts +566 -0
  86. package/src/models/mappers.ts +549 -0
  87. package/src/models/parameters.ts +119 -0
  88. package/src/operations/azureBareMetalInstances.ts +395 -0
  89. package/src/operations/index.ts +10 -0
  90. package/src/operations/operations.ts +103 -0
  91. package/src/operationsInterfaces/azureBareMetalInstances.ts +67 -0
  92. package/src/operationsInterfaces/index.ts +10 -0
  93. package/src/operationsInterfaces/operations.ts +22 -0
  94. package/src/pagingHelper.ts +39 -0
  95. package/tsconfig.json +33 -0
  96. package/types/arm-baremetalinfrastructure.d.ts +633 -0
  97. package/types/tsdoc-metadata.json +11 -0
@@ -0,0 +1,73 @@
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { AzureBareMetalInstances } from "../operationsInterfaces";
3
+ import { BareMetalInfrastructureClient } from "../bareMetalInfrastructureClient";
4
+ import { AzureBareMetalInstance, AzureBareMetalInstancesListBySubscriptionOptionalParams, AzureBareMetalInstancesListByResourceGroupOptionalParams, AzureBareMetalInstancesGetOptionalParams, AzureBareMetalInstancesGetResponse, Tags, AzureBareMetalInstancesUpdateOptionalParams, AzureBareMetalInstancesUpdateResponse } from "../models";
5
+ /** Class containing AzureBareMetalInstances operations. */
6
+ export declare class AzureBareMetalInstancesImpl implements AzureBareMetalInstances {
7
+ private readonly client;
8
+ /**
9
+ * Initialize a new instance of the class AzureBareMetalInstances class.
10
+ * @param client Reference to the service client
11
+ */
12
+ constructor(client: BareMetalInfrastructureClient);
13
+ /**
14
+ * Gets a list of AzureBareMetal instances in the specified subscription. The operations returns
15
+ * various properties of each Azure BareMetal instance.
16
+ * @param options The options parameters.
17
+ */
18
+ listBySubscription(options?: AzureBareMetalInstancesListBySubscriptionOptionalParams): PagedAsyncIterableIterator<AzureBareMetalInstance>;
19
+ private listBySubscriptionPagingPage;
20
+ private listBySubscriptionPagingAll;
21
+ /**
22
+ * Gets a list of AzureBareMetal instances in the specified subscription and resource group. The
23
+ * operations returns various properties of each Azure BareMetal instance.
24
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
25
+ * @param options The options parameters.
26
+ */
27
+ listByResourceGroup(resourceGroupName: string, options?: AzureBareMetalInstancesListByResourceGroupOptionalParams): PagedAsyncIterableIterator<AzureBareMetalInstance>;
28
+ private listByResourceGroupPagingPage;
29
+ private listByResourceGroupPagingAll;
30
+ /**
31
+ * Gets a list of AzureBareMetal instances in the specified subscription. The operations returns
32
+ * various properties of each Azure BareMetal instance.
33
+ * @param options The options parameters.
34
+ */
35
+ private _listBySubscription;
36
+ /**
37
+ * Gets a list of AzureBareMetal instances in the specified subscription and resource group. The
38
+ * operations returns various properties of each Azure BareMetal instance.
39
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
40
+ * @param options The options parameters.
41
+ */
42
+ private _listByResourceGroup;
43
+ /**
44
+ * Gets an Azure BareMetal instance for the specified subscription, resource group, and instance name.
45
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
46
+ * @param azureBareMetalInstanceName Name of the Azure BareMetal on Azure instance.
47
+ * @param options The options parameters.
48
+ */
49
+ get(resourceGroupName: string, azureBareMetalInstanceName: string, options?: AzureBareMetalInstancesGetOptionalParams): Promise<AzureBareMetalInstancesGetResponse>;
50
+ /**
51
+ * Patches the Tags field of a Azure BareMetal instance for the specified subscription, resource group,
52
+ * and instance name.
53
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
54
+ * @param azureBareMetalInstanceName Name of the Azure BareMetal on Azure instance.
55
+ * @param tagsParameter Request body that only contains the new Tags field
56
+ * @param options The options parameters.
57
+ */
58
+ update(resourceGroupName: string, azureBareMetalInstanceName: string, tagsParameter: Tags, options?: AzureBareMetalInstancesUpdateOptionalParams): Promise<AzureBareMetalInstancesUpdateResponse>;
59
+ /**
60
+ * ListBySubscriptionNext
61
+ * @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
62
+ * @param options The options parameters.
63
+ */
64
+ private _listBySubscriptionNext;
65
+ /**
66
+ * ListByResourceGroupNext
67
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
68
+ * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
69
+ * @param options The options parameters.
70
+ */
71
+ private _listByResourceGroupNext;
72
+ }
73
+ //# sourceMappingURL=azureBareMetalInstances.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"azureBareMetalInstances.d.ts","sourceRoot":"","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AAuB;IAU/B;;;;;OAKG;IACH,OAAO,CAAC,wBAAwB;CAUjC"}
@@ -0,0 +1,334 @@
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
+ import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
9
+ import { setContinuationToken } from "../pagingHelper";
10
+ import * as coreClient from "@azure/core-client";
11
+ import * as Mappers from "../models/mappers";
12
+ import * as Parameters from "../models/parameters";
13
+ /// <reference lib="esnext.asynciterable" />
14
+ /** Class containing AzureBareMetalInstances operations. */
15
+ export class AzureBareMetalInstancesImpl {
16
+ /**
17
+ * Initialize a new instance of the class AzureBareMetalInstances class.
18
+ * @param client Reference to the service client
19
+ */
20
+ constructor(client) {
21
+ this.client = client;
22
+ }
23
+ /**
24
+ * Gets a list of AzureBareMetal instances in the specified subscription. The operations returns
25
+ * various properties of each Azure BareMetal instance.
26
+ * @param options The options parameters.
27
+ */
28
+ listBySubscription(options) {
29
+ const iter = this.listBySubscriptionPagingAll(options);
30
+ return {
31
+ next() {
32
+ return iter.next();
33
+ },
34
+ [Symbol.asyncIterator]() {
35
+ return this;
36
+ },
37
+ byPage: (settings) => {
38
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
39
+ throw new Error("maxPageSize is not supported by this operation.");
40
+ }
41
+ return this.listBySubscriptionPagingPage(options, settings);
42
+ }
43
+ };
44
+ }
45
+ listBySubscriptionPagingPage(options, settings) {
46
+ return __asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
47
+ let result;
48
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
49
+ if (!continuationToken) {
50
+ result = yield __await(this._listBySubscription(options));
51
+ let page = result.value || [];
52
+ continuationToken = result.nextLink;
53
+ setContinuationToken(page, continuationToken);
54
+ yield yield __await(page);
55
+ }
56
+ while (continuationToken) {
57
+ result = yield __await(this._listBySubscriptionNext(continuationToken, options));
58
+ continuationToken = result.nextLink;
59
+ let page = result.value || [];
60
+ setContinuationToken(page, continuationToken);
61
+ yield yield __await(page);
62
+ }
63
+ });
64
+ }
65
+ listBySubscriptionPagingAll(options) {
66
+ return __asyncGenerator(this, arguments, function* listBySubscriptionPagingAll_1() {
67
+ var _a, e_1, _b, _c;
68
+ try {
69
+ for (var _d = true, _e = __asyncValues(this.listBySubscriptionPagingPage(options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a;) {
70
+ _c = _f.value;
71
+ _d = false;
72
+ try {
73
+ const page = _c;
74
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
75
+ }
76
+ finally {
77
+ _d = true;
78
+ }
79
+ }
80
+ }
81
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
82
+ finally {
83
+ try {
84
+ if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
85
+ }
86
+ finally { if (e_1) throw e_1.error; }
87
+ }
88
+ });
89
+ }
90
+ /**
91
+ * Gets a list of AzureBareMetal instances in the specified subscription and resource group. The
92
+ * operations returns various properties of each Azure BareMetal instance.
93
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
94
+ * @param options The options parameters.
95
+ */
96
+ listByResourceGroup(resourceGroupName, options) {
97
+ const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
98
+ return {
99
+ next() {
100
+ return iter.next();
101
+ },
102
+ [Symbol.asyncIterator]() {
103
+ return this;
104
+ },
105
+ byPage: (settings) => {
106
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
107
+ throw new Error("maxPageSize is not supported by this operation.");
108
+ }
109
+ return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
110
+ }
111
+ };
112
+ }
113
+ listByResourceGroupPagingPage(resourceGroupName, options, settings) {
114
+ return __asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
115
+ let result;
116
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
117
+ if (!continuationToken) {
118
+ result = yield __await(this._listByResourceGroup(resourceGroupName, options));
119
+ let page = result.value || [];
120
+ continuationToken = result.nextLink;
121
+ setContinuationToken(page, continuationToken);
122
+ yield yield __await(page);
123
+ }
124
+ while (continuationToken) {
125
+ result = yield __await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
126
+ continuationToken = result.nextLink;
127
+ let page = result.value || [];
128
+ setContinuationToken(page, continuationToken);
129
+ yield yield __await(page);
130
+ }
131
+ });
132
+ }
133
+ listByResourceGroupPagingAll(resourceGroupName, options) {
134
+ return __asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
135
+ var _a, e_2, _b, _c;
136
+ try {
137
+ for (var _d = true, _e = __asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a;) {
138
+ _c = _f.value;
139
+ _d = false;
140
+ try {
141
+ const page = _c;
142
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
143
+ }
144
+ finally {
145
+ _d = true;
146
+ }
147
+ }
148
+ }
149
+ catch (e_2_1) { e_2 = { error: e_2_1 }; }
150
+ finally {
151
+ try {
152
+ if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
153
+ }
154
+ finally { if (e_2) throw e_2.error; }
155
+ }
156
+ });
157
+ }
158
+ /**
159
+ * Gets a list of AzureBareMetal instances in the specified subscription. The operations returns
160
+ * various properties of each Azure BareMetal instance.
161
+ * @param options The options parameters.
162
+ */
163
+ _listBySubscription(options) {
164
+ return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec);
165
+ }
166
+ /**
167
+ * Gets a list of AzureBareMetal instances in the specified subscription and resource group. The
168
+ * operations returns various properties of each Azure BareMetal instance.
169
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
170
+ * @param options The options parameters.
171
+ */
172
+ _listByResourceGroup(resourceGroupName, options) {
173
+ return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
174
+ }
175
+ /**
176
+ * Gets an Azure BareMetal instance for the specified subscription, resource group, and instance name.
177
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
178
+ * @param azureBareMetalInstanceName Name of the Azure BareMetal on Azure instance.
179
+ * @param options The options parameters.
180
+ */
181
+ get(resourceGroupName, azureBareMetalInstanceName, options) {
182
+ return this.client.sendOperationRequest({ resourceGroupName, azureBareMetalInstanceName, options }, getOperationSpec);
183
+ }
184
+ /**
185
+ * Patches the Tags field of a Azure BareMetal instance for the specified subscription, resource group,
186
+ * and instance name.
187
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
188
+ * @param azureBareMetalInstanceName Name of the Azure BareMetal on Azure instance.
189
+ * @param tagsParameter Request body that only contains the new Tags field
190
+ * @param options The options parameters.
191
+ */
192
+ update(resourceGroupName, azureBareMetalInstanceName, tagsParameter, options) {
193
+ return this.client.sendOperationRequest({ resourceGroupName, azureBareMetalInstanceName, tagsParameter, options }, updateOperationSpec);
194
+ }
195
+ /**
196
+ * ListBySubscriptionNext
197
+ * @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
198
+ * @param options The options parameters.
199
+ */
200
+ _listBySubscriptionNext(nextLink, options) {
201
+ return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionNextOperationSpec);
202
+ }
203
+ /**
204
+ * ListByResourceGroupNext
205
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
206
+ * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
207
+ * @param options The options parameters.
208
+ */
209
+ _listByResourceGroupNext(resourceGroupName, nextLink, options) {
210
+ return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
211
+ }
212
+ }
213
+ // Operation Specifications
214
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
215
+ const listBySubscriptionOperationSpec = {
216
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.BareMetalInfrastructure/bareMetalInstances",
217
+ httpMethod: "GET",
218
+ responses: {
219
+ 200: {
220
+ bodyMapper: Mappers.AzureBareMetalInstancesListResult
221
+ },
222
+ default: {
223
+ bodyMapper: Mappers.ErrorResponse
224
+ }
225
+ },
226
+ queryParameters: [Parameters.apiVersion],
227
+ urlParameters: [Parameters.$host, Parameters.subscriptionId],
228
+ headerParameters: [Parameters.accept],
229
+ serializer
230
+ };
231
+ const listByResourceGroupOperationSpec = {
232
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BareMetalInfrastructure/bareMetalInstances",
233
+ httpMethod: "GET",
234
+ responses: {
235
+ 200: {
236
+ bodyMapper: Mappers.AzureBareMetalInstancesListResult
237
+ },
238
+ default: {
239
+ bodyMapper: Mappers.ErrorResponse
240
+ }
241
+ },
242
+ queryParameters: [Parameters.apiVersion],
243
+ urlParameters: [
244
+ Parameters.$host,
245
+ Parameters.subscriptionId,
246
+ Parameters.resourceGroupName
247
+ ],
248
+ headerParameters: [Parameters.accept],
249
+ serializer
250
+ };
251
+ const getOperationSpec = {
252
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BareMetalInfrastructure/bareMetalInstances/{azureBareMetalInstanceName}",
253
+ httpMethod: "GET",
254
+ responses: {
255
+ 200: {
256
+ bodyMapper: Mappers.AzureBareMetalInstance
257
+ },
258
+ default: {
259
+ bodyMapper: Mappers.ErrorResponse
260
+ }
261
+ },
262
+ queryParameters: [Parameters.apiVersion],
263
+ urlParameters: [
264
+ Parameters.$host,
265
+ Parameters.subscriptionId,
266
+ Parameters.resourceGroupName,
267
+ Parameters.azureBareMetalInstanceName
268
+ ],
269
+ headerParameters: [Parameters.accept],
270
+ serializer
271
+ };
272
+ const updateOperationSpec = {
273
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BareMetalInfrastructure/bareMetalInstances/{azureBareMetalInstanceName}",
274
+ httpMethod: "PATCH",
275
+ responses: {
276
+ 200: {
277
+ bodyMapper: Mappers.AzureBareMetalInstance
278
+ },
279
+ default: {
280
+ bodyMapper: Mappers.ErrorResponse
281
+ }
282
+ },
283
+ requestBody: Parameters.tagsParameter,
284
+ queryParameters: [Parameters.apiVersion],
285
+ urlParameters: [
286
+ Parameters.$host,
287
+ Parameters.subscriptionId,
288
+ Parameters.resourceGroupName,
289
+ Parameters.azureBareMetalInstanceName
290
+ ],
291
+ headerParameters: [Parameters.accept, Parameters.contentType],
292
+ mediaType: "json",
293
+ serializer
294
+ };
295
+ const listBySubscriptionNextOperationSpec = {
296
+ path: "{nextLink}",
297
+ httpMethod: "GET",
298
+ responses: {
299
+ 200: {
300
+ bodyMapper: Mappers.AzureBareMetalInstancesListResult
301
+ },
302
+ default: {
303
+ bodyMapper: Mappers.ErrorResponse
304
+ }
305
+ },
306
+ urlParameters: [
307
+ Parameters.$host,
308
+ Parameters.subscriptionId,
309
+ Parameters.nextLink
310
+ ],
311
+ headerParameters: [Parameters.accept],
312
+ serializer
313
+ };
314
+ const listByResourceGroupNextOperationSpec = {
315
+ path: "{nextLink}",
316
+ httpMethod: "GET",
317
+ responses: {
318
+ 200: {
319
+ bodyMapper: Mappers.AzureBareMetalInstancesListResult
320
+ },
321
+ default: {
322
+ bodyMapper: Mappers.ErrorResponse
323
+ }
324
+ },
325
+ urlParameters: [
326
+ Parameters.$host,
327
+ Parameters.subscriptionId,
328
+ Parameters.resourceGroupName,
329
+ Parameters.nextLink
330
+ ],
331
+ headerParameters: [Parameters.accept],
332
+ serializer
333
+ };
334
+ //# sourceMappingURL=azureBareMetalInstances.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"azureBareMetalInstances.js","sourceRoot":"","sources":["../../../src/operations/azureBareMetalInstances.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAEvD,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK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AU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from "./azureBareMetalInstances";
2
+ export * from "./operations";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":"AAQA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,cAAc,CAAC"}
@@ -0,0 +1,10 @@
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
+ export * from "./azureBareMetalInstances";
9
+ export * from "./operations";
10
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,2BAA2B,CAAC;AAC1C,cAAc,cAAc,CAAC"}
@@ -0,0 +1,26 @@
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { Operations } from "../operationsInterfaces";
3
+ import { BareMetalInfrastructureClient } from "../bareMetalInfrastructureClient";
4
+ import { Operation, OperationsListOptionalParams } from "../models";
5
+ /** Class containing Operations operations. */
6
+ export declare class OperationsImpl implements Operations {
7
+ private readonly client;
8
+ /**
9
+ * Initialize a new instance of the class Operations class.
10
+ * @param client Reference to the service client
11
+ */
12
+ constructor(client: BareMetalInfrastructureClient);
13
+ /**
14
+ * Gets a list of AzureBareMetal management operations.
15
+ * @param options The options parameters.
16
+ */
17
+ list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator<Operation>;
18
+ private listPagingPage;
19
+ private listPagingAll;
20
+ /**
21
+ * Gets a list of AzureBareMetal management operations.
22
+ * @param options The options parameters.
23
+ */
24
+ private _list;
25
+ }
26
+ //# sourceMappingURL=operations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../src/operations/operations.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAC9E,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAIrD,OAAO,EAAE,6BAA6B,EAAE,MAAM,kCAAkC,CAAC;AACjF,OAAO,EACL,SAAS,EACT,4BAA4B,EAE7B,MAAM,WAAW,CAAC;AAGnB,8CAA8C;AAC9C,qBAAa,cAAe,YAAW,UAAU;IAC/C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAgC;IAEvD;;;OAGG;gBACS,MAAM,EAAE,6BAA6B;IAIjD;;;OAGG;IACI,IAAI,CACT,OAAO,CAAC,EAAE,4BAA4B,GACrC,0BAA0B,CAAC,SAAS,CAAC;YAkBzB,cAAc;YASd,aAAa;IAQ5B;;;OAGG;IACH,OAAO,CAAC,KAAK;CAKd"}
@@ -0,0 +1,101 @@
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
+ import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
9
+ import * as coreClient from "@azure/core-client";
10
+ import * as Mappers from "../models/mappers";
11
+ import * as Parameters from "../models/parameters";
12
+ /// <reference lib="esnext.asynciterable" />
13
+ /** Class containing Operations operations. */
14
+ export class OperationsImpl {
15
+ /**
16
+ * Initialize a new instance of the class Operations class.
17
+ * @param client Reference to the service client
18
+ */
19
+ constructor(client) {
20
+ this.client = client;
21
+ }
22
+ /**
23
+ * Gets a list of AzureBareMetal management operations.
24
+ * @param options The options parameters.
25
+ */
26
+ list(options) {
27
+ const iter = this.listPagingAll(options);
28
+ return {
29
+ next() {
30
+ return iter.next();
31
+ },
32
+ [Symbol.asyncIterator]() {
33
+ return this;
34
+ },
35
+ byPage: (settings) => {
36
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
37
+ throw new Error("maxPageSize is not supported by this operation.");
38
+ }
39
+ return this.listPagingPage(options, settings);
40
+ }
41
+ };
42
+ }
43
+ listPagingPage(options, _settings) {
44
+ return __asyncGenerator(this, arguments, function* listPagingPage_1() {
45
+ let result;
46
+ result = yield __await(this._list(options));
47
+ yield yield __await(result.value || []);
48
+ });
49
+ }
50
+ listPagingAll(options) {
51
+ return __asyncGenerator(this, arguments, function* listPagingAll_1() {
52
+ var _a, e_1, _b, _c;
53
+ try {
54
+ for (var _d = true, _e = __asyncValues(this.listPagingPage(options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a;) {
55
+ _c = _f.value;
56
+ _d = false;
57
+ try {
58
+ const page = _c;
59
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
60
+ }
61
+ finally {
62
+ _d = true;
63
+ }
64
+ }
65
+ }
66
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
67
+ finally {
68
+ try {
69
+ if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
70
+ }
71
+ finally { if (e_1) throw e_1.error; }
72
+ }
73
+ });
74
+ }
75
+ /**
76
+ * Gets a list of AzureBareMetal management operations.
77
+ * @param options The options parameters.
78
+ */
79
+ _list(options) {
80
+ return this.client.sendOperationRequest({ options }, listOperationSpec);
81
+ }
82
+ }
83
+ // Operation Specifications
84
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
85
+ const listOperationSpec = {
86
+ path: "/providers/Microsoft.BareMetalInfrastructure/operations",
87
+ httpMethod: "GET",
88
+ responses: {
89
+ 200: {
90
+ bodyMapper: Mappers.OperationList
91
+ },
92
+ default: {
93
+ bodyMapper: Mappers.ErrorResponse
94
+ }
95
+ },
96
+ queryParameters: [Parameters.apiVersion],
97
+ urlParameters: [Parameters.$host],
98
+ headerParameters: [Parameters.accept],
99
+ serializer
100
+ };
101
+ //# sourceMappingURL=operations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/operations/operations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAIH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAQnD,4CAA4C;AAC5C,8CAA8C;AAC9C,MAAM,OAAO,cAAc;IAGzB;;;OAGG;IACH,YAAY,MAAqC;QAC/C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACI,IAAI,CACT,OAAsC;QAEtC,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QACzC,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,WAAW,EAAE;oBACzB,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;iBACpE;gBACD,OAAO,IAAI,CAAC,cAAc,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;YAChD,CAAC;SACF,CAAC;IACJ,CAAC;IAEc,cAAc,CAC3B,OAAsC,EACtC,SAAwB;;YAExB,IAAI,MAA8B,CAAC;YACnC,MAAM,GAAG,cAAM,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAA,CAAC;YACnC,oBAAM,MAAM,CAAC,KAAK,IAAI,EAAE,CAAA,CAAC;QAC3B,CAAC;KAAA;IAEc,aAAa,CAC1B,OAAsC;;;;gBAEtC,KAAyB,eAAA,KAAA,cAAA,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,CAAA,IAAA;oBAA5B,cAA4B;oBAA5B,WAA4B;;wBAA1C,MAAM,IAAI,KAAA,CAAA;wBACnB,cAAA,KAAK,CAAC,CAAC,iBAAA,cAAA,IAAI,CAAA,CAAA,CAAA,CAAC;;;;;iBACb;;;;;;;;;QACH,CAAC;KAAA;IAED;;;OAGG;IACK,KAAK,CACX,OAAsC;QAEtC,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CAAC,EAAE,OAAO,EAAE,EAAE,iBAAiB,CAAC,CAAC;IAC1E,CAAC;CACF;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,iBAAiB,GAA6B;IAClD,IAAI,EAAE,yDAAyD;IAC/D,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC;IACjC,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC"}
@@ -0,0 +1,35 @@
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { AzureBareMetalInstance, AzureBareMetalInstancesListBySubscriptionOptionalParams, AzureBareMetalInstancesListByResourceGroupOptionalParams, AzureBareMetalInstancesGetOptionalParams, AzureBareMetalInstancesGetResponse, Tags, AzureBareMetalInstancesUpdateOptionalParams, AzureBareMetalInstancesUpdateResponse } from "../models";
3
+ /** Interface representing a AzureBareMetalInstances. */
4
+ export interface AzureBareMetalInstances {
5
+ /**
6
+ * Gets a list of AzureBareMetal instances in the specified subscription. The operations returns
7
+ * various properties of each Azure BareMetal instance.
8
+ * @param options The options parameters.
9
+ */
10
+ listBySubscription(options?: AzureBareMetalInstancesListBySubscriptionOptionalParams): PagedAsyncIterableIterator<AzureBareMetalInstance>;
11
+ /**
12
+ * Gets a list of AzureBareMetal instances in the specified subscription and resource group. The
13
+ * operations returns various properties of each Azure BareMetal instance.
14
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
15
+ * @param options The options parameters.
16
+ */
17
+ listByResourceGroup(resourceGroupName: string, options?: AzureBareMetalInstancesListByResourceGroupOptionalParams): PagedAsyncIterableIterator<AzureBareMetalInstance>;
18
+ /**
19
+ * Gets an Azure BareMetal instance for the specified subscription, resource group, and instance name.
20
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
21
+ * @param azureBareMetalInstanceName Name of the Azure BareMetal on Azure instance.
22
+ * @param options The options parameters.
23
+ */
24
+ get(resourceGroupName: string, azureBareMetalInstanceName: string, options?: AzureBareMetalInstancesGetOptionalParams): Promise<AzureBareMetalInstancesGetResponse>;
25
+ /**
26
+ * Patches the Tags field of a Azure BareMetal instance for the specified subscription, resource group,
27
+ * and instance name.
28
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
29
+ * @param azureBareMetalInstanceName Name of the Azure BareMetal on Azure instance.
30
+ * @param tagsParameter Request body that only contains the new Tags field
31
+ * @param options The options parameters.
32
+ */
33
+ update(resourceGroupName: string, azureBareMetalInstanceName: string, tagsParameter: Tags, options?: AzureBareMetalInstancesUpdateOptionalParams): Promise<AzureBareMetalInstancesUpdateResponse>;
34
+ }
35
+ //# sourceMappingURL=azureBareMetalInstances.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"azureBareMetalInstances.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/azureBareMetalInstances.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EACL,sBAAsB,EACtB,uDAAuD,EACvD,wDAAwD,EACxD,wCAAwC,EACxC,kCAAkC,EAClC,IAAI,EACJ,2CAA2C,EAC3C,qCAAqC,EACtC,MAAM,WAAW,CAAC;AAGnB,wDAAwD;AACxD,MAAM,WAAW,uBAAuB;IACtC;;;;OAIG;IACH,kBAAkB,CAChB,OAAO,CAAC,EAAE,uDAAuD,GAChE,0BAA0B,CAAC,sBAAsB,CAAC,CAAC;IACtD;;;;;OAKG;IACH,mBAAmB,CACjB,iBAAiB,EAAE,MAAM,EACzB,OAAO,CAAC,EAAE,wDAAwD,GACjE,0BAA0B,CAAC,sBAAsB,CAAC,CAAC;IACtD;;;;;OAKG;IACH,GAAG,CACD,iBAAiB,EAAE,MAAM,EACzB,0BAA0B,EAAE,MAAM,EAClC,OAAO,CAAC,EAAE,wCAAwC,GACjD,OAAO,CAAC,kCAAkC,CAAC,CAAC;IAC/C;;;;;;;OAOG;IACH,MAAM,CACJ,iBAAiB,EAAE,MAAM,EACzB,0BAA0B,EAAE,MAAM,EAClC,aAAa,EAAE,IAAI,EACnB,OAAO,CAAC,EAAE,2CAA2C,GACpD,OAAO,CAAC,qCAAqC,CAAC,CAAC;CACnD"}
@@ -0,0 +1,9 @@
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
+ export {};
9
+ //# sourceMappingURL=azureBareMetalInstances.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"azureBareMetalInstances.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/azureBareMetalInstances.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
@@ -0,0 +1,3 @@
1
+ export * from "./azureBareMetalInstances";
2
+ export * from "./operations";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAQA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,cAAc,CAAC"}