Skip to content

Commit 24fa93e

Browse files
feat: Automated regeneration of androidmanagement v1 client (#24322)
Auto-created at 2025-09-21 09:25:10 +0000 using the toys pull request generator.
1 parent 02b5e38 commit 24fa93e

File tree

5 files changed

+77
-10
lines changed

5 files changed

+77
-10
lines changed

api_names_out.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33010,6 +33010,8 @@
3301033010
"/androidmanagement:v1/ApplicationPolicy/permissionGrants": permission_grants
3301133011
"/androidmanagement:v1/ApplicationPolicy/permissionGrants/permission_grant": permission_grant
3301233012
"/androidmanagement:v1/ApplicationPolicy/preferentialNetworkId": preferential_network_id
33013+
"/androidmanagement:v1/ApplicationPolicy/roles": roles
33014+
"/androidmanagement:v1/ApplicationPolicy/roles/role": role
3301333015
"/androidmanagement:v1/ApplicationPolicy/signingKeyCerts": signing_key_certs
3301433016
"/androidmanagement:v1/ApplicationPolicy/signingKeyCerts/signing_key_cert": signing_key_cert
3301533017
"/androidmanagement:v1/ApplicationPolicy/userControlSettings": user_control_settings
@@ -33715,6 +33717,8 @@
3371533717
"/androidmanagement:v1/RequestDeviceInfoStatus": request_device_info_status
3371633718
"/androidmanagement:v1/RequestDeviceInfoStatus/eidInfo": eid_info
3371733719
"/androidmanagement:v1/RequestDeviceInfoStatus/status": status
33720+
"/androidmanagement:v1/Role": role
33721+
"/androidmanagement:v1/Role/roleType": role_type
3371833722
"/androidmanagement:v1/ScreenBrightnessSettings": screen_brightness_settings
3371933723
"/androidmanagement:v1/ScreenBrightnessSettings/screenBrightness": screen_brightness
3372033724
"/androidmanagement:v1/ScreenBrightnessSettings/screenBrightnessMode": screen_brightness_mode

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.100.0 (2025-09-21)
4+
5+
* Regenerated from discovery document revision 20250916
6+
37
### v0.99.0 (2025-09-14)
48

59
* Regenerated from discovery document revision 20250909

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

Lines changed: 52 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -927,17 +927,41 @@ class ApplicationPolicy
927927
# @return [String]
928928
attr_accessor :preferential_network_id
929929

930+
# Optional. Roles the app has.Apps having certain roles can be exempted from
931+
# power and background execution restrictions, suspension and hibernation on
932+
# Android 14 and above. The user control can also be disallowed for apps with
933+
# certain roles on Android 11 and above. Refer to the documentation of each
934+
# RoleType for more details.The app is notified about the roles that are set for
935+
# it if the app has a notification receiver service with . The app is notified
936+
# whenever its roles are updated or after the app is installed when it has
937+
# nonempty list of roles. The app can use this notification to bootstrap itself
938+
# after the installation. See Integrate with the AMAPI SDK (https://developers.
939+
# google.com/android/management/sdk-integration) and Manage app roles (https://
940+
# developers.google.com/android/management/app-roles) guides for more details on
941+
# the requirements for the service.For the exemptions to be applied and the app
942+
# to be notified about the roles, the signing key certificate fingerprint of the
943+
# app on the device must match one of the signing key certificate fingerprints
944+
# obtained from Play Store or one of the entries in ApplicationPolicy.
945+
# signingKeyCerts. Otherwise, a NonComplianceDetail with
946+
# APP_SIGNING_CERT_MISMATCH is reported.There must not be duplicate roles with
947+
# the same roleType. Multiple apps cannot hold a role with the same roleType. A
948+
# role with type ROLE_TYPE_UNSPECIFIED is not allowed.
949+
# Corresponds to the JSON property `roles`
950+
# @return [Array<Google::Apis::AndroidmanagementV1::Role>]
951+
attr_accessor :roles
952+
930953
# Optional. Signing key certificates of the app.This field is required in the
931954
# following cases: The app has installType set to CUSTOM (i.e. a custom app).
932-
# The app has extensionConfig set (i.e. an extension app) but ExtensionConfig.
933-
# signingKeyFingerprintsSha256 (deprecated) is not set and the app does not
934-
# exist on the Play Store.If this field is not set for a custom app, the policy
935-
# is rejected. If it is not set when required for a non-custom app, a
936-
# NonComplianceDetail with INVALID_VALUE is reported.For other cases, this field
937-
# is optional and the signing key certificates obtained from Play Store are used.
938-
# See following policy settings to see how this field is used:
955+
# The app has roles set to a nonempty list and the app does not exist on the
956+
# Play Store. The app has extensionConfig set (i.e. an extension app) but
957+
# ExtensionConfig.signingKeyFingerprintsSha256 (deprecated) is not set and the
958+
# app does not exist on the Play Store.If this field is not set for a custom app,
959+
# the policy is rejected. If it is not set when required for a non-custom app,
960+
# a NonComplianceDetail with INVALID_VALUE is reported.For other cases, this
961+
# field is optional and the signing key certificates obtained from Play Store
962+
# are used.See following policy settings to see how this field is used:
939963
# choosePrivateKeyRules ApplicationPolicy.InstallType.CUSTOM ApplicationPolicy.
940-
# extensionConfig
964+
# extensionConfig ApplicationPolicy.roles
941965
# Corresponds to the JSON property `signingKeyCerts`
942966
# @return [Array<Google::Apis::AndroidmanagementV1::ApplicationSigningKeyCert>]
943967
attr_accessor :signing_key_certs
@@ -982,6 +1006,7 @@ def update!(**args)
9821006
@package_name = args[:package_name] if args.key?(:package_name)
9831007
@permission_grants = args[:permission_grants] if args.key?(:permission_grants)
9841008
@preferential_network_id = args[:preferential_network_id] if args.key?(:preferential_network_id)
1009+
@roles = args[:roles] if args.key?(:roles)
9851010
@signing_key_certs = args[:signing_key_certs] if args.key?(:signing_key_certs)
9861011
@user_control_settings = args[:user_control_settings] if args.key?(:user_control_settings)
9871012
@work_profile_widgets = args[:work_profile_widgets] if args.key?(:work_profile_widgets)
@@ -6229,6 +6254,25 @@ def update!(**args)
62296254
end
62306255
end
62316256

6257+
# Role an app can have.
6258+
class Role
6259+
include Google::Apis::Core::Hashable
6260+
6261+
# Required. The type of the role an app can have.
6262+
# Corresponds to the JSON property `roleType`
6263+
# @return [String]
6264+
attr_accessor :role_type
6265+
6266+
def initialize(**args)
6267+
update!(**args)
6268+
end
6269+
6270+
# Update properties of this object
6271+
def update!(**args)
6272+
@role_type = args[:role_type] if args.key?(:role_type)
6273+
end
6274+
end
6275+
62326276
# Controls for the screen brightness settings.
62336277
class ScreenBrightnessSettings
62346278
include Google::Apis::Core::Hashable

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.99.0"
19+
GEM_VERSION = "0.100.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 = "20250909"
25+
REVISION = "20250916"
2626
end
2727
end
2828
end

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

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -820,6 +820,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
820820
include Google::Apis::Core::JsonObjectSupport
821821
end
822822

823+
class Role
824+
class Representation < Google::Apis::Core::JsonRepresentation; end
825+
826+
include Google::Apis::Core::JsonObjectSupport
827+
end
828+
823829
class ScreenBrightnessSettings
824830
class Representation < Google::Apis::Core::JsonRepresentation; end
825831

@@ -1224,6 +1230,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
12241230
collection :permission_grants, as: 'permissionGrants', class: Google::Apis::AndroidmanagementV1::PermissionGrant, decorator: Google::Apis::AndroidmanagementV1::PermissionGrant::Representation
12251231

12261232
property :preferential_network_id, as: 'preferentialNetworkId'
1233+
collection :roles, as: 'roles', class: Google::Apis::AndroidmanagementV1::Role, decorator: Google::Apis::AndroidmanagementV1::Role::Representation
1234+
12271235
collection :signing_key_certs, as: 'signingKeyCerts', class: Google::Apis::AndroidmanagementV1::ApplicationSigningKeyCert, decorator: Google::Apis::AndroidmanagementV1::ApplicationSigningKeyCert::Representation
12281236

12291237
property :user_control_settings, as: 'userControlSettings'
@@ -2541,6 +2549,13 @@ class Representation < Google::Apis::Core::JsonRepresentation
25412549
end
25422550
end
25432551

2552+
class Role
2553+
# @private
2554+
class Representation < Google::Apis::Core::JsonRepresentation
2555+
property :role_type, as: 'roleType'
2556+
end
2557+
end
2558+
25442559
class ScreenBrightnessSettings
25452560
# @private
25462561
class Representation < Google::Apis::Core::JsonRepresentation

0 commit comments

Comments
 (0)