TagKeys

google.cloud.resourcemanager.v3. TagKeys

Represents a TagKeys

Constructor

new TagKeys(rpcImpl, requestDelimitedopt, responseDelimitedopt)

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

createTagKey(request, callback) → {undefined}

Calls CreateTagKey.

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

CreateTagKeyRequest message or plain object

callback google.cloud.resourcemanager.v3.TagKeys.CreateTagKeyCallback

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

Returns:
Type Description
undefined

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

Calls CreateTagKey.

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

CreateTagKeyRequest message or plain object

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

Promise

deleteTagKey(request, callback) → {undefined}

Calls DeleteTagKey.

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

DeleteTagKeyRequest message or plain object

callback google.cloud.resourcemanager.v3.TagKeys.DeleteTagKeyCallback

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

Returns:
Type Description
undefined

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

Calls DeleteTagKey.

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

DeleteTagKeyRequest message or plain object

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

Promise

getIamPolicy(request, callback) → {undefined}

Calls GetIamPolicy.

Parameters:
Name Type Description
request google.iam.v1.IGetIamPolicyRequest

GetIamPolicyRequest message or plain object

callback google.cloud.resourcemanager.v3.TagKeys.GetIamPolicyCallback

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

Returns:
Type Description
undefined

getIamPolicy(request) → {Promise.<google.iam.v1.Policy>}

Calls GetIamPolicy.

Parameters:
Name Type Description
request google.iam.v1.IGetIamPolicyRequest

GetIamPolicyRequest message or plain object

Returns:
Type Description
Promise.<google.iam.v1.Policy>

Promise

getNamespacedTagKey(request, callback) → {undefined}

Calls GetNamespacedTagKey.

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

GetNamespacedTagKeyRequest message or plain object

callback google.cloud.resourcemanager.v3.TagKeys.GetNamespacedTagKeyCallback

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

Returns:
Type Description
undefined

getNamespacedTagKey(request) → {Promise.<google.cloud.resourcemanager.v3.TagKey>}

Calls GetNamespacedTagKey.

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

GetNamespacedTagKeyRequest message or plain object

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

Promise

getTagKey(request, callback) → {undefined}

Calls GetTagKey.

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

GetTagKeyRequest message or plain object

callback google.cloud.resourcemanager.v3.TagKeys.GetTagKeyCallback

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

Returns:
Type Description
undefined

getTagKey(request) → {Promise.<google.cloud.resourcemanager.v3.TagKey>}

Calls GetTagKey.

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

GetTagKeyRequest message or plain object

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

Promise

listTagKeys(request, callback) → {undefined}

Calls ListTagKeys.

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

ListTagKeysRequest message or plain object

callback google.cloud.resourcemanager.v3.TagKeys.ListTagKeysCallback

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

Returns:
Type Description
undefined

listTagKeys(request) → {Promise.<google.cloud.resourcemanager.v3.ListTagKeysResponse>}

Calls ListTagKeys.

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

ListTagKeysRequest message or plain object

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

Promise

setIamPolicy(request, callback) → {undefined}

Calls SetIamPolicy.

Parameters:
Name Type Description
request google.iam.v1.ISetIamPolicyRequest

SetIamPolicyRequest message or plain object

callback google.cloud.resourcemanager.v3.TagKeys.SetIamPolicyCallback

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

Returns:
Type Description
undefined

setIamPolicy(request) → {Promise.<google.iam.v1.Policy>}

Calls SetIamPolicy.

Parameters:
Name Type Description
request google.iam.v1.ISetIamPolicyRequest

SetIamPolicyRequest message or plain object

Returns:
Type Description
Promise.<google.iam.v1.Policy>

Promise

testIamPermissions(request, callback) → {undefined}

Calls TestIamPermissions.

Parameters:
Name Type Description
request google.iam.v1.ITestIamPermissionsRequest

TestIamPermissionsRequest message or plain object

callback google.cloud.resourcemanager.v3.TagKeys.TestIamPermissionsCallback

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

Returns:
Type Description
undefined

testIamPermissions(request) → {Promise.<google.iam.v1.TestIamPermissionsResponse>}

Calls TestIamPermissions.

Parameters:
Name Type Description
request google.iam.v1.ITestIamPermissionsRequest

TestIamPermissionsRequest message or plain object

Returns:
Type Description
Promise.<google.iam.v1.TestIamPermissionsResponse>

Promise

updateTagKey(request, callback) → {undefined}

Calls UpdateTagKey.

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

UpdateTagKeyRequest message or plain object

callback google.cloud.resourcemanager.v3.TagKeys.UpdateTagKeyCallback

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

Returns:
Type Description
undefined

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

Calls UpdateTagKey.

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

UpdateTagKeyRequest message or plain object

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

Promise

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

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

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

Type Definitions

CreateTagKeyCallback(error, responseopt)

Callback as used by createTagKey.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.longrunning.Operation <optional>

Operation

DeleteTagKeyCallback(error, responseopt)

Callback as used by deleteTagKey.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.longrunning.Operation <optional>

Operation

GetIamPolicyCallback(error, responseopt)

Callback as used by getIamPolicy.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.iam.v1.Policy <optional>

Policy

GetNamespacedTagKeyCallback(error, responseopt)

Callback as used by getNamespacedTagKey.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

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

TagKey

GetTagKeyCallback(error, responseopt)

Callback as used by getTagKey.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

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

TagKey

ListTagKeysCallback(error, responseopt)

Callback as used by listTagKeys.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

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

ListTagKeysResponse

SetIamPolicyCallback(error, responseopt)

Callback as used by setIamPolicy.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.iam.v1.Policy <optional>

Policy

TestIamPermissionsCallback(error, responseopt)

Callback as used by testIamPermissions.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.iam.v1.TestIamPermissionsResponse <optional>

TestIamPermissionsResponse

UpdateTagKeyCallback(error, responseopt)

Callback as used by updateTagKey.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.longrunning.Operation <optional>

Operation