Cloud Build v2 API - Class RepositoryManagerClient (1.3.0)

public abstract class RepositoryManagerClient

Reference documentation and code samples for the Cloud Build v2 API class RepositoryManagerClient.

RepositoryManager client wrapper, for convenient use.

Inheritance

object > RepositoryManagerClient

Namespace

Google.Cloud.CloudBuild.V2

Assembly

Google.Cloud.CloudBuild.V2.dll

Remarks

Manages connections to source code repositories.

Properties

BatchCreateRepositoriesOperationsClient

public virtual OperationsClient BatchCreateRepositoriesOperationsClient { get; }

The long-running operations client for BatchCreateRepositories.

Property Value
Type Description
OperationsClient

CreateConnectionOperationsClient

public virtual OperationsClient CreateConnectionOperationsClient { get; }

The long-running operations client for CreateConnection.

Property Value
Type Description
OperationsClient

CreateRepositoryOperationsClient

public virtual OperationsClient CreateRepositoryOperationsClient { get; }

The long-running operations client for CreateRepository.

Property Value
Type Description
OperationsClient

DefaultEndpoint

public static string DefaultEndpoint { get; }

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

Property Value
Type Description
string

DefaultScopes

public static IReadOnlyList<string> DefaultScopes { get; }

The default RepositoryManager scopes.

Property Value
Type Description
IReadOnlyListstring
Remarks

The default RepositoryManager scopes are:

DeleteConnectionOperationsClient

public virtual OperationsClient DeleteConnectionOperationsClient { get; }

The long-running operations client for DeleteConnection.

Property Value
Type Description
OperationsClient

DeleteRepositoryOperationsClient

public virtual OperationsClient DeleteRepositoryOperationsClient { get; }

The long-running operations client for DeleteRepository.

Property Value
Type Description
OperationsClient

GrpcClient

public virtual RepositoryManager.RepositoryManagerClient GrpcClient { get; }

The underlying gRPC RepositoryManager client

Property Value
Type Description
RepositoryManagerRepositoryManagerClient

IAMPolicyClient

public virtual IAMPolicyClient IAMPolicyClient { get; }

The IAMPolicyClient associated with this client.

Property Value
Type Description
IAMPolicyClient

LocationsClient

public virtual LocationsClient LocationsClient { get; }

The LocationsClient associated with this client.

Property Value
Type Description
LocationsClient

ServiceMetadata

public static ServiceMetadata ServiceMetadata { get; }

The service metadata associated with this client type.

Property Value
Type Description
ServiceMetadata

UpdateConnectionOperationsClient

public virtual OperationsClient UpdateConnectionOperationsClient { get; }

The long-running operations client for UpdateConnection.

Property Value
Type Description
OperationsClient

Methods

BatchCreateRepositories(BatchCreateRepositoriesRequest, CallSettings)

public virtual Operation<BatchCreateRepositoriesResponse, OperationMetadata> BatchCreateRepositories(BatchCreateRepositoriesRequest request, CallSettings callSettings = null)

Creates multiple repositories inside a connection.

Parameters
Name Description
request BatchCreateRepositoriesRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationBatchCreateRepositoriesResponseOperationMetadata

The RPC response.

Example
// Create client
RepositoryManagerClient repositoryManagerClient = RepositoryManagerClient.Create();
// Initialize request argument(s)
BatchCreateRepositoriesRequest request = new BatchCreateRepositoriesRequest
{
    ParentAsConnectionName = ConnectionName.FromProjectLocationConnection("[PROJECT]", "[LOCATION]", "[CONNECTION]"),
    Requests =
    {
        new CreateRepositoryRequest(),
    },
};
// Make the request
Operation<BatchCreateRepositoriesResponse, OperationMetadata> response = repositoryManagerClient.BatchCreateRepositories(request);

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

BatchCreateRepositories(ConnectionName, IEnumerable<CreateRepositoryRequest>, CallSettings)

public virtual Operation<BatchCreateRepositoriesResponse, OperationMetadata> BatchCreateRepositories(ConnectionName parent, IEnumerable<CreateRepositoryRequest> requests, CallSettings callSettings = null)

Creates multiple repositories inside a connection.

Parameters
Name Description
parent ConnectionName

Required. The connection to contain all the repositories being created. Format: projects//locations//connections/* The parent field in the CreateRepositoryRequest messages must either be empty or match this field.

requests IEnumerableCreateRepositoryRequest

Required. The request messages specifying the repositories to create.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationBatchCreateRepositoriesResponseOperationMetadata

The RPC response.

Example
// Create client
RepositoryManagerClient repositoryManagerClient = RepositoryManagerClient.Create();
// Initialize request argument(s)
ConnectionName parent = ConnectionName.FromProjectLocationConnection("[PROJECT]", "[LOCATION]", "[CONNECTION]");
IEnumerable<CreateRepositoryRequest> requests = new CreateRepositoryRequest[]
{
    new CreateRepositoryRequest(),
};
// Make the request
Operation<BatchCreateRepositoriesResponse, OperationMetadata> response = repositoryManagerClient.BatchCreateRepositories(parent, requests);

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

BatchCreateRepositories(string, IEnumerable<CreateRepositoryRequest>, CallSettings)

public virtual Operation<BatchCreateRepositoriesResponse, OperationMetadata> BatchCreateRepositories(string parent, IEnumerable<CreateRepositoryRequest> requests, CallSettings callSettings = null)

Creates multiple repositories inside a connection.

Parameters
Name Description
parent string

Required. The connection to contain all the repositories being created. Format: projects//locations//connections/* The parent field in the CreateRepositoryRequest messages must either be empty or match this field.

requests IEnumerableCreateRepositoryRequest

Required. The request messages specifying the repositories to create.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationBatchCreateRepositoriesResponseOperationMetadata

The RPC response.

Example
// Create client
RepositoryManagerClient repositoryManagerClient = RepositoryManagerClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/connections/[CONNECTION]";
IEnumerable<CreateRepositoryRequest> requests = new CreateRepositoryRequest[]
{
    new CreateRepositoryRequest(),
};
// Make the request
Operation<BatchCreateRepositoriesResponse, OperationMetadata> response = repositoryManagerClient.BatchCreateRepositories(parent, requests);

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

BatchCreateRepositoriesAsync(BatchCreateRepositoriesRequest, CallSettings)

public virtual Task<Operation<BatchCreateRepositoriesResponse, OperationMetadata>> BatchCreateRepositoriesAsync(BatchCreateRepositoriesRequest request, CallSettings callSettings = null)

Creates multiple repositories inside a connection.

Parameters
Name Description
request BatchCreateRepositoriesRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationBatchCreateRepositoriesResponseOperationMetadata

A Task containing the RPC response.

Example
// Create client
RepositoryManagerClient repositoryManagerClient = await RepositoryManagerClient.CreateAsync();
// Initialize request argument(s)
BatchCreateRepositoriesRequest request = new BatchCreateRepositoriesRequest
{
    ParentAsConnectionName = ConnectionName.FromProjectLocationConnection("[PROJECT]", "[LOCATION]", "[CONNECTION]"),
    Requests =
    {
        new CreateRepositoryRequest(),
    },
};
// Make the request
Operation<BatchCreateRepositoriesResponse, OperationMetadata> response = await repositoryManagerClient.BatchCreateRepositoriesAsync(request);

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

BatchCreateRepositoriesAsync(BatchCreateRepositoriesRequest, CancellationToken)

public virtual Task<Operation<BatchCreateRepositoriesResponse, OperationMetadata>> BatchCreateRepositoriesAsync(BatchCreateRepositoriesRequest request, CancellationToken cancellationToken)

Creates multiple repositories inside a connection.

Parameters
Name Description
request BatchCreateRepositoriesRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationBatchCreateRepositoriesResponseOperationMetadata

A Task containing the RPC response.

Example
// Create client
RepositoryManagerClient repositoryManagerClient = await RepositoryManagerClient.CreateAsync();
// Initialize request argument(s)
BatchCreateRepositoriesRequest request = new BatchCreateRepositoriesRequest
{
    ParentAsConnectionName = ConnectionName.FromProjectLocationConnection("[PROJECT]", "[LOCATION]", "[CONNECTION]"),
    Requests =
    {
        new CreateRepositoryRequest(),
    },
};
// Make the request
Operation<BatchCreateRepositoriesResponse, OperationMetadata> response = await repositoryManagerClient.BatchCreateRepositoriesAsync(request);

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

BatchCreateRepositoriesAsync(ConnectionName, IEnumerable<CreateRepositoryRequest>, CallSettings)

public virtual Task<Operation<BatchCreateRepositoriesResponse, OperationMetadata>> BatchCreateRepositoriesAsync(ConnectionName parent, IEnumerable<CreateRepositoryRequest> requests, CallSettings callSettings = null)

Creates multiple repositories inside a connection.

Parameters
Name Description
parent ConnectionName

Required. The connection to contain all the repositories being created. Format: projects//locations//connections/* The parent field in the CreateRepositoryRequest messages must either be empty or match this field.

requests IEnumerableCreateRepositoryRequest

Required. The request messages specifying the repositories to create.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationBatchCreateRepositoriesResponseOperationMetadata

A Task containing the RPC response.

Example
// Create client
RepositoryManagerClient repositoryManagerClient = await RepositoryManagerClient.CreateAsync();
// Initialize request argument(s)
ConnectionName parent = ConnectionName.FromProjectLocationConnection("[PROJECT]", "[LOCATION]", "[CONNECTION]");
IEnumerable<CreateRepositoryRequest> requests = new CreateRepositoryRequest[]
{
    new CreateRepositoryRequest(),
};
// Make the request
Operation<BatchCreateRepositoriesResponse, OperationMetadata> response = await repositoryManagerClient.BatchCreateRepositoriesAsync(parent, requests);

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

BatchCreateRepositoriesAsync(ConnectionName, IEnumerable<CreateRepositoryRequest>, CancellationToken)

public virtual Task<Operation<BatchCreateRepositoriesResponse, OperationMetadata>> BatchCreateRepositoriesAsync(ConnectionName parent, IEnumerable<CreateRepositoryRequest> requests, CancellationToken cancellationToken)

Creates multiple repositories inside a connection.

Parameters
Name Description
parent ConnectionName

Required. The connection to contain all the repositories being created. Format: projects//locations//connections/* The parent field in the CreateRepositoryRequest messages must either be empty or match this field.

requests IEnumerableCreateRepositoryRequest

Required. The request messages specifying the repositories to create.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationBatchCreateRepositoriesResponseOperationMetadata

A Task containing the RPC response.

