google-api-client 0.9.8 → 0.9.15

Sign up to get free protection for your applications and to get access to all the features.
Files changed (197) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +30 -0
  3. data/Gemfile +9 -1
  4. data/README.md +10 -2
  5. data/api_names.yaml +61 -110
  6. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  7. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +160 -9
  8. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +46 -0
  9. data/generated/google/apis/adexchangebuyer_v1_4/service.rb +22 -8
  10. data/generated/google/apis/adexchangeseller_v2_0.rb +2 -3
  11. data/generated/google/apis/adexchangeseller_v2_0/service.rb +1 -2
  12. data/generated/google/apis/admin_directory_v1.rb +1 -1
  13. data/generated/google/apis/admin_directory_v1/classes.rb +6 -0
  14. data/generated/google/apis/admin_directory_v1/representations.rb +1 -0
  15. data/generated/google/apis/admin_directory_v1/service.rb +2 -2
  16. data/generated/google/apis/admin_reports_v1.rb +3 -3
  17. data/generated/google/apis/admin_reports_v1/service.rb +2 -2
  18. data/generated/google/apis/adsense_v1_4.rb +1 -1
  19. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  20. data/generated/google/apis/analytics_v3.rb +1 -1
  21. data/generated/google/apis/analytics_v3/classes.rb +371 -1
  22. data/generated/google/apis/analytics_v3/representations.rb +135 -0
  23. data/generated/google/apis/analytics_v3/service.rb +218 -0
  24. data/generated/google/apis/analyticsreporting_v4.rb +1 -1
  25. data/generated/google/apis/analyticsreporting_v4/classes.rb +50 -22
  26. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  27. data/generated/google/apis/androidenterprise_v1/classes.rb +722 -48
  28. data/generated/google/apis/androidenterprise_v1/representations.rb +305 -0
  29. data/generated/google/apis/androidenterprise_v1/service.rb +1180 -146
  30. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  31. data/generated/google/apis/androidpublisher_v2/classes.rb +9 -8
  32. data/generated/google/apis/appengine_v1beta5.rb +1 -1
  33. data/generated/google/apis/appengine_v1beta5/classes.rb +430 -288
  34. data/generated/google/apis/appengine_v1beta5/representations.rb +84 -10
  35. data/generated/google/apis/appengine_v1beta5/service.rb +285 -25
  36. data/generated/google/apis/appsactivity_v1.rb +1 -1
  37. data/generated/google/apis/appstate_v1.rb +1 -1
  38. data/generated/google/apis/bigquery_v2.rb +1 -1
  39. data/generated/google/apis/bigquery_v2/classes.rb +254 -6
  40. data/generated/google/apis/bigquery_v2/representations.rb +85 -0
  41. data/generated/google/apis/bigquery_v2/service.rb +8 -2
  42. data/generated/google/apis/books_v1.rb +2 -2
  43. data/generated/google/apis/books_v1/classes.rb +77 -0
  44. data/generated/google/apis/books_v1/representations.rb +34 -0
  45. data/generated/google/apis/books_v1/service.rb +7 -3
  46. data/generated/google/apis/calendar_v3.rb +1 -1
  47. data/generated/google/apis/civicinfo_v2.rb +3 -2
  48. data/generated/google/apis/civicinfo_v2/classes.rb +16 -4
  49. data/generated/google/apis/civicinfo_v2/representations.rb +2 -0
  50. data/generated/google/apis/civicinfo_v2/service.rb +8 -2
  51. data/generated/google/apis/classroom_v1.rb +1 -1
  52. data/generated/google/apis/classroom_v1/classes.rb +176 -37
  53. data/generated/google/apis/classroom_v1/representations.rb +73 -9
  54. data/generated/google/apis/classroom_v1/service.rb +392 -37
  55. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  56. data/generated/google/apis/cloudbuild_v1/classes.rb +320 -12
  57. data/generated/google/apis/cloudbuild_v1/representations.rb +136 -2
  58. data/generated/google/apis/cloudbuild_v1/service.rb +174 -1
  59. data/generated/google/apis/clouddebugger_v2.rb +3 -6
  60. data/generated/google/apis/clouddebugger_v2/service.rb +4 -4
  61. data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
  62. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  63. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +157 -3
  64. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +33 -0
  65. data/generated/google/apis/cloudresourcemanager_v1/service.rb +60 -21
  66. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  67. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +22 -5
  68. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +2 -0
  69. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +61 -39
  70. data/generated/google/apis/compute_beta.rb +1 -1
  71. data/generated/google/apis/compute_beta/classes.rb +1620 -199
  72. data/generated/google/apis/compute_beta/representations.rb +563 -0
  73. data/generated/google/apis/compute_beta/service.rb +5123 -2690
  74. data/generated/google/apis/compute_v1.rb +1 -1
  75. data/generated/google/apis/compute_v1/classes.rb +1717 -295
  76. data/generated/google/apis/compute_v1/representations.rb +536 -0
  77. data/generated/google/apis/compute_v1/service.rb +2038 -1041
  78. data/generated/google/apis/content_v2.rb +1 -1
  79. data/generated/google/apis/content_v2/classes.rb +709 -1
  80. data/generated/google/apis/content_v2/representations.rb +319 -0
  81. data/generated/google/apis/content_v2/service.rb +244 -0
  82. data/generated/google/apis/datastore_v1.rb +38 -0
  83. data/generated/google/apis/datastore_v1/classes.rb +1284 -0
  84. data/generated/google/apis/datastore_v1/representations.rb +572 -0
  85. data/generated/google/apis/datastore_v1/service.rb +259 -0
  86. data/generated/google/apis/datastore_v1beta3.rb +38 -0
  87. data/generated/google/apis/datastore_v1beta3/classes.rb +1284 -0
  88. data/generated/google/apis/datastore_v1beta3/representations.rb +572 -0
  89. data/generated/google/apis/datastore_v1beta3/service.rb +259 -0
  90. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  91. data/generated/google/apis/deploymentmanager_v2/classes.rb +384 -2
  92. data/generated/google/apis/deploymentmanager_v2/representations.rb +161 -0
  93. data/generated/google/apis/deploymentmanager_v2/service.rb +162 -50
  94. data/generated/google/apis/dfareporting_v2_5.rb +40 -0
  95. data/generated/google/apis/dfareporting_v2_5/classes.rb +11225 -0
  96. data/generated/google/apis/dfareporting_v2_5/representations.rb +3982 -0
  97. data/generated/google/apis/dfareporting_v2_5/service.rb +8755 -0
  98. data/generated/google/apis/dfareporting_v2_6.rb +40 -0
  99. data/generated/google/apis/dfareporting_v2_6/classes.rb +11585 -0
  100. data/generated/google/apis/dfareporting_v2_6/representations.rb +4119 -0
  101. data/generated/google/apis/dfareporting_v2_6/service.rb +9006 -0
  102. data/generated/google/apis/dns_v1.rb +1 -1
  103. data/generated/google/apis/dns_v1/classes.rb +1 -1
  104. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  105. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  106. data/generated/google/apis/drive_v2.rb +1 -1
  107. data/generated/google/apis/drive_v2/classes.rb +11 -3
  108. data/generated/google/apis/drive_v2/representations.rb +2 -0
  109. data/generated/google/apis/drive_v2/service.rb +8 -2
  110. data/generated/google/apis/drive_v3.rb +1 -1
  111. data/generated/google/apis/drive_v3/classes.rb +36 -16
  112. data/generated/google/apis/drive_v3/representations.rb +2 -0
  113. data/generated/google/apis/drive_v3/service.rb +4 -1
  114. data/generated/google/apis/fitness_v1.rb +8 -2
  115. data/generated/google/apis/fitness_v1/classes.rb +64 -6
  116. data/generated/google/apis/fitness_v1/representations.rb +20 -0
  117. data/generated/google/apis/fitness_v1/service.rb +17 -18
  118. data/generated/google/apis/fusiontables_v2.rb +1 -1
  119. data/generated/google/apis/fusiontables_v2/classes.rb +4 -3
  120. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  121. data/generated/google/apis/games_management_v1management.rb +1 -1
  122. data/generated/google/apis/games_v1.rb +1 -1
  123. data/generated/google/apis/genomics_v1.rb +2 -4
  124. data/generated/google/apis/genomics_v1/classes.rb +111 -9
  125. data/generated/google/apis/genomics_v1/representations.rb +36 -0
  126. data/generated/google/apis/genomics_v1/service.rb +4 -7
  127. data/generated/google/apis/gmail_v1.rb +7 -1
  128. data/generated/google/apis/gmail_v1/classes.rb +540 -0
  129. data/generated/google/apis/gmail_v1/representations.rb +213 -0
  130. data/generated/google/apis/gmail_v1/service.rb +898 -1
  131. data/generated/google/apis/groupssettings_v1.rb +1 -1
  132. data/generated/google/apis/groupssettings_v1/classes.rb +12 -0
  133. data/generated/google/apis/groupssettings_v1/representations.rb +2 -0
  134. data/generated/google/apis/identitytoolkit_v3.rb +1 -1
  135. data/generated/google/apis/identitytoolkit_v3/classes.rb +154 -1
  136. data/generated/google/apis/identitytoolkit_v3/representations.rb +35 -0
  137. data/generated/google/apis/language_v1beta1.rb +36 -0
  138. data/generated/google/apis/language_v1beta1/classes.rb +596 -0
  139. data/generated/google/apis/language_v1beta1/representations.rb +289 -0
  140. data/generated/google/apis/language_v1beta1/service.rb +154 -0
  141. data/generated/google/apis/mirror_v1.rb +2 -2
  142. data/generated/google/apis/mirror_v1/service.rb +1 -1
  143. data/generated/google/apis/monitoring_v3.rb +45 -0
  144. data/generated/google/apis/monitoring_v3/classes.rb +1328 -0
  145. data/generated/google/apis/monitoring_v3/representations.rb +516 -0
  146. data/generated/google/apis/monitoring_v3/service.rb +711 -0
  147. data/generated/google/apis/oauth2_v2.rb +1 -1
  148. data/generated/google/apis/pagespeedonline_v2.rb +1 -1
  149. data/generated/google/apis/plus_domains_v1.rb +1 -1
  150. data/generated/google/apis/plus_v1.rb +1 -1
  151. data/generated/google/apis/qpx_express_v1.rb +1 -1
  152. data/generated/google/apis/qpx_express_v1/classes.rb +6 -0
  153. data/generated/google/apis/qpx_express_v1/representations.rb +1 -0
  154. data/generated/google/apis/replicapool_v1beta2.rb +1 -1
  155. data/generated/google/apis/script_v1.rb +1 -1
  156. data/generated/google/apis/script_v1/classes.rb +6 -0
  157. data/generated/google/apis/script_v1/representations.rb +1 -0
  158. data/generated/google/apis/sheets_v4.rb +1 -1
  159. data/generated/google/apis/sheets_v4/classes.rb +35 -0
  160. data/generated/google/apis/sheets_v4/representations.rb +16 -0
  161. data/generated/google/apis/sheets_v4/service.rb +55 -0
  162. data/generated/google/apis/speech_v1beta1.rb +34 -0
  163. data/generated/google/apis/speech_v1beta1/classes.rb +521 -0
  164. data/generated/google/apis/speech_v1beta1/representations.rb +219 -0
  165. data/generated/google/apis/speech_v1beta1/service.rb +268 -0
  166. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  167. data/generated/google/apis/sqladmin_v1beta4/classes.rb +26 -8
  168. data/generated/google/apis/sqladmin_v1beta4/representations.rb +2 -0
  169. data/generated/google/apis/sqladmin_v1beta4/service.rb +42 -0
  170. data/generated/google/apis/storage_v1.rb +1 -1
  171. data/generated/google/apis/storage_v1/classes.rb +19 -10
  172. data/generated/google/apis/translate_v2.rb +2 -2
  173. data/generated/google/apis/translate_v2/service.rb +1 -1
  174. data/generated/google/apis/vision_v1.rb +1 -1
  175. data/generated/google/apis/vision_v1/classes.rb +10 -9
  176. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  177. data/generated/google/apis/youtube_partner_v1/classes.rb +6 -0
  178. data/generated/google/apis/youtube_partner_v1/representations.rb +2 -0
  179. data/generated/google/apis/youtube_partner_v1/service.rb +15 -3
  180. data/generated/google/apis/youtube_v3.rb +1 -1
  181. data/generated/google/apis/youtube_v3/classes.rb +163 -2
  182. data/generated/google/apis/youtube_v3/representations.rb +82 -0
  183. data/generated/google/apis/youtube_v3/service.rb +6 -2
  184. data/generated/google/apis/youtubereporting_v1.rb +1 -1
  185. data/google-api-client.gemspec +2 -1
  186. data/lib/google/apis/core/api_command.rb +4 -0
  187. data/lib/google/apis/core/base_service.rb +10 -4
  188. data/lib/google/apis/core/download.rb +7 -2
  189. data/lib/google/apis/core/http_command.rb +5 -1
  190. data/lib/google/apis/core/upload.rb +7 -1
  191. data/lib/google/apis/errors.rb +2 -2
  192. data/lib/google/apis/generator/annotator.rb +6 -0
  193. data/lib/google/apis/version.rb +1 -1
  194. data/samples/cli/lib/samples/bigquery.rb +101 -0
  195. data/samples/cli/lib/samples/sheets.rb +61 -0
  196. data/sync.rb +71 -0
  197. metadata +43 -13
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/android/work/play/emm-api
26
26
  module AndroidenterpriseV1
