Class protos.google.devtools.cloudbuild.v1.CloudBuild

Represents a CloudBuild

Inheritance

$protobuf.rpc.Service > protos.google.devtools.cloudbuild.v1.CloudBuild

Package

@google-cloud/cloudbuild

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

Constructs a new CloudBuild service.

Parameters
NameDescription
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Methods

approveBuild(request, callback)

public approveBuild(request: google.devtools.cloudbuild.v1.IApproveBuildRequest, callback: google.devtools.cloudbuild.v1.CloudBuild.ApproveBuildCallback): void;

Calls ApproveBuild.

Parameters
NameDescription
request google.devtools.cloudbuild.v1.IApproveBuildRequest

ApproveBuildRequest message or plain object

callback google.devtools.cloudbuild.v1.CloudBuild.ApproveBuildCallback

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

Returns
TypeDescription
void

approveBuild(request)

public approveBuild(request: google.devtools.cloudbuild.v1.IApproveBuildRequest): Promise<google.longrunning.Operation>;

Calls ApproveBuild.

Parameter
NameDescription
request google.devtools.cloudbuild.v1.IApproveBuildRequest

ApproveBuildRequest message or plain object

Returns
TypeDescription
Promise<google.longrunning.Operation>

Promise

cancelBuild(request, callback)

public cancelBuild(request: google.devtools.cloudbuild.v1.ICancelBuildRequest, callback: google.devtools.cloudbuild.v1.CloudBuild.CancelBuildCallback): void;

Calls CancelBuild.

Parameters
NameDescription
request google.devtools.cloudbuild.v1.ICancelBuildRequest

CancelBuildRequest message or plain object

callback google.devtools.cloudbuild.v1.CloudBuild.CancelBuildCallback

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

Returns
TypeDescription
void

cancelBuild(request)

public cancelBuild(request: google.devtools.cloudbuild.v1.ICancelBuildRequest): Promise<google.devtools.cloudbuild.v1.Build>;

Calls CancelBuild.

Parameter
NameDescription
request google.devtools.cloudbuild.v1.ICancelBuildRequest

CancelBuildRequest message or plain object

Returns
TypeDescription
Promise<google.devtools.cloudbuild.v1.Build>

Promise

create(rpcImpl, requestDelimited, responseDelimited)

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

Creates new CloudBuild service using the specified rpc implementation.

Parameters
NameDescription
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Returns
TypeDescription
CloudBuild

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

createBuild(request, callback)

public createBuild(request: google.devtools.cloudbuild.v1.ICreateBuildRequest, callback: google.devtools.cloudbuild.v1.CloudBuild.CreateBuildCallback): void;

Calls CreateBuild.

Parameters
NameDescription
request ICreateBuildRequest

CreateBuildRequest message or plain object

callback google.devtools.cloudbuild.v1.CloudBuild.CreateBuildCallback

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

Returns
TypeDescription
void

createBuild(request)

public createBuild(request: google.devtools.cloudbuild.v1.ICreateBuildRequest): Promise<google.longrunning.Operation>;

Calls CreateBuild.

Parameter
NameDescription
request ICreateBuildRequest

CreateBuildRequest message or plain object

Returns
TypeDescription
Promise<google.longrunning.Operation>

Promise

createBuildTrigger(request, callback)

public createBuildTrigger(request: google.devtools.cloudbuild.v1.ICreateBuildTriggerRequest, callback: google.devtools.cloudbuild.v1.CloudBuild.CreateBuildTriggerCallback): void;

Calls CreateBuildTrigger.

Parameters
NameDescription
request google.devtools.cloudbuild.v1.ICreateBuildTriggerRequest

CreateBuildTriggerRequest message or plain object

callback google.devtools.cloudbuild.v1.CloudBuild.CreateBuildTriggerCallback

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

Returns
TypeDescription
void

createBuildTrigger(request)

public createBuildTrigger(request: google.devtools.cloudbuild.v1.ICreateBuildTriggerRequest): Promise<google.devtools.cloudbuild.v1.BuildTrigger>;

Calls CreateBuildTrigger.

Parameter
NameDescription
request google.devtools.cloudbuild.v1.ICreateBuildTriggerRequest

CreateBuildTriggerRequest message or plain object

Returns
TypeDescription
Promise<google.devtools.cloudbuild.v1.BuildTrigger>

Promise

createWorkerPool(request, callback)

public createWorkerPool(request: google.devtools.cloudbuild.v1.ICreateWorkerPoolRequest, callback: google.devtools.cloudbuild.v1.CloudBuild.CreateWorkerPoolCallback): void;

Calls CreateWorkerPool.

