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

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

Overview

Device network info.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ NetworkInfo

Returns a new instance of NetworkInfo.



2189
2190
2191
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 2189

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)


2166
2167
2168
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 2166

def imei
  @imei
end

#meidString

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

Returns:

  • (String)


2171
2172
2173
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 2171

def meid
  @meid
end

#network_operator_nameString

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

Returns:

  • (String)


2176
2177
2178
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 2176

def network_operator_name
  @network_operator_name
end

#telephony_infosArray<Google::Apis::AndroidmanagementV1::TelephonyInfo>

Provides telephony information associated with each SIM card on the device. Only supported on fully managed devices starting from Android API level 23. Corresponds to the JSON property telephonyInfos



2182
2183
2184
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 2182

def telephony_infos
  @telephony_infos
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)


2187
2188
2189
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 2187

def wifi_mac_address
  @wifi_mac_address
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2194
2195
2196
2197
2198
2199
2200
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 2194

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)
  @telephony_infos = args[:telephony_infos] if args.key?(:telephony_infos)
  @wifi_mac_address = args[:wifi_mac_address] if args.key?(:wifi_mac_address)
end