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.



604
605
606
# File 'lib/google/apis/admin_reports_v1/classes.rb', line 604

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>)


591
592
593
# File 'lib/google/apis/admin_reports_v1/classes.rb', line 591

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)


596
597
598
# File 'lib/google/apis/admin_reports_v1/classes.rb', line 596

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)


602
603
604
# File 'lib/google/apis/admin_reports_v1/classes.rb', line 602

def subdivision_code
  @subdivision_code
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



609
610
611
612
613
# File 'lib/google/apis/admin_reports_v1/classes.rb', line 609

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