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

    • list

      com.azure.core.http.rest.PagedIterable<Asset> list(String resourceGroupName, String accountName)
      List Assets

      List Assets in the Media Services account with optional filtering and ordering.

      Parameters:
      resourceGroupName - The name of the resource group within the Azure subscription.
      accountName - The Media Services account name.
      Returns:
      a collection of Asset items 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(String resourceGroupName, String accountName, String filter, Integer top, String orderby, com.azure.core.util.Context context)
      List Assets

      List Assets in the Media Services account with optional filtering and ordering.

      Parameters:
      resourceGroupName - The name of the resource group within the Azure subscription.
      accountName - The Media Services account name.
      filter - Restricts the set of items returned.
      top - Specifies a non-negative integer n that limits the number of items returned from a collection. The service returns the number of available items up to but not greater than the specified value n.
      orderby - Specifies the key by which the result collection should be ordered.
      context - The context to associate with this operation.
      Returns:
      a collection of Asset items 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.
    • getWithResponse

      com.azure.core.http.rest.Response<Asset> getWithResponse(String resourceGroupName, String accountName, String assetName, com.azure.core.util.Context context)
      Get an Asset

      Get the details of an Asset in the Media Services account.

      Parameters:
      resourceGroupName - The name of the resource group within the Azure subscription.
      accountName - The Media Services account name.
      assetName - The Asset name.
      context - The context to associate with this operation.
      Returns:
      the details of an Asset in the Media Services account 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.
    • get

      Asset get(String resourceGroupName, String accountName, String assetName)
      Get an Asset

      Get the details of an Asset in the Media Services account.

      Parameters:
      resourceGroupName - The name of the resource group within the Azure subscription.
      accountName - The Media Services account name.
      assetName - The Asset name.
      Returns:
      the details of an Asset in the Media Services account.
      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.
    • deleteWithResponse

      com.azure.core.http.rest.Response<Void> deleteWithResponse(String resourceGroupName, String accountName, String assetName, com.azure.core.util.Context context)
      Delete an Asset.

      Deletes an Asset in the Media Services account.

      Parameters:
      resourceGroupName - The name of the resource group within the Azure subscription.
      accountName - The Media Services account name.
      assetName - The Asset name.
      context - The context to associate with this operation.
      Returns:
      the 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.
    • delete

      void delete(String resourceGroupName, String accountName, String assetName)
      Delete an Asset.

      Deletes an Asset in the Media Services account.

      Parameters:
      resourceGroupName - The name of the resource group within the Azure subscription.
      accountName - The Media Services account name.
      assetName - The Asset 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.
    • listContainerSasWithResponse

      com.azure.core.http.rest.Response<AssetContainerSas> listContainerSasWithResponse(String resourceGroupName, String accountName, String assetName, ListContainerSasInput parameters, com.azure.core.util.Context context)
      List the Asset URLs

      Lists storage container URLs with shared access signatures (SAS) for uploading and downloading Asset content. The signatures are derived from the storage account keys.

      Parameters:
      resourceGroupName - The name of the resource group within the Azure subscription.
      accountName - The Media Services account name.
      assetName - The Asset name.
      parameters - The request parameters.
      context - The context to associate with this operation.
      Returns:
      the Asset Storage container SAS URLs 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.
    • listContainerSas

      AssetContainerSas listContainerSas(String resourceGroupName, String accountName, String assetName, ListContainerSasInput parameters)
      List the Asset URLs

      Lists storage container URLs with shared access signatures (SAS) for uploading and downloading Asset content. The signatures are derived from the storage account keys.

      Parameters:
      resourceGroupName - The name of the resource group within the Azure subscription.
      accountName - The Media Services account name.
      assetName - The Asset name.
      parameters - The request parameters.
      Returns:
      the Asset Storage container SAS URLs.
      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.
    • getEncryptionKeyWithResponse

      com.azure.core.http.rest.Response<StorageEncryptedAssetDecryptionData> getEncryptionKeyWithResponse(String resourceGroupName, String accountName, String assetName, com.azure.core.util.Context context)
      Gets the Asset storage key

      Gets the Asset storage encryption keys used to decrypt content created by version 2 of the Media Services API.

      Parameters:
      resourceGroupName - The name of the resource group within the Azure subscription.
      accountName - The Media Services account name.
      assetName - The Asset name.
      context - The context to associate with this operation.
      Returns:
      the Asset storage encryption keys used to decrypt content created by version 2 of the Media Services API 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.
    • getEncryptionKey

      StorageEncryptedAssetDecryptionData getEncryptionKey(String resourceGroupName, String accountName, String assetName)
      Gets the Asset storage key

      Gets the Asset storage encryption keys used to decrypt content created by version 2 of the Media Services API.

      Parameters:
      resourceGroupName - The name of the resource group within the Azure subscription.
      accountName - The Media Services account name.
      assetName - The Asset name.
      Returns:
      the Asset storage encryption keys used to decrypt content created by version 2 of the Media Services API.
      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.
    • listStreamingLocatorsWithResponse

      com.azure.core.http.rest.Response<ListStreamingLocatorsResponse> listStreamingLocatorsWithResponse(String resourceGroupName, String accountName, String assetName, com.azure.core.util.Context context)
      List Streaming Locators

      Lists Streaming Locators which are associated with this asset.

      Parameters:
      resourceGroupName - The name of the resource group within the Azure subscription.
      accountName - The Media Services account name.
      assetName - The Asset name.
      context - The context to associate with this operation.
      Returns:
      the Streaming Locators associated with this 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.
    • listStreamingLocators

      ListStreamingLocatorsResponse listStreamingLocators(String resourceGroupName, String accountName, String assetName)
      List Streaming Locators

      Lists Streaming Locators which are associated with this asset.

      Parameters:
      resourceGroupName - The name of the resource group within the Azure subscription.
      accountName - The Media Services account name.
      assetName - The Asset name.
      Returns:
      the Streaming Locators associated with this 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.
    • getById

      Asset getById(String id)
      Get an Asset

      Get the details of an Asset in the Media Services account.

      Parameters:
      id - the resource ID.
      Returns:
      the details of an Asset in the Media Services account 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 an Asset

      Get the details of an Asset in the Media Services account.

      Parameters:
      id - the resource ID.
      context - The context to associate with this operation.
      Returns:
      the details of an Asset in the Media Services account 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 an Asset.

      Deletes an Asset in the Media Services account.

      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

      com.azure.core.http.rest.Response<Void> deleteByIdWithResponse(String id, com.azure.core.util.Context context)
      Delete an Asset.

      Deletes an Asset in the Media Services account.

      Parameters:
      id - the resource ID.
      context - The context to associate with this operation.
      Returns:
      the 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.
    • define

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