Revisions

google.cloud.run.v2. Revisions

Represents a Revisions

Constructor

new Revisions(rpcImpl, requestDelimitedopt, responseDelimitedopt)

Constructs a new Revisions 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

deleteRevision(request, callback) → {undefined}

Calls DeleteRevision.

Parameters:
Name Type Description
request google.cloud.run.v2.IDeleteRevisionRequest

DeleteRevisionRequest message or plain object

callback google.cloud.run.v2.Revisions.DeleteRevisionCallback

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

Returns:
Type Description
undefined

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

Calls DeleteRevision.

Parameters:
Name Type Description
request google.cloud.run.v2.IDeleteRevisionRequest

DeleteRevisionRequest message or plain object

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

Promise

getRevision(request, callback) → {undefined}

Calls GetRevision.

Parameters:
Name Type Description
request google.cloud.run.v2.IGetRevisionRequest

GetRevisionRequest message or plain object

callback google.cloud.run.v2.Revisions.GetRevisionCallback

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

Returns:
Type Description
undefined

getRevision(request) → {Promise.<google.cloud.run.v2.Revision>}

Calls GetRevision.

Parameters:
Name Type Description
request google.cloud.run.v2.IGetRevisionRequest

GetRevisionRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.run.v2.Revision>

Promise

listRevisions(request, callback) → {undefined}

Calls ListRevisions.

Parameters:
Name Type Description
request google.cloud.run.v2.IListRevisionsRequest

ListRevisionsRequest message or plain object

callback google.cloud.run.v2.Revisions.ListRevisionsCallback

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

Returns:
Type Description
undefined

listRevisions(request) → {Promise.<google.cloud.run.v2.ListRevisionsResponse>}

Calls ListRevisions.

Parameters:
Name Type Description
request google.cloud.run.v2.IListRevisionsRequest

ListRevisionsRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.run.v2.ListRevisionsResponse>

Promise

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

Creates new Revisions 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
Revisions

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

Type Definitions

DeleteRevisionCallback(error, responseopt)

Callback as used by deleteRevision.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.longrunning.Operation <optional>

Operation

GetRevisionCallback(error, responseopt)

Callback as used by getRevision.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.run.v2.Revision <optional>

Revision

ListRevisionsCallback(error, responseopt)

Callback as used by listRevisions.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.run.v2.ListRevisionsResponse <optional>

ListRevisionsResponse