Class: Google::Apis::AdminReportsV1::Activity

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

Overview

JSON template for the activity resource.

Defined Under Namespace

Classes: Actor, Event, Id

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Activity

Returns a new instance of Activity



101
102
103
# File 'generated/google/apis/admin_reports_v1/classes.rb', line 101

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

Instance Attribute Details

#actorGoogle::Apis::AdminReportsV1::Activity::Actor

User doing the action. Corresponds to the JSON property actor



69
70
71
# File 'generated/google/apis/admin_reports_v1/classes.rb', line 69

def actor
  @actor
end

#etagString

ETag of the entry. Corresponds to the JSON property etag

Returns:

  • (String)


74
75
76
# File 'generated/google/apis/admin_reports_v1/classes.rb', line 74

def etag
  @etag
end

#eventsArray<Google::Apis::AdminReportsV1::Activity::Event>

Activity events. Corresponds to the JSON property events



79
80
81
# File 'generated/google/apis/admin_reports_v1/classes.rb', line 79

def events
  @events
end

#idGoogle::Apis::AdminReportsV1::Activity::Id

Unique identifier for each activity record. Corresponds to the JSON property id



84
85
86
# File 'generated/google/apis/admin_reports_v1/classes.rb', line 84

def id
  @id
end

#ip_addressString

IP Address of the user doing the action. Corresponds to the JSON property ipAddress

Returns:

  • (String)


89
90
91
# File 'generated/google/apis/admin_reports_v1/classes.rb', line 89

def ip_address
  @ip_address
end

#kindString

Kind of resource this is. Corresponds to the JSON property kind

Returns:

  • (String)


94
95
96
# File 'generated/google/apis/admin_reports_v1/classes.rb', line 94

def kind
  @kind
end

#owner_domainString

Domain of source customer. Corresponds to the JSON property ownerDomain

Returns:

  • (String)


99
100
101
# File 'generated/google/apis/admin_reports_v1/classes.rb', line 99

def owner_domain
  @owner_domain
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



106
107
108
109
110
111
112
113
114
# File 'generated/google/apis/admin_reports_v1/classes.rb', line 106

def update!(**args)
  @actor = args[:actor] if args.key?(:actor)
  @etag = args[:etag] if args.key?(:etag)
  @events = args[:events] if args.key?(:events)
  @id = args[:id] if args.key?(:id)
  @ip_address = args[:ip_address] if args.key?(:ip_address)
  @kind = args[:kind] if args.key?(:kind)
  @owner_domain = args[:owner_domain] if args.key?(:owner_domain)
end