google-apis-androidmanagement_v1 0.5.0 → 0.10.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e36025447820926d0b2b3b800717f95c0644d9dfd37ca4d35706e9eb619b8f1c
4
- data.tar.gz: 2674f94def4e25cd44ee564bde1f13ba8efe1194c601f33a3e8318f67a9c3b29
3
+ metadata.gz: 29da6dd11f25c34f6b56186555f74fe5e5d608f36942296fe877f41408c16544
4
+ data.tar.gz: 982a186f925f6b6831c10ebc4f3ae107fddc7964fc22cb059b345bd39a0ebc2e
5
5
  SHA512:
6
- metadata.gz: 215133a91963201f218fbbfc5fe0d10a61162d6a80d258b3d8eac91ba20e9c5bfb0841f4d6a10b2c45a2bbee12f69d0569feb2539e41002b016a58ecf05ff6f2
7
- data.tar.gz: 1df9c12ab5586a442eb161b4216b3bd4d47fa18b7c34d7f88fcc4433a8a57908693a489b181204ff785e9c747758637c666f123677a5733fc7ef3f20011018b9
6
+ metadata.gz: 28a8f82021c90b50bf5ab89efc67cc342173a5abbffc095ce13f2f22841fab56b6da4f76ddc86c9f89bf6e84ce12228f0347d68039142b7d17a0e32662333903
7
+ data.tar.gz: d1f90fcd480eb20af02340b7733c0f110ec78fc7b219f7b5a33c31ee7ba77a842b502a82e334258bf37633440b3c94d9edcf1b9755362a23fad7ca54b71f3992
data/CHANGELOG.md CHANGED
@@ -1,5 +1,26 @@
1
1
  # Release history for google-apis-androidmanagement_v1
2
2
 
3
+ ### v0.10.0 (2021-06-01)
4
+
5
+ * Regenerated from discovery document revision 20210524
6
+
7
+ ### v0.9.0 (2021-05-19)
8
+
9
+ * Unspecified changes
10
+
11
+ ### v0.8.0 (2021-04-18)
12
+
13
+ * Regenerated from discovery document revision 20210405
14
+
15
+ ### v0.7.0 (2021-03-30)
16
+
17
+ * Regenerated from discovery document revision 20210322
18
+
19
+ ### v0.6.0 (2021-03-12)
20
+
21
+ * Regenerated from discovery document revision 20210311
22
+ * Regenerated using generator version 0.2.0
23
+
3
24
  ### v0.5.0 (2021-03-04)
4
25
 
5
26
  * Unspecified changes
@@ -40,6 +40,19 @@ module Google
40
40
  # @return [String]
41
41
  attr_accessor :common_criteria_mode
42
42
 
43
+ # Controls access to developer settings: developer options and safe boot.
44
+ # Replaces safeBootDisabled (deprecated) and debuggingFeaturesAllowed (
45
+ # deprecated).
46
+ # Corresponds to the JSON property `developerSettings`
47
+ # @return [String]
48
+ attr_accessor :developer_settings
49
+
50
+ # Whether Google Play Protect verification (https://support.google.com/accounts/
51
+ # answer/2812853) is enforced. Replaces ensureVerifyAppsEnabled (deprecated).
52
+ # Corresponds to the JSON property `googlePlayProtectVerifyApps`
53
+ # @return [String]
54
+ attr_accessor :google_play_protect_verify_apps
55
+
43
56
  # The policy for untrusted apps (apps from unknown sources) enforced on the
44
57
  # device. Replaces install_unknown_sources_allowed (deprecated).
45
58
  # Corresponds to the JSON property `untrustedAppsPolicy`
@@ -53,6 +66,8 @@ module Google
53
66
  # Update properties of this object
54
67
  def update!(**args)
55
68
  @common_criteria_mode = args[:common_criteria_mode] if args.key?(:common_criteria_mode)
69
+ @developer_settings = args[:developer_settings] if args.key?(:developer_settings)
70
+ @google_play_protect_verify_apps = args[:google_play_protect_verify_apps] if args.key?(:google_play_protect_verify_apps)
56
71
  @untrusted_apps_policy = args[:untrusted_apps_policy] if args.key?(:untrusted_apps_policy)
57
72
  end
58
73
  end
@@ -485,17 +500,34 @@ module Google
485
500
  end
