google-api-client 0.11.2 → 0.11.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (246) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +6 -1
  3. data/README.md +6 -0
  4. data/api_names.yaml +1 -0
  5. data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +38 -38
  6. data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +13 -13
  7. data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +10 -10
  8. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  9. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +201 -201
  10. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +46 -46
  11. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +119 -119
  12. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  13. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +52 -9
  14. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +9 -0
  15. data/generated/google/apis/adsense_v1_4.rb +1 -1
  16. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  17. data/generated/google/apis/analyticsreporting_v4/classes.rb +926 -926
  18. data/generated/google/apis/analyticsreporting_v4/representations.rb +149 -149
  19. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  20. data/generated/google/apis/androidenterprise_v1/classes.rb +18 -11
  21. data/generated/google/apis/androidenterprise_v1/representations.rb +1 -0
  22. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  23. data/generated/google/apis/appengine_v1.rb +1 -1
  24. data/generated/google/apis/appengine_v1/classes.rb +1487 -1487
  25. data/generated/google/apis/appengine_v1/representations.rb +229 -229
  26. data/generated/google/apis/appengine_v1/service.rb +188 -188
  27. data/generated/google/apis/appstate_v1.rb +1 -1
  28. data/generated/google/apis/bigquery_v2.rb +1 -1
  29. data/generated/google/apis/bigquery_v2/classes.rb +15 -10
  30. data/generated/google/apis/calendar_v3.rb +1 -1
  31. data/generated/google/apis/calendar_v3/service.rb +10 -4
  32. data/generated/google/apis/classroom_v1.rb +26 -17
  33. data/generated/google/apis/classroom_v1/classes.rb +990 -990
  34. data/generated/google/apis/classroom_v1/representations.rb +239 -239
  35. data/generated/google/apis/classroom_v1/service.rb +853 -853
  36. data/generated/google/apis/cloudbilling_v1.rb +1 -1
  37. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  38. data/generated/google/apis/cloudbuild_v1/classes.rb +627 -627
  39. data/generated/google/apis/cloudbuild_v1/representations.rb +116 -116
  40. data/generated/google/apis/cloudbuild_v1/service.rb +162 -157
  41. data/generated/google/apis/clouddebugger_v2/classes.rb +258 -258
  42. data/generated/google/apis/clouddebugger_v2/representations.rb +80 -80
  43. data/generated/google/apis/clouddebugger_v2/service.rb +163 -163
  44. data/generated/google/apis/clouderrorreporting_v1beta1.rb +3 -4
  45. data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +202 -167
  46. data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +53 -37
  47. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +50 -51
  48. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  49. data/generated/google/apis/cloudkms_v1.rb +1 -1
  50. data/generated/google/apis/cloudkms_v1/classes.rb +628 -622
  51. data/generated/google/apis/cloudkms_v1/representations.rb +134 -133
  52. data/generated/google/apis/cloudkms_v1/service.rb +190 -190
  53. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  54. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +835 -835
  55. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +138 -138
  56. data/generated/google/apis/cloudresourcemanager_v1/service.rb +474 -474
  57. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  58. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +386 -386
  59. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +75 -75
  60. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +64 -64
  61. data/generated/google/apis/cloudtrace_v1.rb +4 -4
  62. data/generated/google/apis/cloudtrace_v1/classes.rb +114 -114
  63. data/generated/google/apis/cloudtrace_v1/representations.rb +23 -23
  64. data/generated/google/apis/cloudtrace_v1/service.rb +14 -14
  65. data/generated/google/apis/compute_beta.rb +1 -1
  66. data/generated/google/apis/compute_beta/classes.rb +66 -25
  67. data/generated/google/apis/compute_beta/representations.rb +16 -0
  68. data/generated/google/apis/compute_beta/service.rb +85 -3
  69. data/generated/google/apis/compute_v1.rb +1 -1
  70. data/generated/google/apis/compute_v1/classes.rb +375 -24
  71. data/generated/google/apis/compute_v1/representations.rb +155 -0
  72. data/generated/google/apis/compute_v1/service.rb +481 -3
  73. data/generated/google/apis/container_v1.rb +1 -1
  74. data/generated/google/apis/container_v1/classes.rb +301 -301
  75. data/generated/google/apis/container_v1/representations.rb +59 -59
  76. data/generated/google/apis/container_v1/service.rb +178 -178
  77. data/generated/google/apis/content_v2.rb +1 -1
  78. data/generated/google/apis/content_v2/classes.rb +37 -2
  79. data/generated/google/apis/content_v2/representations.rb +15 -0
  80. data/generated/google/apis/content_v2/service.rb +58 -3
  81. data/generated/google/apis/dataflow_v1b3.rb +4 -1
  82. data/generated/google/apis/dataflow_v1b3/classes.rb +3514 -3279
  83. data/generated/google/apis/dataflow_v1b3/representations.rb +530 -440
  84. data/generated/google/apis/dataflow_v1b3/service.rb +378 -137
  85. data/generated/google/apis/dataproc_v1.rb +1 -1
  86. data/generated/google/apis/dataproc_v1/classes.rb +446 -446
  87. data/generated/google/apis/dataproc_v1/representations.rb +96 -96
  88. data/generated/google/apis/dataproc_v1/service.rb +302 -302
  89. data/generated/google/apis/datastore_v1.rb +1 -1
  90. data/generated/google/apis/datastore_v1/classes.rb +370 -374
  91. data/generated/google/apis/datastore_v1/representations.rb +120 -120
  92. data/generated/google/apis/datastore_v1/service.rb +62 -62
  93. data/generated/google/apis/dns_v1.rb +1 -1
  94. data/generated/google/apis/dns_v2beta1.rb +1 -1
  95. data/generated/google/apis/doubleclickbidmanager_v1.rb +3 -0
  96. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  97. data/generated/google/apis/drive_v2.rb +1 -1
  98. data/generated/google/apis/drive_v2/classes.rb +24 -21
  99. data/generated/google/apis/drive_v3.rb +1 -1
  100. data/generated/google/apis/drive_v3/classes.rb +24 -22
  101. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  102. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +148 -149
  103. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +42 -42
  104. data/generated/google/apis/firebaserules_v1/classes.rb +71 -71
  105. data/generated/google/apis/firebaserules_v1/representations.rb +22 -22
  106. data/generated/google/apis/firebaserules_v1/service.rb +68 -68
  107. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  108. data/generated/google/apis/games_management_v1management.rb +1 -1
  109. data/generated/google/apis/games_v1.rb +1 -1
  110. data/generated/google/apis/genomics_v1.rb +1 -1
  111. data/generated/google/apis/genomics_v1/classes.rb +2348 -2348
  112. data/generated/google/apis/genomics_v1/representations.rb +430 -430
  113. data/generated/google/apis/genomics_v1/service.rb +1159 -1159
  114. data/generated/google/apis/gmail_v1.rb +1 -1
  115. data/generated/google/apis/gmail_v1/service.rb +2 -2
  116. data/generated/google/apis/iam_v1.rb +1 -1
  117. data/generated/google/apis/iam_v1/classes.rb +305 -298
  118. data/generated/google/apis/iam_v1/representations.rb +97 -96
  119. data/generated/google/apis/iam_v1/service.rb +86 -86
  120. data/generated/google/apis/kgsearch_v1/classes.rb +6 -6
  121. data/generated/google/apis/kgsearch_v1/representations.rb +1 -1
  122. data/generated/google/apis/kgsearch_v1/service.rb +10 -10
  123. data/generated/google/apis/language_v1.rb +4 -4
  124. data/generated/google/apis/language_v1/classes.rb +452 -452
  125. data/generated/google/apis/language_v1/representations.rb +93 -93
  126. data/generated/google/apis/language_v1/service.rb +48 -48
  127. data/generated/google/apis/language_v1beta1.rb +4 -4
  128. data/generated/google/apis/language_v1beta1/classes.rb +84 -84
  129. data/generated/google/apis/language_v1beta1/representations.rb +22 -22
  130. data/generated/google/apis/language_v1beta1/service.rb +3 -3
  131. data/generated/google/apis/logging_v2.rb +1 -1
  132. data/generated/google/apis/logging_v2/classes.rb +884 -873
  133. data/generated/google/apis/logging_v2/representations.rb +167 -166
  134. data/generated/google/apis/logging_v2/service.rb +430 -430
  135. data/generated/google/apis/logging_v2beta1.rb +1 -1
  136. data/generated/google/apis/logging_v2beta1/classes.rb +550 -539
  137. data/generated/google/apis/logging_v2beta1/representations.rb +124 -123
  138. data/generated/google/apis/logging_v2beta1/service.rb +292 -292
  139. data/generated/google/apis/manufacturers_v1/classes.rb +322 -322
  140. data/generated/google/apis/manufacturers_v1/representations.rb +66 -66
  141. data/generated/google/apis/ml_v1.rb +1 -1
  142. data/generated/google/apis/ml_v1/classes.rb +501 -494
  143. data/generated/google/apis/ml_v1/representations.rb +92 -91
  144. data/generated/google/apis/ml_v1/service.rb +190 -190
  145. data/generated/google/apis/monitoring_v3.rb +1 -1
  146. data/generated/google/apis/monitoring_v3/classes.rb +878 -878
  147. data/generated/google/apis/monitoring_v3/representations.rb +176 -176
  148. data/generated/google/apis/monitoring_v3/service.rb +223 -262
  149. data/generated/google/apis/oauth2_v2.rb +1 -1
  150. data/generated/google/apis/partners_v2.rb +1 -1
  151. data/generated/google/apis/partners_v2/classes.rb +1506 -1506
  152. data/generated/google/apis/partners_v2/representations.rb +370 -370
  153. data/generated/google/apis/partners_v2/service.rb +393 -393
  154. data/generated/google/apis/people_v1.rb +13 -13
  155. data/generated/google/apis/people_v1/classes.rb +597 -594
  156. data/generated/google/apis/people_v1/representations.rb +121 -121
  157. data/generated/google/apis/people_v1/service.rb +39 -48
  158. data/generated/google/apis/plus_domains_v1.rb +1 -1
  159. data/generated/google/apis/plus_v1.rb +1 -1
  160. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  161. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +323 -327
  162. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +100 -100
  163. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +184 -184
  164. data/generated/google/apis/pubsub_v1.rb +1 -1
  165. data/generated/google/apis/pubsub_v1/classes.rb +178 -178
  166. data/generated/google/apis/pubsub_v1/representations.rb +55 -55
  167. data/generated/google/apis/pubsub_v1/service.rb +357 -357
  168. data/generated/google/apis/runtimeconfig_v1.rb +1 -1
  169. data/generated/google/apis/runtimeconfig_v1/classes.rb +20 -20
  170. data/generated/google/apis/runtimeconfig_v1/representations.rb +2 -2
  171. data/generated/google/apis/runtimeconfig_v1/service.rb +12 -7
  172. data/generated/google/apis/script_v1.rb +16 -16
  173. data/generated/google/apis/script_v1/classes.rb +113 -113
  174. data/generated/google/apis/script_v1/representations.rb +28 -28
  175. data/generated/google/apis/script_v1/service.rb +4 -4
  176. data/generated/google/apis/searchconsole_v1.rb +1 -1
  177. data/generated/google/apis/searchconsole_v1/classes.rb +84 -84
  178. data/generated/google/apis/searchconsole_v1/representations.rb +32 -32
  179. data/generated/google/apis/searchconsole_v1/service.rb +6 -6
  180. data/generated/google/apis/servicecontrol_v1.rb +4 -4
  181. data/generated/google/apis/servicecontrol_v1/classes.rb +1146 -1145
  182. data/generated/google/apis/servicecontrol_v1/representations.rb +203 -203
  183. data/generated/google/apis/servicecontrol_v1/service.rb +57 -57
  184. data/generated/google/apis/servicemanagement_v1.rb +4 -4
  185. data/generated/google/apis/servicemanagement_v1/classes.rb +3486 -3360
  186. data/generated/google/apis/servicemanagement_v1/representations.rb +342 -329
  187. data/generated/google/apis/servicemanagement_v1/service.rb +260 -250
  188. data/generated/google/apis/serviceuser_v1.rb +1 -1
  189. data/generated/google/apis/serviceuser_v1/classes.rb +2716 -2596
  190. data/generated/google/apis/serviceuser_v1/representations.rb +391 -379
  191. data/generated/google/apis/serviceuser_v1/service.rb +16 -16
  192. data/generated/google/apis/sheets_v4.rb +1 -1
  193. data/generated/google/apis/sheets_v4/classes.rb +4255 -4252
  194. data/generated/google/apis/sheets_v4/representations.rb +548 -548
  195. data/generated/google/apis/sheets_v4/service.rb +170 -170
  196. data/generated/google/apis/slides_v1.rb +4 -4
  197. data/generated/google/apis/slides_v1/classes.rb +2945 -2916
  198. data/generated/google/apis/slides_v1/representations.rb +700 -697
  199. data/generated/google/apis/slides_v1/service.rb +44 -44
  200. data/generated/google/apis/sourcerepo_v1.rb +2 -2
  201. data/generated/google/apis/sourcerepo_v1/classes.rb +419 -410
  202. data/generated/google/apis/sourcerepo_v1/representations.rb +88 -87
  203. data/generated/google/apis/sourcerepo_v1/service.rb +67 -58
  204. data/generated/google/apis/spanner_v1/classes.rb +2187 -2187
  205. data/generated/google/apis/spanner_v1/representations.rb +323 -323
  206. data/generated/google/apis/spanner_v1/service.rb +383 -383
  207. data/generated/google/apis/speech_v1beta1.rb +1 -1
  208. data/generated/google/apis/speech_v1beta1/classes.rb +226 -226
  209. data/generated/google/apis/speech_v1beta1/representations.rb +44 -44
  210. data/generated/google/apis/speech_v1beta1/service.rb +37 -32
  211. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  212. data/generated/google/apis/sqladmin_v1beta4/classes.rb +10 -28
  213. data/generated/google/apis/sqladmin_v1beta4/representations.rb +2 -16
  214. data/generated/google/apis/sqladmin_v1beta4/service.rb +1 -1
  215. data/generated/google/apis/storage_v1.rb +1 -1
  216. data/generated/google/apis/storage_v1/classes.rb +26 -0
  217. data/generated/google/apis/storage_v1/representations.rb +15 -0
  218. data/generated/google/apis/storage_v1/service.rb +168 -42
  219. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  220. data/generated/google/apis/storagetransfer_v1/classes.rb +218 -218
  221. data/generated/google/apis/storagetransfer_v1/representations.rb +47 -47
  222. data/generated/google/apis/storagetransfer_v1/service.rb +68 -68
  223. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  224. data/generated/google/apis/toolresults_v1beta3/classes.rb +7 -4
  225. data/generated/google/apis/toolresults_v1beta3/service.rb +9 -8
  226. data/generated/google/apis/translate_v2.rb +11 -4
  227. data/generated/google/apis/translate_v2/classes.rb +140 -37
  228. data/generated/google/apis/translate_v2/representations.rb +62 -15
  229. data/generated/google/apis/translate_v2/service.rb +119 -66
  230. data/generated/google/apis/vision_v1.rb +1 -1
  231. data/generated/google/apis/vision_v1/classes.rb +1265 -1273
  232. data/generated/google/apis/vision_v1/representations.rb +202 -202
  233. data/generated/google/apis/vision_v1/service.rb +4 -4
  234. data/generated/google/apis/webmasters_v3.rb +1 -1
  235. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  236. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  237. data/generated/google/apis/youtube_partner_v1/classes.rb +2 -1
  238. data/generated/google/apis/youtubereporting_v1.rb +1 -1
  239. data/generated/google/apis/youtubereporting_v1/classes.rb +91 -91
  240. data/generated/google/apis/youtubereporting_v1/representations.rb +25 -25
  241. data/generated/google/apis/youtubereporting_v1/service.rb +94 -94
  242. data/lib/google/apis/core/api_command.rb +43 -10
  243. data/lib/google/apis/core/json_representation.rb +1 -1
  244. data/lib/google/apis/options.rb +6 -2
  245. data/lib/google/apis/version.rb +1 -1
  246. metadata +3 -3
