google-api-client 0.10.1 → 0.10.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (176) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +3 -0
  3. data/api_names.yaml +395 -0
  4. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  5. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +254 -254
  6. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +65 -65
  7. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +220 -220
  8. data/generated/google/apis/admin_directory_v1.rb +1 -1
  9. data/generated/google/apis/admin_directory_v1/classes.rb +106 -0
  10. data/generated/google/apis/admin_directory_v1/representations.rb +37 -0
  11. data/generated/google/apis/admin_reports_v1.rb +3 -3
  12. data/generated/google/apis/admin_reports_v1/service.rb +6 -6
  13. data/generated/google/apis/adsense_v1_4.rb +1 -1
  14. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  15. data/generated/google/apis/analytics_v3.rb +1 -1
  16. data/generated/google/apis/analytics_v3/service.rb +39 -0
  17. data/generated/google/apis/analyticsreporting_v4/classes.rb +920 -920
  18. data/generated/google/apis/analyticsreporting_v4/representations.rb +197 -197
  19. data/generated/google/apis/analyticsreporting_v4/service.rb +4 -4
  20. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  21. data/generated/google/apis/androidenterprise_v1/classes.rb +8 -13
  22. data/generated/google/apis/androidenterprise_v1/service.rb +3 -3
  23. data/generated/google/apis/appengine_v1beta5.rb +1 -1
  24. data/generated/google/apis/appengine_v1beta5/classes.rb +115 -5
  25. data/generated/google/apis/appengine_v1beta5/representations.rb +37 -0
  26. data/generated/google/apis/appengine_v1beta5/service.rb +12 -9
  27. data/generated/google/apis/appstate_v1.rb +1 -1
  28. data/generated/google/apis/bigquery_v2.rb +1 -1
  29. data/generated/google/apis/bigquery_v2/classes.rb +32 -37
  30. data/generated/google/apis/bigquery_v2/service.rb +10 -2
  31. data/generated/google/apis/calendar_v3.rb +1 -1
  32. data/generated/google/apis/calendar_v3/classes.rb +205 -0
  33. data/generated/google/apis/calendar_v3/representations.rb +97 -0
  34. data/generated/google/apis/classroom_v1.rb +22 -25
  35. data/generated/google/apis/classroom_v1/classes.rb +998 -907
  36. data/generated/google/apis/classroom_v1/representations.rb +240 -240
  37. data/generated/google/apis/classroom_v1/service.rb +1269 -1061
  38. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  39. data/generated/google/apis/cloudbuild_v1/classes.rb +164 -163
  40. data/generated/google/apis/cloudbuild_v1/representations.rb +31 -31
  41. data/generated/google/apis/cloudbuild_v1/service.rb +114 -114
  42. data/generated/google/apis/clouddebugger_v2.rb +1 -1
  43. data/generated/google/apis/clouddebugger_v2/classes.rb +687 -687
  44. data/generated/google/apis/clouddebugger_v2/representations.rb +147 -147
  45. data/generated/google/apis/clouddebugger_v2/service.rb +132 -132
  46. data/generated/google/apis/cloudkms_v1.rb +1 -1
  47. data/generated/google/apis/cloudkms_v1/classes.rb +231 -248
  48. data/generated/google/apis/cloudkms_v1/representations.rb +74 -74
  49. data/generated/google/apis/cloudkms_v1/service.rb +228 -228
  50. data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
  51. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  52. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +738 -128
  53. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +245 -23
  54. data/generated/google/apis/cloudresourcemanager_v1/service.rb +1293 -249
  55. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +4 -4
  56. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +982 -372
  57. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +293 -71
  58. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +626 -277
  59. data/generated/google/apis/cloudtrace_v1.rb +1 -1
  60. data/generated/google/apis/cloudtrace_v1/classes.rb +19 -19
  61. data/generated/google/apis/cloudtrace_v1/representations.rb +2 -2
  62. data/generated/google/apis/cloudtrace_v1/service.rb +30 -30
  63. data/generated/google/apis/compute_beta.rb +1 -1
  64. data/generated/google/apis/compute_beta/classes.rb +116 -0
  65. data/generated/google/apis/compute_beta/representations.rb +48 -0
  66. data/generated/google/apis/compute_beta/service.rb +46 -1
  67. data/generated/google/apis/compute_v1.rb +1 -1
  68. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  69. data/generated/google/apis/dataflow_v1b3/classes.rb +3276 -3320
  70. data/generated/google/apis/dataflow_v1b3/representations.rb +779 -781
  71. data/generated/google/apis/dataflow_v1b3/service.rb +225 -225
  72. data/generated/google/apis/dataproc_v1.rb +1 -1
  73. data/generated/google/apis/dataproc_v1/classes.rb +1221 -1207
  74. data/generated/google/apis/dataproc_v1/representations.rb +255 -253
  75. data/generated/google/apis/dataproc_v1/service.rb +100 -100
  76. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  77. data/generated/google/apis/deploymentmanager_v2/classes.rb +5 -5
  78. data/generated/google/apis/dns_v1.rb +1 -1
  79. data/generated/google/apis/dns_v2beta1.rb +1 -1
  80. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  81. data/generated/google/apis/drive_v2.rb +1 -1
  82. data/generated/google/apis/drive_v2/classes.rb +3 -1
  83. data/generated/google/apis/drive_v3.rb +1 -1
  84. data/generated/google/apis/drive_v3/classes.rb +3 -1
  85. data/generated/google/apis/fusiontables_v2.rb +1 -1
  86. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  87. data/generated/google/apis/games_management_v1management.rb +1 -1
  88. data/generated/google/apis/games_v1.rb +1 -1
  89. data/generated/google/apis/genomics_v1.rb +7 -7
  90. data/generated/google/apis/genomics_v1/classes.rb +959 -959
  91. data/generated/google/apis/genomics_v1/representations.rb +238 -238
  92. data/generated/google/apis/genomics_v1/service.rb +996 -996
  93. data/generated/google/apis/iam_v1.rb +1 -1
  94. data/generated/google/apis/iam_v1/classes.rb +440 -440
  95. data/generated/google/apis/iam_v1/representations.rb +94 -94
  96. data/generated/google/apis/iam_v1/service.rb +170 -173
  97. data/generated/google/apis/identitytoolkit_v3.rb +1 -1
  98. data/generated/google/apis/identitytoolkit_v3/classes.rb +55 -0
  99. data/generated/google/apis/identitytoolkit_v3/representations.rb +8 -0
  100. data/generated/google/apis/kgsearch_v1/service.rb +4 -4
  101. data/generated/google/apis/language_v1beta1.rb +1 -1
  102. data/generated/google/apis/language_v1beta1/classes.rb +427 -427
  103. data/generated/google/apis/language_v1beta1/representations.rb +113 -113
  104. data/generated/google/apis/language_v1beta1/service.rb +25 -24
  105. data/generated/google/apis/licensing_v1.rb +2 -2
  106. data/generated/google/apis/licensing_v1/classes.rb +14 -2
  107. data/generated/google/apis/licensing_v1/representations.rb +2 -0
  108. data/generated/google/apis/licensing_v1/service.rb +1 -1
  109. data/generated/google/apis/logging_v2beta1.rb +1 -1
  110. data/generated/google/apis/logging_v2beta1/classes.rb +864 -864
  111. data/generated/google/apis/logging_v2beta1/representations.rb +168 -168
  112. data/generated/google/apis/logging_v2beta1/service.rb +261 -261
  113. data/generated/google/apis/manufacturers_v1.rb +1 -1
  114. data/generated/google/apis/manufacturers_v1/classes.rb +452 -105
  115. data/generated/google/apis/manufacturers_v1/representations.rb +138 -18
  116. data/generated/google/apis/manufacturers_v1/service.rb +11 -11
  117. data/generated/google/apis/mirror_v1.rb +1 -1
  118. data/generated/google/apis/monitoring_v3.rb +7 -7
  119. data/generated/google/apis/monitoring_v3/classes.rb +668 -670
  120. data/generated/google/apis/monitoring_v3/representations.rb +140 -140
  121. data/generated/google/apis/monitoring_v3/service.rb +208 -208
  122. data/generated/google/apis/partners_v2.rb +1 -1
  123. data/generated/google/apis/partners_v2/classes.rb +505 -505
  124. data/generated/google/apis/partners_v2/representations.rb +118 -118
  125. data/generated/google/apis/partners_v2/service.rb +275 -275
  126. data/generated/google/apis/people_v1.rb +1 -1
  127. data/generated/google/apis/people_v1/classes.rb +1037 -1031
  128. data/generated/google/apis/people_v1/representations.rb +247 -246
  129. data/generated/google/apis/people_v1/service.rb +20 -20
  130. data/generated/google/apis/plus_domains_v1.rb +1 -1
  131. data/generated/google/apis/plus_v1.rb +1 -1
  132. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  133. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +392 -392
  134. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +93 -93
  135. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +381 -381
  136. data/generated/google/apis/pubsub_v1.rb +4 -4
  137. data/generated/google/apis/pubsub_v1/classes.rb +131 -132
  138. data/generated/google/apis/pubsub_v1/representations.rb +35 -35
  139. data/generated/google/apis/pubsub_v1/service.rb +399 -408
  140. data/generated/google/apis/reseller_v1.rb +1 -1
  141. data/generated/google/apis/reseller_v1/classes.rb +9 -0
  142. data/generated/google/apis/reseller_v1/representations.rb +1 -0
  143. data/generated/google/apis/script_v1.rb +9 -9
  144. data/generated/google/apis/script_v1/classes.rb +110 -110
  145. data/generated/google/apis/script_v1/representations.rb +26 -26
  146. data/generated/google/apis/sheets_v4.rb +4 -4
  147. data/generated/google/apis/sheets_v4/classes.rb +4329 -4329
  148. data/generated/google/apis/sheets_v4/representations.rb +856 -856
  149. data/generated/google/apis/sheets_v4/service.rb +106 -106
  150. data/generated/google/apis/slides_v1.rb +4 -4
  151. data/generated/google/apis/slides_v1/classes.rb +2923 -2841
  152. data/generated/google/apis/slides_v1/representations.rb +722 -691
  153. data/generated/google/apis/slides_v1/service.rb +58 -15
  154. data/generated/google/apis/speech_v1beta1.rb +1 -1
  155. data/generated/google/apis/speech_v1beta1/classes.rb +191 -191
  156. data/generated/google/apis/speech_v1beta1/representations.rb +57 -57
  157. data/generated/google/apis/speech_v1beta1/service.rb +70 -70
  158. data/generated/google/apis/storage_v1.rb +1 -1
  159. data/generated/google/apis/storage_v1/classes.rb +151 -0
  160. data/generated/google/apis/storage_v1/representations.rb +45 -0
  161. data/generated/google/apis/storage_v1/service.rb +248 -0
  162. data/generated/google/apis/vision_v1.rb +1 -1
  163. data/generated/google/apis/vision_v1/classes.rb +1227 -1221
  164. data/generated/google/apis/vision_v1/representations.rb +217 -215
  165. data/generated/google/apis/webmasters_v3.rb +1 -1
  166. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  167. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  168. data/generated/google/apis/youtube_partner_v1/classes.rb +78 -0
  169. data/generated/google/apis/youtube_partner_v1/representations.rb +34 -0
  170. data/generated/google/apis/youtube_partner_v1/service.rb +40 -0
  171. data/generated/google/apis/youtubereporting_v1.rb +4 -4
  172. data/generated/google/apis/youtubereporting_v1/classes.rb +65 -65
  173. data/generated/google/apis/youtubereporting_v1/representations.rb +18 -18
  174. data/generated/google/apis/youtubereporting_v1/service.rb +111 -111
  175. data/lib/google/apis/version.rb +1 -1
  176. metadata +2 -2
