Class: Google::Apis::CloudsearchV1::Labels
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::Labels
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudsearch_v1/classes.rb,
lib/google/apis/cloudsearch_v1/representations.rb,
lib/google/apis/cloudsearch_v1/representations.rb
Instance Attribute Summary collapse
-
#display_name ⇒ Array<String>
The display name of the labels.
-
#id ⇒ Array<String>
The ids of the labels attached to the Item, e.g.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Labels
constructor
A new instance of Labels.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Labels
Returns a new instance of Labels.
13057 13058 13059 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13057 def initialize(**args) update!(**args) end |
Instance Attribute Details
#display_name ⇒ Array<String>
The display name of the labels. This is populated (instead of the id) when the
request fetch_spec has LABEL_DISPLAY_NAMES.
Corresponds to the JSON property displayName
13050 13051 13052 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13050 def display_name @display_name end |
#id ⇒ Array<String>
The ids of the labels attached to the Item, e.g. "^i", "^x_1"
Corresponds to the JSON property id
13055 13056 13057 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13055 def id @id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
13062 13063 13064 13065 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13062 def update!(**args) @display_name = args[:display_name] if args.key?(:display_name) @id = args[:id] if args.key?(:id) end |