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
@@ -25,7 +25,7 @@ module Google
25
25
  # @see http://developers.google.com/youtube/analytics/
26
26
  module YoutubeAnalyticsV1
27
27
  VERSION = 'V1'
28
- REVISION = '20160513'
28
+ REVISION = '20161105'
29
29
 
30
30
  # Manage your YouTube account
31
31
  AUTH_YOUTUBE = 'https://www.googleapis.com/auth/youtube'
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/youtube/partner/
26
26
  module YoutubePartnerV1
27
27
  VERSION = 'V1'
28
- REVISION = '20160510'
28
+ REVISION = '20161101'
29
29
 
30
30
  # View and manage your assets and associated content on YouTube
31
31
  AUTH_YOUTUBEPARTNER = 'https://www.googleapis.com/auth/youtubepartner'
@@ -1249,6 +1249,11 @@ module Google
1249
1249
  # @return [DateTime]
1250
1250
  attr_accessor :time_created
1251
1251
 
1252
+ # The time the claim status and/or status detail was last modified.
1253
+ # Corresponds to the JSON property `timeStatusLastModified`
1254
+ # @return [DateTime]
1255
+ attr_accessor :time_status_last_modified
1256
+
1252
1257
  # The unique YouTube video ID that identifies the video associated with the
1253
1258
  # claim.
1254
1259
  # Corresponds to the JSON property `videoId`
@@ -1280,6 +1285,7 @@ module Google
1280
1285
  @status = args[:status] if args.key?(:status)
1281
1286
  @third_party_claim = args[:third_party_claim] if args.key?(:third_party_claim)
1282
1287
  @time_created = args[:time_created] if args.key?(:time_created)
1288
+ @time_status_last_modified = args[:time_status_last_modified] if args.key?(:time_status_last_modified)
1283
1289
  @video_id = args[:video_id] if args.key?(:video_id)
1284
1290
  @video_title = args[:video_title] if args.key?(:video_title)
1285
1291
  @video_views = args[:video_views] if args.key?(:video_views)
@@ -856,6 +856,8 @@ module Google
856
856
  property :third_party_claim, as: 'thirdPartyClaim'
857
857
  property :time_created, as: 'timeCreated', type: DateTime
858
858
 
859
+ property :time_status_last_modified, as: 'timeStatusLastModified', type: DateTime
860
+
859
861
  property :video_id, as: 'videoId'
860
862
  property :video_title, as: 'videoTitle'
861
863
  property :video_views, as: 'videoViews'
@@ -1066,10 +1066,10 @@ module Google
1066
1066
  # to retrieve.
1067
1067
  # @param [DateTime] created_after
1068
1068
  # The createdAfter parameter allows you to restrict the set of returned claims
1069
- # to ones originally created after the specified date.
1069
+ # to ones created on or after the specified date (inclusive).
1070
1070
  # @param [DateTime] created_before
1071
1071
  # The createdBefore parameter allows you to restrict the set of returned claims
1072
- # to ones originally created before the specified date.
1072
+ # to ones created before the specified date (exclusive).
1073
1073
  # @param [String] inactive_reasons
1074
1074
  # The inactiveReasons parameter allows you to specify what kind of inactive
1075
1075
  # claims you want to find based on the reasons why the claims became inactive.
@@ -1108,6 +1108,16 @@ module Google
1108
1108
  # @param [String] status
1109
1109
  # The status parameter restricts your results to only claims in the specified
1110
1110
  # status.
1111
+ # @param [DateTime] status_modified_after
1112
+ # The statusModifiedAfter parameter allows you to restrict the result set to
1113
+ # only include claims that have had their status modified on or after the
1114
+ # specified date (inclusive). The date specified must be on or after June 30,
1115
+ # 2016 (2016-06-30). The parameter value's format is YYYY-MM-DD.
1116
+ # @param [DateTime] status_modified_before
1117
+ # The statusModifiedBefore parameter allows you to restrict the result set to
1118
+ # only include claims that have had their status modified before the specified
1119
+ # date (exclusive). The date specified must be on or after July 1, 2016 (2016-07-
1120
+ # 01). The parameter value's format is YYYY-MM-DD.
1111
1121
  # @param [String] video_id
1112
1122
  # The videoId parameter specifies comma-separated list of YouTube video IDs for
1113
1123
  # which you are retrieving claims.
