google-api-client 0.9.28 → 0.10.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (138) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +7 -4
  3. data/CHANGELOG.md +10 -0
  4. data/api_names.yaml +36512 -36326
  5. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  6. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +41 -41
  7. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +13 -13
  8. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +110 -110
  9. data/generated/google/apis/adsense_v1_4.rb +1 -1
  10. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  11. data/generated/google/apis/analyticsreporting_v4.rb +3 -3
  12. data/generated/google/apis/analyticsreporting_v4/classes.rb +845 -845
  13. data/generated/google/apis/analyticsreporting_v4/representations.rb +184 -184
  14. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  15. data/generated/google/apis/androidenterprise_v1/classes.rb +5 -5
  16. data/generated/google/apis/androidenterprise_v1/service.rb +3 -1
  17. data/generated/google/apis/appstate_v1.rb +1 -1
  18. data/generated/google/apis/calendar_v3.rb +1 -1
  19. data/generated/google/apis/classroom_v1.rb +22 -25
  20. data/generated/google/apis/classroom_v1/classes.rb +998 -907
  21. data/generated/google/apis/classroom_v1/representations.rb +240 -240
  22. data/generated/google/apis/classroom_v1/service.rb +1269 -1061
  23. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  24. data/generated/google/apis/cloudbuild_v1/classes.rb +322 -322
  25. data/generated/google/apis/cloudbuild_v1/representations.rb +88 -88
  26. data/generated/google/apis/cloudbuild_v1/service.rb +57 -57
  27. data/generated/google/apis/clouddebugger_v2.rb +4 -4
  28. data/generated/google/apis/clouddebugger_v2/classes.rb +311 -311
  29. data/generated/google/apis/clouddebugger_v2/representations.rb +92 -92
  30. data/generated/google/apis/clouddebugger_v2/service.rb +41 -41
  31. data/generated/google/apis/cloudkms_v1beta1.rb +1 -1
  32. data/generated/google/apis/cloudkms_v1beta1/classes.rb +611 -611
  33. data/generated/google/apis/cloudkms_v1beta1/representations.rb +124 -124
  34. data/generated/google/apis/cloudkms_v1beta1/service.rb +254 -248
  35. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  36. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +116 -116
  37. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +28 -28
  38. data/generated/google/apis/cloudresourcemanager_v1/service.rb +257 -257
  39. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +4 -4
  40. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +394 -394
  41. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +79 -79
  42. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +269 -269
  43. data/generated/google/apis/cloudtrace_v1.rb +8 -8
  44. data/generated/google/apis/cloudtrace_v1/classes.rb +90 -84
  45. data/generated/google/apis/cloudtrace_v1/representations.rb +22 -22
  46. data/generated/google/apis/cloudtrace_v1/service.rb +40 -35
  47. data/generated/google/apis/compute_beta.rb +1 -1
  48. data/generated/google/apis/compute_beta/classes.rb +406 -31
  49. data/generated/google/apis/compute_beta/representations.rb +154 -0
  50. data/generated/google/apis/compute_beta/service.rb +262 -9
  51. data/generated/google/apis/compute_v1.rb +1 -1
  52. data/generated/google/apis/compute_v1/classes.rb +17 -20
  53. data/generated/google/apis/content_v2.rb +1 -1
  54. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  55. data/generated/google/apis/dataflow_v1b3/classes.rb +3226 -2847
  56. data/generated/google/apis/dataflow_v1b3/representations.rb +825 -677
  57. data/generated/google/apis/dataflow_v1b3/service.rb +175 -175
  58. data/generated/google/apis/dataproc_v1.rb +2 -2
  59. data/generated/google/apis/dataproc_v1/classes.rb +1213 -1136
  60. data/generated/google/apis/dataproc_v1/representations.rb +262 -244
  61. data/generated/google/apis/dataproc_v1/service.rb +298 -243
  62. data/generated/google/apis/datastore_v1.rb +4 -4
  63. data/generated/google/apis/datastore_v1/classes.rb +728 -728
  64. data/generated/google/apis/datastore_v1/representations.rb +167 -167
  65. data/generated/google/apis/datastore_v1/service.rb +68 -68
  66. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  67. data/generated/google/apis/drive_v2.rb +1 -1
  68. data/generated/google/apis/drive_v3.rb +1 -1
  69. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  70. data/generated/google/apis/games_management_v1management.rb +1 -1
  71. data/generated/google/apis/games_v1.rb +1 -1
  72. data/generated/google/apis/genomics_v1.rb +7 -7
  73. data/generated/google/apis/genomics_v1/classes.rb +932 -932
  74. data/generated/google/apis/genomics_v1/representations.rb +205 -205
  75. data/generated/google/apis/genomics_v1/service.rb +1228 -1228
  76. data/generated/google/apis/gmail_v1.rb +1 -1
  77. data/generated/google/apis/iam_v1/classes.rb +440 -440
  78. data/generated/google/apis/iam_v1/representations.rb +94 -94
  79. data/generated/google/apis/iam_v1/service.rb +60 -60
  80. data/generated/google/apis/identitytoolkit_v3.rb +1 -1
  81. data/generated/google/apis/identitytoolkit_v3/classes.rb +21 -1
  82. data/generated/google/apis/identitytoolkit_v3/representations.rb +3 -0
  83. data/generated/google/apis/kgsearch_v1/classes.rb +6 -6
  84. data/generated/google/apis/kgsearch_v1/representations.rb +1 -1
  85. data/generated/google/apis/kgsearch_v1/service.rb +21 -21
  86. data/generated/google/apis/language_v1beta1.rb +1 -1
  87. data/generated/google/apis/language_v1beta1/classes.rb +232 -232
  88. data/generated/google/apis/language_v1beta1/representations.rb +75 -75
  89. data/generated/google/apis/logging_v2beta1.rb +1 -1
  90. data/generated/google/apis/logging_v2beta1/classes.rb +345 -337
  91. data/generated/google/apis/logging_v2beta1/representations.rb +55 -55
  92. data/generated/google/apis/logging_v2beta1/service.rb +331 -306
  93. data/generated/google/apis/monitoring_v3.rb +1 -1
  94. data/generated/google/apis/monitoring_v3/classes.rb +253 -253
  95. data/generated/google/apis/monitoring_v3/representations.rb +58 -58
  96. data/generated/google/apis/monitoring_v3/service.rb +135 -135
  97. data/generated/google/apis/people_v1.rb +15 -16
  98. data/generated/google/apis/people_v1/classes.rb +985 -855
  99. data/generated/google/apis/people_v1/representations.rb +227 -220
  100. data/generated/google/apis/people_v1/service.rb +58 -52
  101. data/generated/google/apis/plus_domains_v1.rb +1 -1
  102. data/generated/google/apis/plus_v1.rb +1 -1
  103. data/generated/google/apis/pubsub_v1.rb +1 -1
  104. data/generated/google/apis/pubsub_v1/classes.rb +257 -257
  105. data/generated/google/apis/pubsub_v1/representations.rb +83 -83
  106. data/generated/google/apis/pubsub_v1/service.rb +390 -390
  107. data/generated/google/apis/script_v1.rb +17 -17
  108. data/generated/google/apis/script_v1/classes.rb +149 -141
  109. data/generated/google/apis/script_v1/representations.rb +26 -27
  110. data/generated/google/apis/script_v1/service.rb +9 -8
  111. data/generated/google/apis/sheets_v4.rb +1 -1
  112. data/generated/google/apis/sheets_v4/classes.rb +4223 -4188
  113. data/generated/google/apis/sheets_v4/representations.rb +850 -834
  114. data/generated/google/apis/sheets_v4/service.rb +192 -192
  115. data/generated/google/apis/slides_v1.rb +1 -1
  116. data/generated/google/apis/slides_v1/classes.rb +927 -800
  117. data/generated/google/apis/slides_v1/representations.rb +253 -211
  118. data/generated/google/apis/speech_v1beta1.rb +1 -1
  119. data/generated/google/apis/speech_v1beta1/classes.rb +94 -107
  120. data/generated/google/apis/speech_v1beta1/representations.rb +24 -36
  121. data/generated/google/apis/speech_v1beta1/service.rb +51 -54
  122. data/generated/google/apis/storage_v1.rb +1 -1
  123. data/generated/google/apis/vision_v1.rb +1 -1
  124. data/generated/google/apis/vision_v1/classes.rb +888 -885
  125. data/generated/google/apis/vision_v1/representations.rb +139 -139
  126. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  127. data/generated/google/apis/youtube_analytics_v1/service.rb +5 -1
  128. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  129. data/generated/google/apis/youtubereporting_v1.rb +1 -1
  130. data/generated/google/apis/youtubereporting_v1/classes.rb +80 -80
  131. data/generated/google/apis/youtubereporting_v1/representations.rb +23 -23
  132. data/generated/google/apis/youtubereporting_v1/service.rb +51 -51
  133. data/google-api-client.gemspec +2 -2
  134. data/lib/google/apis/core/api_command.rb +1 -1
  135. data/lib/google/apis/core/json_representation.rb +2 -2
  136. data/lib/google/apis/version.rb +1 -1
  137. data/samples/cli/lib/samples/you_tube.rb +4 -1
  138. metadata +36 -30