27
27
  VERSION = 'V1'
28
- REVISION = '20160519'
28
+ REVISION = '20160913'
29
29
 
30
30
  # Manage corporate Android devices
31
31
  AUTH_ANDROIDENTERPRISE = 'https://www.googleapis.com/auth/androidenterprise'
@@ -22,6 +22,26 @@ module Google
22
22
  module Apis
23
23
  module AndroidenterpriseV1
24
24
 
25
+ # This represents an enterprise administrator who can manage the enterprise in
26
+ # the Google Play for Work Store.
27
+ class Administrator
28
+ include Google::Apis::Core::Hashable
29
+
30
+ # The administrator's email address.
31
+ # Corresponds to the JSON property `email`
32
+ # @return [String]
33
+ attr_accessor :email
34
+
35
+ def initialize(**args)
36
+ update!(**args)
37
+ end
38
+
39
+ # Update properties of this object
40
+ def update!(**args)
41
+ @email = args[:email] if args.key?(:email)
42
+ end
43
+ end
44
+
25
45
  # Represents the list of app restrictions available to be pre-configured for the
26
46
  # product.
27
47
  class AppRestrictionsSchema
@@ -49,6 +69,28 @@ module Google
49
69
  end
50
70
  end
51
71
 
72
+ # An event generated when a new app version is uploaded to Google Play and its
73
+ # app restrictions schema changed. To fetch the app restrictions schema for an
74
+ # app, use Products.getAppRestrictionsSchema on the EMM API.
75
+ class AppRestrictionsSchemaChangeEvent
76
+ include Google::Apis::Core::Hashable
77
+
78
+ # The id of the product (e.g. "app:com.google.android.gm") for which the app
79
+ # restriction schema changed. This field will always be present.
80
+ # Corresponds to the JSON property `productId`
81
+ # @return [String]
82
+ attr_accessor :product_id
83
+
84
+ def initialize(**args)
85
+ update!(**args)
86
+ end
87
+
88
+ # Update properties of this object
89
+ def update!(**args)
90
+ @product_id = args[:product_id] if args.key?(:product_id)
91
+ end
92
+ end
93
+
52
94
  # A restriction in the App Restriction Schema represents a piece of
