From f03012e67928ea5f1127bae924d2dc66f4ae13b8 Mon Sep 17 00:00:00 2001 From: yoshi-code-bot <70984784+yoshi-code-bot@users.noreply.github.com> Date: Sun, 29 Sep 2024 02:54:25 -0700 Subject: [PATCH] feat: Automated regeneration of androidmanagement v1 client (#20307) Auto-created at 2024-09-29 09:49:33 +0000 using the toys pull request generator. --- api_names_out.yaml | 8 ++ .../CHANGELOG.md | 4 + .../apis/androidmanagement_v1/classes.rb | 76 +++++++++++++++++-- .../apis/androidmanagement_v1/gem_version.rb | 4 +- .../androidmanagement_v1/representations.rb | 31 ++++++++ 5 files changed, 113 insertions(+), 10 deletions(-) diff --git a/api_names_out.yaml b/api_names_out.yaml index be5a6ed5e9e..633dd7a63d4 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -28152,6 +28152,7 @@ "/androidmanagement:v1/Command/userName": user_name "/androidmanagement:v1/CommonCriteriaModeInfo": common_criteria_mode_info "/androidmanagement:v1/CommonCriteriaModeInfo/commonCriteriaModeStatus": common_criteria_mode_status +"/androidmanagement:v1/CommonCriteriaModeInfo/policySignatureVerificationStatus": policy_signature_verification_status "/androidmanagement:v1/ComplianceRule": compliance_rule "/androidmanagement:v1/ComplianceRule/apiLevelCondition": api_level_condition "/androidmanagement:v1/ComplianceRule/disableApps": disable_apps @@ -28239,6 +28240,7 @@ "/androidmanagement:v1/DeviceConnectivityManagement/tetheringSettings": tethering_settings "/androidmanagement:v1/DeviceConnectivityManagement/usbDataAccess": usb_data_access "/androidmanagement:v1/DeviceConnectivityManagement/wifiDirectSettings": wifi_direct_settings +"/androidmanagement:v1/DeviceConnectivityManagement/wifiRoamingPolicy": wifi_roaming_policy "/androidmanagement:v1/DeviceConnectivityManagement/wifiSsidPolicy": wifi_ssid_policy "/androidmanagement:v1/DeviceRadioState": device_radio_state "/androidmanagement:v1/DeviceRadioState/airplaneModeState": airplane_mode_state @@ -28851,6 +28853,12 @@ "/androidmanagement:v1/WebToken/permissions": permissions "/androidmanagement:v1/WebToken/permissions/permission": permission "/androidmanagement:v1/WebToken/value": value +"/androidmanagement:v1/WifiRoamingPolicy": wifi_roaming_policy +"/androidmanagement:v1/WifiRoamingPolicy/wifiRoamingSettings": wifi_roaming_settings +"/androidmanagement:v1/WifiRoamingPolicy/wifiRoamingSettings/wifi_roaming_setting": wifi_roaming_setting +"/androidmanagement:v1/WifiRoamingSetting": wifi_roaming_setting +"/androidmanagement:v1/WifiRoamingSetting/wifiRoamingMode": wifi_roaming_mode +"/androidmanagement:v1/WifiRoamingSetting/wifiSsid": wifi_ssid "/androidmanagement:v1/WifiSsid": wifi_ssid "/androidmanagement:v1/WifiSsid/wifiSsid": wifi_ssid "/androidmanagement:v1/WifiSsidPolicy": wifi_ssid_policy diff --git a/generated/google-apis-androidmanagement_v1/CHANGELOG.md b/generated/google-apis-androidmanagement_v1/CHANGELOG.md index c823cc0e1d9..c1d40cf60cb 100644 --- a/generated/google-apis-androidmanagement_v1/CHANGELOG.md +++ b/generated/google-apis-androidmanagement_v1/CHANGELOG.md @@ -1,5 +1,9 @@ # Release history for google-apis-androidmanagement_v1 +### v0.82.0 (2024-09-29) + +* Regenerated from discovery document revision 20240924 + ### v0.81.0 (2024-09-08) * Regenerated from discovery document revision 20240904 diff --git a/generated/google-apis-androidmanagement_v1/lib/google/apis/androidmanagement_v1/classes.rb b/generated/google-apis-androidmanagement_v1/lib/google/apis/androidmanagement_v1/classes.rb index c11174a7445..e3e12338984 100644 --- a/generated/google-apis-androidmanagement_v1/lib/google/apis/androidmanagement_v1/classes.rb +++ b/generated/google-apis-androidmanagement_v1/lib/google/apis/androidmanagement_v1/classes.rb @@ -62,12 +62,13 @@ class AdvancedSecurityOverrides # Controls Common Criteria Mode—security standards defined in the Common # Criteria for Information Technology Security Evaluation (https://www. # commoncriteriaportal.org/) (CC). Enabling Common Criteria Mode increases - # certain security components on a device, including AES-GCM encryption of - # Bluetooth Long Term Keys, and Wi-Fi configuration stores.Common Criteria Mode - # is only supported on company-owned devices running Android 11 or above.Warning: - # Common Criteria Mode enforces a strict security model typically only required - # for IT products used in national security systems and other highly sensitive - # organizations. Standard device use may be affected. Only enabled if required. + # certain security components on a device, see CommonCriteriaMode for details. + # Warning: Common Criteria Mode enforces a strict security model typically only + # required for IT products used in national security systems and other highly + # sensitive organizations. Standard device use may be affected. Only enabled if + # required. If Common Criteria Mode is turned off after being enabled previously, + # all user-configured Wi-Fi networks may be lost and any enterprise-configured + # Wi-Fi networks that require user input may need to be reconfigured. # Corresponds to the JSON property `commonCriteriaMode` # @return [String] attr_accessor :common_criteria_mode @@ -1209,6 +1210,11 @@ class CommonCriteriaModeInfo # @return [String] attr_accessor :common_criteria_mode_status + # Output only. The status of policy signature verification. + # Corresponds to the JSON property `policySignatureVerificationStatus` + # @return [String] + attr_accessor :policy_signature_verification_status + def initialize(**args) update!(**args) end @@ -1216,6 +1222,7 @@ def initialize(**args) # Update properties of this object def update!(**args) @common_criteria_mode_status = args[:common_criteria_mode_status] if args.key?(:common_criteria_mode_status) + @policy_signature_verification_status = args[:policy_signature_verification_status] if args.key?(:policy_signature_verification_status) end end @@ -1806,6 +1813,11 @@ class DeviceConnectivityManagement # @return [String] attr_accessor :wifi_direct_settings + # Wi-Fi roaming policy. + # Corresponds to the JSON property `wifiRoamingPolicy` + # @return [Google::Apis::AndroidmanagementV1::WifiRoamingPolicy] + attr_accessor :wifi_roaming_policy + # Restrictions on which Wi-Fi SSIDs the device can connect to. Note that this # does not affect which networks can be configured on the device. Supported on # company-owned devices running Android 13 and above. @@ -1823,6 +1835,7 @@ def update!(**args) @tethering_settings = args[:tethering_settings] if args.key?(:tethering_settings) @usb_data_access = args[:usb_data_access] if args.key?(:usb_data_access) @wifi_direct_settings = args[:wifi_direct_settings] if args.key?(:wifi_direct_settings) + @wifi_roaming_policy = args[:wifi_roaming_policy] if args.key?(:wifi_roaming_policy) @wifi_ssid_policy = args[:wifi_ssid_policy] if args.key?(:wifi_ssid_policy) end end @@ -5236,7 +5249,8 @@ class ScreenBrightnessSettings # brightness set. Any other value is rejected. screenBrightnessMode must be # either BRIGHTNESS_AUTOMATIC or BRIGHTNESS_FIXED to set this. Supported on # Android 9 and above on fully managed devices. A NonComplianceDetail with - # API_LEVEL is reported if the Android version is less than 9. + # API_LEVEL is reported if the Android version is less than 9. Supported on work + # profiles on company-owned devices on Android 15 and above. # Corresponds to the JSON property `screenBrightness` # @return [Fixnum] attr_accessor :screen_brightness @@ -5270,7 +5284,8 @@ class ScreenTimeoutSettings # lower bound. The lower bound may vary across devices. If this is set, # screenTimeoutMode must be SCREEN_TIMEOUT_ENFORCED. Supported on Android 9 and # above on fully managed devices. A NonComplianceDetail with API_LEVEL is - # reported if the Android version is less than 9. + # reported if the Android version is less than 9. Supported on work profiles on + # company-owned devices on Android 15 and above. # Corresponds to the JSON property `screenTimeout` # @return [String] attr_accessor :screen_timeout @@ -6420,6 +6435,51 @@ def update!(**args) end end + # Wi-Fi roaming policy. + class WifiRoamingPolicy + include Google::Apis::Core::Hashable + + # Optional. Wi-Fi roaming settings. SSIDs provided in this list must be unique, + # the policy will be rejected otherwise. + # Corresponds to the JSON property `wifiRoamingSettings` + # @return [Array] + attr_accessor :wifi_roaming_settings + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @wifi_roaming_settings = args[:wifi_roaming_settings] if args.key?(:wifi_roaming_settings) + end + end + + # Wi-Fi roaming setting. + class WifiRoamingSetting + include Google::Apis::Core::Hashable + + # Required. Wi-Fi roaming mode for the specified SSID. + # Corresponds to the JSON property `wifiRoamingMode` + # @return [String] + attr_accessor :wifi_roaming_mode + + # Required. SSID of the Wi-Fi network. + # Corresponds to the JSON property `wifiSsid` + # @return [String] + attr_accessor :wifi_ssid + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @wifi_roaming_mode = args[:wifi_roaming_mode] if args.key?(:wifi_roaming_mode) + @wifi_ssid = args[:wifi_ssid] if args.key?(:wifi_ssid) + end + end + # Represents a Wi-Fi SSID. class WifiSsid include Google::Apis::Core::Hashable diff --git a/generated/google-apis-androidmanagement_v1/lib/google/apis/androidmanagement_v1/gem_version.rb b/generated/google-apis-androidmanagement_v1/lib/google/apis/androidmanagement_v1/gem_version.rb index e84d0af13b7..5054d6ef15f 100644 --- a/generated/google-apis-androidmanagement_v1/lib/google/apis/androidmanagement_v1/gem_version.rb +++ b/generated/google-apis-androidmanagement_v1/lib/google/apis/androidmanagement_v1/gem_version.rb @@ -16,13 +16,13 @@ module Google module Apis module AndroidmanagementV1 # Version of the google-apis-androidmanagement_v1 gem - GEM_VERSION = "0.81.0" + GEM_VERSION = "0.82.0" # Version of the code generator used to generate this client GENERATOR_VERSION = "0.15.1" # Revision of the discovery document this client was generated from - REVISION = "20240904" + REVISION = "20240924" end end end diff --git a/generated/google-apis-androidmanagement_v1/lib/google/apis/androidmanagement_v1/representations.rb b/generated/google-apis-androidmanagement_v1/lib/google/apis/androidmanagement_v1/representations.rb index 2fc0b5a65e0..ce54cdf03c5 100644 --- a/generated/google-apis-androidmanagement_v1/lib/google/apis/androidmanagement_v1/representations.rb +++ b/generated/google-apis-androidmanagement_v1/lib/google/apis/androidmanagement_v1/representations.rb @@ -826,6 +826,18 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class WifiRoamingPolicy + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class WifiRoamingSetting + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class WifiSsid class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1133,6 +1145,7 @@ class CommonCriteriaModeInfo # @private class Representation < Google::Apis::Core::JsonRepresentation property :common_criteria_mode_status, as: 'commonCriteriaModeStatus' + property :policy_signature_verification_status, as: 'policySignatureVerificationStatus' end end @@ -1273,6 +1286,8 @@ class Representation < Google::Apis::Core::JsonRepresentation property :tethering_settings, as: 'tetheringSettings' property :usb_data_access, as: 'usbDataAccess' property :wifi_direct_settings, as: 'wifiDirectSettings' + property :wifi_roaming_policy, as: 'wifiRoamingPolicy', class: Google::Apis::AndroidmanagementV1::WifiRoamingPolicy, decorator: Google::Apis::AndroidmanagementV1::WifiRoamingPolicy::Representation + property :wifi_ssid_policy, as: 'wifiSsidPolicy', class: Google::Apis::AndroidmanagementV1::WifiSsidPolicy, decorator: Google::Apis::AndroidmanagementV1::WifiSsidPolicy::Representation end @@ -2426,6 +2441,22 @@ class Representation < Google::Apis::Core::JsonRepresentation end end + class WifiRoamingPolicy + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :wifi_roaming_settings, as: 'wifiRoamingSettings', class: Google::Apis::AndroidmanagementV1::WifiRoamingSetting, decorator: Google::Apis::AndroidmanagementV1::WifiRoamingSetting::Representation + + end + end + + class WifiRoamingSetting + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :wifi_roaming_mode, as: 'wifiRoamingMode' + property :wifi_ssid, as: 'wifiSsid' + end + end + class WifiSsid # @private class Representation < Google::Apis::Core::JsonRepresentation