Interface DeveloperConnectGrpc.AsyncService (0.6.0)

public static interface DeveloperConnectGrpc.AsyncService

Service describing handlers for resources

Methods

createConnection(CreateConnectionRequest request, StreamObserver<Operation> responseObserver)

public default void createConnection(CreateConnectionRequest request, StreamObserver<Operation> responseObserver)

Creates a new Connection in a given project and location.

Parameters
Name Description
request CreateConnectionRequest
responseObserver io.grpc.stub.StreamObserver<Operation>
public default void createGitRepositoryLink(CreateGitRepositoryLinkRequest request, StreamObserver<Operation> responseObserver)

Creates a GitRepositoryLink. Upon linking a Git Repository, Developer Connect will configure the Git Repository to send webhook events to Developer Connect. Connections that use Firebase GitHub Application will have events forwarded to the Firebase service. All other Connections will have events forwarded to Cloud Build.

Parameters
Name Description
request CreateGitRepositoryLinkRequest
responseObserver io.grpc.stub.StreamObserver<Operation>

deleteConnection(DeleteConnectionRequest request, StreamObserver<Operation> responseObserver)

public default void deleteConnection(DeleteConnectionRequest request, StreamObserver<Operation> responseObserver)

Deletes a single Connection.

Parameters
Name Description
request DeleteConnectionRequest
responseObserver io.grpc.stub.StreamObserver<Operation>
public default void deleteGitRepositoryLink(DeleteGitRepositoryLinkRequest request, StreamObserver<Operation> responseObserver)

Deletes a single GitRepositoryLink.

Parameters
Name Description
request DeleteGitRepositoryLinkRequest
responseObserver io.grpc.stub.StreamObserver<Operation>

fetchGitHubInstallations(FetchGitHubInstallationsRequest request, StreamObserver<FetchGitHubInstallationsResponse> responseObserver)

public default void fetchGitHubInstallations(FetchGitHubInstallationsRequest request, StreamObserver<FetchGitHubInstallationsResponse> responseObserver)

FetchGitHubInstallations returns the list of GitHub Installations that are available to be added to a Connection. For github.com, only installations accessible to the authorizer token are returned. For GitHub Enterprise, all installations are returned.

Parameters
Name Description
request FetchGitHubInstallationsRequest
responseObserver io.grpc.stub.StreamObserver<FetchGitHubInstallationsResponse>

fetchGitRefs(FetchGitRefsRequest request, StreamObserver<FetchGitRefsResponse> responseObserver)

public default void fetchGitRefs(FetchGitRefsRequest request, StreamObserver<FetchGitRefsResponse> responseObserver)

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

Parameters
Name Description
request FetchGitRefsRequest
responseObserver io.grpc.stub.StreamObserver<FetchGitRefsResponse>

fetchLinkableGitRepositories(FetchLinkableGitRepositoriesRequest request, StreamObserver<FetchLinkableGitRepositoriesResponse> responseObserver)

public default void fetchLinkableGitRepositories(FetchLinkableGitRepositoriesRequest request, StreamObserver<FetchLinkableGitRepositoriesResponse> responseObserver)

FetchLinkableGitRepositories returns a list of git repositories from an SCM that are available to be added to a Connection.

Parameters
Name Description
request FetchLinkableGitRepositoriesRequest
responseObserver io.grpc.stub.StreamObserver<FetchLinkableGitRepositoriesResponse>

fetchReadToken(FetchReadTokenRequest request, StreamObserver<FetchReadTokenResponse> responseObserver)

public default void fetchReadToken(FetchReadTokenRequest request, StreamObserver<FetchReadTokenResponse> responseObserver)

Fetches read token of a given gitRepositoryLink.

Parameters
Name Description
request FetchReadTokenRequest
responseObserver io.grpc.stub.StreamObserver<FetchReadTokenResponse>

fetchReadWriteToken(FetchReadWriteTokenRequest request, StreamObserver<FetchReadWriteTokenResponse> responseObserver)

public default void fetchReadWriteToken(FetchReadWriteTokenRequest request, StreamObserver<FetchReadWriteTokenResponse> responseObserver)

Fetches read/write token of a given gitRepositoryLink.

Parameters
Name Description
request FetchReadWriteTokenRequest
responseObserver io.grpc.stub.StreamObserver<FetchReadWriteTokenResponse>

getConnection(GetConnectionRequest request, StreamObserver<Connection> responseObserver)

public default void getConnection(GetConnectionRequest request, StreamObserver<Connection> responseObserver)

Gets details of a single Connection.

Parameters
Name Description
request GetConnectionRequest
responseObserver io.grpc.stub.StreamObserver<Connection>
public default void getGitRepositoryLink(GetGitRepositoryLinkRequest request, StreamObserver<GitRepositoryLink> responseObserver)

Gets details of a single GitRepositoryLink.

Parameters
Name Description
request GetGitRepositoryLinkRequest
responseObserver io.grpc.stub.StreamObserver<GitRepositoryLink>

listConnections(ListConnectionsRequest request, StreamObserver<ListConnectionsResponse> responseObserver)

public default void listConnections(ListConnectionsRequest request, StreamObserver<ListConnectionsResponse> responseObserver)

Lists Connections in a given project and location.

Parameters
Name Description
request ListConnectionsRequest
responseObserver io.grpc.stub.StreamObserver<ListConnectionsResponse>
public default void listGitRepositoryLinks(ListGitRepositoryLinksRequest request, StreamObserver<ListGitRepositoryLinksResponse> responseObserver)

Lists GitRepositoryLinks in a given project, location, and connection.

Parameters
Name Description
request ListGitRepositoryLinksRequest
responseObserver io.grpc.stub.StreamObserver<ListGitRepositoryLinksResponse>

updateConnection(UpdateConnectionRequest request, StreamObserver<Operation> responseObserver)

public default void updateConnection(UpdateConnectionRequest request, StreamObserver<Operation> responseObserver)

Updates the parameters of a single Connection.

Parameters
Name Description
request UpdateConnectionRequest
responseObserver io.grpc.stub.StreamObserver<Operation>