Class protos.google.cloud.developerconnect.v1.DeveloperConnect (0.1.0)

Represents a DeveloperConnect

Inheritance

$protobuf.rpc.Service > protos.google.cloud.developerconnect.v1.DeveloperConnect

Package

@google-cloud/developerconnect

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);

Constructs a new DeveloperConnect service.

Parameters
Name Description
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Methods

create(rpcImpl, requestDelimited, responseDelimited)

public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): DeveloperConnect;

Creates new DeveloperConnect service using the specified rpc implementation.

Parameters
Name Description
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Returns
Type Description
DeveloperConnect

RPC service. Useful where requests and/or responses are streamed.

createConnection(request, callback)

public createConnection(request: google.cloud.developerconnect.v1.ICreateConnectionRequest, callback: google.cloud.developerconnect.v1.DeveloperConnect.CreateConnectionCallback): void;

Calls CreateConnection.

Parameters
Name Description
request ICreateConnectionRequest

CreateConnectionRequest message or plain object

callback CreateConnectionCallback

Node-style callback called with the error, if any, and Operation

Returns
Type Description
void

createConnection(request)

public createConnection(request: google.cloud.developerconnect.v1.ICreateConnectionRequest): Promise<google.longrunning.Operation>;

Calls CreateConnection.

Parameter
Name Description
request ICreateConnectionRequest

CreateConnectionRequest message or plain object

Returns
Type Description
Promise<google.longrunning.Operation>

Promise

public createGitRepositoryLink(request: google.cloud.developerconnect.v1.ICreateGitRepositoryLinkRequest, callback: google.cloud.developerconnect.v1.DeveloperConnect.CreateGitRepositoryLinkCallback): void;

Calls CreateGitRepositoryLink.

Parameters
Name Description
request ICreateGitRepositoryLinkRequest

CreateGitRepositoryLinkRequest message or plain object

callback CreateGitRepositoryLinkCallback

Node-style callback called with the error, if any, and Operation

Returns
Type Description
void
public createGitRepositoryLink(request: google.cloud.developerconnect.v1.ICreateGitRepositoryLinkRequest): Promise<google.longrunning.Operation>;

Calls CreateGitRepositoryLink.

Parameter
Name Description
request ICreateGitRepositoryLinkRequest

CreateGitRepositoryLinkRequest message or plain object

Returns
Type Description
Promise<google.longrunning.Operation>

Promise

deleteConnection(request, callback)

public deleteConnection(request: google.cloud.developerconnect.v1.IDeleteConnectionRequest, callback: google.cloud.developerconnect.v1.DeveloperConnect.DeleteConnectionCallback): void;

Calls DeleteConnection.

Parameters
Name Description
request IDeleteConnectionRequest

DeleteConnectionRequest message or plain object

callback DeleteConnectionCallback

Node-style callback called with the error, if any, and Operation

Returns
Type Description
void

deleteConnection(request)

public deleteConnection(request: google.cloud.developerconnect.v1.IDeleteConnectionRequest): Promise<google.longrunning.Operation>;

Calls DeleteConnection.

Parameter
Name Description
request IDeleteConnectionRequest

DeleteConnectionRequest message or plain object

Returns
Type Description
Promise<google.longrunning.Operation>

Promise

public deleteGitRepositoryLink(request: google.cloud.developerconnect.v1.IDeleteGitRepositoryLinkRequest, callback: google.cloud.developerconnect.v1.DeveloperConnect.DeleteGitRepositoryLinkCallback): void;

Calls DeleteGitRepositoryLink.

Parameters
Name Description
request IDeleteGitRepositoryLinkRequest

DeleteGitRepositoryLinkRequest message or plain object

callback DeleteGitRepositoryLinkCallback

Node-style callback called with the error, if any, and Operation

Returns
Type Description
void
public deleteGitRepositoryLink(request: google.cloud.developerconnect.v1.IDeleteGitRepositoryLinkRequest): Promise<google.longrunning.Operation>;

Calls DeleteGitRepositoryLink.

Parameter
Name Description
request IDeleteGitRepositoryLinkRequest

DeleteGitRepositoryLinkRequest message or plain object

Returns
Type Description
Promise<google.longrunning.Operation>

Promise

fetchGitHubInstallations(request, callback)

public fetchGitHubInstallations(request: google.cloud.developerconnect.v1.IFetchGitHubInstallationsRequest, callback: google.cloud.developerconnect.v1.DeveloperConnect.FetchGitHubInstallationsCallback): void;

Calls FetchGitHubInstallations.

Parameters
Name Description
request IFetchGitHubInstallationsRequest

FetchGitHubInstallationsRequest message or plain object

callback FetchGitHubInstallationsCallback