@@ -70,11 +70,11 @@ module Google
70
70
  # @param [Boolean] include_grid_data
71
71
  # True if grid data should be returned.
72
72
  # This parameter is ignored if a field mask was set in the request.
73
+ # @param [String] fields
74
+ # Selector specifying which fields to include in a partial response.
73
75
  # @param [String] quota_user
74
76
  # Available to use for quota purposes for server-side applications. Can be any
75
77
  # arbitrary string assigned to a user, but should not exceed 40 characters.
76
- # @param [String] fields
77
- # Selector specifying which fields to include in a partial response.
78
78
  # @param [Google::Apis::RequestOptions] options
79
79
  # Request-specific options
80
80
  #
@@ -87,25 +87,25 @@ module Google
87
87
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
88
88
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
89
89
  # @raise [Google::Apis::AuthorizationError] Authorization is required
90
- def get_spreadsheet(spreadsheet_id, ranges: nil, include_grid_data: nil, quota_user: nil, fields: nil, options: nil, &block)
90
+ def get_spreadsheet(spreadsheet_id, ranges: nil, include_grid_data: nil, fields: nil, quota_user: nil, options: nil, &block)
91
91
  command = make_simple_command(:get, 'v4/spreadsheets/{spreadsheetId}', options)
92
92
  command.response_representation = Google::Apis::SheetsV4::Spreadsheet::Representation
