google-apis-androidmanagement_v1 0.3.0 → 0.8.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: 9471a857e4a7ee75ef80a0c1c0d4728f7a11bfd1af3cfea84248a0de72c19f47
4
- data.tar.gz: 96274be21f6a976acefde1c8768b91aacd52f01cdcd2b47b44e72a31b0775709
3
+ metadata.gz: c691ad7bce3e340413b09568f405b64f9ee516c48b092992f874ffb892b51b26
4
+ data.tar.gz: 41d223a202acd50b59c80a297345efe40e6da3d71f4ea5d18cf34a9f5db0adf5
5
5
  SHA512:
6
- metadata.gz: ca89a499ad8bfc0344e5454c8a5b71cb835b25b4cc343c6a714ee5180939366d34d0f69ba53513378c3f26b7449562d11161ed67f6b784ca83f0aadde80bf743
7
- data.tar.gz: f82f88b598cd1f5b637eeaa03002e09abffe991d3be04b69149ebe948c4648f0ce0c713b6c0e0a90132b2b61b3cb2b78b93d365c3aac73669b8c0212a4ecae24
6
+ metadata.gz: 344280659c2cbc0e82b4e4d404ab5b3d624e36d8cbdbca7561068498fd644f7d5e5bf069788096af06d727f274a593ad7d0c7115e5b7a9a40e846af7694dd828
7
+ data.tar.gz: bbf922659e3a45e15e23a852cf0e44353aa7a034f18aeaa653a7d78bcade51104c3f7d571ad0a0d9286a782c1d32dd12e8321530a24ae1d8da380b25680a9b45
data/CHANGELOG.md CHANGED
@@ -1,5 +1,26 @@
1
1
  # Release history for google-apis-androidmanagement_v1
2
2
 
3
+ ### v0.8.0 (2021-04-18)
4
+
5
+ * Regenerated from discovery document revision 20210405
6
+
7
+ ### v0.7.0 (2021-03-30)
8
+
9
+ * Regenerated from discovery document revision 20210322
10
+
11
+ ### v0.6.0 (2021-03-12)
12
+
13
+ * Regenerated from discovery document revision 20210311
14
+ * Regenerated using generator version 0.2.0
15
+
16
+ ### v0.5.0 (2021-03-04)
17
+
18
+ * Unspecified changes
19
+
20
+ ### v0.4.0 (2021-02-16)
21
+
22
+ * Regenerated from discovery document revision 20210208
23
+
3
24
  ### v0.3.0 (2021-02-10)
4
25
 
5
26
  * Regenerated from discovery document revision 20210201
@@ -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
@@ -2004,8 +2068,7 @@ module Google
2004
2068
  attr_accessor :network_operator_name
2005
2069
 
2006
2070
  # Provides telephony information associated with each SIM card on the device.
2007
- # Only supported on fully managed devices starting from Android API level 23 and
2008
- # above.
2071
+ # Only supported on fully managed devices starting from Android API level 23.
2009
2072
  # Corresponds to the JSON property `telephonyInfos`
2010
2073
  # @return [Array<Google::Apis::AndroidmanagementV1::TelephonyInfo>]
2011
2074
  attr_accessor :telephony_infos
@@ -2126,6 +2189,31 @@ module Google
2126
2189
  end
2127
2190
  end
2128
2191
 
2192
+ # This feature is not generally available.
2193
+ class OncCertificateProvider
2194
+ include Google::Apis::Core::Hashable
2195
+
2196
+ # This feature is not generally available.
2197
+ # Corresponds to the JSON property `certificateReferences`
2198
+ # @return [Array<String>]
2199
+ attr_accessor :certificate_references
2200
+
2201
+ # This feature is not generally available.
2202
+ # Corresponds to the JSON property `contentProviderEndpoint`
2203
+ # @return [Google::Apis::AndroidmanagementV1::ContentProviderEndpoint]
2204
+ attr_accessor :content_provider_endpoint
2205
+
2206
+ def initialize(**args)
2207
+ update!(**args)
2208
+ end
2209
+
2210
+ # Update properties of this object
2211
+ def update!(**args)
2212
+ @certificate_references = args[:certificate_references] if args.key?(:certificate_references)
2213
+ @content_provider_endpoint = args[:content_provider_endpoint] if args.key?(:content_provider_endpoint)
2214
+ end
2215
+ end
2216
+
2129
2217
  # This resource represents a long-running operation that is the result of a
2130
2218
  # network API call.
