@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.
Files changed (113) hide show
  1. package/CHANGELOG.md +71 -0
  2. package/README.md +2 -2
  3. package/dist/index.js +1234 -194
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.min.js +1 -1
  6. package/dist/index.min.js.map +1 -1
  7. package/dist-esm/samples-dev/azureBareMetalInstancesGetSample.js +3 -3
  8. package/dist-esm/samples-dev/azureBareMetalInstancesListByResourceGroupSample.js +6 -11
  9. package/dist-esm/samples-dev/azureBareMetalInstancesListByResourceGroupSample.js.map +1 -1
  10. package/dist-esm/samples-dev/azureBareMetalInstancesListBySubscriptionSample.js +6 -11
  11. package/dist-esm/samples-dev/azureBareMetalInstancesListBySubscriptionSample.js.map +1 -1
  12. package/dist-esm/samples-dev/azureBareMetalInstancesRestartSample.d.ts +2 -0
  13. package/dist-esm/samples-dev/azureBareMetalInstancesRestartSample.d.ts.map +1 -0
  14. package/dist-esm/samples-dev/azureBareMetalInstancesRestartSample.js +39 -0
  15. package/dist-esm/samples-dev/azureBareMetalInstancesRestartSample.js.map +1 -0
  16. package/dist-esm/samples-dev/azureBareMetalInstancesShutdownSample.d.ts +2 -0
  17. package/dist-esm/samples-dev/azureBareMetalInstancesShutdownSample.d.ts.map +1 -0
  18. package/dist-esm/samples-dev/azureBareMetalInstancesShutdownSample.js +39 -0
  19. package/dist-esm/samples-dev/azureBareMetalInstancesShutdownSample.js.map +1 -0
  20. package/dist-esm/samples-dev/azureBareMetalInstancesStartSample.d.ts +2 -0
  21. package/dist-esm/samples-dev/azureBareMetalInstancesStartSample.d.ts.map +1 -0
  22. package/dist-esm/samples-dev/azureBareMetalInstancesStartSample.js +39 -0
  23. package/dist-esm/samples-dev/azureBareMetalInstancesStartSample.js.map +1 -0
  24. package/dist-esm/samples-dev/azureBareMetalInstancesUpdateSample.js +6 -6
  25. package/dist-esm/samples-dev/azureBareMetalStorageInstancesCreateSample.d.ts +2 -0
  26. package/dist-esm/samples-dev/azureBareMetalStorageInstancesCreateSample.d.ts.map +1 -0
  27. package/dist-esm/samples-dev/azureBareMetalStorageInstancesCreateSample.js +56 -0
  28. package/dist-esm/samples-dev/azureBareMetalStorageInstancesCreateSample.js.map +1 -0
  29. package/dist-esm/samples-dev/azureBareMetalStorageInstancesDeleteSample.d.ts +2 -0
  30. package/dist-esm/samples-dev/azureBareMetalStorageInstancesDeleteSample.d.ts.map +1 -0
  31. package/dist-esm/samples-dev/azureBareMetalStorageInstancesDeleteSample.js +39 -0
  32. package/dist-esm/samples-dev/azureBareMetalStorageInstancesDeleteSample.js.map +1 -0
  33. package/dist-esm/samples-dev/azureBareMetalStorageInstancesGetSample.d.ts +2 -0
  34. package/dist-esm/samples-dev/azureBareMetalStorageInstancesGetSample.d.ts.map +1 -0
  35. package/dist-esm/samples-dev/azureBareMetalStorageInstancesGetSample.js +39 -0
  36. package/dist-esm/samples-dev/azureBareMetalStorageInstancesGetSample.js.map +1 -0
  37. package/dist-esm/samples-dev/azureBareMetalStorageInstancesListByResourceGroupSample.d.ts +2 -0
  38. package/dist-esm/samples-dev/azureBareMetalStorageInstancesListByResourceGroupSample.d.ts.map +1 -0
  39. package/dist-esm/samples-dev/azureBareMetalStorageInstancesListByResourceGroupSample.js +54 -0
  40. package/dist-esm/samples-dev/azureBareMetalStorageInstancesListByResourceGroupSample.js.map +1 -0
  41. package/dist-esm/samples-dev/azureBareMetalStorageInstancesListBySubscriptionSample.d.ts +2 -0
  42. package/dist-esm/samples-dev/azureBareMetalStorageInstancesListBySubscriptionSample.d.ts.map +1 -0
  43. package/dist-esm/samples-dev/azureBareMetalStorageInstancesListBySubscriptionSample.js +53 -0
  44. package/dist-esm/samples-dev/azureBareMetalStorageInstancesListBySubscriptionSample.js.map +1 -0
  45. package/dist-esm/samples-dev/azureBareMetalStorageInstancesUpdateSample.d.ts +2 -0
  46. package/dist-esm/samples-dev/azureBareMetalStorageInstancesUpdateSample.d.ts.map +1 -0
  47. package/dist-esm/samples-dev/azureBareMetalStorageInstancesUpdateSample.js +60 -0
  48. package/dist-esm/samples-dev/azureBareMetalStorageInstancesUpdateSample.js.map +1 -0
  49. package/dist-esm/samples-dev/operationsListSample.js +4 -9
  50. package/dist-esm/samples-dev/operationsListSample.js.map +1 -1
  51. package/dist-esm/src/bareMetalInfrastructureClient.d.ts +3 -2
  52. package/dist-esm/src/bareMetalInfrastructureClient.d.ts.map +1 -1
  53. package/dist-esm/src/bareMetalInfrastructureClient.js +5 -4
  54. package/dist-esm/src/bareMetalInfrastructureClient.js.map +1 -1
  55. package/dist-esm/src/lroImpl.d.ts +11 -0
  56. package/dist-esm/src/lroImpl.d.ts.map +1 -0
  57. package/dist-esm/src/lroImpl.js +21 -0
  58. package/dist-esm/src/lroImpl.js.map +1 -0
  59. package/dist-esm/src/models/index.d.ts +370 -81
  60. package/dist-esm/src/models/index.d.ts.map +1 -1
  61. package/dist-esm/src/models/index.js +60 -0
  62. package/dist-esm/src/models/index.js.map +1 -1
  63. package/dist-esm/src/models/mappers.d.ts +17 -7
  64. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  65. package/dist-esm/src/models/mappers.js +372 -96
  66. package/dist-esm/src/models/mappers.js.map +1 -1
  67. package/dist-esm/src/models/parameters.d.ts +3 -0
  68. package/dist-esm/src/models/parameters.d.ts.map +1 -1
  69. package/dist-esm/src/models/parameters.js +27 -6
  70. package/dist-esm/src/models/parameters.js.map +1 -1
  71. package/dist-esm/src/operations/azureBareMetalInstances.d.ts +65 -14
  72. package/dist-esm/src/operations/azureBareMetalInstances.d.ts.map +1 -1
  73. package/dist-esm/src/operations/azureBareMetalInstances.js +290 -30
  74. package/dist-esm/src/operations/azureBareMetalInstances.js.map +1 -1
  75. package/dist-esm/src/operations/azureBareMetalStorageInstances.d.ts +93 -0
  76. package/dist-esm/src/operations/azureBareMetalStorageInstances.d.ts.map +1 -0
  77. package/dist-esm/src/operations/azureBareMetalStorageInstances.js +404 -0
  78. package/dist-esm/src/operations/azureBareMetalStorageInstances.js.map +1 -0
  79. package/dist-esm/src/operations/index.d.ts +1 -0
  80. package/dist-esm/src/operations/index.d.ts.map +1 -1
  81. package/dist-esm/src/operations/index.js +1 -0
  82. package/dist-esm/src/operations/index.js.map +1 -1
  83. package/dist-esm/src/operations/operations.js +4 -9
  84. package/dist-esm/src/operations/operations.js.map +1 -1
  85. package/dist-esm/src/operationsInterfaces/azureBareMetalInstances.d.ts +61 -10
  86. package/dist-esm/src/operationsInterfaces/azureBareMetalInstances.d.ts.map +1 -1
  87. package/dist-esm/src/operationsInterfaces/azureBareMetalStorageInstances.d.ts +55 -0
  88. package/dist-esm/src/operationsInterfaces/azureBareMetalStorageInstances.d.ts.map +1 -0
  89. package/dist-esm/src/operationsInterfaces/azureBareMetalStorageInstances.js +9 -0
  90. package/dist-esm/src/operationsInterfaces/azureBareMetalStorageInstances.js.map +1 -0
  91. package/dist-esm/src/operationsInterfaces/index.d.ts +1 -0
  92. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
  93. package/dist-esm/src/operationsInterfaces/index.js +1 -0
  94. package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
  95. package/dist-esm/test/baremetalinfrastructure_operations_test.spec.js +7 -9
  96. package/dist-esm/test/baremetalinfrastructure_operations_test.spec.js.map +1 -1
  97. package/package.json +17 -19
  98. package/review/arm-baremetalinfrastructure.api.md +244 -19
  99. package/src/bareMetalInfrastructureClient.ts +17 -5
  100. package/src/lroImpl.ts +42 -0
  101. package/src/models/index.ts +417 -84
  102. package/src/models/mappers.ts +388 -98
  103. package/src/models/parameters.ts +34 -6
  104. package/src/operations/azureBareMetalInstances.ts +401 -13
  105. package/src/operations/azureBareMetalStorageInstances.ts +498 -0
  106. package/src/operations/index.ts +1 -0
  107. package/src/operations/operations.ts +1 -1
  108. package/src/operationsInterfaces/azureBareMetalInstances.ts +105 -9
  109. package/src/operationsInterfaces/azureBareMetalStorageInstances.ts +99 -0
  110. package/src/operationsInterfaces/index.ts +1 -0
  111. package/types/arm-baremetalinfrastructure.d.ts +516 -80
  112. package/types/tsdoc-metadata.json +1 -1
  113. package/rollup.config.js +0 -122
