google-api-client 0.9.6 → 0.9.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (149) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +6 -0
  3. data/api_names.yaml +15 -0
  4. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  5. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +75 -12
  6. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +25 -5
  7. data/generated/google/apis/adexchangebuyer_v1_4/service.rb +6 -2
  8. data/generated/google/apis/adexchangeseller_v2_0.rb +1 -1
  9. data/generated/google/apis/admin_directory_v1/classes.rb +1 -1
  10. data/generated/google/apis/admin_directory_v1/representations.rb +1 -2
  11. data/generated/google/apis/adsense_v1_4.rb +1 -1
  12. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  13. data/generated/google/apis/analytics_v3.rb +1 -1
  14. data/generated/google/apis/analyticsreporting_v4.rb +37 -0
  15. data/generated/google/apis/analyticsreporting_v4/classes.rb +1385 -0
  16. data/generated/google/apis/analyticsreporting_v4/representations.rb +597 -0
  17. data/generated/google/apis/analyticsreporting_v4/service.rb +88 -0
  18. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  19. data/generated/google/apis/androidenterprise_v1/classes.rb +98 -2
  20. data/generated/google/apis/androidenterprise_v1/representations.rb +48 -0
  21. data/generated/google/apis/androidenterprise_v1/service.rb +63 -1
  22. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  23. data/generated/google/apis/androidpublisher_v2/classes.rb +268 -0
  24. data/generated/google/apis/androidpublisher_v2/representations.rb +142 -0
  25. data/generated/google/apis/androidpublisher_v2/service.rb +121 -0
  26. data/generated/google/apis/appstate_v1.rb +1 -1
  27. data/generated/google/apis/autoscaler_v1beta2.rb +1 -1
  28. data/generated/google/apis/autoscaler_v1beta2/classes.rb +10 -47
  29. data/generated/google/apis/autoscaler_v1beta2/representations.rb +1 -18
  30. data/generated/google/apis/autoscaler_v1beta2/service.rb +4 -4
  31. data/generated/google/apis/bigquery_v2.rb +1 -1
  32. data/generated/google/apis/bigquery_v2/classes.rb +97 -61
  33. data/generated/google/apis/bigquery_v2/representations.rb +23 -18
  34. data/generated/google/apis/calendar_v3.rb +1 -1
  35. data/generated/google/apis/classroom_v1.rb +23 -2
  36. data/generated/google/apis/classroom_v1/classes.rb +920 -6
  37. data/generated/google/apis/classroom_v1/representations.rb +419 -0
  38. data/generated/google/apis/classroom_v1/service.rb +507 -1
  39. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  40. data/generated/google/apis/cloudbuild_v1/classes.rb +30 -23
  41. data/generated/google/apis/cloudbuild_v1/representations.rb +4 -3
  42. data/generated/google/apis/cloudbuild_v1/service.rb +25 -25
  43. data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
  44. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  45. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  46. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +55 -0
  47. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +40 -0
  48. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +35 -0
  49. data/generated/google/apis/cloudtrace_v1.rb +11 -3
  50. data/generated/google/apis/cloudtrace_v1/classes.rb +5 -5
  51. data/generated/google/apis/cloudtrace_v1/service.rb +8 -6
  52. data/generated/google/apis/compute_beta.rb +2 -2
  53. data/generated/google/apis/compute_beta/classes.rb +162 -32
  54. data/generated/google/apis/compute_beta/representations.rb +58 -0
  55. data/generated/google/apis/compute_beta/service.rb +392 -267
  56. data/generated/google/apis/compute_v1.rb +2 -2
  57. data/generated/google/apis/compute_v1/classes.rb +21 -9
  58. data/generated/google/apis/compute_v1/representations.rb +1 -0
  59. data/generated/google/apis/compute_v1/service.rb +291 -253
  60. data/generated/google/apis/container_v1.rb +1 -1
  61. data/generated/google/apis/container_v1/classes.rb +148 -0
  62. data/generated/google/apis/container_v1/representations.rb +55 -0
  63. data/generated/google/apis/container_v1/service.rb +161 -0
  64. data/generated/google/apis/content_v2.rb +1 -1
  65. data/generated/google/apis/content_v2/classes.rb +18 -6
  66. data/generated/google/apis/content_v2/representations.rb +1 -0
  67. data/generated/google/apis/customsearch_v1.rb +1 -1
  68. data/generated/google/apis/dataproc_v1.rb +2 -11
  69. data/generated/google/apis/dataproc_v1/classes.rb +0 -19
  70. data/generated/google/apis/dataproc_v1/representations.rb +0 -13
  71. data/generated/google/apis/dataproc_v1/service.rb +8 -87
  72. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  73. data/generated/google/apis/dfareporting_v2_3.rb +1 -1
  74. data/generated/google/apis/dfareporting_v2_3/classes.rb +41 -32
  75. data/generated/google/apis/discovery_v1.rb +2 -2
  76. data/generated/google/apis/discovery_v1/service.rb +2 -2
  77. data/generated/google/apis/dns_v1.rb +2 -3
  78. data/generated/google/apis/dns_v1/service.rb +1 -2
  79. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  80. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  81. data/generated/google/apis/drive_v2.rb +3 -2
  82. data/generated/google/apis/drive_v2/service.rb +2 -1
  83. data/generated/google/apis/drive_v3.rb +3 -2
  84. data/generated/google/apis/drive_v3/service.rb +2 -1
  85. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  86. data/generated/google/apis/games_management_v1management.rb +1 -1
  87. data/generated/google/apis/games_management_v1management/classes.rb +34 -0
  88. data/generated/google/apis/games_management_v1management/representations.rb +16 -0
  89. data/generated/google/apis/games_v1.rb +1 -1
  90. data/generated/google/apis/games_v1/classes.rb +34 -0
  91. data/generated/google/apis/games_v1/representations.rb +16 -0
  92. data/generated/google/apis/games_v1/service.rb +212 -53
  93. data/generated/google/apis/genomics_v1.rb +1 -1
  94. data/generated/google/apis/genomics_v1/classes.rb +18 -0
  95. data/generated/google/apis/genomics_v1/representations.rb +3 -0
  96. data/generated/google/apis/genomics_v1/service.rb +2 -2
  97. data/generated/google/apis/gmail_v1.rb +1 -1
  98. data/generated/google/apis/identitytoolkit_v3.rb +1 -1
  99. data/generated/google/apis/identitytoolkit_v3/classes.rb +19 -7
  100. data/generated/google/apis/identitytoolkit_v3/representations.rb +3 -1
  101. data/generated/google/apis/mybusiness_v3.rb +32 -0
  102. data/generated/google/apis/mybusiness_v3/classes.rb +1864 -0
  103. data/generated/google/apis/mybusiness_v3/representations.rb +741 -0
  104. data/generated/google/apis/mybusiness_v3/service.rb +960 -0
  105. data/generated/google/apis/pagespeedonline_v2.rb +1 -1
  106. data/generated/google/apis/plus_domains_v1.rb +2 -2
  107. data/generated/google/apis/plus_domains_v1/service.rb +1 -1
  108. data/generated/google/apis/plus_v1.rb +2 -2
  109. data/generated/google/apis/plus_v1/service.rb +1 -1
  110. data/generated/google/apis/prediction_v1_6.rb +4 -1
  111. data/generated/google/apis/proximitybeacon_v1beta1.rb +5 -2
  112. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +169 -22
  113. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +36 -1
  114. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +254 -39
  115. data/generated/google/apis/replicapool_v1beta2.rb +3 -3
  116. data/generated/google/apis/replicapool_v1beta2/service.rb +2 -2
  117. data/generated/google/apis/resourceviews_v1beta2.rb +1 -1
  118. data/generated/google/apis/script_v1.rb +6 -3
  119. data/generated/google/apis/script_v1/service.rb +2 -2
  120. data/generated/google/apis/sheets_v4.rb +43 -0
  121. data/generated/google/apis/sheets_v4/classes.rb +5425 -0
  122. data/generated/google/apis/sheets_v4/representations.rb +2070 -0
  123. data/generated/google/apis/sheets_v4/service.rb +402 -0
  124. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  125. data/generated/google/apis/sqladmin_v1beta4/classes.rb +19 -4
  126. data/generated/google/apis/sqladmin_v1beta4/representations.rb +3 -0
  127. data/generated/google/apis/storage_v1.rb +1 -1
  128. data/generated/google/apis/storage_v1/classes.rb +2 -1
  129. data/generated/google/apis/taskqueue_v1beta2.rb +2 -2
  130. data/generated/google/apis/taskqueue_v1beta2/service.rb +1 -1
  131. data/generated/google/apis/vision_v1.rb +4 -5
  132. data/generated/google/apis/vision_v1/classes.rb +69 -68
  133. data/generated/google/apis/vision_v1/representations.rb +13 -13
  134. data/generated/google/apis/vision_v1/service.rb +3 -4
  135. data/generated/google/apis/youtube_analytics_v1.rb +2 -2
  136. data/generated/google/apis/youtube_analytics_v1/service.rb +1 -1
  137. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  138. data/generated/google/apis/youtube_partner_v1/classes.rb +121 -0
  139. data/generated/google/apis/youtube_partner_v1/representations.rb +50 -0
  140. data/generated/google/apis/youtube_partner_v1/service.rb +40 -0
  141. data/generated/google/apis/youtube_v3.rb +1 -1
  142. data/generated/google/apis/youtube_v3/classes.rb +24 -0
  143. data/generated/google/apis/youtube_v3/representations.rb +4 -0
  144. data/generated/google/apis/youtubereporting_v1.rb +3 -3
  145. data/generated/google/apis/youtubereporting_v1/classes.rb +19 -0
  146. data/generated/google/apis/youtubereporting_v1/representations.rb +3 -0
  147. data/generated/google/apis/youtubereporting_v1/service.rb +3 -4
  148. data/lib/google/apis/version.rb +1 -1
  149. metadata +14 -2