@@ -46,84 +46,6 @@ module Google
46
46
  super('https://sheets.googleapis.com/', '')
47
47
  end
48
48
 
49
- # Creates a spreadsheet, returning the newly created spreadsheet.
50
- # @param [Google::Apis::SheetsV4::Spreadsheet] spreadsheet_object
51
- # @param [String] fields
52
- # Selector specifying which fields to include in a partial response.
53
- # @param [String] quota_user
54
- # Available to use for quota purposes for server-side applications. Can be any
55
- # arbitrary string assigned to a user, but should not exceed 40 characters.
56
- # @param [Google::Apis::RequestOptions] options
57
- # Request-specific options
58
- #
59
- # @yield [result, err] Result & error if block supplied
60
- # @yieldparam result [Google::Apis::SheetsV4::Spreadsheet] parsed result object
61
- # @yieldparam err [StandardError] error object if request failed
62
- #
63
- # @return [Google::Apis::SheetsV4::Spreadsheet]
64
- #
65
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
66
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
67
- # @raise [Google::Apis::AuthorizationError] Authorization is required
68
- def create_spreadsheet(spreadsheet_object = nil, fields: nil, quota_user: nil, options: nil, &block)
69
- command = make_simple_command(:post, 'v4/spreadsheets', options)
70
- command.request_representation = Google::Apis::SheetsV4::Spreadsheet::Representation
71
- command.request_object = spreadsheet_object
72
- command.response_representation = Google::Apis::SheetsV4::Spreadsheet::Representation
73
- command.response_class = Google::Apis::SheetsV4::Spreadsheet
74
- command.query['fields'] = fields unless fields.nil?
75
- command.query['quotaUser'] = quota_user unless quota_user.nil?
76
- execute_or_queue_command(command, &block)
77
- end
78
-
79
- # Applies one or more updates to the spreadsheet.
80
- # Each request is validated before
81
- # being applied. If any request is not valid then the entire request will
82
- # fail and nothing will be applied.
83
- # Some requests have replies to
84
- # give you some information about how
85
- # they are applied. The replies will mirror the requests. For example,
86
- # if you applied 4 updates and the 3rd one had a reply, then the
87
- # response will have 2 empty replies, the actual reply, and another empty
88
- # reply, in that order.
89
- # Due to the collaborative nature of spreadsheets, it is not guaranteed that
90
- # the spreadsheet will reflect exactly your changes after this completes,
91
- # however it is guaranteed that the updates in the request will be
92
- # applied together atomically. Your changes may be altered with respect to
93
- # collaborator changes. If there are no collaborators, the spreadsheet
94
- # should reflect your changes.
95
- # @param [String] spreadsheet_id
96
- # The spreadsheet to apply the updates to.
97
- # @param [Google::Apis::SheetsV4::BatchUpdateSpreadsheetRequest] batch_update_spreadsheet_request_object
98
- # @param [String] fields
99
- # Selector specifying which fields to include in a partial response.
100
- # @param [String] quota_user
101
- # Available to use for quota purposes for server-side applications. Can be any
102
- # arbitrary string assigned to a user, but should not exceed 40 characters.
103
- # @param [Google::Apis::RequestOptions] options
104
- # Request-specific options
105
- #
106
- # @yield [result, err] Result & error if block supplied
107
- # @yieldparam result [Google::Apis::SheetsV4::BatchUpdateSpreadsheetResponse] parsed result object
108
- # @yieldparam err [StandardError] error object if request failed
109
- #
110
- # @return [Google::Apis::SheetsV4::BatchUpdateSpreadsheetResponse]
111
- #
112
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
113
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
114
- # @raise [Google::Apis::AuthorizationError] Authorization is required
115
- def batch_update_spreadsheet(spreadsheet_id, batch_update_spreadsheet_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
116
- command = make_simple_command(:post, 'v4/spreadsheets/{spreadsheetId}:batchUpdate', options)
117
- command.request_representation = Google::Apis::SheetsV4::BatchUpdateSpreadsheetRequest::Representation
118
- command.request_object = batch_update_spreadsheet_request_object
119
- command.response_representation = Google::Apis::SheetsV4::BatchUpdateSpreadsheetResponse::Representation
120
- command.response_class = Google::Apis::SheetsV4::BatchUpdateSpreadsheetResponse
121
- command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
122
- command.query['fields'] = fields unless fields.nil?
123
- command.query['quotaUser'] = quota_user unless quota_user.nil?
124
- execute_or_queue_command(command, &block)
125
- end
126
-
127
49
  # Returns the spreadsheet at the given ID.
128
50
  # The caller must specify the spreadsheet ID.
129
51
  # By default, data within grids will not be returned.
@@ -147,11 +69,11 @@ module Google
147
69
  # @param [Boolean] include_grid_data
148
70
  # True if grid data should be returned.
149
71
  # This parameter is ignored if a field mask was set in the request.
150
- # @param [String] fields
151
- # Selector specifying which fields to include in a partial response.
152
72
  # @param [String] quota_user
153
73
  # Available to use for quota purposes for server-side applications. Can be any
154
74
  # 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.
155
77
  # @param [Google::Apis::RequestOptions] options
156
78
  # Request-specific options
157
79
  #
@@ -164,88 +86,93 @@ module Google
164
86
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
165
87
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
166
88
  # @raise [Google::Apis::AuthorizationError] Authorization is required
167
- def get_spreadsheet(spreadsheet_id, ranges: nil, include_grid_data: nil, fields: nil, quota_user: nil, options: nil, &block)
89
+ def get_spreadsheet(spreadsheet_id, ranges: nil, include_grid_data: nil, quota_user: nil, fields: nil, options: nil, &block)
168
90
  command = make_simple_command(:get, 'v4/spreadsheets/{spreadsheetId}', options)
169
91
  command.response_representation = Google::Apis::SheetsV4::Spreadsheet::Representation
170
92
  command.response_class = Google::Apis::SheetsV4::Spreadsheet
171
93
  command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
172
94
  command.query['ranges'] = ranges unless ranges.nil?
173
95
  command.query['includeGridData'] = include_grid_data unless include_grid_data.nil?
174
- command.query['fields'] = fields unless fields.nil?
175
96
  command.query['quotaUser'] = quota_user unless quota_user.nil?
97
+ command.query['fields'] = fields unless fields.nil?
176
98
  execute_or_queue_command(command, &block)
177
99
  end
178
100
 
179
- # Copies a single sheet from a spreadsheet to another spreadsheet.
180
- # Returns the properties of the newly created sheet.
181
- # @param [String] spreadsheet_id
182
- # The ID of the spreadsheet containing the sheet to copy.
183
- # @param [Fixnum] sheet_id
184
- # The ID of the sheet to copy.
185
- # @param [Google::Apis::SheetsV4::CopySheetToAnotherSpreadsheetRequest] copy_sheet_to_another_spreadsheet_request_object
186
- # @param [String] fields
187
- # Selector specifying which fields to include in a partial response.
101
+ # Creates a spreadsheet, returning the newly created spreadsheet.
102
+ # @param [Google::Apis::SheetsV4::Spreadsheet] spreadsheet_object
188
103
  # @param [String] quota_user
189
104
  # Available to use for quota purposes for server-side applications. Can be any
190
105
  # 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.
191
108
  # @param [Google::Apis::RequestOptions] options
192
109
  # Request-specific options
193
110
  #
194
111
  # @yield [result, err] Result & error if block supplied
195
- # @yieldparam result [Google::Apis::SheetsV4::SheetProperties] parsed result object
112
+ # @yieldparam result [Google::Apis::SheetsV4::Spreadsheet] parsed result object
196
113
  # @yieldparam err [StandardError] error object if request failed
197
114
  #
198
- # @return [Google::Apis::SheetsV4::SheetProperties]
115
+ # @return [Google::Apis::SheetsV4::Spreadsheet]
199
116
  #
200
117
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
201
118
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
202
119
  # @raise [Google::Apis::AuthorizationError] Authorization is required
203
- def copy_spreadsheet(spreadsheet_id, sheet_id, copy_sheet_to_another_spreadsheet_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
204
- command = make_simple_command(:post, 'v4/spreadsheets/{spreadsheetId}/sheets/{sheetId}:copyTo', options)
205
- command.request_representation = Google::Apis::SheetsV4::CopySheetToAnotherSpreadsheetRequest::Representation
206
- command.request_object = copy_sheet_to_another_spreadsheet_request_object
207
- command.response_representation = Google::Apis::SheetsV4::SheetProperties::Representation
208
- command.response_class = Google::Apis::SheetsV4::SheetProperties
209
- command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
210
- command.params['sheetId'] = sheet_id unless sheet_id.nil?
211
- command.query['fields'] = fields unless fields.nil?
120
+ def create_spreadsheet(spreadsheet_object = nil, quota_user: nil, fields: nil, options: nil, &block)
121
+ command = make_simple_command(:post, 'v4/spreadsheets', options)
122
+ command.request_representation = Google::Apis::SheetsV4::Spreadsheet::Representation
123
+ command.request_object = spreadsheet_object
124
+ command.response_representation = Google::Apis::SheetsV4::Spreadsheet::Representation
125
+ command.response_class = Google::Apis::SheetsV4::Spreadsheet
212
126
  command.query['quotaUser'] = quota_user unless quota_user.nil?
127
+ command.query['fields'] = fields unless fields.nil?
213
128
  execute_or_queue_command(command, &block)
214
129
  end
215
130
 
216
- # Clears one or more ranges of values from a spreadsheet.
217
- # The caller must specify the spreadsheet ID and one or more ranges.
218
- # Only values are cleared -- all other properties of the cell (such as
219
- # formatting, data validation, etc..) are kept.
131
+ # Applies one or more updates to the spreadsheet.
132
+ # Each request is validated before
133
+ # being applied. If any request is not valid then the entire request will
134
+ # fail and nothing will be applied.
135
+ # Some requests have replies to
136
+ # give you some information about how
137
+ # they are applied. The replies will mirror the requests. For example,
138
+ # if you applied 4 updates and the 3rd one had a reply, then the
139
+ # response will have 2 empty replies, the actual reply, and another empty
140
+ # reply, in that order.
141
+ # Due to the collaborative nature of spreadsheets, it is not guaranteed that
142
+ # the spreadsheet will reflect exactly your changes after this completes,
143
+ # however it is guaranteed that the updates in the request will be
144
+ # applied together atomically. Your changes may be altered with respect to
145
+ # collaborator changes. If there are no collaborators, the spreadsheet
146
+ # should reflect your changes.
220
147
  # @param [String] spreadsheet_id
221
- # The ID of the spreadsheet to update.
222
- # @param [Google::Apis::SheetsV4::BatchClearValuesRequest] batch_clear_values_request_object
223
- # @param [String] fields
224
- # Selector specifying which fields to include in a partial response.
148
+ # The spreadsheet to apply the updates to.
149
+ # @param [Google::Apis::SheetsV4::BatchUpdateSpreadsheetRequest] batch_update_spreadsheet_request_object
225
150
  # @param [String] quota_user
226
151
  # Available to use for quota purposes for server-side applications. Can be any
227
152
  # 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.
228
155
  # @param [Google::Apis::RequestOptions] options
229
156
  # Request-specific options
230
157
  #
231
158
  # @yield [result, err] Result & error if block supplied
232
- # @yieldparam result [Google::Apis::SheetsV4::BatchClearValuesResponse] parsed result object
159
+ # @yieldparam result [Google::Apis::SheetsV4::BatchUpdateSpreadsheetResponse] parsed result object
233
160
  # @yieldparam err [StandardError] error object if request failed
234
161
  #
235
- # @return [Google::Apis::SheetsV4::BatchClearValuesResponse]
162
+ # @return [Google::Apis::SheetsV4::BatchUpdateSpreadsheetResponse]
236
163
  #
237
164
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
238
165
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
239
166
  # @raise [Google::Apis::AuthorizationError] Authorization is required
240
- def batch_clear_values(spreadsheet_id, batch_clear_values_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
241
- command = make_simple_command(:post, 'v4/spreadsheets/{spreadsheetId}/values:batchClear', options)
242
- command.request_representation = Google::Apis::SheetsV4::BatchClearValuesRequest::Representation
243
- command.request_object = batch_clear_values_request_object
244
- command.response_representation = Google::Apis::SheetsV4::BatchClearValuesResponse::Representation
245
- command.response_class = Google::Apis::SheetsV4::BatchClearValuesResponse
167
+ def batch_update_spreadsheet(spreadsheet_id, batch_update_spreadsheet_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
168
+ command = make_simple_command(:post, 'v4/spreadsheets/{spreadsheetId}:batchUpdate', options)
169
+ command.request_representation = Google::Apis::SheetsV4::BatchUpdateSpreadsheetRequest::Representation
170
+ command.request_object = batch_update_spreadsheet_request_object
171
+ command.response_representation = Google::Apis::SheetsV4::BatchUpdateSpreadsheetResponse::Representation
172
+ command.response_class = Google::Apis::SheetsV4::BatchUpdateSpreadsheetResponse
246
173
  command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
247
- command.query['fields'] = fields unless fields.nil?
248
174
  command.query['quotaUser'] = quota_user unless quota_user.nil?
175
+ command.query['fields'] = fields unless fields.nil?
249
176
  execute_or_queue_command(command, &block)
250
177
  end
251
178
 
@@ -270,11 +197,11 @@ module Google
270
197
  # `[[1,2],[3,4]]`,
271
198
  # whereas requesting `range=A1:B2,majorDimension=COLUMNS` will return
272
199
  # `[[1,3],[2,4]]`.
273
- # @param [String] fields
274
- # Selector specifying which fields to include in a partial response.
275
200
  # @param [String] quota_user
276
201
  # Available to use for quota purposes for server-side applications. Can be any
277
202
  # 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.
278
205
  # @param [Google::Apis::RequestOptions] options
279
206
  # Request-specific options
280
207
  #
@@ -287,7 +214,7 @@ module Google
287
214
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
288
215
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
289
216
  # @raise [Google::Apis::AuthorizationError] Authorization is required
290
- 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)
217
+ def get_spreadsheet_values(spreadsheet_id, range, value_render_option: nil, date_time_render_option: nil, major_dimension: nil, quota_user: nil, fields: nil, options: nil, &block)
291
218
  command = make_simple_command(:get, 'v4/spreadsheets/{spreadsheetId}/values/{range}', options)
292
219
  command.response_representation = Google::Apis::SheetsV4::ValueRange::Representation
293
220
  command.response_class = Google::Apis::SheetsV4::ValueRange
@@ -296,8 +223,8 @@ module Google
296
223
  command.query['valueRenderOption'] = value_render_option unless value_render_option.nil?
297
224
  command.query['dateTimeRenderOption'] = date_time_render_option unless date_time_render_option.nil?
298
225
  command.query['majorDimension'] = major_dimension unless major_dimension.nil?
299
- command.query['fields'] = fields unless fields.nil?
300
226
  command.query['quotaUser'] = quota_user unless quota_user.nil?
227
+ command.query['fields'] = fields unless fields.nil?
301
228
  execute_or_queue_command(command, &block)
302
229
  end
303
230
 
@@ -309,6 +236,13 @@ module Google
309
236
  # @param [String] range
310
237
  # The A1 notation of the values to update.
311
238
  # @param [Google::Apis::SheetsV4::ValueRange] value_range_object
239
+ # @param [Boolean] include_values_in_response
240
+ # Determines if the update response should include the values
241
+ # of the cells that were updated. By default, responses
242
+ # do not include the updated values.
243
+ # If the range to write was larger than than the range actually written,
244
+ # the response will include all values in the requested range (excluding
245
+ # trailing empty rows and columns).
312
246
  # @param [String] response_value_render_option
313
247
  # Determines how values in the response should be rendered.
314
248
  # The default render option is ValueRenderOption.FORMATTED_VALUE.
@@ -319,18 +253,11 @@ module Google
319
253
  # rendered. This is ignored if response_value_render_option is
320
254
  # FORMATTED_VALUE.
321
255
  # The default dateTime render option is [DateTimeRenderOption.SERIAL_NUMBER].
322
- # @param [Boolean] include_values_in_response
323
- # Determines if the update response should include the values
324
- # of the cells that were updated. By default, responses
325
- # do not include the updated values.
326
- # If the range to write was larger than than the range actually written,
327
- # the response will include all values in the requested range (excluding
328
- # trailing empty rows and columns).
329
- # @param [String] fields
330
- # Selector specifying which fields to include in a partial response.
331
256
  # @param [String] quota_user
332
257
  # Available to use for quota purposes for server-side applications. Can be any
333
258
  # 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.
334
261
  # @param [Google::Apis::RequestOptions] options
335
262
  # Request-specific options
336
263
  #
@@ -343,7 +270,7 @@ module Google
343
270
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
344
271
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
345
272
  # @raise [Google::Apis::AuthorizationError] Authorization is required
346
- 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)
273
+ def update_spreadsheet_value(spreadsheet_id, range, value_range_object = nil, include_values_in_response: nil, response_value_render_option: nil, value_input_option: nil, response_date_time_render_option: nil, quota_user: nil, fields: nil, options: nil, &block)
347
274
  command = make_simple_command(:put, 'v4/spreadsheets/{spreadsheetId}/values/{range}', options)
348
275
  command.request_representation = Google::Apis::SheetsV4::ValueRange::Representation
349
276
  command.request_object = value_range_object
@@ -351,12 +278,12 @@ module Google
351
278
  command.response_class = Google::Apis::SheetsV4::UpdateValuesResponse
352
279
  command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
353
280
  command.params['range'] = range unless range.nil?
281
+ command.query['includeValuesInResponse'] = include_values_in_response unless include_values_in_response.nil?
354
282
  command.query['responseValueRenderOption'] = response_value_render_option unless response_value_render_option.nil?
355
283
  command.query['valueInputOption'] = value_input_option unless value_input_option.nil?
356
284
  command.query['responseDateTimeRenderOption'] = response_date_time_render_option unless response_date_time_render_option.nil?
357
- command.query['includeValuesInResponse'] = include_values_in_response unless include_values_in_response.nil?
358
- command.query['fields'] = fields unless fields.nil?
359
285
  command.query['quotaUser'] = quota_user unless quota_user.nil?
286
+ command.query['fields'] = fields unless fields.nil?
360
287
  execute_or_queue_command(command, &block)
361
288
  end
362
289
 
@@ -367,11 +294,11 @@ module Google
367
294
  # @param [String] spreadsheet_id
368
295
  # The ID of the spreadsheet to update.
369
296
  # @param [Google::Apis::SheetsV4::BatchUpdateValuesRequest] batch_update_values_request_object
370
- # @param [String] fields
371
- # Selector specifying which fields to include in a partial response.
372
297
  # @param [String] quota_user
373
298
  # Available to use for quota purposes for server-side applications. Can be any
374
299
  # 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.
375
302
  # @param [Google::Apis::RequestOptions] options
376
303
  # Request-specific options
377
304
  #
@@ -384,15 +311,54 @@ module Google
384
311
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
385
312
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
386
313
  # @raise [Google::Apis::AuthorizationError] Authorization is required
387
- def batch_update_values(spreadsheet_id, batch_update_values_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
314
+ def batch_update_values(spreadsheet_id, batch_update_values_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
388
315
  command = make_simple_command(:post, 'v4/spreadsheets/{spreadsheetId}/values:batchUpdate', options)
389
316
  command.request_representation = Google::Apis::SheetsV4::BatchUpdateValuesRequest::Representation
390
317
  command.request_object = batch_update_values_request_object
391
318
  command.response_representation = Google::Apis::SheetsV4::BatchUpdateValuesResponse::Representation
392
319
  command.response_class = Google::Apis::SheetsV4::BatchUpdateValuesResponse
393
320
  command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
321
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
394
322
  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?
395
360
  command.query['quotaUser'] = quota_user unless quota_user.nil?
361
+ command.query['fields'] = fields unless fields.nil?
396
362
  execute_or_queue_command(command, &block)
397
363
  end
398
364
 
@@ -417,11 +383,11 @@ module Google
417
383
  # `[[1,2],[3,4]]`,
418
384
  # whereas requesting `range=A1:B2,majorDimension=COLUMNS` will return
419
385
  # `[[1,3],[2,4]]`.
420
- # @param [String] fields
421
- # Selector specifying which fields to include in a partial response.
422
386
  # @param [String] quota_user
423
387
  # Available to use for quota purposes for server-side applications. Can be any
424
388
  # 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.
425
391
  # @param [Google::Apis::RequestOptions] options
426
392
  # Request-specific options
427
393
  #
@@ -434,7 +400,7 @@ module Google
434
400
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
435
401
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
436
402
  # @raise [Google::Apis::AuthorizationError] Authorization is required
437
- def batch_get_spreadsheet_values(spreadsheet_id, value_render_option: nil, date_time_render_option: nil, ranges: nil, major_dimension: nil, fields: nil, quota_user: nil, options: nil, &block)
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)
438
404
  command = make_simple_command(:get, 'v4/spreadsheets/{spreadsheetId}/values:batchGet', options)
439
405
  command.response_representation = Google::Apis::SheetsV4::BatchGetValuesResponse::Representation
440
406
  command.response_class = Google::Apis::SheetsV4::BatchGetValuesResponse
@@ -443,47 +409,8 @@ module Google
443
409
  command.query['dateTimeRenderOption'] = date_time_render_option unless date_time_render_option.nil?
444
410
  command.query['ranges'] = ranges unless ranges.nil?
445
411
  command.query['majorDimension'] = major_dimension unless major_dimension.nil?
446
- command.query['fields'] = fields unless fields.nil?
447
412
  command.query['quotaUser'] = quota_user unless quota_user.nil?
448
- execute_or_queue_command(command, &block)
449
- end
450
-
451
- # Clears values from a spreadsheet.
452
- # The caller must specify the spreadsheet ID and range.
453
- # Only values are cleared -- all other properties of the cell (such as
454
- # formatting, data validation, etc..) are kept.
455
- # @param [String] spreadsheet_id
456
- # The ID of the spreadsheet to update.
457
- # @param [String] range
458
- # The A1 notation of the values to clear.
459
- # @param [Google::Apis::SheetsV4::ClearValuesRequest] clear_values_request_object
460
- # @param [String] fields
461
- # Selector specifying which fields to include in a partial response.
462
- # @param [String] quota_user
463
- # Available to use for quota purposes for server-side applications. Can be any
464
- # arbitrary string assigned to a user, but should not exceed 40 characters.
465
- # @param [Google::Apis::RequestOptions] options
466
- # Request-specific options
467
- #
468
- # @yield [result, err] Result & error if block supplied
469
- # @yieldparam result [Google::Apis::SheetsV4::ClearValuesResponse] parsed result object
470
- # @yieldparam err [StandardError] error object if request failed
471
- #
472
- # @return [Google::Apis::SheetsV4::ClearValuesResponse]
473
- #
474
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
475
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
476
- # @raise [Google::Apis::AuthorizationError] Authorization is required
477
- def clear_values(spreadsheet_id, range, clear_values_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
478
- command = make_simple_command(:post, 'v4/spreadsheets/{spreadsheetId}/values/{range}:clear', options)
479
- command.request_representation = Google::Apis::SheetsV4::ClearValuesRequest::Representation
480
- command.request_object = clear_values_request_object
481
- command.response_representation = Google::Apis::SheetsV4::ClearValuesResponse::Representation
482
- command.response_class = Google::Apis::SheetsV4::ClearValuesResponse
483
- command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
484
- command.params['range'] = range unless range.nil?
485
413
  command.query['fields'] = fields unless fields.nil?
486
- command.query['quotaUser'] = quota_user unless quota_user.nil?
487
414
  execute_or_queue_command(command, &block)
488
415
  end
489
416
 
@@ -506,13 +433,6 @@ module Google
506
433
  # The A1 notation of a range to search for a logical table of data.
507
434
  # Values will be appended after the last row of the table.
508
435
  # @param [Google::Apis::SheetsV4::ValueRange] value_range_object
509
- # @param [String] value_input_option
510
- # How the input data should be interpreted.
511
- # @param [String] response_date_time_render_option
512
- # Determines how dates, times, and durations in the response should be
513
- # rendered. This is ignored if response_value_render_option is
514
- # FORMATTED_VALUE.
515
- # The default dateTime render option is [DateTimeRenderOption.SERIAL_NUMBER].
516
436
  # @param [Boolean] include_values_in_response
517
437
  # Determines if the update response should include the values
518
438
  # of the cells that were appended. By default, responses
@@ -522,11 +442,18 @@ module Google
522
442
  # The default render option is ValueRenderOption.FORMATTED_VALUE.
523
443
  # @param [String] insert_data_option
524
444
  # How the input data should be inserted.
525
- # @param [String] fields
526
- # Selector specifying which fields to include in a partial response.
445
+ # @param [String] value_input_option
446
+ # How the input data should be interpreted.
447
+ # @param [String] response_date_time_render_option
448
+ # Determines how dates, times, and durations in the response should be
449
+ # rendered. This is ignored if response_value_render_option is
450
+ # FORMATTED_VALUE.
451
+ # The default dateTime render option is [DateTimeRenderOption.SERIAL_NUMBER].
527
452
  # @param [String] quota_user
528
453
  # Available to use for quota purposes for server-side applications. Can be any
529
454
  # 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.
530
457
  # @param [Google::Apis::RequestOptions] options
531
458
  # Request-specific options
532
459
  #
@@ -539,7 +466,7 @@ module Google
539
466
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
540
467
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
541
468
  # @raise [Google::Apis::AuthorizationError] Authorization is required
542
- def append_spreadsheet_value(spreadsheet_id, range, value_range_object = nil, value_input_option: nil, response_date_time_render_option: nil, include_values_in_response: nil, response_value_render_option: nil, insert_data_option: nil, fields: nil, quota_user: 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, quota_user: nil, fields: nil, options: nil, &block)
543
470
  command = make_simple_command(:post, 'v4/spreadsheets/{spreadsheetId}/values/{range}:append', options)
544
471
  command.request_representation = Google::Apis::SheetsV4::ValueRange::Representation
545
472
  command.request_object = value_range_object
@@ -547,13 +474,86 @@ module Google
547
474
  command.response_class = Google::Apis::SheetsV4::AppendValuesResponse
548
475
  command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
549
476
  command.params['range'] = range unless range.nil?
550
- command.query['valueInputOption'] = value_input_option unless value_input_option.nil?
551
- command.query['responseDateTimeRenderOption'] = response_date_time_render_option unless response_date_time_render_option.nil?
552
477
  command.query['includeValuesInResponse'] = include_values_in_response unless include_values_in_response.nil?
553
478
  command.query['responseValueRenderOption'] = response_value_render_option unless response_value_render_option.nil?
554
479
  command.query['insertDataOption'] = insert_data_option unless insert_data_option.nil?
480
+ command.query['valueInputOption'] = value_input_option unless value_input_option.nil?
481
+ command.query['responseDateTimeRenderOption'] = response_date_time_render_option unless response_date_time_render_option.nil?
482
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
483
+ command.query['fields'] = fields unless fields.nil?
484
+ execute_or_queue_command(command, &block)
485
+ end
486
+
487
+ # Clears one or more ranges of values from a spreadsheet.
488
+ # The caller must specify the spreadsheet ID and one or more ranges.
489
+ # Only values are cleared -- all other properties of the cell (such as
490
+ # formatting, data validation, etc..) are kept.
491
+ # @param [String] spreadsheet_id
492
+ # The ID of the spreadsheet to update.
493
+ # @param [Google::Apis::SheetsV4::BatchClearValuesRequest] batch_clear_values_request_object
494
+ # @param [String] quota_user
495
+ # Available to use for quota purposes for server-side applications. Can be any
496
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
497
+ # @param [String] fields
498
+ # Selector specifying which fields to include in a partial response.
499
+ # @param [Google::Apis::RequestOptions] options
500
+ # Request-specific options
501
+ #
502
+ # @yield [result, err] Result & error if block supplied
503
+ # @yieldparam result [Google::Apis::SheetsV4::BatchClearValuesResponse] parsed result object
504
+ # @yieldparam err [StandardError] error object if request failed
505
+ #
506
+ # @return [Google::Apis::SheetsV4::BatchClearValuesResponse]
507
+ #
508
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
509
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
510
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
511
+ def batch_clear_values(spreadsheet_id, batch_clear_values_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
512
+ command = make_simple_command(:post, 'v4/spreadsheets/{spreadsheetId}/values:batchClear', options)
513
+ command.request_representation = Google::Apis::SheetsV4::BatchClearValuesRequest::Representation
514
+ command.request_object = batch_clear_values_request_object
515
+ command.response_representation = Google::Apis::SheetsV4::BatchClearValuesResponse::Representation
516
+ command.response_class = Google::Apis::SheetsV4::BatchClearValuesResponse
517
+ command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
518
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
555
519
  command.query['fields'] = fields unless fields.nil?
520
+ execute_or_queue_command(command, &block)
521
+ end
522
+
523
+ # Copies a single sheet from a spreadsheet to another spreadsheet.
524
+ # Returns the properties of the newly created sheet.
525
+ # @param [String] spreadsheet_id
526
+ # The ID of the spreadsheet containing the sheet to copy.
527
+ # @param [Fixnum] sheet_id
528
+ # The ID of the sheet to copy.
529
+ # @param [Google::Apis::SheetsV4::CopySheetToAnotherSpreadsheetRequest] copy_sheet_to_another_spreadsheet_request_object
530
+ # @param [String] quota_user
531
+ # Available to use for quota purposes for server-side applications. Can be any
532
+ # 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
+ # @param [Google::Apis::RequestOptions] options
536
+ # Request-specific options
537
+ #
538
+ # @yield [result, err] Result & error if block supplied
539
+ # @yieldparam result [Google::Apis::SheetsV4::SheetProperties] parsed result object
540
+ # @yieldparam err [StandardError] error object if request failed
541
+ #
542
+ # @return [Google::Apis::SheetsV4::SheetProperties]
543
+ #
544
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
545
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
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)
548
+ command = make_simple_command(:post, 'v4/spreadsheets/{spreadsheetId}/sheets/{sheetId}:copyTo', options)
549
+ command.request_representation = Google::Apis::SheetsV4::CopySheetToAnotherSpreadsheetRequest::Representation
550
+ command.request_object = copy_sheet_to_another_spreadsheet_request_object
551
+ command.response_representation = Google::Apis::SheetsV4::SheetProperties::Representation
552
+ command.response_class = Google::Apis::SheetsV4::SheetProperties
553
+ command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
554
+ command.params['sheetId'] = sheet_id unless sheet_id.nil?
556
555
  command.query['quotaUser'] = quota_user unless quota_user.nil?
556
+ command.query['fields'] = fields unless fields.nil?
557
557
  execute_or_queue_command(command, &block)
558
558
  end
559
559