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.



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

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)


893
894
895
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 893

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)


898
899
900
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 898

def field_id
  @field_id
end

#new_valueGoogle::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_valueGoogle::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