@@ -8,15 +8,90 @@
8
8
 
9
9
  import * as coreClient from "@azure/core-client";
10
10
 
11
- /** The response from the List AzureBareMetal Instances operation. */
11
+ /** The OperationStatus object returns the state of an asynchronous operation. */
12
+ export interface OperationStatus {
13
+ /** Unique Operation Status Identifier. */
14
+ name?: string;
15
+ /** Status of the operation. */
16
+ status?: AsyncOperationStatus;
17
+ /** Start Time when the operation was initially executed. */
18
+ startTime?: string;
19
+ /** An error from the Azure Bare Metal Infrastructure service. */
20
+ error?: OperationStatusError;
21
+ }
22
+
23
+ /** An error from the Azure Bare Metal Infrastructure service. */
24
+ export interface OperationStatusError {
25
+ /** Server-defined set of error codes. */
26
+ code?: string;
27
+ /** Human-readable representation of the error. */
28
+ message?: string;
29
+ }
30
+
31
+ /** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */
32
+ export interface ErrorResponse {
33
+ /** The error object. */
34
+ error?: ErrorDetail;
35
+ }
36
+
37
+ /** The error detail. */
38
+ export interface ErrorDetail {
39
+ /**
40
+ * The error code.
41
+ * NOTE: This property will not be serialized. It can only be populated by the server.
42
+ */
43
+ readonly code?: string;
44
+ /**
45
+ * The error message.
46
+ * NOTE: This property will not be serialized. It can only be populated by the server.
47
+ */
48
+ readonly message?: string;
49
+ /**
50
+ * The error target.
51
+ * NOTE: This property will not be serialized. It can only be populated by the server.
52
+ */
53
+ readonly target?: string;
54
+ /**
55
+ * The error details.
56
+ * NOTE: This property will not be serialized. It can only be populated by the server.
57
+ */
58
+ readonly details?: ErrorDetail[];
59
+ /**
60
+ * The error additional info.
61
+ * NOTE: This property will not be serialized. It can only be populated by the server.
62
+ */
63
+ readonly additionalInfo?: ErrorAdditionalInfo[];
64
+ }
65
+
66
+ /** The resource management error additional info. */
67
+ export interface ErrorAdditionalInfo {
68
+ /**
69
+ * The additional info type.
70
+ * NOTE: This property will not be serialized. It can only be populated by the server.
71
+ */
72
+ readonly type?: string;
73
+ /**
74
+ * The additional info.
75
+ * NOTE: This property will not be serialized. It can only be populated by the server.
76
+ */
77
+ readonly info?: Record<string, unknown>;
78
+ }
79
+
80
+ /** The active state empowers the server with the ability to forcefully terminate and halt any existing processes that may be running on the server */
81
+ export interface ForceState {
82
+ /** Whether to force restart by shutting all processes. */
83
+ forceState?: AzureBareMetalInstanceForcePowerState;
84
+ }
85
+
86
+ /** The response from the List Azure Bare Metal Instances operation. */
12
87
  export interface AzureBareMetalInstancesListResult {
13
- /** The list of Azure BareMetal instances. */
88
+ /** The list of Azure Bare Metal Instances. */
14
89
  value?: AzureBareMetalInstance[];
15
- /** The URL to get the next set of AzureBareMetal instances. */
90
+ /** The URL to get the next set of Azure Bare Metal Instances. */
16
91
  nextLink?: string;
17
92
  }
