BeyondCorp Client Connector Services v1 API - Class ClientConnectorServicesServiceClient (1.1.0)

public abstract class ClientConnectorServicesServiceClient

Reference documentation and code samples for the BeyondCorp Client Connector Services v1 API class ClientConnectorServicesServiceClient.

ClientConnectorServicesService client wrapper, for convenient use.

Inheritance

object > ClientConnectorServicesServiceClient

Namespace

Google.Cloud.BeyondCorp.ClientConnectorServices.V1

Assembly

Google.Cloud.BeyondCorp.ClientConnectorServices.V1.dll

Remarks

API Overview:

The beyondcorp.googleapis.com service implements the Google Cloud BeyondCorp API.

Data Model:

The ClientConnectorServicesService exposes the following resources:

  • Client Connector Services, named as follows: projects/{project_id}/locations/{location_id}/client_connector_services/{client_connector_service_id}.

Properties

CreateClientConnectorServiceOperationsClient

public virtual OperationsClient CreateClientConnectorServiceOperationsClient { get; }

The long-running operations client for CreateClientConnectorService.

Property Value
TypeDescription
OperationsClient

DefaultEndpoint

public static string DefaultEndpoint { get; }

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

Property Value
TypeDescription
string

DefaultScopes

public static IReadOnlyList<string> DefaultScopes { get; }

The default ClientConnectorServicesService scopes.

Property Value
TypeDescription
IReadOnlyListstring
Remarks

The default ClientConnectorServicesService scopes are:

DeleteClientConnectorServiceOperationsClient

public virtual OperationsClient DeleteClientConnectorServiceOperationsClient { get; }

The long-running operations client for DeleteClientConnectorService.

Property Value
TypeDescription
OperationsClient

GrpcClient

public virtual ClientConnectorServicesService.ClientConnectorServicesServiceClient GrpcClient { get; }

The underlying gRPC ClientConnectorServicesService client

Property Value
TypeDescription
ClientConnectorServicesServiceClientConnectorServicesServiceClient

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

ServiceMetadata

public static ServiceMetadata ServiceMetadata { get; }

The service metadata associated with this client type.

Property Value
TypeDescription
ServiceMetadata

UpdateClientConnectorServiceOperationsClient

public virtual OperationsClient UpdateClientConnectorServiceOperationsClient { get; }

The long-running operations client for UpdateClientConnectorService.

Property Value
TypeDescription
OperationsClient

Methods

Create()

public static ClientConnectorServicesServiceClient Create()

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

Returns
TypeDescription
ClientConnectorServicesServiceClient

The created ClientConnectorServicesServiceClient.

CreateAsync(CancellationToken)

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

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

Parameter
NameDescription
cancellationTokenCancellationToken

The CancellationToken to use while creating the client.

Returns
TypeDescription
TaskClientConnectorServicesServiceClient

The task representing the created ClientConnectorServicesServiceClient.

CreateClientConnectorService(LocationName, ClientConnectorService, string, CallSettings)

public virtual Operation<ClientConnectorService, ClientConnectorServiceOperationMetadata> CreateClientConnectorService(LocationName parent, ClientConnectorService clientConnectorService, string clientConnectorServiceId, CallSettings callSettings = null)

Creates a new ClientConnectorService in a given project and location.

Parameters
NameDescription
parentLocationName

Required. Value for parent.

clientConnectorServiceClientConnectorService

Required. The resource being created.

clientConnectorServiceIdstring

Optional. User-settable client connector service resource ID.

  • Must start with a letter.
  • Must contain between 4-63 characters from /[a-z][0-9]-/.
  • Must end with a number or a letter.

A random system generated name will be assigned if not specified by the user.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationClientConnectorServiceClientConnectorServiceOperationMetadata

The RPC response.

Example
// Create client
ClientConnectorServicesServiceClient clientConnectorServicesServiceClient = ClientConnectorServicesServiceClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
ClientConnectorService clientConnectorService = new ClientConnectorService();
string clientConnectorServiceId = "";
// Make the request
Operation<ClientConnectorService, ClientConnectorServiceOperationMetadata> response = clientConnectorServicesServiceClient.CreateClientConnectorService(parent, clientConnectorService, clientConnectorServiceId);

// Poll until the returned long-running operation is complete
Operation<ClientConnectorService, ClientConnectorServiceOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
ClientConnectorService 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<ClientConnectorService, ClientConnectorServiceOperationMetadata> retrievedResponse = clientConnectorServicesServiceClient.PollOnceCreateClientConnectorService(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ClientConnectorService retrievedResult = retrievedResponse.Result;
}

CreateClientConnectorService(CreateClientConnectorServiceRequest, CallSettings)

public virtual Operation<ClientConnectorService, ClientConnectorServiceOperationMetadata> CreateClientConnectorService(CreateClientConnectorServiceRequest request, CallSettings callSettings = null)

Creates a new ClientConnectorService in a given project and location.

Parameters
NameDescription
requestCreateClientConnectorServiceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationClientConnectorServiceClientConnectorServiceOperationMetadata

The RPC response.

Example
// Create client
ClientConnectorServicesServiceClient clientConnectorServicesServiceClient = ClientConnectorServicesServiceClient.Create();
// Initialize request argument(s)
CreateClientConnectorServiceRequest request = new CreateClientConnectorServiceRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    ClientConnectorServiceId = "",
    ClientConnectorService = new ClientConnectorService(),
    RequestId = "",
    ValidateOnly = false,
};
// Make the request
Operation<ClientConnectorService, ClientConnectorServiceOperationMetadata> response = clientConnectorServicesServiceClient.CreateClientConnectorService(request);

// Poll until the returned long-running operation is complete
Operation<ClientConnectorService, ClientConnectorServiceOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
ClientConnectorService 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<ClientConnectorService, ClientConnectorServiceOperationMetadata> retrievedResponse = clientConnectorServicesServiceClient.PollOnceCreateClientConnectorService(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ClientConnectorService retrievedResult = retrievedResponse.Result;
}

CreateClientConnectorService(string, ClientConnectorService, string, CallSettings)

public virtual Operation<ClientConnectorService, ClientConnectorServiceOperationMetadata> CreateClientConnectorService(string parent, ClientConnectorService clientConnectorService, string clientConnectorServiceId, CallSettings callSettings = null)

Creates a new ClientConnectorService in a given project and location.

Parameters
NameDescription
parentstring

Required. Value for parent.

clientConnectorServiceClientConnectorService

Required. The resource being created.

clientConnectorServiceIdstring

