google-api-client 0.10.2 → 0.10.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (248) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +25 -0
  3. data/MIGRATING.md +22 -7
  4. data/README.md +4 -8
  5. data/api_names.yaml +1210 -37815
  6. data/generated/google/apis/acceleratedmobilepageurl_v1.rb +32 -0
  7. data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +144 -0
  8. data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +86 -0
  9. data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +90 -0
  10. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  11. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +764 -764
  12. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +180 -180
  13. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +421 -421
  14. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +1 -0
  15. data/generated/google/apis/admin_directory_v1/classes.rb +1 -0
  16. data/generated/google/apis/admin_reports_v1.rb +1 -1
  17. data/generated/google/apis/adsense_v1_4.rb +1 -1
  18. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  19. data/generated/google/apis/analyticsreporting_v4/classes.rb +187 -187
  20. data/generated/google/apis/analyticsreporting_v4/representations.rb +42 -42
  21. data/generated/google/apis/appengine_v1.rb +40 -0
  22. data/generated/google/apis/appengine_v1/classes.rb +2251 -0
  23. data/generated/google/apis/appengine_v1/representations.rb +858 -0
  24. data/generated/google/apis/appengine_v1/service.rb +894 -0
  25. data/generated/google/apis/bigquery_v2.rb +1 -1
  26. data/generated/google/apis/bigquery_v2/classes.rb +11 -6
  27. data/generated/google/apis/books_v1.rb +1 -1
  28. data/generated/google/apis/books_v1/classes.rb +26 -0
  29. data/generated/google/apis/books_v1/representations.rb +15 -0
  30. data/generated/google/apis/books_v1/service.rb +4 -1
  31. data/generated/google/apis/calendar_v3.rb +1 -1
  32. data/generated/google/apis/classroom_v1.rb +1 -1
  33. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  34. data/generated/google/apis/cloudbuild_v1/classes.rb +638 -637
  35. data/generated/google/apis/cloudbuild_v1/representations.rb +110 -110
  36. data/generated/google/apis/cloudbuild_v1/service.rb +139 -139
  37. data/generated/google/apis/clouddebugger_v2.rb +3 -3
  38. data/generated/google/apis/clouddebugger_v2/classes.rb +131 -131
  39. data/generated/google/apis/clouddebugger_v2/representations.rb +25 -25
  40. data/generated/google/apis/clouderrorreporting_v1beta1.rb +36 -0
  41. data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +590 -0
  42. data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +252 -0
  43. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +350 -0
  44. data/generated/google/apis/cloudfunctions_v1.rb +35 -0
  45. data/generated/google/apis/cloudfunctions_v1/classes.rb +98 -0
  46. data/generated/google/apis/cloudfunctions_v1/representations.rb +57 -0
  47. data/generated/google/apis/cloudfunctions_v1/service.rb +89 -0
  48. data/generated/google/apis/cloudkms_v1/classes.rb +277 -270
  49. data/generated/google/apis/cloudkms_v1/representations.rb +73 -73
  50. data/generated/google/apis/cloudkms_v1/service.rb +194 -194
  51. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  52. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1147 -1144
  53. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +188 -188
  54. data/generated/google/apis/cloudresourcemanager_v1/service.rb +513 -936
  55. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  56. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +307 -916
  57. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +63 -285
  58. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +333 -681
  59. data/generated/google/apis/cloudtrace_v1/classes.rb +38 -38
  60. data/generated/google/apis/cloudtrace_v1/representations.rb +13 -13
  61. data/generated/google/apis/cloudtrace_v1/service.rb +16 -16
  62. data/generated/google/apis/compute_beta.rb +1 -1
  63. data/generated/google/apis/compute_beta/classes.rb +32 -7
  64. data/generated/google/apis/compute_beta/representations.rb +2 -0
  65. data/generated/google/apis/compute_beta/service.rb +11 -11
  66. data/generated/google/apis/compute_v1.rb +1 -1
  67. data/generated/google/apis/compute_v1/classes.rb +95 -2
  68. data/generated/google/apis/compute_v1/representations.rb +33 -0
  69. data/generated/google/apis/dataflow_v1b3/classes.rb +3333 -3333
  70. data/generated/google/apis/dataflow_v1b3/representations.rb +759 -759
  71. data/generated/google/apis/dataflow_v1b3/service.rb +154 -154
  72. data/generated/google/apis/dataproc_v1.rb +1 -1
  73. data/generated/google/apis/dataproc_v1/classes.rb +1097 -1097
  74. data/generated/google/apis/dataproc_v1/representations.rb +200 -200
  75. data/generated/google/apis/dataproc_v1/service.rb +356 -356
  76. data/generated/google/apis/datastore_v1.rb +4 -4
  77. data/generated/google/apis/datastore_v1/classes.rb +701 -690
  78. data/generated/google/apis/datastore_v1/representations.rb +160 -160
  79. data/generated/google/apis/datastore_v1/service.rb +52 -52
  80. data/generated/google/apis/deploymentmanager_v2/classes.rb +4 -0
  81. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  82. data/generated/google/apis/drive_v2.rb +1 -1
  83. data/generated/google/apis/drive_v2/classes.rb +158 -35
  84. data/generated/google/apis/drive_v2/representations.rb +39 -0
  85. data/generated/google/apis/drive_v2/service.rb +4 -4
  86. data/generated/google/apis/drive_v3.rb +1 -1
  87. data/generated/google/apis/drive_v3/classes.rb +162 -33
  88. data/generated/google/apis/drive_v3/representations.rb +39 -0
  89. data/generated/google/apis/drive_v3/service.rb +4 -4
  90. data/generated/google/apis/firebasedynamiclinks_v1.rb +35 -0
  91. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +466 -0
  92. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +222 -0
  93. data/generated/google/apis/firebasedynamiclinks_v1/service.rb +95 -0
  94. data/generated/google/apis/firebaserules_v1.rb +41 -0
  95. data/generated/google/apis/firebaserules_v1/classes.rb +425 -0
  96. data/generated/google/apis/firebaserules_v1/representations.rb +222 -0
  97. data/generated/google/apis/firebaserules_v1/service.rb +495 -0
  98. data/generated/google/apis/games_v1/classes.rb +4 -0
  99. data/generated/google/apis/genomics_v1.rb +7 -7
  100. data/generated/google/apis/genomics_v1/classes.rb +2336 -2335
  101. data/generated/google/apis/genomics_v1/representations.rb +387 -387
  102. data/generated/google/apis/genomics_v1/service.rb +1187 -1187
  103. data/generated/google/apis/gmail_v1/classes.rb +3 -0
  104. data/generated/google/apis/iam_v1.rb +1 -1
  105. data/generated/google/apis/iam_v1/classes.rb +123 -117
  106. data/generated/google/apis/iam_v1/representations.rb +33 -33
  107. data/generated/google/apis/iam_v1/service.rb +109 -109
  108. data/generated/google/apis/identitytoolkit_v3/classes.rb +5 -0
  109. data/generated/google/apis/kgsearch_v1/classes.rb +6 -6
  110. data/generated/google/apis/kgsearch_v1/representations.rb +1 -1
  111. data/generated/google/apis/kgsearch_v1/service.rb +4 -4
  112. data/generated/google/apis/language_v1.rb +36 -0
  113. data/generated/google/apis/language_v1/classes.rb +757 -0
  114. data/generated/google/apis/language_v1/representations.rb +338 -0
  115. data/generated/google/apis/language_v1/service.rb +185 -0
  116. data/generated/google/apis/language_v1beta1/classes.rb +407 -407
  117. data/generated/google/apis/language_v1beta1/representations.rb +103 -103
  118. data/generated/google/apis/language_v1beta1/service.rb +45 -45
  119. data/generated/google/apis/logging_v2.rb +46 -0
  120. data/generated/google/apis/logging_v2/classes.rb +1271 -0
  121. data/generated/google/apis/logging_v2/representations.rb +421 -0
  122. data/generated/google/apis/logging_v2/service.rb +1569 -0
  123. data/generated/google/apis/logging_v2beta1.rb +1 -1
  124. data/generated/google/apis/logging_v2beta1/classes.rb +886 -886
  125. data/generated/google/apis/logging_v2beta1/representations.rb +132 -132
  126. data/generated/google/apis/logging_v2beta1/service.rb +235 -235
  127. data/generated/google/apis/manufacturers_v1/classes.rb +147 -147
  128. data/generated/google/apis/manufacturers_v1/representations.rb +29 -29
  129. data/generated/google/apis/ml_v1.rb +34 -0
  130. data/generated/google/apis/ml_v1/classes.rb +1617 -0
  131. data/generated/google/apis/ml_v1/representations.rb +498 -0
  132. data/generated/google/apis/ml_v1/service.rb +769 -0
  133. data/generated/google/apis/monitoring_v3.rb +4 -4
  134. data/generated/google/apis/monitoring_v3/classes.rb +630 -630
  135. data/generated/google/apis/monitoring_v3/representations.rb +134 -134
  136. data/generated/google/apis/monitoring_v3/service.rb +240 -240
  137. data/generated/google/apis/pagespeedonline_v2/classes.rb +1 -0
  138. data/generated/google/apis/partners_v2.rb +1 -1
  139. data/generated/google/apis/partners_v2/classes.rb +639 -639
  140. data/generated/google/apis/partners_v2/representations.rb +168 -168
  141. data/generated/google/apis/partners_v2/service.rb +381 -381
  142. data/generated/google/apis/people_v1.rb +10 -10
  143. data/generated/google/apis/people_v1/classes.rb +524 -524
  144. data/generated/google/apis/people_v1/representations.rb +143 -143
  145. data/generated/google/apis/people_v1/service.rb +30 -30
  146. data/generated/google/apis/plus_domains_v1.rb +1 -1
  147. data/generated/google/apis/plus_v1.rb +1 -1
  148. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +454 -444
  149. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +90 -90
  150. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +110 -110
  151. data/generated/google/apis/pubsub_v1/classes.rb +175 -173
  152. data/generated/google/apis/pubsub_v1/representations.rb +53 -53
  153. data/generated/google/apis/pubsub_v1/service.rb +210 -210
  154. data/generated/google/apis/replicapool_v1beta2/classes.rb +2 -0
  155. data/generated/google/apis/runtimeconfig_v1.rb +38 -0
  156. data/generated/google/apis/runtimeconfig_v1/classes.rb +252 -0
  157. data/generated/google/apis/runtimeconfig_v1/representations.rb +98 -0
  158. data/generated/google/apis/runtimeconfig_v1/service.rb +176 -0
  159. data/generated/google/apis/script_v1.rb +1 -1
  160. data/generated/google/apis/script_v1/classes.rb +6 -6
  161. data/generated/google/apis/script_v1/representations.rb +1 -1
  162. data/generated/google/apis/searchconsole_v1.rb +31 -0
  163. data/generated/google/apis/searchconsole_v1/classes.rb +205 -0
  164. data/generated/google/apis/searchconsole_v1/representations.rb +129 -0
  165. data/generated/google/apis/searchconsole_v1/service.rb +88 -0
  166. data/generated/google/apis/servicecontrol_v1.rb +38 -0
  167. data/generated/google/apis/servicecontrol_v1/classes.rb +1675 -0
  168. data/generated/google/apis/servicecontrol_v1/representations.rb +601 -0
  169. data/generated/google/apis/servicecontrol_v1/service.rb +337 -0
  170. data/generated/google/apis/servicemanagement_v1.rb +45 -0
  171. data/generated/google/apis/servicemanagement_v1/classes.rb +4934 -0
  172. data/generated/google/apis/servicemanagement_v1/representations.rb +1526 -0
  173. data/generated/google/apis/servicemanagement_v1/service.rb +860 -0
  174. data/generated/google/apis/serviceuser_v1.rb +42 -0
  175. data/generated/google/apis/serviceuser_v1/classes.rb +3746 -0
  176. data/generated/google/apis/serviceuser_v1/representations.rb +1041 -0
  177. data/generated/google/apis/serviceuser_v1/service.rb +214 -0
  178. data/generated/google/apis/sheets_v4.rb +3 -3
  179. data/generated/google/apis/sheets_v4/classes.rb +4390 -4390
  180. data/generated/google/apis/sheets_v4/representations.rb +381 -381
  181. data/generated/google/apis/sheets_v4/service.rb +48 -48
  182. data/generated/google/apis/slides_v1.rb +3 -3
  183. data/generated/google/apis/slides_v1/classes.rb +2860 -2860
  184. data/generated/google/apis/slides_v1/representations.rb +693 -693
  185. data/generated/google/apis/slides_v1/service.rb +30 -30
  186. data/generated/google/apis/sourcerepo_v1.rb +34 -0
  187. data/generated/google/apis/sourcerepo_v1/classes.rb +687 -0
  188. data/generated/google/apis/sourcerepo_v1/representations.rb +285 -0
  189. data/generated/google/apis/sourcerepo_v1/service.rb +291 -0
  190. data/generated/google/apis/spanner_v1.rb +35 -0
  191. data/generated/google/apis/spanner_v1/classes.rb +3294 -0
  192. data/generated/google/apis/spanner_v1/representations.rb +984 -0
  193. data/generated/google/apis/spanner_v1/service.rb +1504 -0
  194. data/generated/google/apis/speech_v1beta1.rb +1 -1
  195. data/generated/google/apis/speech_v1beta1/classes.rb +197 -196
  196. data/generated/google/apis/speech_v1beta1/representations.rb +53 -53
  197. data/generated/google/apis/speech_v1beta1/service.rb +27 -27
  198. data/generated/google/apis/storage_v1.rb +1 -1
  199. data/generated/google/apis/storage_v1/classes.rb +131 -0
  200. data/generated/google/apis/storage_v1/representations.rb +51 -0
  201. data/generated/google/apis/storage_v1/service.rb +182 -0
  202. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  203. data/generated/google/apis/storagetransfer_v1/classes.rb +732 -661
  204. data/generated/google/apis/storagetransfer_v1/representations.rb +132 -132
  205. data/generated/google/apis/storagetransfer_v1/service.rb +174 -197
  206. data/generated/google/apis/surveys_v2.rb +40 -0
  207. data/generated/google/apis/surveys_v2/classes.rb +806 -0
  208. data/generated/google/apis/surveys_v2/representations.rb +347 -0
  209. data/generated/google/apis/surveys_v2/service.rb +477 -0
  210. data/generated/google/apis/tagmanager_v2.rb +52 -0
  211. data/generated/google/apis/tagmanager_v2/classes.rb +2435 -0
  212. data/generated/google/apis/tagmanager_v2/representations.rb +993 -0
  213. data/generated/google/apis/tagmanager_v2/service.rb +2865 -0
  214. data/generated/google/apis/toolresults_v1beta3.rb +34 -0
  215. data/generated/google/apis/toolresults_v1beta3/classes.rb +2160 -0
  216. data/generated/google/apis/toolresults_v1beta3/representations.rb +729 -0
  217. data/generated/google/apis/toolresults_v1beta3/service.rb +1236 -0
  218. data/generated/google/apis/tracing_v1.rb +40 -0
  219. data/generated/google/apis/tracing_v1/classes.rb +664 -0
  220. data/generated/google/apis/tracing_v1/representations.rb +279 -0
  221. data/generated/google/apis/tracing_v1/service.rb +225 -0
  222. data/generated/google/apis/vision_v1.rb +1 -1
  223. data/generated/google/apis/vision_v1/classes.rb +1223 -1222
  224. data/generated/google/apis/vision_v1/representations.rb +234 -234
  225. data/generated/google/apis/vision_v1/service.rb +10 -10
  226. data/generated/google/apis/webfonts_v1.rb +33 -0
  227. data/generated/google/apis/webfonts_v1/classes.rb +113 -0
  228. data/generated/google/apis/webfonts_v1/representations.rb +62 -0
  229. data/generated/google/apis/webfonts_v1/service.rb +102 -0
  230. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  231. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  232. data/generated/google/apis/youtube_partner_v1/classes.rb +31 -0
  233. data/generated/google/apis/youtube_partner_v1/representations.rb +6 -0
  234. data/generated/google/apis/youtube_partner_v1/service.rb +41 -0
  235. data/generated/google/apis/youtube_v3/classes.rb +1 -0
  236. data/generated/google/apis/youtubereporting_v1.rb +4 -4
  237. data/generated/google/apis/youtubereporting_v1/classes.rb +76 -76
  238. data/generated/google/apis/youtubereporting_v1/representations.rb +25 -25
  239. data/generated/google/apis/youtubereporting_v1/service.rb +95 -95
  240. data/lib/google/apis/generator/annotator.rb +5 -4
  241. data/lib/google/apis/generator/templates/_class.tmpl +3 -0
  242. data/lib/google/apis/version.rb +1 -1
  243. data/samples/cli/lib/samples/adsense.rb +99 -0
  244. data/samples/cli/lib/samples/analytics.rb +18 -0
  245. data/samples/cli/lib/samples/gmail.rb +33 -0
  246. data/samples/cli/lib/samples/vision.rb +69 -0
  247. metadata +89 -4
  248. data/sync.rb +0 -71
