Interface TracksClient


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

    • list

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

      AssetTrackInner 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.
    • beginCreateOrUpdate

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<AssetTrackInner>,AssetTrackInner> beginCreateOrUpdate(String resourceGroupName, String accountName, String assetName, String trackName, AssetTrackInner parameters)
      Create or update a Track

      Create or update 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.
      parameters - The request parameters.
      Returns:
      the SyncPoller for polling of an Asset Track 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.
    • beginCreateOrUpdate

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<AssetTrackInner>,AssetTrackInner> beginCreateOrUpdate(String resourceGroupName, String accountName, String assetName, String trackName, AssetTrackInner parameters, com.azure.core.util.Context context)
      Create or update a Track

      Create or update 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.
      parameters - The request parameters.
      context - The context to associate with this operation.
      Returns:
      the SyncPoller for polling of an Asset Track 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.
    • createOrUpdate

      AssetTrackInner createOrUpdate(String resourceGroupName, String accountName, String assetName, String trackName, AssetTrackInner parameters)
      Create or update a Track

      Create or update 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.
      parameters - The request parameters.
      Returns:
      an Asset Track 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.
    • createOrUpdate

      AssetTrackInner createOrUpdate(String resourceGroupName, String accountName, String assetName, String trackName, AssetTrackInner parameters, com.azure.core.util.Context context)
      Create or update a Track

      Create or update 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.
      parameters - The request parameters.
      context - The context to associate with this operation.
      Returns:
      an Asset Track 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.
    • beginDelete

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(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.
      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 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.
      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 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.
    • beginUpdate

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<AssetTrackInner>,AssetTrackInner> beginUpdate(String resourceGroupName, String accountName, String assetName, String trackName, AssetTrackInner parameters)
      Update an Track

      Updates an existing 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.
      parameters - The request parameters.
      Returns:
      the SyncPoller for polling of an Asset Track 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.
    • beginUpdate

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<AssetTrackInner>,AssetTrackInner> beginUpdate(String resourceGroupName, String accountName, String assetName, String trackName, AssetTrackInner parameters, com.azure.core.util.Context context)
      Update an Track

      Updates an existing 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.
      parameters - The request parameters.
      context - The context to associate with this operation.
      Returns:
      the SyncPoller for polling of an Asset Track 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.
    • update

      AssetTrackInner update(String resourceGroupName, String accountName, String assetName, String trackName, AssetTrackInner parameters)
      Update an Track

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

      AssetTrackInner update(String resourceGroupName, String accountName, String assetName, String trackName, AssetTrackInner parameters, com.azure.core.util.Context context)
      Update an Track

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

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginUpdateTrackData(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.
      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.
    • beginUpdateTrackData

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginUpdateTrackData(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.
      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.
    • 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.