486
501
  end
487
502
 
488
- # A rule for automatically choosing a private key and certificate to
489
- # authenticate the device to a server.
503
+ # Controls apps' access to private keys. The rule determines which private key,
504
+ # if any, Android Device Policy grants to the specified app. Access is granted
505
+ # either when the app calls KeyChain.choosePrivateKeyAlias (https://developer.
506
+ # android.com/reference/android/security/KeyChain#choosePrivateKeyAlias%
507
+ # 28android.app.Activity,%20android.security.KeyChainAliasCallback,%20java.lang.
508
+ # String[],%20java.security.Principal[],%20java.lang.String,%20int,%20java.lang.
509
+ # String%29) (or any overloads) to request a private key alias for a given URL,
510
+ # or for rules that are not URL-specific (that is, if urlPattern is not set, or
511
+ # set to the empty string or .*) on Android 11 and above, directly so that the
512
+ # app can call KeyChain.getPrivateKey (https://developer.android.com/reference/
513
+ # android/security/KeyChain#getPrivateKey%28android.content.Context,%20java.lang.
514
+ # String%29), without first having to call KeyChain.choosePrivateKeyAlias.When
515
+ # an app calls KeyChain.choosePrivateKeyAlias if more than one
516
+ # choosePrivateKeyRules matches, the last matching rule defines which key alias
517
+ # to return.
490
518
  class ChoosePrivateKeyRule
491
519
  include Google::Apis::Core::Hashable
492
520
 
493
- # The package names for which outgoing requests are subject to this rule. If no
494
- # package names are specified, then the rule applies to all packages. For each
495
- # package name listed, the rule applies to that package and all other packages
496
- # that shared the same Android UID. The SHA256 hash of the signing key
497
- # signatures of each package_name will be verified against those provided by
498
- # Play
521
+ # The package names to which this rule applies. The hash of the signing
522
+ # certificate for each app is verified against the hash provided by Play. If no
523
+ # package names are specified, then the alias is provided to all apps that call
524
+ # KeyChain.choosePrivateKeyAlias (https://developer.android.com/reference/
525
+ # android/security/KeyChain#choosePrivateKeyAlias%28android.app.Activity,%
526
+ # 20android.security.KeyChainAliasCallback,%20java.lang.String[],%20java.
527
+ # security.Principal[],%20java.lang.String,%20int,%20java.lang.String%29) or any
528
+ # overloads (but not without calling KeyChain.choosePrivateKeyAlias, even on
529
+ # Android 11 and above). Any app with the same Android UID as a package
530
+ # specified here will have access when they call KeyChain.choosePrivateKeyAlias.
499
531
  # Corresponds to the JSON property `packageNames`
500
532
  # @return [Array<String>]
501
533
  attr_accessor :package_names
@@ -505,8 +537,9 @@ module Google
505
537
  # @return [String]
506
538
  attr_accessor :private_key_alias
507
539
 
508
- # The URL pattern to match against the URL of the outgoing request. The pattern
509
- # may contain asterisk (*) wildcards. Any URL is matched if unspecified.
540
+ # The URL pattern to match against the URL of the request. If not set or empty,
541
+ # it matches all URLs. This uses the regular expression syntax of java.util.
542
+ # regex.Pattern.
510
543
  # Corresponds to the JSON property `urlPattern`
511
544
  # @return [String]
512
545
  attr_accessor :url_pattern
@@ -719,6 +752,37 @@ module Google
719
752
  end
720
753
  end
721
754
 
755
+ # This feature is not generally available.
756
+ class ContentProviderEndpoint
757
+ include Google::Apis::Core::Hashable
758
+
759
+ # This feature is not generally available.
760
+ # Corresponds to the JSON property `packageName`
761
+ # @return [String]
762
+ attr_accessor :package_name
763
+
764
+ # Required. This feature is not generally available.
765
+ # Corresponds to the JSON property `signingCertsSha256`
766
+ # @return [Array<String>]
767
+ attr_accessor :signing_certs_sha256
768
+
769
+ # This feature is not generally available.
770
+ # Corresponds to the JSON property `uri`
771
+ # @return [String]
772
+ attr_accessor :uri
773
+
774
+ def initialize(**args)
775
+ update!(**args)
776
+ end
777
+
778
+ # Update properties of this object
779
+ def update!(**args)
780
+ @package_name = args[:package_name] if args.key?(:package_name)
781
+ @signing_certs_sha256 = args[:signing_certs_sha256] if args.key?(:signing_certs_sha256)
782
+ @uri = args[:uri] if args.key?(:uri)
783
+ end
784
+ end
785
+
722
786
  # Represents a whole or partial calendar date, such as a birthday. The time of
