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.



15038
15039
15040
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 15038

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

Instance Attribute Details

#nameString

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

Returns:

  • (String)


15021
15022
15023
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 15021

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



15026
15027
15028
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 15026

def pre_state
  @pre_state
end

#pref_deletedGoogle::Apis::CloudsearchV1::PrefDeleted

PREF_DELETED Corresponds to the JSON property prefDeleted



15031
15032
15033
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 15031

def pref_deleted
  @pref_deleted
end

#pref_writtenGoogle::Apis::CloudsearchV1::PrefWritten

PREF_WRITTEN Corresponds to the JSON property prefWritten



15036
15037
15038
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 15036

def pref_written
  @pref_written
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



15043
15044
15045
15046
15047
15048
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 15043

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