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

Constructor Details

#initialize(**args) ⇒ Activity

Returns a new instance of Activity.



109
110
111
# File 'generated/google/apis/admin_reports_v1/classes.rb', line 109

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

Instance Attribute Details

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

User doing the action. Corresponds to the JSON property actor



71
72
73
# File 'generated/google/apis/admin_reports_v1/classes.rb', line 71

def actor
  @actor
end

#etagString

ETag of the entry. Corresponds to the JSON property etag

Returns:

  • (String)


76
77
78
# File 'generated/google/apis/admin_reports_v1/classes.rb', line 76

def etag
  @etag
end

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

Activity events in the report. Corresponds to the JSON property events



81
82
83
# File 'generated/google/apis/admin_reports_v1/classes.rb', line 81

def events
  @events
end

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

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



86
87
88
# File 'generated/google/apis/admin_reports_v1/classes.rb', line 86

def id
  @id
end

#ip_addressString

IP address of the user doing the action. This is the Internet Protocol (IP) address of the user when logging into G Suite which may or may not reflect the user's physical location. For example, the IP address can be the user's proxy server's address or a virtual private network (VPN) address. The API supports IPv4 and IPv6. Corresponds to the JSON property ipAddress

Returns:

  • (String)


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

def ip_address
  @ip_address
end

#kindString

The type of API resource. For an activity report, the value is audit#activity . Corresponds to the JSON property kind

Returns:

  • (String)


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

def kind
  @kind
end

#owner_domainString

This is the domain that is affected by the report's event. For example domain of Admin console or the Drive application's document owner. Corresponds to the JSON property ownerDomain

Returns:

  • (String)


107
108
109
# File 'generated/google/apis/admin_reports_v1/classes.rb', line 107

def owner_domain
  @owner_domain
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



114
115
116
117
118
119
120
121
122
# File 'generated/google/apis/admin_reports_v1/classes.rb', line 114

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