RepositoryManager

google.devtools.cloudbuild.v2. RepositoryManager

Represents a RepositoryManager

Constructor

new RepositoryManager(rpcImpl, requestDelimitedopt, responseDelimitedopt)

Constructs a new RepositoryManager service.

Parameters:
Name Type Attributes Default Description
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean <optional>
false

Whether requests are length-delimited

responseDelimited boolean <optional>
false

Whether responses are length-delimited

Extends

  • $protobuf.rpc.Service

Methods

batchCreateRepositories(request, callback) → {undefined}

Calls BatchCreateRepositories.

Parameters:
Name Type Description
request google.devtools.cloudbuild.v2.IBatchCreateRepositoriesRequest

BatchCreateRepositoriesRequest message or plain object

callback google.devtools.cloudbuild.v2.RepositoryManager.BatchCreateRepositoriesCallback

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

Returns:
Type Description
undefined

batchCreateRepositories(request) → {Promise.<google.longrunning.Operation>}

Calls BatchCreateRepositories.

Parameters:
Name Type Description
request google.devtools.cloudbuild.v2.IBatchCreateRepositoriesRequest

BatchCreateRepositoriesRequest message or plain object

Returns:
Type Description
Promise.<google.longrunning.Operation>

Promise

createConnection(request, callback) → {undefined}

Calls CreateConnection.

Parameters:
Name Type Description
request google.devtools.cloudbuild.v2.ICreateConnectionRequest

CreateConnectionRequest message or plain object

callback google.devtools.cloudbuild.v2.RepositoryManager.CreateConnectionCallback

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

Returns:
Type Description
undefined

createConnection(request) → {Promise.<google.longrunning.Operation>}

Calls CreateConnection.

Parameters:
Name Type Description
request google.devtools.cloudbuild.v2.ICreateConnectionRequest

CreateConnectionRequest message or plain object

Returns:
Type Description
Promise.<google.longrunning.Operation>

Promise

createRepository(request, callback) → {undefined}

Calls CreateRepository.

Parameters:
Name Type Description
request google.devtools.cloudbuild.v2.ICreateRepositoryRequest

CreateRepositoryRequest message or plain object

callback google.devtools.cloudbuild.v2.RepositoryManager.CreateRepositoryCallback

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

Returns:
Type Description
undefined

createRepository(request) → {Promise.<google.longrunning.Operation>}

Calls CreateRepository.

Parameters:
Name Type Description
request google.devtools.cloudbuild.v2.ICreateRepositoryRequest

CreateRepositoryRequest message or plain object

Returns:
Type Description
Promise.<google.longrunning.Operation>

Promise

deleteConnection(request, callback) → {undefined}

Calls DeleteConnection.

Parameters:
Name Type Description
request google.devtools.cloudbuild.v2.IDeleteConnectionRequest

DeleteConnectionRequest message or plain object

callback google.devtools.cloudbuild.v2.RepositoryManager.DeleteConnectionCallback

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

Returns:
Type Description
undefined

deleteConnection(request) → {Promise.<google.longrunning.Operation>}

Calls DeleteConnection.

Parameters:
Name Type Description
request google.devtools.cloudbuild.v2.IDeleteConnectionRequest

DeleteConnectionRequest message or plain object

Returns:
Type Description
Promise.<google.longrunning.Operation>

Promise

deleteRepository(request, callback) → {undefined}

Calls DeleteRepository.

Parameters:
Name Type Description
request google.devtools.cloudbuild.v2.IDeleteRepositoryRequest

DeleteRepositoryRequest message or plain object

callback google.devtools.cloudbuild.v2.RepositoryManager.DeleteRepositoryCallback

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

Returns:
Type Description
undefined

deleteRepository(request) → {Promise.<google.longrunning.Operation>}

Calls DeleteRepository.

Parameters:
Name Type Description
request google.devtools.cloudbuild.v2.IDeleteRepositoryRequest

DeleteRepositoryRequest message or plain object

Returns:
Type Description
Promise.<google.longrunning.Operation>

Promise

fetchGitRefs(request, callback) → {undefined}

Calls FetchGitRefs.

Parameters:
Name Type Description
request google.devtools.cloudbuild.v2.IFetchGitRefsRequest

FetchGitRefsRequest message or plain object

callback google.devtools.cloudbuild.v2.RepositoryManager.FetchGitRefsCallback

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

Returns:
Type Description
undefined

fetchGitRefs(request) → {Promise.<google.devtools.cloudbuild.v2.FetchGitRefsResponse>}

Calls FetchGitRefs.

