Database Center V1BETA API - Class Google::Cloud::DatabaseCenter::V1beta::Tag (v0.1.0)

Reference documentation and code samples for the Database Center V1BETA API class Google::Cloud::DatabaseCenter::V1beta::Tag.

Tag is a key value pair attached to a resource.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#inherited

def inherited() -> ::Boolean
Returns
  • (::Boolean) — Indicates the inheritance status of a tag value attached to the given resource. If the tag value is inherited from one of the resource's ancestors, inherited will be true. If false, then the tag value is directly attached to the resource.

#inherited=

def inherited=(value) -> ::Boolean
Parameter
  • value (::Boolean) — Indicates the inheritance status of a tag value attached to the given resource. If the tag value is inherited from one of the resource's ancestors, inherited will be true. If false, then the tag value is directly attached to the resource.
Returns
  • (::Boolean) — Indicates the inheritance status of a tag value attached to the given resource. If the tag value is inherited from one of the resource's ancestors, inherited will be true. If false, then the tag value is directly attached to the resource.

#key

def key() -> ::String
Returns
  • (::String)

#key=

def key=(value) -> ::String
Parameter
  • value (::String)
Returns
  • (::String)

#source

def source() -> ::String
Returns
  • (::String) — The source of the tag. According to https://cloud.google.com/resource-manager/docs/tags/tags-overview#tags_and_labels, tags can be created only at the project or organization level. Tags can be inherited from different project as well not just the current project where the database resource is present. Format: "projects/{PROJECT_ID}", "projects/{PROJECT_NUMBER}", "organizations/{ORGANIZATION_ID}"

#source=

def source=(value) -> ::String
Parameter
  • value (::String) — The source of the tag. According to https://cloud.google.com/resource-manager/docs/tags/tags-overview#tags_and_labels, tags can be created only at the project or organization level. Tags can be inherited from different project as well not just the current project where the database resource is present. Format: "projects/{PROJECT_ID}", "projects/{PROJECT_NUMBER}", "organizations/{ORGANIZATION_ID}"
Returns
  • (::String) — The source of the tag. According to https://cloud.google.com/resource-manager/docs/tags/tags-overview#tags_and_labels, tags can be created only at the project or organization level. Tags can be inherited from different project as well not just the current project where the database resource is present. Format: "projects/{PROJECT_ID}", "projects/{PROJECT_NUMBER}", "organizations/{ORGANIZATION_ID}"

#value

def value() -> ::String
Returns
  • (::String) — The value part of the tag.

#value=

def value=(value) -> ::String
Parameter
  • value (::String) — The value part of the tag.
Returns
  • (::String) — The value part of the tag.