A label.
JSON representation |
---|
{ "resourceName": string, "status": enum ( |
Fields | |
---|---|
resource |
Immutable. Name of the resource. Label resource names have the form: |
status |
Output only. Status of the label. Read only. |
text |
A type of label displaying text on a colored background. |
id |
Output only. ID of the label. Read only. |
name |
The name of the label. This field is required and should not be empty when creating a new label. The length of this string should be between 1 and 80, inclusive. |
LabelStatus
Possible statuses of a label.
Enums | |
---|---|
UNSPECIFIED |
Not specified. |
UNKNOWN |
Used for return value only. Represents value unknown in this version. |
ENABLED |
Label is enabled. |
REMOVED |
Label is removed. |
TextLabel
A type of label displaying text on a colored background.
JSON representation |
---|
{ "backgroundColor": string, "description": string } |
Fields | |
---|---|
background |
Background color of the label in HEX format. This string must match the regular expression '^#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$'. Note: The background color may not be visible for manager accounts. |
description |
A short description of the label. The length must be no more than 200 characters. |