Integration Connectors v1 API - Class ConnectorsClient (1.0.0)

public abstract class ConnectorsClient

Reference documentation and code samples for the Integration Connectors v1 API class ConnectorsClient.

Connectors client wrapper, for convenient use.

Inheritance

object > ConnectorsClient

Derived Types

Namespace

Google.Cloud.Connectors.V1

Assembly

Google.Cloud.Connectors.V1.dll

Remarks

Connectors is the interface for managing Connectors.

Properties

CreateConnectionOperationsClient

public virtual OperationsClient CreateConnectionOperationsClient { get; }

The long-running operations client for CreateConnection.

Property Value
TypeDescription
OperationsClient

DefaultEndpoint

public static string DefaultEndpoint { get; }

The default endpoint for the Connectors service, which is a host of "connectors.googleapis.com" and a port of 443.

Property Value
TypeDescription
string

DefaultScopes

public static IReadOnlyList<string> DefaultScopes { get; }

The default Connectors scopes.

Property Value
TypeDescription
IReadOnlyListstring
Remarks

The default Connectors scopes are:

DeleteConnectionOperationsClient

public virtual OperationsClient DeleteConnectionOperationsClient { get; }

The long-running operations client for DeleteConnection.

Property Value
TypeDescription
OperationsClient

GrpcClient

public virtual Connectors.ConnectorsClient GrpcClient { get; }

The underlying gRPC Connectors client

Property Value
TypeDescription
ConnectorsConnectorsClient

IAMPolicyClient

public virtual IAMPolicyClient IAMPolicyClient { get; }

The IAMPolicyClient associated with this client.

Property Value
TypeDescription
IAMPolicyClient

LocationsClient

public virtual LocationsClient LocationsClient { get; }

The LocationsClient associated with this client.

Property Value
TypeDescription
LocationsClient

RefreshConnectionSchemaMetadataOperationsClient

public virtual OperationsClient RefreshConnectionSchemaMetadataOperationsClient { get; }

The long-running operations client for RefreshConnectionSchemaMetadata.

Property Value
TypeDescription
OperationsClient

ServiceMetadata

public static ServiceMetadata ServiceMetadata { get; }

The service metadata associated with this client type.

Property Value
TypeDescription
ServiceMetadata

UpdateConnectionOperationsClient

public virtual OperationsClient UpdateConnectionOperationsClient { get; }

The long-running operations client for UpdateConnection.

Property Value
TypeDescription
OperationsClient

Methods

Create()

public static ConnectorsClient Create()

Synchronously creates a ConnectorsClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use ConnectorsClientBuilder.

Returns
TypeDescription
ConnectorsClient

The created ConnectorsClient.

CreateAsync(CancellationToken)

public static Task<ConnectorsClient> CreateAsync(CancellationToken cancellationToken = default)

Asynchronously creates a ConnectorsClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use ConnectorsClientBuilder.

Parameter
NameDescription
cancellationTokenCancellationToken

The CancellationToken to use while creating the client.

Returns
TypeDescription
TaskConnectorsClient

The task representing the created ConnectorsClient.

CreateConnection(LocationName, Connection, string, CallSettings)

public virtual Operation<Connection, OperationMetadata> CreateConnection(LocationName parent, Connection connection, string connectionId, CallSettings callSettings = null)

Creates a new Connection in a given project and location.

Parameters
NameDescription
parentLocationName