Optional. User-settable client connector service resource ID.

  • Must start with a letter.
  • Must contain between 4-63 characters from /[a-z][0-9]-/.
  • Must end with a number or a letter.

A random system generated name will be assigned if not specified by the user.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationClientConnectorServiceClientConnectorServiceOperationMetadata

The RPC response.

Example
// Create client
ClientConnectorServicesServiceClient clientConnectorServicesServiceClient = ClientConnectorServicesServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
ClientConnectorService clientConnectorService = new ClientConnectorService();
string clientConnectorServiceId = "";
// Make the request
Operation<ClientConnectorService, ClientConnectorServiceOperationMetadata> response = clientConnectorServicesServiceClient.CreateClientConnectorService(parent, clientConnectorService, clientConnectorServiceId);

// Poll until the returned long-running operation is complete
Operation<ClientConnectorService, ClientConnectorServiceOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
ClientConnectorService 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<ClientConnectorService, ClientConnectorServiceOperationMetadata> retrievedResponse = clientConnectorServicesServiceClient.PollOnceCreateClientConnectorService(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ClientConnectorService retrievedResult = retrievedResponse.Result;
}

CreateClientConnectorServiceAsync(LocationName, ClientConnectorService, string, CallSettings)

public virtual Task<Operation<ClientConnectorService, ClientConnectorServiceOperationMetadata>> CreateClientConnectorServiceAsync(LocationName parent, ClientConnectorService clientConnectorService, string clientConnectorServiceId, CallSettings callSettings = null)

Creates a new ClientConnectorService in a given project and location.

Parameters
NameDescription
parentLocationName

Required. Value for parent.

clientConnectorServiceClientConnectorService

Required. The resource being created.

clientConnectorServiceIdstring

Optional. User-settable client connector service resource ID.

  • Must start with a letter.
  • Must contain between 4-63 characters from /[a-z][0-9]-/.
  • Must end with a number or a letter.

A random system generated name will be assigned if not specified by the user.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationClientConnectorServiceClientConnectorServiceOperationMetadata

A Task containing the RPC response.

Example
// Create client
ClientConnectorServicesServiceClient clientConnectorServicesServiceClient = await ClientConnectorServicesServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
ClientConnectorService clientConnectorService = new ClientConnectorService();
string clientConnectorServiceId = "";
// Make the request
Operation<ClientConnectorService, ClientConnectorServiceOperationMetadata> response = await clientConnectorServicesServiceClient.CreateClientConnectorServiceAsync(parent, clientConnectorService, clientConnectorServiceId);

// Poll until the returned long-running operation is complete
Operation<ClientConnectorService, ClientConnectorServiceOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ClientConnectorService 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<ClientConnectorService, ClientConnectorServiceOperationMetadata> retrievedResponse = await clientConnectorServicesServiceClient.PollOnceCreateClientConnectorServiceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ClientConnectorService retrievedResult = retrievedResponse.Result;
}

CreateClientConnectorServiceAsync(LocationName, ClientConnectorService, string, CancellationToken)

public virtual Task<Operation<ClientConnectorService, ClientConnectorServiceOperationMetadata>> CreateClientConnectorServiceAsync(LocationName parent, ClientConnectorService clientConnectorService, string clientConnectorServiceId, CancellationToken cancellationToken)

Creates a new ClientConnectorService in a given project and location.

Parameters
NameDescription
parentLocationName

Required. Value for parent.

clientConnectorServiceClientConnectorService

Required. The resource being created.

clientConnectorServiceIdstring

Optional. User-settable client connector service resource ID.

  • Must start with a letter.
  • Must contain between 4-63 characters from /[a-z][0-9]-/.
  • Must end with a number or a letter.

A random system generated name will be assigned if not specified by the user.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationClientConnectorServiceClientConnectorServiceOperationMetadata

A Task containing the RPC response.

Example
// Create client
ClientConnectorServicesServiceClient clientConnectorServicesServiceClient = await ClientConnectorServicesServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
ClientConnectorService clientConnectorService = new ClientConnectorService();
string clientConnectorServiceId = "";
// Make the request
Operation<ClientConnectorService, ClientConnectorServiceOperationMetadata> response = await clientConnectorServicesServiceClient.CreateClientConnectorServiceAsync(parent, clientConnectorService, clientConnectorServiceId);

// Poll until the returned long-running operation is complete
Operation<ClientConnectorService, ClientConnectorServiceOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ClientConnectorService 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<ClientConnectorService, ClientConnectorServiceOperationMetadata> retrievedResponse = await clientConnectorServicesServiceClient.PollOnceCreateClientConnectorServiceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ClientConnectorService retrievedResult = retrievedResponse.Result;
}

CreateClientConnectorServiceAsync(CreateClientConnectorServiceRequest, CallSettings)

public virtual Task<Operation<ClientConnectorService, ClientConnectorServiceOperationMetadata>> CreateClientConnectorServiceAsync(CreateClientConnectorServiceRequest request, CallSettings callSettings = null)

Creates a new ClientConnectorService in a given project and location.

Parameters
NameDescription
requestCreateClientConnectorServiceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationClientConnectorServiceClientConnectorServiceOperationMetadata

A Task containing the RPC response.

Example
// Create client
ClientConnectorServicesServiceClient clientConnectorServicesServiceClient = await ClientConnectorServicesServiceClient.CreateAsync();
// Initialize request argument(s)
CreateClientConnectorServiceRequest request = new CreateClientConnectorServiceRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    ClientConnectorServiceId = "",
    ClientConnectorService = new ClientConnectorService(),
    RequestId = "",
    ValidateOnly = false,
};
// Make the request
Operation<ClientConnectorService, ClientConnectorServiceOperationMetadata> response = await clientConnectorServicesServiceClient.CreateClientConnectorServiceAsync(request);

// Poll until the returned long-running operation is complete
Operation<ClientConnectorService, ClientConnectorServiceOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ClientConnectorService 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<ClientConnectorService, ClientConnectorServiceOperationMetadata> retrievedResponse = await clientConnectorServicesServiceClient.PollOnceCreateClientConnectorServiceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ClientConnectorService retrievedResult = retrievedResponse.Result;
}

CreateClientConnectorServiceAsync(CreateClientConnectorServiceRequest, CancellationToken)

public virtual Task<Operation<ClientConnectorService, ClientConnectorServiceOperationMetadata>> CreateClientConnectorServiceAsync(CreateClientConnectorServiceRequest request, CancellationToken cancellationToken)

Creates a new ClientConnectorService in a given project and location.

Parameters
NameDescription
requestCreateClientConnectorServiceRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationClientConnectorServiceClientConnectorServiceOperationMetadata

A Task containing the RPC response.

