@@ -2425,6 +2425,11 @@ class DeviceConnectivityManagement
24252425 # @return [Google::Apis::AndroidmanagementV1::PreferentialNetworkServiceSettings]
24262426 attr_accessor :preferential_network_service_settings
24272427
2428+ # Controls the device's private DNS settings.
2429+ # Corresponds to the JSON property `privateDnsSettings`
2430+ # @return [Google::Apis::AndroidmanagementV1::PrivateDnsSettings]
2431+ attr_accessor :private_dns_settings
2432+
24282433 # Controls tethering settings. Based on the value set, the user is partially or
24292434 # fully disallowed from using different forms of tethering.
24302435 # Corresponds to the JSON property `tetheringSettings`
@@ -2465,6 +2470,7 @@ def update!(**args)
24652470 @bluetooth_sharing = args [ :bluetooth_sharing ] if args . key? ( :bluetooth_sharing )
24662471 @configure_wifi = args [ :configure_wifi ] if args . key? ( :configure_wifi )
24672472 @preferential_network_service_settings = args [ :preferential_network_service_settings ] if args . key? ( :preferential_network_service_settings )
2473+ @private_dns_settings = args [ :private_dns_settings ] if args . key? ( :private_dns_settings )
24682474 @tethering_settings = args [ :tethering_settings ] if args . key? ( :tethering_settings )
24692475 @usb_data_access = args [ :usb_data_access ] if args . key? ( :usb_data_access )
24702476 @wifi_direct_settings = args [ :wifi_direct_settings ] if args . key? ( :wifi_direct_settings )
@@ -5313,10 +5319,7 @@ class Policy
53135319 attr_accessor :auto_time_required
53145320 alias_method :auto_time_required? , :auto_time_required
53155321
5316- # Whether applications other than the ones configured in applications are
5317- # blocked from being installed. When set, applications that were installed under
5318- # a previous policy but no longer appear in the policy are automatically
5319- # uninstalled.
5322+ # This field has no effect.
53205323 # Corresponds to the JSON property `blockApplicationsEnabled`
53215324 # @return [Boolean]
53225325 attr_accessor :block_applications_enabled
@@ -6190,6 +6193,42 @@ def update!(**args)
61906193 end
61916194 end
61926195
6196+ # Controls the device's private DNS settings.
6197+ class PrivateDnsSettings
6198+ include Google ::Apis ::Core ::Hashable
6199+
6200+ # Optional. The hostname of the DNS server. This must be set if and only if
6201+ # private_dns_mode is set to PRIVATE_DNS_SPECIFIED_HOST. Supported on Android 10
6202+ # and above on fully managed devices. A NonComplianceDetail with MANAGEMENT_MODE
6203+ # is reported on other management modes. A NonComplianceDetail with API_LEVEL is
6204+ # reported if the Android version is less than 10. A NonComplianceDetail with
6205+ # PENDING is reported if the device is not connected to a network. A
6206+ # NonComplianceDetail with nonComplianceReason INVALID_VALUE and
6207+ # specificNonComplianceReason PRIVATE_DNS_HOST_NOT_SERVING is reported if the
6208+ # specified host is not a DNS server or not supported on Android. A
6209+ # NonComplianceDetail with INVALID_VALUE is reported if applying this setting
6210+ # fails for any other reason.
6211+ # Corresponds to the JSON property `privateDnsHost`
6212+ # @return [String]
6213+ attr_accessor :private_dns_host
6214+
6215+ # Optional. The configuration mode for device's global private DNS settings. If
6216+ # this is set to PRIVATE_DNS_SPECIFIED_HOST, then private_dns_host must be set.
6217+ # Corresponds to the JSON property `privateDnsMode`
6218+ # @return [String]
6219+ attr_accessor :private_dns_mode
6220+
6221+ def initialize ( **args )
6222+ update! ( **args )
6223+ end
6224+
6225+ # Update properties of this object
6226+ def update! ( **args )
6227+ @private_dns_host = args [ :private_dns_host ] if args . key? ( :private_dns_host )
6228+ @private_dns_mode = args [ :private_dns_mode ] if args . key? ( :private_dns_mode )
6229+ end
6230+ end
6231+
61936232 # Information about a device that is available during setup.
61946233 class ProvisioningInfo
61956234 include Google ::Apis ::Core ::Hashable
@@ -7085,13 +7124,6 @@ def update!(**args)
70857124 class SystemUpdate
70867125 include Google ::Apis ::Core ::Hashable
70877126
7088- # If this is greater than zero, then this is the number of days after a pending
7089- # update becoming available that a device can remain compliant, without taking
7090- # the update. Has no effect otherwise.
7091- # Corresponds to the JSON property `allowedDaysWithoutUpdate`
7092- # @return [Fixnum]
7093- attr_accessor :allowed_days_without_update
7094-
70957127 # If the type is WINDOWED, the end of the maintenance window, measured as the
70967128 # number of minutes after midnight in device's local time. This value must be
70977129 # between 0 and 1439, inclusive. If this value is less than start_minutes, then
@@ -7128,7 +7160,6 @@ def initialize(**args)
71287160
71297161 # Update properties of this object
71307162 def update! ( **args )
7131- @allowed_days_without_update = args [ :allowed_days_without_update ] if args . key? ( :allowed_days_without_update )
71327163 @end_minutes = args [ :end_minutes ] if args . key? ( :end_minutes )
71337164 @freeze_periods = args [ :freeze_periods ] if args . key? ( :freeze_periods )
71347165 @start_minutes = args [ :start_minutes ] if args . key? ( :start_minutes )
0 commit comments