Parameters:
Name Type Description
request google.devtools.cloudbuild.v2.IFetchGitRefsRequest

FetchGitRefsRequest message or plain object

Returns:
Type Description
Promise.<google.devtools.cloudbuild.v2.FetchGitRefsResponse>

Promise

fetchLinkableRepositories(request, callback) → {undefined}

Calls FetchLinkableRepositories.

Parameters:
Name Type Description
request google.devtools.cloudbuild.v2.IFetchLinkableRepositoriesRequest

FetchLinkableRepositoriesRequest message or plain object

callback google.devtools.cloudbuild.v2.RepositoryManager.FetchLinkableRepositoriesCallback

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

Returns:
Type Description
undefined

fetchLinkableRepositories(request) → {Promise.<google.devtools.cloudbuild.v2.FetchLinkableRepositoriesResponse>}

Calls FetchLinkableRepositories.

Parameters:
Name Type Description
request google.devtools.cloudbuild.v2.IFetchLinkableRepositoriesRequest

FetchLinkableRepositoriesRequest message or plain object

Returns:
Type Description
Promise.<google.devtools.cloudbuild.v2.FetchLinkableRepositoriesResponse>

Promise

fetchReadToken(request, callback) → {undefined}

Calls FetchReadToken.

Parameters:
Name Type Description
request google.devtools.cloudbuild.v2.IFetchReadTokenRequest

FetchReadTokenRequest message or plain object

callback google.devtools.cloudbuild.v2.RepositoryManager.FetchReadTokenCallback

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

Returns:
Type Description
undefined

fetchReadToken(request) → {Promise.<google.devtools.cloudbuild.v2.FetchReadTokenResponse>}

Calls FetchReadToken.

Parameters:
Name Type Description
request google.devtools.cloudbuild.v2.IFetchReadTokenRequest

FetchReadTokenRequest message or plain object

Returns:
Type Description
Promise.<google.devtools.cloudbuild.v2.FetchReadTokenResponse>

Promise

fetchReadWriteToken(request, callback) → {undefined}

Calls FetchReadWriteToken.

Parameters:
Name Type Description
request google.devtools.cloudbuild.v2.IFetchReadWriteTokenRequest

FetchReadWriteTokenRequest message or plain object

callback google.devtools.cloudbuild.v2.RepositoryManager.FetchReadWriteTokenCallback

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

Returns:
Type Description
undefined

fetchReadWriteToken(request) → {Promise.<google.devtools.cloudbuild.v2.FetchReadWriteTokenResponse>}

Calls FetchReadWriteToken.

Parameters:
Name Type Description
request google.devtools.cloudbuild.v2.IFetchReadWriteTokenRequest

FetchReadWriteTokenRequest message or plain object

Returns:
Type Description
Promise.<google.devtools.cloudbuild.v2.FetchReadWriteTokenResponse>

Promise

getConnection(request, callback) → {undefined}

Calls GetConnection.

Parameters:
Name Type Description
request google.devtools.cloudbuild.v2.IGetConnectionRequest

GetConnectionRequest message or plain object

callback google.devtools.cloudbuild.v2.RepositoryManager.GetConnectionCallback

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

Returns:
Type Description
undefined

getConnection(request) → {Promise.<google.devtools.cloudbuild.v2.Connection>}

Calls GetConnection.

Parameters:
Name Type Description
request google.devtools.cloudbuild.v2.IGetConnectionRequest

GetConnectionRequest message or plain object

Returns:
Type Description
Promise.<google.devtools.cloudbuild.v2.Connection>

Promise

getRepository(request, callback) → {undefined}

Calls GetRepository.

Parameters:
Name Type Description
request google.devtools.cloudbuild.v2.IGetRepositoryRequest

GetRepositoryRequest message or plain object

callback google.devtools.cloudbuild.v2.RepositoryManager.GetRepositoryCallback

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

Returns:
Type Description
undefined

getRepository(request) → {Promise.<google.devtools.cloudbuild.v2.Repository>}

Calls GetRepository.

Parameters:
Name Type Description
request google.devtools.cloudbuild.v2.IGetRepositoryRequest

GetRepositoryRequest message or plain object

Returns:
Type Description
Promise.<google.devtools.cloudbuild.v2.Repository>

Promise

listConnections(request, callback) → {undefined}

Calls ListConnections.

Parameters:
Name Type Description
request google.devtools.cloudbuild.v2.IListConnectionsRequest

ListConnectionsRequest message or plain object

callback google.devtools.cloudbuild.v2.RepositoryManager.ListConnectionsCallback

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

Returns:
Type Description
undefined

