Interface InstancesClient


public interface InstancesClient
An instance of this class provides access to all the operations defined in InstancesClient.
  • Method Details

    • getByResourceGroupWithResponse

      com.azure.core.http.rest.Response<InstanceResourceInner> getByResourceGroupWithResponse(String resourceGroupName, String instancename, com.azure.core.util.Context context)
      Get a InstanceResource.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      instancename - Name of the Instance resource.
      context - The context to associate with this operation.
      Returns:
      a InstanceResource 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

      InstanceResourceInner getByResourceGroup(String resourceGroupName, String instancename)
      Get a InstanceResource.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      instancename - Name of the Instance resource.
      Returns:
      a InstanceResource.
      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.
    • beginCreateOrUpdate

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<InstanceResourceInner>,InstanceResourceInner> beginCreateOrUpdate(String resourceGroupName, String instancename, InstanceResourceInner resource)
      Create a InstanceResource.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      instancename - Name of the Instance resource.
      resource - Resource create parameters.
      Returns:
      the SyncPoller for polling of concrete tracked resource types can be created by aliasing this type using a specific property type.
      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.
    • beginCreateOrUpdate

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<InstanceResourceInner>,InstanceResourceInner> beginCreateOrUpdate(String resourceGroupName, String instancename, InstanceResourceInner resource, com.azure.core.util.Context context)
      Create a InstanceResource.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      instancename - Name of the Instance resource.
      resource - Resource create parameters.
      context - The context to associate with this operation.
      Returns:
      the SyncPoller for polling of concrete tracked resource types can be created by aliasing this type using a specific property type.
      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.
    • createOrUpdate

      InstanceResourceInner createOrUpdate(String resourceGroupName, String instancename, InstanceResourceInner resource)
      Create a InstanceResource.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      instancename - Name of the Instance resource.
      resource - Resource create parameters.
      Returns:
      concrete tracked resource types can be created by aliasing this type using a specific property type.
      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.
    • createOrUpdate

      InstanceResourceInner createOrUpdate(String resourceGroupName, String instancename, InstanceResourceInner resource, com.azure.core.util.Context context)
      Create a InstanceResource.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      instancename - Name of the Instance resource.
      resource - Resource create parameters.
      context - The context to associate with this operation.
      Returns:
      concrete tracked resource types can be created by aliasing this type using a specific property type.
      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<InstanceResourceInner> updateWithResponse(String resourceGroupName, String instancename, InstanceResourceUpdate properties, com.azure.core.util.Context context)
      Update a InstanceResource.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      instancename - Name of the Instance resource.
      properties - The resource properties to be updated.
      context - The context to associate with this operation.
      Returns:
      concrete tracked resource types can be created by aliasing this type using a specific property type 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

      InstanceResourceInner update(String resourceGroupName, String instancename, InstanceResourceUpdate properties)
      Update a InstanceResource.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      instancename - Name of the Instance resource.
      properties - The resource properties to be updated.
      Returns:
      concrete tracked resource types can be created by aliasing this type using a specific property type.
      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.
    • beginDelete

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(String resourceGroupName, String instancename)
      Delete a InstanceResource.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      instancename - Name of the Instance resource.
      Returns:
      the SyncPoller for polling of long-running operation.
      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.
    • beginDelete

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(String resourceGroupName, String instancename, com.azure.core.util.Context context)
      Delete a InstanceResource.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      instancename - Name of the Instance resource.
      context - The context to associate with this operation.
      Returns:
      the SyncPoller for polling of long-running operation.
      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.
    • delete

      void delete(String resourceGroupName, String instancename)
      Delete a InstanceResource.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      instancename - Name of the Instance resource.
      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.
    • delete

      void delete(String resourceGroupName, String instancename, com.azure.core.util.Context context)
      Delete a InstanceResource.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      instancename - Name of the Instance resource.
      context - The context to associate with this operation.
      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<InstanceResourceInner> listByResourceGroup(String resourceGroupName)
      List InstanceResource resources by resource group.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      Returns:
      the response of a InstanceResource list operation 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<InstanceResourceInner> listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context)
      List InstanceResource resources by resource group.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      context - The context to associate with this operation.
      Returns:
      the response of a InstanceResource list operation 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.
    • list

      com.azure.core.http.rest.PagedIterable<InstanceResourceInner> list()
      List InstanceResource resources by subscription ID.
      Returns:
      the response of a InstanceResource list operation 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<InstanceResourceInner> list(com.azure.core.util.Context context)
      List InstanceResource resources by subscription ID.
      Parameters:
      context - The context to associate with this operation.
      Returns:
      the response of a InstanceResource list operation 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.