google-api-client 0.9.8 → 0.9.20

Sign up to get free protection for your applications and to get access to all the features.
Files changed (238) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +37 -0
  3. data/Gemfile +9 -1
  4. data/README.md +10 -2
  5. data/api_names.yaml +63 -110
  6. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +35 -0
  7. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +298 -0
  8. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +122 -0
  9. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +458 -0
  10. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  11. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +260 -13
  12. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +81 -0
  13. data/generated/google/apis/adexchangebuyer_v1_4/service.rb +60 -8
  14. data/generated/google/apis/adexchangeseller_v2_0.rb +2 -3
  15. data/generated/google/apis/adexchangeseller_v2_0/service.rb +1 -2
  16. data/generated/google/apis/admin_directory_v1.rb +1 -1
  17. data/generated/google/apis/admin_directory_v1/classes.rb +86 -0
  18. data/generated/google/apis/admin_directory_v1/representations.rb +24 -0
  19. data/generated/google/apis/admin_directory_v1/service.rb +41 -2
  20. data/generated/google/apis/admin_reports_v1.rb +3 -3
  21. data/generated/google/apis/admin_reports_v1/service.rb +2 -2
  22. data/generated/google/apis/adsense_v1_4.rb +1 -1
  23. data/generated/google/apis/adsense_v1_4/classes.rb +1 -1
  24. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  25. data/generated/google/apis/adsensehost_v4_1/classes.rb +1 -2
  26. data/generated/google/apis/analytics_v3.rb +1 -1
  27. data/generated/google/apis/analytics_v3/classes.rb +379 -3
  28. data/generated/google/apis/analytics_v3/representations.rb +136 -0
  29. data/generated/google/apis/analytics_v3/service.rb +217 -0
  30. data/generated/google/apis/analyticsreporting_v4.rb +1 -1
  31. data/generated/google/apis/analyticsreporting_v4/classes.rb +50 -22
  32. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  33. data/generated/google/apis/androidenterprise_v1/classes.rb +813 -49
  34. data/generated/google/apis/androidenterprise_v1/representations.rb +336 -0
  35. data/generated/google/apis/androidenterprise_v1/service.rb +1234 -145
  36. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  37. data/generated/google/apis/androidpublisher_v2/classes.rb +47 -8
  38. data/generated/google/apis/androidpublisher_v2/representations.rb +27 -0
  39. data/generated/google/apis/androidpublisher_v2/service.rb +55 -0
  40. data/generated/google/apis/appengine_v1beta5.rb +7 -1
  41. data/generated/google/apis/appengine_v1beta5/classes.rb +516 -313
  42. data/generated/google/apis/appengine_v1beta5/representations.rb +115 -22
  43. data/generated/google/apis/appengine_v1beta5/service.rb +329 -33
  44. data/generated/google/apis/appsactivity_v1.rb +1 -1
  45. data/generated/google/apis/appsactivity_v1/classes.rb +7 -0
  46. data/generated/google/apis/appsactivity_v1/representations.rb +1 -0
  47. data/generated/google/apis/appstate_v1.rb +1 -1
  48. data/generated/google/apis/bigquery_v2.rb +1 -1
  49. data/generated/google/apis/bigquery_v2/classes.rb +277 -20
  50. data/generated/google/apis/bigquery_v2/representations.rb +86 -0
  51. data/generated/google/apis/bigquery_v2/service.rb +8 -2
  52. data/generated/google/apis/books_v1.rb +2 -2
  53. data/generated/google/apis/books_v1/classes.rb +79 -1
  54. data/generated/google/apis/books_v1/representations.rb +34 -0
  55. data/generated/google/apis/books_v1/service.rb +7 -3
  56. data/generated/google/apis/calendar_v3.rb +1 -1
  57. data/generated/google/apis/civicinfo_v2.rb +3 -2
  58. data/generated/google/apis/civicinfo_v2/classes.rb +377 -5
  59. data/generated/google/apis/civicinfo_v2/representations.rb +149 -0
  60. data/generated/google/apis/civicinfo_v2/service.rb +27 -6
  61. data/generated/google/apis/classroom_v1.rb +1 -1
  62. data/generated/google/apis/classroom_v1/classes.rb +183 -37
  63. data/generated/google/apis/classroom_v1/representations.rb +74 -9
  64. data/generated/google/apis/classroom_v1/service.rb +403 -38
  65. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  66. data/generated/google/apis/cloudbuild_v1/classes.rb +381 -17
  67. data/generated/google/apis/cloudbuild_v1/representations.rb +137 -2
  68. data/generated/google/apis/cloudbuild_v1/service.rb +174 -1
  69. data/generated/google/apis/clouddebugger_v2.rb +3 -6
  70. data/generated/google/apis/clouddebugger_v2/service.rb +4 -4
  71. data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
  72. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  73. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +502 -111
  74. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +162 -24
  75. data/generated/google/apis/cloudresourcemanager_v1/service.rb +274 -30
  76. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  77. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +121 -9
  78. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +46 -0
  79. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +71 -58
  80. data/generated/google/apis/compute_beta.rb +1 -1
  81. data/generated/google/apis/compute_beta/classes.rb +2299 -434
  82. data/generated/google/apis/compute_beta/representations.rb +752 -33
  83. data/generated/google/apis/compute_beta/service.rb +6067 -3153
  84. data/generated/google/apis/compute_v1.rb +1 -1
  85. data/generated/google/apis/compute_v1/classes.rb +1681 -207
  86. data/generated/google/apis/compute_v1/representations.rb +552 -0
  87. data/generated/google/apis/compute_v1/service.rb +2797 -1171
  88. data/generated/google/apis/content_v2.rb +1 -1
  89. data/generated/google/apis/content_v2/classes.rb +757 -1
  90. data/generated/google/apis/content_v2/representations.rb +337 -0
  91. data/generated/google/apis/content_v2/service.rb +244 -0
  92. data/generated/google/apis/dataflow_v1b3.rb +38 -0
  93. data/generated/google/apis/dataflow_v1b3/classes.rb +4053 -0
  94. data/generated/google/apis/dataflow_v1b3/representations.rb +1736 -0
  95. data/generated/google/apis/dataflow_v1b3/service.rb +875 -0
  96. data/generated/google/apis/dataproc_v1.rb +2 -2
  97. data/generated/google/apis/dataproc_v1/classes.rb +213 -68
  98. data/generated/google/apis/dataproc_v1/representations.rb +38 -0
  99. data/generated/google/apis/dataproc_v1/service.rb +78 -48
  100. data/generated/google/apis/datastore_v1.rb +38 -0
  101. data/generated/google/apis/datastore_v1/classes.rb +1284 -0
  102. data/generated/google/apis/datastore_v1/representations.rb +572 -0
  103. data/generated/google/apis/datastore_v1/service.rb +259 -0
  104. data/generated/google/apis/datastore_v1beta3.rb +38 -0
  105. data/generated/google/apis/datastore_v1beta3/classes.rb +1284 -0
  106. data/generated/google/apis/datastore_v1beta3/representations.rb +572 -0
  107. data/generated/google/apis/datastore_v1beta3/service.rb +259 -0
  108. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  109. data/generated/google/apis/deploymentmanager_v2/classes.rb +384 -2
  110. data/generated/google/apis/deploymentmanager_v2/representations.rb +161 -0
  111. data/generated/google/apis/deploymentmanager_v2/service.rb +217 -55
  112. data/generated/google/apis/dfareporting_v2_5.rb +40 -0
  113. data/generated/google/apis/dfareporting_v2_5/classes.rb +11225 -0
  114. data/generated/google/apis/dfareporting_v2_5/representations.rb +3982 -0
  115. data/generated/google/apis/dfareporting_v2_5/service.rb +8755 -0
  116. data/generated/google/apis/dfareporting_v2_6.rb +40 -0
  117. data/generated/google/apis/dfareporting_v2_6/classes.rb +11586 -0
  118. data/generated/google/apis/dfareporting_v2_6/representations.rb +4119 -0
  119. data/generated/google/apis/dfareporting_v2_6/service.rb +9025 -0
  120. data/generated/google/apis/dns_v1.rb +1 -1
  121. data/generated/google/apis/dns_v1/classes.rb +1 -1
  122. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  123. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +79 -86
  124. data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +25 -28
  125. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +10 -8
  126. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  127. data/generated/google/apis/drive_v2.rb +1 -1
  128. data/generated/google/apis/drive_v2/classes.rb +27 -3
  129. data/generated/google/apis/drive_v2/representations.rb +4 -0
  130. data/generated/google/apis/drive_v2/service.rb +16 -3
  131. data/generated/google/apis/drive_v3.rb +1 -1
  132. data/generated/google/apis/drive_v3/classes.rb +50 -16
  133. data/generated/google/apis/drive_v3/representations.rb +4 -0
  134. data/generated/google/apis/drive_v3/service.rb +12 -2
  135. data/generated/google/apis/fitness_v1.rb +8 -2
  136. data/generated/google/apis/fitness_v1/classes.rb +64 -6
  137. data/generated/google/apis/fitness_v1/representations.rb +20 -0
  138. data/generated/google/apis/fitness_v1/service.rb +17 -18
  139. data/generated/google/apis/fusiontables_v2.rb +1 -1
  140. data/generated/google/apis/fusiontables_v2/classes.rb +4 -3
  141. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  142. data/generated/google/apis/games_management_v1management.rb +1 -1
  143. data/generated/google/apis/games_v1.rb +1 -1
  144. data/generated/google/apis/genomics_v1.rb +2 -4
  145. data/generated/google/apis/genomics_v1/classes.rb +143 -34
  146. data/generated/google/apis/genomics_v1/representations.rb +48 -11
  147. data/generated/google/apis/genomics_v1/service.rb +35 -37
  148. data/generated/google/apis/gmail_v1.rb +10 -1
  149. data/generated/google/apis/gmail_v1/classes.rb +542 -4
  150. data/generated/google/apis/gmail_v1/representations.rb +213 -0
  151. data/generated/google/apis/gmail_v1/service.rb +898 -1
  152. data/generated/google/apis/groupssettings_v1.rb +1 -1
  153. data/generated/google/apis/groupssettings_v1/classes.rb +12 -0
  154. data/generated/google/apis/groupssettings_v1/representations.rb +2 -0
  155. data/generated/google/apis/iam_v1.rb +2 -2
  156. data/generated/google/apis/iam_v1/classes.rb +181 -206
  157. data/generated/google/apis/iam_v1/representations.rb +36 -45
  158. data/generated/google/apis/iam_v1/service.rb +101 -67
  159. data/generated/google/apis/identitytoolkit_v3.rb +4 -1
  160. data/generated/google/apis/identitytoolkit_v3/classes.rb +171 -1
  161. data/generated/google/apis/identitytoolkit_v3/representations.rb +26 -0
  162. data/generated/google/apis/language_v1beta1.rb +36 -0
  163. data/generated/google/apis/language_v1beta1/classes.rb +599 -0
  164. data/generated/google/apis/language_v1beta1/representations.rb +289 -0
  165. data/generated/google/apis/language_v1beta1/service.rb +152 -0
  166. data/generated/google/apis/logging_v2beta1.rb +6 -6
  167. data/generated/google/apis/logging_v2beta1/classes.rb +760 -731
  168. data/generated/google/apis/logging_v2beta1/representations.rb +136 -147
  169. data/generated/google/apis/logging_v2beta1/service.rb +290 -209
  170. data/generated/google/apis/mirror_v1.rb +2 -2
  171. data/generated/google/apis/mirror_v1/service.rb +1 -1
  172. data/generated/google/apis/monitoring_v3.rb +45 -0
  173. data/generated/google/apis/monitoring_v3/classes.rb +1337 -0
  174. data/generated/google/apis/monitoring_v3/representations.rb +516 -0
  175. data/generated/google/apis/monitoring_v3/service.rb +711 -0
  176. data/generated/google/apis/oauth2_v2.rb +1 -1
  177. data/generated/google/apis/pagespeedonline_v2.rb +1 -1
  178. data/generated/google/apis/plus_domains_v1.rb +1 -1
  179. data/generated/google/apis/plus_v1.rb +1 -1
  180. data/generated/google/apis/pubsub_v1.rb +1 -1
  181. data/generated/google/apis/pubsub_v1/classes.rb +10 -9
  182. data/generated/google/apis/pubsub_v1/service.rb +128 -27
  183. data/generated/google/apis/qpx_express_v1.rb +1 -1
  184. data/generated/google/apis/qpx_express_v1/classes.rb +6 -0
  185. data/generated/google/apis/qpx_express_v1/representations.rb +1 -0
  186. data/generated/google/apis/replicapool_v1beta2.rb +1 -1
  187. data/generated/google/apis/replicapoolupdater_v1beta1.rb +4 -2
  188. data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +3 -1
  189. data/generated/google/apis/script_v1.rb +1 -1
  190. data/generated/google/apis/script_v1/classes.rb +6 -0
  191. data/generated/google/apis/script_v1/representations.rb +1 -0
  192. data/generated/google/apis/sheets_v4.rb +1 -1
  193. data/generated/google/apis/sheets_v4/classes.rb +910 -89
  194. data/generated/google/apis/sheets_v4/representations.rb +194 -10
  195. data/generated/google/apis/sheets_v4/service.rb +216 -49
  196. data/generated/google/apis/slides_v1.rb +49 -0
  197. data/generated/google/apis/slides_v1/classes.rb +3926 -0
  198. data/generated/google/apis/slides_v1/representations.rb +1722 -0
  199. data/generated/google/apis/slides_v1/service.rb +202 -0
  200. data/generated/google/apis/speech_v1beta1.rb +34 -0
  201. data/generated/google/apis/speech_v1beta1/classes.rb +511 -0
  202. data/generated/google/apis/speech_v1beta1/representations.rb +218 -0
  203. data/generated/google/apis/speech_v1beta1/service.rb +271 -0
  204. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  205. data/generated/google/apis/sqladmin_v1beta4/classes.rb +32 -8
  206. data/generated/google/apis/sqladmin_v1beta4/representations.rb +3 -0
  207. data/generated/google/apis/sqladmin_v1beta4/service.rb +42 -0
  208. data/generated/google/apis/storage_v1.rb +1 -1
  209. data/generated/google/apis/storage_v1/classes.rb +43 -18
  210. data/generated/google/apis/storage_v1/representations.rb +4 -1
  211. data/generated/google/apis/storage_v1/service.rb +5 -2
  212. data/generated/google/apis/translate_v2.rb +2 -2
  213. data/generated/google/apis/translate_v2/service.rb +1 -1
  214. data/generated/google/apis/vision_v1.rb +1 -1
  215. data/generated/google/apis/vision_v1/classes.rb +12 -11
  216. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  217. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  218. data/generated/google/apis/youtube_partner_v1/classes.rb +6 -0
  219. data/generated/google/apis/youtube_partner_v1/representations.rb +2 -0
  220. data/generated/google/apis/youtube_partner_v1/service.rb +15 -3
  221. data/generated/google/apis/youtube_v3.rb +1 -1
  222. data/generated/google/apis/youtube_v3/classes.rb +183 -21
  223. data/generated/google/apis/youtube_v3/representations.rb +85 -4
  224. data/generated/google/apis/youtube_v3/service.rb +41 -5
  225. data/generated/google/apis/youtubereporting_v1.rb +1 -1
  226. data/google-api-client.gemspec +2 -1
  227. data/lib/google/apis/core/api_command.rb +4 -0
  228. data/lib/google/apis/core/base_service.rb +10 -4
  229. data/lib/google/apis/core/download.rb +7 -2
  230. data/lib/google/apis/core/http_command.rb +5 -1
  231. data/lib/google/apis/core/upload.rb +7 -1
  232. data/lib/google/apis/errors.rb +2 -2
  233. data/lib/google/apis/generator/annotator.rb +6 -0
  234. data/lib/google/apis/version.rb +1 -1
  235. data/samples/cli/lib/samples/bigquery.rb +101 -0
  236. data/samples/cli/lib/samples/sheets.rb +61 -0
  237. data/sync.rb +71 -0
  238. metadata +55 -13
