Example #1
0
 /// <summary>
 /// Updates an existing pipeline topology.
 /// </summary>
 /// <remarks>
 /// Updates an existing pipeline topology with the given name. If the
 /// associated live pipelines or pipeline jobs are in active or processing
 /// state, respectively, then only the description can be updated. Else, the
 /// properties that can be updated include: description, parameter
 /// declarations, sources, processors, and sinks.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group. The name is case insensitive.
 /// </param>
 /// <param name='accountName'>
 /// The Azure Video Analyzer account name.
 /// </param>
 /// <param name='pipelineTopologyName'>
 /// Pipeline topology unique identifier.
 /// </param>
 /// <param name='parameters'>
 /// The request parameters
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <PipelineTopology> UpdateAsync(this IPipelineTopologiesOperations operations, string resourceGroupName, string accountName, string pipelineTopologyName, PipelineTopologyUpdate parameters, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.UpdateWithHttpMessagesAsync(resourceGroupName, accountName, pipelineTopologyName, parameters, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Example #2
0
 /// <summary>
 /// Updates an existing pipeline topology.
 /// </summary>
 /// <remarks>
 /// Updates an existing pipeline topology with the given name. If the
 /// associated live pipelines or pipeline jobs are in active or processing
 /// state, respectively, then only the description can be updated. Else, the
 /// properties that can be updated include: description, parameter
 /// declarations, sources, processors, and sinks.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group. The name is case insensitive.
 /// </param>
 /// <param name='accountName'>
 /// The Azure Video Analyzer account name.
 /// </param>
 /// <param name='pipelineTopologyName'>
 /// Pipeline topology unique identifier.
 /// </param>
 /// <param name='parameters'>
 /// The request parameters
 /// </param>
 public static PipelineTopology Update(this IPipelineTopologiesOperations operations, string resourceGroupName, string accountName, string pipelineTopologyName, PipelineTopologyUpdate parameters)
 {
     return(operations.UpdateAsync(resourceGroupName, accountName, pipelineTopologyName, parameters).GetAwaiter().GetResult());
 }