@@ -32,16 +32,16 @@ module Google
32
32
  #
33
33
  # @see https://developers.google.com/sheets/
34
34
  class SheetsService < Google::Apis::Core::BaseService
35
- # @return [String]
36
- # Available to use for quota purposes for server-side applications. Can be any
37
- # arbitrary string assigned to a user, but should not exceed 40 characters.
38
- attr_accessor :quota_user
39
-
40
35
  # @return [String]
41
36
  # API key. Your API key identifies your project and provides you with API access,
42
37
  # quota, and reports. Required unless you provide an OAuth 2.0 token.
43
38
  attr_accessor :key
44
39
 
40
+ # @return [String]
41
+ # Available to use for quota purposes for server-side applications. Can be any
42
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
43
+ attr_accessor :quota_user
44
+
45
45
  def initialize
46
46
  super('https://sheets.googleapis.com/', '')
47
47
  end
@@ -69,11 +69,11 @@ module Google
69
69
  # @param [Boolean] include_grid_data
70
70
  # True if grid data should be returned.
71
71
  # This parameter is ignored if a field mask was set in the request.
72
+ # @param [String] fields
73
+ # Selector specifying which fields to include in a partial response.
72
74
  # @param [String] quota_user
73
75
  # Available to use for quota purposes for server-side applications. Can be any