Example
// Create client
RepositoryManagerClient repositoryManagerClient = await RepositoryManagerClient.CreateAsync();
// Initialize request argument(s)
ConnectionName parent = ConnectionName.FromProjectLocationConnection("[PROJECT]", "[LOCATION]", "[CONNECTION]");
IEnumerable<CreateRepositoryRequest> requests = new CreateRepositoryRequest[]
{
    new CreateRepositoryRequest(),
};
// Make the request
Operation<BatchCreateRepositoriesResponse, OperationMetadata> response = await repositoryManagerClient.BatchCreateRepositoriesAsync(parent, requests);

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

BatchCreateRepositoriesAsync(string, IEnumerable<CreateRepositoryRequest>, CallSettings)

public virtual Task<Operation<BatchCreateRepositoriesResponse, OperationMetadata>> BatchCreateRepositoriesAsync(string parent, IEnumerable<CreateRepositoryRequest> requests, CallSettings callSettings = null)

Creates multiple repositories inside a connection.

Parameters
Name Description
parent string

Required. The connection to contain all the repositories being created. Format: projects//locations//connections/* The parent field in the CreateRepositoryRequest messages must either be empty or match this field.

requests IEnumerableCreateRepositoryRequest

Required. The request messages specifying the repositories to create.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationBatchCreateRepositoriesResponseOperationMetadata

A Task containing the RPC response.

Example
// Create client
RepositoryManagerClient repositoryManagerClient = await RepositoryManagerClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/connections/[CONNECTION]";
IEnumerable<CreateRepositoryRequest> requests = new CreateRepositoryRequest[]
{
    new CreateRepositoryRequest(),
};
// Make the request
Operation<BatchCreateRepositoriesResponse, OperationMetadata> response = await repositoryManagerClient.BatchCreateRepositoriesAsync(parent, requests);

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

BatchCreateRepositoriesAsync(string, IEnumerable<CreateRepositoryRequest>, CancellationToken)

public virtual Task<Operation<BatchCreateRepositoriesResponse, OperationMetadata>> BatchCreateRepositoriesAsync(string parent, IEnumerable<CreateRepositoryRequest> requests, CancellationToken cancellationToken)

Creates multiple repositories inside a connection.

Parameters
Name Description
parent string

Required. The connection to contain all the repositories being created. Format: projects//locations//connections/* The parent field in the CreateRepositoryRequest messages must either be empty or match this field.

requests IEnumerableCreateRepositoryRequest

Required. The request messages specifying the repositories to create.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationBatchCreateRepositoriesResponseOperationMetadata

A Task containing the RPC response.

Example
// Create client
RepositoryManagerClient repositoryManagerClient = await RepositoryManagerClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/connections/[CONNECTION]";
IEnumerable<CreateRepositoryRequest> requests = new CreateRepositoryRequest[]
{
    new CreateRepositoryRequest(),
};
// Make the request
Operation<BatchCreateRepositoriesResponse, OperationMetadata> response = await repositoryManagerClient.BatchCreateRepositoriesAsync(parent, requests);

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

Create()

public static RepositoryManagerClient Create()

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

Returns
Type Description
RepositoryManagerClient

The created RepositoryManagerClient.

CreateAsync(CancellationToken)

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

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

Parameter
Name Description
cancellationToken CancellationToken

The CancellationToken to use while creating the client.

Returns
Type Description
TaskRepositoryManagerClient

The task representing the created RepositoryManagerClient.

CreateConnection(LocationName, Connection, string, CallSettings)

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

Creates a Connection.

Parameters
Name Description
parent LocationName

