google-api-client 0.10.0 → 0.10.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (193) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +4 -0
  3. data/README.md +1 -1
  4. data/api_names.yaml +37747 -36512
  5. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  6. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +1016 -114
  7. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +426 -22
  8. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +481 -95
  9. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  10. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +27 -10
  11. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +1 -0
  12. data/generated/google/apis/admin_reports_v1.rb +2 -2
  13. data/generated/google/apis/adsense_v1_4.rb +1 -1
  14. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  15. data/generated/google/apis/analytics_v3.rb +1 -1
  16. data/generated/google/apis/analyticsreporting_v4.rb +4 -4
  17. data/generated/google/apis/analyticsreporting_v4/classes.rb +428 -428
  18. data/generated/google/apis/analyticsreporting_v4/representations.rb +108 -108
  19. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  20. data/generated/google/apis/androidenterprise_v1/classes.rb +60 -66
  21. data/generated/google/apis/androidenterprise_v1/service.rb +12 -11
  22. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  23. data/generated/google/apis/androidpublisher_v2/classes.rb +7 -0
  24. data/generated/google/apis/androidpublisher_v2/representations.rb +1 -0
  25. data/generated/google/apis/androidpublisher_v2/service.rb +1 -1
  26. data/generated/google/apis/appsactivity_v1.rb +3 -3
  27. data/generated/google/apis/appsactivity_v1/service.rb +1 -1
  28. data/generated/google/apis/appstate_v1.rb +1 -1
  29. data/generated/google/apis/bigquery_v2.rb +1 -1
  30. data/generated/google/apis/bigquery_v2/classes.rb +34 -8
  31. data/generated/google/apis/bigquery_v2/representations.rb +15 -0
  32. data/generated/google/apis/calendar_v3.rb +1 -1
  33. data/generated/google/apis/calendar_v3/classes.rb +3 -5
  34. data/generated/google/apis/classroom_v1.rb +25 -22
  35. data/generated/google/apis/classroom_v1/classes.rb +910 -1001
  36. data/generated/google/apis/classroom_v1/representations.rb +240 -240
  37. data/generated/google/apis/classroom_v1/service.rb +1064 -1272
  38. data/generated/google/apis/cloudbilling_v1.rb +3 -3
  39. data/generated/google/apis/cloudbilling_v1/classes.rb +76 -75
  40. data/generated/google/apis/cloudbilling_v1/representations.rb +17 -17
  41. data/generated/google/apis/cloudbilling_v1/service.rb +117 -110
  42. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  43. data/generated/google/apis/cloudbuild_v1/classes.rb +238 -238
  44. data/generated/google/apis/cloudbuild_v1/representations.rb +48 -48
  45. data/generated/google/apis/cloudbuild_v1/service.rb +176 -176
  46. data/generated/google/apis/clouddebugger_v2.rb +4 -4
  47. data/generated/google/apis/clouddebugger_v2/classes.rb +315 -315
  48. data/generated/google/apis/clouddebugger_v2/representations.rb +90 -90
  49. data/generated/google/apis/clouddebugger_v2/service.rb +152 -152
  50. data/generated/google/apis/cloudkms_v1.rb +35 -0
  51. data/generated/google/apis/cloudkms_v1/classes.rb +1039 -0
  52. data/generated/google/apis/cloudkms_v1/representations.rb +448 -0
  53. data/generated/google/apis/cloudkms_v1/service.rb +933 -0
  54. data/generated/google/apis/cloudkms_v1beta1.rb +1 -1
  55. data/generated/google/apis/cloudkms_v1beta1/classes.rb +645 -605
  56. data/generated/google/apis/cloudkms_v1beta1/representations.rb +136 -136
  57. data/generated/google/apis/cloudkms_v1beta1/service.rb +258 -264
  58. data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
  59. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  60. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +677 -456
  61. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +154 -89
  62. data/generated/google/apis/cloudresourcemanager_v1/service.rb +380 -279
  63. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +4 -4
  64. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +247 -114
  65. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +72 -40
  66. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +202 -208
  67. data/generated/google/apis/cloudtrace_v1.rb +4 -4
  68. data/generated/google/apis/cloudtrace_v1/classes.rb +39 -39
  69. data/generated/google/apis/cloudtrace_v1/representations.rb +13 -13
  70. data/generated/google/apis/cloudtrace_v1/service.rb +18 -18
  71. data/generated/google/apis/compute_beta.rb +1 -1
  72. data/generated/google/apis/compute_beta/classes.rb +813 -82
  73. data/generated/google/apis/compute_beta/representations.rb +305 -0
  74. data/generated/google/apis/compute_beta/service.rb +971 -180
  75. data/generated/google/apis/compute_v1.rb +1 -1
  76. data/generated/google/apis/compute_v1/classes.rb +147 -21
  77. data/generated/google/apis/compute_v1/representations.rb +38 -0
  78. data/generated/google/apis/compute_v1/service.rb +347 -65
  79. data/generated/google/apis/content_v2.rb +1 -1
  80. data/generated/google/apis/content_v2/classes.rb +2 -1
  81. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  82. data/generated/google/apis/dataflow_v1b3/classes.rb +3352 -3110
  83. data/generated/google/apis/dataflow_v1b3/representations.rb +812 -730
  84. data/generated/google/apis/dataflow_v1b3/service.rb +264 -183
  85. data/generated/google/apis/dataproc_v1.rb +1 -1
  86. data/generated/google/apis/dataproc_v1/classes.rb +1200 -1164
  87. data/generated/google/apis/dataproc_v1/representations.rb +220 -204
  88. data/generated/google/apis/dataproc_v1/service.rb +299 -299
  89. data/generated/google/apis/datastore_v1.rb +4 -4
  90. data/generated/google/apis/datastore_v1/classes.rb +688 -688
  91. data/generated/google/apis/datastore_v1/representations.rb +167 -167
  92. data/generated/google/apis/datastore_v1/service.rb +68 -68
  93. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  94. data/generated/google/apis/deploymentmanager_v2/classes.rb +13 -3
  95. data/generated/google/apis/dns_v1.rb +1 -1
  96. data/generated/google/apis/dns_v2beta1.rb +1 -1
  97. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  98. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +1 -1
  99. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  100. data/generated/google/apis/drive_v2.rb +1 -1
  101. data/generated/google/apis/drive_v2/classes.rb +487 -15
  102. data/generated/google/apis/drive_v2/representations.rb +120 -0
  103. data/generated/google/apis/drive_v2/service.rb +355 -38
  104. data/generated/google/apis/drive_v3.rb +1 -1
  105. data/generated/google/apis/drive_v3/classes.rb +416 -14
  106. data/generated/google/apis/drive_v3/representations.rb +99 -0
  107. data/generated/google/apis/drive_v3/service.rb +315 -28
  108. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  109. data/generated/google/apis/games_management_v1management.rb +1 -1
  110. data/generated/google/apis/games_v1.rb +1 -1
  111. data/generated/google/apis/genomics_v1.rb +7 -7
  112. data/generated/google/apis/genomics_v1/classes.rb +2301 -2301
  113. data/generated/google/apis/genomics_v1/representations.rb +239 -239
  114. data/generated/google/apis/genomics_v1/service.rb +599 -599
  115. data/generated/google/apis/gmail_v1.rb +2 -2
  116. data/generated/google/apis/gmail_v1/service.rb +18 -1
  117. data/generated/google/apis/groupssettings_v1.rb +1 -1
  118. data/generated/google/apis/iam_v1.rb +1 -1
  119. data/generated/google/apis/iam_v1/classes.rb +440 -440
  120. data/generated/google/apis/iam_v1/representations.rb +96 -96
  121. data/generated/google/apis/iam_v1/service.rb +150 -150
  122. data/generated/google/apis/kgsearch_v1/service.rb +13 -13
  123. data/generated/google/apis/language_v1beta1.rb +1 -1
  124. data/generated/google/apis/language_v1beta1/classes.rb +235 -235
  125. data/generated/google/apis/language_v1beta1/representations.rb +73 -73
  126. data/generated/google/apis/language_v1beta1/service.rb +49 -49
  127. data/generated/google/apis/licensing_v1.rb +1 -1
  128. data/generated/google/apis/logging_v2beta1.rb +1 -1
  129. data/generated/google/apis/logging_v2beta1/classes.rb +888 -879
  130. data/generated/google/apis/logging_v2beta1/representations.rb +129 -129
  131. data/generated/google/apis/logging_v2beta1/service.rb +315 -316
  132. data/generated/google/apis/manufacturers_v1/classes.rb +139 -139
  133. data/generated/google/apis/manufacturers_v1/representations.rb +30 -30
  134. data/generated/google/apis/manufacturers_v1/service.rb +32 -32
  135. data/generated/google/apis/monitoring_v3.rb +4 -4
  136. data/generated/google/apis/monitoring_v3/classes.rb +229 -229
  137. data/generated/google/apis/monitoring_v3/representations.rb +45 -45
  138. data/generated/google/apis/monitoring_v3/service.rb +141 -141
  139. data/generated/google/apis/partners_v2.rb +3 -3
  140. data/generated/google/apis/partners_v2/classes.rb +1837 -483
  141. data/generated/google/apis/partners_v2/representations.rb +614 -157
  142. data/generated/google/apis/partners_v2/service.rb +881 -150
  143. data/generated/google/apis/people_v1.rb +1 -1
  144. data/generated/google/apis/people_v1/classes.rb +517 -465
  145. data/generated/google/apis/people_v1/representations.rb +138 -107
  146. data/generated/google/apis/people_v1/service.rb +56 -49
  147. data/generated/google/apis/plus_domains_v1.rb +1 -1
  148. data/generated/google/apis/plus_v1.rb +1 -1
  149. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  150. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +529 -458
  151. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +98 -97
  152. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +494 -370
  153. data/generated/google/apis/pubsub_v1.rb +4 -4
  154. data/generated/google/apis/pubsub_v1/classes.rb +203 -203
  155. data/generated/google/apis/pubsub_v1/representations.rb +65 -65
  156. data/generated/google/apis/pubsub_v1/service.rb +226 -217
  157. data/generated/google/apis/reseller_v1.rb +1 -1
  158. data/generated/google/apis/reseller_v1/classes.rb +213 -61
  159. data/generated/google/apis/reseller_v1/representations.rb +27 -0
  160. data/generated/google/apis/reseller_v1/service.rb +240 -47
  161. data/generated/google/apis/script_v1.rb +14 -14
  162. data/generated/google/apis/script_v1/classes.rb +95 -95
  163. data/generated/google/apis/script_v1/representations.rb +25 -25
  164. data/generated/google/apis/sheets_v4.rb +1 -1
  165. data/generated/google/apis/sheets_v4/classes.rb +4346 -4300
  166. data/generated/google/apis/sheets_v4/representations.rb +853 -837
  167. data/generated/google/apis/sheets_v4/service.rb +32 -32
  168. data/generated/google/apis/slides_v1.rb +1 -1
  169. data/generated/google/apis/slides_v1/classes.rb +804 -748
  170. data/generated/google/apis/slides_v1/representations.rb +204 -187
  171. data/generated/google/apis/slides_v1/service.rb +16 -16
  172. data/generated/google/apis/speech_v1beta1.rb +1 -1
  173. data/generated/google/apis/speech_v1beta1/classes.rb +57 -57
  174. data/generated/google/apis/speech_v1beta1/representations.rb +19 -19
  175. data/generated/google/apis/speech_v1beta1/service.rb +66 -66
  176. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  177. data/generated/google/apis/sqladmin_v1beta4/classes.rb +32 -7
  178. data/generated/google/apis/sqladmin_v1beta4/representations.rb +16 -0
  179. data/generated/google/apis/sqladmin_v1beta4/service.rb +9 -2
  180. data/generated/google/apis/storage_v1.rb +1 -1
  181. data/generated/google/apis/storage_v1/service.rb +10 -7
  182. data/generated/google/apis/vision_v1.rb +1 -1
  183. data/generated/google/apis/vision_v1/classes.rb +1393 -865
  184. data/generated/google/apis/vision_v1/representations.rb +367 -102
  185. data/generated/google/apis/vision_v1/service.rb +4 -4
  186. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  187. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  188. data/generated/google/apis/youtubereporting_v1.rb +4 -4
  189. data/generated/google/apis/youtubereporting_v1/classes.rb +93 -93
  190. data/generated/google/apis/youtubereporting_v1/representations.rb +25 -25
  191. data/generated/google/apis/youtubereporting_v1/service.rb +108 -108
  192. data/lib/google/apis/version.rb +1 -1
  193. metadata +34 -30
@@ -32,16 +32,16 @@ module Google
32
32
  #
33
33
  # @see https://developers.google.com/sheets/
34
34
  class SheetsService < Google::Apis::Core::BaseService
35
- # @return [String]
36
- # 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
35
  # @return [String]
41
36
  # Available to use for quota purposes for server-side applications. Can be any
42
37
  # arbitrary string assigned to a user, but should not exceed 40 characters.
43
38
  attr_accessor :quota_user
44
39
 
40
+ # @return [String]
41
+ # API key. Your API key identifies your project and provides you with API access,
42
+ # quota, and reports. Required unless you provide an OAuth 2.0 token.
43
+ attr_accessor :key
44
+
45
45
  def initialize
46
46
  super('https://sheets.googleapis.com/', '')
47
47
  end
@@ -182,6 +182,13 @@ module Google
182
182
  # The ID of the spreadsheet to retrieve data from.
183
183
  # @param [String] range
184
184
  # The A1 notation of the values to retrieve.
185
+ # @param [String] major_dimension
186
+ # The major dimension that results should use.
187
+ # For example, if the spreadsheet data is: `A1=1,B1=2,A2=3,B2=4`,
188
+ # then requesting `range=A1:B2,majorDimension=ROWS` will return
189
+ # `[[1,2],[3,4]]`,
190
+ # whereas requesting `range=A1:B2,majorDimension=COLUMNS` will return
191
+ # `[[1,3],[2,4]]`.
185
192
  # @param [String] value_render_option
186
193
  # How values should be represented in the output.
187
194
  # The default render option is ValueRenderOption.FORMATTED_VALUE.
@@ -190,13 +197,6 @@ module Google
190
197
  # This is ignored if value_render_option is
191
198
  # FORMATTED_VALUE.
192
199
  # The default dateTime render option is [DateTimeRenderOption.SERIAL_NUMBER].
193
- # @param [String] major_dimension
194
- # The major dimension that results should use.
195
- # For example, if the spreadsheet data is: `A1=1,B1=2,A2=3,B2=4`,
196
- # then requesting `range=A1:B2,majorDimension=ROWS` will return
197
- # `[[1,2],[3,4]]`,
198
- # whereas requesting `range=A1:B2,majorDimension=COLUMNS` will return
199
- # `[[1,3],[2,4]]`.
200
200
  # @param [String] quota_user
201
201
  # Available to use for quota purposes for server-side applications. Can be any
202
202
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -214,15 +214,15 @@ module Google
214
214
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
215
215
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
216
216
  # @raise [Google::Apis::AuthorizationError] Authorization is required
217
- def get_spreadsheet_values(spreadsheet_id, range, value_render_option: nil, date_time_render_option: nil, major_dimension: nil, quota_user: nil, fields: nil, options: nil, &block)
217
+ def get_spreadsheet_values(spreadsheet_id, range, major_dimension: nil, value_render_option: nil, date_time_render_option: nil, quota_user: nil, fields: nil, options: nil, &block)
218
218
  command = make_simple_command(:get, 'v4/spreadsheets/{spreadsheetId}/values/{range}', options)
219
219
  command.response_representation = Google::Apis::SheetsV4::ValueRange::Representation
220
220
  command.response_class = Google::Apis::SheetsV4::ValueRange
221
221
  command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
222
222
  command.params['range'] = range unless range.nil?
223
+ command.query['majorDimension'] = major_dimension unless major_dimension.nil?
223
224
  command.query['valueRenderOption'] = value_render_option unless value_render_option.nil?
224
225
  command.query['dateTimeRenderOption'] = date_time_render_option unless date_time_render_option.nil?
225
- command.query['majorDimension'] = major_dimension unless major_dimension.nil?
226
226
  command.query['quotaUser'] = quota_user unless quota_user.nil?
227
227
  command.query['fields'] = fields unless fields.nil?
228
228
  execute_or_queue_command(command, &block)
@@ -236,13 +236,6 @@ module Google
236
236
  # @param [String] range
237
237
  # The A1 notation of the values to update.
238
238
  # @param [Google::Apis::SheetsV4::ValueRange] value_range_object
239
- # @param [Boolean] include_values_in_response
240
- # Determines if the update response should include the values
241
- # of the cells that were updated. By default, responses
242
- # do not include the updated values.
243
- # If the range to write was larger than than the range actually written,
244
- # the response will include all values in the requested range (excluding
245
- # trailing empty rows and columns).
246
239
  # @param [String] response_value_render_option
247
240
  # Determines how values in the response should be rendered.
248
241
  # The default render option is ValueRenderOption.FORMATTED_VALUE.
@@ -253,6 +246,13 @@ module Google
253
246
  # rendered. This is ignored if response_value_render_option is
254
247
  # FORMATTED_VALUE.
255
248
  # The default dateTime render option is [DateTimeRenderOption.SERIAL_NUMBER].
249
+ # @param [Boolean] include_values_in_response
250
+ # Determines if the update response should include the values
251
+ # of the cells that were updated. By default, responses
252
+ # do not include the updated values.
253
+ # If the range to write was larger than than the range actually written,
254
+ # the response will include all values in the requested range (excluding
255
+ # trailing empty rows and columns).
256
256
  # @param [String] quota_user