Example
// Create client
ClientConnectorServicesServiceClient clientConnectorServicesServiceClient = await ClientConnectorServicesServiceClient.CreateAsync();
// Initialize request argument(s)
CreateClientConnectorServiceRequest request = new CreateClientConnectorServiceRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    ClientConnectorServiceId = "",
    ClientConnectorService = new ClientConnectorService(),
    RequestId = "",
    ValidateOnly = false,
};
// Make the request
Operation<ClientConnectorService, ClientConnectorServiceOperationMetadata> response = await clientConnectorServicesServiceClient.CreateClientConnectorServiceAsync(request);

// Poll until the returned long-running operation is complete
Operation<ClientConnectorService, ClientConnectorServiceOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ClientConnectorService 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<ClientConnectorService, ClientConnectorServiceOperationMetadata> retrievedResponse = await clientConnectorServicesServiceClient.PollOnceCreateClientConnectorServiceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ClientConnectorService retrievedResult = retrievedResponse.Result;
}

CreateClientConnectorServiceAsync(string, ClientConnectorService, string, CallSettings)

public virtual Task<Operation<ClientConnectorService, ClientConnectorServiceOperationMetadata>> CreateClientConnectorServiceAsync(string parent, ClientConnectorService clientConnectorService, string clientConnectorServiceId, CallSettings callSettings = null)

Creates a new ClientConnectorService in a given project and location.

Parameters
NameDescription
parentstring

Required. Value for parent.

clientConnectorServiceClientConnectorService

Required. The resource being created.

clientConnectorServiceIdstring

Optional. User-settable client connector service resource ID.

  • Must start with a letter.
  • Must contain between 4-63 characters from /[a-z][0-9]-/.
  • Must end with a number or a letter.

A random system generated name will be assigned if not specified by the user.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationClientConnectorServiceClientConnectorServiceOperationMetadata

A Task containing the RPC response.

Example
// Create client
ClientConnectorServicesServiceClient clientConnectorServicesServiceClient = await ClientConnectorServicesServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
ClientConnectorService clientConnectorService = new ClientConnectorService();
string clientConnectorServiceId = "";
// Make the request
Operation<ClientConnectorService, ClientConnectorServiceOperationMetadata> response = await clientConnectorServicesServiceClient.CreateClientConnectorServiceAsync(parent, clientConnectorService, clientConnectorServiceId);

// Poll until the returned long-running operation is complete
Operation<ClientConnectorService, ClientConnectorServiceOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ClientConnectorService 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<ClientConnectorService, ClientConnectorServiceOperationMetadata> retrievedResponse = await clientConnectorServicesServiceClient.PollOnceCreateClientConnectorServiceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ClientConnectorService retrievedResult = retrievedResponse.Result;
}

CreateClientConnectorServiceAsync(string, ClientConnectorService, string, CancellationToken)

public virtual Task<Operation<ClientConnectorService, ClientConnectorServiceOperationMetadata>> CreateClientConnectorServiceAsync(string parent, ClientConnectorService clientConnectorService, string clientConnectorServiceId, CancellationToken cancellationToken)

Creates a new ClientConnectorService in a given project and location.

Parameters
NameDescription
parentstring

Required. Value for parent.

clientConnectorServiceClientConnectorService

Required. The resource being created.

clientConnectorServiceIdstring

Optional. User-settable client connector service resource ID.

  • Must start with a letter.
  • Must contain between 4-63 characters from /[a-z][0-9]-/.
  • Must end with a number or a letter.

A random system generated name will be assigned if not specified by the user.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationClientConnectorServiceClientConnectorServiceOperationMetadata

A Task containing the RPC response.

Example
// Create client
ClientConnectorServicesServiceClient clientConnectorServicesServiceClient = await ClientConnectorServicesServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
ClientConnectorService clientConnectorService = new ClientConnectorService();
string clientConnectorServiceId = "";
// Make the request
Operation<ClientConnectorService, ClientConnectorServiceOperationMetadata> response = await clientConnectorServicesServiceClient.CreateClientConnectorServiceAsync(parent, clientConnectorService, clientConnectorServiceId);

// Poll until the returned long-running operation is complete
Operation<ClientConnectorService, ClientConnectorServiceOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ClientConnectorService 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<ClientConnectorService, ClientConnectorServiceOperationMetadata> retrievedResponse = await clientConnectorServicesServiceClient.PollOnceCreateClientConnectorServiceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ClientConnectorService retrievedResult = retrievedResponse.Result;
}

DeleteClientConnectorService(ClientConnectorServiceName, CallSettings)

public virtual Operation<Empty, ClientConnectorServiceOperationMetadata> DeleteClientConnectorService(ClientConnectorServiceName name, CallSettings callSettings = null)

Deletes a single ClientConnectorService.

Parameters
NameDescription
nameClientConnectorServiceName

Required. Name of the resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationEmptyClientConnectorServiceOperationMetadata

The RPC response.

Example
// Create client
ClientConnectorServicesServiceClient clientConnectorServicesServiceClient = ClientConnectorServicesServiceClient.Create();
// Initialize request argument(s)
ClientConnectorServiceName name = ClientConnectorServiceName.FromProjectLocationClientConnectorService("[PROJECT]", "[LOCATION]", "[CLIENT_CONNECTOR_SERVICE]");
// Make the request
Operation<Empty, ClientConnectorServiceOperationMetadata> response = clientConnectorServicesServiceClient.DeleteClientConnectorService(name);

// Poll until the returned long-running operation is complete
Operation<Empty, ClientConnectorServiceOperationMetadata> 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, ClientConnectorServiceOperationMetadata> retrievedResponse = clientConnectorServicesServiceClient.PollOnceDeleteClientConnectorService(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;
}

DeleteClientConnectorService(DeleteClientConnectorServiceRequest, CallSettings)

public virtual Operation<Empty, ClientConnectorServiceOperationMetadata> DeleteClientConnectorService(DeleteClientConnectorServiceRequest request, CallSettings callSettings = null)

Deletes a single ClientConnectorService.

Parameters
NameDescription
requestDeleteClientConnectorServiceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationEmptyClientConnectorServiceOperationMetadata

The RPC response.

Example
// Create client
ClientConnectorServicesServiceClient clientConnectorServicesServiceClient = ClientConnectorServicesServiceClient.Create();
// Initialize request argument(s)
DeleteClientConnectorServiceRequest request = new DeleteClientConnectorServiceRequest
{
    ClientConnectorServiceName = ClientConnectorServiceName.FromProjectLocationClientConnectorService("[PROJECT]", "[LOCATION]", "[CLIENT_CONNECTOR_SERVICE]"),
    RequestId = "",
    ValidateOnly = false,
};
// Make the request
Operation<Empty, ClientConnectorServiceOperationMetadata> response = clientConnectorServicesServiceClient.DeleteClientConnectorService(request);