Required. Project and location where the connection will be created. Format: projects/*/locations/*.

connection Connection

Required. The Connection to create.

connectionId string

Required. The ID to use for the Connection, which will become the final component of the Connection's resource name. Names must be unique per-project per-location. Allows alphanumeric characters and any of -._~%!$&amp;'()*+,;=@.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationConnectionOperationMetadata

The RPC response.

Example
// Create client
RepositoryManagerClient repositoryManagerClient = RepositoryManagerClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
Connection connection = new Connection();
string connectionId = "";
// Make the request
Operation<Connection, OperationMetadata> response = repositoryManagerClient.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 = repositoryManagerClient.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 Connection.

Parameters
Name Description
request CreateConnectionRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationConnectionOperationMetadata

The RPC response.

Example
// Create client
RepositoryManagerClient repositoryManagerClient = RepositoryManagerClient.Create();
// Initialize request argument(s)
CreateConnectionRequest request = new CreateConnectionRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Connection = new Connection(),
    ConnectionId = "",
};
// Make the request
Operation<Connection, OperationMetadata> response = repositoryManagerClient.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 = repositoryManagerClient.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 Connection.

Parameters
Name Description
parent string

Required. Project and location where the connection will be created. Format: projects/*/locations/*.

connection Connection

Required. The Connection to create.

connectionId string

Required. The ID to use for the Connection, which will become the final component of the Connection's resource name. Names must be unique per-project per-location. Allows alphanumeric characters and any of -._~%!$&amp;'()*+,;=@.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationConnectionOperationMetadata

The RPC response.

Example
// Create client
RepositoryManagerClient repositoryManagerClient = RepositoryManagerClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
Connection connection = new Connection();
string connectionId = "";
// Make the request
Operation<Connection, OperationMetadata> response = repositoryManagerClient.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 = repositoryManagerClient.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 Connection.

Parameters
Name Description
parent LocationName

Required. Project and location where the connection will be created. Format: projects/*/locations/*.

connection Connection

Required. The Connection to create.

connectionId string

Required. The ID to use for the Connection, which will become the final component of the Connection's resource name. Names must be unique per-project per-location. Allows alphanumeric characters and any of -._~%!$&amp;'()*+,;=@.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationConnectionOperationMetadata

A Task containing the RPC response.

Example
// Create client
RepositoryManagerClient repositoryManagerClient = await RepositoryManagerClient.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 repositoryManagerClient.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 repositoryManagerClient.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 Connection.

Parameters
Name Description
parent LocationName

Required. Project and location where the connection will be created. Format: projects/*/locations/*.

connection Connection

Required. The Connection to create.

connectionId string

Required. The ID to use for the Connection, which will become the final component of the Connection's resource name. Names must be unique per-project per-location. Allows alphanumeric characters and any of -._~%!$&amp;'()*+,;=@.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationConnectionOperationMetadata

A Task containing the RPC response.

Example
// Create client
RepositoryManagerClient repositoryManagerClient = await RepositoryManagerClient.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 repositoryManagerClient.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 repositoryManagerClient.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 Connection.

Parameters
Name Description
request CreateConnectionRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationConnectionOperationMetadata

A Task containing the RPC response.

Example
// Create client
RepositoryManagerClient repositoryManagerClient = await RepositoryManagerClient.CreateAsync();
// Initialize request argument(s)
CreateConnectionRequest request = new CreateConnectionRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Connection = new Connection(),
    ConnectionId = "",
};
// Make the request
Operation<Connection, OperationMetadata> response = await repositoryManagerClient.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 repositoryManagerClient.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 Connection.

Parameters
Name Description
request CreateConnectionRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationConnectionOperationMetadata

A Task containing the RPC response.

Example
// Create client
RepositoryManagerClient repositoryManagerClient = await RepositoryManagerClient.CreateAsync();
// Initialize request argument(s)
CreateConnectionRequest request = new CreateConnectionRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Connection = new Connection(),
    ConnectionId = "",
};
// Make the request
Operation<Connection, OperationMetadata> response = await repositoryManagerClient.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 repositoryManagerClient.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 Connection.

Parameters
Name Description
parent string

Required. Project and location where the connection will be created. Format: projects/*/locations/*.

connection Connection

Required. The Connection to create.

connectionId string

Required. The ID to use for the Connection, which will become the final component of the Connection's resource name. Names must be unique per-project per-location. Allows alphanumeric characters and any of -._~%!$&amp;'()*+,;=@.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationConnectionOperationMetadata

A Task containing the RPC response.

Example
// Create client
RepositoryManagerClient repositoryManagerClient = await RepositoryManagerClient.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 repositoryManagerClient.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 repositoryManagerClient.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 Connection.

Parameters
Name Description
parent string

Required. Project and location where the connection will be created. Format: projects/*/locations/*.

connection Connection

Required. The Connection to create.

connectionId string

Required. The ID to use for the Connection, which will become the final component of the Connection's resource name. Names must be unique per-project per-location. Allows alphanumeric characters and any of -._~%!$&amp;'()*+,;=@.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationConnectionOperationMetadata

A Task containing the RPC response.

Example
// Create client
RepositoryManagerClient repositoryManagerClient = await RepositoryManagerClient.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 repositoryManagerClient.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 repositoryManagerClient.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;
}

CreateRepository(ConnectionName, Repository, string, CallSettings)

public virtual Operation<Repository, OperationMetadata> CreateRepository(ConnectionName parent, Repository repository, string repositoryId, CallSettings callSettings = null)

Creates a Repository.

Parameters
Name Description
parent ConnectionName

Required. The connection to contain the repository. If the request is part of a BatchCreateRepositoriesRequest, this field should be empty or match the parent specified there.

repository Repository

Required. The repository to create.

repositoryId string

Required. The ID to use for the repository, which will become the final component of the repository's resource name. This ID should be unique in the connection. Allows alphanumeric characters and any of -._~%!$&amp;'()*+,;=@.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationRepositoryOperationMetadata

The RPC response.

Example
// Create client
RepositoryManagerClient repositoryManagerClient = RepositoryManagerClient.Create();
// Initialize request argument(s)
ConnectionName parent = ConnectionName.FromProjectLocationConnection("[PROJECT]", "[LOCATION]", "[CONNECTION]");
Repository repository = new Repository();
string repositoryId = "";
// Make the request
Operation<Repository, OperationMetadata> response = repositoryManagerClient.CreateRepository(parent, repository, repositoryId);

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

CreateRepository(CreateRepositoryRequest, CallSettings)

public virtual Operation<Repository, OperationMetadata> CreateRepository(CreateRepositoryRequest request, CallSettings callSettings = null)

Creates a Repository.

Parameters
Name Description
request CreateRepositoryRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationRepositoryOperationMetadata

The RPC response.

Example
// Create client
RepositoryManagerClient repositoryManagerClient = RepositoryManagerClient.Create();
// Initialize request argument(s)
CreateRepositoryRequest request = new CreateRepositoryRequest
{
    ParentAsConnectionName = ConnectionName.FromProjectLocationConnection("[PROJECT]", "[LOCATION]", "[CONNECTION]"),
    Repository = new Repository(),
    RepositoryId = "",
};
// Make the request
Operation<Repository, OperationMetadata> response = repositoryManagerClient.CreateRepository(request);

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

CreateRepository(string, Repository, string, CallSettings)

public virtual Operation<Repository, OperationMetadata> CreateRepository(string parent, Repository repository, string repositoryId, CallSettings callSettings = null)

Creates a Repository.

Parameters
Name Description
parent string

Required. The connection to contain the repository. If the request is part of a BatchCreateRepositoriesRequest, this field should be empty or match the parent specified there.

repository Repository

Required. The repository to create.

repositoryId string

Required. The ID to use for the repository, which will become the final component of the repository's resource name. This ID should be unique in the connection. Allows alphanumeric characters and any of -._~%!$&amp;'()*+,;=@.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationRepositoryOperationMetadata

The RPC response.

Example
// Create client
RepositoryManagerClient repositoryManagerClient = RepositoryManagerClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/connections/[CONNECTION]";
Repository repository = new Repository();
string repositoryId = "";
// Make the request
Operation<Repository, OperationMetadata> response = repositoryManagerClient.CreateRepository(parent, repository, repositoryId);

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

CreateRepositoryAsync(ConnectionName, Repository, string, CallSettings)

public virtual Task<Operation<Repository, OperationMetadata>> CreateRepositoryAsync(ConnectionName parent, Repository repository, string repositoryId, CallSettings callSettings = null)

Creates a Repository.

Parameters
Name Description
parent ConnectionName

Required. The connection to contain the repository. If the request is part of a BatchCreateRepositoriesRequest, this field should be empty or match the parent specified there.

repository Repository

Required. The repository to create.

repositoryId string

Required. The ID to use for the repository, which will become the final component of the repository's resource name. This ID should be unique in the connection. Allows alphanumeric characters and any of -._~%!$&amp;'()*+,;=@.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationRepositoryOperationMetadata

A Task containing the RPC response.

Example
// Create client
RepositoryManagerClient repositoryManagerClient = await RepositoryManagerClient.CreateAsync();
// Initialize request argument(s)
ConnectionName parent = ConnectionName.FromProjectLocationConnection("[PROJECT]", "[LOCATION]", "[CONNECTION]");
Repository repository = new Repository();
string repositoryId = "";
// Make the request
Operation<Repository, OperationMetadata> response = await repositoryManagerClient.CreateRepositoryAsync(parent, repository, repositoryId);

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

CreateRepositoryAsync(ConnectionName, Repository, string, CancellationToken)

public virtual Task<Operation<Repository, OperationMetadata>> CreateRepositoryAsync(ConnectionName parent, Repository repository, string repositoryId, CancellationToken cancellationToken)

Creates a Repository.

Parameters
Name Description
parent ConnectionName

Required. The connection to contain the repository. If the request is part of a BatchCreateRepositoriesRequest, this field should be empty or match the parent specified there.

repository Repository

Required. The repository to create.

repositoryId string

Required. The ID to use for the repository, which will become the final component of the repository's resource name. This ID should be unique in the connection. Allows alphanumeric characters and any of -._~%!$&amp;'()*+,;=@.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationRepositoryOperationMetadata

A Task containing the RPC response.

Example
// Create client
RepositoryManagerClient repositoryManagerClient = await RepositoryManagerClient.CreateAsync();
// Initialize request argument(s)
ConnectionName parent = ConnectionName.FromProjectLocationConnection("[PROJECT]", "[LOCATION]", "[CONNECTION]");
Repository repository = new Repository();
string repositoryId = "";
// Make the request
Operation<Repository, OperationMetadata> response = await repositoryManagerClient.CreateRepositoryAsync(parent, repository, repositoryId);

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

CreateRepositoryAsync(CreateRepositoryRequest, CallSettings)

public virtual Task<Operation<Repository, OperationMetadata>> CreateRepositoryAsync(CreateRepositoryRequest request, CallSettings callSettings = null)

Creates a Repository.

Parameters
Name Description
request CreateRepositoryRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationRepositoryOperationMetadata

A Task containing the RPC response.

Example
// Create client
RepositoryManagerClient repositoryManagerClient = await RepositoryManagerClient.CreateAsync();
// Initialize request argument(s)
CreateRepositoryRequest request = new CreateRepositoryRequest
{
    ParentAsConnectionName = ConnectionName.FromProjectLocationConnection("[PROJECT]", "[LOCATION]", "[CONNECTION]"),
    Repository = new Repository(),
    RepositoryId = "",
};
// Make the request
Operation<Repository, OperationMetadata> response = await repositoryManagerClient.CreateRepositoryAsync(request);

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

CreateRepositoryAsync(CreateRepositoryRequest, CancellationToken)

public virtual Task<Operation<Repository, OperationMetadata>> CreateRepositoryAsync(CreateRepositoryRequest request, CancellationToken cancellationToken)

Creates a Repository.

Parameters
Name Description
request CreateRepositoryRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationRepositoryOperationMetadata

A Task containing the RPC response.

Example
// Create client
RepositoryManagerClient repositoryManagerClient = await RepositoryManagerClient.CreateAsync();
// Initialize request argument(s)
CreateRepositoryRequest request = new CreateRepositoryRequest
{
    ParentAsConnectionName = ConnectionName.FromProjectLocationConnection("[PROJECT]", "[LOCATION]", "[CONNECTION]"),
    Repository = new Repository(),
    RepositoryId = "",
};
// Make the request
Operation<Repository, OperationMetadata> response = await repositoryManagerClient.CreateRepositoryAsync(request);

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

CreateRepositoryAsync(string, Repository, string, CallSettings)

public virtual Task<Operation<Repository, OperationMetadata>> CreateRepositoryAsync(string parent, Repository repository, string repositoryId, CallSettings callSettings = null)

Creates a Repository.

Parameters
Name Description
parent string

Required. The connection to contain the repository. If the request is part of a BatchCreateRepositoriesRequest, this field should be empty or match the parent specified there.

repository Repository

Required. The repository to create.

repositoryId string

Required. The ID to use for the repository, which will become the final component of the repository's resource name. This ID should be unique in the connection. Allows alphanumeric characters and any of -._~%!$&amp;'()*+,;=@.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationRepositoryOperationMetadata

A Task containing the RPC response.

Example
// Create client
RepositoryManagerClient repositoryManagerClient = await RepositoryManagerClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/connections/[CONNECTION]";
Repository repository = new Repository();
string repositoryId = "";
// Make the request
Operation<Repository, OperationMetadata> response = await repositoryManagerClient.CreateRepositoryAsync(parent, repository, repositoryId);

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

CreateRepositoryAsync(string, Repository, string, CancellationToken)

public virtual Task<Operation<Repository, OperationMetadata>> CreateRepositoryAsync(string parent, Repository repository, string repositoryId, CancellationToken cancellationToken)

Creates a Repository.

Parameters
Name Description
parent string

Required. The connection to contain the repository. If the request is part of a BatchCreateRepositoriesRequest, this field should be empty or match the parent specified there.

repository Repository

Required. The repository to create.

repositoryId string

Required. The ID to use for the repository, which will become the final component of the repository's resource name. This ID should be unique in the connection. Allows alphanumeric characters and any of -._~%!$&amp;'()*+,;=@.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationRepositoryOperationMetadata

A Task containing the RPC response.

Example
// Create client
RepositoryManagerClient repositoryManagerClient = await RepositoryManagerClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/connections/[CONNECTION]";
Repository repository = new Repository();
string repositoryId = "";
// Make the request
Operation<Repository, OperationMetadata> response = await repositoryManagerClient.CreateRepositoryAsync(parent, repository, repositoryId);

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

DeleteConnection(ConnectionName, CallSettings)

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

Deletes a single connection.

Parameters
Name Description
name ConnectionName

Required. The name of the Connection to delete. Format: projects/*/locations/*/connections/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
RepositoryManagerClient repositoryManagerClient = RepositoryManagerClient.Create();
// Initialize request argument(s)
ConnectionName name = ConnectionName.FromProjectLocationConnection("[PROJECT]", "[LOCATION]", "[CONNECTION]");
// Make the request
Operation<Empty, OperationMetadata> response = repositoryManagerClient.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 = repositoryManagerClient.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
Name Description
request DeleteConnectionRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
RepositoryManagerClient repositoryManagerClient = RepositoryManagerClient.Create();
// Initialize request argument(s)
DeleteConnectionRequest request = new DeleteConnectionRequest
{
    ConnectionName = ConnectionName.FromProjectLocationConnection("[PROJECT]", "[LOCATION]", "[CONNECTION]"),
    Etag = "",
    ValidateOnly = false,
};
// Make the request
Operation<Empty, OperationMetadata> response = repositoryManagerClient.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 = repositoryManagerClient.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
Name Description
name string

Required. The name of the Connection to delete. Format: projects/*/locations/*/connections/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
RepositoryManagerClient repositoryManagerClient = RepositoryManagerClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/connections/[CONNECTION]";
// Make the request
Operation<Empty, OperationMetadata> response = repositoryManagerClient.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 = repositoryManagerClient.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
Name Description
name ConnectionName

Required. The name of the Connection to delete. Format: projects/*/locations/*/connections/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
RepositoryManagerClient repositoryManagerClient = await RepositoryManagerClient.CreateAsync();
// Initialize request argument(s)
ConnectionName name = ConnectionName.FromProjectLocationConnection("[PROJECT]", "[LOCATION]", "[CONNECTION]");
// Make the request
Operation<Empty, OperationMetadata> response = await repositoryManagerClient.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 repositoryManagerClient.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
Name Description
name ConnectionName

Required. The name of the Connection to delete. Format: projects/*/locations/*/connections/*.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
RepositoryManagerClient repositoryManagerClient = await RepositoryManagerClient.CreateAsync();
// Initialize request argument(s)
ConnectionName name = ConnectionName.FromProjectLocationConnection("[PROJECT]", "[LOCATION]", "[CONNECTION]");
// Make the request
Operation<Empty, OperationMetadata> response = await repositoryManagerClient.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 repositoryManagerClient.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
Name Description
request DeleteConnectionRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
RepositoryManagerClient repositoryManagerClient = await RepositoryManagerClient.CreateAsync();
// Initialize request argument(s)
DeleteConnectionRequest request = new DeleteConnectionRequest
{
    ConnectionName = ConnectionName.FromProjectLocationConnection("[PROJECT]", "[LOCATION]", "[CONNECTION]"),
    Etag = "",
    ValidateOnly = false,
};
// Make the request
Operation<Empty, OperationMetadata> response = await repositoryManagerClient.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 repositoryManagerClient.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
Name Description
request DeleteConnectionRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
RepositoryManagerClient repositoryManagerClient = await RepositoryManagerClient.CreateAsync();
// Initialize request argument(s)
DeleteConnectionRequest request = new DeleteConnectionRequest
{
    ConnectionName = ConnectionName.FromProjectLocationConnection("[PROJECT]", "[LOCATION]", "[CONNECTION]"),
    Etag = "",
    ValidateOnly = false,
};
// Make the request
Operation<Empty, OperationMetadata> response = await repositoryManagerClient.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 repositoryManagerClient.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
Name Description
name string

Required. The name of the Connection to delete. Format: projects/*/locations/*/connections/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
RepositoryManagerClient repositoryManagerClient = await RepositoryManagerClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/connections/[CONNECTION]";
// Make the request
Operation<Empty, OperationMetadata> response = await repositoryManagerClient.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 repositoryManagerClient.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
Name Description
name string

Required. The name of the Connection to delete. Format: projects/*/locations/*/connections/*.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
RepositoryManagerClient repositoryManagerClient = await RepositoryManagerClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/connections/[CONNECTION]";
// Make the request
Operation<Empty, OperationMetadata> response = await repositoryManagerClient.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 repositoryManagerClient.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;
}

DeleteRepository(DeleteRepositoryRequest, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteRepository(DeleteRepositoryRequest request, CallSettings callSettings = null)

Deletes a single repository.

Parameters
Name Description
request DeleteRepositoryRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
RepositoryManagerClient repositoryManagerClient = RepositoryManagerClient.Create();
// Initialize request argument(s)
DeleteRepositoryRequest request = new DeleteRepositoryRequest
{
    RepositoryName = RepositoryName.FromProjectLocationConnectionRepository("[PROJECT]", "[LOCATION]", "[CONNECTION]", "[REPOSITORY]"),
    Etag = "",
    ValidateOnly = false,
};
// Make the request
Operation<Empty, OperationMetadata> response = repositoryManagerClient.DeleteRepository(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 = repositoryManagerClient.PollOnceDeleteRepository(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;
}

DeleteRepository(RepositoryName, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteRepository(RepositoryName name, CallSettings callSettings = null)

Deletes a single repository.

Parameters
Name Description
name RepositoryName

Required. The name of the Repository to delete. Format: projects/*/locations/*/connections/*/repositories/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
RepositoryManagerClient repositoryManagerClient = RepositoryManagerClient.Create();
// Initialize request argument(s)
RepositoryName name = RepositoryName.FromProjectLocationConnectionRepository("[PROJECT]", "[LOCATION]", "[CONNECTION]", "[REPOSITORY]");
// Make the request
Operation<Empty, OperationMetadata> response = repositoryManagerClient.DeleteRepository(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 = repositoryManagerClient.PollOnceDeleteRepository(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;
}

DeleteRepository(string, CallSettings)

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

Deletes a single repository.

Parameters
Name Description
name string

Required. The name of the Repository to delete. Format: projects/*/locations/*/connections/*/repositories/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
RepositoryManagerClient repositoryManagerClient = RepositoryManagerClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/connections/[CONNECTION]/repositories/[REPOSITORY]";
// Make the request
Operation<Empty, OperationMetadata> response = repositoryManagerClient.DeleteRepository(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 = repositoryManagerClient.PollOnceDeleteRepository(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;
}

DeleteRepositoryAsync(DeleteRepositoryRequest, CallSettings)

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

Deletes a single repository.

Parameters
Name Description
request DeleteRepositoryRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
RepositoryManagerClient repositoryManagerClient = await RepositoryManagerClient.CreateAsync();
// Initialize request argument(s)
DeleteRepositoryRequest request = new DeleteRepositoryRequest
{
    RepositoryName = RepositoryName.FromProjectLocationConnectionRepository("[PROJECT]", "[LOCATION]", "[CONNECTION]", "[REPOSITORY]"),
    Etag = "",
    ValidateOnly = false,
};
// Make the request
Operation<Empty, OperationMetadata> response = await repositoryManagerClient.DeleteRepositoryAsync(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 repositoryManagerClient.PollOnceDeleteRepositoryAsync(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;
}

DeleteRepositoryAsync(DeleteRepositoryRequest, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteRepositoryAsync(DeleteRepositoryRequest request, CancellationToken cancellationToken)

Deletes a single repository.

Parameters
Name Description
request DeleteRepositoryRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
RepositoryManagerClient repositoryManagerClient = await RepositoryManagerClient.CreateAsync();
// Initialize request argument(s)
DeleteRepositoryRequest request = new DeleteRepositoryRequest
{
    RepositoryName = RepositoryName.FromProjectLocationConnectionRepository("[PROJECT]", "[LOCATION]", "[CONNECTION]", "[REPOSITORY]"),
    Etag = "",
    ValidateOnly = false,
};
// Make the request
Operation<Empty, OperationMetadata> response = await repositoryManagerClient.DeleteRepositoryAsync(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 repositoryManagerClient.PollOnceDeleteRepositoryAsync(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;
}

DeleteRepositoryAsync(RepositoryName, CallSettings)

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

Deletes a single repository.

Parameters
Name Description
name RepositoryName

Required. The name of the Repository to delete. Format: projects/*/locations/*/connections/*/repositories/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
RepositoryManagerClient repositoryManagerClient = await RepositoryManagerClient.CreateAsync();
// Initialize request argument(s)
RepositoryName name = RepositoryName.FromProjectLocationConnectionRepository("[PROJECT]", "[LOCATION]", "[CONNECTION]", "[REPOSITORY]");
// Make the request
Operation<Empty, OperationMetadata> response = await repositoryManagerClient.DeleteRepositoryAsync(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 repositoryManagerClient.PollOnceDeleteRepositoryAsync(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;
}

DeleteRepositoryAsync(RepositoryName, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteRepositoryAsync(RepositoryName name, CancellationToken cancellationToken)

Deletes a single repository.

Parameters
Name Description
name RepositoryName

Required. The name of the Repository to delete. Format: projects/*/locations/*/connections/*/repositories/*.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
RepositoryManagerClient repositoryManagerClient = await RepositoryManagerClient.CreateAsync();
// Initialize request argument(s)
RepositoryName name = RepositoryName.FromProjectLocationConnectionRepository("[PROJECT]", "[LOCATION]", "[CONNECTION]", "[REPOSITORY]");
// Make the request
Operation<Empty, OperationMetadata> response = await repositoryManagerClient.DeleteRepositoryAsync(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 repositoryManagerClient.PollOnceDeleteRepositoryAsync(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;
}

DeleteRepositoryAsync(string, CallSettings)

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

Deletes a single repository.

Parameters
Name Description
name string

Required. The name of the Repository to delete. Format: projects/*/locations/*/connections/*/repositories/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
RepositoryManagerClient repositoryManagerClient = await RepositoryManagerClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/connections/[CONNECTION]/repositories/[REPOSITORY]";
// Make the request
Operation<Empty, OperationMetadata> response = await repositoryManagerClient.DeleteRepositoryAsync(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 repositoryManagerClient.PollOnceDeleteRepositoryAsync(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;
}

DeleteRepositoryAsync(string, CancellationToken)

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

Deletes a single repository.

Parameters
Name Description
name string

Required. The name of the Repository to delete. Format: projects/*/locations/*/connections/*/repositories/*.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
RepositoryManagerClient repositoryManagerClient = await RepositoryManagerClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/connections/[CONNECTION]/repositories/[REPOSITORY]";
// Make the request
Operation<Empty, OperationMetadata> response = await repositoryManagerClient.DeleteRepositoryAsync(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 repositoryManagerClient.PollOnceDeleteRepositoryAsync(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;
}

FetchGitRefs(FetchGitRefsRequest, CallSettings)

public virtual FetchGitRefsResponse FetchGitRefs(FetchGitRefsRequest request, CallSettings callSettings = null)

Fetch the list of branches or tags for a given repository.

Parameters
Name Description
request FetchGitRefsRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
FetchGitRefsResponse

The RPC response.

Example
// Create client
RepositoryManagerClient repositoryManagerClient = RepositoryManagerClient.Create();
// Initialize request argument(s)
FetchGitRefsRequest request = new FetchGitRefsRequest
{
    RepositoryAsRepositoryName = RepositoryName.FromProjectLocationConnectionRepository("[PROJECT]", "[LOCATION]", "[CONNECTION]", "[REPOSITORY]"),
    RefType = FetchGitRefsRequest.Types.RefType.Unspecified,
};
// Make the request
FetchGitRefsResponse response = repositoryManagerClient.FetchGitRefs(request);

FetchGitRefs(RepositoryName, CallSettings)

public virtual FetchGitRefsResponse FetchGitRefs(RepositoryName repository, CallSettings callSettings = null)

Fetch the list of branches or tags for a given repository.

Parameters
Name Description
repository RepositoryName

Required. The resource name of the repository in the format projects/*/locations/*/connections/*/repositories/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
FetchGitRefsResponse

The RPC response.

Example
// Create client
RepositoryManagerClient repositoryManagerClient = RepositoryManagerClient.Create();
// Initialize request argument(s)
RepositoryName repository = RepositoryName.FromProjectLocationConnectionRepository("[PROJECT]", "[LOCATION]", "[CONNECTION]", "[REPOSITORY]");
// Make the request
FetchGitRefsResponse response = repositoryManagerClient.FetchGitRefs(repository);

FetchGitRefs(string, CallSettings)

public virtual FetchGitRefsResponse FetchGitRefs(string repository, CallSettings callSettings = null)

Fetch the list of branches or tags for a given repository.

Parameters
Name Description
repository string

Required. The resource name of the repository in the format projects/*/locations/*/connections/*/repositories/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
FetchGitRefsResponse

The RPC response.

Example
// Create client
RepositoryManagerClient repositoryManagerClient = RepositoryManagerClient.Create();
// Initialize request argument(s)
string repository = "projects/[PROJECT]/locations/[LOCATION]/connections/[CONNECTION]/repositories/[REPOSITORY]";
// Make the request
FetchGitRefsResponse response = repositoryManagerClient.FetchGitRefs(repository);

FetchGitRefsAsync(FetchGitRefsRequest, CallSettings)

public virtual Task<FetchGitRefsResponse> FetchGitRefsAsync(FetchGitRefsRequest request, CallSettings callSettings = null)

Fetch the list of branches or tags for a given repository.

Parameters
Name Description
request FetchGitRefsRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskFetchGitRefsResponse

A Task containing the RPC response.

Example
// Create client
RepositoryManagerClient repositoryManagerClient = await RepositoryManagerClient.CreateAsync();
// Initialize request argument(s)
FetchGitRefsRequest request = new FetchGitRefsRequest
{
    RepositoryAsRepositoryName = RepositoryName.FromProjectLocationConnectionRepository("[PROJECT]", "[LOCATION]", "[CONNECTION]", "[REPOSITORY]"),
    RefType = FetchGitRefsRequest.Types.RefType.Unspecified,
};
// Make the request
FetchGitRefsResponse response = await repositoryManagerClient.FetchGitRefsAsync(request);

FetchGitRefsAsync(FetchGitRefsRequest, CancellationToken)

public virtual Task<FetchGitRefsResponse> FetchGitRefsAsync(FetchGitRefsRequest request, CancellationToken cancellationToken)

Fetch the list of branches or tags for a given repository.

Parameters
Name Description
request FetchGitRefsRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskFetchGitRefsResponse

A Task containing the RPC response.

Example
// Create client
RepositoryManagerClient repositoryManagerClient = await RepositoryManagerClient.CreateAsync();
// Initialize request argument(s)
FetchGitRefsRequest request = new FetchGitRefsRequest
{
    RepositoryAsRepositoryName = RepositoryName.FromProjectLocationConnectionRepository("[PROJECT]", "[LOCATION]", "[CONNECTION]", "[REPOSITORY]"),
    RefType = FetchGitRefsRequest.Types.RefType.Unspecified,
};
// Make the request
FetchGitRefsResponse response = await repositoryManagerClient.FetchGitRefsAsync(request);

FetchGitRefsAsync(RepositoryName, CallSettings)

public virtual Task<FetchGitRefsResponse> FetchGitRefsAsync(RepositoryName repository, CallSettings callSettings = null)

Fetch the list of branches or tags for a given repository.

Parameters
Name Description
repository RepositoryName

Required. The resource name of the repository in the format projects/*/locations/*/connections/*/repositories/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskFetchGitRefsResponse

A Task containing the RPC response.

Example
// Create client
RepositoryManagerClient repositoryManagerClient = await RepositoryManagerClient.CreateAsync();
// Initialize request argument(s)
RepositoryName repository = RepositoryName.FromProjectLocationConnectionRepository("[PROJECT]", "[LOCATION]", "[CONNECTION]", "[REPOSITORY]");
// Make the request
FetchGitRefsResponse response = await repositoryManagerClient.FetchGitRefsAsync(repository);

FetchGitRefsAsync(RepositoryName, CancellationToken)

public virtual Task<FetchGitRefsResponse> FetchGitRefsAsync(RepositoryName repository, CancellationToken cancellationToken)

Fetch the list of branches or tags for a given repository.

Parameters
Name Description
repository RepositoryName

Required. The resource name of the repository in the format projects/*/locations/*/connections/*/repositories/*.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskFetchGitRefsResponse

A Task containing the RPC response.

Example
// Create client
RepositoryManagerClient repositoryManagerClient = await RepositoryManagerClient.CreateAsync();
// Initialize request argument(s)
RepositoryName repository = RepositoryName.FromProjectLocationConnectionRepository("[PROJECT]", "[LOCATION]", "[CONNECTION]", "[REPOSITORY]");
// Make the request
FetchGitRefsResponse response = await repositoryManagerClient.FetchGitRefsAsync(repository);

FetchGitRefsAsync(string, CallSettings)

public virtual Task<FetchGitRefsResponse> FetchGitRefsAsync(string repository, CallSettings callSettings = null)

Fetch the list of branches or tags for a given repository.

Parameters
Name Description
repository string

Required. The resource name of the repository in the format projects/*/locations/*/connections/*/repositories/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskFetchGitRefsResponse

A Task containing the RPC response.

Example
// Create client
RepositoryManagerClient repositoryManagerClient = await RepositoryManagerClient.CreateAsync();
// Initialize request argument(s)
string repository = "projects/[PROJECT]/locations/[LOCATION]/connections/[CONNECTION]/repositories/[REPOSITORY]";
// Make the request
FetchGitRefsResponse response = await repositoryManagerClient.FetchGitRefsAsync(repository);

FetchGitRefsAsync(string, CancellationToken)

public virtual Task<FetchGitRefsResponse> FetchGitRefsAsync(string repository, CancellationToken cancellationToken)

Fetch the list of branches or tags for a given repository.

Parameters
Name Description
repository string

Required. The resource name of the repository in the format projects/*/locations/*/connections/*/repositories/*.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskFetchGitRefsResponse

A Task containing the RPC response.

Example
// Create client
RepositoryManagerClient repositoryManagerClient = await RepositoryManagerClient.CreateAsync();
// Initialize request argument(s)
string repository = "projects/[PROJECT]/locations/[LOCATION]/connections/[CONNECTION]/repositories/[REPOSITORY]";
// Make the request
FetchGitRefsResponse response = await repositoryManagerClient.FetchGitRefsAsync(repository);

FetchLinkableRepositories(FetchLinkableRepositoriesRequest, CallSettings)

public virtual PagedEnumerable<FetchLinkableRepositoriesResponse, Repository> FetchLinkableRepositories(FetchLinkableRepositoriesRequest request, CallSettings callSettings = null)

FetchLinkableRepositories get repositories from SCM that are accessible and could be added to the connection.

Parameters
Name Description
request FetchLinkableRepositoriesRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableFetchLinkableRepositoriesResponseRepository

A pageable sequence of Repository resources.

Example
// Create client
RepositoryManagerClient repositoryManagerClient = RepositoryManagerClient.Create();
// Initialize request argument(s)
FetchLinkableRepositoriesRequest request = new FetchLinkableRepositoriesRequest
{
    ConnectionAsConnectionName = ConnectionName.FromProjectLocationConnection("[PROJECT]", "[LOCATION]", "[CONNECTION]"),
};
// Make the request
PagedEnumerable<FetchLinkableRepositoriesResponse, Repository> response = repositoryManagerClient.FetchLinkableRepositories(request);

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

FetchLinkableRepositoriesAsync(FetchLinkableRepositoriesRequest, CallSettings)

public virtual PagedAsyncEnumerable<FetchLinkableRepositoriesResponse, Repository> FetchLinkableRepositoriesAsync(FetchLinkableRepositoriesRequest request, CallSettings callSettings = null)

FetchLinkableRepositories get repositories from SCM that are accessible and could be added to the connection.

Parameters
Name Description
request FetchLinkableRepositoriesRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableFetchLinkableRepositoriesResponseRepository

A pageable asynchronous sequence of Repository resources.

Example
// Create client
RepositoryManagerClient repositoryManagerClient = await RepositoryManagerClient.CreateAsync();
// Initialize request argument(s)
FetchLinkableRepositoriesRequest request = new FetchLinkableRepositoriesRequest
{
    ConnectionAsConnectionName = ConnectionName.FromProjectLocationConnection("[PROJECT]", "[LOCATION]", "[CONNECTION]"),
};
// Make the request
PagedAsyncEnumerable<FetchLinkableRepositoriesResponse, Repository> response = repositoryManagerClient.FetchLinkableRepositoriesAsync(request);

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

FetchReadToken(FetchReadTokenRequest, CallSettings)

public virtual FetchReadTokenResponse FetchReadToken(FetchReadTokenRequest request, CallSettings callSettings = null)

Fetches read token of a given repository.

Parameters
Name Description
request FetchReadTokenRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
FetchReadTokenResponse

The RPC response.

Example
// Create client
RepositoryManagerClient repositoryManagerClient = RepositoryManagerClient.Create();
// Initialize request argument(s)
FetchReadTokenRequest request = new FetchReadTokenRequest
{
    RepositoryAsRepositoryName = RepositoryName.FromProjectLocationConnectionRepository("[PROJECT]", "[LOCATION]", "[CONNECTION]", "[REPOSITORY]"),
};
// Make the request
FetchReadTokenResponse response = repositoryManagerClient.FetchReadToken(request);

FetchReadToken(RepositoryName, CallSettings)

public virtual FetchReadTokenResponse FetchReadToken(RepositoryName repository, CallSettings callSettings = null)

Fetches read token of a given repository.

Parameters
Name Description
repository RepositoryName

Required. The resource name of the repository in the format projects/*/locations/*/connections/*/repositories/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
FetchReadTokenResponse

The RPC response.

Example
// Create client
RepositoryManagerClient repositoryManagerClient = RepositoryManagerClient.Create();
// Initialize request argument(s)
RepositoryName repository = RepositoryName.FromProjectLocationConnectionRepository("[PROJECT]", "[LOCATION]", "[CONNECTION]", "[REPOSITORY]");
// Make the request
FetchReadTokenResponse response = repositoryManagerClient.FetchReadToken(repository);

FetchReadToken(string, CallSettings)

public virtual FetchReadTokenResponse FetchReadToken(string repository, CallSettings callSettings = null)

Fetches read token of a given repository.

Parameters
Name Description
repository string

Required. The resource name of the repository in the format projects/*/locations/*/connections/*/repositories/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
FetchReadTokenResponse

The RPC response.

Example
// Create client
RepositoryManagerClient repositoryManagerClient = RepositoryManagerClient.Create();
// Initialize request argument(s)
string repository = "projects/[PROJECT]/locations/[LOCATION]/connections/[CONNECTION]/repositories/[REPOSITORY]";
// Make the request
FetchReadTokenResponse response = repositoryManagerClient.FetchReadToken(repository);

FetchReadTokenAsync(FetchReadTokenRequest, CallSettings)

public virtual Task<FetchReadTokenResponse> FetchReadTokenAsync(FetchReadTokenRequest request, CallSettings callSettings = null)

Fetches read token of a given repository.

Parameters
Name Description
request FetchReadTokenRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskFetchReadTokenResponse

A Task containing the RPC response.

Example
// Create client
RepositoryManagerClient repositoryManagerClient = await RepositoryManagerClient.CreateAsync();
// Initialize request argument(s)
FetchReadTokenRequest request = new FetchReadTokenRequest
{
    RepositoryAsRepositoryName = RepositoryName.FromProjectLocationConnectionRepository("[PROJECT]", "[LOCATION]", "[CONNECTION]", "[REPOSITORY]"),
};
// Make the request
FetchReadTokenResponse response = await repositoryManagerClient.FetchReadTokenAsync(request);

FetchReadTokenAsync(FetchReadTokenRequest, CancellationToken)

public virtual Task<FetchReadTokenResponse> FetchReadTokenAsync(FetchReadTokenRequest request, CancellationToken cancellationToken)

Fetches read token of a given repository.

Parameters
Name Description
request FetchReadTokenRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskFetchReadTokenResponse

A Task containing the RPC response.

Example
// Create client
RepositoryManagerClient repositoryManagerClient = await RepositoryManagerClient.CreateAsync();
// Initialize request argument(s)
FetchReadTokenRequest request = new FetchReadTokenRequest
{
    RepositoryAsRepositoryName = RepositoryName.FromProjectLocationConnectionRepository("[PROJECT]", "[LOCATION]", "[CONNECTION]", "[REPOSITORY]"),
};
// Make the request
FetchReadTokenResponse response = await repositoryManagerClient.FetchReadTokenAsync(request);

FetchReadTokenAsync(RepositoryName, CallSettings)

public virtual Task<FetchReadTokenResponse> FetchReadTokenAsync(RepositoryName repository, CallSettings callSettings = null)

Fetches read token of a given repository.

Parameters
Name Description
repository RepositoryName

Required. The resource name of the repository in the format projects/*/locations/*/connections/*/repositories/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskFetchReadTokenResponse

A Task containing the RPC response.

Example
// Create client
RepositoryManagerClient repositoryManagerClient = await RepositoryManagerClient.CreateAsync();
// Initialize request argument(s)
RepositoryName repository = RepositoryName.FromProjectLocationConnectionRepository("[PROJECT]", "[LOCATION]", "[CONNECTION]", "[REPOSITORY]");
// Make the request
FetchReadTokenResponse response = await repositoryManagerClient.FetchReadTokenAsync(repository);

FetchReadTokenAsync(RepositoryName, CancellationToken)

public virtual Task<FetchReadTokenResponse> FetchReadTokenAsync(RepositoryName repository, CancellationToken cancellationToken)

Fetches read token of a given repository.

Parameters
Name Description
repository RepositoryName

Required. The resource name of the repository in the format projects/*/locations/*/connections/*/repositories/*.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskFetchReadTokenResponse

A Task containing the RPC response.

Example
// Create client
RepositoryManagerClient repositoryManagerClient = await RepositoryManagerClient.CreateAsync();
// Initialize request argument(s)
RepositoryName repository = RepositoryName.FromProjectLocationConnectionRepository("[PROJECT]", "[LOCATION]", "[CONNECTION]", "[REPOSITORY]");
// Make the request
FetchReadTokenResponse response = await repositoryManagerClient.FetchReadTokenAsync(repository);

FetchReadTokenAsync(string, CallSettings)

public virtual Task<FetchReadTokenResponse> FetchReadTokenAsync(string repository, CallSettings callSettings = null)

Fetches read token of a given repository.

Parameters
Name Description
repository string

Required. The resource name of the repository in the format projects/*/locations/*/connections/*/repositories/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskFetchReadTokenResponse

A Task containing the RPC response.

Example
// Create client
RepositoryManagerClient repositoryManagerClient = await RepositoryManagerClient.CreateAsync();
// Initialize request argument(s)
string repository = "projects/[PROJECT]/locations/[LOCATION]/connections/[CONNECTION]/repositories/[REPOSITORY]";
// Make the request
FetchReadTokenResponse response = await repositoryManagerClient.FetchReadTokenAsync(repository);

FetchReadTokenAsync(string, CancellationToken)

public virtual Task<FetchReadTokenResponse> FetchReadTokenAsync(string repository, CancellationToken cancellationToken)

Fetches read token of a given repository.

Parameters
Name Description
repository string

Required. The resource name of the repository in the format projects/*/locations/*/connections/*/repositories/*.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskFetchReadTokenResponse

A Task containing the RPC response.

Example
// Create client
RepositoryManagerClient repositoryManagerClient = await RepositoryManagerClient.CreateAsync();
// Initialize request argument(s)
string repository = "projects/[PROJECT]/locations/[LOCATION]/connections/[CONNECTION]/repositories/[REPOSITORY]";
// Make the request
FetchReadTokenResponse response = await repositoryManagerClient.FetchReadTokenAsync(repository);

FetchReadWriteToken(FetchReadWriteTokenRequest, CallSettings)

public virtual FetchReadWriteTokenResponse FetchReadWriteToken(FetchReadWriteTokenRequest request, CallSettings callSettings = null)

Fetches read/write token of a given repository.

Parameters
Name Description
request FetchReadWriteTokenRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
FetchReadWriteTokenResponse

The RPC response.

Example
// Create client
RepositoryManagerClient repositoryManagerClient = RepositoryManagerClient.Create();
// Initialize request argument(s)
FetchReadWriteTokenRequest request = new FetchReadWriteTokenRequest
{
    RepositoryAsRepositoryName = RepositoryName.FromProjectLocationConnectionRepository("[PROJECT]", "[LOCATION]", "[CONNECTION]", "[REPOSITORY]"),
};
// Make the request
FetchReadWriteTokenResponse response = repositoryManagerClient.FetchReadWriteToken(request);

FetchReadWriteToken(RepositoryName, CallSettings)

public virtual FetchReadWriteTokenResponse FetchReadWriteToken(RepositoryName repository, CallSettings callSettings = null)

Fetches read/write token of a given repository.

Parameters
Name Description
repository RepositoryName

Required. The resource name of the repository in the format projects/*/locations/*/connections/*/repositories/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
FetchReadWriteTokenResponse

The RPC response.

Example
// Create client
RepositoryManagerClient repositoryManagerClient = RepositoryManagerClient.Create();
// Initialize request argument(s)
RepositoryName repository = RepositoryName.FromProjectLocationConnectionRepository("[PROJECT]", "[LOCATION]", "[CONNECTION]", "[REPOSITORY]");
// Make the request
FetchReadWriteTokenResponse response = repositoryManagerClient.FetchReadWriteToken(repository);

FetchReadWriteToken(string, CallSettings)

public virtual FetchReadWriteTokenResponse FetchReadWriteToken(string repository, CallSettings callSettings = null)

Fetches read/write token of a given repository.

Parameters
Name Description
repository string

Required. The resource name of the repository in the format projects/*/locations/*/connections/*/repositories/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
FetchReadWriteTokenResponse

The RPC response.

Example
// Create client
RepositoryManagerClient repositoryManagerClient = RepositoryManagerClient.Create();
// Initialize request argument(s)
string repository = "projects/[PROJECT]/locations/[LOCATION]/connections/[CONNECTION]/repositories/[REPOSITORY]";
// Make the request
FetchReadWriteTokenResponse response = repositoryManagerClient.FetchReadWriteToken(repository);

FetchReadWriteTokenAsync(FetchReadWriteTokenRequest, CallSettings)

public virtual Task<FetchReadWriteTokenResponse> FetchReadWriteTokenAsync(FetchReadWriteTokenRequest request, CallSettings callSettings = null)

Fetches read/write token of a given repository.

Parameters
Name Description
request FetchReadWriteTokenRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskFetchReadWriteTokenResponse

A Task containing the RPC response.

Example
// Create client
RepositoryManagerClient repositoryManagerClient = await RepositoryManagerClient.CreateAsync();
// Initialize request argument(s)
FetchReadWriteTokenRequest request = new FetchReadWriteTokenRequest
{
    RepositoryAsRepositoryName = RepositoryName.FromProjectLocationConnectionRepository("[PROJECT]", "[LOCATION]", "[CONNECTION]", "[REPOSITORY]"),
};
// Make the request
FetchReadWriteTokenResponse response = await repositoryManagerClient.FetchReadWriteTokenAsync(request);

FetchReadWriteTokenAsync(FetchReadWriteTokenRequest, CancellationToken)

public virtual Task<FetchReadWriteTokenResponse> FetchReadWriteTokenAsync(FetchReadWriteTokenRequest request, CancellationToken cancellationToken)

Fetches read/write token of a given repository.

Parameters
Name Description
request FetchReadWriteTokenRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskFetchReadWriteTokenResponse

A Task containing the RPC response.

Example
// Create client
RepositoryManagerClient repositoryManagerClient = await RepositoryManagerClient.CreateAsync();
// Initialize request argument(s)
FetchReadWriteTokenRequest request = new FetchReadWriteTokenRequest
{
    RepositoryAsRepositoryName = RepositoryName.FromProjectLocationConnectionRepository("[PROJECT]", "[LOCATION]", "[CONNECTION]", "[REPOSITORY]"),
};
// Make the request
FetchReadWriteTokenResponse response = await repositoryManagerClient.FetchReadWriteTokenAsync(request);

FetchReadWriteTokenAsync(RepositoryName, CallSettings)

public virtual Task<FetchReadWriteTokenResponse> FetchReadWriteTokenAsync(RepositoryName repository, CallSettings callSettings = null)

Fetches read/write token of a given repository.

Parameters
Name Description
repository RepositoryName

Required. The resource name of the repository in the format projects/*/locations/*/connections/*/repositories/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskFetchReadWriteTokenResponse

A Task containing the RPC response.

Example
// Create client
RepositoryManagerClient repositoryManagerClient = await RepositoryManagerClient.CreateAsync();
// Initialize request argument(s)
RepositoryName repository = RepositoryName.FromProjectLocationConnectionRepository("[PROJECT]", "[LOCATION]", "[CONNECTION]", "[REPOSITORY]");
// Make the request
FetchReadWriteTokenResponse response = await repositoryManagerClient.FetchReadWriteTokenAsync(repository);

FetchReadWriteTokenAsync(RepositoryName, CancellationToken)

public virtual Task<FetchReadWriteTokenResponse> FetchReadWriteTokenAsync(RepositoryName repository, CancellationToken cancellationToken)

Fetches read/write token of a given repository.

Parameters
Name Description
repository RepositoryName

Required. The resource name of the repository in the format projects/*/locations/*/connections/*/repositories/*.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskFetchReadWriteTokenResponse

A Task containing the RPC response.

Example
// Create client
RepositoryManagerClient repositoryManagerClient = await RepositoryManagerClient.CreateAsync();
// Initialize request argument(s)
RepositoryName repository = RepositoryName.FromProjectLocationConnectionRepository("[PROJECT]", "[LOCATION]", "[CONNECTION]", "[REPOSITORY]");
// Make the request
FetchReadWriteTokenResponse response = await repositoryManagerClient.FetchReadWriteTokenAsync(repository);

FetchReadWriteTokenAsync(string, CallSettings)

public virtual Task<FetchReadWriteTokenResponse> FetchReadWriteTokenAsync(string repository, CallSettings callSettings = null)

Fetches read/write token of a given repository.

Parameters
Name Description
repository string

Required. The resource name of the repository in the format projects/*/locations/*/connections/*/repositories/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskFetchReadWriteTokenResponse

A Task containing the RPC response.

Example
// Create client
RepositoryManagerClient repositoryManagerClient = await RepositoryManagerClient.CreateAsync();
// Initialize request argument(s)
string repository = "projects/[PROJECT]/locations/[LOCATION]/connections/[CONNECTION]/repositories/[REPOSITORY]";
// Make the request
FetchReadWriteTokenResponse response = await repositoryManagerClient.FetchReadWriteTokenAsync(repository);

FetchReadWriteTokenAsync(string, CancellationToken)

public virtual Task<FetchReadWriteTokenResponse> FetchReadWriteTokenAsync(string repository, CancellationToken cancellationToken)

Fetches read/write token of a given repository.

Parameters
Name Description
repository string

Required. The resource name of the repository in the format projects/*/locations/*/connections/*/repositories/*.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskFetchReadWriteTokenResponse

A Task containing the RPC response.

Example
// Create client
RepositoryManagerClient repositoryManagerClient = await RepositoryManagerClient.CreateAsync();
// Initialize request argument(s)
string repository = "projects/[PROJECT]/locations/[LOCATION]/connections/[CONNECTION]/repositories/[REPOSITORY]";
// Make the request
FetchReadWriteTokenResponse response = await repositoryManagerClient.FetchReadWriteTokenAsync(repository);

GetConnection(ConnectionName, CallSettings)

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

Gets details of a single connection.

Parameters
Name Description
name ConnectionName

Required. The name of the Connection to retrieve. Format: projects/*/locations/*/connections/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Connection

The RPC response.

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

GetConnection(GetConnectionRequest, CallSettings)

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

Gets details of a single connection.

Parameters
Name Description
request GetConnectionRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Connection

The RPC response.

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

GetConnection(string, CallSettings)

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

Gets details of a single connection.

Parameters
Name Description
name string

Required. The name of the Connection to retrieve. Format: projects/*/locations/*/connections/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Connection

The RPC response.

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

GetConnectionAsync(ConnectionName, CallSettings)

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

Gets details of a single connection.

Parameters
Name Description
name ConnectionName

Required. The name of the Connection to retrieve. Format: projects/*/locations/*/connections/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskConnection

A Task containing the RPC response.

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

GetConnectionAsync(ConnectionName, CancellationToken)

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

Gets details of a single connection.

Parameters
Name Description
name ConnectionName

Required. The name of the Connection to retrieve. Format: projects/*/locations/*/connections/*.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskConnection

A Task containing the RPC response.

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

GetConnectionAsync(GetConnectionRequest, CallSettings)

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

Gets details of a single connection.

Parameters
Name Description
request GetConnectionRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskConnection

A Task containing the RPC response.

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

GetConnectionAsync(GetConnectionRequest, CancellationToken)

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

Gets details of a single connection.

Parameters
Name Description
request GetConnectionRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskConnection

A Task containing the RPC response.

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

GetConnectionAsync(string, CallSettings)

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

Gets details of a single connection.

Parameters
Name Description
name string

Required. The name of the Connection to retrieve. Format: projects/*/locations/*/connections/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskConnection

A Task containing the RPC response.

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

GetConnectionAsync(string, CancellationToken)

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

Gets details of a single connection.

Parameters
Name Description
name string

Required. The name of the Connection to retrieve. Format: projects/*/locations/*/connections/*.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskConnection

A Task containing the RPC response.

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

GetRepository(GetRepositoryRequest, CallSettings)

public virtual Repository GetRepository(GetRepositoryRequest request, CallSettings callSettings = null)

Gets details of a single repository.

Parameters
Name Description
request GetRepositoryRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Repository

The RPC response.

Example
// Create client
RepositoryManagerClient repositoryManagerClient = RepositoryManagerClient.Create();
// Initialize request argument(s)
GetRepositoryRequest request = new GetRepositoryRequest
{
    RepositoryName = RepositoryName.FromProjectLocationConnectionRepository("[PROJECT]", "[LOCATION]", "[CONNECTION]", "[REPOSITORY]"),
};
// Make the request
Repository response = repositoryManagerClient.GetRepository(request);

GetRepository(RepositoryName, CallSettings)

public virtual Repository GetRepository(RepositoryName name, CallSettings callSettings = null)

Gets details of a single repository.

Parameters
Name Description
name RepositoryName

Required. The name of the Repository to retrieve. Format: projects/*/locations/*/connections/*/repositories/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Repository

The RPC response.

Example
// Create client
RepositoryManagerClient repositoryManagerClient = RepositoryManagerClient.Create();
// Initialize request argument(s)
RepositoryName name = RepositoryName.FromProjectLocationConnectionRepository("[PROJECT]", "[LOCATION]", "[CONNECTION]", "[REPOSITORY]");
// Make the request
Repository response = repositoryManagerClient.GetRepository(name);

GetRepository(string, CallSettings)

public virtual Repository GetRepository(string name, CallSettings callSettings = null)

Gets details of a single repository.

Parameters
Name Description
name string

Required. The name of the Repository to retrieve. Format: projects/*/locations/*/connections/*/repositories/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Repository

The RPC response.

Example
// Create client
RepositoryManagerClient repositoryManagerClient = RepositoryManagerClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/connections/[CONNECTION]/repositories/[REPOSITORY]";
// Make the request
Repository response = repositoryManagerClient.GetRepository(name);

GetRepositoryAsync(GetRepositoryRequest, CallSettings)

public virtual Task<Repository> GetRepositoryAsync(GetRepositoryRequest request, CallSettings callSettings = null)

Gets details of a single repository.

Parameters
Name Description
request GetRepositoryRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskRepository

A Task containing the RPC response.

Example
// Create client
RepositoryManagerClient repositoryManagerClient = await RepositoryManagerClient.CreateAsync();
// Initialize request argument(s)
GetRepositoryRequest request = new GetRepositoryRequest
{
    RepositoryName = RepositoryName.FromProjectLocationConnectionRepository("[PROJECT]", "[LOCATION]", "[CONNECTION]", "[REPOSITORY]"),
};
// Make the request
Repository response = await repositoryManagerClient.GetRepositoryAsync(request);

GetRepositoryAsync(GetRepositoryRequest, CancellationToken)

public virtual Task<Repository> GetRepositoryAsync(GetRepositoryRequest request, CancellationToken cancellationToken)

Gets details of a single repository.

Parameters
Name Description
request GetRepositoryRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskRepository

A Task containing the RPC response.

Example
// Create client
RepositoryManagerClient repositoryManagerClient = await RepositoryManagerClient.CreateAsync();
// Initialize request argument(s)
GetRepositoryRequest request = new GetRepositoryRequest
{
    RepositoryName = RepositoryName.FromProjectLocationConnectionRepository("[PROJECT]", "[LOCATION]", "[CONNECTION]", "[REPOSITORY]"),
};
// Make the request
Repository response = await repositoryManagerClient.GetRepositoryAsync(request);

GetRepositoryAsync(RepositoryName, CallSettings)

public virtual Task<Repository> GetRepositoryAsync(RepositoryName name, CallSettings callSettings = null)

Gets details of a single repository.

Parameters
Name Description
name RepositoryName

Required. The name of the Repository to retrieve. Format: projects/*/locations/*/connections/*/repositories/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskRepository

A Task containing the RPC response.

Example
// Create client
RepositoryManagerClient repositoryManagerClient = await RepositoryManagerClient.CreateAsync();
// Initialize request argument(s)
RepositoryName name = RepositoryName.FromProjectLocationConnectionRepository("[PROJECT]", "[LOCATION]", "[CONNECTION]", "[REPOSITORY]");
// Make the request
Repository response = await repositoryManagerClient.GetRepositoryAsync(name);

GetRepositoryAsync(RepositoryName, CancellationToken)

public virtual Task<Repository> GetRepositoryAsync(RepositoryName name, CancellationToken cancellationToken)

Gets details of a single repository.

Parameters
Name Description
name RepositoryName

Required. The name of the Repository to retrieve. Format: projects/*/locations/*/connections/*/repositories/*.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskRepository

A Task containing the RPC response.

Example
// Create client
RepositoryManagerClient repositoryManagerClient = await RepositoryManagerClient.CreateAsync();
// Initialize request argument(s)
RepositoryName name = RepositoryName.FromProjectLocationConnectionRepository("[PROJECT]", "[LOCATION]", "[CONNECTION]", "[REPOSITORY]");
// Make the request
Repository response = await repositoryManagerClient.GetRepositoryAsync(name);

GetRepositoryAsync(string, CallSettings)

public virtual Task<Repository> GetRepositoryAsync(string name, CallSettings callSettings = null)

Gets details of a single repository.

Parameters
Name Description
name string

Required. The name of the Repository to retrieve. Format: projects/*/locations/*/connections/*/repositories/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskRepository

A Task containing the RPC response.

Example
// Create client
RepositoryManagerClient repositoryManagerClient = await RepositoryManagerClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/connections/[CONNECTION]/repositories/[REPOSITORY]";
// Make the request
Repository response = await repositoryManagerClient.GetRepositoryAsync(name);

GetRepositoryAsync(string, CancellationToken)

public virtual Task<Repository> GetRepositoryAsync(string name, CancellationToken cancellationToken)

Gets details of a single repository.

Parameters
Name Description
name string

Required. The name of the Repository to retrieve. Format: projects/*/locations/*/connections/*/repositories/*.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskRepository

A Task containing the RPC response.

Example
// Create client
RepositoryManagerClient repositoryManagerClient = await RepositoryManagerClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/connections/[CONNECTION]/repositories/[REPOSITORY]";
// Make the request
Repository response = await repositoryManagerClient.GetRepositoryAsync(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
Name Description
parent LocationName

Required. The parent, which owns this collection of Connections. Format: projects/*/locations/*.

pageToken string

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

pageSize int

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.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListConnectionsResponseConnection

A pageable sequence of Connection resources.

Example
// Create client
RepositoryManagerClient repositoryManagerClient = RepositoryManagerClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListConnectionsResponse, Connection> response = repositoryManagerClient.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
Name Description
request ListConnectionsRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListConnectionsResponseConnection

A pageable sequence of Connection resources.

Example
// Create client
RepositoryManagerClient repositoryManagerClient = RepositoryManagerClient.Create();
// Initialize request argument(s)
ListConnectionsRequest request = new ListConnectionsRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
};
// Make the request
PagedEnumerable<ListConnectionsResponse, Connection> response = repositoryManagerClient.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
Name Description
parent string

Required. The parent, which owns this collection of Connections. Format: projects/*/locations/*.

pageToken string

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

pageSize int

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.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListConnectionsResponseConnection

A pageable sequence of Connection resources.

Example
// Create client
RepositoryManagerClient repositoryManagerClient = RepositoryManagerClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListConnectionsResponse, Connection> response = repositoryManagerClient.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
Name Description
parent LocationName

Required. The parent, which owns this collection of Connections. Format: projects/*/locations/*.

pageToken string

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

pageSize int

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.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListConnectionsResponseConnection

A pageable asynchronous sequence of Connection resources.

Example
// Create client
RepositoryManagerClient repositoryManagerClient = await RepositoryManagerClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListConnectionsResponse, Connection> response = repositoryManagerClient.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
Name Description
request ListConnectionsRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListConnectionsResponseConnection

A pageable asynchronous sequence of Connection resources.

Example
// Create client
RepositoryManagerClient repositoryManagerClient = await RepositoryManagerClient.CreateAsync();
// Initialize request argument(s)
ListConnectionsRequest request = new ListConnectionsRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
};
// Make the request
PagedAsyncEnumerable<ListConnectionsResponse, Connection> response = repositoryManagerClient.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
Name Description
parent string

Required. The parent, which owns this collection of Connections. Format: projects/*/locations/*.

pageToken string

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

pageSize int

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.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListConnectionsResponseConnection

A pageable asynchronous sequence of Connection resources.

Example
// Create client
RepositoryManagerClient repositoryManagerClient = await RepositoryManagerClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListConnectionsResponse, Connection> response = repositoryManagerClient.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;

ListRepositories(ConnectionName, string, int?, CallSettings)

public virtual PagedEnumerable<ListRepositoriesResponse, Repository> ListRepositories(ConnectionName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists Repositories in a given connection.

Parameters
Name Description
parent ConnectionName

Required. The parent, which owns this collection of Repositories. Format: projects/*/locations/*/connections/*.

pageToken string

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

pageSize int

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.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListRepositoriesResponseRepository

A pageable sequence of Repository resources.

Example
// Create client
RepositoryManagerClient repositoryManagerClient = RepositoryManagerClient.Create();
// Initialize request argument(s)
ConnectionName parent = ConnectionName.FromProjectLocationConnection("[PROJECT]", "[LOCATION]", "[CONNECTION]");
// Make the request
PagedEnumerable<ListRepositoriesResponse, Repository> response = repositoryManagerClient.ListRepositories(parent);

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

ListRepositories(ListRepositoriesRequest, CallSettings)

public virtual PagedEnumerable<ListRepositoriesResponse, Repository> ListRepositories(ListRepositoriesRequest request, CallSettings callSettings = null)

Lists Repositories in a given connection.

Parameters
Name Description
request ListRepositoriesRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListRepositoriesResponseRepository

A pageable sequence of Repository resources.

Example
// Create client
RepositoryManagerClient repositoryManagerClient = RepositoryManagerClient.Create();
// Initialize request argument(s)
ListRepositoriesRequest request = new ListRepositoriesRequest
{
    ParentAsConnectionName = ConnectionName.FromProjectLocationConnection("[PROJECT]", "[LOCATION]", "[CONNECTION]"),
    Filter = "",
};
// Make the request
PagedEnumerable<ListRepositoriesResponse, Repository> response = repositoryManagerClient.ListRepositories(request);

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

ListRepositories(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListRepositoriesResponse, Repository> ListRepositories(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists Repositories in a given connection.

Parameters
Name Description
parent string

Required. The parent, which owns this collection of Repositories. Format: projects/*/locations/*/connections/*.

pageToken string

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

pageSize int

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.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListRepositoriesResponseRepository

A pageable sequence of Repository resources.

Example
// Create client
RepositoryManagerClient repositoryManagerClient = RepositoryManagerClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/connections/[CONNECTION]";
// Make the request
PagedEnumerable<ListRepositoriesResponse, Repository> response = repositoryManagerClient.ListRepositories(parent);

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

ListRepositoriesAsync(ConnectionName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListRepositoriesResponse, Repository> ListRepositoriesAsync(ConnectionName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists Repositories in a given connection.

Parameters
Name Description
parent ConnectionName

Required. The parent, which owns this collection of Repositories. Format: projects/*/locations/*/connections/*.

pageToken string

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

pageSize int

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.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListRepositoriesResponseRepository

A pageable asynchronous sequence of Repository resources.

Example
// Create client
RepositoryManagerClient repositoryManagerClient = await RepositoryManagerClient.CreateAsync();
// Initialize request argument(s)
ConnectionName parent = ConnectionName.FromProjectLocationConnection("[PROJECT]", "[LOCATION]", "[CONNECTION]");
// Make the request
PagedAsyncEnumerable<ListRepositoriesResponse, Repository> response = repositoryManagerClient.ListRepositoriesAsync(parent);

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

ListRepositoriesAsync(ListRepositoriesRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListRepositoriesResponse, Repository> ListRepositoriesAsync(ListRepositoriesRequest request, CallSettings callSettings = null)

Lists Repositories in a given connection.

Parameters
Name Description
request ListRepositoriesRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListRepositoriesResponseRepository

A pageable asynchronous sequence of Repository resources.

Example
// Create client
RepositoryManagerClient repositoryManagerClient = await RepositoryManagerClient.CreateAsync();
// Initialize request argument(s)
ListRepositoriesRequest request = new ListRepositoriesRequest
{
    ParentAsConnectionName = ConnectionName.FromProjectLocationConnection("[PROJECT]", "[LOCATION]", "[CONNECTION]"),
    Filter = "",
};
// Make the request
PagedAsyncEnumerable<ListRepositoriesResponse, Repository> response = repositoryManagerClient.ListRepositoriesAsync(request);

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

ListRepositoriesAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListRepositoriesResponse, Repository> ListRepositoriesAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists Repositories in a given connection.

Parameters
Name Description
parent string

Required. The parent, which owns this collection of Repositories. Format: projects/*/locations/*/connections/*.

pageToken string

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

pageSize int

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.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListRepositoriesResponseRepository

A pageable asynchronous sequence of Repository resources.

Example
// Create client
RepositoryManagerClient repositoryManagerClient = await RepositoryManagerClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/connections/[CONNECTION]";
// Make the request
PagedAsyncEnumerable<ListRepositoriesResponse, Repository> response = repositoryManagerClient.ListRepositoriesAsync(parent);

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

PollOnceBatchCreateRepositories(string, CallSettings)

public virtual Operation<BatchCreateRepositoriesResponse, OperationMetadata> PollOnceBatchCreateRepositories(string operationName, CallSettings callSettings = null)

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

Parameters
Name Description
operationName string

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationBatchCreateRepositoriesResponseOperationMetadata

The result of polling the operation.

PollOnceBatchCreateRepositoriesAsync(string, CallSettings)

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

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

Parameters
Name Description
operationName string

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationBatchCreateRepositoriesResponseOperationMetadata

A task representing the result of polling the operation.

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
Name Description
operationName string

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
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
Name Description
operationName string

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationConnectionOperationMetadata

A task representing the result of polling the operation.

PollOnceCreateRepository(string, CallSettings)

public virtual Operation<Repository, OperationMetadata> PollOnceCreateRepository(string operationName, CallSettings callSettings = null)

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

Parameters
Name Description
operationName string

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationRepositoryOperationMetadata

The result of polling the operation.

PollOnceCreateRepositoryAsync(string, CallSettings)

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

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

Parameters
Name Description
operationName string

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationRepositoryOperationMetadata

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
Name Description
operationName string

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
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
Name Description
operationName string

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A task representing the result of polling the operation.

PollOnceDeleteRepository(string, CallSettings)

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

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

Parameters
Name Description
operationName string

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The result of polling the operation.

PollOnceDeleteRepositoryAsync(string, CallSettings)

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

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

Parameters
Name Description
operationName string

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

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
Name Description
operationName string

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
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
Name Description
operationName string

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationConnectionOperationMetadata

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
Type Description
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 a single connection.

Parameters
Name Description
connection Connection

Required. The Connection to update.

updateMask FieldMask

The list of fields to be updated.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationConnectionOperationMetadata

The RPC response.

Example
// Create client
RepositoryManagerClient repositoryManagerClient = RepositoryManagerClient.Create();
// Initialize request argument(s)
Connection connection = new Connection();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Connection, OperationMetadata> response = repositoryManagerClient.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 = repositoryManagerClient.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 a single connection.

Parameters
Name Description
request UpdateConnectionRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationConnectionOperationMetadata

The RPC response.

Example
// Create client
RepositoryManagerClient repositoryManagerClient = RepositoryManagerClient.Create();
// Initialize request argument(s)
UpdateConnectionRequest request = new UpdateConnectionRequest
{
    Connection = new Connection(),
    UpdateMask = new FieldMask(),
    AllowMissing = false,
    Etag = "",
};
// Make the request
Operation<Connection, OperationMetadata> response = repositoryManagerClient.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 = repositoryManagerClient.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 a single connection.

Parameters
Name Description
connection Connection

Required. The Connection to update.

updateMask FieldMask

The list of fields to be updated.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationConnectionOperationMetadata

A Task containing the RPC response.

Example
// Create client
RepositoryManagerClient repositoryManagerClient = await RepositoryManagerClient.CreateAsync();
// Initialize request argument(s)
Connection connection = new Connection();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Connection, OperationMetadata> response = await repositoryManagerClient.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 repositoryManagerClient.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 a single connection.

Parameters
Name Description
connection Connection

Required. The Connection to update.

updateMask FieldMask

The list of fields to be updated.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationConnectionOperationMetadata

A Task containing the RPC response.

Example
// Create client
RepositoryManagerClient repositoryManagerClient = await RepositoryManagerClient.CreateAsync();
// Initialize request argument(s)
Connection connection = new Connection();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Connection, OperationMetadata> response = await repositoryManagerClient.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 repositoryManagerClient.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 a single connection.

Parameters
Name Description
request UpdateConnectionRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationConnectionOperationMetadata

A Task containing the RPC response.

Example
// Create client
RepositoryManagerClient repositoryManagerClient = await RepositoryManagerClient.CreateAsync();
// Initialize request argument(s)
UpdateConnectionRequest request = new UpdateConnectionRequest
{
    Connection = new Connection(),
    UpdateMask = new FieldMask(),
    AllowMissing = false,
    Etag = "",
};
// Make the request
Operation<Connection, OperationMetadata> response = await repositoryManagerClient.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 repositoryManagerClient.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 a single connection.

Parameters
Name Description
request UpdateConnectionRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationConnectionOperationMetadata

A Task containing the RPC response.

Example
// Create client
RepositoryManagerClient repositoryManagerClient = await RepositoryManagerClient.CreateAsync();
// Initialize request argument(s)
UpdateConnectionRequest request = new UpdateConnectionRequest
{
    Connection = new Connection(),
    UpdateMask = new FieldMask(),
    AllowMissing = false,
    Etag = "",
};
// Make the request
Operation<Connection, OperationMetadata> response = await repositoryManagerClient.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 repositoryManagerClient.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;
}