Parameters
NameDescription
request ICreateWorkerPoolRequest

CreateWorkerPoolRequest message or plain object

callback google.devtools.cloudbuild.v1.CloudBuild.CreateWorkerPoolCallback

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

Returns
TypeDescription
void

createWorkerPool(request)

public createWorkerPool(request: google.devtools.cloudbuild.v1.ICreateWorkerPoolRequest): Promise<google.longrunning.Operation>;

Calls CreateWorkerPool.

Parameter
NameDescription
request ICreateWorkerPoolRequest

CreateWorkerPoolRequest message or plain object

Returns
TypeDescription
Promise<google.longrunning.Operation>

Promise

deleteBuildTrigger(request, callback)

public deleteBuildTrigger(request: google.devtools.cloudbuild.v1.IDeleteBuildTriggerRequest, callback: google.devtools.cloudbuild.v1.CloudBuild.DeleteBuildTriggerCallback): void;

Calls DeleteBuildTrigger.

Parameters
NameDescription
request google.devtools.cloudbuild.v1.IDeleteBuildTriggerRequest

DeleteBuildTriggerRequest message or plain object

callback google.devtools.cloudbuild.v1.CloudBuild.DeleteBuildTriggerCallback

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

Returns
TypeDescription
void

deleteBuildTrigger(request)

public deleteBuildTrigger(request: google.devtools.cloudbuild.v1.IDeleteBuildTriggerRequest): Promise<google.protobuf.Empty>;

Calls DeleteBuildTrigger.

Parameter
NameDescription
request google.devtools.cloudbuild.v1.IDeleteBuildTriggerRequest

DeleteBuildTriggerRequest message or plain object

Returns
TypeDescription
Promise<google.protobuf.Empty>

Promise

deleteWorkerPool(request, callback)

public deleteWorkerPool(request: google.devtools.cloudbuild.v1.IDeleteWorkerPoolRequest, callback: google.devtools.cloudbuild.v1.CloudBuild.DeleteWorkerPoolCallback): void;

Calls DeleteWorkerPool.

Parameters
NameDescription
request google.devtools.cloudbuild.v1.IDeleteWorkerPoolRequest

DeleteWorkerPoolRequest message or plain object

callback google.devtools.cloudbuild.v1.CloudBuild.DeleteWorkerPoolCallback

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

Returns
TypeDescription
void

deleteWorkerPool(request)

public deleteWorkerPool(request: google.devtools.cloudbuild.v1.IDeleteWorkerPoolRequest): Promise<google.longrunning.Operation>;

Calls DeleteWorkerPool.

Parameter
NameDescription
request google.devtools.cloudbuild.v1.IDeleteWorkerPoolRequest

DeleteWorkerPoolRequest message or plain object

Returns
TypeDescription
Promise<google.longrunning.Operation>

Promise

getBuild(request, callback)

public getBuild(request: google.devtools.cloudbuild.v1.IGetBuildRequest, callback: google.devtools.cloudbuild.v1.CloudBuild.GetBuildCallback): void;

Calls GetBuild.

Parameters
NameDescription
request google.devtools.cloudbuild.v1.IGetBuildRequest

GetBuildRequest message or plain object

callback google.devtools.cloudbuild.v1.CloudBuild.GetBuildCallback

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

Returns
TypeDescription
void

getBuild(request)

public getBuild(request: google.devtools.cloudbuild.v1.IGetBuildRequest): Promise<google.devtools.cloudbuild.v1.Build>;

Calls GetBuild.

Parameter
NameDescription
request google.devtools.cloudbuild.v1.IGetBuildRequest

GetBuildRequest message or plain object

Returns
TypeDescription
Promise<google.devtools.cloudbuild.v1.Build>

Promise

getBuildTrigger(request, callback)

public getBuildTrigger(request: google.devtools.cloudbuild.v1.IGetBuildTriggerRequest, callback: google.devtools.cloudbuild.v1.CloudBuild.GetBuildTriggerCallback): void;

Calls GetBuildTrigger.

Parameters
NameDescription
request IGetBuildTriggerRequest

GetBuildTriggerRequest message or plain object

callback google.devtools.cloudbuild.v1.CloudBuild.GetBuildTriggerCallback

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

Returns
TypeDescription
void

getBuildTrigger(request)

public getBuildTrigger(request: google.devtools.cloudbuild.v1.IGetBuildTriggerRequest): Promise<google.devtools.cloudbuild.v1.BuildTrigger>;

Calls GetBuildTrigger.

Parameter
NameDescription
request IGetBuildTriggerRequest

GetBuildTriggerRequest message or plain object

