Share via


AssetsOperationsExtensions.CreateOrUpdateAsync Method

Definition

Create or update an Asset

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.Media.Models.Asset> CreateOrUpdateAsync (this Microsoft.Azure.Management.Media.IAssetsOperations operations, string resourceGroupName, string accountName, string assetName, Microsoft.Azure.Management.Media.Models.Asset parameters, System.Threading.CancellationToken cancellationToken = default);
static member CreateOrUpdateAsync : Microsoft.Azure.Management.Media.IAssetsOperations * string * string * string * Microsoft.Azure.Management.Media.Models.Asset * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Media.Models.Asset>
<Extension()>
Public Function CreateOrUpdateAsync (operations As IAssetsOperations, resourceGroupName As String, accountName As String, assetName As String, parameters As Asset, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Asset)

Parameters

operations
IAssetsOperations

The operations group for this extension method.

resourceGroupName
String

The name of the resource group within the Azure subscription.

accountName
String

The Media Services account name.

assetName
String

The Asset name.

parameters
Asset

The request parameters

cancellationToken
CancellationToken

The cancellation token.

Returns

Remarks

Creates or updates an Asset in the Media Services account

Applies to