class Google::Apis::AdminReportsV1::Activity

JSON template for the activity resource.

Attributes

actor[RW]

User doing the action. Corresponds to the JSON property `actor` @return [Google::Apis::AdminReportsV1::Activity::Actor]

etag[RW]

ETag of the entry. Corresponds to the JSON property `etag` @return [String]

events[RW]

Activity events in the report. Corresponds to the JSON property `events` @return [Array<Google::Apis::AdminReportsV1::Activity::Event>]

id[RW]

Unique identifier for each activity record. Corresponds to the JSON property `id` @return [Google::Apis::AdminReportsV1::Activity::Id]

ip_address[RW]

IP address of the user doing the action. This is the Internet Protocol (IP) address of the user when logging into Google Workspace, 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` @return [String]

kind[RW]

The type of API resource. For an activity report, the value is `audit#activity` . Corresponds to the JSON property `kind` @return [String]

owner_domain[RW]

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` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/admin_reports_v1/classes.rb, line 109
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/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