Developer Connect v1 API - Class DeveloperConnectClientImpl (1.0.0-beta01)

public sealed class DeveloperConnectClientImpl : DeveloperConnectClient

Reference documentation and code samples for the Developer Connect v1 API class DeveloperConnectClientImpl.

DeveloperConnect client wrapper implementation, for convenient use.

Inheritance

object > DeveloperConnectClient > DeveloperConnectClientImpl

Namespace

Google.Cloud.DeveloperConnect.V1

Assembly

Google.Cloud.DeveloperConnect.V1.dll

Remarks

Service describing handlers for resources

Constructors

DeveloperConnectClientImpl(DeveloperConnectClient, DeveloperConnectSettings, ILogger)

public DeveloperConnectClientImpl(DeveloperConnect.DeveloperConnectClient grpcClient, DeveloperConnectSettings settings, ILogger logger)

Constructs a client wrapper for the DeveloperConnect service, with the specified gRPC client and settings.

Parameters
Name Description
grpcClient DeveloperConnectDeveloperConnectClient

The underlying gRPC client.

settings DeveloperConnectSettings

The base DeveloperConnectSettings used within this client.

logger ILogger

Optional ILogger to use within this client.

Properties

CreateConnectionOperationsClient

public override OperationsClient CreateConnectionOperationsClient { get; }

The long-running operations client for CreateConnection.

Property Value
Type Description
OperationsClient
Overrides

CreateGitRepositoryLinkOperationsClient

public override OperationsClient CreateGitRepositoryLinkOperationsClient { get; }

The long-running operations client for CreateGitRepositoryLink.

Property Value
Type Description
OperationsClient
Overrides

DeleteConnectionOperationsClient

public override OperationsClient DeleteConnectionOperationsClient { get; }

The long-running operations client for DeleteConnection.

Property Value
Type Description
OperationsClient
Overrides

DeleteGitRepositoryLinkOperationsClient

public override OperationsClient DeleteGitRepositoryLinkOperationsClient { get; }

The long-running operations client for DeleteGitRepositoryLink.

Property Value
Type Description
OperationsClient
Overrides

GrpcClient

public override DeveloperConnect.DeveloperConnectClient GrpcClient { get; }

The underlying gRPC DeveloperConnect client

Property Value
Type Description
DeveloperConnectDeveloperConnectClient
Overrides

LocationsClient

public override LocationsClient LocationsClient { get; }

The LocationsClient associated with this client.

Property Value
Type Description
LocationsClient
Overrides

UpdateConnectionOperationsClient

public override OperationsClient UpdateConnectionOperationsClient { get; }

The long-running operations client for UpdateConnection.

Property Value
Type Description
OperationsClient
Overrides

Methods

CreateConnection(CreateConnectionRequest, CallSettings)

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

Creates a new Connection in a given project and location.

Parameters
Name Description
request CreateConnectionRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationConnectionOperationMetadata

The RPC response.

Overrides

CreateConnectionAsync(CreateConnectionRequest, CallSettings)

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

Creates a new Connection in a given project and location.

Parameters
Name Description
request CreateConnectionRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationConnectionOperationMetadata

A Task containing the RPC response.

Overrides
public override Operation<GitRepositoryLink, OperationMetadata> CreateGitRepositoryLink(CreateGitRepositoryLinkRequest request, CallSettings callSettings = null)

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

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationGitRepositoryLinkOperationMetadata

The RPC response.

Overrides

CreateGitRepositoryLinkAsync(CreateGitRepositoryLinkRequest, CallSettings)

public override Task<Operation<GitRepositoryLink, OperationMetadata>> CreateGitRepositoryLinkAsync(CreateGitRepositoryLinkRequest request, CallSettings callSettings = null)

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

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationGitRepositoryLinkOperationMetadata

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

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

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

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Overrides
public override Operation<Empty, OperationMetadata> DeleteGitRepositoryLink(DeleteGitRepositoryLinkRequest request, CallSettings callSettings = null)

Deletes a single GitRepositoryLink.

Parameters
Name Description
request DeleteGitRepositoryLinkRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Overrides

DeleteGitRepositoryLinkAsync(DeleteGitRepositoryLinkRequest, CallSettings)

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

Deletes a single GitRepositoryLink.

Parameters
Name Description
request DeleteGitRepositoryLinkRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Overrides

FetchGitHubInstallations(FetchGitHubInstallationsRequest, CallSettings)

public override FetchGitHubInstallationsResponse FetchGitHubInstallations(FetchGitHubInstallationsRequest request, CallSettings callSettings = null)

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

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
FetchGitHubInstallationsResponse

The RPC response.

Overrides

FetchGitHubInstallationsAsync(FetchGitHubInstallationsRequest, CallSettings)

public override Task<FetchGitHubInstallationsResponse> FetchGitHubInstallationsAsync(FetchGitHubInstallationsRequest request, CallSettings callSettings = null)

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

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskFetchGitHubInstallationsResponse

A Task containing the RPC response.

Overrides

