Class: Google::Apis::CloudsearchV1::PrefUpdate
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::PrefUpdate
- 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
-
#name ⇒ String
Name of the affected preference.
-
#pre_state ⇒ Google::Apis::CloudsearchV1::FuseboxPrefUpdatePreState
If the Value field is not set this means the pref did not exist.
-
#pref_deleted ⇒ Google::Apis::CloudsearchV1::PrefDeleted
PREF_DELETED Corresponds to the JSON property
prefDeleted. -
#pref_written ⇒ Google::Apis::CloudsearchV1::PrefWritten
PREF_WRITTEN Corresponds to the JSON property
prefWritten.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PrefUpdate
constructor
A new instance of PrefUpdate.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PrefUpdate
Returns a new instance of PrefUpdate.
14976 14977 14978 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 14976 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name ⇒ String
Name of the affected preference.
Corresponds to the JSON property name
14959 14960 14961 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 14959 def name @name end |
#pre_state ⇒ Google::Apis::CloudsearchV1::FuseboxPrefUpdatePreState
If the Value field is not set this means the pref did not exist.
Corresponds to the JSON property preState
14964 14965 14966 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 14964 def pre_state @pre_state end |
#pref_deleted ⇒ Google::Apis::CloudsearchV1::PrefDeleted
PREF_DELETED
Corresponds to the JSON property prefDeleted
14969 14970 14971 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 14969 def pref_deleted @pref_deleted end |
#pref_written ⇒ Google::Apis::CloudsearchV1::PrefWritten
PREF_WRITTEN
Corresponds to the JSON property prefWritten
14974 14975 14976 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 14974 def pref_written @pref_written end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
14981 14982 14983 14984 14985 14986 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 14981 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 |