google-api-client 0.9.8 → 0.9.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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
@@ -22,12 +22,24 @@ module Google
22
22
  module Apis
23
23
  module AndroidenterpriseV1
24
24
 
25
+ class Administrator
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
25
31
  class AppRestrictionsSchema
26
32
  class Representation < Google::Apis::Core::JsonRepresentation; end
27
33
 
28
34
  include Google::Apis::Core::JsonObjectSupport
29
35
  end
30
36
 
37
+ class AppRestrictionsSchemaChangeEvent
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
31
43
  class AppRestrictionsSchemaRestriction
32
44
  class Representation < Google::Apis::Core::JsonRepresentation; end
33
45
 
@@ -40,6 +52,12 @@ module Google
40
52
  include Google::Apis::Core::JsonObjectSupport
41
53
  end
42
54
 
55
+ class AppUpdateEvent
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
43
61
  class AppVersion
44
62
  class Representation < Google::Apis::Core::JsonRepresentation; end
45
63
 
@@ -52,6 +70,12 @@ module Google
52
70
  include Google::Apis::Core::JsonObjectSupport
53
71
  end
54
72
 
73
+ class AuthenticationToken
74
+ class Representation < Google::Apis::Core::JsonRepresentation; end
75
+
76
+ include Google::Apis::Core::JsonObjectSupport
77
+ end
78
+
55
79
  class Collection
56
80
  class Representation < Google::Apis::Core::JsonRepresentation; end
57
81
 
@@ -148,6 +172,12 @@ module Google
148
172
  include Google::Apis::Core::JsonObjectSupport
149
173
  end
150
174
 
175
+ class InstallFailureEvent
176
+ class Representation < Google::Apis::Core::JsonRepresentation; end
177
+
178
+ include Google::Apis::Core::JsonObjectSupport
179
+ end
180
+
151
181
  class ListInstallsResponse
152
182
  class Representation < Google::Apis::Core::JsonRepresentation; end
153
183
 
@@ -160,6 +190,54 @@ module Google
160
190
  include Google::Apis::Core::JsonObjectSupport
161
191
  end
162
192
 
193
+ class ManagedConfiguration
194
+ class Representation < Google::Apis::Core::JsonRepresentation; end
195
+
196
+ include Google::Apis::Core::JsonObjectSupport
197
+ end
198
+
199
+ class ManagedConfigurationsForDeviceListResponse
200
+ class Representation < Google::Apis::Core::JsonRepresentation; end
201
+
202
+ include Google::Apis::Core::JsonObjectSupport
203
+ end
204
+
205
+ class ManagedConfigurationsForUserListResponse
206
+ class Representation < Google::Apis::Core::JsonRepresentation; end
207
+
208
+ include Google::Apis::Core::JsonObjectSupport
209
+ end
210
+
211
+ class ManagedProperty
212
+ class Representation < Google::Apis::Core::JsonRepresentation; end
213
+
214
+ include Google::Apis::Core::JsonObjectSupport
215
+ end
216
+
217
+ class ManagedPropertyBundle
218
+ class Representation < Google::Apis::Core::JsonRepresentation; end
219
+
220
+ include Google::Apis::Core::JsonObjectSupport
221
+ end
222
+
223
+ class NewPermissionsEvent
224
+ class Representation < Google::Apis::Core::JsonRepresentation; end
225
+
226
+ include Google::Apis::Core::JsonObjectSupport
227
+ end
228
+
229
+ class Notification
230
+ class Representation < Google::Apis::Core::JsonRepresentation; end
231
+
232
+ include Google::Apis::Core::JsonObjectSupport
233
+ end
234
+
235
+ class NotificationSet
236
+ class Representation < Google::Apis::Core::JsonRepresentation; end
237
+
238
+ include Google::Apis::Core::JsonObjectSupport
239
+ end
240
+
163
241
  class PageInfo
164
242
  class Representation < Google::Apis::Core::JsonRepresentation; end
165
243
 
@@ -178,6 +256,18 @@ module Google
178
256
  include Google::Apis::Core::JsonObjectSupport
179
257
  end
180
258
 
259
+ class ProductApprovalEvent
260
+ class Representation < Google::Apis::Core::JsonRepresentation; end
261
+
262
+ include Google::Apis::Core::JsonObjectSupport
263
+ end
264
+
265
+ class ProductAvailabilityChangeEvent
266
+ class Representation < Google::Apis::Core::JsonRepresentation; end
267
+
268
+ include Google::Apis::Core::JsonObjectSupport
269
+ end
270
+
181
271
  class ProductPermission
182
272
  class Representation < Google::Apis::Core::JsonRepresentation; end
183
273
 
@@ -214,6 +304,30 @@ module Google
214
304
  include Google::Apis::Core::JsonObjectSupport
215
305
  end
216
306
 
307
+ class ServiceAccount
308
+ class Representation < Google::Apis::Core::JsonRepresentation; end
309
+
310
+ include Google::Apis::Core::JsonObjectSupport
311
+ end
312
+
313
+ class ServiceAccountKey
314
+ class Representation < Google::Apis::Core::JsonRepresentation; end
315
+
316
+ include Google::Apis::Core::JsonObjectSupport
317
+ end
318
+
319
+ class ServiceAccountKeysListResponse
320
+ class Representation < Google::Apis::Core::JsonRepresentation; end
321
+
322
+ include Google::Apis::Core::JsonObjectSupport
323
+ end
324
+
325
+ class SignupInfo
326
+ class Representation < Google::Apis::Core::JsonRepresentation; end
327
+
328
+ include Google::Apis::Core::JsonObjectSupport
329
+ end
330
+
217
331
  class StoreCluster
218
332
  class Representation < Google::Apis::Core::JsonRepresentation; end
219
333
 
@@ -268,6 +382,13 @@ module Google
268
382
  include Google::Apis::Core::JsonObjectSupport
269
383
  end
270
384
 
385
+ class Administrator
386
+ # @private
387
+ class Representation < Google::Apis::Core::JsonRepresentation
388
+ property :email, as: 'email'
389
+ end
390
+ end
391
+
271
392
  class AppRestrictionsSchema
272
393
  # @private
273
394
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -277,6 +398,13 @@ module Google
277
398
  end
278
399
  end
279
400
 
401
+ class AppRestrictionsSchemaChangeEvent
402
+ # @private
403
+ class Representation < Google::Apis::Core::JsonRepresentation
404
+ property :product_id, as: 'productId'
405
+ end
406
+ end
407
+
280
408
  class AppRestrictionsSchemaRestriction
281
409
  # @private
282
410
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -286,6 +414,8 @@ module Google
286
414
  collection :entry, as: 'entry'
287
415
  collection :entry_value, as: 'entryValue'
288
416
  property :key, as: 'key'
417
+ collection :nested_restriction, as: 'nestedRestriction', class: Google::Apis::AndroidenterpriseV1::AppRestrictionsSchemaRestriction, decorator: Google::Apis::AndroidenterpriseV1::AppRestrictionsSchemaRestriction::Representation
418
+
289
419
  property :restriction_type, as: 'restrictionType'
290
420
  property :title, as: 'title'
291
421
  end
@@ -302,6 +432,13 @@ module Google
302
432
  end
303
433
  end
304
434
 
435
+ class AppUpdateEvent
436
+ # @private
437
+ class Representation < Google::Apis::Core::JsonRepresentation
438
+ property :product_id, as: 'productId'
439
+ end
440
+ end
441
+
305
442
  class AppVersion
306
443
  # @private
307
444
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -318,6 +455,14 @@ module Google
318
455
  end
319
456
  end
320
457
 
458
+ class AuthenticationToken
459
+ # @private
460
+ class Representation < Google::Apis::Core::JsonRepresentation
461
+ property :kind, as: 'kind'
462
+ property :token, as: 'token'
463
+ end
464
+ end
465
+
321
466
  class Collection
322
467
  # @private
323
468
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -376,6 +521,8 @@ module Google
376
521
  class Enterprise
377
522
  # @private
378
523
  class Representation < Google::Apis::Core::JsonRepresentation
524
+ collection :administrator, as: 'administrator', class: Google::Apis::AndroidenterpriseV1::Administrator, decorator: Google::Apis::AndroidenterpriseV1::Administrator::Representation
525
+
379
526
  property :id, as: 'id'
380
527
  property :kind, as: 'kind'
381
528
  property :name, as: 'name'
@@ -466,6 +613,17 @@ module Google
466
613
  end
467
614
  end
468
615
 
616
+ class InstallFailureEvent
617
+ # @private
618
+ class Representation < Google::Apis::Core::JsonRepresentation
619
+ property :device_id, as: 'deviceId'
620
+ property :failure_details, as: 'failureDetails'
621
+ property :failure_reason, as: 'failureReason'
622
+ property :product_id, as: 'productId'
623
+ property :user_id, as: 'userId'
624
+ end
625
+ end
626
+
469
627
  class ListInstallsResponse
470
628
  # @private
471
629
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -483,6 +641,96 @@ module Google
483
641
  end
484
642
  end
485
643
 
644
+ class ManagedConfiguration
645
+ # @private
646
+ class Representation < Google::Apis::Core::JsonRepresentation
647
+ property :kind, as: 'kind'
648
+ collection :managed_property, as: 'managedProperty', class: Google::Apis::AndroidenterpriseV1::ManagedProperty, decorator: Google::Apis::AndroidenterpriseV1::ManagedProperty::Representation
649
+
650
+ property :product_id, as: 'productId'
651
+ end
652
+ end
653
+
654
+ class ManagedConfigurationsForDeviceListResponse
655
+ # @private
656
+ class Representation < Google::Apis::Core::JsonRepresentation
657
+ property :kind, as: 'kind'
658
+ collection :managed_configuration_for_device, as: 'managedConfigurationForDevice', class: Google::Apis::AndroidenterpriseV1::ManagedConfiguration, decorator: Google::Apis::AndroidenterpriseV1::ManagedConfiguration::Representation
659
+
660
+ end
661
+ end
662
+
663
+ class ManagedConfigurationsForUserListResponse
664
+ # @private
665
+ class Representation < Google::Apis::Core::JsonRepresentation
666
+ property :kind, as: 'kind'
667
+ collection :managed_configuration_for_user, as: 'managedConfigurationForUser', class: Google::Apis::AndroidenterpriseV1::ManagedConfiguration, decorator: Google::Apis::AndroidenterpriseV1::ManagedConfiguration::Representation
668
+
669
+ end
670
+ end
671
+
672
+ class ManagedProperty
673
+ # @private
674
+ class Representation < Google::Apis::Core::JsonRepresentation
675
+ property :key, as: 'key'
676
+ property :value_bool, as: 'valueBool'
677
+ property :value_bundle, as: 'valueBundle', class: Google::Apis::AndroidenterpriseV1::ManagedPropertyBundle, decorator: Google::Apis::AndroidenterpriseV1::ManagedPropertyBundle::Representation
678
+
679
+ collection :value_bundle_array, as: 'valueBundleArray', class: Google::Apis::AndroidenterpriseV1::ManagedPropertyBundle, decorator: Google::Apis::AndroidenterpriseV1::ManagedPropertyBundle::Representation
680
+
681
+ property :value_integer, as: 'valueInteger'
682
+ property :value_string, as: 'valueString'
683
+ collection :value_string_array, as: 'valueStringArray'
684
+ end
685
+ end
686
+
687
+ class ManagedPropertyBundle
688
+ # @private
689
+ class Representation < Google::Apis::Core::JsonRepresentation
690
+ collection :managed_property, as: 'managedProperty', class: Google::Apis::AndroidenterpriseV1::ManagedProperty, decorator: Google::Apis::AndroidenterpriseV1::ManagedProperty::Representation
691
+
692
+ end
693
+ end
694
+
695
+ class NewPermissionsEvent
696
+ # @private
697
+ class Representation < Google::Apis::Core::JsonRepresentation
698
+ collection :approved_permissions, as: 'approvedPermissions'
699
+ property :product_id, as: 'productId'
700
+ collection :requested_permissions, as: 'requestedPermissions'
701
+ end
702
+ end
703
+
704
+ class Notification
705
+ # @private
706
+ class Representation < Google::Apis::Core::JsonRepresentation
707
+ property :app_restrictions_schema_change_event, as: 'appRestrictionsSchemaChangeEvent', class: Google::Apis::AndroidenterpriseV1::AppRestrictionsSchemaChangeEvent, decorator: Google::Apis::AndroidenterpriseV1::AppRestrictionsSchemaChangeEvent::Representation
708
+
709
+ property :app_update_event, as: 'appUpdateEvent', class: Google::Apis::AndroidenterpriseV1::AppUpdateEvent, decorator: Google::Apis::AndroidenterpriseV1::AppUpdateEvent::Representation
710
+
711
+ property :enterprise_id, as: 'enterpriseId'
712
+ property :install_failure_event, as: 'installFailureEvent', class: Google::Apis::AndroidenterpriseV1::InstallFailureEvent, decorator: Google::Apis::AndroidenterpriseV1::InstallFailureEvent::Representation
713
+
714
+ property :new_permissions_event, as: 'newPermissionsEvent', class: Google::Apis::AndroidenterpriseV1::NewPermissionsEvent, decorator: Google::Apis::AndroidenterpriseV1::NewPermissionsEvent::Representation
715
+
716
+ property :product_approval_event, as: 'productApprovalEvent', class: Google::Apis::AndroidenterpriseV1::ProductApprovalEvent, decorator: Google::Apis::AndroidenterpriseV1::ProductApprovalEvent::Representation
717
+
718
+ property :product_availability_change_event, as: 'productAvailabilityChangeEvent', class: Google::Apis::AndroidenterpriseV1::ProductAvailabilityChangeEvent, decorator: Google::Apis::AndroidenterpriseV1::ProductAvailabilityChangeEvent::Representation
719
+
720
+ property :timestamp_millis, as: 'timestampMillis'
721
+ end
722
+ end
723
+
724
+ class NotificationSet
725
+ # @private
726
+ class Representation < Google::Apis::Core::JsonRepresentation
727
+ property :kind, as: 'kind'
728
+ collection :notification, as: 'notification', class: Google::Apis::AndroidenterpriseV1::Notification, decorator: Google::Apis::AndroidenterpriseV1::Notification::Representation
729
+
730
+ property :notification_set_id, as: 'notificationSetId'
731
+ end
732
+ end
733
+
486
734
  class PageInfo
