Skip to content

Commit 4a9064e

Browse files
feat: Automated regeneration of androidmanagement v1 client (#24658)
Auto-created at 2025-10-19 09:38:40 +0000 using the toys pull request generator.
1 parent 4ce812b commit 4a9064e

File tree

5 files changed

+301
-3
lines changed

5 files changed

+301
-3
lines changed

api_names_out.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33562,6 +33562,24 @@
3356233562
"/androidmanagement:v1/Date/day": day
3356333563
"/androidmanagement:v1/Date/month": month
3356433564
"/androidmanagement:v1/Date/year": year
33565+
"/androidmanagement:v1/DefaultApplication": default_application
33566+
"/androidmanagement:v1/DefaultApplication/packageName": package_name
33567+
"/androidmanagement:v1/DefaultApplicationContext": default_application_context
33568+
"/androidmanagement:v1/DefaultApplicationContext/defaultApplicationScope": default_application_scope
33569+
"/androidmanagement:v1/DefaultApplicationInfo": default_application_info
33570+
"/androidmanagement:v1/DefaultApplicationInfo/defaultApplicationSettingAttempts": default_application_setting_attempts
33571+
"/androidmanagement:v1/DefaultApplicationInfo/defaultApplicationSettingAttempts/default_application_setting_attempt": default_application_setting_attempt
33572+
"/androidmanagement:v1/DefaultApplicationInfo/defaultApplicationType": default_application_type
33573+
"/androidmanagement:v1/DefaultApplicationInfo/packageName": package_name
33574+
"/androidmanagement:v1/DefaultApplicationSetting": default_application_setting
33575+
"/androidmanagement:v1/DefaultApplicationSetting/defaultApplicationScopes": default_application_scopes
33576+
"/androidmanagement:v1/DefaultApplicationSetting/defaultApplicationScopes/default_application_scope": default_application_scope
33577+
"/androidmanagement:v1/DefaultApplicationSetting/defaultApplicationType": default_application_type
33578+
"/androidmanagement:v1/DefaultApplicationSetting/defaultApplications": default_applications
33579+
"/androidmanagement:v1/DefaultApplicationSetting/defaultApplications/default_application": default_application
33580+
"/androidmanagement:v1/DefaultApplicationSettingAttempt": default_application_setting_attempt
33581+
"/androidmanagement:v1/DefaultApplicationSettingAttempt/attemptOutcome": attempt_outcome
33582+
"/androidmanagement:v1/DefaultApplicationSettingAttempt/packageName": package_name
3356533583
"/androidmanagement:v1/Device": device
3356633584
"/androidmanagement:v1/Device/apiLevel": api_level
3356733585
"/androidmanagement:v1/Device/applicationReports": application_reports
@@ -33572,6 +33590,8 @@
3357233590
"/androidmanagement:v1/Device/appliedPolicyVersion": applied_policy_version
3357333591
"/androidmanagement:v1/Device/appliedState": applied_state
3357433592
"/androidmanagement:v1/Device/commonCriteriaModeInfo": common_criteria_mode_info
33593+
"/androidmanagement:v1/Device/defaultApplicationInfo": default_application_info
33594+
"/androidmanagement:v1/Device/defaultApplicationInfo/default_application_info": default_application_info
3357533595
"/androidmanagement:v1/Device/deviceSettings": device_settings
3357633596
"/androidmanagement:v1/Device/disabledReason": disabled_reason
3357733597
"/androidmanagement:v1/Device/displays": displays
@@ -34010,6 +34030,8 @@
3401034030
"/androidmanagement:v1/Policy/crossProfilePolicies": cross_profile_policies
3401134031
"/androidmanagement:v1/Policy/dataRoamingDisabled": data_roaming_disabled
3401234032
"/androidmanagement:v1/Policy/debuggingFeaturesAllowed": debugging_features_allowed
34033+
"/androidmanagement:v1/Policy/defaultApplicationSettings": default_application_settings
34034+
"/androidmanagement:v1/Policy/defaultApplicationSettings/default_application_setting": default_application_setting
3401334035
"/androidmanagement:v1/Policy/defaultPermissionPolicy": default_permission_policy
3401434036
"/androidmanagement:v1/Policy/deviceConnectivityManagement": device_connectivity_management
3401534037
"/androidmanagement:v1/Policy/deviceOwnerLockScreenInfo": device_owner_lock_screen_info
@@ -34185,6 +34207,7 @@
3418534207
"/androidmanagement:v1/SoftwareInfo/securityPatchLevel": security_patch_level
3418634208
"/androidmanagement:v1/SoftwareInfo/systemUpdateInfo": system_update_info
3418734209
"/androidmanagement:v1/SpecificNonComplianceContext": specific_non_compliance_context
34210+
"/androidmanagement:v1/SpecificNonComplianceContext/defaultApplicationContext": default_application_context
3418834211
"/androidmanagement:v1/SpecificNonComplianceContext/oncWifiContext": onc_wifi_context
3418934212
"/androidmanagement:v1/SpecificNonComplianceContext/passwordPoliciesContext": password_policies_context
3419034213
"/androidmanagement:v1/StartLostModeParams": start_lost_mode_params
@@ -34205,6 +34228,7 @@
3420534228
"/androidmanagement:v1/StatusReportingSettings/applicationReportingSettings": application_reporting_settings
3420634229
"/androidmanagement:v1/StatusReportingSettings/applicationReportsEnabled": application_reports_enabled
3420734230
"/androidmanagement:v1/StatusReportingSettings/commonCriteriaModeEnabled": common_criteria_mode_enabled
34231+
"/androidmanagement:v1/StatusReportingSettings/defaultApplicationInfoReportingEnabled": default_application_info_reporting_enabled
3420834232
"/androidmanagement:v1/StatusReportingSettings/deviceSettingsEnabled": device_settings_enabled
3420934233
"/androidmanagement:v1/StatusReportingSettings/displayInfoEnabled": display_info_enabled
3421034234
"/androidmanagement:v1/StatusReportingSettings/hardwareStatusEnabled": hardware_status_enabled

generated/google-apis-androidmanagement_v1/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Release history for google-apis-androidmanagement_v1
22

3+
### v0.102.0 (2025-10-19)
4+
5+
* Regenerated from discovery document revision 20251015
6+
37
### v0.101.0 (2025-09-28)
48

59
* Regenerated from discovery document revision 20250924

generated/google-apis-androidmanagement_v1/lib/google/apis/androidmanagement_v1/classes.rb

Lines changed: 192 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,9 @@ class AdvancedSecurityOverrides
122122

123123
# Optional. Controls Memory Tagging Extension (MTE) (https://source.android.com/
124124
# docs/security/test/memory-safety/arm-mte) on the device. The device needs to
125-
# be rebooted to apply changes to the MTE policy.
125+
# be rebooted to apply changes to the MTE policy. On Android 15 and above, a
126+
# NonComplianceDetail with PENDING is reported if the policy change is pending a
127+
# device reboot.
126128
# Corresponds to the JSON property `mtePolicy`
127129
# @return [String]
128130
attr_accessor :mte_policy
@@ -1959,6 +1961,157 @@ def update!(**args)
19591961
end
19601962
end
19611963

1964+
# Information about the application to be set as the default.
1965+
class DefaultApplication
1966+
include Google::Apis::Core::Hashable
1967+
1968+
# Required. The package name that should be set as the default application. The
1969+
# policy is rejected if the package name is invalid.
1970+
# Corresponds to the JSON property `packageName`
1971+
# @return [String]
1972+
attr_accessor :package_name
1973+
1974+
def initialize(**args)
1975+
update!(**args)
1976+
end
1977+
1978+
# Update properties of this object
1979+
def update!(**args)
1980+
@package_name = args[:package_name] if args.key?(:package_name)
1981+
end
1982+
end
1983+
1984+
# Additional context for non-compliance related to default application settings.
1985+
class DefaultApplicationContext
1986+
include Google::Apis::Core::Hashable
1987+
1988+
# Output only. The scope of non-compliant default application setting.
1989+
# Corresponds to the JSON property `defaultApplicationScope`
1990+
# @return [String]
1991+
attr_accessor :default_application_scope
1992+
1993+
def initialize(**args)
1994+
update!(**args)
1995+
end
1996+
1997+
# Update properties of this object
1998+
def update!(**args)
1999+
@default_application_scope = args[:default_application_scope] if args.key?(:default_application_scope)
2000+
end
2001+
end
2002+
2003+
# The default application information for a specific DefaultApplicationType.
2004+
class DefaultApplicationInfo
2005+
include Google::Apis::Core::Hashable
2006+
2007+
# Output only. Details on the default application setting attempts, in the same
2008+
# order as listed in defaultApplications.
2009+
# Corresponds to the JSON property `defaultApplicationSettingAttempts`
2010+
# @return [Array<Google::Apis::AndroidmanagementV1::DefaultApplicationSettingAttempt>]
2011+
attr_accessor :default_application_setting_attempts
2012+
2013+
# Output only. The default application type.
2014+
# Corresponds to the JSON property `defaultApplicationType`
2015+
# @return [String]
2016+
attr_accessor :default_application_type
2017+
2018+
# Output only. The package name of the current default application.
2019+
# Corresponds to the JSON property `packageName`
2020+
# @return [String]
2021+
attr_accessor :package_name
2022+
2023+
def initialize(**args)
2024+
update!(**args)
2025+
end
2026+
2027+
# Update properties of this object
2028+
def update!(**args)
2029+
@default_application_setting_attempts = args[:default_application_setting_attempts] if args.key?(:default_application_setting_attempts)
2030+
@default_application_type = args[:default_application_type] if args.key?(:default_application_type)
2031+
@package_name = args[:package_name] if args.key?(:package_name)
2032+
end
2033+
end
2034+
2035+
# The default application setting for a DefaultApplicationType.
2036+
class DefaultApplicationSetting
2037+
include Google::Apis::Core::Hashable
2038+
2039+
# Required. The scopes to which the policy should be applied. This list must not
2040+
# be empty or contain duplicates.A NonComplianceDetail with MANAGEMENT_MODE
2041+
# reason and DEFAULT_APPLICATION_SETTING_UNSUPPORTED_SCOPES specific reason is
2042+
# reported if none of the specified scopes can be applied to the management mode
2043+
# (e.g. a fully managed device receives a policy with only
2044+
# SCOPE_PERSONAL_PROFILE in the list).
2045+
# Corresponds to the JSON property `defaultApplicationScopes`
2046+
# @return [Array<String>]
2047+
attr_accessor :default_application_scopes
2048+
2049+
# Required. The app type to set the default application.
2050+
# Corresponds to the JSON property `defaultApplicationType`
2051+
# @return [String]
2052+
attr_accessor :default_application_type
2053+
2054+
# Required. The list of applications that can be set as the default app for a
2055+
# given type. This list must not be empty or contain duplicates. The first app
2056+
# in the list that is installed and qualified for the defaultApplicationType (e.
2057+
# g. SMS app for DEFAULT_SMS) is set as the default app. The signing key
2058+
# certificate fingerprint of the app on the device must also match one of the
2059+
# signing key certificate fingerprints obtained from Play Store or one of the
2060+
# entries in ApplicationPolicy.signingKeyCerts in order to be set as the default.
2061+
# If the defaultApplicationScopes contains SCOPE_FULLY_MANAGED or
2062+
# SCOPE_WORK_PROFILE, the app must have an entry in applications with
2063+
# installType set to a value other than BLOCKED.A NonComplianceDetail with
2064+
# APP_NOT_INSTALLED reason and DEFAULT_APPLICATION_SETTING_FAILED_FOR_SCOPE
2065+
# specific reason is reported if none of the apps in the list are installed. A
2066+
# NonComplianceDetail with INVALID_VALUE reason and
2067+
# DEFAULT_APPLICATION_SETTING_FAILED_FOR_SCOPE specific reason is reported if at
2068+
# least one app is installed but the policy fails to apply due to other reasons (
2069+
# e.g. the app is not of the right type).When applying to SCOPE_PERSONAL_PROFILE
2070+
# on a company-owned device with a work profile, only pre-installed system apps
2071+
# can be set as the default. A NonComplianceDetail with INVALID_VALUE reason and
2072+
# DEFAULT_APPLICATION_SETTING_FAILED_FOR_SCOPE specific reason is reported if
2073+
# the policy fails to apply to the personal profile.
2074+
# Corresponds to the JSON property `defaultApplications`
2075+
# @return [Array<Google::Apis::AndroidmanagementV1::DefaultApplication>]
2076+
attr_accessor :default_applications
2077+
2078+
def initialize(**args)
2079+
update!(**args)
2080+
end
2081+
2082+
# Update properties of this object
2083+
def update!(**args)
2084+
@default_application_scopes = args[:default_application_scopes] if args.key?(:default_application_scopes)
2085+
@default_application_type = args[:default_application_type] if args.key?(:default_application_type)
2086+
@default_applications = args[:default_applications] if args.key?(:default_applications)
2087+
end
2088+
end
2089+
2090+
# Details on a default application setting attempt.
2091+
class DefaultApplicationSettingAttempt
2092+
include Google::Apis::Core::Hashable
2093+
2094+
# Output only. The outcome of setting the app as the default.
2095+
# Corresponds to the JSON property `attemptOutcome`
2096+
# @return [String]
2097+
attr_accessor :attempt_outcome
2098+
2099+
# Output only. The package name of the attempted application.
2100+
# Corresponds to the JSON property `packageName`
2101+
# @return [String]
2102+
attr_accessor :package_name
2103+
2104+
def initialize(**args)
2105+
update!(**args)
2106+
end
2107+
2108+
# Update properties of this object
2109+
def update!(**args)
2110+
@attempt_outcome = args[:attempt_outcome] if args.key?(:attempt_outcome)
2111+
@package_name = args[:package_name] if args.key?(:package_name)
2112+
end
2113+
end
2114+
19622115
# A device owned by an enterprise. Unless otherwise noted, all fields are read-
19632116
# only and can't be modified by enterprises.devices.patch.
19642117
class Device
@@ -2009,6 +2162,19 @@ class Device
20092162
# @return [Google::Apis::AndroidmanagementV1::CommonCriteriaModeInfo]
20102163
attr_accessor :common_criteria_mode_info
20112164

2165+
# Output only. The default application information for the
2166+
# DefaultApplicationType. This information is only available if
2167+
# defaultApplicationInfoReportingEnabled is true in the device's policy.
2168+
# Available on Android 16 and above.All app types are reported on fully managed
2169+
# devices. DEFAULT_BROWSER, DEFAULT_CALL_REDIRECTION, DEFAULT_CALL_SCREENING and
2170+
# DEFAULT_DIALER types are reported for the work profiles on company-owned
2171+
# devices with a work profile and personally-owned devices. DEFAULT_WALLET is
2172+
# also reported for company-owned devices with a work profile, but will only
2173+
# include work profile information.
2174+
# Corresponds to the JSON property `defaultApplicationInfo`
2175+
# @return [Array<Google::Apis::AndroidmanagementV1::DefaultApplicationInfo>]
2176+
attr_accessor :default_application_info
2177+
20122178
# Information about security related device settings on device.
20132179
# Corresponds to the JSON property `deviceSettings`
20142180
# @return [Google::Apis::AndroidmanagementV1::DeviceSettings]
@@ -2198,6 +2364,7 @@ def update!(**args)
21982364
@applied_policy_version = args[:applied_policy_version] if args.key?(:applied_policy_version)
21992365
@applied_state = args[:applied_state] if args.key?(:applied_state)
22002366
@common_criteria_mode_info = args[:common_criteria_mode_info] if args.key?(:common_criteria_mode_info)
2367+
@default_application_info = args[:default_application_info] if args.key?(:default_application_info)
22012368
@device_settings = args[:device_settings] if args.key?(:device_settings)
22022369
@disabled_reason = args[:disabled_reason] if args.key?(:disabled_reason)
22032370
@displays = args[:displays] if args.key?(:displays)
@@ -5245,6 +5412,16 @@ class Policy
52455412
attr_accessor :debugging_features_allowed
52465413
alias_method :debugging_features_allowed?, :debugging_features_allowed
52475414

5415+
# Optional. The default application setting for supported types. If the default
5416+
# application is successfully set for at least one app type on a profile, users
5417+
# are prevented from changing any default applications on that profile.Only one
5418+
# DefaultApplicationSetting is allowed for each DefaultApplicationType.See
5419+
# Default application settings (https://developers.google.com/android/management/
5420+
# default-application-settings) guide for more details.
5421+
# Corresponds to the JSON property `defaultApplicationSettings`
5422+
# @return [Array<Google::Apis::AndroidmanagementV1::DefaultApplicationSetting>]
5423+
attr_accessor :default_application_settings
5424+
52485425
# The default permission policy for runtime permission requests.
52495426
# Corresponds to the JSON property `defaultPermissionPolicy`
52505427
# @return [String]
@@ -5750,6 +5927,7 @@ def update!(**args)
57505927
@cross_profile_policies = args[:cross_profile_policies] if args.key?(:cross_profile_policies)
57515928
@data_roaming_disabled = args[:data_roaming_disabled] if args.key?(:data_roaming_disabled)
57525929
@debugging_features_allowed = args[:debugging_features_allowed] if args.key?(:debugging_features_allowed)
5930+
@default_application_settings = args[:default_application_settings] if args.key?(:default_application_settings)
57535931
@default_permission_policy = args[:default_permission_policy] if args.key?(:default_permission_policy)
57545932
@device_connectivity_management = args[:device_connectivity_management] if args.key?(:device_connectivity_management)
57555933
@device_owner_lock_screen_info = args[:device_owner_lock_screen_info] if args.key?(:device_owner_lock_screen_info)
@@ -6606,6 +6784,11 @@ def update!(**args)
66066784
class SpecificNonComplianceContext
66076785
include Google::Apis::Core::Hashable
66086786

6787+
# Additional context for non-compliance related to default application settings.
6788+
# Corresponds to the JSON property `defaultApplicationContext`
6789+
# @return [Google::Apis::AndroidmanagementV1::DefaultApplicationContext]
6790+
attr_accessor :default_application_context
6791+
66096792
# Additional context for non-compliance related to Wi-Fi configuration.
66106793
# Corresponds to the JSON property `oncWifiContext`
66116794
# @return [Google::Apis::AndroidmanagementV1::OncWifiContext]
@@ -6622,6 +6805,7 @@ def initialize(**args)
66226805

66236806
# Update properties of this object
66246807
def update!(**args)
6808+
@default_application_context = args[:default_application_context] if args.key?(:default_application_context)
66256809
@onc_wifi_context = args[:onc_wifi_context] if args.key?(:onc_wifi_context)
66266810
@password_policies_context = args[:password_policies_context] if args.key?(:password_policies_context)
66276811
end
@@ -6756,6 +6940,12 @@ class StatusReportingSettings
67566940
attr_accessor :common_criteria_mode_enabled
67576941
alias_method :common_criteria_mode_enabled?, :common_criteria_mode_enabled
67586942

6943+
# Optional. Whether defaultApplicationInfo reporting is enabled.
6944+
# Corresponds to the JSON property `defaultApplicationInfoReportingEnabled`
6945+
# @return [Boolean]
6946+
attr_accessor :default_application_info_reporting_enabled
6947+
alias_method :default_application_info_reporting_enabled?, :default_application_info_reporting_enabled
6948+
67596949
# Whether device settings reporting is enabled.
67606950
# Corresponds to the JSON property `deviceSettingsEnabled`
67616951
# @return [Boolean]
@@ -6816,6 +7006,7 @@ def update!(**args)
68167006
@application_reporting_settings = args[:application_reporting_settings] if args.key?(:application_reporting_settings)
68177007
@application_reports_enabled = args[:application_reports_enabled] if args.key?(:application_reports_enabled)
68187008
@common_criteria_mode_enabled = args[:common_criteria_mode_enabled] if args.key?(:common_criteria_mode_enabled)
7009+
@default_application_info_reporting_enabled = args[:default_application_info_reporting_enabled] if args.key?(:default_application_info_reporting_enabled)
68197010
@device_settings_enabled = args[:device_settings_enabled] if args.key?(:device_settings_enabled)
68207011
@display_info_enabled = args[:display_info_enabled] if args.key?(:display_info_enabled)
68217012
@hardware_status_enabled = args[:hardware_status_enabled] if args.key?(:hardware_status_enabled)

generated/google-apis-androidmanagement_v1/lib/google/apis/androidmanagement_v1/gem_version.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module AndroidmanagementV1
1818
# Version of the google-apis-androidmanagement_v1 gem
19-
GEM_VERSION = "0.101.0"
19+
GEM_VERSION = "0.102.0"
2020

2121
# Version of the code generator used to generate this client
2222
GENERATOR_VERSION = "0.18.0"
2323

2424
# Revision of the discovery document this client was generated from
25-
REVISION = "20250924"
25+
REVISION = "20251015"
2626
end
2727
end
2828
end

0 commit comments

Comments
 (0)