// Poll until the returned long-running operation is complete
Operation<Empty, ClientConnectorServiceOperationMetadata> 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, ClientConnectorServiceOperationMetadata> retrievedResponse = clientConnectorServicesServiceClient.PollOnceDeleteClientConnectorService(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;
}

DeleteClientConnectorService(string, CallSettings)

public virtual Operation<Empty, ClientConnectorServiceOperationMetadata> DeleteClientConnectorService(string name, CallSettings callSettings = null)

Deletes a single ClientConnectorService.

Parameters
NameDescription
namestring

Required. Name of the resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationEmptyClientConnectorServiceOperationMetadata

The RPC response.

Example
// Create client
ClientConnectorServicesServiceClient clientConnectorServicesServiceClient = ClientConnectorServicesServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/clientConnectorServices/[CLIENT_CONNECTOR_SERVICE]";
// Make the request
Operation<Empty, ClientConnectorServiceOperationMetadata> response = clientConnectorServicesServiceClient.DeleteClientConnectorService(name);

// Poll until the returned long-running operation is complete
Operation<Empty, ClientConnectorServiceOperationMetadata> 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, ClientConnectorServiceOperationMetadata> retrievedResponse = clientConnectorServicesServiceClient.PollOnceDeleteClientConnectorService(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;
}

DeleteClientConnectorServiceAsync(ClientConnectorServiceName, CallSettings)

public virtual Task<Operation<Empty, ClientConnectorServiceOperationMetadata>> DeleteClientConnectorServiceAsync(ClientConnectorServiceName name, CallSettings callSettings = null)

Deletes a single ClientConnectorService.

Parameters
NameDescription
nameClientConnectorServiceName

Required. Name of the resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationEmptyClientConnectorServiceOperationMetadata

A Task containing the RPC response.

Example
// Create client
ClientConnectorServicesServiceClient clientConnectorServicesServiceClient = await ClientConnectorServicesServiceClient.CreateAsync();
// Initialize request argument(s)
ClientConnectorServiceName name = ClientConnectorServiceName.FromProjectLocationClientConnectorService("[PROJECT]", "[LOCATION]", "[CLIENT_CONNECTOR_SERVICE]");
// Make the request
Operation<Empty, ClientConnectorServiceOperationMetadata> response = await clientConnectorServicesServiceClient.DeleteClientConnectorServiceAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, ClientConnectorServiceOperationMetadata> 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, ClientConnectorServiceOperationMetadata> retrievedResponse = await clientConnectorServicesServiceClient.PollOnceDeleteClientConnectorServiceAsync(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;
}

DeleteClientConnectorServiceAsync(ClientConnectorServiceName, CancellationToken)

public virtual Task<Operation<Empty, ClientConnectorServiceOperationMetadata>> DeleteClientConnectorServiceAsync(ClientConnectorServiceName name, CancellationToken cancellationToken)

Deletes a single ClientConnectorService.

Parameters
NameDescription
nameClientConnectorServiceName

Required. Name of the resource.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationEmptyClientConnectorServiceOperationMetadata

A Task containing the RPC response.

Example
// Create client
ClientConnectorServicesServiceClient clientConnectorServicesServiceClient = await ClientConnectorServicesServiceClient.CreateAsync();
// Initialize request argument(s)
ClientConnectorServiceName name = ClientConnectorServiceName.FromProjectLocationClientConnectorService("[PROJECT]", "[LOCATION]", "[CLIENT_CONNECTOR_SERVICE]");
// Make the request
Operation<Empty, ClientConnectorServiceOperationMetadata> response = await clientConnectorServicesServiceClient.DeleteClientConnectorServiceAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, ClientConnectorServiceOperationMetadata> 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, ClientConnectorServiceOperationMetadata> retrievedResponse = await clientConnectorServicesServiceClient.PollOnceDeleteClientConnectorServiceAsync(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;
}

DeleteClientConnectorServiceAsync(DeleteClientConnectorServiceRequest, CallSettings)

public virtual Task<Operation<Empty, ClientConnectorServiceOperationMetadata>> DeleteClientConnectorServiceAsync(DeleteClientConnectorServiceRequest request, CallSettings callSettings = null)

Deletes a single ClientConnectorService.

Parameters
NameDescription
requestDeleteClientConnectorServiceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationEmptyClientConnectorServiceOperationMetadata

A Task containing the RPC response.

Example
// Create client
ClientConnectorServicesServiceClient clientConnectorServicesServiceClient = await ClientConnectorServicesServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteClientConnectorServiceRequest request = new DeleteClientConnectorServiceRequest
{
    ClientConnectorServiceName = ClientConnectorServiceName.FromProjectLocationClientConnectorService("[PROJECT]", "[LOCATION]", "[CLIENT_CONNECTOR_SERVICE]"),
    RequestId = "",
    ValidateOnly = false,
};
// Make the request
Operation<Empty, ClientConnectorServiceOperationMetadata> response = await clientConnectorServicesServiceClient.DeleteClientConnectorServiceAsync(request);

// Poll until the returned long-running operation is complete
Operation<Empty, ClientConnectorServiceOperationMetadata> 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, ClientConnectorServiceOperationMetadata> retrievedResponse = await clientConnectorServicesServiceClient.PollOnceDeleteClientConnectorServiceAsync(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;
}

DeleteClientConnectorServiceAsync(DeleteClientConnectorServiceRequest, CancellationToken)

public virtual Task<Operation<Empty, ClientConnectorServiceOperationMetadata>> DeleteClientConnectorServiceAsync(DeleteClientConnectorServiceRequest request, CancellationToken cancellationToken)

Deletes a single ClientConnectorService.

Parameters
NameDescription
requestDeleteClientConnectorServiceRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationEmptyClientConnectorServiceOperationMetadata

A Task containing the RPC response.

Example
// Create client
ClientConnectorServicesServiceClient clientConnectorServicesServiceClient = await ClientConnectorServicesServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteClientConnectorServiceRequest request = new DeleteClientConnectorServiceRequest
{
    ClientConnectorServiceName = ClientConnectorServiceName.FromProjectLocationClientConnectorService("[PROJECT]", "[LOCATION]", "[CLIENT_CONNECTOR_SERVICE]"),
    RequestId = "",
    ValidateOnly = false,
};
// Make the request
Operation<Empty, ClientConnectorServiceOperationMetadata> response = await clientConnectorServicesServiceClient.DeleteClientConnectorServiceAsync(request);

