google-api-client 0.9.8 → 0.9.15

Sign up to get free protection for your applications and to get access to all the features.
Files changed (197) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +30 -0
  3. data/Gemfile +9 -1
  4. data/README.md +10 -2
  5. data/api_names.yaml +61 -110
  6. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  7. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +160 -9
  8. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +46 -0
  9. data/generated/google/apis/adexchangebuyer_v1_4/service.rb +22 -8
  10. data/generated/google/apis/adexchangeseller_v2_0.rb +2 -3
  11. data/generated/google/apis/adexchangeseller_v2_0/service.rb +1 -2
  12. data/generated/google/apis/admin_directory_v1.rb +1 -1
  13. data/generated/google/apis/admin_directory_v1/classes.rb +6 -0
  14. data/generated/google/apis/admin_directory_v1/representations.rb +1 -0
  15. data/generated/google/apis/admin_directory_v1/service.rb +2 -2
  16. data/generated/google/apis/admin_reports_v1.rb +3 -3
  17. data/generated/google/apis/admin_reports_v1/service.rb +2 -2
  18. data/generated/google/apis/adsense_v1_4.rb +1 -1
  19. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  20. data/generated/google/apis/analytics_v3.rb +1 -1
  21. data/generated/google/apis/analytics_v3/classes.rb +371 -1
  22. data/generated/google/apis/analytics_v3/representations.rb +135 -0
  23. data/generated/google/apis/analytics_v3/service.rb +218 -0
  24. data/generated/google/apis/analyticsreporting_v4.rb +1 -1
  25. data/generated/google/apis/analyticsreporting_v4/classes.rb +50 -22
  26. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  27. data/generated/google/apis/androidenterprise_v1/classes.rb +722 -48
  28. data/generated/google/apis/androidenterprise_v1/representations.rb +305 -0
  29. data/generated/google/apis/androidenterprise_v1/service.rb +1180 -146
  30. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  31. data/generated/google/apis/androidpublisher_v2/classes.rb +9 -8
  32. data/generated/google/apis/appengine_v1beta5.rb +1 -1
  33. data/generated/google/apis/appengine_v1beta5/classes.rb +430 -288
  34. data/generated/google/apis/appengine_v1beta5/representations.rb +84 -10
  35. data/generated/google/apis/appengine_v1beta5/service.rb +285 -25
  36. data/generated/google/apis/appsactivity_v1.rb +1 -1
  37. data/generated/google/apis/appstate_v1.rb +1 -1
  38. data/generated/google/apis/bigquery_v2.rb +1 -1
  39. data/generated/google/apis/bigquery_v2/classes.rb +254 -6
  40. data/generated/google/apis/bigquery_v2/representations.rb +85 -0
  41. data/generated/google/apis/bigquery_v2/service.rb +8 -2
  42. data/generated/google/apis/books_v1.rb +2 -2
  43. data/generated/google/apis/books_v1/classes.rb +77 -0
  44. data/generated/google/apis/books_v1/representations.rb +34 -0
  45. data/generated/google/apis/books_v1/service.rb +7 -3
  46. data/generated/google/apis/calendar_v3.rb +1 -1
  47. data/generated/google/apis/civicinfo_v2.rb +3 -2
  48. data/generated/google/apis/civicinfo_v2/classes.rb +16 -4
  49. data/generated/google/apis/civicinfo_v2/representations.rb +2 -0
  50. data/generated/google/apis/civicinfo_v2/service.rb +8 -2
  51. data/generated/google/apis/classroom_v1.rb +1 -1
  52. data/generated/google/apis/classroom_v1/classes.rb +176 -37
  53. data/generated/google/apis/classroom_v1/representations.rb +73 -9
  54. data/generated/google/apis/classroom_v1/service.rb +392 -37
  55. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  56. data/generated/google/apis/cloudbuild_v1/classes.rb +320 -12
  57. data/generated/google/apis/cloudbuild_v1/representations.rb +136 -2
  58. data/generated/google/apis/cloudbuild_v1/service.rb +174 -1
  59. data/generated/google/apis/clouddebugger_v2.rb +3 -6
  60. data/generated/google/apis/clouddebugger_v2/service.rb +4 -4
  61. data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
  62. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  63. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +157 -3
  64. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +33 -0
  65. data/generated/google/apis/cloudresourcemanager_v1/service.rb +60 -21
  66. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  67. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +22 -5
  68. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +2 -0
  69. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +61 -39
  70. data/generated/google/apis/compute_beta.rb +1 -1
  71. data/generated/google/apis/compute_beta/classes.rb +1620 -199
  72. data/generated/google/apis/compute_beta/representations.rb +563 -0
  73. data/generated/google/apis/compute_beta/service.rb +5123 -2690
  74. data/generated/google/apis/compute_v1.rb +1 -1
  75. data/generated/google/apis/compute_v1/classes.rb +1717 -295
  76. data/generated/google/apis/compute_v1/representations.rb +536 -0
  77. data/generated/google/apis/compute_v1/service.rb +2038 -1041
  78. data/generated/google/apis/content_v2.rb +1 -1
  79. data/generated/google/apis/content_v2/classes.rb +709 -1
  80. data/generated/google/apis/content_v2/representations.rb +319 -0
  81. data/generated/google/apis/content_v2/service.rb +244 -0
  82. data/generated/google/apis/datastore_v1.rb +38 -0
  83. data/generated/google/apis/datastore_v1/classes.rb +1284 -0
  84. data/generated/google/apis/datastore_v1/representations.rb +572 -0
  85. data/generated/google/apis/datastore_v1/service.rb +259 -0
  86. data/generated/google/apis/datastore_v1beta3.rb +38 -0
  87. data/generated/google/apis/datastore_v1beta3/classes.rb +1284 -0
  88. data/generated/google/apis/datastore_v1beta3/representations.rb +572 -0
  89. data/generated/google/apis/datastore_v1beta3/service.rb +259 -0
  90. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  91. data/generated/google/apis/deploymentmanager_v2/classes.rb +384 -2
  92. data/generated/google/apis/deploymentmanager_v2/representations.rb +161 -0
  93. data/generated/google/apis/deploymentmanager_v2/service.rb +162 -50
  94. data/generated/google/apis/dfareporting_v2_5.rb +40 -0
  95. data/generated/google/apis/dfareporting_v2_5/classes.rb +11225 -0
  96. data/generated/google/apis/dfareporting_v2_5/representations.rb +3982 -0
  97. data/generated/google/apis/dfareporting_v2_5/service.rb +8755 -0
  98. data/generated/google/apis/dfareporting_v2_6.rb +40 -0
  99. data/generated/google/apis/dfareporting_v2_6/classes.rb +11585 -0
  100. data/generated/google/apis/dfareporting_v2_6/representations.rb +4119 -0
  101. data/generated/google/apis/dfareporting_v2_6/service.rb +9006 -0
  102. data/generated/google/apis/dns_v1.rb +1 -1
  103. data/generated/google/apis/dns_v1/classes.rb +1 -1
  104. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  105. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  106. data/generated/google/apis/drive_v2.rb +1 -1
  107. data/generated/google/apis/drive_v2/classes.rb +11 -3
  108. data/generated/google/apis/drive_v2/representations.rb +2 -0
  109. data/generated/google/apis/drive_v2/service.rb +8 -2
  110. data/generated/google/apis/drive_v3.rb +1 -1
  111. data/generated/google/apis/drive_v3/classes.rb +36 -16
  112. data/generated/google/apis/drive_v3/representations.rb +2 -0
  113. data/generated/google/apis/drive_v3/service.rb +4 -1
  114. data/generated/google/apis/fitness_v1.rb +8 -2
  115. data/generated/google/apis/fitness_v1/classes.rb +64 -6
  116. data/generated/google/apis/fitness_v1/representations.rb +20 -0
  117. data/generated/google/apis/fitness_v1/service.rb +17 -18
  118. data/generated/google/apis/fusiontables_v2.rb +1 -1
  119. data/generated/google/apis/fusiontables_v2/classes.rb +4 -3
  120. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  121. data/generated/google/apis/games_management_v1management.rb +1 -1
  122. data/generated/google/apis/games_v1.rb +1 -1
  123. data/generated/google/apis/genomics_v1.rb +2 -4
  124. data/generated/google/apis/genomics_v1/classes.rb +111 -9
  125. data/generated/google/apis/genomics_v1/representations.rb +36 -0
  126. data/generated/google/apis/genomics_v1/service.rb +4 -7
  127. data/generated/google/apis/gmail_v1.rb +7 -1
  128. data/generated/google/apis/gmail_v1/classes.rb +540 -0
  129. data/generated/google/apis/gmail_v1/representations.rb +213 -0
  130. data/generated/google/apis/gmail_v1/service.rb +898 -1
  131. data/generated/google/apis/groupssettings_v1.rb +1 -1
  132. data/generated/google/apis/groupssettings_v1/classes.rb +12 -0
  133. data/generated/google/apis/groupssettings_v1/representations.rb +2 -0
  134. data/generated/google/apis/identitytoolkit_v3.rb +1 -1
  135. data/generated/google/apis/identitytoolkit_v3/classes.rb +154 -1
  136. data/generated/google/apis/identitytoolkit_v3/representations.rb +35 -0
  137. data/generated/google/apis/language_v1beta1.rb +36 -0
  138. data/generated/google/apis/language_v1beta1/classes.rb +596 -0
  139. data/generated/google/apis/language_v1beta1/representations.rb +289 -0
  140. data/generated/google/apis/language_v1beta1/service.rb +154 -0
  141. data/generated/google/apis/mirror_v1.rb +2 -2
  142. data/generated/google/apis/mirror_v1/service.rb +1 -1
  143. data/generated/google/apis/monitoring_v3.rb +45 -0
  144. data/generated/google/apis/monitoring_v3/classes.rb +1328 -0
  145. data/generated/google/apis/monitoring_v3/representations.rb +516 -0
  146. data/generated/google/apis/monitoring_v3/service.rb +711 -0
  147. data/generated/google/apis/oauth2_v2.rb +1 -1
  148. data/generated/google/apis/pagespeedonline_v2.rb +1 -1
  149. data/generated/google/apis/plus_domains_v1.rb +1 -1
  150. data/generated/google/apis/plus_v1.rb +1 -1
  151. data/generated/google/apis/qpx_express_v1.rb +1 -1
  152. data/generated/google/apis/qpx_express_v1/classes.rb +6 -0
  153. data/generated/google/apis/qpx_express_v1/representations.rb +1 -0
  154. data/generated/google/apis/replicapool_v1beta2.rb +1 -1
  155. data/generated/google/apis/script_v1.rb +1 -1
  156. data/generated/google/apis/script_v1/classes.rb +6 -0
  157. data/generated/google/apis/script_v1/representations.rb +1 -0
  158. data/generated/google/apis/sheets_v4.rb +1 -1
  159. data/generated/google/apis/sheets_v4/classes.rb +35 -0
  160. data/generated/google/apis/sheets_v4/representations.rb +16 -0
  161. data/generated/google/apis/sheets_v4/service.rb +55 -0
  162. data/generated/google/apis/speech_v1beta1.rb +34 -0
  163. data/generated/google/apis/speech_v1beta1/classes.rb +521 -0
  164. data/generated/google/apis/speech_v1beta1/representations.rb +219 -0
  165. data/generated/google/apis/speech_v1beta1/service.rb +268 -0
  166. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  167. data/generated/google/apis/sqladmin_v1beta4/classes.rb +26 -8
  168. data/generated/google/apis/sqladmin_v1beta4/representations.rb +2 -0
  169. data/generated/google/apis/sqladmin_v1beta4/service.rb +42 -0
  170. data/generated/google/apis/storage_v1.rb +1 -1
  171. data/generated/google/apis/storage_v1/classes.rb +19 -10
  172. data/generated/google/apis/translate_v2.rb +2 -2
  173. data/generated/google/apis/translate_v2/service.rb +1 -1
  174. data/generated/google/apis/vision_v1.rb +1 -1
  175. data/generated/google/apis/vision_v1/classes.rb +10 -9
  176. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  177. data/generated/google/apis/youtube_partner_v1/classes.rb +6 -0
  178. data/generated/google/apis/youtube_partner_v1/representations.rb +2 -0
  179. data/generated/google/apis/youtube_partner_v1/service.rb +15 -3
  180. data/generated/google/apis/youtube_v3.rb +1 -1
  181. data/generated/google/apis/youtube_v3/classes.rb +163 -2
  182. data/generated/google/apis/youtube_v3/representations.rb +82 -0
  183. data/generated/google/apis/youtube_v3/service.rb +6 -2
  184. data/generated/google/apis/youtubereporting_v1.rb +1 -1
  185. data/google-api-client.gemspec +2 -1
  186. data/lib/google/apis/core/api_command.rb +4 -0
  187. data/lib/google/apis/core/base_service.rb +10 -4
  188. data/lib/google/apis/core/download.rb +7 -2
  189. data/lib/google/apis/core/http_command.rb +5 -1
  190. data/lib/google/apis/core/upload.rb +7 -1
  191. data/lib/google/apis/errors.rb +2 -2
  192. data/lib/google/apis/generator/annotator.rb +6 -0
  193. data/lib/google/apis/version.rb +1 -1
  194. data/samples/cli/lib/samples/bigquery.rb +101 -0
  195. data/samples/cli/lib/samples/sheets.rb +61 -0
  196. data/sync.rb +71 -0
  197. metadata +43 -13
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://cloud.google.com/sql/docs/reference/latest
27
27
  module SqladminV1beta4
