google-api-client 0.10.2 → 0.10.3

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 (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
@@ -47,10 +47,11 @@ module Google
47
47
  super('https://datastore.googleapis.com/', '')
48
48
  end
49
49
 
50
- # Queries for entities.
50
+ # Allocates IDs for the given keys, which is useful for referencing an entity
51
+ # before it is inserted.
51
52
  # @param [String] project_id
52
53
  # The ID of the project against which to make the request.
53
- # @param [Google::Apis::DatastoreV1::RunQueryRequest] run_query_request_object
54
+ # @param [Google::Apis::DatastoreV1::AllocateIdsRequest] allocate_ids_request_object
54
55
  # @param [String] quota_user
55
56
  # Available to use for quota purposes for server-side applications. Can be any
56
57
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -60,20 +61,20 @@ module Google
60
61
  # Request-specific options
61
62
  #
62
63
  # @yield [result, err] Result & error if block supplied
63
- # @yieldparam result [Google::Apis::DatastoreV1::RunQueryResponse] parsed result object
64
+ # @yieldparam result [Google::Apis::DatastoreV1::AllocateIdsResponse] parsed result object
64
65
  # @yieldparam err [StandardError] error object if request failed
65
66
  #
66
- # @return [Google::Apis::DatastoreV1::RunQueryResponse]
67
+ # @return [Google::Apis::DatastoreV1::AllocateIdsResponse]
67
68
  #
68
69
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
69
70
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
70
71
  # @raise [Google::Apis::AuthorizationError] Authorization is required
71
- def run_project_query(project_id, run_query_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
72
- command = make_simple_command(:post, 'v1/projects/{projectId}:runQuery', options)
73
- command.request_representation = Google::Apis::DatastoreV1::RunQueryRequest::Representation
74
- command.request_object = run_query_request_object
75
- command.response_representation = Google::Apis::DatastoreV1::RunQueryResponse::Representation
76
- command.response_class = Google::Apis::DatastoreV1::RunQueryResponse
72
+ def allocate_project_ids(project_id, allocate_ids_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
73
+ command = make_simple_command(:post, 'v1/projects/{projectId}:allocateIds', options)
74
+ command.request_representation = Google::Apis::DatastoreV1::AllocateIdsRequest::Representation
75
+ command.request_object = allocate_ids_request_object
76
+ command.response_representation = Google::Apis::DatastoreV1::AllocateIdsResponse::Representation
77
+ command.response_class = Google::Apis::DatastoreV1::AllocateIdsResponse
77
78
  command.params['projectId'] = project_id unless project_id.nil?
78
79
  command.query['quotaUser'] = quota_user unless quota_user.nil?
79
80
  command.query['fields'] = fields unless fields.nil?
@@ -113,11 +114,11 @@ module Google
113
114
  execute_or_queue_command(command, &block)
114
115
  end
115
116
 
116
- # Allocates IDs for the given keys, which is useful for referencing an entity
117
- # before it is inserted.
117
+ # Commits a transaction, optionally creating, deleting or modifying some
118
+ # entities.
118
119
  # @param [String] project_id
119
120
  # The ID of the project against which to make the request.
120
- # @param [Google::Apis::DatastoreV1::AllocateIdsRequest] allocate_ids_request_object
121
+ # @param [Google::Apis::DatastoreV1::CommitRequest] commit_request_object
121
122
  # @param [String] quota_user
122
123
  # Available to use for quota purposes for server-side applications. Can be any
123
124
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -127,30 +128,30 @@ module Google
127
128
  # Request-specific options
128
129
  #
129
130
  # @yield [result, err] Result & error if block supplied
130
- # @yieldparam result [Google::Apis::DatastoreV1::AllocateIdsResponse] parsed result object
131
+ # @yieldparam result [Google::Apis::DatastoreV1::CommitResponse] parsed result object
131
132
  # @yieldparam err [StandardError] error object if request failed
132
133
  #
133
- # @return [Google::Apis::DatastoreV1::AllocateIdsResponse]
134
+ # @return [Google::Apis::DatastoreV1::CommitResponse]
134
135
  #
135
136
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
136
137
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
137
138
  # @raise [Google::Apis::AuthorizationError] Authorization is required
138
- def allocate_project_ids(project_id, allocate_ids_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
139
- command = make_simple_command(:post, 'v1/projects/{projectId}:allocateIds', options)
140
- command.request_representation = Google::Apis::DatastoreV1::AllocateIdsRequest::Representation
141
- command.request_object = allocate_ids_request_object
142
- command.response_representation = Google::Apis::DatastoreV1::AllocateIdsResponse::Representation
143
- command.response_class = Google::Apis::DatastoreV1::AllocateIdsResponse
139
+ def commit_project(project_id, commit_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
140
+ command = make_simple_command(:post, 'v1/projects/{projectId}:commit', options)
141
+ command.request_representation = Google::Apis::DatastoreV1::CommitRequest::Representation
142
+ command.request_object = commit_request_object
143
+ command.response_representation = Google::Apis::DatastoreV1::CommitResponse::Representation
144
+ command.response_class = Google::Apis::DatastoreV1::CommitResponse
144
145
  command.params['projectId'] = project_id unless project_id.nil?
145
146
  command.query['quotaUser'] = quota_user unless quota_user.nil?
146
147
  command.query['fields'] = fields unless fields.nil?
147
148
  execute_or_queue_command(command, &block)
148
149
  end
149
150
 
150
- # Looks up entities by key.
151
+ # Queries for entities.
151
152
  # @param [String] project_id
152
153
  # The ID of the project against which to make the request.
153
- # @param [Google::Apis::DatastoreV1::LookupRequest] lookup_request_object
154
+ # @param [Google::Apis::DatastoreV1::RunQueryRequest] run_query_request_object
154
155
  # @param [String] quota_user
155
156
  # Available to use for quota purposes for server-side applications. Can be any
156
157
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -160,31 +161,30 @@ module Google
160
161
  # Request-specific options
161
162
  #
162
163
  # @yield [result, err] Result & error if block supplied
163
- # @yieldparam result [Google::Apis::DatastoreV1::LookupResponse] parsed result object
164
+ # @yieldparam result [Google::Apis::DatastoreV1::RunQueryResponse] parsed result object
164
165
  # @yieldparam err [StandardError] error object if request failed
165
166
  #
166
- # @return [Google::Apis::DatastoreV1::LookupResponse]
167
+ # @return [Google::Apis::DatastoreV1::RunQueryResponse]
167
168
  #
168
169
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
169
170
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
170
171
  # @raise [Google::Apis::AuthorizationError] Authorization is required
171
- def lookup_project(project_id, lookup_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
172
- command = make_simple_command(:post, 'v1/projects/{projectId}:lookup', options)
173
- command.request_representation = Google::Apis::DatastoreV1::LookupRequest::Representation
174
- command.request_object = lookup_request_object
175
- command.response_representation = Google::Apis::DatastoreV1::LookupResponse::Representation
176
- command.response_class = Google::Apis::DatastoreV1::LookupResponse
172
+ def run_project_query(project_id, run_query_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
173
+ command = make_simple_command(:post, 'v1/projects/{projectId}:runQuery', options)
174
+ command.request_representation = Google::Apis::DatastoreV1::RunQueryRequest::Representation
175
+ command.request_object = run_query_request_object
176
+ command.response_representation = Google::Apis::DatastoreV1::RunQueryResponse::Representation
177
+ command.response_class = Google::Apis::DatastoreV1::RunQueryResponse
177
178
  command.params['projectId'] = project_id unless project_id.nil?
178
179
  command.query['quotaUser'] = quota_user unless quota_user.nil?
179
180
  command.query['fields'] = fields unless fields.nil?
180
181
  execute_or_queue_command(command, &block)
181
182
  end
182
183
 
183
- # Commits a transaction, optionally creating, deleting or modifying some
184
- # entities.
184
+ # Rolls back a transaction.
185
185
  # @param [String] project_id
186
186
  # The ID of the project against which to make the request.
187
- # @param [Google::Apis::DatastoreV1::CommitRequest] commit_request_object
187
+ # @param [Google::Apis::DatastoreV1::RollbackRequest] rollback_request_object
188
188
  # @param [String] quota_user
189
189
  # Available to use for quota purposes for server-side applications. Can be any
190
190
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -194,30 +194,30 @@ module Google
194
194
  # Request-specific options
195
195
  #
196
196
  # @yield [result, err] Result & error if block supplied
197
- # @yieldparam result [Google::Apis::DatastoreV1::CommitResponse] parsed result object
197
+ # @yieldparam result [Google::Apis::DatastoreV1::RollbackResponse] parsed result object
198
198
  # @yieldparam err [StandardError] error object if request failed
199
199
  #
200
- # @return [Google::Apis::DatastoreV1::CommitResponse]
200
+ # @return [Google::Apis::DatastoreV1::RollbackResponse]
201
201
  #
202
202
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
203
203
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
204
204
  # @raise [Google::Apis::AuthorizationError] Authorization is required
205
- def commit_project(project_id, commit_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
206
- command = make_simple_command(:post, 'v1/projects/{projectId}:commit', options)
207
- command.request_representation = Google::Apis::DatastoreV1::CommitRequest::Representation
208
- command.request_object = commit_request_object
209
- command.response_representation = Google::Apis::DatastoreV1::CommitResponse::Representation
210
- command.response_class = Google::Apis::DatastoreV1::CommitResponse
205
+ def rollback_project(project_id, rollback_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
206
+ command = make_simple_command(:post, 'v1/projects/{projectId}:rollback', options)
207
+ command.request_representation = Google::Apis::DatastoreV1::RollbackRequest::Representation
208
+ command.request_object = rollback_request_object
209
+ command.response_representation = Google::Apis::DatastoreV1::RollbackResponse::Representation
210
+ command.response_class = Google::Apis::DatastoreV1::RollbackResponse
211
211
  command.params['projectId'] = project_id unless project_id.nil?
212
212
  command.query['quotaUser'] = quota_user unless quota_user.nil?
213
213
  command.query['fields'] = fields unless fields.nil?
214
214
  execute_or_queue_command(command, &block)
215
215
  end
216
216
 
217
- # Rolls back a transaction.
217
+ # Looks up entities by key.
218
218
  # @param [String] project_id
219
219
  # The ID of the project against which to make the request.
220
- # @param [Google::Apis::DatastoreV1::RollbackRequest] rollback_request_object
220
+ # @param [Google::Apis::DatastoreV1::LookupRequest] lookup_request_object
221
221
  # @param [String] quota_user
222
222
  # Available to use for quota purposes for server-side applications. Can be any
223
223
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -227,20 +227,20 @@ module Google
227
227
  # Request-specific options
228
228
  #
229
229
  # @yield [result, err] Result & error if block supplied
230
- # @yieldparam result [Google::Apis::DatastoreV1::RollbackResponse] parsed result object
230
+ # @yieldparam result [Google::Apis::DatastoreV1::LookupResponse] parsed result object
231
231
  # @yieldparam err [StandardError] error object if request failed
232
232
  #
233
- # @return [Google::Apis::DatastoreV1::RollbackResponse]
233
+ # @return [Google::Apis::DatastoreV1::LookupResponse]
234
234
  #
235
235
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
236
236
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
237
237
  # @raise [Google::Apis::AuthorizationError] Authorization is required
238
- def rollback_project(project_id, rollback_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
239
- command = make_simple_command(:post, 'v1/projects/{projectId}:rollback', options)
240
- command.request_representation = Google::Apis::DatastoreV1::RollbackRequest::Representation
241
- command.request_object = rollback_request_object
242
- command.response_representation = Google::Apis::DatastoreV1::RollbackResponse::Representation
243
- command.response_class = Google::Apis::DatastoreV1::RollbackResponse
238
+ def lookup_project(project_id, lookup_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
239
+ command = make_simple_command(:post, 'v1/projects/{projectId}:lookup', options)
240
+ command.request_representation = Google::Apis::DatastoreV1::LookupRequest::Representation
241
+ command.request_object = lookup_request_object
242
+ command.response_representation = Google::Apis::DatastoreV1::LookupResponse::Representation
243
+ command.response_class = Google::Apis::DatastoreV1::LookupResponse
244
244
  command.params['projectId'] = project_id unless project_id.nil?
245
245
  command.query['quotaUser'] = quota_user unless quota_user.nil?
246
246
  command.query['fields'] = fields unless fields.nil?
@@ -225,6 +225,7 @@ module Google
225
225
  # every request to modify data. To get the latest fingerprint value, perform a
226
226
  # get() request to a deployment.
227
227
  # Corresponds to the JSON property `fingerprint`
228
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
228
229
  # @return [String]
229
230
  attr_accessor :fingerprint
230
231
 
@@ -405,6 +406,7 @@ module Google
405
406
  # every request to modify a deployment. To get the latest fingerprint value,
406
407
  # perform a get() request on the deployment.
407
408
  # Corresponds to the JSON property `fingerprint`
409
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
408
410
  # @return [String]
409
411
  attr_accessor :fingerprint
410
412
 
@@ -458,6 +460,7 @@ module Google
458
460
  # every request to modify a deployment. To get the latest fingerprint value,
459
461
  # perform a get() request on the deployment.
460
462
  # Corresponds to the JSON property `fingerprint`
463
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
461
464
  # @return [String]
462
465
  attr_accessor :fingerprint
463
466
 
@@ -981,6 +984,7 @@ module Google
981
984
  # If no `etag` is provided in the call to `setIamPolicy`, then the existing
982
985
  # policy is overwritten blindly.
983
986
  # Corresponds to the JSON property `etag`
987
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
984
988
  # @return [String]
985
989
  attr_accessor :etag
986
990
 
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://developers.google.com/doubleclick-search/
27
27
  module DoubleclicksearchV2
28
28
  VERSION = 'V2'
29
- REVISION = '20170314'
29
+ REVISION = '20170320'
30
30
 
31
31
  # View and manage your advertising data in DoubleClick Search
32
32
  AUTH_DOUBLECLICKSEARCH = 'https://www.googleapis.com/auth/doubleclicksearch'
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://developers.google.com/drive/
27
27
  module DriveV2
28
28
  VERSION = 'V2'
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'
@@ -152,6 +152,11 @@ module Google
152
152
  # @return [String]
153
153
  attr_accessor :self_link
154
154
 
155
+ # A list of themes that are supported for Team Drives.
156
+ # Corresponds to the JSON property `teamDriveThemes`
157
+ # @return [Array<Google::Apis::DriveV2::About::TeamDriveTheme>]
158
+ attr_accessor :team_drive_themes
159
+
155
160
  # Information about a Drive user.
156
161
  # Corresponds to the JSON property `user`
157
162
  # @return [Google::Apis::DriveV2::User]
@@ -186,6 +191,7 @@ module Google
186
191
  @remaining_change_ids = args[:remaining_change_ids] if args.key?(:remaining_change_ids)
187
192
  @root_folder_id = args[:root_folder_id] if args.key?(:root_folder_id)
188
193
  @self_link = args[:self_link] if args.key?(:self_link)
194
+ @team_drive_themes = args[:team_drive_themes] if args.key?(:team_drive_themes)
189
195
  @user = args[:user] if args.key?(:user)
190
196
  end
191
197
 
@@ -363,6 +369,37 @@ module Google
363
369
  @service_name = args[:service_name] if args.key?(:service_name)
364
370
  end
365
371
  end
372
+
373
+ #
374
+ class TeamDriveTheme
375
+ include Google::Apis::Core::Hashable
376
+
377
+ # A link to this Team Drive theme's background image.
378
+ # Corresponds to the JSON property `backgroundImageLink`
379
+ # @return [String]
380
+ attr_accessor :background_image_link
381
+
382
+ # The color of this Team Drive theme as an RGB hex string.
383
+ # Corresponds to the JSON property `colorRgb`
384
+ # @return [String]
385
+ attr_accessor :color_rgb
386
+
387
+ # The ID of the theme.
388
+ # Corresponds to the JSON property `id`
389
+ # @return [String]
390
+ attr_accessor :id
391
+
392
+ def initialize(**args)
393
+ update!(**args)
394
+ end
395
+
396
+ # Update properties of this object
397
+ def update!(**args)
398
+ @background_image_link = args[:background_image_link] if args.key?(:background_image_link)
399
+ @color_rgb = args[:color_rgb] if args.key?(:color_rgb)
400
+ @id = args[:id] if args.key?(:id)
401
+ end
402
+ end
366
403
  end
367
404
 
368
405
  # The apps resource provides a list of the apps that a user has installed, with
@@ -1248,28 +1285,25 @@ module Google
1248
1285
  attr_accessor :app_data_contents
1249
1286
  alias_method :app_data_contents?, :app_data_contents
1250
1287
 
1251
- # Whether the current user can comment on the file. Deprecated: use capabilities/
1252
- # canComment.
1288
+ # Deprecated: use capabilities/canComment.
1253
1289
  # Corresponds to the JSON property `canComment`
1254
1290
  # @return [Boolean]
1255
1291
  attr_accessor :can_comment
1256
1292
  alias_method :can_comment?, :can_comment
1257
1293
 
1258
- # Whether the current user has read access to the Revisions resource of the file.
1259
1294
  # Deprecated: use capabilities/canReadRevisions.
1260
1295
  # Corresponds to the JSON property `canReadRevisions`
1261
1296
  # @return [Boolean]
1262
1297
  attr_accessor :can_read_revisions
1263
1298
  alias_method :can_read_revisions?, :can_read_revisions
1264
1299
 
1265
- # Capabilities the current user has on the file. Each capability corresponds to
1300
+ # Capabilities the current user has on this file. Each capability corresponds to
1266
1301
  # a fine-grained action that a user may take.
1267
1302
  # Corresponds to the JSON property `capabilities`
1268
1303
  # @return [Google::Apis::DriveV2::File::Capabilities]
1269
1304
  attr_accessor :capabilities
1270
1305
 
1271
- # Whether the file can be copied by the current user. Deprecated: use
1272
- # capabilities/canCopy.
1306
+ # Deprecated: use capabilities/canCopy.
1273
1307
  # Corresponds to the JSON property `copyable`
1274
1308
  # @return [Boolean]
1275
1309
  attr_accessor :copyable
@@ -1296,8 +1330,7 @@ module Google
1296
1330
  # @return [String]
1297
1331
  attr_accessor :download_url
1298
1332
 
1299
- # Whether the file can be edited by the current user. Deprecated: use
1300
- # capabilities/canEdit.
1333
+ # Deprecated: use capabilities/canEdit.
1301
1334
  # Corresponds to the JSON property `editable`
1302
1335
  # @return [Boolean]
1303
1336
  attr_accessor :editable
@@ -1519,7 +1552,6 @@ module Google
1519
1552
  # @return [String]
1520
1553
  attr_accessor :self_link
1521
1554
 
1522
- # Whether the file's sharing settings can be modified by the current user.
1523
1555
  # Deprecated: use capabilities/canShare.
1524
1556
  # Corresponds to the JSON property `shareable`
1525
1557
  # @return [Boolean]
@@ -1699,7 +1731,7 @@ module Google
1699
1731
  @writers_can_share = args[:writers_can_share] if args.key?(:writers_can_share)
1700
1732
  end
1701
1733
 
1702
- # Capabilities the current user has on the file. Each capability corresponds to
1734
+ # Capabilities the current user has on this file. Each capability corresponds to
1703
1735
  # a fine-grained action that a user may take.
1704
1736
  class Capabilities
1705
1737
  include Google::Apis::Core::Hashable
@@ -1711,33 +1743,33 @@ module Google
1711
1743
  attr_accessor :can_add_children
1712
1744
  alias_method :can_add_children?, :can_add_children
1713
1745
 
1714
- # Whether the current user can comment on the file.
1746
+ # Whether the current user can comment on this file.
1715
1747
  # Corresponds to the JSON property `canComment`
1716
1748
  # @return [Boolean]
1717
1749
  attr_accessor :can_comment
1718
1750
  alias_method :can_comment?, :can_comment
1719
1751
 
1720
- # Whether the file can be copied by the current user. For a Team Drive item,
1721
- # whether non-folder descendants of this item, or this item itself if it is not
1722
- # a folder, can be copied.
1752
+ # Whether the current user can copy this file. For a Team Drive item, whether
1753
+ # the current user can copy non-folder descendants of this item, or this item
1754
+ # itself if it is not a folder.
1723
1755
  # Corresponds to the JSON property `canCopy`
1724
1756
  # @return [Boolean]
1725
1757
  attr_accessor :can_copy
1726
1758
  alias_method :can_copy?, :can_copy
1727
1759
 
1728
- # Whether the file can be deleted by the current user.
1760
+ # Whether the current user can delete this file.
1729
1761
  # Corresponds to the JSON property `canDelete`
1730
1762
  # @return [Boolean]
1731
1763
  attr_accessor :can_delete
1732
1764
  alias_method :can_delete?, :can_delete
1733
1765
 
1734
- # Whether the file can be downloaded by the current user.
1766
+ # Whether the current user can download this file.
1735
1767
  # Corresponds to the JSON property `canDownload`
1736
1768
  # @return [Boolean]
1737
1769
  attr_accessor :can_download
1738
1770
  alias_method :can_download?, :can_download
1739
1771
 
1740
- # Whether the file can be edited by the current user.
1772
+ # Whether the current user can edit this file.
1741
1773
  # Corresponds to the JSON property `canEdit`
1742
1774
  # @return [Boolean]
1743
1775
  attr_accessor :can_edit
@@ -1766,16 +1798,16 @@ module Google
1766
1798
  attr_accessor :can_move_team_drive_item
1767
1799
  alias_method :can_move_team_drive_item?, :can_move_team_drive_item
1768
1800
 
1769
- # Whether the current user has read access to the Revisions resource of the file.
1770
- # For a Team Drive item, whether revisions of non-folder descendants of this
1771
- # item, or this item itself if it is not a folder, can be read.
1801
+ # Whether the current user can read the revisions resource of this file. For a
1802
+ # Team Drive item, whether revisions of non-folder descendants of this item, or
1803
+ # this item itself if it is not a folder, can be read.
1772
1804
  # Corresponds to the JSON property `canReadRevisions`
1773
1805
  # @return [Boolean]
1774
1806
  attr_accessor :can_read_revisions
1775
1807
  alias_method :can_read_revisions?, :can_read_revisions
1776
1808
 
1777
- # Whether the current user has read access to the Team Drive to which this file
1778
- # belongs. Only populated for Team Drive files.
1809
+ # Whether the current user can read the Team Drive to which this file belongs.
1810
+ # Only populated for Team Drive files.
1779
1811
  # Corresponds to the JSON property `canReadTeamDrive`
1780
1812
  # @return [Boolean]
1781
1813
  attr_accessor :can_read_team_drive
@@ -1788,25 +1820,25 @@ module Google
1788
1820
  attr_accessor :can_remove_children
1789
1821
  alias_method :can_remove_children?, :can_remove_children
1790
1822
 
1791
- # Whether the file can be renamed by the current user.
1823
+ # Whether the current user can rename this file.
1792
1824
  # Corresponds to the JSON property `canRename`
1793
1825
  # @return [Boolean]
1794
1826
  attr_accessor :can_rename
1795
1827
  alias_method :can_rename?, :can_rename
1796
1828
 
1797
- # Whether the file's sharing settings can be modified by the current user.
1829
+ # Whether the current user can modify the sharing settings for this file.
1798
1830
  # Corresponds to the JSON property `canShare`
1799
1831
  # @return [Boolean]
1800
1832
  attr_accessor :can_share
1801
1833
  alias_method :can_share?, :can_share
1802
1834
 
1803
- # Whether the file can be trashed by the current user.
1835
+ # Whether the current user can move this file to trash.
1804
1836
  # Corresponds to the JSON property `canTrash`
1805
1837
  # @return [Boolean]
1806
1838
  attr_accessor :can_trash
1807
1839
  alias_method :can_trash?, :can_trash
1808
1840
 
1809
- # Whether the file can be restored from the trash by the current user.
1841
+ # Whether the current user can restore this file from trash.
1810
1842
  # Corresponds to the JSON property `canUntrash`
1811
1843
  # @return [Boolean]
1812
1844
  attr_accessor :can_untrash
@@ -2094,6 +2126,7 @@ module Google
2094
2126
  # The URL-safe Base64 encoded bytes of the thumbnail image. It should conform to
2095
2127
  # RFC 4648 section 5.
2096
2128
  # Corresponds to the JSON property `image`
2129
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
2097
2130
  # @return [String]
2098
2131
  attr_accessor :image
2099
2132
 
@@ -2402,7 +2435,7 @@ module Google
2402
2435
  # @return [String]
2403
2436
  attr_accessor :self_link
2404
2437
 
2405
- # Details of whether the Permissions on this Team Drive item are inherited or
2438
+ # Details of whether the permissions on this Team Drive item are inherited or
2406
2439
  # directly on this item. This is an output-only field which is present only for
2407
2440
  # Team Drive items.
2408
2441
  # Corresponds to the JSON property `teamDrivePermissionDetails`
@@ -2888,11 +2921,30 @@ module Google
2888
2921
  class TeamDrive
2889
2922
  include Google::Apis::Core::Hashable
2890
2923
 
2924
+ # An image file and cropping parameters from which a background image for this
2925
+ # Team Drive is set. This is a write only field that can only be set on a drive.
2926
+ # teamdrives.update request that does not set themeId. When specified, all
2927
+ # fields of the backgroundImageFile must be set.
2928
+ # Corresponds to the JSON property `backgroundImageFile`
2929
+ # @return [Google::Apis::DriveV2::TeamDrive::BackgroundImageFile]
2930
+ attr_accessor :background_image_file
2931
+
2932
+ # A short-lived link to this Team Drive's background image.
2933
+ # Corresponds to the JSON property `backgroundImageLink`
2934
+ # @return [String]
2935
+ attr_accessor :background_image_link
2936
+
2891
2937
  # Capabilities the current user has on this Team Drive.
2892
2938
  # Corresponds to the JSON property `capabilities`
2893
2939
  # @return [Google::Apis::DriveV2::TeamDrive::Capabilities]
2894
2940
  attr_accessor :capabilities
2895
2941
 
2942
+ # The color of this Team Drive as an RGB hex string. It can only be set on a
2943
+ # drive.teamdrives.update request that does not set themeId.
2944
+ # Corresponds to the JSON property `colorRgb`
2945
+ # @return [String]
2946
+ attr_accessor :color_rgb
2947
+
2896
2948
  # The ID of this Team Drive which is also the ID of the top level folder for
2897
2949
  # this Team Drive.
2898
2950
  # Corresponds to the JSON property `id`
@@ -2909,16 +2961,79 @@ module Google
2909
2961
  # @return [String]
2910
2962
  attr_accessor :name
2911
2963
 
2964
+ # The ID of the theme from which the background image and color will be set. The
2965
+ # set of possible teamDriveThemes can be retrieved from a drive.about.get
2966
+ # response. When not specified on a drive.teamdrives.insert request, a random
2967
+ # theme is chosen from which the background image and color are set. This is a
2968
+ # write only field that can only be set on a request that does not set colorRgb
2969
+ # or backgroundImageFile.
2970
+ # Corresponds to the JSON property `themeId`
2971
+ # @return [String]
2972
+ attr_accessor :theme_id
2973
+
2912
2974
  def initialize(**args)
2913
2975
  update!(**args)
2914
2976
  end
2915
2977
 
2916
2978
  # Update properties of this object
2917
2979
  def update!(**args)
2980
+ @background_image_file = args[:background_image_file] if args.key?(:background_image_file)
2981
+ @background_image_link = args[:background_image_link] if args.key?(:background_image_link)
2918
2982
  @capabilities = args[:capabilities] if args.key?(:capabilities)
2983
+ @color_rgb = args[:color_rgb] if args.key?(:color_rgb)
2919
2984
  @id = args[:id] if args.key?(:id)
2920
2985
  @kind = args[:kind] if args.key?(:kind)
2921
2986
  @name = args[:name] if args.key?(:name)
2987
+ @theme_id = args[:theme_id] if args.key?(:theme_id)
2988
+ end
2989
+
2990
+ # An image file and cropping parameters from which a background image for this
2991
+ # Team Drive is set. This is a write only field that can only be set on a drive.
2992
+ # teamdrives.update request that does not set themeId. When specified, all
2993
+ # fields of the backgroundImageFile must be set.
2994
+ class BackgroundImageFile
2995
+ include Google::Apis::Core::Hashable
2996
+
2997
+ # The ID of an image file in Drive to use for the background image.
2998
+ # Corresponds to the JSON property `id`
2999
+ # @return [String]
3000
+ attr_accessor :id
3001
+
3002
+ # The width of the cropped image in the closed range of 0 to 1, which is the
3003
+ # width of the cropped image divided by the width of the entire image. The
3004
+ # height is computed by applying a width to height aspect ratio of 80 to 9. The
3005
+ # resulting image must be at least 1280 pixels wide and 144 pixels high.
3006
+ # Corresponds to the JSON property `width`
3007
+ # @return [Float]
3008
+ attr_accessor :width
3009
+
3010
+ # The X coordinate of the upper left corner of the cropping area in the
3011
+ # background image. This is a value in the closed range of 0 to 1 which is the
3012
+ # horizontal distance from the left side of the entire image to the left side of
3013
+ # the cropping area divided by the width of the entire image.
3014
+ # Corresponds to the JSON property `xCoordinate`
3015
+ # @return [Float]
3016
+ attr_accessor :x_coordinate
3017
+
3018
+ # The Y coordinate of the upper left corner of the cropping area in the
3019
+ # background image. This is a value in the closed range of 0 to 1 which is the
3020
+ # vertical distance from the top side of the entire image to the top side of the
3021
+ # cropping area divided by the height of the entire image.
3022
+ # Corresponds to the JSON property `yCoordinate`
3023
+ # @return [Float]
3024
+ attr_accessor :y_coordinate
3025
+
3026
+ def initialize(**args)
3027
+ update!(**args)
3028
+ end
3029
+
3030
+ # Update properties of this object
3031
+ def update!(**args)
3032
+ @id = args[:id] if args.key?(:id)
3033
+ @width = args[:width] if args.key?(:width)
3034
+ @x_coordinate = args[:x_coordinate] if args.key?(:x_coordinate)
3035
+ @y_coordinate = args[:y_coordinate] if args.key?(:y_coordinate)
3036
+ end
2922
3037
  end
2923
3038
 
2924
3039
  # Capabilities the current user has on this Team Drive.
@@ -2931,31 +3046,38 @@ module Google
2931
3046
  attr_accessor :can_add_children
2932
3047
  alias_method :can_add_children?, :can_add_children
2933
3048
 
3049
+ # Whether the current user can change the background of this Team Drive.
3050
+ # Corresponds to the JSON property `canChangeTeamDriveBackground`
3051
+ # @return [Boolean]
3052
+ attr_accessor :can_change_team_drive_background
3053
+ alias_method :can_change_team_drive_background?, :can_change_team_drive_background
3054
+
2934
3055
  # Whether the current user can comment on files in this Team Drive.
2935
3056
  # Corresponds to the JSON property `canComment`
2936
3057
  # @return [Boolean]
2937
3058
  attr_accessor :can_comment
2938
3059
  alias_method :can_comment?, :can_comment
2939
3060
 
2940
- # Whether files in this Team Drive can be copied by the current user.
3061
+ # Whether the current user can copy files in this Team Drive.
2941
3062
  # Corresponds to the JSON property `canCopy`
2942
3063
  # @return [Boolean]
2943
3064
  attr_accessor :can_copy
2944
3065
  alias_method :can_copy?, :can_copy
2945
3066
 
2946
- # Whether this Team Drive can be deleted by the current user.
3067
+ # Whether the current user can delete this Team Drive. Attempting to delete the
3068
+ # Team Drive may still fail if there are untrashed items inside the Team Drive.
2947
3069
  # Corresponds to the JSON property `canDeleteTeamDrive`
2948
3070
  # @return [Boolean]
2949
3071
  attr_accessor :can_delete_team_drive
2950
3072
  alias_method :can_delete_team_drive?, :can_delete_team_drive
2951
3073
 
2952
- # Whether files in this Team Drive can be downloaded by the current user.
3074
+ # Whether the current user can download files in this Team Drive.
2953
3075
  # Corresponds to the JSON property `canDownload`
2954
3076
  # @return [Boolean]
2955
3077
  attr_accessor :can_download
2956
3078
  alias_method :can_download?, :can_download
2957
3079
 
2958
- # Whether files in this Team Drive can be edited by the current user.
3080
+ # Whether the current user can edit files in this Team Drive
2959
3081
  # Corresponds to the JSON property `canEdit`
2960
3082
  # @return [Boolean]
2961
3083
  attr_accessor :can_edit
@@ -2974,8 +3096,8 @@ module Google
2974
3096
  attr_accessor :can_manage_members
2975
3097
  alias_method :can_manage_members?, :can_manage_members
2976
3098
 
2977
- # Whether the current user has read access to the Revisions resource of files in
2978
- # this Team Drive.
3099
+ # Whether the current user can read the revisions resource of files in this Team
3100
+ # Drive.
2979
3101
  # Corresponds to the JSON property `canReadRevisions`
2980
3102
  # @return [Boolean]
2981
3103
  attr_accessor :can_read_revisions
@@ -2987,13 +3109,13 @@ module Google
2987
3109
  attr_accessor :can_remove_children
2988
3110
  alias_method :can_remove_children?, :can_remove_children
2989
3111
 
2990
- # Whether files or folders in this Team Drive can be renamed by the current user.
3112
+ # Whether the current user can rename files or folders in this Team Drive.
2991
3113
  # Corresponds to the JSON property `canRename`
2992
3114
  # @return [Boolean]
2993
3115
  attr_accessor :can_rename
2994
3116
  alias_method :can_rename?, :can_rename
2995
3117
 
2996
- # Whether this Team Drive can be renamed by the current user.
3118
+ # Whether the current user can rename this Team Drive.
2997
3119
  # Corresponds to the JSON property `canRenameTeamDrive`
2998
3120
  # @return [Boolean]
2999
3121
  attr_accessor :can_rename_team_drive
@@ -3012,6 +3134,7 @@ module Google
3012
3134
  # Update properties of this object
3013
3135
  def update!(**args)
3014
3136
  @can_add_children = args[:can_add_children] if args.key?(:can_add_children)
3137
+ @can_change_team_drive_background = args[:can_change_team_drive_background] if args.key?(:can_change_team_drive_background)
3015
3138
  @can_comment = args[:can_comment] if args.key?(:can_comment)
3016
3139
  @can_copy = args[:can_copy] if args.key?(:can_copy)
3017
3140
  @can_delete_team_drive = args[:can_delete_team_drive] if args.key?(:can_delete_team_drive)