53
95
  # configuration that may be pre-applied.
54
96
  class AppRestrictionsSchemaRestriction
@@ -82,6 +124,11 @@ module Google
82
124
  # @return [String]
83
125
  attr_accessor :key
84
126
 
127
+ # For bundle or bundleArray restrictions, the list of nested restrictions.
128
+ # Corresponds to the JSON property `nestedRestriction`
129
+ # @return [Array<Google::Apis::AndroidenterpriseV1::AppRestrictionsSchemaRestriction>]
130
+ attr_accessor :nested_restriction
131
+
85
132
  # The type of the restriction.
86
133
  # Corresponds to the JSON property `restrictionType`
87
134
  # @return [String]
@@ -103,6 +150,7 @@ module Google
103
150
  @entry = args[:entry] if args.key?(:entry)
104
151
  @entry_value = args[:entry_value] if args.key?(:entry_value)
105
152
  @key = args[:key] if args.key?(:key)
153
+ @nested_restriction = args[:nested_restriction] if args.key?(:nested_restriction)
106
154
  @restriction_type = args[:restriction_type] if args.key?(:restriction_type)
107
155
  @title = args[:title] if args.key?(:title)
108
156
  end
@@ -152,6 +200,29 @@ module Google
152
200
  end
153
201
  end
154
202
 
203
+ # An event generated when a new version of an app is uploaded to Google Play.
204
+ # Notifications are sent for new public versions only: alpha, beta, or canary
205
+ # versions do not generate this event. To fetch up-to-date version history for
206
+ # an app, use Products.Get on the EMM API.
207
+ class AppUpdateEvent
208
+ include Google::Apis::Core::Hashable
209
+
210
+ # The id of the product (e.g. "app:com.google.android.gm") that was updated.
211
+ # This field will always be present.
212
+ # Corresponds to the JSON property `productId`
213
+ # @return [String]
214
+ attr_accessor :product_id
215
+
216
+ def initialize(**args)
217
+ update!(**args)
218
+ end
219
+
220
+ # Update properties of this object
221
+ def update!(**args)
222
+ @product_id = args[:product_id] if args.key?(:product_id)
223
+ end
224
+ end
225
+
155
226
  # This represents a single version of the app.
156
227
  class AppVersion
157
228
  include Google::Apis::Core::Hashable
@@ -206,6 +277,35 @@ module Google
206
277
  end
207
278
  end
208
279
 
280
+ # An AuthenticationToken is used by the EMM's device policy client on a device
281
+ # to provision the given EMM-managed user on that device.
282
+ class AuthenticationToken
283
+ include Google::Apis::Core::Hashable
284
+
285
+ # Identifies what kind of resource this is. Value: the fixed string "
286
+ # androidenterprise#authenticationToken".
287
+ # Corresponds to the JSON property `kind`
288
+ # @return [String]
289
+ attr_accessor :kind
290
+
291
+ # The authentication token to be passed to the device policy client on the
292
+ # device where it can be used to provision the account for which this token was
293
+ # generated.
294
+ # Corresponds to the JSON property `token`
295
+ # @return [String]
296
+ attr_accessor :token
297
+
298
+ def initialize(**args)
299
+ update!(**args)
300
+ end
301
+
302
+ # Update properties of this object
303
+ def update!(**args)
304
+ @kind = args[:kind] if args.key?(:kind)
305
+ @token = args[:token] if args.key?(:token)
306
+ end
307
+ end
308
+
209
309
  # A collection resource defines a named set of apps that is visible to a set of
210
310
  # users in the Google Play Store app running on those users' managed devices.
211
311
  # Those users can then install any of those apps if they wish (which will
@@ -339,12 +439,19 @@ module Google
339
439
  # @return [String]
340
440
  attr_accessor :kind
341
441
 
342
- # The mechanism by which this device is managed by the EMM. "managedDevice"
343
- # means that the EMM's app is a device owner. "managedProfile" means that the
344
- # EMM's app is the profile owner (and there is a separate personal profile which
345
- # is not managed). "containerApp" means that the EMM's app is managing the
346
- # Android for Work container app on the device. ?unmanagedProfile? means that
347
- # the EMM?s app is managing a managed user on an unmanaged device
442
+ # Identifies the extent to which the device is controlled by an Android for Work
443
+ # EMM in various deployment configurations.
444
+ # Possible values include:
445
+ # - "managedDevice", a device that has the EMM's device policy controller (DPC)
446
+ # as the device owner,
447
+ # - "managedProfile", a device that has a work profile managed by the DPC (DPC
448
+ # is profile owner) in addition to a separate, personal profile that is
449
+ # unavailable to the DPC,
450
+ # - "containerApp", a device running the Android for Work App. The Android for
451
+ # Work App is managed by the DPC,
452
+ # - "unmanagedProfile", a device that has been allowed (by the domain's admin,
453
+ # using the Admin Console to enable the privilege) to use Android for Work apps
454
+ # or Google Apps for Work, but the profile is itself not owned by a DPC.
348
455
  # Corresponds to the JSON property `managementType`
