diff --git a/api_names_out.yaml b/api_names_out.yaml index fedb0f9e5..62077c8e9 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -8749,6 +8749,8 @@ "/androidmanagement:v1/NetworkInfo/imei": imei "/androidmanagement:v1/NetworkInfo/meid": meid "/androidmanagement:v1/NetworkInfo/networkOperatorName": network_operator_name +"/androidmanagement:v1/NetworkInfo/telephonyInfos": telephony_infos +"/androidmanagement:v1/NetworkInfo/telephonyInfos/telephony_info": telephony_info "/androidmanagement:v1/NetworkInfo/wifiMacAddress": wifi_mac_address "/androidmanagement:v1/NonComplianceDetail": non_compliance_detail "/androidmanagement:v1/NonComplianceDetail/currentValue": current_value @@ -8977,6 +8979,9 @@ "/androidmanagement:v1/SystemUpdateInfo": system_update_info "/androidmanagement:v1/SystemUpdateInfo/updateReceivedTime": update_received_time "/androidmanagement:v1/SystemUpdateInfo/updateStatus": update_status +"/androidmanagement:v1/TelephonyInfo": telephony_info +"/androidmanagement:v1/TelephonyInfo/carrierName": carrier_name +"/androidmanagement:v1/TelephonyInfo/phoneNumber": phone_number "/androidmanagement:v1/TermsAndConditions": terms_and_conditions "/androidmanagement:v1/TermsAndConditions/content": content "/androidmanagement:v1/TermsAndConditions/header": header diff --git a/generated/google/apis/androidmanagement_v1.rb b/generated/google/apis/androidmanagement_v1.rb index 39ff7a76d..45929eacb 100644 --- a/generated/google/apis/androidmanagement_v1.rb +++ b/generated/google/apis/androidmanagement_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/android/management module AndroidmanagementV1 VERSION = 'V1' - REVISION = '20201123' + REVISION = '20201207' # Manage Android devices and apps for your customers AUTH_ANDROIDMANAGEMENT = 'https://www.googleapis.com/auth/androidmanagement' diff --git a/generated/google/apis/androidmanagement_v1/classes.rb b/generated/google/apis/androidmanagement_v1/classes.rb index 24f5a42a7..620ffd897 100644 --- a/generated/google/apis/androidmanagement_v1/classes.rb +++ b/generated/google/apis/androidmanagement_v1/classes.rb @@ -1911,6 +1911,13 @@ module Google # @return [String] attr_accessor :network_operator_name + # Provides telephony information associated with each SIM card on the device. + # Only supported on fully managed devices starting from Android API level 23 and + # above. + # Corresponds to the JSON property `telephonyInfos` + # @return [Array] + attr_accessor :telephony_infos + # Wi-Fi MAC address of the device. For example, 7c:11:11:11:11:11. # Corresponds to the JSON property `wifiMacAddress` # @return [String] @@ -1925,6 +1932,7 @@ module Google @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 end @@ -3525,6 +3533,33 @@ module Google end end + # Telephony information associated with a given SIM card on the device. Only + # supported on fully managed devices starting from Android API level 23 and + # above. + class TelephonyInfo + include Google::Apis::Core::Hashable + + # The carrier name associated with this SIM card. + # Corresponds to the JSON property `carrierName` + # @return [String] + attr_accessor :carrier_name + + # The phone number associated with this SIM card. + # Corresponds to the JSON property `phoneNumber` + # @return [String] + attr_accessor :phone_number + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @carrier_name = args[:carrier_name] if args.key?(:carrier_name) + @phone_number = args[:phone_number] if args.key?(:phone_number) + end + end + # A terms and conditions page to be accepted during provisioning. class TermsAndConditions include Google::Apis::Core::Hashable diff --git a/generated/google/apis/androidmanagement_v1/representations.rb b/generated/google/apis/androidmanagement_v1/representations.rb index 75d618244..ad5759b21 100644 --- a/generated/google/apis/androidmanagement_v1/representations.rb +++ b/generated/google/apis/androidmanagement_v1/representations.rb @@ -394,6 +394,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class TelephonyInfo + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class TermsAndConditions class Representation < Google::Apis::Core::JsonRepresentation; end @@ -896,6 +902,8 @@ module Google property :imei, as: 'imei' property :meid, as: 'meid' property :network_operator_name, as: 'networkOperatorName' + collection :telephony_infos, as: 'telephonyInfos', class: Google::Apis::AndroidmanagementV1::TelephonyInfo, decorator: Google::Apis::AndroidmanagementV1::TelephonyInfo::Representation + property :wifi_mac_address, as: 'wifiMacAddress' end end @@ -1248,6 +1256,14 @@ module Google end end + class TelephonyInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :carrier_name, as: 'carrierName' + property :phone_number, as: 'phoneNumber' + end + end + class TermsAndConditions # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/androidmanagement_v1/synth.metadata b/generated/google/apis/androidmanagement_v1/synth.metadata index 0c99a34a8..0aebac036 100644 --- a/generated/google/apis/androidmanagement_v1/synth.metadata +++ b/generated/google/apis/androidmanagement_v1/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/google-api-ruby-client.git", - "sha": "72d045518a6f806ea35be379e40d2e465fdc1c1b" + "sha": "4a08e0b2fde874551723ca843986ed92d354daf1" } } ]