// Poll until the returned long-running operation is complete
Operation<Empty, ClientConnectorServiceOperationMetadata> 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, ClientConnectorServiceOperationMetadata> retrievedResponse = await clientConnectorServicesServiceClient.PollOnceDeleteClientConnectorServiceAsync(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;
}

DeleteClientConnectorServiceAsync(string, CallSettings)

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

Deletes a single ClientConnectorService.

Parameters
NameDescription
namestring

Required. Name of the resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationEmptyClientConnectorServiceOperationMetadata

A Task containing the RPC response.

Example
// Create client
ClientConnectorServicesServiceClient clientConnectorServicesServiceClient = await ClientConnectorServicesServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/clientConnectorServices/[CLIENT_CONNECTOR_SERVICE]";
// Make the request
Operation<Empty, ClientConnectorServiceOperationMetadata> response = await clientConnectorServicesServiceClient.DeleteClientConnectorServiceAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, ClientConnectorServiceOperationMetadata> 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, ClientConnectorServiceOperationMetadata> retrievedResponse = await clientConnectorServicesServiceClient.PollOnceDeleteClientConnectorServiceAsync(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;
}

DeleteClientConnectorServiceAsync(string, CancellationToken)

public virtual Task<Operation<Empty, ClientConnectorServiceOperationMetadata>> DeleteClientConnectorServiceAsync(string name, CancellationToken cancellationToken)

Deletes a single ClientConnectorService.

Parameters
NameDescription
namestring

Required. Name of the resource.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationEmptyClientConnectorServiceOperationMetadata

A Task containing the RPC response.

Example
// Create client
ClientConnectorServicesServiceClient clientConnectorServicesServiceClient = await ClientConnectorServicesServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/clientConnectorServices/[CLIENT_CONNECTOR_SERVICE]";
// Make the request
Operation<Empty, ClientConnectorServiceOperationMetadata> response = await clientConnectorServicesServiceClient.DeleteClientConnectorServiceAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, ClientConnectorServiceOperationMetadata> 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, ClientConnectorServiceOperationMetadata> retrievedResponse = await clientConnectorServicesServiceClient.PollOnceDeleteClientConnectorServiceAsync(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;
}

GetClientConnectorService(ClientConnectorServiceName, CallSettings)

public virtual ClientConnectorService GetClientConnectorService(ClientConnectorServiceName name, CallSettings callSettings = null)

Gets details of a single ClientConnectorService.

Parameters
NameDescription
nameClientConnectorServiceName

Required. Name of the resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
ClientConnectorService

The RPC response.

Example
// Create client
ClientConnectorServicesServiceClient clientConnectorServicesServiceClient = ClientConnectorServicesServiceClient.Create();
// Initialize request argument(s)
ClientConnectorServiceName name = ClientConnectorServiceName.FromProjectLocationClientConnectorService("[PROJECT]", "[LOCATION]", "[CLIENT_CONNECTOR_SERVICE]");
// Make the request
ClientConnectorService response = clientConnectorServicesServiceClient.GetClientConnectorService(name);

GetClientConnectorService(GetClientConnectorServiceRequest, CallSettings)

public virtual ClientConnectorService GetClientConnectorService(GetClientConnectorServiceRequest request, CallSettings callSettings = null)

Gets details of a single ClientConnectorService.

Parameters
NameDescription
requestGetClientConnectorServiceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
ClientConnectorService

The RPC response.

Example
// Create client
ClientConnectorServicesServiceClient clientConnectorServicesServiceClient = ClientConnectorServicesServiceClient.Create();
// Initialize request argument(s)
GetClientConnectorServiceRequest request = new GetClientConnectorServiceRequest
{
    ClientConnectorServiceName = ClientConnectorServiceName.FromProjectLocationClientConnectorService("[PROJECT]", "[LOCATION]", "[CLIENT_CONNECTOR_SERVICE]"),
};
// Make the request
ClientConnectorService response = clientConnectorServicesServiceClient.GetClientConnectorService(request);

GetClientConnectorService(string, CallSettings)

public virtual ClientConnectorService GetClientConnectorService(string name, CallSettings callSettings = null)

Gets details of a single ClientConnectorService.

Parameters
NameDescription
namestring

Required. Name of the resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
ClientConnectorService

The RPC response.

Example
// Create client
ClientConnectorServicesServiceClient clientConnectorServicesServiceClient = ClientConnectorServicesServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/clientConnectorServices/[CLIENT_CONNECTOR_SERVICE]";
// Make the request
ClientConnectorService response = clientConnectorServicesServiceClient.GetClientConnectorService(name);

GetClientConnectorServiceAsync(ClientConnectorServiceName, CallSettings)

public virtual Task<ClientConnectorService> GetClientConnectorServiceAsync(ClientConnectorServiceName name, CallSettings callSettings = null)

Gets details of a single ClientConnectorService.

Parameters
NameDescription
nameClientConnectorServiceName

Required. Name of the resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskClientConnectorService

A Task containing the RPC response.

Example
// Create client
ClientConnectorServicesServiceClient clientConnectorServicesServiceClient = await ClientConnectorServicesServiceClient.CreateAsync();
// Initialize request argument(s)
ClientConnectorServiceName name = ClientConnectorServiceName.FromProjectLocationClientConnectorService("[PROJECT]", "[LOCATION]", "[CLIENT_CONNECTOR_SERVICE]");
// Make the request
ClientConnectorService response = await clientConnectorServicesServiceClient.GetClientConnectorServiceAsync(name);

GetClientConnectorServiceAsync(ClientConnectorServiceName, CancellationToken)

public virtual Task<ClientConnectorService> GetClientConnectorServiceAsync(ClientConnectorServiceName name, CancellationToken cancellationToken)

Gets details of a single ClientConnectorService.

Parameters
NameDescription
nameClientConnectorServiceName

Required. Name of the resource.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskClientConnectorService

A Task containing the RPC response.

Example
// Create client
ClientConnectorServicesServiceClient clientConnectorServicesServiceClient = await ClientConnectorServicesServiceClient.CreateAsync();
// Initialize request argument(s)
ClientConnectorServiceName name = ClientConnectorServiceName.FromProjectLocationClientConnectorService("[PROJECT]", "[LOCATION]", "[CLIENT_CONNECTOR_SERVICE]");
// Make the request
ClientConnectorService response = await clientConnectorServicesServiceClient.GetClientConnectorServiceAsync(name);

GetClientConnectorServiceAsync(GetClientConnectorServiceRequest, CallSettings)