Node-style callback called with the error, if any, and FetchGitHubInstallationsResponse

Returns
Type Description
void

fetchGitHubInstallations(request)

public fetchGitHubInstallations(request: google.cloud.developerconnect.v1.IFetchGitHubInstallationsRequest): Promise<google.cloud.developerconnect.v1.FetchGitHubInstallationsResponse>;

Calls FetchGitHubInstallations.

Parameter
Name Description
request IFetchGitHubInstallationsRequest

FetchGitHubInstallationsRequest message or plain object

Returns
Type Description
Promise<google.cloud.developerconnect.v1.FetchGitHubInstallationsResponse>

Promise

fetchGitRefs(request, callback)

public fetchGitRefs(request: google.cloud.developerconnect.v1.IFetchGitRefsRequest, callback: google.cloud.developerconnect.v1.DeveloperConnect.FetchGitRefsCallback): void;

Calls FetchGitRefs.

Parameters
Name Description
request IFetchGitRefsRequest

FetchGitRefsRequest message or plain object

callback FetchGitRefsCallback

Node-style callback called with the error, if any, and FetchGitRefsResponse

Returns
Type Description
void

fetchGitRefs(request)

public fetchGitRefs(request: google.cloud.developerconnect.v1.IFetchGitRefsRequest): Promise<google.cloud.developerconnect.v1.FetchGitRefsResponse>;

Calls FetchGitRefs.

Parameter
Name Description
request IFetchGitRefsRequest

FetchGitRefsRequest message or plain object

Returns
Type Description
Promise<google.cloud.developerconnect.v1.FetchGitRefsResponse>

Promise

fetchLinkableGitRepositories(request, callback)

public fetchLinkableGitRepositories(request: google.cloud.developerconnect.v1.IFetchLinkableGitRepositoriesRequest, callback: google.cloud.developerconnect.v1.DeveloperConnect.FetchLinkableGitRepositoriesCallback): void;

Calls FetchLinkableGitRepositories.

Parameters
Name Description
request IFetchLinkableGitRepositoriesRequest

FetchLinkableGitRepositoriesRequest message or plain object

callback FetchLinkableGitRepositoriesCallback

Node-style callback called with the error, if any, and FetchLinkableGitRepositoriesResponse

Returns
Type Description
void

fetchLinkableGitRepositories(request)

public fetchLinkableGitRepositories(request: google.cloud.developerconnect.v1.IFetchLinkableGitRepositoriesRequest): Promise<google.cloud.developerconnect.v1.FetchLinkableGitRepositoriesResponse>;

Calls FetchLinkableGitRepositories.

Parameter
Name Description
request IFetchLinkableGitRepositoriesRequest

FetchLinkableGitRepositoriesRequest message or plain object

Returns
Type Description
Promise<google.cloud.developerconnect.v1.FetchLinkableGitRepositoriesResponse>

Promise

fetchReadToken(request, callback)

public fetchReadToken(request: google.cloud.developerconnect.v1.IFetchReadTokenRequest, callback: google.cloud.developerconnect.v1.DeveloperConnect.FetchReadTokenCallback): void;

Calls FetchReadToken.

Parameters
Name Description
request IFetchReadTokenRequest

FetchReadTokenRequest message or plain object

callback FetchReadTokenCallback

Node-style callback called with the error, if any, and FetchReadTokenResponse

Returns
Type Description
void

fetchReadToken(request)

public fetchReadToken(request: google.cloud.developerconnect.v1.IFetchReadTokenRequest): Promise<google.cloud.developerconnect.v1.FetchReadTokenResponse>;

Calls FetchReadToken.

Parameter
Name Description
request IFetchReadTokenRequest

FetchReadTokenRequest message or plain object

Returns
Type Description
Promise<google.cloud.developerconnect.v1.FetchReadTokenResponse>

Promise

fetchReadWriteToken(request, callback)

public fetchReadWriteToken(request: google.cloud.developerconnect.v1.IFetchReadWriteTokenRequest, callback: google.cloud.developerconnect.v1.DeveloperConnect.FetchReadWriteTokenCallback): void;

Calls FetchReadWriteToken.

Parameters
Name Description
request IFetchReadWriteTokenRequest

FetchReadWriteTokenRequest message or plain object

callback FetchReadWriteTokenCallback

Node-style callback called with the error, if any, and FetchReadWriteTokenResponse

Returns
Type Description
void

fetchReadWriteToken(request)

public fetchReadWriteToken(request: google.cloud.developerconnect.v1.IFetchReadWriteTokenRequest): Promise<google.cloud.developerconnect.v1.FetchReadWriteTokenResponse>;

Calls FetchReadWriteToken.

Parameter
Name Description
request IFetchReadWriteTokenRequest

