google-api-client 0.12.0 → 0.13.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/api_names.yaml +945 -41609
- data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +12 -12
- data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +2 -2
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +1437 -412
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +516 -71
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +1098 -422
- data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +6 -6
- data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +3 -3
- data/generated/google/apis/adexchangebuyer_v1_4/service.rb +3 -3
- data/generated/google/apis/adexchangeseller_v2_0/service.rb +10 -10
- data/generated/google/apis/admin_directory_v1/service.rb +26 -26
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsense_v1_4/classes.rb +2 -2
- data/generated/google/apis/adsense_v1_4/representations.rb +3 -3
- data/generated/google/apis/adsense_v1_4/service.rb +44 -44
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1/service.rb +22 -22
- data/generated/google/apis/analytics_v3/classes.rb +3 -3
- data/generated/google/apis/analytics_v3/representations.rb +3 -3
- data/generated/google/apis/analytics_v3/service.rb +82 -82
- data/generated/google/apis/analyticsreporting_v4/classes.rb +937 -937
- data/generated/google/apis/analyticsreporting_v4/representations.rb +128 -128
- data/generated/google/apis/analyticsreporting_v4/service.rb +1 -1
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +10 -10
- data/generated/google/apis/androidenterprise_v1/representations.rb +20 -20
- data/generated/google/apis/androidenterprise_v1/service.rb +43 -43
- data/generated/google/apis/androidpublisher_v2/classes.rb +26 -26
- data/generated/google/apis/androidpublisher_v2/representations.rb +46 -46
- data/generated/google/apis/androidpublisher_v2/service.rb +95 -95
- data/generated/google/apis/appengine_v1.rb +4 -4
- data/generated/google/apis/appengine_v1/classes.rb +1570 -1512
- data/generated/google/apis/appengine_v1/representations.rb +362 -343
- data/generated/google/apis/appengine_v1/service.rb +220 -220
- 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 +5 -5
- data/generated/google/apis/bigquery_v2/representations.rb +8 -8
- data/generated/google/apis/bigquery_v2/service.rb +13 -13
- data/generated/google/apis/blogger_v3/service.rb +3 -3
- data/generated/google/apis/books_v1/classes.rb +55 -55
- data/generated/google/apis/books_v1/representations.rb +67 -67
- data/generated/google/apis/books_v1/service.rb +82 -82
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/calendar_v3/classes.rb +6 -6
- data/generated/google/apis/calendar_v3/representations.rb +3 -3
- data/generated/google/apis/calendar_v3/service.rb +2 -2
- data/generated/google/apis/civicinfo_v2/classes.rb +2 -2
- data/generated/google/apis/civicinfo_v2/representations.rb +4 -4
- data/generated/google/apis/civicinfo_v2/service.rb +12 -12
- data/generated/google/apis/classroom_v1.rb +7 -7
- data/generated/google/apis/classroom_v1/classes.rb +1013 -991
- data/generated/google/apis/classroom_v1/representations.rb +207 -204
- data/generated/google/apis/classroom_v1/service.rb +709 -709
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +307 -307
- data/generated/google/apis/cloudbuild_v1/representations.rb +84 -84
- data/generated/google/apis/cloudbuild_v1/service.rb +125 -125
- data/generated/google/apis/clouddebugger_v2/classes.rb +673 -673
- data/generated/google/apis/clouddebugger_v2/representations.rb +152 -152
- data/generated/google/apis/clouddebugger_v2/service.rb +55 -55
- data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
- data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +121 -121
- data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +25 -25
- data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +74 -74
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1/classes.rb +668 -613
- data/generated/google/apis/cloudkms_v1/representations.rb +151 -133
- data/generated/google/apis/cloudkms_v1/service.rb +267 -267
- data/generated/google/apis/cloudresourcemanager_v1.rb +4 -4
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1167 -1168
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +193 -193
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +470 -469
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +508 -509
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +94 -94
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +157 -156
- data/generated/google/apis/cloudtrace_v1/service.rb +34 -34
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +163 -15
- data/generated/google/apis/compute_beta/representations.rb +54 -14
- data/generated/google/apis/compute_beta/service.rb +2258 -482
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +465 -13
- data/generated/google/apis/compute_v1/representations.rb +202 -16
- data/generated/google/apis/compute_v1/service.rb +573 -309
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +635 -589
- data/generated/google/apis/container_v1/representations.rb +139 -111
- data/generated/google/apis/container_v1/service.rb +272 -227
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +86 -74
- data/generated/google/apis/content_v2/representations.rb +107 -105
- data/generated/google/apis/content_v2/service.rb +131 -130
- data/generated/google/apis/customsearch_v1.rb +2 -2
- data/generated/google/apis/customsearch_v1/classes.rb +0 -6
- data/generated/google/apis/customsearch_v1/representations.rb +0 -1
- data/generated/google/apis/customsearch_v1/service.rb +2 -5
- data/generated/google/apis/dataflow_v1b3.rb +7 -4
- data/generated/google/apis/dataflow_v1b3/classes.rb +3405 -3405
- data/generated/google/apis/dataflow_v1b3/representations.rb +834 -834
- data/generated/google/apis/dataflow_v1b3/service.rb +244 -244
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +543 -691
- data/generated/google/apis/dataproc_v1/representations.rb +129 -185
- data/generated/google/apis/dataproc_v1/service.rb +347 -347
- data/generated/google/apis/datastore_v1.rb +4 -4
- data/generated/google/apis/datastore_v1/classes.rb +833 -833
- data/generated/google/apis/datastore_v1/representations.rb +182 -182
- data/generated/google/apis/datastore_v1/service.rb +45 -45
- data/generated/google/apis/deploymentmanager_v2/classes.rb +5 -5
- data/generated/google/apis/deploymentmanager_v2/representations.rb +10 -10
- data/generated/google/apis/deploymentmanager_v2/service.rb +20 -20
- data/generated/google/apis/discovery_v1/classes.rb +4 -4
- data/generated/google/apis/discovery_v1/representations.rb +2 -2
- data/generated/google/apis/discovery_v1/service.rb +1 -1
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v1/classes.rb +3 -3
- data/generated/google/apis/dns_v1/representations.rb +6 -6
- data/generated/google/apis/dns_v1/service.rb +12 -12
- data/generated/google/apis/dns_v2beta1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1/service.rb +8 -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 +1 -1
- data/generated/google/apis/drive_v2/service.rb +1 -1
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/service.rb +1 -1
- data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
- data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +160 -110
- data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +60 -31
- data/generated/google/apis/firebasedynamiclinks_v1/service.rb +38 -3
- data/generated/google/apis/firebaserules_v1/classes.rb +354 -354
- data/generated/google/apis/firebaserules_v1/representations.rb +87 -87
- data/generated/google/apis/firebaserules_v1/service.rb +103 -103
- data/generated/google/apis/fusiontables_v2/service.rb +2 -2
- data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
- data/generated/google/apis/games_configuration_v1configuration/classes.rb +2 -2
- data/generated/google/apis/games_configuration_v1configuration/representations.rb +4 -4
- data/generated/google/apis/games_configuration_v1configuration/service.rb +8 -8
- data/generated/google/apis/games_management_v1management.rb +1 -1
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/games_v1/classes.rb +23 -23
- data/generated/google/apis/games_v1/representations.rb +43 -43
- data/generated/google/apis/games_v1/service.rb +72 -72
- data/generated/google/apis/genomics_v1.rb +1 -1
- data/generated/google/apis/genomics_v1/classes.rb +2316 -2316
- data/generated/google/apis/genomics_v1/representations.rb +291 -291
- data/generated/google/apis/genomics_v1/service.rb +821 -821
- data/generated/google/apis/gmail_v1.rb +1 -1
- data/generated/google/apis/groupsmigration_v1.rb +1 -1
- data/generated/google/apis/groupssettings_v1.rb +1 -1
- data/generated/google/apis/groupssettings_v1/classes.rb +2 -2
- data/generated/google/apis/groupssettings_v1/service.rb +3 -0
- data/generated/google/apis/iam_v1/classes.rb +338 -338
- data/generated/google/apis/iam_v1/representations.rb +98 -98
- data/generated/google/apis/iam_v1/service.rb +35 -35
- data/generated/google/apis/identitytoolkit_v3/classes.rb +15 -15
- data/generated/google/apis/identitytoolkit_v3/representations.rb +30 -30
- data/generated/google/apis/identitytoolkit_v3/service.rb +64 -64
- data/generated/google/apis/kgsearch_v1/service.rb +13 -13
- data/generated/google/apis/language_v1.rb +1 -1
- data/generated/google/apis/language_v1/classes.rb +374 -374
- data/generated/google/apis/language_v1/representations.rb +97 -97
- data/generated/google/apis/language_v1/service.rb +16 -16
- data/generated/google/apis/language_v1beta1.rb +1 -1
- data/generated/google/apis/language_v1beta1/classes.rb +441 -441
- data/generated/google/apis/language_v1beta1/representations.rb +108 -108
- data/generated/google/apis/language_v1beta1/service.rb +30 -30
- data/generated/google/apis/licensing_v1/service.rb +2 -2
- data/generated/google/apis/logging_v2.rb +1 -1
- data/generated/google/apis/logging_v2/classes.rb +712 -712
- data/generated/google/apis/logging_v2/representations.rb +109 -109
- data/generated/google/apis/logging_v2/service.rb +543 -539
- data/generated/google/apis/logging_v2beta1.rb +1 -1
- data/generated/google/apis/logging_v2beta1/classes.rb +752 -752
- data/generated/google/apis/logging_v2beta1/representations.rb +94 -94
- data/generated/google/apis/logging_v2beta1/service.rb +257 -256
- data/generated/google/apis/manufacturers_v1/classes.rb +130 -130
- data/generated/google/apis/manufacturers_v1/representations.rb +28 -28
- data/generated/google/apis/mirror_v1/classes.rb +5 -5
- data/generated/google/apis/mirror_v1/representations.rb +10 -10
- data/generated/google/apis/mirror_v1/service.rb +20 -20
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +1830 -1210
- data/generated/google/apis/ml_v1/representations.rb +342 -120
- data/generated/google/apis/ml_v1/service.rb +365 -258
- data/generated/google/apis/monitoring_v3.rb +4 -4
- data/generated/google/apis/monitoring_v3/classes.rb +889 -889
- data/generated/google/apis/monitoring_v3/representations.rb +174 -174
- data/generated/google/apis/monitoring_v3/service.rb +119 -119
- data/generated/google/apis/mybusiness_v3/service.rb +5 -5
- data/generated/google/apis/oauth2_v2/service.rb +1 -1
- data/generated/google/apis/pagespeedonline_v2/classes.rb +11 -11
- data/generated/google/apis/pagespeedonline_v2/representations.rb +13 -13
- data/generated/google/apis/pagespeedonline_v2/service.rb +1 -1
- data/generated/google/apis/partners_v2.rb +1 -1
- data/generated/google/apis/partners_v2/classes.rb +550 -536
- data/generated/google/apis/partners_v2/representations.rb +118 -116
- data/generated/google/apis/partners_v2/service.rb +439 -439
- data/generated/google/apis/people_v1.rb +4 -4
- data/generated/google/apis/people_v1/classes.rb +414 -413
- data/generated/google/apis/people_v1/representations.rb +85 -85
- data/generated/google/apis/people_v1/service.rb +111 -18
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_domains_v1/service.rb +4 -4
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/plus_v1/service.rb +1 -1
- data/generated/google/apis/prediction_v1_6/service.rb +8 -8
- data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +443 -443
- data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +92 -92
- data/generated/google/apis/proximitybeacon_v1beta1/service.rb +152 -152
- data/generated/google/apis/pubsub_v1/classes.rb +249 -249
- data/generated/google/apis/pubsub_v1/representations.rb +80 -80
- data/generated/google/apis/pubsub_v1/service.rb +415 -415
- data/generated/google/apis/qpx_express_v1/classes.rb +2 -2
- data/generated/google/apis/qpx_express_v1/representations.rb +4 -4
- data/generated/google/apis/qpx_express_v1/service.rb +8 -8
- data/generated/google/apis/replicapool_v1beta2/classes.rb +5 -5
- data/generated/google/apis/replicapool_v1beta2/representations.rb +10 -10
- data/generated/google/apis/replicapool_v1beta2/service.rb +21 -21
- data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +1 -1
- data/generated/google/apis/resourceviews_v1beta2/classes.rb +5 -5
- data/generated/google/apis/resourceviews_v1beta2/representations.rb +10 -10
- data/generated/google/apis/resourceviews_v1beta2/service.rb +20 -20
- data/generated/google/apis/runtimeconfig_v1.rb +4 -4
- data/generated/google/apis/runtimeconfig_v1/classes.rb +15 -15
- data/generated/google/apis/runtimeconfig_v1/representations.rb +2 -2
- data/generated/google/apis/runtimeconfig_v1/service.rb +4 -4
- data/generated/google/apis/script_v1.rb +17 -17
- data/generated/google/apis/script_v1/classes.rb +27 -27
- data/generated/google/apis/script_v1/representations.rb +5 -5
- data/generated/google/apis/script_v1/service.rb +4 -4
- data/generated/google/apis/searchconsole_v1.rb +1 -1
- data/generated/google/apis/searchconsole_v1/classes.rb +53 -53
- data/generated/google/apis/searchconsole_v1/representations.rb +23 -23
- data/generated/google/apis/searchconsole_v1/service.rb +4 -4
- data/generated/google/apis/servicecontrol_v1.rb +1 -1
- data/generated/google/apis/servicecontrol_v1/classes.rb +1175 -1175
- data/generated/google/apis/servicecontrol_v1/representations.rb +206 -206
- data/generated/google/apis/servicecontrol_v1/service.rb +116 -116
- data/generated/google/apis/servicemanagement_v1.rb +1 -1
- data/generated/google/apis/servicemanagement_v1/classes.rb +1186 -1125
- data/generated/google/apis/servicemanagement_v1/representations.rb +241 -223
- data/generated/google/apis/servicemanagement_v1/service.rb +201 -201
- data/generated/google/apis/serviceuser_v1.rb +1 -1
- data/generated/google/apis/serviceuser_v1/classes.rb +2645 -2641
- data/generated/google/apis/serviceuser_v1/representations.rb +234 -234
- data/generated/google/apis/serviceuser_v1/service.rb +37 -37
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/sheets_v4/classes.rb +5042 -4111
- data/generated/google/apis/sheets_v4/representations.rb +994 -824
- data/generated/google/apis/sheets_v4/service.rb +80 -80
- data/generated/google/apis/site_verification_v1/classes.rb +6 -6
- data/generated/google/apis/site_verification_v1/representations.rb +8 -8
- data/generated/google/apis/site_verification_v1/service.rb +12 -12
- data/generated/google/apis/slides_v1.rb +1 -1
- data/generated/google/apis/slides_v1/classes.rb +2885 -2885
- data/generated/google/apis/slides_v1/representations.rb +310 -310
- data/generated/google/apis/slides_v1/service.rb +54 -54
- data/generated/google/apis/sourcerepo_v1/classes.rb +206 -206
- data/generated/google/apis/sourcerepo_v1/representations.rb +52 -52
- data/generated/google/apis/sourcerepo_v1/service.rb +5 -5
- data/generated/google/apis/spanner_v1.rb +1 -1
- data/generated/google/apis/spanner_v1/classes.rb +2142 -2141
- data/generated/google/apis/spanner_v1/representations.rb +174 -174
- data/generated/google/apis/spanner_v1/service.rb +497 -497
- data/generated/google/apis/speech_v1beta1.rb +1 -1
- data/generated/google/apis/speech_v1beta1/classes.rb +227 -227
- data/generated/google/apis/speech_v1beta1/representations.rb +50 -50
- data/generated/google/apis/speech_v1beta1/service.rb +33 -33
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +21 -21
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +29 -29
- data/generated/google/apis/sqladmin_v1beta4/service.rb +56 -56
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +40 -6
- data/generated/google/apis/storage_v1/representations.rb +20 -4
- data/generated/google/apis/storage_v1/service.rb +61 -46
- data/generated/google/apis/storagetransfer_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1/classes.rb +184 -184
- data/generated/google/apis/storagetransfer_v1/representations.rb +35 -35
- data/generated/google/apis/storagetransfer_v1/service.rb +70 -70
- data/generated/google/apis/tagmanager_v1/service.rb +33 -33
- data/generated/google/apis/toolresults_v1beta3.rb +1 -1
- data/generated/google/apis/translate_v2/classes.rb +12 -12
- data/generated/google/apis/translate_v2/representations.rb +10 -10
- data/generated/google/apis/translate_v2/service.rb +62 -62
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +1267 -1267
- data/generated/google/apis/vision_v1/representations.rb +200 -200
- data/generated/google/apis/vision_v1/service.rb +10 -10
- data/generated/google/apis/webmasters_v3.rb +1 -1
- data/generated/google/apis/webmasters_v3/classes.rb +4 -4
- data/generated/google/apis/webmasters_v3/representations.rb +8 -8
- data/generated/google/apis/webmasters_v3/service.rb +21 -21
- data/generated/google/apis/youtube_analytics_v1.rb +1 -1
- data/generated/google/apis/youtube_analytics_v1/classes.rb +2 -2
- data/generated/google/apis/youtube_analytics_v1/representations.rb +4 -4
- data/generated/google/apis/youtube_analytics_v1/service.rb +8 -8
- data/generated/google/apis/youtube_v3/classes.rb +20 -20
- data/generated/google/apis/youtube_v3/representations.rb +40 -40
- data/generated/google/apis/youtube_v3/service.rb +80 -80
- data/generated/google/apis/youtubereporting_v1.rb +1 -1
- data/generated/google/apis/youtubereporting_v1/classes.rb +129 -129
- data/generated/google/apis/youtubereporting_v1/representations.rb +38 -38
- data/generated/google/apis/youtubereporting_v1/service.rb +97 -97
- data/lib/google/apis/generator/annotator.rb +2 -2
- data/lib/google/apis/generator/model.rb +2 -2
- data/lib/google/apis/version.rb +1 -1
- metadata +2 -2
@@ -70,11 +70,11 @@ module Google
|
|
70
70
|
# @param [Boolean] include_grid_data
|
71
71
|
# True if grid data should be returned.
|
72
72
|
# This parameter is ignored if a field mask was set in the request.
|
73
|
+
# @param [String] fields
|
74
|
+
# Selector specifying which fields to include in a partial response.
|
73
75
|
# @param [String] quota_user
|
74
76
|
# Available to use for quota purposes for server-side applications. Can be any
|
75
77
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
76
|
-
# @param [String] fields
|
77
|
-
# Selector specifying which fields to include in a partial response.
|
78
78
|
# @param [Google::Apis::RequestOptions] options
|
79
79
|
# Request-specific options
|
80
80
|
#
|
@@ -87,25 +87,25 @@ module Google
|
|
87
87
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
88
88
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
89
89
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
90
|
-
def get_spreadsheet(spreadsheet_id, ranges: nil, include_grid_data: nil,
|
90
|
+
def get_spreadsheet(spreadsheet_id, ranges: nil, include_grid_data: nil, fields: nil, quota_user: nil, options: nil, &block)
|
91
91
|
command = make_simple_command(:get, 'v4/spreadsheets/{spreadsheetId}', options)
|
92
92
|
command.response_representation = Google::Apis::SheetsV4::Spreadsheet::Representation
|
93
93
|
command.response_class = Google::Apis::SheetsV4::Spreadsheet
|
94
94
|
command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
|
95
95
|
command.query['ranges'] = ranges unless ranges.nil?
|
96
96
|
command.query['includeGridData'] = include_grid_data unless include_grid_data.nil?
|
97
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
98
97
|
command.query['fields'] = fields unless fields.nil?
|
98
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
99
99
|
execute_or_queue_command(command, &block)
|
100
100
|
end
|
101
101
|
|
102
102
|
# Creates a spreadsheet, returning the newly created spreadsheet.
|
103
103
|
# @param [Google::Apis::SheetsV4::Spreadsheet] spreadsheet_object
|
104
|
+
# @param [String] fields
|
105
|
+
# Selector specifying which fields to include in a partial response.
|
104
106
|
# @param [String] quota_user
|
105
107
|
# Available to use for quota purposes for server-side applications. Can be any
|
106
108
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
107
|
-
# @param [String] fields
|
108
|
-
# Selector specifying which fields to include in a partial response.
|
109
109
|
# @param [Google::Apis::RequestOptions] options
|
110
110
|
# Request-specific options
|
111
111
|
#
|
@@ -118,14 +118,14 @@ module Google
|
|
118
118
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
119
119
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
120
120
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
121
|
-
def create_spreadsheet(spreadsheet_object = nil,
|
121
|
+
def create_spreadsheet(spreadsheet_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
122
122
|
command = make_simple_command(:post, 'v4/spreadsheets', options)
|
123
123
|
command.request_representation = Google::Apis::SheetsV4::Spreadsheet::Representation
|
124
124
|
command.request_object = spreadsheet_object
|
125
125
|
command.response_representation = Google::Apis::SheetsV4::Spreadsheet::Representation
|
126
126
|
command.response_class = Google::Apis::SheetsV4::Spreadsheet
|
127
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
128
127
|
command.query['fields'] = fields unless fields.nil?
|
128
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
129
129
|
execute_or_queue_command(command, &block)
|
130
130
|
end
|
131
131
|
|
@@ -148,11 +148,11 @@ module Google
|
|
148
148
|
# @param [String] spreadsheet_id
|
149
149
|
# The spreadsheet to apply the updates to.
|
150
150
|
# @param [Google::Apis::SheetsV4::BatchUpdateSpreadsheetRequest] batch_update_spreadsheet_request_object
|
151
|
+
# @param [String] fields
|
152
|
+
# Selector specifying which fields to include in a partial response.
|
151
153
|
# @param [String] quota_user
|
152
154
|
# Available to use for quota purposes for server-side applications. Can be any
|
153
155
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
154
|
-
# @param [String] fields
|
155
|
-
# Selector specifying which fields to include in a partial response.
|
156
156
|
# @param [Google::Apis::RequestOptions] options
|
157
157
|
# Request-specific options
|
158
158
|
#
|
@@ -165,52 +165,15 @@ module Google
|
|
165
165
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
166
166
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
167
167
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
168
|
-
def batch_update_spreadsheet(spreadsheet_id, batch_update_spreadsheet_request_object = nil,
|
168
|
+
def batch_update_spreadsheet(spreadsheet_id, batch_update_spreadsheet_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
169
169
|
command = make_simple_command(:post, 'v4/spreadsheets/{spreadsheetId}:batchUpdate', options)
|
170
170
|
command.request_representation = Google::Apis::SheetsV4::BatchUpdateSpreadsheetRequest::Representation
|
171
171
|
command.request_object = batch_update_spreadsheet_request_object
|
172
172
|
command.response_representation = Google::Apis::SheetsV4::BatchUpdateSpreadsheetResponse::Representation
|
173
173
|
command.response_class = Google::Apis::SheetsV4::BatchUpdateSpreadsheetResponse
|
174
174
|
command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
|
175
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
176
175
|
command.query['fields'] = fields unless fields.nil?
|
177
|
-
execute_or_queue_command(command, &block)
|
178
|
-
end
|
179
|
-
|
180
|
-
# Copies a single sheet from a spreadsheet to another spreadsheet.
|
181
|
-
# Returns the properties of the newly created sheet.
|
182
|
-
# @param [String] spreadsheet_id
|
183
|
-
# The ID of the spreadsheet containing the sheet to copy.
|
184
|
-
# @param [Fixnum] sheet_id
|
185
|
-
# The ID of the sheet to copy.
|
186
|
-
# @param [Google::Apis::SheetsV4::CopySheetToAnotherSpreadsheetRequest] copy_sheet_to_another_spreadsheet_request_object
|
187
|
-
# @param [String] quota_user
|
188
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
189
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
190
|
-
# @param [String] fields
|
191
|
-
# Selector specifying which fields to include in a partial response.
|
192
|
-
# @param [Google::Apis::RequestOptions] options
|
193
|
-
# Request-specific options
|
194
|
-
#
|
195
|
-
# @yield [result, err] Result & error if block supplied
|
196
|
-
# @yieldparam result [Google::Apis::SheetsV4::SheetProperties] parsed result object
|
197
|
-
# @yieldparam err [StandardError] error object if request failed
|
198
|
-
#
|
199
|
-
# @return [Google::Apis::SheetsV4::SheetProperties]
|
200
|
-
#
|
201
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
202
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
203
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
204
|
-
def copy_spreadsheet_sheet_to(spreadsheet_id, sheet_id, copy_sheet_to_another_spreadsheet_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
205
|
-
command = make_simple_command(:post, 'v4/spreadsheets/{spreadsheetId}/sheets/{sheetId}:copyTo', options)
|
206
|
-
command.request_representation = Google::Apis::SheetsV4::CopySheetToAnotherSpreadsheetRequest::Representation
|
207
|
-
command.request_object = copy_sheet_to_another_spreadsheet_request_object
|
208
|
-
command.response_representation = Google::Apis::SheetsV4::SheetProperties::Representation
|
209
|
-
command.response_class = Google::Apis::SheetsV4::SheetProperties
|
210
|
-
command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
|
211
|
-
command.params['sheetId'] = sheet_id unless sheet_id.nil?
|
212
176
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
213
|
-
command.query['fields'] = fields unless fields.nil?
|
214
177
|
execute_or_queue_command(command, &block)
|
215
178
|
end
|
216
179
|
|
@@ -223,11 +186,11 @@ module Google
|
|
223
186
|
# @param [String] range
|
224
187
|
# The A1 notation of the values to clear.
|
225
188
|
# @param [Google::Apis::SheetsV4::ClearValuesRequest] clear_values_request_object
|
189
|
+
# @param [String] fields
|
190
|
+
# Selector specifying which fields to include in a partial response.
|
226
191
|
# @param [String] quota_user
|
227
192
|
# Available to use for quota purposes for server-side applications. Can be any
|
228
193
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
229
|
-
# @param [String] fields
|
230
|
-
# Selector specifying which fields to include in a partial response.
|
231
194
|
# @param [Google::Apis::RequestOptions] options
|
232
195
|
# Request-specific options
|
233
196
|
#
|
@@ -240,7 +203,7 @@ module Google
|
|
240
203
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
241
204
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
242
205
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
243
|
-
def clear_values(spreadsheet_id, range, clear_values_request_object = nil,
|
206
|
+
def clear_values(spreadsheet_id, range, clear_values_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
244
207
|
command = make_simple_command(:post, 'v4/spreadsheets/{spreadsheetId}/values/{range}:clear', options)
|
245
208
|
command.request_representation = Google::Apis::SheetsV4::ClearValuesRequest::Representation
|
246
209
|
command.request_object = clear_values_request_object
|
@@ -248,8 +211,8 @@ module Google
|
|
248
211
|
command.response_class = Google::Apis::SheetsV4::ClearValuesResponse
|
249
212
|
command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
|
250
213
|
command.params['range'] = range unless range.nil?
|
251
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
252
214
|
command.query['fields'] = fields unless fields.nil?
|
215
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
253
216
|
execute_or_queue_command(command, &block)
|
254
217
|
end
|
255
218
|
|
@@ -274,11 +237,11 @@ module Google
|
|
274
237
|
# This is ignored if value_render_option is
|
275
238
|
# FORMATTED_VALUE.
|
276
239
|
# The default dateTime render option is [DateTimeRenderOption.SERIAL_NUMBER].
|
240
|
+
# @param [String] fields
|
241
|
+
# Selector specifying which fields to include in a partial response.
|
277
242
|
# @param [String] quota_user
|
278
243
|
# Available to use for quota purposes for server-side applications. Can be any
|
279
244
|
# 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
245
|
# @param [Google::Apis::RequestOptions] options
|
283
246
|
# Request-specific options
|
284
247
|
#
|
@@ -291,7 +254,7 @@ module Google
|
|
291
254
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
292
255
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
293
256
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
294
|
-
def
|
257
|
+
def batch_get_spreadsheet_values(spreadsheet_id, ranges: nil, major_dimension: nil, value_render_option: nil, date_time_render_option: nil, fields: nil, quota_user: nil, options: nil, &block)
|
295
258
|
command = make_simple_command(:get, 'v4/spreadsheets/{spreadsheetId}/values:batchGet', options)
|
296
259
|
command.response_representation = Google::Apis::SheetsV4::BatchGetValuesResponse::Representation
|
297
260
|
command.response_class = Google::Apis::SheetsV4::BatchGetValuesResponse
|
@@ -300,8 +263,8 @@ module Google
|
|
300
263
|
command.query['majorDimension'] = major_dimension unless major_dimension.nil?
|
301
264
|
command.query['valueRenderOption'] = value_render_option unless value_render_option.nil?
|
302
265
|
command.query['dateTimeRenderOption'] = date_time_render_option unless date_time_render_option.nil?
|
303
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
304
266
|
command.query['fields'] = fields unless fields.nil?
|
267
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
305
268
|
execute_or_queue_command(command, &block)
|
306
269
|
end
|
307
270
|
|
@@ -324,10 +287,6 @@ module Google
|
|
324
287
|
# The A1 notation of a range to search for a logical table of data.
|
325
288
|
# Values will be appended after the last row of the table.
|
326
289
|
# @param [Google::Apis::SheetsV4::ValueRange] value_range_object
|
327
|
-
# @param [Boolean] include_values_in_response
|
328
|
-
# Determines if the update response should include the values
|
329
|
-
# of the cells that were appended. By default, responses
|
330
|
-
# do not include the updated values.
|
331
290
|
# @param [String] response_value_render_option
|
332
291
|
# Determines how values in the response should be rendered.
|
333
292
|
# The default render option is ValueRenderOption.FORMATTED_VALUE.
|
@@ -340,11 +299,15 @@ module Google
|
|
340
299
|
# rendered. This is ignored if response_value_render_option is
|
341
300
|
# FORMATTED_VALUE.
|
342
301
|
# The default dateTime render option is [DateTimeRenderOption.SERIAL_NUMBER].
|
302
|
+
# @param [Boolean] include_values_in_response
|
303
|
+
# Determines if the update response should include the values
|
304
|
+
# of the cells that were appended. By default, responses
|
305
|
+
# do not include the updated values.
|
306
|
+
# @param [String] fields
|
307
|
+
# Selector specifying which fields to include in a partial response.
|
343
308
|
# @param [String] quota_user
|
344
309
|
# Available to use for quota purposes for server-side applications. Can be any
|
345
310
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
346
|
-
# @param [String] fields
|
347
|
-
# Selector specifying which fields to include in a partial response.
|
348
311
|
# @param [Google::Apis::RequestOptions] options
|
349
312
|
# Request-specific options
|
350
313
|
#
|
@@ -357,7 +320,7 @@ module Google
|
|
357
320
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
358
321
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
359
322
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
360
|
-
def append_spreadsheet_value(spreadsheet_id, range, value_range_object = nil,
|
323
|
+
def append_spreadsheet_value(spreadsheet_id, range, value_range_object = nil, response_value_render_option: nil, insert_data_option: nil, value_input_option: nil, response_date_time_render_option: nil, include_values_in_response: nil, fields: nil, quota_user: nil, options: nil, &block)
|
361
324
|
command = make_simple_command(:post, 'v4/spreadsheets/{spreadsheetId}/values/{range}:append', options)
|
362
325
|
command.request_representation = Google::Apis::SheetsV4::ValueRange::Representation
|
363
326
|
command.request_object = value_range_object
|
@@ -365,13 +328,13 @@ module Google
|
|
365
328
|
command.response_class = Google::Apis::SheetsV4::AppendValuesResponse
|
366
329
|
command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
|
367
330
|
command.params['range'] = range unless range.nil?
|
368
|
-
command.query['includeValuesInResponse'] = include_values_in_response unless include_values_in_response.nil?
|
369
331
|
command.query['responseValueRenderOption'] = response_value_render_option unless response_value_render_option.nil?
|
370
332
|
command.query['insertDataOption'] = insert_data_option unless insert_data_option.nil?
|
371
333
|
command.query['valueInputOption'] = value_input_option unless value_input_option.nil?
|
372
334
|
command.query['responseDateTimeRenderOption'] = response_date_time_render_option unless response_date_time_render_option.nil?
|
373
|
-
command.query['
|
335
|
+
command.query['includeValuesInResponse'] = include_values_in_response unless include_values_in_response.nil?
|
374
336
|
command.query['fields'] = fields unless fields.nil?
|
337
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
375
338
|
execute_or_queue_command(command, &block)
|
376
339
|
end
|
377
340
|
|
@@ -382,11 +345,11 @@ module Google
|
|
382
345
|
# @param [String] spreadsheet_id
|
383
346
|
# The ID of the spreadsheet to update.
|
384
347
|
# @param [Google::Apis::SheetsV4::BatchClearValuesRequest] batch_clear_values_request_object
|
348
|
+
# @param [String] fields
|
349
|
+
# Selector specifying which fields to include in a partial response.
|
385
350
|
# @param [String] quota_user
|
386
351
|
# Available to use for quota purposes for server-side applications. Can be any
|
387
352
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
388
|
-
# @param [String] fields
|
389
|
-
# Selector specifying which fields to include in a partial response.
|
390
353
|
# @param [Google::Apis::RequestOptions] options
|
391
354
|
# Request-specific options
|
392
355
|
#
|
@@ -399,15 +362,15 @@ module Google
|
|
399
362
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
400
363
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
401
364
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
402
|
-
def batch_clear_values(spreadsheet_id, batch_clear_values_request_object = nil,
|
365
|
+
def batch_clear_values(spreadsheet_id, batch_clear_values_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
403
366
|
command = make_simple_command(:post, 'v4/spreadsheets/{spreadsheetId}/values:batchClear', options)
|
404
367
|
command.request_representation = Google::Apis::SheetsV4::BatchClearValuesRequest::Representation
|
405
368
|
command.request_object = batch_clear_values_request_object
|
406
369
|
command.response_representation = Google::Apis::SheetsV4::BatchClearValuesResponse::Representation
|
407
370
|
command.response_class = Google::Apis::SheetsV4::BatchClearValuesResponse
|
408
371
|
command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
|
409
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
410
372
|
command.query['fields'] = fields unless fields.nil?
|
373
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
411
374
|
execute_or_queue_command(command, &block)
|
412
375
|
end
|
413
376
|
|
@@ -432,11 +395,11 @@ module Google
|
|
432
395
|
# This is ignored if value_render_option is
|
433
396
|
# FORMATTED_VALUE.
|
434
397
|
# The default dateTime render option is [DateTimeRenderOption.SERIAL_NUMBER].
|
398
|
+
# @param [String] fields
|
399
|
+
# Selector specifying which fields to include in a partial response.
|
435
400
|
# @param [String] quota_user
|
436
401
|
# Available to use for quota purposes for server-side applications. Can be any
|
437
402
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
438
|
-
# @param [String] fields
|
439
|
-
# Selector specifying which fields to include in a partial response.
|
440
403
|
# @param [Google::Apis::RequestOptions] options
|
441
404
|
# Request-specific options
|
442
405
|
#
|
@@ -449,7 +412,7 @@ module Google
|
|
449
412
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
450
413
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
451
414
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
452
|
-
def
|
415
|
+
def get_spreadsheet_values(spreadsheet_id, range, major_dimension: nil, value_render_option: nil, date_time_render_option: nil, fields: nil, quota_user: nil, options: nil, &block)
|
453
416
|
command = make_simple_command(:get, 'v4/spreadsheets/{spreadsheetId}/values/{range}', options)
|
454
417
|
command.response_representation = Google::Apis::SheetsV4::ValueRange::Representation
|
455
418
|
command.response_class = Google::Apis::SheetsV4::ValueRange
|
@@ -458,8 +421,8 @@ module Google
|
|
458
421
|
command.query['majorDimension'] = major_dimension unless major_dimension.nil?
|
459
422
|
command.query['valueRenderOption'] = value_render_option unless value_render_option.nil?
|
460
423
|
command.query['dateTimeRenderOption'] = date_time_render_option unless date_time_render_option.nil?
|
461
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
462
424
|
command.query['fields'] = fields unless fields.nil?
|
425
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
463
426
|
execute_or_queue_command(command, &block)
|
464
427
|
end
|
465
428
|
|
@@ -488,11 +451,11 @@ module Google
|
|
488
451
|
# If the range to write was larger than than the range actually written,
|
489
452
|
# the response will include all values in the requested range (excluding
|
490
453
|
# trailing empty rows and columns).
|
454
|
+
# @param [String] fields
|
455
|
+
# Selector specifying which fields to include in a partial response.
|
491
456
|
# @param [String] quota_user
|
492
457
|
# Available to use for quota purposes for server-side applications. Can be any
|
493
458
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
494
|
-
# @param [String] fields
|
495
|
-
# Selector specifying which fields to include in a partial response.
|
496
459
|
# @param [Google::Apis::RequestOptions] options
|
497
460
|
# Request-specific options
|
498
461
|
#
|
@@ -505,7 +468,7 @@ module Google
|
|
505
468
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
506
469
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
507
470
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
508
|
-
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,
|
471
|
+
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, fields: nil, quota_user: nil, options: nil, &block)
|
509
472
|
command = make_simple_command(:put, 'v4/spreadsheets/{spreadsheetId}/values/{range}', options)
|
510
473
|
command.request_representation = Google::Apis::SheetsV4::ValueRange::Representation
|
511
474
|
command.request_object = value_range_object
|
@@ -517,8 +480,8 @@ module Google
|
|
517
480
|
command.query['valueInputOption'] = value_input_option unless value_input_option.nil?
|
518
481
|
command.query['responseDateTimeRenderOption'] = response_date_time_render_option unless response_date_time_render_option.nil?
|
519
482
|
command.query['includeValuesInResponse'] = include_values_in_response unless include_values_in_response.nil?
|
520
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
521
483
|
command.query['fields'] = fields unless fields.nil?
|
484
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
522
485
|
execute_or_queue_command(command, &block)
|
523
486
|
end
|
524
487
|
|
@@ -529,11 +492,11 @@ module Google
|
|
529
492
|
# @param [String] spreadsheet_id
|
530
493
|
# The ID of the spreadsheet to update.
|
531
494
|
# @param [Google::Apis::SheetsV4::BatchUpdateValuesRequest] batch_update_values_request_object
|
495
|
+
# @param [String] fields
|
496
|
+
# Selector specifying which fields to include in a partial response.
|
532
497
|
# @param [String] quota_user
|
533
498
|
# Available to use for quota purposes for server-side applications. Can be any
|
534
499
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
535
|
-
# @param [String] fields
|
536
|
-
# Selector specifying which fields to include in a partial response.
|
537
500
|
# @param [Google::Apis::RequestOptions] options
|
538
501
|
# Request-specific options
|
539
502
|
#
|
@@ -546,15 +509,52 @@ module Google
|
|
546
509
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
547
510
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
548
511
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
549
|
-
def batch_update_values(spreadsheet_id, batch_update_values_request_object = nil,
|
512
|
+
def batch_update_values(spreadsheet_id, batch_update_values_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
550
513
|
command = make_simple_command(:post, 'v4/spreadsheets/{spreadsheetId}/values:batchUpdate', options)
|
551
514
|
command.request_representation = Google::Apis::SheetsV4::BatchUpdateValuesRequest::Representation
|
552
515
|
command.request_object = batch_update_values_request_object
|
553
516
|
command.response_representation = Google::Apis::SheetsV4::BatchUpdateValuesResponse::Representation
|
554
517
|
command.response_class = Google::Apis::SheetsV4::BatchUpdateValuesResponse
|
555
518
|
command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
|
519
|
+
command.query['fields'] = fields unless fields.nil?
|
556
520
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
521
|
+
execute_or_queue_command(command, &block)
|
522
|
+
end
|
523
|
+
|
524
|
+
# Copies a single sheet from a spreadsheet to another spreadsheet.
|
525
|
+
# Returns the properties of the newly created sheet.
|
526
|
+
# @param [String] spreadsheet_id
|
527
|
+
# The ID of the spreadsheet containing the sheet to copy.
|
528
|
+
# @param [Fixnum] sheet_id
|
529
|
+
# The ID of the sheet to copy.
|
530
|
+
# @param [Google::Apis::SheetsV4::CopySheetToAnotherSpreadsheetRequest] copy_sheet_to_another_spreadsheet_request_object
|
531
|
+
# @param [String] fields
|
532
|
+
# Selector specifying which fields to include in a partial response.
|
533
|
+
# @param [String] quota_user
|
534
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
535
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
536
|
+
# @param [Google::Apis::RequestOptions] options
|
537
|
+
# Request-specific options
|
538
|
+
#
|
539
|
+
# @yield [result, err] Result & error if block supplied
|
540
|
+
# @yieldparam result [Google::Apis::SheetsV4::SheetProperties] parsed result object
|
541
|
+
# @yieldparam err [StandardError] error object if request failed
|
542
|
+
#
|
543
|
+
# @return [Google::Apis::SheetsV4::SheetProperties]
|
544
|
+
#
|
545
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
546
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
547
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
548
|
+
def copy_spreadsheet(spreadsheet_id, sheet_id, copy_sheet_to_another_spreadsheet_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
549
|
+
command = make_simple_command(:post, 'v4/spreadsheets/{spreadsheetId}/sheets/{sheetId}:copyTo', options)
|
550
|
+
command.request_representation = Google::Apis::SheetsV4::CopySheetToAnotherSpreadsheetRequest::Representation
|
551
|
+
command.request_object = copy_sheet_to_another_spreadsheet_request_object
|
552
|
+
command.response_representation = Google::Apis::SheetsV4::SheetProperties::Representation
|
553
|
+
command.response_class = Google::Apis::SheetsV4::SheetProperties
|
554
|
+
command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
|
555
|
+
command.params['sheetId'] = sheet_id unless sheet_id.nil?
|
557
556
|
command.query['fields'] = fields unless fields.nil?
|
557
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
558
558
|
execute_or_queue_command(command, &block)
|
559
559
|
end
|
560
560
|
|
@@ -23,12 +23,12 @@ module Google
|
|
23
23
|
module SiteVerificationV1
|
24
24
|
|
25
25
|
#
|
26
|
-
class
|
26
|
+
class GetWebResourceTokenRequest
|
27
27
|
include Google::Apis::Core::Hashable
|
28
28
|
|
29
29
|
# The site for which a verification token will be generated.
|
30
30
|
# Corresponds to the JSON property `site`
|
31
|
-
# @return [Google::Apis::SiteVerificationV1::
|
31
|
+
# @return [Google::Apis::SiteVerificationV1::GetWebResourceTokenRequest::Site]
|
32
32
|
attr_accessor :site
|
33
33
|
|
34
34
|
# The verification method that will be used to verify this site. For sites, '
|
@@ -75,7 +75,7 @@ module Google
|
|
75
75
|
end
|
76
76
|
|
77
77
|
#
|
78
|
-
class
|
78
|
+
class GetWebResourceTokenResponse
|
79
79
|
include Google::Apis::Core::Hashable
|
80
80
|
|
81
81
|
# The verification method to use in conjunction with this token. For FILE, the
|
@@ -85,7 +85,7 @@ module Google
|
|
85
85
|
# placed in a TXT record of the domain.
|
86
86
|
# Corresponds to the JSON property `method`
|
87
87
|
# @return [String]
|
88
|
-
attr_accessor :
|
88
|
+
attr_accessor :verification_method
|
89
89
|
|
90
90
|
# The verification token. The token must be placed appropriately in order for
|
91
91
|
# verification to succeed.
|
@@ -99,13 +99,13 @@ module Google
|
|
99
99
|
|
100
100
|
# Update properties of this object
|
101
101
|
def update!(**args)
|
102
|
-
@
|
102
|
+
@verification_method = args[:verification_method] if args.key?(:verification_method)
|
103
103
|
@token = args[:token] if args.key?(:token)
|
104
104
|
end
|
105
105
|
end
|
106
106
|
|
107
107
|
#
|
108
|
-
class
|
108
|
+
class ListWebResourceResponse
|
109
109
|
include Google::Apis::Core::Hashable
|
110
110
|
|
111
111
|
# The list of sites that are owned by the authenticated user.
|
@@ -22,7 +22,7 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module SiteVerificationV1
|
24
24
|
|
25
|
-
class
|
25
|
+
class GetWebResourceTokenRequest
|
26
26
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
27
|
|
28
28
|
class Site
|
@@ -34,13 +34,13 @@ module Google
|
|
34
34
|
include Google::Apis::Core::JsonObjectSupport
|
35
35
|
end
|
36
36
|
|
37
|
-
class
|
37
|
+
class GetWebResourceTokenResponse
|
38
38
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
39
|
|
40
40
|
include Google::Apis::Core::JsonObjectSupport
|
41
41
|
end
|
42
42
|
|
43
|
-
class
|
43
|
+
class ListWebResourceResponse
|
44
44
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
45
45
|
|
46
46
|
include Google::Apis::Core::JsonObjectSupport
|
@@ -58,10 +58,10 @@ module Google
|
|
58
58
|
include Google::Apis::Core::JsonObjectSupport
|
59
59
|
end
|
60
60
|
|
61
|
-
class
|
61
|
+
class GetWebResourceTokenRequest
|
62
62
|
# @private
|
63
63
|
class Representation < Google::Apis::Core::JsonRepresentation
|
64
|
-
property :site, as: 'site', class: Google::Apis::SiteVerificationV1::
|
64
|
+
property :site, as: 'site', class: Google::Apis::SiteVerificationV1::GetWebResourceTokenRequest::Site, decorator: Google::Apis::SiteVerificationV1::GetWebResourceTokenRequest::Site::Representation
|
65
65
|
|
66
66
|
property :verification_method, as: 'verificationMethod'
|
67
67
|
end
|
@@ -75,15 +75,15 @@ module Google
|
|
75
75
|
end
|
76
76
|
end
|
77
77
|
|
78
|
-
class
|
78
|
+
class GetWebResourceTokenResponse
|
79
79
|
# @private
|
80
80
|
class Representation < Google::Apis::Core::JsonRepresentation
|
81
|
-
property :
|
81
|
+
property :verification_method, as: 'method'
|
82
82
|
property :token, as: 'token'
|
83
83
|
end
|
84
84
|
end
|
85
85
|
|
86
|
-
class
|
86
|
+
class ListWebResourceResponse
|
87
87
|
# @private
|
88
88
|
class Representation < Google::Apis::Core::JsonRepresentation
|
89
89
|
collection :items, as: 'items', class: Google::Apis::SiteVerificationV1::SiteVerificationWebResourceResource, decorator: Google::Apis::SiteVerificationV1::SiteVerificationWebResourceResource::Representation
|