Required. Parent resource of the Connection, of the form: projects/*/locations/*

connectionConnection

Required. Connection resource.

connectionIdstring

Required. Identifier to assign to the Connection. Must be unique within scope of the parent resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationConnectionOperationMetadata

The RPC response.

Example
// Create client
ConnectorsClient connectorsClient = ConnectorsClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
Connection connection = new Connection();
string connectionId = "";
// Make the request
Operation<Connection, OperationMetadata> response = connectorsClient.CreateConnection(parent, connection, connectionId);

// Poll until the returned long-running operation is complete
Operation<Connection, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Connection result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Connection, OperationMetadata> retrievedResponse = connectorsClient.PollOnceCreateConnection(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Connection retrievedResult = retrievedResponse.Result;
}

CreateConnection(CreateConnectionRequest, CallSettings)

public virtual Operation<Connection, OperationMetadata> CreateConnection(CreateConnectionRequest request, CallSettings callSettings = null)

Creates a new Connection in a given project and location.

Parameters
NameDescription
requestCreateConnectionRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationConnectionOperationMetadata

The RPC response.

Example
// Create client
ConnectorsClient connectorsClient = ConnectorsClient.Create();
// Initialize request argument(s)
CreateConnectionRequest request = new CreateConnectionRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    ConnectionId = "",
    Connection = new Connection(),
};
// Make the request
Operation<Connection, OperationMetadata> response = connectorsClient.CreateConnection(request);

// Poll until the returned long-running operation is complete
Operation<Connection, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Connection result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Connection, OperationMetadata> retrievedResponse = connectorsClient.PollOnceCreateConnection(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Connection retrievedResult = retrievedResponse.Result;
}

CreateConnection(string, Connection, string, CallSettings)

public virtual Operation<Connection, OperationMetadata> CreateConnection(string parent, Connection connection, string connectionId, CallSettings callSettings = null)

Creates a new Connection in a given project and location.

Parameters
NameDescription
parentstring

Required. Parent resource of the Connection, of the form: projects/*/locations/*

connectionConnection

Required. Connection resource.

connectionIdstring

Required. Identifier to assign to the Connection. Must be unique within scope of the parent resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationConnectionOperationMetadata

The RPC response.

Example
// Create client
ConnectorsClient connectorsClient = ConnectorsClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
Connection connection = new Connection();
string connectionId = "";
// Make the request
Operation<Connection, OperationMetadata> response = connectorsClient.CreateConnection(parent, connection, connectionId);

// Poll until the returned long-running operation is complete
Operation<Connection, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Connection result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Connection, OperationMetadata> retrievedResponse = connectorsClient.PollOnceCreateConnection(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Connection retrievedResult = retrievedResponse.Result;
}

CreateConnectionAsync(LocationName, Connection, string, CallSettings)

public virtual Task<Operation<Connection, OperationMetadata>> CreateConnectionAsync(LocationName parent, Connection connection, string connectionId, CallSettings callSettings = null)

Creates a new Connection in a given project and location.

Parameters
NameDescription
parentLocationName

Required. Parent resource of the Connection, of the form: projects/*/locations/*

connectionConnection

Required. Connection resource.

connectionIdstring

Required. Identifier to assign to the Connection. Must be unique within scope of the parent resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationConnectionOperationMetadata

A Task containing the RPC response.

Example
// Create client
ConnectorsClient connectorsClient = await ConnectorsClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
Connection connection = new Connection();
string connectionId = "";
// Make the request
Operation<Connection, OperationMetadata> response = await connectorsClient.CreateConnectionAsync(parent, connection, connectionId);

// Poll until the returned long-running operation is complete
Operation<Connection, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Connection result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Connection, OperationMetadata> retrievedResponse = await connectorsClient.PollOnceCreateConnectionAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Connection retrievedResult = retrievedResponse.Result;
}

CreateConnectionAsync(LocationName, Connection, string, CancellationToken)

public virtual Task<Operation<Connection, OperationMetadata>> CreateConnectionAsync(LocationName parent, Connection connection, string connectionId, CancellationToken cancellationToken)

Creates a new Connection in a given project and location.

Parameters
NameDescription
parentLocationName

Required. Parent resource of the Connection, of the form: projects/*/locations/*

connectionConnection

Required. Connection resource.

connectionIdstring

Required. Identifier to assign to the Connection. Must be unique within scope of the parent resource.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationConnectionOperationMetadata

A Task containing the RPC response.

Example
// Create client
ConnectorsClient connectorsClient = await ConnectorsClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
Connection connection = new Connection();
string connectionId = "";
// Make the request
Operation<Connection, OperationMetadata> response = await connectorsClient.CreateConnectionAsync(parent, connection, connectionId);

// Poll until the returned long-running operation is complete
Operation<Connection, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Connection result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Connection, OperationMetadata> retrievedResponse = await connectorsClient.PollOnceCreateConnectionAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Connection retrievedResult = retrievedResponse.Result;
}

CreateConnectionAsync(CreateConnectionRequest, CallSettings)

public virtual Task<Operation<Connection, OperationMetadata>> CreateConnectionAsync(CreateConnectionRequest request, CallSettings callSettings = null)

Creates a new Connection in a given project and location.

Parameters
NameDescription
requestCreateConnectionRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationConnectionOperationMetadata

A Task containing the RPC response.

Example
// Create client
ConnectorsClient connectorsClient = await ConnectorsClient.CreateAsync();
// Initialize request argument(s)
CreateConnectionRequest request = new CreateConnectionRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    ConnectionId = "",
    Connection = new Connection(),
};
// Make the request
Operation<Connection, OperationMetadata> response = await connectorsClient.CreateConnectionAsync(request);

// Poll until the returned long-running operation is complete
Operation<Connection, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Connection result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Connection, OperationMetadata> retrievedResponse = await connectorsClient.PollOnceCreateConnectionAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Connection retrievedResult = retrievedResponse.Result;
}

CreateConnectionAsync(CreateConnectionRequest, CancellationToken)

public virtual Task<Operation<Connection, OperationMetadata>> CreateConnectionAsync(CreateConnectionRequest request, CancellationToken cancellationToken)

Creates a new Connection in a given project and location.

Parameters
NameDescription
requestCreateConnectionRequest

The request object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationConnectionOperationMetadata

A Task containing the RPC response.

Example
// Create client
ConnectorsClient connectorsClient = await ConnectorsClient.CreateAsync();
// Initialize request argument(s)
CreateConnectionRequest request = new CreateConnectionRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    ConnectionId = "",
    Connection = new Connection(),
};
// Make the request
Operation<Connection, OperationMetadata> response = await connectorsClient.CreateConnectionAsync(request);

// Poll until the returned long-running operation is complete
Operation<Connection, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Connection result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Connection, OperationMetadata> retrievedResponse = await connectorsClient.PollOnceCreateConnectionAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Connection retrievedResult = retrievedResponse.Result;
}

CreateConnectionAsync(string, Connection, string, CallSettings)

public virtual Task<Operation<Connection, OperationMetadata>> CreateConnectionAsync(string parent, Connection connection, string connectionId, CallSettings callSettings = null)

Creates a new Connection in a given project and location.

Parameters
NameDescription
parentstring

Required. Parent resource of the Connection, of the form: projects/*/locations/*

connectionConnection

Required. Connection resource.

connectionIdstring

Required. Identifier to assign to the Connection. Must be unique within scope of the parent resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationConnectionOperationMetadata

A Task containing the RPC response.

Example
// Create client
ConnectorsClient connectorsClient = await ConnectorsClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
Connection connection = new Connection();
string connectionId = "";
// Make the request
Operation<Connection, OperationMetadata> response = await connectorsClient.CreateConnectionAsync(parent, connection, connectionId);

// Poll until the returned long-running operation is complete
Operation<Connection, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Connection result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Connection, OperationMetadata> retrievedResponse = await connectorsClient.PollOnceCreateConnectionAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Connection retrievedResult = retrievedResponse.Result;
}

CreateConnectionAsync(string, Connection, string, CancellationToken)

public virtual Task<Operation<Connection, OperationMetadata>> CreateConnectionAsync(string parent, Connection connection, string connectionId, CancellationToken cancellationToken)

Creates a new Connection in a given project and location.

Parameters
NameDescription
parentstring

Required. Parent resource of the Connection, of the form: projects/*/locations/*

connectionConnection

Required. Connection resource.

connectionIdstring

Required. Identifier to assign to the Connection. Must be unique within scope of the parent resource.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationConnectionOperationMetadata

A Task containing the RPC response.

Example
// Create client
ConnectorsClient connectorsClient = await ConnectorsClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
Connection connection = new Connection();
string connectionId = "";
// Make the request
Operation<Connection, OperationMetadata> response = await connectorsClient.CreateConnectionAsync(parent, connection, connectionId);

// Poll until the returned long-running operation is complete
Operation<Connection, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Connection result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Connection, OperationMetadata> retrievedResponse = await connectorsClient.PollOnceCreateConnectionAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Connection retrievedResult = retrievedResponse.Result;
}

DeleteConnection(ConnectionName, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteConnection(ConnectionName name, CallSettings callSettings = null)

Deletes a single Connection.

Parameters
NameDescription
nameConnectionName

Required. Resource name of the form: projects/*/locations/*/connections/*

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
ConnectorsClient connectorsClient = ConnectorsClient.Create();
// Initialize request argument(s)
ConnectionName name = ConnectionName.FromProjectLocationConnection("[PROJECT]", "[LOCATION]", "[CONNECTION]");
// Make the request
Operation<Empty, OperationMetadata> response = connectorsClient.DeleteConnection(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = connectorsClient.PollOnceDeleteConnection(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteConnection(DeleteConnectionRequest, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteConnection(DeleteConnectionRequest request, CallSettings callSettings = null)

Deletes a single Connection.

Parameters
NameDescription
requestDeleteConnectionRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
ConnectorsClient connectorsClient = ConnectorsClient.Create();
// Initialize request argument(s)
DeleteConnectionRequest request = new DeleteConnectionRequest
{
    ConnectionName = ConnectionName.FromProjectLocationConnection("[PROJECT]", "[LOCATION]", "[CONNECTION]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = connectorsClient.DeleteConnection(request);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = connectorsClient.PollOnceDeleteConnection(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteConnection(string, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteConnection(string name, CallSettings callSettings = null)

Deletes a single Connection.

Parameters
NameDescription
namestring

Required. Resource name of the form: projects/*/locations/*/connections/*

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
ConnectorsClient connectorsClient = ConnectorsClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/connections/[CONNECTION]";
// Make the request
Operation<Empty, OperationMetadata> response = connectorsClient.DeleteConnection(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = connectorsClient.PollOnceDeleteConnection(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteConnectionAsync(ConnectionName, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteConnectionAsync(ConnectionName name, CallSettings callSettings = null)

Deletes a single Connection.

Parameters
NameDescription
nameConnectionName

Required. Resource name of the form: projects/*/locations/*/connections/*

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
ConnectorsClient connectorsClient = await ConnectorsClient.CreateAsync();
// Initialize request argument(s)
ConnectionName name = ConnectionName.FromProjectLocationConnection("[PROJECT]", "[LOCATION]", "[CONNECTION]");
// Make the request
Operation<Empty, OperationMetadata> response = await connectorsClient.DeleteConnectionAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await connectorsClient.PollOnceDeleteConnectionAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteConnectionAsync(ConnectionName, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteConnectionAsync(ConnectionName name, CancellationToken cancellationToken)

Deletes a single Connection.

Parameters
NameDescription
nameConnectionName

Required. Resource name of the form: projects/*/locations/*/connections/*

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
ConnectorsClient connectorsClient = await ConnectorsClient.CreateAsync();
// Initialize request argument(s)
ConnectionName name = ConnectionName.FromProjectLocationConnection("[PROJECT]", "[LOCATION]", "[CONNECTION]");
// Make the request
Operation<Empty, OperationMetadata> response = await connectorsClient.DeleteConnectionAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await connectorsClient.PollOnceDeleteConnectionAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteConnectionAsync(DeleteConnectionRequest, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteConnectionAsync(DeleteConnectionRequest request, CallSettings callSettings = null)

Deletes a single Connection.

Parameters
NameDescription
requestDeleteConnectionRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
ConnectorsClient connectorsClient = await ConnectorsClient.CreateAsync();
// Initialize request argument(s)
DeleteConnectionRequest request = new DeleteConnectionRequest
{
    ConnectionName = ConnectionName.FromProjectLocationConnection("[PROJECT]", "[LOCATION]", "[CONNECTION]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = await connectorsClient.DeleteConnectionAsync(request);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await connectorsClient.PollOnceDeleteConnectionAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteConnectionAsync(DeleteConnectionRequest, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteConnectionAsync(DeleteConnectionRequest request, CancellationToken cancellationToken)

Deletes a single Connection.

Parameters
NameDescription
requestDeleteConnectionRequest

The request object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
ConnectorsClient connectorsClient = await ConnectorsClient.CreateAsync();
// Initialize request argument(s)
DeleteConnectionRequest request = new DeleteConnectionRequest
{
    ConnectionName = ConnectionName.FromProjectLocationConnection("[PROJECT]", "[LOCATION]", "[CONNECTION]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = await connectorsClient.DeleteConnectionAsync(request);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await connectorsClient.PollOnceDeleteConnectionAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteConnectionAsync(string, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteConnectionAsync(string name, CallSettings callSettings = null)

Deletes a single Connection.

Parameters
NameDescription
namestring

Required. Resource name of the form: projects/*/locations/*/connections/*

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
ConnectorsClient connectorsClient = await ConnectorsClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/connections/[CONNECTION]";
// Make the request
Operation<Empty, OperationMetadata> response = await connectorsClient.DeleteConnectionAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await connectorsClient.PollOnceDeleteConnectionAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteConnectionAsync(string, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteConnectionAsync(string name, CancellationToken cancellationToken)

Deletes a single Connection.

Parameters
NameDescription
namestring

Required. Resource name of the form: projects/*/locations/*/connections/*

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
ConnectorsClient connectorsClient = await ConnectorsClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/connections/[CONNECTION]";
// Make the request
Operation<Empty, OperationMetadata> response = await connectorsClient.DeleteConnectionAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await connectorsClient.PollOnceDeleteConnectionAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

GetConnection(ConnectionName, CallSettings)

public virtual Connection GetConnection(ConnectionName name, CallSettings callSettings = null)

Gets details of a single Connection.

Parameters
NameDescription
nameConnectionName

Required. Resource name of the form: projects/*/locations/*/connections/*

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Connection

The RPC response.

Example
// Create client
ConnectorsClient connectorsClient = ConnectorsClient.Create();
// Initialize request argument(s)
ConnectionName name = ConnectionName.FromProjectLocationConnection("[PROJECT]", "[LOCATION]", "[CONNECTION]");
// Make the request
Connection response = connectorsClient.GetConnection(name);

GetConnection(GetConnectionRequest, CallSettings)

public virtual Connection GetConnection(GetConnectionRequest request, CallSettings callSettings = null)

Gets details of a single Connection.

Parameters
NameDescription
requestGetConnectionRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Connection

The RPC response.

Example
// Create client
ConnectorsClient connectorsClient = ConnectorsClient.Create();
// Initialize request argument(s)
GetConnectionRequest request = new GetConnectionRequest
{
    ConnectionName = ConnectionName.FromProjectLocationConnection("[PROJECT]", "[LOCATION]", "[CONNECTION]"),
    View = ConnectionView.Unspecified,
};
// Make the request
Connection response = connectorsClient.GetConnection(request);

GetConnection(string, CallSettings)

public virtual Connection GetConnection(string name, CallSettings callSettings = null)

Gets details of a single Connection.

Parameters
NameDescription
namestring

Required. Resource name of the form: projects/*/locations/*/connections/*

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Connection

The RPC response.

Example
// Create client
ConnectorsClient connectorsClient = ConnectorsClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/connections/[CONNECTION]";
// Make the request
Connection response = connectorsClient.GetConnection(name);

GetConnectionAsync(ConnectionName, CallSettings)

public virtual Task<Connection> GetConnectionAsync(ConnectionName name, CallSettings callSettings = null)

Gets details of a single Connection.

Parameters
NameDescription
nameConnectionName

Required. Resource name of the form: projects/*/locations/*/connections/*

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskConnection

A Task containing the RPC response.

Example
// Create client
ConnectorsClient connectorsClient = await ConnectorsClient.CreateAsync();
// Initialize request argument(s)
ConnectionName name = ConnectionName.FromProjectLocationConnection("[PROJECT]", "[LOCATION]", "[CONNECTION]");
// Make the request
Connection response = await connectorsClient.GetConnectionAsync(name);

GetConnectionAsync(ConnectionName, CancellationToken)

public virtual Task<Connection> GetConnectionAsync(ConnectionName name, CancellationToken cancellationToken)

Gets details of a single Connection.

Parameters
NameDescription
nameConnectionName

Required. Resource name of the form: projects/*/locations/*/connections/*

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskConnection

A Task containing the RPC response.

Example
// Create client
ConnectorsClient connectorsClient = await ConnectorsClient.CreateAsync();
// Initialize request argument(s)
ConnectionName name = ConnectionName.FromProjectLocationConnection("[PROJECT]", "[LOCATION]", "[CONNECTION]");
// Make the request
Connection response = await connectorsClient.GetConnectionAsync(name);

GetConnectionAsync(GetConnectionRequest, CallSettings)

public virtual Task<Connection> GetConnectionAsync(GetConnectionRequest request, CallSettings callSettings = null)

Gets details of a single Connection.

Parameters
NameDescription
requestGetConnectionRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskConnection

A Task containing the RPC response.

Example
// Create client
ConnectorsClient connectorsClient = await ConnectorsClient.CreateAsync();
// Initialize request argument(s)
GetConnectionRequest request = new GetConnectionRequest
{
    ConnectionName = ConnectionName.FromProjectLocationConnection("[PROJECT]", "[LOCATION]", "[CONNECTION]"),
    View = ConnectionView.Unspecified,
};
// Make the request
Connection response = await connectorsClient.GetConnectionAsync(request);

GetConnectionAsync(GetConnectionRequest, CancellationToken)

public virtual Task<Connection> GetConnectionAsync(GetConnectionRequest request, CancellationToken cancellationToken)

Gets details of a single Connection.

Parameters
NameDescription
requestGetConnectionRequest

The request object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskConnection

A Task containing the RPC response.

Example
// Create client
ConnectorsClient connectorsClient = await ConnectorsClient.CreateAsync();
// Initialize request argument(s)
GetConnectionRequest request = new GetConnectionRequest
{
    ConnectionName = ConnectionName.FromProjectLocationConnection("[PROJECT]", "[LOCATION]", "[CONNECTION]"),
    View = ConnectionView.Unspecified,
};
// Make the request
Connection response = await connectorsClient.GetConnectionAsync(request);

GetConnectionAsync(string, CallSettings)

public virtual Task<Connection> GetConnectionAsync(string name, CallSettings callSettings = null)

Gets details of a single Connection.

Parameters
NameDescription
namestring

Required. Resource name of the form: projects/*/locations/*/connections/*

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskConnection

A Task containing the RPC response.

Example
// Create client
ConnectorsClient connectorsClient = await ConnectorsClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/connections/[CONNECTION]";
// Make the request
Connection response = await connectorsClient.GetConnectionAsync(name);

GetConnectionAsync(string, CancellationToken)

public virtual Task<Connection> GetConnectionAsync(string name, CancellationToken cancellationToken)

Gets details of a single Connection.

Parameters
NameDescription
namestring

Required. Resource name of the form: projects/*/locations/*/connections/*

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskConnection

A Task containing the RPC response.

Example
// Create client
ConnectorsClient connectorsClient = await ConnectorsClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/connections/[CONNECTION]";
// Make the request
Connection response = await connectorsClient.GetConnectionAsync(name);

GetConnectionSchemaMetadata(ConnectionSchemaMetadataName, CallSettings)

public virtual ConnectionSchemaMetadata GetConnectionSchemaMetadata(ConnectionSchemaMetadataName name, CallSettings callSettings = null)

Gets schema metadata of a connection. SchemaMetadata is a singleton resource for each connection.

Parameters
NameDescription
nameConnectionSchemaMetadataName

Required. Connection name Format: projects/{project}/locations/{location}/connections/{connection}/connectionSchemaMetadata

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
ConnectionSchemaMetadata

The RPC response.

Example
// Create client
ConnectorsClient connectorsClient = ConnectorsClient.Create();
// Initialize request argument(s)
ConnectionSchemaMetadataName name = ConnectionSchemaMetadataName.FromProjectLocationConnection("[PROJECT]", "[LOCATION]", "[CONNECTION]");
// Make the request
ConnectionSchemaMetadata response = connectorsClient.GetConnectionSchemaMetadata(name);

GetConnectionSchemaMetadata(GetConnectionSchemaMetadataRequest, CallSettings)

public virtual ConnectionSchemaMetadata GetConnectionSchemaMetadata(GetConnectionSchemaMetadataRequest request, CallSettings callSettings = null)

Gets schema metadata of a connection. SchemaMetadata is a singleton resource for each connection.

Parameters
NameDescription
requestGetConnectionSchemaMetadataRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
ConnectionSchemaMetadata

The RPC response.

Example
// Create client
ConnectorsClient connectorsClient = ConnectorsClient.Create();
// Initialize request argument(s)
GetConnectionSchemaMetadataRequest request = new GetConnectionSchemaMetadataRequest
{
    ConnectionSchemaMetadataName = ConnectionSchemaMetadataName.FromProjectLocationConnection("[PROJECT]", "[LOCATION]", "[CONNECTION]"),
};
// Make the request
ConnectionSchemaMetadata response = connectorsClient.GetConnectionSchemaMetadata(request);

GetConnectionSchemaMetadata(string, CallSettings)

public virtual ConnectionSchemaMetadata GetConnectionSchemaMetadata(string name, CallSettings callSettings = null)

Gets schema metadata of a connection. SchemaMetadata is a singleton resource for each connection.

Parameters
NameDescription
namestring

Required. Connection name Format: projects/{project}/locations/{location}/connections/{connection}/connectionSchemaMetadata

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
ConnectionSchemaMetadata

The RPC response.

Example
// Create client
ConnectorsClient connectorsClient = ConnectorsClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/connections/[CONNECTION]/connectionSchemaMetadata";
// Make the request
ConnectionSchemaMetadata response = connectorsClient.GetConnectionSchemaMetadata(name);

GetConnectionSchemaMetadataAsync(ConnectionSchemaMetadataName, CallSettings)

public virtual Task<ConnectionSchemaMetadata> GetConnectionSchemaMetadataAsync(ConnectionSchemaMetadataName name, CallSettings callSettings = null)

Gets schema metadata of a connection. SchemaMetadata is a singleton resource for each connection.

Parameters
NameDescription
nameConnectionSchemaMetadataName

Required. Connection name Format: projects/{project}/locations/{location}/connections/{connection}/connectionSchemaMetadata

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskConnectionSchemaMetadata

A Task containing the RPC response.

Example
// Create client
ConnectorsClient connectorsClient = await ConnectorsClient.CreateAsync();
// Initialize request argument(s)
ConnectionSchemaMetadataName name = ConnectionSchemaMetadataName.FromProjectLocationConnection("[PROJECT]", "[LOCATION]", "[CONNECTION]");
// Make the request
ConnectionSchemaMetadata response = await connectorsClient.GetConnectionSchemaMetadataAsync(name);

GetConnectionSchemaMetadataAsync(ConnectionSchemaMetadataName, CancellationToken)

public virtual Task<ConnectionSchemaMetadata> GetConnectionSchemaMetadataAsync(ConnectionSchemaMetadataName name, CancellationToken cancellationToken)

Gets schema metadata of a connection. SchemaMetadata is a singleton resource for each connection.

Parameters
NameDescription
nameConnectionSchemaMetadataName

Required. Connection name Format: projects/{project}/locations/{location}/connections/{connection}/connectionSchemaMetadata

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskConnectionSchemaMetadata

A Task containing the RPC response.

Example
// Create client
ConnectorsClient connectorsClient = await ConnectorsClient.CreateAsync();
// Initialize request argument(s)
ConnectionSchemaMetadataName name = ConnectionSchemaMetadataName.FromProjectLocationConnection("[PROJECT]", "[LOCATION]", "[CONNECTION]");
// Make the request
ConnectionSchemaMetadata response = await connectorsClient.GetConnectionSchemaMetadataAsync(name);

GetConnectionSchemaMetadataAsync(GetConnectionSchemaMetadataRequest, CallSettings)

public virtual Task<ConnectionSchemaMetadata> GetConnectionSchemaMetadataAsync(GetConnectionSchemaMetadataRequest request, CallSettings callSettings = null)

Gets schema metadata of a connection. SchemaMetadata is a singleton resource for each connection.

Parameters
NameDescription
requestGetConnectionSchemaMetadataRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskConnectionSchemaMetadata

A Task containing the RPC response.

Example
// Create client
ConnectorsClient connectorsClient = await ConnectorsClient.CreateAsync();
// Initialize request argument(s)
GetConnectionSchemaMetadataRequest request = new GetConnectionSchemaMetadataRequest
{
    ConnectionSchemaMetadataName = ConnectionSchemaMetadataName.FromProjectLocationConnection("[PROJECT]", "[LOCATION]", "[CONNECTION]"),
};
// Make the request
ConnectionSchemaMetadata response = await connectorsClient.GetConnectionSchemaMetadataAsync(request);

GetConnectionSchemaMetadataAsync(GetConnectionSchemaMetadataRequest, CancellationToken)

public virtual Task<ConnectionSchemaMetadata> GetConnectionSchemaMetadataAsync(GetConnectionSchemaMetadataRequest request, CancellationToken cancellationToken)

Gets schema metadata of a connection. SchemaMetadata is a singleton resource for each connection.

Parameters
NameDescription
requestGetConnectionSchemaMetadataRequest

The request object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskConnectionSchemaMetadata

A Task containing the RPC response.

Example
// Create client
ConnectorsClient connectorsClient = await ConnectorsClient.CreateAsync();
// Initialize request argument(s)
GetConnectionSchemaMetadataRequest request = new GetConnectionSchemaMetadataRequest
{
    ConnectionSchemaMetadataName = ConnectionSchemaMetadataName.FromProjectLocationConnection("[PROJECT]", "[LOCATION]", "[CONNECTION]"),
};
// Make the request
ConnectionSchemaMetadata response = await connectorsClient.GetConnectionSchemaMetadataAsync(request);

GetConnectionSchemaMetadataAsync(string, CallSettings)

public virtual Task<ConnectionSchemaMetadata> GetConnectionSchemaMetadataAsync(string name, CallSettings callSettings = null)

Gets schema metadata of a connection. SchemaMetadata is a singleton resource for each connection.

Parameters
NameDescription
namestring

Required. Connection name Format: projects/{project}/locations/{location}/connections/{connection}/connectionSchemaMetadata

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskConnectionSchemaMetadata

A Task containing the RPC response.

Example
// Create client
ConnectorsClient connectorsClient = await ConnectorsClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/connections/[CONNECTION]/connectionSchemaMetadata";
// Make the request
ConnectionSchemaMetadata response = await connectorsClient.GetConnectionSchemaMetadataAsync(name);

GetConnectionSchemaMetadataAsync(string, CancellationToken)

public virtual Task<ConnectionSchemaMetadata> GetConnectionSchemaMetadataAsync(string name, CancellationToken cancellationToken)

Gets schema metadata of a connection. SchemaMetadata is a singleton resource for each connection.

Parameters
NameDescription
namestring

Required. Connection name Format: projects/{project}/locations/{location}/connections/{connection}/connectionSchemaMetadata

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskConnectionSchemaMetadata

A Task containing the RPC response.

Example
// Create client
ConnectorsClient connectorsClient = await ConnectorsClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/connections/[CONNECTION]/connectionSchemaMetadata";
// Make the request
ConnectionSchemaMetadata response = await connectorsClient.GetConnectionSchemaMetadataAsync(name);

GetConnector(ConnectorName, CallSettings)

public virtual Connector GetConnector(ConnectorName name, CallSettings callSettings = null)

Gets details of a single Connector.

Parameters
NameDescription
nameConnectorName

Required. Resource name of the form: projects/*/locations/*/providers/*/connectors/* Only global location is supported for Connector resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Connector

The RPC response.

Example
// Create client
ConnectorsClient connectorsClient = ConnectorsClient.Create();
// Initialize request argument(s)
ConnectorName name = ConnectorName.FromProjectLocationProviderConnector("[PROJECT]", "[LOCATION]", "[PROVIDER]", "[CONNECTOR]");
// Make the request
Connector response = connectorsClient.GetConnector(name);

GetConnector(GetConnectorRequest, CallSettings)

public virtual Connector GetConnector(GetConnectorRequest request, CallSettings callSettings = null)

Gets details of a single Connector.

Parameters
NameDescription
requestGetConnectorRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Connector

The RPC response.

Example
// Create client
ConnectorsClient connectorsClient = ConnectorsClient.Create();
// Initialize request argument(s)
GetConnectorRequest request = new GetConnectorRequest
{
    ConnectorName = ConnectorName.FromProjectLocationProviderConnector("[PROJECT]", "[LOCATION]", "[PROVIDER]", "[CONNECTOR]"),
};
// Make the request
Connector response = connectorsClient.GetConnector(request);

GetConnector(string, CallSettings)

public virtual Connector GetConnector(string name, CallSettings callSettings = null)

Gets details of a single Connector.

Parameters
NameDescription
namestring

Required. Resource name of the form: projects/*/locations/*/providers/*/connectors/* Only global location is supported for Connector resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Connector

The RPC response.

Example
// Create client
ConnectorsClient connectorsClient = ConnectorsClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/providers/[PROVIDER]/connectors/[CONNECTOR]";
// Make the request
Connector response = connectorsClient.GetConnector(name);

GetConnectorAsync(ConnectorName, CallSettings)

public virtual Task<Connector> GetConnectorAsync(ConnectorName name, CallSettings callSettings = null)

Gets details of a single Connector.

Parameters
NameDescription
nameConnectorName

Required. Resource name of the form: projects/*/locations/*/providers/*/connectors/* Only global location is supported for Connector resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskConnector

A Task containing the RPC response.

Example
// Create client
ConnectorsClient connectorsClient = await ConnectorsClient.CreateAsync();
// Initialize request argument(s)
ConnectorName name = ConnectorName.FromProjectLocationProviderConnector("[PROJECT]", "[LOCATION]", "[PROVIDER]", "[CONNECTOR]");
// Make the request
Connector response = await connectorsClient.GetConnectorAsync(name);

GetConnectorAsync(ConnectorName, CancellationToken)

public virtual Task<Connector> GetConnectorAsync(ConnectorName name, CancellationToken cancellationToken)

Gets details of a single Connector.

Parameters
NameDescription
nameConnectorName

Required. Resource name of the form: projects/*/locations/*/providers/*/connectors/* Only global location is supported for Connector resource.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskConnector

A Task containing the RPC response.

Example
// Create client
ConnectorsClient connectorsClient = await ConnectorsClient.CreateAsync();
// Initialize request argument(s)
ConnectorName name = ConnectorName.FromProjectLocationProviderConnector("[PROJECT]", "[LOCATION]", "[PROVIDER]", "[CONNECTOR]");
// Make the request
Connector response = await connectorsClient.GetConnectorAsync(name);

GetConnectorAsync(GetConnectorRequest, CallSettings)

public virtual Task<Connector> GetConnectorAsync(GetConnectorRequest request, CallSettings callSettings = null)

Gets details of a single Connector.

Parameters
NameDescription
requestGetConnectorRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskConnector

A Task containing the RPC response.

Example
// Create client
ConnectorsClient connectorsClient = await ConnectorsClient.CreateAsync();
// Initialize request argument(s)
GetConnectorRequest request = new GetConnectorRequest
{
    ConnectorName = ConnectorName.FromProjectLocationProviderConnector("[PROJECT]", "[LOCATION]", "[PROVIDER]", "[CONNECTOR]"),
};
// Make the request
Connector response = await connectorsClient.GetConnectorAsync(request);

GetConnectorAsync(GetConnectorRequest, CancellationToken)

public virtual Task<Connector> GetConnectorAsync(GetConnectorRequest request, CancellationToken cancellationToken)

Gets details of a single Connector.

Parameters
NameDescription
requestGetConnectorRequest

The request object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskConnector

A Task containing the RPC response.

Example
// Create client
ConnectorsClient connectorsClient = await ConnectorsClient.CreateAsync();
// Initialize request argument(s)
GetConnectorRequest request = new GetConnectorRequest
{
    ConnectorName = ConnectorName.FromProjectLocationProviderConnector("[PROJECT]", "[LOCATION]", "[PROVIDER]", "[CONNECTOR]"),
};
// Make the request
Connector response = await connectorsClient.GetConnectorAsync(request);

GetConnectorAsync(string, CallSettings)

public virtual Task<Connector> GetConnectorAsync(string name, CallSettings callSettings = null)

Gets details of a single Connector.

Parameters
NameDescription
namestring

Required. Resource name of the form: projects/*/locations/*/providers/*/connectors/* Only global location is supported for Connector resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskConnector

A Task containing the RPC response.

Example
// Create client
ConnectorsClient connectorsClient = await ConnectorsClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/providers/[PROVIDER]/connectors/[CONNECTOR]";
// Make the request
Connector response = await connectorsClient.GetConnectorAsync(name);

GetConnectorAsync(string, CancellationToken)

public virtual Task<Connector> GetConnectorAsync(string name, CancellationToken cancellationToken)

Gets details of a single Connector.

Parameters
NameDescription
namestring

Required. Resource name of the form: projects/*/locations/*/providers/*/connectors/* Only global location is supported for Connector resource.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskConnector

A Task containing the RPC response.

Example
// Create client
ConnectorsClient connectorsClient = await ConnectorsClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/providers/[PROVIDER]/connectors/[CONNECTOR]";
// Make the request
Connector response = await connectorsClient.GetConnectorAsync(name);

GetConnectorVersion(ConnectorVersionName, CallSettings)

public virtual ConnectorVersion GetConnectorVersion(ConnectorVersionName name, CallSettings callSettings = null)

Gets details of a single connector version.

Parameters
NameDescription
nameConnectorVersionName

Required. Resource name of the form: projects/*/locations/*/providers/*/connectors/*/versions/* Only global location is supported for ConnectorVersion resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
ConnectorVersion

The RPC response.

Example
// Create client
ConnectorsClient connectorsClient = ConnectorsClient.Create();
// Initialize request argument(s)
ConnectorVersionName name = ConnectorVersionName.FromProjectLocationProviderConnectorVersion("[PROJECT]", "[LOCATION]", "[PROVIDER]", "[CONNECTOR]", "[VERSION]");
// Make the request
ConnectorVersion response = connectorsClient.GetConnectorVersion(name);

GetConnectorVersion(GetConnectorVersionRequest, CallSettings)

public virtual ConnectorVersion GetConnectorVersion(GetConnectorVersionRequest request, CallSettings callSettings = null)

Gets details of a single connector version.

Parameters
NameDescription
requestGetConnectorVersionRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
ConnectorVersion

The RPC response.

Example
// Create client
ConnectorsClient connectorsClient = ConnectorsClient.Create();
// Initialize request argument(s)
GetConnectorVersionRequest request = new GetConnectorVersionRequest
{
    ConnectorVersionName = ConnectorVersionName.FromProjectLocationProviderConnectorVersion("[PROJECT]", "[LOCATION]", "[PROVIDER]", "[CONNECTOR]", "[VERSION]"),
    View = ConnectorVersionView.Unspecified,
};
// Make the request
ConnectorVersion response = connectorsClient.GetConnectorVersion(request);

GetConnectorVersion(string, CallSettings)

public virtual ConnectorVersion GetConnectorVersion(string name, CallSettings callSettings = null)

Gets details of a single connector version.

Parameters
NameDescription
namestring

Required. Resource name of the form: projects/*/locations/*/providers/*/connectors/*/versions/* Only global location is supported for ConnectorVersion resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
ConnectorVersion

The RPC response.

Example
// Create client
ConnectorsClient connectorsClient = ConnectorsClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/providers/[PROVIDER]/connectors/[CONNECTOR]/versions/[VERSION]";
// Make the request
ConnectorVersion response = connectorsClient.GetConnectorVersion(name);

GetConnectorVersionAsync(ConnectorVersionName, CallSettings)

public virtual Task<ConnectorVersion> GetConnectorVersionAsync(ConnectorVersionName name, CallSettings callSettings = null)

Gets details of a single connector version.

Parameters
NameDescription
nameConnectorVersionName

Required. Resource name of the form: projects/*/locations/*/providers/*/connectors/*/versions/* Only global location is supported for ConnectorVersion resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskConnectorVersion

A Task containing the RPC response.

Example
// Create client
ConnectorsClient connectorsClient = await ConnectorsClient.CreateAsync();
// Initialize request argument(s)
ConnectorVersionName name = ConnectorVersionName.FromProjectLocationProviderConnectorVersion("[PROJECT]", "[LOCATION]", "[PROVIDER]", "[CONNECTOR]", "[VERSION]");
// Make the request
ConnectorVersion response = await connectorsClient.GetConnectorVersionAsync(name);

GetConnectorVersionAsync(ConnectorVersionName, CancellationToken)

public virtual Task<ConnectorVersion> GetConnectorVersionAsync(ConnectorVersionName name, CancellationToken cancellationToken)

Gets details of a single connector version.

Parameters
NameDescription
nameConnectorVersionName

Required. Resource name of the form: projects/*/locations/*/providers/*/connectors/*/versions/* Only global location is supported for ConnectorVersion resource.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskConnectorVersion

A Task containing the RPC response.

Example
// Create client
ConnectorsClient connectorsClient = await ConnectorsClient.CreateAsync();
// Initialize request argument(s)
ConnectorVersionName name = ConnectorVersionName.FromProjectLocationProviderConnectorVersion("[PROJECT]", "[LOCATION]", "[PROVIDER]", "[CONNECTOR]", "[VERSION]");
// Make the request
ConnectorVersion response = await connectorsClient.GetConnectorVersionAsync(name);

GetConnectorVersionAsync(GetConnectorVersionRequest, CallSettings)

public virtual Task<ConnectorVersion> GetConnectorVersionAsync(GetConnectorVersionRequest request, CallSettings callSettings = null)

Gets details of a single connector version.

Parameters
NameDescription
requestGetConnectorVersionRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskConnectorVersion

A Task containing the RPC response.

Example
// Create client
ConnectorsClient connectorsClient = await ConnectorsClient.CreateAsync();
// Initialize request argument(s)
GetConnectorVersionRequest request = new GetConnectorVersionRequest
{
    ConnectorVersionName = ConnectorVersionName.FromProjectLocationProviderConnectorVersion("[PROJECT]", "[LOCATION]", "[PROVIDER]", "[CONNECTOR]", "[VERSION]"),
    View = ConnectorVersionView.Unspecified,
};
// Make the request
ConnectorVersion response = await connectorsClient.GetConnectorVersionAsync(request);

GetConnectorVersionAsync(GetConnectorVersionRequest, CancellationToken)

public virtual Task<ConnectorVersion> GetConnectorVersionAsync(GetConnectorVersionRequest request, CancellationToken cancellationToken)

Gets details of a single connector version.

Parameters
NameDescription
requestGetConnectorVersionRequest

The request object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskConnectorVersion

A Task containing the RPC response.

Example
// Create client
ConnectorsClient connectorsClient = await ConnectorsClient.CreateAsync();
// Initialize request argument(s)
GetConnectorVersionRequest request = new GetConnectorVersionRequest
{
    ConnectorVersionName = ConnectorVersionName.FromProjectLocationProviderConnectorVersion("[PROJECT]", "[LOCATION]", "[PROVIDER]", "[CONNECTOR]", "[VERSION]"),
    View = ConnectorVersionView.Unspecified,
};
// Make the request
ConnectorVersion response = await connectorsClient.GetConnectorVersionAsync(request);

GetConnectorVersionAsync(string, CallSettings)

public virtual Task<ConnectorVersion> GetConnectorVersionAsync(string name, CallSettings callSettings = null)

Gets details of a single connector version.

Parameters
NameDescription
namestring

Required. Resource name of the form: projects/*/locations/*/providers/*/connectors/*/versions/* Only global location is supported for ConnectorVersion resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskConnectorVersion

A Task containing the RPC response.

Example
// Create client
ConnectorsClient connectorsClient = await ConnectorsClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/providers/[PROVIDER]/connectors/[CONNECTOR]/versions/[VERSION]";
// Make the request
ConnectorVersion response = await connectorsClient.GetConnectorVersionAsync(name);

GetConnectorVersionAsync(string, CancellationToken)

public virtual Task<ConnectorVersion> GetConnectorVersionAsync(string name, CancellationToken cancellationToken)

Gets details of a single connector version.

Parameters
NameDescription
namestring

Required. Resource name of the form: projects/*/locations/*/providers/*/connectors/*/versions/* Only global location is supported for ConnectorVersion resource.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskConnectorVersion

A Task containing the RPC response.

Example
// Create client
ConnectorsClient connectorsClient = await ConnectorsClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/providers/[PROVIDER]/connectors/[CONNECTOR]/versions/[VERSION]";
// Make the request
ConnectorVersion response = await connectorsClient.GetConnectorVersionAsync(name);

GetGlobalSettings(GetGlobalSettingsRequest, CallSettings)

public virtual Settings GetGlobalSettings(GetGlobalSettingsRequest request, CallSettings callSettings = null)

GetGlobalSettings gets settings of a project. GlobalSettings is a singleton resource.

Parameters
NameDescription
requestGetGlobalSettingsRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Settings

The RPC response.

Example
// Create client
ConnectorsClient connectorsClient = ConnectorsClient.Create();
// Initialize request argument(s)
GetGlobalSettingsRequest request = new GetGlobalSettingsRequest
{
    SettingsName = SettingsName.FromProject("[PROJECT]"),
};
// Make the request
Settings response = connectorsClient.GetGlobalSettings(request);

GetGlobalSettings(SettingsName, CallSettings)

public virtual Settings GetGlobalSettings(SettingsName name, CallSettings callSettings = null)

GetGlobalSettings gets settings of a project. GlobalSettings is a singleton resource.

Parameters
NameDescription
nameSettingsName

Required. The resource name of the Settings.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Settings

The RPC response.

Example
// Create client
ConnectorsClient connectorsClient = ConnectorsClient.Create();
// Initialize request argument(s)
SettingsName name = SettingsName.FromProject("[PROJECT]");
// Make the request
Settings response = connectorsClient.GetGlobalSettings(name);

GetGlobalSettings(string, CallSettings)

public virtual Settings GetGlobalSettings(string name, CallSettings callSettings = null)

GetGlobalSettings gets settings of a project. GlobalSettings is a singleton resource.

Parameters
NameDescription
namestring

Required. The resource name of the Settings.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Settings

The RPC response.

Example
// Create client
ConnectorsClient connectorsClient = ConnectorsClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/global/settings";
// Make the request
Settings response = connectorsClient.GetGlobalSettings(name);

GetGlobalSettingsAsync(GetGlobalSettingsRequest, CallSettings)

public virtual Task<Settings> GetGlobalSettingsAsync(GetGlobalSettingsRequest request, CallSettings callSettings = null)

GetGlobalSettings gets settings of a project. GlobalSettings is a singleton resource.

Parameters
NameDescription
requestGetGlobalSettingsRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskSettings

A Task containing the RPC response.

Example
// Create client
ConnectorsClient connectorsClient = await ConnectorsClient.CreateAsync();
// Initialize request argument(s)
GetGlobalSettingsRequest request = new GetGlobalSettingsRequest
{
    SettingsName = SettingsName.FromProject("[PROJECT]"),
};
// Make the request
Settings response = await connectorsClient.GetGlobalSettingsAsync(request);

GetGlobalSettingsAsync(GetGlobalSettingsRequest, CancellationToken)

public virtual Task<Settings> GetGlobalSettingsAsync(GetGlobalSettingsRequest request, CancellationToken cancellationToken)

GetGlobalSettings gets settings of a project. GlobalSettings is a singleton resource.

Parameters
NameDescription
requestGetGlobalSettingsRequest

The request object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskSettings

A Task containing the RPC response.

Example
// Create client
ConnectorsClient connectorsClient = await ConnectorsClient.CreateAsync();
// Initialize request argument(s)
GetGlobalSettingsRequest request = new GetGlobalSettingsRequest
{
    SettingsName = SettingsName.FromProject("[PROJECT]"),
};
// Make the request
Settings response = await connectorsClient.GetGlobalSettingsAsync(request);

GetGlobalSettingsAsync(SettingsName, CallSettings)

public virtual Task<Settings> GetGlobalSettingsAsync(SettingsName name, CallSettings callSettings = null)

GetGlobalSettings gets settings of a project. GlobalSettings is a singleton resource.

Parameters
NameDescription
nameSettingsName

Required. The resource name of the Settings.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskSettings

A Task containing the RPC response.

Example
// Create client
ConnectorsClient connectorsClient = await ConnectorsClient.CreateAsync();
// Initialize request argument(s)
SettingsName name = SettingsName.FromProject("[PROJECT]");
// Make the request
Settings response = await connectorsClient.GetGlobalSettingsAsync(name);

GetGlobalSettingsAsync(SettingsName, CancellationToken)

public virtual Task<Settings> GetGlobalSettingsAsync(SettingsName name, CancellationToken cancellationToken)

GetGlobalSettings gets settings of a project. GlobalSettings is a singleton resource.

Parameters
NameDescription
nameSettingsName

Required. The resource name of the Settings.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskSettings

A Task containing the RPC response.

Example
// Create client
ConnectorsClient connectorsClient = await ConnectorsClient.CreateAsync();
// Initialize request argument(s)
SettingsName name = SettingsName.FromProject("[PROJECT]");
// Make the request
Settings response = await connectorsClient.GetGlobalSettingsAsync(name);

GetGlobalSettingsAsync(string, CallSettings)

public virtual Task<Settings> GetGlobalSettingsAsync(string name, CallSettings callSettings = null)

GetGlobalSettings gets settings of a project. GlobalSettings is a singleton resource.

Parameters
NameDescription
namestring

Required. The resource name of the Settings.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskSettings

A Task containing the RPC response.

Example
// Create client
ConnectorsClient connectorsClient = await ConnectorsClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/global/settings";
// Make the request
Settings response = await connectorsClient.GetGlobalSettingsAsync(name);

GetGlobalSettingsAsync(string, CancellationToken)

public virtual Task<Settings> GetGlobalSettingsAsync(string name, CancellationToken cancellationToken)

GetGlobalSettings gets settings of a project. GlobalSettings is a singleton resource.

Parameters
NameDescription
namestring

Required. The resource name of the Settings.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskSettings

A Task containing the RPC response.

Example
// Create client
ConnectorsClient connectorsClient = await ConnectorsClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/global/settings";
// Make the request
Settings response = await connectorsClient.GetGlobalSettingsAsync(name);

GetProvider(GetProviderRequest, CallSettings)

public virtual Provider GetProvider(GetProviderRequest request, CallSettings callSettings = null)

Gets details of a provider.

Parameters
NameDescription
requestGetProviderRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Provider

The RPC response.

Example
// Create client
ConnectorsClient connectorsClient = ConnectorsClient.Create();
// Initialize request argument(s)
GetProviderRequest request = new GetProviderRequest
{
    ProviderName = ProviderName.FromProjectLocationProvider("[PROJECT]", "[LOCATION]", "[PROVIDER]"),
};
// Make the request
Provider response = connectorsClient.GetProvider(request);

GetProvider(ProviderName, CallSettings)

public virtual Provider GetProvider(ProviderName name, CallSettings callSettings = null)

Gets details of a provider.

Parameters
NameDescription
nameProviderName

Required. Resource name of the form: projects/*/locations/*/providers/* Only global location is supported for Provider resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Provider

The RPC response.

Example
// Create client
ConnectorsClient connectorsClient = ConnectorsClient.Create();
// Initialize request argument(s)
ProviderName name = ProviderName.FromProjectLocationProvider("[PROJECT]", "[LOCATION]", "[PROVIDER]");
// Make the request
Provider response = connectorsClient.GetProvider(name);

GetProvider(string, CallSettings)

public virtual Provider GetProvider(string name, CallSettings callSettings = null)

Gets details of a provider.

Parameters
NameDescription
namestring

Required. Resource name of the form: projects/*/locations/*/providers/* Only global location is supported for Provider resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Provider

The RPC response.

Example
// Create client
ConnectorsClient connectorsClient = ConnectorsClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/providers/[PROVIDER]";
// Make the request
Provider response = connectorsClient.GetProvider(name);

GetProviderAsync(GetProviderRequest, CallSettings)

public virtual Task<Provider> GetProviderAsync(GetProviderRequest request, CallSettings callSettings = null)

Gets details of a provider.

Parameters
NameDescription
requestGetProviderRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskProvider

A Task containing the RPC response.

Example
// Create client
ConnectorsClient connectorsClient = await ConnectorsClient.CreateAsync();
// Initialize request argument(s)
GetProviderRequest request = new GetProviderRequest
{
    ProviderName = ProviderName.FromProjectLocationProvider("[PROJECT]", "[LOCATION]", "[PROVIDER]"),
};
// Make the request
Provider response = await connectorsClient.GetProviderAsync(request);

GetProviderAsync(GetProviderRequest, CancellationToken)

public virtual Task<Provider> GetProviderAsync(GetProviderRequest request, CancellationToken cancellationToken)

Gets details of a provider.

Parameters
NameDescription
requestGetProviderRequest

The request object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskProvider

A Task containing the RPC response.

Example
// Create client
ConnectorsClient connectorsClient = await ConnectorsClient.CreateAsync();
// Initialize request argument(s)
GetProviderRequest request = new GetProviderRequest
{
    ProviderName = ProviderName.FromProjectLocationProvider("[PROJECT]", "[LOCATION]", "[PROVIDER]"),
};
// Make the request
Provider response = await connectorsClient.GetProviderAsync(request);

GetProviderAsync(ProviderName, CallSettings)

public virtual Task<Provider> GetProviderAsync(ProviderName name, CallSettings callSettings = null)

Gets details of a provider.

Parameters
NameDescription
nameProviderName

Required. Resource name of the form: projects/*/locations/*/providers/* Only global location is supported for Provider resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskProvider

A Task containing the RPC response.

Example
// Create client
ConnectorsClient connectorsClient = await ConnectorsClient.CreateAsync();
// Initialize request argument(s)
ProviderName name = ProviderName.FromProjectLocationProvider("[PROJECT]", "[LOCATION]", "[PROVIDER]");
// Make the request
Provider response = await connectorsClient.GetProviderAsync(name);

GetProviderAsync(ProviderName, CancellationToken)

public virtual Task<Provider> GetProviderAsync(ProviderName name, CancellationToken cancellationToken)

Gets details of a provider.

Parameters
NameDescription
nameProviderName

Required. Resource name of the form: projects/*/locations/*/providers/* Only global location is supported for Provider resource.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskProvider

A Task containing the RPC response.

Example
// Create client
ConnectorsClient connectorsClient = await ConnectorsClient.CreateAsync();
// Initialize request argument(s)
ProviderName name = ProviderName.FromProjectLocationProvider("[PROJECT]", "[LOCATION]", "[PROVIDER]");
// Make the request
Provider response = await connectorsClient.GetProviderAsync(name);

GetProviderAsync(string, CallSettings)

public virtual Task<Provider> GetProviderAsync(string name, CallSettings callSettings = null)

Gets details of a provider.

Parameters
NameDescription
namestring

Required. Resource name of the form: projects/*/locations/*/providers/* Only global location is supported for Provider resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskProvider

A Task containing the RPC response.

Example
// Create client
ConnectorsClient connectorsClient = await ConnectorsClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/providers/[PROVIDER]";
// Make the request
Provider response = await connectorsClient.GetProviderAsync(name);

GetProviderAsync(string, CancellationToken)

public virtual Task<Provider> GetProviderAsync(string name, CancellationToken cancellationToken)

Gets details of a provider.

Parameters
NameDescription
namestring

Required. Resource name of the form: projects/*/locations/*/providers/* Only global location is supported for Provider resource.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskProvider

A Task containing the RPC response.

Example
// Create client
ConnectorsClient connectorsClient = await ConnectorsClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/providers/[PROVIDER]";
// Make the request
Provider response = await connectorsClient.GetProviderAsync(name);

GetRuntimeConfig(GetRuntimeConfigRequest, CallSettings)

public virtual RuntimeConfig GetRuntimeConfig(GetRuntimeConfigRequest request, CallSettings callSettings = null)

Gets the runtimeConfig of a location. RuntimeConfig is a singleton resource for each location.

Parameters
NameDescription
requestGetRuntimeConfigRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
RuntimeConfig

The RPC response.

Example
// Create client
ConnectorsClient connectorsClient = ConnectorsClient.Create();
// Initialize request argument(s)
GetRuntimeConfigRequest request = new GetRuntimeConfigRequest
{
    RuntimeConfigName = RuntimeConfigName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
};
// Make the request
RuntimeConfig response = connectorsClient.GetRuntimeConfig(request);

GetRuntimeConfig(RuntimeConfigName, CallSettings)

public virtual RuntimeConfig GetRuntimeConfig(RuntimeConfigName name, CallSettings callSettings = null)

Gets the runtimeConfig of a location. RuntimeConfig is a singleton resource for each location.

Parameters
NameDescription
nameRuntimeConfigName

Required. Resource name of the form: projects/*/locations/*/runtimeConfig

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
RuntimeConfig

The RPC response.

Example
// Create client
ConnectorsClient connectorsClient = ConnectorsClient.Create();
// Initialize request argument(s)
RuntimeConfigName name = RuntimeConfigName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
RuntimeConfig response = connectorsClient.GetRuntimeConfig(name);

GetRuntimeConfig(string, CallSettings)

public virtual RuntimeConfig GetRuntimeConfig(string name, CallSettings callSettings = null)

Gets the runtimeConfig of a location. RuntimeConfig is a singleton resource for each location.

Parameters
NameDescription
namestring

Required. Resource name of the form: projects/*/locations/*/runtimeConfig

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
RuntimeConfig

The RPC response.

Example
// Create client
ConnectorsClient connectorsClient = ConnectorsClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/runtimeConfig";
// Make the request
RuntimeConfig response = connectorsClient.GetRuntimeConfig(name);

GetRuntimeConfigAsync(GetRuntimeConfigRequest, CallSettings)

public virtual Task<RuntimeConfig> GetRuntimeConfigAsync(GetRuntimeConfigRequest request, CallSettings callSettings = null)

Gets the runtimeConfig of a location. RuntimeConfig is a singleton resource for each location.

Parameters
NameDescription
requestGetRuntimeConfigRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskRuntimeConfig

A Task containing the RPC response.

Example
// Create client
ConnectorsClient connectorsClient = await ConnectorsClient.CreateAsync();
// Initialize request argument(s)
GetRuntimeConfigRequest request = new GetRuntimeConfigRequest
{
    RuntimeConfigName = RuntimeConfigName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
};
// Make the request
RuntimeConfig response = await connectorsClient.GetRuntimeConfigAsync(request);

GetRuntimeConfigAsync(GetRuntimeConfigRequest, CancellationToken)

public virtual Task<RuntimeConfig> GetRuntimeConfigAsync(GetRuntimeConfigRequest request, CancellationToken cancellationToken)

Gets the runtimeConfig of a location. RuntimeConfig is a singleton resource for each location.

Parameters
NameDescription
requestGetRuntimeConfigRequest

The request object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskRuntimeConfig

A Task containing the RPC response.

Example
// Create client
ConnectorsClient connectorsClient = await ConnectorsClient.CreateAsync();
// Initialize request argument(s)
GetRuntimeConfigRequest request = new GetRuntimeConfigRequest
{
    RuntimeConfigName = RuntimeConfigName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
};
// Make the request
RuntimeConfig response = await connectorsClient.GetRuntimeConfigAsync(request);

GetRuntimeConfigAsync(RuntimeConfigName, CallSettings)

public virtual Task<RuntimeConfig> GetRuntimeConfigAsync(RuntimeConfigName name, CallSettings callSettings = null)

Gets the runtimeConfig of a location. RuntimeConfig is a singleton resource for each location.

Parameters
NameDescription
nameRuntimeConfigName

Required. Resource name of the form: projects/*/locations/*/runtimeConfig

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskRuntimeConfig

A Task containing the RPC response.

Example
// Create client
ConnectorsClient connectorsClient = await ConnectorsClient.CreateAsync();
// Initialize request argument(s)
RuntimeConfigName name = RuntimeConfigName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
RuntimeConfig response = await connectorsClient.GetRuntimeConfigAsync(name);

GetRuntimeConfigAsync(RuntimeConfigName, CancellationToken)

public virtual Task<RuntimeConfig> GetRuntimeConfigAsync(RuntimeConfigName name, CancellationToken cancellationToken)

Gets the runtimeConfig of a location. RuntimeConfig is a singleton resource for each location.

Parameters
NameDescription
nameRuntimeConfigName

Required. Resource name of the form: projects/*/locations/*/runtimeConfig

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskRuntimeConfig

A Task containing the RPC response.

Example
// Create client
ConnectorsClient connectorsClient = await ConnectorsClient.CreateAsync();
// Initialize request argument(s)
RuntimeConfigName name = RuntimeConfigName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
RuntimeConfig response = await connectorsClient.GetRuntimeConfigAsync(name);

GetRuntimeConfigAsync(string, CallSettings)

public virtual Task<RuntimeConfig> GetRuntimeConfigAsync(string name, CallSettings callSettings = null)

Gets the runtimeConfig of a location. RuntimeConfig is a singleton resource for each location.

Parameters
NameDescription
namestring

Required. Resource name of the form: projects/*/locations/*/runtimeConfig

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskRuntimeConfig

A Task containing the RPC response.

Example
// Create client
ConnectorsClient connectorsClient = await ConnectorsClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/runtimeConfig";
// Make the request
RuntimeConfig response = await connectorsClient.GetRuntimeConfigAsync(name);

GetRuntimeConfigAsync(string, CancellationToken)

public virtual Task<RuntimeConfig> GetRuntimeConfigAsync(string name, CancellationToken cancellationToken)

Gets the runtimeConfig of a location. RuntimeConfig is a singleton resource for each location.

Parameters
NameDescription
namestring

Required. Resource name of the form: projects/*/locations/*/runtimeConfig

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskRuntimeConfig

A Task containing the RPC response.

Example
// Create client
ConnectorsClient connectorsClient = await ConnectorsClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/runtimeConfig";
// Make the request
RuntimeConfig response = await connectorsClient.GetRuntimeConfigAsync(name);

ListConnections(LocationName, string, int?, CallSettings)

public virtual PagedEnumerable<ListConnectionsResponse, Connection> ListConnections(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists Connections in a given project and location.

Parameters
NameDescription
parentLocationName

Required. Parent resource of the Connection, of the form: projects/*/locations/*

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListConnectionsResponseConnection

A pageable sequence of Connection resources.

Example
// Create client
ConnectorsClient connectorsClient = ConnectorsClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListConnectionsResponse, Connection> response = connectorsClient.ListConnections(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (Connection item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListConnectionsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Connection item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Connection> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Connection item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListConnections(ListConnectionsRequest, CallSettings)

public virtual PagedEnumerable<ListConnectionsResponse, Connection> ListConnections(ListConnectionsRequest request, CallSettings callSettings = null)

Lists Connections in a given project and location.

Parameters
NameDescription
requestListConnectionsRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListConnectionsResponseConnection

A pageable sequence of Connection resources.

Example
// Create client
ConnectorsClient connectorsClient = ConnectorsClient.Create();
// Initialize request argument(s)
ListConnectionsRequest request = new ListConnectionsRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Filter = "",
    OrderBy = "",
    View = ConnectionView.Unspecified,
};
// Make the request
PagedEnumerable<ListConnectionsResponse, Connection> response = connectorsClient.ListConnections(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (Connection item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListConnectionsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Connection item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Connection> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Connection item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListConnections(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListConnectionsResponse, Connection> ListConnections(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists Connections in a given project and location.

Parameters
NameDescription
parentstring

Required. Parent resource of the Connection, of the form: projects/*/locations/*

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListConnectionsResponseConnection

A pageable sequence of Connection resources.

Example
// Create client
ConnectorsClient connectorsClient = ConnectorsClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListConnectionsResponse, Connection> response = connectorsClient.ListConnections(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (Connection item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListConnectionsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Connection item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Connection> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Connection item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListConnectionsAsync(LocationName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListConnectionsResponse, Connection> ListConnectionsAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists Connections in a given project and location.

Parameters
NameDescription
parentLocationName

Required. Parent resource of the Connection, of the form: projects/*/locations/*

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListConnectionsResponseConnection

A pageable asynchronous sequence of Connection resources.

Example
// Create client
ConnectorsClient connectorsClient = await ConnectorsClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListConnectionsResponse, Connection> response = connectorsClient.ListConnectionsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Connection item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListConnectionsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Connection item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Connection> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Connection item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListConnectionsAsync(ListConnectionsRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListConnectionsResponse, Connection> ListConnectionsAsync(ListConnectionsRequest request, CallSettings callSettings = null)

Lists Connections in a given project and location.

Parameters
NameDescription
requestListConnectionsRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListConnectionsResponseConnection

A pageable asynchronous sequence of Connection resources.

Example
// Create client
ConnectorsClient connectorsClient = await ConnectorsClient.CreateAsync();
// Initialize request argument(s)
ListConnectionsRequest request = new ListConnectionsRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Filter = "",
    OrderBy = "",
    View = ConnectionView.Unspecified,
};
// Make the request
PagedAsyncEnumerable<ListConnectionsResponse, Connection> response = connectorsClient.ListConnectionsAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Connection item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListConnectionsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Connection item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Connection> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Connection item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListConnectionsAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListConnectionsResponse, Connection> ListConnectionsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists Connections in a given project and location.

Parameters
NameDescription
parentstring

Required. Parent resource of the Connection, of the form: projects/*/locations/*

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListConnectionsResponseConnection

A pageable asynchronous sequence of Connection resources.

Example
// Create client
ConnectorsClient connectorsClient = await ConnectorsClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListConnectionsResponse, Connection> response = connectorsClient.ListConnectionsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Connection item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListConnectionsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Connection item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Connection> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Connection item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListConnectorVersions(ConnectorName, string, int?, CallSettings)

public virtual PagedEnumerable<ListConnectorVersionsResponse, ConnectorVersion> ListConnectorVersions(ConnectorName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists Connector Versions in a given project and location.

Parameters
NameDescription
parentConnectorName

Required. Parent resource of the connectors, of the form: projects/*/locations/*/providers/*/connectors/* Only global location is supported for ConnectorVersion resource.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListConnectorVersionsResponseConnectorVersion

A pageable sequence of ConnectorVersion resources.

Example
// Create client
ConnectorsClient connectorsClient = ConnectorsClient.Create();
// Initialize request argument(s)
ConnectorName parent = ConnectorName.FromProjectLocationProviderConnector("[PROJECT]", "[LOCATION]", "[PROVIDER]", "[CONNECTOR]");
// Make the request
PagedEnumerable<ListConnectorVersionsResponse, ConnectorVersion> response = connectorsClient.ListConnectorVersions(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (ConnectorVersion item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListConnectorVersionsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ConnectorVersion item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ConnectorVersion> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ConnectorVersion item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListConnectorVersions(ListConnectorVersionsRequest, CallSettings)

public virtual PagedEnumerable<ListConnectorVersionsResponse, ConnectorVersion> ListConnectorVersions(ListConnectorVersionsRequest request, CallSettings callSettings = null)

Lists Connector Versions in a given project and location.

Parameters
NameDescription
requestListConnectorVersionsRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListConnectorVersionsResponseConnectorVersion

A pageable sequence of ConnectorVersion resources.

Example
// Create client
ConnectorsClient connectorsClient = ConnectorsClient.Create();
// Initialize request argument(s)
ListConnectorVersionsRequest request = new ListConnectorVersionsRequest
{
    ParentAsConnectorName = ConnectorName.FromProjectLocationProviderConnector("[PROJECT]", "[LOCATION]", "[PROVIDER]", "[CONNECTOR]"),
    View = ConnectorVersionView.Unspecified,
};
// Make the request
PagedEnumerable<ListConnectorVersionsResponse, ConnectorVersion> response = connectorsClient.ListConnectorVersions(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (ConnectorVersion item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListConnectorVersionsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ConnectorVersion item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ConnectorVersion> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ConnectorVersion item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListConnectorVersions(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListConnectorVersionsResponse, ConnectorVersion> ListConnectorVersions(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists Connector Versions in a given project and location.

Parameters
NameDescription
parentstring

Required. Parent resource of the connectors, of the form: projects/*/locations/*/providers/*/connectors/* Only global location is supported for ConnectorVersion resource.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListConnectorVersionsResponseConnectorVersion

A pageable sequence of ConnectorVersion resources.

Example
// Create client
ConnectorsClient connectorsClient = ConnectorsClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/providers/[PROVIDER]/connectors/[CONNECTOR]";
// Make the request
PagedEnumerable<ListConnectorVersionsResponse, ConnectorVersion> response = connectorsClient.ListConnectorVersions(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (ConnectorVersion item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListConnectorVersionsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ConnectorVersion item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ConnectorVersion> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ConnectorVersion item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListConnectorVersionsAsync(ConnectorName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListConnectorVersionsResponse, ConnectorVersion> ListConnectorVersionsAsync(ConnectorName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists Connector Versions in a given project and location.

Parameters
NameDescription
parentConnectorName

Required. Parent resource of the connectors, of the form: projects/*/locations/*/providers/*/connectors/* Only global location is supported for ConnectorVersion resource.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListConnectorVersionsResponseConnectorVersion

A pageable asynchronous sequence of ConnectorVersion resources.

Example
// Create client
ConnectorsClient connectorsClient = await ConnectorsClient.CreateAsync();
// Initialize request argument(s)
ConnectorName parent = ConnectorName.FromProjectLocationProviderConnector("[PROJECT]", "[LOCATION]", "[PROVIDER]", "[CONNECTOR]");
// Make the request
PagedAsyncEnumerable<ListConnectorVersionsResponse, ConnectorVersion> response = connectorsClient.ListConnectorVersionsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((ConnectorVersion item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListConnectorVersionsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ConnectorVersion item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ConnectorVersion> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ConnectorVersion item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListConnectorVersionsAsync(ListConnectorVersionsRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListConnectorVersionsResponse, ConnectorVersion> ListConnectorVersionsAsync(ListConnectorVersionsRequest request, CallSettings callSettings = null)

Lists Connector Versions in a given project and location.

Parameters
NameDescription
requestListConnectorVersionsRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListConnectorVersionsResponseConnectorVersion

A pageable asynchronous sequence of ConnectorVersion resources.

Example
// Create client
ConnectorsClient connectorsClient = await ConnectorsClient.CreateAsync();
// Initialize request argument(s)
ListConnectorVersionsRequest request = new ListConnectorVersionsRequest
{
    ParentAsConnectorName = ConnectorName.FromProjectLocationProviderConnector("[PROJECT]", "[LOCATION]", "[PROVIDER]", "[CONNECTOR]"),
    View = ConnectorVersionView.Unspecified,
};
// Make the request
PagedAsyncEnumerable<ListConnectorVersionsResponse, ConnectorVersion> response = connectorsClient.ListConnectorVersionsAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((ConnectorVersion item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListConnectorVersionsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ConnectorVersion item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ConnectorVersion> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ConnectorVersion item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListConnectorVersionsAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListConnectorVersionsResponse, ConnectorVersion> ListConnectorVersionsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists Connector Versions in a given project and location.

Parameters
NameDescription
parentstring

Required. Parent resource of the connectors, of the form: projects/*/locations/*/providers/*/connectors/* Only global location is supported for ConnectorVersion resource.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListConnectorVersionsResponseConnectorVersion

A pageable asynchronous sequence of ConnectorVersion resources.

Example
// Create client
ConnectorsClient connectorsClient = await ConnectorsClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/providers/[PROVIDER]/connectors/[CONNECTOR]";
// Make the request
PagedAsyncEnumerable<ListConnectorVersionsResponse, ConnectorVersion> response = connectorsClient.ListConnectorVersionsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((ConnectorVersion item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListConnectorVersionsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ConnectorVersion item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ConnectorVersion> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ConnectorVersion item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListConnectors(ListConnectorsRequest, CallSettings)

public virtual PagedEnumerable<ListConnectorsResponse, Connector> ListConnectors(ListConnectorsRequest request, CallSettings callSettings = null)

Lists Connectors in a given project and location.

Parameters
NameDescription
requestListConnectorsRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListConnectorsResponseConnector

A pageable sequence of Connector resources.

Example
// Create client
ConnectorsClient connectorsClient = ConnectorsClient.Create();
// Initialize request argument(s)
ListConnectorsRequest request = new ListConnectorsRequest
{
    ParentAsProviderName = ProviderName.FromProjectLocationProvider("[PROJECT]", "[LOCATION]", "[PROVIDER]"),
};
// Make the request
PagedEnumerable<ListConnectorsResponse, Connector> response = connectorsClient.ListConnectors(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (Connector item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListConnectorsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Connector item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Connector> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Connector item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListConnectors(ProviderName, string, int?, CallSettings)

public virtual PagedEnumerable<ListConnectorsResponse, Connector> ListConnectors(ProviderName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists Connectors in a given project and location.

Parameters
NameDescription
parentProviderName

Required. Parent resource of the connectors, of the form: projects/*/locations/*/providers/* Only global location is supported for Connector resource.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListConnectorsResponseConnector

A pageable sequence of Connector resources.

Example
// Create client
ConnectorsClient connectorsClient = ConnectorsClient.Create();
// Initialize request argument(s)
ProviderName parent = ProviderName.FromProjectLocationProvider("[PROJECT]", "[LOCATION]", "[PROVIDER]");
// Make the request
PagedEnumerable<ListConnectorsResponse, Connector> response = connectorsClient.ListConnectors(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (Connector item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListConnectorsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Connector item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Connector> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Connector item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListConnectors(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListConnectorsResponse, Connector> ListConnectors(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists Connectors in a given project and location.

Parameters
NameDescription
parentstring

Required. Parent resource of the connectors, of the form: projects/*/locations/*/providers/* Only global location is supported for Connector resource.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListConnectorsResponseConnector

A pageable sequence of Connector resources.

Example
// Create client
ConnectorsClient connectorsClient = ConnectorsClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/providers/[PROVIDER]";
// Make the request
PagedEnumerable<ListConnectorsResponse, Connector> response = connectorsClient.ListConnectors(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (Connector item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListConnectorsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Connector item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Connector> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Connector item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListConnectorsAsync(ListConnectorsRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListConnectorsResponse, Connector> ListConnectorsAsync(ListConnectorsRequest request, CallSettings callSettings = null)

Lists Connectors in a given project and location.

Parameters
NameDescription
requestListConnectorsRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListConnectorsResponseConnector

A pageable asynchronous sequence of Connector resources.

Example
// Create client
ConnectorsClient connectorsClient = await ConnectorsClient.CreateAsync();
// Initialize request argument(s)
ListConnectorsRequest request = new ListConnectorsRequest
{
    ParentAsProviderName = ProviderName.FromProjectLocationProvider("[PROJECT]", "[LOCATION]", "[PROVIDER]"),
};
// Make the request
PagedAsyncEnumerable<ListConnectorsResponse, Connector> response = connectorsClient.ListConnectorsAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Connector item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListConnectorsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Connector item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Connector> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Connector item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListConnectorsAsync(ProviderName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListConnectorsResponse, Connector> ListConnectorsAsync(ProviderName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists Connectors in a given project and location.

Parameters
NameDescription
parentProviderName

Required. Parent resource of the connectors, of the form: projects/*/locations/*/providers/* Only global location is supported for Connector resource.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListConnectorsResponseConnector

A pageable asynchronous sequence of Connector resources.

Example
// Create client
ConnectorsClient connectorsClient = await ConnectorsClient.CreateAsync();
// Initialize request argument(s)
ProviderName parent = ProviderName.FromProjectLocationProvider("[PROJECT]", "[LOCATION]", "[PROVIDER]");
// Make the request
PagedAsyncEnumerable<ListConnectorsResponse, Connector> response = connectorsClient.ListConnectorsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Connector item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListConnectorsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Connector item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Connector> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Connector item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListConnectorsAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListConnectorsResponse, Connector> ListConnectorsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists Connectors in a given project and location.

Parameters
NameDescription
parentstring

Required. Parent resource of the connectors, of the form: projects/*/locations/*/providers/* Only global location is supported for Connector resource.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListConnectorsResponseConnector

A pageable asynchronous sequence of Connector resources.

Example
// Create client
ConnectorsClient connectorsClient = await ConnectorsClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/providers/[PROVIDER]";
// Make the request
PagedAsyncEnumerable<ListConnectorsResponse, Connector> response = connectorsClient.ListConnectorsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Connector item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListConnectorsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Connector item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Connector> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Connector item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListProviders(LocationName, string, int?, CallSettings)

public virtual PagedEnumerable<ListProvidersResponse, Provider> ListProviders(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists Providers in a given project and location.

Parameters
NameDescription
parentLocationName

Required. Parent resource of the API, of the form: projects/*/locations/* Only global location is supported for Provider resource.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListProvidersResponseProvider

A pageable sequence of Provider resources.

Example
// Create client
ConnectorsClient connectorsClient = ConnectorsClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListProvidersResponse, Provider> response = connectorsClient.ListProviders(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (Provider item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListProvidersResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Provider item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Provider> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Provider item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListProviders(ListProvidersRequest, CallSettings)

public virtual PagedEnumerable<ListProvidersResponse, Provider> ListProviders(ListProvidersRequest request, CallSettings callSettings = null)

Lists Providers in a given project and location.

Parameters
NameDescription
requestListProvidersRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListProvidersResponseProvider

A pageable sequence of Provider resources.

Example
// Create client
ConnectorsClient connectorsClient = ConnectorsClient.Create();
// Initialize request argument(s)
ListProvidersRequest request = new ListProvidersRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
};
// Make the request
PagedEnumerable<ListProvidersResponse, Provider> response = connectorsClient.ListProviders(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (Provider item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListProvidersResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Provider item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Provider> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Provider item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListProviders(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListProvidersResponse, Provider> ListProviders(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists Providers in a given project and location.

Parameters
NameDescription
parentstring

Required. Parent resource of the API, of the form: projects/*/locations/* Only global location is supported for Provider resource.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListProvidersResponseProvider

A pageable sequence of Provider resources.

Example
// Create client
ConnectorsClient connectorsClient = ConnectorsClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListProvidersResponse, Provider> response = connectorsClient.ListProviders(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (Provider item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListProvidersResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Provider item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Provider> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Provider item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListProvidersAsync(LocationName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListProvidersResponse, Provider> ListProvidersAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists Providers in a given project and location.

Parameters
NameDescription
parentLocationName

Required. Parent resource of the API, of the form: projects/*/locations/* Only global location is supported for Provider resource.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListProvidersResponseProvider

A pageable asynchronous sequence of Provider resources.

Example
// Create client
ConnectorsClient connectorsClient = await ConnectorsClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListProvidersResponse, Provider> response = connectorsClient.ListProvidersAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Provider item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListProvidersResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Provider item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Provider> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Provider item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListProvidersAsync(ListProvidersRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListProvidersResponse, Provider> ListProvidersAsync(ListProvidersRequest request, CallSettings callSettings = null)

Lists Providers in a given project and location.

Parameters
NameDescription
requestListProvidersRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListProvidersResponseProvider

A pageable asynchronous sequence of Provider resources.

Example
// Create client
ConnectorsClient connectorsClient = await ConnectorsClient.CreateAsync();
// Initialize request argument(s)
ListProvidersRequest request = new ListProvidersRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
};
// Make the request
PagedAsyncEnumerable<ListProvidersResponse, Provider> response = connectorsClient.ListProvidersAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Provider item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListProvidersResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Provider item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Provider> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Provider item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListProvidersAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListProvidersResponse, Provider> ListProvidersAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists Providers in a given project and location.

Parameters
NameDescription
parentstring

Required. Parent resource of the API, of the form: projects/*/locations/* Only global location is supported for Provider resource.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListProvidersResponseProvider

A pageable asynchronous sequence of Provider resources.

Example
// Create client
ConnectorsClient connectorsClient = await ConnectorsClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListProvidersResponse, Provider> response = connectorsClient.ListProvidersAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Provider item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListProvidersResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Provider item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Provider> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Provider item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListRuntimeActionSchemas(ConnectionName, string, int?, CallSettings)

public virtual PagedEnumerable<ListRuntimeActionSchemasResponse, RuntimeActionSchema> ListRuntimeActionSchemas(ConnectionName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

List schema of a runtime actions filtered by action name.

Parameters
NameDescription
parentConnectionName

Required. Parent resource of RuntimeActionSchema Format: projects/{project}/locations/{location}/connections/{connection}

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListRuntimeActionSchemasResponseRuntimeActionSchema

A pageable sequence of RuntimeActionSchema resources.

Example
// Create client
ConnectorsClient connectorsClient = ConnectorsClient.Create();
// Initialize request argument(s)
ConnectionName parent = ConnectionName.FromProjectLocationConnection("[PROJECT]", "[LOCATION]", "[CONNECTION]");
// Make the request
PagedEnumerable<ListRuntimeActionSchemasResponse, RuntimeActionSchema> response = connectorsClient.ListRuntimeActionSchemas(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (RuntimeActionSchema item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListRuntimeActionSchemasResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (RuntimeActionSchema item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<RuntimeActionSchema> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (RuntimeActionSchema item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListRuntimeActionSchemas(ListRuntimeActionSchemasRequest, CallSettings)

public virtual PagedEnumerable<ListRuntimeActionSchemasResponse, RuntimeActionSchema> ListRuntimeActionSchemas(ListRuntimeActionSchemasRequest request, CallSettings callSettings = null)

List schema of a runtime actions filtered by action name.

Parameters
NameDescription
requestListRuntimeActionSchemasRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListRuntimeActionSchemasResponseRuntimeActionSchema

A pageable sequence of RuntimeActionSchema resources.

Example
// Create client
ConnectorsClient connectorsClient = ConnectorsClient.Create();
// Initialize request argument(s)
ListRuntimeActionSchemasRequest request = new ListRuntimeActionSchemasRequest
{
    ParentAsConnectionName = ConnectionName.FromProjectLocationConnection("[PROJECT]", "[LOCATION]", "[CONNECTION]"),
    Filter = "",
};
// Make the request
PagedEnumerable<ListRuntimeActionSchemasResponse, RuntimeActionSchema> response = connectorsClient.ListRuntimeActionSchemas(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (RuntimeActionSchema item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListRuntimeActionSchemasResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (RuntimeActionSchema item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<RuntimeActionSchema> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (RuntimeActionSchema item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListRuntimeActionSchemas(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListRuntimeActionSchemasResponse, RuntimeActionSchema> ListRuntimeActionSchemas(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

List schema of a runtime actions filtered by action name.

Parameters
NameDescription
parentstring

Required. Parent resource of RuntimeActionSchema Format: projects/{project}/locations/{location}/connections/{connection}

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListRuntimeActionSchemasResponseRuntimeActionSchema

A pageable sequence of RuntimeActionSchema resources.

Example
// Create client
ConnectorsClient connectorsClient = ConnectorsClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/connections/[CONNECTION]";
// Make the request
PagedEnumerable<ListRuntimeActionSchemasResponse, RuntimeActionSchema> response = connectorsClient.ListRuntimeActionSchemas(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (RuntimeActionSchema item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListRuntimeActionSchemasResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (RuntimeActionSchema item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<RuntimeActionSchema> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (RuntimeActionSchema item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListRuntimeActionSchemasAsync(ConnectionName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListRuntimeActionSchemasResponse, RuntimeActionSchema> ListRuntimeActionSchemasAsync(ConnectionName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

List schema of a runtime actions filtered by action name.

Parameters
NameDescription
parentConnectionName

Required. Parent resource of RuntimeActionSchema Format: projects/{project}/locations/{location}/connections/{connection}

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListRuntimeActionSchemasResponseRuntimeActionSchema

A pageable asynchronous sequence of RuntimeActionSchema resources.

Example
// Create client
ConnectorsClient connectorsClient = await ConnectorsClient.CreateAsync();
// Initialize request argument(s)
ConnectionName parent = ConnectionName.FromProjectLocationConnection("[PROJECT]", "[LOCATION]", "[CONNECTION]");
// Make the request
PagedAsyncEnumerable<ListRuntimeActionSchemasResponse, RuntimeActionSchema> response = connectorsClient.ListRuntimeActionSchemasAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((RuntimeActionSchema item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListRuntimeActionSchemasResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (RuntimeActionSchema item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<RuntimeActionSchema> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (RuntimeActionSchema item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListRuntimeActionSchemasAsync(ListRuntimeActionSchemasRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListRuntimeActionSchemasResponse, RuntimeActionSchema> ListRuntimeActionSchemasAsync(ListRuntimeActionSchemasRequest request, CallSettings callSettings = null)

List schema of a runtime actions filtered by action name.

Parameters
NameDescription
requestListRuntimeActionSchemasRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListRuntimeActionSchemasResponseRuntimeActionSchema

A pageable asynchronous sequence of RuntimeActionSchema resources.

Example
// Create client
ConnectorsClient connectorsClient = await ConnectorsClient.CreateAsync();
// Initialize request argument(s)
ListRuntimeActionSchemasRequest request = new ListRuntimeActionSchemasRequest
{
    ParentAsConnectionName = ConnectionName.FromProjectLocationConnection("[PROJECT]", "[LOCATION]", "[CONNECTION]"),
    Filter = "",
};
// Make the request
PagedAsyncEnumerable<ListRuntimeActionSchemasResponse, RuntimeActionSchema> response = connectorsClient.ListRuntimeActionSchemasAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((RuntimeActionSchema item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListRuntimeActionSchemasResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (RuntimeActionSchema item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<RuntimeActionSchema> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (RuntimeActionSchema item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListRuntimeActionSchemasAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListRuntimeActionSchemasResponse, RuntimeActionSchema> ListRuntimeActionSchemasAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

List schema of a runtime actions filtered by action name.

Parameters
NameDescription
parentstring

Required. Parent resource of RuntimeActionSchema Format: projects/{project}/locations/{location}/connections/{connection}

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListRuntimeActionSchemasResponseRuntimeActionSchema

A pageable asynchronous sequence of RuntimeActionSchema resources.

Example
// Create client
ConnectorsClient connectorsClient = await ConnectorsClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/connections/[CONNECTION]";
// Make the request
PagedAsyncEnumerable<ListRuntimeActionSchemasResponse, RuntimeActionSchema> response = connectorsClient.ListRuntimeActionSchemasAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((RuntimeActionSchema item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListRuntimeActionSchemasResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (RuntimeActionSchema item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<RuntimeActionSchema> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (RuntimeActionSchema item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListRuntimeEntitySchemas(ConnectionName, string, int?, CallSettings)

public virtual PagedEnumerable<ListRuntimeEntitySchemasResponse, RuntimeEntitySchema> ListRuntimeEntitySchemas(ConnectionName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

List schema of a runtime entities filtered by entity name.

Parameters
NameDescription
parentConnectionName

Required. Parent resource of RuntimeEntitySchema Format: projects/{project}/locations/{location}/connections/{connection}

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListRuntimeEntitySchemasResponseRuntimeEntitySchema

A pageable sequence of RuntimeEntitySchema resources.

Example
// Create client
ConnectorsClient connectorsClient = ConnectorsClient.Create();
// Initialize request argument(s)
ConnectionName parent = ConnectionName.FromProjectLocationConnection("[PROJECT]", "[LOCATION]", "[CONNECTION]");
// Make the request
PagedEnumerable<ListRuntimeEntitySchemasResponse, RuntimeEntitySchema> response = connectorsClient.ListRuntimeEntitySchemas(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (RuntimeEntitySchema item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListRuntimeEntitySchemasResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (RuntimeEntitySchema item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<RuntimeEntitySchema> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (RuntimeEntitySchema item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListRuntimeEntitySchemas(ListRuntimeEntitySchemasRequest, CallSettings)

public virtual PagedEnumerable<ListRuntimeEntitySchemasResponse, RuntimeEntitySchema> ListRuntimeEntitySchemas(ListRuntimeEntitySchemasRequest request, CallSettings callSettings = null)

List schema of a runtime entities filtered by entity name.

Parameters
NameDescription
requestListRuntimeEntitySchemasRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListRuntimeEntitySchemasResponseRuntimeEntitySchema

A pageable sequence of RuntimeEntitySchema resources.

Example
// Create client
ConnectorsClient connectorsClient = ConnectorsClient.Create();
// Initialize request argument(s)
ListRuntimeEntitySchemasRequest request = new ListRuntimeEntitySchemasRequest
{
    ParentAsConnectionName = ConnectionName.FromProjectLocationConnection("[PROJECT]", "[LOCATION]", "[CONNECTION]"),
    Filter = "",
};
// Make the request
PagedEnumerable<ListRuntimeEntitySchemasResponse, RuntimeEntitySchema> response = connectorsClient.ListRuntimeEntitySchemas(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (RuntimeEntitySchema item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListRuntimeEntitySchemasResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (RuntimeEntitySchema item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<RuntimeEntitySchema> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (RuntimeEntitySchema item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListRuntimeEntitySchemas(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListRuntimeEntitySchemasResponse, RuntimeEntitySchema> ListRuntimeEntitySchemas(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

List schema of a runtime entities filtered by entity name.

Parameters
NameDescription
parentstring

Required. Parent resource of RuntimeEntitySchema Format: projects/{project}/locations/{location}/connections/{connection}

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListRuntimeEntitySchemasResponseRuntimeEntitySchema

A pageable sequence of RuntimeEntitySchema resources.

Example
// Create client
ConnectorsClient connectorsClient = ConnectorsClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/connections/[CONNECTION]";
// Make the request
PagedEnumerable<ListRuntimeEntitySchemasResponse, RuntimeEntitySchema> response = connectorsClient.ListRuntimeEntitySchemas(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (RuntimeEntitySchema item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListRuntimeEntitySchemasResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (RuntimeEntitySchema item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<RuntimeEntitySchema> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (RuntimeEntitySchema item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListRuntimeEntitySchemasAsync(ConnectionName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListRuntimeEntitySchemasResponse, RuntimeEntitySchema> ListRuntimeEntitySchemasAsync(ConnectionName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

List schema of a runtime entities filtered by entity name.

Parameters
NameDescription
parentConnectionName

Required. Parent resource of RuntimeEntitySchema Format: projects/{project}/locations/{location}/connections/{connection}

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListRuntimeEntitySchemasResponseRuntimeEntitySchema

A pageable asynchronous sequence of RuntimeEntitySchema resources.

Example
// Create client
ConnectorsClient connectorsClient = await ConnectorsClient.CreateAsync();
// Initialize request argument(s)
ConnectionName parent = ConnectionName.FromProjectLocationConnection("[PROJECT]", "[LOCATION]", "[CONNECTION]");
// Make the request
PagedAsyncEnumerable<ListRuntimeEntitySchemasResponse, RuntimeEntitySchema> response = connectorsClient.ListRuntimeEntitySchemasAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((RuntimeEntitySchema item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListRuntimeEntitySchemasResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (RuntimeEntitySchema item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<RuntimeEntitySchema> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (RuntimeEntitySchema item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListRuntimeEntitySchemasAsync(ListRuntimeEntitySchemasRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListRuntimeEntitySchemasResponse, RuntimeEntitySchema> ListRuntimeEntitySchemasAsync(ListRuntimeEntitySchemasRequest request, CallSettings callSettings = null)

List schema of a runtime entities filtered by entity name.

Parameters
NameDescription
requestListRuntimeEntitySchemasRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListRuntimeEntitySchemasResponseRuntimeEntitySchema

A pageable asynchronous sequence of RuntimeEntitySchema resources.

Example
// Create client
ConnectorsClient connectorsClient = await ConnectorsClient.CreateAsync();
// Initialize request argument(s)
ListRuntimeEntitySchemasRequest request = new ListRuntimeEntitySchemasRequest
{
    ParentAsConnectionName = ConnectionName.FromProjectLocationConnection("[PROJECT]", "[LOCATION]", "[CONNECTION]"),
    Filter = "",
};
// Make the request
PagedAsyncEnumerable<ListRuntimeEntitySchemasResponse, RuntimeEntitySchema> response = connectorsClient.ListRuntimeEntitySchemasAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((RuntimeEntitySchema item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListRuntimeEntitySchemasResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (RuntimeEntitySchema item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<RuntimeEntitySchema> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (RuntimeEntitySchema item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListRuntimeEntitySchemasAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListRuntimeEntitySchemasResponse, RuntimeEntitySchema> ListRuntimeEntitySchemasAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

List schema of a runtime entities filtered by entity name.

Parameters
NameDescription
parentstring

Required. Parent resource of RuntimeEntitySchema Format: projects/{project}/locations/{location}/connections/{connection}

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListRuntimeEntitySchemasResponseRuntimeEntitySchema

A pageable asynchronous sequence of RuntimeEntitySchema resources.

Example
// Create client
ConnectorsClient connectorsClient = await ConnectorsClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/connections/[CONNECTION]";
// Make the request
PagedAsyncEnumerable<ListRuntimeEntitySchemasResponse, RuntimeEntitySchema> response = connectorsClient.ListRuntimeEntitySchemasAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((RuntimeEntitySchema item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListRuntimeEntitySchemasResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (RuntimeEntitySchema item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<RuntimeEntitySchema> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (RuntimeEntitySchema item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

PollOnceCreateConnection(string, CallSettings)

public virtual Operation<Connection, OperationMetadata> PollOnceCreateConnection(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of CreateConnection.

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationConnectionOperationMetadata

The result of polling the operation.

PollOnceCreateConnectionAsync(string, CallSettings)

public virtual Task<Operation<Connection, OperationMetadata>> PollOnceCreateConnectionAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of CreateConnection.

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationConnectionOperationMetadata

A task representing the result of polling the operation.

PollOnceDeleteConnection(string, CallSettings)

public virtual Operation<Empty, OperationMetadata> PollOnceDeleteConnection(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of DeleteConnection.

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationEmptyOperationMetadata

The result of polling the operation.

PollOnceDeleteConnectionAsync(string, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> PollOnceDeleteConnectionAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of DeleteConnection.

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A task representing the result of polling the operation.

PollOnceRefreshConnectionSchemaMetadata(string, CallSettings)

public virtual Operation<ConnectionSchemaMetadata, OperationMetadata> PollOnceRefreshConnectionSchemaMetadata(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of RefreshConnectionSchemaMetadata.

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationConnectionSchemaMetadataOperationMetadata

The result of polling the operation.

PollOnceRefreshConnectionSchemaMetadataAsync(string, CallSettings)

public virtual Task<Operation<ConnectionSchemaMetadata, OperationMetadata>> PollOnceRefreshConnectionSchemaMetadataAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of RefreshConnectionSchemaMetadata.

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationConnectionSchemaMetadataOperationMetadata

A task representing the result of polling the operation.

PollOnceUpdateConnection(string, CallSettings)

public virtual Operation<Connection, OperationMetadata> PollOnceUpdateConnection(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of UpdateConnection.

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationConnectionOperationMetadata

The result of polling the operation.

PollOnceUpdateConnectionAsync(string, CallSettings)

public virtual Task<Operation<Connection, OperationMetadata>> PollOnceUpdateConnectionAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of UpdateConnection.

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationConnectionOperationMetadata

A task representing the result of polling the operation.

RefreshConnectionSchemaMetadata(ConnectionSchemaMetadataName, CallSettings)

public virtual Operation<ConnectionSchemaMetadata, OperationMetadata> RefreshConnectionSchemaMetadata(ConnectionSchemaMetadataName name, CallSettings callSettings = null)

Refresh runtime schema of a connection.

Parameters
NameDescription
nameConnectionSchemaMetadataName

Required. Resource name. Format: projects/{project}/locations/{location}/connections/{connection}/connectionSchemaMetadata

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationConnectionSchemaMetadataOperationMetadata

The RPC response.

Example
// Create client
ConnectorsClient connectorsClient = ConnectorsClient.Create();
// Initialize request argument(s)
ConnectionSchemaMetadataName name = ConnectionSchemaMetadataName.FromProjectLocationConnection("[PROJECT]", "[LOCATION]", "[CONNECTION]");
// Make the request
Operation<ConnectionSchemaMetadata, OperationMetadata> response = connectorsClient.RefreshConnectionSchemaMetadata(name);

// Poll until the returned long-running operation is complete
Operation<ConnectionSchemaMetadata, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
ConnectionSchemaMetadata result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ConnectionSchemaMetadata, OperationMetadata> retrievedResponse = connectorsClient.PollOnceRefreshConnectionSchemaMetadata(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ConnectionSchemaMetadata retrievedResult = retrievedResponse.Result;
}

RefreshConnectionSchemaMetadata(RefreshConnectionSchemaMetadataRequest, CallSettings)

public virtual Operation<ConnectionSchemaMetadata, OperationMetadata> RefreshConnectionSchemaMetadata(RefreshConnectionSchemaMetadataRequest request, CallSettings callSettings = null)

Refresh runtime schema of a connection.

Parameters
NameDescription
requestRefreshConnectionSchemaMetadataRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationConnectionSchemaMetadataOperationMetadata

The RPC response.

Example
// Create client
ConnectorsClient connectorsClient = ConnectorsClient.Create();
// Initialize request argument(s)
RefreshConnectionSchemaMetadataRequest request = new RefreshConnectionSchemaMetadataRequest
{
    ConnectionSchemaMetadataName = ConnectionSchemaMetadataName.FromProjectLocationConnection("[PROJECT]", "[LOCATION]", "[CONNECTION]"),
};
// Make the request
Operation<ConnectionSchemaMetadata, OperationMetadata> response = connectorsClient.RefreshConnectionSchemaMetadata(request);

// Poll until the returned long-running operation is complete
Operation<ConnectionSchemaMetadata, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
ConnectionSchemaMetadata result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ConnectionSchemaMetadata, OperationMetadata> retrievedResponse = connectorsClient.PollOnceRefreshConnectionSchemaMetadata(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ConnectionSchemaMetadata retrievedResult = retrievedResponse.Result;
}

RefreshConnectionSchemaMetadata(string, CallSettings)

public virtual Operation<ConnectionSchemaMetadata, OperationMetadata> RefreshConnectionSchemaMetadata(string name, CallSettings callSettings = null)

Refresh runtime schema of a connection.

Parameters
NameDescription
namestring

Required. Resource name. Format: projects/{project}/locations/{location}/connections/{connection}/connectionSchemaMetadata

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationConnectionSchemaMetadataOperationMetadata

The RPC response.

Example
// Create client
ConnectorsClient connectorsClient = ConnectorsClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/connections/[CONNECTION]/connectionSchemaMetadata";
// Make the request
Operation<ConnectionSchemaMetadata, OperationMetadata> response = connectorsClient.RefreshConnectionSchemaMetadata(name);

// Poll until the returned long-running operation is complete
Operation<ConnectionSchemaMetadata, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
ConnectionSchemaMetadata result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ConnectionSchemaMetadata, OperationMetadata> retrievedResponse = connectorsClient.PollOnceRefreshConnectionSchemaMetadata(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ConnectionSchemaMetadata retrievedResult = retrievedResponse.Result;
}

RefreshConnectionSchemaMetadataAsync(ConnectionSchemaMetadataName, CallSettings)

public virtual Task<Operation<ConnectionSchemaMetadata, OperationMetadata>> RefreshConnectionSchemaMetadataAsync(ConnectionSchemaMetadataName name, CallSettings callSettings = null)

Refresh runtime schema of a connection.

Parameters
NameDescription
nameConnectionSchemaMetadataName

Required. Resource name. Format: projects/{project}/locations/{location}/connections/{connection}/connectionSchemaMetadata

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationConnectionSchemaMetadataOperationMetadata

A Task containing the RPC response.

Example
// Create client
ConnectorsClient connectorsClient = await ConnectorsClient.CreateAsync();
// Initialize request argument(s)
ConnectionSchemaMetadataName name = ConnectionSchemaMetadataName.FromProjectLocationConnection("[PROJECT]", "[LOCATION]", "[CONNECTION]");
// Make the request
Operation<ConnectionSchemaMetadata, OperationMetadata> response = await connectorsClient.RefreshConnectionSchemaMetadataAsync(name);

// Poll until the returned long-running operation is complete
Operation<ConnectionSchemaMetadata, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ConnectionSchemaMetadata result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ConnectionSchemaMetadata, OperationMetadata> retrievedResponse = await connectorsClient.PollOnceRefreshConnectionSchemaMetadataAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ConnectionSchemaMetadata retrievedResult = retrievedResponse.Result;
}

RefreshConnectionSchemaMetadataAsync(ConnectionSchemaMetadataName, CancellationToken)

public virtual Task<Operation<ConnectionSchemaMetadata, OperationMetadata>> RefreshConnectionSchemaMetadataAsync(ConnectionSchemaMetadataName name, CancellationToken cancellationToken)

Refresh runtime schema of a connection.

Parameters
NameDescription
nameConnectionSchemaMetadataName

Required. Resource name. Format: projects/{project}/locations/{location}/connections/{connection}/connectionSchemaMetadata

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationConnectionSchemaMetadataOperationMetadata

A Task containing the RPC response.

Example
// Create client
ConnectorsClient connectorsClient = await ConnectorsClient.CreateAsync();
// Initialize request argument(s)
ConnectionSchemaMetadataName name = ConnectionSchemaMetadataName.FromProjectLocationConnection("[PROJECT]", "[LOCATION]", "[CONNECTION]");
// Make the request
Operation<ConnectionSchemaMetadata, OperationMetadata> response = await connectorsClient.RefreshConnectionSchemaMetadataAsync(name);

// Poll until the returned long-running operation is complete
Operation<ConnectionSchemaMetadata, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ConnectionSchemaMetadata result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ConnectionSchemaMetadata, OperationMetadata> retrievedResponse = await connectorsClient.PollOnceRefreshConnectionSchemaMetadataAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ConnectionSchemaMetadata retrievedResult = retrievedResponse.Result;
}

RefreshConnectionSchemaMetadataAsync(RefreshConnectionSchemaMetadataRequest, CallSettings)

public virtual Task<Operation<ConnectionSchemaMetadata, OperationMetadata>> RefreshConnectionSchemaMetadataAsync(RefreshConnectionSchemaMetadataRequest request, CallSettings callSettings = null)

Refresh runtime schema of a connection.

Parameters
NameDescription
requestRefreshConnectionSchemaMetadataRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationConnectionSchemaMetadataOperationMetadata

A Task containing the RPC response.

Example
// Create client
ConnectorsClient connectorsClient = await ConnectorsClient.CreateAsync();
// Initialize request argument(s)
RefreshConnectionSchemaMetadataRequest request = new RefreshConnectionSchemaMetadataRequest
{
    ConnectionSchemaMetadataName = ConnectionSchemaMetadataName.FromProjectLocationConnection("[PROJECT]", "[LOCATION]", "[CONNECTION]"),
};
// Make the request
Operation<ConnectionSchemaMetadata, OperationMetadata> response = await connectorsClient.RefreshConnectionSchemaMetadataAsync(request);

// Poll until the returned long-running operation is complete
Operation<ConnectionSchemaMetadata, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ConnectionSchemaMetadata result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ConnectionSchemaMetadata, OperationMetadata> retrievedResponse = await connectorsClient.PollOnceRefreshConnectionSchemaMetadataAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ConnectionSchemaMetadata retrievedResult = retrievedResponse.Result;
}

RefreshConnectionSchemaMetadataAsync(RefreshConnectionSchemaMetadataRequest, CancellationToken)

public virtual Task<Operation<ConnectionSchemaMetadata, OperationMetadata>> RefreshConnectionSchemaMetadataAsync(RefreshConnectionSchemaMetadataRequest request, CancellationToken cancellationToken)

Refresh runtime schema of a connection.

Parameters
NameDescription
requestRefreshConnectionSchemaMetadataRequest

The request object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationConnectionSchemaMetadataOperationMetadata

A Task containing the RPC response.

Example
// Create client
ConnectorsClient connectorsClient = await ConnectorsClient.CreateAsync();
// Initialize request argument(s)
RefreshConnectionSchemaMetadataRequest request = new RefreshConnectionSchemaMetadataRequest
{
    ConnectionSchemaMetadataName = ConnectionSchemaMetadataName.FromProjectLocationConnection("[PROJECT]", "[LOCATION]", "[CONNECTION]"),
};
// Make the request
Operation<ConnectionSchemaMetadata, OperationMetadata> response = await connectorsClient.RefreshConnectionSchemaMetadataAsync(request);

// Poll until the returned long-running operation is complete
Operation<ConnectionSchemaMetadata, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ConnectionSchemaMetadata result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ConnectionSchemaMetadata, OperationMetadata> retrievedResponse = await connectorsClient.PollOnceRefreshConnectionSchemaMetadataAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ConnectionSchemaMetadata retrievedResult = retrievedResponse.Result;
}

RefreshConnectionSchemaMetadataAsync(string, CallSettings)

public virtual Task<Operation<ConnectionSchemaMetadata, OperationMetadata>> RefreshConnectionSchemaMetadataAsync(string name, CallSettings callSettings = null)

Refresh runtime schema of a connection.

Parameters
NameDescription
namestring

Required. Resource name. Format: projects/{project}/locations/{location}/connections/{connection}/connectionSchemaMetadata

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationConnectionSchemaMetadataOperationMetadata

A Task containing the RPC response.

Example
// Create client
ConnectorsClient connectorsClient = await ConnectorsClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/connections/[CONNECTION]/connectionSchemaMetadata";
// Make the request
Operation<ConnectionSchemaMetadata, OperationMetadata> response = await connectorsClient.RefreshConnectionSchemaMetadataAsync(name);

// Poll until the returned long-running operation is complete
Operation<ConnectionSchemaMetadata, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ConnectionSchemaMetadata result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ConnectionSchemaMetadata, OperationMetadata> retrievedResponse = await connectorsClient.PollOnceRefreshConnectionSchemaMetadataAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ConnectionSchemaMetadata retrievedResult = retrievedResponse.Result;
}

RefreshConnectionSchemaMetadataAsync(string, CancellationToken)

public virtual Task<Operation<ConnectionSchemaMetadata, OperationMetadata>> RefreshConnectionSchemaMetadataAsync(string name, CancellationToken cancellationToken)

Refresh runtime schema of a connection.

Parameters
NameDescription
namestring

Required. Resource name. Format: projects/{project}/locations/{location}/connections/{connection}/connectionSchemaMetadata

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationConnectionSchemaMetadataOperationMetadata

A Task containing the RPC response.

Example
// Create client
ConnectorsClient connectorsClient = await ConnectorsClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/connections/[CONNECTION]/connectionSchemaMetadata";
// Make the request
Operation<ConnectionSchemaMetadata, OperationMetadata> response = await connectorsClient.RefreshConnectionSchemaMetadataAsync(name);

// Poll until the returned long-running operation is complete
Operation<ConnectionSchemaMetadata, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ConnectionSchemaMetadata result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ConnectionSchemaMetadata, OperationMetadata> retrievedResponse = await connectorsClient.PollOnceRefreshConnectionSchemaMetadataAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ConnectionSchemaMetadata retrievedResult = retrievedResponse.Result;
}

ShutdownDefaultChannelsAsync()

public static Task ShutdownDefaultChannelsAsync()

Shuts down any channels automatically created by Create() and CreateAsync(CancellationToken). Channels which weren't automatically created are not affected.

Returns
TypeDescription
Task

A task representing the asynchronous shutdown operation.

Remarks

After calling this method, further calls to Create() and CreateAsync(CancellationToken) will create new channels, which could in turn be shut down by another call to this method.

UpdateConnection(Connection, FieldMask, CallSettings)

public virtual Operation<Connection, OperationMetadata> UpdateConnection(Connection connection, FieldMask updateMask, CallSettings callSettings = null)

Updates the parameters of a single Connection.

Parameters
NameDescription
connectionConnection

Required. Connection resource.

updateMaskFieldMask

Required. You can modify only the fields listed below.

To lock/unlock a connection:

  • lock_config

To suspend/resume a connection:

  • suspended

To update the connection details:

  • description
  • labels
  • connector_version
  • config_variables
  • auth_config
  • destination_configs
  • node_config
callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationConnectionOperationMetadata

The RPC response.

Example
// Create client
ConnectorsClient connectorsClient = ConnectorsClient.Create();
// Initialize request argument(s)
Connection connection = new Connection();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Connection, OperationMetadata> response = connectorsClient.UpdateConnection(connection, updateMask);

// Poll until the returned long-running operation is complete
Operation<Connection, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Connection result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Connection, OperationMetadata> retrievedResponse = connectorsClient.PollOnceUpdateConnection(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Connection retrievedResult = retrievedResponse.Result;
}

UpdateConnection(UpdateConnectionRequest, CallSettings)

public virtual Operation<Connection, OperationMetadata> UpdateConnection(UpdateConnectionRequest request, CallSettings callSettings = null)

Updates the parameters of a single Connection.

Parameters
NameDescription
requestUpdateConnectionRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationConnectionOperationMetadata

The RPC response.

Example
// Create client
ConnectorsClient connectorsClient = ConnectorsClient.Create();
// Initialize request argument(s)
UpdateConnectionRequest request = new UpdateConnectionRequest
{
    Connection = new Connection(),
    UpdateMask = new FieldMask(),
};
// Make the request
Operation<Connection, OperationMetadata> response = connectorsClient.UpdateConnection(request);

// Poll until the returned long-running operation is complete
Operation<Connection, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Connection result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Connection, OperationMetadata> retrievedResponse = connectorsClient.PollOnceUpdateConnection(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Connection retrievedResult = retrievedResponse.Result;
}

UpdateConnectionAsync(Connection, FieldMask, CallSettings)

public virtual Task<Operation<Connection, OperationMetadata>> UpdateConnectionAsync(Connection connection, FieldMask updateMask, CallSettings callSettings = null)

Updates the parameters of a single Connection.

Parameters
NameDescription
connectionConnection

Required. Connection resource.

updateMaskFieldMask

Required. You can modify only the fields listed below.

To lock/unlock a connection:

  • lock_config

To suspend/resume a connection:

  • suspended

To update the connection details:

  • description
  • labels
  • connector_version
  • config_variables
  • auth_config
  • destination_configs
  • node_config
callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationConnectionOperationMetadata

A Task containing the RPC response.

Example
// Create client
ConnectorsClient connectorsClient = await ConnectorsClient.CreateAsync();
// Initialize request argument(s)
Connection connection = new Connection();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Connection, OperationMetadata> response = await connectorsClient.UpdateConnectionAsync(connection, updateMask);

// Poll until the returned long-running operation is complete
Operation<Connection, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Connection result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Connection, OperationMetadata> retrievedResponse = await connectorsClient.PollOnceUpdateConnectionAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Connection retrievedResult = retrievedResponse.Result;
}

UpdateConnectionAsync(Connection, FieldMask, CancellationToken)

public virtual Task<Operation<Connection, OperationMetadata>> UpdateConnectionAsync(Connection connection, FieldMask updateMask, CancellationToken cancellationToken)

Updates the parameters of a single Connection.

Parameters
NameDescription
connectionConnection

Required. Connection resource.

updateMaskFieldMask

Required. You can modify only the fields listed below.

To lock/unlock a connection:

  • lock_config

To suspend/resume a connection:

  • suspended

To update the connection details:

  • description
  • labels
  • connector_version
  • config_variables
  • auth_config
  • destination_configs
  • node_config
cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationConnectionOperationMetadata

A Task containing the RPC response.

Example
// Create client
ConnectorsClient connectorsClient = await ConnectorsClient.CreateAsync();
// Initialize request argument(s)
Connection connection = new Connection();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Connection, OperationMetadata> response = await connectorsClient.UpdateConnectionAsync(connection, updateMask);

// Poll until the returned long-running operation is complete
Operation<Connection, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Connection result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Connection, OperationMetadata> retrievedResponse = await connectorsClient.PollOnceUpdateConnectionAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Connection retrievedResult = retrievedResponse.Result;
}

UpdateConnectionAsync(UpdateConnectionRequest, CallSettings)

public virtual Task<Operation<Connection, OperationMetadata>> UpdateConnectionAsync(UpdateConnectionRequest request, CallSettings callSettings = null)

Updates the parameters of a single Connection.

Parameters
NameDescription
requestUpdateConnectionRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationConnectionOperationMetadata

A Task containing the RPC response.

Example
// Create client
ConnectorsClient connectorsClient = await ConnectorsClient.CreateAsync();
// Initialize request argument(s)
UpdateConnectionRequest request = new UpdateConnectionRequest
{
    Connection = new Connection(),
    UpdateMask = new FieldMask(),
};
// Make the request
Operation<Connection, OperationMetadata> response = await connectorsClient.UpdateConnectionAsync(request);

// Poll until the returned long-running operation is complete
Operation<Connection, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Connection result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Connection, OperationMetadata> retrievedResponse = await connectorsClient.PollOnceUpdateConnectionAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Connection retrievedResult = retrievedResponse.Result;
}

UpdateConnectionAsync(UpdateConnectionRequest, CancellationToken)

public virtual Task<Operation<Connection, OperationMetadata>> UpdateConnectionAsync(UpdateConnectionRequest request, CancellationToken cancellationToken)

Updates the parameters of a single Connection.

Parameters
NameDescription
requestUpdateConnectionRequest

The request object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationConnectionOperationMetadata

A Task containing the RPC response.

Example
// Create client
ConnectorsClient connectorsClient = await ConnectorsClient.CreateAsync();
// Initialize request argument(s)
UpdateConnectionRequest request = new UpdateConnectionRequest
{
    Connection = new Connection(),
    UpdateMask = new FieldMask(),
};
// Make the request
Operation<Connection, OperationMetadata> response = await connectorsClient.UpdateConnectionAsync(request);

// Poll until the returned long-running operation is complete
Operation<Connection, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Connection result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Connection, OperationMetadata> retrievedResponse = await connectorsClient.PollOnceUpdateConnectionAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Connection retrievedResult = retrievedResponse.Result;
}