public virtual Task<ClientConnectorService> GetClientConnectorServiceAsync(GetClientConnectorServiceRequest request, CallSettings callSettings = null)

Gets details of a single ClientConnectorService.

Parameters
NameDescription
requestGetClientConnectorServiceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskClientConnectorService

A Task containing the RPC response.

Example
// Create client
ClientConnectorServicesServiceClient clientConnectorServicesServiceClient = await ClientConnectorServicesServiceClient.CreateAsync();
// Initialize request argument(s)
GetClientConnectorServiceRequest request = new GetClientConnectorServiceRequest
{
    ClientConnectorServiceName = ClientConnectorServiceName.FromProjectLocationClientConnectorService("[PROJECT]", "[LOCATION]", "[CLIENT_CONNECTOR_SERVICE]"),
};
// Make the request
ClientConnectorService response = await clientConnectorServicesServiceClient.GetClientConnectorServiceAsync(request);

GetClientConnectorServiceAsync(GetClientConnectorServiceRequest, CancellationToken)

public virtual Task<ClientConnectorService> GetClientConnectorServiceAsync(GetClientConnectorServiceRequest request, CancellationToken cancellationToken)

Gets details of a single ClientConnectorService.

Parameters
NameDescription
requestGetClientConnectorServiceRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskClientConnectorService

A Task containing the RPC response.

Example
// Create client
ClientConnectorServicesServiceClient clientConnectorServicesServiceClient = await ClientConnectorServicesServiceClient.CreateAsync();
// Initialize request argument(s)
GetClientConnectorServiceRequest request = new GetClientConnectorServiceRequest
{
    ClientConnectorServiceName = ClientConnectorServiceName.FromProjectLocationClientConnectorService("[PROJECT]", "[LOCATION]", "[CLIENT_CONNECTOR_SERVICE]"),
};
// Make the request
ClientConnectorService response = await clientConnectorServicesServiceClient.GetClientConnectorServiceAsync(request);

GetClientConnectorServiceAsync(string, CallSettings)

public virtual Task<ClientConnectorService> GetClientConnectorServiceAsync(string name, CallSettings callSettings = null)

Gets details of a single ClientConnectorService.

Parameters
NameDescription
namestring

Required. Name of the resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskClientConnectorService

A Task containing the RPC response.

Example
// Create client
ClientConnectorServicesServiceClient clientConnectorServicesServiceClient = await ClientConnectorServicesServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/clientConnectorServices/[CLIENT_CONNECTOR_SERVICE]";
// Make the request
ClientConnectorService response = await clientConnectorServicesServiceClient.GetClientConnectorServiceAsync(name);

GetClientConnectorServiceAsync(string, CancellationToken)

public virtual Task<ClientConnectorService> GetClientConnectorServiceAsync(string name, CancellationToken cancellationToken)

Gets details of a single ClientConnectorService.

Parameters
NameDescription
namestring

Required. Name of the resource.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskClientConnectorService

A Task containing the RPC response.

Example
// Create client
ClientConnectorServicesServiceClient clientConnectorServicesServiceClient = await ClientConnectorServicesServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/clientConnectorServices/[CLIENT_CONNECTOR_SERVICE]";
// Make the request
ClientConnectorService response = await clientConnectorServicesServiceClient.GetClientConnectorServiceAsync(name);

ListClientConnectorServices(LocationName, string, int?, CallSettings)