2131
2219
  class Operation
@@ -2423,7 +2511,8 @@ module Google
2423
2511
  attr_accessor :camera_disabled
2424
2512
  alias_method :camera_disabled?, :camera_disabled
2425
2513
 
2426
- # Controls how long the work profile can stay off.
2514
+ # Controls how long the work profile can stay off. The duration must be at least
2515
+ # 3 days.
2427
2516
  # Corresponds to the JSON property `maxDaysWithWorkOff`
2428
2517
  # @return [Fixnum]
2429
2518
  attr_accessor :max_days_with_work_off
@@ -2566,10 +2655,8 @@ module Google
2566
2655
  attr_accessor :cell_broadcasts_config_disabled
2567
2656
  alias_method :cell_broadcasts_config_disabled?, :cell_broadcasts_config_disabled
2568
2657
 
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.
2658
+ # Rules for determining apps' access to private keys. See ChoosePrivateKeyRule
2659
+ # for details.
2573
2660
  # Corresponds to the JSON property `choosePrivateKeyRules`
2574
2661
  # @return [Array<Google::Apis::AndroidmanagementV1::ChoosePrivateKeyRule>]
2575
2662
  attr_accessor :choose_private_key_rules
@@ -2655,8 +2742,7 @@ module Google
2655
2742
  attr_accessor :install_apps_disabled
2656
2743
  alias_method :install_apps_disabled?, :install_apps_disabled
2657
2744
 
2658
- # Whether the user is allowed to enable the "Unknown Sources" setting, which
2659
- # allows installation of apps from unknown sources.
2745
+ # This field has no effect.
2660
2746
  # Corresponds to the JSON property `installUnknownSourcesAllowed`
2661
2747
  # @return [Boolean]
2662
2748
  attr_accessor :install_unknown_sources_allowed
@@ -2741,7 +2827,9 @@ module Google
2741
2827
  # temporary network will be forgotten and the device will continue booting. This
2742
2828
  # prevents being unable to connect to a network if there is no suitable network
2743
2829
  # 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.
2830
+ # user is otherwise unable to reach device settings.Note: Setting
2831
+ # wifiConfigDisabled to true will override this setting under specific
2832
+ # circumstances. Please see wifiConfigDisabled for further details.
2745
2833
  # Corresponds to the JSON property `networkEscapeHatchEnabled`
2746
2834
  # @return [Boolean]
2747
2835
  attr_accessor :network_escape_hatch_enabled
@@ -2753,6 +2841,11 @@ module Google
2753
2841
  attr_accessor :network_reset_disabled
2754
2842
  alias_method :network_reset_disabled?, :network_reset_disabled
2755
2843
 
2844
+ # This feature is not generally available.
2845
+ # Corresponds to the JSON property `oncCertificateProviders`
2846
+ # @return [Array<Google::Apis::AndroidmanagementV1::OncCertificateProvider>]
2847
+ attr_accessor :onc_certificate_providers
2848
+
2756
2849
  # Network configuration for the device. See configure networks for more
2757
2850
  # information.
2758
2851
  # Corresponds to the JSON property `openNetworkConfiguration`
@@ -2964,7 +3057,10 @@ module Google
2964
3057
  attr_accessor :vpn_config_disabled
2965
3058
  alias_method :vpn_config_disabled?, :vpn_config_disabled
2966
3059
 
2967
- # Whether configuring Wi-Fi access points is disabled.
3060
+ # Whether configuring Wi-Fi access points is disabled.Note: If a network
3061
+ # connection can't be made at boot time and configuring Wi-Fi is disabled then
3062
+ # network escape hatch will be shown in order to refresh the device policy (see
3063
+ # networkEscapeHatchEnabled).
2968
3064
  # Corresponds to the JSON property `wifiConfigDisabled`
2969
3065
  # @return [Boolean]
2970
3066
  attr_accessor :wifi_config_disabled
@@ -3027,6 +3123,7 @@ module Google
3027
3123
  @name = args[:name] if args.key?(:name)
3028
3124
  @network_escape_hatch_enabled = args[:network_escape_hatch_enabled] if args.key?(:network_escape_hatch_enabled)
3029
3125
  @network_reset_disabled = args[:network_reset_disabled] if args.key?(:network_reset_disabled)
3126
+ @onc_certificate_providers = args[:onc_certificate_providers] if args.key?(:onc_certificate_providers)
3030
3127
  @open_network_configuration = args[:open_network_configuration] if args.key?(:open_network_configuration)