487
735
  # @private
488
736
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -521,6 +769,22 @@ module Google
521
769
  end
522
770
  end
523
771
 
772
+ class ProductApprovalEvent
773
+ # @private
774
+ class Representation < Google::Apis::Core::JsonRepresentation
775
+ property :approved, as: 'approved'
776
+ property :product_id, as: 'productId'
777
+ end
778
+ end
779
+
780
+ class ProductAvailabilityChangeEvent
781
+ # @private
782
+ class Representation < Google::Apis::Core::JsonRepresentation
783
+ property :availability_status, as: 'availabilityStatus'
784
+ property :product_id, as: 'productId'
785
+ end
786
+ end
787
+
524
788
  class ProductPermission
525
789
  # @private
526
790
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -575,6 +839,43 @@ module Google
575
839
  end
576
840
  end
577
841
 
842
+ class ServiceAccount
843
+ # @private
844
+ class Representation < Google::Apis::Core::JsonRepresentation
845
+ property :key, as: 'key', class: Google::Apis::AndroidenterpriseV1::ServiceAccountKey, decorator: Google::Apis::AndroidenterpriseV1::ServiceAccountKey::Representation
846
+
847
+ property :kind, as: 'kind'
848
+ property :name, as: 'name'
849
+ end
850
+ end
851
+
852
+ class ServiceAccountKey
853
+ # @private
854
+ class Representation < Google::Apis::Core::JsonRepresentation
855
+ property :data, as: 'data'
856
+ property :id, as: 'id'
857
+ property :kind, as: 'kind'
858
+ property :type, as: 'type'
859
+ end
860
+ end
861
+
862
+ class ServiceAccountKeysListResponse
863
+ # @private
864
+ class Representation < Google::Apis::Core::JsonRepresentation
865
+ collection :service_account_key, as: 'serviceAccountKey', class: Google::Apis::AndroidenterpriseV1::ServiceAccountKey, decorator: Google::Apis::AndroidenterpriseV1::ServiceAccountKey::Representation
866
+
867
+ end
868
+ end
869
+
870
+ class SignupInfo
871
+ # @private
872
+ class Representation < Google::Apis::Core::JsonRepresentation
873
+ property :completion_token, as: 'completionToken'
874
+ property :kind, as: 'kind'
875
+ property :url, as: 'url'
876
+ end
877
+ end
878
+
578
879
  class StoreCluster
579
880
  # @private
580
881
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -635,8 +936,12 @@ module Google
635
936
  class User
636
937
  # @private
637
938
  class Representation < Google::Apis::Core::JsonRepresentation
939
+ property :account_identifier, as: 'accountIdentifier'
940
+ property :account_type, as: 'accountType'
941
+ property :display_name, as: 'displayName'
638
942
  property :id, as: 'id'
639
943
  property :kind, as: 'kind'
944
+ property :management_type, as: 'managementType'
640
945
  property :primary_email, as: 'primaryEmail'
641
946
  end
642
947
  end
@@ -538,10 +538,11 @@ module Google
538
538
  execute_or_queue_command(command, &block)
539
539
  end
540
540
 
541
- # Retrieves whether a device is enabled or disabled for access by the user to
542
- # Google services. The device state takes effect only if enforcing EMM policies
543
- # on Android devices is enabled in the Google Admin Console. Otherwise, the
544
- # device state is ignored and all devices are allowed access to Google services.
541
+ # Retrieves whether a device's access to Google services is enabled or disabled.
542
+ # The device state takes effect only if enforcing EMM policies on Android
543
+ # devices is enabled in the Google Admin Console. Otherwise, the device state is
544
+ # ignored and all devices are allowed access to Google services. This is only
545
+ # supported for Google-managed users.
545
546
  # @param [String] enterprise_id
546
547
  # The ID of the enterprise.
547
548
  # @param [String] user_id
@@ -620,10 +621,11 @@ module Google
620
621
  execute_or_queue_command(command, &block)
621
622
  end
622
623
 
623
- # Sets whether a device is enabled or disabled for access by the user to Google
624
- # services. The device state takes effect only if enforcing EMM policies on
625
- # Android devices is enabled in the Google Admin Console. Otherwise, the device
626
- # state is ignored and all devices are allowed access to Google services.
624
+ # Sets whether a device's access to Google services is enabled or disabled. The
625
+ # device state takes effect only if enforcing EMM policies on Android devices is
626
+ # enabled in the Google Admin Console. Otherwise, the device state is ignored
627
+ # and all devices are allowed access to Google services. This is only supported
628
+ # for Google-managed users.
627
629
  # @param [String] enterprise_id
628
630
  # The ID of the enterprise.
629
631
  # @param [String] user_id
@@ -667,6 +669,82 @@ module Google
667
669
  execute_or_queue_command(command, &block)
668
670
  end
669
671
 
