google-api-client 0.9.18 → 0.9.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +3 -3
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +2 -2
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +10 -0
- data/generated/google/apis/androidenterprise_v1/representations.rb +1 -0
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/androidpublisher_v2/classes.rb +38 -0
- data/generated/google/apis/androidpublisher_v2/representations.rb +27 -0
- data/generated/google/apis/androidpublisher_v2/service.rb +55 -0
- data/generated/google/apis/appsactivity_v1.rb +1 -1
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/civicinfo_v2.rb +1 -1
- data/generated/google/apis/civicinfo_v2/classes.rb +118 -1
- data/generated/google/apis/civicinfo_v2/representations.rb +83 -0
- data/generated/google/apis/civicinfo_v2/service.rb +20 -5
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +4 -5
- data/generated/google/apis/compute_beta/service.rb +3 -1
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +4 -5
- data/generated/google/apis/datastore_v1.rb +1 -1
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/genomics_v1/classes.rb +25 -25
- data/generated/google/apis/genomics_v1/representations.rb +11 -11
- data/generated/google/apis/genomics_v1/service.rb +30 -30
- data/generated/google/apis/logging_v2beta1.rb +1 -1
- data/generated/google/apis/logging_v2beta1/classes.rb +46 -31
- data/generated/google/apis/logging_v2beta1/representations.rb +5 -3
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/sheets_v4/classes.rb +89 -1
- data/generated/google/apis/sheets_v4/representations.rb +53 -0
- data/generated/google/apis/sheets_v4/service.rb +164 -89
- data/generated/google/apis/speech_v1beta1.rb +1 -1
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +21 -5
- data/generated/google/apis/storage_v1/representations.rb +2 -0
- data/lib/google/apis/version.rb +1 -1
- metadata +2 -2
@@ -176,29 +176,15 @@ module Google
|
|
176
176
|
execute_or_queue_command(command, &block)
|
177
177
|
end
|
178
178
|
|
179
|
-
#
|
180
|
-
#
|
181
|
-
#
|
182
|
-
#
|
183
|
-
# [guide](/sheets/guides/values#appending_values)
|
184
|
-
# and
|
185
|
-
# [sample code](/sheets/samples/writing#append_values)
|
186
|
-
# for specific details of how tables are detected and data is appended.
|
187
|
-
# The caller must specify the spreadsheet ID, range, and
|
188
|
-
# a valueInputOption. The `valueInputOption` only
|
189
|
-
# controls how the input data will be added to the sheet (column-wise or
|
190
|
-
# row-wise), it does not influence what cell the data starts being written
|
191
|
-
# to.
|
179
|
+
# Clears values from a spreadsheet.
|
180
|
+
# The caller must specify the spreadsheet ID and range.
|
181
|
+
# Only values are cleared -- all other properties of the cell (such as
|
182
|
+
# formatting, data validation, etc..) are kept.
|
192
183
|
# @param [String] spreadsheet_id
|
193
184
|
# The ID of the spreadsheet to update.
|
194
185
|
# @param [String] range
|
195
|
-
# The A1 notation of
|
196
|
-
#
|
197
|
-
# @param [Google::Apis::SheetsV4::ValueRange] value_range_object
|
198
|
-
# @param [String] value_input_option
|
199
|
-
# How the input data should be interpreted.
|
200
|
-
# @param [String] insert_data_option
|
201
|
-
# How the input data should be inserted.
|
186
|
+
# The A1 notation of the values to clear.
|
187
|
+
# @param [Google::Apis::SheetsV4::ClearValuesRequest] clear_values_request_object
|
202
188
|
# @param [String] quota_user
|
203
189
|
# Available to use for quota purposes for server-side applications. Can be any
|
204
190
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
@@ -208,39 +194,84 @@ module Google
|
|
208
194
|
# Request-specific options
|
209
195
|
#
|
210
196
|
# @yield [result, err] Result & error if block supplied
|
211
|
-
# @yieldparam result [Google::Apis::SheetsV4::
|
197
|
+
# @yieldparam result [Google::Apis::SheetsV4::ClearValuesResponse] parsed result object
|
212
198
|
# @yieldparam err [StandardError] error object if request failed
|
213
199
|
#
|
214
|
-
# @return [Google::Apis::SheetsV4::
|
200
|
+
# @return [Google::Apis::SheetsV4::ClearValuesResponse]
|
215
201
|
#
|
216
202
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
217
203
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
218
204
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
219
|
-
def
|
220
|
-
command = make_simple_command(:post, 'v4/spreadsheets/{spreadsheetId}/values/{range}:
|
221
|
-
command.request_representation = Google::Apis::SheetsV4::
|
222
|
-
command.request_object =
|
223
|
-
command.response_representation = Google::Apis::SheetsV4::
|
224
|
-
command.response_class = Google::Apis::SheetsV4::
|
205
|
+
def clear_values(spreadsheet_id, range, clear_values_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
206
|
+
command = make_simple_command(:post, 'v4/spreadsheets/{spreadsheetId}/values/{range}:clear', options)
|
207
|
+
command.request_representation = Google::Apis::SheetsV4::ClearValuesRequest::Representation
|
208
|
+
command.request_object = clear_values_request_object
|
209
|
+
command.response_representation = Google::Apis::SheetsV4::ClearValuesResponse::Representation
|
210
|
+
command.response_class = Google::Apis::SheetsV4::ClearValuesResponse
|
225
211
|
command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
|
226
212
|
command.params['range'] = range unless range.nil?
|
227
|
-
command.query['valueInputOption'] = value_input_option unless value_input_option.nil?
|
228
|
-
command.query['insertDataOption'] = insert_data_option unless insert_data_option.nil?
|
229
213
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
230
214
|
command.query['fields'] = fields unless fields.nil?
|
231
215
|
execute_or_queue_command(command, &block)
|
232
216
|
end
|
233
217
|
|
234
|
-
#
|
235
|
-
# The caller must specify the spreadsheet ID
|
236
|
-
#
|
218
|
+
# Returns one or more ranges of values from a spreadsheet.
|
219
|
+
# The caller must specify the spreadsheet ID and one or more ranges.
|
220
|
+
# @param [String] spreadsheet_id
|
221
|
+
# The ID of the spreadsheet to retrieve data from.
|
222
|
+
# @param [Array<String>, String] ranges
|
223
|
+
# The A1 notation of the values to retrieve.
|
224
|
+
# @param [String] value_render_option
|
225
|
+
# How values should be represented in the output.
|
226
|
+
# @param [String] date_time_render_option
|
227
|
+
# How dates, times, and durations should be represented in the output.
|
228
|
+
# This is ignored if value_render_option is
|
229
|
+
# FORMATTED_VALUE.
|
230
|
+
# @param [String] major_dimension
|
231
|
+
# The major dimension that results should use.
|
232
|
+
# For example, if the spreadsheet data is: `A1=1,B1=2,A2=3,B2=4`,
|
233
|
+
# then requesting `range=A1:B2,majorDimension=ROWS` will return
|
234
|
+
# `[[1,2],[3,4]]`,
|
235
|
+
# whereas requesting `range=A1:B2,majorDimension=COLUMNS` will return
|
236
|
+
# `[[1,3],[2,4]]`.
|
237
|
+
# @param [String] quota_user
|
238
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
239
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
240
|
+
# @param [String] fields
|
241
|
+
# Selector specifying which fields to include in a partial response.
|
242
|
+
# @param [Google::Apis::RequestOptions] options
|
243
|
+
# Request-specific options
|
244
|
+
#
|
245
|
+
# @yield [result, err] Result & error if block supplied
|
246
|
+
# @yieldparam result [Google::Apis::SheetsV4::BatchGetValuesResponse] parsed result object
|
247
|
+
# @yieldparam err [StandardError] error object if request failed
|
248
|
+
#
|
249
|
+
# @return [Google::Apis::SheetsV4::BatchGetValuesResponse]
|
250
|
+
#
|
251
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
252
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
253
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
254
|
+
def batch_get_spreadsheet_values(spreadsheet_id, ranges: nil, value_render_option: nil, date_time_render_option: nil, major_dimension: nil, quota_user: nil, fields: nil, options: nil, &block)
|
255
|
+
command = make_simple_command(:get, 'v4/spreadsheets/{spreadsheetId}/values:batchGet', options)
|
256
|
+
command.response_representation = Google::Apis::SheetsV4::BatchGetValuesResponse::Representation
|
257
|
+
command.response_class = Google::Apis::SheetsV4::BatchGetValuesResponse
|
258
|
+
command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
|
259
|
+
command.query['ranges'] = ranges unless ranges.nil?
|
260
|
+
command.query['valueRenderOption'] = value_render_option unless value_render_option.nil?
|
261
|
+
command.query['dateTimeRenderOption'] = date_time_render_option unless date_time_render_option.nil?
|
262
|
+
command.query['majorDimension'] = major_dimension unless major_dimension.nil?
|
263
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
264
|
+
command.query['fields'] = fields unless fields.nil?
|
265
|
+
execute_or_queue_command(command, &block)
|
266
|
+
end
|
267
|
+
|
268
|
+
# Sets values in one or more ranges of a spreadsheet.
|
269
|
+
# The caller must specify the spreadsheet ID,
|
270
|
+
# a valueInputOption, and one or more
|
271
|
+
# ValueRanges.
|
237
272
|
# @param [String] spreadsheet_id
|
238
273
|
# The ID of the spreadsheet to update.
|
239
|
-
# @param [
|
240
|
-
# The A1 notation of the values to update.
|
241
|
-
# @param [Google::Apis::SheetsV4::ValueRange] value_range_object
|
242
|
-
# @param [String] value_input_option
|
243
|
-
# How the input data should be interpreted.
|
274
|
+
# @param [Google::Apis::SheetsV4::BatchUpdateValuesRequest] batch_update_values_request_object
|
244
275
|
# @param [String] quota_user
|
245
276
|
# Available to use for quota purposes for server-side applications. Can be any
|
246
277
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
@@ -250,23 +281,21 @@ module Google
|
|
250
281
|
# Request-specific options
|
251
282
|
#
|
252
283
|
# @yield [result, err] Result & error if block supplied
|
253
|
-
# @yieldparam result [Google::Apis::SheetsV4::
|
284
|
+
# @yieldparam result [Google::Apis::SheetsV4::BatchUpdateValuesResponse] parsed result object
|
254
285
|
# @yieldparam err [StandardError] error object if request failed
|
255
286
|
#
|
256
|
-
# @return [Google::Apis::SheetsV4::
|
287
|
+
# @return [Google::Apis::SheetsV4::BatchUpdateValuesResponse]
|
257
288
|
#
|
258
289
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
259
290
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
260
291
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
261
|
-
def
|
262
|
-
command = make_simple_command(:
|
263
|
-
command.request_representation = Google::Apis::SheetsV4::
|
264
|
-
command.request_object =
|
265
|
-
command.response_representation = Google::Apis::SheetsV4::
|
266
|
-
command.response_class = Google::Apis::SheetsV4::
|
292
|
+
def batch_update_values(spreadsheet_id, batch_update_values_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
293
|
+
command = make_simple_command(:post, 'v4/spreadsheets/{spreadsheetId}/values:batchUpdate', options)
|
294
|
+
command.request_representation = Google::Apis::SheetsV4::BatchUpdateValuesRequest::Representation
|
295
|
+
command.request_object = batch_update_values_request_object
|
296
|
+
command.response_representation = Google::Apis::SheetsV4::BatchUpdateValuesResponse::Representation
|
297
|
+
command.response_class = Google::Apis::SheetsV4::BatchUpdateValuesResponse
|
267
298
|
command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
|
268
|
-
command.params['range'] = range unless range.nil?
|
269
|
-
command.query['valueInputOption'] = value_input_option unless value_input_option.nil?
|
270
299
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
271
300
|
command.query['fields'] = fields unless fields.nil?
|
272
301
|
execute_or_queue_command(command, &block)
|
@@ -322,25 +351,29 @@ module Google
|
|
322
351
|
execute_or_queue_command(command, &block)
|
323
352
|
end
|
324
353
|
|
325
|
-
#
|
326
|
-
#
|
354
|
+
# Appends values to a spreadsheet. The input range is used to search for
|
355
|
+
# existing data and find a "table" within that range. Values will be
|
356
|
+
# appended to the next row of the table, starting with the first column of
|
357
|
+
# the table. See the
|
358
|
+
# [guide](/sheets/guides/values#appending_values)
|
359
|
+
# and
|
360
|
+
# [sample code](/sheets/samples/writing#append_values)
|
361
|
+
# for specific details of how tables are detected and data is appended.
|
362
|
+
# The caller must specify the spreadsheet ID, range, and
|
363
|
+
# a valueInputOption. The `valueInputOption` only
|
364
|
+
# controls how the input data will be added to the sheet (column-wise or
|
365
|
+
# row-wise), it does not influence what cell the data starts being written
|
366
|
+
# to.
|
327
367
|
# @param [String] spreadsheet_id
|
328
|
-
# The ID of the spreadsheet to
|
329
|
-
# @param [
|
330
|
-
# The A1 notation of
|
331
|
-
#
|
332
|
-
#
|
333
|
-
# @param [String]
|
334
|
-
# How
|
335
|
-
#
|
336
|
-
#
|
337
|
-
# @param [String] major_dimension
|
338
|
-
# The major dimension that results should use.
|
339
|
-
# For example, if the spreadsheet data is: `A1=1,B1=2,A2=3,B2=4`,
|
340
|
-
# then requesting `range=A1:B2,majorDimension=ROWS` will return
|
341
|
-
# `[[1,2],[3,4]]`,
|
342
|
-
# whereas requesting `range=A1:B2,majorDimension=COLUMNS` will return
|
343
|
-
# `[[1,3],[2,4]]`.
|
368
|
+
# The ID of the spreadsheet to update.
|
369
|
+
# @param [String] range
|
370
|
+
# The A1 notation of a range to search for a logical table of data.
|
371
|
+
# Values will be appended after the last row of the table.
|
372
|
+
# @param [Google::Apis::SheetsV4::ValueRange] value_range_object
|
373
|
+
# @param [String] value_input_option
|
374
|
+
# How the input data should be interpreted.
|
375
|
+
# @param [String] insert_data_option
|
376
|
+
# How the input data should be inserted.
|
344
377
|
# @param [String] quota_user
|
345
378
|
# Available to use for quota purposes for server-side applications. Can be any
|
346
379
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
@@ -350,35 +383,39 @@ module Google
|
|
350
383
|
# Request-specific options
|
351
384
|
#
|
352
385
|
# @yield [result, err] Result & error if block supplied
|
353
|
-
# @yieldparam result [Google::Apis::SheetsV4::
|
386
|
+
# @yieldparam result [Google::Apis::SheetsV4::AppendValuesResponse] parsed result object
|
354
387
|
# @yieldparam err [StandardError] error object if request failed
|
355
388
|
#
|
356
|
-
# @return [Google::Apis::SheetsV4::
|
389
|
+
# @return [Google::Apis::SheetsV4::AppendValuesResponse]
|
357
390
|
#
|
358
391
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
359
392
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
360
393
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
361
|
-
def
|
362
|
-
command = make_simple_command(:
|
363
|
-
command.
|
364
|
-
command.
|
394
|
+
def append_spreadsheet_value(spreadsheet_id, range, value_range_object = nil, value_input_option: nil, insert_data_option: nil, quota_user: nil, fields: nil, options: nil, &block)
|
395
|
+
command = make_simple_command(:post, 'v4/spreadsheets/{spreadsheetId}/values/{range}:append', options)
|
396
|
+
command.request_representation = Google::Apis::SheetsV4::ValueRange::Representation
|
397
|
+
command.request_object = value_range_object
|
398
|
+
command.response_representation = Google::Apis::SheetsV4::AppendValuesResponse::Representation
|
399
|
+
command.response_class = Google::Apis::SheetsV4::AppendValuesResponse
|
365
400
|
command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
|
366
|
-
command.
|
367
|
-
command.query['
|
368
|
-
command.query['
|
369
|
-
command.query['majorDimension'] = major_dimension unless major_dimension.nil?
|
401
|
+
command.params['range'] = range unless range.nil?
|
402
|
+
command.query['valueInputOption'] = value_input_option unless value_input_option.nil?
|
403
|
+
command.query['insertDataOption'] = insert_data_option unless insert_data_option.nil?
|
370
404
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
371
405
|
command.query['fields'] = fields unless fields.nil?
|
372
406
|
execute_or_queue_command(command, &block)
|
373
407
|
end
|
374
408
|
|
375
|
-
# Sets values in
|
376
|
-
# The caller must specify the spreadsheet ID,
|
377
|
-
# a valueInputOption
|
378
|
-
# ValueRanges.
|
409
|
+
# Sets values in a range of a spreadsheet.
|
410
|
+
# The caller must specify the spreadsheet ID, range, and
|
411
|
+
# a valueInputOption.
|
379
412
|
# @param [String] spreadsheet_id
|
380
413
|
# The ID of the spreadsheet to update.
|
381
|
-
# @param [
|
414
|
+
# @param [String] range
|
415
|
+
# The A1 notation of the values to update.
|
416
|
+
# @param [Google::Apis::SheetsV4::ValueRange] value_range_object
|
417
|
+
# @param [String] value_input_option
|
418
|
+
# How the input data should be interpreted.
|
382
419
|
# @param [String] quota_user
|
383
420
|
# Available to use for quota purposes for server-side applications. Can be any
|
384
421
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
@@ -388,20 +425,58 @@ module Google
|
|
388
425
|
# Request-specific options
|
389
426
|
#
|
390
427
|
# @yield [result, err] Result & error if block supplied
|
391
|
-
# @yieldparam result [Google::Apis::SheetsV4::
|
428
|
+
# @yieldparam result [Google::Apis::SheetsV4::UpdateValuesResponse] parsed result object
|
392
429
|
# @yieldparam err [StandardError] error object if request failed
|
393
430
|
#
|
394
|
-
# @return [Google::Apis::SheetsV4::
|
431
|
+
# @return [Google::Apis::SheetsV4::UpdateValuesResponse]
|
395
432
|
#
|
396
433
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
397
434
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
398
435
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
399
|
-
def
|
400
|
-
command = make_simple_command(:
|
401
|
-
command.request_representation = Google::Apis::SheetsV4::
|
402
|
-
command.request_object =
|
403
|
-
command.response_representation = Google::Apis::SheetsV4::
|
404
|
-
command.response_class = Google::Apis::SheetsV4::
|
436
|
+
def update_spreadsheet_value(spreadsheet_id, range, value_range_object = nil, value_input_option: nil, quota_user: nil, fields: nil, options: nil, &block)
|
437
|
+
command = make_simple_command(:put, 'v4/spreadsheets/{spreadsheetId}/values/{range}', options)
|
438
|
+
command.request_representation = Google::Apis::SheetsV4::ValueRange::Representation
|
439
|
+
command.request_object = value_range_object
|
440
|
+
command.response_representation = Google::Apis::SheetsV4::UpdateValuesResponse::Representation
|
441
|
+
command.response_class = Google::Apis::SheetsV4::UpdateValuesResponse
|
442
|
+
command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
|
443
|
+
command.params['range'] = range unless range.nil?
|
444
|
+
command.query['valueInputOption'] = value_input_option unless value_input_option.nil?
|
445
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
446
|
+
command.query['fields'] = fields unless fields.nil?
|
447
|
+
execute_or_queue_command(command, &block)
|
448
|
+
end
|
449
|
+
|
450
|
+
# Clears one or more ranges of values from a spreadsheet.
|
451
|
+
# The caller must specify the spreadsheet ID and one or more ranges.
|
452
|
+
# Only values are cleared -- all other properties of the cell (such as
|
453
|
+
# formatting, data validation, etc..) are kept.
|
454
|
+
# @param [String] spreadsheet_id
|
455
|
+
# The ID of the spreadsheet to update.
|
456
|
+
# @param [Google::Apis::SheetsV4::BatchClearValuesRequest] batch_clear_values_request_object
|
457
|
+
# @param [String] quota_user
|
458
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
459
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
460
|
+
# @param [String] fields
|
461
|
+
# Selector specifying which fields to include in a partial response.
|
462
|
+
# @param [Google::Apis::RequestOptions] options
|
463
|
+
# Request-specific options
|
464
|
+
#
|
465
|
+
# @yield [result, err] Result & error if block supplied
|
466
|
+
# @yieldparam result [Google::Apis::SheetsV4::BatchClearValuesResponse] parsed result object
|
467
|
+
# @yieldparam err [StandardError] error object if request failed
|
468
|
+
#
|
469
|
+
# @return [Google::Apis::SheetsV4::BatchClearValuesResponse]
|
470
|
+
#
|
471
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
472
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
473
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
474
|
+
def batch_clear_values(spreadsheet_id, batch_clear_values_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
475
|
+
command = make_simple_command(:post, 'v4/spreadsheets/{spreadsheetId}/values:batchClear', options)
|
476
|
+
command.request_representation = Google::Apis::SheetsV4::BatchClearValuesRequest::Representation
|
477
|
+
command.request_object = batch_clear_values_request_object
|
478
|
+
command.response_representation = Google::Apis::SheetsV4::BatchClearValuesResponse::Representation
|
479
|
+
command.response_class = Google::Apis::SheetsV4::BatchClearValuesResponse
|
405
480
|
command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
|
406
481
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
407
482
|
command.query['fields'] = fields unless fields.nil?
|
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# @see https://cloud.google.com/speech/
|
26
26
|
module SpeechV1beta1
|
27
27
|
VERSION = 'V1beta1'
|
28
|
-
REVISION = '
|
28
|
+
REVISION = '20161017'
|
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'
|
@@ -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 = '
|
28
|
+
REVISION = '20161019'
|
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'
|
@@ -100,10 +100,12 @@ module Google
|
|
100
100
|
# @return [String]
|
101
101
|
attr_accessor :self_link
|
102
102
|
|
103
|
-
# The bucket's storage class
|
104
|
-
#
|
105
|
-
#
|
106
|
-
#
|
103
|
+
# The bucket's default storage class, used whenever no storageClass is specified
|
104
|
+
# for a newly-created object. This defines how objects in the bucket are stored
|
105
|
+
# and determines the SLA and the cost of storage. Values include MULTI_REGIONAL,
|
106
|
+
# REGIONAL, STANDARD, NEARLINE, COLDLINE, and DURABLE_REDUCED_AVAILABILITY. If
|
107
|
+
# this value is not specified when the bucket is created, it will default to
|
108
|
+
# STANDARD. For more information, see storage classes.
|
107
109
|
# Corresponds to the JSON property `storageClass`
|
108
110
|
# @return [String]
|
109
111
|
attr_accessor :storage_class
|
@@ -247,7 +249,12 @@ module Google
|
|
247
249
|
class Action
|
248
250
|
include Google::Apis::Core::Hashable
|
249
251
|
|
250
|
-
#
|
252
|
+
# Target storage class. Required iff the type of the action is SetStorageClass.
|
253
|
+
# Corresponds to the JSON property `storageClass`
|
254
|
+
# @return [String]
|
255
|
+
attr_accessor :storage_class
|
256
|
+
|
257
|
+
# Type of the action. Currently, only Delete and SetStorageClass are supported.
|
251
258
|
# Corresponds to the JSON property `type`
|
252
259
|
# @return [String]
|
253
260
|
attr_accessor :type
|
@@ -258,6 +265,7 @@ module Google
|
|
258
265
|
|
259
266
|
# Update properties of this object
|
260
267
|
def update!(**args)
|
268
|
+
@storage_class = args[:storage_class] if args.key?(:storage_class)
|
261
269
|
@type = args[:type] if args.key?(:type)
|
262
270
|
end
|
263
271
|
end
|
@@ -286,6 +294,13 @@ module Google
|
|
286
294
|
attr_accessor :is_live
|
287
295
|
alias_method :is_live?, :is_live
|
288
296
|
|
297
|
+
# Objects having any of the storage classes specified by this condition will be
|
298
|
+
# matched. Values include MULTI_REGIONAL, REGIONAL, NEARLINE, COLDLINE, STANDARD,
|
299
|
+
# and DURABLE_REDUCED_AVAILABILITY.
|
300
|
+
# Corresponds to the JSON property `matchesStorageClass`
|
301
|
+
# @return [Array<String>]
|
302
|
+
attr_accessor :matches_storage_class
|
303
|
+
|
289
304
|
# Relevant only for versioned objects. If the value is N, this condition is
|
290
305
|
# satisfied when there are at least N versions (including the live version)
|
291
306
|
# newer than this version of the object.
|
@@ -302,6 +317,7 @@ module Google
|
|
302
317
|
@age = args[:age] if args.key?(:age)
|
303
318
|
@created_before = args[:created_before] if args.key?(:created_before)
|
304
319
|
@is_live = args[:is_live] if args.key?(:is_live)
|
320
|
+
@matches_storage_class = args[:matches_storage_class] if args.key?(:matches_storage_class)
|
305
321
|
@num_newer_versions = args[:num_newer_versions] if args.key?(:num_newer_versions)
|
306
322
|
end
|
307
323
|
end
|
@@ -241,6 +241,7 @@ module Google
|
|
241
241
|
class Action
|
242
242
|
# @private
|
243
243
|
class Representation < Google::Apis::Core::JsonRepresentation
|
244
|
+
property :storage_class, as: 'storageClass'
|
244
245
|
property :type, as: 'type'
|
245
246
|
end
|
246
247
|
end
|
@@ -252,6 +253,7 @@ module Google
|
|
252
253
|
property :created_before, as: 'createdBefore', type: Date
|
253
254
|
|
254
255
|
property :is_live, as: 'isLive'
|
256
|
+
collection :matches_storage_class, as: 'matchesStorageClass'
|
255
257
|
property :num_newer_versions, as: 'numNewerVersions'
|
256
258
|
end
|
257
259
|
end
|
data/lib/google/apis/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-api-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.19
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Steven Bazyl
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2016-10-
|
14
|
+
date: 2016-10-20 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: representable
|