93
93
  command.response_class = Google::Apis::SheetsV4::Spreadsheet
94
94
  command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
95
95
  command.query['ranges'] = ranges unless ranges.nil?
96
96
  command.query['includeGridData'] = include_grid_data unless include_grid_data.nil?
97
- command.query['quotaUser'] = quota_user unless quota_user.nil?
98
97
  command.query['fields'] = fields unless fields.nil?
98
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
99
99
  execute_or_queue_command(command, &block)
100
100
  end
101
101
 
102
102
  # Creates a spreadsheet, returning the newly created spreadsheet.
103
103
  # @param [Google::Apis::SheetsV4::Spreadsheet] spreadsheet_object
104
+ # @param [String] fields
105
+ # Selector specifying which fields to include in a partial response.
104
106
  # @param [String] quota_user
105
107
  # Available to use for quota purposes for server-side applications. Can be any
106
108
  # arbitrary string assigned to a user, but should not exceed 40 characters.
107
- # @param [String] fields
108
- # Selector specifying which fields to include in a partial response.
109
109
  # @param [Google::Apis::RequestOptions] options
110
110
  # Request-specific options
111
111
  #
@@ -118,14 +118,14 @@ module Google
118
118
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
119
119
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
120
120
  # @raise [Google::Apis::AuthorizationError] Authorization is required
