Class: Google::Apis::CloudsearchV1::LabelUpdate
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::LabelUpdate
- 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
Overview
HistoryRecord for changes associated with a label, namely: LABEL_CREATED LABEL_DELETED LABEL_RENAMED LABEL_UPDATED
Instance Attribute Summary collapse
-
#canonical_name ⇒ String
Corresponds to the JSON property
canonicalName. -
#label_created ⇒ Google::Apis::CloudsearchV1::LabelCreated
A label was created.
-
#label_deleted ⇒ Google::Apis::CloudsearchV1::LabelDeleted
A label was deleted.
-
#label_id ⇒ String
Corresponds to the JSON property
labelId. -
#label_renamed ⇒ Google::Apis::CloudsearchV1::LabelRenamed
A label was renamed.
-
#label_updated ⇒ Google::Apis::CloudsearchV1::LabelUpdated
A label pref was updated outside of a rename, create, or delete.
-
#sync_id ⇒ Fixnum
Corresponds to the JSON property
syncId.
Instance Method Summary collapse
-
#initialize(**args) ⇒ LabelUpdate
constructor
A new instance of LabelUpdate.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ LabelUpdate
Returns a new instance of LabelUpdate.
12345 12346 12347 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 12345 def initialize(**args) update!(**args) end |
Instance Attribute Details
#canonical_name ⇒ String
Corresponds to the JSON property canonicalName
12313 12314 12315 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 12313 def canonical_name @canonical_name end |
#label_created ⇒ Google::Apis::CloudsearchV1::LabelCreated
A label was created.
Corresponds to the JSON property labelCreated
12318 12319 12320 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 12318 def label_created @label_created end |
#label_deleted ⇒ Google::Apis::CloudsearchV1::LabelDeleted
A label was deleted.
Corresponds to the JSON property labelDeleted
12323 12324 12325 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 12323 def label_deleted @label_deleted end |
#label_id ⇒ String
Corresponds to the JSON property labelId
12328 12329 12330 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 12328 def label_id @label_id end |
#label_renamed ⇒ Google::Apis::CloudsearchV1::LabelRenamed
A label was renamed.
Corresponds to the JSON property labelRenamed
12333 12334 12335 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 12333 def label_renamed @label_renamed end |
#label_updated ⇒ Google::Apis::CloudsearchV1::LabelUpdated
A label pref was updated outside of a rename, create, or delete.
Corresponds to the JSON property labelUpdated
12338 12339 12340 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 12338 def label_updated @label_updated end |
#sync_id ⇒ Fixnum
Corresponds to the JSON property syncId
12343 12344 12345 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 12343 def sync_id @sync_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
12350 12351 12352 12353 12354 12355 12356 12357 12358 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 12350 def update!(**args) @canonical_name = args[:canonical_name] if args.key?(:canonical_name) @label_created = args[:label_created] if args.key?(:label_created) @label_deleted = args[:label_deleted] if args.key?(:label_deleted) @label_id = args[:label_id] if args.key?(:label_id) @label_renamed = args[:label_renamed] if args.key?(:label_renamed) @label_updated = args[:label_updated] if args.key?(:label_updated) @sync_id = args[:sync_id] if args.key?(:sync_id) end |