Cloud Build v2 API - Class RepositoryManagerClientImpl (1.4.0)

public sealed class RepositoryManagerClientImpl : RepositoryManagerClient

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

RepositoryManager client wrapper implementation, for convenient use.

Inheritance

object > RepositoryManagerClient > RepositoryManagerClientImpl

Namespace

Google.Cloud.CloudBuild.V2

Assembly

Google.Cloud.CloudBuild.V2.dll

Remarks

Manages connections to source code repositories.

Constructors

RepositoryManagerClientImpl(RepositoryManagerClient, RepositoryManagerSettings, ILogger)

public RepositoryManagerClientImpl(RepositoryManager.RepositoryManagerClient grpcClient, RepositoryManagerSettings settings, ILogger logger)

Constructs a client wrapper for the RepositoryManager service, with the specified gRPC client and settings.

Parameters
Name Description
grpcClient RepositoryManagerRepositoryManagerClient

The underlying gRPC client.

settings RepositoryManagerSettings

The base RepositoryManagerSettings used within this client.

logger ILogger

Optional ILogger to use within this client.

Properties

BatchCreateRepositoriesOperationsClient

public override OperationsClient BatchCreateRepositoriesOperationsClient { get; }

The long-running operations client for BatchCreateRepositories.

Property Value
Type Description
OperationsClient
Overrides

CreateConnectionOperationsClient

public override OperationsClient CreateConnectionOperationsClient { get; }

The long-running operations client for CreateConnection.

Property Value
Type Description
OperationsClient
Overrides

CreateRepositoryOperationsClient

public override OperationsClient CreateRepositoryOperationsClient { get; }

The long-running operations client for CreateRepository.

Property Value
Type Description
OperationsClient
Overrides

DeleteConnectionOperationsClient

public override OperationsClient DeleteConnectionOperationsClient { get; }

The long-running operations client for DeleteConnection.

Property Value
Type Description
OperationsClient
Overrides

DeleteRepositoryOperationsClient

public override OperationsClient DeleteRepositoryOperationsClient { get; }

The long-running operations client for DeleteRepository.

Property Value
Type Description
OperationsClient
Overrides

GrpcClient

public override RepositoryManager.RepositoryManagerClient GrpcClient { get; }

The underlying gRPC RepositoryManager client

Property Value
Type Description
RepositoryManagerRepositoryManagerClient
Overrides

IAMPolicyClient

public override IAMPolicyClient IAMPolicyClient { get; }

The IAMPolicyClient associated with this client.

Property Value
Type Description
IAMPolicyClient
Overrides

LocationsClient

public override LocationsClient LocationsClient { get; }

The LocationsClient associated with this client.

Property Value
Type Description
LocationsClient
Overrides

UpdateConnectionOperationsClient

public override OperationsClient UpdateConnectionOperationsClient { get; }

The long-running operations client for UpdateConnection.

Property Value
Type Description
OperationsClient
Overrides

Methods

BatchCreateRepositories(BatchCreateRepositoriesRequest, CallSettings)

public override 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.

Overrides

BatchCreateRepositoriesAsync(BatchCreateRepositoriesRequest, CallSettings)

public override 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.

Overrides

CreateConnection(CreateConnectionRequest, CallSettings)

public override 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.

Overrides

CreateConnectionAsync(CreateConnectionRequest, CallSettings)

public override 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.

Overrides

CreateRepository(CreateRepositoryRequest, CallSettings)

public override 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.

Overrides

CreateRepositoryAsync(CreateRepositoryRequest, CallSettings)

public override 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.

Overrides

DeleteConnection(DeleteConnectionRequest, CallSettings)

public override 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.

Overrides

DeleteConnectionAsync(DeleteConnectionRequest, CallSettings)

public override 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.

Overrides

DeleteRepository(DeleteRepositoryRequest, CallSettings)

public override 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.

Overrides

DeleteRepositoryAsync(DeleteRepositoryRequest, CallSettings)

public override 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.

Overrides

FetchGitRefs(FetchGitRefsRequest, CallSettings)

public override 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.

Overrides

FetchGitRefsAsync(FetchGitRefsRequest, CallSettings)

public override 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.

Overrides

FetchLinkableRepositories(FetchLinkableRepositoriesRequest, CallSettings)

public override 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.

Overrides

FetchLinkableRepositoriesAsync(FetchLinkableRepositoriesRequest, CallSettings)

public override 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.

Overrides

FetchReadToken(FetchReadTokenRequest, CallSettings)

public override 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.

Overrides

FetchReadTokenAsync(FetchReadTokenRequest, CallSettings)

public override 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.

Overrides

FetchReadWriteToken(FetchReadWriteTokenRequest, CallSettings)

public override 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.

Overrides

FetchReadWriteTokenAsync(FetchReadWriteTokenRequest, CallSettings)

public override 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.

Overrides

GetConnection(GetConnectionRequest, CallSettings)

public override 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.

Overrides

GetConnectionAsync(GetConnectionRequest, CallSettings)

public override 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.

Overrides

GetRepository(GetRepositoryRequest, CallSettings)

public override 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.

Overrides

GetRepositoryAsync(GetRepositoryRequest, CallSettings)

public override 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.

Overrides

ListConnections(ListConnectionsRequest, CallSettings)

public override 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.

Overrides

ListConnectionsAsync(ListConnectionsRequest, CallSettings)

public override 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.

Overrides

ListRepositories(ListRepositoriesRequest, CallSettings)

public override 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.

Overrides

ListRepositoriesAsync(ListRepositoriesRequest, CallSettings)

public override 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.

Overrides

UpdateConnection(UpdateConnectionRequest, CallSettings)

public override 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.

Overrides

UpdateConnectionAsync(UpdateConnectionRequest, CallSettings)

public override 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.

Overrides