Skip to content

Commit 9b76d55

Browse files
feat: Automated regeneration of androidmanagement v1 client (googleapis#23504)
Auto-created at 2025-06-22 10:16:47 +0000 using the toys pull request generator.
1 parent afb0008 commit 9b76d55

File tree

6 files changed

+270
-2
lines changed

6 files changed

+270
-2
lines changed

api_names_out.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31682,6 +31682,9 @@
3168231682
"/androidmanagement:v1/ApplicationPolicy/preferentialNetworkId": preferential_network_id
3168331683
"/androidmanagement:v1/ApplicationPolicy/userControlSettings": user_control_settings
3168431684
"/androidmanagement:v1/ApplicationPolicy/workProfileWidgets": work_profile_widgets
31685+
"/androidmanagement:v1/ApplicationPolicyChange": application_policy_change
31686+
"/androidmanagement:v1/ApplicationPolicyChange/application": application
31687+
"/androidmanagement:v1/ApplicationPolicyChange/updateMask": update_mask
3168531688
"/androidmanagement:v1/ApplicationReport": application_report
3168631689
"/androidmanagement:v1/ApplicationReport/applicationSource": application_source
3168731690
"/androidmanagement:v1/ApplicationReport/displayName": display_name
@@ -32117,6 +32120,11 @@
3211732120
"/androidmanagement:v1/MigrationToken/ttl": ttl
3211832121
"/androidmanagement:v1/MigrationToken/userId": user_id
3211932122
"/androidmanagement:v1/MigrationToken/value": value
32123+
"/androidmanagement:v1/ModifyPolicyApplicationsRequest": modify_policy_applications_request
32124+
"/androidmanagement:v1/ModifyPolicyApplicationsRequest/changes": changes
32125+
"/androidmanagement:v1/ModifyPolicyApplicationsRequest/changes/change": change
32126+
"/androidmanagement:v1/ModifyPolicyApplicationsResponse": modify_policy_applications_response
32127+
"/androidmanagement:v1/ModifyPolicyApplicationsResponse/policy": policy
3212032128
"/androidmanagement:v1/NetworkInfo": network_info
3212132129
"/androidmanagement:v1/NetworkInfo/imei": imei
3212232130
"/androidmanagement:v1/NetworkInfo/meid": meid
@@ -32358,6 +32366,11 @@
3235832366
"/androidmanagement:v1/RemoteLockEvent/targetUserId": target_user_id
3235932367
"/androidmanagement:v1/RemoveEsimParams": remove_esim_params
3236032368
"/androidmanagement:v1/RemoveEsimParams/iccId": icc_id
32369+
"/androidmanagement:v1/RemovePolicyApplicationsRequest": remove_policy_applications_request
32370+
"/androidmanagement:v1/RemovePolicyApplicationsRequest/packageNames": package_names
32371+
"/androidmanagement:v1/RemovePolicyApplicationsRequest/packageNames/package_name": package_name
32372+
"/androidmanagement:v1/RemovePolicyApplicationsResponse": remove_policy_applications_response
32373+
"/androidmanagement:v1/RemovePolicyApplicationsResponse/policy": policy
3236132374
"/androidmanagement:v1/RequestDeviceInfoParams": request_device_info_params
3236232375
"/androidmanagement:v1/RequestDeviceInfoParams/deviceInfo": device_info
3236332376
"/androidmanagement:v1/RequestDeviceInfoStatus": request_device_info_status
@@ -32609,9 +32622,13 @@
3260932622
"/androidmanagement:v1/androidmanagement.enterprises.policies.list/pageSize": page_size
3261032623
"/androidmanagement:v1/androidmanagement.enterprises.policies.list/pageToken": page_token
3261132624
"/androidmanagement:v1/androidmanagement.enterprises.policies.list/parent": parent
32625+
"/androidmanagement:v1/androidmanagement.enterprises.policies.modifyPolicyApplications": modify_policy_applications
32626+
"/androidmanagement:v1/androidmanagement.enterprises.policies.modifyPolicyApplications/name": name
3261232627
"/androidmanagement:v1/androidmanagement.enterprises.policies.patch": patch_enterprise_policy
3261332628
"/androidmanagement:v1/androidmanagement.enterprises.policies.patch/name": name
3261432629
"/androidmanagement:v1/androidmanagement.enterprises.policies.patch/updateMask": update_mask
32630+
"/androidmanagement:v1/androidmanagement.enterprises.policies.removePolicyApplications": remove_policy_applications
32631+
"/androidmanagement:v1/androidmanagement.enterprises.policies.removePolicyApplications/name": name
3261532632
"/androidmanagement:v1/androidmanagement.enterprises.webApps.create": create_enterprise_web_app
3261632633
"/androidmanagement:v1/androidmanagement.enterprises.webApps.create/parent": parent
3261732634
"/androidmanagement:v1/androidmanagement.enterprises.webApps.delete": delete_enterprise_web_app

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.94.0 (2025-06-22)
4+
5+
* Regenerated from discovery document revision 20250617
6+
37
### v0.93.0 (2025-06-15)
48

59
* Regenerated from discovery document revision 20250610

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

Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -963,6 +963,34 @@ def update!(**args)
963963
end
964964
end
965965

966+
# A change to be made to a single ApplicationPolicy object.
967+
class ApplicationPolicyChange
968+
include Google::Apis::Core::Hashable
969+
970+
# Policy for an individual app. Note: Application availability on a given device
971+
# cannot be changed using this policy if installAppsDisabled is enabled. The
972+
# maximum number of applications that you can specify per policy is 3,000.
973+
# Corresponds to the JSON property `application`
974+
# @return [Google::Apis::AndroidmanagementV1::ApplicationPolicy]
975+
attr_accessor :application
976+
977+
# The field mask indicating the fields to update. If omitted, all modifiable
978+
# fields are updated.
979+
# Corresponds to the JSON property `updateMask`
980+
# @return [String]
981+
attr_accessor :update_mask
982+
983+
def initialize(**args)
984+
update!(**args)
985+
end
986+
987+
# Update properties of this object
988+
def update!(**args)
989+
@application = args[:application] if args.key?(:application)
990+
@update_mask = args[:update_mask] if args.key?(:update_mask)
991+
end
992+
end
993+
966994
# Information reported about an installed app.
967995
class ApplicationReport
968996
include Google::Apis::Core::Hashable
@@ -4228,6 +4256,47 @@ def update!(**args)
42284256
end
42294257
end
42304258

4259+
# Request to update or create ApplicationPolicy objects in the given Policy.
4260+
class ModifyPolicyApplicationsRequest
4261+
include Google::Apis::Core::Hashable
4262+
4263+
# Required. The changes to be made to the ApplicationPolicy objects. There must
4264+
# be at least one ApplicationPolicyChange.
4265+
# Corresponds to the JSON property `changes`
4266+
# @return [Array<Google::Apis::AndroidmanagementV1::ApplicationPolicyChange>]
4267+
attr_accessor :changes
4268+
4269+
def initialize(**args)
4270+
update!(**args)
4271+
end
4272+
4273+
# Update properties of this object
4274+
def update!(**args)
4275+
@changes = args[:changes] if args.key?(:changes)
4276+
end
4277+
end
4278+
4279+
# Response to a request to update or create ApplicationPolicy objects in the
4280+
# given policy.
4281+
class ModifyPolicyApplicationsResponse
4282+
include Google::Apis::Core::Hashable
4283+
4284+
# A policy resource represents a group of settings that govern the behavior of a
4285+
# managed device and the apps installed on it.
4286+
# Corresponds to the JSON property `policy`
4287+
# @return [Google::Apis::AndroidmanagementV1::Policy]
4288+
attr_accessor :policy
4289+
4290+
def initialize(**args)
4291+
update!(**args)
4292+
end
4293+
4294+
# Update properties of this object
4295+
def update!(**args)
4296+
@policy = args[:policy] if args.key?(:policy)
4297+
end
4298+
end
4299+
42314300
# Device network info.
42324301
class NetworkInfo
42334302
include Google::Apis::Core::Hashable
@@ -5977,6 +6046,46 @@ def update!(**args)
59776046
end
59786047
end
59796048

6049+
# Request to remove ApplicationPolicy objects in the given policy.
6050+
class RemovePolicyApplicationsRequest
6051+
include Google::Apis::Core::Hashable
6052+
6053+
# Required. Package names to be removed. Entries that are not found are ignored.
6054+
# There must be at least one entry in package_names.
6055+
# Corresponds to the JSON property `packageNames`
6056+
# @return [Array<String>]
6057+
attr_accessor :package_names
6058+
6059+
def initialize(**args)
6060+
update!(**args)
6061+
end
6062+
6063+
# Update properties of this object
6064+
def update!(**args)
6065+
@package_names = args[:package_names] if args.key?(:package_names)
6066+
end
6067+
end
6068+
6069+
# Response to a request to remove ApplicationPolicy objects in the given policy.
6070+
class RemovePolicyApplicationsResponse
6071+
include Google::Apis::Core::Hashable
6072+
6073+
# A policy resource represents a group of settings that govern the behavior of a
6074+
# managed device and the apps installed on it.
6075+
# Corresponds to the JSON property `policy`
6076+
# @return [Google::Apis::AndroidmanagementV1::Policy]
6077+
attr_accessor :policy
6078+
6079+
def initialize(**args)
6080+
update!(**args)
6081+
end
6082+
6083+
# Update properties of this object
6084+
def update!(**args)
6085+
@policy = args[:policy] if args.key?(:policy)
6086+
end
6087+
end
6088+
59806089
# Parameters associated with the REQUEST_DEVICE_INFO command to get device
59816090
# related information.
59826091
class RequestDeviceInfoParams

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.93.0"
19+
GEM_VERSION = "0.94.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 = "20250610"
25+
REVISION = "20250617"
2626
end
2727
end
2828
end

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

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
118118
include Google::Apis::Core::JsonObjectSupport
119119
end
120120

121+
class ApplicationPolicyChange
122+
class Representation < Google::Apis::Core::JsonRepresentation; end
123+
124+
include Google::Apis::Core::JsonObjectSupport
125+
end
126+
121127
class ApplicationReport
122128
class Representation < Google::Apis::Core::JsonRepresentation; end
123129

@@ -610,6 +616,18 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
610616
include Google::Apis::Core::JsonObjectSupport
611617
end
612618

619+
class ModifyPolicyApplicationsRequest
620+
class Representation < Google::Apis::Core::JsonRepresentation; end
621+
622+
include Google::Apis::Core::JsonObjectSupport
623+
end
624+
625+
class ModifyPolicyApplicationsResponse
626+
class Representation < Google::Apis::Core::JsonRepresentation; end
627+
628+
include Google::Apis::Core::JsonObjectSupport
629+
end
630+
613631
class NetworkInfo
614632
class Representation < Google::Apis::Core::JsonRepresentation; end
615633

@@ -766,6 +784,18 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
766784
include Google::Apis::Core::JsonObjectSupport
767785
end
768786

787+
class RemovePolicyApplicationsRequest
788+
class Representation < Google::Apis::Core::JsonRepresentation; end
789+
790+
include Google::Apis::Core::JsonObjectSupport
791+
end
792+
793+
class RemovePolicyApplicationsResponse
794+
class Representation < Google::Apis::Core::JsonRepresentation; end
795+
796+
include Google::Apis::Core::JsonObjectSupport
797+
end
798+
769799
class RequestDeviceInfoParams
770800
class Representation < Google::Apis::Core::JsonRepresentation; end
771801

@@ -1179,6 +1209,15 @@ class Representation < Google::Apis::Core::JsonRepresentation
11791209
end
11801210
end
11811211

1212+
class ApplicationPolicyChange
1213+
# @private
1214+
class Representation < Google::Apis::Core::JsonRepresentation
1215+
property :application, as: 'application', class: Google::Apis::AndroidmanagementV1::ApplicationPolicy, decorator: Google::Apis::AndroidmanagementV1::ApplicationPolicy::Representation
1216+
1217+
property :update_mask, as: 'updateMask'
1218+
end
1219+
end
1220+
11821221
class ApplicationReport
11831222
# @private
11841223
class Representation < Google::Apis::Core::JsonRepresentation
@@ -2035,6 +2074,22 @@ class Representation < Google::Apis::Core::JsonRepresentation
20352074
end
20362075
end
20372076

2077+
class ModifyPolicyApplicationsRequest
2078+
# @private
2079+
class Representation < Google::Apis::Core::JsonRepresentation
2080+
collection :changes, as: 'changes', class: Google::Apis::AndroidmanagementV1::ApplicationPolicyChange, decorator: Google::Apis::AndroidmanagementV1::ApplicationPolicyChange::Representation
2081+
2082+
end
2083+
end
2084+
2085+
class ModifyPolicyApplicationsResponse
2086+
# @private
2087+
class Representation < Google::Apis::Core::JsonRepresentation
2088+
property :policy, as: 'policy', class: Google::Apis::AndroidmanagementV1::Policy, decorator: Google::Apis::AndroidmanagementV1::Policy::Representation
2089+
2090+
end
2091+
end
2092+
20382093
class NetworkInfo
20392094
# @private
20402095
class Representation < Google::Apis::Core::JsonRepresentation
@@ -2415,6 +2470,21 @@ class Representation < Google::Apis::Core::JsonRepresentation
24152470
end
24162471
end
24172472

2473+
class RemovePolicyApplicationsRequest
2474+
# @private
2475+
class Representation < Google::Apis::Core::JsonRepresentation
2476+
collection :package_names, as: 'packageNames'
2477+
end
2478+
end
2479+
2480+
class RemovePolicyApplicationsResponse
2481+
# @private
2482+
class Representation < Google::Apis::Core::JsonRepresentation
2483+
property :policy, as: 'policy', class: Google::Apis::AndroidmanagementV1::Policy, decorator: Google::Apis::AndroidmanagementV1::Policy::Representation
2484+
2485+
end
2486+
end
2487+
24182488
class RequestDeviceInfoParams
24192489
# @private
24202490
class Representation < Google::Apis::Core::JsonRepresentation

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

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -970,6 +970,40 @@ def list_enterprise_policies(parent, page_size: nil, page_token: nil, fields: ni
970970
execute_or_queue_command(command, &block)
971971
end
972972

973+
# Updates or creates applications in a policy.
974+
# @param [String] name
975+
# Required. The name of the Policy containing the ApplicationPolicy objects to
976+
# be updated, in the form enterprises/`enterpriseId`/policies/`policyId`.
977+
# @param [Google::Apis::AndroidmanagementV1::ModifyPolicyApplicationsRequest] modify_policy_applications_request_object
978+
# @param [String] fields
979+
# Selector specifying which fields to include in a partial response.
980+
# @param [String] quota_user
981+
# Available to use for quota purposes for server-side applications. Can be any
982+
# arbitrary string assigned to a user, but should not exceed 40 characters.
983+
# @param [Google::Apis::RequestOptions] options
984+
# Request-specific options
985+
#
986+
# @yield [result, err] Result & error if block supplied
987+
# @yieldparam result [Google::Apis::AndroidmanagementV1::ModifyPolicyApplicationsResponse] parsed result object
988+
# @yieldparam err [StandardError] error object if request failed
989+
#
990+
# @return [Google::Apis::AndroidmanagementV1::ModifyPolicyApplicationsResponse]
991+
#
992+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
993+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
994+
# @raise [Google::Apis::AuthorizationError] Authorization is required
995+
def modify_policy_applications(name, modify_policy_applications_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
996+
command = make_simple_command(:post, 'v1/{+name}:modifyPolicyApplications', options)
997+
command.request_representation = Google::Apis::AndroidmanagementV1::ModifyPolicyApplicationsRequest::Representation
998+
command.request_object = modify_policy_applications_request_object
999+
command.response_representation = Google::Apis::AndroidmanagementV1::ModifyPolicyApplicationsResponse::Representation
1000+
command.response_class = Google::Apis::AndroidmanagementV1::ModifyPolicyApplicationsResponse
1001+
command.params['name'] = name unless name.nil?
1002+
command.query['fields'] = fields unless fields.nil?
1003+
command.query['quotaUser'] = quota_user unless quota_user.nil?
1004+
execute_or_queue_command(command, &block)
1005+
end
1006+
9731007
# Updates or creates a policy.
9741008
# @param [String] name
9751009
# The name of the policy in the form enterprises/`enterpriseId`/policies/`
@@ -1008,6 +1042,40 @@ def patch_enterprise_policy(name, policy_object = nil, update_mask: nil, fields:
10081042
execute_or_queue_command(command, &block)
10091043
end
10101044

1045+
# Removes applications in a policy.
1046+
# @param [String] name
1047+
# Required. The name of the policy containing the ApplicationPolicy objects to
1048+
# be removed, in the form enterprises/`enterpriseId`/policies/`policyId`.
1049+
# @param [Google::Apis::AndroidmanagementV1::RemovePolicyApplicationsRequest] remove_policy_applications_request_object
1050+
# @param [String] fields
1051+
# Selector specifying which fields to include in a partial response.
1052+
# @param [String] quota_user
1053+
# Available to use for quota purposes for server-side applications. Can be any
1054+
# arbitrary string assigned to a user, but should not exceed 40 characters.
1055+
# @param [Google::Apis::RequestOptions] options
1056+
# Request-specific options
1057+
#
1058+
# @yield [result, err] Result & error if block supplied
1059+
# @yieldparam result [Google::Apis::AndroidmanagementV1::RemovePolicyApplicationsResponse] parsed result object
1060+
# @yieldparam err [StandardError] error object if request failed
1061+
#
1062+
# @return [Google::Apis::AndroidmanagementV1::RemovePolicyApplicationsResponse]
1063+
#
1064+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1065+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1066+
# @raise [Google::Apis::AuthorizationError] Authorization is required
1067+
def remove_policy_applications(name, remove_policy_applications_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1068+
command = make_simple_command(:post, 'v1/{+name}:removePolicyApplications', options)
1069+
command.request_representation = Google::Apis::AndroidmanagementV1::RemovePolicyApplicationsRequest::Representation
1070+
command.request_object = remove_policy_applications_request_object
1071+
command.response_representation = Google::Apis::AndroidmanagementV1::RemovePolicyApplicationsResponse::Representation
1072+
command.response_class = Google::Apis::AndroidmanagementV1::RemovePolicyApplicationsResponse
1073+
command.params['name'] = name unless name.nil?
1074+
command.query['fields'] = fields unless fields.nil?
1075+
command.query['quotaUser'] = quota_user unless quota_user.nil?
1076+
execute_or_queue_command(command, &block)
1077+
end
1078+
10111079
# Creates a web app.
10121080
# @param [String] parent
10131081
# The name of the enterprise in the form enterprises/`enterpriseId`.

0 commit comments

Comments
 (0)