74
76
  # arbitrary string assigned to a user, but should not exceed 40 characters.
75
- # @param [String] fields
76
- # Selector specifying which fields to include in a partial response.
77
77
  # @param [Google::Apis::RequestOptions] options
78
78
  # Request-specific options
79
79
  #
@@ -86,25 +86,25 @@ module Google
86
86
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
87
87
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
88
88
  # @raise [Google::Apis::AuthorizationError] Authorization is required
89
- def get_spreadsheet(spreadsheet_id, ranges: nil, include_grid_data: nil, quota_user: nil, fields: nil, options: nil, &block)
89
+ def get_spreadsheet(spreadsheet_id, ranges: nil, include_grid_data: nil, fields: nil, quota_user: nil, options: nil, &block)
90
90
  command = make_simple_command(:get, 'v4/spreadsheets/{spreadsheetId}', options)
91
91
  command.response_representation = Google::Apis::SheetsV4::Spreadsheet::Representation
92
92
  command.response_class = Google::Apis::SheetsV4::Spreadsheet
93
93
  command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
94
94
  command.query['ranges'] = ranges unless ranges.nil?
95
95
  command.query['includeGridData'] = include_grid_data unless include_grid_data.nil?
96
- command.query['quotaUser'] = quota_user unless quota_user.nil?
97
96
  command.query['fields'] = fields unless fields.nil?
97
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
98
98
  execute_or_queue_command(command, &block)
99
99
  end
100
100
 
101
101
  # Creates a spreadsheet, returning the newly created spreadsheet.
102
102
  # @param [Google::Apis::SheetsV4::Spreadsheet] spreadsheet_object
103
+ # @param [String] fields
104
+ # Selector specifying which fields to include in a partial response.
103
105
  # @param [String] quota_user
104
106
  # Available to use for quota purposes for server-side applications. Can be any
105
107
  # arbitrary string assigned to a user, but should not exceed 40 characters.
