public class CloudResourceManager.TagKeys extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
CloudResourceManager.TagKeys.Create |
class |
CloudResourceManager.TagKeys.Delete |
class |
CloudResourceManager.TagKeys.Get |
class |
CloudResourceManager.TagKeys.GetIamPolicy |
class |
CloudResourceManager.TagKeys.List |
class |
CloudResourceManager.TagKeys.Patch |
class |
CloudResourceManager.TagKeys.SetIamPolicy |
class |
CloudResourceManager.TagKeys.TestIamPermissions |
| Constructor and Description |
|---|
TagKeys() |
| Modifier and Type | Method and Description |
|---|---|
CloudResourceManager.TagKeys.Create |
create(TagKey content)
Creates a new TagKey.
|
CloudResourceManager.TagKeys.Delete |
delete(String name)
Deletes a TagKey.
|
CloudResourceManager.TagKeys.Get |
get(String name)
Retrieves a TagKey.
|
CloudResourceManager.TagKeys.GetIamPolicy |
getIamPolicy(String resource,
GetIamPolicyRequest content)
Gets the access control policy for a TagKey.
|
CloudResourceManager.TagKeys.List |
list()
Lists all TagKeys for a parent resource.
|
CloudResourceManager.TagKeys.Patch |
patch(String name,
TagKey content)
Updates the attributes of the TagKey resource.
|
CloudResourceManager.TagKeys.SetIamPolicy |
setIamPolicy(String resource,
SetIamPolicyRequest content)
Sets the access control policy on a TagKey, replacing any existing policy.
|
CloudResourceManager.TagKeys.TestIamPermissions |
testIamPermissions(String resource,
TestIamPermissionsRequest content)
Returns permissions that a caller has on the specified TagKey.
|
public CloudResourceManager.TagKeys.Create create(TagKey content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.content - the TagKeyIOExceptionpublic CloudResourceManager.TagKeys.Delete delete(String name) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.name - Required. The resource name of a TagKey to be deleted in the format `tagKeys/123`. The TagKey cannot
be a parent of any existing TagValues or it will not be deleted successfully.IOExceptionpublic CloudResourceManager.TagKeys.Get get(String name) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.name - Required. A resource name in the format `tagKeys/{id}`, such as `tagKeys/123`.IOExceptionpublic CloudResourceManager.TagKeys.GetIamPolicy getIamPolicy(String resource, GetIamPolicyRequest content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote
operation.resource - REQUIRED: The resource for which the policy is being requested. See [Resource
names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for
this field.content - the GetIamPolicyRequestIOExceptionpublic CloudResourceManager.TagKeys.List list() throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.IOExceptionpublic CloudResourceManager.TagKeys.Patch patch(String name, TagKey content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.name - Immutable. The resource name for a TagKey. Must be in the format `tagKeys/{tag_key_id}`, where
`tag_key_id` is the generated numeric id for the TagKey.content - the TagKeyIOExceptionpublic CloudResourceManager.TagKeys.SetIamPolicy setIamPolicy(String resource, SetIamPolicyRequest content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote
operation.resource - REQUIRED: The resource for which the policy is being specified. See [Resource
names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for
this field.content - the SetIamPolicyRequestIOExceptionpublic CloudResourceManager.TagKeys.TestIamPermissions testIamPermissions(String resource, TestIamPermissionsRequest content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote
operation.resource - REQUIRED: The resource for which the policy detail is being requested. See [Resource
names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for
this field.content - the TestIamPermissionsRequestIOExceptionCopyright © 2011–2023 Google. All rights reserved.