672
+ # Acknowledges notifications that were received from Enterprises.
673
+ # PullNotificationSet to prevent subsequent calls from returning the same
674
+ # notifications.
675
+ # @param [String] notification_set_id
676
+ # The notification set ID as returned by Enterprises.PullNotificationSet. This
677
+ # must be provided.
678
+ # @param [String] fields
679
+ # Selector specifying which fields to include in a partial response.
680
+ # @param [String] quota_user
681
+ # Available to use for quota purposes for server-side applications. Can be any
682
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
683
+ # Overrides userIp if both are provided.
684
+ # @param [String] user_ip
685
+ # IP address of the site where the request originates. Use this if you want to
686
+ # enforce per-user limits.
687
+ # @param [Google::Apis::RequestOptions] options
688
+ # Request-specific options
689
+ #
690
+ # @yield [result, err] Result & error if block supplied
691
+ # @yieldparam result [NilClass] No result returned for this method
692
+ # @yieldparam err [StandardError] error object if request failed
693
+ #
694
+ # @return [void]
695
+ #
696
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
697
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
698
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
699
+ def acknowledge_enterprise_notification_set(notification_set_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
700
+ command = make_simple_command(:post, 'enterprises/acknowledgeNotificationSet', options)
701
+ command.query['notificationSetId'] = notification_set_id unless notification_set_id.nil?
702
+ command.query['fields'] = fields unless fields.nil?
703
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
704
+ command.query['userIp'] = user_ip unless user_ip.nil?
705
+ execute_or_queue_command(command, &block)
706
+ end
707
+
708
+ # Completes the signup flow, by specifying the Completion token and Enterprise
709
+ # token. This request must not be called multiple times for a given Enterprise
710
+ # Token.
711
+ # @param [String] completion_token
712
+ # The Completion token initially returned by GenerateSignupUrl.
713
+ # @param [String] enterprise_token
714
+ # The Enterprise token appended to the Callback URL.
715
+ # @param [String] fields
716
+ # Selector specifying which fields to include in a partial response.
717
+ # @param [String] quota_user
718
+ # Available to use for quota purposes for server-side applications. Can be any
719
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
720
+ # Overrides userIp if both are provided.
721
+ # @param [String] user_ip
722
+ # IP address of the site where the request originates. Use this if you want to
723
+ # enforce per-user limits.
724
+ # @param [Google::Apis::RequestOptions] options
725
+ # Request-specific options
726
+ #
727
+ # @yield [result, err] Result & error if block supplied
728
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::Enterprise] parsed result object
729
+ # @yieldparam err [StandardError] error object if request failed
730
+ #
731
+ # @return [Google::Apis::AndroidenterpriseV1::Enterprise]
732
+ #
733
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
734
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
735
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
736
+ def complete_enterprise_signup(completion_token: nil, enterprise_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
737
+ command = make_simple_command(:post, 'enterprises/completeSignup', options)
738
+ command.response_representation = Google::Apis::AndroidenterpriseV1::Enterprise::Representation
739
+ command.response_class = Google::Apis::AndroidenterpriseV1::Enterprise
740
+ command.query['completionToken'] = completion_token unless completion_token.nil?
741
+ command.query['enterpriseToken'] = enterprise_token unless enterprise_token.nil?
742
+ command.query['fields'] = fields unless fields.nil?
743
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
744
+ command.query['userIp'] = user_ip unless user_ip.nil?
745
+ execute_or_queue_command(command, &block)
746
+ end
747
+
670
748
  # Deletes the binding between the EMM and enterprise. This is now deprecated;
671
749
  # use this to unenroll customers that were previously enrolled with the 'insert'
672
750
  # call, then enroll them again with the 'enroll' call.
@@ -740,6 +818,47 @@ module Google
740
818
  execute_or_queue_command(command, &block)
741
819
  end
742
820
 
821
+ # Generates a sign-up URL.
822
+ # @param [String] callback_url
823
+ # The callback URL to which the Admin will be redirected after successfully
824
+ # creating an enterprise. Before redirecting there the system will add a single
825
+ # query parameter to this URL named "enterpriseToken" which will contain an
826
+ # opaque token to be used for the CompleteSignup request.
827
+ # Beware that this means that the URL will be parsed, the parameter added and
828
+ # then a new URL formatted, i.e. there may be some minor formatting changes and,
829
+ # more importantly, the URL must be well-formed so that it can be parsed.
830
+ # @param [String] fields
831
+ # Selector specifying which fields to include in a partial response.
832
+ # @param [String] quota_user
833
+ # Available to use for quota purposes for server-side applications. Can be any
834
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
835
+ # Overrides userIp if both are provided.
836
+ # @param [String] user_ip
837
+ # IP address of the site where the request originates. Use this if you want to
838
+ # enforce per-user limits.
839
+ # @param [Google::Apis::RequestOptions] options
840
+ # Request-specific options
841
+ #
842
+ # @yield [result, err] Result & error if block supplied
843
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::SignupInfo] parsed result object
844
+ # @yieldparam err [StandardError] error object if request failed
845
+ #
846
+ # @return [Google::Apis::AndroidenterpriseV1::SignupInfo]
847
+ #
848
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
849
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
850
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
851
+ def generate_enterprise_signup_url(callback_url: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
852
+ command = make_simple_command(:post, 'enterprises/signupUrl', options)
853
+ command.response_representation = Google::Apis::AndroidenterpriseV1::SignupInfo::Representation
854
+ command.response_class = Google::Apis::AndroidenterpriseV1::SignupInfo
855
+ command.query['callbackUrl'] = callback_url unless callback_url.nil?
856
+ command.query['fields'] = fields unless fields.nil?
857
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
858
+ command.query['userIp'] = user_ip unless user_ip.nil?
859
+ execute_or_queue_command(command, &block)
860
+ end
861
+
743
862
  # Retrieves the name and domain of an enterprise.
744
863
  # @param [String] enterprise_id
745
864
  # The ID of the enterprise.
@@ -775,7 +894,56 @@ module Google
775
894
  execute_or_queue_command(command, &block)
776
895
  end
777
896
 
778
- # Returns the store layout resource.
897
+ # Returns a service account and credentials. The service account can be bound to
898
+ # the enterprise by calling setAccount. The service account is unique to this
899
+ # enterprise and EMM, and will be deleted if the enterprise is unbound. The
900
+ # credentials contain private key data and are not stored server-side.
901
+ # This method can only be called after calling Enterprises.Enroll or Enterprises.
902
+ # CompleteSignup, and before Enterprises.SetAccount; at other times it will
903
+ # return an error.
904
+ # Subsequent calls after the first will generate a new, unique set of
905
+ # credentials, and invalidate the previously generated credentials.
906
+ # Once the service account is bound to the enterprise, it can be managed using
907
+ # the serviceAccountKeys resource.
908
+ # @param [String] enterprise_id
909
+ # The ID of the enterprise.
910
+ # @param [String] key_type
911
+ # The type of credential to return with the service account. Required.
912
+ # @param [String] fields
913
+ # Selector specifying which fields to include in a partial response.
914
+ # @param [String] quota_user
915
+ # Available to use for quota purposes for server-side applications. Can be any
916
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
917
+ # Overrides userIp if both are provided.
918
+ # @param [String] user_ip
919
+ # IP address of the site where the request originates. Use this if you want to
920
+ # enforce per-user limits.
921
+ # @param [Google::Apis::RequestOptions] options
922
+ # Request-specific options
923
+ #
924
+ # @yield [result, err] Result & error if block supplied
925
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::ServiceAccount] parsed result object
926
+ # @yieldparam err [StandardError] error object if request failed
927
+ #
928
+ # @return [Google::Apis::AndroidenterpriseV1::ServiceAccount]
929
+ #
930
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
931
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
932
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
933
+ def get_enterprise_service_account(enterprise_id, key_type: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
934
+ command = make_simple_command(:get, 'enterprises/{enterpriseId}/serviceAccount', options)
935
+ command.response_representation = Google::Apis::AndroidenterpriseV1::ServiceAccount::Representation
936
+ command.response_class = Google::Apis::AndroidenterpriseV1::ServiceAccount
937
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
938
+ command.query['keyType'] = key_type unless key_type.nil?
939
+ command.query['fields'] = fields unless fields.nil?
940
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
941
+ command.query['userIp'] = user_ip unless user_ip.nil?
942
+ execute_or_queue_command(command, &block)
943
+ end
944
+
945
+ # Returns the store layout for the enterprise. If the store layout has not been
946
+ # set, or if the store layout has no homepageId set, returns a NOT_FOUND error.
779
947
  # @param [String] enterprise_id
780
948
  # The ID of the enterprise.
781
949
  # @param [String] fields
@@ -849,7 +1017,11 @@ module Google
849
1017
  execute_or_queue_command(command, &block)
850
1018
  end
851
1019
 
852
- # Looks up an enterprise by domain name.
1020
+ # Looks up an enterprise by domain name. This is only supported for enterprises
1021
+ # created via the Google-initiated creation flow. Lookup of the id is not needed
1022
+ # for enterprises created via the EMM-initiated flow since the EMM learns the
1023
+ # enterprise ID in the callback specified in the Enterprises.generateSignupUrl
1024
+ # call.
853
1025
  # @param [String] domain
854
1026
  # The exact primary domain name of the enterprise to look up.
855
1027
  # @param [String] fields
@@ -884,6 +1056,56 @@ module Google
884
1056
  execute_or_queue_command(command, &block)
885
1057
  end
886
1058
 
1059
+ # Pulls and returns a notification set for the enterprises associated with the
1060
+ # service account authenticated for the request. The notification set may be
1061
+ # empty if no notification are pending.
1062
+ # A notification set returned needs to be acknowledged within 20 seconds by
1063
+ # calling Enterprises.AcknowledgeNotificationSet, unless the notification set is
1064
+ # empty.
1065
+ # Notifications that are not acknowledged within the 20 seconds will eventually
1066
+ # be included again in the response to another PullNotificationSet request, and
1067
+ # those that are never acknowledged will ultimately be deleted according to the
1068
+ # Google Cloud Platform Pub/Sub system policy.
1069
+ # Multiple requests might be performed concurrently to retrieve notifications,
1070
+ # in which case the pending notifications (if any) will be split among each
1071
+ # caller, if any are pending.
1072
+ # @param [String] request_mode
1073
+ # The request mode for pulling notifications. If omitted, defaults to
1074
+ # WAIT_FOR_NOTIFCATIONS.
1075
+ # If this is set to WAIT_FOR_NOTIFCATIONS, the request will eventually timeout,
1076
+ # in which case it should be retried.
1077
+ # @param [String] fields
1078
+ # Selector specifying which fields to include in a partial response.
1079
+ # @param [String] quota_user
1080
+ # Available to use for quota purposes for server-side applications. Can be any
1081
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1082
+ # Overrides userIp if both are provided.
1083
+ # @param [String] user_ip
1084
+ # IP address of the site where the request originates. Use this if you want to
1085
+ # enforce per-user limits.
1086
+ # @param [Google::Apis::RequestOptions] options
1087
+ # Request-specific options
1088
+ #
1089
+ # @yield [result, err] Result & error if block supplied
1090
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::NotificationSet] parsed result object
1091
+ # @yieldparam err [StandardError] error object if request failed
1092
+ #
1093
+ # @return [Google::Apis::AndroidenterpriseV1::NotificationSet]
1094
+ #
1095
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1096
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1097
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1098
+ def pull_enterprise_notification_set(request_mode: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1099
+ command = make_simple_command(:post, 'enterprises/pullNotificationSet', options)
1100
+ command.response_representation = Google::Apis::AndroidenterpriseV1::NotificationSet::Representation
1101
+ command.response_class = Google::Apis::AndroidenterpriseV1::NotificationSet
1102
+ command.query['requestMode'] = request_mode unless request_mode.nil?
1103
+ command.query['fields'] = fields unless fields.nil?
1104
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1105
+ command.query['userIp'] = user_ip unless user_ip.nil?
1106
+ execute_or_queue_command(command, &block)
1107
+ end
1108
+
887
1109
  # Sends a test push notification to validate the EMM integration with the Google
888
1110
  # Cloud Pub/Sub service for this enterprise.
889
1111
  # @param [String] enterprise_id
@@ -958,7 +1180,7 @@ module Google
958
1180
  execute_or_queue_command(command, &block)
959
1181
  end
960
1182
 
961
- # Sets the store layout resource.
1183
+ # Sets the store layout for the enterprise.
962
1184
  # @param [String] enterprise_id
963
1185
  # The ID of the enterprise.
964
1186
  # @param [Google::Apis::AndroidenterpriseV1::StoreLayout] store_layout_object
@@ -1591,12 +1813,16 @@ module Google
1591
1813
  execute_or_queue_command(command, &block)
1592
1814
  end
1593
1815
 
1594
- # Retrieves details of an Android app permission for display to an enterprise
1595
- # admin.
1596
- # @param [String] permission_id
1597
- # The ID of the permission.
1598
- # @param [String] language
1599
- # The BCP47 tag for the user's preferred language (e.g. "en-US", "de")
1816
+ # Removes a per-device managed configuration for an app for the specified device.
1817
+ # @param [String] enterprise_id
1818
+ # The ID of the enterprise.
1819
+ # @param [String] user_id
1820
+ # The ID of the user.
1821
+ # @param [String] device_id
1822
+ # The Android ID of the device.
1823
+ # @param [String] managed_configuration_for_device_id
1824
+ # The ID of the managed configuration (a product ID), e.g. "app:com.google.
1825
+ # android.gm".
1600
1826
  # @param [String] fields
1601
1827
  # Selector specifying which fields to include in a partial response.
1602
1828
  # @param [String] quota_user
@@ -1610,36 +1836,36 @@ module Google
1610
1836
  # Request-specific options
1611
1837
  #
1612
1838
  # @yield [result, err] Result & error if block supplied
1613
- # @yieldparam result [Google::Apis::AndroidenterpriseV1::Permission] parsed result object
1839
+ # @yieldparam result [NilClass] No result returned for this method
1614
1840
  # @yieldparam err [StandardError] error object if request failed
1615
1841
  #
1616
- # @return [Google::Apis::AndroidenterpriseV1::Permission]
1842
+ # @return [void]
1617
1843
  #
1618
1844
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1619
1845
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1620
1846
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1621
- def get_permission(permission_id, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1622
- command = make_simple_command(:get, 'permissions/{permissionId}', options)
1623
- command.response_representation = Google::Apis::AndroidenterpriseV1::Permission::Representation
1624
- command.response_class = Google::Apis::AndroidenterpriseV1::Permission
1625
- command.params['permissionId'] = permission_id unless permission_id.nil?
1626
- command.query['language'] = language unless language.nil?
1847
+ def delete_managedconfigurationsfordevice(enterprise_id, user_id, device_id, managed_configuration_for_device_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1848
+ command = make_simple_command(:delete, 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/managedConfigurationsForDevice/{managedConfigurationForDeviceId}', options)
1849
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
1850
+ command.params['userId'] = user_id unless user_id.nil?
1851
+ command.params['deviceId'] = device_id unless device_id.nil?
1852
+ command.params['managedConfigurationForDeviceId'] = managed_configuration_for_device_id unless managed_configuration_for_device_id.nil?
1627
1853
  command.query['fields'] = fields unless fields.nil?
1628
1854
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1629
1855
  command.query['userIp'] = user_ip unless user_ip.nil?
1630
1856
  execute_or_queue_command(command, &block)
1631
1857
  end
1632
1858
 
1633
- # Approves the specified product and the relevant app permissions, if any. The
1634
- # maximum number of products that you can approve per enterprise customer is 1,
1635
- # 000.
1636
- # To learn how to use Google Play for Work to design and create a store layout
1637
- # to display approved products to your users, see Store Layout Design.
1859
+ # Retrieves details of a per-device managed configuration.
1638
1860
  # @param [String] enterprise_id
1639
1861
  # The ID of the enterprise.
1640
- # @param [String] product_id
1641
- # The ID of the product.
1642
- # @param [Google::Apis::AndroidenterpriseV1::ApproveProductRequest] approve_product_request_object
1862
+ # @param [String] user_id
1863
+ # The ID of the user.
1864
+ # @param [String] device_id
1865
+ # The Android ID of the device.
1866
+ # @param [String] managed_configuration_for_device_id
1867
+ # The ID of the managed configuration (a product ID), e.g. "app:com.google.
1868
+ # android.gm".
1643
1869
  # @param [String] fields
1644
1870
  # Selector specifying which fields to include in a partial response.
1645
1871
  # @param [String] quota_user
@@ -1653,41 +1879,36 @@ module Google
1653
1879
  # Request-specific options
1654
1880
  #
1655
1881
  # @yield [result, err] Result & error if block supplied
1656
- # @yieldparam result [NilClass] No result returned for this method
1882
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::ManagedConfiguration] parsed result object
1657
1883
  # @yieldparam err [StandardError] error object if request failed
1658
1884
  #
1659
- # @return [void]
1885
+ # @return [Google::Apis::AndroidenterpriseV1::ManagedConfiguration]
1660
1886
  #
1661
1887
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1662
1888
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1663
1889
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1664
- def approve_product(enterprise_id, product_id, approve_product_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1665
- command = make_simple_command(:post, 'enterprises/{enterpriseId}/products/{productId}/approve', options)
1666
- command.request_representation = Google::Apis::AndroidenterpriseV1::ApproveProductRequest::Representation
1667
- command.request_object = approve_product_request_object
1890
+ def get_managedconfigurationsfordevice(enterprise_id, user_id, device_id, managed_configuration_for_device_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1891
+ command = make_simple_command(:get, 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/managedConfigurationsForDevice/{managedConfigurationForDeviceId}', options)
1892
+ command.response_representation = Google::Apis::AndroidenterpriseV1::ManagedConfiguration::Representation
1893
+ command.response_class = Google::Apis::AndroidenterpriseV1::ManagedConfiguration
1668
1894
  command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
1669
- command.params['productId'] = product_id unless product_id.nil?
1895
+ command.params['userId'] = user_id unless user_id.nil?
1896
+ command.params['deviceId'] = device_id unless device_id.nil?
1897
+ command.params['managedConfigurationForDeviceId'] = managed_configuration_for_device_id unless managed_configuration_for_device_id.nil?
1670
1898
  command.query['fields'] = fields unless fields.nil?
1671
1899
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1672
1900
  command.query['userIp'] = user_ip unless user_ip.nil?
1673
1901
  execute_or_queue_command(command, &block)
1674
1902
  end
1675
1903
 
1676
- # Generates a URL that can be rendered in an iframe to display the permissions (
1677
- # if any) of a product. An enterprise admin must view these permissions and
1678
- # accept them on behalf of their organization in order to approve that product.
1679
- # Admins should accept the displayed permissions by interacting with a separate
1680
- # UI element in the EMM console, which in turn should trigger the use of this
1681
- # URL as the approvalUrlInfo.approvalUrl property in a Products.approve call to
1682
- # approve the product. This URL can only be used to display permissions for up
1683
- # to 1 day.
1904
+ # Lists all the per-device managed configurations for the specified device. Only
1905
+ # the ID is set.
1684
1906
  # @param [String] enterprise_id
1685
1907
  # The ID of the enterprise.
1686
- # @param [String] product_id
1687
- # The ID of the product.
1688
- # @param [String] language_code
1689
- # The BCP 47 language code used for permission names and descriptions in the
1690
- # returned iframe, for instance "en-US".
1908
+ # @param [String] user_id
1909
+ # The ID of the user.
1910
+ # @param [String] device_id
1911
+ # The Android ID of the device.
1691
1912
  # @param [String] fields
1692
1913
  # Selector specifying which fields to include in a partial response.
1693
1914
  # @param [String] quota_user
@@ -1701,34 +1922,39 @@ module Google
1701
1922
  # Request-specific options
1702
1923
  #
1703
1924
  # @yield [result, err] Result & error if block supplied
1704
- # @yieldparam result [Google::Apis::AndroidenterpriseV1::GenerateProductApprovalUrlResponse] parsed result object
1925
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::ManagedConfigurationsForDeviceListResponse] parsed result object
1705
1926
  # @yieldparam err [StandardError] error object if request failed
1706
1927
  #
1707
- # @return [Google::Apis::AndroidenterpriseV1::GenerateProductApprovalUrlResponse]
1928
+ # @return [Google::Apis::AndroidenterpriseV1::ManagedConfigurationsForDeviceListResponse]
1708
1929
  #
1709
1930
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1710
1931
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1711
1932
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1712
- def generate_product_approval_url(enterprise_id, product_id, language_code: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1713
- command = make_simple_command(:post, 'enterprises/{enterpriseId}/products/{productId}/generateApprovalUrl', options)
1714
- command.response_representation = Google::Apis::AndroidenterpriseV1::GenerateProductApprovalUrlResponse::Representation
1715
- command.response_class = Google::Apis::AndroidenterpriseV1::GenerateProductApprovalUrlResponse
1933
+ def list_managedconfigurationsfordevices(enterprise_id, user_id, device_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1934
+ command = make_simple_command(:get, 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/managedConfigurationsForDevice', options)
1935
+ command.response_representation = Google::Apis::AndroidenterpriseV1::ManagedConfigurationsForDeviceListResponse::Representation
1936
+ command.response_class = Google::Apis::AndroidenterpriseV1::ManagedConfigurationsForDeviceListResponse
1716
1937
  command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
1717
- command.params['productId'] = product_id unless product_id.nil?
1718
- command.query['languageCode'] = language_code unless language_code.nil?
1938
+ command.params['userId'] = user_id unless user_id.nil?
1939
+ command.params['deviceId'] = device_id unless device_id.nil?
1719
1940
  command.query['fields'] = fields unless fields.nil?
1720
1941
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1721
1942
  command.query['userIp'] = user_ip unless user_ip.nil?
1722
1943
  execute_or_queue_command(command, &block)
1723
1944
  end
1724
1945
 
1725
- # Retrieves details of a product for display to an enterprise admin.
1946
+ # Adds or updates a per-device managed configuration for an app for the
1947
+ # specified device. This method supports patch semantics.
1726
1948
  # @param [String] enterprise_id
1727
1949
  # The ID of the enterprise.
1728
- # @param [String] product_id
1729
- # The ID of the product, e.g. "app:com.google.android.gm".
1730
- # @param [String] language
1731
- # The BCP47 tag for the user's preferred language (e.g. "en-US", "de").
1950
+ # @param [String] user_id
1951
+ # The ID of the user.
1952
+ # @param [String] device_id
1953
+ # The Android ID of the device.
1954
+ # @param [String] managed_configuration_for_device_id
1955
+ # The ID of the managed configuration (a product ID), e.g. "app:com.google.
1956
+ # android.gm".
1957
+ # @param [Google::Apis::AndroidenterpriseV1::ManagedConfiguration] managed_configuration_object
1732
1958
  # @param [String] fields
1733
1959
  # Selector specifying which fields to include in a partial response.
1734
1960
  # @param [String] quota_user
@@ -1742,36 +1968,42 @@ module Google
1742
1968
  # Request-specific options
1743
1969
  #
1744
1970
  # @yield [result, err] Result & error if block supplied
1745
- # @yieldparam result [Google::Apis::AndroidenterpriseV1::Product] parsed result object
1971
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::ManagedConfiguration] parsed result object
1746
1972
  # @yieldparam err [StandardError] error object if request failed
1747
1973
  #
1748
- # @return [Google::Apis::AndroidenterpriseV1::Product]
1974
+ # @return [Google::Apis::AndroidenterpriseV1::ManagedConfiguration]
1749
1975
  #
1750
1976
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1751
1977
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1752
1978
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1753
- def get_product(enterprise_id, product_id, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1754
- command = make_simple_command(:get, 'enterprises/{enterpriseId}/products/{productId}', options)
1755
- command.response_representation = Google::Apis::AndroidenterpriseV1::Product::Representation
1756
- command.response_class = Google::Apis::AndroidenterpriseV1::Product
1979
+ def patch_managedconfigurationsfordevice(enterprise_id, user_id, device_id, managed_configuration_for_device_id, managed_configuration_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1980
+ command = make_simple_command(:patch, 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/managedConfigurationsForDevice/{managedConfigurationForDeviceId}', options)
1981
+ command.request_representation = Google::Apis::AndroidenterpriseV1::ManagedConfiguration::Representation
1982
+ command.request_object = managed_configuration_object
1983
+ command.response_representation = Google::Apis::AndroidenterpriseV1::ManagedConfiguration::Representation
1984
+ command.response_class = Google::Apis::AndroidenterpriseV1::ManagedConfiguration
1757
1985
  command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
1758
- command.params['productId'] = product_id unless product_id.nil?
1759
- command.query['language'] = language unless language.nil?
1986
+ command.params['userId'] = user_id unless user_id.nil?
1987
+ command.params['deviceId'] = device_id unless device_id.nil?
1988
+ command.params['managedConfigurationForDeviceId'] = managed_configuration_for_device_id unless managed_configuration_for_device_id.nil?
1760
1989
  command.query['fields'] = fields unless fields.nil?
1761
1990
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1762
1991
  command.query['userIp'] = user_ip unless user_ip.nil?
1763
1992
  execute_or_queue_command(command, &block)
1764
1993
  end
1765
1994
 
1766
- # Retrieves the schema defining app restrictions configurable for this product.
1767
- # All products have a schema, but this may be empty if no app restrictions are
1768
- # defined.
1995
+ # Adds or updates a per-device managed configuration for an app for the
1996
+ # specified device.
1769
1997
  # @param [String] enterprise_id
1770
1998
  # The ID of the enterprise.
1771
- # @param [String] product_id
1772
- # The ID of the product.
1773
- # @param [String] language
1774
- # The BCP47 tag for the user's preferred language (e.g. "en-US", "de").
1999
+ # @param [String] user_id
2000
+ # The ID of the user.
2001
+ # @param [String] device_id
2002
+ # The Android ID of the device.
2003
+ # @param [String] managed_configuration_for_device_id
2004
+ # The ID of the managed configuration (a product ID), e.g. "app:com.google.
2005
+ # android.gm".
2006
+ # @param [Google::Apis::AndroidenterpriseV1::ManagedConfiguration] managed_configuration_object
1775
2007
  # @param [String] fields
1776
2008
  # Selector specifying which fields to include in a partial response.
1777
2009
  # @param [String] quota_user
@@ -1785,32 +2017,38 @@ module Google
1785
2017
  # Request-specific options
1786
2018
  #
1787
2019
  # @yield [result, err] Result & error if block supplied
1788
- # @yieldparam result [Google::Apis::AndroidenterpriseV1::AppRestrictionsSchema] parsed result object
2020
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::ManagedConfiguration] parsed result object
1789
2021
  # @yieldparam err [StandardError] error object if request failed
1790
2022
  #
1791
- # @return [Google::Apis::AndroidenterpriseV1::AppRestrictionsSchema]
2023
+ # @return [Google::Apis::AndroidenterpriseV1::ManagedConfiguration]
1792
2024
  #
1793
2025
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1794
2026
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1795
2027
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1796
- def get_product_app_restrictions_schema(enterprise_id, product_id, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1797
- command = make_simple_command(:get, 'enterprises/{enterpriseId}/products/{productId}/appRestrictionsSchema', options)
1798
- command.response_representation = Google::Apis::AndroidenterpriseV1::AppRestrictionsSchema::Representation
1799
- command.response_class = Google::Apis::AndroidenterpriseV1::AppRestrictionsSchema
2028
+ def update_managedconfigurationsfordevice(enterprise_id, user_id, device_id, managed_configuration_for_device_id, managed_configuration_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2029
+ command = make_simple_command(:put, 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/managedConfigurationsForDevice/{managedConfigurationForDeviceId}', options)
2030
+ command.request_representation = Google::Apis::AndroidenterpriseV1::ManagedConfiguration::Representation
2031
+ command.request_object = managed_configuration_object
2032
+ command.response_representation = Google::Apis::AndroidenterpriseV1::ManagedConfiguration::Representation
2033
+ command.response_class = Google::Apis::AndroidenterpriseV1::ManagedConfiguration
1800
2034
  command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
1801
- command.params['productId'] = product_id unless product_id.nil?
1802
- command.query['language'] = language unless language.nil?
2035
+ command.params['userId'] = user_id unless user_id.nil?
2036
+ command.params['deviceId'] = device_id unless device_id.nil?
2037
+ command.params['managedConfigurationForDeviceId'] = managed_configuration_for_device_id unless managed_configuration_for_device_id.nil?
1803
2038
  command.query['fields'] = fields unless fields.nil?
1804
2039
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1805
2040
  command.query['userIp'] = user_ip unless user_ip.nil?
1806
2041
  execute_or_queue_command(command, &block)
1807
2042
  end
1808
2043
 
1809
- # Retrieves the Android app permissions required by this app.
2044
+ # Removes a per-user managed configuration for an app for the specified user.
1810
2045
  # @param [String] enterprise_id
1811
2046
  # The ID of the enterprise.
1812
- # @param [String] product_id
1813
- # The ID of the product.
2047
+ # @param [String] user_id
2048
+ # The ID of the user.
2049
+ # @param [String] managed_configuration_for_user_id
2050
+ # The ID of the managed configuration (a product ID), e.g. "app:com.google.
2051
+ # android.gm".
1814
2052
  # @param [String] fields
1815
2053
  # Selector specifying which fields to include in a partial response.
1816
2054
  # @param [String] quota_user
@@ -1824,17 +2062,588 @@ module Google
1824
2062
  # Request-specific options
1825
2063
  #
1826
2064
  # @yield [result, err] Result & error if block supplied
1827
- # @yieldparam result [Google::Apis::AndroidenterpriseV1::ProductPermissions] parsed result object
2065
+ # @yieldparam result [NilClass] No result returned for this method
1828
2066
  # @yieldparam err [StandardError] error object if request failed
1829
2067
  #
1830
- # @return [Google::Apis::AndroidenterpriseV1::ProductPermissions]
2068
+ # @return [void]
1831
2069
  #
1832
2070
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1833
2071
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1834
2072
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1835
- def get_product_permissions(enterprise_id, product_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1836
- command = make_simple_command(:get, 'enterprises/{enterpriseId}/products/{productId}/permissions', options)
1837
- command.response_representation = Google::Apis::AndroidenterpriseV1::ProductPermissions::Representation
2073
+ def delete_managedconfigurationsforuser(enterprise_id, user_id, managed_configuration_for_user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2074
+ command = make_simple_command(:delete, 'enterprises/{enterpriseId}/users/{userId}/managedConfigurationsForUser/{managedConfigurationForUserId}', options)
2075
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
2076
+ command.params['userId'] = user_id unless user_id.nil?
2077
+ command.params['managedConfigurationForUserId'] = managed_configuration_for_user_id unless managed_configuration_for_user_id.nil?
2078
+ command.query['fields'] = fields unless fields.nil?
2079
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2080
+ command.query['userIp'] = user_ip unless user_ip.nil?
2081
+ execute_or_queue_command(command, &block)
2082
+ end
2083
+
2084
+ # Retrieves details of a per-user managed configuration for an app for the
2085
+ # specified user.
2086
+ # @param [String] enterprise_id
2087
+ # The ID of the enterprise.
2088
+ # @param [String] user_id
2089
+ # The ID of the user.
2090
+ # @param [String] managed_configuration_for_user_id
2091
+ # The ID of the managed configuration (a product ID), e.g. "app:com.google.
2092
+ # android.gm".
2093
+ # @param [String] fields
2094
+ # Selector specifying which fields to include in a partial response.
2095
+ # @param [String] quota_user
2096
+ # Available to use for quota purposes for server-side applications. Can be any
2097
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2098
+ # Overrides userIp if both are provided.
2099
+ # @param [String] user_ip
2100
+ # IP address of the site where the request originates. Use this if you want to
2101
+ # enforce per-user limits.
2102
+ # @param [Google::Apis::RequestOptions] options
2103
+ # Request-specific options
2104
+ #
2105
+ # @yield [result, err] Result & error if block supplied
2106
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::ManagedConfiguration] parsed result object
2107
+ # @yieldparam err [StandardError] error object if request failed
2108
+ #
2109
+ # @return [Google::Apis::AndroidenterpriseV1::ManagedConfiguration]
2110
+ #
2111
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2112
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2113
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2114
+ def get_managedconfigurationsforuser(enterprise_id, user_id, managed_configuration_for_user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2115
+ command = make_simple_command(:get, 'enterprises/{enterpriseId}/users/{userId}/managedConfigurationsForUser/{managedConfigurationForUserId}', options)
2116
+ command.response_representation = Google::Apis::AndroidenterpriseV1::ManagedConfiguration::Representation
2117
+ command.response_class = Google::Apis::AndroidenterpriseV1::ManagedConfiguration
2118
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
2119
+ command.params['userId'] = user_id unless user_id.nil?
2120
+ command.params['managedConfigurationForUserId'] = managed_configuration_for_user_id unless managed_configuration_for_user_id.nil?
2121
+ command.query['fields'] = fields unless fields.nil?
2122
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2123
+ command.query['userIp'] = user_ip unless user_ip.nil?
2124
+ execute_or_queue_command(command, &block)
2125
+ end
2126
+
2127
+ # Lists all the per-user managed configurations for the specified user. Only the
2128
+ # ID is set.
2129
+ # @param [String] enterprise_id
2130
+ # The ID of the enterprise.
2131
+ # @param [String] user_id
2132
+ # The ID of the user.
2133
+ # @param [String] fields
2134
+ # Selector specifying which fields to include in a partial response.
2135
+ # @param [String] quota_user
2136
+ # Available to use for quota purposes for server-side applications. Can be any
2137
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2138
+ # Overrides userIp if both are provided.
2139
+ # @param [String] user_ip
2140
+ # IP address of the site where the request originates. Use this if you want to
2141
+ # enforce per-user limits.
2142
+ # @param [Google::Apis::RequestOptions] options
2143
+ # Request-specific options
2144
+ #
2145
+ # @yield [result, err] Result & error if block supplied
2146
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::ManagedConfigurationsForUserListResponse] parsed result object
2147
+ # @yieldparam err [StandardError] error object if request failed
2148
+ #
2149
+ # @return [Google::Apis::AndroidenterpriseV1::ManagedConfigurationsForUserListResponse]
2150
+ #
2151
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2152
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2153
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2154
+ def list_managedconfigurationsforusers(enterprise_id, user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2155
+ command = make_simple_command(:get, 'enterprises/{enterpriseId}/users/{userId}/managedConfigurationsForUser', options)
2156
+ command.response_representation = Google::Apis::AndroidenterpriseV1::ManagedConfigurationsForUserListResponse::Representation
2157
+ command.response_class = Google::Apis::AndroidenterpriseV1::ManagedConfigurationsForUserListResponse
2158
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
2159
+ command.params['userId'] = user_id unless user_id.nil?
2160
+ command.query['fields'] = fields unless fields.nil?
2161
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2162
+ command.query['userIp'] = user_ip unless user_ip.nil?
2163
+ execute_or_queue_command(command, &block)
2164
+ end
2165
+
2166
+ # Adds or updates a per-user managed configuration for an app for the specified
2167
+ # user. This method supports patch semantics.
2168
+ # @param [String] enterprise_id
2169
+ # The ID of the enterprise.
2170
+ # @param [String] user_id
2171
+ # The ID of the user.
2172
+ # @param [String] managed_configuration_for_user_id
2173
+ # The ID of the managed configuration (a product ID), e.g. "app:com.google.
2174
+ # android.gm".
2175
+ # @param [Google::Apis::AndroidenterpriseV1::ManagedConfiguration] managed_configuration_object
2176
+ # @param [String] fields
2177
+ # Selector specifying which fields to include in a partial response.
2178
+ # @param [String] quota_user
2179
+ # Available to use for quota purposes for server-side applications. Can be any
2180
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2181
+ # Overrides userIp if both are provided.
2182
+ # @param [String] user_ip
2183
+ # IP address of the site where the request originates. Use this if you want to
2184
+ # enforce per-user limits.
2185
+ # @param [Google::Apis::RequestOptions] options
2186
+ # Request-specific options
2187
+ #
2188
+ # @yield [result, err] Result & error if block supplied
2189
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::ManagedConfiguration] parsed result object
2190
+ # @yieldparam err [StandardError] error object if request failed
2191
+ #
2192
+ # @return [Google::Apis::AndroidenterpriseV1::ManagedConfiguration]
2193
+ #
2194
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2195
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2196
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2197
+ def patch_managedconfigurationsforuser(enterprise_id, user_id, managed_configuration_for_user_id, managed_configuration_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2198
+ command = make_simple_command(:patch, 'enterprises/{enterpriseId}/users/{userId}/managedConfigurationsForUser/{managedConfigurationForUserId}', options)
2199
+ command.request_representation = Google::Apis::AndroidenterpriseV1::ManagedConfiguration::Representation
2200
+ command.request_object = managed_configuration_object
2201
+ command.response_representation = Google::Apis::AndroidenterpriseV1::ManagedConfiguration::Representation
2202
+ command.response_class = Google::Apis::AndroidenterpriseV1::ManagedConfiguration
2203
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
2204
+ command.params['userId'] = user_id unless user_id.nil?
2205
+ command.params['managedConfigurationForUserId'] = managed_configuration_for_user_id unless managed_configuration_for_user_id.nil?
2206
+ command.query['fields'] = fields unless fields.nil?
2207
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2208
+ command.query['userIp'] = user_ip unless user_ip.nil?
2209
+ execute_or_queue_command(command, &block)
2210
+ end
2211
+
2212
+ # Adds or updates a per-user managed configuration for an app for the specified
2213
+ # user.
2214
+ # @param [String] enterprise_id
2215
+ # The ID of the enterprise.
2216
+ # @param [String] user_id
2217
+ # The ID of the user.
2218
+ # @param [String] managed_configuration_for_user_id
2219
+ # The ID of the managed configuration (a product ID), e.g. "app:com.google.
2220
+ # android.gm".
2221
+ # @param [Google::Apis::AndroidenterpriseV1::ManagedConfiguration] managed_configuration_object
2222
+ # @param [String] fields
2223
+ # Selector specifying which fields to include in a partial response.
2224
+ # @param [String] quota_user
2225
+ # Available to use for quota purposes for server-side applications. Can be any
2226
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2227
+ # Overrides userIp if both are provided.
2228
+ # @param [String] user_ip
2229
+ # IP address of the site where the request originates. Use this if you want to
2230
+ # enforce per-user limits.
2231
+ # @param [Google::Apis::RequestOptions] options
2232
+ # Request-specific options
2233
+ #
2234
+ # @yield [result, err] Result & error if block supplied
2235
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::ManagedConfiguration] parsed result object
2236
+ # @yieldparam err [StandardError] error object if request failed
2237
+ #
2238
+ # @return [Google::Apis::AndroidenterpriseV1::ManagedConfiguration]
2239
+ #
2240
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2241
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2242
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2243
+ def update_managedconfigurationsforuser(enterprise_id, user_id, managed_configuration_for_user_id, managed_configuration_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2244
+ command = make_simple_command(:put, 'enterprises/{enterpriseId}/users/{userId}/managedConfigurationsForUser/{managedConfigurationForUserId}', options)
2245
+ command.request_representation = Google::Apis::AndroidenterpriseV1::ManagedConfiguration::Representation
2246
+ command.request_object = managed_configuration_object
2247
+ command.response_representation = Google::Apis::AndroidenterpriseV1::ManagedConfiguration::Representation
2248
+ command.response_class = Google::Apis::AndroidenterpriseV1::ManagedConfiguration
2249
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
2250
+ command.params['userId'] = user_id unless user_id.nil?
2251
+ command.params['managedConfigurationForUserId'] = managed_configuration_for_user_id unless managed_configuration_for_user_id.nil?
2252
+ command.query['fields'] = fields unless fields.nil?
2253
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2254
+ command.query['userIp'] = user_ip unless user_ip.nil?
2255
+ execute_or_queue_command(command, &block)
2256
+ end
2257
+
2258
+ # Retrieves details of an Android app permission for display to an enterprise
2259
+ # admin.
2260
+ # @param [String] permission_id
2261
+ # The ID of the permission.
2262
+ # @param [String] language
2263
+ # The BCP47 tag for the user's preferred language (e.g. "en-US", "de")
2264
+ # @param [String] fields
2265
+ # Selector specifying which fields to include in a partial response.
2266
+ # @param [String] quota_user
2267
+ # Available to use for quota purposes for server-side applications. Can be any
2268
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2269
+ # Overrides userIp if both are provided.
2270
+ # @param [String] user_ip
2271
+ # IP address of the site where the request originates. Use this if you want to
2272
+ # enforce per-user limits.
2273
+ # @param [Google::Apis::RequestOptions] options
2274
+ # Request-specific options
2275
+ #
2276
+ # @yield [result, err] Result & error if block supplied
2277
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::Permission] parsed result object
2278
+ # @yieldparam err [StandardError] error object if request failed
2279
+ #
2280
+ # @return [Google::Apis::AndroidenterpriseV1::Permission]
2281
+ #
2282
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2283
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2284
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2285
+ def get_permission(permission_id, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2286
+ command = make_simple_command(:get, 'permissions/{permissionId}', options)
2287
+ command.response_representation = Google::Apis::AndroidenterpriseV1::Permission::Representation
2288
+ command.response_class = Google::Apis::AndroidenterpriseV1::Permission
2289
+ command.params['permissionId'] = permission_id unless permission_id.nil?
2290
+ command.query['language'] = language unless language.nil?
2291
+ command.query['fields'] = fields unless fields.nil?
2292
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2293
+ command.query['userIp'] = user_ip unless user_ip.nil?
2294
+ execute_or_queue_command(command, &block)
2295
+ end
2296
+
2297
+ # Approves the specified product and the relevant app permissions, if any. The
2298
+ # maximum number of products that you can approve per enterprise customer is 1,
2299
+ # 000.
2300
+ # To learn how to use Google Play for Work to design and create a store layout
2301
+ # to display approved products to your users, see Store Layout Design.
2302
+ # @param [String] enterprise_id
2303
+ # The ID of the enterprise.
2304
+ # @param [String] product_id
2305
+ # The ID of the product.
2306
+ # @param [Google::Apis::AndroidenterpriseV1::ApproveProductRequest] approve_product_request_object
2307
+ # @param [String] fields
2308
+ # Selector specifying which fields to include in a partial response.
2309
+ # @param [String] quota_user
2310
+ # Available to use for quota purposes for server-side applications. Can be any
2311
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2312
+ # Overrides userIp if both are provided.
2313
+ # @param [String] user_ip
2314
+ # IP address of the site where the request originates. Use this if you want to
2315
+ # enforce per-user limits.
2316
+ # @param [Google::Apis::RequestOptions] options
2317
+ # Request-specific options
2318
+ #
2319
+ # @yield [result, err] Result & error if block supplied
2320
+ # @yieldparam result [NilClass] No result returned for this method
2321
+ # @yieldparam err [StandardError] error object if request failed
2322
+ #
2323
+ # @return [void]
2324
+ #
2325
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2326
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2327
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2328
+ def approve_product(enterprise_id, product_id, approve_product_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2329
+ command = make_simple_command(:post, 'enterprises/{enterpriseId}/products/{productId}/approve', options)
2330
+ command.request_representation = Google::Apis::AndroidenterpriseV1::ApproveProductRequest::Representation
2331
+ command.request_object = approve_product_request_object
2332
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
2333
+ command.params['productId'] = product_id unless product_id.nil?
2334
+ command.query['fields'] = fields unless fields.nil?
2335
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2336
+ command.query['userIp'] = user_ip unless user_ip.nil?
2337
+ execute_or_queue_command(command, &block)
2338
+ end
2339
+
2340
+ # Generates a URL that can be rendered in an iframe to display the permissions (
2341
+ # if any) of a product. An enterprise admin must view these permissions and
2342
+ # accept them on behalf of their organization in order to approve that product.
2343
+ # Admins should accept the displayed permissions by interacting with a separate
2344
+ # UI element in the EMM console, which in turn should trigger the use of this
2345
+ # URL as the approvalUrlInfo.approvalUrl property in a Products.approve call to
2346
+ # approve the product. This URL can only be used to display permissions for up
2347
+ # to 1 day.
2348
+ # @param [String] enterprise_id
2349
+ # The ID of the enterprise.
2350
+ # @param [String] product_id
2351
+ # The ID of the product.
2352
+ # @param [String] language_code
2353
+ # The BCP 47 language code used for permission names and descriptions in the
2354
+ # returned iframe, for instance "en-US".
2355
+ # @param [String] fields
2356
+ # Selector specifying which fields to include in a partial response.
2357
+ # @param [String] quota_user
2358
+ # Available to use for quota purposes for server-side applications. Can be any
2359
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2360
+ # Overrides userIp if both are provided.
2361
+ # @param [String] user_ip
2362
+ # IP address of the site where the request originates. Use this if you want to
2363
+ # enforce per-user limits.
2364
+ # @param [Google::Apis::RequestOptions] options
2365
+ # Request-specific options
2366
+ #
2367
+ # @yield [result, err] Result & error if block supplied
2368
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::GenerateProductApprovalUrlResponse] parsed result object
2369
+ # @yieldparam err [StandardError] error object if request failed
2370
+ #
2371
+ # @return [Google::Apis::AndroidenterpriseV1::GenerateProductApprovalUrlResponse]
2372
+ #
2373
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2374
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2375
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2376
+ def generate_product_approval_url(enterprise_id, product_id, language_code: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2377
+ command = make_simple_command(:post, 'enterprises/{enterpriseId}/products/{productId}/generateApprovalUrl', options)
2378
+ command.response_representation = Google::Apis::AndroidenterpriseV1::GenerateProductApprovalUrlResponse::Representation
2379
+ command.response_class = Google::Apis::AndroidenterpriseV1::GenerateProductApprovalUrlResponse
2380
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
2381
+ command.params['productId'] = product_id unless product_id.nil?
2382
+ command.query['languageCode'] = language_code unless language_code.nil?
2383
+ command.query['fields'] = fields unless fields.nil?
2384
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2385
+ command.query['userIp'] = user_ip unless user_ip.nil?
2386
+ execute_or_queue_command(command, &block)
2387
+ end
2388
+
2389
+ # Retrieves details of a product for display to an enterprise admin.
2390
+ # @param [String] enterprise_id
2391
+ # The ID of the enterprise.
2392
+ # @param [String] product_id
2393
+ # The ID of the product, e.g. "app:com.google.android.gm".
2394
+ # @param [String] language
2395
+ # The BCP47 tag for the user's preferred language (e.g. "en-US", "de").
2396
+ # @param [String] fields
2397
+ # Selector specifying which fields to include in a partial response.
2398
+ # @param [String] quota_user
2399
+ # Available to use for quota purposes for server-side applications. Can be any
2400
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2401
+ # Overrides userIp if both are provided.
2402
+ # @param [String] user_ip
2403
+ # IP address of the site where the request originates. Use this if you want to
2404
+ # enforce per-user limits.
2405
+ # @param [Google::Apis::RequestOptions] options
2406
+ # Request-specific options
2407
+ #
2408
+ # @yield [result, err] Result & error if block supplied
2409
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::Product] parsed result object
2410
+ # @yieldparam err [StandardError] error object if request failed
2411
+ #
2412
+ # @return [Google::Apis::AndroidenterpriseV1::Product]
2413
+ #
2414
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2415
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2416
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2417
+ def get_product(enterprise_id, product_id, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2418
+ command = make_simple_command(:get, 'enterprises/{enterpriseId}/products/{productId}', options)
2419
+ command.response_representation = Google::Apis::AndroidenterpriseV1::Product::Representation
2420
+ command.response_class = Google::Apis::AndroidenterpriseV1::Product
2421
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
2422
+ command.params['productId'] = product_id unless product_id.nil?
2423
+ command.query['language'] = language unless language.nil?
2424
+ command.query['fields'] = fields unless fields.nil?
2425
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2426
+ command.query['userIp'] = user_ip unless user_ip.nil?
2427
+ execute_or_queue_command(command, &block)
2428
+ end
2429
+
2430
+ # Retrieves the schema that defines the configurable properties for this product.
2431
+ # All products have a schema, but this schema may be empty if no managed
2432
+ # configurations have been defined. This schema can be used to populate a UI
2433
+ # that allows an administrator to configure the product. To apply a managed
2434
+ # configuration based on the schema obtained using this API, see Managed
2435
+ # Configurations through Play.
2436
+ # @param [String] enterprise_id
2437
+ # The ID of the enterprise.
2438
+ # @param [String] product_id
2439
+ # The ID of the product.
2440
+ # @param [String] language
2441
+ # The BCP47 tag for the user's preferred language (e.g. "en-US", "de").
2442
+ # @param [String] fields
2443
+ # Selector specifying which fields to include in a partial response.
2444
+ # @param [String] quota_user
2445
+ # Available to use for quota purposes for server-side applications. Can be any
2446
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2447
+ # Overrides userIp if both are provided.
2448
+ # @param [String] user_ip
2449
+ # IP address of the site where the request originates. Use this if you want to
2450
+ # enforce per-user limits.
2451
+ # @param [Google::Apis::RequestOptions] options
2452
+ # Request-specific options
2453
+ #
2454
+ # @yield [result, err] Result & error if block supplied
2455
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::AppRestrictionsSchema] parsed result object
2456
+ # @yieldparam err [StandardError] error object if request failed
2457
+ #
2458
+ # @return [Google::Apis::AndroidenterpriseV1::AppRestrictionsSchema]
2459
+ #
2460
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2461
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2462
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2463
+ def get_product_app_restrictions_schema(enterprise_id, product_id, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2464
+ command = make_simple_command(:get, 'enterprises/{enterpriseId}/products/{productId}/appRestrictionsSchema', options)
2465
+ command.response_representation = Google::Apis::AndroidenterpriseV1::AppRestrictionsSchema::Representation
2466
+ command.response_class = Google::Apis::AndroidenterpriseV1::AppRestrictionsSchema
2467
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
2468
+ command.params['productId'] = product_id unless product_id.nil?
2469
+ command.query['language'] = language unless language.nil?
2470
+ command.query['fields'] = fields unless fields.nil?
2471
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2472
+ command.query['userIp'] = user_ip unless user_ip.nil?
2473
+ execute_or_queue_command(command, &block)
2474
+ end
2475
+
2476
+ # Retrieves the Android app permissions required by this app.
2477
+ # @param [String] enterprise_id
2478
+ # The ID of the enterprise.
2479
+ # @param [String] product_id
2480
+ # The ID of the product.
2481
+ # @param [String] fields
2482
+ # Selector specifying which fields to include in a partial response.
2483
+ # @param [String] quota_user
2484
+ # Available to use for quota purposes for server-side applications. Can be any
2485
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2486
+ # Overrides userIp if both are provided.
2487
+ # @param [String] user_ip
2488
+ # IP address of the site where the request originates. Use this if you want to
2489
+ # enforce per-user limits.
2490
+ # @param [Google::Apis::RequestOptions] options
2491
+ # Request-specific options
2492
+ #
2493
+ # @yield [result, err] Result & error if block supplied
2494
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::ProductPermissions] parsed result object
2495
+ # @yieldparam err [StandardError] error object if request failed
2496
+ #
2497
+ # @return [Google::Apis::AndroidenterpriseV1::ProductPermissions]
2498
+ #
2499
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2500
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2501
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2502
+ def get_product_permissions(enterprise_id, product_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2503
+ command = make_simple_command(:get, 'enterprises/{enterpriseId}/products/{productId}/permissions', options)
2504
+ command.response_representation = Google::Apis::AndroidenterpriseV1::ProductPermissions::Representation
2505
+ command.response_class = Google::Apis::AndroidenterpriseV1::ProductPermissions
2506
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
2507
+ command.params['productId'] = product_id unless product_id.nil?
2508
+ command.query['fields'] = fields unless fields.nil?
2509
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2510
+ command.query['userIp'] = user_ip unless user_ip.nil?
2511
+ execute_or_queue_command(command, &block)
2512
+ end
2513
+
2514
+ # Finds approved products that match a query, or all approved products if there
2515
+ # is no query.
2516
+ # @param [String] enterprise_id
2517
+ # The ID of the enterprise.
2518
+ # @param [Boolean] approved
2519
+ # Specifies whether to search among all products (false) or among only products
2520
+ # that have been approved (true). Only "true" is supported, and should be
2521
+ # specified.
2522
+ # @param [String] language
2523
+ # The BCP47 tag for the user's preferred language (e.g. "en-US", "de"). Results
2524
+ # are returned in the language best matching the preferred language.
2525
+ # @param [Fixnum] max_results
2526
+ # Specifies the maximum number of products that can be returned per request. If
2527
+ # not specified, uses a default value of 100, which is also the maximum
2528
+ # retrievable within a single response.
2529
+ # @param [String] query
2530
+ # The search query as typed in the Google Play Store search box. If omitted, all
2531
+ # approved apps will be returned (using the pagination parameters), including
2532
+ # apps that are not available in the store (e.g. unpublished apps).
2533
+ # @param [String] token
2534
+ # A pagination token is contained in a request’s response when there are more
2535
+ # products. The token can be used in a subsequent request to obtain more
2536
+ # products, and so forth. This parameter cannot be used in the initial request.
2537
+ # @param [String] fields
2538
+ # Selector specifying which fields to include in a partial response.
2539
+ # @param [String] quota_user
2540
+ # Available to use for quota purposes for server-side applications. Can be any
2541
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2542
+ # Overrides userIp if both are provided.
2543
+ # @param [String] user_ip
2544
+ # IP address of the site where the request originates. Use this if you want to
2545
+ # enforce per-user limits.
2546
+ # @param [Google::Apis::RequestOptions] options
2547
+ # Request-specific options
2548
+ #
2549
+ # @yield [result, err] Result & error if block supplied
2550
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::ProductsListResponse] parsed result object
2551
+ # @yieldparam err [StandardError] error object if request failed
2552
+ #
2553
+ # @return [Google::Apis::AndroidenterpriseV1::ProductsListResponse]
2554
+ #
2555
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2556
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2557
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2558
+ def list_products(enterprise_id, approved: nil, language: nil, max_results: nil, query: nil, token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2559
+ command = make_simple_command(:get, 'enterprises/{enterpriseId}/products', options)
2560
+ command.response_representation = Google::Apis::AndroidenterpriseV1::ProductsListResponse::Representation
2561
+ command.response_class = Google::Apis::AndroidenterpriseV1::ProductsListResponse
2562
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
2563
+ command.query['approved'] = approved unless approved.nil?
2564
+ command.query['language'] = language unless language.nil?
2565
+ command.query['maxResults'] = max_results unless max_results.nil?
2566
+ command.query['query'] = query unless query.nil?
2567
+ command.query['token'] = token unless token.nil?
2568
+ command.query['fields'] = fields unless fields.nil?
2569
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2570
+ command.query['userIp'] = user_ip unless user_ip.nil?
2571
+ execute_or_queue_command(command, &block)
2572
+ end
2573
+
2574
+ # Unapproves the specified product (and the relevant app permissions, if any)
2575
+ # @param [String] enterprise_id
2576
+ # The ID of the enterprise.
2577
+ # @param [String] product_id
2578
+ # The ID of the product.
2579
+ # @param [String] fields
2580
+ # Selector specifying which fields to include in a partial response.
2581
+ # @param [String] quota_user
2582
+ # Available to use for quota purposes for server-side applications. Can be any
2583
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2584
+ # Overrides userIp if both are provided.
2585
+ # @param [String] user_ip
2586
+ # IP address of the site where the request originates. Use this if you want to
2587
+ # enforce per-user limits.
2588
+ # @param [Google::Apis::RequestOptions] options
2589
+ # Request-specific options
2590
+ #
2591
+ # @yield [result, err] Result & error if block supplied
2592
+ # @yieldparam result [NilClass] No result returned for this method
2593
+ # @yieldparam err [StandardError] error object if request failed
2594
+ #
2595
+ # @return [void]
2596
+ #
2597
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2598
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2599
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2600
+ def unapprove_product(enterprise_id, product_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2601
+ command = make_simple_command(:post, 'enterprises/{enterpriseId}/products/{productId}/unapprove', options)
2602
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
2603
+ command.params['productId'] = product_id unless product_id.nil?
2604
+ command.query['fields'] = fields unless fields.nil?
2605
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2606
+ command.query['userIp'] = user_ip unless user_ip.nil?
2607
+ execute_or_queue_command(command, &block)
2608
+ end
2609
+
2610
+ # This method has been deprecated. To programmatically approve applications, you
2611
+ # must use the iframe mechanism via the generateApprovalUrl and approve
2612
+ # methods of the Products resource. For more information, see the Play EMM API
2613
+ # usage requirements.
2614
+ # The updatePermissions method (deprecated) updates the set of Android app
2615
+ # permissions for this app that have been accepted by the enterprise.
2616
+ # @param [String] enterprise_id
2617
+ # The ID of the enterprise.
2618
+ # @param [String] product_id
2619
+ # The ID of the product.
2620
+ # @param [Google::Apis::AndroidenterpriseV1::ProductPermissions] product_permissions_object
2621
+ # @param [String] fields
2622
+ # Selector specifying which fields to include in a partial response.
2623
+ # @param [String] quota_user
2624
+ # Available to use for quota purposes for server-side applications. Can be any
2625
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2626
+ # Overrides userIp if both are provided.
2627
+ # @param [String] user_ip
2628
+ # IP address of the site where the request originates. Use this if you want to
2629
+ # enforce per-user limits.
2630
+ # @param [Google::Apis::RequestOptions] options
2631
+ # Request-specific options
2632
+ #
2633
+ # @yield [result, err] Result & error if block supplied
2634
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::ProductPermissions] parsed result object
2635
+ # @yieldparam err [StandardError] error object if request failed
2636
+ #
2637
+ # @return [Google::Apis::AndroidenterpriseV1::ProductPermissions]
2638
+ #
2639
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2640
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2641
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2642
+ def update_product_permissions(enterprise_id, product_id, product_permissions_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2643
+ command = make_simple_command(:put, 'enterprises/{enterpriseId}/products/{productId}/permissions', options)
2644
+ command.request_representation = Google::Apis::AndroidenterpriseV1::ProductPermissions::Representation
2645
+ command.request_object = product_permissions_object
2646
+ command.response_representation = Google::Apis::AndroidenterpriseV1::ProductPermissions::Representation
1838
2647
  command.response_class = Google::Apis::AndroidenterpriseV1::ProductPermissions
1839
2648
  command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
1840
2649
  command.params['productId'] = product_id unless product_id.nil?
@@ -1844,27 +2653,14 @@ module Google
1844
2653
  execute_or_queue_command(command, &block)
1845
2654
  end
1846
2655
 
1847
- # Finds approved products that match a query.
2656
+ # Removes and invalidates the specified credentials for the service account
2657
+ # associated with this enterprise. The calling service account must have been
2658
+ # retrieved by calling Enterprises.GetServiceAccount and must have been set as
2659
+ # the enterprise service account by calling Enterprises.SetAccount.
1848
2660
  # @param [String] enterprise_id
1849
2661
  # The ID of the enterprise.
1850
- # @param [Boolean] approved
1851
- # Specifies whether to search among all products (false) or among only products
1852
- # that have been approved (true). Only "true" is supported, and should be
1853
- # specified.
1854
- # @param [String] language
1855
- # The BCP47 tag for the user's preferred language (e.g. "en-US", "de"). Results
1856
- # are returned in the language best matching the preferred language.
1857
- # @param [Fixnum] max_results
1858
- # Specifies the maximum number of products that can be returned per request. If
1859
- # not specified, uses a default value of 100, which is also the maximum
1860
- # retrievable within a single response.
1861
- # @param [String] query
1862
- # The search query as typed in the Google Play Store search box. If omitted, all
1863
- # approved apps will be returned (using the pagination parameters).
1864
- # @param [String] token
1865
- # A pagination token is contained in a request’s response when there are more
1866
- # products. The token can be used in a subsequent request to obtain more
1867
- # products, and so forth. This parameter cannot be used in the initial request.
2662
+ # @param [String] key_id
2663
+ # The ID of the key.
1868
2664
  # @param [String] fields
1869
2665
  # Selector specifying which fields to include in a partial response.
1870
2666
  # @param [String] quota_user
@@ -1878,41 +2674,32 @@ module Google
1878
2674
  # Request-specific options
1879
2675
  #
1880
2676
  # @yield [result, err] Result & error if block supplied
1881
- # @yieldparam result [Google::Apis::AndroidenterpriseV1::ProductsListResponse] parsed result object
2677
+ # @yieldparam result [NilClass] No result returned for this method
1882
2678
  # @yieldparam err [StandardError] error object if request failed
1883
2679
  #
1884
- # @return [Google::Apis::AndroidenterpriseV1::ProductsListResponse]
2680
+ # @return [void]
1885
2681
  #
1886
2682
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1887
2683
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1888
2684
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1889
- def list_products(enterprise_id, approved: nil, language: nil, max_results: nil, query: nil, token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1890
- command = make_simple_command(:get, 'enterprises/{enterpriseId}/products', options)
1891
- command.response_representation = Google::Apis::AndroidenterpriseV1::ProductsListResponse::Representation
1892
- command.response_class = Google::Apis::AndroidenterpriseV1::ProductsListResponse
2685
+ def delete_serviceaccountkey(enterprise_id, key_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2686
+ command = make_simple_command(:delete, 'enterprises/{enterpriseId}/serviceAccountKeys/{keyId}', options)
1893
2687
  command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
1894
- command.query['approved'] = approved unless approved.nil?
1895
- command.query['language'] = language unless language.nil?
1896
- command.query['maxResults'] = max_results unless max_results.nil?
1897
- command.query['query'] = query unless query.nil?
1898
- command.query['token'] = token unless token.nil?
2688
+ command.params['keyId'] = key_id unless key_id.nil?
1899
2689
  command.query['fields'] = fields unless fields.nil?
1900
2690
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1901
2691
  command.query['userIp'] = user_ip unless user_ip.nil?
1902
2692
  execute_or_queue_command(command, &block)
1903
2693
  end
1904
2694
 
1905
- # This method has been deprecated. To programmatically approve applications, you
1906
- # must use the iframe mechanism via the generateApprovalUrl and approve
1907
- # methods of the Products resource. For more information, see the Play EMM API
1908
- # usage requirements.
1909
- # The updatePermissions method (deprecated) updates the set of Android app
1910
- # permissions for this app that have been accepted by the enterprise.
2695
+ # Generates new credentials for the service account associated with this
2696
+ # enterprise. The calling service account must have been retrieved by calling
2697
+ # Enterprises.GetServiceAccount and must have been set as the enterprise service
2698
+ # account by calling Enterprises.SetAccount.
2699
+ # Only the type of the key should be populated in the resource to be inserted.
1911
2700
  # @param [String] enterprise_id
1912
2701
  # The ID of the enterprise.
1913
- # @param [String] product_id
1914
- # The ID of the product.
1915
- # @param [Google::Apis::AndroidenterpriseV1::ProductPermissions] product_permissions_object
2702
+ # @param [Google::Apis::AndroidenterpriseV1::ServiceAccountKey] service_account_key_object
1916
2703
  # @param [String] fields
1917
2704
  # Selector specifying which fields to include in a partial response.
1918
2705
  # @param [String] quota_user
@@ -1926,22 +2713,60 @@ module Google
1926
2713
  # Request-specific options
1927
2714
  #
1928
2715
  # @yield [result, err] Result & error if block supplied
1929
- # @yieldparam result [Google::Apis::AndroidenterpriseV1::ProductPermissions] parsed result object
2716
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::ServiceAccountKey] parsed result object
1930
2717
  # @yieldparam err [StandardError] error object if request failed
1931
2718
  #
1932
- # @return [Google::Apis::AndroidenterpriseV1::ProductPermissions]
2719
+ # @return [Google::Apis::AndroidenterpriseV1::ServiceAccountKey]
1933
2720
  #
1934
2721
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1935
2722
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1936
2723
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1937
- def update_product_permissions(enterprise_id, product_id, product_permissions_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1938
- command = make_simple_command(:put, 'enterprises/{enterpriseId}/products/{productId}/permissions', options)
1939
- command.request_representation = Google::Apis::AndroidenterpriseV1::ProductPermissions::Representation
1940
- command.request_object = product_permissions_object
1941
- command.response_representation = Google::Apis::AndroidenterpriseV1::ProductPermissions::Representation
1942
- command.response_class = Google::Apis::AndroidenterpriseV1::ProductPermissions
2724
+ def insert_serviceaccountkey(enterprise_id, service_account_key_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2725
+ command = make_simple_command(:post, 'enterprises/{enterpriseId}/serviceAccountKeys', options)
2726
+ command.request_representation = Google::Apis::AndroidenterpriseV1::ServiceAccountKey::Representation
2727
+ command.request_object = service_account_key_object
2728
+ command.response_representation = Google::Apis::AndroidenterpriseV1::ServiceAccountKey::Representation
2729
+ command.response_class = Google::Apis::AndroidenterpriseV1::ServiceAccountKey
2730
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
2731
+ command.query['fields'] = fields unless fields.nil?
2732
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2733
+ command.query['userIp'] = user_ip unless user_ip.nil?
2734
+ execute_or_queue_command(command, &block)
2735
+ end
2736
+
2737
+ # Lists all active credentials for the service account associated with this
2738
+ # enterprise. Only the ID and key type are returned. The calling service account
2739
+ # must have been retrieved by calling Enterprises.GetServiceAccount and must
2740
+ # have been set as the enterprise service account by calling Enterprises.
2741
+ # SetAccount.
2742
+ # @param [String] enterprise_id
2743
+ # The ID of the enterprise.
2744
+ # @param [String] fields
2745
+ # Selector specifying which fields to include in a partial response.
2746
+ # @param [String] quota_user
2747
+ # Available to use for quota purposes for server-side applications. Can be any
2748
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2749
+ # Overrides userIp if both are provided.
2750
+ # @param [String] user_ip
2751
+ # IP address of the site where the request originates. Use this if you want to
2752
+ # enforce per-user limits.
2753
+ # @param [Google::Apis::RequestOptions] options
2754
+ # Request-specific options
2755
+ #
2756
+ # @yield [result, err] Result & error if block supplied
2757
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::ServiceAccountKeysListResponse] parsed result object
2758
+ # @yieldparam err [StandardError] error object if request failed
2759
+ #
2760
+ # @return [Google::Apis::AndroidenterpriseV1::ServiceAccountKeysListResponse]
2761
+ #
2762
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2763
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2764
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2765
+ def list_serviceaccountkeys(enterprise_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2766
+ command = make_simple_command(:get, 'enterprises/{enterpriseId}/serviceAccountKeys', options)
2767
+ command.response_representation = Google::Apis::AndroidenterpriseV1::ServiceAccountKeysListResponse::Representation
2768
+ command.response_class = Google::Apis::AndroidenterpriseV1::ServiceAccountKeysListResponse
1943
2769
  command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
1944
- command.params['productId'] = product_id unless product_id.nil?
1945
2770
  command.query['fields'] = fields unless fields.nil?
1946
2771
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1947
2772
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -2424,6 +3249,83 @@ module Google
2424
3249
  execute_or_queue_command(command, &block)
2425
3250
  end
2426
3251
 
3252
+ # Deleted an EMM-managed user.
3253
+ # @param [String] enterprise_id
3254
+ # The ID of the enterprise.
3255
+ # @param [String] user_id
3256
+ # The ID of the user.
3257
+ # @param [String] fields
3258
+ # Selector specifying which fields to include in a partial response.
3259
+ # @param [String] quota_user
3260
+ # Available to use for quota purposes for server-side applications. Can be any
3261
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3262
+ # Overrides userIp if both are provided.
3263
+ # @param [String] user_ip
3264
+ # IP address of the site where the request originates. Use this if you want to
3265
+ # enforce per-user limits.
3266
+ # @param [Google::Apis::RequestOptions] options
3267
+ # Request-specific options
3268
+ #
3269
+ # @yield [result, err] Result & error if block supplied
3270
+ # @yieldparam result [NilClass] No result returned for this method
3271
+ # @yieldparam err [StandardError] error object if request failed
3272
+ #
3273
+ # @return [void]
3274
+ #
3275
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3276
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3277
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3278
+ def delete_user(enterprise_id, user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3279
+ command = make_simple_command(:delete, 'enterprises/{enterpriseId}/users/{userId}', options)
3280
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
3281
+ command.params['userId'] = user_id unless user_id.nil?
3282
+ command.query['fields'] = fields unless fields.nil?
3283
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3284
+ command.query['userIp'] = user_ip unless user_ip.nil?
3285
+ execute_or_queue_command(command, &block)
3286
+ end
3287
+
3288
+ # Generates an authentication token which the device policy client can use to
3289
+ # provision the given EMM-managed user account on a device. The generated token
3290
+ # is single-use and expires after a few minutes.
3291
+ # This call only works with EMM-managed accounts.
3292
+ # @param [String] enterprise_id
3293
+ # The ID of the enterprise.
3294
+ # @param [String] user_id
3295
+ # The ID of the user.
3296
+ # @param [String] fields
3297
+ # Selector specifying which fields to include in a partial response.
3298
+ # @param [String] quota_user
3299
+ # Available to use for quota purposes for server-side applications. Can be any
3300
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3301
+ # Overrides userIp if both are provided.
3302
+ # @param [String] user_ip
3303
+ # IP address of the site where the request originates. Use this if you want to
3304
+ # enforce per-user limits.
3305
+ # @param [Google::Apis::RequestOptions] options
3306
+ # Request-specific options
3307
+ #
3308
+ # @yield [result, err] Result & error if block supplied
3309
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::AuthenticationToken] parsed result object
3310
+ # @yieldparam err [StandardError] error object if request failed
3311
+ #
3312
+ # @return [Google::Apis::AndroidenterpriseV1::AuthenticationToken]
3313
+ #
3314
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3315
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3316
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3317
+ def generate_user_authentication_token(enterprise_id, user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3318
+ command = make_simple_command(:post, 'enterprises/{enterpriseId}/users/{userId}/authenticationToken', options)
3319
+ command.response_representation = Google::Apis::AndroidenterpriseV1::AuthenticationToken::Representation
3320
+ command.response_class = Google::Apis::AndroidenterpriseV1::AuthenticationToken
3321
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
3322
+ command.params['userId'] = user_id unless user_id.nil?
3323
+ command.query['fields'] = fields unless fields.nil?
3324
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3325
+ command.query['userIp'] = user_ip unless user_ip.nil?
3326
+ execute_or_queue_command(command, &block)
3327
+ end
3328
+
2427
3329
  # Generates a token (activation code) to allow this user to configure their work
2428
3330
  # account in the Android Setup Wizard. Revokes any previously generated token.
2429
3331
  # This call only works with Google managed accounts.
@@ -2540,7 +3442,49 @@ module Google
2540
3442
  execute_or_queue_command(command, &block)
2541
3443
  end
2542
3444
 
2543
- # Looks up a user by their primary email address.
3445
+ # Creates a new EMM-managed user.
3446
+ # The Users resource passed in the body of the request should include an
3447
+ # accountIdentifier and an accountType.
3448
+ # @param [String] enterprise_id
3449
+ # The ID of the enterprise.
3450
+ # @param [Google::Apis::AndroidenterpriseV1::User] user_object
3451
+ # @param [String] fields
3452
+ # Selector specifying which fields to include in a partial response.
3453
+ # @param [String] quota_user
3454
+ # Available to use for quota purposes for server-side applications. Can be any
3455
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3456
+ # Overrides userIp if both are provided.
3457
+ # @param [String] user_ip
3458
+ # IP address of the site where the request originates. Use this if you want to
3459
+ # enforce per-user limits.
3460
+ # @param [Google::Apis::RequestOptions] options
3461
+ # Request-specific options
3462
+ #
3463
+ # @yield [result, err] Result & error if block supplied
3464
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::User] parsed result object
3465
+ # @yieldparam err [StandardError] error object if request failed
3466
+ #
3467
+ # @return [Google::Apis::AndroidenterpriseV1::User]
3468
+ #
3469
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3470
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3471
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3472
+ def insert_user(enterprise_id, user_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3473
+ command = make_simple_command(:post, 'enterprises/{enterpriseId}/users', options)
3474
+ command.request_representation = Google::Apis::AndroidenterpriseV1::User::Representation
3475
+ command.request_object = user_object
3476
+ command.response_representation = Google::Apis::AndroidenterpriseV1::User::Representation
3477
+ command.response_class = Google::Apis::AndroidenterpriseV1::User
3478
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
3479
+ command.query['fields'] = fields unless fields.nil?
3480
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3481
+ command.query['userIp'] = user_ip unless user_ip.nil?
3482
+ execute_or_queue_command(command, &block)
3483
+ end
3484
+
3485
+ # Looks up a user by primary email address. This is only supported for Google-
3486
+ # managed users. Lookup of the id is not needed for EMM-managed users because
3487
+ # the id is already returned in the result of the Users.insert call.
2544
3488
  # @param [String] enterprise_id
2545
3489
  # The ID of the enterprise.
2546
3490
  # @param [String] email
@@ -2578,6 +3522,51 @@ module Google
2578
3522
  execute_or_queue_command(command, &block)
2579
3523
  end
2580
3524
 
3525
+ # Updates the details of an EMM-managed user.
3526
+ # Can be used with EMM-managed users only (not Google managed users). Pass the
3527
+ # new details in the Users resource in the request body. Only the displayName
3528
+ # field can be changed. Other fields must either be unset or have the currently
3529
+ # active value. This method supports patch semantics.
3530
+ # @param [String] enterprise_id
3531
+ # The ID of the enterprise.
3532
+ # @param [String] user_id
3533
+ # The ID of the user.
3534
+ # @param [Google::Apis::AndroidenterpriseV1::User] user_object
3535
+ # @param [String] fields
3536
+ # Selector specifying which fields to include in a partial response.
3537
+ # @param [String] quota_user
3538
+ # Available to use for quota purposes for server-side applications. Can be any
3539
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3540
+ # Overrides userIp if both are provided.
3541
+ # @param [String] user_ip
3542
+ # IP address of the site where the request originates. Use this if you want to
3543
+ # enforce per-user limits.
3544
+ # @param [Google::Apis::RequestOptions] options
3545
+ # Request-specific options
3546
+ #
3547
+ # @yield [result, err] Result & error if block supplied
3548
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::User] parsed result object
3549
+ # @yieldparam err [StandardError] error object if request failed
3550
+ #
3551
+ # @return [Google::Apis::AndroidenterpriseV1::User]
3552
+ #
3553
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3554
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3555
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3556
+ def patch_user(enterprise_id, user_id, user_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3557
+ command = make_simple_command(:patch, 'enterprises/{enterpriseId}/users/{userId}', options)
3558
+ command.request_representation = Google::Apis::AndroidenterpriseV1::User::Representation
3559
+ command.request_object = user_object
3560
+ command.response_representation = Google::Apis::AndroidenterpriseV1::User::Representation
3561
+ command.response_class = Google::Apis::AndroidenterpriseV1::User
3562
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
3563
+ command.params['userId'] = user_id unless user_id.nil?
3564
+ command.query['fields'] = fields unless fields.nil?
3565
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3566
+ command.query['userIp'] = user_ip unless user_ip.nil?
3567
+ execute_or_queue_command(command, &block)
3568
+ end
3569
+
2581
3570
  # Revokes a previously generated token (activation code) for the user.
2582
3571
  # @param [String] enterprise_id
2583
3572
  # The ID of the enterprise.
@@ -2654,6 +3643,51 @@ module Google
2654
3643
  command.query['userIp'] = user_ip unless user_ip.nil?
2655
3644
  execute_or_queue_command(command, &block)
2656
3645
  end
3646
+
3647
+ # Updates the details of an EMM-managed user.
3648
+ # Can be used with EMM-managed users only (not Google managed users). Pass the
3649
+ # new details in the Users resource in the request body. Only the displayName
3650
+ # field can be changed. Other fields must either be unset or have the currently
3651
+ # active value.
3652
+ # @param [String] enterprise_id
3653
+ # The ID of the enterprise.
3654
+ # @param [String] user_id
3655
+ # The ID of the user.
3656
+ # @param [Google::Apis::AndroidenterpriseV1::User] user_object
3657
+ # @param [String] fields
3658
+ # Selector specifying which fields to include in a partial response.
3659
+ # @param [String] quota_user
3660
+ # Available to use for quota purposes for server-side applications. Can be any
3661
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3662
+ # Overrides userIp if both are provided.
3663
+ # @param [String] user_ip
3664
+ # IP address of the site where the request originates. Use this if you want to
3665
+ # enforce per-user limits.
3666
+ # @param [Google::Apis::RequestOptions] options
3667
+ # Request-specific options
3668
+ #
3669
+ # @yield [result, err] Result & error if block supplied
3670
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::User] parsed result object
3671
+ # @yieldparam err [StandardError] error object if request failed
3672
+ #
3673
+ # @return [Google::Apis::AndroidenterpriseV1::User]
3674
+ #
3675
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3676
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3677
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3678
+ def update_user(enterprise_id, user_id, user_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3679
+ command = make_simple_command(:put, 'enterprises/{enterpriseId}/users/{userId}', options)
3680
+ command.request_representation = Google::Apis::AndroidenterpriseV1::User::Representation
3681
+ command.request_object = user_object
3682
+ command.response_representation = Google::Apis::AndroidenterpriseV1::User::Representation
3683
+ command.response_class = Google::Apis::AndroidenterpriseV1::User
3684
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
3685
+ command.params['userId'] = user_id unless user_id.nil?
3686
+ command.query['fields'] = fields unless fields.nil?
3687
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3688
+ command.query['userIp'] = user_ip unless user_ip.nil?
3689
+ execute_or_queue_command(command, &block)
3690
+ end
2657
3691
 
2658
3692
  protected
2659
3693