Class: Google::Apis::SecuritycenterV1::Access
- Inherits:
-
Object
- Object
- Google::Apis::SecuritycenterV1::Access
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/securitycenter_v1/classes.rb,
lib/google/apis/securitycenter_v1/representations.rb,
lib/google/apis/securitycenter_v1/representations.rb
Overview
Represents an access event.
Instance Attribute Summary collapse
-
#caller_ip ⇒ String
Caller's IP address, such as "1.1.1.1".
-
#caller_ip_geo ⇒ Google::Apis::SecuritycenterV1::Geolocation
Represents a geographical location for a given access.
-
#method_name ⇒ String
The method that the service account called, e.g.
-
#principal_email ⇒ String
Associated email, such as "foo@google.com".
-
#service_name ⇒ String
This is the API service that the service account made a call to, e.g.
-
#user_agent_family ⇒ String
What kind of user agent is associated, e.g.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Access
constructor
A new instance of Access.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Access
Returns a new instance of Access.
61 62 63 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 61 def initialize(**args) update!(**args) end |
Instance Attribute Details
#caller_ip ⇒ String
Caller's IP address, such as "1.1.1.1".
Corresponds to the JSON property callerIp
32 33 34 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 32 def caller_ip @caller_ip end |
#caller_ip_geo ⇒ Google::Apis::SecuritycenterV1::Geolocation
Represents a geographical location for a given access.
Corresponds to the JSON property callerIpGeo
37 38 39 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 37 def caller_ip_geo @caller_ip_geo end |
#method_name ⇒ String
The method that the service account called, e.g. "SetIamPolicy".
Corresponds to the JSON property methodName
42 43 44 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 42 def method_name @method_name end |
#principal_email ⇒ String
Associated email, such as "foo@google.com".
Corresponds to the JSON property principalEmail
47 48 49 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 47 def principal_email @principal_email end |
#service_name ⇒ String
This is the API service that the service account made a call to, e.g. "iam.
googleapis.com"
Corresponds to the JSON property serviceName
53 54 55 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 53 def service_name @service_name end |
#user_agent_family ⇒ String
What kind of user agent is associated, e.g. operating system shells, embedded
or stand-alone applications, etc.
Corresponds to the JSON property userAgentFamily
59 60 61 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 59 def user_agent_family @user_agent_family end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
66 67 68 69 70 71 72 73 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 66 def update!(**args) @caller_ip = args[:caller_ip] if args.key?(:caller_ip) @caller_ip_geo = args[:caller_ip_geo] if args.key?(:caller_ip_geo) @method_name = args[:method_name] if args.key?(:method_name) @principal_email = args[:principal_email] if args.key?(:principal_email) @service_name = args[:service_name] if args.key?(:service_name) @user_agent_family = args[:user_agent_family] if args.key?(:user_agent_family) end |