349
456
  # @return [String]
350
457
  attr_accessor :management_type
@@ -417,33 +524,27 @@ module Google
417
524
  end
418
525
  end
419
526
 
420
- # An enterprise resource represents a binding between an organization and their
421
- # EMM.
422
- # To create an enterprise, an admin of the enterprise must first go through a
423
- # Play for Work sign-up flow. At the end of this the admin will be presented
424
- # with a token (a short opaque alphanumeric string). They must then present this
425
- # to the EMM, who then supplies it to the enroll method. Until this is done the
426
- # EMM will not have any access to the enterprise.
427
- # After calling enroll the EMM should call setAccount to specify the service
428
- # account that will be allowed to act on behalf of the enterprise, which will be
429
- # required for access to the enterprise's data through this API. Only one call
430
- # of setAccount is allowed for a given enterprise; the only way to change the
431
- # account later is to unenroll the enterprise and enroll it again (obtaining a
432
- # new token).
433
- # The EMM can unenroll an enterprise in order to sever the binding between them.
434
- # Re-enrolling an enterprise is possible, but requires a new token to be
435
- # retrieved. Enterprises.unenroll requires the EMM's credentials (as enroll does)
436
- # , not the enterprise's. Enterprises.unenroll can only be used for enterprises
437
- # that were previously enrolled with the enroll call. Any enterprises that were
438
- # enrolled using the (deprecated) Enterprises.insert call must be unenrolled
439
- # with Enterprises.delete and can then be re-enrolled using the Enterprises.
440
- # enroll call.
441
- # The ID for an enterprise is an opaque string. It is returned by insert and
442
- # enroll and can also be retrieved if the enterprise's primary domain is known
443
- # using the list method.
527
+ # An Enterprises resource represents the binding between an EMM and a specific
528
+ # organization. That binding can be instantiated in one of two different ways
529
+ # using this API as follows:
530
+ # - For Google managed domain customers, the process involves using Enterprises.
531
+ # enroll and Enterprises.setAccount (in conjunction with artifacts obtained from
532
+ # the Admin console and the Google API Console) and submitted to the EMM through
533
+ # a more-or-less manual process.
534
+ # - For Android for Work Accounts customers, the process involves using
535
+ # Enterprises.generateSignupUrl and Enterprises.completeSignup in conjunction
536
+ # with the Android for Work Sign-up UI (Google-provided mechanism) to create the
537
+ # binding without manual steps. As an EMM, you can support either or both
538
+ # approaches in your EMM console. See Create an Enterprise for details.
444
539
  class Enterprise
445
540
  include Google::Apis::Core::Hashable
446
541
 
542
+ # Administrators of the enterprise. This is only supported for enterprises
543
+ # created via the EMM-initiated flow.
544
+ # Corresponds to the JSON property `administrator`
545
+ # @return [Array<Google::Apis::AndroidenterpriseV1::Administrator>]
546
+ attr_accessor :administrator
547
+
447
548
  # The unique ID for the enterprise.
448
549
  # Corresponds to the JSON property `id`
449
550
  # @return [String]
@@ -455,12 +556,12 @@ module Google
455
556
  # @return [String]
456
557
  attr_accessor :kind
457
558
 
458
- # The name of the enterprise, e.g. "Example Inc".
559
+ # The name of the enterprise, for example, "Example, Inc".
459
560
  # Corresponds to the JSON property `name`
460
561
  # @return [String]
461
562
  attr_accessor :name
462
563
 
463
- # The enterprise's primary domain, e.g. "example.com".
564
+ # The enterprise's primary domain, such as "example.com".
464
565
  # Corresponds to the JSON property `primaryDomain`
465
566
  # @return [String]
466
567
  attr_accessor :primary_domain
@@ -471,6 +572,7 @@ module Google
471
572
 
472
573
  # Update properties of this object
473
574
  def update!(**args)
575
+ @administrator = args[:administrator] if args.key?(:administrator)
474
576
  @id = args[:id] if args.key?(:id)
475
577
  @kind = args[:kind] if args.key?(:kind)
476
578
  @name = args[:name] if args.key?(:name)
@@ -831,6 +933,50 @@ module Google
831
933
  end
832
934
  end
833
935
 
936
+ # An event generated when an app installation failed on a device
937
+ class InstallFailureEvent
938
+ include Google::Apis::Core::Hashable
939
+
940
+ # The Android ID of the device. This field will always be present.
941
+ # Corresponds to the JSON property `deviceId`
942
+ # @return [String]
943
+ attr_accessor :device_id
944
+
945
+ # Additional details on the failure if applicable.
946
+ # Corresponds to the JSON property `failureDetails`
947
+ # @return [String]
948
+ attr_accessor :failure_details
949
+
950
+ # The reason for the installation failure. This field will always be present.
951
+ # Corresponds to the JSON property `failureReason`
952
+ # @return [String]
953
+ attr_accessor :failure_reason
954
+
955
+ # The id of the product (e.g. "app:com.google.android.gm") for which the install
956
+ # failure event occured. This field will always be present.
957
+ # Corresponds to the JSON property `productId`
958
+ # @return [String]
959
+ attr_accessor :product_id
960
+
961
+ # The ID of the user. This field will always be present.
962
+ # Corresponds to the JSON property `userId`
963
+ # @return [String]
964
+ attr_accessor :user_id
965
+
966
+ def initialize(**args)
967
+ update!(**args)
968
+ end
969
+
970
+ # Update properties of this object
971
+ def update!(**args)
972
+ @device_id = args[:device_id] if args.key?(:device_id)
973
+ @failure_details = args[:failure_details] if args.key?(:failure_details)
974
+ @failure_reason = args[:failure_reason] if args.key?(:failure_reason)
975
+ @product_id = args[:product_id] if args.key?(:product_id)
976
+ @user_id = args[:user_id] if args.key?(:user_id)
977
+ end
978
+ end
979
+
834
980
  # The install resources for the device.
835
981
  class ListInstallsResponse
836
982
  include Google::Apis::Core::Hashable
@@ -883,6 +1029,314 @@ module Google
883
1029
  end
884
1030
  end
885
1031
 
