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

    • list

      com.azure.core.http.rest.PagedIterable<AssetTrack> list(String resourceGroupName, String accountName, String assetName)
      List Tracks in the Asset

      Lists the Tracks in the asset.

      Parameters:
      resourceGroupName - The name of the resource group within the Azure subscription.
      accountName - The Media Services account name.
      assetName - The Asset name.
      Returns:
      a collection of AssetTrack 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<AssetTrack> list(String resourceGroupName, String accountName, String assetName, com.azure.core.util.Context context)
      List Tracks in the Asset

      Lists the Tracks in the 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:
      a collection of AssetTrack 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<AssetTrack> getWithResponse(String resourceGroupName, String accountName, String assetName, String trackName, com.azure.core.util.Context context)
      Get a Track

      Get the details of a Track in the Asset.

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

      AssetTrack get(String resourceGroupName, String accountName, String assetName, String trackName)
      Get a Track

      Get the details of a Track in the Asset.

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

      void delete(String resourceGroupName, String accountName, String assetName, String trackName)
      Delete a Track

      Deletes a Track in the asset.

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

      void delete(String resourceGroupName, String accountName, String assetName, String trackName, com.azure.core.util.Context context)
      Delete a Track

      Deletes a Track in the asset.

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

      void updateTrackData(String resourceGroupName, String accountName, String assetName, String trackName)
      Update the track data

      Update the track data. Call this API after any changes are made to the track data stored in the asset container. For example, you have modified the WebVTT captions file in the Azure blob storage container for the asset, viewers will not see the new version of the captions unless this API is called. Note, the changes may not be reflected immediately. CDN cache may also need to be purged if applicable.

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

      void updateTrackData(String resourceGroupName, String accountName, String assetName, String trackName, com.azure.core.util.Context context)
      Update the track data

      Update the track data. Call this API after any changes are made to the track data stored in the asset container. For example, you have modified the WebVTT captions file in the Azure blob storage container for the asset, viewers will not see the new version of the captions unless this API is called. Note, the changes may not be reflected immediately. CDN cache may also need to be purged if applicable.

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

      AssetTrack getById(String id)
      Get a Track

      Get the details of a Track in the Asset.

      Parameters:
      id - the resource ID.
      Returns:
      the details of a Track in the 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<AssetTrack> getByIdWithResponse(String id, com.azure.core.util.Context context)
      Get a Track

      Get the details of a Track in the Asset.

      Parameters:
      id - the resource ID.
      context - The context to associate with this operation.
      Returns:
      the details of a Track in the 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 Track

      Deletes a Track in the 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 Track

      Deletes a Track in the 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 AssetTrack resource.
      Parameters:
      name - resource name.
      Returns:
      the first stage of the new AssetTrack definition.