Reference documentation and code samples for the Google Cloud Database Center V1beta Client class Tag.
Tag is a key value pair attached to a resource.
Generated from protobuf message google.cloud.databasecenter.v1beta.Tag
Namespace
Google \ Cloud \ DatabaseCenter \ V1betaMethods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ key
string
↳ value
string
The value part of the tag.
↳ source
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}"
↳ inherited
bool
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.
getKey
Generated from protobuf field string key = 1;
string
setKey
Generated from protobuf field string key = 1;
var
string
$this
getValue
The value part of the tag.
string
setValue
The value part of the tag.
var
string
$this
getSource
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}"
string
setSource
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}"
var
string
$this
getInherited
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.
bool
setInherited
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.
var
bool
$this

