google-api-client 0.11.2 → 0.11.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -1
- data/README.md +6 -0
- data/api_names.yaml +1 -0
- data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +38 -38
- data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +13 -13
- data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +10 -10
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +201 -201
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +46 -46
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +119 -119
- data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +52 -9
- data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +9 -0
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/analyticsreporting_v4/classes.rb +926 -926
- data/generated/google/apis/analyticsreporting_v4/representations.rb +149 -149
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +18 -11
- data/generated/google/apis/androidenterprise_v1/representations.rb +1 -0
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/appengine_v1.rb +1 -1
- data/generated/google/apis/appengine_v1/classes.rb +1487 -1487
- data/generated/google/apis/appengine_v1/representations.rb +229 -229
- data/generated/google/apis/appengine_v1/service.rb +188 -188
- 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 +15 -10
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/calendar_v3/service.rb +10 -4
- data/generated/google/apis/classroom_v1.rb +26 -17
- data/generated/google/apis/classroom_v1/classes.rb +990 -990
- data/generated/google/apis/classroom_v1/representations.rb +239 -239
- data/generated/google/apis/classroom_v1/service.rb +853 -853
- data/generated/google/apis/cloudbilling_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +627 -627
- data/generated/google/apis/cloudbuild_v1/representations.rb +116 -116
- data/generated/google/apis/cloudbuild_v1/service.rb +162 -157
- data/generated/google/apis/clouddebugger_v2/classes.rb +258 -258
- data/generated/google/apis/clouddebugger_v2/representations.rb +80 -80
- data/generated/google/apis/clouddebugger_v2/service.rb +163 -163
- data/generated/google/apis/clouderrorreporting_v1beta1.rb +3 -4
- data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +202 -167
- data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +53 -37
- data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +50 -51
- data/generated/google/apis/cloudfunctions_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1/classes.rb +628 -622
- data/generated/google/apis/cloudkms_v1/representations.rb +134 -133
- data/generated/google/apis/cloudkms_v1/service.rb +190 -190
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +835 -835
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +138 -138
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +474 -474
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +386 -386
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +75 -75
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +64 -64
- data/generated/google/apis/cloudtrace_v1.rb +4 -4
- data/generated/google/apis/cloudtrace_v1/classes.rb +114 -114
- data/generated/google/apis/cloudtrace_v1/representations.rb +23 -23
- data/generated/google/apis/cloudtrace_v1/service.rb +14 -14
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +66 -25
- data/generated/google/apis/compute_beta/representations.rb +16 -0
- data/generated/google/apis/compute_beta/service.rb +85 -3
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +375 -24
- data/generated/google/apis/compute_v1/representations.rb +155 -0
- data/generated/google/apis/compute_v1/service.rb +481 -3
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +301 -301
- data/generated/google/apis/container_v1/representations.rb +59 -59
- data/generated/google/apis/container_v1/service.rb +178 -178
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +37 -2
- data/generated/google/apis/content_v2/representations.rb +15 -0
- data/generated/google/apis/content_v2/service.rb +58 -3
- data/generated/google/apis/dataflow_v1b3.rb +4 -1
- data/generated/google/apis/dataflow_v1b3/classes.rb +3514 -3279
- data/generated/google/apis/dataflow_v1b3/representations.rb +530 -440
- data/generated/google/apis/dataflow_v1b3/service.rb +378 -137
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +446 -446
- data/generated/google/apis/dataproc_v1/representations.rb +96 -96
- data/generated/google/apis/dataproc_v1/service.rb +302 -302
- data/generated/google/apis/datastore_v1.rb +1 -1
- data/generated/google/apis/datastore_v1/classes.rb +370 -374
- data/generated/google/apis/datastore_v1/representations.rb +120 -120
- data/generated/google/apis/datastore_v1/service.rb +62 -62
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v2beta1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1.rb +3 -0
- 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 +24 -21
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/classes.rb +24 -22
- data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
- data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +148 -149
- data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +42 -42
- data/generated/google/apis/firebaserules_v1/classes.rb +71 -71
- data/generated/google/apis/firebaserules_v1/representations.rb +22 -22
- data/generated/google/apis/firebaserules_v1/service.rb +68 -68
- 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 +1 -1
- data/generated/google/apis/genomics_v1/classes.rb +2348 -2348
- data/generated/google/apis/genomics_v1/representations.rb +430 -430
- data/generated/google/apis/genomics_v1/service.rb +1159 -1159
- data/generated/google/apis/gmail_v1.rb +1 -1
- data/generated/google/apis/gmail_v1/service.rb +2 -2
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +305 -298
- data/generated/google/apis/iam_v1/representations.rb +97 -96
- data/generated/google/apis/iam_v1/service.rb +86 -86
- data/generated/google/apis/kgsearch_v1/classes.rb +6 -6
- data/generated/google/apis/kgsearch_v1/representations.rb +1 -1
- data/generated/google/apis/kgsearch_v1/service.rb +10 -10
- data/generated/google/apis/language_v1.rb +4 -4
- data/generated/google/apis/language_v1/classes.rb +452 -452
- data/generated/google/apis/language_v1/representations.rb +93 -93
- data/generated/google/apis/language_v1/service.rb +48 -48
- data/generated/google/apis/language_v1beta1.rb +4 -4
- data/generated/google/apis/language_v1beta1/classes.rb +84 -84
- data/generated/google/apis/language_v1beta1/representations.rb +22 -22
- data/generated/google/apis/language_v1beta1/service.rb +3 -3
- data/generated/google/apis/logging_v2.rb +1 -1
- data/generated/google/apis/logging_v2/classes.rb +884 -873
- data/generated/google/apis/logging_v2/representations.rb +167 -166
- data/generated/google/apis/logging_v2/service.rb +430 -430
- data/generated/google/apis/logging_v2beta1.rb +1 -1
- data/generated/google/apis/logging_v2beta1/classes.rb +550 -539
- data/generated/google/apis/logging_v2beta1/representations.rb +124 -123
- data/generated/google/apis/logging_v2beta1/service.rb +292 -292
- data/generated/google/apis/manufacturers_v1/classes.rb +322 -322
- data/generated/google/apis/manufacturers_v1/representations.rb +66 -66
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +501 -494
- data/generated/google/apis/ml_v1/representations.rb +92 -91
- data/generated/google/apis/ml_v1/service.rb +190 -190
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +878 -878
- data/generated/google/apis/monitoring_v3/representations.rb +176 -176
- data/generated/google/apis/monitoring_v3/service.rb +223 -262
- data/generated/google/apis/oauth2_v2.rb +1 -1
- data/generated/google/apis/partners_v2.rb +1 -1
- data/generated/google/apis/partners_v2/classes.rb +1506 -1506
- data/generated/google/apis/partners_v2/representations.rb +370 -370
- data/generated/google/apis/partners_v2/service.rb +393 -393
- data/generated/google/apis/people_v1.rb +13 -13
- data/generated/google/apis/people_v1/classes.rb +597 -594
- data/generated/google/apis/people_v1/representations.rb +121 -121
- data/generated/google/apis/people_v1/service.rb +39 -48
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +323 -327
- data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +100 -100
- data/generated/google/apis/proximitybeacon_v1beta1/service.rb +184 -184
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1/classes.rb +178 -178
- data/generated/google/apis/pubsub_v1/representations.rb +55 -55
- data/generated/google/apis/pubsub_v1/service.rb +357 -357
- data/generated/google/apis/runtimeconfig_v1.rb +1 -1
- data/generated/google/apis/runtimeconfig_v1/classes.rb +20 -20
- data/generated/google/apis/runtimeconfig_v1/representations.rb +2 -2
- data/generated/google/apis/runtimeconfig_v1/service.rb +12 -7
- data/generated/google/apis/script_v1.rb +16 -16
- data/generated/google/apis/script_v1/classes.rb +113 -113
- data/generated/google/apis/script_v1/representations.rb +28 -28
- 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 +84 -84
- data/generated/google/apis/searchconsole_v1/representations.rb +32 -32
- data/generated/google/apis/searchconsole_v1/service.rb +6 -6
- data/generated/google/apis/servicecontrol_v1.rb +4 -4
- data/generated/google/apis/servicecontrol_v1/classes.rb +1146 -1145
- data/generated/google/apis/servicecontrol_v1/representations.rb +203 -203
- data/generated/google/apis/servicecontrol_v1/service.rb +57 -57
- data/generated/google/apis/servicemanagement_v1.rb +4 -4
- data/generated/google/apis/servicemanagement_v1/classes.rb +3486 -3360
- data/generated/google/apis/servicemanagement_v1/representations.rb +342 -329
- data/generated/google/apis/servicemanagement_v1/service.rb +260 -250
- data/generated/google/apis/serviceuser_v1.rb +1 -1
- data/generated/google/apis/serviceuser_v1/classes.rb +2716 -2596
- data/generated/google/apis/serviceuser_v1/representations.rb +391 -379
- data/generated/google/apis/serviceuser_v1/service.rb +16 -16
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/sheets_v4/classes.rb +4255 -4252
- data/generated/google/apis/sheets_v4/representations.rb +548 -548
- data/generated/google/apis/sheets_v4/service.rb +170 -170
- data/generated/google/apis/slides_v1.rb +4 -4
- data/generated/google/apis/slides_v1/classes.rb +2945 -2916
- data/generated/google/apis/slides_v1/representations.rb +700 -697
- data/generated/google/apis/slides_v1/service.rb +44 -44
- data/generated/google/apis/sourcerepo_v1.rb +2 -2
- data/generated/google/apis/sourcerepo_v1/classes.rb +419 -410
- data/generated/google/apis/sourcerepo_v1/representations.rb +88 -87
- data/generated/google/apis/sourcerepo_v1/service.rb +67 -58
- data/generated/google/apis/spanner_v1/classes.rb +2187 -2187
- data/generated/google/apis/spanner_v1/representations.rb +323 -323
- data/generated/google/apis/spanner_v1/service.rb +383 -383
- data/generated/google/apis/speech_v1beta1.rb +1 -1
- data/generated/google/apis/speech_v1beta1/classes.rb +226 -226
- data/generated/google/apis/speech_v1beta1/representations.rb +44 -44
- data/generated/google/apis/speech_v1beta1/service.rb +37 -32
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +10 -28
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +2 -16
- data/generated/google/apis/sqladmin_v1beta4/service.rb +1 -1
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +26 -0
- data/generated/google/apis/storage_v1/representations.rb +15 -0
- data/generated/google/apis/storage_v1/service.rb +168 -42
- data/generated/google/apis/storagetransfer_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1/classes.rb +218 -218
- data/generated/google/apis/storagetransfer_v1/representations.rb +47 -47
- data/generated/google/apis/storagetransfer_v1/service.rb +68 -68
- data/generated/google/apis/toolresults_v1beta3.rb +1 -1
- data/generated/google/apis/toolresults_v1beta3/classes.rb +7 -4
- data/generated/google/apis/toolresults_v1beta3/service.rb +9 -8
- data/generated/google/apis/translate_v2.rb +11 -4
- data/generated/google/apis/translate_v2/classes.rb +140 -37
- data/generated/google/apis/translate_v2/representations.rb +62 -15
- data/generated/google/apis/translate_v2/service.rb +119 -66
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +1265 -1273
- data/generated/google/apis/vision_v1/representations.rb +202 -202
- data/generated/google/apis/vision_v1/service.rb +4 -4
- data/generated/google/apis/webmasters_v3.rb +1 -1
- 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 +2 -1
- data/generated/google/apis/youtubereporting_v1.rb +1 -1
- data/generated/google/apis/youtubereporting_v1/classes.rb +91 -91
- data/generated/google/apis/youtubereporting_v1/representations.rb +25 -25
- data/generated/google/apis/youtubereporting_v1/service.rb +94 -94
- data/lib/google/apis/core/api_command.rb +43 -10
- data/lib/google/apis/core/json_representation.rb +1 -1
- data/lib/google/apis/options.rb +6 -2
- data/lib/google/apis/version.rb +1 -1
- metadata +3 -3
|
@@ -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,15 +165,143 @@ 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['fields'] = fields unless fields.nil?
|
|
175
176
|
command.query['quotaUser'] = quota_user unless quota_user.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] fields
|
|
188
|
+
# Selector specifying which fields to include in a partial response.
|
|
189
|
+
# @param [String] quota_user
|
|
190
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
191
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
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(spreadsheet_id, sheet_id, copy_sheet_to_another_spreadsheet_request_object = nil, fields: nil, quota_user: 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?
|
|
176
212
|
command.query['fields'] = fields unless fields.nil?
|
|
213
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
214
|
+
execute_or_queue_command(command, &block)
|
|
215
|
+
end
|
|
216
|
+
|
|
217
|
+
# Clears values from a spreadsheet.
|
|
218
|
+
# The caller must specify the spreadsheet ID and range.
|
|
219
|
+
# Only values are cleared -- all other properties of the cell (such as
|
|
220
|
+
# formatting, data validation, etc..) are kept.
|
|
221
|
+
# @param [String] spreadsheet_id
|
|
222
|
+
# The ID of the spreadsheet to update.
|
|
223
|
+
# @param [String] range
|
|
224
|
+
# The A1 notation of the values to clear.
|
|
225
|
+
# @param [Google::Apis::SheetsV4::ClearValuesRequest] clear_values_request_object
|
|
226
|
+
# @param [String] fields
|
|
227
|
+
# Selector specifying which fields to include in a partial response.
|
|
228
|
+
# @param [String] quota_user
|
|
229
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
230
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
231
|
+
# @param [Google::Apis::RequestOptions] options
|
|
232
|
+
# Request-specific options
|
|
233
|
+
#
|
|
234
|
+
# @yield [result, err] Result & error if block supplied
|
|
235
|
+
# @yieldparam result [Google::Apis::SheetsV4::ClearValuesResponse] parsed result object
|
|
236
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
237
|
+
#
|
|
238
|
+
# @return [Google::Apis::SheetsV4::ClearValuesResponse]
|
|
239
|
+
#
|
|
240
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
241
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
242
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
243
|
+
def clear_values(spreadsheet_id, range, clear_values_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
244
|
+
command = make_simple_command(:post, 'v4/spreadsheets/{spreadsheetId}/values/{range}:clear', options)
|
|
245
|
+
command.request_representation = Google::Apis::SheetsV4::ClearValuesRequest::Representation
|
|
246
|
+
command.request_object = clear_values_request_object
|
|
247
|
+
command.response_representation = Google::Apis::SheetsV4::ClearValuesResponse::Representation
|
|
248
|
+
command.response_class = Google::Apis::SheetsV4::ClearValuesResponse
|
|
249
|
+
command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
|
|
250
|
+
command.params['range'] = range unless range.nil?
|
|
251
|
+
command.query['fields'] = fields unless fields.nil?
|
|
252
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
253
|
+
execute_or_queue_command(command, &block)
|
|
254
|
+
end
|
|
255
|
+
|
|
256
|
+
# Returns one or more ranges of values from a spreadsheet.
|
|
257
|
+
# The caller must specify the spreadsheet ID and one or more ranges.
|
|
258
|
+
# @param [String] spreadsheet_id
|
|
259
|
+
# The ID of the spreadsheet to retrieve data from.
|
|
260
|
+
# @param [Array<String>, String] ranges
|
|
261
|
+
# The A1 notation of the values to retrieve.
|
|
262
|
+
# @param [String] major_dimension
|
|
263
|
+
# The major dimension that results should use.
|
|
264
|
+
# For example, if the spreadsheet data is: `A1=1,B1=2,A2=3,B2=4`,
|
|
265
|
+
# then requesting `range=A1:B2,majorDimension=ROWS` will return
|
|
266
|
+
# `[[1,2],[3,4]]`,
|
|
267
|
+
# whereas requesting `range=A1:B2,majorDimension=COLUMNS` will return
|
|
268
|
+
# `[[1,3],[2,4]]`.
|
|
269
|
+
# @param [String] value_render_option
|
|
270
|
+
# How values should be represented in the output.
|
|
271
|
+
# The default render option is ValueRenderOption.FORMATTED_VALUE.
|
|
272
|
+
# @param [String] date_time_render_option
|
|
273
|
+
# How dates, times, and durations should be represented in the output.
|
|
274
|
+
# This is ignored if value_render_option is
|
|
275
|
+
# FORMATTED_VALUE.
|
|
276
|
+
# The default dateTime render option is [DateTimeRenderOption.SERIAL_NUMBER].
|
|
277
|
+
# @param [String] fields
|
|
278
|
+
# Selector specifying which fields to include in a partial response.
|
|
279
|
+
# @param [String] quota_user
|
|
280
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
281
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
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::BatchGetValuesResponse] parsed result object
|
|
287
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
288
|
+
#
|
|
289
|
+
# @return [Google::Apis::SheetsV4::BatchGetValuesResponse]
|
|
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_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
|
+
command = make_simple_command(:get, 'v4/spreadsheets/{spreadsheetId}/values:batchGet', options)
|
|
296
|
+
command.response_representation = Google::Apis::SheetsV4::BatchGetValuesResponse::Representation
|
|
297
|
+
command.response_class = Google::Apis::SheetsV4::BatchGetValuesResponse
|
|
298
|
+
command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
|
|
299
|
+
command.query['ranges'] = ranges unless ranges.nil?
|
|
300
|
+
command.query['majorDimension'] = major_dimension unless major_dimension.nil?
|
|
301
|
+
command.query['valueRenderOption'] = value_render_option unless value_render_option.nil?
|
|
302
|
+
command.query['dateTimeRenderOption'] = date_time_render_option unless date_time_render_option.nil?
|
|
303
|
+
command.query['fields'] = fields unless fields.nil?
|
|
304
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
177
305
|
execute_or_queue_command(command, &block)
|
|
178
306
|
end
|
|
179
307
|
|
|
@@ -212,11 +340,11 @@ module Google
|
|
|
212
340
|
# Determines if the update response should include the values
|
|
213
341
|
# of the cells that were appended. By default, responses
|
|
214
342
|
# do not include the updated values.
|
|
343
|
+
# @param [String] fields
|
|
344
|
+
# Selector specifying which fields to include in a partial response.
|
|
215
345
|
# @param [String] quota_user
|
|
216
346
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
217
347
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
218
|
-
# @param [String] fields
|
|
219
|
-
# Selector specifying which fields to include in a partial response.
|
|
220
348
|
# @param [Google::Apis::RequestOptions] options
|
|
221
349
|
# Request-specific options
|
|
222
350
|
#
|
|
@@ -229,7 +357,7 @@ module Google
|
|
|
229
357
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
230
358
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
231
359
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
232
|
-
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,
|
|
360
|
+
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)
|
|
233
361
|
command = make_simple_command(:post, 'v4/spreadsheets/{spreadsheetId}/values/{range}:append', options)
|
|
234
362
|
command.request_representation = Google::Apis::SheetsV4::ValueRange::Representation
|
|
235
363
|
command.request_object = value_range_object
|
|
@@ -242,8 +370,8 @@ module Google
|
|
|
242
370
|
command.query['valueInputOption'] = value_input_option unless value_input_option.nil?
|
|
243
371
|
command.query['responseDateTimeRenderOption'] = response_date_time_render_option unless response_date_time_render_option.nil?
|
|
244
372
|
command.query['includeValuesInResponse'] = include_values_in_response unless include_values_in_response.nil?
|
|
245
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
246
373
|
command.query['fields'] = fields unless fields.nil?
|
|
374
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
247
375
|
execute_or_queue_command(command, &block)
|
|
248
376
|
end
|
|
249
377
|
|
|
@@ -254,11 +382,11 @@ module Google
|
|
|
254
382
|
# @param [String] spreadsheet_id
|
|
255
383
|
# The ID of the spreadsheet to update.
|
|
256
384
|
# @param [Google::Apis::SheetsV4::BatchClearValuesRequest] batch_clear_values_request_object
|
|
385
|
+
# @param [String] fields
|
|
386
|
+
# Selector specifying which fields to include in a partial response.
|
|
257
387
|
# @param [String] quota_user
|
|
258
388
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
259
389
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
260
|
-
# @param [String] fields
|
|
261
|
-
# Selector specifying which fields to include in a partial response.
|
|
262
390
|
# @param [Google::Apis::RequestOptions] options
|
|
263
391
|
# Request-specific options
|
|
264
392
|
#
|
|
@@ -271,15 +399,15 @@ module Google
|
|
|
271
399
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
272
400
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
273
401
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
274
|
-
def batch_clear_values(spreadsheet_id, batch_clear_values_request_object = nil,
|
|
402
|
+
def batch_clear_values(spreadsheet_id, batch_clear_values_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
275
403
|
command = make_simple_command(:post, 'v4/spreadsheets/{spreadsheetId}/values:batchClear', options)
|
|
276
404
|
command.request_representation = Google::Apis::SheetsV4::BatchClearValuesRequest::Representation
|
|
277
405
|
command.request_object = batch_clear_values_request_object
|
|
278
406
|
command.response_representation = Google::Apis::SheetsV4::BatchClearValuesResponse::Representation
|
|
279
407
|
command.response_class = Google::Apis::SheetsV4::BatchClearValuesResponse
|
|
280
408
|
command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
|
|
281
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
282
409
|
command.query['fields'] = fields unless fields.nil?
|
|
410
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
283
411
|
execute_or_queue_command(command, &block)
|
|
284
412
|
end
|
|
285
413
|
|
|
@@ -289,6 +417,13 @@ module Google
|
|
|
289
417
|
# The ID of the spreadsheet to retrieve data from.
|
|
290
418
|
# @param [String] range
|
|
291
419
|
# The A1 notation of the values to retrieve.
|
|
420
|
+
# @param [String] major_dimension
|
|
421
|
+
# The major dimension that results should use.
|
|
422
|
+
# For example, if the spreadsheet data is: `A1=1,B1=2,A2=3,B2=4`,
|
|
423
|
+
# then requesting `range=A1:B2,majorDimension=ROWS` will return
|
|
424
|
+
# `[[1,2],[3,4]]`,
|
|
425
|
+
# whereas requesting `range=A1:B2,majorDimension=COLUMNS` will return
|
|
426
|
+
# `[[1,3],[2,4]]`.
|
|
292
427
|
# @param [String] value_render_option
|
|
293
428
|
# How values should be represented in the output.
|
|
294
429
|
# The default render option is ValueRenderOption.FORMATTED_VALUE.
|
|
@@ -297,18 +432,11 @@ module Google
|
|
|
297
432
|
# This is ignored if value_render_option is
|
|
298
433
|
# FORMATTED_VALUE.
|
|
299
434
|
# The default dateTime render option is [DateTimeRenderOption.SERIAL_NUMBER].
|
|
300
|
-
# @param [String]
|
|
301
|
-
#
|
|
302
|
-
# For example, if the spreadsheet data is: `A1=1,B1=2,A2=3,B2=4`,
|
|
303
|
-
# then requesting `range=A1:B2,majorDimension=ROWS` will return
|
|
304
|
-
# `[[1,2],[3,4]]`,
|
|
305
|
-
# whereas requesting `range=A1:B2,majorDimension=COLUMNS` will return
|
|
306
|
-
# `[[1,3],[2,4]]`.
|
|
435
|
+
# @param [String] fields
|
|
436
|
+
# Selector specifying which fields to include in a partial response.
|
|
307
437
|
# @param [String] quota_user
|
|
308
438
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
309
439
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
310
|
-
# @param [String] fields
|
|
311
|
-
# Selector specifying which fields to include in a partial response.
|
|
312
440
|
# @param [Google::Apis::RequestOptions] options
|
|
313
441
|
# Request-specific options
|
|
314
442
|
#
|
|
@@ -321,17 +449,17 @@ module Google
|
|
|
321
449
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
322
450
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
323
451
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
324
|
-
def get_spreadsheet_values(spreadsheet_id, range,
|
|
452
|
+
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)
|
|
325
453
|
command = make_simple_command(:get, 'v4/spreadsheets/{spreadsheetId}/values/{range}', options)
|
|
326
454
|
command.response_representation = Google::Apis::SheetsV4::ValueRange::Representation
|
|
327
455
|
command.response_class = Google::Apis::SheetsV4::ValueRange
|
|
328
456
|
command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
|
|
329
457
|
command.params['range'] = range unless range.nil?
|
|
458
|
+
command.query['majorDimension'] = major_dimension unless major_dimension.nil?
|
|
330
459
|
command.query['valueRenderOption'] = value_render_option unless value_render_option.nil?
|
|
331
460
|
command.query['dateTimeRenderOption'] = date_time_render_option unless date_time_render_option.nil?
|
|
332
|
-
command.query['majorDimension'] = major_dimension unless major_dimension.nil?
|
|
333
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
334
461
|
command.query['fields'] = fields unless fields.nil?
|
|
462
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
335
463
|
execute_or_queue_command(command, &block)
|
|
336
464
|
end
|
|
337
465
|
|
|
@@ -343,6 +471,9 @@ module Google
|
|
|
343
471
|
# @param [String] range
|
|
344
472
|
# The A1 notation of the values to update.
|
|
345
473
|
# @param [Google::Apis::SheetsV4::ValueRange] value_range_object
|
|
474
|
+
# @param [String] response_value_render_option
|
|
475
|
+
# Determines how values in the response should be rendered.
|
|
476
|
+
# The default render option is ValueRenderOption.FORMATTED_VALUE.
|
|
346
477
|
# @param [String] value_input_option
|
|
347
478
|
# How the input data should be interpreted.
|
|
348
479
|
# @param [String] response_date_time_render_option
|
|
@@ -357,14 +488,11 @@ module Google
|
|
|
357
488
|
# If the range to write was larger than than the range actually written,
|
|
358
489
|
# the response will include all values in the requested range (excluding
|
|
359
490
|
# trailing empty rows and columns).
|
|
360
|
-
# @param [String]
|
|
361
|
-
#
|
|
362
|
-
# The default render option is ValueRenderOption.FORMATTED_VALUE.
|
|
491
|
+
# @param [String] fields
|
|
492
|
+
# Selector specifying which fields to include in a partial response.
|
|
363
493
|
# @param [String] quota_user
|
|
364
494
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
365
495
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
366
|
-
# @param [String] fields
|
|
367
|
-
# Selector specifying which fields to include in a partial response.
|
|
368
496
|
# @param [Google::Apis::RequestOptions] options
|
|
369
497
|
# Request-specific options
|
|
370
498
|
#
|
|
@@ -377,7 +505,7 @@ module Google
|
|
|
377
505
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
378
506
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
379
507
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
380
|
-
def update_spreadsheet_value(spreadsheet_id, range, value_range_object = nil,
|
|
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, fields: nil, quota_user: nil, options: nil, &block)
|
|
381
509
|
command = make_simple_command(:put, 'v4/spreadsheets/{spreadsheetId}/values/{range}', options)
|
|
382
510
|
command.request_representation = Google::Apis::SheetsV4::ValueRange::Representation
|
|
383
511
|
command.request_object = value_range_object
|
|
@@ -385,12 +513,12 @@ module Google
|
|
|
385
513
|
command.response_class = Google::Apis::SheetsV4::UpdateValuesResponse
|
|
386
514
|
command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
|
|
387
515
|
command.params['range'] = range unless range.nil?
|
|
516
|
+
command.query['responseValueRenderOption'] = response_value_render_option unless response_value_render_option.nil?
|
|
388
517
|
command.query['valueInputOption'] = value_input_option unless value_input_option.nil?
|
|
389
518
|
command.query['responseDateTimeRenderOption'] = response_date_time_render_option unless response_date_time_render_option.nil?
|
|
390
519
|
command.query['includeValuesInResponse'] = include_values_in_response unless include_values_in_response.nil?
|
|
391
|
-
command.query['responseValueRenderOption'] = response_value_render_option unless response_value_render_option.nil?
|
|
392
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
393
520
|
command.query['fields'] = fields unless fields.nil?
|
|
521
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
394
522
|
execute_or_queue_command(command, &block)
|
|
395
523
|
end
|
|
396
524
|
|
|
@@ -401,11 +529,11 @@ module Google
|
|
|
401
529
|
# @param [String] spreadsheet_id
|
|
402
530
|
# The ID of the spreadsheet to update.
|
|
403
531
|
# @param [Google::Apis::SheetsV4::BatchUpdateValuesRequest] batch_update_values_request_object
|
|
532
|
+
# @param [String] fields
|
|
533
|
+
# Selector specifying which fields to include in a partial response.
|
|
404
534
|
# @param [String] quota_user
|
|
405
535
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
406
536
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
407
|
-
# @param [String] fields
|
|
408
|
-
# Selector specifying which fields to include in a partial response.
|
|
409
537
|
# @param [Google::Apis::RequestOptions] options
|
|
410
538
|
# Request-specific options
|
|
411
539
|
#
|
|
@@ -418,143 +546,15 @@ module Google
|
|
|
418
546
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
419
547
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
420
548
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
421
|
-
def batch_update_values(spreadsheet_id, batch_update_values_request_object = nil,
|
|
549
|
+
def batch_update_values(spreadsheet_id, batch_update_values_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
422
550
|
command = make_simple_command(:post, 'v4/spreadsheets/{spreadsheetId}/values:batchUpdate', options)
|
|
423
551
|
command.request_representation = Google::Apis::SheetsV4::BatchUpdateValuesRequest::Representation
|
|
424
552
|
command.request_object = batch_update_values_request_object
|
|
425
553
|
command.response_representation = Google::Apis::SheetsV4::BatchUpdateValuesResponse::Representation
|
|
426
554
|
command.response_class = Google::Apis::SheetsV4::BatchUpdateValuesResponse
|
|
427
555
|
command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
|
|
428
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
429
556
|
command.query['fields'] = fields unless fields.nil?
|
|
430
|
-
execute_or_queue_command(command, &block)
|
|
431
|
-
end
|
|
432
|
-
|
|
433
|
-
# Clears values from a spreadsheet.
|
|
434
|
-
# The caller must specify the spreadsheet ID and range.
|
|
435
|
-
# Only values are cleared -- all other properties of the cell (such as
|
|
436
|
-
# formatting, data validation, etc..) are kept.
|
|
437
|
-
# @param [String] spreadsheet_id
|
|
438
|
-
# The ID of the spreadsheet to update.
|
|
439
|
-
# @param [String] range
|
|
440
|
-
# The A1 notation of the values to clear.
|
|
441
|
-
# @param [Google::Apis::SheetsV4::ClearValuesRequest] clear_values_request_object
|
|
442
|
-
# @param [String] quota_user
|
|
443
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
|
444
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
445
|
-
# @param [String] fields
|
|
446
|
-
# Selector specifying which fields to include in a partial response.
|
|
447
|
-
# @param [Google::Apis::RequestOptions] options
|
|
448
|
-
# Request-specific options
|
|
449
|
-
#
|
|
450
|
-
# @yield [result, err] Result & error if block supplied
|
|
451
|
-
# @yieldparam result [Google::Apis::SheetsV4::ClearValuesResponse] parsed result object
|
|
452
|
-
# @yieldparam err [StandardError] error object if request failed
|
|
453
|
-
#
|
|
454
|
-
# @return [Google::Apis::SheetsV4::ClearValuesResponse]
|
|
455
|
-
#
|
|
456
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
457
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
458
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
459
|
-
def clear_values(spreadsheet_id, range, clear_values_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
460
|
-
command = make_simple_command(:post, 'v4/spreadsheets/{spreadsheetId}/values/{range}:clear', options)
|
|
461
|
-
command.request_representation = Google::Apis::SheetsV4::ClearValuesRequest::Representation
|
|
462
|
-
command.request_object = clear_values_request_object
|
|
463
|
-
command.response_representation = Google::Apis::SheetsV4::ClearValuesResponse::Representation
|
|
464
|
-
command.response_class = Google::Apis::SheetsV4::ClearValuesResponse
|
|
465
|
-
command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
|
|
466
|
-
command.params['range'] = range unless range.nil?
|
|
467
557
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
468
|
-
command.query['fields'] = fields unless fields.nil?
|
|
469
|
-
execute_or_queue_command(command, &block)
|
|
470
|
-
end
|
|
471
|
-
|
|
472
|
-
# Returns one or more ranges of values from a spreadsheet.
|
|
473
|
-
# The caller must specify the spreadsheet ID and one or more ranges.
|
|
474
|
-
# @param [String] spreadsheet_id
|
|
475
|
-
# The ID of the spreadsheet to retrieve data from.
|
|
476
|
-
# @param [String] value_render_option
|
|
477
|
-
# How values should be represented in the output.
|
|
478
|
-
# The default render option is ValueRenderOption.FORMATTED_VALUE.
|
|
479
|
-
# @param [String] date_time_render_option
|
|
480
|
-
# How dates, times, and durations should be represented in the output.
|
|
481
|
-
# This is ignored if value_render_option is
|
|
482
|
-
# FORMATTED_VALUE.
|
|
483
|
-
# The default dateTime render option is [DateTimeRenderOption.SERIAL_NUMBER].
|
|
484
|
-
# @param [Array<String>, String] ranges
|
|
485
|
-
# The A1 notation of the values to retrieve.
|
|
486
|
-
# @param [String] major_dimension
|
|
487
|
-
# The major dimension that results should use.
|
|
488
|
-
# For example, if the spreadsheet data is: `A1=1,B1=2,A2=3,B2=4`,
|
|
489
|
-
# then requesting `range=A1:B2,majorDimension=ROWS` will return
|
|
490
|
-
# `[[1,2],[3,4]]`,
|
|
491
|
-
# whereas requesting `range=A1:B2,majorDimension=COLUMNS` will return
|
|
492
|
-
# `[[1,3],[2,4]]`.
|
|
493
|
-
# @param [String] quota_user
|
|
494
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
|
495
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
496
|
-
# @param [String] fields
|
|
497
|
-
# Selector specifying which fields to include in a partial response.
|
|
498
|
-
# @param [Google::Apis::RequestOptions] options
|
|
499
|
-
# Request-specific options
|
|
500
|
-
#
|
|
501
|
-
# @yield [result, err] Result & error if block supplied
|
|
502
|
-
# @yieldparam result [Google::Apis::SheetsV4::BatchGetValuesResponse] parsed result object
|
|
503
|
-
# @yieldparam err [StandardError] error object if request failed
|
|
504
|
-
#
|
|
505
|
-
# @return [Google::Apis::SheetsV4::BatchGetValuesResponse]
|
|
506
|
-
#
|
|
507
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
508
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
509
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
510
|
-
def batch_get_spreadsheet_values(spreadsheet_id, value_render_option: nil, date_time_render_option: nil, ranges: nil, major_dimension: nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
511
|
-
command = make_simple_command(:get, 'v4/spreadsheets/{spreadsheetId}/values:batchGet', options)
|
|
512
|
-
command.response_representation = Google::Apis::SheetsV4::BatchGetValuesResponse::Representation
|
|
513
|
-
command.response_class = Google::Apis::SheetsV4::BatchGetValuesResponse
|
|
514
|
-
command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
|
|
515
|
-
command.query['valueRenderOption'] = value_render_option unless value_render_option.nil?
|
|
516
|
-
command.query['dateTimeRenderOption'] = date_time_render_option unless date_time_render_option.nil?
|
|
517
|
-
command.query['ranges'] = ranges unless ranges.nil?
|
|
518
|
-
command.query['majorDimension'] = major_dimension unless major_dimension.nil?
|
|
519
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
520
|
-
command.query['fields'] = fields unless fields.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] quota_user
|
|
532
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
|
533
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
534
|
-
# @param [String] fields
|
|
535
|
-
# Selector specifying which fields to include in a partial response.
|
|
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, quota_user: nil, fields: 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?
|
|
556
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
557
|
-
command.query['fields'] = fields unless fields.nil?
|
|
558
558
|
execute_or_queue_command(command, &block)
|
|
559
559
|
end
|
|
560
560
|
|