@@ -66,6 +66,12 @@ module Google
66
66
 
67
67
  include Google::Apis::Core::JsonObjectSupport
68
68
  end
69
+
70
+ class TeamDriveTheme
71
+ class Representation < Google::Apis::Core::JsonRepresentation; end
72
+
73
+ include Google::Apis::Core::JsonObjectSupport
74
+ end
69
75
 
70
76
  include Google::Apis::Core::JsonObjectSupport
71
77
  end
@@ -277,6 +283,12 @@ module Google
277
283
  class TeamDrive
278
284
  class Representation < Google::Apis::Core::JsonRepresentation; end
279
285
 
286
+ class BackgroundImageFile
287
+ class Representation < Google::Apis::Core::JsonRepresentation; end
288
+
289
+ include Google::Apis::Core::JsonObjectSupport
290
+ end
291
+
280
292
  class Capabilities
281
293
  class Representation < Google::Apis::Core::JsonRepresentation; end
282
294
 
@@ -336,6 +348,8 @@ module Google
336
348
  property :remaining_change_ids, as: 'remainingChangeIds'
337
349
  property :root_folder_id, as: 'rootFolderId'
338
350
  property :self_link, as: 'selfLink'
351
+ collection :team_drive_themes, as: 'teamDriveThemes', class: Google::Apis::DriveV2::About::TeamDriveTheme, decorator: Google::Apis::DriveV2::About::TeamDriveTheme::Representation
352
+
339
353
  property :user, as: 'user', class: Google::Apis::DriveV2::User, decorator: Google::Apis::DriveV2::User::Representation
