Cloud Build v2 API - Class RepositoryManager.RepositoryManagerBase (1.0.0)

[BindServiceMethod(typeof(RepositoryManager), "BindService")]
public abstract class RepositoryManager.RepositoryManagerBase

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

Base class for server-side implementations of RepositoryManager

Inheritance

object > RepositoryManager.RepositoryManagerBase

Namespace

Google.Cloud.CloudBuild.V2

Assembly

Google.Cloud.CloudBuild.V2.dll

Methods

BatchCreateRepositories(BatchCreateRepositoriesRequest, ServerCallContext)

public virtual Task<Operation> BatchCreateRepositories(BatchCreateRepositoriesRequest request, ServerCallContext context)

Creates multiple repositories inside a connection.

Parameters
NameDescription
requestBatchCreateRepositoriesRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskOperation

The response to send back to the client (wrapped by a task).

CreateConnection(CreateConnectionRequest, ServerCallContext)

public virtual Task<Operation> CreateConnection(CreateConnectionRequest request, ServerCallContext context)

Creates a Connection.

Parameters
NameDescription
requestCreateConnectionRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskOperation

The response to send back to the client (wrapped by a task).

CreateRepository(CreateRepositoryRequest, ServerCallContext)

public virtual Task<Operation> CreateRepository(CreateRepositoryRequest request, ServerCallContext context)

Creates a Repository.

Parameters
NameDescription
requestCreateRepositoryRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskOperation

The response to send back to the client (wrapped by a task).

DeleteConnection(DeleteConnectionRequest, ServerCallContext)

public virtual Task<Operation> DeleteConnection(DeleteConnectionRequest request, ServerCallContext context)

Deletes a single connection.

Parameters
NameDescription
requestDeleteConnectionRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskOperation

The response to send back to the client (wrapped by a task).

DeleteRepository(DeleteRepositoryRequest, ServerCallContext)

public virtual Task<Operation> DeleteRepository(DeleteRepositoryRequest request, ServerCallContext context)

Deletes a single repository.

Parameters
NameDescription
requestDeleteRepositoryRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskOperation

The response to send back to the client (wrapped by a task).

FetchGitRefs(FetchGitRefsRequest, ServerCallContext)

public virtual Task<FetchGitRefsResponse> FetchGitRefs(FetchGitRefsRequest request, ServerCallContext context)

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

Parameters
NameDescription
requestFetchGitRefsRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskFetchGitRefsResponse

The response to send back to the client (wrapped by a task).

FetchLinkableRepositories(FetchLinkableRepositoriesRequest, ServerCallContext)

public virtual Task<FetchLinkableRepositoriesResponse> FetchLinkableRepositories(FetchLinkableRepositoriesRequest request, ServerCallContext context)

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

Parameters
NameDescription
requestFetchLinkableRepositoriesRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskFetchLinkableRepositoriesResponse

The response to send back to the client (wrapped by a task).

FetchReadToken(FetchReadTokenRequest, ServerCallContext)

public virtual Task<FetchReadTokenResponse> FetchReadToken(FetchReadTokenRequest request, ServerCallContext context)

Fetches read token of a given repository.

Parameters
NameDescription
requestFetchReadTokenRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskFetchReadTokenResponse

The response to send back to the client (wrapped by a task).

FetchReadWriteToken(FetchReadWriteTokenRequest, ServerCallContext)

public virtual Task<FetchReadWriteTokenResponse> FetchReadWriteToken(FetchReadWriteTokenRequest request, ServerCallContext context)

Fetches read/write token of a given repository.

Parameters
NameDescription
requestFetchReadWriteTokenRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskFetchReadWriteTokenResponse

The response to send back to the client (wrapped by a task).

GetConnection(GetConnectionRequest, ServerCallContext)

public virtual Task<Connection> GetConnection(GetConnectionRequest request, ServerCallContext context)

Gets details of a single connection.

Parameters
NameDescription
requestGetConnectionRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskConnection

The response to send back to the client (wrapped by a task).

GetRepository(GetRepositoryRequest, ServerCallContext)

public virtual Task<Repository> GetRepository(GetRepositoryRequest request, ServerCallContext context)

Gets details of a single repository.

Parameters
NameDescription
requestGetRepositoryRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskRepository

The response to send back to the client (wrapped by a task).

ListConnections(ListConnectionsRequest, ServerCallContext)

public virtual Task<ListConnectionsResponse> ListConnections(ListConnectionsRequest request, ServerCallContext context)

Lists Connections in a given project and location.

Parameters
NameDescription
requestListConnectionsRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskListConnectionsResponse

The response to send back to the client (wrapped by a task).

ListRepositories(ListRepositoriesRequest, ServerCallContext)

public virtual Task<ListRepositoriesResponse> ListRepositories(ListRepositoriesRequest request, ServerCallContext context)

Lists Repositories in a given connection.

Parameters
NameDescription
requestListRepositoriesRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskListRepositoriesResponse

The response to send back to the client (wrapped by a task).

UpdateConnection(UpdateConnectionRequest, ServerCallContext)

public virtual Task<Operation> UpdateConnection(UpdateConnectionRequest request, ServerCallContext context)

Updates a single connection.

Parameters
NameDescription
requestUpdateConnectionRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskOperation

The response to send back to the client (wrapped by a task).