28
28
  VERSION = 'V1beta4'
29
- REVISION = '20160509'
29
+ REVISION = '20160907'
30
30
 
31
31
  # View and manage your data across Google Cloud Platform services
32
32
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -105,6 +105,11 @@ module Google
105
105
  class BackupRun
106
106
  include Google::Apis::Core::Hashable
107
107
 
108
+ # The description of this run, only applicable to on-demand backups.
109
+ # Corresponds to the JSON property `description`
110
+ # @return [String]
111
+ attr_accessor :description
112
+
108
113
  # The time the backup operation completed in UTC timezone in RFC 3339 format,
109
114
  # for example 2012-11-15T16:19:00.094Z.
110
115
  # Corresponds to the JSON property `endTime`
@@ -154,6 +159,11 @@ module Google
154
159
  # @return [String]
155
160
  attr_accessor :status
156
161
 
162
+ # The type of this run; can be either "AUTOMATED" or "ON_DEMAND".
163
+ # Corresponds to the JSON property `type`
164
+ # @return [String]
165
+ attr_accessor :type
166
+
157
167
  # The start time of the backup window during which this the backup was attempted
158
168
  # in RFC 3339 format, for example 2012-11-15T16:19:00.094Z.
159
169
  # Corresponds to the JSON property `windowStartTime`