257
257
  # Available to use for quota purposes for server-side applications. Can be any
258
258
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -270,7 +270,7 @@ module Google
270
270
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
271
271
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
272
272
  # @raise [Google::Apis::AuthorizationError] Authorization is required
273
- def update_spreadsheet_value(spreadsheet_id, range, value_range_object = nil, include_values_in_response: nil, response_value_render_option: nil, value_input_option: nil, response_date_time_render_option: nil, quota_user: nil, fields: nil, options: nil, &block)
273
+ def update_spreadsheet_value(spreadsheet_id, range, value_range_object = nil, response_value_render_option: nil, value_input_option: nil, response_date_time_render_option: nil, include_values_in_response: nil, quota_user: nil, fields: nil, options: nil, &block)
274
274
  command = make_simple_command(:put, 'v4/spreadsheets/{spreadsheetId}/values/{range}', options)
275
275
  command.request_representation = Google::Apis::SheetsV4::ValueRange::Representation
276
276
  command.request_object = value_range_object
@@ -278,10 +278,10 @@ module Google
278
278
  command.response_class = Google::Apis::SheetsV4::UpdateValuesResponse
279
279
  command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
280
280
  command.params['range'] = range unless range.nil?
281
- command.query['includeValuesInResponse'] = include_values_in_response unless include_values_in_response.nil?
282
281
  command.query['responseValueRenderOption'] = response_value_render_option unless response_value_render_option.nil?
283
282
  command.query['valueInputOption'] = value_input_option unless value_input_option.nil?
284
283
  command.query['responseDateTimeRenderOption'] = response_date_time_render_option unless response_date_time_render_option.nil?
284
+ command.query['includeValuesInResponse'] = include_values_in_response unless include_values_in_response.nil?
285
285
  command.query['quotaUser'] = quota_user unless quota_user.nil?
286
286
  command.query['fields'] = fields unless fields.nil?
287
287
  execute_or_queue_command(command, &block)
@@ -418,9 +418,9 @@ module Google
418
418
  # existing data and find a "table" within that range. Values will be
419
419
  # appended to the next row of the table, starting with the first column of
420
420
  # the table. See the
421
- # [guide](/sheets/guides/values#appending_values)
421
+ # [guide](/sheets/api/guides/values#appending_values)
422
422
  # and
423
- # [sample code](/sheets/samples/writing#append_values)
423
+ # [sample code](/sheets/api/samples/writing#append_values)
424
424
  # for specific details of how tables are detected and data is appended.
425
425
  # The caller must specify the spreadsheet ID, range, and
426
426
  # a valueInputOption. The `valueInputOption` only
@@ -433,10 +433,6 @@ module Google
433
433
  # The A1 notation of a range to search for a logical table of data.
434
434
  # Values will be appended after the last row of the table.
435
435
  # @param [Google::Apis::SheetsV4::ValueRange] value_range_object
436
- # @param [Boolean] include_values_in_response
437
- # Determines if the update response should include the values
438
- # of the cells that were appended. By default, responses
439
- # do not include the updated values.
440
436
  # @param [String] response_value_render_option
441
437
  # Determines how values in the response should be rendered.
442
438
  # The default render option is ValueRenderOption.FORMATTED_VALUE.
@@ -449,6 +445,10 @@ module Google
449
445
  # rendered. This is ignored if response_value_render_option is
450
446
  # FORMATTED_VALUE.
451
447
  # The default dateTime render option is [DateTimeRenderOption.SERIAL_NUMBER].
448
+ # @param [Boolean] include_values_in_response
449
+ # Determines if the update response should include the values
450
+ # of the cells that were appended. By default, responses
451
+ # do not include the updated values.
452
452
  # @param [String] quota_user
453
453
  # Available to use for quota purposes for server-side applications. Can be any
454
454
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -466,7 +466,7 @@ module Google
466
466
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
467
467
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
468
468
  # @raise [Google::Apis::AuthorizationError] Authorization is required
469
- def append_spreadsheet_value(spreadsheet_id, range, value_range_object = nil, include_values_in_response: nil, response_value_render_option: nil, insert_data_option: nil, value_input_option: nil, response_date_time_render_option: nil, quota_user: nil, fields: nil, options: nil, &block)
469
+ def append_spreadsheet_value(spreadsheet_id, range, value_range_object = nil, response_value_render_option: nil, insert_data_option: nil, value_input_option: nil, response_date_time_render_option: nil, include_values_in_response: nil, quota_user: nil, fields: nil, options: nil, &block)
470
470
  command = make_simple_command(:post, 'v4/spreadsheets/{spreadsheetId}/values/{range}:append', options)
471
471
  command.request_representation = Google::Apis::SheetsV4::ValueRange::Representation
472
472
  command.request_object = value_range_object
@@ -474,11 +474,11 @@ module Google
474
474
  command.response_class = Google::Apis::SheetsV4::AppendValuesResponse
475
475
  command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
476
476
  command.params['range'] = range unless range.nil?
477
- command.query['includeValuesInResponse'] = include_values_in_response unless include_values_in_response.nil?
478
477
  command.query['responseValueRenderOption'] = response_value_render_option unless response_value_render_option.nil?
479
478
  command.query['insertDataOption'] = insert_data_option unless insert_data_option.nil?
480
479
  command.query['valueInputOption'] = value_input_option unless value_input_option.nil?
481
480
  command.query['responseDateTimeRenderOption'] = response_date_time_render_option unless response_date_time_render_option.nil?
481
+ command.query['includeValuesInResponse'] = include_values_in_response unless include_values_in_response.nil?
482
482
  command.query['quotaUser'] = quota_user unless quota_user.nil?
483
483
  command.query['fields'] = fields unless fields.nil?
484
484
  execute_or_queue_command(command, &block)
@@ -560,8 +560,8 @@ module Google
560
560
  protected
561
561
 
562
562
  def apply_command_defaults(command)
563
- command.query['key'] = key unless key.nil?
564
563
  command.query['quotaUser'] = quota_user unless quota_user.nil?
564
+ command.query['key'] = key unless key.nil?
565
565
  end
566
566
  end
567
567
  end
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/slides/
26
26
  module SlidesV1
27
27
  VERSION = 'V1'
28
- REVISION = '20170209'
28
+ REVISION = '20170301'
29
29
 
30
30
  # View and manage your Google Slides presentations
31
31
  AUTH_PRESENTATIONS = 'https://www.googleapis.com/auth/presentations'
@@ -22,6 +22,131 @@ module Google
22
22
  module Apis
23
23
  module SlidesV1
24
24
 
25
+ # Inserts columns into a table.
26
+ # Other columns in the table will be resized to fit the new column.
27
+ class InsertTableColumnsRequest
28
+ include Google::Apis::Core::Hashable
29
+
30
+ # The number of columns to be inserted. Maximum 20 per request.
31
+ # Corresponds to the JSON property `number`
32
+ # @return [Fixnum]
33
+ attr_accessor :number
34
+
35
+ # A location of a single table cell within a table.
36
+ # Corresponds to the JSON property `cellLocation`
37
+ # @return [Google::Apis::SlidesV1::TableCellLocation]
38
+ attr_accessor :cell_location
39
+
40
+ # Whether to insert new columns to the right of the reference cell location.
41
+ # - `True`: insert to the right.
42
+ # - `False`: insert to the left.
43
+ # Corresponds to the JSON property `insertRight`
44
+ # @return [Boolean]
45
+ attr_accessor :insert_right
46
+ alias_method :insert_right?, :insert_right
47
+
48
+ # The table to insert columns into.
49
+ # Corresponds to the JSON property `tableObjectId`
50
+ # @return [String]
51
+ attr_accessor :table_object_id
52
+
53
+ def initialize(**args)
54
+ update!(**args)
55
+ end
56
+
57
+ # Update properties of this object
58
+ def update!(**args)
59
+ @number = args[:number] if args.key?(:number)
60
+ @cell_location = args[:cell_location] if args.key?(:cell_location)
61
+ @insert_right = args[:insert_right] if args.key?(:insert_right)
62
+ @table_object_id = args[:table_object_id] if args.key?(:table_object_id)
63
+ end
64
+ end
65
+
66
+ # The user-specified ID mapping for a placeholder that will be created on a
67
+ # slide from a specified layout.
68
+ class LayoutPlaceholderIdMapping
69
+ include Google::Apis::Core::Hashable
70
+
71
+ # A user-supplied object ID for the placeholder identified above that to be
72
+ # created onto a slide.
73
+ # If you specify an ID, it must be unique among all pages and page elements
74
+ # in the presentation. The ID must start with an alphanumeric character or an
75
+ # underscore (matches regex `[a-zA-Z0-9_]`); remaining characters
76
+ # may include those as well as a hyphen or colon (matches regex
77
+ # `[a-zA-Z0-9_-:]`).
78
+ # The length of the ID must not be less than 5 or greater than 50.
79
+ # If you don't specify an ID, a unique one is generated.
80
+ # Corresponds to the JSON property `objectId`
81
+ # @return [String]
82
+ attr_accessor :object_id_prop
83
+
84
+ # The placeholder information that uniquely identifies a placeholder shape.
85
+ # Corresponds to the JSON property `layoutPlaceholder`
86
+ # @return [Google::Apis::SlidesV1::Placeholder]
87
+ attr_accessor :layout_placeholder
88
+
89
+ # The object ID of the placeholder on a layout that will be applied
90
+ # to a slide.
91
+ # Corresponds to the JSON property `layoutPlaceholderObjectId`
92
+ # @return [String]
93
+ attr_accessor :layout_placeholder_object_id
94
+
95
+ def initialize(**args)
96
+ update!(**args)
97
+ end
98
+
99
+ # Update properties of this object
100
+ def update!(**args)
101
+ @object_id_prop = args[:object_id_prop] if args.key?(:object_id_prop)
102
+ @layout_placeholder = args[:layout_placeholder] if args.key?(:layout_placeholder)
103
+ @layout_placeholder_object_id = args[:layout_placeholder_object_id] if args.key?(:layout_placeholder_object_id)
104
+ end
105
+ end
106
+
107
+ # Update the properties of a Shape.
108
+ class UpdateShapePropertiesRequest
109
+ include Google::Apis::Core::Hashable
110
+
111
+ # The object ID of the shape the updates are applied to.
112
+ # Corresponds to the JSON property `objectId`
113
+ # @return [String]
114
+ attr_accessor :object_id_prop
115
+
116
+ # The properties of a Shape.
117
+ # If the shape is a placeholder shape as determined by the
118
+ # placeholder field, then these
119
+ # properties may be inherited from a parent placeholder shape.
120
+ # Determining the rendered value of the property depends on the corresponding
121
+ # property_state field value.
122
+ # Corresponds to the JSON property `shapeProperties`
123
+ # @return [Google::Apis::SlidesV1::ShapeProperties]
124
+ attr_accessor :shape_properties
125
+
126
+ # The fields that should be updated.
127
+ # At least one field must be specified. The root `shapeProperties` is
128
+ # implied and should not be specified. A single `"*"` can be used as
129
+ # short-hand for listing every field.
130
+ # For example to update the shape background solid fill color, set `fields`
131
+ # to `"shapeBackgroundFill.solidFill.color"`.
132
+ # To reset a property to its default value, include its field name in the
133
+ # field mask but leave the field itself unset.
134
+ # Corresponds to the JSON property `fields`
135
+ # @return [String]
136
+ attr_accessor :fields
137
+
138
+ def initialize(**args)
139
+ update!(**args)
140
+ end
141
+
142
+ # Update properties of this object
143
+ def update!(**args)
144
+ @object_id_prop = args[:object_id_prop] if args.key?(:object_id_prop)
145
+ @shape_properties = args[:shape_properties] if args.key?(:shape_properties)
146
+ @fields = args[:fields] if args.key?(:fields)
147
+ end
148
+ end
149
+
25
150
  # A PageElement kind representing
26
151
  # word art.
27
152
  class WordArt
@@ -46,6 +171,14 @@ module Google
46
171
  class Recolor
47
172
  include Google::Apis::Core::Hashable
48
173
 
174
+ # The name of the recolor effect.
175
+ # The name is determined from the `recolor_stops` by matching the gradient
176
+ # against the colors in the page's current color scheme. This property is
177
+ # read-only.
178
+ # Corresponds to the JSON property `name`
179
+ # @return [String]
180
+ attr_accessor :name
181
+
49
182
  # The recolor effect is represented by a gradient, which is a list of color
50
183
  # stops.
51
184
  # The colors in the gradient will replace the corresponding colors at
@@ -55,22 +188,14 @@ module Google
55
188
  # @return [Array<Google::Apis::SlidesV1::ColorStop>]
56
189
  attr_accessor :recolor_stops
57
190
 
58
- # The name of the recolor effect.
59
- # The name is determined from the `recolor_stops` by matching the gradient
60
- # against the colors in the page's current color scheme. This property is
61
- # read-only.
62
- # Corresponds to the JSON property `name`
63
- # @return [String]
64
- attr_accessor :name
65
-
66
191
  def initialize(**args)
67
192
  update!(**args)
68
193
  end
69
194
 
70
195
  # Update properties of this object
71
196
  def update!(**args)
72
- @recolor_stops = args[:recolor_stops] if args.key?(:recolor_stops)
73
197
  @name = args[:name] if args.key?(:name)
198
+ @recolor_stops = args[:recolor_stops] if args.key?(:recolor_stops)
74
199
  end
75
200
  end
76
201
 
@@ -229,15 +354,6 @@ module Google
229
354
  class CreateShapeRequest
230
355
  include Google::Apis::Core::Hashable
231
356
 
232
- # Common properties for a page element.
233
- # Note: When you initially create a
234
- # PageElement, the API may modify
235
- # the values of both `size` and `transform`, but the
236
- # visual size will be unchanged.
237
- # Corresponds to the JSON property `elementProperties`
238
- # @return [Google::Apis::SlidesV1::PageElementProperties]
239
- attr_accessor :element_properties
240
-
241
357
  # A user-supplied object ID.
242
358
  # If you specify an ID, it must be unique among all pages and page elements
243
359
  # in the presentation. The ID must start with an alphanumeric character or an
@@ -255,15 +371,24 @@ module Google
255
371
  # @return [String]
256
372
  attr_accessor :shape_type
257
373
 
374
+ # Common properties for a page element.
375
+ # Note: When you initially create a
376
+ # PageElement, the API may modify
377
+ # the values of both `size` and `transform`, but the
378
+ # visual size will be unchanged.
379
+ # Corresponds to the JSON property `elementProperties`
380
+ # @return [Google::Apis::SlidesV1::PageElementProperties]
381
+ attr_accessor :element_properties
382
+
258
383
  def initialize(**args)
259
384
  update!(**args)
260
385
  end
261
386
 
262
387
  # Update properties of this object
263
388
  def update!(**args)
264
- @element_properties = args[:element_properties] if args.key?(:element_properties)
265
389
  @object_id_prop = args[:object_id_prop] if args.key?(:object_id_prop)
266
390
  @shape_type = args[:shape_type] if args.key?(:shape_type)
391
+ @element_properties = args[:element_properties] if args.key?(:element_properties)
267
392
  end
268
393
  end
269
394
 
@@ -272,6 +397,11 @@ module Google
272
397
  class Video
273
398
  include Google::Apis::Core::Hashable
274
399
 
400
+ # The video source.
401
+ # Corresponds to the JSON property `source`
402
+ # @return [String]
403
+ attr_accessor :source
404
+
275
405
  # An URL to a video. The URL is valid as long as the source video
276
406
  # exists and sharing settings do not change.
277
407
  # Corresponds to the JSON property `url`
@@ -288,21 +418,16 @@ module Google
288
418
  # @return [Google::Apis::SlidesV1::VideoProperties]
289
419
  attr_accessor :video_properties
290
420
 
291
- # The video source.
292
- # Corresponds to the JSON property `source`
293
- # @return [String]
294
- attr_accessor :source
295
-
296
421
  def initialize(**args)
297
422
  update!(**args)
298
423
  end
299
424
 
300
425
  # Update properties of this object
301
426
  def update!(**args)
427
+ @source = args[:source] if args.key?(:source)
302
428
  @url = args[:url] if args.key?(:url)
303
429
  @id = args[:id] if args.key?(:id)
304
430
  @video_properties = args[:video_properties] if args.key?(:video_properties)
305
- @source = args[:source] if args.key?(:source)
306
431
  end
307
432
  end
308
433
 
@@ -314,24 +439,24 @@ module Google
314
439
  class PageProperties
315
440
  include Google::Apis::Core::Hashable
316
441
 
317
- # The palette of predefined colors for a page.
318
- # Corresponds to the JSON property `colorScheme`
319
- # @return [Google::Apis::SlidesV1::ColorScheme]
320
- attr_accessor :color_scheme
321
-
322
442
  # The page background fill.
323
443
  # Corresponds to the JSON property `pageBackgroundFill`
324
444
  # @return [Google::Apis::SlidesV1::PageBackgroundFill]
325
445
  attr_accessor :page_background_fill
326
446
 
447
+ # The palette of predefined colors for a page.
448
+ # Corresponds to the JSON property `colorScheme`
449
+ # @return [Google::Apis::SlidesV1::ColorScheme]
450
+ attr_accessor :color_scheme
451
+
327
452
  def initialize(**args)
328
453
  update!(**args)
329
454
  end
330
455
 
331
456
  # Update properties of this object
