Skip to content

Commit

Permalink
feat: Automated regeneration of androidmanagement v1 client (#20307)
Browse files Browse the repository at this point in the history
Auto-created at 2024-09-29 09:49:33 +0000 using the toys pull request generator.
  • Loading branch information
yoshi-code-bot authored Sep 29, 2024
1 parent e3c1ac3 commit f03012e
Show file tree
Hide file tree
Showing 5 changed files with 113 additions and 10 deletions.
8 changes: 8 additions & 0 deletions api_names_out.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions generated/google-apis-androidmanagement_v1/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -1209,13 +1210,19 @@ 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

# 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

Expand Down Expand Up @@ -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.
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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<Google::Apis::AndroidmanagementV1::WifiRoamingSetting>]
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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit f03012e

Please sign in to comment.