723
787
  # day and time zone are either specified elsewhere or are insignificant. The
724
788
  # date is relative to the Gregorian Calendar. This can represent one of the
@@ -1052,8 +1116,8 @@ module Google
1052
1116
  attr_accessor :unknown_sources_enabled
1053
1117
  alias_method :unknown_sources_enabled?, :unknown_sources_enabled
1054
1118
 
1055
- # Whether Verify Apps (Google Play Protect (https://support.google.com/
1056
- # googleplay/answer/2812853)) is enabled on the device.
1119
+ # Whether Google Play Protect verification (https://support.google.com/accounts/
1120
+ # answer/2812853) is enforced on the device.
1057
1121
  # Corresponds to the JSON property `verifyAppsEnabled`
1058
1122
  # @return [Boolean]
1059
1123
  attr_accessor :verify_apps_enabled
@@ -1565,6 +1629,19 @@ module Google
1565
1629
  end
1566
1630
  end
1567
1631
 
1632
+ # Response on issuing a command. This is currently empty as a placeholder.
1633
+ class IssueCommandResponse
1634
+ include Google::Apis::Core::Hashable
1635
+
1636
+ def initialize(**args)
1637
+ update!(**args)
1638
+ end
1639
+
1640
+ # Update properties of this object
1641
+ def update!(**args)
1642
+ end
1643
+ end
1644
+
1568
1645
  # Keyed app state reported by the app.
1569
1646
  class KeyedAppState
1570
1647
  include Google::Apis::Core::Hashable
@@ -2125,6 +2202,31 @@ module Google
2125
2202
  end
2126
2203
  end
2127
2204
 
2205
+ # This feature is not generally available.
2206
+ class OncCertificateProvider
2207
+ include Google::Apis::Core::Hashable
2208
+
2209
+ # This feature is not generally available.
2210
+ # Corresponds to the JSON property `certificateReferences`
2211
+ # @return [Array<String>]
2212
+ attr_accessor :certificate_references
2213
+
2214
+ # This feature is not generally available.
2215
+ # Corresponds to the JSON property `contentProviderEndpoint`
2216
+ # @return [Google::Apis::AndroidmanagementV1::ContentProviderEndpoint]
2217
+ attr_accessor :content_provider_endpoint
2218
+
2219
+ def initialize(**args)
2220
+ update!(**args)
2221
+ end
2222
+
2223
+ # Update properties of this object
2224
+ def update!(**args)
2225
+ @certificate_references = args[:certificate_references] if args.key?(:certificate_references)
2226
+ @content_provider_endpoint = args[:content_provider_endpoint] if args.key?(:content_provider_endpoint)
2227
+ end
2228
+ end
2229
+
2128
2230
  # This resource represents a long-running operation that is the result of a
2129
2231
  # network API call.
2130
2232
  class Operation
@@ -2566,10 +2668,8 @@ module Google
2566
2668
  attr_accessor :cell_broadcasts_config_disabled
2567
2669
  alias_method :cell_broadcasts_config_disabled?, :cell_broadcasts_config_disabled
2568
2670
 
2569
- # Rules for automatically choosing a private key and certificate to authenticate
2570
- # the device to a server. The rules are ordered by increasing precedence, so if
2571
- # an outgoing request matches more than one rule, the last rule defines which
2572
- # private key to use.
2671
+ # Rules for determining apps' access to private keys. See ChoosePrivateKeyRule
2672
+ # for details.
2573
2673
  # Corresponds to the JSON property `choosePrivateKeyRules`
2574
2674
  # @return [Array<Google::Apis::AndroidmanagementV1::ChoosePrivateKeyRule>]
2575
2675
  attr_accessor :choose_private_key_rules
@@ -2655,8 +2755,7 @@ module Google
2655
2755
  attr_accessor :install_apps_disabled
2656
2756
  alias_method :install_apps_disabled?, :install_apps_disabled
2657
2757
 
