Cloud Build v2 API - Class RepositoryManagerClientImpl (1.1.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
NameDescription
grpcClientRepositoryManagerRepositoryManagerClient

The underlying gRPC client.

settingsRepositoryManagerSettings

The base RepositoryManagerSettings used within this client.

loggerILogger

Optional ILogger to use within this client.

Properties

BatchCreateRepositoriesOperationsClient

public override OperationsClient BatchCreateRepositoriesOperationsClient { get; }

The long-running operations client for BatchCreateRepositories.

Property Value
TypeDescription
OperationsClient
Overrides

CreateConnectionOperationsClient

public override OperationsClient CreateConnectionOperationsClient { get; }

The long-running operations client for CreateConnection.

Property Value
TypeDescription
OperationsClient
Overrides

CreateRepositoryOperationsClient

public override OperationsClient CreateRepositoryOperationsClient { get; }

The long-running operations client for CreateRepository.

Property Value
TypeDescription
OperationsClient
Overrides

DeleteConnectionOperationsClient

public override OperationsClient DeleteConnectionOperationsClient { get; }

The long-running operations client for DeleteConnection.

Property Value
TypeDescription
OperationsClient
Overrides

DeleteRepositoryOperationsClient

public override OperationsClient DeleteRepositoryOperationsClient { get; }

The long-running operations client for DeleteRepository.

Property Value
TypeDescription
OperationsClient
Overrides

GrpcClient

public override RepositoryManager.RepositoryManagerClient GrpcClient { get; }

The underlying gRPC RepositoryManager client

Property Value
TypeDescription
RepositoryManagerRepositoryManagerClient
Overrides

IAMPolicyClient

public override IAMPolicyClient IAMPolicyClient { get; }

The IAMPolicyClient associated with this client.

Property Value
TypeDescription
IAMPolicyClient
Overrides

LocationsClient

public override LocationsClient LocationsClient { get; }

The LocationsClient associated with this client.

Property Value
TypeDescription
LocationsClient
Overrides

UpdateConnectionOperationsClient

public override OperationsClient UpdateConnectionOperationsClient { get; }

The long-running operations client for UpdateConnection.

Property Value
TypeDescription
OperationsClient
Overrides

Methods

BatchCreateRepositories(BatchCreateRepositoriesRequest, CallSettings)

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

Creates multiple repositories inside a connection.

Parameters
NameDescription
requestBatchCreateRepositoriesRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestBatchCreateRepositoriesRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestCreateConnectionRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationConnectionOperationMetadata

The RPC response.

Overrides

CreateConnectionAsync(CreateConnectionRequest, CallSettings)

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

Creates a Connection.

Parameters
NameDescription
requestCreateConnectionRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationConnectionOperationMetadata

A Task containing the RPC response.

Overrides

CreateRepository(CreateRepositoryRequest, CallSettings)

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

Creates a Repository.

Parameters
NameDescription
requestCreateRepositoryRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationRepositoryOperationMetadata

The RPC response.

Overrides

CreateRepositoryAsync(CreateRepositoryRequest, CallSettings)

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

Creates a Repository.

Parameters
NameDescription
requestCreateRepositoryRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestDeleteConnectionRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationEmptyOperationMetadata

The RPC response.

Overrides

DeleteConnectionAsync(DeleteConnectionRequest, CallSettings)

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

Deletes a single connection.

Parameters
NameDescription
requestDeleteConnectionRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Overrides

DeleteRepository(DeleteRepositoryRequest, CallSettings)

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

Deletes a single repository.

Parameters
NameDescription
requestDeleteRepositoryRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationEmptyOperationMetadata

The RPC response.

Overrides

DeleteRepositoryAsync(DeleteRepositoryRequest, CallSettings)

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

Deletes a single repository.

Parameters
NameDescription
requestDeleteRepositoryRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

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
NameDescription
requestFetchGitRefsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestFetchGitRefsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestFetchLinkableRepositoriesRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestFetchLinkableRepositoriesRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestFetchReadTokenRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestFetchReadTokenRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestFetchReadWriteTokenRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestFetchReadWriteTokenRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestGetConnectionRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Connection

The RPC response.

Overrides

GetConnectionAsync(GetConnectionRequest, CallSettings)

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

Gets details of a single connection.

Parameters
NameDescription
requestGetConnectionRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskConnection

A Task containing the RPC response.

Overrides

GetRepository(GetRepositoryRequest, CallSettings)

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

Gets details of a single repository.

Parameters
NameDescription
requestGetRepositoryRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestGetRepositoryRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestListConnectionsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListConnectionsResponseConnection

A pageable sequence of Connection resources.

Overrides

ListConnectionsAsync(ListConnectionsRequest, CallSettings)

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

Lists Connections in a given project and location.

Parameters
NameDescription
requestListConnectionsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListConnectionsResponseConnection

A pageable asynchronous sequence of Connection resources.

Overrides

ListRepositories(ListRepositoriesRequest, CallSettings)

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

Lists Repositories in a given connection.

Parameters
NameDescription
requestListRepositoriesRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestListRepositoriesRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestUpdateConnectionRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationConnectionOperationMetadata

The RPC response.

Overrides

UpdateConnectionAsync(UpdateConnectionRequest, CallSettings)

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

Updates a single connection.

Parameters
NameDescription
requestUpdateConnectionRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationConnectionOperationMetadata

A Task containing the RPC response.

Overrides