FetchReadWriteTokenRequest message or plain object

Returns
Type Description
Promise<google.cloud.developerconnect.v1.FetchReadWriteTokenResponse>

Promise

getConnection(request, callback)

public getConnection(request: google.cloud.developerconnect.v1.IGetConnectionRequest, callback: google.cloud.developerconnect.v1.DeveloperConnect.GetConnectionCallback): void;

Calls GetConnection.

Parameters
Name Description
request IGetConnectionRequest

GetConnectionRequest message or plain object

callback GetConnectionCallback

Node-style callback called with the error, if any, and Connection

Returns
Type Description
void

getConnection(request)

public getConnection(request: google.cloud.developerconnect.v1.IGetConnectionRequest): Promise<google.cloud.developerconnect.v1.Connection>;

Calls GetConnection.

Parameter
Name Description
request IGetConnectionRequest

GetConnectionRequest message or plain object

Returns
Type Description
Promise<google.cloud.developerconnect.v1.Connection>

Promise

public getGitRepositoryLink(request: google.cloud.developerconnect.v1.IGetGitRepositoryLinkRequest, callback: google.cloud.developerconnect.v1.DeveloperConnect.GetGitRepositoryLinkCallback): void;

Calls GetGitRepositoryLink.

Parameters
Name Description
request IGetGitRepositoryLinkRequest

GetGitRepositoryLinkRequest message or plain object

callback GetGitRepositoryLinkCallback

Node-style callback called with the error, if any, and GitRepositoryLink

Returns
Type Description
void
public getGitRepositoryLink(request: google.cloud.developerconnect.v1.IGetGitRepositoryLinkRequest): Promise<google.cloud.developerconnect.v1.GitRepositoryLink>;

Calls GetGitRepositoryLink.

Parameter
Name Description
request IGetGitRepositoryLinkRequest

GetGitRepositoryLinkRequest message or plain object

Returns
Type Description
Promise<google.cloud.developerconnect.v1.GitRepositoryLink>

Promise

listConnections(request, callback)

public listConnections(request: google.cloud.developerconnect.v1.IListConnectionsRequest, callback: google.cloud.developerconnect.v1.DeveloperConnect.ListConnectionsCallback): void;

Calls ListConnections.

Parameters
Name Description
request IListConnectionsRequest

ListConnectionsRequest message or plain object

callback ListConnectionsCallback

Node-style callback called with the error, if any, and ListConnectionsResponse

Returns
Type Description
void

listConnections(request)

public listConnections(request: google.cloud.developerconnect.v1.IListConnectionsRequest): Promise<google.cloud.developerconnect.v1.ListConnectionsResponse>;

Calls ListConnections.

Parameter
Name Description
request IListConnectionsRequest

ListConnectionsRequest message or plain object

Returns
Type Description
Promise<google.cloud.developerconnect.v1.ListConnectionsResponse>

Promise

public listGitRepositoryLinks(request: google.cloud.developerconnect.v1.IListGitRepositoryLinksRequest, callback: google.cloud.developerconnect.v1.DeveloperConnect.ListGitRepositoryLinksCallback): void;

Calls ListGitRepositoryLinks.

Parameters
Name Description
request IListGitRepositoryLinksRequest

ListGitRepositoryLinksRequest message or plain object

callback ListGitRepositoryLinksCallback

Node-style callback called with the error, if any, and ListGitRepositoryLinksResponse

Returns
Type Description
void
public listGitRepositoryLinks(request: google.cloud.developerconnect.v1.IListGitRepositoryLinksRequest): Promise<google.cloud.developerconnect.v1.ListGitRepositoryLinksResponse>;

Calls ListGitRepositoryLinks.

Parameter
Name Description
request IListGitRepositoryLinksRequest

ListGitRepositoryLinksRequest message or plain object

Returns
Type Description
Promise<google.cloud.developerconnect.v1.ListGitRepositoryLinksResponse>

Promise

updateConnection(request, callback)

public updateConnection(request: google.cloud.developerconnect.v1.IUpdateConnectionRequest, callback: google.cloud.developerconnect.v1.DeveloperConnect.UpdateConnectionCallback): void;

Calls UpdateConnection.

Parameters
Name Description
request IUpdateConnectionRequest

UpdateConnectionRequest message or plain object

callback UpdateConnectionCallback

Node-style callback called with the error, if any, and Operation

Returns
Type Description
void

updateConnection(request)

public updateConnection(request: google.cloud.developerconnect.v1.IUpdateConnectionRequest): Promise<google.longrunning.Operation>;

Calls UpdateConnection.

Parameter
Name Description
request IUpdateConnectionRequest

UpdateConnectionRequest message or plain object

Returns
Type Description
Promise<google.longrunning.Operation>

Promise