@@ -166,6 +176,7 @@ module Google
166
176
 
167
177
  # Update properties of this object
168
178
  def update!(**args)
179
+ @description = args[:description] if args.key?(:description)
169
180
  @end_time = args[:end_time] if args.key?(:end_time)
170
181
  @enqueued_time = args[:enqueued_time] if args.key?(:enqueued_time)
171
182
  @error = args[:error] if args.key?(:error)
@@ -175,6 +186,7 @@ module Google
175
186
  @self_link = args[:self_link] if args.key?(:self_link)
176
187
  @start_time = args[:start_time] if args.key?(:start_time)
177
188
  @status = args[:status] if args.key?(:status)
189
+ @type = args[:type] if args.key?(:type)
178
190
  @window_start_time = args[:window_start_time] if args.key?(:window_start_time)
179
191
  end
180
192
  end
@@ -555,7 +567,9 @@ module Google
555
567
  attr_accessor :available
556
568
  alias_method :available?, :available
557
569
 
558
- # The name of the failover replica.
570
+ # The name of the failover replica. If specified at instance creation, a
571
+ # failover replica is created for the instance. The name doesn't include the
572
+ # project ID. This property is applicable only to Second Generation instances.
559
573
  # Corresponds to the JSON property `name`
560
574
  # @return [String]
