TagKeys
class TagKeys extends Resource (View source)
The "tagKeys" collection of methods.
Typical usage is:
$cloudresourcemanagerService = new Google\Service\CloudResourceManager(...);
$tagKeys = $cloudresourcemanagerService->tagKeys;
Methods
Deletes a TagKey. The TagKey cannot be deleted if it has any child TagValues.
Retrieves a TagKey. This method will return PERMISSION_DENIED
if the key
does not exist or the user does not have permission to view it. (tagKeys.get)
Gets the access control policy for a TagKey. The returned policy may be empty
if no such policy or resource exists. The resource
field should be the
TagKey's resource name. For example, "tagKeys/1234". The caller must have
cloudresourcemanager.googleapis.com/tagKeys.getIamPolicy
permission on the
specified TagKey. (tagKeys.getIamPolicy)
Retrieves a TagKey by its namespaced name. This method will return
PERMISSION_DENIED
if the key does not exist or the user does not have
permission to view it. (tagKeys.getNamespaced)
Lists all TagKeys for a parent resource. (tagKeys.listTagKeys)
Sets the access control policy on a TagKey, replacing any existing policy.
Returns permissions that a caller has on the specified TagKey. The resource
field should be the TagKey's resource name. For example, "tagKeys/1234".
Details
Operation
create(TagKey $postBody, array $optParams = [])
Creates a new TagKey. If another request with the same parameters is sent while the original request is in process, the second request will receive an error. A maximum of 1000 TagKeys can exist under a parent at any given time.
(tagKeys.create)
Operation
delete(string $name, array $optParams = [])
Deletes a TagKey. The TagKey cannot be deleted if it has any child TagValues.
(tagKeys.delete)
TagKey
get(string $name, array $optParams = [])
Retrieves a TagKey. This method will return PERMISSION_DENIED
if the key
does not exist or the user does not have permission to view it. (tagKeys.get)
Policy
getIamPolicy(string $resource, GetIamPolicyRequest $postBody, array $optParams = [])
Gets the access control policy for a TagKey. The returned policy may be empty
if no such policy or resource exists. The resource
field should be the
TagKey's resource name. For example, "tagKeys/1234". The caller must have
cloudresourcemanager.googleapis.com/tagKeys.getIamPolicy
permission on the
specified TagKey. (tagKeys.getIamPolicy)
TagKey
getNamespaced(array $optParams = [])
Retrieves a TagKey by its namespaced name. This method will return
PERMISSION_DENIED
if the key does not exist or the user does not have
permission to view it. (tagKeys.getNamespaced)
ListTagKeysResponse
listTagKeys(array $optParams = [])
Lists all TagKeys for a parent resource. (tagKeys.listTagKeys)
Operation
patch(string $name, TagKey $postBody, array $optParams = [])
Updates the attributes of the TagKey resource. (tagKeys.patch)
Policy
setIamPolicy(string $resource, SetIamPolicyRequest $postBody, array $optParams = [])
Sets the access control policy on a TagKey, replacing any existing policy.
The resource
field should be the TagKey's resource name. For example,
"tagKeys/1234". The caller must have resourcemanager.tagKeys.setIamPolicy
permission on the identified tagValue. (tagKeys.setIamPolicy)
TestIamPermissionsResponse
testIamPermissions(string $resource, TestIamPermissionsRequest $postBody, array $optParams = [])
Returns permissions that a caller has on the specified TagKey. The resource
field should be the TagKey's resource name. For example, "tagKeys/1234".
There are no permissions required for making this API call. (tagKeys.testIamPermissions)