332
457
  def update!(**args)
333
- @color_scheme = args[:color_scheme] if args.key?(:color_scheme)
334
458
  @page_background_fill = args[:page_background_fill] if args.key?(:page_background_fill)
459
+ @color_scheme = args[:color_scheme] if args.key?(:color_scheme)
335
460
  end
336
461
  end
337
462
 
@@ -339,6 +464,16 @@ module Google
339
464
  class TableCell
340
465
  include Google::Apis::Core::Hashable
341
466
 
467
+ # A location of a single table cell within a table.
468
+ # Corresponds to the JSON property `location`
469
+ # @return [Google::Apis::SlidesV1::TableCellLocation]
470
+ attr_accessor :location
471
+
472
+ # Row span of the cell.
473
+ # Corresponds to the JSON property `rowSpan`
474
+ # @return [Fixnum]
475
+ attr_accessor :row_span
476
+
342
477
  # Column span of the cell.
343
478
  # Corresponds to the JSON property `columnSpan`
344
479
  # @return [Fixnum]
@@ -355,27 +490,17 @@ module Google
355
490
  # @return [Google::Apis::SlidesV1::TableCellProperties]
356
491
  attr_accessor :table_cell_properties
357
492
 
358
- # A location of a single table cell within a table.
359
- # Corresponds to the JSON property `location`
360
- # @return [Google::Apis::SlidesV1::TableCellLocation]
361
- attr_accessor :location
362
-
363
- # Row span of the cell.
364
- # Corresponds to the JSON property `rowSpan`
365
- # @return [Fixnum]
366
- attr_accessor :row_span
367
-
368
493
  def initialize(**args)
369
494
  update!(**args)
370
495
  end
371
496
 
372
497
  # Update properties of this object
373
498
  def update!(**args)
499
+ @location = args[:location] if args.key?(:location)
500
+ @row_span = args[:row_span] if args.key?(:row_span)
374
501
  @column_span = args[:column_span] if args.key?(:column_span)
375
502
  @text = args[:text] if args.key?(:text)
376
503
  @table_cell_properties = args[:table_cell_properties] if args.key?(:table_cell_properties)
377
- @location = args[:location] if args.key?(:location)
378
- @row_span = args[:row_span] if args.key?(:row_span)
379
504
  end
380
505
  end
381
506
 
@@ -417,6 +542,11 @@ module Google
417
542
  class UpdateLinePropertiesRequest
418
543
  include Google::Apis::Core::Hashable
419
544
 
545
+ # The object ID of the line the update is applied to.
546
+ # Corresponds to the JSON property `objectId`
547
+ # @return [String]
548
+ attr_accessor :object_id_prop
549
+
420
550
  # The properties of the Line.
421
551
  # When unset, these fields default to values that match the appearance of
422
552
  # new lines created in the Slides editor.
@@ -436,43 +566,35 @@ module Google
436
566
  # @return [String]
437
567
  attr_accessor :fields
438
568
 
439
- # The object ID of the line the update is applied to.
440
- # Corresponds to the JSON property `objectId`
441
- # @return [String]
442
- attr_accessor :object_id_prop
443
-
444
569
  def initialize(**args)
445
570
  update!(**args)
446
571
  end
447
572
 
448
573
  # Update properties of this object
449
574
  def update!(**args)
575
+ @object_id_prop = args[:object_id_prop] if args.key?(:object_id_prop)
450
576
  @line_properties = args[:line_properties] if args.key?(:line_properties)
451
577
  @fields = args[:fields] if args.key?(:fields)
452
- @object_id_prop = args[:object_id_prop] if args.key?(:object_id_prop)
453
578
  end
454
579
  end
455
580
 
456
- # The table cell background fill.
457
- class TableCellBackgroundFill
581
+ # Updates the position of slides in the presentation.
582
+ class UpdateSlidesPositionRequest
458
583
  include Google::Apis::Core::Hashable
459
584
 
460
- # A solid color fill. The page or page element is filled entirely with the
461
- # specified color value.
462
- # If any field is unset, its value may be inherited from a parent placeholder
463
- # if it exists.
464
- # Corresponds to the JSON property `solidFill`
465
- # @return [Google::Apis::SlidesV1::SolidFill]
466
- attr_accessor :solid_fill
585
+ # The index where the slides should be inserted, based on the slide
586
+ # arrangement before the move takes place. Must be between zero and the
587
+ # number of slides in the presentation, inclusive.
588
+ # Corresponds to the JSON property `insertionIndex`
589
+ # @return [Fixnum]
590
+ attr_accessor :insertion_index
467
591
 
468
- # The background fill property state.
469
- # Updating the the fill on a table cell will implicitly update this field
470
- # to `RENDERED`, unless another value is specified in the same request. To
471
- # have no fill on a table cell, set this field to `NOT_RENDERED`. In this
472
- # case, any other fill fields set in the same request will be ignored.
473
- # Corresponds to the JSON property `propertyState`
474
- # @return [String]
475
- attr_accessor :property_state
592
+ # The IDs of the slides in the presentation that should be moved.
593
+ # The slides in this list must be in existing presentation order, without
594
+ # duplicates.
595
+ # Corresponds to the JSON property `slideObjectIds`
596
+ # @return [Array<String>]
597
+ attr_accessor :slide_object_ids
476
598
 
477
599
  def initialize(**args)
478
600
  update!(**args)
@@ -480,28 +602,31 @@ module Google
480
602
 
481
603
  # Update properties of this object
482
604
  def update!(**args)
483
- @solid_fill = args[:solid_fill] if args.key?(:solid_fill)
484
- @property_state = args[:property_state] if args.key?(:property_state)
605
+ @insertion_index = args[:insertion_index] if args.key?(:insertion_index)
606
+ @slide_object_ids = args[:slide_object_ids] if args.key?(:slide_object_ids)
485
607
  end
486
608
  end
487
609
 
488
- # Updates the position of slides in the presentation.
489
- class UpdateSlidesPositionRequest
610
+ # The table cell background fill.
611
+ class TableCellBackgroundFill
490
612
  include Google::Apis::Core::Hashable
491
613
 
492
- # The IDs of the slides in the presentation that should be moved.
493
- # The slides in this list must be in existing presentation order, without
494
- # duplicates.
495
- # Corresponds to the JSON property `slideObjectIds`
496
- # @return [Array<String>]
497
- attr_accessor :slide_object_ids
614
+ # The background fill property state.
615
+ # Updating the the fill on a table cell will implicitly update this field
616
+ # to `RENDERED`, unless another value is specified in the same request. To
617
+ # have no fill on a table cell, set this field to `NOT_RENDERED`. In this
618
+ # case, any other fill fields set in the same request will be ignored.
619
+ # Corresponds to the JSON property `propertyState`
620
+ # @return [String]
621
+ attr_accessor :property_state
498
622
 
499
- # The index where the slides should be inserted, based on the slide
500
- # arrangement before the move takes place. Must be between zero and the
501
- # number of slides in the presentation, inclusive.
502
- # Corresponds to the JSON property `insertionIndex`
503
- # @return [Fixnum]
504
- attr_accessor :insertion_index
623
+ # A solid color fill. The page or page element is filled entirely with the
624
+ # specified color value.
625
+ # If any field is unset, its value may be inherited from a parent placeholder
626
+ # if it exists.
627
+ # Corresponds to the JSON property `solidFill`
628
+ # @return [Google::Apis::SlidesV1::SolidFill]
629
+ attr_accessor :solid_fill
505
630
 
506
631
  def initialize(**args)
507
632
  update!(**args)
@@ -509,8 +634,8 @@ module Google
509
634
 
510
635
  # Update properties of this object
511
636
  def update!(**args)
512
- @slide_object_ids = args[:slide_object_ids] if args.key?(:slide_object_ids)
513
- @insertion_index = args[:insertion_index] if args.key?(:insertion_index)
637
+ @property_state = args[:property_state] if args.key?(:property_state)
638
+ @solid_fill = args[:solid_fill] if args.key?(:solid_fill)
514
639
  end
515
640
  end
516
641
 
@@ -617,6 +742,11 @@ module Google
617
742
  class DuplicateObjectRequest
618
743
  include Google::Apis::Core::Hashable
619
744
 
745
+ # The ID of the object to duplicate.
746
+ # Corresponds to the JSON property `objectId`
747
+ # @return [String]
748
+ attr_accessor :object_id_prop
749
+
620
750
  # The object being duplicated may contain other objects, for example when
621
751
  # duplicating a slide or a group page element. This map defines how the IDs
622
752
  # of duplicated objects are generated: the keys are the IDs of the original
@@ -637,19 +767,14 @@ module Google
637
767
  # @return [Hash<String,String>]
638
768
  attr_accessor :object_ids
639
769
 
640
- # The ID of the object to duplicate.
641
- # Corresponds to the JSON property `objectId`
642
- # @return [String]
643
- attr_accessor :object_id_prop
644
-
645
770
  def initialize(**args)
646
771
  update!(**args)
647
772
  end
648
773
 
649
774
  # Update properties of this object
650
775
  def update!(**args)
651
- @object_ids = args[:object_ids] if args.key?(:object_ids)
652
776
  @object_id_prop = args[:object_id_prop] if args.key?(:object_id_prop)
777
+ @object_ids = args[:object_ids] if args.key?(:object_ids)
653
778
  end
654
779
  end
655
780
 
@@ -682,12 +807,37 @@ module Google
682
807
  class Page
683
808
  include Google::Apis::Core::Hashable
684
809
 
810
+ # The object ID for this page. Object IDs used by
811
+ # Page and
812
+ # PageElement share the same namespace.
813
+ # Corresponds to the JSON property `objectId`
814
+ # @return [String]
815
+ attr_accessor :object_id_prop
816
+
817
+ # The revision ID of the presentation containing this page. Can be used in
818
+ # update requests to assert that the presentation revision hasn't changed
819
+ # since the last read operation. Only populated if the user has edit access
820
+ # to the presentation.
821
+ # The format of the revision ID may change over time, so it should be treated
822
+ # opaquely. A returned revision ID is only guaranteed to be valid for 24
823
+ # hours after it has been returned and cannot be shared across
824
+ # users. Callers can assume that if two revision IDs are equal then the
825
+ # presentation has not changed.
826
+ # Corresponds to the JSON property `revisionId`
827
+ # @return [String]
828
+ attr_accessor :revision_id
829
+
685
830
  # The properties of Page are only
686
831
  # relevant for pages with page_type LAYOUT.
687
832
  # Corresponds to the JSON property `layoutProperties`
688
833
  # @return [Google::Apis::SlidesV1::LayoutProperties]
689
834
  attr_accessor :layout_properties
690
835
 
836
+ # The page elements rendered on the page.
837
+ # Corresponds to the JSON property `pageElements`
838
+ # @return [Array<Google::Apis::SlidesV1::PageElement>]
839
+ attr_accessor :page_elements
840
+
691
841
  # The properties of Page that are only
692
842
  # relevant for pages with page_type NOTES.
693
843
  # Corresponds to the JSON property `notesProperties`
@@ -699,17 +849,6 @@ module Google
699
849
  # @return [String]
700
850
  attr_accessor :page_type
701
851
 
702
- # The page elements rendered on the page.
703
- # Corresponds to the JSON property `pageElements`
704
- # @return [Array<Google::Apis::SlidesV1::PageElement>]
705
- attr_accessor :page_elements
706
-
707
- # The properties of Page that are only
708
- # relevant for pages with page_type SLIDE.
709
- # Corresponds to the JSON property `slideProperties`
710
- # @return [Google::Apis::SlidesV1::SlideProperties]
711
- attr_accessor :slide_properties
712
-
713
852
  # The properties of the Page.
714
853
  # The page will inherit properties from the parent page. Depending on the page
715
854
  # type the hierarchy is defined in either
@@ -719,12 +858,11 @@ module Google
719
858
  # @return [Google::Apis::SlidesV1::PageProperties]
720
859
  attr_accessor :page_properties
721
860
 
722
- # The object ID for this page. Object IDs used by
723
- # Page and
724
- # PageElement share the same namespace.
725
- # Corresponds to the JSON property `objectId`
726
- # @return [String]
727
- attr_accessor :object_id_prop
861
+ # The properties of Page that are only
862
+ # relevant for pages with page_type SLIDE.
863
+ # Corresponds to the JSON property `slideProperties`
864
+ # @return [Google::Apis::SlidesV1::SlideProperties]
865
+ attr_accessor :slide_properties
728
866
 
729
867
  def initialize(**args)
730
868
  update!(**args)
@@ -732,13 +870,14 @@ module Google
732
870
 
733
871
  # Update properties of this object
734
872
  def update!(**args)
873
+ @object_id_prop = args[:object_id_prop] if args.key?(:object_id_prop)
874
+ @revision_id = args[:revision_id] if args.key?(:revision_id)
735
875
  @layout_properties = args[:layout_properties] if args.key?(:layout_properties)
876
+ @page_elements = args[:page_elements] if args.key?(:page_elements)
736
877
  @notes_properties = args[:notes_properties] if args.key?(:notes_properties)
737
878
  @page_type = args[:page_type] if args.key?(:page_type)
738
- @page_elements = args[:page_elements] if args.key?(:page_elements)
739
- @slide_properties = args[:slide_properties] if args.key?(:slide_properties)
740
879
  @page_properties = args[:page_properties] if args.key?(:page_properties)
741
- @object_id_prop = args[:object_id_prop] if args.key?(:object_id_prop)
880
+ @slide_properties = args[:slide_properties] if args.key?(:slide_properties)
742
881
  end
743
882
  end
744
883
 
@@ -746,6 +885,14 @@ module Google
746
885
  class ShapeBackgroundFill
747
886
  include Google::Apis::Core::Hashable
748
887
 
888
+ # A solid color fill. The page or page element is filled entirely with the
889
+ # specified color value.
890
+ # If any field is unset, its value may be inherited from a parent placeholder
891
+ # if it exists.
892
+ # Corresponds to the JSON property `solidFill`
893
+ # @return [Google::Apis::SlidesV1::SolidFill]
894
+ attr_accessor :solid_fill
895
+
749
896
  # The background fill property state.
750
897
  # Updating the the fill on a shape will implicitly update this field to
751
898
  # `RENDERED`, unless another value is specified in the same request. To
@@ -755,22 +902,14 @@ module Google
755
902
  # @return [String]
756
903
  attr_accessor :property_state
757
904
 
758
- # A solid color fill. The page or page element is filled entirely with the
759
- # specified color value.
760
- # If any field is unset, its value may be inherited from a parent placeholder
761
- # if it exists.
762
- # Corresponds to the JSON property `solidFill`
763
- # @return [Google::Apis::SlidesV1::SolidFill]
764
- attr_accessor :solid_fill
765
-
766
905
  def initialize(**args)
767
906
  update!(**args)
768
907
  end
769
908
 
770
909
  # Update properties of this object
771
910
  def update!(**args)
772
- @property_state = args[:property_state] if args.key?(:property_state)
773
911
  @solid_fill = args[:solid_fill] if args.key?(:solid_fill)
912
+ @property_state = args[:property_state] if args.key?(:property_state)
774
913
  end
775
914
  end
776
915
 
@@ -888,11 +1027,6 @@ module Google
888
1027
  class ColorStop
889
1028
  include Google::Apis::Core::Hashable
890
1029
 
891
- # A themeable solid color value.
892
- # Corresponds to the JSON property `color`
893
- # @return [Google::Apis::SlidesV1::OpaqueColor]
894
- attr_accessor :color
895
-
896
1030
  # The alpha value of this color in the gradient band. Defaults to 1.0,
897
1031
  # fully opaque.
898
1032
  # Corresponds to the JSON property `alpha`
@@ -905,15 +1039,20 @@ module Google
905
1039
  # @return [Float]
906
1040
  attr_accessor :position
907
1041
 
1042
+ # A themeable solid color value.
1043
+ # Corresponds to the JSON property `color`
1044
+ # @return [Google::Apis::SlidesV1::OpaqueColor]
1045
+ attr_accessor :color
1046
+
908
1047
  def initialize(**args)
909
1048
  update!(**args)
910
1049
  end
911
1050
 
912
1051
  # Update properties of this object
913
1052
  def update!(**args)
914
- @color = args[:color] if args.key?(:color)
915
1053
  @alpha = args[:alpha] if args.key?(:alpha)
916
1054
  @position = args[:position] if args.key?(:position)
1055
+ @color = args[:color] if args.key?(:color)
917
1056
  end
918
1057
  end
919
1058
 
@@ -955,22 +1094,6 @@ module Google
955
1094
  class CreateVideoRequest
956
1095
  include Google::Apis::Core::Hashable
957
1096
 
958
- # Common properties for a page element.
959
- # Note: When you initially create a
960
- # PageElement, the API may modify
961
- # the values of both `size` and `transform`, but the
962
- # visual size will be unchanged.
963
- # Corresponds to the JSON property `elementProperties`
964
- # @return [Google::Apis::SlidesV1::PageElementProperties]
965
- attr_accessor :element_properties
966
-
967
- # The video source's unique identifier for this video.
968
- # e.g. For YouTube video https://www.youtube.com/watch?v=7U3axjORYZ0,
969
- # the ID is 7U3axjORYZ0.
970
- # Corresponds to the JSON property `id`
971
- # @return [String]
972
- attr_accessor :id
973
-
974
1097
  # A user-supplied object ID.
975
1098
  # If you specify an ID, it must be unique among all pages and page elements
976
1099
  # in the presentation. The ID must start with an alphanumeric character or an
