Interface Tracks
-
Method Summary
Modifier and TypeMethodDescriptionBegins definition for a new AssetTrack resource.void
Delete a Trackvoid
delete
(String resourceGroupName, String accountName, String assetName, String trackName, com.azure.core.util.Context context) Delete a Trackvoid
deleteById
(String id) Delete a Trackvoid
deleteByIdWithResponse
(String id, com.azure.core.util.Context context) Delete a TrackGet a TrackGet a Trackcom.azure.core.http.rest.Response<AssetTrack>
getByIdWithResponse
(String id, com.azure.core.util.Context context) Get a Trackcom.azure.core.http.rest.Response<AssetTrack>
getWithResponse
(String resourceGroupName, String accountName, String assetName, String trackName, com.azure.core.util.Context context) Get a Trackcom.azure.core.http.rest.PagedIterable<AssetTrack>
List Tracks in the Assetcom.azure.core.http.rest.PagedIterable<AssetTrack>
list
(String resourceGroupName, String accountName, String assetName, com.azure.core.util.Context context) List Tracks in the Assetvoid
updateTrackData
(String resourceGroupName, String accountName, String assetName, String trackName) Update the track datavoid
updateTrackData
(String resourceGroupName, String accountName, String assetName, String trackName, com.azure.core.util.Context context) Update the track data
-
Method Details
-
list
com.azure.core.http.rest.PagedIterable<AssetTrack> list(String resourceGroupName, String accountName, String assetName) List Tracks in the AssetLists 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 AssetLists 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 TrackGet 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
Get a TrackGet 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
Delete a TrackDeletes 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 TrackDeletes 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 dataUpdate 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 dataUpdate 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
Get a TrackGet 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 TrackGet 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
Delete a TrackDeletes 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
Delete a TrackDeletes 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.
-