google-api-client 0.9.4 → 0.9.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (134) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +5 -0
  3. data/README.md +34 -0
  4. data/api_names.yaml +3 -0
  5. data/api_names_out.yaml +1058 -20
  6. data/bin/generate-api +1 -1
  7. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  8. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +203 -6
  9. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +78 -0
  10. data/generated/google/apis/adexchangebuyer_v1_4/service.rb +36 -0
  11. data/generated/google/apis/admin_directory_v1.rb +1 -1
  12. data/generated/google/apis/adsense_v1_4.rb +1 -1
  13. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  14. data/generated/google/apis/androidenterprise_v1.rb +2 -3
  15. data/generated/google/apis/androidenterprise_v1/classes.rb +11 -4
  16. data/generated/google/apis/androidenterprise_v1/representations.rb +1 -0
  17. data/generated/google/apis/androidenterprise_v1/service.rb +5 -6
  18. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  19. data/generated/google/apis/androidpublisher_v2/classes.rb +47 -0
  20. data/generated/google/apis/androidpublisher_v2/representations.rb +6 -0
  21. data/generated/google/apis/appengine_v1beta5.rb +2 -3
  22. data/generated/google/apis/appengine_v1beta5/classes.rb +143 -8
  23. data/generated/google/apis/appengine_v1beta5/representations.rb +42 -0
  24. data/generated/google/apis/appengine_v1beta5/service.rb +48 -6
  25. data/generated/google/apis/appstate_v1.rb +1 -1
  26. data/generated/google/apis/bigquery_v2.rb +1 -1
  27. data/generated/google/apis/bigquery_v2/classes.rb +68 -14
  28. data/generated/google/apis/bigquery_v2/representations.rb +30 -0
  29. data/generated/google/apis/books_v1.rb +1 -1
  30. data/generated/google/apis/books_v1/classes.rb +68 -3
  31. data/generated/google/apis/books_v1/representations.rb +21 -0
  32. data/generated/google/apis/calendar_v3.rb +2 -2
  33. data/generated/google/apis/calendar_v3/service.rb +1 -1
  34. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  35. data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
  36. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  37. data/generated/google/apis/cloudresourcemanager_v1/service.rb +2 -2
  38. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  39. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +2 -2
  40. data/generated/google/apis/clouduseraccounts_beta.rb +1 -1
  41. data/generated/google/apis/clouduseraccounts_beta/classes.rb +1 -1
  42. data/generated/google/apis/compute_beta.rb +1 -1
  43. data/generated/google/apis/compute_beta/classes.rb +138 -108
  44. data/generated/google/apis/compute_beta/representations.rb +16 -18
  45. data/generated/google/apis/compute_beta/service.rb +52 -2
  46. data/generated/google/apis/compute_v1.rb +1 -1
  47. data/generated/google/apis/compute_v1/classes.rb +55 -74
  48. data/generated/google/apis/compute_v1/representations.rb +14 -18
  49. data/generated/google/apis/compute_v1/service.rb +45 -1
  50. data/generated/google/apis/container_v1.rb +3 -3
  51. data/generated/google/apis/container_v1/classes.rb +200 -42
  52. data/generated/google/apis/container_v1/representations.rb +54 -0
  53. data/generated/google/apis/container_v1/service.rb +31 -30
  54. data/generated/google/apis/content_v2.rb +1 -1
  55. data/generated/google/apis/datastore_v1beta2.rb +2 -2
  56. data/generated/google/apis/datastore_v1beta2/service.rb +1 -1
  57. data/generated/google/apis/deploymentmanager_v2.rb +2 -3
  58. data/generated/google/apis/deploymentmanager_v2/classes.rb +7 -1
  59. data/generated/google/apis/deploymentmanager_v2/representations.rb +1 -0
  60. data/generated/google/apis/deploymentmanager_v2/service.rb +26 -27
  61. data/generated/google/apis/dfareporting_v2_3.rb +2 -2
  62. data/generated/google/apis/dfareporting_v2_3/classes.rb +1 -1
  63. data/generated/google/apis/dfareporting_v2_3/service.rb +2 -2
  64. data/generated/google/apis/dns_v1.rb +1 -1
  65. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  66. data/generated/google/apis/doubleclicksearch_v2/classes.rb +6 -4
  67. data/generated/google/apis/drive_v2.rb +1 -1
  68. data/generated/google/apis/drive_v2/classes.rb +10 -4
  69. data/generated/google/apis/drive_v2/representations.rb +1 -0
  70. data/generated/google/apis/drive_v3.rb +1 -1
  71. data/generated/google/apis/drive_v3/classes.rb +7 -0
  72. data/generated/google/apis/drive_v3/representations.rb +1 -0
  73. data/generated/google/apis/fusiontables_v2.rb +1 -1
  74. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  75. data/generated/google/apis/games_management_v1management.rb +1 -1
  76. data/generated/google/apis/games_v1.rb +1 -1
  77. data/generated/google/apis/genomics_v1.rb +2 -2
  78. data/generated/google/apis/genomics_v1/classes.rb +770 -82
  79. data/generated/google/apis/genomics_v1/representations.rb +287 -24
  80. data/generated/google/apis/genomics_v1/service.rb +412 -13
  81. data/generated/google/apis/gmail_v1.rb +1 -1
  82. data/generated/google/apis/groupssettings_v1.rb +1 -1
  83. data/generated/google/apis/groupssettings_v1/classes.rb +13 -6
  84. data/generated/google/apis/groupssettings_v1/representations.rb +1 -0
  85. data/generated/google/apis/identitytoolkit_v3.rb +1 -1
  86. data/generated/google/apis/identitytoolkit_v3/classes.rb +50 -0
  87. data/generated/google/apis/identitytoolkit_v3/representations.rb +10 -0
  88. data/generated/google/apis/logging_v2beta1.rb +2 -3
  89. data/generated/google/apis/logging_v2beta1/classes.rb +219 -63
  90. data/generated/google/apis/logging_v2beta1/representations.rb +24 -1
  91. data/generated/google/apis/logging_v2beta1/service.rb +25 -32
  92. data/generated/google/apis/oauth2_v2.rb +2 -2
  93. data/generated/google/apis/oauth2_v2/service.rb +1 -1
  94. data/generated/google/apis/plus_domains_v1.rb +1 -1
  95. data/generated/google/apis/plus_v1.rb +1 -1
  96. data/generated/google/apis/pubsub_v1.rb +1 -1
  97. data/generated/google/apis/pubsub_v1/classes.rb +20 -12
  98. data/generated/google/apis/pubsub_v1/service.rb +32 -35
  99. data/generated/google/apis/reseller_v1.rb +1 -1
  100. data/generated/google/apis/reseller_v1/classes.rb +23 -9
  101. data/generated/google/apis/reseller_v1/representations.rb +2 -0
  102. data/generated/google/apis/sheets_v1.rb +43 -0
  103. data/generated/google/apis/sheets_v1/classes.rb +4542 -0
  104. data/generated/google/apis/sheets_v1/representations.rb +1703 -0
  105. data/generated/google/apis/sheets_v1/service.rb +363 -0
  106. data/generated/google/apis/sqladmin_v1beta4.rb +3 -2
  107. data/generated/google/apis/sqladmin_v1beta4/classes.rb +4 -3
  108. data/generated/google/apis/sqladmin_v1beta4/service.rb +2 -1
  109. data/generated/google/apis/storage_v1.rb +1 -1
  110. data/generated/google/apis/vision_v1.rb +2 -2
  111. data/generated/google/apis/vision_v1/classes.rb +11 -11
  112. data/generated/google/apis/vision_v1/service.rb +1 -1
  113. data/generated/google/apis/webmasters_v3.rb +2 -2
  114. data/generated/google/apis/webmasters_v3/classes.rb +7 -0
  115. data/generated/google/apis/webmasters_v3/representations.rb +1 -0
  116. data/generated/google/apis/webmasters_v3/service.rb +1 -1
  117. data/generated/google/apis/youtube_partner_v1.rb +37 -0
  118. data/generated/google/apis/youtube_partner_v1/classes.rb +3656 -0
  119. data/generated/google/apis/youtube_partner_v1/representations.rb +1452 -0
  120. data/generated/google/apis/youtube_partner_v1/service.rb +3165 -0
  121. data/generated/google/apis/youtube_v3.rb +3 -2
  122. data/generated/google/apis/youtube_v3/classes.rb +100 -3
  123. data/generated/google/apis/youtube_v3/representations.rb +50 -0
  124. data/generated/google/apis/youtube_v3/service.rb +2 -1
  125. data/generated/google/apis/youtubereporting_v1.rb +1 -1
  126. data/generated/google/apis/youtubereporting_v1/classes.rb +17 -0
  127. data/generated/google/apis/youtubereporting_v1/representations.rb +2 -0
  128. data/generated/google/apis/youtubereporting_v1/service.rb +21 -3
  129. data/google-api-client.gemspec +2 -0
  130. data/lib/google/apis.rb +12 -2
  131. data/lib/google/apis/version.rb +1 -1
  132. data/script/generate +5 -2
  133. data/spec/google/apis/logging_spec.rb +55 -0
  134. metadata +12 -4