1032
+ # A managed configuration resource contains the set of managed properties that
1033
+ # have been configured for an Android app. The app's developer would have
1034
+ # defined configurable properties in the managed configurations schema.
1035
+ class ManagedConfiguration
1036
+ include Google::Apis::Core::Hashable
1037
+
1038
+ # Identifies what kind of resource this is. Value: the fixed string "
1039
+ # androidenterprise#managedConfiguration".
1040
+ # Corresponds to the JSON property `kind`
1041
+ # @return [String]
1042
+ attr_accessor :kind
1043
+
1044
+ # The set of managed properties for this configuration.
1045
+ # Corresponds to the JSON property `managedProperty`
1046
+ # @return [Array<Google::Apis::AndroidenterpriseV1::ManagedProperty>]
1047
+ attr_accessor :managed_property
1048
+
1049
+ # The ID of the product that the managed configuration is for, e.g. "app:com.
1050
+ # google.android.gm".
1051
+ # Corresponds to the JSON property `productId`
1052
+ # @return [String]
1053
+ attr_accessor :product_id
1054
+
1055
+ def initialize(**args)
1056
+ update!(**args)
1057
+ end
1058
+
1059
+ # Update properties of this object
1060
+ def update!(**args)
1061
+ @kind = args[:kind] if args.key?(:kind)
1062
+ @managed_property = args[:managed_property] if args.key?(:managed_property)
1063
+ @product_id = args[:product_id] if args.key?(:product_id)
1064
+ end
1065
+ end
1066
+
1067
+ # The managed configuration resources for the device.
1068
+ class ManagedConfigurationsForDeviceListResponse
1069
+ include Google::Apis::Core::Hashable
1070
+
1071
+ # Identifies what kind of resource this is. Value: the fixed string "
1072
+ # androidenterprise#managedConfigurationsForDeviceListResponse".
1073
+ # Corresponds to the JSON property `kind`
1074
+ # @return [String]
1075
+ attr_accessor :kind
1076
+
1077
+ # A managed configuration for an app on a specific device.
1078
+ # Corresponds to the JSON property `managedConfigurationForDevice`
1079
+ # @return [Array<Google::Apis::AndroidenterpriseV1::ManagedConfiguration>]
1080
+ attr_accessor :managed_configuration_for_device
1081
+
1082
+ def initialize(**args)
1083
+ update!(**args)
1084
+ end
1085
+
1086
+ # Update properties of this object
1087
+ def update!(**args)
1088
+ @kind = args[:kind] if args.key?(:kind)
1089
+ @managed_configuration_for_device = args[:managed_configuration_for_device] if args.key?(:managed_configuration_for_device)
1090
+ end
1091
+ end
1092
+
1093
+ # The managed configuration resources for the user.
1094
+ class ManagedConfigurationsForUserListResponse
1095
+ include Google::Apis::Core::Hashable
1096
+
1097
+ # Identifies what kind of resource this is. Value: the fixed string "
1098
+ # androidenterprise#managedConfigurationsForUserListResponse".
1099
+ # Corresponds to the JSON property `kind`
1100
+ # @return [String]
1101
+ attr_accessor :kind
1102
+
1103
+ # A managed configuration for an app for a specific user.
1104
+ # Corresponds to the JSON property `managedConfigurationForUser`
1105
+ # @return [Array<Google::Apis::AndroidenterpriseV1::ManagedConfiguration>]
1106
+ attr_accessor :managed_configuration_for_user
1107
+
1108
+ def initialize(**args)
1109
+ update!(**args)
1110
+ end
1111
+
1112
+ # Update properties of this object
1113
+ def update!(**args)
1114
+ @kind = args[:kind] if args.key?(:kind)
1115
+ @managed_configuration_for_user = args[:managed_configuration_for_user] if args.key?(:managed_configuration_for_user)
1116
+ end
1117
+ end
1118
+
1119
+ # A managed property of a managed configuration. The property must match one of
1120
+ # the properties in the app restrictions schema of the product. Exactly one of
1121
+ # the value fields must be populated, and it must match the property's type in
1122
+ # the app restrictions schema.
1123
+ class ManagedProperty
1124
+ include Google::Apis::Core::Hashable
1125
+
1126
+ # The unique key that identifies the property.
1127
+ # Corresponds to the JSON property `key`
1128
+ # @return [String]
1129
+ attr_accessor :key
1130
+
1131
+ # The boolean value - this will only be present if type of the property is bool.
1132
+ # Corresponds to the JSON property `valueBool`
1133
+ # @return [Boolean]
1134
+ attr_accessor :value_bool
1135
+ alias_method :value_bool?, :value_bool
1136
+
1137
+ # A bundle of managed properties.
1138
+ # Corresponds to the JSON property `valueBundle`
1139
+ # @return [Google::Apis::AndroidenterpriseV1::ManagedPropertyBundle]
1140
+ attr_accessor :value_bundle
1141
+
1142
+ # The list of bundles of properties - this will only be present if type of the
1143
+ # property is bundle_array.
1144
+ # Corresponds to the JSON property `valueBundleArray`
1145
+ # @return [Array<Google::Apis::AndroidenterpriseV1::ManagedPropertyBundle>]
1146
+ attr_accessor :value_bundle_array
1147
+
1148
+ # The integer value - this will only be present if type of the property is
1149
+ # integer.
1150
+ # Corresponds to the JSON property `valueInteger`
1151
+ # @return [Fixnum]
1152
+ attr_accessor :value_integer
1153
+
1154
+ # The string value - this will only be present if type of the property is string,
1155
+ # choice or hidden.
1156
+ # Corresponds to the JSON property `valueString`
1157
+ # @return [String]
1158
+ attr_accessor :value_string
1159
+
1160
+ # The list of string values - this will only be present if type of the property
1161
+ # is multiselect.
1162
+ # Corresponds to the JSON property `valueStringArray`
1163
+ # @return [Array<String>]
1164
+ attr_accessor :value_string_array
1165
+
1166
+ def initialize(**args)
1167
+ update!(**args)
1168
+ end
1169
+
1170
+ # Update properties of this object
1171
+ def update!(**args)
1172
+ @key = args[:key] if args.key?(:key)
1173
+ @value_bool = args[:value_bool] if args.key?(:value_bool)
1174
+ @value_bundle = args[:value_bundle] if args.key?(:value_bundle)
1175
+ @value_bundle_array = args[:value_bundle_array] if args.key?(:value_bundle_array)
1176
+ @value_integer = args[:value_integer] if args.key?(:value_integer)
1177
+ @value_string = args[:value_string] if args.key?(:value_string)
1178
+ @value_string_array = args[:value_string_array] if args.key?(:value_string_array)
1179
+ end
1180
+ end
1181
+
1182
+ # A bundle of managed properties.
1183
+ class ManagedPropertyBundle
1184
+ include Google::Apis::Core::Hashable
1185
+
1186
+ # The list of managed properties.
1187
+ # Corresponds to the JSON property `managedProperty`
1188
+ # @return [Array<Google::Apis::AndroidenterpriseV1::ManagedProperty>]
1189
+ attr_accessor :managed_property
1190
+
1191
+ def initialize(**args)
1192
+ update!(**args)
1193
+ end
1194
+
1195
+ # Update properties of this object
1196
+ def update!(**args)
1197
+ @managed_property = args[:managed_property] if args.key?(:managed_property)
1198
+ end
1199
+ end
1200
+
1201
+ # An event generated when new permissions are added to an app.
1202
+ class NewPermissionsEvent
1203
+ include Google::Apis::Core::Hashable
1204
+
1205
+ # The set of permissions that the enterprise admin has already approved for this
1206
+ # application. Use Permissions.Get on the EMM API to retrieve details about
1207
+ # these permissions.
1208
+ # Corresponds to the JSON property `approvedPermissions`
1209
+ # @return [Array<String>]
1210
+ attr_accessor :approved_permissions
1211
+
1212
+ # The id of the product (e.g. "app:com.google.android.gm") for which new
1213
+ # permissions were added. This field will always be present.
1214
+ # Corresponds to the JSON property `productId`
1215
+ # @return [String]
1216
+ attr_accessor :product_id
1217
+
1218
+ # The set of permissions that the app is currently requesting. Use Permissions.
1219
+ # Get on the EMM API to retrieve details about these permissions.
1220
+ # Corresponds to the JSON property `requestedPermissions`
1221
+ # @return [Array<String>]
1222
+ attr_accessor :requested_permissions
1223
+
1224
+ def initialize(**args)
1225
+ update!(**args)
1226
+ end
1227
+
1228
+ # Update properties of this object
1229
+ def update!(**args)
1230
+ @approved_permissions = args[:approved_permissions] if args.key?(:approved_permissions)
1231
+ @product_id = args[:product_id] if args.key?(:product_id)
1232
+ @requested_permissions = args[:requested_permissions] if args.key?(:requested_permissions)
1233
+ end
1234
+ end
1235
+
1236
+ # A notification of one event relating to an enterprise.
1237
+ class Notification
1238
+ include Google::Apis::Core::Hashable
1239
+
1240
+ # An event generated when a new app version is uploaded to Google Play and its
1241
+ # app restrictions schema changed. To fetch the app restrictions schema for an
1242
+ # app, use Products.getAppRestrictionsSchema on the EMM API.
1243
+ # Corresponds to the JSON property `appRestrictionsSchemaChangeEvent`
1244
+ # @return [Google::Apis::AndroidenterpriseV1::AppRestrictionsSchemaChangeEvent]
1245
+ attr_accessor :app_restrictions_schema_change_event
1246
+
1247
+ # An event generated when a new version of an app is uploaded to Google Play.
1248
+ # Notifications are sent for new public versions only: alpha, beta, or canary
1249
+ # versions do not generate this event. To fetch up-to-date version history for
1250
+ # an app, use Products.Get on the EMM API.
1251
+ # Corresponds to the JSON property `appUpdateEvent`
1252
+ # @return [Google::Apis::AndroidenterpriseV1::AppUpdateEvent]
1253
+ attr_accessor :app_update_event
1254
+
1255
+ # The ID of the enterprise for which the notification is sent. This will always
1256
+ # be present.
1257
+ # Corresponds to the JSON property `enterpriseId`
1258
+ # @return [String]
1259
+ attr_accessor :enterprise_id
1260
+
1261
+ # An event generated when an app installation failed on a device
1262
+ # Corresponds to the JSON property `installFailureEvent`
1263
+ # @return [Google::Apis::AndroidenterpriseV1::InstallFailureEvent]
1264
+ attr_accessor :install_failure_event
1265
+
1266
+ # An event generated when new permissions are added to an app.
1267
+ # Corresponds to the JSON property `newPermissionsEvent`
1268
+ # @return [Google::Apis::AndroidenterpriseV1::NewPermissionsEvent]
1269
+ attr_accessor :new_permissions_event
1270
+
1271
+ # An event generated when a product's approval status is changed.
1272
+ # Corresponds to the JSON property `productApprovalEvent`
1273
+ # @return [Google::Apis::AndroidenterpriseV1::ProductApprovalEvent]
1274
+ attr_accessor :product_approval_event
1275
+
1276
+ # An event generated whenever a product's availability changes.
1277
+ # Corresponds to the JSON property `productAvailabilityChangeEvent`
1278
+ # @return [Google::Apis::AndroidenterpriseV1::ProductAvailabilityChangeEvent]
1279
+ attr_accessor :product_availability_change_event
1280
+
1281
+ # The time when the notification was published in milliseconds since 1970-01-
1282
+ # 01T00:00:00Z. This will always be present.
1283
+ # Corresponds to the JSON property `timestampMillis`
1284
+ # @return [String]
1285
+ attr_accessor :timestamp_millis
1286
+
1287
+ def initialize(**args)
1288
+ update!(**args)
1289
+ end
1290
+
1291
+ # Update properties of this object
1292
+ def update!(**args)
1293
+ @app_restrictions_schema_change_event = args[:app_restrictions_schema_change_event] if args.key?(:app_restrictions_schema_change_event)
1294
+ @app_update_event = args[:app_update_event] if args.key?(:app_update_event)
1295
+ @enterprise_id = args[:enterprise_id] if args.key?(:enterprise_id)
1296
+ @install_failure_event = args[:install_failure_event] if args.key?(:install_failure_event)
1297
+ @new_permissions_event = args[:new_permissions_event] if args.key?(:new_permissions_event)
1298
+ @product_approval_event = args[:product_approval_event] if args.key?(:product_approval_event)
1299
+ @product_availability_change_event = args[:product_availability_change_event] if args.key?(:product_availability_change_event)
1300
+ @timestamp_millis = args[:timestamp_millis] if args.key?(:timestamp_millis)
1301
+ end
1302
+ end
1303
+
1304
+ # A resource returned by the PullNotificationSet API, which contains a
1305
+ # collection of notifications for enterprises associated with the service
1306
+ # account authenticated for the request.
1307
+ class NotificationSet
1308
+ include Google::Apis::Core::Hashable
1309
+
1310
+ # Identifies what kind of resource this is. Value: the fixed string "
1311
+ # androidenterprise#notificationSet".
1312
+ # Corresponds to the JSON property `kind`
1313
+ # @return [String]
1314
+ attr_accessor :kind
1315
+
1316
+ # The notifications received, or empty if no notifications are present.
1317
+ # Corresponds to the JSON property `notification`
1318
+ # @return [Array<Google::Apis::AndroidenterpriseV1::Notification>]
1319
+ attr_accessor :notification
1320
+
1321
+ # The notification set ID, required to mark the notification as received with
1322
+ # the Enterprises.AcknowledgeNotification API. This will be omitted if no
1323
+ # notifications are present.
1324
+ # Corresponds to the JSON property `notificationSetId`
1325
+ # @return [String]
1326
+ attr_accessor :notification_set_id
1327
+
1328
+ def initialize(**args)
1329
+ update!(**args)
1330
+ end
1331
+
1332
+ # Update properties of this object
1333
+ def update!(**args)
1334
+ @kind = args[:kind] if args.key?(:kind)
1335
+ @notification = args[:notification] if args.key?(:notification)
1336
+ @notification_set_id = args[:notification_set_id] if args.key?(:notification_set_id)
1337
+ end
1338
+ end
1339
+
886
1340
  #