@@ -988,16 +1111,32 @@ module Google
988
1111
  # @return [String]
989
1112
  attr_accessor :source
990
1113
 
1114
+ # Common properties for a page element.
1115
+ # Note: When you initially create a
1116
+ # PageElement, the API may modify
1117
+ # the values of both `size` and `transform`, but the
1118
+ # visual size will be unchanged.
1119
+ # Corresponds to the JSON property `elementProperties`
1120
+ # @return [Google::Apis::SlidesV1::PageElementProperties]
1121
+ attr_accessor :element_properties
1122
+
1123
+ # The video source's unique identifier for this video.
1124
+ # e.g. For YouTube video https://www.youtube.com/watch?v=7U3axjORYZ0,
1125
+ # the ID is 7U3axjORYZ0.
1126
+ # Corresponds to the JSON property `id`
1127
+ # @return [String]
1128
+ attr_accessor :id
1129
+
991
1130
  def initialize(**args)
992
1131
  update!(**args)
993
1132
  end
994
1133
 
995
1134
  # Update properties of this object
996
1135
  def update!(**args)
997
- @element_properties = args[:element_properties] if args.key?(:element_properties)
998
- @id = args[:id] if args.key?(:id)
999
1136
  @object_id_prop = args[:object_id_prop] if args.key?(:object_id_prop)
1000
1137
  @source = args[:source] if args.key?(:source)
1138
+ @element_properties = args[:element_properties] if args.key?(:element_properties)
1139
+ @id = args[:id] if args.key?(:id)
1001
1140
  end
1002
1141
  end
1003
1142
 
@@ -1063,22 +1202,6 @@ module Google
1063
1202
  class Shadow
1064
1203
  include Google::Apis::Core::Hashable
1065
1204
 
1066
- # The alpha of the shadow's color, from 0.0 to 1.0.
1067
- # Corresponds to the JSON property `alpha`
1068
- # @return [Float]
1069
- attr_accessor :alpha
1070
-
1071
- # A themeable solid color value.
1072
- # Corresponds to the JSON property `color`
1073
- # @return [Google::Apis::SlidesV1::OpaqueColor]
1074
- attr_accessor :color
1075
-
1076
- # Whether the shadow should rotate with the shape.
1077
- # Corresponds to the JSON property `rotateWithShape`
1078
- # @return [Boolean]
1079
- attr_accessor :rotate_with_shape
1080
- alias_method :rotate_with_shape?, :rotate_with_shape
1081
-
1082
1205
  # The shadow property state.
1083
1206
  # Updating the the shadow on a page element will implicitly update this field
1084
1207
  # to `RENDERED`, unless another value is specified in the same request. To
@@ -1093,11 +1216,6 @@ module Google
1093
1216
  # @return [Google::Apis::SlidesV1::Dimension]
1094
1217
  attr_accessor :blur_radius
1095
1218
 
1096
- # The type of the shadow.
1097
- # Corresponds to the JSON property `type`
1098
- # @return [String]
1099
- attr_accessor :type
1100
-
1101
1219
  # AffineTransform uses a 3x3 matrix with an implied last row of [ 0 0 1 ]
1102
1220
  # to transform source coordinates (x,y) into destination coordinates (x', y')
1103
1221
  # according to:
@@ -1111,26 +1229,47 @@ module Google
1111
1229
  # @return [Google::Apis::SlidesV1::AffineTransform]
1112
1230
  attr_accessor :transform
1113
1231
 
1232
+ # The type of the shadow.
1233
+ # Corresponds to the JSON property `type`
1234
+ # @return [String]
1235
+ attr_accessor :type
1236
+
1114
1237
  # The alignment point of the shadow, that sets the origin for translate,
1115
1238
  # scale and skew of the shadow.
1116
1239
  # Corresponds to the JSON property `alignment`
1117
1240
  # @return [String]
1118
1241
  attr_accessor :alignment
1119
1242
 
1243
+ # The alpha of the shadow's color, from 0.0 to 1.0.
1244
+ # Corresponds to the JSON property `alpha`
1245
+ # @return [Float]
1246
+ attr_accessor :alpha
1247
+
1248
+ # A themeable solid color value.
1249
+ # Corresponds to the JSON property `color`
1250
+ # @return [Google::Apis::SlidesV1::OpaqueColor]
1251
+ attr_accessor :color
1252
+
1253
+ # Whether the shadow should rotate with the shape.
1254
+ # Corresponds to the JSON property `rotateWithShape`
1255
+ # @return [Boolean]
1256
+ attr_accessor :rotate_with_shape
1257
+ alias_method :rotate_with_shape?, :rotate_with_shape
1258
+
1120
1259
  def initialize(**args)
1121
1260
  update!(**args)
1122
1261
  end
1123
1262
 
1124
1263
  # Update properties of this object
1125
1264
  def update!(**args)
1126
- @alpha = args[:alpha] if args.key?(:alpha)
1127
- @color = args[:color] if args.key?(:color)
1128
- @rotate_with_shape = args[:rotate_with_shape] if args.key?(:rotate_with_shape)
1129
1265
  @property_state = args[:property_state] if args.key?(:property_state)
1130
1266
  @blur_radius = args[:blur_radius] if args.key?(:blur_radius)
1131
- @type = args[:type] if args.key?(:type)
1132
1267
  @transform = args[:transform] if args.key?(:transform)
1268
+ @type = args[:type] if args.key?(:type)
1133
1269
  @alignment = args[:alignment] if args.key?(:alignment)
1270
+ @alpha = args[:alpha] if args.key?(:alpha)
1271
+ @color = args[:color] if args.key?(:color)
1272
+ @rotate_with_shape = args[:rotate_with_shape] if args.key?(:rotate_with_shape)
1134
1273
  end
1135
1274
  end
1136
1275
 
@@ -1138,45 +1277,30 @@ module Google
1138
1277
  class DeleteTableRowRequest
1139
1278
  include Google::Apis::Core::Hashable
1140
1279
 
1141
- # The table to delete rows from.
1142
- # Corresponds to the JSON property `tableObjectId`
1143
- # @return [String]
1144
- attr_accessor :table_object_id
1145
-
1146
1280
  # A location of a single table cell within a table.
1147
1281
  # Corresponds to the JSON property `cellLocation`
1148
1282
  # @return [Google::Apis::SlidesV1::TableCellLocation]
1149
1283
  attr_accessor :cell_location
1150
1284
 
1285
+ # The table to delete rows from.
1286
+ # Corresponds to the JSON property `tableObjectId`
1287
+ # @return [String]
1288
+ attr_accessor :table_object_id
1289
+
1151
1290
  def initialize(**args)
1152
1291
  update!(**args)
1153
1292
  end
1154
1293
 
1155
1294
  # Update properties of this object
1156
1295
  def update!(**args)
1157
- @table_object_id = args[:table_object_id] if args.key?(:table_object_id)
1158
- @cell_location = args[:cell_location] if args.key?(:cell_location)
1159
- end
1160
- end
1161
-
1162
- # Describes the bullet of a paragraph.
1163
- class Bullet
1164
- include Google::Apis::Core::Hashable
1165
-
1166
- # The ID of the list this paragraph belongs to.
1167
- # Corresponds to the JSON property `listId`
1168
- # @return [String]
1169
- attr_accessor :list_id
1170
-
1171
- # The rendered bullet glyph for this paragraph.
1172
- # Corresponds to the JSON property `glyph`
1173
- # @return [String]
1174
- attr_accessor :glyph
1296
+ @cell_location = args[:cell_location] if args.key?(:cell_location)
1297
+ @table_object_id = args[:table_object_id] if args.key?(:table_object_id)
1298
+ end
1299
+ end
1175
1300
 
1176
- # The nesting level of this paragraph in the list.
1177
- # Corresponds to the JSON property `nestingLevel`
1178
- # @return [Fixnum]
1179
- attr_accessor :nesting_level
1301
+ # Describes the bullet of a paragraph.
1302
+ class Bullet
1303
+ include Google::Apis::Core::Hashable
1180
1304
 
1181
1305
  # Represents the styling that can be applied to a TextRun.
1182
1306
  # If this text is contained in a shape with a parent placeholder, then these
@@ -1197,16 +1321,31 @@ module Google
1197
1321
  # @return [Google::Apis::SlidesV1::TextStyle]
1198
1322
  attr_accessor :bullet_style
1199
1323
 
1324
+ # The ID of the list this paragraph belongs to.
1325
+ # Corresponds to the JSON property `listId`
1326
+ # @return [String]
1327
+ attr_accessor :list_id
1328
+
1329
+ # The rendered bullet glyph for this paragraph.
1330
+ # Corresponds to the JSON property `glyph`
1331
+ # @return [String]
1332
+ attr_accessor :glyph
1333
+
1334
+ # The nesting level of this paragraph in the list.
1335
+ # Corresponds to the JSON property `nestingLevel`
1336
+ # @return [Fixnum]
1337
+ attr_accessor :nesting_level
1338
+
1200
1339
  def initialize(**args)
1201
1340
  update!(**args)
1202
1341
  end
1203
1342
 
1204
1343
  # Update properties of this object
1205
1344
  def update!(**args)
1345
+ @bullet_style = args[:bullet_style] if args.key?(:bullet_style)
1206
1346
  @list_id = args[:list_id] if args.key?(:list_id)
1207
1347
  @glyph = args[:glyph] if args.key?(:glyph)
1208
1348
  @nesting_level = args[:nesting_level] if args.key?(:nesting_level)
1209
- @bullet_style = args[:bullet_style] if args.key?(:bullet_style)
1210
1349
  end
1211
1350
  end
1212
1351
 
@@ -1453,21 +1592,6 @@ module Google
1453
1592
  class InsertTextRequest
1454
1593
  include Google::Apis::Core::Hashable
1455
1594
 
1456
- # The index where the text will be inserted, in Unicode code units, based
1457
- # on TextElement indexes.
1458
- # The index is zero-based and is computed from the start of the string.
1459
- # The index may be adjusted to prevent insertions inside Unicode grapheme
1460
- # clusters. In these cases, the text will be inserted immediately after the
1461
- # grapheme cluster.
1462
- # Corresponds to the JSON property `insertionIndex`
1463
- # @return [Fixnum]
1464
- attr_accessor :insertion_index
1465
-
1466
- # A location of a single table cell within a table.
1467
- # Corresponds to the JSON property `cellLocation`
1468
- # @return [Google::Apis::SlidesV1::TableCellLocation]
1469
- attr_accessor :cell_location
1470
-
1471
1595
  # The object ID of the shape or table where the text will be inserted.
1472
1596
  # Corresponds to the JSON property `objectId`
1473
1597
  # @return [String]
@@ -1489,16 +1613,31 @@ module Google
1489
1613
  # @return [String]
1490
1614
  attr_accessor :text
1491
1615
 
1616
+ # The index where the text will be inserted, in Unicode code units, based
1617
+ # on TextElement indexes.
1618
+ # The index is zero-based and is computed from the start of the string.
1619
+ # The index may be adjusted to prevent insertions inside Unicode grapheme
1620
+ # clusters. In these cases, the text will be inserted immediately after the
1621
+ # grapheme cluster.
1622
+ # Corresponds to the JSON property `insertionIndex`
1623
+ # @return [Fixnum]
1624
+ attr_accessor :insertion_index
1625
+
1626
+ # A location of a single table cell within a table.
1627
+ # Corresponds to the JSON property `cellLocation`
1628
+ # @return [Google::Apis::SlidesV1::TableCellLocation]
1629
+ attr_accessor :cell_location
1630
+
1492
1631
  def initialize(**args)
1493
1632
  update!(**args)
1494
1633
  end
1495
1634
 
1496
1635
  # Update properties of this object
1497
1636
  def update!(**args)
1498
- @insertion_index = args[:insertion_index] if args.key?(:insertion_index)
1499
- @cell_location = args[:cell_location] if args.key?(:cell_location)
1500
1637
  @object_id_prop = args[:object_id_prop] if args.key?(:object_id_prop)
1501
1638
  @text = args[:text] if args.key?(:text)
1639
+ @insertion_index = args[:insertion_index] if args.key?(:insertion_index)
1640
+ @cell_location = args[:cell_location] if args.key?(:cell_location)
1502
1641
  end
1503
1642
  end
1504
1643
 
@@ -1514,6 +1653,21 @@ module Google
1514
1653
  class AffineTransform
1515
1654
  include Google::Apis::Core::Hashable
1516
1655
 
1656
+ # The units for translate elements.
1657
+ # Corresponds to the JSON property `unit`
1658
+ # @return [String]
1659
+ attr_accessor :unit
1660
+
1661
+ # The X coordinate scaling element.
1662
+ # Corresponds to the JSON property `scaleX`
1663
+ # @return [Float]
1664
+ attr_accessor :scale_x
1665
+
1666
+ # The X coordinate shearing element.
1667
+ # Corresponds to the JSON property `shearX`
1668
+ # @return [Float]
1669
+ attr_accessor :shear_x
1670
+
1517
1671
  # The Y coordinate scaling element.
1518
1672
  # Corresponds to the JSON property `scaleY`
1519
1673
  # @return [Float]
@@ -1534,34 +1688,19 @@ module Google
1534
1688
  # @return [Float]
1535
1689
  attr_accessor :shear_y
1536
1690
 
1537
- # The units for translate elements.
1538
- # Corresponds to the JSON property `unit`
1539
- # @return [String]
1540
- attr_accessor :unit
1541
-
1542
- # The X coordinate scaling element.
1543
- # Corresponds to the JSON property `scaleX`
1544
- # @return [Float]
1545
- attr_accessor :scale_x
1546
-
1547
- # The X coordinate shearing element.
1548
- # Corresponds to the JSON property `shearX`
1549
- # @return [Float]
1550
- attr_accessor :shear_x
1551
-
1552
1691
  def initialize(**args)
1553
1692
  update!(**args)
1554
1693
  end
1555
1694
 
1556
1695
  # Update properties of this object
1557
1696
  def update!(**args)
1697
+ @unit = args[:unit] if args.key?(:unit)
1698
+ @scale_x = args[:scale_x] if args.key?(:scale_x)
1699
+ @shear_x = args[:shear_x] if args.key?(:shear_x)
1558
1700
  @scale_y = args[:scale_y] if args.key?(:scale_y)
1559
1701
  @translate_y = args[:translate_y] if args.key?(:translate_y)
1560
1702
  @translate_x = args[:translate_x] if args.key?(:translate_x)
1561
1703
  @shear_y = args[:shear_y] if args.key?(:shear_y)
1562
- @unit = args[:unit] if args.key?(:unit)
1563
- @scale_x = args[:scale_x] if args.key?(:scale_x)
1564
- @shear_x = args[:shear_x] if args.key?(:shear_x)
1565
1704
  end
1566
1705
  end
1567
1706
 
@@ -1569,16 +1708,6 @@ module Google
1569
1708
  class AutoText
1570
1709
  include Google::Apis::Core::Hashable
1571
1710
 
1572
- # The type of this auto text.
1573
- # Corresponds to the JSON property `type`
1574
- # @return [String]
1575
- attr_accessor :type
1576
-
1577
- # The rendered content of this auto text, if available.
1578
- # Corresponds to the JSON property `content`
1579
- # @return [String]
1580
- attr_accessor :content
1581
-
1582
1711
  # Represents the styling that can be applied to a TextRun.
1583
1712
  # If this text is contained in a shape with a parent placeholder, then these
1584
1713
  # text styles may be
@@ -1598,15 +1727,25 @@ module Google
1598
1727
  # @return [Google::Apis::SlidesV1::TextStyle]
1599
1728
  attr_accessor :style
1600
1729
 
1730
+ # The type of this auto text.
1731
+ # Corresponds to the JSON property `type`
1732
+ # @return [String]
1733
+ attr_accessor :type
1734
+
1735
+ # The rendered content of this auto text, if available.
1736
+ # Corresponds to the JSON property `content`
1737
+ # @return [String]
1738
+ attr_accessor :content
1739
+
1601
1740
  def initialize(**args)
1602
1741
  update!(**args)
1603
1742
  end
1604
1743
 
1605
1744
  # Update properties of this object
1606
1745
  def update!(**args)
1746
+ @style = args[:style] if args.key?(:style)
1607
1747
  @type = args[:type] if args.key?(:type)
1608
1748
  @content = args[:content] if args.key?(:content)
1609
- @style = args[:style] if args.key?(:style)
1610
1749
  end
1611
1750
  end
1612
1751
 
@@ -1725,11 +1864,42 @@ module Google
1725
1864
  end
1726
1865
  end
1727
1866
 
1867
+ # A magnitude in a single direction in the specified units.
1868
+ class Dimension
1869
+ include Google::Apis::Core::Hashable
1870
+
1871
+ # The magnitude.
1872
+ # Corresponds to the JSON property `magnitude`
1873
+ # @return [Float]
1874
+ attr_accessor :magnitude
1875
+
1876
+ # The units for magnitude.
1877
+ # Corresponds to the JSON property `unit`
1878
+ # @return [String]
1879
+ attr_accessor :unit
1880
+
1881
+ def initialize(**args)
1882
+ update!(**args)
1883
+ end
1884
+
1885
+ # Update properties of this object
1886
+ def update!(**args)
1887
+ @magnitude = args[:magnitude] if args.key?(:magnitude)
1888
+ @unit = args[:unit] if args.key?(:unit)
1889
+ end
1890
+ end
1891
+
1728
1892
  # A TextElement describes the content of a range of indices in the text content
1729
1893
  # of a Shape or TableCell.