@@ -687,6 +687,7 @@ module Google
687
687
  # @private
688
688
  class Representation < Google::Apis::Core::JsonRepresentation
689
689
  property :hidden, as: 'hidden'
690
+ property :modified, as: 'modified'
690
691
  property :restricted, as: 'restricted'
691
692
  property :starred, as: 'starred'
692
693
  property :trashed, as: 'trashed'
@@ -764,6 +765,8 @@ module Google
764
765
  property :domain, as: 'domain'
765
766
  property :email_address, as: 'emailAddress'
766
767
  property :etag, as: 'etag'
768
+ property :expiration_date, as: 'expirationDate', type: DateTime
769
+
767
770
  property :id, as: 'id'
768
771
  property :kind, as: 'kind'
769
772
  property :name, as: 'name'
@@ -851,6 +854,7 @@ module Google
851
854
  collection :items, as: 'items', class: Google::Apis::DriveV2::Revision, decorator: Google::Apis::DriveV2::Revision::Representation
852
855
 
853
856
  property :kind, as: 'kind'
857
+ property :next_page_token, as: 'nextPageToken'
854
858
  property :self_link, as: 'selfLink'
855
859
  end
856
860
  end
@@ -1853,6 +1853,8 @@ module Google
1853
1853
  # @param [String] permission_id