18
93
 
19
- /** Specifies the hardware settings for the AzureBareMetal instance. */
94
+ /** Specifies the hardware settings for the Azure Bare Metal Instance. */
20
95
  export interface HardwareProfile {
21
96
  /**
22
97
  * Name of the hardware type (vendor and/or their product name)
@@ -24,24 +99,24 @@ export interface HardwareProfile {
24
99
  */
25
100
  readonly hardwareType?: AzureBareMetalHardwareTypeNamesEnum;
26
101
  /**
27
- * Specifies the AzureBareMetal instance SKU.
102
+ * Specifies the Azure Bare Metal Instance SKU.
28
103
  * NOTE: This property will not be serialized. It can only be populated by the server.
29
104
  */
30
105
  readonly azureBareMetalInstanceSize?: AzureBareMetalInstanceSizeNamesEnum;
31
106
  }
32
107
 
33
- /** Specifies the storage settings for the AzureBareMetal instance disks. */
108
+ /** Specifies the storage settings for the Azure Bare Metal instance disks. */
34
109
  export interface StorageProfile {
35
110
  /**
36
111
  * IP Address to connect to storage.
37
112
  * NOTE: This property will not be serialized. It can only be populated by the server.
38
113
  */
39
114
  readonly nfsIpAddress?: string;
40
- /** Specifies information about the operating system disk used by baremetal instance. */
115
+ /** Specifies information about the operating system disk used by bare metal instance. */
41
116
  osDisks?: Disk[];
42
117
  }
43
118
 
