Class: Google::Apis::DriveactivityV2::Action

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/driveactivity_v2/classes.rb,
generated/google/apis/driveactivity_v2/representations.rb,
generated/google/apis/driveactivity_v2/representations.rb

Overview

Information about the action.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Action

Returns a new instance of Action.



54
55
56
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 54

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

Instance Attribute Details

#actorGoogle::Apis::DriveactivityV2::Actor

The actor of a Drive activity. Corresponds to the JSON property actor



32
33
34
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 32

def actor
  @actor
end

#detailGoogle::Apis::DriveactivityV2::ActionDetail

Data describing the type and additional information of an action. Corresponds to the JSON property detail



37
38
39
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 37

def detail
  @detail
end

#targetGoogle::Apis::DriveactivityV2::Target

Information about the target of activity. Corresponds to the JSON property target



42
43
44
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 42

def target
  @target
end

#time_rangeGoogle::Apis::DriveactivityV2::TimeRange

Information about time ranges. Corresponds to the JSON property timeRange



47
48
49
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 47

def time_range
  @time_range
end

#timestampString

The action occurred at this specific time. Corresponds to the JSON property timestamp

Returns:

  • (String)


52
53
54
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 52

def timestamp
  @timestamp
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



59
60
61
62
63
64
65
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 59

def update!(**args)
  @actor = args[:actor] if args.key?(:actor)
  @detail = args[:detail] if args.key?(:detail)
  @target = args[:target] if args.key?(:target)
  @time_range = args[:time_range] if args.key?(:time_range)
  @timestamp = args[:timestamp] if args.key?(:timestamp)
end