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.
15679 15680 15681 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 15679 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name ⇒ String
Name of the affected preference.
Corresponds to the JSON property name
15662 15663 15664 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 15662 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
15667 15668 15669 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 15667 def pre_state @pre_state end |
#pref_deleted ⇒ Google::Apis::CloudsearchV1::PrefDeleted
PREF_DELETED
Corresponds to the JSON property prefDeleted
15672 15673 15674 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 15672 def pref_deleted @pref_deleted end |
#pref_written ⇒ Google::Apis::CloudsearchV1::PrefWritten
PREF_WRITTEN
Corresponds to the JSON property prefWritten
15677 15678 15679 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 15677 def pref_written @pref_written end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
15684 15685 15686 15687 15688 15689 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 15684 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 |