1730
1894
  class TextElement
1731
1895
  include Google::Apis::Core::Hashable
1732
1896
 
1897
+ # A TextElement kind that represents a run of text that all has the same
1898
+ # styling.
1899
+ # Corresponds to the JSON property `textRun`
1900
+ # @return [Google::Apis::SlidesV1::TextRun]
1901
+ attr_accessor :text_run
1902
+
1733
1903
  # A TextElement kind that represents auto text.
1734
1904
  # Corresponds to the JSON property `autoText`
1735
1905
  # @return [Google::Apis::SlidesV1::AutoText]
@@ -1751,48 +1921,17 @@ module Google
1751
1921
  # @return [Fixnum]
1752
1922
  attr_accessor :end_index
1753
1923
 
1754
- # A TextElement kind that represents a run of text that all has the same
1755
- # styling.
1756
- # Corresponds to the JSON property `textRun`
1757
- # @return [Google::Apis::SlidesV1::TextRun]
1758
- attr_accessor :text_run
1759
-
1760
1924
  def initialize(**args)
1761
1925
  update!(**args)
1762
1926
  end
1763
1927
 
1764
1928
  # Update properties of this object
1765
1929
  def update!(**args)
1930
+ @text_run = args[:text_run] if args.key?(:text_run)
1766
1931
  @auto_text = args[:auto_text] if args.key?(:auto_text)
1767
1932
  @paragraph_marker = args[:paragraph_marker] if args.key?(:paragraph_marker)
1768
1933
  @start_index = args[:start_index] if args.key?(:start_index)
1769
1934
  @end_index = args[:end_index] if args.key?(:end_index)
1770
- @text_run = args[:text_run] if args.key?(:text_run)
1771
- end
1772
- end
1773
-
1774
- # A magnitude in a single direction in the specified units.
1775
- class Dimension
1776
- include Google::Apis::Core::Hashable
1777
-
1778
- # The magnitude.
1779
- # Corresponds to the JSON property `magnitude`
1780
- # @return [Float]
1781
- attr_accessor :magnitude
1782
-
1783
- # The units for magnitude.
1784
- # Corresponds to the JSON property `unit`
1785
- # @return [String]
1786
- attr_accessor :unit
1787
-
1788
- def initialize(**args)
1789
- update!(**args)
1790
- end
1791
-
1792
- # Update properties of this object
1793
- def update!(**args)
1794
- @magnitude = args[:magnitude] if args.key?(:magnitude)
1795
- @unit = args[:unit] if args.key?(:unit)
1796
1935
  end
1797
1936
  end
1798
1937
 
@@ -1845,16 +1984,6 @@ module Google
1845
1984
  class InsertTableRowsRequest
1846
1985
  include Google::Apis::Core::Hashable
1847
1986
 
1848
- # A location of a single table cell within a table.
1849
- # Corresponds to the JSON property `cellLocation`
1850
- # @return [Google::Apis::SlidesV1::TableCellLocation]
1851
- attr_accessor :cell_location
1852
-
1853
- # The table to insert rows into.
1854
- # Corresponds to the JSON property `tableObjectId`
1855
- # @return [String]
1856
- attr_accessor :table_object_id
1857
-
1858
1987
  # Whether to insert new rows below the reference cell location.
1859
1988
  # - `True`: insert below the cell.
1860
1989
  # - `False`: insert above the cell.
@@ -1868,16 +1997,26 @@ module Google
1868
1997
  # @return [Fixnum]
1869
1998
  attr_accessor :number
1870
1999
 
2000
+ # A location of a single table cell within a table.
2001
+ # Corresponds to the JSON property `cellLocation`
2002
+ # @return [Google::Apis::SlidesV1::TableCellLocation]
2003
+ attr_accessor :cell_location
2004
+
2005
+ # The table to insert rows into.
2006
+ # Corresponds to the JSON property `tableObjectId`
2007
+ # @return [String]
2008
+ attr_accessor :table_object_id
2009
+
1871
2010
  def initialize(**args)
1872
2011
  update!(**args)
1873
2012
  end
1874
2013
 
1875
2014
  # Update properties of this object
1876
2015
  def update!(**args)
1877
- @cell_location = args[:cell_location] if args.key?(:cell_location)
1878
- @table_object_id = args[:table_object_id] if args.key?(:table_object_id)
1879
2016
  @insert_below = args[:insert_below] if args.key?(:insert_below)
1880
2017
  @number = args[:number] if args.key?(:number)
2018
+ @cell_location = args[:cell_location] if args.key?(:cell_location)
2019
+ @table_object_id = args[:table_object_id] if args.key?(:table_object_id)
1881
2020
  end
1882
2021
  end
1883
2022
 
@@ -1919,26 +2058,26 @@ module Google
1919
2058
  class LineProperties
1920
2059
  include Google::Apis::Core::Hashable
1921
2060
 
2061
+ # The dash style of the line.
2062
+ # Corresponds to the JSON property `dashStyle`
2063
+ # @return [String]
2064
+ attr_accessor :dash_style
2065
+
1922
2066
  # A hypertext link.
1923
2067
  # Corresponds to the JSON property `link`
1924
2068
  # @return [Google::Apis::SlidesV1::Link]
1925
2069
  attr_accessor :link
1926
2070
 
1927
- # The dash style of the line.
1928
- # Corresponds to the JSON property `dashStyle`
2071
+ # The style of the arrow at the end of the line.
2072
+ # Corresponds to the JSON property `endArrow`
1929
2073
  # @return [String]
1930
- attr_accessor :dash_style
2074
+ attr_accessor :end_arrow
1931
2075
 
1932
2076
  # The style of the arrow at the beginning of the line.
1933
2077
  # Corresponds to the JSON property `startArrow`
1934
2078
  # @return [String]
1935
2079
  attr_accessor :start_arrow
1936
2080
 
1937
- # The style of the arrow at the end of the line.
1938
- # Corresponds to the JSON property `endArrow`
1939
- # @return [String]
1940
- attr_accessor :end_arrow
1941
-
1942
2081
  # A magnitude in a single direction in the specified units.
1943
2082
  # Corresponds to the JSON property `weight`
1944
2083
  # @return [Google::Apis::SlidesV1::Dimension]
@@ -1955,10 +2094,10 @@ module Google
1955
2094
 
1956
2095
  # Update properties of this object
1957
2096
  def update!(**args)
1958
- @link = args[:link] if args.key?(:link)
1959
2097
  @dash_style = args[:dash_style] if args.key?(:dash_style)
1960
- @start_arrow = args[:start_arrow] if args.key?(:start_arrow)
2098
+ @link = args[:link] if args.key?(:link)
1961
2099
  @end_arrow = args[:end_arrow] if args.key?(:end_arrow)
2100
+ @start_arrow = args[:start_arrow] if args.key?(:start_arrow)
1962
2101
  @weight = args[:weight] if args.key?(:weight)
1963
2102
  @line_fill = args[:line_fill] if args.key?(:line_fill)
1964
2103
  end
@@ -1968,44 +2107,23 @@ module Google
1968
2107
  class Presentation
1969
2108
  include Google::Apis::Core::Hashable
1970
2109
 
1971
- # A width and height.
1972
- # Corresponds to the JSON property `pageSize`
1973
- # @return [Google::Apis::SlidesV1::Size]
1974
- attr_accessor :page_size
1975
-
1976
- # The ID of the presentation.
1977
- # Corresponds to the JSON property `presentationId`
1978
- # @return [String]
1979
- attr_accessor :presentation_id
1980
-
1981
- # The slides in the presentation.
1982
- # A slide inherits properties from a slide layout.
1983
- # Corresponds to the JSON property `slides`
1984
- # @return [Array<Google::Apis::SlidesV1::Page>]
1985
- attr_accessor :slides
1986
-
1987
2110
  # A page in a presentation.
1988
2111
  # Corresponds to the JSON property `notesMaster`
1989
2112
  # @return [Google::Apis::SlidesV1::Page]
1990
2113
  attr_accessor :notes_master
1991
2114
 
1992
- # The layouts in the presentation. A layout is a template that determines
1993
- # how content is arranged and styled on the slides that inherit from that
1994
- # layout.
1995
- # Corresponds to the JSON property `layouts`
1996
- # @return [Array<Google::Apis::SlidesV1::Page>]
1997
- attr_accessor :layouts
1998
-
1999
2115
  # The title of the presentation.
2000
2116
  # Corresponds to the JSON property `title`
2001
2117
  # @return [String]
2002
2118
  attr_accessor :title
2003
2119
 
2004
- # The locale of the presentation, as an IETF BCP 47 language tag.
2005
- # Corresponds to the JSON property `locale`
2006
- # @return [String]
2007
- attr_accessor :locale
2008
-
2120
+ # The layouts in the presentation. A layout is a template that determines
2121
+ # how content is arranged and styled on the slides that inherit from that
2122
+ # layout.
2123
+ # Corresponds to the JSON property `layouts`
2124
+ # @return [Array<Google::Apis::SlidesV1::Page>]
2125
+ attr_accessor :layouts
2126
+
2009
2127
  # The slide masters in the presentation. A slide master contains all common
2010
2128
  # page elements and the common properties for a set of layouts. They serve
2011
2129
  # three purposes:
@@ -2019,20 +2137,55 @@ module Google
2019
2137
  # @return [Array<Google::Apis::SlidesV1::Page>]
2020
2138
  attr_accessor :masters
2021
2139
 
2140
+ # The locale of the presentation, as an IETF BCP 47 language tag.
2141
+ # Corresponds to the JSON property `locale`
2142
+ # @return [String]
2143
+ attr_accessor :locale
2144
+
2145
+ # A width and height.
2146
+ # Corresponds to the JSON property `pageSize`
2147
+ # @return [Google::Apis::SlidesV1::Size]
2148
+ attr_accessor :page_size
2149
+
2150
+ # The ID of the presentation.
2151
+ # Corresponds to the JSON property `presentationId`
2152
+ # @return [String]
2153
+ attr_accessor :presentation_id
2154
+
2155
+ # The slides in the presentation.
2156
+ # A slide inherits properties from a slide layout.
2157
+ # Corresponds to the JSON property `slides`
2158
+ # @return [Array<Google::Apis::SlidesV1::Page>]
2159
+ attr_accessor :slides
2160
+
2161
+ # The revision ID of the presentation. Can be used in update requests
2162
+ # to assert that the presentation revision hasn't changed since the last
2163
+ # read operation. Only populated if the user has edit access to the
2164
+ # presentation.
2165
+ # The format of the revision ID may change over time, so it should be treated
2166
+ # opaquely. A returned revision ID is only guaranteed to be valid for 24
2167
+ # hours after it has been returned and cannot be shared across users. Callers
2168
+ # can assume that if two revision IDs are equal then the presentation has not
2169
+ # changed.
2170
+ # Corresponds to the JSON property `revisionId`
2171
+ # @return [String]
2172
+ attr_accessor :revision_id
2173
+
2022
2174
  def initialize(**args)
2023
2175
  update!(**args)
2024
2176
  end
2025
2177
 
2026
2178
  # Update properties of this object
2027
2179
  def update!(**args)
2028
- @page_size = args[:page_size] if args.key?(:page_size)
2029
- @presentation_id = args[:presentation_id] if args.key?(:presentation_id)
2030
- @slides = args[:slides] if args.key?(:slides)
2031
2180
  @notes_master = args[:notes_master] if args.key?(:notes_master)
2032
- @layouts = args[:layouts] if args.key?(:layouts)
2033
2181
  @title = args[:title] if args.key?(:title)
2034
- @locale = args[:locale] if args.key?(:locale)
2182
+ @layouts = args[:layouts] if args.key?(:layouts)
2035
2183
  @masters = args[:masters] if args.key?(:masters)
2184
+ @locale = args[:locale] if args.key?(:locale)
2185
+ @page_size = args[:page_size] if args.key?(:page_size)
2186
+ @presentation_id = args[:presentation_id] if args.key?(:presentation_id)
2187
+ @slides = args[:slides] if args.key?(:slides)
2188
+ @revision_id = args[:revision_id] if args.key?(:revision_id)
2036
2189
  end
2037
2190
  end
2038
2191
 
@@ -2333,26 +2486,6 @@ module Google
2333
2486
  class Response
2334
2487
  include Google::Apis::Core::Hashable
2335
2488
 
2336
- # The result of creating a video.
2337
- # Corresponds to the JSON property `createVideo`
2338
- # @return [Google::Apis::SlidesV1::CreateVideoResponse]
2339
- attr_accessor :create_video
2340
-
2341
- # The result of creating an embedded Google Sheets chart.
2342
- # Corresponds to the JSON property `createSheetsChart`
2343
- # @return [Google::Apis::SlidesV1::CreateSheetsChartResponse]
2344
- attr_accessor :create_sheets_chart
2345
-
2346
- # The result of replacing shapes with a Google Sheets chart.
2347
- # Corresponds to the JSON property `replaceAllShapesWithSheetsChart`
2348
- # @return [Google::Apis::SlidesV1::ReplaceAllShapesWithSheetsChartResponse]
2349
- attr_accessor :replace_all_shapes_with_sheets_chart
2350
-
2351
- # The result of replacing shapes with an image.
2352
- # Corresponds to the JSON property `replaceAllShapesWithImage`
2353
- # @return [Google::Apis::SlidesV1::ReplaceAllShapesWithImageResponse]
2354
- attr_accessor :replace_all_shapes_with_image
2355
-
2356
2489
  # The result of creating a table.
2357
2490
  # Corresponds to the JSON property `createTable`
2358
2491
  # @return [Google::Apis::SlidesV1::CreateTableResponse]
@@ -2368,16 +2501,16 @@ module Google
2368
2501
  # @return [Google::Apis::SlidesV1::CreateSlideResponse]
2369
2502
  attr_accessor :create_slide
2370
2503
 
2371
- # The response of duplicating an object.
2372
- # Corresponds to the JSON property `duplicateObject`
2373
- # @return [Google::Apis::SlidesV1::DuplicateObjectResponse]
2374
- attr_accessor :duplicate_object
2375
-
2376
2504
  # The result of creating a shape.
2377
2505
  # Corresponds to the JSON property `createShape`
2378
2506
  # @return [Google::Apis::SlidesV1::CreateShapeResponse]
2379
2507
  attr_accessor :create_shape
2380
2508
 
2509
+ # The response of duplicating an object.
2510
+ # Corresponds to the JSON property `duplicateObject`
2511
+ # @return [Google::Apis::SlidesV1::DuplicateObjectResponse]
2512
+ attr_accessor :duplicate_object
2513
+
2381
2514
  # The result of creating a line.
2382
2515
  # Corresponds to the JSON property `createLine`
2383
2516
  # @return [Google::Apis::SlidesV1::CreateLineResponse]
@@ -2388,23 +2521,43 @@ module Google
2388
2521
  # @return [Google::Apis::SlidesV1::CreateImageResponse]
2389
2522
  attr_accessor :create_image
2390
2523
 
2524
+ # The result of creating a video.
2525
+ # Corresponds to the JSON property `createVideo`
2526
+ # @return [Google::Apis::SlidesV1::CreateVideoResponse]
2527
+ attr_accessor :create_video
2528
+
2529
+ # The result of replacing shapes with a Google Sheets chart.
2530
+ # Corresponds to the JSON property `replaceAllShapesWithSheetsChart`
2531
+ # @return [Google::Apis::SlidesV1::ReplaceAllShapesWithSheetsChartResponse]
2532
+ attr_accessor :replace_all_shapes_with_sheets_chart
2533
+
2534
+ # The result of creating an embedded Google Sheets chart.
2535
+ # Corresponds to the JSON property `createSheetsChart`
2536
+ # @return [Google::Apis::SlidesV1::CreateSheetsChartResponse]
2537
+ attr_accessor :create_sheets_chart
2538
+
2539
+ # The result of replacing shapes with an image.
2540
+ # Corresponds to the JSON property `replaceAllShapesWithImage`
2541
+ # @return [Google::Apis::SlidesV1::ReplaceAllShapesWithImageResponse]
2542
+ attr_accessor :replace_all_shapes_with_image
2543
+
2391
2544
  def initialize(**args)
2392
2545
  update!(**args)
2393
2546
  end
2394
2547
 
2395
2548
  # Update properties of this object
2396
2549
  def update!(**args)
2397
- @create_video = args[:create_video] if args.key?(:create_video)
2398
- @create_sheets_chart = args[:create_sheets_chart] if args.key?(:create_sheets_chart)
2399
- @replace_all_shapes_with_sheets_chart = args[:replace_all_shapes_with_sheets_chart] if args.key?(:replace_all_shapes_with_sheets_chart)
2400
- @replace_all_shapes_with_image = args[:replace_all_shapes_with_image] if args.key?(:replace_all_shapes_with_image)
2401
2550
  @create_table = args[:create_table] if args.key?(:create_table)
2402
2551
  @replace_all_text = args[:replace_all_text] if args.key?(:replace_all_text)
2403
2552
  @create_slide = args[:create_slide] if args.key?(:create_slide)
2404
- @duplicate_object = args[:duplicate_object] if args.key?(:duplicate_object)
2405
2553
  @create_shape = args[:create_shape] if args.key?(:create_shape)
2554
+ @duplicate_object = args[:duplicate_object] if args.key?(:duplicate_object)
2406
2555
  @create_line = args[:create_line] if args.key?(:create_line)
2407
2556
  @create_image = args[:create_image] if args.key?(:create_image)