1854
1854
  # The ID for the permission.
1855
1855
  # @param [Google::Apis::DriveV2::Permission] permission_object
1856
+ # @param [Boolean] remove_expiration
1857
+ # Whether to remove the expiration date.
1856
1858
  # @param [Boolean] transfer_ownership
1857
1859
  # Whether changing a role to 'owner' downgrades the current owners to writers.
1858
1860
  # Does nothing if the specified role is not 'owner'.
@@ -1877,7 +1879,7 @@ module Google
1877
1879
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1878
1880
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1879
1881
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1880
- def patch_permission(file_id, permission_id, permission_object = nil, transfer_ownership: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1882
+ def patch_permission(file_id, permission_id, permission_object = nil, remove_expiration: nil, transfer_ownership: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1881
1883
  command = make_simple_command(:patch, 'files/{fileId}/permissions/{permissionId}', options)
1882
1884
  command.request_representation = Google::Apis::DriveV2::Permission::Representation
1883
1885
  command.request_object = permission_object
@@ -1885,6 +1887,7 @@ module Google
1885
1887
  command.response_class = Google::Apis::DriveV2::Permission
1886
1888
  command.params['fileId'] = file_id unless file_id.nil?
1887
1889
  command.params['permissionId'] = permission_id unless permission_id.nil?
1890
+ command.query['removeExpiration'] = remove_expiration unless remove_expiration.nil?
1888
1891
  command.query['transferOwnership'] = transfer_ownership unless transfer_ownership.nil?
1889
1892
  command.query['fields'] = fields unless fields.nil?
1890
1893
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -1898,6 +1901,8 @@ module Google
1898
1901
  # @param [String] permission_id
1899
1902
  # The ID for the permission.
1900
1903
  # @param [Google::Apis::DriveV2::Permission] permission_object
1904
+ # @param [Boolean] remove_expiration
1905
+ # Whether to remove the expiration date.
1901
1906
  # @param [Boolean] transfer_ownership
1902
1907
  # Whether changing a role to 'owner' downgrades the current owners to writers.
1903
1908
  # Does nothing if the specified role is not 'owner'.
@@ -1922,7 +1927,7 @@ module Google
1922
1927
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1923
1928
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1924
1929
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1925
- def update_permission(file_id, permission_id, permission_object = nil, transfer_ownership: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1930
+ def update_permission(file_id, permission_id, permission_object = nil, remove_expiration: nil, transfer_ownership: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1926
1931
  command = make_simple_command(:put, 'files/{fileId}/permissions/{permissionId}', options)
1927
1932
  command.request_representation = Google::Apis::DriveV2::Permission::Representation
1928
1933
  command.request_object = permission_object
@@ -1930,6 +1935,7 @@ module Google
1930
1935
  command.response_class = Google::Apis::DriveV2::Permission
1931
1936
  command.params['fileId'] = file_id unless file_id.nil?
1932
1937
  command.params['permissionId'] = permission_id unless permission_id.nil?
1938
+ command.query['removeExpiration'] = remove_expiration unless remove_expiration.nil?
1933
1939
  command.query['transferOwnership'] = transfer_ownership unless transfer_ownership.nil?
1934
1940
  command.query['fields'] = fields unless fields.nil?
1935
1941
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -2614,6 +2620,11 @@ module Google
2614
2620
  # Lists a file's revisions.
2615
2621
  # @param [String] file_id
2616
2622
  # The ID of the file.
2623
+ # @param [Fixnum] max_results
2624
+ # Maximum number of revisions to return.
2625
+ # @param [String] page_token
2626
+ # Page token for revisions. To get the next page of results, set this parameter
2627
+ # to the value of "nextPageToken" from the previous response.
2617
2628
  # @param [String] fields
2618
2629
  # Selector specifying which fields to include in a partial response.
2619
2630
  # @param [String] quota_user
@@ -2635,11 +2646,13 @@ module Google
2635
2646
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2636
2647
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2637
2648
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2638
- def list_revisions(file_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2649
+ def list_revisions(file_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2639
2650
  command = make_simple_command(:get, 'files/{fileId}/revisions', options)
2640
2651
  command.response_representation = Google::Apis::DriveV2::RevisionList::Representation
2641
2652
  command.response_class = Google::Apis::DriveV2::RevisionList
2642
2653
  command.params['fileId'] = file_id unless file_id.nil?
2654
+ command.query['maxResults'] = max_results unless max_results.nil?
2655
+ command.query['pageToken'] = page_token unless page_token.nil?
2643
2656
  command.query['fields'] = fields unless fields.nil?
2644
2657
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2645
2658
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://developers.google.com/drive/
27
27
  module DriveV3
28
28
  VERSION = 'V3'
29
- REVISION = '20160520'
29
+ REVISION = '20161027'
30
30
 
31
31
  # View and manage the files in your Google Drive
32
32
  AUTH_DRIVE = 'https://www.googleapis.com/auth/drive'
@@ -47,7 +47,8 @@ module Google
47
47
  # @return [Hash<String,Array<String>>]
48
48
  attr_accessor :import_formats
49
49
 
50
- # This is always drive#about.
50
+ # Identifies what kind of resource this is. Value: the fixed string "drive#about"
51
+ # .
51
52
  # Corresponds to the JSON property `kind`
52
53
  # @return [String]
53
54
  attr_accessor :kind
@@ -142,7 +143,8 @@ module Google
142
143
  # @return [String]
143
144
  attr_accessor :file_id
144
145
 
145
- # This is always drive#change.
146
+ # Identifies what kind of resource this is. Value: the fixed string "drive#
147
+ # change".
146
148
  # Corresponds to the JSON property `kind`
147
149
  # @return [String]
148
150
  attr_accessor :kind
@@ -182,7 +184,8 @@ module Google
182
184
  # @return [Array<Google::Apis::DriveV3::Change>]
183
185
  attr_accessor :changes
184
186
 
185
- # This is always drive#changeList.
187
+ # Identifies what kind of resource this is. Value: the fixed string "drive#
188
+ # changeList".
186
189
  # Corresponds to the JSON property `kind`
187
190
  # @return [String]
188
191
  attr_accessor :kind
@@ -332,7 +335,8 @@ module Google
332
335
  # @return [String]
333
336
  attr_accessor :id
334
337
 
335
- # This is always drive#comment.
338
+ # Identifies what kind of resource this is. Value: the fixed string "drive#
339
+ # comment".
336
340
  # Corresponds to the JSON property `kind`
337
341
  # @return [String]
338
342
  attr_accessor :kind
@@ -419,7 +423,8 @@ module Google
419
423
  # @return [Array<Google::Apis::DriveV3::Comment>]
420
424
  attr_accessor :comments
421
425
 
422
- # This is always drive#commentList.
426
+ # Identifies what kind of resource this is. Value: the fixed string "drive#
427
+ # commentList".
423
428
  # Corresponds to the JSON property `kind`
424
429
  # @return [String]
425
430
  attr_accessor :kind
@@ -531,7 +536,7 @@ module Google
531
536
  attr_accessor :is_app_authorized
532
537
  alias_method :is_app_authorized?, :is_app_authorized
533
538
 
534
- # This is always drive#file.
539
+ # Identifies what kind of resource this is. Value: the fixed string "drive#file".
535
540
  # Corresponds to the JSON property `kind`
536
541
  # @return [String]
537
542
  attr_accessor :kind
@@ -558,6 +563,12 @@ module Google
558
563
  # @return [String]
559
564
  attr_accessor :mime_type
560
565
 
566
+ # Whether the file has been modified by this user.
567
+ # Corresponds to the JSON property `modifiedByMe`
568
+ # @return [Boolean]
569
+ attr_accessor :modified_by_me
570
+ alias_method :modified_by_me?, :modified_by_me
571
+
561
572
  # The last time the file was modified by the user (RFC 3339 date-time).
562
573
  # Corresponds to the JSON property `modifiedByMeTime`
563
574
  # @return [DateTime]
@@ -739,6 +750,7 @@ module Google
739
750
  @last_modifying_user = args[:last_modifying_user] if args.key?(:last_modifying_user)
740
751
  @md5_checksum = args[:md5_checksum] if args.key?(:md5_checksum)
741
752
  @mime_type = args[:mime_type] if args.key?(:mime_type)
753
+ @modified_by_me = args[:modified_by_me] if args.key?(:modified_by_me)
742
754
  @modified_by_me_time = args[:modified_by_me_time] if args.key?(:modified_by_me_time)
743
755
  @modified_time = args[:modified_time] if args.key?(:modified_time)
744
756
  @name = args[:name] if args.key?(:name)
@@ -1083,7 +1095,8 @@ module Google
1083
1095
  # @return [Array<Google::Apis::DriveV3::File>]
1084
1096
  attr_accessor :files
1085
1097
 
1086
- # This is always drive#fileList.
1098
+ # Identifies what kind of resource this is. Value: the fixed string "drive#
1099
+ # fileList".
1087
1100
  # Corresponds to the JSON property `kind`
1088
1101
  # @return [String]
1089
1102
  attr_accessor :kind
@@ -1115,7 +1128,8 @@ module Google
1115
1128
  # @return [Array<String>]
1116
1129
  attr_accessor :ids
1117
1130
 
1118
- # This is always drive#generatedIds
1131
+ # Identifies what kind of resource this is. Value: the fixed string "drive#
1132
+ # generatedIds".
1119
1133
  # Corresponds to the JSON property `kind`
1120
1134
  # @return [String]
1121
1135
  attr_accessor :kind
@@ -1164,13 +1178,19 @@ module Google
1164
1178
  # @return [String]
1165
1179
  attr_accessor :email_address
1166
1180
 
1181
+ # The time at which this permission will expire (RFC 3339 date-time).
1182
+ # Corresponds to the JSON property `expirationTime`
1183
+ # @return [DateTime]
1184
+ attr_accessor :expiration_time
1185
+
1167
1186
  # The ID of this permission. This is a unique identifier for the grantee, and is
1168
1187
  # published in User resources as permissionId.
1169
1188
  # Corresponds to the JSON property `id`
1170
1189
  # @return [String]
1171
1190
  attr_accessor :id
1172
1191
 
1173
- # This is always drive#permission.
1192
+ # Identifies what kind of resource this is. Value: the fixed string "drive#
1193
+ # permission".
1174
1194
  # Corresponds to the JSON property `kind`
1175
1195
  # @return [String]
1176
1196
  attr_accessor :kind
@@ -1208,6 +1228,7 @@ module Google
1208
1228
  @display_name = args[:display_name] if args.key?(:display_name)
1209
1229
  @domain = args[:domain] if args.key?(:domain)
1210
1230
  @email_address = args[:email_address] if args.key?(:email_address)
1231
+ @expiration_time = args[:expiration_time] if args.key?(:expiration_time)
1211
1232
  @id = args[:id] if args.key?(:id)
1212
1233
  @kind = args[:kind] if args.key?(:kind)
1213
1234
  @photo_link = args[:photo_link] if args.key?(:photo_link)
@@ -1220,7 +1241,8 @@ module Google
1220
1241
  class PermissionList
1221
1242
  include Google::Apis::Core::Hashable
1222
1243
 
1223
- # This is always drive#permissionList.
1244
+ # Identifies what kind of resource this is. Value: the fixed string "drive#
1245
+ # permissionList".
1224
1246
  # Corresponds to the JSON property `kind`
1225
1247
  # @return [String]
1226
1248
  attr_accessor :kind
@@ -1285,7 +1307,8 @@ module Google
1285
1307
  # @return [String]
1286
1308
  attr_accessor :id
1287
1309
 
1288
- # This is always drive#reply.
1310
+ # Identifies what kind of resource this is. Value: the fixed string "drive#reply"
1311
+ # .
1289
1312
  # Corresponds to the JSON property `kind`
1290
1313
  # @return [String]
1291
1314
  attr_accessor :kind
@@ -1317,7 +1340,8 @@ module Google
1317
1340
  class ReplyList
1318
1341
  include Google::Apis::Core::Hashable
1319
1342
 
1320
- # This is always drive#replyList.
1343
+ # Identifies what kind of resource this is. Value: the fixed string "drive#
1344
+ # replyList".
1321
1345
  # Corresponds to the JSON property `kind`
1322
1346
  # @return [String]
1323
1347
  attr_accessor :kind
@@ -1364,7 +1388,8 @@ module Google
1364
1388
  attr_accessor :keep_forever
1365
1389
  alias_method :keep_forever?, :keep_forever
1366
1390
 
1367
- # This is always drive#revision.
1391
+ # Identifies what kind of resource this is. Value: the fixed string "drive#
1392
+ # revision".
1368
1393
  # Corresponds to the JSON property `kind`
1369
1394
  # @return [String]
1370
1395
  attr_accessor :kind
@@ -1447,11 +1472,18 @@ module Google
1447
1472
  class RevisionList
1448
1473
  include Google::Apis::Core::Hashable
1449
1474
 
1450
- # This is always drive#revisionList.
1475
+ # Identifies what kind of resource this is. Value: the fixed string "drive#
1476
+ # revisionList".
1451
1477
  # Corresponds to the JSON property `kind`
1452
1478
  # @return [String]
1453
1479
  attr_accessor :kind
1454
1480
 
1481
+ # The page token for the next page of revisions. This will be absent if the end
1482
+ # of the revisions list has been reached.
1483
+ # Corresponds to the JSON property `nextPageToken`
1484
+ # @return [String]
1485
+ attr_accessor :next_page_token
1486
+
1455
1487
  # The full list of revisions.
1456
1488
  # Corresponds to the JSON property `revisions`
1457
1489
  # @return [Array<Google::Apis::DriveV3::Revision>]
@@ -1464,6 +1496,7 @@ module Google
1464
1496
  # Update properties of this object
1465
1497
  def update!(**args)
1466
1498
  @kind = args[:kind] if args.key?(:kind)
1499
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1467
1500
  @revisions = args[:revisions] if args.key?(:revisions)
1468
1501
  end
1469
1502
  end
@@ -1472,7 +1505,8 @@ module Google
1472
1505
  class StartPageToken
1473
1506
  include Google::Apis::Core::Hashable
1474
1507
 
1475
- # This is always drive#startPageToken.
1508
+ # Identifies what kind of resource this is. Value: the fixed string "drive#
1509
+ # startPageToken".
1476
1510
  # Corresponds to the JSON property `kind`
1477
1511
  # @return [String]
1478
1512
  attr_accessor :kind
@@ -1508,7 +1542,7 @@ module Google
1508
1542
  # @return [String]
1509
1543
  attr_accessor :email_address
1510
1544
 
1511
- # This is always drive#user.
1545
+ # Identifies what kind of resource this is. Value: the fixed string "drive#user".
1512
1546
  # Corresponds to the JSON property `kind`
1513
1547
  # @return [String]
1514
1548
  attr_accessor :kind
@@ -314,6 +314,7 @@ module Google
314
314
 
315
315
  property :md5_checksum, as: 'md5Checksum'
316
316
  property :mime_type, as: 'mimeType'
317
+ property :modified_by_me, as: 'modifiedByMe'
317
318
  property :modified_by_me_time, as: 'modifiedByMeTime', type: DateTime
318
319
 
319
320
  property :modified_time, as: 'modifiedTime', type: DateTime
@@ -451,6 +452,8 @@ module Google
451
452
  property :display_name, as: 'displayName'
452
453
  property :domain, as: 'domain'
453
454
  property :email_address, as: 'emailAddress'
455
+ property :expiration_time, as: 'expirationTime', type: DateTime
456
+
454
457
  property :id, as: 'id'
455
458
  property :kind, as: 'kind'
456
459
  property :photo_link, as: 'photoLink'
@@ -520,6 +523,7 @@ module Google
520
523
  # @private
521
524
  class Representation < Google::Apis::Core::JsonRepresentation
522
525
  property :kind, as: 'kind'
526
+ property :next_page_token, as: 'nextPageToken'
523
527
  collection :revisions, as: 'revisions', class: Google::Apis::DriveV3::Revision, decorator: Google::Apis::DriveV3::Revision::Representation
524
528
 
525
529
  end
@@ -1110,6 +1110,8 @@ module Google
1110
1110
  # @param [String] permission_id
1111
1111
  # The ID of the permission.
1112
1112
  # @param [Google::Apis::DriveV3::Permission] permission_object
1113
+ # @param [Boolean] remove_expiration
1114
+ # Whether to remove the expiration date.
1113
1115
  # @param [Boolean] transfer_ownership
1114
1116
  # Whether to transfer ownership to the specified user and downgrade the current
1115
1117
  # owner to a writer. This parameter is required as an acknowledgement of the
@@ -1135,7 +1137,7 @@ module Google
1135
1137
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1136
1138
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1137
1139
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1138
- def update_permission(file_id, permission_id, permission_object = nil, transfer_ownership: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1140
+ def update_permission(file_id, permission_id, permission_object = nil, remove_expiration: nil, transfer_ownership: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1139
1141
  command = make_simple_command(:patch, 'files/{fileId}/permissions/{permissionId}', options)
1140
1142
  command.request_representation = Google::Apis::DriveV3::Permission::Representation
1141
1143
  command.request_object = permission_object
@@ -1143,6 +1145,7 @@ module Google
1143
1145
  command.response_class = Google::Apis::DriveV3::Permission
1144
1146
  command.params['fileId'] = file_id unless file_id.nil?
1145
1147
  command.params['permissionId'] = permission_id unless permission_id.nil?
1148
+ command.query['removeExpiration'] = remove_expiration unless remove_expiration.nil?
1146
1149
  command.query['transferOwnership'] = transfer_ownership unless transfer_ownership.nil?
1147
1150
  command.query['fields'] = fields unless fields.nil?
1148
1151
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -1457,6 +1460,11 @@ module Google
1457
1460
  # Lists a file's revisions.
1458
1461
  # @param [String] file_id
1459
1462
  # The ID of the file.
1463
+ # @param [Fixnum] page_size
1464
+ # The maximum number of revisions to return per page.
1465
+ # @param [String] page_token
1466
+ # The token for continuing a previous list request on the next page. This should
1467
+ # be set to the value of 'nextPageToken' from the previous response.
1460
1468
  # @param [String] fields
1461
1469
  # Selector specifying which fields to include in a partial response.
1462
1470
  # @param [String] quota_user
@@ -1478,11 +1486,13 @@ module Google
1478
1486
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1479
1487
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1480
1488
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1481
- def list_revisions(file_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1489
+ def list_revisions(file_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1482
1490
  command = make_simple_command(:get, 'files/{fileId}/revisions', options)
1483
1491
  command.response_representation = Google::Apis::DriveV3::RevisionList::Representation
1484
1492
  command.response_class = Google::Apis::DriveV3::RevisionList
1485
1493
  command.params['fileId'] = file_id unless file_id.nil?
1494
+ command.query['pageSize'] = page_size unless page_size.nil?
1495
+ command.query['pageToken'] = page_token unless page_token.nil?
1486
1496
  command.query['fields'] = fields unless fields.nil?
1487
1497
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1488
1498
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -20,12 +20,12 @@ module Google
20
20
  module Apis
21
21
  # Fitness
22
22
  #
23
- # Google Fit API
23
+ # Stores and accesses user data in the fitness store from apps on any platform.
24
24
  #
25
25
  # @see https://developers.google.com/fit/rest/
26
26
  module FitnessV1
27
27
  VERSION = 'V1'
28
- REVISION = '20151021'
28
+ REVISION = '20160907'
29
29
 
30
30
  # View your activity information in Google Fit
31
31
  AUTH_FITNESS_ACTIVITY_READ = 'https://www.googleapis.com/auth/fitness.activity.read'
@@ -44,6 +44,12 @@ module Google
44
44
 
45
45
  # View and store your location data in Google Fit
46
46
  AUTH_FITNESS_LOCATION_WRITE = 'https://www.googleapis.com/auth/fitness.location.write'
47
+
48
+ # View nutrition information in Google Fit
49
+ AUTH_FITNESS_NUTRITION_READ = 'https://www.googleapis.com/auth/fitness.nutrition.read'
50
+
51
+ # View and store nutrition information in Google Fit
52
+ AUTH_FITNESS_NUTRITION_WRITE = 'https://www.googleapis.com/auth/fitness.nutrition.write'
47
53
  end
48
54
  end
49
55
  end
@@ -103,7 +103,7 @@ module Google
103
103
  end
104
104
  end
105
105
 
106
- #
106
+ # Next id: 10
107
107
  class AggregateRequest
108
108
  include Google::Apis::Core::Hashable
109
109
 
@@ -151,6 +151,13 @@ module Google
151
151
  # @return [String]
152
152
  attr_accessor :end_time_millis
153
153
 
154
+ # A list of acceptable data quality standards. Only data points which conform to
155
+ # at least one of the specified data quality standards will be returned. If the
156
+ # list is empty, all data points are returned.
157
+ # Corresponds to the JSON property `filteredDataQualityStandard`
158
+ # @return [Array<String>]
159
+ attr_accessor :filtered_data_quality_standard
160
+
154
161
  # The start of a window of time. Data that intersects with this time window will
155
162
  # be aggregated. The time is in milliseconds since epoch, inclusive.
156
163
  # Corresponds to the JSON property `startTimeMillis`
@@ -169,6 +176,7 @@ module Google
169
176
  @bucket_by_session = args[:bucket_by_session] if args.key?(:bucket_by_session)
170
177
  @bucket_by_time = args[:bucket_by_time] if args.key?(:bucket_by_time)
171
178
  @end_time_millis = args[:end_time_millis] if args.key?(:end_time_millis)
179
+ @filtered_data_quality_standard = args[:filtered_data_quality_standard] if args.key?(:filtered_data_quality_standard)
172
180
  @start_time_millis = args[:start_time_millis] if args.key?(:start_time_millis)
173
181
  end
174
182
  end
@@ -192,7 +200,7 @@ module Google
192
200
  end
193
201
  end
194
202
 
195
- # See: google3/java/com/google/android/apps/heart/platform/api/Application.java
203
+ #
196
204
  class Application
197
205
  include Google::Apis::Core::Hashable
198
206
 
@@ -294,6 +302,11 @@ module Google
294
302
  # @return [String]
295
303
  attr_accessor :duration_millis
296
304
 
305
+ #
306
+ # Corresponds to the JSON property `period`
307
+ # @return [Google::Apis::FitnessV1::BucketByTimePeriod]
308
+ attr_accessor :period
309
+
297
310
  def initialize(**args)
298
311
  update!(**args)
299
312
  end
@@ -301,6 +314,38 @@ module Google
301
314
  # Update properties of this object
302
315
  def update!(**args)
303
316
  @duration_millis = args[:duration_millis] if args.key?(:duration_millis)
317
+ @period = args[:period] if args.key?(:period)
318
+ end
319
+ end
320
+
321
+ #
322
+ class BucketByTimePeriod
323
+ include Google::Apis::Core::Hashable
324
+
325
+ # org.joda.timezone.DateTimeZone
326
+ # Corresponds to the JSON property `timeZoneId`
327
+ # @return [String]
328
+ attr_accessor :time_zone_id
329
+
330
+ #
331
+ # Corresponds to the JSON property `type`
332
+ # @return [String]
333
+ attr_accessor :type
334
+
335
+ #
336
+ # Corresponds to the JSON property `value`
337
+ # @return [Fixnum]
338
+ attr_accessor :value
339
+
340
+ def initialize(**args)
341
+ update!(**args)
342
+ end
343
+
344
+ # Update properties of this object
345
+ def update!(**args)
346
+ @time_zone_id = args[:time_zone_id] if args.key?(:time_zone_id)
347
+ @type = args[:type] if args.key?(:type)
348
+ @value = args[:value] if args.key?(:value)
304
349
  end
305
350
  end
306
351
 
@@ -400,11 +445,16 @@ module Google
400
445
  class DataSource
401
446
  include Google::Apis::Core::Hashable
402
447
 
403
- # See: google3/java/com/google/android/apps/heart/platform/api/Application.java
448
+ #
404
449
  # Corresponds to the JSON property `application`
405
450
  # @return [Google::Apis::FitnessV1::Application]
406
451
  attr_accessor :application
407
452
 
453
+ #
454
+ # Corresponds to the JSON property `dataQualityStandard`
455
+ # @return [Array<String>]
456
+ attr_accessor :data_quality_standard
457
+
408
458
  # A unique identifier for the data stream produced by this data source. The
409
459
  # identifier includes:
410
460
  #
@@ -443,7 +493,7 @@ module Google
443
493
  # @return [String]
444
494
  attr_accessor :data_stream_name
445
495
 
446
- # See: google3/java/com/google/android/apps/heart/platform/api/DataType.java
496
+ #
447
497
  # Corresponds to the JSON property `dataType`
448
498
  # @return [Google::Apis::FitnessV1::DataType]
449
499
  attr_accessor :data_type
@@ -481,6 +531,7 @@ module Google
481
531
  # Update properties of this object
482
532
  def update!(**args)
483
533
  @application = args[:application] if args.key?(:application)
534
+ @data_quality_standard = args[:data_quality_standard] if args.key?(:data_quality_standard)
484
535
  @data_stream_id = args[:data_stream_id] if args.key?(:data_stream_id)
485
536
  @data_stream_name = args[:data_stream_name] if args.key?(:data_stream_name)
486
537
  @data_type = args[:data_type] if args.key?(:data_type)
@@ -490,7 +541,7 @@ module Google
490
541
  end
491
542
  end
492
543
 
493
- # See: google3/java/com/google/android/apps/heart/platform/api/DataType.java
544
+ #
494
545
  class DataType
495
546
  include Google::Apis::Core::Hashable
496
547
 
@@ -695,6 +746,12 @@ module Google
695
746
  # @return [Array<Google::Apis::FitnessV1::Session>]
696
747
  attr_accessor :deleted_session
697
748
 
749
+ # Flag to indicate server has more data to transfer
750
+ # Corresponds to the JSON property `hasMoreData`
751
+ # @return [Boolean]
752
+ attr_accessor :has_more_data
753
+ alias_method :has_more_data?, :has_more_data
754
+
698
755
  # The continuation token, which is used to page through large result sets.
699
756
  # Provide this value in a subsequent request to return the next page of results.
700
757
  # Corresponds to the JSON property `nextPageToken`
@@ -713,6 +770,7 @@ module Google
713
770
  # Update properties of this object
714
771
  def update!(**args)
715
772
  @deleted_session = args[:deleted_session] if args.key?(:deleted_session)
773
+ @has_more_data = args[:has_more_data] if args.key?(:has_more_data)
716
774
  @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
717
775
  @session = args[:session] if args.key?(:session)
718
776
  end
@@ -757,7 +815,7 @@ module Google
757
815
  # @return [Fixnum]
758
816
  attr_accessor :activity_type
759
817
 
760
- # See: google3/java/com/google/android/apps/heart/platform/api/Application.java
818
+ #
761
819
  # Corresponds to the JSON property `application`
762
820
  # @return [Google::Apis::FitnessV1::Application]
763
821
  attr_accessor :application