121
- def create_spreadsheet(spreadsheet_object = nil, quota_user: nil, fields: nil, options: nil, &block)
121
+ def create_spreadsheet(spreadsheet_object = nil, fields: nil, quota_user: nil, options: nil, &block)
122
122
  command = make_simple_command(:post, 'v4/spreadsheets', options)
123
123
  command.request_representation = Google::Apis::SheetsV4::Spreadsheet::Representation
124
124
  command.request_object = spreadsheet_object
125
125
  command.response_representation = Google::Apis::SheetsV4::Spreadsheet::Representation
126
126
  command.response_class = Google::Apis::SheetsV4::Spreadsheet
127
- command.query['quotaUser'] = quota_user unless quota_user.nil?
128
127
  command.query['fields'] = fields unless fields.nil?
128
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
129
129
  execute_or_queue_command(command, &block)
130
130
  end
131
131
 
@@ -148,11 +148,11 @@ module Google
148
148
  # @param [String] spreadsheet_id
149
149
  # The spreadsheet to apply the updates to.
150
150
  # @param [Google::Apis::SheetsV4::BatchUpdateSpreadsheetRequest] batch_update_spreadsheet_request_object
151
+ # @param [String] fields
152
+ # Selector specifying which fields to include in a partial response.
151
153
  # @param [String] quota_user
152
154
  # Available to use for quota purposes for server-side applications. Can be any
153
155
  # arbitrary string assigned to a user, but should not exceed 40 characters.
154
- # @param [String] fields
155
- # Selector specifying which fields to include in a partial response.
156
156
  # @param [Google::Apis::RequestOptions] options
157
157
  # Request-specific options
158
158
  #
@@ -165,15 +165,143 @@ module Google
165
165
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
166
166
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
167
167
  # @raise [Google::Apis::AuthorizationError] Authorization is required