887
1341
  class PageInfo
888
1342
  include Google::Apis::Core::Hashable
@@ -958,10 +1412,10 @@ module Google
958
1412
  end
959
1413
  end
960
1414
 
961
- # A product represents an app in the Google Play Store that is available to at
962
- # least some users in the enterprise. (Some apps are restricted to a single
963
- # enterprise, and no information about them is made available outside that
964
- # enterprise.)
1415
+ # A Products resource represents an app in the Google Play Store that is
1416
+ # available to at least some users in the enterprise. (Some apps are restricted
1417
+ # to a single enterprise, and no information about them is made available
1418
+ # outside that enterprise.)
965
1419
  # The information provided for each product (localized name, icon, link to the
966
1420
  # full Google Play details page) is intended to allow a basic representation of
967
1421
  # the product within an EMM user interface.
@@ -1012,7 +1466,9 @@ module Google
1012
1466
  # @return [String]
1013
1467
  attr_accessor :product_id
1014
1468
 
1015
- # Whether this product is free, free with in-app purchases, or paid.
1469
+ # Whether this product is free, free with in-app purchases, or paid. If the
1470
+ # pricing is unknown, this means the product is not generally available anymore (
1471
+ # even though it might still be available to people who own it).
1016
1472
  # Corresponds to the JSON property `productPricing`
