Class: Google::Apis::AndroidmanagementV1::NetworkInfo

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/androidmanagement_v1/classes.rb,
generated/google/apis/androidmanagement_v1/representations.rb,
generated/google/apis/androidmanagement_v1/representations.rb

Overview

Device network info.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ NetworkInfo

Returns a new instance of NetworkInfo



1473
1474
1475
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 1473

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#imeiString

IMEI number of the GSM device. For example, A1000031212. Corresponds to the JSON property imei

Returns:

  • (String)


1456
1457
1458
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 1456

def imei
  @imei
end

#meidString

MEID number of the CDMA device. For example, A00000292788E1. Corresponds to the JSON property meid

Returns:

  • (String)


1461
1462
1463
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 1461

def meid
  @meid
end

#network_operator_nameString

Alphabetic name of current registered operator. For example, Vodafone. Corresponds to the JSON property networkOperatorName

Returns:

  • (String)


1466
1467
1468
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 1466

def network_operator_name
  @network_operator_name
end

#wifi_mac_addressString

Wi-Fi MAC address of the device. For example, 7c:11:11:11:11:11. Corresponds to the JSON property wifiMacAddress

Returns:

  • (String)


1471
1472
1473
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 1471

def wifi_mac_address
  @wifi_mac_address
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1478
1479
1480
1481
1482
1483
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 1478

def update!(**args)
  @imei = args[:imei] if args.key?(:imei)
  @meid = args[:meid] if args.key?(:meid)
  @network_operator_name = args[:network_operator_name] if args.key?(:network_operator_name)
  @wifi_mac_address = args[:wifi_mac_address] if args.key?(:wifi_mac_address)
end