Class: Google::Apis::AdminReportsV1::ActivityNetworkInfo
- Inherits:
-
Object
- Object
- Google::Apis::AdminReportsV1::ActivityNetworkInfo
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/admin_reports_v1/classes.rb,
lib/google/apis/admin_reports_v1/representations.rb,
lib/google/apis/admin_reports_v1/representations.rb
Overview
Network information of the user doing the action.
Instance Attribute Summary collapse
-
#ip_asn ⇒ Array<Fixnum>
IP Address of the user doing the action.
-
#region_code ⇒ String
ISO 3166-1 alpha-2 region code of the user doing the action.
-
#subdivision_code ⇒ String
ISO 3166-2 region code (states and provinces) for countries of the user doing the action.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ActivityNetworkInfo
constructor
A new instance of ActivityNetworkInfo.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ActivityNetworkInfo
Returns a new instance of ActivityNetworkInfo.
473 474 475 |
# File 'lib/google/apis/admin_reports_v1/classes.rb', line 473 def initialize(**args) update!(**args) end |
Instance Attribute Details
#ip_asn ⇒ Array<Fixnum>
IP Address of the user doing the action.
Corresponds to the JSON property ipAsn
460 461 462 |
# File 'lib/google/apis/admin_reports_v1/classes.rb', line 460 def ip_asn @ip_asn end |
#region_code ⇒ String
ISO 3166-1 alpha-2 region code of the user doing the action.
Corresponds to the JSON property regionCode
465 466 467 |
# File 'lib/google/apis/admin_reports_v1/classes.rb', line 465 def region_code @region_code end |
#subdivision_code ⇒ String
ISO 3166-2 region code (states and provinces) for countries of the user doing
the action.
Corresponds to the JSON property subdivisionCode
471 472 473 |
# File 'lib/google/apis/admin_reports_v1/classes.rb', line 471 def subdivision_code @subdivision_code end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
478 479 480 481 482 |
# File 'lib/google/apis/admin_reports_v1/classes.rb', line 478 def update!(**args) @ip_asn = args[:ip_asn] if args.key?(:ip_asn) @region_code = args[:region_code] if args.key?(:region_code) @subdivision_code = args[:subdivision_code] if args.key?(:subdivision_code) end |