public interface Assets
Resource collection API of Assets.
  • Method Details

    • getByResourceGroupWithResponse

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

      Asset getByResourceGroup(String resourceGroupName, String assetName)
      Get a Asset.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      assetName - Asset name parameter.
      Returns:
      a Asset.
      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.
    • deleteByResourceGroup

      void deleteByResourceGroup(String resourceGroupName, String assetName)
      Delete a Asset.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      assetName - Asset name parameter.
      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 assetName, com.azure.core.util.Context context)
      Delete a Asset.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      assetName - Asset name parameter.
      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<Asset> listByResourceGroup(String resourceGroupName)
      List Asset resources by resource group.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      Returns:
      the response of a Asset 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<Asset> listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context)
      List Asset 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 Asset 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<Asset> list()
      List Asset resources by subscription ID.
      Returns:
      the response of a Asset 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<Asset> list(com.azure.core.util.Context context)
      List Asset resources by subscription ID.
      Parameters:
      context - The context to associate with this operation.
      Returns:
      the response of a Asset 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.
    • getById

      Asset getById(String id)
      Get a Asset.
      Parameters:
      id - the resource ID.
      Returns:
      a Asset 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.
    • getByIdWithResponse

      com.azure.core.http.rest.Response<Asset> getByIdWithResponse(String id, com.azure.core.util.Context context)
      Get a Asset.
      Parameters:
      id - the resource ID.
      context - The context to associate with this operation.
      Returns:
      a Asset 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.
    • deleteById

      void deleteById(String id)
      Delete a Asset.
      Parameters:
      id - the resource ID.
      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.
    • deleteByIdWithResponse

      void deleteByIdWithResponse(String id, com.azure.core.util.Context context)
      Delete a Asset.
      Parameters:
      id - the resource ID.
      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.
    • define

      Begins definition for a new Asset resource.
      Parameters:
      name - resource name.
      Returns:
      the first stage of the new Asset definition.