TracksOperations Class
Warning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
<xref:tracks> attribute.
- Inheritance
-
builtins.objectTracksOperations
Constructor
TracksOperations(*args, **kwargs)
Methods
begin_create_or_update |
Create or update a Track. Create or update a Track in the asset. |
begin_delete |
Delete a Track. Deletes a Track in the asset. |
begin_update |
Update an Track. Updates an existing Track in the asset. |
begin_update_track_data |
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. |
get |
Get a Track. Get the details of a Track in the Asset. |
list |
List Tracks in the Asset. Lists the Tracks in the asset. |
begin_create_or_update
Create or update a Track.
Create or update a Track in the asset.
async begin_create_or_update(resource_group_name: str, account_name: str, asset_name: str, track_name: str, parameters: _models.AssetTrack, *, content_type: str = 'application/json', **kwargs: Any) -> AsyncLROPoller[_models.AssetTrack]
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The name of the resource group within the Azure subscription. Required. |
account_name
Required
|
The Media Services account name. Required. |
asset_name
Required
|
The Asset name. Required. |
track_name
Required
|
The Asset Track name. Required. |
parameters
Required
|
AssetTrack or
IO
The request parameters. Is either a model type or a IO type. Required. |
Keyword-Only Parameters
Name | Description |
---|---|
content_type
|
Body Parameter content-type. Known values are: 'application/json'. Default value is None. |
cls
|
A custom type or function that will be passed the direct response |
continuation_token
|
A continuation token to restart a poller from a saved state. |
polling
|
By default, your polling method will be AsyncARMPolling. Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. |
polling_interval
|
Default waiting time between two polls for LRO operations if no Retry-After header is present. |
Returns
Type | Description |
---|---|
An instance of AsyncLROPoller that returns either AssetTrack or the result of cls(response) |
Exceptions
Type | Description |
---|---|
begin_delete
Delete a Track.
Deletes a Track in the asset.
async begin_delete(resource_group_name: str, account_name: str, asset_name: str, track_name: str, **kwargs: Any) -> AsyncLROPoller[None]
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The name of the resource group within the Azure subscription. Required. |
account_name
Required
|
The Media Services account name. Required. |
asset_name
Required
|
The Asset name. Required. |
track_name
Required
|
The Asset Track name. Required. |
Keyword-Only Parameters
Name | Description |
---|---|
cls
|
A custom type or function that will be passed the direct response |
continuation_token
|
A continuation token to restart a poller from a saved state. |
polling
|
By default, your polling method will be AsyncARMPolling. Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. |
polling_interval
|
Default waiting time between two polls for LRO operations if no Retry-After header is present. |
Returns
Type | Description |
---|---|
An instance of AsyncLROPoller that returns either None or the result of cls(response) |
Exceptions
Type | Description |
---|---|
begin_update
Update an Track.
Updates an existing Track in the asset.
async begin_update(resource_group_name: str, account_name: str, asset_name: str, track_name: str, parameters: _models.AssetTrack, *, content_type: str = 'application/json', **kwargs: Any) -> AsyncLROPoller[_models.AssetTrack]
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The name of the resource group within the Azure subscription. Required. |
account_name
Required
|
The Media Services account name. Required. |
asset_name
Required
|
The Asset name. Required. |
track_name
Required
|
The Asset Track name. Required. |
parameters
Required
|
AssetTrack or
IO
The request parameters. Is either a model type or a IO type. Required. |
Keyword-Only Parameters
Name | Description |
---|---|
content_type
|
Body Parameter content-type. Known values are: 'application/json'. Default value is None. |
cls
|
A custom type or function that will be passed the direct response |
continuation_token
|
A continuation token to restart a poller from a saved state. |
polling
|
By default, your polling method will be AsyncARMPolling. Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. |
polling_interval
|
Default waiting time between two polls for LRO operations if no Retry-After header is present. |
Returns
Type | Description |
---|---|
An instance of AsyncLROPoller that returns either AssetTrack or the result of cls(response) |
Exceptions
Type | Description |
---|---|
begin_update_track_data
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.
async begin_update_track_data(resource_group_name: str, account_name: str, asset_name: str, track_name: str, **kwargs: Any) -> AsyncLROPoller[None]
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The name of the resource group within the Azure subscription. Required. |
account_name
Required
|
The Media Services account name. Required. |
asset_name
Required
|
The Asset name. Required. |
track_name
Required
|
The Asset Track name. Required. |
Keyword-Only Parameters
Name | Description |
---|---|
cls
|
A custom type or function that will be passed the direct response |
continuation_token
|
A continuation token to restart a poller from a saved state. |
polling
|
By default, your polling method will be AsyncARMPolling. Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. |
polling_interval
|
Default waiting time between two polls for LRO operations if no Retry-After header is present. |
Returns
Type | Description |
---|---|
An instance of AsyncLROPoller that returns either None or the result of cls(response) |
Exceptions
Type | Description |
---|---|
get
Get a Track.
Get the details of a Track in the Asset.
async get(resource_group_name: str, account_name: str, asset_name: str, track_name: str, **kwargs: Any) -> AssetTrack
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The name of the resource group within the Azure subscription. Required. |
account_name
Required
|
The Media Services account name. Required. |
asset_name
Required
|
The Asset name. Required. |
track_name
Required
|
The Asset Track name. Required. |
Keyword-Only Parameters
Name | Description |
---|---|
cls
|
A custom type or function that will be passed the direct response |
Returns
Type | Description |
---|---|
AssetTrack or the result of cls(response) |
Exceptions
Type | Description |
---|---|
list
List Tracks in the Asset.
Lists the Tracks in the asset.
list(resource_group_name: str, account_name: str, asset_name: str, **kwargs: Any) -> AsyncIterable[AssetTrack]
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The name of the resource group within the Azure subscription. Required. |
account_name
Required
|
The Media Services account name. Required. |
asset_name
Required
|
The Asset name. Required. |
Keyword-Only Parameters
Name | Description |
---|---|
cls
|
A custom type or function that will be passed the direct response |
Returns
Type | Description |
---|---|
An iterator like instance of either AssetTrack or the result of cls(response) |
Exceptions
Type | Description |
---|---|
Attributes
models
models = <module 'azure.mgmt.media.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.11.9\\x64\\Lib\\site-packages\\azure\\mgmt\\media\\models\\__init__.py'>
Azure SDK for Python