561
575
  attr_accessor :name
@@ -1541,13 +1555,17 @@ module Google
1541
1555
  class Settings
1542
1556
  include Google::Apis::Core::Hashable
1543
1557
 
1544
- # The activation policy for this instance. This specifies when the instance
1545
- # should be activated and is applicable only when the instance state is RUNNABLE.
1546
- # This can be one of the following.
1547
- # ALWAYS: The instance should always be active.
1548
- # NEVER: The instance should never be activated.
1549
- # ON_DEMAND: The instance is activated upon receiving requests; only applicable
1550
- # to First Generation instances.
1558
+ # The activation policy specifies when the instance is activated; it is
1559
+ # applicable only when the instance state is RUNNABLE. The activation policy
1560
+ # cannot be updated together with other settings for Second Generation instances.
1561
+ # Valid values:
1562
+ # ALWAYS: The instance is on; it is not deactivated by inactivity.
1563
+ # NEVER: The instance is off; it is not activated, even if a connection request
1564
+ # arrives.
1565
+ # ON_DEMAND: The instance responds to incoming requests, and turns itself off
1566
+ # when not in use. Instances with PER_USE pricing turn off after 15 minutes of
1567
+ # inactivity. Instances with PER_PACKAGE pricing turn off after 12 hours of
1568
+ # inactivity.
1551
1569
  # Corresponds to the JSON property `activationPolicy`
1552
1570
  # @return [String]
1553
1571
  attr_accessor :activation_policy
@@ -334,6 +334,7 @@ module Google
334
334
  class BackupRun
335
335
  # @private
336
336
  class Representation < Google::Apis::Core::JsonRepresentation
337
+ property :description, as: 'description'
337
338
  property :end_time, as: 'endTime', type: DateTime
338
339
 
339
340
  property :enqueued_time, as: 'enqueuedTime', type: DateTime
@@ -347,6 +348,7 @@ module Google
347
348
  property :start_time, as: 'startTime', type: DateTime
348
349
 
349
350
  property :status, as: 'status'
351
+ property :type, as: 'type'
350
352
  property :window_start_time, as: 'windowStartTime', type: DateTime
351
353
 
352
354
  end
@@ -136,6 +136,48 @@ module Google
136
136
  execute_or_queue_command(command, &block)