Returns
TypeDescription
Promise<google.devtools.cloudbuild.v1.BuildTrigger>

Promise

getWorkerPool(request, callback)

public getWorkerPool(request: google.devtools.cloudbuild.v1.IGetWorkerPoolRequest, callback: google.devtools.cloudbuild.v1.CloudBuild.GetWorkerPoolCallback): void;

Calls GetWorkerPool.

Parameters
NameDescription
request IGetWorkerPoolRequest

GetWorkerPoolRequest message or plain object

callback google.devtools.cloudbuild.v1.CloudBuild.GetWorkerPoolCallback

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

Returns
TypeDescription
void

getWorkerPool(request)

public getWorkerPool(request: google.devtools.cloudbuild.v1.IGetWorkerPoolRequest): Promise<google.devtools.cloudbuild.v1.WorkerPool>;

Calls GetWorkerPool.

Parameter
NameDescription
request IGetWorkerPoolRequest

GetWorkerPoolRequest message or plain object

Returns
TypeDescription
Promise<google.devtools.cloudbuild.v1.WorkerPool>

Promise

listBuilds(request, callback)

public listBuilds(request: google.devtools.cloudbuild.v1.IListBuildsRequest, callback: google.devtools.cloudbuild.v1.CloudBuild.ListBuildsCallback): void;

Calls ListBuilds.

Parameters
NameDescription
request google.devtools.cloudbuild.v1.IListBuildsRequest

ListBuildsRequest message or plain object

callback google.devtools.cloudbuild.v1.CloudBuild.ListBuildsCallback

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

Returns
TypeDescription
void

listBuilds(request)

public listBuilds(request: google.devtools.cloudbuild.v1.IListBuildsRequest): Promise<google.devtools.cloudbuild.v1.ListBuildsResponse>;

Calls ListBuilds.

Parameter
NameDescription
request google.devtools.cloudbuild.v1.IListBuildsRequest

ListBuildsRequest message or plain object

Returns
TypeDescription
Promise<google.devtools.cloudbuild.v1.ListBuildsResponse>

Promise

listBuildTriggers(request, callback)

public listBuildTriggers(request: google.devtools.cloudbuild.v1.IListBuildTriggersRequest, callback: google.devtools.cloudbuild.v1.CloudBuild.ListBuildTriggersCallback): void;

Calls ListBuildTriggers.

Parameters
NameDescription
request IListBuildTriggersRequest

ListBuildTriggersRequest message or plain object

callback google.devtools.cloudbuild.v1.CloudBuild.ListBuildTriggersCallback

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

Returns
TypeDescription
void

listBuildTriggers(request)

public listBuildTriggers(request: google.devtools.cloudbuild.v1.IListBuildTriggersRequest): Promise<google.devtools.cloudbuild.v1.ListBuildTriggersResponse>;

Calls ListBuildTriggers.

Parameter
NameDescription
request IListBuildTriggersRequest

ListBuildTriggersRequest message or plain object

Returns
TypeDescription
Promise<google.devtools.cloudbuild.v1.ListBuildTriggersResponse>

Promise

listWorkerPools(request, callback)

public listWorkerPools(request: google.devtools.cloudbuild.v1.IListWorkerPoolsRequest, callback: google.devtools.cloudbuild.v1.CloudBuild.ListWorkerPoolsCallback): void;

Calls ListWorkerPools.

Parameters
NameDescription
request google.devtools.cloudbuild.v1.IListWorkerPoolsRequest

ListWorkerPoolsRequest message or plain object

callback google.devtools.cloudbuild.v1.CloudBuild.ListWorkerPoolsCallback

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

Returns
TypeDescription
void

listWorkerPools(request)

public listWorkerPools(request: google.devtools.cloudbuild.v1.IListWorkerPoolsRequest): Promise<google.devtools.cloudbuild.v1.ListWorkerPoolsResponse>;

Calls ListWorkerPools.

Parameter
NameDescription
request google.devtools.cloudbuild.v1.IListWorkerPoolsRequest

ListWorkerPoolsRequest message or plain object

Returns
TypeDescription
Promise<google.devtools.cloudbuild.v1.ListWorkerPoolsResponse>

Promise

receiveTriggerWebhook(request, callback)

public receiveTriggerWebhook(request: google.devtools.cloudbuild.v1.IReceiveTriggerWebhookRequest, callback: google.devtools.cloudbuild.v1.CloudBuild.ReceiveTriggerWebhookCallback): void;

Calls ReceiveTriggerWebhook.

Parameters
NameDescription
request google.devtools.cloudbuild.v1.IReceiveTriggerWebhookRequest

ReceiveTriggerWebhookRequest message or plain object