FetchGitRefs(FetchGitRefsRequest, CallSettings)

public override PagedEnumerable<FetchGitRefsResponse, string> FetchGitRefs(FetchGitRefsRequest request, CallSettings callSettings = null)

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

Parameters
Name Description
request FetchGitRefsRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableFetchGitRefsResponsestring

A pageable sequence of string resources.

Overrides

FetchGitRefsAsync(FetchGitRefsRequest, CallSettings)

public override PagedAsyncEnumerable<FetchGitRefsResponse, string> FetchGitRefsAsync(FetchGitRefsRequest request, CallSettings callSettings = null)

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

Parameters
Name Description
request FetchGitRefsRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableFetchGitRefsResponsestring

A pageable asynchronous sequence of string resources.

Overrides

FetchLinkableGitRepositories(FetchLinkableGitRepositoriesRequest, CallSettings)

public override PagedEnumerable<FetchLinkableGitRepositoriesResponse, LinkableGitRepository> FetchLinkableGitRepositories(FetchLinkableGitRepositoriesRequest request, CallSettings callSettings = null)

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

Parameters
Name Description
request FetchLinkableGitRepositoriesRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableFetchLinkableGitRepositoriesResponseLinkableGitRepository

A pageable sequence of LinkableGitRepository resources.

Overrides

FetchLinkableGitRepositoriesAsync(FetchLinkableGitRepositoriesRequest, CallSettings)

public override PagedAsyncEnumerable<FetchLinkableGitRepositoriesResponse, LinkableGitRepository> FetchLinkableGitRepositoriesAsync(FetchLinkableGitRepositoriesRequest request, CallSettings callSettings = null)

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

Parameters
Name Description
request FetchLinkableGitRepositoriesRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableFetchLinkableGitRepositoriesResponseLinkableGitRepository

A pageable asynchronous sequence of LinkableGitRepository resources.

Overrides

FetchReadToken(FetchReadTokenRequest, CallSettings)

public override FetchReadTokenResponse FetchReadToken(FetchReadTokenRequest request, CallSettings callSettings = null)

Fetches read token of a given gitRepositoryLink.

Parameters
Name Description
request FetchReadTokenRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
FetchReadTokenResponse

The RPC response.

Overrides

FetchReadTokenAsync(FetchReadTokenRequest, CallSettings)

public override Task<FetchReadTokenResponse> FetchReadTokenAsync(FetchReadTokenRequest request, CallSettings callSettings = null)

Fetches read token of a given gitRepositoryLink.

Parameters
Name Description
request FetchReadTokenRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
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 gitRepositoryLink.

Parameters
Name Description
request FetchReadWriteTokenRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
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 gitRepositoryLink.

Parameters
Name Description
request FetchReadWriteTokenRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

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

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

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

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskConnection

A Task containing the RPC response.

Overrides
public override GitRepositoryLink GetGitRepositoryLink(GetGitRepositoryLinkRequest request, CallSettings callSettings = null)

Gets details of a single GitRepositoryLink.

Parameters
Name Description
request GetGitRepositoryLinkRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
GitRepositoryLink

The RPC response.

Overrides

GetGitRepositoryLinkAsync(GetGitRepositoryLinkRequest, CallSettings)

public override Task<GitRepositoryLink> GetGitRepositoryLinkAsync(GetGitRepositoryLinkRequest request, CallSettings callSettings = null)

Gets details of a single GitRepositoryLink.

Parameters
Name Description
request GetGitRepositoryLinkRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskGitRepositoryLink

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

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

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

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListConnectionsResponseConnection

A pageable asynchronous sequence of Connection resources.

Overrides
public override PagedEnumerable<ListGitRepositoryLinksResponse, GitRepositoryLink> ListGitRepositoryLinks(ListGitRepositoryLinksRequest request, CallSettings callSettings = null)

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

Parameters
Name Description
request ListGitRepositoryLinksRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListGitRepositoryLinksResponseGitRepositoryLink

A pageable sequence of GitRepositoryLink resources.

Overrides

ListGitRepositoryLinksAsync(ListGitRepositoryLinksRequest, CallSettings)

public override PagedAsyncEnumerable<ListGitRepositoryLinksResponse, GitRepositoryLink> ListGitRepositoryLinksAsync(ListGitRepositoryLinksRequest request, CallSettings callSettings = null)

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

Parameters
Name Description
request ListGitRepositoryLinksRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListGitRepositoryLinksResponseGitRepositoryLink

A pageable asynchronous sequence of GitRepositoryLink resources.

Overrides

UpdateConnection(UpdateConnectionRequest, CallSettings)

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

Updates the parameters of a single Connection.

Parameters
Name Description
request UpdateConnectionRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationConnectionOperationMetadata

The RPC response.

Overrides

UpdateConnectionAsync(UpdateConnectionRequest, CallSettings)

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

Updates the parameters of a single Connection.

Parameters
Name Description
request UpdateConnectionRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationConnectionOperationMetadata

A Task containing the RPC response.

Overrides