Class: Google::Apis::DriveactivityV2::FieldValueChange
- Inherits:
-
Object
- Object
- Google::Apis::DriveactivityV2::FieldValueChange
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/driveactivity_v2/classes.rb,
lib/google/apis/driveactivity_v2/representations.rb,
lib/google/apis/driveactivity_v2/representations.rb
Overview
Change to a Field value.
Instance Attribute Summary collapse
-
#display_name ⇒ String
The human-readable display name for this field.
-
#field_id ⇒ String
The ID of this field.
-
#new_value ⇒ Google::Apis::DriveactivityV2::FieldValue
Contains a value of a Field.
-
#old_value ⇒ Google::Apis::DriveactivityV2::FieldValue
Contains a value of a Field.
Instance Method Summary collapse
-
#initialize(**args) ⇒ FieldValueChange
constructor
A new instance of FieldValueChange.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ FieldValueChange
Returns a new instance of FieldValueChange.
910 911 912 |
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 910 def initialize(**args) update!(**args) end |
Instance Attribute Details
#display_name ⇒ String
The human-readable display name for this field.
Corresponds to the JSON property displayName
893 894 895 |
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 893 def display_name @display_name end |
#field_id ⇒ String
The ID of this field. Field IDs are unique within a Label.
Corresponds to the JSON property fieldId
898 899 900 |
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 898 def field_id @field_id end |
#new_value ⇒ Google::Apis::DriveactivityV2::FieldValue
Contains a value of a Field.
Corresponds to the JSON property newValue
903 904 905 |
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 903 def new_value @new_value end |
#old_value ⇒ Google::Apis::DriveactivityV2::FieldValue
Contains a value of a Field.
Corresponds to the JSON property oldValue
908 909 910 |
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 908 def old_value @old_value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
915 916 917 918 919 920 |
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 915 def update!(**args) @display_name = args[:display_name] if args.key?(:display_name) @field_id = args[:field_id] if args.key?(:field_id) @new_value = args[:new_value] if args.key?(:new_value) @old_value = args[:old_value] if args.key?(:old_value) end |