2658
- # Whether the user is allowed to enable the "Unknown Sources" setting, which
2659
- # allows installation of apps from unknown sources.
2758
+ # This field has no effect.
2660
2759
  # Corresponds to the JSON property `installUnknownSourcesAllowed`
2661
2760
  # @return [Boolean]
2662
2761
  attr_accessor :install_unknown_sources_allowed
@@ -2741,7 +2840,9 @@ module Google
2741
2840
  # temporary network will be forgotten and the device will continue booting. This
2742
2841
  # prevents being unable to connect to a network if there is no suitable network
2743
2842
  # in the last policy and the device boots into an app in lock task mode, or the
2744
- # user is otherwise unable to reach device settings.
2843
+ # user is otherwise unable to reach device settings.Note: Setting
2844
+ # wifiConfigDisabled to true will override this setting under specific
2845
+ # circumstances. Please see wifiConfigDisabled for further details.
2745
2846
  # Corresponds to the JSON property `networkEscapeHatchEnabled`
2746
2847
  # @return [Boolean]
2747
2848
  attr_accessor :network_escape_hatch_enabled
@@ -2753,6 +2854,11 @@ module Google
2753
2854
  attr_accessor :network_reset_disabled
2754
2855
  alias_method :network_reset_disabled?, :network_reset_disabled
2755
2856
 
2857
+ # This feature is not generally available.
2858
+ # Corresponds to the JSON property `oncCertificateProviders`
2859
+ # @return [Array<Google::Apis::AndroidmanagementV1::OncCertificateProvider>]
2860
+ attr_accessor :onc_certificate_providers
2861
+
2756
2862
  # Network configuration for the device. See configure networks for more
2757
2863
  # information.
2758
2864
  # Corresponds to the JSON property `openNetworkConfiguration`
@@ -2964,7 +3070,10 @@ module Google
2964
3070
  attr_accessor :vpn_config_disabled
2965
3071
  alias_method :vpn_config_disabled?, :vpn_config_disabled
2966
3072
 
2967
- # Whether configuring Wi-Fi access points is disabled.
3073
+ # Whether configuring Wi-Fi access points is disabled.Note: If a network
3074
+ # connection can't be made at boot time and configuring Wi-Fi is disabled then
3075
+ # network escape hatch will be shown in order to refresh the device policy (see
3076
+ # networkEscapeHatchEnabled).
2968
3077
  # Corresponds to the JSON property `wifiConfigDisabled`
2969
3078
  # @return [Boolean]
2970
3079
  attr_accessor :wifi_config_disabled
@@ -3027,6 +3136,7 @@ module Google
3027
3136
  @name = args[:name] if args.key?(:name)
3028
3137
  @network_escape_hatch_enabled = args[:network_escape_hatch_enabled] if args.key?(:network_escape_hatch_enabled)
3029
3138
  @network_reset_disabled = args[:network_reset_disabled] if args.key?(:network_reset_disabled)
3139
+ @onc_certificate_providers = args[:onc_certificate_providers] if args.key?(:onc_certificate_providers)
3030
3140
  @open_network_configuration = args[:open_network_configuration] if args.key?(:open_network_configuration)
3031
3141
  @outgoing_beam_disabled = args[:outgoing_beam_disabled] if args.key?(:outgoing_beam_disabled)
3032
3142
  @outgoing_calls_disabled = args[:outgoing_calls_disabled] if args.key?(:outgoing_calls_disabled)
@@ -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.5.0"
19
+ GEM_VERSION = "0.10.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.1.2"
22
+ GENERATOR_VERSION = "0.2.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210208"
25
+ REVISION = "20210524"
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 ContentProviderEndpoint
122
+ class Representation < Google::Apis::Core::JsonRepresentation; end
123
+
124
+ include Google::Apis::Core::JsonObjectSupport
125
+ end
126
+
121
127
  class Date
122
128
  class Representation < Google::Apis::Core::JsonRepresentation; end
123
129
 
@@ -184,6 +190,12 @@ module Google
184
190
  include Google::Apis::Core::JsonObjectSupport
185
191
  end
186
192
 
193
+ class IssueCommandResponse
194
+ class Representation < Google::Apis::Core::JsonRepresentation; end
195
+
196
+ include Google::Apis::Core::JsonObjectSupport
197
+ end
198
+
187
199
  class KeyedAppState
