/// <summary>
 /// Create a connection.  (see
 /// http://aka.ms/azureautomationsdk/connectionoperations for more
 /// information)
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.Automation.IConnectionOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The name of the resource group
 /// </param>
 /// <param name='automationAccount'>
 /// Required. The automation account name.
 /// </param>
 /// <param name='parameters'>
 /// Required. The parameters supplied to the create or update
 /// connection operation.
 /// </param>
 /// <returns>
 /// The response model for the create or update connection operation.
 /// </returns>
 public static Task <ConnectionCreateOrUpdateResponse> CreateOrUpdateAsync(this IConnectionOperations operations, string resourceGroupName, string automationAccount, ConnectionCreateOrUpdateParameters parameters)
 {
     return(operations.CreateOrUpdateAsync(resourceGroupName, automationAccount, parameters, CancellationToken.None));
 }
Exemplo n.º 2
0
 /// <summary>
 /// Create or update a connection.
 /// <see href="http://aka.ms/azureautomationsdk/connectionoperations" />
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Name of an Azure Resource group.
 /// </param>
 /// <param name='automationAccountName'>
 /// The name of the automation account.
 /// </param>
 /// <param name='connectionName'>
 /// The parameters supplied to the create or update connection operation.
 /// </param>
 /// <param name='parameters'>
 /// The parameters supplied to the create or update connection operation.
 /// </param>
 public static Connection CreateOrUpdate(this IConnectionOperations operations, string resourceGroupName, string automationAccountName, string connectionName, ConnectionCreateOrUpdateParameters parameters)
 {
     return(operations.CreateOrUpdateAsync(resourceGroupName, automationAccountName, connectionName, parameters).GetAwaiter().GetResult());
 }