Show / Hide Table of Contents

Class TagValuesResource

The "tagValues" collection of methods.

Inheritance
System.Object
TagValuesResource
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
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

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 300 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
System.String name

Required. Resource name for TagValue to be deleted in the format tagValues/456.

Returns
Type Description
TagValuesResource.DeleteRequest

Get(String)

Retrieves TagValue. If the TagValue or namespaced name does not exist, or if the user does not have permission to view it, this method will return PERMISSION_DENIED.

Declaration
public virtual TagValuesResource.GetRequest Get(string name)
Parameters
Type Name Description
System.String name

Required. Resource name for TagValue to be fetched in the format tagValues/456.

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.

System.String resource

REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field.

Returns
Type Description
TagValuesResource.GetIamPolicyRequest

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.

System.String name

Immutable. Resource name for TagValue in the format tagValues/456.

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.

System.String resource

REQUIRED: The resource for which the policy is being specified. See the operation documentation 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.

System.String resource

REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field.

Returns
Type Description
TagValuesResource.TestIamPermissionsRequest
In This Article
Back to top