188
200
  class Representation < Google::Apis::Core::JsonRepresentation; end
189
201
 
@@ -280,6 +292,12 @@ module Google
280
292
  include Google::Apis::Core::JsonObjectSupport
281
293
  end
282
294
 
295
+ class OncCertificateProvider
296
+ class Representation < Google::Apis::Core::JsonRepresentation; end
297
+
298
+ include Google::Apis::Core::JsonObjectSupport
299
+ end
300
+
283
301
  class Operation
284
302
  class Representation < Google::Apis::Core::JsonRepresentation; end
285
303
 
@@ -458,6 +476,8 @@ module Google
458
476
  # @private
459
477
  class Representation < Google::Apis::Core::JsonRepresentation
460
478
  property :common_criteria_mode, as: 'commonCriteriaMode'
479
+ property :developer_settings, as: 'developerSettings'
480
+ property :google_play_protect_verify_apps, as: 'googlePlayProtectVerifyApps'
461
481
  property :untrusted_apps_policy, as: 'untrustedAppsPolicy'
462
482
  end
463
483
  end
@@ -625,6 +645,15 @@ module Google
625
645
  end
626
646
  end
627
647
 
648
+ class ContentProviderEndpoint
649
+ # @private
650
+ class Representation < Google::Apis::Core::JsonRepresentation
651
+ property :package_name, as: 'packageName'
652
+ collection :signing_certs_sha256, as: 'signingCertsSha256'
653
+ property :uri, as: 'uri'
654
+ end
655
+ end
656
+
628
657
  class Date
629
658
  # @private
630
659
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -809,6 +838,12 @@ module Google
809
838
  end
810
839
  end
811
840
 
841
+ class IssueCommandResponse
842
+ # @private
843
+ class Representation < Google::Apis::Core::JsonRepresentation
844
+ end
845
+ end
846
+
812
847
  class KeyedAppState
813
848
  # @private
814
849
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -965,6 +1000,15 @@ module Google
965
1000
  end
966
1001
  end
967
1002
 
1003
+ class OncCertificateProvider
1004
+ # @private
1005
+ class Representation < Google::Apis::Core::JsonRepresentation
1006
+ collection :certificate_references, as: 'certificateReferences'
1007
+ property :content_provider_endpoint, as: 'contentProviderEndpoint', class: Google::Apis::AndroidmanagementV1::ContentProviderEndpoint, decorator: Google::Apis::AndroidmanagementV1::ContentProviderEndpoint::Representation
1008
+
1009
+ end
1010
+ end
1011
+
968
1012
  class Operation
969
1013
  # @private
970
1014
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1097,6 +1141,8 @@ module Google
1097
1141
  property :name, as: 'name'
1098
1142
  property :network_escape_hatch_enabled, as: 'networkEscapeHatchEnabled'
1099
1143
  property :network_reset_disabled, as: 'networkResetDisabled'
1144
+ collection :onc_certificate_providers, as: 'oncCertificateProviders', class: Google::Apis::AndroidmanagementV1::OncCertificateProvider, decorator: Google::Apis::AndroidmanagementV1::OncCertificateProvider::Representation
1145
+
1100
1146
  hash :open_network_configuration, as: 'openNetworkConfiguration'
1101
1147
  property :outgoing_beam_disabled, as: 'outgoingBeamDisabled'
1102
1148
  property :outgoing_calls_disabled, as: 'outgoingCallsDisabled'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-androidmanagement_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-03-08 00:00:00.000000000 Z
11
+ date: 2021-06-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -52,7 +52,7 @@ licenses:
52
52
  metadata:
53
53
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
54
54
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-androidmanagement_v1/CHANGELOG.md
55
- documentation_uri: https://googleapis.dev/ruby/google-apis-androidmanagement_v1/v0.5.0
55
+ documentation_uri: https://googleapis.dev/ruby/google-apis-androidmanagement_v1/v0.10.0
56
56
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-androidmanagement_v1
57
57
  post_install_message:
58
58
  rdoc_options: []
@@ -69,7 +69,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
69
69
  - !ruby/object:Gem::Version
70
70
  version: '0'
71
71
  requirements: []
72
- rubygems_version: 3.2.13
72
+ rubygems_version: 3.2.17
73
73
  signing_key:
74
74
  specification_version: 4
75
75
  summary: Simple REST client for Android Management API V1