TagHolds

google.cloud.resourcemanager.v3. TagHolds

Represents a TagHolds

Constructor

new TagHolds(rpcImpl, requestDelimitedopt, responseDelimitedopt)

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

createTagHold(request, callback) → {undefined}

Calls CreateTagHold.

Parameters:
Name Type Description
request google.cloud.resourcemanager.v3.ICreateTagHoldRequest

CreateTagHoldRequest message or plain object

callback google.cloud.resourcemanager.v3.TagHolds.CreateTagHoldCallback

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

Returns:
Type Description
undefined

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

Calls CreateTagHold.

Parameters:
Name Type Description
request google.cloud.resourcemanager.v3.ICreateTagHoldRequest

CreateTagHoldRequest message or plain object

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

Promise

deleteTagHold(request, callback) → {undefined}

Calls DeleteTagHold.

Parameters:
Name Type Description
request google.cloud.resourcemanager.v3.IDeleteTagHoldRequest

DeleteTagHoldRequest message or plain object

callback google.cloud.resourcemanager.v3.TagHolds.DeleteTagHoldCallback

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

Returns:
Type Description
undefined

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

Calls DeleteTagHold.

Parameters:
Name Type Description
request google.cloud.resourcemanager.v3.IDeleteTagHoldRequest

DeleteTagHoldRequest message or plain object

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

Promise

listTagHolds(request, callback) → {undefined}

Calls ListTagHolds.

Parameters:
Name Type Description
request google.cloud.resourcemanager.v3.IListTagHoldsRequest

ListTagHoldsRequest message or plain object

callback google.cloud.resourcemanager.v3.TagHolds.ListTagHoldsCallback

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

Returns:
Type Description
undefined

listTagHolds(request) → {Promise.<google.cloud.resourcemanager.v3.ListTagHoldsResponse>}

Calls ListTagHolds.

Parameters:
Name Type Description
request google.cloud.resourcemanager.v3.IListTagHoldsRequest

ListTagHoldsRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.resourcemanager.v3.ListTagHoldsResponse>

Promise

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

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

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

Type Definitions

CreateTagHoldCallback(error, responseopt)

Callback as used by createTagHold.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.longrunning.Operation <optional>

Operation

DeleteTagHoldCallback(error, responseopt)

Callback as used by deleteTagHold.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.longrunning.Operation <optional>

Operation

ListTagHoldsCallback(error, responseopt)

Callback as used by listTagHolds.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.resourcemanager.v3.ListTagHoldsResponse <optional>

ListTagHoldsResponse