Class DeveloperConnectGrpc.DeveloperConnectBlockingStub (0.4.0)

public static final class DeveloperConnectGrpc.DeveloperConnectBlockingStub extends AbstractBlockingStub<DeveloperConnectGrpc.DeveloperConnectBlockingStub>

A stub to allow clients to do synchronous rpc calls to service DeveloperConnect.

Service describing handlers for resources

Inheritance

java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractBlockingStub > DeveloperConnectGrpc.DeveloperConnectBlockingStub

Methods

build(Channel channel, CallOptions callOptions)

protected DeveloperConnectGrpc.DeveloperConnectBlockingStub build(Channel channel, CallOptions callOptions)
Parameters
Name Description
channel io.grpc.Channel
callOptions io.grpc.CallOptions
Returns
Type Description
DeveloperConnectGrpc.DeveloperConnectBlockingStub
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)

createConnection(CreateConnectionRequest request)

public Operation createConnection(CreateConnectionRequest request)

Creates a new Connection in a given project and location.

Parameter
Name Description
request CreateConnectionRequest
Returns
Type Description
Operation
public Operation createGitRepositoryLink(CreateGitRepositoryLinkRequest request)

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.

Parameter
Name Description
request CreateGitRepositoryLinkRequest
Returns
Type Description
Operation

deleteConnection(DeleteConnectionRequest request)

public Operation deleteConnection(DeleteConnectionRequest request)

Deletes a single Connection.

Parameter
Name Description
request DeleteConnectionRequest
Returns
Type Description
Operation
public Operation deleteGitRepositoryLink(DeleteGitRepositoryLinkRequest request)

Deletes a single GitRepositoryLink.

Parameter
Name Description
request DeleteGitRepositoryLinkRequest
Returns
Type Description
Operation

fetchGitHubInstallations(FetchGitHubInstallationsRequest request)

public FetchGitHubInstallationsResponse fetchGitHubInstallations(FetchGitHubInstallationsRequest request)

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.

Parameter
Name Description
request FetchGitHubInstallationsRequest
Returns
Type Description
FetchGitHubInstallationsResponse

fetchGitRefs(FetchGitRefsRequest request)

public FetchGitRefsResponse fetchGitRefs(FetchGitRefsRequest request)

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

Parameter
Name Description
request FetchGitRefsRequest
Returns
Type Description
FetchGitRefsResponse

fetchLinkableGitRepositories(FetchLinkableGitRepositoriesRequest request)

public FetchLinkableGitRepositoriesResponse fetchLinkableGitRepositories(FetchLinkableGitRepositoriesRequest request)

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

Parameter
Name Description
request FetchLinkableGitRepositoriesRequest
Returns
Type Description
FetchLinkableGitRepositoriesResponse

fetchReadToken(FetchReadTokenRequest request)

public FetchReadTokenResponse fetchReadToken(FetchReadTokenRequest request)

Fetches read token of a given gitRepositoryLink.

Parameter
Name Description
request FetchReadTokenRequest
Returns
Type Description
FetchReadTokenResponse

fetchReadWriteToken(FetchReadWriteTokenRequest request)

public FetchReadWriteTokenResponse fetchReadWriteToken(FetchReadWriteTokenRequest request)

Fetches read/write token of a given gitRepositoryLink.

Parameter
Name Description
request FetchReadWriteTokenRequest
Returns
Type Description
FetchReadWriteTokenResponse

getConnection(GetConnectionRequest request)

public Connection getConnection(GetConnectionRequest request)

Gets details of a single Connection.

Parameter
Name Description
request GetConnectionRequest
Returns
Type Description
Connection
public GitRepositoryLink getGitRepositoryLink(GetGitRepositoryLinkRequest request)

Gets details of a single GitRepositoryLink.

Parameter
Name Description
request GetGitRepositoryLinkRequest
Returns
Type Description
GitRepositoryLink

listConnections(ListConnectionsRequest request)

public ListConnectionsResponse listConnections(ListConnectionsRequest request)

Lists Connections in a given project and location.

Parameter
Name Description
request ListConnectionsRequest
Returns
Type Description
ListConnectionsResponse
public ListGitRepositoryLinksResponse listGitRepositoryLinks(ListGitRepositoryLinksRequest request)

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

Parameter
Name Description
request ListGitRepositoryLinksRequest
Returns
Type Description
ListGitRepositoryLinksResponse

updateConnection(UpdateConnectionRequest request)

public Operation updateConnection(UpdateConnectionRequest request)

Updates the parameters of a single Connection.

Parameter
Name Description
request UpdateConnectionRequest
Returns
Type Description
Operation