Interface AssetsClient


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

    • list

      com.azure.core.http.rest.PagedIterable<AssetInner> 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<AssetInner> 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<AssetInner> 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

      AssetInner 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.
    • createOrUpdateWithResponse

      com.azure.core.http.rest.Response<AssetInner> createOrUpdateWithResponse(String resourceGroupName, String accountName, String assetName, AssetInner parameters, com.azure.core.util.Context context)
      Create or update an Asset

      Creates or updates 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.
      parameters - The request parameters.
      context - The context to associate with this operation.
      Returns:
      an 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.
    • createOrUpdate

      AssetInner createOrUpdate(String resourceGroupName, String accountName, String assetName, AssetInner parameters)
      Create or update an Asset

      Creates or updates 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.
      parameters - The request parameters.
      Returns:
      an 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.
    • 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.
    • updateWithResponse

      com.azure.core.http.rest.Response<AssetInner> updateWithResponse(String resourceGroupName, String accountName, String assetName, AssetInner parameters, com.azure.core.util.Context context)
      Update an Asset

      Updates an existing 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.
      parameters - The request parameters.
      context - The context to associate with this operation.
      Returns:
      an 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.
    • update

      AssetInner update(String resourceGroupName, String accountName, String assetName, AssetInner parameters)
      Update an Asset

      Updates an existing 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.
      parameters - The request parameters.
      Returns:
      an 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.
    • listContainerSasWithResponse

      com.azure.core.http.rest.Response<AssetContainerSasInner> 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

      AssetContainerSasInner 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<StorageEncryptedAssetDecryptionDataInner> 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

      StorageEncryptedAssetDecryptionDataInner 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<ListStreamingLocatorsResponseInner> 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

      ListStreamingLocatorsResponseInner 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.