340
354
 
341
355
  end
@@ -396,6 +410,15 @@ module Google
396
410
  property :service_name, as: 'serviceName'
397
411
  end
398
412
  end
413
+
414
+ class TeamDriveTheme
415
+ # @private
416
+ class Representation < Google::Apis::Core::JsonRepresentation
417
+ property :background_image_link, as: 'backgroundImageLink'
418
+ property :color_rgb, as: 'colorRgb'
419
+ property :id, as: 'id'
420
+ end
421
+ end
399
422
  end
400
423
 
401
424
  class App
@@ -958,17 +981,33 @@ module Google
958
981
  class TeamDrive
959
982
  # @private
960
983
  class Representation < Google::Apis::Core::JsonRepresentation
984
+ property :background_image_file, as: 'backgroundImageFile', class: Google::Apis::DriveV2::TeamDrive::BackgroundImageFile, decorator: Google::Apis::DriveV2::TeamDrive::BackgroundImageFile::Representation
985
+
986
+ property :background_image_link, as: 'backgroundImageLink'
961
987
  property :capabilities, as: 'capabilities', class: Google::Apis::DriveV2::TeamDrive::Capabilities, decorator: Google::Apis::DriveV2::TeamDrive::Capabilities::Representation
962
988
 
989
+ property :color_rgb, as: 'colorRgb'
963
990
  property :id, as: 'id'
