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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +37 -0
- data/Gemfile +9 -1
- data/README.md +10 -2
- data/api_names.yaml +63 -110
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +35 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +298 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +122 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +458 -0
- data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +260 -13
- data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +81 -0
- data/generated/google/apis/adexchangebuyer_v1_4/service.rb +60 -8
- data/generated/google/apis/adexchangeseller_v2_0.rb +2 -3
- data/generated/google/apis/adexchangeseller_v2_0/service.rb +1 -2
- data/generated/google/apis/admin_directory_v1.rb +1 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +86 -0
- data/generated/google/apis/admin_directory_v1/representations.rb +24 -0
- data/generated/google/apis/admin_directory_v1/service.rb +41 -2
- data/generated/google/apis/admin_reports_v1.rb +3 -3
- data/generated/google/apis/admin_reports_v1/service.rb +2 -2
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsense_v1_4/classes.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1/classes.rb +1 -2
- data/generated/google/apis/analytics_v3.rb +1 -1
- data/generated/google/apis/analytics_v3/classes.rb +379 -3
- data/generated/google/apis/analytics_v3/representations.rb +136 -0
- data/generated/google/apis/analytics_v3/service.rb +217 -0
- data/generated/google/apis/analyticsreporting_v4.rb +1 -1
- data/generated/google/apis/analyticsreporting_v4/classes.rb +50 -22
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +813 -49
- data/generated/google/apis/androidenterprise_v1/representations.rb +336 -0
- data/generated/google/apis/androidenterprise_v1/service.rb +1234 -145
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/androidpublisher_v2/classes.rb +47 -8
- data/generated/google/apis/androidpublisher_v2/representations.rb +27 -0
- data/generated/google/apis/androidpublisher_v2/service.rb +55 -0
- data/generated/google/apis/appengine_v1beta5.rb +7 -1
- data/generated/google/apis/appengine_v1beta5/classes.rb +516 -313
- data/generated/google/apis/appengine_v1beta5/representations.rb +115 -22
- data/generated/google/apis/appengine_v1beta5/service.rb +329 -33
- data/generated/google/apis/appsactivity_v1.rb +1 -1
- data/generated/google/apis/appsactivity_v1/classes.rb +7 -0
- data/generated/google/apis/appsactivity_v1/representations.rb +1 -0
- data/generated/google/apis/appstate_v1.rb +1 -1
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +277 -20
- data/generated/google/apis/bigquery_v2/representations.rb +86 -0
- data/generated/google/apis/bigquery_v2/service.rb +8 -2
- data/generated/google/apis/books_v1.rb +2 -2
- data/generated/google/apis/books_v1/classes.rb +79 -1
- data/generated/google/apis/books_v1/representations.rb +34 -0
- data/generated/google/apis/books_v1/service.rb +7 -3
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/civicinfo_v2.rb +3 -2
- data/generated/google/apis/civicinfo_v2/classes.rb +377 -5
- data/generated/google/apis/civicinfo_v2/representations.rb +149 -0
- data/generated/google/apis/civicinfo_v2/service.rb +27 -6
- data/generated/google/apis/classroom_v1.rb +1 -1
- data/generated/google/apis/classroom_v1/classes.rb +183 -37
- data/generated/google/apis/classroom_v1/representations.rb +74 -9
- data/generated/google/apis/classroom_v1/service.rb +403 -38
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +381 -17
- data/generated/google/apis/cloudbuild_v1/representations.rb +137 -2
- data/generated/google/apis/cloudbuild_v1/service.rb +174 -1
- data/generated/google/apis/clouddebugger_v2.rb +3 -6
- data/generated/google/apis/clouddebugger_v2/service.rb +4 -4
- data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +502 -111
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +162 -24
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +274 -30
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +121 -9
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +46 -0
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +71 -58
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +2299 -434
- data/generated/google/apis/compute_beta/representations.rb +752 -33
- data/generated/google/apis/compute_beta/service.rb +6067 -3153
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +1681 -207
- data/generated/google/apis/compute_v1/representations.rb +552 -0
- data/generated/google/apis/compute_v1/service.rb +2797 -1171
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +757 -1
- data/generated/google/apis/content_v2/representations.rb +337 -0
- data/generated/google/apis/content_v2/service.rb +244 -0
- data/generated/google/apis/dataflow_v1b3.rb +38 -0
- data/generated/google/apis/dataflow_v1b3/classes.rb +4053 -0
- data/generated/google/apis/dataflow_v1b3/representations.rb +1736 -0
- data/generated/google/apis/dataflow_v1b3/service.rb +875 -0
- data/generated/google/apis/dataproc_v1.rb +2 -2
- data/generated/google/apis/dataproc_v1/classes.rb +213 -68
- data/generated/google/apis/dataproc_v1/representations.rb +38 -0
- data/generated/google/apis/dataproc_v1/service.rb +78 -48
- data/generated/google/apis/datastore_v1.rb +38 -0
- data/generated/google/apis/datastore_v1/classes.rb +1284 -0
- data/generated/google/apis/datastore_v1/representations.rb +572 -0
- data/generated/google/apis/datastore_v1/service.rb +259 -0
- data/generated/google/apis/datastore_v1beta3.rb +38 -0
- data/generated/google/apis/datastore_v1beta3/classes.rb +1284 -0
- data/generated/google/apis/datastore_v1beta3/representations.rb +572 -0
- data/generated/google/apis/datastore_v1beta3/service.rb +259 -0
- data/generated/google/apis/deploymentmanager_v2.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2/classes.rb +384 -2
- data/generated/google/apis/deploymentmanager_v2/representations.rb +161 -0
- data/generated/google/apis/deploymentmanager_v2/service.rb +217 -55
- data/generated/google/apis/dfareporting_v2_5.rb +40 -0
- data/generated/google/apis/dfareporting_v2_5/classes.rb +11225 -0
- data/generated/google/apis/dfareporting_v2_5/representations.rb +3982 -0
- data/generated/google/apis/dfareporting_v2_5/service.rb +8755 -0
- data/generated/google/apis/dfareporting_v2_6.rb +40 -0
- data/generated/google/apis/dfareporting_v2_6/classes.rb +11586 -0
- data/generated/google/apis/dfareporting_v2_6/representations.rb +4119 -0
- data/generated/google/apis/dfareporting_v2_6/service.rb +9025 -0
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v1/classes.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +79 -86
- data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +25 -28
- data/generated/google/apis/doubleclickbidmanager_v1/service.rb +10 -8
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +27 -3
- data/generated/google/apis/drive_v2/representations.rb +4 -0
- data/generated/google/apis/drive_v2/service.rb +16 -3
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/classes.rb +50 -16
- data/generated/google/apis/drive_v3/representations.rb +4 -0
- data/generated/google/apis/drive_v3/service.rb +12 -2
- data/generated/google/apis/fitness_v1.rb +8 -2
- data/generated/google/apis/fitness_v1/classes.rb +64 -6
- data/generated/google/apis/fitness_v1/representations.rb +20 -0
- data/generated/google/apis/fitness_v1/service.rb +17 -18
- data/generated/google/apis/fusiontables_v2.rb +1 -1
- data/generated/google/apis/fusiontables_v2/classes.rb +4 -3
- data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
- data/generated/google/apis/games_management_v1management.rb +1 -1
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/genomics_v1.rb +2 -4
- data/generated/google/apis/genomics_v1/classes.rb +143 -34
- data/generated/google/apis/genomics_v1/representations.rb +48 -11
- data/generated/google/apis/genomics_v1/service.rb +35 -37
- data/generated/google/apis/gmail_v1.rb +10 -1
- data/generated/google/apis/gmail_v1/classes.rb +542 -4
- data/generated/google/apis/gmail_v1/representations.rb +213 -0
- data/generated/google/apis/gmail_v1/service.rb +898 -1
- data/generated/google/apis/groupssettings_v1.rb +1 -1
- data/generated/google/apis/groupssettings_v1/classes.rb +12 -0
- data/generated/google/apis/groupssettings_v1/representations.rb +2 -0
- data/generated/google/apis/iam_v1.rb +2 -2
- data/generated/google/apis/iam_v1/classes.rb +181 -206
- data/generated/google/apis/iam_v1/representations.rb +36 -45
- data/generated/google/apis/iam_v1/service.rb +101 -67
- data/generated/google/apis/identitytoolkit_v3.rb +4 -1
- data/generated/google/apis/identitytoolkit_v3/classes.rb +171 -1
- data/generated/google/apis/identitytoolkit_v3/representations.rb +26 -0
- data/generated/google/apis/language_v1beta1.rb +36 -0
- data/generated/google/apis/language_v1beta1/classes.rb +599 -0
- data/generated/google/apis/language_v1beta1/representations.rb +289 -0
- data/generated/google/apis/language_v1beta1/service.rb +152 -0
- data/generated/google/apis/logging_v2beta1.rb +6 -6
- data/generated/google/apis/logging_v2beta1/classes.rb +760 -731
- data/generated/google/apis/logging_v2beta1/representations.rb +136 -147
- data/generated/google/apis/logging_v2beta1/service.rb +290 -209
- data/generated/google/apis/mirror_v1.rb +2 -2
- data/generated/google/apis/mirror_v1/service.rb +1 -1
- data/generated/google/apis/monitoring_v3.rb +45 -0
- data/generated/google/apis/monitoring_v3/classes.rb +1337 -0
- data/generated/google/apis/monitoring_v3/representations.rb +516 -0
- data/generated/google/apis/monitoring_v3/service.rb +711 -0
- data/generated/google/apis/oauth2_v2.rb +1 -1
- data/generated/google/apis/pagespeedonline_v2.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/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1/classes.rb +10 -9
- data/generated/google/apis/pubsub_v1/service.rb +128 -27
- data/generated/google/apis/qpx_express_v1.rb +1 -1
- data/generated/google/apis/qpx_express_v1/classes.rb +6 -0
- data/generated/google/apis/qpx_express_v1/representations.rb +1 -0
- data/generated/google/apis/replicapool_v1beta2.rb +1 -1
- data/generated/google/apis/replicapoolupdater_v1beta1.rb +4 -2
- data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +3 -1
- data/generated/google/apis/script_v1.rb +1 -1
- data/generated/google/apis/script_v1/classes.rb +6 -0
- data/generated/google/apis/script_v1/representations.rb +1 -0
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/sheets_v4/classes.rb +910 -89
- data/generated/google/apis/sheets_v4/representations.rb +194 -10
- data/generated/google/apis/sheets_v4/service.rb +216 -49
- data/generated/google/apis/slides_v1.rb +49 -0
- data/generated/google/apis/slides_v1/classes.rb +3926 -0
- data/generated/google/apis/slides_v1/representations.rb +1722 -0
- data/generated/google/apis/slides_v1/service.rb +202 -0
- data/generated/google/apis/speech_v1beta1.rb +34 -0
- data/generated/google/apis/speech_v1beta1/classes.rb +511 -0
- data/generated/google/apis/speech_v1beta1/representations.rb +218 -0
- data/generated/google/apis/speech_v1beta1/service.rb +271 -0
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +32 -8
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +3 -0
- data/generated/google/apis/sqladmin_v1beta4/service.rb +42 -0
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +43 -18
- data/generated/google/apis/storage_v1/representations.rb +4 -1
- data/generated/google/apis/storage_v1/service.rb +5 -2
- data/generated/google/apis/translate_v2.rb +2 -2
- data/generated/google/apis/translate_v2/service.rb +1 -1
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +12 -11
- data/generated/google/apis/youtube_analytics_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1/classes.rb +6 -0
- data/generated/google/apis/youtube_partner_v1/representations.rb +2 -0
- data/generated/google/apis/youtube_partner_v1/service.rb +15 -3
- data/generated/google/apis/youtube_v3.rb +1 -1
- data/generated/google/apis/youtube_v3/classes.rb +183 -21
- data/generated/google/apis/youtube_v3/representations.rb +85 -4
- data/generated/google/apis/youtube_v3/service.rb +41 -5
- data/generated/google/apis/youtubereporting_v1.rb +1 -1
- data/google-api-client.gemspec +2 -1
- data/lib/google/apis/core/api_command.rb +4 -0
- data/lib/google/apis/core/base_service.rb +10 -4
- data/lib/google/apis/core/download.rb +7 -2
- data/lib/google/apis/core/http_command.rb +5 -1
- data/lib/google/apis/core/upload.rb +7 -1
- data/lib/google/apis/errors.rb +2 -2
- data/lib/google/apis/generator/annotator.rb +6 -0
- data/lib/google/apis/version.rb +1 -1
- data/samples/cli/lib/samples/bigquery.rb +101 -0
- data/samples/cli/lib/samples/sheets.rb +61 -0
- data/sync.rb +71 -0
- metadata +55 -13
@@ -64,6 +64,12 @@ module Google
|
|
64
64
|
include Google::Apis::Core::JsonObjectSupport
|
65
65
|
end
|
66
66
|
|
67
|
+
class ClearValuesResponse
|
68
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
69
|
+
|
70
|
+
include Google::Apis::Core::JsonObjectSupport
|
71
|
+
end
|
72
|
+
|
67
73
|
class UpdateConditionalFormatRuleRequest
|
68
74
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
69
75
|
|
@@ -190,6 +196,12 @@ module Google
|
|
190
196
|
include Google::Apis::Core::JsonObjectSupport
|
191
197
|
end
|
192
198
|
|
199
|
+
class AddBandingResponse
|
200
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
201
|
+
|
202
|
+
include Google::Apis::Core::JsonObjectSupport
|
203
|
+
end
|
204
|
+
|
193
205
|
class TextFormatRun
|
194
206
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
195
207
|
|
@@ -256,6 +268,12 @@ module Google
|
|
256
268
|
include Google::Apis::Core::JsonObjectSupport
|
257
269
|
end
|
258
270
|
|
271
|
+
class BatchClearValuesResponse
|
272
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
273
|
+
|
274
|
+
include Google::Apis::Core::JsonObjectSupport
|
275
|
+
end
|
276
|
+
|
259
277
|
class ConditionalFormatRule
|
260
278
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
261
279
|
|
@@ -316,6 +334,12 @@ module Google
|
|
316
334
|
include Google::Apis::Core::JsonObjectSupport
|
317
335
|
end
|
318
336
|
|
337
|
+
class AppendValuesResponse
|
338
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
339
|
+
|
340
|
+
include Google::Apis::Core::JsonObjectSupport
|
341
|
+
end
|
342
|
+
|
319
343
|
class CellFormat
|
320
344
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
321
345
|
|
@@ -382,6 +406,12 @@ module Google
|
|
382
406
|
include Google::Apis::Core::JsonObjectSupport
|
383
407
|
end
|
384
408
|
|
409
|
+
class ClearValuesRequest
|
410
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
411
|
+
|
412
|
+
include Google::Apis::Core::JsonObjectSupport
|
413
|
+
end
|
414
|
+
|
385
415
|
class ProtectedRange
|
386
416
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
387
417
|
|
@@ -442,6 +472,12 @@ module Google
|
|
442
472
|
include Google::Apis::Core::JsonObjectSupport
|
443
473
|
end
|
444
474
|
|
475
|
+
class BatchClearValuesRequest
|
476
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
477
|
+
|
478
|
+
include Google::Apis::Core::JsonObjectSupport
|
479
|
+
end
|
480
|
+
|
445
481
|
class UpdateDimensionPropertiesRequest
|
446
482
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
447
483
|
|
@@ -472,6 +508,12 @@ module Google
|
|
472
508
|
include Google::Apis::Core::JsonObjectSupport
|
473
509
|
end
|
474
510
|
|
511
|
+
class DeleteBandingRequest
|
512
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
513
|
+
|
514
|
+
include Google::Apis::Core::JsonObjectSupport
|
515
|
+
end
|
516
|
+
|
475
517
|
class BasicFilter
|
476
518
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
477
519
|
|
@@ -514,6 +556,12 @@ module Google
|
|
514
556
|
include Google::Apis::Core::JsonObjectSupport
|
515
557
|
end
|
516
558
|
|
559
|
+
class AddBandingRequest
|
560
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
561
|
+
|
562
|
+
include Google::Apis::Core::JsonObjectSupport
|
563
|
+
end
|
564
|
+
|
517
565
|
class AppendCellsRequest
|
518
566
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
519
567
|
|
@@ -550,13 +598,13 @@ module Google
|
|
550
598
|
include Google::Apis::Core::JsonObjectSupport
|
551
599
|
end
|
552
600
|
|
553
|
-
class
|
601
|
+
class UpdateEmbeddedObjectPositionRequest
|
554
602
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
555
603
|
|
556
604
|
include Google::Apis::Core::JsonObjectSupport
|
557
605
|
end
|
558
606
|
|
559
|
-
class
|
607
|
+
class SetBasicFilterRequest
|
560
608
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
561
609
|
|
562
610
|
include Google::Apis::Core::JsonObjectSupport
|
@@ -574,6 +622,12 @@ module Google
|
|
574
622
|
include Google::Apis::Core::JsonObjectSupport
|
575
623
|
end
|
576
624
|
|
625
|
+
class BandingProperties
|
626
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
627
|
+
|
628
|
+
include Google::Apis::Core::JsonObjectSupport
|
629
|
+
end
|
630
|
+
|
577
631
|
class PivotGroup
|
578
632
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
579
633
|
|
@@ -592,6 +646,12 @@ module Google
|
|
592
646
|
include Google::Apis::Core::JsonObjectSupport
|
593
647
|
end
|
594
648
|
|
649
|
+
class UpdateBandingRequest
|
650
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
651
|
+
|
652
|
+
include Google::Apis::Core::JsonObjectSupport
|
653
|
+
end
|
654
|
+
|
595
655
|
class ChartData
|
596
656
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
597
657
|
|
@@ -730,6 +790,12 @@ module Google
|
|
730
790
|
include Google::Apis::Core::JsonObjectSupport
|
731
791
|
end
|
732
792
|
|
793
|
+
class BandedRange
|
794
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
795
|
+
|
796
|
+
include Google::Apis::Core::JsonObjectSupport
|
797
|
+
end
|
798
|
+
|
733
799
|
class DeleteConditionalFormatRuleResponse
|
734
800
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
735
801
|
|
@@ -797,6 +863,14 @@ module Google
|
|
797
863
|
end
|
798
864
|
end
|
799
865
|
|
866
|
+
class ClearValuesResponse
|
867
|
+
# @private
|
868
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
869
|
+
property :spreadsheet_id, as: 'spreadsheetId'
|
870
|
+
property :cleared_range, as: 'clearedRange'
|
871
|
+
end
|
872
|
+
end
|
873
|
+
|
800
874
|
class UpdateConditionalFormatRuleRequest
|
801
875
|
# @private
|
802
876
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -872,11 +946,13 @@ module Google
|
|
872
946
|
class UpdateValuesResponse
|
873
947
|
# @private
|
874
948
|
class Representation < Google::Apis::Core::JsonRepresentation
|
875
|
-
property :updated_range, as: 'updatedRange'
|
876
949
|
property :updated_columns, as: 'updatedColumns'
|
950
|
+
property :updated_cells, as: 'updatedCells'
|
951
|
+
property :updated_data, as: 'updatedData', class: Google::Apis::SheetsV4::ValueRange, decorator: Google::Apis::SheetsV4::ValueRange::Representation
|
952
|
+
|
953
|
+
property :updated_range, as: 'updatedRange'
|
877
954
|
property :spreadsheet_id, as: 'spreadsheetId'
|
878
955
|
property :updated_rows, as: 'updatedRows'
|
879
|
-
property :updated_cells, as: 'updatedCells'
|
880
956
|
end
|
881
957
|
end
|
882
958
|
|
@@ -994,6 +1070,8 @@ module Google
|
|
994
1070
|
|
995
1071
|
property :delete_conditional_format_rule, as: 'deleteConditionalFormatRule', class: Google::Apis::SheetsV4::DeleteConditionalFormatRuleResponse, decorator: Google::Apis::SheetsV4::DeleteConditionalFormatRuleResponse::Representation
|
996
1072
|
|
1073
|
+
property :add_banding, as: 'addBanding', class: Google::Apis::SheetsV4::AddBandingResponse, decorator: Google::Apis::SheetsV4::AddBandingResponse::Representation
|
1074
|
+
|
997
1075
|
property :duplicate_sheet, as: 'duplicateSheet', class: Google::Apis::SheetsV4::DuplicateSheetResponse, decorator: Google::Apis::SheetsV4::DuplicateSheetResponse::Representation
|
998
1076
|
|
999
1077
|
property :duplicate_filter_view, as: 'duplicateFilterView', class: Google::Apis::SheetsV4::DuplicateFilterViewResponse, decorator: Google::Apis::SheetsV4::DuplicateFilterViewResponse::Representation
|
@@ -1037,6 +1115,14 @@ module Google
|
|
1037
1115
|
end
|
1038
1116
|
end
|
1039
1117
|
|
1118
|
+
class AddBandingResponse
|
1119
|
+
# @private
|
1120
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1121
|
+
property :banded_range, as: 'bandedRange', class: Google::Apis::SheetsV4::BandedRange, decorator: Google::Apis::SheetsV4::BandedRange::Representation
|
1122
|
+
|
1123
|
+
end
|
1124
|
+
end
|
1125
|
+
|
1040
1126
|
class TextFormatRun
|
1041
1127
|
# @private
|
1042
1128
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1135,6 +1221,9 @@ module Google
|
|
1135
1221
|
property :value_input_option, as: 'valueInputOption'
|
1136
1222
|
collection :data, as: 'data', class: Google::Apis::SheetsV4::ValueRange, decorator: Google::Apis::SheetsV4::ValueRange::Representation
|
1137
1223
|
|
1224
|
+
property :response_value_render_option, as: 'responseValueRenderOption'
|
1225
|
+
property :response_date_time_render_option, as: 'responseDateTimeRenderOption'
|
1226
|
+
property :include_values_in_response, as: 'includeValuesInResponse'
|
1138
1227
|
end
|
1139
1228
|
end
|
1140
1229
|
|
@@ -1145,6 +1234,14 @@ module Google
|
|
1145
1234
|
end
|
1146
1235
|
end
|
1147
1236
|
|
1237
|
+
class BatchClearValuesResponse
|
1238
|
+
# @private
|
1239
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1240
|
+
property :spreadsheet_id, as: 'spreadsheetId'
|
1241
|
+
collection :cleared_ranges, as: 'clearedRanges'
|
1242
|
+
end
|
1243
|
+
end
|
1244
|
+
|
1148
1245
|
class ConditionalFormatRule
|
1149
1246
|
# @private
|
1150
1247
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1259,6 +1356,16 @@ module Google
|
|
1259
1356
|
end
|
1260
1357
|
end
|
1261
1358
|
|
1359
|
+
class AppendValuesResponse
|
1360
|
+
# @private
|
1361
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1362
|
+
property :spreadsheet_id, as: 'spreadsheetId'
|
1363
|
+
property :table_range, as: 'tableRange'
|
1364
|
+
property :updates, as: 'updates', class: Google::Apis::SheetsV4::UpdateValuesResponse, decorator: Google::Apis::SheetsV4::UpdateValuesResponse::Representation
|
1365
|
+
|
1366
|
+
end
|
1367
|
+
end
|
1368
|
+
|
1262
1369
|
class CellFormat
|
1263
1370
|
# @private
|
1264
1371
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1355,8 +1462,11 @@ module Google
|
|
1355
1462
|
class BatchUpdateSpreadsheetRequest
|
1356
1463
|
# @private
|
1357
1464
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1465
|
+
property :include_spreadsheet_in_response, as: 'includeSpreadsheetInResponse'
|
1358
1466
|
collection :requests, as: 'requests', class: Google::Apis::SheetsV4::Request, decorator: Google::Apis::SheetsV4::Request::Representation
|
1359
1467
|
|
1468
|
+
collection :response_ranges, as: 'responseRanges'
|
1469
|
+
property :response_include_grid_data, as: 'responseIncludeGridData'
|
1360
1470
|
end
|
1361
1471
|
end
|
1362
1472
|
|
@@ -1376,6 +1486,12 @@ module Google
|
|
1376
1486
|
end
|
1377
1487
|
end
|
1378
1488
|
|
1489
|
+
class ClearValuesRequest
|
1490
|
+
# @private
|
1491
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1492
|
+
end
|
1493
|
+
end
|
1494
|
+
|
1379
1495
|
class ProtectedRange
|
1380
1496
|
# @private
|
1381
1497
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1482,6 +1598,13 @@ module Google
|
|
1482
1598
|
end
|
1483
1599
|
end
|
1484
1600
|
|
1601
|
+
class BatchClearValuesRequest
|
1602
|
+
# @private
|
1603
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1604
|
+
collection :ranges, as: 'ranges'
|
1605
|
+
end
|
1606
|
+
end
|
1607
|
+
|
1485
1608
|
class UpdateDimensionPropertiesRequest
|
1486
1609
|
# @private
|
1487
1610
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1539,6 +1662,13 @@ module Google
|
|
1539
1662
|
end
|
1540
1663
|
end
|
1541
1664
|
|
1665
|
+
class DeleteBandingRequest
|
1666
|
+
# @private
|
1667
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1668
|
+
property :banded_range_id, as: 'bandedRangeId'
|
1669
|
+
end
|
1670
|
+
end
|
1671
|
+
|
1542
1672
|
class BasicFilter
|
1543
1673
|
# @private
|
1544
1674
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1603,6 +1733,14 @@ module Google
|
|
1603
1733
|
end
|
1604
1734
|
end
|
1605
1735
|
|
1736
|
+
class AddBandingRequest
|
1737
|
+
# @private
|
1738
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1739
|
+
property :banded_range, as: 'bandedRange', class: Google::Apis::SheetsV4::BandedRange, decorator: Google::Apis::SheetsV4::BandedRange::Representation
|
1740
|
+
|
1741
|
+
end
|
1742
|
+
end
|
1743
|
+
|
1606
1744
|
class AppendCellsRequest
|
1607
1745
|
# @private
|
1608
1746
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1667,21 +1805,21 @@ module Google
|
|
1667
1805
|
end
|
1668
1806
|
end
|
1669
1807
|
|
1670
|
-
class
|
1808
|
+
class UpdateEmbeddedObjectPositionRequest
|
1671
1809
|
# @private
|
1672
1810
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1673
|
-
property :
|
1811
|
+
property :new_position, as: 'newPosition', class: Google::Apis::SheetsV4::EmbeddedObjectPosition, decorator: Google::Apis::SheetsV4::EmbeddedObjectPosition::Representation
|
1674
1812
|
|
1813
|
+
property :object_id_prop, as: 'objectId'
|
1814
|
+
property :fields, as: 'fields'
|
1675
1815
|
end
|
1676
1816
|
end
|
1677
1817
|
|
1678
|
-
class
|
1818
|
+
class SetBasicFilterRequest
|
1679
1819
|
# @private
|
1680
1820
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1681
|
-
property :
|
1821
|
+
property :filter, as: 'filter', class: Google::Apis::SheetsV4::BasicFilter, decorator: Google::Apis::SheetsV4::BasicFilter::Representation
|
1682
1822
|
|
1683
|
-
property :object_id_prop, as: 'objectId'
|
1684
|
-
property :fields, as: 'fields'
|
1685
1823
|
end
|
1686
1824
|
end
|
1687
1825
|
|
@@ -1701,6 +1839,20 @@ module Google
|
|
1701
1839
|
end
|
1702
1840
|
end
|
1703
1841
|
|
1842
|
+
class BandingProperties
|
1843
|
+
# @private
|
1844
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1845
|
+
property :footer_color, as: 'footerColor', class: Google::Apis::SheetsV4::Color, decorator: Google::Apis::SheetsV4::Color::Representation
|
1846
|
+
|
1847
|
+
property :header_color, as: 'headerColor', class: Google::Apis::SheetsV4::Color, decorator: Google::Apis::SheetsV4::Color::Representation
|
1848
|
+
|
1849
|
+
property :second_band_color, as: 'secondBandColor', class: Google::Apis::SheetsV4::Color, decorator: Google::Apis::SheetsV4::Color::Representation
|
1850
|
+
|
1851
|
+
property :first_band_color, as: 'firstBandColor', class: Google::Apis::SheetsV4::Color, decorator: Google::Apis::SheetsV4::Color::Representation
|
1852
|
+
|
1853
|
+
end
|
1854
|
+
end
|
1855
|
+
|
1704
1856
|
class PivotGroup
|
1705
1857
|
# @private
|
1706
1858
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1732,6 +1884,15 @@ module Google
|
|
1732
1884
|
end
|
1733
1885
|
end
|
1734
1886
|
|
1887
|
+
class UpdateBandingRequest
|
1888
|
+
# @private
|
1889
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1890
|
+
property :banded_range, as: 'bandedRange', class: Google::Apis::SheetsV4::BandedRange, decorator: Google::Apis::SheetsV4::BandedRange::Representation
|
1891
|
+
|
1892
|
+
property :fields, as: 'fields'
|
1893
|
+
end
|
1894
|
+
end
|
1895
|
+
|
1735
1896
|
class ChartData
|
1736
1897
|
# @private
|
1737
1898
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1759,6 +1920,8 @@ module Google
|
|
1759
1920
|
|
1760
1921
|
collection :data, as: 'data', class: Google::Apis::SheetsV4::GridData, decorator: Google::Apis::SheetsV4::GridData::Representation
|
1761
1922
|
|
1923
|
+
collection :banded_ranges, as: 'bandedRanges', class: Google::Apis::SheetsV4::BandedRange, decorator: Google::Apis::SheetsV4::BandedRange::Representation
|
1924
|
+
|
1762
1925
|
end
|
1763
1926
|
end
|
1764
1927
|
|
@@ -1803,6 +1966,8 @@ module Google
|
|
1803
1966
|
# @private
|
1804
1967
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1805
1968
|
property :spreadsheet_id, as: 'spreadsheetId'
|
1969
|
+
property :updated_spreadsheet, as: 'updatedSpreadsheet', class: Google::Apis::SheetsV4::Spreadsheet, decorator: Google::Apis::SheetsV4::Spreadsheet::Representation
|
1970
|
+
|
1806
1971
|
collection :replies, as: 'replies', class: Google::Apis::SheetsV4::Response, decorator: Google::Apis::SheetsV4::Response::Representation
|
1807
1972
|
|
1808
1973
|
end
|
@@ -1992,10 +2157,16 @@ module Google
|
|
1992
2157
|
|
1993
2158
|
property :merge_cells, as: 'mergeCells', class: Google::Apis::SheetsV4::MergeCellsRequest, decorator: Google::Apis::SheetsV4::MergeCellsRequest::Representation
|
1994
2159
|
|
2160
|
+
property :update_banding, as: 'updateBanding', class: Google::Apis::SheetsV4::UpdateBandingRequest, decorator: Google::Apis::SheetsV4::UpdateBandingRequest::Representation
|
2161
|
+
|
1995
2162
|
property :add_chart, as: 'addChart', class: Google::Apis::SheetsV4::AddChartRequest, decorator: Google::Apis::SheetsV4::AddChartRequest::Representation
|
1996
2163
|
|
1997
2164
|
property :delete_conditional_format_rule, as: 'deleteConditionalFormatRule', class: Google::Apis::SheetsV4::DeleteConditionalFormatRuleRequest, decorator: Google::Apis::SheetsV4::DeleteConditionalFormatRuleRequest::Representation
|
1998
2165
|
|
2166
|
+
property :add_banding, as: 'addBanding', class: Google::Apis::SheetsV4::AddBandingRequest, decorator: Google::Apis::SheetsV4::AddBandingRequest::Representation
|
2167
|
+
|
2168
|
+
property :delete_banding, as: 'deleteBanding', class: Google::Apis::SheetsV4::DeleteBandingRequest, decorator: Google::Apis::SheetsV4::DeleteBandingRequest::Representation
|
2169
|
+
|
1999
2170
|
property :update_chart_spec, as: 'updateChartSpec', class: Google::Apis::SheetsV4::UpdateChartSpecRequest, decorator: Google::Apis::SheetsV4::UpdateChartSpecRequest::Representation
|
2000
2171
|
|
2001
2172
|
property :delete_dimension, as: 'deleteDimension', class: Google::Apis::SheetsV4::DeleteDimensionRequest, decorator: Google::Apis::SheetsV4::DeleteDimensionRequest::Representation
|
@@ -2058,6 +2229,19 @@ module Google
|
|
2058
2229
|
end
|
2059
2230
|
end
|
2060
2231
|
|
2232
|
+
class BandedRange
|
2233
|
+
# @private
|
2234
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2235
|
+
property :banded_range_id, as: 'bandedRangeId'
|
2236
|
+
property :row_properties, as: 'rowProperties', class: Google::Apis::SheetsV4::BandingProperties, decorator: Google::Apis::SheetsV4::BandingProperties::Representation
|
2237
|
+
|
2238
|
+
property :column_properties, as: 'columnProperties', class: Google::Apis::SheetsV4::BandingProperties, decorator: Google::Apis::SheetsV4::BandingProperties::Representation
|
2239
|
+
|
2240
|
+
property :range, as: 'range', class: Google::Apis::SheetsV4::GridRange, decorator: Google::Apis::SheetsV4::GridRange::Representation
|
2241
|
+
|
2242
|
+
end
|
2243
|
+
end
|
2244
|
+
|
2061
2245
|
class DeleteConditionalFormatRuleResponse
|
2062
2246
|
# @private
|
2063
2247
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -176,16 +176,15 @@ module Google
|
|
176
176
|
execute_or_queue_command(command, &block)
|
177
177
|
end
|
178
178
|
|
179
|
-
#
|
180
|
-
# The caller must specify the spreadsheet ID
|
181
|
-
#
|
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.
|
182
183
|
# @param [String] spreadsheet_id
|
183
184
|
# The ID of the spreadsheet to update.
|
184
185
|
# @param [String] range
|
185
|
-
# The A1 notation of the values to
|
186
|
-
# @param [Google::Apis::SheetsV4::
|
187
|
-
# @param [String] value_input_option
|
188
|
-
# How the input data should be interpreted.
|
186
|
+
# The A1 notation of the values to clear.
|
187
|
+
# @param [Google::Apis::SheetsV4::ClearValuesRequest] clear_values_request_object
|
189
188
|
# @param [String] quota_user
|
190
189
|
# Available to use for quota purposes for server-side applications. Can be any
|
191
190
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
@@ -195,40 +194,41 @@ module Google
|
|
195
194
|
# Request-specific options
|
196
195
|
#
|
197
196
|
# @yield [result, err] Result & error if block supplied
|
198
|
-
# @yieldparam result [Google::Apis::SheetsV4::
|
197
|
+
# @yieldparam result [Google::Apis::SheetsV4::ClearValuesResponse] parsed result object
|
199
198
|
# @yieldparam err [StandardError] error object if request failed
|
200
199
|
#
|
201
|
-
# @return [Google::Apis::SheetsV4::
|
200
|
+
# @return [Google::Apis::SheetsV4::ClearValuesResponse]
|
202
201
|
#
|
203
202
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
204
203
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
205
204
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
206
|
-
def
|
207
|
-
command = make_simple_command(:
|
208
|
-
command.request_representation = Google::Apis::SheetsV4::
|
209
|
-
command.request_object =
|
210
|
-
command.response_representation = Google::Apis::SheetsV4::
|
211
|
-
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
|
212
211
|
command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
|
213
212
|
command.params['range'] = range unless range.nil?
|
214
|
-
command.query['valueInputOption'] = value_input_option unless value_input_option.nil?
|
215
213
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
216
214
|
command.query['fields'] = fields unless fields.nil?
|
217
215
|
execute_or_queue_command(command, &block)
|
218
216
|
end
|
219
217
|
|
220
|
-
# Returns
|
221
|
-
# The caller must specify the spreadsheet ID and
|
218
|
+
# Returns one or more ranges of values from a spreadsheet.
|
219
|
+
# The caller must specify the spreadsheet ID and one or more ranges.
|
222
220
|
# @param [String] spreadsheet_id
|
223
221
|
# The ID of the spreadsheet to retrieve data from.
|
224
|
-
# @param [String]
|
222
|
+
# @param [Array<String>, String] ranges
|
225
223
|
# The A1 notation of the values to retrieve.
|
226
224
|
# @param [String] value_render_option
|
227
225
|
# How values should be represented in the output.
|
226
|
+
# The default render option is ValueRenderOption.FORMATTED_VALUE.
|
228
227
|
# @param [String] date_time_render_option
|
229
228
|
# How dates, times, and durations should be represented in the output.
|
230
229
|
# This is ignored if value_render_option is
|
231
230
|
# FORMATTED_VALUE.
|
231
|
+
# The default dateTime render option is [DateTimeRenderOption.SERIAL_NUMBER].
|
232
232
|
# @param [String] major_dimension
|
233
233
|
# The major dimension that results should use.
|
234
234
|
# For example, if the spreadsheet data is: `A1=1,B1=2,A2=3,B2=4`,
|
@@ -245,20 +245,20 @@ module Google
|
|
245
245
|
# Request-specific options
|
246
246
|
#
|
247
247
|
# @yield [result, err] Result & error if block supplied
|
248
|
-
# @yieldparam result [Google::Apis::SheetsV4::
|
248
|
+
# @yieldparam result [Google::Apis::SheetsV4::BatchGetValuesResponse] parsed result object
|
249
249
|
# @yieldparam err [StandardError] error object if request failed
|
250
250
|
#
|
251
|
-
# @return [Google::Apis::SheetsV4::
|
251
|
+
# @return [Google::Apis::SheetsV4::BatchGetValuesResponse]
|
252
252
|
#
|
253
253
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
254
254
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
255
255
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
256
|
-
def
|
257
|
-
command = make_simple_command(:get, 'v4/spreadsheets/{spreadsheetId}/values
|
258
|
-
command.response_representation = Google::Apis::SheetsV4::
|
259
|
-
command.response_class = Google::Apis::SheetsV4::
|
256
|
+
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)
|
257
|
+
command = make_simple_command(:get, 'v4/spreadsheets/{spreadsheetId}/values:batchGet', options)
|
258
|
+
command.response_representation = Google::Apis::SheetsV4::BatchGetValuesResponse::Representation
|
259
|
+
command.response_class = Google::Apis::SheetsV4::BatchGetValuesResponse
|
260
260
|
command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
|
261
|
-
command.
|
261
|
+
command.query['ranges'] = ranges unless ranges.nil?
|
262
262
|
command.query['valueRenderOption'] = value_render_option unless value_render_option.nil?
|
263
263
|
command.query['dateTimeRenderOption'] = date_time_render_option unless date_time_render_option.nil?
|
264
264
|
command.query['majorDimension'] = major_dimension unless major_dimension.nil?
|
@@ -267,18 +267,56 @@ module Google
|
|
267
267
|
execute_or_queue_command(command, &block)
|
268
268
|
end
|
269
269
|
|
270
|
-
#
|
271
|
-
# The caller must specify the spreadsheet ID
|
270
|
+
# Sets values in one or more ranges of a spreadsheet.
|
271
|
+
# The caller must specify the spreadsheet ID,
|
272
|
+
# a valueInputOption, and one or more
|
273
|
+
# ValueRanges.
|
274
|
+
# @param [String] spreadsheet_id
|
275
|
+
# The ID of the spreadsheet to update.
|
276
|
+
# @param [Google::Apis::SheetsV4::BatchUpdateValuesRequest] batch_update_values_request_object
|
277
|
+
# @param [String] quota_user
|
278
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
279
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
280
|
+
# @param [String] fields
|
281
|
+
# Selector specifying which fields to include in a partial response.
|
282
|
+
# @param [Google::Apis::RequestOptions] options
|
283
|
+
# Request-specific options
|
284
|
+
#
|
285
|
+
# @yield [result, err] Result & error if block supplied
|
286
|
+
# @yieldparam result [Google::Apis::SheetsV4::BatchUpdateValuesResponse] parsed result object
|
287
|
+
# @yieldparam err [StandardError] error object if request failed
|
288
|
+
#
|
289
|
+
# @return [Google::Apis::SheetsV4::BatchUpdateValuesResponse]
|
290
|
+
#
|
291
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
292
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
293
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
294
|
+
def batch_update_values(spreadsheet_id, batch_update_values_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
295
|
+
command = make_simple_command(:post, 'v4/spreadsheets/{spreadsheetId}/values:batchUpdate', options)
|
296
|
+
command.request_representation = Google::Apis::SheetsV4::BatchUpdateValuesRequest::Representation
|
297
|
+
command.request_object = batch_update_values_request_object
|
298
|
+
command.response_representation = Google::Apis::SheetsV4::BatchUpdateValuesResponse::Representation
|
299
|
+
command.response_class = Google::Apis::SheetsV4::BatchUpdateValuesResponse
|
300
|
+
command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
|
301
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
302
|
+
command.query['fields'] = fields unless fields.nil?
|
303
|
+
execute_or_queue_command(command, &block)
|
304
|
+
end
|
305
|
+
|
306
|
+
# Returns a range of values from a spreadsheet.
|
307
|
+
# The caller must specify the spreadsheet ID and a range.
|
272
308
|
# @param [String] spreadsheet_id
|
273
309
|
# The ID of the spreadsheet to retrieve data from.
|
274
|
-
# @param [
|
310
|
+
# @param [String] range
|
275
311
|
# The A1 notation of the values to retrieve.
|
276
312
|
# @param [String] value_render_option
|
277
313
|
# How values should be represented in the output.
|
314
|
+
# The default render option is ValueRenderOption.FORMATTED_VALUE.
|
278
315
|
# @param [String] date_time_render_option
|
279
316
|
# How dates, times, and durations should be represented in the output.
|
280
317
|
# This is ignored if value_render_option is
|
281
318
|
# FORMATTED_VALUE.
|
319
|
+
# The default dateTime render option is [DateTimeRenderOption.SERIAL_NUMBER].
|
282
320
|
# @param [String] major_dimension
|
283
321
|
# The major dimension that results should use.
|
284
322
|
# For example, if the spreadsheet data is: `A1=1,B1=2,A2=3,B2=4`,
|
@@ -295,20 +333,20 @@ module Google
|
|
295
333
|
# Request-specific options
|
296
334
|
#
|
297
335
|
# @yield [result, err] Result & error if block supplied
|
298
|
-
# @yieldparam result [Google::Apis::SheetsV4::
|
336
|
+
# @yieldparam result [Google::Apis::SheetsV4::ValueRange] parsed result object
|
299
337
|
# @yieldparam err [StandardError] error object if request failed
|
300
338
|
#
|
301
|
-
# @return [Google::Apis::SheetsV4::
|
339
|
+
# @return [Google::Apis::SheetsV4::ValueRange]
|
302
340
|
#
|
303
341
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
304
342
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
305
343
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
306
|
-
def
|
307
|
-
command = make_simple_command(:get, 'v4/spreadsheets/{spreadsheetId}/values
|
308
|
-
command.response_representation = Google::Apis::SheetsV4::
|
309
|
-
command.response_class = Google::Apis::SheetsV4::
|
344
|
+
def get_spreadsheet_values(spreadsheet_id, range, value_render_option: nil, date_time_render_option: nil, major_dimension: nil, quota_user: nil, fields: nil, options: nil, &block)
|
345
|
+
command = make_simple_command(:get, 'v4/spreadsheets/{spreadsheetId}/values/{range}', options)
|
346
|
+
command.response_representation = Google::Apis::SheetsV4::ValueRange::Representation
|
347
|
+
command.response_class = Google::Apis::SheetsV4::ValueRange
|
310
348
|
command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
|
311
|
-
command.
|
349
|
+
command.params['range'] = range unless range.nil?
|
312
350
|
command.query['valueRenderOption'] = value_render_option unless value_render_option.nil?
|
313
351
|
command.query['dateTimeRenderOption'] = date_time_render_option unless date_time_render_option.nil?
|
314
352
|
command.query['majorDimension'] = major_dimension unless major_dimension.nil?
|
@@ -317,13 +355,41 @@ module Google
|
|
317
355
|
execute_or_queue_command(command, &block)
|
318
356
|
end
|
319
357
|
|
320
|
-
#
|
321
|
-
#
|
322
|
-
#
|
323
|
-
#
|
358
|
+
# Appends values to a spreadsheet. The input range is used to search for
|
359
|
+
# existing data and find a "table" within that range. Values will be
|
360
|
+
# appended to the next row of the table, starting with the first column of
|
361
|
+
# the table. See the
|
362
|
+
# [guide](/sheets/guides/values#appending_values)
|
363
|
+
# and
|
364
|
+
# [sample code](/sheets/samples/writing#append_values)
|
365
|
+
# for specific details of how tables are detected and data is appended.
|
366
|
+
# The caller must specify the spreadsheet ID, range, and
|
367
|
+
# a valueInputOption. The `valueInputOption` only
|
368
|
+
# controls how the input data will be added to the sheet (column-wise or
|
369
|
+
# row-wise), it does not influence what cell the data starts being written
|
370
|
+
# to.
|
324
371
|
# @param [String] spreadsheet_id
|
325
372
|
# The ID of the spreadsheet to update.
|
326
|
-
# @param [
|
373
|
+
# @param [String] range
|
374
|
+
# The A1 notation of a range to search for a logical table of data.
|
375
|
+
# Values will be appended after the last row of the table.
|
376
|
+
# @param [Google::Apis::SheetsV4::ValueRange] value_range_object
|
377
|
+
# @param [String] response_value_render_option
|
378
|
+
# Determines how values in the response should be rendered.
|
379
|
+
# The default render option is ValueRenderOption.FORMATTED_VALUE.
|
380
|
+
# @param [String] value_input_option
|
381
|
+
# How the input data should be interpreted.
|
382
|
+
# @param [String] response_date_time_render_option
|
383
|
+
# Determines how dates, times, and durations in the response should be
|
384
|
+
# rendered. This is ignored if response_value_render_option is
|
385
|
+
# FORMATTED_VALUE.
|
386
|
+
# The default dateTime render option is [DateTimeRenderOption.SERIAL_NUMBER].
|
387
|
+
# @param [Boolean] include_values_in_response
|
388
|
+
# Determines if the update response should include the values
|
389
|
+
# of the cells that were appended. By default, responses
|
390
|
+
# do not include the updated values.
|
391
|
+
# @param [String] insert_data_option
|
392
|
+
# How the input data should be inserted.
|
327
393
|
# @param [String] quota_user
|
328
394
|
# Available to use for quota purposes for server-side applications. Can be any
|
329
395
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
@@ -333,20 +399,121 @@ module Google
|
|
333
399
|
# Request-specific options
|
334
400
|
#
|
335
401
|
# @yield [result, err] Result & error if block supplied
|
336
|
-
# @yieldparam result [Google::Apis::SheetsV4::
|
402
|
+
# @yieldparam result [Google::Apis::SheetsV4::AppendValuesResponse] parsed result object
|
337
403
|
# @yieldparam err [StandardError] error object if request failed
|
338
404
|
#
|
339
|
-
# @return [Google::Apis::SheetsV4::
|
405
|
+
# @return [Google::Apis::SheetsV4::AppendValuesResponse]
|
340
406
|
#
|
341
407
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
342
408
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
343
409
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
344
|
-
def
|
345
|
-
command = make_simple_command(:post, 'v4/spreadsheets/{spreadsheetId}/values:
|
346
|
-
command.request_representation = Google::Apis::SheetsV4::
|
347
|
-
command.request_object =
|
348
|
-
command.response_representation = Google::Apis::SheetsV4::
|
349
|
-
command.response_class = Google::Apis::SheetsV4::
|
410
|
+
def append_spreadsheet_value(spreadsheet_id, range, value_range_object = nil, response_value_render_option: nil, value_input_option: nil, response_date_time_render_option: nil, include_values_in_response: nil, insert_data_option: nil, quota_user: nil, fields: nil, options: nil, &block)
|
411
|
+
command = make_simple_command(:post, 'v4/spreadsheets/{spreadsheetId}/values/{range}:append', options)
|
412
|
+
command.request_representation = Google::Apis::SheetsV4::ValueRange::Representation
|
413
|
+
command.request_object = value_range_object
|
414
|
+
command.response_representation = Google::Apis::SheetsV4::AppendValuesResponse::Representation
|
415
|
+
command.response_class = Google::Apis::SheetsV4::AppendValuesResponse
|
416
|
+
command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
|
417
|
+
command.params['range'] = range unless range.nil?
|
418
|
+
command.query['responseValueRenderOption'] = response_value_render_option unless response_value_render_option.nil?
|
419
|
+
command.query['valueInputOption'] = value_input_option unless value_input_option.nil?
|
420
|
+
command.query['responseDateTimeRenderOption'] = response_date_time_render_option unless response_date_time_render_option.nil?
|
421
|
+
command.query['includeValuesInResponse'] = include_values_in_response unless include_values_in_response.nil?
|
422
|
+
command.query['insertDataOption'] = insert_data_option unless insert_data_option.nil?
|
423
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
424
|
+
command.query['fields'] = fields unless fields.nil?
|
425
|
+
execute_or_queue_command(command, &block)
|
426
|
+
end
|
427
|
+
|
428
|
+
# Sets values in a range of a spreadsheet.
|
429
|
+
# The caller must specify the spreadsheet ID, range, and
|
430
|
+
# a valueInputOption.
|
431
|
+
# @param [String] spreadsheet_id
|
432
|
+
# The ID of the spreadsheet to update.
|
433
|
+
# @param [String] range
|
434
|
+
# The A1 notation of the values to update.
|
435
|
+
# @param [Google::Apis::SheetsV4::ValueRange] value_range_object
|
436
|
+
# @param [String] response_value_render_option
|
437
|
+
# Determines how values in the response should be rendered.
|
438
|
+
# The default render option is ValueRenderOption.FORMATTED_VALUE.
|
439
|
+
# @param [String] value_input_option
|
440
|
+
# How the input data should be interpreted.
|
441
|
+
# @param [String] response_date_time_render_option
|
442
|
+
# Determines how dates, times, and durations in the response should be
|
443
|
+
# rendered. This is ignored if response_value_render_option is
|
444
|
+
# FORMATTED_VALUE.
|
445
|
+
# The default dateTime render option is [DateTimeRenderOption.SERIAL_NUMBER].
|
446
|
+
# @param [Boolean] include_values_in_response
|
447
|
+
# Determines if the update response should include the values
|
448
|
+
# of the cells that were updated. By default, responses
|
449
|
+
# do not include the updated values.
|
450
|
+
# If the range to write was larger than than the range actually written,
|
451
|
+
# the response will include all values in the requested range (excluding
|
452
|
+
# trailing empty rows and columns).
|
453
|
+
# @param [String] quota_user
|
454
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
455
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
456
|
+
# @param [String] fields
|
457
|
+
# Selector specifying which fields to include in a partial response.
|
458
|
+
# @param [Google::Apis::RequestOptions] options
|
459
|
+
# Request-specific options
|
460
|
+
#
|
461
|
+
# @yield [result, err] Result & error if block supplied
|
462
|
+
# @yieldparam result [Google::Apis::SheetsV4::UpdateValuesResponse] parsed result object
|
463
|
+
# @yieldparam err [StandardError] error object if request failed
|
464
|
+
#
|
465
|
+
# @return [Google::Apis::SheetsV4::UpdateValuesResponse]
|
466
|
+
#
|
467
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
468
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
469
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
470
|
+
def update_spreadsheet_value(spreadsheet_id, range, value_range_object = nil, response_value_render_option: nil, value_input_option: nil, response_date_time_render_option: nil, include_values_in_response: nil, quota_user: nil, fields: nil, options: nil, &block)
|
471
|
+
command = make_simple_command(:put, 'v4/spreadsheets/{spreadsheetId}/values/{range}', options)
|
472
|
+
command.request_representation = Google::Apis::SheetsV4::ValueRange::Representation
|
473
|
+
command.request_object = value_range_object
|
474
|
+
command.response_representation = Google::Apis::SheetsV4::UpdateValuesResponse::Representation
|
475
|
+
command.response_class = Google::Apis::SheetsV4::UpdateValuesResponse
|
476
|
+
command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
|
477
|
+
command.params['range'] = range unless range.nil?
|
478
|
+
command.query['responseValueRenderOption'] = response_value_render_option unless response_value_render_option.nil?
|
479
|
+
command.query['valueInputOption'] = value_input_option unless value_input_option.nil?
|
480
|
+
command.query['responseDateTimeRenderOption'] = response_date_time_render_option unless response_date_time_render_option.nil?
|
481
|
+
command.query['includeValuesInResponse'] = include_values_in_response unless include_values_in_response.nil?
|
482
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
483
|
+
command.query['fields'] = fields unless fields.nil?
|
484
|
+
execute_or_queue_command(command, &block)
|
485
|
+
end
|
486
|
+
|
487
|
+
# Clears one or more ranges of values from a spreadsheet.
|
488
|
+
# The caller must specify the spreadsheet ID and one or more ranges.
|
489
|
+
# Only values are cleared -- all other properties of the cell (such as
|
490
|
+
# formatting, data validation, etc..) are kept.
|
491
|
+
# @param [String] spreadsheet_id
|
492
|
+
# The ID of the spreadsheet to update.
|
493
|
+
# @param [Google::Apis::SheetsV4::BatchClearValuesRequest] batch_clear_values_request_object
|
494
|
+
# @param [String] quota_user
|
495
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
496
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
497
|
+
# @param [String] fields
|
498
|
+
# Selector specifying which fields to include in a partial response.
|
499
|
+
# @param [Google::Apis::RequestOptions] options
|
500
|
+
# Request-specific options
|
501
|
+
#
|
502
|
+
# @yield [result, err] Result & error if block supplied
|
503
|
+
# @yieldparam result [Google::Apis::SheetsV4::BatchClearValuesResponse] parsed result object
|
504
|
+
# @yieldparam err [StandardError] error object if request failed
|
505
|
+
#
|
506
|
+
# @return [Google::Apis::SheetsV4::BatchClearValuesResponse]
|
507
|
+
#
|
508
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
509
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
510
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
511
|
+
def batch_clear_values(spreadsheet_id, batch_clear_values_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
512
|
+
command = make_simple_command(:post, 'v4/spreadsheets/{spreadsheetId}/values:batchClear', options)
|
513
|
+
command.request_representation = Google::Apis::SheetsV4::BatchClearValuesRequest::Representation
|
514
|
+
command.request_object = batch_clear_values_request_object
|
515
|
+
command.response_representation = Google::Apis::SheetsV4::BatchClearValuesResponse::Representation
|
516
|
+
command.response_class = Google::Apis::SheetsV4::BatchClearValuesResponse
|
350
517
|
command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
|
351
518
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
352
519
|
command.query['fields'] = fields unless fields.nil?
|