Resource Manager V3 API - Class Google::Cloud::ResourceManager::V3::TagValue (v0.8.2)

Reference documentation and code samples for the Resource Manager V3 API class Google::Cloud::ResourceManager::V3::TagValue.

A TagValue is a child of a particular TagKey. This is used to group cloud resources for the purpose of controlling them using policies.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#create_time

def create_time() -> ::Google::Protobuf::Timestamp
Returns

#description

def description() -> ::String
Returns
  • (::String) — Optional. User-assigned description of the TagValue. Must not exceed 256 characters.

    Read-write.

#description=

def description=(value) -> ::String
Parameter
  • value (::String) — Optional. User-assigned description of the TagValue. Must not exceed 256 characters.

    Read-write.

Returns
  • (::String) — Optional. User-assigned description of the TagValue. Must not exceed 256 characters.

    Read-write.

#etag

def etag() -> ::String
Returns
  • (::String) — Optional. Entity tag which users can pass to prevent race conditions. This field is always set in server responses. See UpdateTagValueRequest for details.

#etag=

def etag=(value) -> ::String
Parameter
  • value (::String) — Optional. Entity tag which users can pass to prevent race conditions. This field is always set in server responses. See UpdateTagValueRequest for details.
Returns
  • (::String) — Optional. Entity tag which users can pass to prevent race conditions. This field is always set in server responses. See UpdateTagValueRequest for details.

#name

def name() -> ::String
Returns
  • (::String) — Immutable. Resource name for TagValue in the format tagValues/456.

#name=

def name=(value) -> ::String
Parameter
  • value (::String) — Immutable. Resource name for TagValue in the format tagValues/456.
Returns
  • (::String) — Immutable. Resource name for TagValue in the format tagValues/456.

#namespaced_name

def namespaced_name() -> ::String
Returns
  • (::String) — Output only. The namespaced name of the TagValue. Can be in the form {organization_id}/{tag_key_short_name}/{tag_value_short_name} or {project_id}/{tag_key_short_name}/{tag_value_short_name} or {project_number}/{tag_key_short_name}/{tag_value_short_name}.

#parent

def parent() -> ::String
Returns
  • (::String) — Immutable. The resource name of the new TagValue's parent TagKey. Must be of the form tagKeys/{tag_key_id}.

#parent=

def parent=(value) -> ::String
Parameter
  • value (::String) — Immutable. The resource name of the new TagValue's parent TagKey. Must be of the form tagKeys/{tag_key_id}.
Returns
  • (::String) — Immutable. The resource name of the new TagValue's parent TagKey. Must be of the form tagKeys/{tag_key_id}.

#short_name

def short_name() -> ::String
Returns
  • (::String) — Required. Immutable. User-assigned short name for TagValue. The short name should be unique for TagValues within the same parent TagKey.

    The short name must be 63 characters or less, beginning and ending with an alphanumeric character ([a-z0-9A-Z]) with dashes (-), underscores (_), dots (.), and alphanumerics between.

#short_name=

def short_name=(value) -> ::String
Parameter
  • value (::String) — Required. Immutable. User-assigned short name for TagValue. The short name should be unique for TagValues within the same parent TagKey.

    The short name must be 63 characters or less, beginning and ending with an alphanumeric character ([a-z0-9A-Z]) with dashes (-), underscores (_), dots (.), and alphanumerics between.

Returns
  • (::String) — Required. Immutable. User-assigned short name for TagValue. The short name should be unique for TagValues within the same parent TagKey.

    The short name must be 63 characters or less, beginning and ending with an alphanumeric character ([a-z0-9A-Z]) with dashes (-), underscores (_), dots (.), and alphanumerics between.

#update_time

def update_time() -> ::Google::Protobuf::Timestamp
Returns