964
991
  property :kind, as: 'kind'
965
992
  property :name, as: 'name'
993
+ property :theme_id, as: 'themeId'
994
+ end
995
+
996
+ class BackgroundImageFile
997
+ # @private
998
+ class Representation < Google::Apis::Core::JsonRepresentation
999
+ property :id, as: 'id'
1000
+ property :width, as: 'width'
1001
+ property :x_coordinate, as: 'xCoordinate'
1002
+ property :y_coordinate, as: 'yCoordinate'
1003
+ end
966
1004
  end
967
1005
 
968
1006
  class Capabilities
969
1007
  # @private
970
1008
  class Representation < Google::Apis::Core::JsonRepresentation
971
1009
  property :can_add_children, as: 'canAddChildren'
1010
+ property :can_change_team_drive_background, as: 'canChangeTeamDriveBackground'
972
1011
  property :can_comment, as: 'canComment'
973
1012
  property :can_copy, as: 'canCopy'
974
1013
  property :can_delete_team_drive, as: 'canDeleteTeamDrive'
@@ -2932,7 +2932,7 @@ module Google
2932
2932
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2933
2933
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2934
2934
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2935
- def delete_teamdrife(team_drive_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2935
+ def delete_teamdrive(team_drive_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2936
2936
  command = make_simple_command(:delete, 'teamdrives/{teamDriveId}', options)
2937
2937
  command.params['teamDriveId'] = team_drive_id unless team_drive_id.nil?
2938
2938
  command.query['fields'] = fields unless fields.nil?
@@ -2965,7 +2965,7 @@ module Google
2965
2965
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2966
2966
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2967
2967
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2968
- def get_teamdrife(team_drive_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2968
+ def get_teamdrive(team_drive_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2969
2969
  command = make_simple_command(:get, 'teamdrives/{teamDriveId}', options)
2970
2970
  command.response_representation = Google::Apis::DriveV2::TeamDrive::Representation
2971
2971
  command.response_class = Google::Apis::DriveV2::TeamDrive
@@ -3005,7 +3005,7 @@ module Google
3005
3005
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3006
3006
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3007
3007
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3008
- def insert_teamdrife(request_id, team_drive_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3008
+ def insert_teamdrive(request_id, team_drive_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3009
3009
  command = make_simple_command(:post, 'teamdrives', options)
3010
3010
  command.request_representation = Google::Apis::DriveV2::TeamDrive::Representation
3011
3011
  command.request_object = team_drive_object
@@ -3081,7 +3081,7 @@ module Google
3081
3081
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3082
3082
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3083
3083
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3084
- def update_teamdrife(team_drive_id, team_drive_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3084
+ def update_teamdrive(team_drive_id, team_drive_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3085
3085
  command = make_simple_command(:put, 'teamdrives/{teamDriveId}', options)
3086
3086
  command.request_representation = Google::Apis::DriveV2::TeamDrive::Representation
3087
3087
  command.request_object = team_drive_object
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://developers.google.com/drive/
27
27
  module DriveV3
28
28
  VERSION = 'V3'
29
- REVISION = '20170320'
29
+ REVISION = '20170323'
30
30
 
31
31
  # View and manage the files in your Google Drive
32
32
  AUTH_DRIVE = 'https://www.googleapis.com/auth/drive'
@@ -68,6 +68,11 @@ module Google
68
68
  # @return [Google::Apis::DriveV3::About::StorageQuota]
69
69
  attr_accessor :storage_quota
70
70
 
71
+ # A list of themes that are supported for Team Drives.
72
+ # Corresponds to the JSON property `teamDriveThemes`
73
+ # @return [Array<Google::Apis::DriveV3::About::TeamDriveTheme>]
74
+ attr_accessor :team_drive_themes
75
+
71
76
  # Information about a Drive user.
72
77
  # Corresponds to the JSON property `user`
73
78
  # @return [Google::Apis::DriveV3::User]
@@ -87,6 +92,7 @@ module Google
87
92
  @max_import_sizes = args[:max_import_sizes] if args.key?(:max_import_sizes)
88
93
  @max_upload_size = args[:max_upload_size] if args.key?(:max_upload_size)
89
94
  @storage_quota = args[:storage_quota] if args.key?(:storage_quota)
95
+ @team_drive_themes = args[:team_drive_themes] if args.key?(:team_drive_themes)
90
96
  @user = args[:user] if args.key?(:user)
91
97
  end
92
98
 
@@ -127,6 +133,37 @@ module Google
127
133
  @usage_in_drive_trash = args[:usage_in_drive_trash] if args.key?(:usage_in_drive_trash)
128
134
  end
129
135
  end
136
+
137
+ #
138
+ class TeamDriveTheme
139
+ include Google::Apis::Core::Hashable
140
+
141
+ # A link to this Team Drive theme's background image.
142
+ # Corresponds to the JSON property `backgroundImageLink`
143
+ # @return [String]
144
+ attr_accessor :background_image_link
145
+
146
+ # The color of this Team Drive theme as an RGB hex string.
147
+ # Corresponds to the JSON property `colorRgb`
148
+ # @return [String]
149
+ attr_accessor :color_rgb
150
+
151
+ # The ID of the theme.
152
+ # Corresponds to the JSON property `id`
153
+ # @return [String]
154
+ attr_accessor :id
155
+
156
+ def initialize(**args)
157
+ update!(**args)
158
+ end
159
+
160
+ # Update properties of this object
161
+ def update!(**args)
162
+ @background_image_link = args[:background_image_link] if args.key?(:background_image_link)
163
+ @color_rgb = args[:color_rgb] if args.key?(:color_rgb)
164
+ @id = args[:id] if args.key?(:id)
165
+ end
166
+ end
130
167
  end
131
168
 
132
169
  # A change to a file or Team Drive.
@@ -482,7 +519,7 @@ module Google
482
519
  # @return [Hash<String,String>]
483
520
  attr_accessor :app_properties
484
521
 
485
- # Capabilities the current user has on the file. Each capability corresponds to
522
+ # Capabilities the current user has on this file. Each capability corresponds to
486
523
  # a fine-grained action that a user may take.
487
524
  # Corresponds to the JSON property `capabilities`
488
525
  # @return [Google::Apis::DriveV3::File::Capabilities]
@@ -848,52 +885,52 @@ module Google
848
885
  @writers_can_share = args[:writers_can_share] if args.key?(:writers_can_share)
849
886
  end
850
887
 
851
- # Capabilities the current user has on the file. Each capability corresponds to
888
+ # Capabilities the current user has on this file. Each capability corresponds to
852
889
  # a fine-grained action that a user may take.
853
890
  class Capabilities
854
891
  include Google::Apis::Core::Hashable
855
892
 
856
- # Whether the user can add children to this folder. This is always false when
857
- # the item is not a folder.
893
+ # Whether the current user can add children to this folder. This is always false
894
+ # when the item is not a folder.
858
895
  # Corresponds to the JSON property `canAddChildren`
859
896
  # @return [Boolean]
860
897
  attr_accessor :can_add_children
861
898
  alias_method :can_add_children?, :can_add_children
862
899
 
863
- # Whether the user can comment on the file.
900
+ # Whether the current user can comment on this file.
864
901
  # Corresponds to the JSON property `canComment`
865
902
  # @return [Boolean]
866
903
  attr_accessor :can_comment
867
904
  alias_method :can_comment?, :can_comment
868
905
 
869
- # Whether the user can copy the file. For a Team Drive item, whether non-folder
870
- # descendants of this item, or this item itself if it is not a folder, can be
871
- # copied.
906
+ # Whether the current user can copy this file. For a Team Drive item, whether
907
+ # the current user can copy non-folder descendants of this item, or this item
908
+ # itself if it is not a folder.
872
909
  # Corresponds to the JSON property `canCopy`
873
910
  # @return [Boolean]
874
911
  attr_accessor :can_copy
875
912
  alias_method :can_copy?, :can_copy
876
913
 
877
- # Whether the file can be deleted by the user.
914
+ # Whether the current user can delete this file.
878
915
  # Corresponds to the JSON property `canDelete`
879
916
  # @return [Boolean]
880
917
  attr_accessor :can_delete
881
918
  alias_method :can_delete?, :can_delete
882
919
 
883
- # Whether the file can be downloaded by the user.
920
+ # Whether the current user can download this file.
884
921
  # Corresponds to the JSON property `canDownload`
885
922
  # @return [Boolean]
886
923
  attr_accessor :can_download
887
924
  alias_method :can_download?, :can_download
888
925
 
889
- # Whether the user can edit the file's content.
926
+ # Whether the current user can edit this file.
890
927
  # Corresponds to the JSON property `canEdit`
891
928
  # @return [Boolean]
892
929
  attr_accessor :can_edit
893
930
  alias_method :can_edit?, :can_edit
894
931
 
895
- # Whether the user can list the children of this folder. This is always false
896
- # when the item is not a folder.
932
+ # Whether the current user can list the children of this folder. This is always
933
+ # false when the item is not a folder.
897
934
  # Corresponds to the JSON property `canListChildren`
898
935
  # @return [Boolean]
899
936
  attr_accessor :can_list_children
@@ -906,15 +943,16 @@ module Google
906
943
  attr_accessor :can_move_item_into_team_drive
907
944
  alias_method :can_move_item_into_team_drive?, :can_move_item_into_team_drive
908
945
 
909
- # Whether the user can move this Team Drive item by changing its parent. Note
910
- # that a request to change the parent for this item may still fail depending on
911
- # the new parent that is being added. Only populated for Team Drive files.
946
+ # Whether the current user can move this Team Drive item by changing its parent.
947
+ # Note that a request to change the parent for this item may still fail
948
+ # depending on the new parent that is being added. Only populated for Team Drive
949
+ # files.
912
950
  # Corresponds to the JSON property `canMoveTeamDriveItem`
913
951
  # @return [Boolean]
914
952
  attr_accessor :can_move_team_drive_item
915
953
  alias_method :can_move_team_drive_item?, :can_move_team_drive_item
916
954
 
917
- # Whether the user has read access to the Revisions resource of the file. For a
955
+ # Whether the current user can read the revisions resource of this file. For a
918
956
  # Team Drive item, whether revisions of non-folder descendants of this item, or
919
957
  # this item itself if it is not a folder, can be read.
920
958
  # Corresponds to the JSON property `canReadRevisions`
@@ -922,39 +960,39 @@ module Google
922
960
  attr_accessor :can_read_revisions
923
961
  alias_method :can_read_revisions?, :can_read_revisions
924
962
 
925
- # Whether the user has read access to the Team Drive to which this file belongs.
963
+ # Whether the current user can read the Team Drive to which this file belongs.
926
964
  # Only populated for Team Drive files.
927
965
  # Corresponds to the JSON property `canReadTeamDrive`
928
966
  # @return [Boolean]
929
967
  attr_accessor :can_read_team_drive
930
968
  alias_method :can_read_team_drive?, :can_read_team_drive
931
969
 
932
- # Whether the user can remove children from this folder. This is always false
933
- # when the item is not a folder.
970
+ # Whether the current user can remove children from this folder. This is always
971
+ # false when the item is not a folder.
934
972
  # Corresponds to the JSON property `canRemoveChildren`
935
973
  # @return [Boolean]
936
974
  attr_accessor :can_remove_children
937
975
  alias_method :can_remove_children?, :can_remove_children
938
976
 
939
- # Whether the file can be renamed by the user.
977
+ # Whether the current user can rename this file.
940
978
  # Corresponds to the JSON property `canRename`
941
979
  # @return [Boolean]
942
980
  attr_accessor :can_rename
943
981
  alias_method :can_rename?, :can_rename
944
982
 
945
- # Whether the user can modify the file's permissions and sharing settings.
983
+ # Whether the current user can modify the sharing settings for this file.
946
984
  # Corresponds to the JSON property `canShare`
947
985
  # @return [Boolean]
948
986
  attr_accessor :can_share
949
987
  alias_method :can_share?, :can_share
950
988
 
951
- # Whether the file can be trashed by the user.
989
+ # Whether the current user can move this file to trash.
952
990
  # Corresponds to the JSON property `canTrash`
953
991
  # @return [Boolean]
954
992
  attr_accessor :can_trash
955
993
  alias_method :can_trash?, :can_trash
956
994
 
957
- # Whether the file can be restored from the trash by the current user.
995
+ # Whether the current user can restore this file from trash.
958
996
  # Corresponds to the JSON property `canUntrash`
959
997
  # @return [Boolean]
960
998
  attr_accessor :can_untrash
@@ -1019,6 +1057,7 @@ module Google
1019
1057
 
1020
1058
  # The thumbnail data encoded with URL-safe Base64 (RFC 4648 section 5).
1021
1059
  # Corresponds to the JSON property `image`
1060
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
1022
1061
  # @return [String]
1023
1062
  attr_accessor :image
1024
1063
 
@@ -1388,7 +1427,7 @@ module Google
1388
1427
  # @return [String]
1389
1428
  attr_accessor :role
1390
1429
 
1391
- # Details of whether the Permissions on this Team Drive item are inherited or
1430
+ # Details of whether the permissions on this Team Drive item are inherited or
1392
1431
  # directly on this item. This is an output-only field which is present only for
1393
1432
  # Team Drive items.
1394
1433
  # Corresponds to the JSON property `teamDrivePermissionDetails`
@@ -1783,11 +1822,30 @@ module Google
1783
1822
  class TeamDrive
1784
1823
  include Google::Apis::Core::Hashable
1785
1824
 
1825
+ # An image file and cropping parameters from which a background image for this
1826
+ # Team Drive is set. This is a write only field that can only be set on a drive.
1827
+ # teamdrives.update request that does not set themeId. When specified, all
1828
+ # fields of the backgroundImageFile must be set.
1829
+ # Corresponds to the JSON property `backgroundImageFile`
1830
+ # @return [Google::Apis::DriveV3::TeamDrive::BackgroundImageFile]
1831
+ attr_accessor :background_image_file
1832
+
1833
+ # A short-lived link to this Team Drive's background image.
1834
+ # Corresponds to the JSON property `backgroundImageLink`
1835
+ # @return [String]
1836
+ attr_accessor :background_image_link
1837
+
1786
1838
  # Capabilities the current user has on this Team Drive.
1787
1839
  # Corresponds to the JSON property `capabilities`
1788
1840
  # @return [Google::Apis::DriveV3::TeamDrive::Capabilities]
1789
1841
  attr_accessor :capabilities
1790
1842
 
1843
+ # The color of this Team Drive as an RGB hex string. It can only be set on a
1844
+ # drive.teamdrives.update request that does not set themeId.
1845
+ # Corresponds to the JSON property `colorRgb`
1846
+ # @return [String]
1847
+ attr_accessor :color_rgb
1848
+
1791
1849
  # The ID of this Team Drive which is also the ID of the top level folder for
1792
1850
  # this Team Drive.
1793
1851
  # Corresponds to the JSON property `id`
@@ -1805,16 +1863,79 @@ module Google
1805
1863
  # @return [String]
1806
1864
  attr_accessor :name
1807
1865
 
1866
+ # The ID of the theme from which the background image and color will be set. The
1867
+ # set of possible teamDriveThemes can be retrieved from a drive.about.get
1868
+ # response. When not specified on a drive.teamdrives.create request, a random
1869
+ # theme is chosen from which the background image and color are set. This is a
1870
+ # write only field that can only be set on a request that does not set colorRgb
1871
+ # or backgroundImageFile.
1872
+ # Corresponds to the JSON property `themeId`
1873
+ # @return [String]
1874
+ attr_accessor :theme_id
1875
+
1808
1876
  def initialize(**args)
1809
1877
  update!(**args)
1810
1878
  end
1811
1879
 
1812
1880
  # Update properties of this object
1813
1881
  def update!(**args)
1882
+ @background_image_file = args[:background_image_file] if args.key?(:background_image_file)
1883
+ @background_image_link = args[:background_image_link] if args.key?(:background_image_link)
1814
1884
  @capabilities = args[:capabilities] if args.key?(:capabilities)
1885
+ @color_rgb = args[:color_rgb] if args.key?(:color_rgb)
1815
1886
  @id = args[:id] if args.key?(:id)
1816
1887
  @kind = args[:kind] if args.key?(:kind)
1817
1888
  @name = args[:name] if args.key?(:name)
1889
+ @theme_id = args[:theme_id] if args.key?(:theme_id)
1890
+ end
1891
+
1892
+ # An image file and cropping parameters from which a background image for this
1893
+ # Team Drive is set. This is a write only field that can only be set on a drive.
1894
+ # teamdrives.update request that does not set themeId. When specified, all
1895
+ # fields of the backgroundImageFile must be set.
1896
+ class BackgroundImageFile
1897
+ include Google::Apis::Core::Hashable
1898
+
1899
+ # The ID of an image file in Drive to use for the background image.
1900
+ # Corresponds to the JSON property `id`
1901
+ # @return [String]
1902
+ attr_accessor :id
1903
+
1904
+ # The width of the cropped image in the closed range of 0 to 1, which is the
1905
+ # width of the cropped image divided by the width of the entire image. The
1906
+ # height is computed by applying a width to height aspect ratio of 80 to 9. The
1907
+ # resulting image must be at least 1280 pixels wide and 144 pixels high.
1908
+ # Corresponds to the JSON property `width`
1909
+ # @return [Float]
1910
+ attr_accessor :width
1911
+
1912
+ # The X coordinate of the upper left corner of the cropping area in the
1913
+ # background image. This is a value in the closed range of 0 to 1 which is the
1914
+ # horizontal distance from the left side of the entire image to the left side of
1915
+ # the cropping area divided by the width of the entire image.
1916
+ # Corresponds to the JSON property `xCoordinate`
1917
+ # @return [Float]
1918
+ attr_accessor :x_coordinate
1919
+
1920
+ # The Y coordinate of the upper left corner of the cropping area in the
1921
+ # background image. This is a value in the closed range of 0 to 1 which is the
1922
+ # vertical distance from the top side of the entire image to the top side of the
1923
+ # cropping area divided by the height of the entire image.
1924
+ # Corresponds to the JSON property `yCoordinate`
1925
+ # @return [Float]
1926
+ attr_accessor :y_coordinate
1927
+
1928
+ def initialize(**args)
1929
+ update!(**args)
1930
+ end
1931
+
1932
+ # Update properties of this object
1933
+ def update!(**args)
1934
+ @id = args[:id] if args.key?(:id)
1935
+ @width = args[:width] if args.key?(:width)
1936
+ @x_coordinate = args[:x_coordinate] if args.key?(:x_coordinate)
1937
+ @y_coordinate = args[:y_coordinate] if args.key?(:y_coordinate)
1938
+ end
1818
1939
  end
1819
1940
 
1820
1941
  # Capabilities the current user has on this Team Drive.
@@ -1827,31 +1948,38 @@ module Google
1827
1948
  attr_accessor :can_add_children
1828
1949
  alias_method :can_add_children?, :can_add_children
1829
1950
 
1951
+ # Whether the current user can change the background of this Team Drive.
1952
+ # Corresponds to the JSON property `canChangeTeamDriveBackground`
1953
+ # @return [Boolean]
1954
+ attr_accessor :can_change_team_drive_background
1955
+ alias_method :can_change_team_drive_background?, :can_change_team_drive_background
1956
+
1830
1957
  # Whether the current user can comment on files in this Team Drive.
1831
1958
  # Corresponds to the JSON property `canComment`
1832
1959
  # @return [Boolean]
1833
1960
  attr_accessor :can_comment
1834
1961
  alias_method :can_comment?, :can_comment
1835
1962
 
1836
- # Whether files in this Team Drive can be copied by the current user.
1963
+ # Whether the current user can copy files in this Team Drive.
1837
1964
  # Corresponds to the JSON property `canCopy`
1838
1965
  # @return [Boolean]
1839
1966
  attr_accessor :can_copy
1840
1967
  alias_method :can_copy?, :can_copy
1841
1968
 
1842
- # Whether this Team Drive can be deleted by the current user.
1969
+ # Whether the current user can delete this Team Drive. Attempting to delete the
1970
+ # Team Drive may still fail if there are untrashed items inside the Team Drive.
1843
1971
  # Corresponds to the JSON property `canDeleteTeamDrive`
1844
1972
  # @return [Boolean]
1845
1973
  attr_accessor :can_delete_team_drive
1846
1974
  alias_method :can_delete_team_drive?, :can_delete_team_drive
1847
1975
 
1848
- # Whether files in this Team Drive can be downloaded by the current user.
1976
+ # Whether the current user can download files in this Team Drive.
1849
1977
  # Corresponds to the JSON property `canDownload`
1850
1978
  # @return [Boolean]
1851
1979
  attr_accessor :can_download
1852
1980
  alias_method :can_download?, :can_download
1853
1981
 
1854
- # Whether files in this Team Drive can be edited by the current user.
1982
+ # Whether the current user can edit files in this Team Drive
1855
1983
  # Corresponds to the JSON property `canEdit`
1856
1984
  # @return [Boolean]
1857
1985
  attr_accessor :can_edit
@@ -1870,8 +1998,8 @@ module Google
1870
1998
  attr_accessor :can_manage_members
1871
1999
  alias_method :can_manage_members?, :can_manage_members
1872
2000
 
1873
- # Whether the current user has read access to the Revisions resource of files in
1874
- # this Team Drive.
2001
+ # Whether the current user can read the revisions resource of files in this Team
2002
+ # Drive.
1875
2003
  # Corresponds to the JSON property `canReadRevisions`
1876
2004
  # @return [Boolean]
1877
2005
  attr_accessor :can_read_revisions
@@ -1883,13 +2011,13 @@ module Google
1883
2011
  attr_accessor :can_remove_children
1884
2012
  alias_method :can_remove_children?, :can_remove_children
1885
2013
 
1886
- # Whether files or folders in this Team Drive can be renamed by the current user.
2014
+ # Whether the current user can rename files or folders in this Team Drive.
1887
2015
  # Corresponds to the JSON property `canRename`
1888
2016
  # @return [Boolean]
1889
2017
  attr_accessor :can_rename
1890
2018
  alias_method :can_rename?, :can_rename
1891
2019
 
1892
- # Whether this Team Drive can be renamed by the current user.
2020
+ # Whether the current user can rename this Team Drive.
1893
2021
  # Corresponds to the JSON property `canRenameTeamDrive`
1894
2022
  # @return [Boolean]
1895
2023
  attr_accessor :can_rename_team_drive
@@ -1908,6 +2036,7 @@ module Google
1908
2036
  # Update properties of this object
1909
2037
  def update!(**args)
1910
2038
  @can_add_children = args[:can_add_children] if args.key?(:can_add_children)
2039
+ @can_change_team_drive_background = args[:can_change_team_drive_background] if args.key?(:can_change_team_drive_background)
1911
2040
  @can_comment = args[:can_comment] if args.key?(:can_comment)
1912
2041
  @can_copy = args[:can_copy] if args.key?(:can_copy)
1913
2042
  @can_delete_team_drive = args[:can_delete_team_drive] if args.key?(:can_delete_team_drive)