44
- /** Specifies the disk information fo the AzureBareMetal instance */
119
+ /** Specifies the disk information fo the Azure Bare Metal Instance */
45
120
  export interface Disk {
46
121
  /** The disk name. */
47
122
  name?: string;
@@ -54,9 +129,9 @@ export interface Disk {
54
129
  readonly lun?: number;
55
130
  }
56
131
 
57
- /** Specifies the operating system settings for the AzureBareMetal instance. */
132
+ /** Specifies the operating system settings for the Azure Bare Metal instance. */
58
133
  export interface OSProfile {
59
- /** Specifies the host OS name of the AzureBareMetal instance. */
134
+ /** Specifies the host OS name of the Azure Bare Metal instance. */
60
135
  computerName?: string;
61
136
  /**
62
137
  * This property allows you to specify the type of the OS.
@@ -72,10 +147,10 @@ export interface OSProfile {
72
147
  sshPublicKey?: string;
73
148
  }
74
149
 
75
- /** Specifies the network settings for the AzureBareMetal instance disks. */
150
+ /** Specifies the network settings for the Azure Bare Metal Instance disks. */
76
151
  export interface NetworkProfile {
77
- /** Specifies the network interfaces for the AzureBareMetal instance. */
78
- networkInterfaces?: IpAddress[];
152
+ /** Specifies the network interfaces for the Azure Bare Metal Instance. */
153
+ networkInterfaces?: NetworkInterface[];
79
154
  /**
80
155
  * Specifies the circuit id for connecting to express route.
81
156
  * NOTE: This property will not be serialized. It can only be populated by the server.
@@ -83,32 +158,16 @@ export interface NetworkProfile {
83
158
  readonly circuitId?: string;
84
159
  }
85
160
 
86
- /** Specifies the IP address of the network interface. */
87
- export interface IpAddress {
161
+ /** Specifies the network interfaces of a bare metal resource. */
162
+ export interface NetworkInterface {
88
163
  /** Specifies the IP address of the network interface. */
89
164
  ipAddress?: string;
90
165
  }
91
166
 
92
- /** Metadata pertaining to creation and last modification of the resource. */
93
- export interface SystemData {
94
- /** The identity that created the resource. */
95
- createdBy?: string;
96
- /** The type of identity that created the resource. */
97
- createdByType?: CreatedByType;
98
- /** The timestamp of resource creation (UTC). */
99
- createdAt?: Date;
100
- /** The identity that last modified the resource. */
101
- lastModifiedBy?: string;
102
- /** The type of identity that last modified the resource. */
103
- lastModifiedByType?: CreatedByType;
104
- /** The timestamp of resource last modification (UTC) */
105
- lastModifiedAt?: Date;
106
- }
107
-
108
167
  /** Common fields that are returned in the response for all Azure Resource Manager resources */
109
168
  export interface Resource {
110
169
  /**
111
- * Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
170
+ * Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
112
171
  * NOTE: This property will not be serialized. It can only be populated by the server.
113
172
  */
114
173
  readonly id?: string;
@@ -122,89 +181,131 @@ export interface Resource {
122
181
  * NOTE: This property will not be serialized. It can only be populated by the server.
123
182
  */
124
183
  readonly type?: string;
184
+ /**
185
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
186
+ * NOTE: This property will not be serialized. It can only be populated by the server.
187
+ */
188
+ readonly systemData?: SystemData;
125
189
  }
126
190
 
127
- /** Error response. */
128
- export interface ErrorResponse {
129
- /** The error details. */
130
- error?: ErrorDefinition;
191
+ /** Metadata pertaining to creation and last modification of the resource. */
192
+ export interface SystemData {
193
+ /** The identity that created the resource. */
194
+ createdBy?: string;
195
+ /** The type of identity that created the resource. */
196
+ createdByType?: CreatedByType;
197
+ /** The timestamp of resource creation (UTC). */
198
+ createdAt?: Date;
199
+ /** The identity that last modified the resource. */
200
+ lastModifiedBy?: string;
201
+ /** The type of identity that last modified the resource. */
202
+ lastModifiedByType?: CreatedByType;
203
+ /** The timestamp of resource last modification (UTC) */
204
+ lastModifiedAt?: Date;
131
205
  }
132
206
 
133
- /** Error definition. */
134
- export interface ErrorDefinition {
207
+ /** A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of results. */
208
+ export interface OperationListResult {
135
209
  /**
136
- * Service specific error code which serves as the substatus for the HTTP error code.
210
+ * List of operations supported by the resource provider
137
211
  * NOTE: This property will not be serialized. It can only be populated by the server.
138
212
  */
139
- readonly code?: string;
213
+ readonly value?: Operation[];
140
214
  /**
141
- * Description of the error.
215
+ * URL to get the next set of operation list results (if there are any).
142
216
  * NOTE: This property will not be serialized. It can only be populated by the server.
143
217
  */
144
- readonly message?: string;
145
- /**
146
- * Internal error details.
147
- * NOTE: This property will not be serialized. It can only be populated by the server.
148
- */
149
- readonly details?: ErrorDefinition[];
150
- }
151
-
152
- /** List of AzureBareMetal operations */
153
- export interface OperationList {
154
- /** List of AzureBareMetal operations */
155
- value?: Operation[];
218
+ readonly nextLink?: string;
156
219
  }
157
220
 
158
- /** AzureBareMetal operation information */
221
+ /** Details of a REST API operation, returned from the Resource Provider Operations API */
159
222
  export interface Operation {
160
223
  /**
161
- * The name of the operation being performed on this particular object. This name should match the action name that appears in RBAC / the event service.
224
+ * The name of the operation, as per Resource-Based Access Control (RBAC). Examples: "Microsoft.Compute/virtualMachines/write", "Microsoft.Compute/virtualMachines/capture/action"
162
225
  * NOTE: This property will not be serialized. It can only be populated by the server.
163
226
  */
164
227
  readonly name?: string;
165
- /** Displayed AzureBareMetal operation information */
166
- display?: Display;
167
228
  /**
168
- * indicates whether an operation is a data action or not.
229
+ * Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for ARM/control-plane operations.
169
230
  * NOTE: This property will not be serialized. It can only be populated by the server.
170
231
  */
171
232
  readonly isDataAction?: boolean;
233
+ /** Localized display information for this particular operation. */
234
+ display?: OperationDisplay;
235
+ /**
236
+ * The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is "user,system"
237
+ * NOTE: This property will not be serialized. It can only be populated by the server.
238
+ */
239
+ readonly origin?: Origin;
240
+ /**
241
+ * Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs.
242
+ * NOTE: This property will not be serialized. It can only be populated by the server.
243
+ */
244
+ readonly actionType?: ActionType;
172
245
  }
173
246
 
174
- /** Detailed BareMetal operation information */
175
- export interface Display {
247
+ /** Localized display information for this particular operation. */
248
+ export interface OperationDisplay {
176
249
  /**
177
- * The localized friendly form of the resource provider name.
250
+ * The localized friendly form of the resource provider name, e.g. "Microsoft Monitoring Insights" or "Microsoft Compute".
178
251
  * NOTE: This property will not be serialized. It can only be populated by the server.
179
252
  */
180
253
  readonly provider?: string;
181
254
  /**
182
- * The localized friendly form of the resource type related to this action/operation.
255
+ * The localized friendly name of the resource type related to this operation. E.g. "Virtual Machines" or "Job Schedule Collections".
183
256
  * NOTE: This property will not be serialized. It can only be populated by the server.
184
257
  */
185
258
  readonly resource?: string;
186
259
  /**
187
- * The localized friendly name for the operation as shown to the user.
260
+ * The concise, localized friendly name for the operation; suitable for dropdowns. E.g. "Create or Update Virtual Machine", "Restart Virtual Machine".
188
261
  * NOTE: This property will not be serialized. It can only be populated by the server.
189
262
  */
190
263
  readonly operation?: string;
191
264
  /**
192
- * The localized friendly description for the operation as shown to the user.
265
+ * The short, localized friendly description of the operation; suitable for tool tips and detailed views.
193
266
  * NOTE: This property will not be serialized. It can only be populated by the server.
194
267
  */
195
268
  readonly description?: string;
196
269
  }
197
270
 
198
- /** Tags field of the AzureBareMetal instance. */
271
+ /** Tags field of the AzureBareMetal/AzureBareMetaStorage instance. */
199
272
  export interface Tags {
200
- /** Tags field of the AzureBareMetal instance. */
273
+ /** Tags field of the AzureBareMetal/AzureBareMetaStorage instance. */
201
274
  tags?: { [propertyName: string]: string };
202
275
  }
203
276
 
204
- /** Sample result definition */
205
- export interface Result {
206
- /** Sample property of type string */
207
- sampleProperty?: string;
277
+ /** The response from the Get AzureBareMetalStorageInstances operation. */
278
+ export interface AzureBareMetalStorageInstancesListResult {
279
+ /** The list of AzureBareMetalStorage instances. */
280
+ value?: AzureBareMetalStorageInstance[];
281
+ /** The URL to get the next set of AzureBareMetalStorage instances. */
282
+ nextLink?: string;
283
+ }
284
+
285
+ /** described the storage properties of the azure bare metal storage instance */
286
+ export interface StorageProperties {
287
+ /** State of provisioning of the AzureBareMetalStorageInstance */
288
+ provisioningState?: ProvisioningState;
289
+ /** the offering type for which the resource is getting provisioned */
290
+ offeringType?: string;
291
+ /** the storage protocol for which the resource is getting provisioned */
292
+ storageType?: string;
293
+ /** the kind of storage instance */
294
+ generation?: string;
295
+ /** the hardware type of the storage instance */
296
+ hardwareType?: string;
297
+ /** the workload for which the resource is getting provisioned */
298
+ workloadType?: string;
299
+ /** the billing related information for the resource */
300
+ storageBillingProperties?: StorageBillingProperties;
301
+ }
302
+
303
+ /** Describes the billing related details of the AzureBareMetalStorageInstance. */
304
+ export interface StorageBillingProperties {
305
+ /** the billing mode for the storage instance */
306
+ billingMode?: string;
307
+ /** the SKU type that is provisioned */
308
+ azureBareMetalStorageInstanceSize?: string;
208
309
  }
209
310
 
210
311
  /** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */
@@ -217,21 +318,16 @@ export interface TrackedResource extends Resource {
217
318
 
218
319
  /** AzureBareMetal instance info on Azure (ARM properties and AzureBareMetal properties) */
219
320
  export interface AzureBareMetalInstance extends TrackedResource {
220
- /**
221
- * The system metadata relating to this resource.
222
- * NOTE: This property will not be serialized. It can only be populated by the server.
223
- */
224
- readonly systemData?: SystemData;
225
- /** Specifies the hardware settings for the AzureBareMetal instance. */
321
+ /** Specifies the hardware settings for the Azure Bare Metal Instance. */
226
322
  hardwareProfile?: HardwareProfile;
227
- /** Specifies the storage settings for the AzureBareMetal instance disks. */
323
+ /** Specifies the storage settings for the Azure Bare Metal Instance disks. */
228
324
  storageProfile?: StorageProfile;
229
- /** Specifies the operating system settings for the AzureBareMetal instance. */
325
+ /** Specifies the operating system settings for the Azure Bare Metal Instance. */
230
326
  osProfile?: OSProfile;
231
- /** Specifies the network settings for the AzureBareMetal instance. */
327
+ /** Specifies the network settings for the Azure Bare Metal Instance. */
232
328
  networkProfile?: NetworkProfile;
233
329
  /**
234
- * Specifies the AzureBareMetal instance unique ID.
330
+ * Specifies the Azure Bare Metal Instance unique ID.
235
331
  * NOTE: This property will not be serialized. It can only be populated by the server.
236
332
  */
237
333
  readonly azureBareMetalInstanceId?: string;
@@ -246,7 +342,7 @@ export interface AzureBareMetalInstance extends TrackedResource {
246
342
  */
247
343
  readonly proximityPlacementGroup?: string;
248
344
  /**
249
- * Hardware revision of an AzureBareMetal instance
345
+ * Hardware revision of an Azure Bare Metal Instance
250
346
  * NOTE: This property will not be serialized. It can only be populated by the server.
251
347
  */
252
348
  readonly hwRevision?: string;
@@ -259,12 +355,82 @@ export interface AzureBareMetalInstance extends TrackedResource {
259
355
  readonly provisioningState?: AzureBareMetalProvisioningStatesEnum;
260
356
  }
261
357
 
358
+ /** AzureBareMetalStorageInstance info on Azure (ARM properties and AzureBareMetalStorage properties) */
359
+ export interface AzureBareMetalStorageInstance extends TrackedResource {
360
+ /** Specifies the AzureBareMetaStorageInstance unique ID. */
361
+ azureBareMetalStorageInstanceUniqueIdentifier?: string;
362
+ /** Specifies the storage properties for the AzureBareMetalStorage instance. */
363
+ storageProperties?: StorageProperties;
364
+ }
365
+
366
+ /** Defines headers for AzureBareMetalInstances_start operation. */
367
+ export interface AzureBareMetalInstancesStartHeaders {
368
+ /** URL to track the operation status of the Microsoft Bare Metal Infrastructure in the specified location. */
369
+ location?: string;
370
+ }
371
+
372
+ /** Defines headers for AzureBareMetalInstances_restart operation. */
373
+ export interface AzureBareMetalInstancesRestartHeaders {
374
+ /** URL to track the operation status of the Microsoft Bare Metal Infrastructure in the specified location. */
375
+ location?: string;
376
+ }
377
+
378
+ /** Defines headers for AzureBareMetalInstances_shutdown operation. */
379
+ export interface AzureBareMetalInstancesShutdownHeaders {
380
+ /** URL to track the operation status of the Microsoft Bare Metal Infrastructure in the specified location. */
381
+ location?: string;
382
+ }
383
+
384
+ /** Known values of {@link AsyncOperationStatus} that the service accepts. */
385
+ export enum KnownAsyncOperationStatus {
386
+ /** Requesting */
387
+ Requesting = "Requesting",
388
+ /** Executing */
389
+ Executing = "Executing",
390
+ /** Succeeded */
391
+ Succeeded = "Succeeded",
392
+ /** Failed */
393
+ Failed = "Failed"
394
+ }
395
+
396
+ /**
397
+ * Defines values for AsyncOperationStatus. \
398
+ * {@link KnownAsyncOperationStatus} can be used interchangeably with AsyncOperationStatus,
399
+ * this enum contains the known values that the service supports.
400
+ * ### Known values supported by the service
401
+ * **Requesting** \
402
+ * **Executing** \
403
+ * **Succeeded** \
404
+ * **Failed**
405
+ */
406
+ export type AsyncOperationStatus = string;
407
+
408
+ /** Known values of {@link AzureBareMetalInstanceForcePowerState} that the service accepts. */
409
+ export enum KnownAzureBareMetalInstanceForcePowerState {
410
+ /** Active */
411
+ Active = "active",
412
+ /** Inactive */
413
+ Inactive = "inactive"
414
+ }
415
+
416
+ /**
417
+ * Defines values for AzureBareMetalInstanceForcePowerState. \
418
+ * {@link KnownAzureBareMetalInstanceForcePowerState} can be used interchangeably with AzureBareMetalInstanceForcePowerState,
419
+ * this enum contains the known values that the service supports.
420
+ * ### Known values supported by the service
421
+ * **active** \
422
+ * **inactive**
423
+ */
424
+ export type AzureBareMetalInstanceForcePowerState = string;
425
+
262
426
  /** Known values of {@link AzureBareMetalHardwareTypeNamesEnum} that the service accepts. */
263
427
  export enum KnownAzureBareMetalHardwareTypeNamesEnum {
264
428
  /** CiscoUCS */
265
429
  CiscoUCS = "Cisco_UCS",
266
430
  /** HPE */
267
- HPE = "HPE"
431
+ HPE = "HPE",
432
+ /** Sdflex */
433
+ Sdflex = "SDFLEX"
268
434
  }
269
435
 
270
436
  /**
@@ -273,7 +439,8 @@ export enum KnownAzureBareMetalHardwareTypeNamesEnum {
273
439
  * this enum contains the known values that the service supports.
274
440
  * ### Known values supported by the service
275
441
  * **Cisco_UCS** \
276
- * **HPE**
442
+ * **HPE** \
443
+ * **SDFLEX**
277
444
  */
278
445
  export type AzureBareMetalHardwareTypeNamesEnum = string;
279
446
 
@@ -329,6 +496,8 @@ export enum KnownAzureBareMetalInstanceSizeNamesEnum {
329
496
  S448Oom = "S448oom",
330
497
  /** S448Ooo */
331
498
  S448Ooo = "S448ooo",
499
+ /** S448Se */
500
+ S448Se = "S448se",
332
501
  /** S576M */
333
502
  S576M = "S576m",
334
503
  /** S576Xm */
@@ -397,6 +566,7 @@ export enum KnownAzureBareMetalInstanceSizeNamesEnum {
397
566
  * **S448oo** \
398
567
  * **S448oom** \
399
568
  * **S448ooo** \
569
+ * **S448se** \
400
570
  * **S576m** \
401
571
  * **S576xm** \
402
572
  * **S672** \
@@ -505,6 +675,116 @@ export enum KnownCreatedByType {
505
675
  */
506
676
  export type CreatedByType = string;
507
677
 
678
+ /** Known values of {@link Origin} that the service accepts. */
679
+ export enum KnownOrigin {
680
+ /** User */
681
+ User = "user",
682
+ /** System */
683
+ System = "system",
684
+ /** UserSystem */
685
+ UserSystem = "user,system"
686
+ }
687
+
688
+ /**
689
+ * Defines values for Origin. \
690
+ * {@link KnownOrigin} can be used interchangeably with Origin,
691
+ * this enum contains the known values that the service supports.
692
+ * ### Known values supported by the service
693
+ * **user** \
694
+ * **system** \
695
+ * **user,system**
696
+ */
697
+ export type Origin = string;
698
+
699
+ /** Known values of {@link ActionType} that the service accepts. */
700
+ export enum KnownActionType {
701
+ /** Internal */
702
+ Internal = "Internal"
703
+ }
704
+
705
+ /**
706
+ * Defines values for ActionType. \
707
+ * {@link KnownActionType} can be used interchangeably with ActionType,
708
+ * this enum contains the known values that the service supports.
709
+ * ### Known values supported by the service
710
+ * **Internal**
711
+ */
712
+ export type ActionType = string;
713
+
714
+ /** Known values of {@link ProvisioningState} that the service accepts. */
715
+ export enum KnownProvisioningState {
716
+ /** Accepted */
717
+ Accepted = "Accepted",
718
+ /** Creating */
719
+ Creating = "Creating",
720
+ /** Updating */
721
+ Updating = "Updating",
722
+ /** Failed */
723
+ Failed = "Failed",
724
+ /** Succeeded */
725
+ Succeeded = "Succeeded",
726
+ /** Deleting */
727
+ Deleting = "Deleting",
728
+ /** Canceled */
729
+ Canceled = "Canceled",
730
+ /** Migrating */
731
+ Migrating = "Migrating"
732
+ }
733
+
734
+ /**
735
+ * Defines values for ProvisioningState. \
736
+ * {@link KnownProvisioningState} can be used interchangeably with ProvisioningState,
737
+ * this enum contains the known values that the service supports.
738
+ * ### Known values supported by the service
739
+ * **Accepted** \
740
+ * **Creating** \
741
+ * **Updating** \
742
+ * **Failed** \
743
+ * **Succeeded** \
744
+ * **Deleting** \
745
+ * **Canceled** \
746
+ * **Migrating**
747
+ */
748
+ export type ProvisioningState = string;
749
+
750
+ /** Optional parameters. */
751
+ export interface AzureBareMetalInstancesStartOptionalParams
752
+ extends coreClient.OperationOptions {
753
+ /** Delay to wait until next poll, in milliseconds. */
754
+ updateIntervalInMs?: number;
755
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
756
+ resumeFrom?: string;
757
+ }
758
+
759
+ /** Contains response data for the start operation. */
760
+ export type AzureBareMetalInstancesStartResponse = OperationStatus;
761
+
762
+ /** Optional parameters. */
763
+ export interface AzureBareMetalInstancesRestartOptionalParams
764
+ extends coreClient.OperationOptions {
765
+ /** When set to 'active', this parameter empowers the server with the ability to forcefully terminate and halt any existing processes that may be running on the server */
766
+ forceParameter?: ForceState;
767
+ /** Delay to wait until next poll, in milliseconds. */
768
+ updateIntervalInMs?: number;
769
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
770
+ resumeFrom?: string;
771
+ }
772
+
773
+ /** Contains response data for the restart operation. */
774
+ export type AzureBareMetalInstancesRestartResponse = OperationStatus;
775
+
776
+ /** Optional parameters. */
777
+ export interface AzureBareMetalInstancesShutdownOptionalParams
778
+ extends coreClient.OperationOptions {
779
+ /** Delay to wait until next poll, in milliseconds. */
780
+ updateIntervalInMs?: number;
781
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
782
+ resumeFrom?: string;
783
+ }
784
+
785
+ /** Contains response data for the shutdown operation. */
786
+ export type AzureBareMetalInstancesShutdownResponse = OperationStatus;
787
+
508
788
  /** Optional parameters. */
509
789
  export interface AzureBareMetalInstancesListBySubscriptionOptionalParams
510
790
  extends coreClient.OperationOptions {}
@@ -552,7 +832,60 @@ export interface OperationsListOptionalParams
552
832
  extends coreClient.OperationOptions {}
553
833
 
554
834
  /** Contains response data for the list operation. */
555
- export type OperationsListResponse = OperationList;
835
+ export type OperationsListResponse = OperationListResult;
836
+
837
+ /** Optional parameters. */
838
+ export interface AzureBareMetalStorageInstancesListBySubscriptionOptionalParams
839
+ extends coreClient.OperationOptions {}
840
+
841
+ /** Contains response data for the listBySubscription operation. */
842
+ export type AzureBareMetalStorageInstancesListBySubscriptionResponse = AzureBareMetalStorageInstancesListResult;
843
+
844
+ /** Optional parameters. */
845
+ export interface AzureBareMetalStorageInstancesListByResourceGroupOptionalParams
846
+ extends coreClient.OperationOptions {}
847
+
848
+ /** Contains response data for the listByResourceGroup operation. */
849
+ export type AzureBareMetalStorageInstancesListByResourceGroupResponse = AzureBareMetalStorageInstancesListResult;
850
+
851
+ /** Optional parameters. */
852
+ export interface AzureBareMetalStorageInstancesGetOptionalParams
853
+ extends coreClient.OperationOptions {}
854
+
855
+ /** Contains response data for the get operation. */
856
+ export type AzureBareMetalStorageInstancesGetResponse = AzureBareMetalStorageInstance;
857
+
858
+ /** Optional parameters. */
859
+ export interface AzureBareMetalStorageInstancesCreateOptionalParams
860
+ extends coreClient.OperationOptions {}
861
+
862
+ /** Contains response data for the create operation. */
863
+ export type AzureBareMetalStorageInstancesCreateResponse = AzureBareMetalStorageInstance;
864
+
865
+ /** Optional parameters. */
866
+ export interface AzureBareMetalStorageInstancesUpdateOptionalParams
867
+ extends coreClient.OperationOptions {}
868
+
869
+ /** Contains response data for the update operation. */
870
+ export type AzureBareMetalStorageInstancesUpdateResponse = AzureBareMetalStorageInstance;
871
+
872
+ /** Optional parameters. */
873
+ export interface AzureBareMetalStorageInstancesDeleteOptionalParams
874
+ extends coreClient.OperationOptions {}
875
+
876
+ /** Optional parameters. */
877
+ export interface AzureBareMetalStorageInstancesListBySubscriptionNextOptionalParams
878
+ extends coreClient.OperationOptions {}
879
+
880
+ /** Contains response data for the listBySubscriptionNext operation. */
881
+ export type AzureBareMetalStorageInstancesListBySubscriptionNextResponse = AzureBareMetalStorageInstancesListResult;
882
+
883
+ /** Optional parameters. */
884
+ export interface AzureBareMetalStorageInstancesListByResourceGroupNextOptionalParams
885
+ extends coreClient.OperationOptions {}
886
+
887
+ /** Contains response data for the listByResourceGroupNext operation. */
888
+ export type AzureBareMetalStorageInstancesListByResourceGroupNextResponse = AzureBareMetalStorageInstancesListResult;
556
889
 
557
890
  /** Optional parameters. */
558
891
  export interface BareMetalInfrastructureClientOptionalParams