public virtual PagedEnumerable<ListClientConnectorServicesResponse, ClientConnectorService> ListClientConnectorServices(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists ClientConnectorServices in a given project and location.

Parameters
NameDescription
parentLocationName

Required. Parent value for ListClientConnectorServicesRequest.

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
PagedEnumerableListClientConnectorServicesResponseClientConnectorService

A pageable sequence of ClientConnectorService resources.

Example
// Create client
ClientConnectorServicesServiceClient clientConnectorServicesServiceClient = ClientConnectorServicesServiceClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListClientConnectorServicesResponse, ClientConnectorService> response = clientConnectorServicesServiceClient.ListClientConnectorServices(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (ClientConnectorService 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 (ListClientConnectorServicesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ClientConnectorService 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<ClientConnectorService> 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 (ClientConnectorService 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;

ListClientConnectorServices(ListClientConnectorServicesRequest, CallSettings)

public virtual PagedEnumerable<ListClientConnectorServicesResponse, ClientConnectorService> ListClientConnectorServices(ListClientConnectorServicesRequest request, CallSettings callSettings = null)

Lists ClientConnectorServices in a given project and location.

Parameters
NameDescription
requestListClientConnectorServicesRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListClientConnectorServicesResponseClientConnectorService

A pageable sequence of ClientConnectorService resources.

Example
// Create client
ClientConnectorServicesServiceClient clientConnectorServicesServiceClient = ClientConnectorServicesServiceClient.Create();
// Initialize request argument(s)
ListClientConnectorServicesRequest request = new ListClientConnectorServicesRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedEnumerable<ListClientConnectorServicesResponse, ClientConnectorService> response = clientConnectorServicesServiceClient.ListClientConnectorServices(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (ClientConnectorService 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 (ListClientConnectorServicesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ClientConnectorService 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<ClientConnectorService> 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 (ClientConnectorService 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;

ListClientConnectorServices(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListClientConnectorServicesResponse, ClientConnectorService> ListClientConnectorServices(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists ClientConnectorServices in a given project and location.

Parameters
NameDescription
parentstring

Required. Parent value for ListClientConnectorServicesRequest.

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
PagedEnumerableListClientConnectorServicesResponseClientConnectorService

A pageable sequence of ClientConnectorService resources.

Example
// Create client
ClientConnectorServicesServiceClient clientConnectorServicesServiceClient = ClientConnectorServicesServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListClientConnectorServicesResponse, ClientConnectorService> response = clientConnectorServicesServiceClient.ListClientConnectorServices(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (ClientConnectorService 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 (ListClientConnectorServicesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ClientConnectorService 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<ClientConnectorService> 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 (ClientConnectorService 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;

ListClientConnectorServicesAsync(LocationName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListClientConnectorServicesResponse, ClientConnectorService> ListClientConnectorServicesAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists ClientConnectorServices in a given project and location.

Parameters
NameDescription
parentLocationName

Required. Parent value for ListClientConnectorServicesRequest.

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
PagedAsyncEnumerableListClientConnectorServicesResponseClientConnectorService

A pageable asynchronous sequence of ClientConnectorService resources.

Example
// Create client
ClientConnectorServicesServiceClient clientConnectorServicesServiceClient = await ClientConnectorServicesServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListClientConnectorServicesResponse, ClientConnectorService> response = clientConnectorServicesServiceClient.ListClientConnectorServicesAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((ClientConnectorService 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((ListClientConnectorServicesResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ClientConnectorService 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<ClientConnectorService> 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 (ClientConnectorService 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;

ListClientConnectorServicesAsync(ListClientConnectorServicesRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListClientConnectorServicesResponse, ClientConnectorService> ListClientConnectorServicesAsync(ListClientConnectorServicesRequest request, CallSettings callSettings = null)

Lists ClientConnectorServices in a given project and location.

Parameters
NameDescription
requestListClientConnectorServicesRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListClientConnectorServicesResponseClientConnectorService

A pageable asynchronous sequence of ClientConnectorService resources.

Example
// Create client
ClientConnectorServicesServiceClient clientConnectorServicesServiceClient = await ClientConnectorServicesServiceClient.CreateAsync();
// Initialize request argument(s)
ListClientConnectorServicesRequest request = new ListClientConnectorServicesRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListClientConnectorServicesResponse, ClientConnectorService> response = clientConnectorServicesServiceClient.ListClientConnectorServicesAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((ClientConnectorService 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((ListClientConnectorServicesResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ClientConnectorService 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<ClientConnectorService> 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 (ClientConnectorService 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;

ListClientConnectorServicesAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListClientConnectorServicesResponse, ClientConnectorService> ListClientConnectorServicesAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists ClientConnectorServices in a given project and location.

Parameters
NameDescription
parentstring

Required. Parent value for ListClientConnectorServicesRequest.

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
PagedAsyncEnumerableListClientConnectorServicesResponseClientConnectorService

A pageable asynchronous sequence of ClientConnectorService resources.

Example
// Create client
ClientConnectorServicesServiceClient clientConnectorServicesServiceClient = await ClientConnectorServicesServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListClientConnectorServicesResponse, ClientConnectorService> response = clientConnectorServicesServiceClient.ListClientConnectorServicesAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((ClientConnectorService 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((ListClientConnectorServicesResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ClientConnectorService 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<ClientConnectorService> 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 (ClientConnectorService 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;

PollOnceCreateClientConnectorService(string, CallSettings)

public virtual Operation<ClientConnectorService, ClientConnectorServiceOperationMetadata> PollOnceCreateClientConnectorService(string operationName, CallSettings callSettings = null)

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

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
OperationClientConnectorServiceClientConnectorServiceOperationMetadata

The result of polling the operation.

PollOnceCreateClientConnectorServiceAsync(string, CallSettings)

public virtual Task<Operation<ClientConnectorService, ClientConnectorServiceOperationMetadata>> PollOnceCreateClientConnectorServiceAsync(string operationName, CallSettings callSettings = null)

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

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
TaskOperationClientConnectorServiceClientConnectorServiceOperationMetadata

A task representing the result of polling the operation.

PollOnceDeleteClientConnectorService(string, CallSettings)

public virtual Operation<Empty, ClientConnectorServiceOperationMetadata> PollOnceDeleteClientConnectorService(string operationName, CallSettings callSettings = null)

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

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
OperationEmptyClientConnectorServiceOperationMetadata

The result of polling the operation.

PollOnceDeleteClientConnectorServiceAsync(string, CallSettings)

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

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

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
TaskOperationEmptyClientConnectorServiceOperationMetadata

A task representing the result of polling the operation.

PollOnceUpdateClientConnectorService(string, CallSettings)

public virtual Operation<ClientConnectorService, ClientConnectorServiceOperationMetadata> PollOnceUpdateClientConnectorService(string operationName, CallSettings callSettings = null)

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

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
OperationClientConnectorServiceClientConnectorServiceOperationMetadata

The result of polling the operation.

PollOnceUpdateClientConnectorServiceAsync(string, CallSettings)

public virtual Task<Operation<ClientConnectorService, ClientConnectorServiceOperationMetadata>> PollOnceUpdateClientConnectorServiceAsync(string operationName, CallSettings callSettings = null)

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

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
TaskOperationClientConnectorServiceClientConnectorServiceOperationMetadata

A task representing the result of polling the operation.

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.

UpdateClientConnectorService(ClientConnectorService, FieldMask, CallSettings)

public virtual Operation<ClientConnectorService, ClientConnectorServiceOperationMetadata> UpdateClientConnectorService(ClientConnectorService clientConnectorService, FieldMask updateMask, CallSettings callSettings = null)

Updates the parameters of a single ClientConnectorService.

Parameters
NameDescription
clientConnectorServiceClientConnectorService

Required. The resource being updated.

updateMaskFieldMask

Required. Field mask is used to specify the fields to be overwritten in the ClientConnectorService resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

Mutable fields: display_name.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationClientConnectorServiceClientConnectorServiceOperationMetadata

The RPC response.

Example
// Create client
ClientConnectorServicesServiceClient clientConnectorServicesServiceClient = ClientConnectorServicesServiceClient.Create();
// Initialize request argument(s)
ClientConnectorService clientConnectorService = new ClientConnectorService();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<ClientConnectorService, ClientConnectorServiceOperationMetadata> response = clientConnectorServicesServiceClient.UpdateClientConnectorService(clientConnectorService, updateMask);

// Poll until the returned long-running operation is complete
Operation<ClientConnectorService, ClientConnectorServiceOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
ClientConnectorService 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<ClientConnectorService, ClientConnectorServiceOperationMetadata> retrievedResponse = clientConnectorServicesServiceClient.PollOnceUpdateClientConnectorService(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ClientConnectorService retrievedResult = retrievedResponse.Result;
}

UpdateClientConnectorService(UpdateClientConnectorServiceRequest, CallSettings)

public virtual Operation<ClientConnectorService, ClientConnectorServiceOperationMetadata> UpdateClientConnectorService(UpdateClientConnectorServiceRequest request, CallSettings callSettings = null)

Updates the parameters of a single ClientConnectorService.

Parameters
NameDescription
requestUpdateClientConnectorServiceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationClientConnectorServiceClientConnectorServiceOperationMetadata

The RPC response.

Example
// Create client
ClientConnectorServicesServiceClient clientConnectorServicesServiceClient = ClientConnectorServicesServiceClient.Create();
// Initialize request argument(s)
UpdateClientConnectorServiceRequest request = new UpdateClientConnectorServiceRequest
{
    UpdateMask = new FieldMask(),
    ClientConnectorService = new ClientConnectorService(),
    RequestId = "",
    ValidateOnly = false,
    AllowMissing = false,
};
// Make the request
Operation<ClientConnectorService, ClientConnectorServiceOperationMetadata> response = clientConnectorServicesServiceClient.UpdateClientConnectorService(request);

// Poll until the returned long-running operation is complete
Operation<ClientConnectorService, ClientConnectorServiceOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
ClientConnectorService 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<ClientConnectorService, ClientConnectorServiceOperationMetadata> retrievedResponse = clientConnectorServicesServiceClient.PollOnceUpdateClientConnectorService(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ClientConnectorService retrievedResult = retrievedResponse.Result;
}

UpdateClientConnectorServiceAsync(ClientConnectorService, FieldMask, CallSettings)

public virtual Task<Operation<ClientConnectorService, ClientConnectorServiceOperationMetadata>> UpdateClientConnectorServiceAsync(ClientConnectorService clientConnectorService, FieldMask updateMask, CallSettings callSettings = null)

Updates the parameters of a single ClientConnectorService.

Parameters
NameDescription
clientConnectorServiceClientConnectorService

Required. The resource being updated.

updateMaskFieldMask

Required. Field mask is used to specify the fields to be overwritten in the ClientConnectorService resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

Mutable fields: display_name.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationClientConnectorServiceClientConnectorServiceOperationMetadata

A Task containing the RPC response.

Example
// Create client
ClientConnectorServicesServiceClient clientConnectorServicesServiceClient = await ClientConnectorServicesServiceClient.CreateAsync();
// Initialize request argument(s)
ClientConnectorService clientConnectorService = new ClientConnectorService();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<ClientConnectorService, ClientConnectorServiceOperationMetadata> response = await clientConnectorServicesServiceClient.UpdateClientConnectorServiceAsync(clientConnectorService, updateMask);

// Poll until the returned long-running operation is complete
Operation<ClientConnectorService, ClientConnectorServiceOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ClientConnectorService 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<ClientConnectorService, ClientConnectorServiceOperationMetadata> retrievedResponse = await clientConnectorServicesServiceClient.PollOnceUpdateClientConnectorServiceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ClientConnectorService retrievedResult = retrievedResponse.Result;
}

UpdateClientConnectorServiceAsync(ClientConnectorService, FieldMask, CancellationToken)

public virtual Task<Operation<ClientConnectorService, ClientConnectorServiceOperationMetadata>> UpdateClientConnectorServiceAsync(ClientConnectorService clientConnectorService, FieldMask updateMask, CancellationToken cancellationToken)

Updates the parameters of a single ClientConnectorService.

Parameters
NameDescription
clientConnectorServiceClientConnectorService

Required. The resource being updated.

updateMaskFieldMask

Required. Field mask is used to specify the fields to be overwritten in the ClientConnectorService resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

Mutable fields: display_name.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationClientConnectorServiceClientConnectorServiceOperationMetadata

A Task containing the RPC response.

Example
// Create client
ClientConnectorServicesServiceClient clientConnectorServicesServiceClient = await ClientConnectorServicesServiceClient.CreateAsync();
// Initialize request argument(s)
ClientConnectorService clientConnectorService = new ClientConnectorService();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<ClientConnectorService, ClientConnectorServiceOperationMetadata> response = await clientConnectorServicesServiceClient.UpdateClientConnectorServiceAsync(clientConnectorService, updateMask);

// Poll until the returned long-running operation is complete
Operation<ClientConnectorService, ClientConnectorServiceOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ClientConnectorService 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<ClientConnectorService, ClientConnectorServiceOperationMetadata> retrievedResponse = await clientConnectorServicesServiceClient.PollOnceUpdateClientConnectorServiceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ClientConnectorService retrievedResult = retrievedResponse.Result;
}

UpdateClientConnectorServiceAsync(UpdateClientConnectorServiceRequest, CallSettings)

public virtual Task<Operation<ClientConnectorService, ClientConnectorServiceOperationMetadata>> UpdateClientConnectorServiceAsync(UpdateClientConnectorServiceRequest request, CallSettings callSettings = null)

Updates the parameters of a single ClientConnectorService.

Parameters
NameDescription
requestUpdateClientConnectorServiceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationClientConnectorServiceClientConnectorServiceOperationMetadata

A Task containing the RPC response.

Example
// Create client
ClientConnectorServicesServiceClient clientConnectorServicesServiceClient = await ClientConnectorServicesServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateClientConnectorServiceRequest request = new UpdateClientConnectorServiceRequest
{
    UpdateMask = new FieldMask(),
    ClientConnectorService = new ClientConnectorService(),
    RequestId = "",
    ValidateOnly = false,
    AllowMissing = false,
};
// Make the request
Operation<ClientConnectorService, ClientConnectorServiceOperationMetadata> response = await clientConnectorServicesServiceClient.UpdateClientConnectorServiceAsync(request);

// Poll until the returned long-running operation is complete
Operation<ClientConnectorService, ClientConnectorServiceOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ClientConnectorService 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<ClientConnectorService, ClientConnectorServiceOperationMetadata> retrievedResponse = await clientConnectorServicesServiceClient.PollOnceUpdateClientConnectorServiceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ClientConnectorService retrievedResult = retrievedResponse.Result;
}

UpdateClientConnectorServiceAsync(UpdateClientConnectorServiceRequest, CancellationToken)

public virtual Task<Operation<ClientConnectorService, ClientConnectorServiceOperationMetadata>> UpdateClientConnectorServiceAsync(UpdateClientConnectorServiceRequest request, CancellationToken cancellationToken)

Updates the parameters of a single ClientConnectorService.

Parameters
NameDescription
requestUpdateClientConnectorServiceRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationClientConnectorServiceClientConnectorServiceOperationMetadata

A Task containing the RPC response.

Example
// Create client
ClientConnectorServicesServiceClient clientConnectorServicesServiceClient = await ClientConnectorServicesServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateClientConnectorServiceRequest request = new UpdateClientConnectorServiceRequest
{
    UpdateMask = new FieldMask(),
    ClientConnectorService = new ClientConnectorService(),
    RequestId = "",
    ValidateOnly = false,
    AllowMissing = false,
};
// Make the request
Operation<ClientConnectorService, ClientConnectorServiceOperationMetadata> response = await clientConnectorServicesServiceClient.UpdateClientConnectorServiceAsync(request);

// Poll until the returned long-running operation is complete
Operation<ClientConnectorService, ClientConnectorServiceOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ClientConnectorService 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<ClientConnectorService, ClientConnectorServiceOperationMetadata> retrievedResponse = await clientConnectorServicesServiceClient.PollOnceUpdateClientConnectorServiceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ClientConnectorService retrievedResult = retrievedResponse.Result;
}