google-apis-androidenterprise_v1 0.5.0 → 0.29.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: c00dda4014b97cab1f85973576816965fa7e096de9848459af9add44d05c18ca
4
- data.tar.gz: bea7173225d2d43bfd9910e91797490930ca33ff0a105920f2d591de4385686a
3
+ metadata.gz: a39c807c798c8ae6da59693051cfefc1fd146a7774515c95621f17e98d506791
4
+ data.tar.gz: 54d3de1a948de0e67d15d15a03ab91f741d02d1972fe5395d7a716fa9482a655
5
5
  SHA512:
6
- metadata.gz: 66fbfe1bc989a206671c26939c6cad76fd7ef2e507dbe0e249871a58e26c85b550219493c9655fcbe63e66ba0050ee8c0fb308cb7ea0f06aa426a835945c24c0
7
- data.tar.gz: e3194fcb9573cb5f54e1c4adbf2a3fec0dc181a4b30ace905540e6df8f05b77b42ea5a56609dfa0bb450c798539187cb5ab379951c118e993432adf756769581
6
+ metadata.gz: 7c6381a160379d51daf9dbe1f243214d642f6371af1a32f8aa6b91b68924691a0918974e30f7e35a1ef534f0186b6684850fb1b89ed5b6492724a50ba487ea06
7
+ data.tar.gz: 8f6ec7d084dad9c4090a6db363fc17672eb12b11ee9786b339f64c535ec82d14bef2902c1d98c357e44ff262b282d94cfaf935cb7661981175a65a703c8df567
data/CHANGELOG.md CHANGED
@@ -1,5 +1,105 @@
1
1
  # Release history for google-apis-androidenterprise_v1
2
2
 
3
+ ### v0.29.0 (2024-02-23)
4
+
5
+ * Regenerated using generator version 0.14.0
6
+
7
+ ### v0.28.0 (2024-01-22)
8
+
9
+ * Regenerated using generator version 0.13.0
10
+
11
+ ### v0.27.0 (2023-11-19)
12
+
13
+ * Regenerated from discovery document revision 20231113
14
+
15
+ ### v0.26.0 (2023-11-12)
16
+
17
+ * Regenerated from discovery document revision 20231107
18
+
19
+ ### v0.25.0 (2023-10-22)
20
+
21
+ * Regenerated from discovery document revision 20231018
22
+
23
+ ### v0.24.0 (2023-08-06)
24
+
25
+ * Regenerated from discovery document revision 20230802
26
+
27
+ ### v0.23.0 (2023-07-23)
28
+
29
+ * Regenerated from discovery document revision 20230713
30
+
31
+ ### v0.22.0 (2023-05-21)
32
+
33
+ * Regenerated from discovery document revision 20230515
34
+
35
+ ### v0.21.0 (2023-02-26)
36
+
37
+ * Regenerated from discovery document revision 20230218
38
+
39
+ ### v0.20.0 (2023-02-19)
40
+
41
+ * Regenerated using generator version 0.12.0
42
+
43
+ ### v0.19.0 (2023-01-15)
44
+
45
+ * Regenerated from discovery document revision 20230111
46
+ * Regenerated using generator version 0.11.1
47
+
48
+ ### v0.18.0 (2022-12-22)
49
+
50
+ * Regenerated from discovery document revision 20221214
51
+
52
+ ### v0.17.0 (2022-10-27)
53
+
54
+ * Regenerated from discovery document revision 20221019
55
+ * Regenerated using generator version 0.11.0
56
+
57
+ ### v0.16.0 (2022-09-20)
58
+
59
+ * Regenerated using generator version 0.10.0
60
+
61
+ ### v0.15.0 (2022-09-13)
62
+
63
+ * Regenerated from discovery document revision 20220910
64
+
65
+ ### v0.14.0 (2022-07-22)
66
+
67
+ * Regenerated from discovery document revision 20220720
68
+ * Regenerated using generator version 0.9.0
69
+
70
+ ### v0.13.0 (2022-06-30)
71
+
72
+ * Regenerated using generator version 0.8.0
73
+
74
+ ### v0.12.0 (2022-06-21)
75
+
76
+ * Regenerated using generator version 0.7.0
77
+
78
+ ### v0.11.0 (2022-06-05)
79
+
80
+ * Regenerated using generator version 0.5.0
81
+
82
+ ### v0.10.0 (2022-04-11)
83
+
84
+ * Regenerated from discovery document revision 20220407
85
+ * Regenerated using generator version 0.4.1
86
+
87
+ ### v0.9.0 (2021-12-14)
88
+
89
+ * Unspecified changes
90
+
91
+ ### v0.8.0 (2021-10-20)
92
+
93
+ * Unspecified changes
94
+
95
+ ### v0.7.0 (2021-07-28)
96
+
97
+ * Regenerated from discovery document revision 20210723
98
+
99
+ ### v0.6.0 (2021-06-29)
100
+
101
+ * Regenerated using generator version 0.4.0
102
+
3
103
  ### v0.5.0 (2021-06-24)
4
104
 
5
105
  * Regenerated from discovery document revision 20210610
data/OVERVIEW.md CHANGED
@@ -51,7 +51,7 @@ require "google/apis/androidenterprise_v1"
51
51
  client = Google::Apis::AndroidenterpriseV1::AndroidEnterpriseService.new
52
52
 
53
53
  # Authenticate calls
