Condividi tramite


MediaTransformCollection.CreateOrUpdate Method

Definition

Creates or updates a new Transform.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/transforms/{transformName}
  • Operation Id: Transforms_CreateOrUpdate
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Media.MediaTransformResource> CreateOrUpdate (Azure.WaitUntil waitUntil, string transformName, Azure.ResourceManager.Media.MediaTransformData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.Media.MediaTransformData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Media.MediaTransformResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.Media.MediaTransformData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Media.MediaTransformResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, transformName As String, data As MediaTransformData, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation(Of MediaTransformResource)

Parameters

waitUntil
WaitUntil

Completed if the method should wait to return until the long-running operation has completed on the service; Started if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.

transformName
String

The Transform name.

data
MediaTransformData

The request parameters.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

transformName is an empty string, and was expected to be non-empty.

transformName or data is null.

Applies to