2557
+ @create_video = args[:create_video] if args.key?(:create_video)
2558
+ @replace_all_shapes_with_sheets_chart = args[:replace_all_shapes_with_sheets_chart] if args.key?(:replace_all_shapes_with_sheets_chart)
2559
+ @create_sheets_chart = args[:create_sheets_chart] if args.key?(:create_sheets_chart)
2560
+ @replace_all_shapes_with_image = args[:replace_all_shapes_with_image] if args.key?(:replace_all_shapes_with_image)
2408
2561
  end
2409
2562
  end
2410
2563
 
@@ -2413,11 +2566,6 @@ module Google
2413
2566
  class TextRun
2414
2567
  include Google::Apis::Core::Hashable
2415
2568
 
2416
- # The text of this run.
2417
- # Corresponds to the JSON property `content`
2418
- # @return [String]
2419
- attr_accessor :content
2420
-
2421
2569
  # Represents the styling that can be applied to a TextRun.
2422
2570
  # If this text is contained in a shape with a parent placeholder, then these
2423
2571
  # text styles may be
@@ -2437,14 +2585,19 @@ module Google
2437
2585
  # @return [Google::Apis::SlidesV1::TextStyle]
2438
2586
  attr_accessor :style
2439
2587
 
2588
+ # The text of this run.
2589
+ # Corresponds to the JSON property `content`
2590
+ # @return [String]
2591
+ attr_accessor :content
2592
+
2440
2593
  def initialize(**args)
2441
2594
  update!(**args)
2442
2595
  end
2443
2596
 
2444
2597
  # Update properties of this object
2445
2598
  def update!(**args)
2446
- @content = args[:content] if args.key?(:content)
2447
2599
  @style = args[:style] if args.key?(:style)
2600
+ @content = args[:content] if args.key?(:content)
2448
2601
  end
2449
2602
  end
2450
2603
 
@@ -2454,24 +2607,24 @@ module Google
2454
2607
  class LayoutReference
2455
2608
  include Google::Apis::Core::Hashable
2456
2609
 
2457
- # Predefined layout.
2458
- # Corresponds to the JSON property `predefinedLayout`
2459
- # @return [String]
2460
- attr_accessor :predefined_layout
2461
-
2462
2610
  # Layout ID: the object ID of one of the layouts in the presentation.
2463
2611
  # Corresponds to the JSON property `layoutId`
2464
2612
  # @return [String]
2465
2613
  attr_accessor :layout_id
2466
2614
 
2615
+ # Predefined layout.
2616
+ # Corresponds to the JSON property `predefinedLayout`
2617
+ # @return [String]
2618
+ attr_accessor :predefined_layout
2619
+
2467
2620
  def initialize(**args)
2468
2621
  update!(**args)
2469
2622
  end
2470
2623
 
2471
2624
  # Update properties of this object
2472
2625
  def update!(**args)
2473
- @predefined_layout = args[:predefined_layout] if args.key?(:predefined_layout)
2474
2626
  @layout_id = args[:layout_id] if args.key?(:layout_id)
2627
+ @predefined_layout = args[:predefined_layout] if args.key?(:predefined_layout)
2475
2628
  end
2476
2629
  end
2477
2630
 
@@ -2544,25 +2697,6 @@ module Google
2544
2697
  end
2545
2698
  end
2546
2699
 
2547
- # The result of creating a table.
2548
- class CreateTableResponse
2549
- include Google::Apis::Core::Hashable
2550
-
2551
- # The object ID of the created table.
2552
- # Corresponds to the JSON property `objectId`
2553
- # @return [String]
2554
- attr_accessor :object_id_prop
2555
-
2556
- def initialize(**args)
2557
- update!(**args)
2558
- end
2559
-
2560
- # Update properties of this object
2561
- def update!(**args)
2562
- @object_id_prop = args[:object_id_prop] if args.key?(:object_id_prop)
2563
- end
2564
- end
2565
-
2566
2700
  # Creates a new table.
2567
2701
  class CreateTableRequest
2568
2702
  include Google::Apis::Core::Hashable
@@ -2611,16 +2745,30 @@ module Google
2611
2745
  end
2612
2746
  end
2613
2747
 
2748
+ # The result of creating a table.
2749
+ class CreateTableResponse
2750
+ include Google::Apis::Core::Hashable
2751
+
2752
+ # The object ID of the created table.
2753
+ # Corresponds to the JSON property `objectId`
2754
+ # @return [String]
2755
+ attr_accessor :object_id_prop
2756
+
2757
+ def initialize(**args)
2758
+ update!(**args)
2759
+ end
2760
+
2761
+ # Update properties of this object
2762
+ def update!(**args)
2763
+ @object_id_prop = args[:object_id_prop] if args.key?(:object_id_prop)
2764
+ end
2765
+ end
2766
+
2614
2767
  # A PageElement kind representing a
2615
2768
  # table.
2616
2769
  class Table
2617
2770
  include Google::Apis::Core::Hashable
2618
2771
 
2619
- # Number of rows in the table.
2620
- # Corresponds to the JSON property `rows`
2621
- # @return [Fixnum]
2622
- attr_accessor :rows
2623
-
2624
2772
  # Properties of each column.
2625
2773
  # Corresponds to the JSON property `tableColumns`
2626
2774
  # @return [Array<Google::Apis::SlidesV1::TableColumnProperties>]
@@ -2639,16 +2787,21 @@ module Google
2639
2787
  # @return [Array<Google::Apis::SlidesV1::TableRow>]
2640
2788
  attr_accessor :table_rows
2641
2789
 
2790
+ # Number of rows in the table.
2791
+ # Corresponds to the JSON property `rows`
2792
+ # @return [Fixnum]
2793
+ attr_accessor :rows
2794
+
2642
2795
  def initialize(**args)
2643
2796
  update!(**args)
2644
2797
  end
2645
2798
 
2646
2799
  # Update properties of this object
2647
2800
  def update!(**args)
2648
- @rows = args[:rows] if args.key?(:rows)
2649
2801
  @table_columns = args[:table_columns] if args.key?(:table_columns)
2650
2802
  @columns = args[:columns] if args.key?(:columns)
2651
2803
  @table_rows = args[:table_rows] if args.key?(:table_rows)
2804
+ @rows = args[:rows] if args.key?(:rows)
2652
2805
  end
2653
2806
  end
2654
2807
 
@@ -2876,6 +3029,11 @@ module Google
2876
3029
  class StretchedPictureFill
2877
3030
  include Google::Apis::Core::Hashable
2878
3031
 
3032
+ # A width and height.
3033
+ # Corresponds to the JSON property `size`
3034
+ # @return [Google::Apis::SlidesV1::Size]
3035
+ attr_accessor :size
3036
+
2879
3037
  # Reading the content_url:
2880
3038
  # An URL to a picture with a default lifetime of 30 minutes.
2881
3039
  # This URL is tagged with the account of the requester. Anyone with the URL
@@ -2890,37 +3048,46 @@ module Google
2890
3048
  # @return [String]
2891
3049
  attr_accessor :content_url
2892
3050
 
2893
- # A width and height.
2894
- # Corresponds to the JSON property `size`
2895
- # @return [Google::Apis::SlidesV1::Size]
2896
- attr_accessor :size
2897
-
2898
3051
  def initialize(**args)
2899
3052
  update!(**args)
2900
3053
  end
2901
3054
 
2902
3055
  # Update properties of this object
2903
3056
  def update!(**args)
2904
- @content_url = args[:content_url] if args.key?(:content_url)
2905
3057
  @size = args[:size] if args.key?(:size)
3058
+ @content_url = args[:content_url] if args.key?(:content_url)
2906
3059
  end
2907
3060
  end
2908
3061
 
2909
- # Update the styling of text in a Shape or
2910
- # Table.
2911
- class UpdateTextStyleRequest
3062
+ # Deletes a column from a table.
3063
+ class DeleteTableColumnRequest
2912
3064
  include Google::Apis::Core::Hashable
2913
3065
 
2914
- # The object ID of the shape or table with the text to be styled.
2915
- # Corresponds to the JSON property `objectId`
3066
+ # A location of a single table cell within a table.
3067
+ # Corresponds to the JSON property `cellLocation`
3068
+ # @return [Google::Apis::SlidesV1::TableCellLocation]
3069
+ attr_accessor :cell_location
3070
+
3071
+ # The table to delete columns from.
3072
+ # Corresponds to the JSON property `tableObjectId`
2916
3073
  # @return [String]
2917
- attr_accessor :object_id_prop
3074
+ attr_accessor :table_object_id
2918
3075
 
2919
- # Specifies a contiguous range of an indexed collection, such as characters in
2920
- # text.
2921
- # Corresponds to the JSON property `textRange`
2922
- # @return [Google::Apis::SlidesV1::Range]
2923
- attr_accessor :text_range
3076
+ def initialize(**args)
3077
+ update!(**args)
3078
+ end
3079
+
3080
+ # Update properties of this object
3081
+ def update!(**args)
3082
+ @cell_location = args[:cell_location] if args.key?(:cell_location)
3083
+ @table_object_id = args[:table_object_id] if args.key?(:table_object_id)
3084
+ end
3085
+ end
3086
+
3087
+ # Update the styling of text in a Shape or
3088
+ # Table.
3089
+ class UpdateTextStyleRequest
3090
+ include Google::Apis::Core::Hashable
2924
3091
 
2925
3092
  # A location of a single table cell within a table.
2926
3093
  # Corresponds to the JSON property `cellLocation`
@@ -2957,33 +3124,16 @@ module Google
2957
3124
  # @return [String]
2958
3125
  attr_accessor :fields
2959
3126
 
2960
- def initialize(**args)
2961
- update!(**args)
2962
- end
2963
-
2964
- # Update properties of this object
2965
- def update!(**args)
2966
- @object_id_prop = args[:object_id_prop] if args.key?(:object_id_prop)
2967
- @text_range = args[:text_range] if args.key?(:text_range)
2968
- @cell_location = args[:cell_location] if args.key?(:cell_location)
2969
- @style = args[:style] if args.key?(:style)
2970
- @fields = args[:fields] if args.key?(:fields)
2971
- end
2972
- end
2973
-
2974
- # Deletes a column from a table.
2975
- class DeleteTableColumnRequest
2976
- include Google::Apis::Core::Hashable
2977
-
2978
- # A location of a single table cell within a table.
2979
- # Corresponds to the JSON property `cellLocation`
2980
- # @return [Google::Apis::SlidesV1::TableCellLocation]
2981
- attr_accessor :cell_location
2982
-
2983
- # The table to delete columns from.
2984
- # Corresponds to the JSON property `tableObjectId`
3127
+ # The object ID of the shape or table with the text to be styled.
3128
+ # Corresponds to the JSON property `objectId`
2985
3129
  # @return [String]
2986
- attr_accessor :table_object_id
3130
+ attr_accessor :object_id_prop
3131
+
3132
+ # Specifies a contiguous range of an indexed collection, such as characters in
3133
+ # text.
3134
+ # Corresponds to the JSON property `textRange`
3135
+ # @return [Google::Apis::SlidesV1::Range]
3136
+ attr_accessor :text_range
2987
3137
 
2988
3138
  def initialize(**args)
2989
3139
  update!(**args)
@@ -2992,7 +3142,10 @@ module Google
2992
3142
  # Update properties of this object
2993
3143
  def update!(**args)
2994
3144
  @cell_location = args[:cell_location] if args.key?(:cell_location)
2995
- @table_object_id = args[:table_object_id] if args.key?(:table_object_id)
3145
+ @style = args[:style] if args.key?(:style)
3146
+ @fields = args[:fields] if args.key?(:fields)
3147
+ @object_id_prop = args[:object_id_prop] if args.key?(:object_id_prop)
3148
+ @text_range = args[:text_range] if args.key?(:text_range)
2996
3149
  end
2997
3150
  end
2998
3151
 
@@ -3002,6 +3155,11 @@ module Google
3002
3155
  class List
3003
3156
  include Google::Apis::Core::Hashable
3004
3157
 
3158
+ # The ID of the list.
3159
+ # Corresponds to the JSON property `listId`
3160
+ # @return [String]
3161
+ attr_accessor :list_id
3162
+
3005
3163
  # A map of nesting levels to the properties of bullets at the associated
3006
3164
  # level. A list has at most nine levels of nesting, so the possible values
3007
3165
  # for the keys of this map are 0 through 8, inclusive.
@@ -3009,19 +3167,14 @@ module Google
3009
3167
  # @return [Hash<String,Google::Apis::SlidesV1::NestingLevel>]
3010
3168
  attr_accessor :nesting_level
3011
3169
 
3012
- # The ID of the list.
3013
- # Corresponds to the JSON property `listId`
3014
- # @return [String]
3015
- attr_accessor :list_id
3016
-
3017
3170
  def initialize(**args)
3018
3171
  update!(**args)
3019
3172
  end
3020
3173
 
3021
3174
  # Update properties of this object
3022
3175
  def update!(**args)
3023
- @nesting_level = args[:nesting_level] if args.key?(:nesting_level)
3024
3176
  @list_id = args[:list_id] if args.key?(:list_id)
3177
+ @nesting_level = args[:nesting_level] if args.key?(:nesting_level)
3025
3178
  end
3026
3179
  end
3027
3180
 
@@ -3029,6 +3182,30 @@ module Google
3029
3182
  class PageElement
3030
3183
  include Google::Apis::Core::Hashable
3031
3184
 
3185
+ # A PageElement kind representing a
3186
+ # line, curved connector, or bent connector.
3187
+ # Corresponds to the JSON property `line`
3188
+ # @return [Google::Apis::SlidesV1::Line]
3189
+ attr_accessor :line
3190
+
3191
+ # The description of the page element. Combined with title to display alt
3192
+ # text.
3193
+ # Corresponds to the JSON property `description`
3194
+ # @return [String]
3195
+ attr_accessor :description
3196
+
3197
+ # A PageElement kind representing a
3198
+ # joined collection of PageElements.
3199
+ # Corresponds to the JSON property `elementGroup`
3200
+ # @return [Google::Apis::SlidesV1::Group]
3201
+ attr_accessor :element_group
3202
+
3203
+ # A PageElement kind representing an
3204
+ # image.
3205
+ # Corresponds to the JSON property `image`
3206
+ # @return [Google::Apis::SlidesV1::Image]
3207
+ attr_accessor :image
3208
+
3032
3209
  # A width and height.
3033
3210
  # Corresponds to the JSON property `size`
3034
3211
  # @return [Google::Apis::SlidesV1::Size]
@@ -3064,13 +3241,6 @@ module Google
3064
3241
  # @return [Google::Apis::SlidesV1::Table]
3065
3242
  attr_accessor :table
3066
3243
 
3067
- # The object ID for this page element. Object IDs used by
3068
- # google.apps.slides.v1.Page and
3069
- # google.apps.slides.v1.PageElement share the same namespace.
3070
- # Corresponds to the JSON property `objectId`
3071
- # @return [String]
3072
- attr_accessor :object_id_prop
3073
-
3074
3244
  # AffineTransform uses a 3x3 matrix with an implied last row of [ 0 0 1 ]
3075
3245
  # to transform source coordinates (x,y) into destination coordinates (x', y')
3076
3246
  # according to:
@@ -3084,55 +3254,38 @@ module Google
3084
3254
  # @return [Google::Apis::SlidesV1::AffineTransform]
3085
3255
  attr_accessor :transform
3086
3256
 
3257
+ # The object ID for this page element. Object IDs used by
3258
+ # google.apps.slides.v1.Page and
3259
+ # google.apps.slides.v1.PageElement share the same namespace.
3260
+ # Corresponds to the JSON property `objectId`
3261
+ # @return [String]
3262
+ attr_accessor :object_id_prop
3263
+
3087
3264
  # A PageElement kind representing a
3088
3265
  # generic shape that does not have a more specific classification.
3089
3266
  # Corresponds to the JSON property `shape`
3090
3267
  # @return [Google::Apis::SlidesV1::Shape]
3091
3268
  attr_accessor :shape
3092
3269
 
3093
- # A PageElement kind representing a
3094
- # line, curved connector, or bent connector.
3095
- # Corresponds to the JSON property `line`
3096
- # @return [Google::Apis::SlidesV1::Line]
3097
- attr_accessor :line
3098
-
3099
- # The description of the page element. Combined with title to display alt
3100
- # text.
3101
- # Corresponds to the JSON property `description`
3102
- # @return [String]
3103
- attr_accessor :description
3104
-
3105
- # A PageElement kind representing a
3106
- # joined collection of PageElements.
3107
- # Corresponds to the JSON property `elementGroup`
3108
- # @return [Google::Apis::SlidesV1::Group]
3109
- attr_accessor :element_group
3110
-
3111
- # A PageElement kind representing an
3112
- # image.
3113
- # Corresponds to the JSON property `image`
3114
- # @return [Google::Apis::SlidesV1::Image]
3115
- attr_accessor :image
3116
-
3117
3270
  def initialize(**args)
3118
3271
  update!(**args)
3119
3272
  end
3120
3273
 
3121
3274
  # Update properties of this object
3122
3275
  def update!(**args)
3276
+ @line = args[:line] if args.key?(:line)
3277
+ @description = args[:description] if args.key?(:description)
3278
+ @element_group = args[:element_group] if args.key?(:element_group)
3279
+ @image = args[:image] if args.key?(:image)
3123
3280
  @size = args[:size] if args.key?(:size)
3124
3281
  @title = args[:title] if args.key?(:title)
3125
3282
  @sheets_chart = args[:sheets_chart] if args.key?(:sheets_chart)