54
- client.authentication = # ... use the googleauth gem to create credentials
54
+ client.authorization = # ... use the googleauth gem to create credentials
55
55
  ```
56
56
 
57
57
  See the class reference docs for information on the methods you can call from a client.
@@ -60,8 +60,8 @@ See the class reference docs for information on the methods you can call from a
60
60
 
61
61
  More detailed descriptions of the Google simple REST clients are available in two documents.
62
62
 
63
- * The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/master/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
64
- * The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/master/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
63
+ * The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
64
+ * The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
65
65
 
66
66
  (Note: the above documents are written for the simple REST clients in general, and their examples may not reflect the Androidenterprise service in particular.)
67
67
 
@@ -83,9 +83,9 @@ The [product documentation](https://developers.google.com/android/work/play/emm-
83
83
 
84
84
  ## Supported Ruby versions
85
85
 
86
- This library is supported on Ruby 2.5+.
86
+ This library is supported on Ruby 2.7+.
87
87
 
88
- Google provides official support for Ruby versions that are actively supported by Ruby Core -- that is, Ruby versions that are either in normal maintenance or in security maintenance, and not end of life. Currently, this means Ruby 2.5 and later. Older versions of Ruby _may_ still work, but are unsupported and not recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby support schedule.
88
+ Google provides official support for Ruby versions that are actively supported by Ruby Core -- that is, Ruby versions that are either in normal maintenance or in security maintenance, and not end of life. Older versions of Ruby _may_ still work, but are unsupported and not recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby support schedule.
89
89
 
90
90
  ## License
91
91
 
@@ -473,6 +473,12 @@ module Google
473
473
  attr_accessor :is_production
474
474
  alias_method :is_production?, :is_production
475
475
 
476
+ # The SDK version this app targets, as specified in the manifest of the APK. See
477
+ # http://developer.android.com/guide/topics/manifest/uses-sdk-element.html
478
+ # Corresponds to the JSON property `targetSdkVersion`
479
+ # @return [Fixnum]
480
+ attr_accessor :target_sdk_version
481
+
476
482
  # Deprecated, use trackId instead.
477
483
  # Corresponds to the JSON property `track`
478
484
  # @return [String]
@@ -504,6 +510,7 @@ module Google
504
510
  # Update properties of this object
505
511
  def update!(**args)
506
512
  @is_production = args[:is_production] if args.key?(:is_production)
513
+ @target_sdk_version = args[:target_sdk_version] if args.key?(:target_sdk_version)
507
514
  @track = args[:track] if args.key?(:track)
508
515
  @track_id = args[:track_id] if args.key?(:track_id)
509
516
  @version_code = args[:version_code] if args.key?(:version_code)
@@ -595,7 +602,8 @@ module Google
595
602
  # @return [Array<Google::Apis::AndroidenterpriseV1::AutoInstallConstraint>]
596
603
  attr_accessor :auto_install_constraint
597
604
 
598
- # The auto-install mode. If unset defaults to "doNotAutoInstall".
605
+ # The auto-install mode. If unset, defaults to "doNotAutoInstall". An app is
606
+ # automatically installed regardless of a set maintenance window.
599
607
  # Corresponds to the JSON property `autoInstallMode`
600
608
  # @return [String]
601
609
  attr_accessor :auto_install_mode
@@ -655,6 +663,25 @@ module Google
655
663
  end
656
664
  end
657
665
 
666
+ # Response message for create enrollment token.
667
+ class CreateEnrollmentTokenResponse
668
+ include Google::Apis::Core::Hashable
669
+
670
+ # Enrollment token.
671
+ # Corresponds to the JSON property `enrollmentToken`
672
+ # @return [String]
673
+ attr_accessor :enrollment_token
674
+
675
+ def initialize(**args)
676
+ update!(**args)
677
+ end
678
+
679
+ # Update properties of this object
680
+ def update!(**args)
681
+ @enrollment_token = args[:enrollment_token] if args.key?(:enrollment_token)
682
+ end
683
+ end
684
+
658
685
  # A Devices resource represents a mobile device managed by the EMM and belonging
659
686
  # to a specific enterprise user.
660
687
  class Device
@@ -666,6 +693,22 @@ module Google
666
693
  # @return [String]
667
694
  attr_accessor :android_id
668
695
 
696
+ # The internal hardware codename of the device. This comes from android.os.Build.
697
+ # DEVICE. (field named "device" per logs/wireless/android/android_checkin.proto)
698
+ # Corresponds to the JSON property `device`
699
+ # @return [String]
700
+ attr_accessor :device
701
+
702
+ # The build fingerprint of the device if known.
703
+ # Corresponds to the JSON property `latestBuildFingerprint`
704
+ # @return [String]
705
+ attr_accessor :latest_build_fingerprint
706
+
707
+ # The manufacturer of the device. This comes from android.os.Build.MANUFACTURER.
708
+ # Corresponds to the JSON property `maker`
709
+ # @return [String]
710
+ attr_accessor :maker
711
+
669
712
  # Identifies the extent to which the device is controlled by a managed Google
670
713
  # Play EMM in various deployment configurations. Possible values include: - "
671
714
  # managedDevice", a device that has the EMM's device policy controller (DPC) as
@@ -679,17 +722,37 @@ module Google
679
722
  # @return [String]
680
723
  attr_accessor :management_type
681
724
 
725
+ # The model name of the device. This comes from android.os.Build.MODEL.
726
+ # Corresponds to the JSON property `model`
727
+ # @return [String]
728
+ attr_accessor :model
729
+
682
730
  # The device policy for a given managed device.
683
731
  # Corresponds to the JSON property `policy`
684
732
  # @return [Google::Apis::AndroidenterpriseV1::Policy]
685
733
  attr_accessor :policy
686
734
 
735
+ # The product name of the device. This comes from android.os.Build.PRODUCT.
736
+ # Corresponds to the JSON property `product`
737
+ # @return [String]
738
+ attr_accessor :product
739
+
687
740
  # Device report updated with the latest app states for managed apps on the
688
741
  # device.
689
742
  # Corresponds to the JSON property `report`
690
743
  # @return [Google::Apis::AndroidenterpriseV1::DeviceReport]
691
744
  attr_accessor :report
692
745
 
746
+ # Retail brand for the device, if set. See android.os.Build.BRAND
747
+ # Corresponds to the JSON property `retailBrand`
748
+ # @return [String]
749
+ attr_accessor :retail_brand
750
+
751
+ # API compatibility version.
752
+ # Corresponds to the JSON property `sdkVersion`
753
+ # @return [Fixnum]
754
+ attr_accessor :sdk_version
755
+
693
756
  def initialize(**args)
694
757
  update!(**args)
695
758
  end
@@ -697,9 +760,16 @@ module Google
697
760
  # Update properties of this object
698
761
  def update!(**args)
699
762
  @android_id = args[:android_id] if args.key?(:android_id)
763
+ @device = args[:device] if args.key?(:device)
764
+ @latest_build_fingerprint = args[:latest_build_fingerprint] if args.key?(:latest_build_fingerprint)
765
+ @maker = args[:maker] if args.key?(:maker)
700
766
  @management_type = args[:management_type] if args.key?(:management_type)
767
+ @model = args[:model] if args.key?(:model)
701
768
  @policy = args[:policy] if args.key?(:policy)
769
+ @product = args[:product] if args.key?(:product)
702
770
  @report = args[:report] if args.key?(:report)
771
+ @retail_brand = args[:retail_brand] if args.key?(:retail_brand)
772
+ @sdk_version = args[:sdk_version] if args.key?(:sdk_version)
703
773
  end
704
774
  end
705
775
 
@@ -825,6 +895,11 @@ module Google
825
895
  # @return [Array<Google::Apis::AndroidenterpriseV1::Administrator>]
826
896
  attr_accessor :administrator
827
897
 
898
+ # Contains settings for Google-provided user authentication.
899
+ # Corresponds to the JSON property `googleAuthenticationSettings`
900
+ # @return [Google::Apis::AndroidenterpriseV1::GoogleAuthenticationSettings]
901
+ attr_accessor :google_authentication_settings
902
+
828
903
  # The unique ID for the enterprise.
829
904
  # Corresponds to the JSON property `id`
830
905
  # @return [String]
@@ -847,6 +922,7 @@ module Google
847
922
  # Update properties of this object
848
923
  def update!(**args)
849
924
  @administrator = args[:administrator] if args.key?(:administrator)
925
+ @google_authentication_settings = args[:google_authentication_settings] if args.key?(:google_authentication_settings)
850
926
  @id = args[:id] if args.key?(:id)
851
927
  @name = args[:name] if args.key?(:name)
852
928
  @primary_domain = args[:primary_domain] if args.key?(:primary_domain)
@@ -873,6 +949,26 @@ module Google
873
949
  end
874
950
  end
875
951
 
952
+ # An authentication URL configuration for the authenticator app of an identity
953
+ # provider.
954
+ class EnterpriseAuthenticationAppLinkConfig
955
+ include Google::Apis::Core::Hashable
956
+
957
+ # An authentication url.
958
+ # Corresponds to the JSON property `uri`
959
+ # @return [String]
960
+ attr_accessor :uri
961
+
962
+ def initialize(**args)
963
+ update!(**args)
964
+ end
965
+
966
+ # Update properties of this object
967
+ def update!(**args)
968
+ @uri = args[:uri] if args.key?(:uri)
969
+ end
970
+ end
971
+
876
972
  #
877
973
  class ListEnterprisesResponse
878
974
  include Google::Apis::Core::Hashable
@@ -984,6 +1080,31 @@ module Google
984
1080
  end
985
1081
  end
986
1082
 
1083
+ # Contains settings for Google-provided user authentication.
1084
+ class GoogleAuthenticationSettings
1085
+ include Google::Apis::Core::Hashable
1086
+
1087
+ # Whether dedicated devices are allowed.
1088
+ # Corresponds to the JSON property `dedicatedDevicesAllowed`
1089
+ # @return [String]
1090
+ attr_accessor :dedicated_devices_allowed
1091
+
1092
+ # Whether Google authentication is required.
1093
+ # Corresponds to the JSON property `googleAuthenticationRequired`
1094
+ # @return [String]
1095
+ attr_accessor :google_authentication_required
1096
+
1097
+ def initialize(**args)
1098
+ update!(**args)
1099
+ end
1100
+
1101
+ # Update properties of this object
1102
+ def update!(**args)
1103
+ @dedicated_devices_allowed = args[:dedicated_devices_allowed] if args.key?(:dedicated_devices_allowed)
1104
+ @google_authentication_required = args[:google_authentication_required] if args.key?(:google_authentication_required)
1105
+ end
1106
+ end
1107
+
987
1108
  # Group license objects allow you to keep track of licenses (called entitlements)
988
1109
  # for both free and paid apps. For a free app, a group license is created when
989
1110
  # an enterprise admin first approves the product in Google Play or when the
@@ -1805,11 +1926,13 @@ module Google
1805
1926
  class Policy
1806
1927
  include Google::Apis::Core::Hashable
1807
1928
 
1808
- # Deprecated. Use autoUpdateMode instead. When autoUpdateMode is set to
1809
- # AUTO_UPDATE_POSTPONED or AUTO_UPDATE_HIGH_PRIORITY, this field has no effect. "
1810
- # choiceToTheUser" allows the device's user to configure the app update policy. "
1811
- # always" enables auto updates. "never" disables auto updates. "wifiOnly"
1812
- # enables auto updates only when the device is connected to wifi.
1929
+ # Controls when automatic app updates on the device can be applied. Recommended
1930
+ # alternative: autoUpdateMode which is set per app, provides greater flexibility
1931
+ # around update frequency. When autoUpdateMode is set to AUTO_UPDATE_POSTPONED
1932
+ # or AUTO_UPDATE_HIGH_PRIORITY, autoUpdatePolicy has no effect. "choiceToTheUser"
1933
+ # allows the device's user to configure the app update policy. "always" enables
1934
+ # auto updates. "never" disables auto updates. "wifiOnly" enables auto updates
1935
+ # only when the device is connected to wifi.
1813
1936
  # Corresponds to the JSON property `autoUpdatePolicy`
1814
1937
  # @return [String]
1815
1938
  attr_accessor :auto_update_policy
@@ -1866,6 +1989,12 @@ module Google
1866
1989
  class Product
1867
1990
  include Google::Apis::Core::Hashable
1868
1991
 
1992
+ # Represents the list of app restrictions available to be pre-configured for the
1993
+ # product.
1994
+ # Corresponds to the JSON property `appRestrictionsSchema`
1995
+ # @return [Google::Apis::AndroidenterpriseV1::AppRestrictionsSchema]
1996
+ attr_accessor :app_restrictions_schema
1997
+
1869
1998
  # The tracks visible to the enterprise.
1870
1999
  # Corresponds to the JSON property `appTracks`
1871
2000
  # @return [Array<Google::Apis::AndroidenterpriseV1::TrackInfo>]
@@ -1926,6 +2055,11 @@ module Google
1926
2055
  # @return [Array<String>]
1927
2056
  attr_accessor :features
1928
2057
 
2058
+ # The localized full app store description, if available.
2059
+ # Corresponds to the JSON property `fullDescription`
2060
+ # @return [String]
2061
+ attr_accessor :full_description
2062
+
1929
2063
  # A link to an image that can be used as an icon for the product. This image is
1930
2064
  # suitable for use at up to 512px x 512px.
1931
2065
  # Corresponds to the JSON property `iconUrl`
@@ -2005,6 +2139,7 @@ module Google
2005
2139
 
2006
2140
  # Update properties of this object
2007
2141
  def update!(**args)
2142
+ @app_restrictions_schema = args[:app_restrictions_schema] if args.key?(:app_restrictions_schema)
2008
2143
  @app_tracks = args[:app_tracks] if args.key?(:app_tracks)
2009
2144
  @app_version = args[:app_version] if args.key?(:app_version)
2010
2145
  @author_name = args[:author_name] if args.key?(:author_name)
@@ -2016,6 +2151,7 @@ module Google
2016
2151
  @details_url = args[:details_url] if args.key?(:details_url)
2017
2152
  @distribution_channel = args[:distribution_channel] if args.key?(:distribution_channel)
2018
2153
  @features = args[:features] if args.key?(:features)
2154
+ @full_description = args[:full_description] if args.key?(:full_description)
2019
2155
  @icon_url = args[:icon_url] if args.key?(:icon_url)
2020
2156
  @last_updated_timestamp_millis = args[:last_updated_timestamp_millis] if args.key?(:last_updated_timestamp_millis)
2021
2157
  @min_android_sdk_version = args[:min_android_sdk_version] if args.key?(:min_android_sdk_version)
@@ -2149,11 +2285,22 @@ module Google
2149
2285
  # @return [Google::Apis::AndroidenterpriseV1::AutoInstallPolicy]
2150
2286
  attr_accessor :auto_install_policy
2151
2287
 
2152
- # The auto-update mode for the product.
2288
+ # The auto-update mode for the product. When autoUpdateMode is used, it always
2289
+ # takes precedence over the user's choice. So when a user makes changes to the
2290
+ # device settings manually, these changes are ignored.
2153
2291
  # Corresponds to the JSON property `autoUpdateMode`
2154
2292
  # @return [String]
2155
2293
  attr_accessor :auto_update_mode
2156
2294
 
2295
+ # An authentication URL configuration for the authenticator app of an identity
2296
+ # provider. This helps to launch the identity provider's authenticator app
2297
+ # during the authentication happening in a private app using Android WebView.
2298
+ # Authenticator app should already be the default handler for the authentication
2299
+ # url on the device.
2300
+ # Corresponds to the JSON property `enterpriseAuthenticationAppLinkConfigs`
2301
+ # @return [Array<Google::Apis::AndroidenterpriseV1::EnterpriseAuthenticationAppLinkConfig>]
2302
+ attr_accessor :enterprise_authentication_app_link_configs
2303
+
2157
2304
  # A managed configuration resource contains the set of managed properties
2158
2305
  # defined by the app developer in the app's managed configurations schema, as
2159
2306
  # well as any configuration variables defined for the user.
@@ -2186,6 +2333,7 @@ module Google
2186
2333
  def update!(**args)
2187
2334
  @auto_install_policy = args[:auto_install_policy] if args.key?(:auto_install_policy)
2188
2335
  @auto_update_mode = args[:auto_update_mode] if args.key?(:auto_update_mode)
2336
+ @enterprise_authentication_app_link_configs = args[:enterprise_authentication_app_link_configs] if args.key?(:enterprise_authentication_app_link_configs)
2189
2337
  @managed_configuration = args[:managed_configuration] if args.key?(:managed_configuration)
2190
2338
  @product_id = args[:product_id] if args.key?(:product_id)
2191
2339
  @track_ids = args[:track_ids] if args.key?(:track_ids)
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module AndroidenterpriseV1
18
18
  # Version of the google-apis-androidenterprise_v1 gem
19
- GEM_VERSION = "0.5.0"
19
+ GEM_VERSION = "0.29.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.3.0"
22
+ GENERATOR_VERSION = "0.14.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210610"
25
+ REVISION = "20231113"
26
26
  end
27
27
  end
28
28
  end
@@ -148,6 +148,12 @@ module Google
148
148
  include Google::Apis::Core::JsonObjectSupport
149
149
  end
150
150
 
151
+ class CreateEnrollmentTokenResponse
152
+ class Representation < Google::Apis::Core::JsonRepresentation; end
153
+
154
+ include Google::Apis::Core::JsonObjectSupport
155
+ end
156
+
151
157
  class Device
152
158
  class Representation < Google::Apis::Core::JsonRepresentation; end
153
159
 
@@ -190,6 +196,12 @@ module Google
190
196
  include Google::Apis::Core::JsonObjectSupport
191
197
  end
192
198
 
199
+ class EnterpriseAuthenticationAppLinkConfig
200
+ class Representation < Google::Apis::Core::JsonRepresentation; end
201
+
202
+ include Google::Apis::Core::JsonObjectSupport
203
+ end
204
+
193
205
  class ListEnterprisesResponse
194
206
  class Representation < Google::Apis::Core::JsonRepresentation; end
195
207
 
@@ -214,6 +226,12 @@ module Google
214
226
  include Google::Apis::Core::JsonObjectSupport
215
227
  end
216
228
 
229
+ class GoogleAuthenticationSettings
230
+ class Representation < Google::Apis::Core::JsonRepresentation; end
231
+
232
+ include Google::Apis::Core::JsonObjectSupport
233
+ end
234
+
217
235
  class GroupLicense
218
236
  class Representation < Google::Apis::Core::JsonRepresentation; end
219
237
 
@@ -666,6 +684,7 @@ module Google
666
684
  # @private
667
685
  class Representation < Google::Apis::Core::JsonRepresentation
668
686
  property :is_production, as: 'isProduction'
687
+ property :target_sdk_version, as: 'targetSdkVersion'
669
688
  property :track, as: 'track'
670
689
  collection :track_id, as: 'trackId'
671
690
  property :version_code, as: 'versionCode'
@@ -716,15 +735,29 @@ module Google
716
735
  end
717
736
  end
718
737
 
738
+ class CreateEnrollmentTokenResponse
739
+ # @private
740
+ class Representation < Google::Apis::Core::JsonRepresentation
741
+ property :enrollment_token, as: 'enrollmentToken'
742
+ end
743
+ end
744
+
719
745
  class Device
720
746
  # @private
721
747
  class Representation < Google::Apis::Core::JsonRepresentation
722
748
  property :android_id, as: 'androidId'
749
+ property :device, as: 'device'
750
+ property :latest_build_fingerprint, as: 'latestBuildFingerprint'
751
+ property :maker, as: 'maker'
723
752
  property :management_type, as: 'managementType'
753
+ property :model, as: 'model'
724
754
  property :policy, as: 'policy', class: Google::Apis::AndroidenterpriseV1::Policy, decorator: Google::Apis::AndroidenterpriseV1::Policy::Representation
725
755
 
756
+ property :product, as: 'product'
726
757
  property :report, as: 'report', class: Google::Apis::AndroidenterpriseV1::DeviceReport, decorator: Google::Apis::AndroidenterpriseV1::DeviceReport::Representation
727
758
 
759
+ property :retail_brand, as: 'retailBrand'
760
+ property :sdk_version, as: 'sdkVersion'
728
761
  end
729
762
  end
730
763
 
@@ -767,6 +800,8 @@ module Google
767
800
  class Representation < Google::Apis::Core::JsonRepresentation
768
801
  collection :administrator, as: 'administrator', class: Google::Apis::AndroidenterpriseV1::Administrator, decorator: Google::Apis::AndroidenterpriseV1::Administrator::Representation
769
802
 
803
+ property :google_authentication_settings, as: 'googleAuthenticationSettings', class: Google::Apis::AndroidenterpriseV1::GoogleAuthenticationSettings, decorator: Google::Apis::AndroidenterpriseV1::GoogleAuthenticationSettings::Representation
804
+
770
805
  property :id, as: 'id'
771
806
  property :name, as: 'name'
772
807
  property :primary_domain, as: 'primaryDomain'
@@ -780,6 +815,13 @@ module Google
780
815
  end
781
816
  end
782
817
 
818
+ class EnterpriseAuthenticationAppLinkConfig
819
+ # @private
820
+ class Representation < Google::Apis::Core::JsonRepresentation
821
+ property :uri, as: 'uri'
822
+ end
823
+ end
824
+
783
825
  class ListEnterprisesResponse
784
826
  # @private
785
827
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -812,6 +854,14 @@ module Google
812
854
  end
813
855
  end
814
856
 
857
+ class GoogleAuthenticationSettings
858
+ # @private
859
+ class Representation < Google::Apis::Core::JsonRepresentation
860
+ property :dedicated_devices_allowed, as: 'dedicatedDevicesAllowed'
861
+ property :google_authentication_required, as: 'googleAuthenticationRequired'
862
+ end
863
+ end
864
+
815
865
  class GroupLicense
816
866
  # @private
817
867
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1050,6 +1100,8 @@ module Google
1050
1100
  class Product
1051
1101
  # @private
1052
1102
  class Representation < Google::Apis::Core::JsonRepresentation
1103
+ property :app_restrictions_schema, as: 'appRestrictionsSchema', class: Google::Apis::AndroidenterpriseV1::AppRestrictionsSchema, decorator: Google::Apis::AndroidenterpriseV1::AppRestrictionsSchema::Representation
1104
+
1053
1105
  collection :app_tracks, as: 'appTracks', class: Google::Apis::AndroidenterpriseV1::TrackInfo, decorator: Google::Apis::AndroidenterpriseV1::TrackInfo::Representation
1054
1106
 
1055
1107
  collection :app_version, as: 'appVersion', class: Google::Apis::AndroidenterpriseV1::AppVersion, decorator: Google::Apis::AndroidenterpriseV1::AppVersion::Representation
@@ -1063,6 +1115,7 @@ module Google
1063
1115
  property :details_url, as: 'detailsUrl'
1064
1116
  property :distribution_channel, as: 'distributionChannel'
1065
1117
  collection :features, as: 'features'
1118
+ property :full_description, as: 'fullDescription'
1066
1119
  property :icon_url, as: 'iconUrl'
1067
1120
  property :last_updated_timestamp_millis, :numeric_string => true, as: 'lastUpdatedTimestampMillis'
1068
1121
  property :min_android_sdk_version, as: 'minAndroidSdkVersion'
@@ -1120,6 +1173,8 @@ module Google
1120
1173
  property :auto_install_policy, as: 'autoInstallPolicy', class: Google::Apis::AndroidenterpriseV1::AutoInstallPolicy, decorator: Google::Apis::AndroidenterpriseV1::AutoInstallPolicy::Representation
1121
1174
 
1122
1175
  property :auto_update_mode, as: 'autoUpdateMode'
1176
+ collection :enterprise_authentication_app_link_configs, as: 'enterpriseAuthenticationAppLinkConfigs', class: Google::Apis::AndroidenterpriseV1::EnterpriseAuthenticationAppLinkConfig, decorator: Google::Apis::AndroidenterpriseV1::EnterpriseAuthenticationAppLinkConfig::Representation
1177
+
1123
1178
  property :managed_configuration, as: 'managedConfiguration', class: Google::Apis::AndroidenterpriseV1::ManagedConfiguration, decorator: Google::Apis::AndroidenterpriseV1::ManagedConfiguration::Representation
1124
1179
 
1125
1180
  property :product_id, as: 'productId'
@@ -32,6 +32,8 @@ module Google
32
32
  #
33
33
  # @see https://developers.google.com/android/work/play/emm-api
34
34
  class AndroidEnterpriseService < Google::Apis::Core::BaseService
35
+ DEFAULT_ENDPOINT_TEMPLATE = "https://androidenterprise.$UNIVERSE_DOMAIN$/"
36
+
35
37
  # @return [String]
36
38
  # API key. Your API key identifies your project and provides you with API access,
37
39
  # quota, and reports. Required unless you provide an OAuth 2.0 token.
@@ -43,7 +45,7 @@ module Google
43
45
  attr_accessor :quota_user
44
46
 
45
47
  def initialize
46
- super('https://androidenterprise.googleapis.com/', '',
48
+ super(DEFAULT_ENDPOINT_TEMPLATE, '',
47
49
  client_name: 'google-apis-androidenterprise_v1',
48
50
  client_version: Google::Apis::AndroidenterpriseV1::GEM_VERSION)
49
51
  @batch_path = 'batch'
@@ -241,7 +243,10 @@ module Google
241
243
  # Updates the device policy. To ensure the policy is properly enforced, you need
242
244
  # to prevent unmanaged accounts from accessing Google Play by setting the
243
245
  # allowed_accounts in the managed configuration for the Google Play package. See
244
- # restrict accounts in Google Play.
246
+ # restrict accounts in Google Play. When provisioning a new device, you should
247
+ # set the device policy using this method before adding the managed Google Play
248
+ # Account to the device, otherwise the policy will not be applied for a short
249
+ # period of time after adding the account to the device.
245
250
  # @param [String] enterprise_id
246
251
  # The ID of the enterprise.
247
252
  # @param [String] user_id
@@ -351,6 +356,42 @@ module Google
351
356
  execute_or_queue_command(command, &block)
352
357
  end
353
358
 
359
+ # Returns a token for device enrollment. The DPC can encode this token within
360
+ # the QR/NFC/zero-touch enrollment payload or fetch it before calling the on-
361
+ # device API to authenticate the user. The token can be generated for each
362
+ # device or reused across multiple devices.
363
+ # @param [String] enterprise_id
364
+ # The ID of the enterprise.
365
+ # @param [String] device_type
366
+ # Whether it’s a dedicated device or a knowledge worker device.
367
+ # @param [String] fields
368
+ # Selector specifying which fields to include in a partial response.
369
+ # @param [String] quota_user
370
+ # Available to use for quota purposes for server-side applications. Can be any
371
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
372
+ # @param [Google::Apis::RequestOptions] options
373
+ # Request-specific options
374
+ #
375
+ # @yield [result, err] Result & error if block supplied
376
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::CreateEnrollmentTokenResponse] parsed result object
377
+ # @yieldparam err [StandardError] error object if request failed
378
+ #
379
+ # @return [Google::Apis::AndroidenterpriseV1::CreateEnrollmentTokenResponse]
380
+ #
381
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
382
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
383
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
384
+ def create_enterprise_enrollment_token(enterprise_id, device_type: nil, fields: nil, quota_user: nil, options: nil, &block)
385
+ command = make_simple_command(:post, 'androidenterprise/v1/enterprises/{enterpriseId}/createEnrollmentToken', options)
386
+ command.response_representation = Google::Apis::AndroidenterpriseV1::CreateEnrollmentTokenResponse::Representation
387
+ command.response_class = Google::Apis::AndroidenterpriseV1::CreateEnrollmentTokenResponse
388
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
389
+ command.query['deviceType'] = device_type unless device_type.nil?
390
+ command.query['fields'] = fields unless fields.nil?
391
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
392
+ execute_or_queue_command(command, &block)
393
+ end
394
+
354
395
  # Returns a unique token to access an embeddable UI. To generate a web UI, pass
355
396
  # the generated token into the managed Google Play javascript API. Each token
356
397
  # may only be used to start one UI session. See the javascript API documentation
@@ -610,7 +651,7 @@ module Google
610
651
  # The request mode for pulling notifications. Specifying waitForNotifications
611
652
  # will cause the request to block and wait until one or more notifications are
612
653
  # present, or return an empty notification list if no notifications are present
613
- # after some time. Speciying returnImmediately will cause the request to
654
+ # after some time. Specifying returnImmediately will cause the request to
614
655
  # immediately return the pending notifications, or an empty list if no
615
656
  # notifications are present. If omitted, defaults to waitForNotifications.
616
657
  # @param [String] fields
@@ -772,7 +813,9 @@ module Google
772
813
  execute_or_queue_command(command, &block)
773
814
  end
774
815
 
775
- # Removes an entitlement to an app for a user.
816
+ # Removes an entitlement to an app for a user. **Note:** This item has been
817
+ # deprecated. New integrations cannot use this method and can refer to our new
818
+ # recommendations.
776
819
  # @param [String] enterprise_id
777
820
  # The ID of the enterprise.
778
821
  # @param [String] user_id
@@ -806,7 +849,9 @@ module Google
806
849
  execute_or_queue_command(command, &block)
807
850
  end
808
851
 
809
- # Retrieves details of an entitlement.
852
+ # Retrieves details of an entitlement. **Note:** This item has been deprecated.
853
+ # New integrations cannot use this method and can refer to our new
854
+ # recommendations.
810
855
  # @param [String] enterprise_id
811
856
  # The ID of the enterprise.
812
857
  # @param [String] user_id
@@ -842,7 +887,9 @@ module Google
842
887
  execute_or_queue_command(command, &block)
843
888
  end
844
889
 
845
- # Lists all entitlements for the specified user. Only the ID is set.
890
+ # Lists all entitlements for the specified user. Only the ID is set. **Note:**
891
+ # This item has been deprecated. New integrations cannot use this method and can
892
+ # refer to our new recommendations.
846
893
  # @param [String] enterprise_id
847
894
  # The ID of the enterprise.
848
895
  # @param [String] user_id
@@ -875,7 +922,9 @@ module Google
875
922
  execute_or_queue_command(command, &block)
876
923
  end
877
924
 
878
- # Adds or updates an entitlement to an app for a user.
925
+ # Adds or updates an entitlement to an app for a user. **Note:** This item has
926
+ # been deprecated. New integrations cannot use this method and can refer to our
927
+ # new recommendations.
879
928
  # @param [String] enterprise_id
880
929
  # The ID of the enterprise.
881
930
  # @param [String] user_id
@@ -920,7 +969,9 @@ module Google
920
969
  execute_or_queue_command(command, &block)
921
970
  end
922
971
 
923
- # Retrieves details of an enterprise's group license for a product.
972
+ # Retrieves details of an enterprise's group license for a product. **Note:**
973
+ # This item has been deprecated. New integrations cannot use this method and can
974
+ # refer to our new recommendations.
924
975
  # @param [String] enterprise_id
925
976
  # The ID of the enterprise.
926
977
  # @param [String] group_license_id
@@ -954,7 +1005,9 @@ module Google
954
1005
  execute_or_queue_command(command, &block)
955
1006
  end
956
1007
 
957
- # Retrieves IDs of all products for which the enterprise has a group license.
1008
+ # Retrieves IDs of all products for which the enterprise has a group license. **
1009
+ # Note:** This item has been deprecated. New integrations cannot use this method
1010
+ # and can refer to our new recommendations.
958
1011
  # @param [String] enterprise_id
959
1012
  # The ID of the enterprise.
960
1013
  # @param [String] fields
@@ -985,7 +1038,8 @@ module Google
985
1038
  end
986
1039
 
987
1040
  # Retrieves the IDs of the users who have been granted entitlements under the
988
- # license.
1041
+ # license. **Note:** This item has been deprecated. New integrations cannot use
1042
+ # this method and can refer to our new recommendations.
989
1043
  # @param [String] enterprise_id
990
1044
  # The ID of the enterprise.
991
1045
  # @param [String] group_license_id
@@ -1020,7 +1074,10 @@ module Google
1020
1074
  end
1021
1075
 
1022
1076
  # Requests to remove an app from a device. A call to get or list will still show
1023
- # the app as installed on the device until it is actually removed.
1077
+ # the app as installed on the device until it is actually removed. A successful
1078
+ # response indicates that a removal request has been sent to the device. The
1079
+ # call will be considered successful even if the app is not present on the
1080
+ # device (e.g. it was never installed, or was removed by the user).
1024
1081
  # @param [String] enterprise_id
1025
1082
  # The ID of the enterprise.
1026
1083
  # @param [String] user_id
@@ -1558,7 +1615,9 @@ module Google
1558
1615
  # Approves the specified product and the relevant app permissions, if any. The
1559
1616
  # maximum number of products that you can approve per enterprise customer is 1,
1560
1617
  # 000. To learn how to use managed Google Play to design and create a store
1561
- # layout to display approved products to your users, see Store Layout Design.
1618
+ # layout to display approved products to your users, see Store Layout Design. **
1619
+ # Note:** This item has been deprecated. New integrations cannot use this method
1620
+ # and can refer to our new recommendations.
1562
1621
  # @param [String] enterprise_id
1563
1622
  # The ID of the enterprise.
1564
1623
  # @param [String] product_id
@@ -1599,7 +1658,8 @@ module Google
1599
1658
  # UI element in the EMM console, which in turn should trigger the use of this
1600
1659
  # URL as the approvalUrlInfo.approvalUrl property in a Products.approve call to
1601
1660
  # approve the product. This URL can only be used to display permissions for up
1602
- # to 1 day.
1661
+ # to 1 day. **Note:** This item has been deprecated. New integrations cannot use
1662
+ # this method and can refer to our new recommendations.
1603
1663
  # @param [String] enterprise_id
1604
1664
  # The ID of the enterprise.
1605
1665
  # @param [String] product_id
@@ -1747,7 +1807,8 @@ module Google
1747
1807
  end
1748
1808
 
1749
1809
  # Finds approved products that match a query, or all approved products if there
1750
- # is no query.
1810
+ # is no query. **Note:** This item has been deprecated. New integrations cannot
1811
+ # use this method and can refer to our new recommendations.
1751
1812
  # @param [String] enterprise_id
1752
1813
  # The ID of the enterprise.
1753
1814
  # @param [Boolean] approved
@@ -1799,7 +1860,9 @@ module Google
1799
1860
  execute_or_queue_command(command, &block)
1800
1861
  end
1801
1862
 
1802
- # Unapproves the specified product (and the relevant app permissions, if any)
1863
+ # Unapproves the specified product (and the relevant app permissions, if any) **
1864
+ # Note:** This item has been deprecated. New integrations cannot use this method
1865
+ # and can refer to our new recommendations.
1803
1866
  # @param [String] enterprise_id
1804
1867
  # The ID of the enterprise.
1805
1868
  # @param [String] product_id
@@ -2376,7 +2439,9 @@ module Google
2376
2439
  execute_or_queue_command(command, &block)
2377
2440
  end
2378
2441
 
2379
- # Retrieves the set of products a user is entitled to access.
2442
+ # Retrieves the set of products a user is entitled to access. **Note:** This
2443
+ # item has been deprecated. New integrations cannot use this method and can
2444
+ # refer to our new recommendations.
2380
2445
  # @param [String] enterprise_id
2381
2446
  # The ID of the enterprise.
2382
2447
  # @param [String] user_id
@@ -2516,7 +2581,9 @@ module Google
2516
2581
 
2517
2582
  # Modifies the set of products that a user is entitled to access (referred to as
2518
2583
  # *whitelisted* products). Only products that are approved or products that were
2519
- # previously approved (products with revoked approval) can be whitelisted.
2584
+ # previously approved (products with revoked approval) can be whitelisted. **
2585
+ # Note:** This item has been deprecated. New integrations cannot use this method
2586
+ # and can refer to our new recommendations.
2520
2587
  # @param [String] enterprise_id
2521
2588
  # The ID of the enterprise.
2522
2589
  # @param [String] user_id
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-androidenterprise_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.29.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-06-28 00:00:00.000000000 Z
11
+ date: 2024-02-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.3'
19
+ version: 0.14.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: '0.3'
29
+ version: 0.14.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -57,9 +57,9 @@ licenses:
57
57
  - Apache-2.0
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
- changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-androidenterprise_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-androidenterprise_v1/v0.5.0
62
- source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-androidenterprise_v1
60
+ changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-androidenterprise_v1/CHANGELOG.md
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-androidenterprise_v1/v0.29.0
62
+ source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-androidenterprise_v1
63
63
  post_install_message:
64
64
  rdoc_options: []
65
65
  require_paths:
@@ -68,14 +68,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
68
68
  requirements:
69
69
  - - ">="
70
70
  - !ruby/object:Gem::Version
71
- version: '2.5'
71
+ version: '2.7'
72
72
  required_rubygems_version: !ruby/object:Gem::Requirement
73
73
  requirements:
74
74
  - - ">="
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.2.17
78
+ rubygems_version: 3.5.6
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Google Play EMM API V1