Class: Google::Apis::AdminReportsV1::Activity
- Inherits:
-
Object
- Object
- Google::Apis::AdminReportsV1::Activity
- 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
Instance Attribute Summary collapse
-
#actor ⇒ Google::Apis::AdminReportsV1::Activity::Actor
User doing the action.
-
#etag ⇒ String
ETag of the entry.
-
#events ⇒ Array<Google::Apis::AdminReportsV1::Activity::Event>
Activity events in the report.
-
#id ⇒ Google::Apis::AdminReportsV1::Activity::Id
Unique identifier for each activity record.
-
#ip_address ⇒ String
IP address of the user doing the action.
-
#kind ⇒ String
The type of API resource.
-
#owner_domain ⇒ String
This is the domain that is affected by the report's event.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Activity
constructor
A new instance of Activity.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#actor ⇒ Google::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 |
#etag ⇒ String
ETag of the entry.
Corresponds to the JSON property etag
76 77 78 |
# File 'generated/google/apis/admin_reports_v1/classes.rb', line 76 def etag @etag end |
#events ⇒ Array<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 |
#id ⇒ Google::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_address ⇒ String
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
95 96 97 |
# File 'generated/google/apis/admin_reports_v1/classes.rb', line 95 def ip_address @ip_address end |
#kind ⇒ String
The type of API resource. For an activity report, the value is audit#activity
.
Corresponds to the JSON property kind
101 102 103 |
# File 'generated/google/apis/admin_reports_v1/classes.rb', line 101 def kind @kind end |
#owner_domain ⇒ String
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
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 |