3031
3128
  @outgoing_beam_disabled = args[:outgoing_beam_disabled] if args.key?(:outgoing_beam_disabled)
3032
3129
  @outgoing_calls_disabled = args[:outgoing_calls_disabled] if args.key?(:outgoing_calls_disabled)
@@ -3626,8 +3723,7 @@ module Google
3626
3723
  end
3627
3724
 
3628
3725
  # Telephony information associated with a given SIM card on the device. Only
3629
- # supported on fully managed devices starting from Android API level 23 and
3630
- # above.
3726
+ # supported on fully managed devices starting from Android API level 23.
3631
3727
  class TelephonyInfo
3632
3728
  include Google::Apis::Core::Hashable
3633
3729
 
@@ -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.3.0"
19
+ GEM_VERSION = "0.8.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 = "20210201"
25
+ REVISION = "20210405"
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
 
@@ -280,6 +286,12 @@ module Google
280
286
  include Google::Apis::Core::JsonObjectSupport
281
287
  end
282
288
 
289
+ class OncCertificateProvider
290
+ class Representation < Google::Apis::Core::JsonRepresentation; end
291
+
292
+ include Google::Apis::Core::JsonObjectSupport
293
+ end
294
+
283
295
  class Operation
284
296
  class Representation < Google::Apis::Core::JsonRepresentation; end
285
297
 
@@ -458,6 +470,8 @@ module Google
458
470
  # @private
459
471
  class Representation < Google::Apis::Core::JsonRepresentation
460
472
  property :common_criteria_mode, as: 'commonCriteriaMode'
473
+ property :developer_settings, as: 'developerSettings'
474
+ property :google_play_protect_verify_apps, as: 'googlePlayProtectVerifyApps'
461
475
  property :untrusted_apps_policy, as: 'untrustedAppsPolicy'
462
476
  end
463
477
  end
@@ -625,6 +639,15 @@ module Google
625
639
  end
626
640
  end
627
641
 
642
+ class ContentProviderEndpoint
643
+ # @private
644
+ class Representation < Google::Apis::Core::JsonRepresentation
645
+ property :package_name, as: 'packageName'
646
+ collection :signing_certs_sha256, as: 'signingCertsSha256'
647
+ property :uri, as: 'uri'
648
+ end
649
+ end
650
+
628
651
  class Date
629
652
  # @private
630
653
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -965,6 +988,15 @@ module Google
965
988
  end
966
989
  end
967
990
 
991
+ class OncCertificateProvider
992
+ # @private
993
+ class Representation < Google::Apis::Core::JsonRepresentation
994
+ collection :certificate_references, as: 'certificateReferences'
995
+ property :content_provider_endpoint, as: 'contentProviderEndpoint', class: Google::Apis::AndroidmanagementV1::ContentProviderEndpoint, decorator: Google::Apis::AndroidmanagementV1::ContentProviderEndpoint::Representation
996
+
997
+ end
998
+ end
999
+
968
1000
  class Operation
969
1001
  # @private
970
1002
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1097,6 +1129,8 @@ module Google
1097
1129
  property :name, as: 'name'
1098
1130
  property :network_escape_hatch_enabled, as: 'networkEscapeHatchEnabled'
1099
1131
  property :network_reset_disabled, as: 'networkResetDisabled'
1132
+ collection :onc_certificate_providers, as: 'oncCertificateProviders', class: Google::Apis::AndroidmanagementV1::OncCertificateProvider, decorator: Google::Apis::AndroidmanagementV1::OncCertificateProvider::Representation
1133
+
1100
1134
  hash :open_network_configuration, as: 'openNetworkConfiguration'
1101
1135
  property :outgoing_beam_disabled, as: 'outgoingBeamDisabled'
1102
1136
  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.3.0
4
+ version: 0.8.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-02-15 00:00:00.000000000 Z
11
+ date: 2021-05-18 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.3.0
55
+ documentation_uri: https://googleapis.dev/ruby/google-apis-androidmanagement_v1/v0.8.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: []
@@ -62,14 +62,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
62
62
  requirements:
63
63
  - - ">="
64
64
  - !ruby/object:Gem::Version
65
- version: '2.4'
65
+ version: '2.5'
66
66
  required_rubygems_version: !ruby/object:Gem::Requirement
67
67
  requirements:
68
68
  - - ">="
69
69
  - !ruby/object:Gem::Version
70
70
  version: '0'
71
71
  requirements: []
72
- rubygems_version: 3.2.6
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