Share via


MediaAssetTrackResource Class

Definition

A Class representing a MediaAssetTrack along with the instance operations that can be performed on it. If you have a Azure.Core.ResourceIdentifier you can construct a MediaAssetTrackResource from an instance of Azure.ResourceManager.ArmClient using the GetMediaAssetTrackResource method. Otherwise you can get one from its parent resource MediaAssetResource using the GetMediaAssetTrack method.

public class MediaAssetTrackResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.Media.MediaAssetTrackData>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.Media.MediaAssetTrackData>
type MediaAssetTrackResource = class
    inherit ArmResource
    interface IJsonModel<MediaAssetTrackData>
    interface IPersistableModel<MediaAssetTrackData>
Public Class MediaAssetTrackResource
Inherits ArmResource
Implements IJsonModel(Of MediaAssetTrackData), IPersistableModel(Of MediaAssetTrackData)
Inheritance
Azure.ResourceManager.ArmResource
MediaAssetTrackResource
Implements
System.ClientModel.Primitives.IJsonModel<MediaAssetTrackData> System.ClientModel.Primitives.IPersistableModel<MediaAssetTrackData> System.ClientModel.Primitives.IPersistableModel<T>

Constructors

MediaAssetTrackResource()

Initializes a new instance of the MediaAssetTrackResource class for mocking.

Fields

ResourceType

Gets the resource type for the operations.

Properties

Data

Gets the data representing this Feature.

HasData

Gets whether or not the current instance has data.

Methods

CreateResourceIdentifier(String, String, String, String, String)

Generate the resource identifier of a MediaAssetTrackResource instance.

Delete(WaitUntil, CancellationToken)

Deletes a Track in the asset

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets/{assetName}/tracks/{trackName}
  • Operation Id: Tracks_Delete
  • Default Api Version: 2023-01-01
  • Resource: MediaAssetTrackResource
DeleteAsync(WaitUntil, CancellationToken)

Deletes a Track in the asset

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets/{assetName}/tracks/{trackName}
  • Operation Id: Tracks_Delete
  • Default Api Version: 2023-01-01
  • Resource: MediaAssetTrackResource
Get(CancellationToken)

Get the details of a Track in the Asset

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets/{assetName}/tracks/{trackName}
  • Operation Id: Tracks_Get
  • Default Api Version: 2023-01-01
  • Resource: MediaAssetTrackResource
GetAsync(CancellationToken)

Get the details of a Track in the Asset

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets/{assetName}/tracks/{trackName}
  • Operation Id: Tracks_Get
  • Default Api Version: 2023-01-01
  • Resource: MediaAssetTrackResource
Update(WaitUntil, MediaAssetTrackData, CancellationToken)

Updates an existing Track in the asset

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets/{assetName}/tracks/{trackName}
  • Operation Id: Tracks_Update
  • Default Api Version: 2023-01-01
  • Resource: MediaAssetTrackResource
UpdateAsync(WaitUntil, MediaAssetTrackData, CancellationToken)

Updates an existing Track in the asset

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets/{assetName}/tracks/{trackName}
  • Operation Id: Tracks_Update
  • Default Api Version: 2023-01-01
  • Resource: MediaAssetTrackResource
UpdateTrackData(WaitUntil, CancellationToken)

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.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets/{assetName}/tracks/{trackName}/updateTrackData
  • Operation Id: Tracks_UpdateTrackData
  • Default Api Version: 2023-01-01
  • Resource: MediaAssetTrackResource
UpdateTrackDataAsync(WaitUntil, CancellationToken)

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.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets/{assetName}/tracks/{trackName}/updateTrackData
  • Operation Id: Tracks_UpdateTrackData
  • Default Api Version: 2023-01-01
  • Resource: MediaAssetTrackResource

Explicit Interface Implementations

IJsonModel<MediaAssetTrackData>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<MediaAssetTrackData>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided System.Text.Json.Utf8JsonWriter.

IPersistableModel<MediaAssetTrackData>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided System.BinaryData into a model.

IPersistableModel<MediaAssetTrackData>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<MediaAssetTrackData>.Write(ModelReaderWriterOptions)

Writes the model into a System.BinaryData.

Applies to