3126
3283
  @video = args[:video] if args.key?(:video)
3127
3284
  @word_art = args[:word_art] if args.key?(:word_art)
3128
3285
  @table = args[:table] if args.key?(:table)
3129
- @object_id_prop = args[:object_id_prop] if args.key?(:object_id_prop)
3130
3286
  @transform = args[:transform] if args.key?(:transform)
3287
+ @object_id_prop = args[:object_id_prop] if args.key?(:object_id_prop)
3131
3288
  @shape = args[:shape] if args.key?(:shape)
3132
- @line = args[:line] if args.key?(:line)
3133
- @description = args[:description] if args.key?(:description)
3134
- @element_group = args[:element_group] if args.key?(:element_group)
3135
- @image = args[:image] if args.key?(:image)
3136
3289
  end
3137
3290
  end
3138
3291
 
@@ -3194,17 +3347,6 @@ module Google
3194
3347
  class CreateParagraphBulletsRequest
3195
3348
  include Google::Apis::Core::Hashable
3196
3349
 
3197
- # The kinds of bullet glyphs to be used. Defaults to the
3198
- # `BULLET_DISC_CIRCLE_SQUARE` preset.
3199
- # Corresponds to the JSON property `bulletPreset`
3200
- # @return [String]
3201
- attr_accessor :bullet_preset
3202
-
3203
- # A location of a single table cell within a table.
3204
- # Corresponds to the JSON property `cellLocation`
3205
- # @return [Google::Apis::SlidesV1::TableCellLocation]
3206
- attr_accessor :cell_location
3207
-
3208
3350
  # The object ID of the shape or table containing the text to add bullets to.
3209
3351
  # Corresponds to the JSON property `objectId`
3210
3352
  # @return [String]
@@ -3216,16 +3358,52 @@ module Google
3216
3358
  # @return [Google::Apis::SlidesV1::Range]
3217
3359
  attr_accessor :text_range
3218
3360
 
3361
+ # The kinds of bullet glyphs to be used. Defaults to the
3362
+ # `BULLET_DISC_CIRCLE_SQUARE` preset.
3363
+ # Corresponds to the JSON property `bulletPreset`
3364
+ # @return [String]
3365
+ attr_accessor :bullet_preset
3366
+
3367
+ # A location of a single table cell within a table.
3368
+ # Corresponds to the JSON property `cellLocation`
3369
+ # @return [Google::Apis::SlidesV1::TableCellLocation]
3370
+ attr_accessor :cell_location
3371
+
3219
3372
  def initialize(**args)
3220
3373
  update!(**args)
3221
3374
  end
3222
3375
 
3223
3376
  # Update properties of this object
3224
3377
  def update!(**args)
3225
- @bullet_preset = args[:bullet_preset] if args.key?(:bullet_preset)
3226
- @cell_location = args[:cell_location] if args.key?(:cell_location)
3227
3378
  @object_id_prop = args[:object_id_prop] if args.key?(:object_id_prop)
3228
3379
  @text_range = args[:text_range] if args.key?(:text_range)
3380
+ @bullet_preset = args[:bullet_preset] if args.key?(:bullet_preset)
3381
+ @cell_location = args[:cell_location] if args.key?(:cell_location)
3382
+ end
3383
+ end
3384
+
3385
+ # A width and height.
3386
+ class Size
3387
+ include Google::Apis::Core::Hashable
3388
+
3389
+ # A magnitude in a single direction in the specified units.
3390
+ # Corresponds to the JSON property `height`
3391
+ # @return [Google::Apis::SlidesV1::Dimension]
3392
+ attr_accessor :height
3393
+
3394
+ # A magnitude in a single direction in the specified units.
3395
+ # Corresponds to the JSON property `width`
3396
+ # @return [Google::Apis::SlidesV1::Dimension]
3397
+ attr_accessor :width
3398
+
3399
+ def initialize(**args)
3400
+ update!(**args)
3401
+ end
3402
+
3403
+ # Update properties of this object
3404
+ def update!(**args)
3405
+ @height = args[:height] if args.key?(:height)
3406
+ @width = args[:width] if args.key?(:width)
3229
3407
  end
3230
3408
  end
3231
3409
 
@@ -3247,19 +3425,6 @@ module Google
3247
3425
  class TextStyle
3248
3426
  include Google::Apis::Core::Hashable
3249
3427
 
3250
- # The text's vertical offset from its normal position.
3251
- # Text with `SUPERSCRIPT` or `SUBSCRIPT` baseline offsets is automatically
3252
- # rendered in a smaller font size, computed based on the `font_size` field.
3253
- # The `font_size` itself is not affected by changes in this field.
3254
- # Corresponds to the JSON property `baselineOffset`
3255
- # @return [String]
3256
- attr_accessor :baseline_offset
3257
-
3258
- # A color that can either be fully opaque or fully transparent.
3259
- # Corresponds to the JSON property `backgroundColor`
3260
- # @return [Google::Apis::SlidesV1::OptionalColor]
3261
- attr_accessor :background_color
3262
-
3263
3428
  # A hypertext link.
3264
3429
  # Corresponds to the JSON property `link`
3265
3430
  # @return [Google::Apis::SlidesV1::Link]
@@ -3316,14 +3481,25 @@ module Google
3316
3481
  attr_accessor :small_caps
3317
3482
  alias_method :small_caps?, :small_caps
3318
3483
 
3484
+ # The text's vertical offset from its normal position.
3485
+ # Text with `SUPERSCRIPT` or `SUBSCRIPT` baseline offsets is automatically
3486
+ # rendered in a smaller font size, computed based on the `font_size` field.
3487
+ # The `font_size` itself is not affected by changes in this field.
3488
+ # Corresponds to the JSON property `baselineOffset`
3489
+ # @return [String]
3490
+ attr_accessor :baseline_offset
3491
+
3492
+ # A color that can either be fully opaque or fully transparent.
3493
+ # Corresponds to the JSON property `backgroundColor`
3494
+ # @return [Google::Apis::SlidesV1::OptionalColor]
3495
+ attr_accessor :background_color
3496
+
3319
3497
  def initialize(**args)
3320
3498
  update!(**args)
3321
3499
  end
3322
3500
 
3323
3501
  # Update properties of this object
3324
3502
  def update!(**args)
3325
- @baseline_offset = args[:baseline_offset] if args.key?(:baseline_offset)
3326
- @background_color = args[:background_color] if args.key?(:background_color)
3327
3503
  @link = args[:link] if args.key?(:link)
3328
3504
  @underline = args[:underline] if args.key?(:underline)
3329
3505
  @bold = args[:bold] if args.key?(:bold)
@@ -3333,31 +3509,8 @@ module Google
3333
3509
  @italic = args[:italic] if args.key?(:italic)
3334
3510
  @font_size = args[:font_size] if args.key?(:font_size)
3335
3511
  @small_caps = args[:small_caps] if args.key?(:small_caps)
3336
- end
3337
- end
3338
-
3339
- # A width and height.
3340
- class Size
3341
- include Google::Apis::Core::Hashable
3342
-
3343
- # A magnitude in a single direction in the specified units.
3344
- # Corresponds to the JSON property `height`
3345
- # @return [Google::Apis::SlidesV1::Dimension]
3346
- attr_accessor :height
3347
-
3348
- # A magnitude in a single direction in the specified units.
3349
- # Corresponds to the JSON property `width`
3350
- # @return [Google::Apis::SlidesV1::Dimension]
3351
- attr_accessor :width
3352
-
3353
- def initialize(**args)
3354
- update!(**args)
3355
- end
3356
-
3357
- # Update properties of this object
3358
- def update!(**args)
3359
- @height = args[:height] if args.key?(:height)
3360
- @width = args[:width] if args.key?(:width)
3512
+ @baseline_offset = args[:baseline_offset] if args.key?(:baseline_offset)
3513
+ @background_color = args[:background_color] if args.key?(:background_color)
3361
3514
  end
3362
3515
  end
3363
3516
 
@@ -3403,21 +3556,6 @@ module Google
3403
3556
  class Request
3404
3557
  include Google::Apis::Core::Hashable
3405
3558
 
3406
- # Replaces all shapes that match the given criteria with the provided image.
3407
- # Corresponds to the JSON property `replaceAllShapesWithImage`
3408
- # @return [Google::Apis::SlidesV1::ReplaceAllShapesWithImageRequest]
3409
- attr_accessor :replace_all_shapes_with_image
3410
-
3411
- # Replaces all instances of text matching a criteria with replace text.
3412
- # Corresponds to the JSON property `replaceAllText`
3413
- # @return [Google::Apis::SlidesV1::ReplaceAllTextRequest]
3414
- attr_accessor :replace_all_text
3415
-
3416
- # Update the properties of an Image.
3417
- # Corresponds to the JSON property `updateImageProperties`
3418
- # @return [Google::Apis::SlidesV1::UpdateImagePropertiesRequest]
3419
- attr_accessor :update_image_properties
3420
-
3421
3559
  # Inserts rows into a table.
3422
3560
  # Corresponds to the JSON property `insertTableRows`
3423
3561
  # @return [Google::Apis::SlidesV1::InsertTableRowsRequest]
@@ -3463,11 +3601,6 @@ module Google
3463
3601
  # @return [Google::Apis::SlidesV1::UpdatePagePropertiesRequest]
3464
3602
  attr_accessor :update_page_properties
3465
3603
 
3466
- # Creates a new shape.
3467
- # Corresponds to the JSON property `createShape`
3468
- # @return [Google::Apis::SlidesV1::CreateShapeRequest]
3469
- attr_accessor :create_shape
3470
-
3471
3604
  # Deletes bullets from all of the paragraphs that overlap with the given text
3472
3605
  # index range.
3473
3606
  # The nesting level of each paragraph will be visually preserved by adding
@@ -3476,6 +3609,11 @@ module Google
3476
3609
  # @return [Google::Apis::SlidesV1::DeleteParagraphBulletsRequest]
3477
3610
  attr_accessor :delete_paragraph_bullets
3478
3611
 
3612
+ # Creates a new shape.
3613
+ # Corresponds to the JSON property `createShape`
3614
+ # @return [Google::Apis::SlidesV1::CreateShapeRequest]
3615
+ attr_accessor :create_shape
3616
+
3479
3617
  # Inserts columns into a table.
3480
3618
  # Other columns in the table will be resized to fit the new column.
3481
3619
  # Corresponds to the JSON property `insertTableColumns`
@@ -3513,6 +3651,11 @@ module Google
3513
3651
  # @return [Google::Apis::SlidesV1::UpdateParagraphStyleRequest]
3514
3652
  attr_accessor :update_paragraph_style
3515
3653
 
3654
+ # Deletes a column from a table.
3655
+ # Corresponds to the JSON property `deleteTableColumn`
3656
+ # @return [Google::Apis::SlidesV1::DeleteTableColumnRequest]
3657
+ attr_accessor :delete_table_column
3658
+
3516
3659
  # Duplicates a slide or page element.
3517
3660
  # When duplicating a slide, the duplicate slide will be created immediately
3518
3661
  # following the specified slide. When duplicating a page element, the duplicate
@@ -3521,21 +3664,16 @@ module Google
3521
3664
  # @return [Google::Apis::SlidesV1::DuplicateObjectRequest]
3522
3665
  attr_accessor :duplicate_object
3523
3666
 
3524
- # Deletes a column from a table.
3525
- # Corresponds to the JSON property `deleteTableColumn`
3526
- # @return [Google::Apis::SlidesV1::DeleteTableColumnRequest]
3527
- attr_accessor :delete_table_column
3667
+ # Update the properties of a Video.
3668
+ # Corresponds to the JSON property `updateVideoProperties`
3669
+ # @return [Google::Apis::SlidesV1::UpdateVideoPropertiesRequest]
3670
+ attr_accessor :update_video_properties
3528
3671
 
3529
3672
  # Creates a line.
3530
3673
  # Corresponds to the JSON property `createLine`
3531
3674
  # @return [Google::Apis::SlidesV1::CreateLineRequest]
3532
3675
  attr_accessor :create_line
3533
3676
 
3534
- # Update the properties of a Video.
3535
- # Corresponds to the JSON property `updateVideoProperties`
3536
- # @return [Google::Apis::SlidesV1::UpdateVideoPropertiesRequest]
3537
- attr_accessor :update_video_properties
3538
-
3539
3677
  # Creates an image.
3540
3678
  # Corresponds to the JSON property `createImage`
3541
3679
  # @return [Google::Apis::SlidesV1::CreateImageRequest]
@@ -3580,11 +3718,26 @@ module Google
3580
3718
  # @return [Google::Apis::SlidesV1::UpdatePageElementTransformRequest]
3581
3719
  attr_accessor :update_page_element_transform
3582
3720
 
3583
- # Update the styling of text in a Shape or
3584
- # Table.
3585
- # Corresponds to the JSON property `updateTextStyle`
3586
- # @return [Google::Apis::SlidesV1::UpdateTextStyleRequest]
3587
- attr_accessor :update_text_style
3721
+ # Update the styling of text in a Shape or
3722
+ # Table.
3723
+ # Corresponds to the JSON property `updateTextStyle`
3724
+ # @return [Google::Apis::SlidesV1::UpdateTextStyleRequest]
3725
+ attr_accessor :update_text_style
3726
+
3727
+ # Replaces all shapes that match the given criteria with the provided image.
3728
+ # Corresponds to the JSON property `replaceAllShapesWithImage`
3729
+ # @return [Google::Apis::SlidesV1::ReplaceAllShapesWithImageRequest]
3730
+ attr_accessor :replace_all_shapes_with_image
3731
+
3732
+ # Replaces all instances of text matching a criteria with replace text.
3733
+ # Corresponds to the JSON property `replaceAllText`
3734
+ # @return [Google::Apis::SlidesV1::ReplaceAllTextRequest]
3735
+ attr_accessor :replace_all_text
3736
+
3737
+ # Update the properties of an Image.
3738
+ # Corresponds to the JSON property `updateImageProperties`
3739
+ # @return [Google::Apis::SlidesV1::UpdateImagePropertiesRequest]
3740
+ attr_accessor :update_image_properties
3588
3741
 
3589
3742
  def initialize(**args)
3590
3743
  update!(**args)
@@ -3592,9 +3745,6 @@ module Google
3592
3745
 
3593
3746
  # Update properties of this object
3594
3747
  def update!(**args)
3595
- @replace_all_shapes_with_image = args[:replace_all_shapes_with_image] if args.key?(:replace_all_shapes_with_image)
3596
- @replace_all_text = args[:replace_all_text] if args.key?(:replace_all_text)
3597
- @update_image_properties = args[:update_image_properties] if args.key?(:update_image_properties)
3598
3748
  @insert_table_rows = args[:insert_table_rows] if args.key?(:insert_table_rows)
3599
3749
  @create_slide = args[:create_slide] if args.key?(:create_slide)
3600
3750
  @update_line_properties = args[:update_line_properties] if args.key?(:update_line_properties)
@@ -3604,18 +3754,18 @@ module Google
3604
3754
  @insert_text = args[:insert_text] if args.key?(:insert_text)
3605
3755
  @delete_text = args[:delete_text] if args.key?(:delete_text)
3606
3756
  @update_page_properties = args[:update_page_properties] if args.key?(:update_page_properties)
3607
- @create_shape = args[:create_shape] if args.key?(:create_shape)
3608
3757
  @delete_paragraph_bullets = args[:delete_paragraph_bullets] if args.key?(:delete_paragraph_bullets)
3758
+ @create_shape = args[:create_shape] if args.key?(:create_shape)
3609
3759
  @insert_table_columns = args[:insert_table_columns] if args.key?(:insert_table_columns)
3610
3760
  @refresh_sheets_chart = args[:refresh_sheets_chart] if args.key?(:refresh_sheets_chart)
3611
3761
  @update_table_cell_properties = args[:update_table_cell_properties] if args.key?(:update_table_cell_properties)
3612
3762
  @create_table = args[:create_table] if args.key?(:create_table)
3613
3763
  @delete_object = args[:delete_object] if args.key?(:delete_object)
3614
3764
  @update_paragraph_style = args[:update_paragraph_style] if args.key?(:update_paragraph_style)
3615
- @duplicate_object = args[:duplicate_object] if args.key?(:duplicate_object)
3616
3765
  @delete_table_column = args[:delete_table_column] if args.key?(:delete_table_column)
3617
- @create_line = args[:create_line] if args.key?(:create_line)
3766
+ @duplicate_object = args[:duplicate_object] if args.key?(:duplicate_object)
3618
3767
  @update_video_properties = args[:update_video_properties] if args.key?(:update_video_properties)
3768
+ @create_line = args[:create_line] if args.key?(:create_line)
3619
3769
  @create_image = args[:create_image] if args.key?(:create_image)
3620
3770
  @create_paragraph_bullets = args[:create_paragraph_bullets] if args.key?(:create_paragraph_bullets)
3621
3771
  @create_video = args[:create_video] if args.key?(:create_video)
@@ -3623,6 +3773,9 @@ module Google
3623
3773
  @replace_all_shapes_with_sheets_chart = args[:replace_all_shapes_with_sheets_chart] if args.key?(:replace_all_shapes_with_sheets_chart)
3624
3774
  @update_page_element_transform = args[:update_page_element_transform] if args.key?(:update_page_element_transform)
3625
3775
  @update_text_style = args[:update_text_style] if args.key?(:update_text_style)
