Interface AzureBareMetalInstancesClient
-
Method Summary
Modifier and TypeMethodDescriptiongetByResourceGroup
(String resourceGroupName, String azureBareMetalInstanceName) Gets an Azure BareMetal instance.com.azure.core.http.rest.Response<AzureBareMetalInstanceInner>
getByResourceGroupWithResponse
(String resourceGroupName, String azureBareMetalInstanceName, com.azure.core.util.Context context) Gets an Azure BareMetal instance.com.azure.core.http.rest.PagedIterable<AzureBareMetalInstanceInner>
list()
Gets a list of Azure BareMetal instances in the specified subscription.com.azure.core.http.rest.PagedIterable<AzureBareMetalInstanceInner>
list
(com.azure.core.util.Context context) Gets a list of Azure BareMetal instances in the specified subscription.com.azure.core.http.rest.PagedIterable<AzureBareMetalInstanceInner>
listByResourceGroup
(String resourceGroupName) Gets a list of Azure BareMetal instances in the specified subscription and resource group.com.azure.core.http.rest.PagedIterable<AzureBareMetalInstanceInner>
listByResourceGroup
(String resourceGroupName, com.azure.core.util.Context context) Gets a list of Azure BareMetal instances in the specified subscription and resource group.Patches the Tags field of a Azure BareMetal instance.com.azure.core.http.rest.Response<AzureBareMetalInstanceInner>
updateWithResponse
(String resourceGroupName, String azureBareMetalInstanceName, Tags tagsParameter, com.azure.core.util.Context context) Patches the Tags field of a Azure BareMetal instance.
-
Method Details
-
list
com.azure.core.http.rest.PagedIterable<AzureBareMetalInstanceInner> list()Gets a list of Azure BareMetal 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 AzureBareMetal instances in the specified subscription as paginated response with
PagedIterable
. - Throws:
com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
list
com.azure.core.http.rest.PagedIterable<AzureBareMetalInstanceInner> list(com.azure.core.util.Context context) Gets a list of Azure BareMetal 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.
- Parameters:
context
- The context to associate with this operation.- Returns:
- a list of AzureBareMetal instances in the specified subscription as paginated response with
PagedIterable
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
listByResourceGroup
com.azure.core.http.rest.PagedIterable<AzureBareMetalInstanceInner> listByResourceGroup(String resourceGroupName) Gets a list of Azure BareMetal instances in the specified subscription and resource group.Gets a list of AzureBareMetal instances in the specified subscription and resource group. The operations returns various properties of each Azure BareMetal instance.
- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.- Returns:
- a list of AzureBareMetal instances in the specified subscription and resource group as paginated response
with
PagedIterable
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
listByResourceGroup
com.azure.core.http.rest.PagedIterable<AzureBareMetalInstanceInner> listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context) Gets a list of Azure BareMetal instances in the specified subscription and resource group.Gets a list of AzureBareMetal instances in the specified subscription and resource group. The operations returns various properties of each Azure BareMetal instance.
- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.context
- The context to associate with this operation.- Returns:
- a list of AzureBareMetal instances in the specified subscription and resource group as paginated response
with
PagedIterable
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
getByResourceGroupWithResponse
com.azure.core.http.rest.Response<AzureBareMetalInstanceInner> getByResourceGroupWithResponse(String resourceGroupName, String azureBareMetalInstanceName, com.azure.core.util.Context context) Gets an Azure BareMetal instance.Gets an Azure BareMetal instance for the specified subscription, resource group, and instance name.
- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.azureBareMetalInstanceName
- Name of the Azure BareMetal on Azure instance.context
- The context to associate with this operation.- Returns:
- an Azure BareMetal instance for the specified subscription, resource group, and instance name along with
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
getByResourceGroup
AzureBareMetalInstanceInner getByResourceGroup(String resourceGroupName, String azureBareMetalInstanceName) Gets an Azure BareMetal instance.Gets an Azure BareMetal instance for the specified subscription, resource group, and instance name.
- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.azureBareMetalInstanceName
- Name of the Azure BareMetal on Azure instance.- Returns:
- an Azure BareMetal instance for the specified subscription, resource group, and instance name.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
updateWithResponse
com.azure.core.http.rest.Response<AzureBareMetalInstanceInner> updateWithResponse(String resourceGroupName, String azureBareMetalInstanceName, Tags tagsParameter, com.azure.core.util.Context context) Patches the Tags field of a Azure BareMetal instance.Patches the Tags field of a Azure BareMetal instance for the specified subscription, resource group, and instance name.
- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.azureBareMetalInstanceName
- Name of the Azure BareMetal on Azure instance.tagsParameter
- Request body that only contains the new Tags field.context
- The context to associate with this operation.- Returns:
- azureBareMetal instance info on Azure (ARM properties and AzureBareMetal properties) along with
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
update
AzureBareMetalInstanceInner update(String resourceGroupName, String azureBareMetalInstanceName, Tags tagsParameter) Patches the Tags field of a Azure BareMetal instance.Patches the Tags field of a Azure BareMetal instance for the specified subscription, resource group, and instance name.
- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.azureBareMetalInstanceName
- Name of the Azure BareMetal on Azure instance.tagsParameter
- Request body that only contains the new Tags field.- Returns:
- azureBareMetal instance info on Azure (ARM properties and AzureBareMetal properties).
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-