Class: Google::Apis::CloudsearchV1::LabelUpdate

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ LabelUpdate

Returns a new instance of LabelUpdate.



12494
12495
12496
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 12494

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#canonical_nameString

Corresponds to the JSON property canonicalName

Returns:

  • (String)


12462
12463
12464
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 12462

def canonical_name
  @canonical_name
end

#label_createdGoogle::Apis::CloudsearchV1::LabelCreated

A label was created. Corresponds to the JSON property labelCreated



12467
12468
12469
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 12467

def label_created
  @label_created
end

#label_deletedGoogle::Apis::CloudsearchV1::LabelDeleted

A label was deleted. Corresponds to the JSON property labelDeleted



12472
12473
12474
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 12472

def label_deleted
  @label_deleted
end

#label_idString

Corresponds to the JSON property labelId

Returns:

  • (String)


12477
12478
12479
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 12477

def label_id
  @label_id
end

#label_renamedGoogle::Apis::CloudsearchV1::LabelRenamed

A label was renamed. Corresponds to the JSON property labelRenamed



12482
12483
12484
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 12482

def label_renamed
  @label_renamed
end

#label_updatedGoogle::Apis::CloudsearchV1::LabelUpdated

A label pref was updated outside of a rename, create, or delete. Corresponds to the JSON property labelUpdated



12487
12488
12489
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 12487

def label_updated
  @label_updated
end

#sync_idFixnum

Corresponds to the JSON property syncId

Returns:

  • (Fixnum)


12492
12493
12494
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 12492

def sync_id
  @sync_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



12499
12500
12501
12502
12503
12504
12505
12506
12507
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 12499

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