106
- # @param [String] fields
107
- # Selector specifying which fields to include in a partial response.
108
108
  # @param [Google::Apis::RequestOptions] options
109
109
  # Request-specific options
110
110
  #
@@ -117,14 +117,14 @@ module Google
117
117
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
118
118
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
119
119
  # @raise [Google::Apis::AuthorizationError] Authorization is required
120
- def create_spreadsheet(spreadsheet_object = nil, quota_user: nil, fields: nil, options: nil, &block)
120
+ def create_spreadsheet(spreadsheet_object = nil, fields: nil, quota_user: nil, options: nil, &block)
121
121
  command = make_simple_command(:post, 'v4/spreadsheets', options)
122
122
  command.request_representation = Google::Apis::SheetsV4::Spreadsheet::Representation
123
123
  command.request_object = spreadsheet_object
124
124
  command.response_representation = Google::Apis::SheetsV4::Spreadsheet::Representation
125
125
  command.response_class = Google::Apis::SheetsV4::Spreadsheet
126
- command.query['quotaUser'] = quota_user unless quota_user.nil?
127
126
  command.query['fields'] = fields unless fields.nil?
127
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
128
128
  execute_or_queue_command(command, &block)
129
129
  end
130
130
 
@@ -147,11 +147,11 @@ module Google
147
147
  # @param [String] spreadsheet_id
148
148
  # The spreadsheet to apply the updates to.
149
149
  # @param [Google::Apis::SheetsV4::BatchUpdateSpreadsheetRequest] batch_update_spreadsheet_request_object
150
+ # @param [String] fields
151
+ # Selector specifying which fields to include in a partial response.
150
152
  # @param [String] quota_user
151
153
  # Available to use for quota purposes for server-side applications. Can be any
152
154
  # arbitrary string assigned to a user, but should not exceed 40 characters.
153
- # @param [String] fields
154
- # Selector specifying which fields to include in a partial response.
155
155
  # @param [Google::Apis::RequestOptions] options
156
156
  # Request-specific options
157
157
  #
@@ -164,15 +164,15 @@ module Google
164
164
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
165
165
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
166
166
  # @raise [Google::Apis::AuthorizationError] Authorization is required
