Cloud Build v2 API - Class RepositoryManager.RepositoryManagerBase (1.4.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
Name Description
request BatchCreateRepositoriesRequest

The request received from the client.

context ServerCallContext

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

Returns
Type Description
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
Name Description
request CreateConnectionRequest

The request received from the client.

context ServerCallContext

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

Returns
Type Description
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
Name Description
request CreateRepositoryRequest

The request received from the client.

context ServerCallContext

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

Returns
Type Description
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
Name Description
request DeleteConnectionRequest

The request received from the client.

context ServerCallContext

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

Returns
Type Description
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
Name Description
request DeleteRepositoryRequest

The request received from the client.

context ServerCallContext

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

Returns
Type Description
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
Name Description
request FetchGitRefsRequest

The request received from the client.

context ServerCallContext

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

Returns
Type Description
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
Name Description
request FetchLinkableRepositoriesRequest

The request received from the client.

context ServerCallContext

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

Returns
Type Description
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
Name Description
request FetchReadTokenRequest

The request received from the client.

context ServerCallContext

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

Returns
Type Description
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
Name Description
request FetchReadWriteTokenRequest

The request received from the client.

context ServerCallContext

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

Returns
Type Description
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
Name Description
request GetConnectionRequest

The request received from the client.

context ServerCallContext

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

Returns
Type Description
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
Name Description
request GetRepositoryRequest

The request received from the client.

context ServerCallContext

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

Returns
Type Description
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
Name Description
request ListConnectionsRequest

The request received from the client.

context ServerCallContext

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

Returns
Type Description
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
Name Description
request ListRepositoriesRequest

The request received from the client.

context ServerCallContext

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

Returns
Type Description
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
Name Description
request UpdateConnectionRequest

The request received from the client.

context ServerCallContext

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

Returns
Type Description
TaskOperation

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