@@ -0,0 +1,363 @@
1
+ # Copyright 2015 Google Inc.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'google/apis/core/base_service'
16
+ require 'google/apis/core/json_representation'
17
+ require 'google/apis/core/hashable'
18
+ require 'google/apis/errors'
19
+
20
+ module Google
21
+ module Apis
22
+ module SheetsV1
23
+ # Google Sheets API
24
+ #
25
+ # An API for reading and modifying Google Sheets.
26
+ #
27
+ # @example
28
+ # require 'google/apis/sheets_v1'
29
+ #
30
+ # Sheets = Google::Apis::SheetsV1 # Alias the module
31
+ # service = Sheets::SheetsService.new
32
+ #
33
+ # @see
34
+ class SheetsService < Google::Apis::Core::BaseService
35
+ # @return [String]
36
+ # API key. Your API key identifies your project and provides you with API access,
37
+ # quota, and reports. Required unless you provide an OAuth 2.0 token.
38
+ attr_accessor :key
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
+ def initialize
46
+ super('https://sheets.googleapis.com/', '')
47
+ end
48
+
49
+ # Returns the spreadsheet at the given id.
50
+ # The caller must specify the spreadsheet ID.
51
+ # By default, data within grids will not be returned.
52
+ # You can include grid data one of two ways: specify a field mask listing
53
+ # your desired fields (using the ?fields URL parameter in HTTP,
54
+ # or FieldMaskContext.response_mask in the request extensions in an RPC), or
55
+ # by setting the 'includeGridData' parameter to true. If a field mask is
56
+ # set, the 'includeGridData' parameter is ignored.
57
+ # For large spreadsheets, it is recommended to retrieve only the specific
58
+ # fields of the spreadsheet that you want.
59
+ # To retrieve only subsets of the spreadsheet, use the ?range URL
60
+ # parameter. Multiple ranges can be specified. Limiting the range will
61
+ # return only the portions of the spreadsheet that intersect the requested
62
+ # ranges. Ranges are specified using A1 notation.
63
+ # @param [String] spreadsheet_id
64
+ # The spreadsheet to request.
65
+ # @param [Array<String>, String] ranges
66
+ # The ranges to retrieve from the spreadsheet.
67
+ # @param [Boolean] include_grid_data
68
+ # True if grid data should be returned.
69
+ # This parameter is ignored if a field mask was set in the request.
70
+ # @param [String] quota_user
71
+ # Available to use for quota purposes for server-side applications. Can be any
72
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
73
+ # @param [String] fields
74
+ # Selector specifying which fields to include in a partial response.
75
+ # @param [Google::Apis::RequestOptions] options
76
+ # Request-specific options
77
+ #
78
+ # @yield [result, err] Result & error if block supplied
79
+ # @yieldparam result [Google::Apis::SheetsV1::Spreadsheet] parsed result object
80
+ # @yieldparam err [StandardError] error object if request failed
81
+ #
82
+ # @return [Google::Apis::SheetsV1::Spreadsheet]
83
+ #
84
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
85
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
86
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
87
+ def get_spreadsheet(spreadsheet_id, ranges: nil, include_grid_data: nil, quota_user: nil, fields: nil, options: nil, &block)
88
+ command = make_simple_command(:get, 'v1/spreadsheets/{spreadsheetId}', options)
89
+ command.response_representation = Google::Apis::SheetsV1::Spreadsheet::Representation
90
+ command.response_class = Google::Apis::SheetsV1::Spreadsheet
91
+ command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
92
+ command.query['ranges'] = ranges unless ranges.nil?
93
+ command.query['includeGridData'] = include_grid_data unless include_grid_data.nil?
94
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
95
+ command.query['fields'] = fields unless fields.nil?
96
+ execute_or_queue_command(command, &block)
97
+ end
98
+
99
+ # Applies one or more updates to the spreadsheet.
100
+ # Each request is validated before being applied. If any
101
+ # request is not valid then the entire request will fail and nothing
102
+ # will be applied.
103
+ # Some requests have "replies" to give you some information about how
104
+ # they applied. The replies will mirror the requests. For example,
105
+ # if you applied 4 updates and the 3rd one had a reply, then the
106
+ # response will have 2 empty replies, the actual reply, and another empty
107
+ # reply, in that order.
108
+ # Due to the collaborative nature of spreadsheets, it is not guaranteed that
109
+ # the spreadsheet will reflect exactly your changes after this completes,
110
+ # however it is guaranteed that all the updates in the request will be
111
+ # applied atomically. Your changes may be altered with respect to
112
+ # collaborator changes. If there are no collaborators, the spreadsheet
113
+ # should reflect your changes.
114
+ # @param [String] spreadsheet_id
115
+ # The spreadsheet to apply the updates to.
116
+ # @param [Google::Apis::SheetsV1::BatchUpdateSpreadsheetRequest] batch_update_spreadsheet_request_object
117
+ # @param [String] quota_user
118
+ # Available to use for quota purposes for server-side applications. Can be any
119
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
120
+ # @param [String] fields
121
+ # Selector specifying which fields to include in a partial response.
122
+ # @param [Google::Apis::RequestOptions] options
123
+ # Request-specific options
124
+ #
125
+ # @yield [result, err] Result & error if block supplied
126
+ # @yieldparam result [Google::Apis::SheetsV1::BatchUpdateSpreadsheetResponse] parsed result object
127
+ # @yieldparam err [StandardError] error object if request failed
128
+ #
129
+ # @return [Google::Apis::SheetsV1::BatchUpdateSpreadsheetResponse]
130
+ #
131
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
132
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
133
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
134
+ def batch_update_spreadsheet(spreadsheet_id, batch_update_spreadsheet_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
135
+ command = make_simple_command(:post, 'v1/spreadsheets/{spreadsheetId}:batchUpdate', options)
136
+ command.request_representation = Google::Apis::SheetsV1::BatchUpdateSpreadsheetRequest::Representation
137
+ command.request_object = batch_update_spreadsheet_request_object
138
+ command.response_representation = Google::Apis::SheetsV1::BatchUpdateSpreadsheetResponse::Representation
139
+ command.response_class = Google::Apis::SheetsV1::BatchUpdateSpreadsheetResponse
140
+ command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
141
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
142
+ command.query['fields'] = fields unless fields.nil?
143
+ execute_or_queue_command(command, &block)
144
+ end
145
+
146
+ # Sets values in a range of a spreadsheet.
147
+ # The caller must specify the spreadsheet ID, range, and valueInputOption.
148
+ # @param [String] spreadsheet_id
149
+ # The id of the spreadsheet to update.
150
+ # @param [String] range
151
+ # The A1 notation of the values to update.
152
+ # @param [Google::Apis::SheetsV1::ValueRange] value_range_object
153
+ # @param [String] value_input_option
154
+ # How the input data should be interpreted.
155
+ # @param [String] quota_user
156
+ # Available to use for quota purposes for server-side applications. Can be any
157
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
158
+ # @param [String] fields
159
+ # Selector specifying which fields to include in a partial response.
160
+ # @param [Google::Apis::RequestOptions] options
161
+ # Request-specific options
162
+ #
163
+ # @yield [result, err] Result & error if block supplied
164
+ # @yieldparam result [Google::Apis::SheetsV1::Empty] parsed result object
165
+ # @yieldparam err [StandardError] error object if request failed
166
+ #
167
+ # @return [Google::Apis::SheetsV1::Empty]
168
+ #
169
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
170
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
171
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
172
+ def update_spreadsheet_value(spreadsheet_id, range, value_range_object = nil, value_input_option: nil, quota_user: nil, fields: nil, options: nil, &block)
173
+ command = make_simple_command(:put, 'v1/spreadsheets/{spreadsheetId}/values/{range}', options)
174
+ command.request_representation = Google::Apis::SheetsV1::ValueRange::Representation
175
+ command.request_object = value_range_object
176
+ command.response_representation = Google::Apis::SheetsV1::Empty::Representation
177
+ command.response_class = Google::Apis::SheetsV1::Empty
178
+ command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
179
+ command.params['range'] = range unless range.nil?
180
+ command.query['valueInputOption'] = value_input_option unless value_input_option.nil?
181
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
182
+ command.query['fields'] = fields unless fields.nil?
183
+ execute_or_queue_command(command, &block)
184
+ end
185
+
186
+ # Returns one or more ranges of values from a spreadsheet.
187
+ # The caller must specify the spreadsheet ID and one or more ranges.
188
+ # @param [String] spreadsheet_id
189
+ # The id of the spreadsheet to retrieve data from.
190
+ # @param [String] date_time_render_option
191
+ # How dates, times, and durations should be represented in the output.
192
+ # This is ignored if valueRenderOption is FORMATTED_VALUE.
193
+ # @param [String] value_render_option
194
+ # How values should be represented in the output.
195
+ # @param [Array<String>, String] ranges
196
+ # The A1 notation of the values to retrieve.
197
+ # @param [String] major_dimension
198
+ # The major dimension that results should use.
199
+ # For example, if the spreadsheet data is: A1=1,B1=2,A2=3,B2=4,
200
+ # then requesting range=A1:B2,majorDimension=ROWS will return [[1,2],[3,4]],
201
+ # whereas requesting range=A1:B2,majorDimension=COLUMNS will return
202
+ # [[1,3],[2,4]].
203
+ # @param [String] quota_user
204
+ # Available to use for quota purposes for server-side applications. Can be any
205
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
206
+ # @param [String] fields
207
+ # Selector specifying which fields to include in a partial response.
208
+ # @param [Google::Apis::RequestOptions] options
209
+ # Request-specific options
210
+ #
211
+ # @yield [result, err] Result & error if block supplied
212
+ # @yieldparam result [Google::Apis::SheetsV1::BatchGetValuesResponse] parsed result object
213
+ # @yieldparam err [StandardError] error object if request failed
214
+ #
215
+ # @return [Google::Apis::SheetsV1::BatchGetValuesResponse]
216
+ #
217
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
218
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
219
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
220
+ def batch_spreadsheet_value_get(spreadsheet_id, date_time_render_option: nil, value_render_option: nil, ranges: nil, major_dimension: nil, quota_user: nil, fields: nil, options: nil, &block)
221
+ command = make_simple_command(:get, 'v1/spreadsheets/{spreadsheetId}/values:batchGet', options)
222
+ command.response_representation = Google::Apis::SheetsV1::BatchGetValuesResponse::Representation
223
+ command.response_class = Google::Apis::SheetsV1::BatchGetValuesResponse
224
+ command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
225
+ command.query['dateTimeRenderOption'] = date_time_render_option unless date_time_render_option.nil?
226
+ command.query['valueRenderOption'] = value_render_option unless value_render_option.nil?
227
+ command.query['ranges'] = ranges unless ranges.nil?
228
+ command.query['majorDimension'] = major_dimension unless major_dimension.nil?
229
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
230
+ command.query['fields'] = fields unless fields.nil?
231
+ execute_or_queue_command(command, &block)
232
+ end
233
+
234
+ # Returns a range of values from a spreadsheet.
235
+ # The caller must specify the spreadsheet ID and a range.
236
+ # @param [String] spreadsheet_id
237
+ # The id of the spreadsheet to retrieve data from.
238
+ # @param [String] range
239
+ # The A1 notation of the values to retrieve.
240
+ # @param [String] date_time_render_option
241
+ # How dates, times, and durations should be represented in the output.
242
+ # This is ignored if the valueRenderOption option is FORMATTED_VALUE.
243
+ # @param [String] value_render_option
244
+ # How values should be represented in the output.
245
+ # @param [String] major_dimension
246
+ # The major dimension that results should use.
247
+ # For example, if the spreadsheet data is: A1=1,B1=2,A2=3,B2=4,
248
+ # then requesting range=A1:B2,majorDimension=ROWS will return [[1,2],[3,4]],
249
+ # whereas requesting range=A1:B2,majorDimension=COLUMNS will return
250
+ # [[1,3],[2,4]].
251
+ # @param [String] quota_user
252
+ # Available to use for quota purposes for server-side applications. Can be any
253
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
254
+ # @param [String] fields
255
+ # Selector specifying which fields to include in a partial response.
256
+ # @param [Google::Apis::RequestOptions] options
257
+ # Request-specific options
258
+ #
259
+ # @yield [result, err] Result & error if block supplied
260
+ # @yieldparam result [Google::Apis::SheetsV1::ValueRange] parsed result object
261
+ # @yieldparam err [StandardError] error object if request failed
262
+ #
263
+ # @return [Google::Apis::SheetsV1::ValueRange]
264
+ #
265
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
266
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
267
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
268
+ def get_spreadsheet_value(spreadsheet_id, range, date_time_render_option: nil, value_render_option: nil, major_dimension: nil, quota_user: nil, fields: nil, options: nil, &block)
269
+ command = make_simple_command(:get, 'v1/spreadsheets/{spreadsheetId}/values/{range}', options)
270
+ command.response_representation = Google::Apis::SheetsV1::ValueRange::Representation
271
+ command.response_class = Google::Apis::SheetsV1::ValueRange
272
+ command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
273
+ command.params['range'] = range unless range.nil?
274
+ command.query['dateTimeRenderOption'] = date_time_render_option unless date_time_render_option.nil?
275
+ command.query['valueRenderOption'] = value_render_option unless value_render_option.nil?
276
+ command.query['majorDimension'] = major_dimension unless major_dimension.nil?
277
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
278
+ command.query['fields'] = fields unless fields.nil?
279
+ execute_or_queue_command(command, &block)
280
+ end
281
+
282
+ # Sets values in a range of a spreadsheet.
283
+ # The caller must specify the spreadsheet ID, valueInputOption, and one
284
+ # or more ValueRanges.
285
+ # @param [String] spreadsheet_id
286
+ # The id of the spreadsheet to update.
287
+ # @param [Google::Apis::SheetsV1::BatchUpdateValuesRequest] batch_update_values_request_object
288
+ # @param [String] quota_user
289
+ # Available to use for quota purposes for server-side applications. Can be any
290
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
291
+ # @param [String] fields
292
+ # Selector specifying which fields to include in a partial response.
293
+ # @param [Google::Apis::RequestOptions] options
294
+ # Request-specific options
295
+ #
296
+ # @yield [result, err] Result & error if block supplied
297
+ # @yieldparam result [Google::Apis::SheetsV1::Empty] parsed result object
298
+ # @yieldparam err [StandardError] error object if request failed
299
+ #
300
+ # @return [Google::Apis::SheetsV1::Empty]
301
+ #
302
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
303
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
304
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
305
+ def batch_update_values(spreadsheet_id, batch_update_values_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
306
+ command = make_simple_command(:post, 'v1/spreadsheets/{spreadsheetId}/values:batchUpdate', options)
307
+ command.request_representation = Google::Apis::SheetsV1::BatchUpdateValuesRequest::Representation
308
+ command.request_object = batch_update_values_request_object
309
+ command.response_representation = Google::Apis::SheetsV1::Empty::Representation
310
+ command.response_class = Google::Apis::SheetsV1::Empty
311
+ command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
312
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
313
+ command.query['fields'] = fields unless fields.nil?
314
+ execute_or_queue_command(command, &block)
315
+ end
316
+
317
+ # Copies a single sheet from a spreadsheet to another spreadsheet.
318
+ # Returns the properties of the newly created sheet.
319
+ # @param [String] spreadsheet_id
320
+ # The id of the spreadsheet containing the sheet to copy.
321
+ # @param [Fixnum] sheet_id
322
+ # The ID of the sheet to copy.
323
+ # @param [Google::Apis::SheetsV1::CopySheetToAnotherSpreadsheetRequest] copy_sheet_to_another_spreadsheet_request_object
324
+ # @param [String] quota_user
325
+ # Available to use for quota purposes for server-side applications. Can be any
326
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
327
+ # @param [String] fields
328
+ # Selector specifying which fields to include in a partial response.
329
+ # @param [Google::Apis::RequestOptions] options
330
+ # Request-specific options
331
+ #
332
+ # @yield [result, err] Result & error if block supplied
333
+ # @yieldparam result [Google::Apis::SheetsV1::SheetProperties] parsed result object
334
+ # @yieldparam err [StandardError] error object if request failed
335
+ #
336
+ # @return [Google::Apis::SheetsV1::SheetProperties]
337
+ #
338
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
339
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
340
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
341
+ def copy_spreadsheet_sheet_to(spreadsheet_id, sheet_id, copy_sheet_to_another_spreadsheet_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
342
+ command = make_simple_command(:post, 'v1/spreadsheets/{spreadsheetId}/sheets/{sheetId}:copyTo', options)
343
+ command.request_representation = Google::Apis::SheetsV1::CopySheetToAnotherSpreadsheetRequest::Representation
344
+ command.request_object = copy_sheet_to_another_spreadsheet_request_object
345
+ command.response_representation = Google::Apis::SheetsV1::SheetProperties::Representation
346
+ command.response_class = Google::Apis::SheetsV1::SheetProperties
347
+ command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
348
+ command.params['sheetId'] = sheet_id unless sheet_id.nil?
349
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
350
+ command.query['fields'] = fields unless fields.nil?
351
+ execute_or_queue_command(command, &block)
352
+ end
353
+
354
+ protected
355
+
356
+ def apply_command_defaults(command)
357
+ command.query['key'] = key unless key.nil?
358
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
359
+ end
360
+ end
361
+ end
362
+ end
363
+ end
@@ -20,12 +20,13 @@ module Google
20
20
  module Apis
21
21
  # Cloud SQL Administration API
22
22
  #
23
- # API for Cloud SQL database instance management.
23
+ # Creates and configures Cloud SQL instances, which provide fully-managed MySQL
24
+ # databases.
24
25
  #
25
26
  # @see https://cloud.google.com/sql/docs/reference/latest
26
27
  module SqladminV1beta4
27
28
  VERSION = 'V1beta4'
28
- REVISION = '20160222'
29
+ REVISION = '20160321'
29
30
 
30
31
  # View and manage your data across Google Cloud Platform services
31
32
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -386,8 +386,9 @@ module Google
386
386
  # @return [String]
387
387
  attr_accessor :current_disk_size
388
388
 
389
- # The database engine type and version. Can be MYSQL_5_5 or MYSQL_5_6. Defaults
390
- # to MYSQL_5_6. The databaseVersion can not be changed after instance creation.
389
+ # The database engine type and version. The databaseVersion can not be changed
390
+ # after instance creation. Can be MYSQL_5_5, MYSQL_5_6 or MYSQL_5_7. Defaults to
391
+ # MYSQL_5_6. MYSQL_5_7 is applicable only to Second Generation instances.
391
392
  # Corresponds to the JSON property `databaseVersion`
392
393
  # @return [String]
393
394
  attr_accessor :database_version
@@ -736,7 +737,7 @@ module Google
736
737
  attr_accessor :allowed_string_values
737
738
 
738
739
  # The database version this flag applies to. Can be MYSQL_5_5, MYSQL_5_6, or
739
- # both.
740
+ # MYSQL_5_7. MYSQL_5_7 is applicable only to Second Generation instances.
740
741
  # Corresponds to the JSON property `appliesTo`
741
742
  # @return [Array<String>]
742
743
  attr_accessor :applies_to
@@ -22,7 +22,8 @@ module Google
22
22
  module SqladminV1beta4
23
23
  # Cloud SQL Administration API
24
24
  #
25
- # API for Cloud SQL database instance management.
25
+ # Creates and configures Cloud SQL instances, which provide fully-managed MySQL
26
+ # databases.
26
27
  #
27
28
  # @example
28
29
  # require 'google/apis/sqladmin_v1beta4'
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/storage/docs/json_api/
26
26
  module StorageV1
27
27
  VERSION = 'V1'
28
- REVISION = '20160304'
28
+ REVISION = '20160330'
29
29
 
30
30
  # View and manage your data across Google Cloud Platform services
31
31
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -18,7 +18,7 @@ require 'google/apis/vision_v1/representations.rb'
18
18
 
19
19
  module Google
20
20
  module Apis
21
- # Cloud Vision API
21
+ # Google Cloud Vision API
22
22
  #
23
23
  # The Google Cloud Vision API allows developers to easily integrate Google
24
24
  # vision features, including image labeling, face, logo, and landmark detection,
@@ -28,7 +28,7 @@ module Google
28
28
  # @see https://cloud.google.com/vision/
29
29
  module VisionV1
30
30
  VERSION = 'V1'
31
- REVISION = '20160308'
31
+ REVISION = '20160413'
32
32
 
33
33
  # View and manage your data across Google Cloud Platform services
34
34
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -22,12 +22,12 @@ module Google
22
22
  module Apis
23
23
  module VisionV1
24
24
 
25
- # External image source (i.e. Google Cloud Storage image location).
25
+ # External image source (Google Cloud Storage image location).
26
26
  class ImageSource
27
27
  include Google::Apis::Core::Hashable
28
28
 
29
29
  # Google Cloud Storage image URI. It must be in the following form:
30
- # "gs://bucket_name/object_name". For more
30
+ # `gs://bucket_name/object_name`. For more
31
31
  # details, please see: https://cloud.google.com/storage/docs/reference-uris.
32
32
  # NOTE: Cloud Storage object versioning is not supported!
33
33
  # Corresponds to the JSON property `gcsImageUri`
@@ -44,12 +44,12 @@ module Google
44
44
  end
45
45
  end
46
46
 
47
- # Request for performing Vision tasks over a user-provided image, with
48
- # user-requested features.
47
+ # Request for performing Google Cloud Vision API tasks over a user-provided
48
+ # image, with user-requested features.
49
49
  class AnnotateImageRequest
50
50
  include Google::Apis::Core::Hashable
51
51
 
52
- # Client image to perform Vision tasks over.
52
+ # Client image to perform Google Cloud Vision API tasks over.
53
53
  # Corresponds to the JSON property `image`
54
54
  # @return [Google::Apis::VisionV1::Image]
55
55
  attr_accessor :image
@@ -342,7 +342,7 @@ module Google
342
342
  end
343
343
  end
344
344
 
345
- # A face annotation contains the results of face detection.
345
+ # A face annotation object contains the results of face detection.
346
346
  class FaceAnnotation
347
347
  include Google::Apis::Core::Hashable
348
348
 
@@ -1053,11 +1053,11 @@ module Google
1053
1053
  end
1054
1054
  end
1055
1055
 
1056
- # Client image to perform Vision tasks over.
1056
+ # Client image to perform Google Cloud Vision API tasks over.
1057
1057
  class Image
1058
1058
  include Google::Apis::Core::Hashable
1059
1059
 
1060
- # External image source (i.e. Google Cloud Storage image location).
1060
+ # External image source (Google Cloud Storage image location).
1061
1061
  # Corresponds to the JSON property `source`
1062
1062
  # @return [Google::Apis::VisionV1::ImageSource]
1063
1063
  attr_accessor :source
@@ -1098,9 +1098,9 @@ module Google
1098
1098
  end
1099
1099
 
1100
1100
  # The <em>Feature</em> indicates what type of image detection task to perform.
1101
- # Users describe the type of Vision tasks to perform over images by
1102
- # using <em>Feature</em>s. Features encode the Vision vertical to operate on
1103
- # and the number of top-scoring results to return.
1101
+ # Users describe the type of Google Cloud Vision API tasks to perform over
1102
+ # images by using <em>Feature</em>s. Features encode the Cloud Vision API
1103
+ # vertical to operate on and the number of top-scoring results to return.
1104
1104
  class Feature
1105
1105
  include Google::Apis::Core::Hashable
1106
1106