137
137
  end
138
138
 
139
+ # Creates a new backup run on demand. This method is applicable only to Second
140
+ # Generation instances.
141
+ # @param [String] project
142
+ # Project ID of the project that contains the instance.
143
+ # @param [String] instance
144
+ # Cloud SQL instance ID. This does not include the project ID.
145
+ # @param [Google::Apis::SqladminV1beta4::BackupRun] backup_run_object
146
+ # @param [String] fields
147
+ # Selector specifying which fields to include in a partial response.
148
+ # @param [String] quota_user
149
+ # Available to use for quota purposes for server-side applications. Can be any
150
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
151
+ # Overrides userIp if both are provided.
152
+ # @param [String] user_ip
153
+ # IP address of the site where the request originates. Use this if you want to
154
+ # enforce per-user limits.
155
+ # @param [Google::Apis::RequestOptions] options
156
+ # Request-specific options
157
+ #
158
+ # @yield [result, err] Result & error if block supplied
159
+ # @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object
160
+ # @yieldparam err [StandardError] error object if request failed
161
+ #
162
+ # @return [Google::Apis::SqladminV1beta4::Operation]
163
+ #
164
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
165
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
166
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
167
+ def insert_backup_run(project, instance, backup_run_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
168
+ command = make_simple_command(:post, 'projects/{project}/instances/{instance}/backupRuns', options)
169
+ command.request_representation = Google::Apis::SqladminV1beta4::BackupRun::Representation
170
+ command.request_object = backup_run_object
171
+ command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
172
+ command.response_class = Google::Apis::SqladminV1beta4::Operation
173
+ command.params['project'] = project unless project.nil?
174
+ command.params['instance'] = instance unless instance.nil?
175
+ command.query['fields'] = fields unless fields.nil?
176
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
177
+ command.query['userIp'] = user_ip unless user_ip.nil?
178
+ execute_or_queue_command(command, &block)
179
+ end
180
+
139
181
  # Lists all backup runs associated with a given instance and configuration in
140
182
  # the reverse chronological order of the enqueued time.
141
183
  # @param [String] project
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/storage/docs/json_api/
26
26
  module StorageV1
27
27
  VERSION = 'V1'
28
- REVISION = '20160504'
28
+ REVISION = '20160908'
29
29
 
30
30
  # View and manage your data across Google Cloud Platform services
31
31
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -123,7 +123,9 @@ module Google
123
123
  # @return [Google::Apis::StorageV1::Bucket::Versioning]
124
124
  attr_accessor :versioning
125
125
 
126
- # The bucket's website configuration.
126
+ # The bucket's website configuration, controlling how the service behaves when
127
+ # accessing bucket contents as a web site. See the Static Website Examples for
128
+ # more information.
127
129
  # Corresponds to the JSON property `website`
128
130
  # @return [Google::Apis::StorageV1::Bucket::Website]
129
131
  attr_accessor :website
@@ -377,17 +379,23 @@ module Google
377
379
  end
378
380
  end
379
381
 
380
- # The bucket's website configuration.
382
+ # The bucket's website configuration, controlling how the service behaves when
383
+ # accessing bucket contents as a web site. See the Static Website Examples for
384
+ # more information.
381
385
  class Website
382
386
  include Google::Apis::Core::Hashable
383
387
 
384
- # Behaves as the bucket's directory index where missing objects are treated as
385
- # potential directories.
388
+ # If the requested object path is missing, the service will ensure the path has
389
+ # a trailing '/', append this suffix, and attempt to retrieve the resulting
390
+ # object. This allows the creation of index.html objects to represent directory
391
+ # pages.
386
392
  # Corresponds to the JSON property `mainPageSuffix`
387
393
  # @return [String]
388
394
  attr_accessor :main_page_suffix
389
395
 
390
- # The custom object to return when a requested resource is not found.
396
+ # If the requested object path is missing, and any mainPageSuffix object is
397
+ # missing, if applicable, the service will return the named object from this
398
+ # bucket as the content for a 404 Not Found result.
391
399
  # Corresponds to the JSON property `notFoundPage`
392
400
  # @return [String]
393
401
  attr_accessor :not_found_page
@@ -466,7 +474,7 @@ module Google
466
474
  # @return [Google::Apis::StorageV1::BucketAccessControl::ProjectTeam]
467
475
  attr_accessor :project_team
468
476
 
469
- # The access permission for the entity. Can be READER, WRITER, or OWNER.
477
+ # The access permission for the entity.
470
478
  # Corresponds to the JSON property `role`
471
479
  # @return [String]
472
480
  attr_accessor :role
@@ -504,7 +512,7 @@ module Google
504
512
  # @return [String]
505
513
  attr_accessor :project_number
506
514
 
507
- # The team. Can be owners, editors, or viewers.
515
+ # The team.
508
516
  # Corresponds to the JSON property `team`
509
517
  # @return [String]
510
518
  attr_accessor :team
@@ -755,7 +763,8 @@ module Google
755
763
  # @return [String]
756
764
  attr_accessor :bucket
757
765
 
758
- # Cache-Control directive for the object data.
766
+ # Cache-Control directive for the object data. If omitted, and the object is
767
+ # accessible to all anonymous users, the default will be public, max-age=3600.
759
768
  # Corresponds to the JSON property `cacheControl`
760
769
  # @return [String]
761
770
  attr_accessor :cache_control
@@ -1043,7 +1052,7 @@ module Google
1043
1052
  # @return [Google::Apis::StorageV1::ObjectAccessControl::ProjectTeam]
1044
1053
  attr_accessor :project_team
1045
1054
 
1046
- # The access permission for the entity. Can be READER or OWNER.
1055
+ # The access permission for the entity.
1047
1056
  # Corresponds to the JSON property `role`
1048
1057
  # @return [String]
1049
1058
  attr_accessor :role
@@ -1083,7 +1092,7 @@ module Google
1083
1092
  # @return [String]
1084
1093
  attr_accessor :project_number
1085
1094
 
1086
- # The team. Can be owners, editors, or viewers.
1095
+ # The team.
1087
1096
  # Corresponds to the JSON property `team`
1088
1097
  # @return [String]
1089
1098
  attr_accessor :team
@@ -20,12 +20,12 @@ module Google
20
20
  module Apis
21
21
  # Translate API
22
22
  #
23
- # Lets you translate text from one language to another
23
+ # Translates text from one language to another.
24
24
  #
25
25
  # @see https://developers.google.com/translate/v2/using_rest
26
26
  module TranslateV2
27
27
  VERSION = 'V2'
28
- REVISION = '20160217'
28
+ REVISION = '20160627'
29
29
  end
30
30
  end
31
31
  end
@@ -22,7 +22,7 @@ module Google
22
22
  module TranslateV2
23
23
  # Translate API
24
24
  #
25
- # Lets you translate text from one language to another
25
+ # Translates text from one language to another.
26
26
  #
27
27
  # @example
28
28
  # require 'google/apis/translate_v2'
@@ -27,7 +27,7 @@ module Google
27
27
  # @see https://cloud.google.com/vision/
28
28
  module VisionV1
29
29
  VERSION = 'V1'
30
- REVISION = '20160519'
30
+ REVISION = '20160822'
31
31
 
32
32
  # View and manage your data across Google Cloud Platform services
33
33
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -668,15 +668,14 @@ module Google
668
668
  attr_accessor :lat_long_rect
669
669
 
670
670
  # List of languages to use for TEXT_DETECTION. In most cases, an empty value
671
- # will yield the best results as it will allow text detection to
672
- # automatically detect the text language. For languages based on the latin
673
- # alphabet a hint is not needed. In rare cases, when the language of
674
- # the text in the image is known in advance, setting this hint will help get
675
- # better results (although it will hurt a great deal if the hint is wrong).
676
- # Text detection will return an error if one or more of the languages
677
- # specified here are not supported. The exact list of supported languages are
678
- # specified here:
679
- # https://cloud.google.com/translate/v2/using_rest#language-params
671
+ # yields the best results since it enables automatic language detection. For
672
+ # languages based on the Latin alphabet, setting `language_hints` is not
673
+ # needed. In rare cases, when the language of the text in the image is known,
674
+ # setting a hint will help get better results (although it will be a
675
+ # significant hindrance if the hint is wrong). Text detection returns an
676
+ # error if one or more of the specified languages is not one of the
677
+ # [supported
678
+ # languages](/translate/v2/translate-reference#supported_languages).
680
679
  # Corresponds to the JSON property `languageHints`
681
680
  # @return [Array<String>]
682
681
  attr_accessor :language_hints
@@ -1064,6 +1063,8 @@ module Google
1064
1063
  attr_accessor :source
1065
1064
 
1066
1065
  # Image content, represented as a stream of bytes.
1066
+ # Note: as with all `bytes` fields, protobuffers use a pure binary
1067
+ # representation, whereas JSON representations use base64.
1067
1068
  # Corresponds to the JSON property `content`
1068
1069
  # @return [String]
1069
1070
  attr_accessor :content
@@ -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 = '20160913'
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 = '20160805'
30
30
 
31
31
  # Manage your YouTube account
32
32
  AUTH_YOUTUBE = 'https://www.googleapis.com/auth/youtube'
@@ -2296,7 +2296,7 @@ module Google
2296
2296
  end
2297
2297
 
2298
2298
  # Ratings schemes. The country-specific ratings are mostly for movies and shows.
2299
- # NEXT_ID: 67
2299
+ # NEXT_ID: 68
2300
2300
  class ContentRating
2301
2301
  include Google::Apis::Core::Hashable
2302
2302
 
@@ -2461,6 +2461,11 @@ module Google
2461
2461
  # @return [String]
2462
2462
  attr_accessor :fpb_rating
2463
2463
 
2464
+ # Reasons that explain why the video received its FPB (South Africa) rating.
2465
+ # Corresponds to the JSON property `fpbRatingReasons`
2466
+ # @return [Array<String>]
2467
+ attr_accessor :fpb_rating_reasons
2468
+
2464
2469
  # The video's Freiwillige Selbstkontrolle der Filmwirtschaft (FSK - Germany)
2465
2470
  # rating.
2466
2471
  # Corresponds to the JSON property `fskRating`
@@ -2696,6 +2701,7 @@ module Google
2696
2701
  @fco_rating = args[:fco_rating] if args.key?(:fco_rating)
2697
2702
  @fmoc_rating = args[:fmoc_rating] if args.key?(:fmoc_rating)
2698
2703
  @fpb_rating = args[:fpb_rating] if args.key?(:fpb_rating)
2704
+ @fpb_rating_reasons = args[:fpb_rating_reasons] if args.key?(:fpb_rating_reasons)
2699
2705
  @fsk_rating = args[:fsk_rating] if args.key?(:fsk_rating)
2700
2706
  @grfilm_rating = args[:grfilm_rating] if args.key?(:grfilm_rating)
2701
2707
  @icaa_rating = args[:icaa_rating] if args.key?(:icaa_rating)
@@ -4533,6 +4539,26 @@ module Google
4533
4539
  # @return [Google::Apis::YoutubeV3::LiveChatMessageRetractedDetails]
4534
4540
  attr_accessor :message_retracted_details
4535
4541
 
4542
+ #
4543
+ # Corresponds to the JSON property `pollClosedDetails`
4544
+ # @return [Google::Apis::YoutubeV3::LiveChatPollClosedDetails]
4545
+ attr_accessor :poll_closed_details
4546
+
4547
+ #
4548
+ # Corresponds to the JSON property `pollEditedDetails`
4549
+ # @return [Google::Apis::YoutubeV3::LiveChatPollEditedDetails]
4550
+ attr_accessor :poll_edited_details
4551
+
4552
+ #
4553
+ # Corresponds to the JSON property `pollOpenedDetails`
4554
+ # @return [Google::Apis::YoutubeV3::LiveChatPollOpenedDetails]
4555
+ attr_accessor :poll_opened_details
4556
+
4557
+ #
4558
+ # Corresponds to the JSON property `pollVotedDetails`
4559
+ # @return [Google::Apis::YoutubeV3::LiveChatPollVotedDetails]
4560
+ attr_accessor :poll_voted_details
4561
+
4536
4562
  # The date and time when the message was orignally published. The value is
4537
4563
  # specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
4538
4564
  # Corresponds to the JSON property `publishedAt`
@@ -4569,6 +4595,10 @@ module Google
4569
4595
  @live_chat_id = args[:live_chat_id] if args.key?(:live_chat_id)
4570
4596
  @message_deleted_details = args[:message_deleted_details] if args.key?(:message_deleted_details)
4571
4597
  @message_retracted_details = args[:message_retracted_details] if args.key?(:message_retracted_details)
4598
+ @poll_closed_details = args[:poll_closed_details] if args.key?(:poll_closed_details)
4599
+ @poll_edited_details = args[:poll_edited_details] if args.key?(:poll_edited_details)
4600
+ @poll_opened_details = args[:poll_opened_details] if args.key?(:poll_opened_details)
4601
+ @poll_voted_details = args[:poll_voted_details] if args.key?(:poll_voted_details)
4572
4602
  @published_at = args[:published_at] if args.key?(:published_at)
4573
4603
  @text_message_details = args[:text_message_details] if args.key?(:text_message_details)
4574
4604
  @type = args[:type] if args.key?(:type)
@@ -4712,6 +4742,137 @@ module Google
4712
4742
  end
4713
4743
  end
4714
4744
 
4745
+ #
4746
+ class LiveChatPollClosedDetails
4747
+ include Google::Apis::Core::Hashable
4748
+
4749
+ # The id of the poll that was closed.
4750
+ # Corresponds to the JSON property `pollId`
4751
+ # @return [String]
4752
+ attr_accessor :poll_id
4753
+
4754
+ def initialize(**args)
4755
+ update!(**args)
4756
+ end
4757
+
4758
+ # Update properties of this object
4759
+ def update!(**args)
4760
+ @poll_id = args[:poll_id] if args.key?(:poll_id)
4761
+ end
4762
+ end
4763
+
4764
+ #
4765
+ class LiveChatPollEditedDetails
4766
+ include Google::Apis::Core::Hashable
4767
+
4768
+ #
4769
+ # Corresponds to the JSON property `id`
4770
+ # @return [String]
4771
+ attr_accessor :id
4772
+
4773
+ #
4774
+ # Corresponds to the JSON property `items`
4775
+ # @return [Array<Google::Apis::YoutubeV3::LiveChatPollItem>]
4776
+ attr_accessor :items
4777
+
4778
+ #
4779
+ # Corresponds to the JSON property `prompt`
4780
+ # @return [String]
4781
+ attr_accessor :prompt
4782
+
4783
+ def initialize(**args)
4784
+ update!(**args)
4785
+ end
4786
+
4787
+ # Update properties of this object
4788
+ def update!(**args)
4789
+ @id = args[:id] if args.key?(:id)
4790
+ @items = args[:items] if args.key?(:items)
4791
+ @prompt = args[:prompt] if args.key?(:prompt)
4792
+ end
4793
+ end
4794
+
4795
+ #
4796
+ class LiveChatPollItem
4797
+ include Google::Apis::Core::Hashable
4798
+
4799
+ # Plain text description of the item.
4800
+ # Corresponds to the JSON property `description`
4801
+ # @return [String]
4802
+ attr_accessor :description
4803
+
4804
+ #
4805
+ # Corresponds to the JSON property `itemId`
4806
+ # @return [String]
4807
+ attr_accessor :item_id
4808
+
4809
+ def initialize(**args)
4810
+ update!(**args)
4811
+ end
4812
+
4813
+ # Update properties of this object
4814
+ def update!(**args)
4815
+ @description = args[:description] if args.key?(:description)
4816
+ @item_id = args[:item_id] if args.key?(:item_id)
4817
+ end
4818
+ end
4819
+
4820
+ #
4821
+ class LiveChatPollOpenedDetails
4822
+ include Google::Apis::Core::Hashable
4823
+
4824
+ #
4825
+ # Corresponds to the JSON property `id`
4826
+ # @return [String]
4827
+ attr_accessor :id
4828
+
4829
+ #
4830
+ # Corresponds to the JSON property `items`
4831
+ # @return [Array<Google::Apis::YoutubeV3::LiveChatPollItem>]
4832
+ attr_accessor :items
4833
+
4834
+ #
4835
+ # Corresponds to the JSON property `prompt`
4836
+ # @return [String]
4837
+ attr_accessor :prompt
4838
+
4839
+ def initialize(**args)
4840
+ update!(**args)
4841
+ end
4842
+
4843
+ # Update properties of this object
4844
+ def update!(**args)
4845
+ @id = args[:id] if args.key?(:id)
4846
+ @items = args[:items] if args.key?(:items)
4847
+ @prompt = args[:prompt] if args.key?(:prompt)
4848
+ end
4849
+ end
4850
+
4851
+ #
4852
+ class LiveChatPollVotedDetails
4853
+ include Google::Apis::Core::Hashable
4854
+
4855
+ # The poll item the user chose.
4856
+ # Corresponds to the JSON property `itemId`
4857
+ # @return [String]
4858
+ attr_accessor :item_id
4859
+
4860
+ # The poll the user voted on.
4861
+ # Corresponds to the JSON property `pollId`
4862
+ # @return [String]
4863
+ attr_accessor :poll_id
4864
+
4865
+ def initialize(**args)
4866
+ update!(**args)
4867
+ end
4868
+
4869
+ # Update properties of this object
4870
+ def update!(**args)
4871
+ @item_id = args[:item_id] if args.key?(:item_id)
4872
+ @poll_id = args[:poll_id] if args.key?(:poll_id)
4873
+ end
4874
+ end
4875
+
4715
4876
  #
4716
4877
  class LiveChatTextMessageDetails
4717
4878
  include Google::Apis::Core::Hashable
@@ -7119,7 +7280,7 @@ module Google
7119
7280
  attr_accessor :caption
7120
7281
 
7121
7282
  # Ratings schemes. The country-specific ratings are mostly for movies and shows.
7122
- # NEXT_ID: 67
7283
+ # NEXT_ID: 68
7123
7284
  # Corresponds to the JSON property `contentRating`
7124
7285
  # @return [Google::Apis::YoutubeV3::ContentRating]
7125
7286
  attr_accessor :content_rating