167
- def batch_update_spreadsheet(spreadsheet_id, batch_update_spreadsheet_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
167
+ def batch_update_spreadsheet(spreadsheet_id, batch_update_spreadsheet_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
168
168
  command = make_simple_command(:post, 'v4/spreadsheets/{spreadsheetId}:batchUpdate', options)
169
169
  command.request_representation = Google::Apis::SheetsV4::BatchUpdateSpreadsheetRequest::Representation
170
170
  command.request_object = batch_update_spreadsheet_request_object
171
171
  command.response_representation = Google::Apis::SheetsV4::BatchUpdateSpreadsheetResponse::Representation
172
172
  command.response_class = Google::Apis::SheetsV4::BatchUpdateSpreadsheetResponse
173
173
  command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
174
- command.query['quotaUser'] = quota_user unless quota_user.nil?
175
174
  command.query['fields'] = fields unless fields.nil?
175
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
176
176
  execute_or_queue_command(command, &block)
177
177
  end
178
178
 
@@ -182,13 +182,6 @@ module Google
182
182
  # The ID of the spreadsheet to retrieve data from.
183
183
  # @param [String] range
184
184
  # The A1 notation of the values to retrieve.
185
- # @param [String] major_dimension
186
- # The major dimension that results should use.
187
- # For example, if the spreadsheet data is: `A1=1,B1=2,A2=3,B2=4`,
188
- # then requesting `range=A1:B2,majorDimension=ROWS` will return
189
- # `[[1,2],[3,4]]`,
190
- # whereas requesting `range=A1:B2,majorDimension=COLUMNS` will return
191
- # `[[1,3],[2,4]]`.
192
185
  # @param [String] value_render_option
193
186
  # How values should be represented in the output.
194
187
  # The default render option is ValueRenderOption.FORMATTED_VALUE.
@@ -197,11 +190,18 @@ module Google
197
190
  # This is ignored if value_render_option is
198
191
  # FORMATTED_VALUE.
199
192
  # The default dateTime render option is [DateTimeRenderOption.SERIAL_NUMBER].
193
+ # @param [String] major_dimension
194
+ # The major dimension that results should use.
195
+ # For example, if the spreadsheet data is: `A1=1,B1=2,A2=3,B2=4`,
196
+ # then requesting `range=A1:B2,majorDimension=ROWS` will return
197
+ # `[[1,2],[3,4]]`,
198
+ # whereas requesting `range=A1:B2,majorDimension=COLUMNS` will return
199
+ # `[[1,3],[2,4]]`.
200
+ # @param [String] fields
201
+ # Selector specifying which fields to include in a partial response.
200
202
  # @param [String] quota_user
201
203
  # Available to use for quota purposes for server-side applications. Can be any
202
204
  # arbitrary string assigned to a user, but should not exceed 40 characters.
203
- # @param [String] fields
204
- # Selector specifying which fields to include in a partial response.
205
205
  # @param [Google::Apis::RequestOptions] options
206
206
  # Request-specific options
207
207
  #
@@ -214,17 +214,17 @@ module Google
214
214
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
215
215
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
216
216
  # @raise [Google::Apis::AuthorizationError] Authorization is required
217
- def get_spreadsheet_values(spreadsheet_id, range, major_dimension: nil, value_render_option: nil, date_time_render_option: nil, quota_user: nil, fields: nil, options: nil, &block)
217
+ def get_spreadsheet_values(spreadsheet_id, range, value_render_option: nil, date_time_render_option: nil, major_dimension: nil, fields: nil, quota_user: nil, options: nil, &block)
218
218
  command = make_simple_command(:get, 'v4/spreadsheets/{spreadsheetId}/values/{range}', options)
219
219
  command.response_representation = Google::Apis::SheetsV4::ValueRange::Representation
220
220
  command.response_class = Google::Apis::SheetsV4::ValueRange
221
221
  command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
222
222
  command.params['range'] = range unless range.nil?
223
- command.query['majorDimension'] = major_dimension unless major_dimension.nil?
224
223
  command.query['valueRenderOption'] = value_render_option unless value_render_option.nil?
225
224
  command.query['dateTimeRenderOption'] = date_time_render_option unless date_time_render_option.nil?
226
- command.query['quotaUser'] = quota_user unless quota_user.nil?
225
+ command.query['majorDimension'] = major_dimension unless major_dimension.nil?
227
226
  command.query['fields'] = fields unless fields.nil?
227
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
228
228
  execute_or_queue_command(command, &block)
229
229
  end
230
230
 
@@ -253,11 +253,11 @@ module Google
253
253
  # If the range to write was larger than than the range actually written,
254
254
  # the response will include all values in the requested range (excluding
255
255
  # trailing empty rows and columns).
256
+ # @param [String] fields
257
+ # Selector specifying which fields to include in a partial response.
256
258
  # @param [String] quota_user
257
259
  # Available to use for quota purposes for server-side applications. Can be any
258
260
  # arbitrary string assigned to a user, but should not exceed 40 characters.
259
- # @param [String] fields
260
- # Selector specifying which fields to include in a partial response.
261
261
  # @param [Google::Apis::RequestOptions] options
262
262
  # Request-specific options
263
263
  #
@@ -270,7 +270,7 @@ module Google
270
270
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
271
271
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
272
272
  # @raise [Google::Apis::AuthorizationError] Authorization is required
273
- def update_spreadsheet_value(spreadsheet_id, range, value_range_object = nil, response_value_render_option: nil, value_input_option: nil, response_date_time_render_option: nil, include_values_in_response: nil, quota_user: nil, fields: nil, options: nil, &block)
273
+ 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)
274
274
  command = make_simple_command(:put, 'v4/spreadsheets/{spreadsheetId}/values/{range}', options)
275
275
  command.request_representation = Google::Apis::SheetsV4::ValueRange::Representation
276
276
  command.request_object = value_range_object
@@ -282,8 +282,8 @@ module Google
282
282
  command.query['valueInputOption'] = value_input_option unless value_input_option.nil?
283
283
  command.query['responseDateTimeRenderOption'] = response_date_time_render_option unless response_date_time_render_option.nil?
284
284
  command.query['includeValuesInResponse'] = include_values_in_response unless include_values_in_response.nil?
285
- command.query['quotaUser'] = quota_user unless quota_user.nil?
286
285
  command.query['fields'] = fields unless fields.nil?
286
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
287
287
  execute_or_queue_command(command, &block)
288
288
  end
289
289
 
@@ -294,11 +294,11 @@ module Google
294
294
  # @param [String] spreadsheet_id
295
295
  # The ID of the spreadsheet to update.
296
296
  # @param [Google::Apis::SheetsV4::BatchUpdateValuesRequest] batch_update_values_request_object
297
+ # @param [String] fields
298
+ # Selector specifying which fields to include in a partial response.
297
299
  # @param [String] quota_user
298
300
  # Available to use for quota purposes for server-side applications. Can be any
299
301
  # arbitrary string assigned to a user, but should not exceed 40 characters.
300
- # @param [String] fields
301
- # Selector specifying which fields to include in a partial response.
302
302
  # @param [Google::Apis::RequestOptions] options
303
303
  # Request-specific options
304
304
  #
@@ -311,54 +311,15 @@ module Google
311
311
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
312
312
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
313
313
  # @raise [Google::Apis::AuthorizationError] Authorization is required
314
- def batch_update_values(spreadsheet_id, batch_update_values_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
314
+ def batch_update_values(spreadsheet_id, batch_update_values_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
315
315
  command = make_simple_command(:post, 'v4/spreadsheets/{spreadsheetId}/values:batchUpdate', options)
316
316
  command.request_representation = Google::Apis::SheetsV4::BatchUpdateValuesRequest::Representation
317
317
  command.request_object = batch_update_values_request_object
318
318
  command.response_representation = Google::Apis::SheetsV4::BatchUpdateValuesResponse::Representation
319
319
  command.response_class = Google::Apis::SheetsV4::BatchUpdateValuesResponse
320
320
  command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
321
- command.query['quotaUser'] = quota_user unless quota_user.nil?
322
321
  command.query['fields'] = fields unless fields.nil?
323
- execute_or_queue_command(command, &block)
324
- end
325
-
326
- # Clears values from a spreadsheet.
327
- # The caller must specify the spreadsheet ID and range.
328
- # Only values are cleared -- all other properties of the cell (such as
329
- # formatting, data validation, etc..) are kept.
330
- # @param [String] spreadsheet_id
331
- # The ID of the spreadsheet to update.
332
- # @param [String] range
333
- # The A1 notation of the values to clear.
334
- # @param [Google::Apis::SheetsV4::ClearValuesRequest] clear_values_request_object
335
- # @param [String] quota_user
336
- # Available to use for quota purposes for server-side applications. Can be any
337
- # arbitrary string assigned to a user, but should not exceed 40 characters.
338
- # @param [String] fields
339
- # Selector specifying which fields to include in a partial response.
340
- # @param [Google::Apis::RequestOptions] options
341
- # Request-specific options
342
- #
343
- # @yield [result, err] Result & error if block supplied
344
- # @yieldparam result [Google::Apis::SheetsV4::ClearValuesResponse] parsed result object
345
- # @yieldparam err [StandardError] error object if request failed
346
- #
347
- # @return [Google::Apis::SheetsV4::ClearValuesResponse]
348
- #
349
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
350
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
351
- # @raise [Google::Apis::AuthorizationError] Authorization is required
352
- def clear_values(spreadsheet_id, range, clear_values_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
353
- command = make_simple_command(:post, 'v4/spreadsheets/{spreadsheetId}/values/{range}:clear', options)
354
- command.request_representation = Google::Apis::SheetsV4::ClearValuesRequest::Representation
355
- command.request_object = clear_values_request_object
356
- command.response_representation = Google::Apis::SheetsV4::ClearValuesResponse::Representation
357
- command.response_class = Google::Apis::SheetsV4::ClearValuesResponse
358
- command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
359
- command.params['range'] = range unless range.nil?
360
322
  command.query['quotaUser'] = quota_user unless quota_user.nil?
361
- command.query['fields'] = fields unless fields.nil?
362
323
  execute_or_queue_command(command, &block)
363
324
  end
364
325
 
@@ -366,14 +327,6 @@ module Google
366
327
  # The caller must specify the spreadsheet ID and one or more ranges.
367
328
  # @param [String] spreadsheet_id
368
329
  # The ID of the spreadsheet to retrieve data from.
369
- # @param [String] value_render_option
370
- # How values should be represented in the output.
371
- # The default render option is ValueRenderOption.FORMATTED_VALUE.
372
- # @param [String] date_time_render_option
373
- # How dates, times, and durations should be represented in the output.
374
- # This is ignored if value_render_option is
375
- # FORMATTED_VALUE.
376
- # The default dateTime render option is [DateTimeRenderOption.SERIAL_NUMBER].
377
330
  # @param [Array<String>, String] ranges
378
331
  # The A1 notation of the values to retrieve.
379
332
  # @param [String] major_dimension
@@ -383,11 +336,19 @@ module Google
383
336
  # `[[1,2],[3,4]]`,
384
337
  # whereas requesting `range=A1:B2,majorDimension=COLUMNS` will return
385
338
  # `[[1,3],[2,4]]`.
339
+ # @param [String] value_render_option
340
+ # How values should be represented in the output.
341
+ # The default render option is ValueRenderOption.FORMATTED_VALUE.
342
+ # @param [String] date_time_render_option
343
+ # How dates, times, and durations should be represented in the output.
344
+ # This is ignored if value_render_option is
345
+ # FORMATTED_VALUE.
346
+ # The default dateTime render option is [DateTimeRenderOption.SERIAL_NUMBER].
347
+ # @param [String] fields
348
+ # Selector specifying which fields to include in a partial response.
386
349
  # @param [String] quota_user
387
350
  # Available to use for quota purposes for server-side applications. Can be any
388
351
  # arbitrary string assigned to a user, but should not exceed 40 characters.
389
- # @param [String] fields
390
- # Selector specifying which fields to include in a partial response.
391
352
  # @param [Google::Apis::RequestOptions] options
392
353
  # Request-specific options
393
354
  #
@@ -400,17 +361,56 @@ module Google
400
361
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
401
362
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
402
363
  # @raise [Google::Apis::AuthorizationError] Authorization is required
403
- 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)
364
+ 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)
404
365
  command = make_simple_command(:get, 'v4/spreadsheets/{spreadsheetId}/values:batchGet', options)
405
366
  command.response_representation = Google::Apis::SheetsV4::BatchGetValuesResponse::Representation
406
367
  command.response_class = Google::Apis::SheetsV4::BatchGetValuesResponse
407
368
  command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
408
- command.query['valueRenderOption'] = value_render_option unless value_render_option.nil?
409
- command.query['dateTimeRenderOption'] = date_time_render_option unless date_time_render_option.nil?
410
369
  command.query['ranges'] = ranges unless ranges.nil?
411
370
  command.query['majorDimension'] = major_dimension unless major_dimension.nil?
371
+ command.query['valueRenderOption'] = value_render_option unless value_render_option.nil?
372
+ command.query['dateTimeRenderOption'] = date_time_render_option unless date_time_render_option.nil?
373
+ command.query['fields'] = fields unless fields.nil?
412
374
  command.query['quotaUser'] = quota_user unless quota_user.nil?
375
+ execute_or_queue_command(command, &block)
376
+ end
377
+
378
+ # Clears values from a spreadsheet.
379
+ # The caller must specify the spreadsheet ID and range.
380
+ # Only values are cleared -- all other properties of the cell (such as
381
+ # formatting, data validation, etc..) are kept.
382
+ # @param [String] spreadsheet_id
383
+ # The ID of the spreadsheet to update.
384
+ # @param [String] range
385
+ # The A1 notation of the values to clear.
386
+ # @param [Google::Apis::SheetsV4::ClearValuesRequest] clear_values_request_object
387
+ # @param [String] fields
388
+ # Selector specifying which fields to include in a partial response.
389
+ # @param [String] quota_user
390
+ # Available to use for quota purposes for server-side applications. Can be any
391
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
392
+ # @param [Google::Apis::RequestOptions] options
393
+ # Request-specific options
394
+ #
395
+ # @yield [result, err] Result & error if block supplied
396
+ # @yieldparam result [Google::Apis::SheetsV4::ClearValuesResponse] parsed result object
397
+ # @yieldparam err [StandardError] error object if request failed
398
+ #
399
+ # @return [Google::Apis::SheetsV4::ClearValuesResponse]
400
+ #
401
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
402
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
403
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
404
+ def clear_values(spreadsheet_id, range, clear_values_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
405
+ command = make_simple_command(:post, 'v4/spreadsheets/{spreadsheetId}/values/{range}:clear', options)
406
+ command.request_representation = Google::Apis::SheetsV4::ClearValuesRequest::Representation
407
+ command.request_object = clear_values_request_object
408
+ command.response_representation = Google::Apis::SheetsV4::ClearValuesResponse::Representation
409
+ command.response_class = Google::Apis::SheetsV4::ClearValuesResponse
410
+ command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
411
+ command.params['range'] = range unless range.nil?
413
412
  command.query['fields'] = fields unless fields.nil?
413
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
414
414
  execute_or_queue_command(command, &block)
415
415
  end
416
416
 
@@ -433,6 +433,10 @@ module Google
433
433
  # The A1 notation of a range to search for a logical table of data.
434
434
  # Values will be appended after the last row of the table.
435
435
  # @param [Google::Apis::SheetsV4::ValueRange] value_range_object
436
+ # @param [Boolean] include_values_in_response
437
+ # Determines if the update response should include the values
438
+ # of the cells that were appended. By default, responses
439
+ # do not include the updated values.
436
440
  # @param [String] response_value_render_option
437
441
  # Determines how values in the response should be rendered.
438
442
  # The default render option is ValueRenderOption.FORMATTED_VALUE.
@@ -445,15 +449,11 @@ module Google
445
449
  # rendered. This is ignored if response_value_render_option is
446
450
  # FORMATTED_VALUE.
447
451
  # The default dateTime render option is [DateTimeRenderOption.SERIAL_NUMBER].
448
- # @param [Boolean] include_values_in_response
449
- # Determines if the update response should include the values
450
- # of the cells that were appended. By default, responses
451
- # do not include the updated values.
452
+ # @param [String] fields
453
+ # Selector specifying which fields to include in a partial response.
452
454
  # @param [String] quota_user
453
455
  # Available to use for quota purposes for server-side applications. Can be any
454
456
  # arbitrary string assigned to a user, but should not exceed 40 characters.
455
- # @param [String] fields
456
- # Selector specifying which fields to include in a partial response.
457
457
  # @param [Google::Apis::RequestOptions] options
458
458
  # Request-specific options
459
459
  #
@@ -466,7 +466,7 @@ module Google
466
466
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
467
467
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
468
468
  # @raise [Google::Apis::AuthorizationError] Authorization is required
469
- 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, quota_user: nil, fields: nil, options: nil, &block)
469
+ def append_spreadsheet_value(spreadsheet_id, range, value_range_object = nil, include_values_in_response: nil, response_value_render_option: nil, insert_data_option: nil, value_input_option: nil, response_date_time_render_option: nil, fields: nil, quota_user: nil, options: nil, &block)
470
470
  command = make_simple_command(:post, 'v4/spreadsheets/{spreadsheetId}/values/{range}:append', options)
471
471
  command.request_representation = Google::Apis::SheetsV4::ValueRange::Representation
472
472
  command.request_object = value_range_object
@@ -474,13 +474,13 @@ module Google
474
474
  command.response_class = Google::Apis::SheetsV4::AppendValuesResponse
475
475
  command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
476
476
  command.params['range'] = range unless range.nil?
477
+ command.query['includeValuesInResponse'] = include_values_in_response unless include_values_in_response.nil?
477
478
  command.query['responseValueRenderOption'] = response_value_render_option unless response_value_render_option.nil?
478
479
  command.query['insertDataOption'] = insert_data_option unless insert_data_option.nil?
479
480
  command.query['valueInputOption'] = value_input_option unless value_input_option.nil?
480
481
  command.query['responseDateTimeRenderOption'] = response_date_time_render_option unless response_date_time_render_option.nil?
481
- command.query['includeValuesInResponse'] = include_values_in_response unless include_values_in_response.nil?
482
- command.query['quotaUser'] = quota_user unless quota_user.nil?
483
482
  command.query['fields'] = fields unless fields.nil?
483
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
484
484
  execute_or_queue_command(command, &block)
485
485
  end
486
486
 
@@ -491,11 +491,11 @@ module Google
491
491
  # @param [String] spreadsheet_id
492
492
  # The ID of the spreadsheet to update.
493
493
  # @param [Google::Apis::SheetsV4::BatchClearValuesRequest] batch_clear_values_request_object
494
+ # @param [String] fields
495
+ # Selector specifying which fields to include in a partial response.
494
496
  # @param [String] quota_user
495
497
  # Available to use for quota purposes for server-side applications. Can be any
496
498
  # arbitrary string assigned to a user, but should not exceed 40 characters.
497
- # @param [String] fields
498
- # Selector specifying which fields to include in a partial response.
499
499
  # @param [Google::Apis::RequestOptions] options
500
500
  # Request-specific options
501
501
  #
@@ -508,15 +508,15 @@ module Google
508
508
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
509
509
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
510
510
  # @raise [Google::Apis::AuthorizationError] Authorization is required
511
- def batch_clear_values(spreadsheet_id, batch_clear_values_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
511
+ def batch_clear_values(spreadsheet_id, batch_clear_values_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
512
512
  command = make_simple_command(:post, 'v4/spreadsheets/{spreadsheetId}/values:batchClear', options)
513
513
  command.request_representation = Google::Apis::SheetsV4::BatchClearValuesRequest::Representation
514
514
  command.request_object = batch_clear_values_request_object
515
515
  command.response_representation = Google::Apis::SheetsV4::BatchClearValuesResponse::Representation
516
516
  command.response_class = Google::Apis::SheetsV4::BatchClearValuesResponse
517
517
  command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
518
- command.query['quotaUser'] = quota_user unless quota_user.nil?
519
518
  command.query['fields'] = fields unless fields.nil?
519
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
520
520
  execute_or_queue_command(command, &block)
521
521
  end
522
522
 
@@ -527,11 +527,11 @@ module Google
527
527
  # @param [Fixnum] sheet_id
528
528
  # The ID of the sheet to copy.
529
529
  # @param [Google::Apis::SheetsV4::CopySheetToAnotherSpreadsheetRequest] copy_sheet_to_another_spreadsheet_request_object
530
+ # @param [String] fields
531
+ # Selector specifying which fields to include in a partial response.
530
532
  # @param [String] quota_user
531
533
  # Available to use for quota purposes for server-side applications. Can be any
532
534
  # arbitrary string assigned to a user, but should not exceed 40 characters.
533
- # @param [String] fields
534
- # Selector specifying which fields to include in a partial response.
535
535
  # @param [Google::Apis::RequestOptions] options
536
536
  # Request-specific options
537
537
  #
@@ -544,7 +544,7 @@ module Google
544
544
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
545
545
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
546
546
  # @raise [Google::Apis::AuthorizationError] Authorization is required
547
- def copy_spreadsheet(spreadsheet_id, sheet_id, copy_sheet_to_another_spreadsheet_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
547
+ def copy_spreadsheet(spreadsheet_id, sheet_id, copy_sheet_to_another_spreadsheet_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
548
548
  command = make_simple_command(:post, 'v4/spreadsheets/{spreadsheetId}/sheets/{sheetId}:copyTo', options)
549
549
  command.request_representation = Google::Apis::SheetsV4::CopySheetToAnotherSpreadsheetRequest::Representation
550
550
  command.request_object = copy_sheet_to_another_spreadsheet_request_object
@@ -552,16 +552,16 @@ module Google
552
552
  command.response_class = Google::Apis::SheetsV4::SheetProperties
553
553
  command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
554
554
  command.params['sheetId'] = sheet_id unless sheet_id.nil?
555
- command.query['quotaUser'] = quota_user unless quota_user.nil?
556
555
  command.query['fields'] = fields unless fields.nil?
556
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
557
557
  execute_or_queue_command(command, &block)
558
558
  end
559
559
 
560
560
  protected
561
561
 
562
562
  def apply_command_defaults(command)
563
- command.query['quotaUser'] = quota_user unless quota_user.nil?
564
563
  command.query['key'] = key unless key.nil?
564
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
565
565
  end
566
566
  end
567
567
  end