/// <summary>
 /// Creates a connector or updates an existing connector in the hub.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='hubName'>
 /// The name of the hub.
 /// </param>
 /// <param name='connectorName'>
 /// The name of the connector.
 /// </param>
 /// <param name='parameters'>
 /// Parameters supplied to the CreateOrUpdate Connector operation.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <ConnectorResourceFormat> CreateOrUpdateAsync(this IConnectorsOperations operations, string resourceGroupName, string hubName, string connectorName, ConnectorResourceFormat parameters, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, hubName, connectorName, parameters, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Creates a connector or updates an existing connector in the hub.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='hubName'>
 /// The name of the hub.
 /// </param>
 /// <param name='connectorName'>
 /// The name of the connector.
 /// </param>
 /// <param name='parameters'>
 /// Parameters supplied to the CreateOrUpdate Connector operation.
 /// </param>
 public static ConnectorResourceFormat CreateOrUpdate(this IConnectorsOperations operations, string resourceGroupName, string hubName, string connectorName, ConnectorResourceFormat parameters)
 {
     return(operations.CreateOrUpdateAsync(resourceGroupName, hubName, connectorName, parameters).GetAwaiter().GetResult());
 }