callback google.devtools.cloudbuild.v1.CloudBuild.ReceiveTriggerWebhookCallback

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

Returns
TypeDescription
void

receiveTriggerWebhook(request)

public receiveTriggerWebhook(request: google.devtools.cloudbuild.v1.IReceiveTriggerWebhookRequest): Promise<google.devtools.cloudbuild.v1.ReceiveTriggerWebhookResponse>;

Calls ReceiveTriggerWebhook.

Parameter
NameDescription
request google.devtools.cloudbuild.v1.IReceiveTriggerWebhookRequest

ReceiveTriggerWebhookRequest message or plain object

Returns
TypeDescription
Promise<google.devtools.cloudbuild.v1.ReceiveTriggerWebhookResponse>

Promise

retryBuild(request, callback)

public retryBuild(request: google.devtools.cloudbuild.v1.IRetryBuildRequest, callback: google.devtools.cloudbuild.v1.CloudBuild.RetryBuildCallback): void;

Calls RetryBuild.

Parameters
NameDescription
request IRetryBuildRequest

RetryBuildRequest message or plain object

callback google.devtools.cloudbuild.v1.CloudBuild.RetryBuildCallback

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

Returns
TypeDescription
void

retryBuild(request)

public retryBuild(request: google.devtools.cloudbuild.v1.IRetryBuildRequest): Promise<google.longrunning.Operation>;

Calls RetryBuild.

Parameter
NameDescription
request IRetryBuildRequest

RetryBuildRequest message or plain object

Returns
TypeDescription
Promise<google.longrunning.Operation>

Promise

runBuildTrigger(request, callback)

public runBuildTrigger(request: google.devtools.cloudbuild.v1.IRunBuildTriggerRequest, callback: google.devtools.cloudbuild.v1.CloudBuild.RunBuildTriggerCallback): void;

Calls RunBuildTrigger.

Parameters
NameDescription
request IRunBuildTriggerRequest

RunBuildTriggerRequest message or plain object

callback google.devtools.cloudbuild.v1.CloudBuild.RunBuildTriggerCallback

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

Returns
TypeDescription
void

runBuildTrigger(request)

public runBuildTrigger(request: google.devtools.cloudbuild.v1.IRunBuildTriggerRequest): Promise<google.longrunning.Operation>;

Calls RunBuildTrigger.

Parameter
NameDescription
request IRunBuildTriggerRequest

RunBuildTriggerRequest message or plain object

Returns
TypeDescription
Promise<google.longrunning.Operation>

Promise

updateBuildTrigger(request, callback)

public updateBuildTrigger(request: google.devtools.cloudbuild.v1.IUpdateBuildTriggerRequest, callback: google.devtools.cloudbuild.v1.CloudBuild.UpdateBuildTriggerCallback): void;

Calls UpdateBuildTrigger.

Parameters
NameDescription
request google.devtools.cloudbuild.v1.IUpdateBuildTriggerRequest

UpdateBuildTriggerRequest message or plain object

callback google.devtools.cloudbuild.v1.CloudBuild.UpdateBuildTriggerCallback

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

Returns
TypeDescription
void

updateBuildTrigger(request)

public updateBuildTrigger(request: google.devtools.cloudbuild.v1.IUpdateBuildTriggerRequest): Promise<google.devtools.cloudbuild.v1.BuildTrigger>;

Calls UpdateBuildTrigger.

Parameter
NameDescription
request google.devtools.cloudbuild.v1.IUpdateBuildTriggerRequest

UpdateBuildTriggerRequest message or plain object

Returns
TypeDescription
Promise<google.devtools.cloudbuild.v1.BuildTrigger>

Promise

updateWorkerPool(request, callback)

public updateWorkerPool(request: google.devtools.cloudbuild.v1.IUpdateWorkerPoolRequest, callback: google.devtools.cloudbuild.v1.CloudBuild.UpdateWorkerPoolCallback): void;

Calls UpdateWorkerPool.

Parameters
NameDescription
request IUpdateWorkerPoolRequest

UpdateWorkerPoolRequest message or plain object

callback google.devtools.cloudbuild.v1.CloudBuild.UpdateWorkerPoolCallback

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

Returns
TypeDescription
void

updateWorkerPool(request)

public updateWorkerPool(request: google.devtools.cloudbuild.v1.IUpdateWorkerPoolRequest): Promise<google.longrunning.Operation>;

Calls UpdateWorkerPool.

Parameter
NameDescription
request IUpdateWorkerPoolRequest

UpdateWorkerPoolRequest message or plain object

Returns
TypeDescription
Promise<google.longrunning.Operation>

Promise