Class: Google::Apis::AdminReportsV1::ActivityNetworkInfo

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_asnArray<Fixnum>

IP Address of the user doing the action. Corresponds to the JSON property ipAsn

Returns:

  • (Array<Fixnum>)


460
461
462
# File 'lib/google/apis/admin_reports_v1/classes.rb', line 460

def ip_asn
  @ip_asn
end

#region_codeString

ISO 3166-1 alpha-2 region code of the user doing the action. Corresponds to the JSON property regionCode

Returns:

  • (String)


465
466
467
# File 'lib/google/apis/admin_reports_v1/classes.rb', line 465

def region_code
  @region_code
end

#subdivision_codeString

ISO 3166-2 region code (states and provinces) for countries of the user doing the action. Corresponds to the JSON property subdivisionCode

Returns:

  • (String)


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