Gets a list of AzureBareMetal instances in the specified subscription. The operations returns various - * properties of each Azure BareMetal instance. + *
The operation to start an Azure Bare Metal instance.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param azureBareMetalInstanceName Name of the Azure Bare Metal Instance, also known as the ResourceName.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of the OperationStatus object returns the state of an asynchronous
+ * operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller The operation to start an Azure Bare Metal instance.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param azureBareMetalInstanceName Name of the Azure Bare Metal Instance, also known as the ResourceName.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of the OperationStatus object returns the state of an asynchronous
+ * operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller The operation to start an Azure Bare Metal instance.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param azureBareMetalInstanceName Name of the Azure Bare Metal Instance, also known as the ResourceName.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the OperationStatus object returns the state of an asynchronous operation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ OperationStatusInner start(String resourceGroupName, String azureBareMetalInstanceName);
+
+ /**
+ * Start a Bare Metal Instance.
+ *
+ * The operation to start an Azure Bare Metal instance.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param azureBareMetalInstanceName Name of the Azure Bare Metal Instance, also known as the ResourceName.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the OperationStatus object returns the state of an asynchronous operation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ OperationStatusInner start(String resourceGroupName, String azureBareMetalInstanceName, Context context);
+
+ /**
+ * Restart a Bare Metal Instance.
+ *
+ * The operation to restart an Azure Bare Metal Instance.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param azureBareMetalInstanceName Name of the Azure Bare Metal Instance, also known as the ResourceName.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of the OperationStatus object returns the state of an asynchronous
+ * operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller The operation to restart an Azure Bare Metal Instance.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param azureBareMetalInstanceName Name of the Azure Bare Metal Instance, also known as the ResourceName.
+ * @param forceParameter 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.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of the OperationStatus object returns the state of an asynchronous
+ * operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller The operation to restart an Azure Bare Metal Instance.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param azureBareMetalInstanceName Name of the Azure Bare Metal Instance, also known as the ResourceName.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the OperationStatus object returns the state of an asynchronous operation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ OperationStatusInner restart(String resourceGroupName, String azureBareMetalInstanceName);
+
+ /**
+ * Restart a Bare Metal Instance.
+ *
+ * The operation to restart an Azure Bare Metal Instance.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param azureBareMetalInstanceName Name of the Azure Bare Metal Instance, also known as the ResourceName.
+ * @param forceParameter 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.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the OperationStatus object returns the state of an asynchronous operation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ OperationStatusInner restart(
+ String resourceGroupName, String azureBareMetalInstanceName, ForceState forceParameter, Context context);
+
+ /**
+ * Shutdown a Bare Metal Instance.
+ *
+ * The operation to shutdown an Azure Bare Metal Instance.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param azureBareMetalInstanceName Name of the Azure Bare Metal Instance, also known as the ResourceName.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of the OperationStatus object returns the state of an asynchronous
+ * operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller The operation to shutdown an Azure Bare Metal Instance.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param azureBareMetalInstanceName Name of the Azure Bare Metal Instance, also known as the ResourceName.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of the OperationStatus object returns the state of an asynchronous
+ * operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller The operation to shutdown an Azure Bare Metal Instance.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param azureBareMetalInstanceName Name of the Azure Bare Metal Instance, also known as the ResourceName.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the OperationStatus object returns the state of an asynchronous operation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ OperationStatusInner shutdown(String resourceGroupName, String azureBareMetalInstanceName);
+
+ /**
+ * Shutdown a Bare Metal Instance.
+ *
+ * The operation to shutdown an Azure Bare Metal Instance.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param azureBareMetalInstanceName Name of the Azure Bare Metal Instance, also known as the ResourceName.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the OperationStatus object returns the state of an asynchronous operation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ OperationStatusInner shutdown(String resourceGroupName, String azureBareMetalInstanceName, Context context);
+
+ /**
+ * Returns a list of Azure Bare Metal Instances in the specified subscription.
+ *
+ * Returns a list of Azure Bare Metal Instances in the specified subscription. The operations returns various
+ * properties of each Azure Bare Metal Instance.
*
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of AzureBareMetal instances in the specified subscription as paginated response with {@link
+ * @return the response from the List Azure Bare Metal Instances operation as paginated response with {@link
* PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable Gets a list of AzureBareMetal instances in the specified subscription. The operations returns various
- * properties of each Azure BareMetal instance.
+ * Returns a list of Azure Bare Metal Instances in the specified subscription. The operations returns various
+ * properties of each Azure Bare Metal Instance.
*
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of AzureBareMetal instances in the specified subscription as paginated response with {@link
+ * @return the response from the List Azure Bare Metal Instances operation as paginated response with {@link
* PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable Gets a list of AzureBareMetal instances in the specified subscription and resource group. The operations
- * returns various properties of each Azure BareMetal instance.
+ * Gets a list of Azure Bare Metal Instances in the specified subscription and resource group. The operations
+ * returns various properties of each Azure Bare Metal Instance.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of AzureBareMetal instances in the specified subscription and resource group as paginated response
- * with {@link PagedIterable}.
+ * @return a list of Azure Bare Metal Instances in the specified subscription and resource group as paginated
+ * response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable Gets a list of AzureBareMetal instances in the specified subscription and resource group. The operations
- * returns various properties of each Azure BareMetal instance.
+ * Gets a list of Azure Bare Metal Instances in the specified subscription and resource group. The operations
+ * returns various properties of each Azure Bare Metal Instance.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of AzureBareMetal instances in the specified subscription and resource group as paginated response
- * with {@link PagedIterable}.
+ * @return a list of Azure Bare Metal Instances in the specified subscription and resource group as paginated
+ * response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable Gets an Azure BareMetal instance for the specified subscription, resource group, and instance name.
+ * Gets an Azure Bare Metal Instance for the specified subscription, resource group, and instance name.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param azureBareMetalInstanceName Name of the Azure BareMetal on Azure instance.
+ * @param azureBareMetalInstanceName Name of the Azure Bare Metal Instance, also known as the ResourceName.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return an Azure BareMetal instance for the specified subscription, resource group, and instance name along with
+ * @return an Azure Bare Metal Instance for the specified subscription, resource group, and instance name along with
* {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -96,28 +303,28 @@ Response Gets an Azure BareMetal instance for the specified subscription, resource group, and instance name.
+ * Gets an Azure Bare Metal Instance for the specified subscription, resource group, and instance name.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param azureBareMetalInstanceName Name of the Azure BareMetal on Azure instance.
+ * @param azureBareMetalInstanceName Name of the Azure Bare Metal Instance, also known as the ResourceName.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return an Azure BareMetal instance for the specified subscription, resource group, and instance name.
+ * @return an Azure Bare Metal Instance for the specified subscription, resource group, and instance name.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
AzureBareMetalInstanceInner getByResourceGroup(String resourceGroupName, String azureBareMetalInstanceName);
/**
- * Patches the Tags field of a Azure BareMetal instance.
+ * Patches the Tags field of a Azure Bare Metal Instance.
*
- * Patches the Tags field of a Azure BareMetal instance for the specified subscription, resource group, and
+ * Patches the Tags field of a Azure Bare Metal Instance for the specified subscription, resource group, and
* instance name.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param azureBareMetalInstanceName Name of the Azure BareMetal on Azure instance.
+ * @param azureBareMetalInstanceName Name of the Azure Bare Metal Instance, also known as the ResourceName.
* @param tagsParameter Request body that only contains the new Tags field.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -131,13 +338,13 @@ Response Patches the Tags field of a Azure BareMetal instance for the specified subscription, resource group, and
+ * Patches the Tags field of a Azure Bare Metal Instance for the specified subscription, resource group, and
* instance name.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param azureBareMetalInstanceName Name of the Azure BareMetal on Azure instance.
+ * @param azureBareMetalInstanceName Name of the Azure Bare Metal Instance, also known as the ResourceName.
* @param tagsParameter Request body that only contains the new Tags field.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
diff --git a/sdk/baremetalinfrastructure/azure-resourcemanager-baremetalinfrastructure/src/main/java/com/azure/resourcemanager/baremetalinfrastructure/fluent/AzureBareMetalStorageInstancesClient.java b/sdk/baremetalinfrastructure/azure-resourcemanager-baremetalinfrastructure/src/main/java/com/azure/resourcemanager/baremetalinfrastructure/fluent/AzureBareMetalStorageInstancesClient.java
new file mode 100644
index 000000000000..e22d441d065e
--- /dev/null
+++ b/sdk/baremetalinfrastructure/azure-resourcemanager-baremetalinfrastructure/src/main/java/com/azure/resourcemanager/baremetalinfrastructure/fluent/AzureBareMetalStorageInstancesClient.java
@@ -0,0 +1,223 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.baremetalinfrastructure.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.baremetalinfrastructure.fluent.models.AzureBareMetalStorageInstanceInner;
+import com.azure.resourcemanager.baremetalinfrastructure.models.Tags;
+
+/** An instance of this class provides access to all the operations defined in AzureBareMetalStorageInstancesClient. */
+public interface AzureBareMetalStorageInstancesClient {
+ /**
+ * Gets a list of Azure Bare Metal Storage instances in the specified subscription.
+ *
+ * Gets a list of AzureBareMetalStorage instances in the specified subscription. The operations returns various
+ * properties of each Azure Bare Metal Instance.
+ *
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of AzureBareMetalStorage instances in the specified subscription as paginated response with {@link
+ * PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable Gets a list of AzureBareMetalStorage instances in the specified subscription. The operations returns various
+ * properties of each Azure Bare Metal Instance.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of AzureBareMetalStorage instances in the specified subscription as paginated response with {@link
+ * PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable Gets a list of AzureBareMetalStorage instances in the specified subscription and resource group. The
+ * operations returns various properties of each Azure Bare Metal Instance.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of AzureBareMetalStorage instances in the specified subscription and resource group as paginated
+ * response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable Gets a list of AzureBareMetalStorage instances in the specified subscription and resource group. The
+ * operations returns various properties of each Azure Bare Metal Instance.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of AzureBareMetalStorage instances in the specified subscription and resource group as paginated
+ * response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable Gets an Azure Bare Metal Storage instance for the specified subscription, resource group, and instance name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param azureBareMetalStorageInstanceName Name of the Azure Bare Metal Storage Instance, also known as the
+ * ResourceName.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Bare Metal Storage instance for the specified subscription, resource group, and instance name
+ * along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response Gets an Azure Bare Metal Storage instance for the specified subscription, resource group, and instance name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param azureBareMetalStorageInstanceName Name of the Azure Bare Metal Storage Instance, also known as the
+ * ResourceName.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Bare Metal Storage instance for the specified subscription, resource group, and instance name.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ AzureBareMetalStorageInstanceInner getByResourceGroup(
+ String resourceGroupName, String azureBareMetalStorageInstanceName);
+
+ /**
+ * Create an azure bare metal storage resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param azureBareMetalStorageInstanceName Name of the Azure Bare Metal Storage Instance, also known as the
+ * ResourceName.
+ * @param requestBodyParameters request body for put call.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return azureBareMetalStorageInstance info on Azure (ARM properties and AzureBareMetalStorage properties) along
+ * with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response Patches the Tags field of a Azure Bare Metal Storage instance for the specified subscription, resource group,
+ * and instance name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param azureBareMetalStorageInstanceName Name of the Azure Bare Metal Storage Instance, also known as the
+ * ResourceName.
+ * @param tagsParameter Request body that only contains the new Tags field.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return azureBareMetalStorageInstance info on Azure (ARM properties and AzureBareMetalStorage properties) along
+ * with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response Patches the Tags field of a Azure Bare Metal Storage instance for the specified subscription, resource group,
+ * and instance name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param azureBareMetalStorageInstanceName Name of the Azure Bare Metal Storage Instance, also known as the
+ * ResourceName.
+ * @param tagsParameter Request body that only contains the new Tags field.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return azureBareMetalStorageInstance info on Azure (ARM properties and AzureBareMetalStorage properties).
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ AzureBareMetalStorageInstanceInner update(
+ String resourceGroupName, String azureBareMetalStorageInstanceName, Tags tagsParameter);
+
+ /**
+ * Delete an AzureBareMetalStorageInstance.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param azureBareMetalStorageInstanceName Name of the Azure Bare Metal Storage Instance, also known as the
+ * ResourceName.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response Gets a list of AzureBareMetal management operations.
*
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
@@ -23,7 +25,9 @@ public interface OperationsClient {
PagedIterable Gets a list of AzureBareMetal management operations.
*
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
diff --git a/sdk/baremetalinfrastructure/azure-resourcemanager-baremetalinfrastructure/src/main/java/com/azure/resourcemanager/baremetalinfrastructure/fluent/models/AzureBareMetalInstanceInner.java b/sdk/baremetalinfrastructure/azure-resourcemanager-baremetalinfrastructure/src/main/java/com/azure/resourcemanager/baremetalinfrastructure/fluent/models/AzureBareMetalInstanceInner.java
index fbacb532c39b..20541952745b 100644
--- a/sdk/baremetalinfrastructure/azure-resourcemanager-baremetalinfrastructure/src/main/java/com/azure/resourcemanager/baremetalinfrastructure/fluent/models/AzureBareMetalInstanceInner.java
+++ b/sdk/baremetalinfrastructure/azure-resourcemanager-baremetalinfrastructure/src/main/java/com/azure/resourcemanager/baremetalinfrastructure/fluent/models/AzureBareMetalInstanceInner.java
@@ -26,7 +26,7 @@ public final class AzureBareMetalInstanceInner extends Resource {
private AzureBareMetalInstanceProperties innerProperties;
/*
- * The system metadata relating to this resource.
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
*/
@JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
private SystemData systemData;
@@ -45,7 +45,7 @@ private AzureBareMetalInstanceProperties innerProperties() {
}
/**
- * Get the systemData property: The system metadata relating to this resource.
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
*
* @return the systemData value.
*/
@@ -68,7 +68,7 @@ public AzureBareMetalInstanceInner withTags(Map Details of a REST API operation, returned from the Resource Provider Operations API.
+ */
@Fluent
public final class OperationInner {
/*
- * 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.
+ * The name of the operation, as per Resource-Based Access Control (RBAC). Examples:
+ * "Microsoft.Compute/virtualMachines/write", "Microsoft.Compute/virtualMachines/capture/action"
*/
@JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY)
private String name;
/*
- * Displayed AzureBareMetal operation information
+ * Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for
+ * ARM/control-plane operations.
+ */
+ @JsonProperty(value = "isDataAction", access = JsonProperty.Access.WRITE_ONLY)
+ private Boolean isDataAction;
+
+ /*
+ * Localized display information for this particular operation.
*/
@JsonProperty(value = "display")
- private Display display;
+ private OperationDisplay display;
/*
- * indicates whether an operation is a data action or not.
+ * The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default
+ * value is "user,system"
*/
- @JsonProperty(value = "isDataAction", access = JsonProperty.Access.WRITE_ONLY)
- private Boolean isDataAction;
+ @JsonProperty(value = "origin", access = JsonProperty.Access.WRITE_ONLY)
+ private Origin origin;
+
+ /*
+ * Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs.
+ */
+ @JsonProperty(value = "actionType", access = JsonProperty.Access.WRITE_ONLY)
+ private ActionType actionType;
/** Creates an instance of OperationInner class. */
public OperationInner() {
}
/**
- * Get the name property: 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.
+ * Get the name property: The name of the operation, as per Resource-Based Access Control (RBAC). Examples:
+ * "Microsoft.Compute/virtualMachines/write", "Microsoft.Compute/virtualMachines/capture/action".
*
* @return the name value.
*/
@@ -45,32 +65,53 @@ public String name() {
}
/**
- * Get the display property: Displayed AzureBareMetal operation information.
+ * Get the isDataAction property: Whether the operation applies to data-plane. This is "true" for data-plane
+ * operations and "false" for ARM/control-plane operations.
+ *
+ * @return the isDataAction value.
+ */
+ public Boolean isDataAction() {
+ return this.isDataAction;
+ }
+
+ /**
+ * Get the display property: Localized display information for this particular operation.
*
* @return the display value.
*/
- public Display display() {
+ public OperationDisplay display() {
return this.display;
}
/**
- * Set the display property: Displayed AzureBareMetal operation information.
+ * Set the display property: Localized display information for this particular operation.
*
* @param display the display value to set.
* @return the OperationInner object itself.
*/
- public OperationInner withDisplay(Display display) {
+ public OperationInner withDisplay(OperationDisplay display) {
this.display = display;
return this;
}
/**
- * Get the isDataAction property: indicates whether an operation is a data action or not.
+ * Get the origin property: The intended executor of the operation; as in Resource Based Access Control (RBAC) and
+ * audit logs UX. Default value is "user,system".
*
- * @return the isDataAction value.
+ * @return the origin value.
*/
- public Boolean isDataAction() {
- return this.isDataAction;
+ public Origin origin() {
+ return this.origin;
+ }
+
+ /**
+ * Get the actionType property: Enum. Indicates the action type. "Internal" refers to actions that are for internal
+ * only APIs.
+ *
+ * @return the actionType value.
+ */
+ public ActionType actionType() {
+ return this.actionType;
}
/**
diff --git a/sdk/baremetalinfrastructure/azure-resourcemanager-baremetalinfrastructure/src/main/java/com/azure/resourcemanager/baremetalinfrastructure/fluent/models/OperationStatusInner.java b/sdk/baremetalinfrastructure/azure-resourcemanager-baremetalinfrastructure/src/main/java/com/azure/resourcemanager/baremetalinfrastructure/fluent/models/OperationStatusInner.java
new file mode 100644
index 000000000000..7cc0a85986b0
--- /dev/null
+++ b/sdk/baremetalinfrastructure/azure-resourcemanager-baremetalinfrastructure/src/main/java/com/azure/resourcemanager/baremetalinfrastructure/fluent/models/OperationStatusInner.java
@@ -0,0 +1,133 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.baremetalinfrastructure.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.baremetalinfrastructure.models.AsyncOperationStatus;
+import com.azure.resourcemanager.baremetalinfrastructure.models.OperationStatusError;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** The OperationStatus object returns the state of an asynchronous operation. */
+@Fluent
+public final class OperationStatusInner {
+ /*
+ * Unique Operation Status Identifier.
+ */
+ @JsonProperty(value = "name")
+ private String name;
+
+ /*
+ * Status of the operation.
+ */
+ @JsonProperty(value = "status")
+ private AsyncOperationStatus status;
+
+ /*
+ * Start Time when the operation was initially executed.
+ */
+ @JsonProperty(value = "startTime")
+ private String startTime;
+
+ /*
+ * An error from the Azure Bare Metal Infrastructure service.
+ */
+ @JsonProperty(value = "error")
+ private OperationStatusError error;
+
+ /** Creates an instance of OperationStatusInner class. */
+ public OperationStatusInner() {
+ }
+
+ /**
+ * Get the name property: Unique Operation Status Identifier.
+ *
+ * @return the name value.
+ */
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Set the name property: Unique Operation Status Identifier.
+ *
+ * @param name the name value to set.
+ * @return the OperationStatusInner object itself.
+ */
+ public OperationStatusInner withName(String name) {
+ this.name = name;
+ return this;
+ }
+
+ /**
+ * Get the status property: Status of the operation.
+ *
+ * @return the status value.
+ */
+ public AsyncOperationStatus status() {
+ return this.status;
+ }
+
+ /**
+ * Set the status property: Status of the operation.
+ *
+ * @param status the status value to set.
+ * @return the OperationStatusInner object itself.
+ */
+ public OperationStatusInner withStatus(AsyncOperationStatus status) {
+ this.status = status;
+ return this;
+ }
+
+ /**
+ * Get the startTime property: Start Time when the operation was initially executed.
+ *
+ * @return the startTime value.
+ */
+ public String startTime() {
+ return this.startTime;
+ }
+
+ /**
+ * Set the startTime property: Start Time when the operation was initially executed.
+ *
+ * @param startTime the startTime value to set.
+ * @return the OperationStatusInner object itself.
+ */
+ public OperationStatusInner withStartTime(String startTime) {
+ this.startTime = startTime;
+ return this;
+ }
+
+ /**
+ * Get the error property: An error from the Azure Bare Metal Infrastructure service.
+ *
+ * @return the error value.
+ */
+ public OperationStatusError error() {
+ return this.error;
+ }
+
+ /**
+ * Set the error property: An error from the Azure Bare Metal Infrastructure service.
+ *
+ * @param error the error value to set.
+ * @return the OperationStatusInner object itself.
+ */
+ public OperationStatusInner withError(OperationStatusError error) {
+ this.error = error;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (error() != null) {
+ error().validate();
+ }
+ }
+}
diff --git a/sdk/baremetalinfrastructure/azure-resourcemanager-baremetalinfrastructure/src/main/java/com/azure/resourcemanager/baremetalinfrastructure/fluent/models/package-info.java b/sdk/baremetalinfrastructure/azure-resourcemanager-baremetalinfrastructure/src/main/java/com/azure/resourcemanager/baremetalinfrastructure/fluent/models/package-info.java
index 5557ef276a7c..01de396af20e 100644
--- a/sdk/baremetalinfrastructure/azure-resourcemanager-baremetalinfrastructure/src/main/java/com/azure/resourcemanager/baremetalinfrastructure/fluent/models/package-info.java
+++ b/sdk/baremetalinfrastructure/azure-resourcemanager-baremetalinfrastructure/src/main/java/com/azure/resourcemanager/baremetalinfrastructure/fluent/models/package-info.java
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
/**
- * Package containing the inner data models for BareMetalInfrastructureClient. The BareMetalInfrastructure Management
+ * Package containing the inner data models for BareMetalInfrastructureClient. The Bare Metal Infrastructure Management
* client.
*/
package com.azure.resourcemanager.baremetalinfrastructure.fluent.models;
diff --git a/sdk/baremetalinfrastructure/azure-resourcemanager-baremetalinfrastructure/src/main/java/com/azure/resourcemanager/baremetalinfrastructure/fluent/package-info.java b/sdk/baremetalinfrastructure/azure-resourcemanager-baremetalinfrastructure/src/main/java/com/azure/resourcemanager/baremetalinfrastructure/fluent/package-info.java
index e4a08b47d8b1..ef479b8430eb 100644
--- a/sdk/baremetalinfrastructure/azure-resourcemanager-baremetalinfrastructure/src/main/java/com/azure/resourcemanager/baremetalinfrastructure/fluent/package-info.java
+++ b/sdk/baremetalinfrastructure/azure-resourcemanager-baremetalinfrastructure/src/main/java/com/azure/resourcemanager/baremetalinfrastructure/fluent/package-info.java
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
/**
- * Package containing the service clients for BareMetalInfrastructureClient. The BareMetalInfrastructure Management
+ * Package containing the service clients for BareMetalInfrastructureClient. The Bare Metal Infrastructure Management
* client.
*/
package com.azure.resourcemanager.baremetalinfrastructure.fluent;
diff --git a/sdk/baremetalinfrastructure/azure-resourcemanager-baremetalinfrastructure/src/main/java/com/azure/resourcemanager/baremetalinfrastructure/implementation/AzureBareMetalInstancesClientImpl.java b/sdk/baremetalinfrastructure/azure-resourcemanager-baremetalinfrastructure/src/main/java/com/azure/resourcemanager/baremetalinfrastructure/implementation/AzureBareMetalInstancesClientImpl.java
index 16dc32c07b17..21df0c4affff 100644
--- a/sdk/baremetalinfrastructure/azure-resourcemanager-baremetalinfrastructure/src/main/java/com/azure/resourcemanager/baremetalinfrastructure/implementation/AzureBareMetalInstancesClientImpl.java
+++ b/sdk/baremetalinfrastructure/azure-resourcemanager-baremetalinfrastructure/src/main/java/com/azure/resourcemanager/baremetalinfrastructure/implementation/AzureBareMetalInstancesClientImpl.java
@@ -13,6 +13,7 @@
import com.azure.core.annotation.HostParam;
import com.azure.core.annotation.Patch;
import com.azure.core.annotation.PathParam;
+import com.azure.core.annotation.Post;
import com.azure.core.annotation.QueryParam;
import com.azure.core.annotation.ReturnType;
import com.azure.core.annotation.ServiceInterface;
@@ -25,12 +26,19 @@
import com.azure.core.http.rest.Response;
import com.azure.core.http.rest.RestProxy;
import com.azure.core.management.exception.ManagementException;
+import com.azure.core.management.polling.PollResult;
import com.azure.core.util.Context;
import com.azure.core.util.FluxUtil;
+import com.azure.core.util.polling.PollerFlux;
+import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.baremetalinfrastructure.fluent.AzureBareMetalInstancesClient;
import com.azure.resourcemanager.baremetalinfrastructure.fluent.models.AzureBareMetalInstanceInner;
+import com.azure.resourcemanager.baremetalinfrastructure.fluent.models.OperationStatusInner;
import com.azure.resourcemanager.baremetalinfrastructure.models.AzureBareMetalInstancesListResult;
+import com.azure.resourcemanager.baremetalinfrastructure.models.ForceState;
import com.azure.resourcemanager.baremetalinfrastructure.models.Tags;
+import java.nio.ByteBuffer;
+import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
/** An instance of this class provides access to all the operations defined in AzureBareMetalInstancesClient. */
@@ -60,6 +68,49 @@ public final class AzureBareMetalInstancesClientImpl implements AzureBareMetalIn
@Host("{$host}")
@ServiceInterface(name = "BareMetalInfrastruct")
public interface AzureBareMetalInstancesService {
+ @Headers({"Content-Type: application/json"})
+ @Post(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BareMetalInfrastructure/bareMetalInstances/{azureBareMetalInstanceName}/start")
+ @ExpectedResponses({200, 202})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono The operation to start an Azure Bare Metal instance.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param azureBareMetalInstanceName Name of the Azure Bare Metal Instance, also known as the ResourceName.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the OperationStatus object returns the state of an asynchronous operation along with {@link Response} on
+ * successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono The operation to start an Azure Bare Metal instance.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param azureBareMetalInstanceName Name of the Azure Bare Metal Instance, also known as the ResourceName.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the OperationStatus object returns the state of an asynchronous operation along with {@link Response} on
+ * successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono The operation to start an Azure Bare Metal instance.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param azureBareMetalInstanceName Name of the Azure Bare Metal Instance, also known as the ResourceName.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of the OperationStatus object returns the state of an asynchronous
+ * operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux The operation to start an Azure Bare Metal instance.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param azureBareMetalInstanceName Name of the Azure Bare Metal Instance, also known as the ResourceName.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of the OperationStatus object returns the state of an asynchronous
+ * operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux The operation to start an Azure Bare Metal instance.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param azureBareMetalInstanceName Name of the Azure Bare Metal Instance, also known as the ResourceName.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of the OperationStatus object returns the state of an asynchronous
+ * operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller The operation to start an Azure Bare Metal instance.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param azureBareMetalInstanceName Name of the Azure Bare Metal Instance, also known as the ResourceName.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of the OperationStatus object returns the state of an asynchronous
+ * operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller The operation to start an Azure Bare Metal instance.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param azureBareMetalInstanceName Name of the Azure Bare Metal Instance, also known as the ResourceName.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the OperationStatus object returns the state of an asynchronous operation on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono The operation to start an Azure Bare Metal instance.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param azureBareMetalInstanceName Name of the Azure Bare Metal Instance, also known as the ResourceName.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the OperationStatus object returns the state of an asynchronous operation on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono The operation to start an Azure Bare Metal instance.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param azureBareMetalInstanceName Name of the Azure Bare Metal Instance, also known as the ResourceName.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the OperationStatus object returns the state of an asynchronous operation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public OperationStatusInner start(String resourceGroupName, String azureBareMetalInstanceName) {
+ return startAsync(resourceGroupName, azureBareMetalInstanceName).block();
+ }
+
+ /**
+ * Start a Bare Metal Instance.
+ *
+ * The operation to start an Azure Bare Metal instance.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param azureBareMetalInstanceName Name of the Azure Bare Metal Instance, also known as the ResourceName.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the OperationStatus object returns the state of an asynchronous operation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public OperationStatusInner start(String resourceGroupName, String azureBareMetalInstanceName, Context context) {
+ return startAsync(resourceGroupName, azureBareMetalInstanceName, context).block();
+ }
+
+ /**
+ * Restart a Bare Metal Instance.
+ *
+ * The operation to restart an Azure Bare Metal Instance.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param azureBareMetalInstanceName Name of the Azure Bare Metal Instance, also known as the ResourceName.
+ * @param forceParameter 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.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the OperationStatus object returns the state of an asynchronous operation along with {@link Response} on
+ * successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono The operation to restart an Azure Bare Metal Instance.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param azureBareMetalInstanceName Name of the Azure Bare Metal Instance, also known as the ResourceName.
+ * @param forceParameter 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.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the OperationStatus object returns the state of an asynchronous operation along with {@link Response} on
+ * successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono The operation to restart an Azure Bare Metal Instance.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param azureBareMetalInstanceName Name of the Azure Bare Metal Instance, also known as the ResourceName.
+ * @param forceParameter 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.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of the OperationStatus object returns the state of an asynchronous
+ * operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux The operation to restart an Azure Bare Metal Instance.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param azureBareMetalInstanceName Name of the Azure Bare Metal Instance, also known as the ResourceName.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of the OperationStatus object returns the state of an asynchronous
+ * operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux The operation to restart an Azure Bare Metal Instance.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param azureBareMetalInstanceName Name of the Azure Bare Metal Instance, also known as the ResourceName.
+ * @param forceParameter 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.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of the OperationStatus object returns the state of an asynchronous
+ * operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux The operation to restart an Azure Bare Metal Instance.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param azureBareMetalInstanceName Name of the Azure Bare Metal Instance, also known as the ResourceName.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of the OperationStatus object returns the state of an asynchronous
+ * operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller The operation to restart an Azure Bare Metal Instance.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param azureBareMetalInstanceName Name of the Azure Bare Metal Instance, also known as the ResourceName.
+ * @param forceParameter 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.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of the OperationStatus object returns the state of an asynchronous
+ * operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller The operation to restart an Azure Bare Metal Instance.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param azureBareMetalInstanceName Name of the Azure Bare Metal Instance, also known as the ResourceName.
+ * @param forceParameter 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.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the OperationStatus object returns the state of an asynchronous operation on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono The operation to restart an Azure Bare Metal Instance.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param azureBareMetalInstanceName Name of the Azure Bare Metal Instance, also known as the ResourceName.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the OperationStatus object returns the state of an asynchronous operation on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono The operation to restart an Azure Bare Metal Instance.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param azureBareMetalInstanceName Name of the Azure Bare Metal Instance, also known as the ResourceName.
+ * @param forceParameter 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.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the OperationStatus object returns the state of an asynchronous operation on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono The operation to restart an Azure Bare Metal Instance.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param azureBareMetalInstanceName Name of the Azure Bare Metal Instance, also known as the ResourceName.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the OperationStatus object returns the state of an asynchronous operation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public OperationStatusInner restart(String resourceGroupName, String azureBareMetalInstanceName) {
+ final ForceState forceParameter = null;
+ return restartAsync(resourceGroupName, azureBareMetalInstanceName, forceParameter).block();
+ }
+
+ /**
+ * Restart a Bare Metal Instance.
+ *
+ * The operation to restart an Azure Bare Metal Instance.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param azureBareMetalInstanceName Name of the Azure Bare Metal Instance, also known as the ResourceName.
+ * @param forceParameter 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.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the OperationStatus object returns the state of an asynchronous operation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public OperationStatusInner restart(
+ String resourceGroupName, String azureBareMetalInstanceName, ForceState forceParameter, Context context) {
+ return restartAsync(resourceGroupName, azureBareMetalInstanceName, forceParameter, context).block();
+ }
+
+ /**
+ * Shutdown a Bare Metal Instance.
+ *
+ * The operation to shutdown an Azure Bare Metal Instance.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param azureBareMetalInstanceName Name of the Azure Bare Metal Instance, also known as the ResourceName.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the OperationStatus object returns the state of an asynchronous operation along with {@link Response} on
+ * successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono The operation to shutdown an Azure Bare Metal Instance.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param azureBareMetalInstanceName Name of the Azure Bare Metal Instance, also known as the ResourceName.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the OperationStatus object returns the state of an asynchronous operation along with {@link Response} on
+ * successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono The operation to shutdown an Azure Bare Metal Instance.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param azureBareMetalInstanceName Name of the Azure Bare Metal Instance, also known as the ResourceName.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of the OperationStatus object returns the state of an asynchronous
+ * operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux The operation to shutdown an Azure Bare Metal Instance.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param azureBareMetalInstanceName Name of the Azure Bare Metal Instance, also known as the ResourceName.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of the OperationStatus object returns the state of an asynchronous
+ * operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux The operation to shutdown an Azure Bare Metal Instance.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param azureBareMetalInstanceName Name of the Azure Bare Metal Instance, also known as the ResourceName.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of the OperationStatus object returns the state of an asynchronous
+ * operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller The operation to shutdown an Azure Bare Metal Instance.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param azureBareMetalInstanceName Name of the Azure Bare Metal Instance, also known as the ResourceName.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of the OperationStatus object returns the state of an asynchronous
+ * operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller The operation to shutdown an Azure Bare Metal Instance.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param azureBareMetalInstanceName Name of the Azure Bare Metal Instance, also known as the ResourceName.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the OperationStatus object returns the state of an asynchronous operation on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono The operation to shutdown an Azure Bare Metal Instance.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param azureBareMetalInstanceName Name of the Azure Bare Metal Instance, also known as the ResourceName.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the OperationStatus object returns the state of an asynchronous operation on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono The operation to shutdown an Azure Bare Metal Instance.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param azureBareMetalInstanceName Name of the Azure Bare Metal Instance, also known as the ResourceName.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the OperationStatus object returns the state of an asynchronous operation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public OperationStatusInner shutdown(String resourceGroupName, String azureBareMetalInstanceName) {
+ return shutdownAsync(resourceGroupName, azureBareMetalInstanceName).block();
+ }
+
+ /**
+ * Shutdown a Bare Metal Instance.
+ *
+ * The operation to shutdown an Azure Bare Metal Instance.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param azureBareMetalInstanceName Name of the Azure Bare Metal Instance, also known as the ResourceName.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the OperationStatus object returns the state of an asynchronous operation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public OperationStatusInner shutdown(String resourceGroupName, String azureBareMetalInstanceName, Context context) {
+ return shutdownAsync(resourceGroupName, azureBareMetalInstanceName, context).block();
+ }
+
+ /**
+ * Returns a list of Azure Bare Metal Instances in the specified subscription.
*
- * Gets a list of AzureBareMetal instances in the specified subscription. The operations returns various
- * properties of each Azure BareMetal instance.
+ * Returns a list of Azure Bare Metal Instances in the specified subscription. The operations returns various
+ * properties of each Azure Bare Metal Instance.
*
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of AzureBareMetal instances in the specified subscription along with {@link PagedResponse} on
+ * @return the response from the List Azure Bare Metal Instances operation along with {@link PagedResponse} on
* successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -186,16 +1141,16 @@ private Mono Gets a list of AzureBareMetal instances in the specified subscription. The operations returns various
- * properties of each Azure BareMetal instance.
+ * Returns a list of Azure Bare Metal Instances in the specified subscription. The operations returns various
+ * properties of each Azure Bare Metal Instance.
*
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of AzureBareMetal instances in the specified subscription along with {@link PagedResponse} on
+ * @return the response from the List Azure Bare Metal Instances operation along with {@link PagedResponse} on
* successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -233,14 +1188,14 @@ private Mono Gets a list of AzureBareMetal instances in the specified subscription. The operations returns various
- * properties of each Azure BareMetal instance.
+ * Returns a list of Azure Bare Metal Instances in the specified subscription. The operations returns various
+ * properties of each Azure Bare Metal Instance.
*
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of AzureBareMetal instances in the specified subscription as paginated response with {@link
+ * @return the response from the List Azure Bare Metal Instances operation as paginated response with {@link
* PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
@@ -250,16 +1205,16 @@ private PagedFlux Gets a list of AzureBareMetal instances in the specified subscription. The operations returns various
- * properties of each Azure BareMetal instance.
+ * Returns a list of Azure Bare Metal Instances in the specified subscription. The operations returns various
+ * properties of each Azure Bare Metal Instance.
*
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of AzureBareMetal instances in the specified subscription as paginated response with {@link
+ * @return the response from the List Azure Bare Metal Instances operation as paginated response with {@link
* PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
@@ -269,14 +1224,14 @@ private PagedFlux Gets a list of AzureBareMetal instances in the specified subscription. The operations returns various
- * properties of each Azure BareMetal instance.
+ * Returns a list of Azure Bare Metal Instances in the specified subscription. The operations returns various
+ * properties of each Azure Bare Metal Instance.
*
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of AzureBareMetal instances in the specified subscription as paginated response with {@link
+ * @return the response from the List Azure Bare Metal Instances operation as paginated response with {@link
* PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
@@ -285,16 +1240,16 @@ public PagedIterable Gets a list of AzureBareMetal instances in the specified subscription. The operations returns various
- * properties of each Azure BareMetal instance.
+ * Returns a list of Azure Bare Metal Instances in the specified subscription. The operations returns various
+ * properties of each Azure Bare Metal Instance.
*
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of AzureBareMetal instances in the specified subscription as paginated response with {@link
+ * @return the response from the List Azure Bare Metal Instances operation as paginated response with {@link
* PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
@@ -303,16 +1258,16 @@ public PagedIterable Gets a list of AzureBareMetal instances in the specified subscription and resource group. The operations
- * returns various properties of each Azure BareMetal instance.
+ * Gets a list of Azure Bare Metal Instances in the specified subscription and resource group. The operations
+ * returns various properties of each Azure Bare Metal Instance.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of AzureBareMetal instances in the specified subscription and resource group along with {@link
+ * @return a list of Azure Bare Metal Instances in the specified subscription and resource group along with {@link
* PagedResponse} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -359,17 +1314,17 @@ private Mono Gets a list of AzureBareMetal instances in the specified subscription and resource group. The operations
- * returns various properties of each Azure BareMetal instance.
+ * Gets a list of Azure Bare Metal Instances in the specified subscription and resource group. The operations
+ * returns various properties of each Azure Bare Metal Instance.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of AzureBareMetal instances in the specified subscription and resource group along with {@link
+ * @return a list of Azure Bare Metal Instances in the specified subscription and resource group along with {@link
* PagedResponse} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -413,17 +1368,17 @@ private Mono Gets a list of AzureBareMetal instances in the specified subscription and resource group. The operations
- * returns various properties of each Azure BareMetal instance.
+ * Gets a list of Azure Bare Metal Instances in the specified subscription and resource group. The operations
+ * returns various properties of each Azure Bare Metal Instance.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of AzureBareMetal instances in the specified subscription and resource group as paginated response
- * with {@link PagedFlux}.
+ * @return a list of Azure Bare Metal Instances in the specified subscription and resource group as paginated
+ * response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux Gets a list of AzureBareMetal instances in the specified subscription and resource group. The operations
- * returns various properties of each Azure BareMetal instance.
+ * Gets a list of Azure Bare Metal Instances in the specified subscription and resource group. The operations
+ * returns various properties of each Azure Bare Metal Instance.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of AzureBareMetal instances in the specified subscription and resource group as paginated response
- * with {@link PagedFlux}.
+ * @return a list of Azure Bare Metal Instances in the specified subscription and resource group as paginated
+ * response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux Gets a list of AzureBareMetal instances in the specified subscription and resource group. The operations
- * returns various properties of each Azure BareMetal instance.
+ * Gets a list of Azure Bare Metal Instances in the specified subscription and resource group. The operations
+ * returns various properties of each Azure Bare Metal Instance.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of AzureBareMetal instances in the specified subscription and resource group as paginated response
- * with {@link PagedIterable}.
+ * @return a list of Azure Bare Metal Instances in the specified subscription and resource group as paginated
+ * response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable Gets a list of AzureBareMetal instances in the specified subscription and resource group. The operations
- * returns various properties of each Azure BareMetal instance.
+ * Gets a list of Azure Bare Metal Instances in the specified subscription and resource group. The operations
+ * returns various properties of each Azure Bare Metal Instance.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of AzureBareMetal instances in the specified subscription and resource group as paginated response
- * with {@link PagedIterable}.
+ * @return a list of Azure Bare Metal Instances in the specified subscription and resource group as paginated
+ * response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable Gets an Azure BareMetal instance for the specified subscription, resource group, and instance name.
+ * Gets an Azure Bare Metal Instance for the specified subscription, resource group, and instance name.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param azureBareMetalInstanceName Name of the Azure BareMetal on Azure instance.
+ * @param azureBareMetalInstanceName Name of the Azure Bare Metal Instance, also known as the ResourceName.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return an Azure BareMetal instance for the specified subscription, resource group, and instance name along with
+ * @return an Azure Bare Metal Instance for the specified subscription, resource group, and instance name along with
* {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -545,17 +1500,17 @@ private Mono Gets an Azure BareMetal instance for the specified subscription, resource group, and instance name.
+ * Gets an Azure Bare Metal Instance for the specified subscription, resource group, and instance name.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param azureBareMetalInstanceName Name of the Azure BareMetal on Azure instance.
+ * @param azureBareMetalInstanceName Name of the Azure Bare Metal Instance, also known as the ResourceName.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return an Azure BareMetal instance for the specified subscription, resource group, and instance name along with
+ * @return an Azure Bare Metal Instance for the specified subscription, resource group, and instance name along with
* {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -597,16 +1552,16 @@ private Mono Gets an Azure BareMetal instance for the specified subscription, resource group, and instance name.
+ * Gets an Azure Bare Metal Instance for the specified subscription, resource group, and instance name.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param azureBareMetalInstanceName Name of the Azure BareMetal on Azure instance.
+ * @param azureBareMetalInstanceName Name of the Azure Bare Metal Instance, also known as the ResourceName.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return an Azure BareMetal instance for the specified subscription, resource group, and instance name on
+ * @return an Azure Bare Metal Instance for the specified subscription, resource group, and instance name on
* successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -617,17 +1572,17 @@ private Mono Gets an Azure BareMetal instance for the specified subscription, resource group, and instance name.
+ * Gets an Azure Bare Metal Instance for the specified subscription, resource group, and instance name.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param azureBareMetalInstanceName Name of the Azure BareMetal on Azure instance.
+ * @param azureBareMetalInstanceName Name of the Azure Bare Metal Instance, also known as the ResourceName.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return an Azure BareMetal instance for the specified subscription, resource group, and instance name along with
+ * @return an Azure Bare Metal Instance for the specified subscription, resource group, and instance name along with
* {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -637,16 +1592,16 @@ public Response Gets an Azure BareMetal instance for the specified subscription, resource group, and instance name.
+ * Gets an Azure Bare Metal Instance for the specified subscription, resource group, and instance name.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param azureBareMetalInstanceName Name of the Azure BareMetal on Azure instance.
+ * @param azureBareMetalInstanceName Name of the Azure Bare Metal Instance, also known as the ResourceName.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return an Azure BareMetal instance for the specified subscription, resource group, and instance name.
+ * @return an Azure Bare Metal Instance for the specified subscription, resource group, and instance name.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public AzureBareMetalInstanceInner getByResourceGroup(String resourceGroupName, String azureBareMetalInstanceName) {
@@ -654,13 +1609,13 @@ public AzureBareMetalInstanceInner getByResourceGroup(String resourceGroupName,
}
/**
- * Patches the Tags field of a Azure BareMetal instance.
+ * Patches the Tags field of a Azure Bare Metal Instance.
*
- * Patches the Tags field of a Azure BareMetal instance for the specified subscription, resource group, and
+ * Patches the Tags field of a Azure Bare Metal Instance for the specified subscription, resource group, and
* instance name.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param azureBareMetalInstanceName Name of the Azure BareMetal on Azure instance.
+ * @param azureBareMetalInstanceName Name of the Azure Bare Metal Instance, also known as the ResourceName.
* @param tagsParameter Request body that only contains the new Tags field.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
@@ -716,13 +1671,13 @@ private Mono Patches the Tags field of a Azure BareMetal instance for the specified subscription, resource group, and
+ * Patches the Tags field of a Azure Bare Metal Instance for the specified subscription, resource group, and
* instance name.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param azureBareMetalInstanceName Name of the Azure BareMetal on Azure instance.
+ * @param azureBareMetalInstanceName Name of the Azure Bare Metal Instance, also known as the ResourceName.
* @param tagsParameter Request body that only contains the new Tags field.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -776,13 +1731,13 @@ private Mono Patches the Tags field of a Azure BareMetal instance for the specified subscription, resource group, and
+ * Patches the Tags field of a Azure Bare Metal Instance for the specified subscription, resource group, and
* instance name.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param azureBareMetalInstanceName Name of the Azure BareMetal on Azure instance.
+ * @param azureBareMetalInstanceName Name of the Azure Bare Metal Instance, also known as the ResourceName.
* @param tagsParameter Request body that only contains the new Tags field.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
@@ -798,13 +1753,13 @@ private Mono Patches the Tags field of a Azure BareMetal instance for the specified subscription, resource group, and
+ * Patches the Tags field of a Azure Bare Metal Instance for the specified subscription, resource group, and
* instance name.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param azureBareMetalInstanceName Name of the Azure BareMetal on Azure instance.
+ * @param azureBareMetalInstanceName Name of the Azure Bare Metal Instance, also known as the ResourceName.
* @param tagsParameter Request body that only contains the new Tags field.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -820,13 +1775,13 @@ public Response Patches the Tags field of a Azure BareMetal instance for the specified subscription, resource group, and
+ * Patches the Tags field of a Azure Bare Metal Instance for the specified subscription, resource group, and
* instance name.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param azureBareMetalInstanceName Name of the Azure BareMetal on Azure instance.
+ * @param azureBareMetalInstanceName Name of the Azure Bare Metal Instance, also known as the ResourceName.
* @param tagsParameter Request body that only contains the new Tags field.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
@@ -848,7 +1803,7 @@ public AzureBareMetalInstanceInner update(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response from the List AzureBareMetal Instances operation along with {@link PagedResponse} on
+ * @return the response from the List Azure Bare Metal Instances operation along with {@link PagedResponse} on
* successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -887,7 +1842,7 @@ private Mono Gets a list of AzureBareMetalStorage instances in the specified subscription. The operations returns various
+ * properties of each Azure Bare Metal Instance.
+ *
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of AzureBareMetalStorage instances in the specified subscription along with {@link PagedResponse}
+ * on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono Gets a list of AzureBareMetalStorage instances in the specified subscription. The operations returns various
+ * properties of each Azure Bare Metal Instance.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of AzureBareMetalStorage instances in the specified subscription along with {@link PagedResponse}
+ * on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono Gets a list of AzureBareMetalStorage instances in the specified subscription. The operations returns various
+ * properties of each Azure Bare Metal Instance.
+ *
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of AzureBareMetalStorage instances in the specified subscription as paginated response with {@link
+ * PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux Gets a list of AzureBareMetalStorage instances in the specified subscription. The operations returns various
+ * properties of each Azure Bare Metal Instance.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of AzureBareMetalStorage instances in the specified subscription as paginated response with {@link
+ * PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux Gets a list of AzureBareMetalStorage instances in the specified subscription. The operations returns various
+ * properties of each Azure Bare Metal Instance.
+ *
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of AzureBareMetalStorage instances in the specified subscription as paginated response with {@link
+ * PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable Gets a list of AzureBareMetalStorage instances in the specified subscription. The operations returns various
+ * properties of each Azure Bare Metal Instance.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of AzureBareMetalStorage instances in the specified subscription as paginated response with {@link
+ * PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable Gets a list of AzureBareMetalStorage instances in the specified subscription and resource group. The
+ * operations returns various properties of each Azure Bare Metal Instance.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of AzureBareMetalStorage instances in the specified subscription and resource group along with
+ * {@link PagedResponse} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono Gets a list of AzureBareMetalStorage instances in the specified subscription and resource group. The
+ * operations returns various properties of each Azure Bare Metal Instance.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of AzureBareMetalStorage instances in the specified subscription and resource group along with
+ * {@link PagedResponse} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono Gets a list of AzureBareMetalStorage instances in the specified subscription and resource group. The
+ * operations returns various properties of each Azure Bare Metal Instance.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of AzureBareMetalStorage instances in the specified subscription and resource group as paginated
+ * response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux Gets a list of AzureBareMetalStorage instances in the specified subscription and resource group. The
+ * operations returns various properties of each Azure Bare Metal Instance.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of AzureBareMetalStorage instances in the specified subscription and resource group as paginated
+ * response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux Gets a list of AzureBareMetalStorage instances in the specified subscription and resource group. The
+ * operations returns various properties of each Azure Bare Metal Instance.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of AzureBareMetalStorage instances in the specified subscription and resource group as paginated
+ * response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable Gets a list of AzureBareMetalStorage instances in the specified subscription and resource group. The
+ * operations returns various properties of each Azure Bare Metal Instance.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of AzureBareMetalStorage instances in the specified subscription and resource group as paginated
+ * response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable Gets an Azure Bare Metal Storage instance for the specified subscription, resource group, and instance name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param azureBareMetalStorageInstanceName Name of the Azure Bare Metal Storage Instance, also known as the
+ * ResourceName.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Bare Metal Storage instance for the specified subscription, resource group, and instance name
+ * along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono Gets an Azure Bare Metal Storage instance for the specified subscription, resource group, and instance name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param azureBareMetalStorageInstanceName Name of the Azure Bare Metal Storage Instance, also known as the
+ * ResourceName.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Bare Metal Storage instance for the specified subscription, resource group, and instance name
+ * along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono Gets an Azure Bare Metal Storage instance for the specified subscription, resource group, and instance name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param azureBareMetalStorageInstanceName Name of the Azure Bare Metal Storage Instance, also known as the
+ * ResourceName.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Bare Metal Storage instance for the specified subscription, resource group, and instance name on
+ * successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono Gets an Azure Bare Metal Storage instance for the specified subscription, resource group, and instance name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param azureBareMetalStorageInstanceName Name of the Azure Bare Metal Storage Instance, also known as the
+ * ResourceName.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Bare Metal Storage instance for the specified subscription, resource group, and instance name
+ * along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response Gets an Azure Bare Metal Storage instance for the specified subscription, resource group, and instance name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param azureBareMetalStorageInstanceName Name of the Azure Bare Metal Storage Instance, also known as the
+ * ResourceName.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Bare Metal Storage instance for the specified subscription, resource group, and instance name.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public AzureBareMetalStorageInstanceInner getByResourceGroup(
+ String resourceGroupName, String azureBareMetalStorageInstanceName) {
+ return getByResourceGroupWithResponse(resourceGroupName, azureBareMetalStorageInstanceName, Context.NONE)
+ .getValue();
+ }
+
+ /**
+ * Create an azure bare metal storage resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param azureBareMetalStorageInstanceName Name of the Azure Bare Metal Storage Instance, also known as the
+ * ResourceName.
+ * @param requestBodyParameters request body for put call.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return azureBareMetalStorageInstance info on Azure (ARM properties and AzureBareMetalStorage properties) along
+ * with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono Patches the Tags field of a Azure Bare Metal Storage instance for the specified subscription, resource group,
+ * and instance name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param azureBareMetalStorageInstanceName Name of the Azure Bare Metal Storage Instance, also known as the
+ * ResourceName.
+ * @param tagsParameter Request body that only contains the new Tags field.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return azureBareMetalStorageInstance info on Azure (ARM properties and AzureBareMetalStorage properties) along
+ * with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono Patches the Tags field of a Azure Bare Metal Storage instance for the specified subscription, resource group,
+ * and instance name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param azureBareMetalStorageInstanceName Name of the Azure Bare Metal Storage Instance, also known as the
+ * ResourceName.
+ * @param tagsParameter Request body that only contains the new Tags field.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return azureBareMetalStorageInstance info on Azure (ARM properties and AzureBareMetalStorage properties) along
+ * with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono Patches the Tags field of a Azure Bare Metal Storage instance for the specified subscription, resource group,
+ * and instance name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param azureBareMetalStorageInstanceName Name of the Azure Bare Metal Storage Instance, also known as the
+ * ResourceName.
+ * @param tagsParameter Request body that only contains the new Tags field.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return azureBareMetalStorageInstance info on Azure (ARM properties and AzureBareMetalStorage properties) on
+ * successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono Patches the Tags field of a Azure Bare Metal Storage instance for the specified subscription, resource group,
+ * and instance name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param azureBareMetalStorageInstanceName Name of the Azure Bare Metal Storage Instance, also known as the
+ * ResourceName.
+ * @param tagsParameter Request body that only contains the new Tags field.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return azureBareMetalStorageInstance info on Azure (ARM properties and AzureBareMetalStorage properties) along
+ * with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response Patches the Tags field of a Azure Bare Metal Storage instance for the specified subscription, resource group,
+ * and instance name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param azureBareMetalStorageInstanceName Name of the Azure Bare Metal Storage Instance, also known as the
+ * ResourceName.
+ * @param tagsParameter Request body that only contains the new Tags field.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return azureBareMetalStorageInstance info on Azure (ARM properties and AzureBareMetalStorage properties).
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public AzureBareMetalStorageInstanceInner update(
+ String resourceGroupName, String azureBareMetalStorageInstanceName, Tags tagsParameter) {
+ return updateWithResponse(resourceGroupName, azureBareMetalStorageInstanceName, tagsParameter, Context.NONE)
+ .getValue();
+ }
+
+ /**
+ * Delete an AzureBareMetalStorageInstance.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param azureBareMetalStorageInstanceName Name of the Azure Bare Metal Storage Instance, also known as the
+ * ResourceName.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono The nextLink parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response from the Get AzureBareMetalStorageInstances operation along with {@link PagedResponse} on
+ * successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono The nextLink parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response from the Get AzureBareMetalStorageInstances operation along with {@link PagedResponse} on
+ * successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono