google-apis-androidmanagement_v1 0.93.0 → 0.94.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/google/apis/androidmanagement_v1/classes.rb +109 -0
- data/lib/google/apis/androidmanagement_v1/gem_version.rb +2 -2
- data/lib/google/apis/androidmanagement_v1/representations.rb +70 -0
- data/lib/google/apis/androidmanagement_v1/service.rb +68 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5d519460861353abcfab475e42fd14690176d0e62b0d603a582cfbced9b27bac
|
4
|
+
data.tar.gz: 3d6e3999dcba884a5c4ba29ecc077af6d0402f50264acca8a7ab6d27262f458e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1052acf0a8d035db87260bd2b8868da86d4376605abdb41364e9909d9b289453f619b5d4b263e5ed23e990701e8294a7078523a7eb426af2ee1db590b8855c5e
|
7
|
+
data.tar.gz: 8bf1fcd365b9a612cf2231c55993c90f5e544531f4bcffb849182b4ee92acd40a4e35230cf7a3bc885337a6be07e0dd64b193ca0ee4fff93da7af7a78bfc8ac8
|
data/CHANGELOG.md
CHANGED
@@ -963,6 +963,34 @@ module Google
|
|
963
963
|
end
|
964
964
|
end
|
965
965
|
|
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
|
+
|
966
994
|
# Information reported about an installed app.
|
967
995
|
class ApplicationReport
|
968
996
|
include Google::Apis::Core::Hashable
|
@@ -4228,6 +4256,47 @@ module Google
|
|
4228
4256
|
end
|
4229
4257
|
end
|
4230
4258
|
|
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
|
+
|
4231
4300
|
# Device network info.
|
4232
4301
|
class NetworkInfo
|
4233
4302
|
include Google::Apis::Core::Hashable
|
@@ -5977,6 +6046,46 @@ module Google
|
|
5977
6046
|
end
|
5978
6047
|
end
|
5979
6048
|
|
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
|
+
|
5980
6089
|
# Parameters associated with the REQUEST_DEVICE_INFO command to get device
|
5981
6090
|
# related information.
|
5982
6091
|
class RequestDeviceInfoParams
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module AndroidmanagementV1
|
18
18
|
# Version of the google-apis-androidmanagement_v1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.94.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.18.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20250617"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -118,6 +118,12 @@ module Google
|
|
118
118
|
include Google::Apis::Core::JsonObjectSupport
|
119
119
|
end
|
120
120
|
|
121
|
+
class ApplicationPolicyChange
|
122
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
123
|
+
|
124
|
+
include Google::Apis::Core::JsonObjectSupport
|
125
|
+
end
|
126
|
+
|
121
127
|
class ApplicationReport
|
122
128
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
123
129
|
|
@@ -610,6 +616,18 @@ module Google
|
|
610
616
|
include Google::Apis::Core::JsonObjectSupport
|
611
617
|
end
|
612
618
|
|
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
|
+
|
613
631
|
class NetworkInfo
|
614
632
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
615
633
|
|
@@ -766,6 +784,18 @@ module Google
|
|
766
784
|
include Google::Apis::Core::JsonObjectSupport
|
767
785
|
end
|
768
786
|
|
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
|
+
|
769
799
|
class RequestDeviceInfoParams
|
770
800
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
771
801
|
|
@@ -1179,6 +1209,15 @@ module Google
|
|
1179
1209
|
end
|
1180
1210
|
end
|
1181
1211
|
|
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
|
+
|
1182
1221
|
class ApplicationReport
|
1183
1222
|
# @private
|
1184
1223
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -2035,6 +2074,22 @@ module Google
|
|
2035
2074
|
end
|
2036
2075
|
end
|
2037
2076
|
|
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
|
+
|
2038
2093
|
class NetworkInfo
|
2039
2094
|
# @private
|
2040
2095
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -2415,6 +2470,21 @@ module Google
|
|
2415
2470
|
end
|
2416
2471
|
end
|
2417
2472
|
|
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
|
+
|
2418
2488
|
class RequestDeviceInfoParams
|
2419
2489
|
# @private
|
2420
2490
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -970,6 +970,40 @@ module Google
|
|
970
970
|
execute_or_queue_command(command, &block)
|
971
971
|
end
|
972
972
|
|
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
|
+
|
973
1007
|
# Updates or creates a policy.
|
974
1008
|
# @param [String] name
|
975
1009
|
# The name of the policy in the form enterprises/`enterpriseId`/policies/`
|
@@ -1008,6 +1042,40 @@ module Google
|
|
1008
1042
|
execute_or_queue_command(command, &block)
|
1009
1043
|
end
|
1010
1044
|
|
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
|
+
|
1011
1079
|
# Creates a web app.
|
1012
1080
|
# @param [String] parent
|
1013
1081
|
# The name of the enterprise in the form enterprises/`enterpriseId`.
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-androidmanagement_v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.94.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
@@ -57,7 +57,7 @@ licenses:
|
|
57
57
|
metadata:
|
58
58
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
59
59
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-androidmanagement_v1/CHANGELOG.md
|
60
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-androidmanagement_v1/v0.
|
60
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-androidmanagement_v1/v0.94.0
|
61
61
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-androidmanagement_v1
|
62
62
|
rdoc_options: []
|
63
63
|
require_paths:
|