@@ -1132,7 +1142,7 @@ module Google
1132
1142
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1133
1143
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1134
1144
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1135
- def list_claim_searches(asset_id: nil, content_type: nil, created_after: nil, created_before: nil, inactive_reasons: nil, include_third_party_claims: nil, on_behalf_of_content_owner: nil, origin: nil, page_token: nil, partner_uploaded: nil, q: nil, reference_id: nil, sort: nil, status: nil, video_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1145
+ def list_claim_searches(asset_id: nil, content_type: nil, created_after: nil, created_before: nil, inactive_reasons: nil, include_third_party_claims: nil, on_behalf_of_content_owner: nil, origin: nil, page_token: nil, partner_uploaded: nil, q: nil, reference_id: nil, sort: nil, status: nil, status_modified_after: nil, status_modified_before: nil, video_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1136
1146
  command = make_simple_command(:get, 'claimSearch', options)
1137
1147
  command.response_representation = Google::Apis::YoutubePartnerV1::ClaimSearchResponse::Representation
1138
1148
  command.response_class = Google::Apis::YoutubePartnerV1::ClaimSearchResponse
@@ -1150,6 +1160,8 @@ module Google
1150
1160
  command.query['referenceId'] = reference_id unless reference_id.nil?
1151
1161
  command.query['sort'] = sort unless sort.nil?
1152
1162
  command.query['status'] = status unless status.nil?
1163
+ command.query['statusModifiedAfter'] = status_modified_after unless status_modified_after.nil?
1164
+ command.query['statusModifiedBefore'] = status_modified_before unless status_modified_before.nil?
1153
1165
  command.query['videoId'] = video_id unless video_id.nil?
1154
1166
  command.query['fields'] = fields unless fields.nil?
1155
1167
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://developers.google.com/youtube/v3
27
27
  module YoutubeV3
28
28
  VERSION = 'V3'
29
- REVISION = '20160509'
29
+ REVISION = '20161017'
30
30
 
31
31
  # Manage your YouTube account
32
32
  AUTH_YOUTUBE = 'https://www.googleapis.com/auth/youtube'
@@ -1100,12 +1100,6 @@ module Google
1100
1100
  class ChannelContentDetails
1101
1101
  include Google::Apis::Core::Hashable
1102
1102
 
1103
- # The googlePlusUserId object identifies the Google+ profile ID associated with
1104
- # this channel.
1105
- # Corresponds to the JSON property `googlePlusUserId`
1106
- # @return [String]
1107
- attr_accessor :google_plus_user_id
1108
-
1109
1103
  #
1110
1104
  # Corresponds to the JSON property `relatedPlaylists`
1111
1105
  # @return [Google::Apis::YoutubeV3::ChannelContentDetails::RelatedPlaylists]
@@ -1117,7 +1111,6 @@ module Google
1117
1111
 
1118
1112
  # Update properties of this object
1119
1113
  def update!(**args)
1120
- @google_plus_user_id = args[:google_plus_user_id] if args.key?(:google_plus_user_id)
1121
1114
  @related_playlists = args[:related_playlists] if args.key?(:related_playlists)
1122
1115
  end
1123
1116
 
@@ -2005,11 +1998,6 @@ module Google
2005
1998
  # @return [String]
2006
1999
  attr_accessor :author_display_name
2007
2000
 
2008
- # Link to the author's Google+ profile, if any.
2009
- # Corresponds to the JSON property `authorGoogleplusProfileUrl`
2010
- # @return [String]
2011
- attr_accessor :author_googleplus_profile_url
2012
-
2013
2001
  # The URL for the avatar of the user who posted the comment.
2014
2002
  # Corresponds to the JSON property `authorProfileImageUrl`
2015
2003
  # @return [String]
@@ -2092,7 +2080,6 @@ module Google
2092
2080
  @author_channel_id = args[:author_channel_id] if args.key?(:author_channel_id)
2093
2081
  @author_channel_url = args[:author_channel_url] if args.key?(:author_channel_url)
2094
2082
  @author_display_name = args[:author_display_name] if args.key?(:author_display_name)
2095
- @author_googleplus_profile_url = args[:author_googleplus_profile_url] if args.key?(:author_googleplus_profile_url)
2096
2083
  @author_profile_image_url = args[:author_profile_image_url] if args.key?(:author_profile_image_url)
2097
2084
  @can_rate = args[:can_rate] if args.key?(:can_rate)
2098
2085
  @channel_id = args[:channel_id] if args.key?(:channel_id)
@@ -2296,7 +2283,7 @@ module Google
2296
2283
  end
2297
2284
 
2298
2285
  # Ratings schemes. The country-specific ratings are mostly for movies and shows.
2299
- # NEXT_ID: 67
2286
+ # NEXT_ID: 68
2300
2287
  class ContentRating
2301
2288
  include Google::Apis::Core::Hashable
2302
2289
 
@@ -2461,6 +2448,11 @@ module Google
2461
2448
  # @return [String]
2462
2449
  attr_accessor :fpb_rating
2463
2450
 
2451
+ # Reasons that explain why the video received its FPB (South Africa) rating.
2452
+ # Corresponds to the JSON property `fpbRatingReasons`
2453
+ # @return [Array<String>]
2454
+ attr_accessor :fpb_rating_reasons
2455
+
2464
2456
  # The video's Freiwillige Selbstkontrolle der Filmwirtschaft (FSK - Germany)
2465
2457
  # rating.
2466
2458
  # Corresponds to the JSON property `fskRating`
@@ -2696,6 +2688,7 @@ module Google
2696
2688
  @fco_rating = args[:fco_rating] if args.key?(:fco_rating)
2697
2689
  @fmoc_rating = args[:fmoc_rating] if args.key?(:fmoc_rating)
2698
2690
  @fpb_rating = args[:fpb_rating] if args.key?(:fpb_rating)
2691
+ @fpb_rating_reasons = args[:fpb_rating_reasons] if args.key?(:fpb_rating_reasons)
2699
2692
  @fsk_rating = args[:fsk_rating] if args.key?(:fsk_rating)
2700
2693
  @grfilm_rating = args[:grfilm_rating] if args.key?(:grfilm_rating)
2701
2694
  @icaa_rating = args[:icaa_rating] if args.key?(:icaa_rating)
@@ -4533,6 +4526,26 @@ module Google
4533
4526
  # @return [Google::Apis::YoutubeV3::LiveChatMessageRetractedDetails]
4534
4527
  attr_accessor :message_retracted_details
4535
4528
 
4529
+ #
4530
+ # Corresponds to the JSON property `pollClosedDetails`
4531
+ # @return [Google::Apis::YoutubeV3::LiveChatPollClosedDetails]
4532
+ attr_accessor :poll_closed_details
4533
+
4534
+ #
4535
+ # Corresponds to the JSON property `pollEditedDetails`
4536
+ # @return [Google::Apis::YoutubeV3::LiveChatPollEditedDetails]
4537
+ attr_accessor :poll_edited_details
4538
+
4539
+ #
4540
+ # Corresponds to the JSON property `pollOpenedDetails`
4541
+ # @return [Google::Apis::YoutubeV3::LiveChatPollOpenedDetails]
4542
+ attr_accessor :poll_opened_details
4543
+
4544
+ #
4545
+ # Corresponds to the JSON property `pollVotedDetails`
4546
+ # @return [Google::Apis::YoutubeV3::LiveChatPollVotedDetails]
4547
+ attr_accessor :poll_voted_details
4548
+
4536
4549
  # The date and time when the message was orignally published. The value is
4537
4550
  # specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
4538
4551
  # Corresponds to the JSON property `publishedAt`
@@ -4569,6 +4582,10 @@ module Google
4569
4582
  @live_chat_id = args[:live_chat_id] if args.key?(:live_chat_id)
4570
4583
  @message_deleted_details = args[:message_deleted_details] if args.key?(:message_deleted_details)
4571
4584
  @message_retracted_details = args[:message_retracted_details] if args.key?(:message_retracted_details)
4585
+ @poll_closed_details = args[:poll_closed_details] if args.key?(:poll_closed_details)
4586
+ @poll_edited_details = args[:poll_edited_details] if args.key?(:poll_edited_details)
4587
+ @poll_opened_details = args[:poll_opened_details] if args.key?(:poll_opened_details)
4588
+ @poll_voted_details = args[:poll_voted_details] if args.key?(:poll_voted_details)
4572
4589
  @published_at = args[:published_at] if args.key?(:published_at)
4573
4590
  @text_message_details = args[:text_message_details] if args.key?(:text_message_details)
4574
4591
  @type = args[:type] if args.key?(:type)
@@ -4712,6 +4729,137 @@ module Google
4712
4729
  end
4713
4730
  end
4714
4731
 
4732
+ #
4733
+ class LiveChatPollClosedDetails
4734
+ include Google::Apis::Core::Hashable
4735
+
4736
+ # The id of the poll that was closed.
4737
+ # Corresponds to the JSON property `pollId`
4738
+ # @return [String]
4739
+ attr_accessor :poll_id
4740
+
4741
+ def initialize(**args)
4742
+ update!(**args)
4743
+ end
4744
+
4745
+ # Update properties of this object
4746
+ def update!(**args)
4747
+ @poll_id = args[:poll_id] if args.key?(:poll_id)
4748
+ end
4749
+ end
4750
+
4751
+ #
4752
+ class LiveChatPollEditedDetails
4753
+ include Google::Apis::Core::Hashable
4754
+
4755
+ #
4756
+ # Corresponds to the JSON property `id`
4757
+ # @return [String]
4758
+ attr_accessor :id
4759
+
4760
+ #
4761
+ # Corresponds to the JSON property `items`
4762
+ # @return [Array<Google::Apis::YoutubeV3::LiveChatPollItem>]
4763
+ attr_accessor :items
4764
+
4765
+ #
4766
+ # Corresponds to the JSON property `prompt`
4767
+ # @return [String]
4768
+ attr_accessor :prompt
4769
+
4770
+ def initialize(**args)
4771
+ update!(**args)
4772
+ end
4773
+
4774
+ # Update properties of this object
4775
+ def update!(**args)
4776
+ @id = args[:id] if args.key?(:id)
4777
+ @items = args[:items] if args.key?(:items)
4778
+ @prompt = args[:prompt] if args.key?(:prompt)
4779
+ end
4780
+ end
4781
+
4782
+ #
4783
+ class LiveChatPollItem
4784
+ include Google::Apis::Core::Hashable
4785
+
4786
+ # Plain text description of the item.
4787
+ # Corresponds to the JSON property `description`
4788
+ # @return [String]
4789
+ attr_accessor :description
4790
+
4791
+ #
4792
+ # Corresponds to the JSON property `itemId`
4793
+ # @return [String]
4794
+ attr_accessor :item_id
4795
+
4796
+ def initialize(**args)
4797
+ update!(**args)
4798
+ end
4799
+
4800
+ # Update properties of this object
4801
+ def update!(**args)
4802
+ @description = args[:description] if args.key?(:description)
4803
+ @item_id = args[:item_id] if args.key?(:item_id)
4804
+ end
4805
+ end
4806
+
4807
+ #
4808
+ class LiveChatPollOpenedDetails
4809
+ include Google::Apis::Core::Hashable
4810
+
4811
+ #
4812
+ # Corresponds to the JSON property `id`
4813
+ # @return [String]
4814
+ attr_accessor :id
4815
+
4816
+ #
4817
+ # Corresponds to the JSON property `items`
4818
+ # @return [Array<Google::Apis::YoutubeV3::LiveChatPollItem>]
4819
+ attr_accessor :items
4820
+
4821
+ #
4822
+ # Corresponds to the JSON property `prompt`
4823
+ # @return [String]
4824
+ attr_accessor :prompt
4825
+
4826
+ def initialize(**args)
4827
+ update!(**args)
4828
+ end
4829
+
4830
+ # Update properties of this object
4831
+ def update!(**args)
4832
+ @id = args[:id] if args.key?(:id)
4833
+ @items = args[:items] if args.key?(:items)
4834
+ @prompt = args[:prompt] if args.key?(:prompt)
4835
+ end
4836
+ end
4837
+
4838
+ #
4839
+ class LiveChatPollVotedDetails
4840
+ include Google::Apis::Core::Hashable
4841
+
4842
+ # The poll item the user chose.
4843
+ # Corresponds to the JSON property `itemId`
4844
+ # @return [String]
4845
+ attr_accessor :item_id
4846
+
4847
+ # The poll the user voted on.
4848
+ # Corresponds to the JSON property `pollId`
4849
+ # @return [String]
4850
+ attr_accessor :poll_id
4851
+
4852
+ def initialize(**args)
4853
+ update!(**args)
4854
+ end
4855
+
4856
+ # Update properties of this object
4857
+ def update!(**args)
4858
+ @item_id = args[:item_id] if args.key?(:item_id)
4859
+ @poll_id = args[:poll_id] if args.key?(:poll_id)
4860
+ end
4861
+ end
4862
+
4715
4863
  #
4716
4864
  class LiveChatTextMessageDetails
4717
4865
  include Google::Apis::Core::Hashable
@@ -7119,7 +7267,7 @@ module Google
7119
7267
  attr_accessor :caption
7120
7268
 
7121
7269
  # Ratings schemes. The country-specific ratings are mostly for movies and shows.
7122
- # NEXT_ID: 67
7270
+ # NEXT_ID: 68
7123
7271
  # Corresponds to the JSON property `contentRating`
7124
7272
  # @return [Google::Apis::YoutubeV3::ContentRating]
7125
7273
  attr_accessor :content_rating
@@ -7150,6 +7298,13 @@ module Google
7150
7298
  # @return [String]
7151
7299
  attr_accessor :duration
7152
7300
 
7301
+ # Indicates whether the video uploader has provided a custom thumbnail image for
7302
+ # the video. This property is only visible to the video uploader.
7303
+ # Corresponds to the JSON property `hasCustomThumbnail`
7304
+ # @return [Boolean]
7305
+ attr_accessor :has_custom_thumbnail
7306
+ alias_method :has_custom_thumbnail?, :has_custom_thumbnail
7307
+
7153
7308
  # The value of is_license_content indicates whether the video is licensed
7154
7309
  # content.
7155
7310
  # Corresponds to the JSON property `licensedContent`
@@ -7179,6 +7334,7 @@ module Google
7179
7334
  @definition = args[:definition] if args.key?(:definition)
7180
7335
  @dimension = args[:dimension] if args.key?(:dimension)
7181
7336
  @duration = args[:duration] if args.key?(:duration)
7337
+ @has_custom_thumbnail = args[:has_custom_thumbnail] if args.key?(:has_custom_thumbnail)
7182
7338
  @licensed_content = args[:licensed_content] if args.key?(:licensed_content)
7183
7339
  @projection = args[:projection] if args.key?(:projection)
7184
7340
  @region_restriction = args[:region_restriction] if args.key?(:region_restriction)
@@ -7273,11 +7429,6 @@ module Google
7273
7429
  # @return [String]
7274
7430
  attr_accessor :file_type
7275
7431
 
7276
- # Geographical coordinates of a point, in WGS84.
7277
- # Corresponds to the JSON property `recordingLocation`
7278
- # @return [Google::Apis::YoutubeV3::GeoPoint]
7279
- attr_accessor :recording_location
7280
-
7281
7432
  # A list of video streams contained in the uploaded video file. Each item in the
7282
7433
  # list contains detailed metadata about a video stream.
7283
7434
  # Corresponds to the JSON property `videoStreams`
@@ -7298,7 +7449,6 @@ module Google
7298
7449
  @file_name = args[:file_name] if args.key?(:file_name)
7299
7450
  @file_size = args[:file_size] if args.key?(:file_size)
7300
7451
  @file_type = args[:file_type] if args.key?(:file_type)
7301
- @recording_location = args[:recording_location] if args.key?(:recording_location)
7302
7452
  @video_streams = args[:video_streams] if args.key?(:video_streams)
7303
7453
  end
7304
7454
  end
@@ -7635,18 +7785,30 @@ module Google
7635
7785
  class VideoPlayer
7636
7786
  include Google::Apis::Core::Hashable
7637
7787
 
7788
+ #
7789
+ # Corresponds to the JSON property `embedHeight`
7790
+ # @return [String]
7791
+ attr_accessor :embed_height
7792
+
7638
7793
  # An <iframe> tag that embeds a player that will play the video.
7639
7794
  # Corresponds to the JSON property `embedHtml`
7640
7795
  # @return [String]
7641
7796
  attr_accessor :embed_html
7642
7797
 
7798
+ # The embed width
7799
+ # Corresponds to the JSON property `embedWidth`
7800
+ # @return [String]
7801
+ attr_accessor :embed_width
7802
+
7643
7803
  def initialize(**args)
7644
7804
  update!(**args)
7645
7805
  end
7646
7806
 
7647
7807
  # Update properties of this object
7648
7808
  def update!(**args)
7809
+ @embed_height = args[:embed_height] if args.key?(:embed_height)
7649
7810
  @embed_html = args[:embed_html] if args.key?(:embed_html)
7811
+ @embed_width = args[:embed_width] if args.key?(:embed_width)
7650
7812
  end
7651
7813
  end
7652
7814
 
@@ -574,6 +574,36 @@ module Google
574
574
  include Google::Apis::Core::JsonObjectSupport
575
575
  end
576
576
 
577
+ class LiveChatPollClosedDetails
578
+ class Representation < Google::Apis::Core::JsonRepresentation; end
579
+
580
+ include Google::Apis::Core::JsonObjectSupport
581
+ end
582
+
583
+ class LiveChatPollEditedDetails
584
+ class Representation < Google::Apis::Core::JsonRepresentation; end
585
+
586
+ include Google::Apis::Core::JsonObjectSupport
587
+ end
588
+
589
+ class LiveChatPollItem
590
+ class Representation < Google::Apis::Core::JsonRepresentation; end
591
+
592
+ include Google::Apis::Core::JsonObjectSupport
593
+ end
594
+
595
+ class LiveChatPollOpenedDetails
596
+ class Representation < Google::Apis::Core::JsonRepresentation; end
597
+
598
+ include Google::Apis::Core::JsonObjectSupport
599
+ end
600
+
601
+ class LiveChatPollVotedDetails
602
+ class Representation < Google::Apis::Core::JsonRepresentation; end
603
+
604
+ include Google::Apis::Core::JsonObjectSupport
605
+ end
606
+
577
607
  class LiveChatTextMessageDetails
578
608
  class Representation < Google::Apis::Core::JsonRepresentation; end
579
609
 
@@ -1345,7 +1375,6 @@ module Google
1345
1375
  class ChannelContentDetails
1346
1376
  # @private
1347
1377
  class Representation < Google::Apis::Core::JsonRepresentation
1348
- property :google_plus_user_id, as: 'googlePlusUserId'
1349
1378
  property :related_playlists, as: 'relatedPlaylists', class: Google::Apis::YoutubeV3::ChannelContentDetails::RelatedPlaylists, decorator: Google::Apis::YoutubeV3::ChannelContentDetails::RelatedPlaylists::Representation
1350
1379
 
1351
1380
  end
@@ -1588,7 +1617,6 @@ module Google
1588
1617
  property :author_channel_id, as: 'authorChannelId'
1589
1618
  property :author_channel_url, as: 'authorChannelUrl'
1590
1619
  property :author_display_name, as: 'authorDisplayName'
1591
- property :author_googleplus_profile_url, as: 'authorGoogleplusProfileUrl'
1592
1620
  property :author_profile_image_url, as: 'authorProfileImageUrl'
1593
1621
  property :can_rate, as: 'canRate'
1594
1622
  property :channel_id, as: 'channelId'
@@ -1689,6 +1717,7 @@ module Google
1689
1717
  property :fco_rating, as: 'fcoRating'
1690
1718
  property :fmoc_rating, as: 'fmocRating'
1691
1719
  property :fpb_rating, as: 'fpbRating'
1720
+ collection :fpb_rating_reasons, as: 'fpbRatingReasons'
1692
1721
  property :fsk_rating, as: 'fskRating'
1693
1722
  property :grfilm_rating, as: 'grfilmRating'
1694
1723
  property :icaa_rating, as: 'icaaRating'
@@ -2202,6 +2231,14 @@ module Google
2202
2231
 
2203
2232
  property :message_retracted_details, as: 'messageRetractedDetails', class: Google::Apis::YoutubeV3::LiveChatMessageRetractedDetails, decorator: Google::Apis::YoutubeV3::LiveChatMessageRetractedDetails::Representation
2204
2233
 
2234
+ property :poll_closed_details, as: 'pollClosedDetails', class: Google::Apis::YoutubeV3::LiveChatPollClosedDetails, decorator: Google::Apis::YoutubeV3::LiveChatPollClosedDetails::Representation
2235
+
2236
+ property :poll_edited_details, as: 'pollEditedDetails', class: Google::Apis::YoutubeV3::LiveChatPollEditedDetails, decorator: Google::Apis::YoutubeV3::LiveChatPollEditedDetails::Representation
2237
+
2238
+ property :poll_opened_details, as: 'pollOpenedDetails', class: Google::Apis::YoutubeV3::LiveChatPollOpenedDetails, decorator: Google::Apis::YoutubeV3::LiveChatPollOpenedDetails::Representation
2239
+
2240
+ property :poll_voted_details, as: 'pollVotedDetails', class: Google::Apis::YoutubeV3::LiveChatPollVotedDetails, decorator: Google::Apis::YoutubeV3::LiveChatPollVotedDetails::Representation
2241
+
2205
2242
  property :published_at, as: 'publishedAt', type: DateTime
2206
2243
 
2207
2244
  property :text_message_details, as: 'textMessageDetails', class: Google::Apis::YoutubeV3::LiveChatTextMessageDetails, decorator: Google::Apis::YoutubeV3::LiveChatTextMessageDetails::Representation
@@ -2250,6 +2287,49 @@ module Google
2250
2287
  end
2251
2288
  end
2252
2289
 
2290
+ class LiveChatPollClosedDetails
2291
+ # @private
2292
+ class Representation < Google::Apis::Core::JsonRepresentation
2293
+ property :poll_id, as: 'pollId'
2294
+ end
2295
+ end
2296
+
2297
+ class LiveChatPollEditedDetails
2298
+ # @private
2299
+ class Representation < Google::Apis::Core::JsonRepresentation
2300
+ property :id, as: 'id'
2301
+ collection :items, as: 'items', class: Google::Apis::YoutubeV3::LiveChatPollItem, decorator: Google::Apis::YoutubeV3::LiveChatPollItem::Representation
2302
+
2303
+ property :prompt, as: 'prompt'
2304
+ end
2305
+ end
2306
+
2307
+ class LiveChatPollItem
2308
+ # @private
2309
+ class Representation < Google::Apis::Core::JsonRepresentation
2310
+ property :description, as: 'description'
2311
+ property :item_id, as: 'itemId'
2312
+ end
2313
+ end
2314
+
2315
+ class LiveChatPollOpenedDetails
2316
+ # @private
2317
+ class Representation < Google::Apis::Core::JsonRepresentation
2318
+ property :id, as: 'id'
2319
+ collection :items, as: 'items', class: Google::Apis::YoutubeV3::LiveChatPollItem, decorator: Google::Apis::YoutubeV3::LiveChatPollItem::Representation
2320
+
2321
+ property :prompt, as: 'prompt'
2322
+ end
2323
+ end
2324
+
2325
+ class LiveChatPollVotedDetails
2326
+ # @private
2327
+ class Representation < Google::Apis::Core::JsonRepresentation
2328
+ property :item_id, as: 'itemId'
2329
+ property :poll_id, as: 'pollId'
2330
+ end
2331
+ end
2332
+
2253
2333
  class LiveChatTextMessageDetails
2254
2334
  # @private
2255
2335
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2924,6 +3004,7 @@ module Google
2924
3004
  property :definition, as: 'definition'
2925
3005
  property :dimension, as: 'dimension'
2926
3006
  property :duration, as: 'duration'
3007
+ property :has_custom_thumbnail, as: 'hasCustomThumbnail'
2927
3008
  property :licensed_content, as: 'licensedContent'
2928
3009
  property :projection, as: 'projection'
2929
3010
  property :region_restriction, as: 'regionRestriction', class: Google::Apis::YoutubeV3::VideoContentDetailsRegionRestriction, decorator: Google::Apis::YoutubeV3::VideoContentDetailsRegionRestriction::Representation
@@ -2951,8 +3032,6 @@ module Google
2951
3032
  property :file_name, as: 'fileName'
2952
3033
  property :file_size, as: 'fileSize'
2953
3034
  property :file_type, as: 'fileType'
2954
- property :recording_location, as: 'recordingLocation', class: Google::Apis::YoutubeV3::GeoPoint, decorator: Google::Apis::YoutubeV3::GeoPoint::Representation
2955
-
2956
3035
  collection :video_streams, as: 'videoStreams', class: Google::Apis::YoutubeV3::VideoFileDetailsVideoStream, decorator: Google::Apis::YoutubeV3::VideoFileDetailsVideoStream::Representation
2957
3036
 
2958
3037
  end
@@ -3047,7 +3126,9 @@ module Google
3047
3126
  class VideoPlayer
3048
3127
  # @private
3049
3128
  class Representation < Google::Apis::Core::JsonRepresentation
3129
+ property :embed_height, as: 'embedHeight'
3050
3130
  property :embed_html, as: 'embedHtml'
3131
+ property :embed_width, as: 'embedWidth'
3051
3132
  end
3052
3133
  end
3053
3134