/// <summary>
        /// Register a new connector
        /// </summary>
        /// <exception cref="Com.Cosmotech.Client.ApiException">Thrown when fails to make API call</exception>
        /// <param name="connector">the Connector to register</param>
        /// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
        /// <returns>Task of Connector</returns>
        public async System.Threading.Tasks.Task <Connector> RegisterConnectorAsync(Connector connector, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
        {
            Com.Cosmotech.Client.ApiResponse <Connector> localVarResponse = await RegisterConnectorWithHttpInfoAsync(connector, cancellationToken).ConfigureAwait(false);

            return(localVarResponse.Data);
        }
 /// <summary>
 /// Register a new connector
 /// </summary>
 /// <exception cref="Com.Cosmotech.Client.ApiException">Thrown when fails to make API call</exception>
 /// <param name="connector">the Connector to register</param>
 /// <returns>Connector</returns>
 public Connector RegisterConnector(Connector connector)
 {
     Com.Cosmotech.Client.ApiResponse <Connector> localVarResponse = RegisterConnectorWithHttpInfo(connector);
     return(localVarResponse.Data);
 }
        /// <summary>
        /// Get the details of a connector
        /// </summary>
        /// <exception cref="Com.Cosmotech.Client.ApiException">Thrown when fails to make API call</exception>
        /// <param name="connectorId">the Connector identifier</param>
        /// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
        /// <returns>Task of Connector</returns>
        public async System.Threading.Tasks.Task <Connector> FindConnectorByIdAsync(string connectorId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
        {
            Com.Cosmotech.Client.ApiResponse <Connector> localVarResponse = await FindConnectorByIdWithHttpInfoAsync(connectorId, cancellationToken).ConfigureAwait(false);

            return(localVarResponse.Data);
        }
 /// <summary>
 /// Get the details of a connector
 /// </summary>
 /// <exception cref="Com.Cosmotech.Client.ApiException">Thrown when fails to make API call</exception>
 /// <param name="connectorId">the Connector identifier</param>
 /// <returns>Connector</returns>
 public Connector FindConnectorById(string connectorId)
 {
     Com.Cosmotech.Client.ApiResponse <Connector> localVarResponse = FindConnectorByIdWithHttpInfo(connectorId);
     return(localVarResponse.Data);
 }
        /// <summary>
        /// List all Connectors
        /// </summary>
        /// <exception cref="Com.Cosmotech.Client.ApiException">Thrown when fails to make API call</exception>
        /// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
        /// <returns>Task of List&lt;Connector&gt;</returns>
        public async System.Threading.Tasks.Task <List <Connector> > FindAllConnectorsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
        {
            Com.Cosmotech.Client.ApiResponse <List <Connector> > localVarResponse = await FindAllConnectorsWithHttpInfoAsync(cancellationToken).ConfigureAwait(false);

            return(localVarResponse.Data);
        }
 /// <summary>
 /// List all Connectors
 /// </summary>
 /// <exception cref="Com.Cosmotech.Client.ApiException">Thrown when fails to make API call</exception>
 /// <returns>List&lt;Connector&gt;</returns>
 public List <Connector> FindAllConnectors()
 {
     Com.Cosmotech.Client.ApiResponse <List <Connector> > localVarResponse = FindAllConnectorsWithHttpInfo();
     return(localVarResponse.Data);
 }