1017
1473
  # @return [String]
1018
1474
  attr_accessor :product_pricing
@@ -1062,6 +1518,59 @@ module Google
1062
1518
  end
1063
1519
  end
1064
1520
 
1521
+ # An event generated when a product's approval status is changed.
1522
+ class ProductApprovalEvent
1523
+ include Google::Apis::Core::Hashable
1524
+
1525
+ # Whether the product was approved or unapproved. This field will always be
1526
+ # present.
1527
+ # Corresponds to the JSON property `approved`
1528
+ # @return [String]
1529
+ attr_accessor :approved
1530
+
1531
+ # The id of the product (e.g. "app:com.google.android.gm") for which the
1532
+ # approval status has changed. This field will always be present.
1533
+ # Corresponds to the JSON property `productId`
1534
+ # @return [String]
1535
+ attr_accessor :product_id
1536
+
1537
+ def initialize(**args)
1538
+ update!(**args)
1539
+ end
1540
+
1541
+ # Update properties of this object
1542
+ def update!(**args)
1543
+ @approved = args[:approved] if args.key?(:approved)
1544
+ @product_id = args[:product_id] if args.key?(:product_id)
1545
+ end
1546
+ end
1547
+
1548
+ # An event generated whenever a product's availability changes.
1549
+ class ProductAvailabilityChangeEvent
1550
+ include Google::Apis::Core::Hashable
1551
+
1552
+ # The new state of the product. This field will always be present.
1553
+ # Corresponds to the JSON property `availabilityStatus`
1554
+ # @return [String]
1555
+ attr_accessor :availability_status
1556
+
1557
+ # The id of the product (e.g. "app:com.google.android.gm") for which the product
1558
+ # availability changed. This field will always be present.
1559
+ # Corresponds to the JSON property `productId`
1560
+ # @return [String]
1561
+ attr_accessor :product_id
1562
+
1563
+ def initialize(**args)
1564
+ update!(**args)
1565
+ end
1566
+
1567
+ # Update properties of this object
1568
+ def update!(**args)
1569
+ @availability_status = args[:availability_status] if args.key?(:availability_status)
1570
+ @product_id = args[:product_id] if args.key?(:product_id)
1571
+ end
1572
+ end
1573
+
1065
1574
  # A product permissions resource represents the set of permissions required by a
1066
1575
  # specific app and whether or not they have been accepted by an enterprise admin.
1067
1576
  # The API can be used to read the set of permissions, and also to update the set
@@ -1234,6 +1743,134 @@ module Google
1234
1743
  end
1235
1744
  end
1236
1745
 
1746
+ # A service account identity, including the name and credentials that can be
1747
+ # used to authenticate as the service account.
1748
+ class ServiceAccount
1749
+ include Google::Apis::Core::Hashable
1750
+
1751
+ # Credentials that can be used to authenticate as a service account.
1752
+ # Corresponds to the JSON property `key`
1753
+ # @return [Google::Apis::AndroidenterpriseV1::ServiceAccountKey]
1754
+ attr_accessor :key
1755
+
1756
+ # Identifies what kind of resource this is. Value: the fixed string "
1757
+ # androidenterprise#serviceAccount".
1758
+ # Corresponds to the JSON property `kind`
1759
+ # @return [String]
1760
+ attr_accessor :kind
1761
+
1762
+ # The account name of the service account, in the form of an email address.
1763
+ # Assigned by the server.
1764
+ # Corresponds to the JSON property `name`
1765
+ # @return [String]
1766
+ attr_accessor :name
1767
+
1768
+ def initialize(**args)
1769
+ update!(**args)
1770
+ end
1771
+
1772
+ # Update properties of this object
1773
+ def update!(**args)
1774
+ @key = args[:key] if args.key?(:key)
1775
+ @kind = args[:kind] if args.key?(:kind)
1776
+ @name = args[:name] if args.key?(:name)
1777
+ end
1778
+ end
1779
+
1780
+ # Credentials that can be used to authenticate as a service account.
1781
+ class ServiceAccountKey
1782
+ include Google::Apis::Core::Hashable
1783
+
1784
+ # The body of the private key credentials file, in string format. This is only
1785
+ # populated when the ServiceAccountKey is created, and is not stored by Google.
1786
+ # Corresponds to the JSON property `data`
1787
+ # @return [String]
1788
+ attr_accessor :data
1789
+
1790
+ # An opaque, unique identifier for this ServiceAccountKey. Assigned by the
1791
+ # server.
1792
+ # Corresponds to the JSON property `id`
1793
+ # @return [String]
1794
+ attr_accessor :id
1795
+
1796
+ # Identifies what kind of resource this is. Value: the fixed string "
1797
+ # androidenterprise#serviceAccountKey".
1798
+ # Corresponds to the JSON property `kind`
1799
+ # @return [String]
1800
+ attr_accessor :kind
1801
+
1802
+ # The file format of the generated key data.
1803
+ # Corresponds to the JSON property `type`
1804
+ # @return [String]
1805
+ attr_accessor :type
1806
+
1807
+ def initialize(**args)
1808
+ update!(**args)
1809
+ end
1810
+
1811
+ # Update properties of this object
1812
+ def update!(**args)
1813
+ @data = args[:data] if args.key?(:data)
1814
+ @id = args[:id] if args.key?(:id)
1815
+ @kind = args[:kind] if args.key?(:kind)
1816
+ @type = args[:type] if args.key?(:type)
1817
+ end
1818
+ end
1819
+
1820
+ #
1821
+ class ServiceAccountKeysListResponse
1822
+ include Google::Apis::Core::Hashable
1823
+
1824
+ # The service account credentials.
1825
+ # Corresponds to the JSON property `serviceAccountKey`
1826
+ # @return [Array<Google::Apis::AndroidenterpriseV1::ServiceAccountKey>]
1827
+ attr_accessor :service_account_key
1828
+
1829
+ def initialize(**args)
1830
+ update!(**args)
1831
+ end
1832
+
1833
+ # Update properties of this object
1834
+ def update!(**args)
1835
+ @service_account_key = args[:service_account_key] if args.key?(:service_account_key)
1836
+ end
1837
+ end
1838
+
1839
+ # A resource returned by the GenerateSignupUrl API, which contains the Signup
1840
+ # URL and Completion Token.
1841
+ class SignupInfo
1842
+ include Google::Apis::Core::Hashable
1843
+
1844
+ # An opaque token that will be required, along with the Enterprise Token, for
1845
+ # obtaining the enterprise resource from CompleteSignup.
1846
+ # Corresponds to the JSON property `completionToken`
1847
+ # @return [String]
1848
+ attr_accessor :completion_token
1849
+
1850
+ # Identifies what kind of resource this is. Value: the fixed string "
1851
+ # androidenterprise#signupInfo".
1852
+ # Corresponds to the JSON property `kind`
1853
+ # @return [String]
1854
+ attr_accessor :kind
1855
+
1856
+ # A URL under which the Admin can sign up for an enterprise. The page pointed to
1857
+ # cannot be rendered in an iframe.
1858
+ # Corresponds to the JSON property `url`
1859
+ # @return [String]
1860
+ attr_accessor :url
1861
+
1862
+ def initialize(**args)
1863
+ update!(**args)
1864
+ end
1865
+
1866
+ # Update properties of this object
1867
+ def update!(**args)
1868
+ @completion_token = args[:completion_token] if args.key?(:completion_token)
1869
+ @kind = args[:kind] if args.key?(:kind)
1870
+ @url = args[:url] if args.key?(:url)
1871
+ end
1872
+ end
1873
+
1237
1874
  # Definition of a Google Play for Work store cluster, a list of products
