Class: Google::Apis::AndroidmanagementV1::TelephonyInfo

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

Telephony information associated with a given SIM card on the device. Only supported on fully managed devices starting from Android API level 23.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TelephonyInfo

Returns a new instance of TelephonyInfo.



5907
5908
5909
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 5907

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

Instance Attribute Details

#carrier_nameString

The carrier name associated with this SIM card. Corresponds to the JSON property carrierName

Returns:

  • (String)


5895
5896
5897
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 5895

def carrier_name
  @carrier_name
end

#icc_idString

Output only. The ICCID associated with this SIM card. Corresponds to the JSON property iccId

Returns:

  • (String)


5900
5901
5902
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 5900

def icc_id
  @icc_id
end

#phone_numberString

The phone number associated with this SIM card. Corresponds to the JSON property phoneNumber

Returns:

  • (String)


5905
5906
5907
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 5905

def phone_number
  @phone_number
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5912
5913
5914
5915
5916
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 5912

def update!(**args)
  @carrier_name = args[:carrier_name] if args.key?(:carrier_name)
  @icc_id = args[:icc_id] if args.key?(:icc_id)
  @phone_number = args[:phone_number] if args.key?(:phone_number)
end