@@ -0,0 +1,402 @@
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 SheetsV4
23
+ # Google Sheets API
24
+ #
25
+ # Reads and writes Google Sheets.
26
+ #
27
+ # @example
28
+ # require 'google/apis/sheets_v4'
29
+ #
30
+ # Sheets = Google::Apis::SheetsV4 # Alias the module
31
+ # service = Sheets::SheetsService.new
32
+ #
33
+ # @see https://developers.google.com/sheets/
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
+ # Creates a spreadsheet, returning the newly created spreadsheet.
50
+ # @param [Google::Apis::SheetsV4::Spreadsheet] spreadsheet_object
51
+ # @param [String] quota_user
52
+ # Available to use for quota purposes for server-side applications. Can be any
53
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
54
+ # @param [String] fields
55
+ # Selector specifying which fields to include in a partial response.
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, quota_user: nil, fields: 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['quotaUser'] = quota_user unless quota_user.nil?
75
+ command.query['fields'] = fields unless fields.nil?
76
+ execute_or_queue_command(command, &block)
77
+ end
78
+
79
+ # Returns the spreadsheet at the given ID.
80
+ # The caller must specify the spreadsheet ID.
81
+ # By default, data within grids will not be returned.
82
+ # You can include grid data one of two ways:
83
+ # * Specify a field mask listing your desired fields using the `fields` URL
84
+ # parameter in HTTP
85
+ # * Set the includeGridData
86
+ # URL parameter to true. If a field mask is set, the `includeGridData`
87
+ # parameter is ignored
88
+ # For large spreadsheets, it is recommended to retrieve only the specific
89
+ # fields of the spreadsheet that you want.
90
+ # To retrieve only subsets of the spreadsheet, use the
91
+ # ranges URL parameter.
92
+ # Multiple ranges can be specified. Limiting the range will
93
+ # return only the portions of the spreadsheet that intersect the requested
94
+ # ranges. Ranges are specified using A1 notation.
95
+ # @param [String] spreadsheet_id
96
+ # The spreadsheet to request.
97
+ # @param [Array<String>, String] ranges
98
+ # The ranges to retrieve from the spreadsheet.
99
+ # @param [Boolean] include_grid_data
100
+ # True if grid data should be returned.
101
+ # This parameter is ignored if a field mask was set in the request.
102
+ # @param [String] quota_user
103
+ # Available to use for quota purposes for server-side applications. Can be any
104
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
105
+ # @param [String] fields
106
+ # Selector specifying which fields to include in a partial response.
107
+ # @param [Google::Apis::RequestOptions] options
108
+ # Request-specific options
109
+ #
110
+ # @yield [result, err] Result & error if block supplied
111
+ # @yieldparam result [Google::Apis::SheetsV4::Spreadsheet] parsed result object
112
+ # @yieldparam err [StandardError] error object if request failed
113
+ #
114
+ # @return [Google::Apis::SheetsV4::Spreadsheet]
115
+ #
116
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
117
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
118
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
119
+ def get_spreadsheet(spreadsheet_id, ranges: nil, include_grid_data: nil, quota_user: nil, fields: nil, options: nil, &block)
120
+ command = make_simple_command(:get, 'v4/spreadsheets/{spreadsheetId}', options)
121
+ command.response_representation = Google::Apis::SheetsV4::Spreadsheet::Representation
122
+ command.response_class = Google::Apis::SheetsV4::Spreadsheet
123
+ command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
124
+ command.query['ranges'] = ranges unless ranges.nil?
125
+ command.query['includeGridData'] = include_grid_data unless include_grid_data.nil?
126
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
127
+ command.query['fields'] = fields unless fields.nil?
128
+ execute_or_queue_command(command, &block)
129
+ end
130
+
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.
147
+ # @param [String] spreadsheet_id
148
+ # The spreadsheet to apply the updates to.
149
+ # @param [Google::Apis::SheetsV4::BatchUpdateSpreadsheetRequest] batch_update_spreadsheet_request_object
150
+ # @param [String] quota_user
151
+ # Available to use for quota purposes for server-side applications. Can be any
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.
155
+ # @param [Google::Apis::RequestOptions] options
156
+ # Request-specific options
157
+ #
158
+ # @yield [result, err] Result & error if block supplied
159
+ # @yieldparam result [Google::Apis::SheetsV4::BatchUpdateSpreadsheetResponse] parsed result object
160
+ # @yieldparam err [StandardError] error object if request failed
161
+ #
162
+ # @return [Google::Apis::SheetsV4::BatchUpdateSpreadsheetResponse]
163
+ #
164
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
165
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
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)
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
173
+ command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
174
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
175
+ command.query['fields'] = fields unless fields.nil?
176
+ execute_or_queue_command(command, &block)
177
+ end
178
+
179
+ # Sets values in a range of a spreadsheet.
180
+ # The caller must specify the spreadsheet ID, range, and
181
+ # a valueInputOption.
182
+ # @param [String] spreadsheet_id
183
+ # The ID of the spreadsheet to update.
184
+ # @param [String] range
185
+ # The A1 notation of the values to update.
186
+ # @param [Google::Apis::SheetsV4::ValueRange] value_range_object
187
+ # @param [String] value_input_option
188
+ # How the input data should be interpreted.
189
+ # @param [String] quota_user
190
+ # Available to use for quota purposes for server-side applications. Can be any
191
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
192
+ # @param [String] fields
193
+ # Selector specifying which fields to include in a partial response.
194
+ # @param [Google::Apis::RequestOptions] options
195
+ # Request-specific options
196
+ #
197
+ # @yield [result, err] Result & error if block supplied
198
+ # @yieldparam result [Google::Apis::SheetsV4::UpdateValuesResponse] parsed result object
199
+ # @yieldparam err [StandardError] error object if request failed
200
+ #
201
+ # @return [Google::Apis::SheetsV4::UpdateValuesResponse]
202
+ #
203
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
204
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
205
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
206
+ def update_spreadsheet_value(spreadsheet_id, range, value_range_object = nil, value_input_option: nil, quota_user: nil, fields: nil, options: nil, &block)
207
+ command = make_simple_command(:put, 'v4/spreadsheets/{spreadsheetId}/values/{range}', options)
208
+ command.request_representation = Google::Apis::SheetsV4::ValueRange::Representation
209
+ command.request_object = value_range_object
210
+ command.response_representation = Google::Apis::SheetsV4::UpdateValuesResponse::Representation
211
+ command.response_class = Google::Apis::SheetsV4::UpdateValuesResponse
212
+ command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
213
+ command.params['range'] = range unless range.nil?
214
+ command.query['valueInputOption'] = value_input_option unless value_input_option.nil?
215
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
216
+ command.query['fields'] = fields unless fields.nil?
217
+ execute_or_queue_command(command, &block)
218
+ end
219
+
220
+ # Returns a range of values from a spreadsheet.
221
+ # The caller must specify the spreadsheet ID and a range.
222
+ # @param [String] spreadsheet_id
223
+ # The ID of the spreadsheet to retrieve data from.
224
+ # @param [String] range
225
+ # The A1 notation of the values to retrieve.
226
+ # @param [String] value_render_option
227
+ # How values should be represented in the output.
228
+ # @param [String] date_time_render_option
229
+ # How dates, times, and durations should be represented in the output.
230
+ # This is ignored if value_render_option is
231
+ # FORMATTED_VALUE.
232
+ # @param [String] major_dimension
233
+ # The major dimension that results should use.
234
+ # For example, if the spreadsheet data is: `A1=1,B1=2,A2=3,B2=4`,
235
+ # then requesting `range=A1:B2,majorDimension=ROWS` will return
236
+ # `[[1,2],[3,4]]`,
237
+ # whereas requesting `range=A1:B2,majorDimension=COLUMNS` will return
238
+ # `[[1,3],[2,4]]`.
239
+ # @param [String] quota_user
240
+ # Available to use for quota purposes for server-side applications. Can be any
241
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
242
+ # @param [String] fields
243
+ # Selector specifying which fields to include in a partial response.
244
+ # @param [Google::Apis::RequestOptions] options
245
+ # Request-specific options
246
+ #
247
+ # @yield [result, err] Result & error if block supplied
248
+ # @yieldparam result [Google::Apis::SheetsV4::ValueRange] parsed result object
249
+ # @yieldparam err [StandardError] error object if request failed
250
+ #
251
+ # @return [Google::Apis::SheetsV4::ValueRange]
252
+ #
253
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
254
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
255
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
256
+ 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)
257
+ command = make_simple_command(:get, 'v4/spreadsheets/{spreadsheetId}/values/{range}', options)
258
+ command.response_representation = Google::Apis::SheetsV4::ValueRange::Representation
259
+ command.response_class = Google::Apis::SheetsV4::ValueRange
260
+ command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
261
+ command.params['range'] = range unless range.nil?
262
+ command.query['valueRenderOption'] = value_render_option unless value_render_option.nil?
263
+ command.query['dateTimeRenderOption'] = date_time_render_option unless date_time_render_option.nil?
264
+ command.query['majorDimension'] = major_dimension unless major_dimension.nil?
265
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
266
+ command.query['fields'] = fields unless fields.nil?
267
+ execute_or_queue_command(command, &block)
268
+ end
269
+
270
+ # Returns one or more ranges of values from a spreadsheet.
271
+ # The caller must specify the spreadsheet ID and one or more ranges.
272
+ # @param [String] spreadsheet_id
273
+ # The ID of the spreadsheet to retrieve data from.
274
+ # @param [Array<String>, String] ranges
275
+ # The A1 notation of the values to retrieve.
276
+ # @param [String] value_render_option
277
+ # How values should be represented in the output.
278
+ # @param [String] date_time_render_option
279
+ # How dates, times, and durations should be represented in the output.
280
+ # This is ignored if value_render_option is
281
+ # FORMATTED_VALUE.
282
+ # @param [String] major_dimension
283
+ # The major dimension that results should use.
284
+ # For example, if the spreadsheet data is: `A1=1,B1=2,A2=3,B2=4`,
285
+ # then requesting `range=A1:B2,majorDimension=ROWS` will return
286
+ # `[[1,2],[3,4]]`,
287
+ # whereas requesting `range=A1:B2,majorDimension=COLUMNS` will return
288
+ # `[[1,3],[2,4]]`.
289
+ # @param [String] quota_user
290
+ # Available to use for quota purposes for server-side applications. Can be any
291
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
292
+ # @param [String] fields
293
+ # Selector specifying which fields to include in a partial response.
294
+ # @param [Google::Apis::RequestOptions] options
295
+ # Request-specific options
296
+ #
297
+ # @yield [result, err] Result & error if block supplied
298
+ # @yieldparam result [Google::Apis::SheetsV4::BatchGetValuesResponse] parsed result object
299
+ # @yieldparam err [StandardError] error object if request failed
300
+ #
301
+ # @return [Google::Apis::SheetsV4::BatchGetValuesResponse]
302
+ #
303
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
304
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
305
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
306
+ def batch_get_spreadsheet_values(spreadsheet_id, ranges: nil, value_render_option: nil, date_time_render_option: nil, major_dimension: nil, quota_user: nil, fields: nil, options: nil, &block)
307
+ command = make_simple_command(:get, 'v4/spreadsheets/{spreadsheetId}/values:batchGet', options)
308
+ command.response_representation = Google::Apis::SheetsV4::BatchGetValuesResponse::Representation
309
+ command.response_class = Google::Apis::SheetsV4::BatchGetValuesResponse
310
+ command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
311
+ command.query['ranges'] = ranges unless ranges.nil?
312
+ command.query['valueRenderOption'] = value_render_option unless value_render_option.nil?
313
+ command.query['dateTimeRenderOption'] = date_time_render_option unless date_time_render_option.nil?
314
+ command.query['majorDimension'] = major_dimension unless major_dimension.nil?
315
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
316
+ command.query['fields'] = fields unless fields.nil?
317
+ execute_or_queue_command(command, &block)
318
+ end
319
+
320
+ # Sets values in one or more ranges of a spreadsheet.
321
+ # The caller must specify the spreadsheet ID,
322
+ # a valueInputOption, and one or more
323
+ # ValueRanges.
324
+ # @param [String] spreadsheet_id
325
+ # The ID of the spreadsheet to update.
326
+ # @param [Google::Apis::SheetsV4::BatchUpdateValuesRequest] batch_update_values_request_object
327
+ # @param [String] quota_user
328
+ # Available to use for quota purposes for server-side applications. Can be any
329
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
330
+ # @param [String] fields
331
+ # Selector specifying which fields to include in a partial response.
332
+ # @param [Google::Apis::RequestOptions] options
333
+ # Request-specific options
334
+ #
335
+ # @yield [result, err] Result & error if block supplied
336
+ # @yieldparam result [Google::Apis::SheetsV4::BatchUpdateValuesResponse] parsed result object
337
+ # @yieldparam err [StandardError] error object if request failed
338
+ #
339
+ # @return [Google::Apis::SheetsV4::BatchUpdateValuesResponse]
340
+ #
341
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
342
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
343
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
344
+ def batch_update_values(spreadsheet_id, batch_update_values_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
345
+ command = make_simple_command(:post, 'v4/spreadsheets/{spreadsheetId}/values:batchUpdate', options)
346
+ command.request_representation = Google::Apis::SheetsV4::BatchUpdateValuesRequest::Representation
347
+ command.request_object = batch_update_values_request_object
348
+ command.response_representation = Google::Apis::SheetsV4::BatchUpdateValuesResponse::Representation
349
+ command.response_class = Google::Apis::SheetsV4::BatchUpdateValuesResponse
350
+ command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
351
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
352
+ command.query['fields'] = fields unless fields.nil?
353
+ execute_or_queue_command(command, &block)
354
+ end
355
+
356
+ # Copies a single sheet from a spreadsheet to another spreadsheet.
357
+ # Returns the properties of the newly created sheet.
358
+ # @param [String] spreadsheet_id
359
+ # The ID of the spreadsheet containing the sheet to copy.
360
+ # @param [Fixnum] sheet_id
361
+ # The ID of the sheet to copy.
362
+ # @param [Google::Apis::SheetsV4::CopySheetToAnotherSpreadsheetRequest] copy_sheet_to_another_spreadsheet_request_object
363
+ # @param [String] quota_user
364
+ # Available to use for quota purposes for server-side applications. Can be any
365
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
366
+ # @param [String] fields
367
+ # Selector specifying which fields to include in a partial response.
368
+ # @param [Google::Apis::RequestOptions] options
369
+ # Request-specific options
370
+ #
371
+ # @yield [result, err] Result & error if block supplied
372
+ # @yieldparam result [Google::Apis::SheetsV4::SheetProperties] parsed result object
373
+ # @yieldparam err [StandardError] error object if request failed
374
+ #
375
+ # @return [Google::Apis::SheetsV4::SheetProperties]
376
+ #
377
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
378
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
379
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
380
+ def copy_spreadsheet(spreadsheet_id, sheet_id, copy_sheet_to_another_spreadsheet_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
381
+ command = make_simple_command(:post, 'v4/spreadsheets/{spreadsheetId}/sheets/{sheetId}:copyTo', options)
382
+ command.request_representation = Google::Apis::SheetsV4::CopySheetToAnotherSpreadsheetRequest::Representation
383
+ command.request_object = copy_sheet_to_another_spreadsheet_request_object
384
+ command.response_representation = Google::Apis::SheetsV4::SheetProperties::Representation
385
+ command.response_class = Google::Apis::SheetsV4::SheetProperties
386
+ command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
387
+ command.params['sheetId'] = sheet_id unless sheet_id.nil?
388
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
389
+ command.query['fields'] = fields unless fields.nil?
390
+ execute_or_queue_command(command, &block)
391
+ end
392
+
393
+ protected
394
+
395
+ def apply_command_defaults(command)
396
+ command.query['key'] = key unless key.nil?
397
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
398
+ end
399
+ end
400
+ end
401
+ end
402
+ end
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://cloud.google.com/sql/docs/reference/latest
27
27
  module SqladminV1beta4
28
28
  VERSION = 'V1beta4'
29
- REVISION = '20160321'
29
+ REVISION = '20160509'
30
30
 
31
31
  # View and manage your data across Google Cloud Platform services
32
32
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -1571,15 +1571,14 @@ module Google
1571
1571
  attr_accessor :crash_safe_replication_enabled
1572
1572
  alias_method :crash_safe_replication_enabled?, :crash_safe_replication_enabled
1573
1573
 
1574
- # The size of data disk, in GB. The data disk size minimum is 10GB. This
1575
- # property is only applicable to Second Generation instances.
1574
+ # The size of data disk, in GB. The data disk size minimum is 10GB. Applies only
1575
+ # to Second Generation instances.
1576
1576
  # Corresponds to the JSON property `dataDiskSizeGb`
1577
1577
  # @return [String]
1578
1578
  attr_accessor :data_disk_size_gb
1579
1579
 
1580
1580
  # The type of data disk. Only supported for Second Generation instances. The
1581
- # default type is PD_SSD. This property is only applicable to Second Generation
1582
- # instances.
1581
+ # default type is PD_SSD. Applies only to Second Generation instances.
1583
1582
  # Corresponds to the JSON property `dataDiskType`
1584
1583
  # @return [String]
1585
1584
  attr_accessor :data_disk_type
@@ -1641,6 +1640,13 @@ module Google
1641
1640
  # @return [String]
1642
1641
  attr_accessor :settings_version
1643
1642
 
1643
+ # Configuration to increase storage size automatically. The default value is
1644
+ # false. Applies only to Second Generation instances.
1645
+ # Corresponds to the JSON property `storageAutoResize`
1646
+ # @return [Boolean]
1647
+ attr_accessor :storage_auto_resize
1648
+ alias_method :storage_auto_resize?, :storage_auto_resize
1649
+
1644
1650
  # The tier of service for this instance, for example D1, D2. For more
1645
1651
  # information, see pricing.
1646
1652
  # Corresponds to the JSON property `tier`
@@ -1668,6 +1674,7 @@ module Google
1668
1674
  @pricing_plan = args[:pricing_plan] if args.key?(:pricing_plan)
1669
1675
  @replication_type = args[:replication_type] if args.key?(:replication_type)
1670
1676
  @settings_version = args[:settings_version] if args.key?(:settings_version)
1677
+ @storage_auto_resize = args[:storage_auto_resize] if args.key?(:storage_auto_resize)
1671
1678
  @tier = args[:tier] if args.key?(:tier)
1672
1679
  end
1673
1680
  end
@@ -1821,6 +1828,13 @@ module Google
1821
1828
  # @return [String]
1822
1829
  attr_accessor :kind
1823
1830
 
1831
+ # An Operations resource contains information about database instance operations
1832
+ # such as create, delete, and restart. Operations resources are created in
1833
+ # response to operations that were initiated; you never create them directly.
1834
+ # Corresponds to the JSON property `operation`
1835
+ # @return [Google::Apis::SqladminV1beta4::Operation]
1836
+ attr_accessor :operation
1837
+
1824
1838
  # SslCerts Resource
1825
1839
  # Corresponds to the JSON property `serverCaCert`
1826
1840
  # @return [Google::Apis::SqladminV1beta4::SslCert]
@@ -1834,6 +1848,7 @@ module Google
1834
1848
  def update!(**args)
1835
1849
  @client_cert = args[:client_cert] if args.key?(:client_cert)
1836
1850
  @kind = args[:kind] if args.key?(:kind)
1851
+ @operation = args[:operation] if args.key?(:operation)
1837
1852
  @server_ca_cert = args[:server_ca_cert] if args.key?(:server_ca_cert)
1838
1853
  end
1839
1854
  end