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.
15602 15603 15604 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 15602 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name ⇒ String
Name of the affected preference.
Corresponds to the JSON property name
15585 15586 15587 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 15585 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
15590 15591 15592 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 15590 def pre_state @pre_state end |
#pref_deleted ⇒ Google::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_written ⇒ Google::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 |