Class TagValuesResource
The "tagValues" collection of methods.
Inherited Members
Namespace: Google.Apis.CloudResourceManager.v3
Assembly: Google.Apis.CloudResourceManager.v3.dll
Syntax
public class TagValuesResource
Constructors
TagValuesResource(IClientService)
Constructs a new resource.
Declaration
public TagValuesResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Properties
TagHolds
Gets the TagHolds resource.
Declaration
public virtual TagValuesResource.TagHoldsResource TagHolds { get; }
Property Value
Type | Description |
---|---|
TagValuesResource.TagHoldsResource |
Methods
Create(TagValue)
Creates a TagValue as a child of the specified TagKey. If a 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 TagValues can exist under a TagKey at any given time.
Declaration
public virtual TagValuesResource.CreateRequest Create(TagValue body)
Parameters
Type | Name | Description |
---|---|---|
TagValue | body | The body of the request. |
Returns
Type | Description |
---|---|
TagValuesResource.CreateRequest |
Delete(string)
Deletes a TagValue. The TagValue cannot have any bindings when it is deleted.
Declaration
public virtual TagValuesResource.DeleteRequest Delete(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. Resource name for TagValue to be deleted in the format tagValues/456. |
Returns
Type | Description |
---|---|
TagValuesResource.DeleteRequest |
Get(string)
Retrieves a TagValue. This method will return PERMISSION_DENIED
if the value does not exist or the user
does not have permission to view it.
Declaration
public virtual TagValuesResource.GetRequest Get(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. Resource name for TagValue to be fetched in the format |
Returns
Type | Description |
---|---|
TagValuesResource.GetRequest |
GetIamPolicy(GetIamPolicyRequest, string)
Gets the access control policy for a TagValue. The returned policy may be empty if no such policy or
resource exists. The resource
field should be the TagValue's resource name. For example: tagValues/1234
.
The caller must have the cloudresourcemanager.googleapis.com/tagValues.getIamPolicy
permission on the
identified TagValue to get the access control policy.
Declaration
public virtual TagValuesResource.GetIamPolicyRequest GetIamPolicy(GetIamPolicyRequest body, string resource)
Parameters
Type | Name | Description |
---|---|---|
GetIamPolicyRequest | body | The body of the request. |
string | resource | REQUIRED: The resource for which the policy is being requested. See Resource names for the appropriate value for this field. |
Returns
Type | Description |
---|---|
TagValuesResource.GetIamPolicyRequest |
GetNamespaced()
Retrieves a TagValue by its namespaced name. This method will return PERMISSION_DENIED
if the value does
not exist or the user does not have permission to view it.
Declaration
public virtual TagValuesResource.GetNamespacedRequest GetNamespaced()
Returns
Type | Description |
---|---|
TagValuesResource.GetNamespacedRequest |
List()
Lists all TagValues for a specific TagKey.
Declaration
public virtual TagValuesResource.ListRequest List()
Returns
Type | Description |
---|---|
TagValuesResource.ListRequest |
Patch(TagValue, string)
Updates the attributes of the TagValue resource.
Declaration
public virtual TagValuesResource.PatchRequest Patch(TagValue body, string name)
Parameters
Type | Name | Description |
---|---|---|
TagValue | body | The body of the request. |
string | name | Immutable. Resource name for TagValue in the format |
Returns
Type | Description |
---|---|
TagValuesResource.PatchRequest |
SetIamPolicy(SetIamPolicyRequest, string)
Sets the access control policy on a TagValue, replacing any existing policy. The resource
field should be
the TagValue's resource name. For example: tagValues/1234
. The caller must have
resourcemanager.tagValues.setIamPolicy
permission on the identified tagValue.
Declaration
public virtual TagValuesResource.SetIamPolicyRequest SetIamPolicy(SetIamPolicyRequest body, string resource)
Parameters
Type | Name | Description |
---|---|---|
SetIamPolicyRequest | body | The body of the request. |
string | resource | REQUIRED: The resource for which the policy is being specified. See Resource names for the appropriate value for this field. |
Returns
Type | Description |
---|---|
TagValuesResource.SetIamPolicyRequest |
TestIamPermissions(TestIamPermissionsRequest, string)
Returns permissions that a caller has on the specified TagValue. The resource
field should be the
TagValue's resource name. For example: tagValues/1234
. There are no permissions required for making this
API call.
Declaration
public virtual TagValuesResource.TestIamPermissionsRequest TestIamPermissions(TestIamPermissionsRequest body, string resource)
Parameters
Type | Name | Description |
---|---|---|
TestIamPermissionsRequest | body | The body of the request. |
string | resource | REQUIRED: The resource for which the policy detail is being requested. See Resource names for the appropriate value for this field. |
Returns
Type | Description |
---|---|
TagValuesResource.TestIamPermissionsRequest |