168
- def batch_update_spreadsheet(spreadsheet_id, batch_update_spreadsheet_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
168
+ def batch_update_spreadsheet(spreadsheet_id, batch_update_spreadsheet_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
169
169
  command = make_simple_command(:post, 'v4/spreadsheets/{spreadsheetId}:batchUpdate', options)
170
170
  command.request_representation = Google::Apis::SheetsV4::BatchUpdateSpreadsheetRequest::Representation
171
171
  command.request_object = batch_update_spreadsheet_request_object
172
172
  command.response_representation = Google::Apis::SheetsV4::BatchUpdateSpreadsheetResponse::Representation
173
173
  command.response_class = Google::Apis::SheetsV4::BatchUpdateSpreadsheetResponse
174
174
  command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
175
+ command.query['fields'] = fields unless fields.nil?
175
176
  command.query['quotaUser'] = quota_user unless quota_user.nil?
177
+ execute_or_queue_command(command, &block)
178
+ end
179
+
180
+ # Copies a single sheet from a spreadsheet to another spreadsheet.
181
+ # Returns the properties of the newly created sheet.
182
+ # @param [String] spreadsheet_id
183
+ # The ID of the spreadsheet containing the sheet to copy.
184
+ # @param [Fixnum] sheet_id
185
+ # The ID of the sheet to copy.
186
+ # @param [Google::Apis::SheetsV4::CopySheetToAnotherSpreadsheetRequest] copy_sheet_to_another_spreadsheet_request_object
187
+ # @param [String] fields
188
+ # Selector specifying which fields to include in a partial response.
189
+ # @param [String] quota_user
190
+ # Available to use for quota purposes for server-side applications. Can be any
191
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
192
+ # @param [Google::Apis::RequestOptions] options
193
+ # Request-specific options
194
+ #
195
+ # @yield [result, err] Result & error if block supplied
196
+ # @yieldparam result [Google::Apis::SheetsV4::SheetProperties] parsed result object
197
+ # @yieldparam err [StandardError] error object if request failed
198
+ #
199
+ # @return [Google::Apis::SheetsV4::SheetProperties]
200
+ #
201
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
202
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
203
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
204
+ def copy_spreadsheet(spreadsheet_id, sheet_id, copy_sheet_to_another_spreadsheet_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
205
+ command = make_simple_command(:post, 'v4/spreadsheets/{spreadsheetId}/sheets/{sheetId}:copyTo', options)
206
+ command.request_representation = Google::Apis::SheetsV4::CopySheetToAnotherSpreadsheetRequest::Representation
207
+ command.request_object = copy_sheet_to_another_spreadsheet_request_object
208
+ command.response_representation = Google::Apis::SheetsV4::SheetProperties::Representation
209
+ command.response_class = Google::Apis::SheetsV4::SheetProperties
210
+ command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
211
+ command.params['sheetId'] = sheet_id unless sheet_id.nil?
176
212
  command.query['fields'] = fields unless fields.nil?
213
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
214
+ execute_or_queue_command(command, &block)
215
+ end
216
+
217
+ # Clears values from a spreadsheet.
218
+ # The caller must specify the spreadsheet ID and range.
219
+ # Only values are cleared -- all other properties of the cell (such as
220
+ # formatting, data validation, etc..) are kept.
221
+ # @param [String] spreadsheet_id
222
+ # The ID of the spreadsheet to update.
223
+ # @param [String] range
224
+ # The A1 notation of the values to clear.
225
+ # @param [Google::Apis::SheetsV4::ClearValuesRequest] clear_values_request_object
226
+ # @param [String] fields
227
+ # Selector specifying which fields to include in a partial response.
228
+ # @param [String] quota_user
229
+ # Available to use for quota purposes for server-side applications. Can be any
230
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
231
+ # @param [Google::Apis::RequestOptions] options
232
+ # Request-specific options
233
+ #
234
+ # @yield [result, err] Result & error if block supplied
235
+ # @yieldparam result [Google::Apis::SheetsV4::ClearValuesResponse] parsed result object
236
+ # @yieldparam err [StandardError] error object if request failed
237
+ #
238
+ # @return [Google::Apis::SheetsV4::ClearValuesResponse]
239
+ #
240
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
241
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
242
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
243
+ def clear_values(spreadsheet_id, range, clear_values_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
244
+ command = make_simple_command(:post, 'v4/spreadsheets/{spreadsheetId}/values/{range}:clear', options)
245
+ command.request_representation = Google::Apis::SheetsV4::ClearValuesRequest::Representation
246
+ command.request_object = clear_values_request_object
247
+ command.response_representation = Google::Apis::SheetsV4::ClearValuesResponse::Representation
248
+ command.response_class = Google::Apis::SheetsV4::ClearValuesResponse
249
+ command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
250
+ command.params['range'] = range unless range.nil?
251
+ command.query['fields'] = fields unless fields.nil?
252
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
253
+ execute_or_queue_command(command, &block)
254
+ end
255
+
256
+ # Returns one or more ranges of values from a spreadsheet.
257
+ # The caller must specify the spreadsheet ID and one or more ranges.
258
+ # @param [String] spreadsheet_id
259
+ # The ID of the spreadsheet to retrieve data from.
260
+ # @param [Array<String>, String] ranges
261
+ # The A1 notation of the values to retrieve.
262
+ # @param [String] major_dimension
263
+ # The major dimension that results should use.
264
+ # For example, if the spreadsheet data is: `A1=1,B1=2,A2=3,B2=4`,
265
+ # then requesting `range=A1:B2,majorDimension=ROWS` will return
266
+ # `[[1,2],[3,4]]`,
267
+ # whereas requesting `range=A1:B2,majorDimension=COLUMNS` will return
268
+ # `[[1,3],[2,4]]`.
269
+ # @param [String] value_render_option
270
+ # How values should be represented in the output.
271
+ # The default render option is ValueRenderOption.FORMATTED_VALUE.
272
+ # @param [String] date_time_render_option
273
+ # How dates, times, and durations should be represented in the output.
274
+ # This is ignored if value_render_option is
275
+ # FORMATTED_VALUE.
276
+ # The default dateTime render option is [DateTimeRenderOption.SERIAL_NUMBER].
277
+ # @param [String] fields
278
+ # Selector specifying which fields to include in a partial response.
279
+ # @param [String] quota_user
280
+ # Available to use for quota purposes for server-side applications. Can be any
281
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
282
+ # @param [Google::Apis::RequestOptions] options
283
+ # Request-specific options
284
+ #
285
+ # @yield [result, err] Result & error if block supplied
286
+ # @yieldparam result [Google::Apis::SheetsV4::BatchGetValuesResponse] parsed result object
287
+ # @yieldparam err [StandardError] error object if request failed
288
+ #
289
+ # @return [Google::Apis::SheetsV4::BatchGetValuesResponse]
290
+ #
291
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
292
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
293
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
294
+ def batch_get_spreadsheet_values(spreadsheet_id, ranges: nil, major_dimension: nil, value_render_option: nil, date_time_render_option: nil, fields: nil, quota_user: nil, options: nil, &block)
295
+ command = make_simple_command(:get, 'v4/spreadsheets/{spreadsheetId}/values:batchGet', options)
296
+ command.response_representation = Google::Apis::SheetsV4::BatchGetValuesResponse::Representation
297
+ command.response_class = Google::Apis::SheetsV4::BatchGetValuesResponse
298
+ command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
299
+ command.query['ranges'] = ranges unless ranges.nil?
300
+ command.query['majorDimension'] = major_dimension unless major_dimension.nil?
301
+ command.query['valueRenderOption'] = value_render_option unless value_render_option.nil?
302
+ command.query['dateTimeRenderOption'] = date_time_render_option unless date_time_render_option.nil?
303
+ command.query['fields'] = fields unless fields.nil?
304
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
177
305
  execute_or_queue_command(command, &block)
178
306
  end
179
307
 
@@ -212,11 +340,11 @@ module Google
212
340
  # Determines if the update response should include the values
213
341
  # of the cells that were appended. By default, responses
214
342
  # do not include the updated values.
343
+ # @param [String] fields
344
+ # Selector specifying which fields to include in a partial response.
215
345
  # @param [String] quota_user
216
346
  # Available to use for quota purposes for server-side applications. Can be any
217
347
  # arbitrary string assigned to a user, but should not exceed 40 characters.
218
- # @param [String] fields
219
- # Selector specifying which fields to include in a partial response.
220
348
  # @param [Google::Apis::RequestOptions] options
221
349
  # Request-specific options
222
350
  #
@@ -229,7 +357,7 @@ module Google
229
357
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
230
358
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
231
359
  # @raise [Google::Apis::AuthorizationError] Authorization is required
232
- def append_spreadsheet_value(spreadsheet_id, range, value_range_object = nil, response_value_render_option: nil, insert_data_option: nil, value_input_option: nil, response_date_time_render_option: nil, include_values_in_response: nil, quota_user: nil, fields: nil, options: nil, &block)
360
+ def append_spreadsheet_value(spreadsheet_id, range, value_range_object = nil, response_value_render_option: nil, insert_data_option: nil, value_input_option: nil, response_date_time_render_option: nil, include_values_in_response: nil, fields: nil, quota_user: nil, options: nil, &block)
233
361
  command = make_simple_command(:post, 'v4/spreadsheets/{spreadsheetId}/values/{range}:append', options)
234
362
  command.request_representation = Google::Apis::SheetsV4::ValueRange::Representation
235
363
  command.request_object = value_range_object
@@ -242,8 +370,8 @@ module Google
242
370
  command.query['valueInputOption'] = value_input_option unless value_input_option.nil?
243
371
  command.query['responseDateTimeRenderOption'] = response_date_time_render_option unless response_date_time_render_option.nil?
244
372
  command.query['includeValuesInResponse'] = include_values_in_response unless include_values_in_response.nil?
245
- command.query['quotaUser'] = quota_user unless quota_user.nil?
246
373
  command.query['fields'] = fields unless fields.nil?
374
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
247
375
  execute_or_queue_command(command, &block)
248
376
  end
249
377
 
@@ -254,11 +382,11 @@ module Google
254
382
  # @param [String] spreadsheet_id
255
383
  # The ID of the spreadsheet to update.
256
384
  # @param [Google::Apis::SheetsV4::BatchClearValuesRequest] batch_clear_values_request_object
385
+ # @param [String] fields
386
+ # Selector specifying which fields to include in a partial response.
257
387
  # @param [String] quota_user
258
388
  # Available to use for quota purposes for server-side applications. Can be any
259
389
  # arbitrary string assigned to a user, but should not exceed 40 characters.
260
- # @param [String] fields
261
- # Selector specifying which fields to include in a partial response.
262
390
  # @param [Google::Apis::RequestOptions] options
263
391
  # Request-specific options
264
392
  #
@@ -271,15 +399,15 @@ module Google
271
399
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
272
400
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
273
401
  # @raise [Google::Apis::AuthorizationError] Authorization is required
274
- def batch_clear_values(spreadsheet_id, batch_clear_values_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
402
+ def batch_clear_values(spreadsheet_id, batch_clear_values_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
275
403
  command = make_simple_command(:post, 'v4/spreadsheets/{spreadsheetId}/values:batchClear', options)
276
404
  command.request_representation = Google::Apis::SheetsV4::BatchClearValuesRequest::Representation
277
405
  command.request_object = batch_clear_values_request_object
278
406
  command.response_representation = Google::Apis::SheetsV4::BatchClearValuesResponse::Representation
279
407
  command.response_class = Google::Apis::SheetsV4::BatchClearValuesResponse
280
408
  command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
281
- command.query['quotaUser'] = quota_user unless quota_user.nil?
282
409
  command.query['fields'] = fields unless fields.nil?
410
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
283
411
  execute_or_queue_command(command, &block)
284
412
  end
285
413
 
@@ -289,6 +417,13 @@ module Google
289
417
  # The ID of the spreadsheet to retrieve data from.
290
418
  # @param [String] range
291
419
  # The A1 notation of the values to retrieve.
420
+ # @param [String] major_dimension
421
+ # The major dimension that results should use.
422
+ # For example, if the spreadsheet data is: `A1=1,B1=2,A2=3,B2=4`,
423
+ # then requesting `range=A1:B2,majorDimension=ROWS` will return
424
+ # `[[1,2],[3,4]]`,
425
+ # whereas requesting `range=A1:B2,majorDimension=COLUMNS` will return
426
+ # `[[1,3],[2,4]]`.
292
427
  # @param [String] value_render_option
293
428
  # How values should be represented in the output.
294
429
  # The default render option is ValueRenderOption.FORMATTED_VALUE.
@@ -297,18 +432,11 @@ module Google
297
432
  # This is ignored if value_render_option is
298
433
  # FORMATTED_VALUE.
299
434
  # The default dateTime render option is [DateTimeRenderOption.SERIAL_NUMBER].
300
- # @param [String] major_dimension
301
- # The major dimension that results should use.
302
- # For example, if the spreadsheet data is: `A1=1,B1=2,A2=3,B2=4`,
303
- # then requesting `range=A1:B2,majorDimension=ROWS` will return
304
- # `[[1,2],[3,4]]`,
305
- # whereas requesting `range=A1:B2,majorDimension=COLUMNS` will return
306
- # `[[1,3],[2,4]]`.
435
+ # @param [String] fields
436
+ # Selector specifying which fields to include in a partial response.
307
437
  # @param [String] quota_user
308
438
  # Available to use for quota purposes for server-side applications. Can be any
309
439
  # arbitrary string assigned to a user, but should not exceed 40 characters.
310
- # @param [String] fields
311
- # Selector specifying which fields to include in a partial response.
312
440
  # @param [Google::Apis::RequestOptions] options
313
441
  # Request-specific options
314
442
  #
@@ -321,17 +449,17 @@ module Google
321
449
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
322
450
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
323
451
  # @raise [Google::Apis::AuthorizationError] Authorization is required
324
- def get_spreadsheet_values(spreadsheet_id, range, value_render_option: nil, date_time_render_option: nil, major_dimension: nil, quota_user: nil, fields: nil, options: nil, &block)
452
+ def get_spreadsheet_values(spreadsheet_id, range, major_dimension: nil, value_render_option: nil, date_time_render_option: nil, fields: nil, quota_user: nil, options: nil, &block)
325
453
  command = make_simple_command(:get, 'v4/spreadsheets/{spreadsheetId}/values/{range}', options)
326
454
  command.response_representation = Google::Apis::SheetsV4::ValueRange::Representation
327
455
  command.response_class = Google::Apis::SheetsV4::ValueRange
328
456
  command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
329
457
  command.params['range'] = range unless range.nil?
458
+ command.query['majorDimension'] = major_dimension unless major_dimension.nil?
330
459
  command.query['valueRenderOption'] = value_render_option unless value_render_option.nil?
331
460
  command.query['dateTimeRenderOption'] = date_time_render_option unless date_time_render_option.nil?
332
- command.query['majorDimension'] = major_dimension unless major_dimension.nil?
333
- command.query['quotaUser'] = quota_user unless quota_user.nil?
334
461
  command.query['fields'] = fields unless fields.nil?
462
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
335
463
  execute_or_queue_command(command, &block)
336
464
  end
337
465
 
@@ -343,6 +471,9 @@ module Google
343
471
  # @param [String] range
344
472
  # The A1 notation of the values to update.
345
473
  # @param [Google::Apis::SheetsV4::ValueRange] value_range_object
474
+ # @param [String] response_value_render_option
475
+ # Determines how values in the response should be rendered.
476
+ # The default render option is ValueRenderOption.FORMATTED_VALUE.
346
477
  # @param [String] value_input_option
347
478
  # How the input data should be interpreted.
348
479
  # @param [String] response_date_time_render_option
@@ -357,14 +488,11 @@ module Google
357
488
  # If the range to write was larger than than the range actually written,
358
489
  # the response will include all values in the requested range (excluding
359
490
  # trailing empty rows and columns).
360
- # @param [String] response_value_render_option
361
- # Determines how values in the response should be rendered.
362
- # The default render option is ValueRenderOption.FORMATTED_VALUE.
491
+ # @param [String] fields
492
+ # Selector specifying which fields to include in a partial response.
363
493
  # @param [String] quota_user
364
494
  # Available to use for quota purposes for server-side applications. Can be any
365
495
  # arbitrary string assigned to a user, but should not exceed 40 characters.
366
- # @param [String] fields
367
- # Selector specifying which fields to include in a partial response.
368
496
  # @param [Google::Apis::RequestOptions] options
369
497
  # Request-specific options
370
498
  #
@@ -377,7 +505,7 @@ module Google
377
505
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
378
506
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
379
507
  # @raise [Google::Apis::AuthorizationError] Authorization is required
380
- def update_spreadsheet_value(spreadsheet_id, range, value_range_object = nil, value_input_option: nil, response_date_time_render_option: nil, include_values_in_response: nil, response_value_render_option: nil, quota_user: nil, fields: nil, options: nil, &block)
508
+ def update_spreadsheet_value(spreadsheet_id, range, value_range_object = nil, response_value_render_option: nil, value_input_option: nil, response_date_time_render_option: nil, include_values_in_response: nil, fields: nil, quota_user: nil, options: nil, &block)
381
509
  command = make_simple_command(:put, 'v4/spreadsheets/{spreadsheetId}/values/{range}', options)
382
510
  command.request_representation = Google::Apis::SheetsV4::ValueRange::Representation
383
511
  command.request_object = value_range_object
@@ -385,12 +513,12 @@ module Google
385
513
  command.response_class = Google::Apis::SheetsV4::UpdateValuesResponse
386
514
  command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
387
515
  command.params['range'] = range unless range.nil?
516
+ command.query['responseValueRenderOption'] = response_value_render_option unless response_value_render_option.nil?
388
517
  command.query['valueInputOption'] = value_input_option unless value_input_option.nil?
389
518
  command.query['responseDateTimeRenderOption'] = response_date_time_render_option unless response_date_time_render_option.nil?
390
519
  command.query['includeValuesInResponse'] = include_values_in_response unless include_values_in_response.nil?
391
- command.query['responseValueRenderOption'] = response_value_render_option unless response_value_render_option.nil?
392
- command.query['quotaUser'] = quota_user unless quota_user.nil?
393
520
  command.query['fields'] = fields unless fields.nil?
521
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
394
522
  execute_or_queue_command(command, &block)
395
523
  end
396
524
 
@@ -401,11 +529,11 @@ module Google
401
529
  # @param [String] spreadsheet_id
402
530
  # The ID of the spreadsheet to update.
403
531
  # @param [Google::Apis::SheetsV4::BatchUpdateValuesRequest] batch_update_values_request_object
532
+ # @param [String] fields
533
+ # Selector specifying which fields to include in a partial response.
404
534
  # @param [String] quota_user
405
535
  # Available to use for quota purposes for server-side applications. Can be any
406
536
  # arbitrary string assigned to a user, but should not exceed 40 characters.
407
- # @param [String] fields
408
- # Selector specifying which fields to include in a partial response.
409
537
  # @param [Google::Apis::RequestOptions] options
410
538
  # Request-specific options
411
539
  #
@@ -418,143 +546,15 @@ module Google
418
546
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
419
547
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
420
548
  # @raise [Google::Apis::AuthorizationError] Authorization is required
421
- def batch_update_values(spreadsheet_id, batch_update_values_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
549
+ def batch_update_values(spreadsheet_id, batch_update_values_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
422
550
  command = make_simple_command(:post, 'v4/spreadsheets/{spreadsheetId}/values:batchUpdate', options)
423
551
  command.request_representation = Google::Apis::SheetsV4::BatchUpdateValuesRequest::Representation
424
552
  command.request_object = batch_update_values_request_object
425
553
  command.response_representation = Google::Apis::SheetsV4::BatchUpdateValuesResponse::Representation
426
554
  command.response_class = Google::Apis::SheetsV4::BatchUpdateValuesResponse
427
555
  command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
428
- command.query['quotaUser'] = quota_user unless quota_user.nil?
429
556
  command.query['fields'] = fields unless fields.nil?
430
- execute_or_queue_command(command, &block)
431
- end
432
-
433
- # Clears values from a spreadsheet.
434
- # The caller must specify the spreadsheet ID and range.
435
- # Only values are cleared -- all other properties of the cell (such as
436
- # formatting, data validation, etc..) are kept.
437
- # @param [String] spreadsheet_id
438
- # The ID of the spreadsheet to update.
439
- # @param [String] range
440
- # The A1 notation of the values to clear.
441
- # @param [Google::Apis::SheetsV4::ClearValuesRequest] clear_values_request_object
442
- # @param [String] quota_user
443
- # Available to use for quota purposes for server-side applications. Can be any
444
- # arbitrary string assigned to a user, but should not exceed 40 characters.
445
- # @param [String] fields
446
- # Selector specifying which fields to include in a partial response.
447
- # @param [Google::Apis::RequestOptions] options
448
- # Request-specific options
449
- #
450
- # @yield [result, err] Result & error if block supplied
451
- # @yieldparam result [Google::Apis::SheetsV4::ClearValuesResponse] parsed result object
452
- # @yieldparam err [StandardError] error object if request failed
453
- #
454
- # @return [Google::Apis::SheetsV4::ClearValuesResponse]
455
- #
456
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
457
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
458
- # @raise [Google::Apis::AuthorizationError] Authorization is required
459
- def clear_values(spreadsheet_id, range, clear_values_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
460
- command = make_simple_command(:post, 'v4/spreadsheets/{spreadsheetId}/values/{range}:clear', options)
461
- command.request_representation = Google::Apis::SheetsV4::ClearValuesRequest::Representation
462
- command.request_object = clear_values_request_object
463
- command.response_representation = Google::Apis::SheetsV4::ClearValuesResponse::Representation
464
- command.response_class = Google::Apis::SheetsV4::ClearValuesResponse
465
- command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
466
- command.params['range'] = range unless range.nil?
467
557
  command.query['quotaUser'] = quota_user unless quota_user.nil?
468
- command.query['fields'] = fields unless fields.nil?
469
- execute_or_queue_command(command, &block)
470
- end
471
-
472
- # Returns one or more ranges of values from a spreadsheet.
473
- # The caller must specify the spreadsheet ID and one or more ranges.
474
- # @param [String] spreadsheet_id
475
- # The ID of the spreadsheet to retrieve data from.
476
- # @param [String] value_render_option
477
- # How values should be represented in the output.
478
- # The default render option is ValueRenderOption.FORMATTED_VALUE.
479
- # @param [String] date_time_render_option
480
- # How dates, times, and durations should be represented in the output.
481
- # This is ignored if value_render_option is
482
- # FORMATTED_VALUE.
483
- # The default dateTime render option is [DateTimeRenderOption.SERIAL_NUMBER].
484
- # @param [Array<String>, String] ranges
485
- # The A1 notation of the values to retrieve.
486
- # @param [String] major_dimension
487
- # The major dimension that results should use.
488
- # For example, if the spreadsheet data is: `A1=1,B1=2,A2=3,B2=4`,
489
- # then requesting `range=A1:B2,majorDimension=ROWS` will return
490
- # `[[1,2],[3,4]]`,
491
- # whereas requesting `range=A1:B2,majorDimension=COLUMNS` will return
492
- # `[[1,3],[2,4]]`.
493
- # @param [String] quota_user
494
- # Available to use for quota purposes for server-side applications. Can be any
495
- # arbitrary string assigned to a user, but should not exceed 40 characters.
496
- # @param [String] fields
497
- # Selector specifying which fields to include in a partial response.
498
- # @param [Google::Apis::RequestOptions] options
499
- # Request-specific options
500
- #
501
- # @yield [result, err] Result & error if block supplied
502
- # @yieldparam result [Google::Apis::SheetsV4::BatchGetValuesResponse] parsed result object
503
- # @yieldparam err [StandardError] error object if request failed
504
- #
505
- # @return [Google::Apis::SheetsV4::BatchGetValuesResponse]
506
- #
507
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
508
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
509
- # @raise [Google::Apis::AuthorizationError] Authorization is required
510
- def batch_get_spreadsheet_values(spreadsheet_id, value_render_option: nil, date_time_render_option: nil, ranges: nil, major_dimension: nil, quota_user: nil, fields: nil, options: nil, &block)
511
- command = make_simple_command(:get, 'v4/spreadsheets/{spreadsheetId}/values:batchGet', options)
512
- command.response_representation = Google::Apis::SheetsV4::BatchGetValuesResponse::Representation
513
- command.response_class = Google::Apis::SheetsV4::BatchGetValuesResponse
514
- command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
515
- command.query['valueRenderOption'] = value_render_option unless value_render_option.nil?
516
- command.query['dateTimeRenderOption'] = date_time_render_option unless date_time_render_option.nil?
517
- command.query['ranges'] = ranges unless ranges.nil?
518
- command.query['majorDimension'] = major_dimension unless major_dimension.nil?
519
- command.query['quotaUser'] = quota_user unless quota_user.nil?
520
- command.query['fields'] = fields unless fields.nil?
521
- execute_or_queue_command(command, &block)
522
- end
523
-
524
- # Copies a single sheet from a spreadsheet to another spreadsheet.
525
- # Returns the properties of the newly created sheet.
526
- # @param [String] spreadsheet_id
527
- # The ID of the spreadsheet containing the sheet to copy.
528
- # @param [Fixnum] sheet_id
529
- # The ID of the sheet to copy.
530
- # @param [Google::Apis::SheetsV4::CopySheetToAnotherSpreadsheetRequest] copy_sheet_to_another_spreadsheet_request_object
531
- # @param [String] quota_user
532
- # Available to use for quota purposes for server-side applications. Can be any
533
- # arbitrary string assigned to a user, but should not exceed 40 characters.
534
- # @param [String] fields
535
- # Selector specifying which fields to include in a partial response.
536
- # @param [Google::Apis::RequestOptions] options
537
- # Request-specific options
538
- #
539
- # @yield [result, err] Result & error if block supplied
540
- # @yieldparam result [Google::Apis::SheetsV4::SheetProperties] parsed result object
541
- # @yieldparam err [StandardError] error object if request failed
542
- #
543
- # @return [Google::Apis::SheetsV4::SheetProperties]
544
- #
545
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
546
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
547
- # @raise [Google::Apis::AuthorizationError] Authorization is required
548
- def copy_spreadsheet(spreadsheet_id, sheet_id, copy_sheet_to_another_spreadsheet_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
549
- command = make_simple_command(:post, 'v4/spreadsheets/{spreadsheetId}/sheets/{sheetId}:copyTo', options)
550
- command.request_representation = Google::Apis::SheetsV4::CopySheetToAnotherSpreadsheetRequest::Representation
551
- command.request_object = copy_sheet_to_another_spreadsheet_request_object
552
- command.response_representation = Google::Apis::SheetsV4::SheetProperties::Representation
553
- command.response_class = Google::Apis::SheetsV4::SheetProperties
554
- command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
555
- command.params['sheetId'] = sheet_id unless sheet_id.nil?
556
- command.query['quotaUser'] = quota_user unless quota_user.nil?
557
- command.query['fields'] = fields unless fields.nil?
558
558
  execute_or_queue_command(command, &block)
559
559
  end
560
560