/// <summary> /// Updates settings on an existing live event. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group within the Azure subscription. /// </param> /// <param name='accountName'> /// The Media Services account name. /// </param> /// <param name='liveEventName'> /// The name of the live event, maximum length is 32. /// </param> /// <param name='parameters'> /// Live event properties needed for patch. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <LiveEvent> BeginUpdateAsync(this ILiveEventsOperations operations, string resourceGroupName, string accountName, string liveEventName, LiveEvent parameters, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.BeginUpdateWithHttpMessagesAsync(resourceGroupName, accountName, liveEventName, parameters, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// List live events /// </summary> /// <remarks> /// Lists all the live events in the account. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='nextPageLink'> /// The NextLink from the previous successful call to List operation. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IPage <LiveEvent> > ListNextAsync(this ILiveEventsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// List live events /// </summary> /// <remarks> /// Lists all the live events in the account. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group within the Azure subscription. /// </param> /// <param name='accountName'> /// The Media Services account name. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IPage <LiveEvent> > ListAsync(this ILiveEventsOperations operations, string resourceGroupName, string accountName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListWithHttpMessagesAsync(resourceGroupName, accountName, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// List live events /// </summary> /// <remarks> /// Lists all the live events in the account. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='nextPageLink'> /// The NextLink from the previous successful call to List operation. /// </param> public static IPage <LiveEvent> ListNext(this ILiveEventsOperations operations, string nextPageLink) { return(operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult()); }
/// <summary> /// Reset Live Event /// </summary> /// <remarks> /// Resets an existing live event. All live outputs for the live event are /// deleted and the live event is stopped and will be started again. All assets /// used by the live outputs and streaming locators created on these assets are /// unaffected. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group within the Azure subscription. /// </param> /// <param name='accountName'> /// The Media Services account name. /// </param> /// <param name='liveEventName'> /// The name of the live event, maximum length is 32. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task BeginResetAsync(this ILiveEventsOperations operations, string resourceGroupName, string accountName, string liveEventName, CancellationToken cancellationToken = default(CancellationToken)) { (await operations.BeginResetWithHttpMessagesAsync(resourceGroupName, accountName, liveEventName, null, cancellationToken).ConfigureAwait(false)).Dispose(); }
/// <summary> /// Get Live Event /// </summary> /// <remarks> /// Gets properties of a live event. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group within the Azure subscription. /// </param> /// <param name='accountName'> /// The Media Services account name. /// </param> /// <param name='liveEventName'> /// The name of the live event, maximum length is 32. /// </param> public static LiveEvent Get(this ILiveEventsOperations operations, string resourceGroupName, string accountName, string liveEventName) { return(operations.GetAsync(resourceGroupName, accountName, liveEventName).GetAwaiter().GetResult()); }
/// <summary> /// Reset Live Event /// </summary> /// <remarks> /// Resets an existing live event. All live outputs for the live event are /// deleted and the live event is stopped and will be started again. All assets /// used by the live outputs and streaming locators created on these assets are /// unaffected. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group within the Azure subscription. /// </param> /// <param name='accountName'> /// The Media Services account name. /// </param> /// <param name='liveEventName'> /// The name of the live event, maximum length is 32. /// </param> public static void BeginReset(this ILiveEventsOperations operations, string resourceGroupName, string accountName, string liveEventName) { operations.BeginResetAsync(resourceGroupName, accountName, liveEventName).GetAwaiter().GetResult(); }
/// <summary> /// Stop Live Event /// </summary> /// <remarks> /// Stops a running live event. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group within the Azure subscription. /// </param> /// <param name='accountName'> /// The Media Services account name. /// </param> /// <param name='liveEventName'> /// The name of the live event, maximum length is 32. /// </param> /// <param name='removeOutputsOnStop'> /// The flag indicates whether live outputs are automatically deleted when live /// event is being stopped. Deleting live outputs do not delete the underlying /// assets. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task BeginStopAsync(this ILiveEventsOperations operations, string resourceGroupName, string accountName, string liveEventName, bool?removeOutputsOnStop = default(bool?), CancellationToken cancellationToken = default(CancellationToken)) { (await operations.BeginStopWithHttpMessagesAsync(resourceGroupName, accountName, liveEventName, removeOutputsOnStop, null, cancellationToken).ConfigureAwait(false)).Dispose(); }
/// <summary> /// Stop Live Event /// </summary> /// <remarks> /// Stops a running live event. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group within the Azure subscription. /// </param> /// <param name='accountName'> /// The Media Services account name. /// </param> /// <param name='liveEventName'> /// The name of the live event, maximum length is 32. /// </param> /// <param name='removeOutputsOnStop'> /// The flag indicates whether live outputs are automatically deleted when live /// event is being stopped. Deleting live outputs do not delete the underlying /// assets. /// </param> public static void BeginStop(this ILiveEventsOperations operations, string resourceGroupName, string accountName, string liveEventName, bool?removeOutputsOnStop = default(bool?)) { operations.BeginStopAsync(resourceGroupName, accountName, liveEventName, removeOutputsOnStop).GetAwaiter().GetResult(); }
/// <summary> /// Updates settings on an existing live event. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group within the Azure subscription. /// </param> /// <param name='accountName'> /// The Media Services account name. /// </param> /// <param name='liveEventName'> /// The name of the live event, maximum length is 32. /// </param> /// <param name='parameters'> /// Live event properties needed for patch. /// </param> public static LiveEvent BeginUpdate(this ILiveEventsOperations operations, string resourceGroupName, string accountName, string liveEventName, LiveEvent parameters) { return(operations.BeginUpdateAsync(resourceGroupName, accountName, liveEventName, parameters).GetAwaiter().GetResult()); }
/// <summary> /// Create Live Event /// </summary> /// <remarks> /// Creates a new live event. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group within the Azure subscription. /// </param> /// <param name='accountName'> /// The Media Services account name. /// </param> /// <param name='liveEventName'> /// The name of the live event, maximum length is 32. /// </param> /// <param name='parameters'> /// Live event properties needed for creation. /// </param> /// <param name='autoStart'> /// The flag indicates if the resource should be automatically started on /// creation. /// </param> public static LiveEvent BeginCreate(this ILiveEventsOperations operations, string resourceGroupName, string accountName, string liveEventName, LiveEvent parameters, bool?autoStart = default(bool?)) { return(operations.BeginCreateAsync(resourceGroupName, accountName, liveEventName, parameters, autoStart).GetAwaiter().GetResult()); }