3776
+ @replace_all_shapes_with_image = args[:replace_all_shapes_with_image] if args.key?(:replace_all_shapes_with_image)
3777
+ @replace_all_text = args[:replace_all_text] if args.key?(:replace_all_text)
3778
+ @update_image_properties = args[:update_image_properties] if args.key?(:update_image_properties)
3626
3779
  end
3627
3780
  end
3628
3781
 
@@ -3678,6 +3831,18 @@ module Google
3678
3831
  class ParagraphStyle
3679
3832
  include Google::Apis::Core::Hashable
3680
3833
 
3834
+ # A magnitude in a single direction in the specified units.
3835
+ # Corresponds to the JSON property `spaceBelow`
3836
+ # @return [Google::Apis::SlidesV1::Dimension]
3837
+ attr_accessor :space_below
3838
+
3839
+ # The text direction of this paragraph. If unset, the value defaults to
3840
+ # LEFT_TO_RIGHT
3841
+ # since text direction is not inherited.
3842
+ # Corresponds to the JSON property `direction`
3843
+ # @return [String]
3844
+ attr_accessor :direction
3845
+
3681
3846
  # The spacing mode for the paragraph.
3682
3847
  # Corresponds to the JSON property `spacingMode`
3683
3848
  # @return [String]
@@ -3714,24 +3879,14 @@ module Google
3714
3879
  # @return [Google::Apis::SlidesV1::Dimension]
3715
3880
  attr_accessor :indent_first_line
3716
3881
 
3717
- # A magnitude in a single direction in the specified units.
3718
- # Corresponds to the JSON property `spaceBelow`
3719
- # @return [Google::Apis::SlidesV1::Dimension]
3720
- attr_accessor :space_below
3721
-
3722
- # The text direction of this paragraph. If unset, the value defaults to
3723
- # LEFT_TO_RIGHT
3724
- # since text direction is not inherited.
3725
- # Corresponds to the JSON property `direction`
3726
- # @return [String]
3727
- attr_accessor :direction
3728
-
3729
3882
  def initialize(**args)
3730
3883
  update!(**args)
3731
3884
  end
3732
3885
 
3733
3886
  # Update properties of this object
3734
3887
  def update!(**args)
3888
+ @space_below = args[:space_below] if args.key?(:space_below)
3889
+ @direction = args[:direction] if args.key?(:direction)
3735
3890
  @spacing_mode = args[:spacing_mode] if args.key?(:spacing_mode)
3736
3891
  @indent_end = args[:indent_end] if args.key?(:indent_end)
3737
3892
  @indent_start = args[:indent_start] if args.key?(:indent_start)
@@ -3739,8 +3894,6 @@ module Google
3739
3894
  @alignment = args[:alignment] if args.key?(:alignment)
3740
3895
  @line_spacing = args[:line_spacing] if args.key?(:line_spacing)
3741
3896
  @indent_first_line = args[:indent_first_line] if args.key?(:indent_first_line)
3742
- @space_below = args[:space_below] if args.key?(:space_below)
3743
- @direction = args[:direction] if args.key?(:direction)
3744
3897
  end
3745
3898
  end
3746
3899
 
@@ -3850,20 +4003,14 @@ module Google
3850
4003
  end
3851
4004
  end
3852
4005
 
3853
- # The properties of Page that are only
3854
- # relevant for pages with page_type NOTES.
3855
- class NotesProperties
4006
+ # Properties of each column in a table.
4007
+ class TableColumnProperties
3856
4008
  include Google::Apis::Core::Hashable
3857
4009
 
3858
- # The object ID of the shape on this notes page that contains the speaker
3859
- # notes for the corresponding slide.
3860
- # The actual shape may not always exist on the notes page. Inserting text
3861
- # using this object ID will automatically create the shape. In this case, the
3862
- # actual shape may have different object ID. The `GetPresentation` or
3863
- # `GetPage` action will always return the latest object ID.
3864
- # Corresponds to the JSON property `speakerNotesObjectId`
3865
- # @return [String]
3866
- attr_accessor :speaker_notes_object_id
4010
+ # A magnitude in a single direction in the specified units.
4011
+ # Corresponds to the JSON property `columnWidth`
4012
+ # @return [Google::Apis::SlidesV1::Dimension]
4013
+ attr_accessor :column_width
3867
4014
 
3868
4015
  def initialize(**args)
3869
4016
  update!(**args)
@@ -3871,7 +4018,7 @@ module Google
3871
4018
 
3872
4019
  # Update properties of this object
3873
4020
  def update!(**args)
3874
- @speaker_notes_object_id = args[:speaker_notes_object_id] if args.key?(:speaker_notes_object_id)
4021
+ @column_width = args[:column_width] if args.key?(:column_width)
3875
4022
  end
3876
4023
  end
3877
4024
 
@@ -3925,14 +4072,20 @@ module Google
3925
4072
  end
3926
4073
  end
3927
4074
 
3928
- # Properties of each column in a table.
3929
- class TableColumnProperties
4075
+ # The properties of Page that are only
4076
+ # relevant for pages with page_type NOTES.
4077
+ class NotesProperties
3930
4078
  include Google::Apis::Core::Hashable
3931
4079
 
3932
- # A magnitude in a single direction in the specified units.
3933
- # Corresponds to the JSON property `columnWidth`
3934
- # @return [Google::Apis::SlidesV1::Dimension]
3935
- attr_accessor :column_width
4080
+ # The object ID of the shape on this notes page that contains the speaker
4081
+ # notes for the corresponding slide.
4082
+ # The actual shape may not always exist on the notes page. Inserting text
4083
+ # using this object ID will automatically create the shape. In this case, the
4084
+ # actual shape may have different object ID. The `GetPresentation` or
4085
+ # `GetPage` action will always return the latest object ID.
4086
+ # Corresponds to the JSON property `speakerNotesObjectId`
4087
+ # @return [String]
4088
+ attr_accessor :speaker_notes_object_id
3936
4089
 
3937
4090
  def initialize(**args)
3938
4091
  update!(**args)
@@ -3940,7 +4093,7 @@ module Google
3940
4093
 
3941
4094
  # Update properties of this object
3942
4095
  def update!(**args)
3943
- @column_width = args[:column_width] if args.key?(:column_width)
4096
+ @speaker_notes_object_id = args[:speaker_notes_object_id] if args.key?(:speaker_notes_object_id)
3944
4097
  end
3945
4098
  end
3946
4099
 
@@ -4031,6 +4184,13 @@ module Google
4031
4184
  class CreateSlideRequest
4032
4185
  include Google::Apis::Core::Hashable
4033
4186
 
4187
+ # Slide layout reference. This may reference either:
4188
+ # - A predefined layout
4189
+ # - One of the layouts in the presentation.
4190
+ # Corresponds to the JSON property `slideLayoutReference`
4191
+ # @return [Google::Apis::SlidesV1::LayoutReference]
4192
+ attr_accessor :slide_layout_reference
4193
+
4034
4194
  # A user-supplied object ID.
4035
4195
  # If you specify an ID, it must be unique among all pages and page elements
4036
4196
  # in the presentation. The ID must start with an alphanumeric character or an
@@ -4057,23 +4217,16 @@ module Google
4057
4217
  # @return [Array<Google::Apis::SlidesV1::LayoutPlaceholderIdMapping>]
4058
4218
  attr_accessor :placeholder_id_mappings
4059
4219
 
4060
- # Slide layout reference. This may reference either:
4061
- # - A predefined layout
4062
- # - One of the layouts in the presentation.
4063
- # Corresponds to the JSON property `slideLayoutReference`
4064
- # @return [Google::Apis::SlidesV1::LayoutReference]
4065
- attr_accessor :slide_layout_reference
4066
-
4067
4220
  def initialize(**args)
4068
4221
  update!(**args)
4069
4222
  end
4070
4223
 
4071
4224
  # Update properties of this object
4072
4225
  def update!(**args)
4226
+ @slide_layout_reference = args[:slide_layout_reference] if args.key?(:slide_layout_reference)
4073
4227
  @object_id_prop = args[:object_id_prop] if args.key?(:object_id_prop)
4074
4228
  @insertion_index = args[:insertion_index] if args.key?(:insertion_index)
4075
4229
  @placeholder_id_mappings = args[:placeholder_id_mappings] if args.key?(:placeholder_id_mappings)
4076
- @slide_layout_reference = args[:slide_layout_reference] if args.key?(:slide_layout_reference)
4077
4230
  end
4078
4231
  end
4079
4232
 
@@ -4081,6 +4234,11 @@ module Google
4081
4234
  class BatchUpdatePresentationRequest
4082
4235
  include Google::Apis::Core::Hashable
4083
4236
 
4237
+ # Provides control over how write requests are executed.
4238
+ # Corresponds to the JSON property `writeControl`
4239
+ # @return [Google::Apis::SlidesV1::WriteControl]
4240
+ attr_accessor :write_control
4241
+
4084
4242
  # A list of updates to apply to the presentation.
4085
4243
  # Corresponds to the JSON property `requests`
4086
4244
  # @return [Array<Google::Apis::SlidesV1::Request>]
@@ -4092,6 +4250,7 @@ module Google
4092
4250
 
4093
4251
  # Update properties of this object
4094
4252
  def update!(**args)
4253
+ @write_control = args[:write_control] if args.key?(:write_control)
4095
4254
  @requests = args[:requests] if args.key?(:requests)
4096
4255
  end
4097
4256
  end
@@ -4142,6 +4301,28 @@ module Google
4142
4301
  end
4143
4302
  end
4144
4303
 
4304
+ # Provides control over how write requests are executed.
4305
+ class WriteControl
4306
+ include Google::Apis::Core::Hashable
4307
+
4308
+ # The revision ID of the presentation required for the write request. If
4309
+ # specified and the `required_revision_id` doesn't exactly match the
4310
+ # presentation's current `revision_id`, the request will not be processed and
4311
+ # will return a 400 bad request error.
4312
+ # Corresponds to the JSON property `requiredRevisionId`
4313
+ # @return [String]
4314
+ attr_accessor :required_revision_id
4315
+
4316
+ def initialize(**args)
4317
+ update!(**args)
4318
+ end
4319
+
4320
+ # Update properties of this object
4321
+ def update!(**args)
4322
+ @required_revision_id = args[:required_revision_id] if args.key?(:required_revision_id)
4323
+ end
4324
+ end
4325
+
4145
4326
  # Deletes bullets from all of the paragraphs that overlap with the given text
4146
4327
  # index range.
4147
4328
  # The nesting level of each paragraph will be visually preserved by adding
@@ -4149,6 +4330,11 @@ module Google
4149
4330
  class DeleteParagraphBulletsRequest
4150
4331
  include Google::Apis::Core::Hashable
4151
4332
 
4333
+ # A location of a single table cell within a table.
4334
+ # Corresponds to the JSON property `cellLocation`
4335
+ # @return [Google::Apis::SlidesV1::TableCellLocation]
4336
+ attr_accessor :cell_location
4337
+
4152
4338
  # The object ID of the shape or table containing the text to delete bullets
4153
4339
  # from.
4154
4340
  # Corresponds to the JSON property `objectId`
@@ -4161,20 +4347,15 @@ module Google
4161
4347
  # @return [Google::Apis::SlidesV1::Range]
4162
4348
  attr_accessor :text_range
4163
4349
 
4164
- # A location of a single table cell within a table.
4165
- # Corresponds to the JSON property `cellLocation`
4166
- # @return [Google::Apis::SlidesV1::TableCellLocation]
4167
- attr_accessor :cell_location
4168
-
4169
4350
  def initialize(**args)
4170
4351
  update!(**args)
4171
4352
  end
4172
4353
 
4173
4354
  # Update properties of this object
4174
4355
  def update!(**args)
4356
+ @cell_location = args[:cell_location] if args.key?(:cell_location)
4175
4357
  @object_id_prop = args[:object_id_prop] if args.key?(:object_id_prop)
4176
4358
  @text_range = args[:text_range] if args.key?(:text_range)
4177
- @cell_location = args[:cell_location] if args.key?(:cell_location)
4178
4359
  end
4179
4360
  end
4180
4361
 
@@ -4212,131 +4393,6 @@ module Google
4212
4393
  @bullet = args[:bullet] if args.key?(:bullet)
4213
4394
  end
4214
4395
  end
4215
-
4216
- # Inserts columns into a table.
4217
- # Other columns in the table will be resized to fit the new column.
4218
- class InsertTableColumnsRequest
4219
- include Google::Apis::Core::Hashable
4220
-
4221
- # The number of columns to be inserted. Maximum 20 per request.
4222
- # Corresponds to the JSON property `number`
4223
- # @return [Fixnum]
4224
- attr_accessor :number
4225
-
4226
- # A location of a single table cell within a table.
4227
- # Corresponds to the JSON property `cellLocation`
4228
- # @return [Google::Apis::SlidesV1::TableCellLocation]
4229
- attr_accessor :cell_location
4230
-
4231
- # Whether to insert new columns to the right of the reference cell location.
4232
- # - `True`: insert to the right.
4233
- # - `False`: insert to the left.
4234
- # Corresponds to the JSON property `insertRight`
4235
- # @return [Boolean]
4236
- attr_accessor :insert_right
4237
- alias_method :insert_right?, :insert_right
4238
-
4239
- # The table to insert columns into.
4240
- # Corresponds to the JSON property `tableObjectId`
4241
- # @return [String]
4242
- attr_accessor :table_object_id
4243
-
4244
- def initialize(**args)
4245
- update!(**args)
4246
- end
4247
-
4248
- # Update properties of this object
4249
- def update!(**args)
4250
- @number = args[:number] if args.key?(:number)
4251
- @cell_location = args[:cell_location] if args.key?(:cell_location)
4252
- @insert_right = args[:insert_right] if args.key?(:insert_right)
4253
- @table_object_id = args[:table_object_id] if args.key?(:table_object_id)
4254
- end
4255
- end
4256
-
4257
- # The user-specified ID mapping for a placeholder that will be created on a
4258
- # slide from a specified layout.
4259
- class LayoutPlaceholderIdMapping
4260
- include Google::Apis::Core::Hashable
4261
-
4262
- # The placeholder information that uniquely identifies a placeholder shape.
4263
- # Corresponds to the JSON property `layoutPlaceholder`
4264
- # @return [Google::Apis::SlidesV1::Placeholder]
4265
- attr_accessor :layout_placeholder
4266
-
4267
- # The object ID of the placeholder on a layout that will be applied
4268
- # to a slide.
4269
- # Corresponds to the JSON property `layoutPlaceholderObjectId`
4270
- # @return [String]
4271
- attr_accessor :layout_placeholder_object_id
4272
-
4273
- # A user-supplied object ID for the placeholder identified above that to be
4274
- # created onto a slide.
4275
- # If you specify an ID, it must be unique among all pages and page elements
4276
- # in the presentation. The ID must start with an alphanumeric character or an
4277
- # underscore (matches regex `[a-zA-Z0-9_]`); remaining characters
4278
- # may include those as well as a hyphen or colon (matches regex
4279
- # `[a-zA-Z0-9_-:]`).
4280
- # The length of the ID must not be less than 5 or greater than 50.
4281
- # If you don't specify an ID, a unique one is generated.
4282
- # Corresponds to the JSON property `objectId`
4283
- # @return [String]
4284
- attr_accessor :object_id_prop
4285
-
4286
- def initialize(**args)
4287
- update!(**args)
4288
- end
4289
-
4290
- # Update properties of this object
4291
- def update!(**args)
4292
- @layout_placeholder = args[:layout_placeholder] if args.key?(:layout_placeholder)
4293
- @layout_placeholder_object_id = args[:layout_placeholder_object_id] if args.key?(:layout_placeholder_object_id)
4294
- @object_id_prop = args[:object_id_prop] if args.key?(:object_id_prop)
4295
- end
4296
- end
4297
-
4298
- # Update the properties of a Shape.
4299
- class UpdateShapePropertiesRequest
4300
- include Google::Apis::Core::Hashable
4301
-
4302
- # The object ID of the shape the updates are applied to.
4303
- # Corresponds to the JSON property `objectId`
4304
- # @return [String]
4305
- attr_accessor :object_id_prop
4306
-
4307
- # The properties of a Shape.
4308
- # If the shape is a placeholder shape as determined by the
4309
- # placeholder field, then these
4310
- # properties may be inherited from a parent placeholder shape.
4311
- # Determining the rendered value of the property depends on the corresponding
4312
- # property_state field value.
4313
- # Corresponds to the JSON property `shapeProperties`
4314
- # @return [Google::Apis::SlidesV1::ShapeProperties]
4315
- attr_accessor :shape_properties
4316
-
4317
- # The fields that should be updated.
4318
- # At least one field must be specified. The root `shapeProperties` is
4319
- # implied and should not be specified. A single `"*"` can be used as
4320
- # short-hand for listing every field.
4321
- # For example to update the shape background solid fill color, set `fields`
4322
- # to `"shapeBackgroundFill.solidFill.color"`.
4323
- # To reset a property to its default value, include its field name in the
4324
- # field mask but leave the field itself unset.
4325
- # Corresponds to the JSON property `fields`
4326
- # @return [String]
4327
- attr_accessor :fields
4328
-
4329
- def initialize(**args)
4330
- update!(**args)
4331
- end
4332
-
4333
- # Update properties of this object
4334
- def update!(**args)
4335
- @object_id_prop = args[:object_id_prop] if args.key?(:object_id_prop)
4336
- @shape_properties = args[:shape_properties] if args.key?(:shape_properties)
4337
- @fields = args[:fields] if args.key?(:fields)
4338
- end
4339
- end
4340
4396
  end
4341
4397
  end
4342
4398
  end