1238
1875
  # displayed as part of a store page.
1239
1876
  class StoreCluster
@@ -1294,8 +1931,8 @@ module Google
1294
1931
 
1295
1932
  # The ID of the store page to be used as the homepage. The homepage will be used
1296
1933
  # as the first page shown in the Google Play for Work store.
1297
- # If there is no homepage set, an empty store is shown. The homepage can be
1298
- # unset (by not specifying it) to empty the store.
1934
+ # If a homepage has not been set, the Play store shown on devices will be empty.
1935
+ # Not specifying a homepage on a store layout effectively empties the store.
1299
1936
  # If there exists at least one page, this field must be set to the ID of a valid
1300
1937
  # page.
1301
1938
  # Corresponds to the JSON property `homepageId`
@@ -1441,17 +2078,42 @@ module Google
1441
2078
  end
1442
2079
  end
1443
2080
 
1444
- # A user resource represents an individual user within the enterprise's domain.
1445
- # Note that each user is associated with a Google account based on the user's
1446
- # corporate email address (which must be in one of the enterprise's domains). As
1447
- # part of installing the EMM's DPC app to manage a device the Google account
1448
- # must be provisioned to the device, and so the user resource must be created
1449
- # before that. This can be done using the Google Admin SDK Directory API.
1450
- # The ID for a user is an opaque string. It can be retrieved using the list
1451
- # method queried by the user's primary email address.
2081
+ # A Users resource represents an account associated with an enterprise. The
2082
+ # account may be specific to a device or to an individual user (who can then use
2083
+ # the account across multiple devices). The account may provide access to Google
2084
+ # Play for Work only, or to other Google services, depending on the identity
2085
+ # model:
2086
+ # - Google managed domain identity model requires synchronization to Google
2087
+ # account sources (via primaryEmail).
2088
+ # - Android for Work Accounts identity model provides a dynamic means for
2089
+ # enterprises to create user or device accounts as needed. These accounts
2090
+ # provide access to Google Play for Work only.
1452
2091
  class User
1453
2092
  include Google::Apis::Core::Hashable
1454
2093
 
2094
+ # A unique identifier you create for this user, such as "user342" or "asset#
2095
+ # 44418". Do not use personally identifiable information (PII) for this property.
2096
+ # Must always be set for EMM-managed users. Not set for Google-managed users.
2097
+ # Corresponds to the JSON property `accountIdentifier`
2098
+ # @return [String]
2099
+ attr_accessor :account_identifier
2100
+
2101
+ # The type of account that this user represents. A userAccount can be installed
2102
+ # on multiple devices, but a deviceAccount is specific to a single device. An
2103
+ # EMM-managed user (emmManaged) can be either type (userAccount, deviceAccount),
2104
+ # but a Google-managed user (googleManaged) is always a userAccount.
2105
+ # Corresponds to the JSON property `accountType`
2106
+ # @return [String]
2107
+ attr_accessor :account_type
2108
+
2109
+ # The name that will appear in user interfaces. Setting this property is
2110
+ # optional when creating EMM-managed users. If you do set this property, use
2111
+ # something generic about the organization (such as "Example, Inc.") or your
2112
+ # name (as EMM). Not used for Google-managed user accounts.
2113
+ # Corresponds to the JSON property `displayName`
2114
+ # @return [String]
2115
+ attr_accessor :display_name
2116
+
1455
2117
  # The unique ID for the user.
1456
2118
  # Corresponds to the JSON property `id`
1457
2119
  # @return [String]
@@ -1463,7 +2125,15 @@ module Google
1463
2125
  # @return [String]
1464
2126
  attr_accessor :kind
1465
2127
 
1466
- # The user's primary email, e.g. "jsmith@example.com".
2128
+ # The entity that manages the user. With googleManaged users, the source of
2129
+ # truth is Google so EMMs have to make sure a Google Account exists for the user.
2130
+ # With emmManaged users, the EMM is in charge.
2131
+ # Corresponds to the JSON property `managementType`
2132
+ # @return [String]
2133
+ attr_accessor :management_type
2134
+
2135
+ # The user's primary email address, for example, "jsmith@example.com". Will
2136
+ # always be set for Google managed users and not set for EMM managed users.
1467
2137
  # Corresponds to the JSON property `primaryEmail`
1468
2138
  # @return [String]
1469
2139
  attr_accessor :primary_email
@@ -1474,8 +2144,12 @@ module Google
1474
2144
 
1475
2145
  # Update properties of this object
1476
2146
  def update!(**args)
2147
+ @account_identifier = args[:account_identifier] if args.key?(:account_identifier)
2148
+ @account_type = args[:account_type] if args.key?(:account_type)
2149
+ @display_name = args[:display_name] if args.key?(:display_name)
1477
2150
  @id = args[:id] if args.key?(:id)
1478
2151
  @kind = args[:kind] if args.key?(:kind)
2152
+ @management_type = args[:management_type] if args.key?(:management_type)
1479
2153
  @primary_email = args[:primary_email] if args.key?(:primary_email)
1480
2154
  end
1481
2155
  end