Class: Google::Apis::CloudsearchV1::PrefUpdate

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 prefs, namely: PREF_WRITTEN PREF_DELETED

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PrefUpdate

Returns a new instance of PrefUpdate.



15602
15603
15604
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 15602

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

Instance Attribute Details

#nameString

Name of the affected preference. Corresponds to the JSON property name

Returns:

  • (String)


15585
15586
15587
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 15585

def name
  @name
end

#pre_stateGoogle::Apis::CloudsearchV1::FuseboxPrefUpdatePreState

If the Value field is not set this means the pref did not exist. Corresponds to the JSON property preState



15590
15591
15592
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 15590

def pre_state
  @pre_state
end

#pref_deletedGoogle::Apis::CloudsearchV1::PrefDeleted

PREF_DELETED Corresponds to the JSON property prefDeleted



15595
15596
15597
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 15595

def pref_deleted
  @pref_deleted
end

#pref_writtenGoogle::Apis::CloudsearchV1::PrefWritten

PREF_WRITTEN Corresponds to the JSON property prefWritten



15600
15601
15602
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 15600

def pref_written
  @pref_written
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



15607
15608
15609
15610
15611
15612
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 15607

def update!(**args)
  @name = args[:name] if args.key?(:name)
  @pre_state = args[:pre_state] if args.key?(:pre_state)
  @pref_deleted = args[:pref_deleted] if args.key?(:pref_deleted)
  @pref_written = args[:pref_written] if args.key?(:pref_written)
end