Exemplo n.º 1
0
 /// <summary>
 /// Creates or updates a data flow.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The resource group name.
 /// </param>
 /// <param name='factoryName'>
 /// The factory name.
 /// </param>
 /// <param name='dataFlowName'>
 /// The data flow name.
 /// </param>
 /// <param name='dataFlow'>
 /// Data flow resource definition.
 /// </param>
 /// <param name='ifMatch'>
 /// ETag of the data flow entity. Should only be specified for update, for
 /// which it should match existing entity or can be * for unconditional update.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <DataFlowResource> CreateOrUpdateAsync(this IDataFlowsOperations operations, string resourceGroupName, string factoryName, string dataFlowName, DataFlowResource dataFlow, string ifMatch = default(string), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, factoryName, dataFlowName, dataFlow, ifMatch, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Lists data flows.
 /// </summary>
 /// <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 <DataFlowResource> > ListByFactoryNextAsync(this IDataFlowsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListByFactoryNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Exemplo n.º 3
0
 /// <summary>
 /// Creates or updates a data flow.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The resource group name.
 /// </param>
 /// <param name='factoryName'>
 /// The factory name.
 /// </param>
 /// <param name='dataFlowName'>
 /// The data flow name.
 /// </param>
 /// <param name='dataFlow'>
 /// Data flow resource definition.
 /// </param>
 /// <param name='ifMatch'>
 /// ETag of the data flow entity. Should only be specified for update, for
 /// which it should match existing entity or can be * for unconditional update.
 /// </param>
 public static DataFlowResource CreateOrUpdate(this IDataFlowsOperations operations, string resourceGroupName, string factoryName, string dataFlowName, DataFlowResource dataFlow, string ifMatch = default(string))
 {
     return(operations.CreateOrUpdateAsync(resourceGroupName, factoryName, dataFlowName, dataFlow, ifMatch).GetAwaiter().GetResult());
 }
Exemplo n.º 4
0
 /// <summary>
 /// Lists data flows.
 /// </summary>
 /// <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 <DataFlowResource> ListByFactoryNext(this IDataFlowsOperations operations, string nextPageLink)
 {
     return(operations.ListByFactoryNextAsync(nextPageLink).GetAwaiter().GetResult());
 }
Exemplo n.º 5
0
 /// <summary>
 /// Lists data flows.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The resource group name.
 /// </param>
 /// <param name='factoryName'>
 /// The factory name.
 /// </param>
 public static IPage <DataFlowResource> ListByFactory(this IDataFlowsOperations operations, string resourceGroupName, string factoryName)
 {
     return(operations.ListByFactoryAsync(resourceGroupName, factoryName).GetAwaiter().GetResult());
 }
Exemplo n.º 6
0
 /// <summary>
 /// Deletes a data flow.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The resource group name.
 /// </param>
 /// <param name='factoryName'>
 /// The factory name.
 /// </param>
 /// <param name='dataFlowName'>
 /// The data flow name.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task DeleteAsync(this IDataFlowsOperations operations, string resourceGroupName, string factoryName, string dataFlowName, CancellationToken cancellationToken = default(CancellationToken))
 {
     (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, factoryName, dataFlowName, null, cancellationToken).ConfigureAwait(false)).Dispose();
 }
Exemplo n.º 7
0
 /// <summary>
 /// Deletes a data flow.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The resource group name.
 /// </param>
 /// <param name='factoryName'>
 /// The factory name.
 /// </param>
 /// <param name='dataFlowName'>
 /// The data flow name.
 /// </param>
 public static void Delete(this IDataFlowsOperations operations, string resourceGroupName, string factoryName, string dataFlowName)
 {
     operations.DeleteAsync(resourceGroupName, factoryName, dataFlowName).GetAwaiter().GetResult();
 }
Exemplo n.º 8
0
 /// <summary>
 /// Gets a data flow.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The resource group name.
 /// </param>
 /// <param name='factoryName'>
 /// The factory name.
 /// </param>
 /// <param name='dataFlowName'>
 /// The data flow name.
 /// </param>
 /// <param name='ifNoneMatch'>
 /// ETag of the data flow entity. Should only be specified for get. If the ETag
 /// matches the existing entity tag, or if * was provided, then no content will
 /// be returned.
 /// </param>
 public static DataFlowResource Get(this IDataFlowsOperations operations, string resourceGroupName, string factoryName, string dataFlowName, string ifNoneMatch = default(string))
 {
     return(operations.GetAsync(resourceGroupName, factoryName, dataFlowName, ifNoneMatch).GetAwaiter().GetResult());
 }