Class: Google::Apis::DriveactivityV2::FieldValueChange

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ FieldValueChange

Returns a new instance of FieldValueChange.



912
913
914
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 912

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

Instance Attribute Details

#display_nameString

The human-readable display name for this field. Corresponds to the JSON property displayName

Returns:

  • (String)


895
896
897
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 895

def display_name
  @display_name
end

#field_idString

The ID of this field. Field IDs are unique within a Label. Corresponds to the JSON property fieldId

Returns:

  • (String)


900
901
902
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 900

def field_id
  @field_id
end

#new_valueGoogle::Apis::DriveactivityV2::FieldValue

Contains a value of a Field. Corresponds to the JSON property newValue



905
906
907
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 905

def new_value
  @new_value
end

#old_valueGoogle::Apis::DriveactivityV2::FieldValue

Contains a value of a Field. Corresponds to the JSON property oldValue



910
911
912
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 910

def old_value
  @old_value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



917
918
919
920
921
922
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 917

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