listConnections(request) → {Promise.<google.devtools.cloudbuild.v2.ListConnectionsResponse>}

Calls ListConnections.

Parameters:
Name Type Description
request google.devtools.cloudbuild.v2.IListConnectionsRequest

ListConnectionsRequest message or plain object

Returns:
Type Description
Promise.<google.devtools.cloudbuild.v2.ListConnectionsResponse>

Promise

listRepositories(request, callback) → {undefined}

Calls ListRepositories.

Parameters:
Name Type Description
request google.devtools.cloudbuild.v2.IListRepositoriesRequest

ListRepositoriesRequest message or plain object

callback google.devtools.cloudbuild.v2.RepositoryManager.ListRepositoriesCallback

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

Returns:
Type Description
undefined

listRepositories(request) → {Promise.<google.devtools.cloudbuild.v2.ListRepositoriesResponse>}

Calls ListRepositories.

Parameters:
Name Type Description
request google.devtools.cloudbuild.v2.IListRepositoriesRequest

ListRepositoriesRequest message or plain object

Returns:
Type Description
Promise.<google.devtools.cloudbuild.v2.ListRepositoriesResponse>

Promise

updateConnection(request, callback) → {undefined}

Calls UpdateConnection.

Parameters:
Name Type Description
request google.devtools.cloudbuild.v2.IUpdateConnectionRequest

UpdateConnectionRequest message or plain object

callback google.devtools.cloudbuild.v2.RepositoryManager.UpdateConnectionCallback

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

Returns:
Type Description
undefined

updateConnection(request) → {Promise.<google.longrunning.Operation>}

Calls UpdateConnection.

Parameters:
Name Type Description
request google.devtools.cloudbuild.v2.IUpdateConnectionRequest

UpdateConnectionRequest message or plain object

Returns:
Type Description
Promise.<google.longrunning.Operation>

Promise

(static) create(rpcImpl, requestDelimitedopt, responseDelimitedopt) → {RepositoryManager}

Creates new RepositoryManager service using the specified rpc implementation.

Parameters:
Name Type Attributes Default Description
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean <optional>
false

Whether requests are length-delimited

responseDelimited boolean <optional>
false

Whether responses are length-delimited

Returns:
Type Description
RepositoryManager

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

Type Definitions

BatchCreateRepositoriesCallback(error, responseopt)

Callback as used by batchCreateRepositories.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.longrunning.Operation <optional>

Operation

CreateConnectionCallback(error, responseopt)

Callback as used by createConnection.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.longrunning.Operation <optional>

Operation

CreateRepositoryCallback(error, responseopt)

Callback as used by createRepository.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.longrunning.Operation <optional>

Operation

DeleteConnectionCallback(error, responseopt)

Callback as used by deleteConnection.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.longrunning.Operation <optional>

Operation

DeleteRepositoryCallback(error, responseopt)

Callback as used by deleteRepository.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.longrunning.Operation <optional>

Operation

FetchGitRefsCallback(error, responseopt)

Callback as used by fetchGitRefs.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.devtools.cloudbuild.v2.FetchGitRefsResponse <optional>

FetchGitRefsResponse

FetchLinkableRepositoriesCallback(error, responseopt)

Callback as used by fetchLinkableRepositories.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.devtools.cloudbuild.v2.FetchLinkableRepositoriesResponse <optional>

FetchLinkableRepositoriesResponse

FetchReadTokenCallback(error, responseopt)

Callback as used by fetchReadToken.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.devtools.cloudbuild.v2.FetchReadTokenResponse <optional>

FetchReadTokenResponse

FetchReadWriteTokenCallback(error, responseopt)

Callback as used by fetchReadWriteToken.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.devtools.cloudbuild.v2.FetchReadWriteTokenResponse <optional>

FetchReadWriteTokenResponse

GetConnectionCallback(error, responseopt)

Callback as used by getConnection.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.devtools.cloudbuild.v2.Connection <optional>

Connection

GetRepositoryCallback(error, responseopt)

Callback as used by getRepository.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.devtools.cloudbuild.v2.Repository <optional>

Repository

ListConnectionsCallback(error, responseopt)

Callback as used by listConnections.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.devtools.cloudbuild.v2.ListConnectionsResponse <optional>

ListConnectionsResponse

ListRepositoriesCallback(error, responseopt)

Callback as used by listRepositories.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.devtools.cloudbuild.v2.ListRepositoriesResponse <optional>

ListRepositoriesResponse

UpdateConnectionCallback(error, responseopt)

Callback as used by updateConnection.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.longrunning.Operation <optional>

Operation