google-apis-sheets_v4 0.40.0 → 0.43.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 891917726df1f4ce813f02b8a7305cdf465908b8f22d4eec158d5a91a5833fa8
4
- data.tar.gz: c347ccfd94b1e9544288ffb396f8c8b48ba787ff1d54e46863256efeabbd5234
3
+ metadata.gz: 76c0a4c3e6c8d9bb778115d9edecfc2b75839993fcaa66cc7f204749cf228bb9
4
+ data.tar.gz: 5c22b478b7b68929c82c40bcd756cc40417a8a7d5682cfc3e855dcc11679dd48
5
5
  SHA512:
6
- metadata.gz: 423bd7de7cef7a0fd4ee0f6bc1a8352282a3f2a6bae44a3f8898d6e8737016565e08cde8d1e1300e3660bd3aee82984f7207621607dd7f4c58e0e9cfe838a965
7
- data.tar.gz: ac700d30f7d2c0ca732b3c38ce8923597b0c9a88ea3e0671daa2512f3507084ed134af92035a2506e663412ff929b94098172c7424f5531e3dd278cd28a54bd9
6
+ metadata.gz: 80b36c20f00ab92d262d3c1666e4f883fd0cd2bb74040db06d86f0fa4edbf0c3474ae94235a7d67ff02f39dfea4232b2cc64b2cac93b8ea8aac5b009a3bf82da
7
+ data.tar.gz: 8ae13bc068423c3b4fcb422e437715332260e7b99879dc35f356595026c330420549c12f6cf8a634fc941ada3558bba52897402d1ec784684cd6d3e2c0c84d80
data/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Release history for google-apis-sheets_v4
2
2
 
3
+ ### v0.43.0 (2025-05-18)
4
+
5
+ * Regenerated from discovery document revision 20250509
6
+
7
+ ### v0.42.0 (2025-05-11)
8
+
9
+ * Regenerated using generator version 0.17.0
10
+
11
+ ### v0.41.0 (2025-04-27)
12
+
13
+ * Regenerated from discovery document revision 20250415
14
+
3
15
  ### v0.40.0 (2025-04-06)
4
16
 
5
17
  * Regenerated from discovery document revision 20250325
data/OVERVIEW.md CHANGED
@@ -83,7 +83,7 @@ The [product documentation](https://developers.google.com/workspace/sheets/) may
83
83
 
84
84
  ## Supported Ruby versions
85
85
 
86
- This library is supported on Ruby 2.7+.
86
+ This library is supported on Ruby 3.1+.
87
87
 
88
88
  Google provides official support for Ruby versions that are actively supported by Ruby Core -- that is, Ruby versions that are either in normal maintenance or in security maintenance, and not end of life. Older versions of Ruby _may_ still work, but are unsupported and not recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby support schedule.
89
89
 
@@ -424,6 +424,44 @@ module Google
424
424
  end
425
425
  end
426
426
 
427
+ # Adds a new table to the spreadsheet.
428
+ class AddTableRequest
429
+ include Google::Apis::Core::Hashable
430
+
431
+ # A table.
432
+ # Corresponds to the JSON property `table`
433
+ # @return [Google::Apis::SheetsV4::Table]
434
+ attr_accessor :table
435
+
436
+ def initialize(**args)
437
+ update!(**args)
438
+ end
439
+
440
+ # Update properties of this object
441
+ def update!(**args)
442
+ @table = args[:table] if args.key?(:table)
443
+ end
444
+ end
445
+
446
+ # The result of adding a table.
447
+ class AddTableResponse
448
+ include Google::Apis::Core::Hashable
449
+
450
+ # A table.
451
+ # Corresponds to the JSON property `table`
452
+ # @return [Google::Apis::SheetsV4::Table]
453
+ attr_accessor :table
454
+
455
+ def initialize(**args)
456
+ update!(**args)
457
+ end
458
+
459
+ # Update properties of this object
460
+ def update!(**args)
461
+ @table = args[:table] if args.key?(:table)
462
+ end
463
+ end
464
+
427
465
  # Adds new cells after the last row with data in a sheet, inserting new rows
428
466
  # into the sheet if necessary.
429
467
  class AppendCellsRequest
@@ -446,6 +484,12 @@ module Google
446
484
  # @return [Fixnum]
447
485
  attr_accessor :sheet_id
448
486
 
487
+ # The ID of the table to append data to. The data will be only appended to the
488
+ # table body. This field also takes precedence over the `sheet_id` field.
489
+ # Corresponds to the JSON property `tableId`
490
+ # @return [String]
491
+ attr_accessor :table_id
492
+
449
493
  def initialize(**args)
450
494
  update!(**args)
451
495
  end
@@ -455,6 +499,7 @@ module Google
455
499
  @fields = args[:fields] if args.key?(:fields)
456
500
  @rows = args[:rows] if args.key?(:rows)
457
501
  @sheet_id = args[:sheet_id] if args.key?(:sheet_id)
502
+ @table_id = args[:table_id] if args.key?(:table_id)
458
503
  end
459
504
  end
460
505
 
@@ -1394,6 +1439,12 @@ module Google
1394
1439
  # @return [Array<Google::Apis::SheetsV4::SortSpec>]
1395
1440
  attr_accessor :sort_specs
1396
1441
 
1442
+ # The table this filter is backed by, if any. When writing, only one of range or
1443
+ # table_id may be set.
1444
+ # Corresponds to the JSON property `tableId`
1445
+ # @return [String]
1446
+ attr_accessor :table_id
1447
+
1397
1448
  def initialize(**args)
1398
1449
  update!(**args)
1399
1450
  end
@@ -1404,6 +1455,7 @@ module Google
1404
1455
  @filter_specs = args[:filter_specs] if args.key?(:filter_specs)
1405
1456
  @range = args[:range] if args.key?(:range)
1406
1457
  @sort_specs = args[:sort_specs] if args.key?(:sort_specs)
1458
+ @table_id = args[:table_id] if args.key?(:table_id)
1407
1459
  end
1408
1460
  end
1409
1461
 
@@ -4860,6 +4912,25 @@ module Google
4860
4912
  end
4861
4913
  end
4862
4914
 
4915
+ # Removes the table with the given ID from the spreadsheet.
4916
+ class DeleteTableRequest
4917
+ include Google::Apis::Core::Hashable
4918
+
4919
+ # The ID of the table to delete.
4920
+ # Corresponds to the JSON property `tableId`
4921
+ # @return [String]
4922
+ attr_accessor :table_id
4923
+
4924
+ def initialize(**args)
4925
+ update!(**args)
4926
+ end
4927
+
4928
+ # Update properties of this object
4929
+ def update!(**args)
4930
+ @table_id = args[:table_id] if args.key?(:table_id)
4931
+ end
4932
+ end
4933
+
4863
4934
  # Developer metadata associated with a location or object in a spreadsheet.
4864
4935
  # Developer metadata may be used to associate arbitrary data with various parts
4865
4936
  # of a spreadsheet and will remain associated at those locations as they move
@@ -5699,7 +5770,7 @@ module Google
5699
5770
  attr_accessor :filter_view_id
5700
5771
 
5701
5772
  # The named range this filter view is backed by, if any. When writing, only one
5702
- # of range or named_range_id may be set.
5773
+ # of range or named_range_id or table_id may be set.
5703
5774
  # Corresponds to the JSON property `namedRangeId`
5704
5775
  # @return [String]
5705
5776
  attr_accessor :named_range_id
@@ -5727,6 +5798,12 @@ module Google
5727
5798
  # @return [Array<Google::Apis::SheetsV4::SortSpec>]
5728
5799
  attr_accessor :sort_specs
5729
5800
 
5801
+ # The table this filter view is backed by, if any. When writing, only one of
5802
+ # range or named_range_id or table_id may be set.
5803
+ # Corresponds to the JSON property `tableId`
5804
+ # @return [String]
5805
+ attr_accessor :table_id
5806
+
5730
5807
  # The name of the filter view.
5731
5808
  # Corresponds to the JSON property `title`
5732
5809
  # @return [String]
@@ -5744,6 +5821,7 @@ module Google
5744
5821
  @named_range_id = args[:named_range_id] if args.key?(:named_range_id)
5745
5822
  @range = args[:range] if args.key?(:range)
5746
5823
  @sort_specs = args[:sort_specs] if args.key?(:sort_specs)
5824
+ @table_id = args[:table_id] if args.key?(:table_id)
5747
5825
  @title = args[:title] if args.key?(:title)
5748
5826
  end
5749
5827
  end
@@ -5893,6 +5971,12 @@ module Google
5893
5971
  # @return [Array<Google::Apis::SheetsV4::DataFilter>]
5894
5972
  attr_accessor :data_filters
5895
5973
 
5974
+ # True if tables should be excluded in the banded ranges. False if not set.
5975
+ # Corresponds to the JSON property `excludeTablesInBandedRanges`
5976
+ # @return [Boolean]
5977
+ attr_accessor :exclude_tables_in_banded_ranges
5978
+ alias_method :exclude_tables_in_banded_ranges?, :exclude_tables_in_banded_ranges
5979
+
5896
5980
  # True if grid data should be returned. This parameter is ignored if a field
5897
5981
  # mask was set in the request.
5898
5982
  # Corresponds to the JSON property `includeGridData`
@@ -5907,6 +5991,7 @@ module Google
5907
5991
  # Update properties of this object
5908
5992
  def update!(**args)
5909
5993
  @data_filters = args[:data_filters] if args.key?(:data_filters)
5994
+ @exclude_tables_in_banded_ranges = args[:exclude_tables_in_banded_ranges] if args.key?(:exclude_tables_in_banded_ranges)
5910
5995
  @include_grid_data = args[:include_grid_data] if args.key?(:include_grid_data)
5911
5996
  end
5912
5997
  end
@@ -7738,7 +7823,7 @@ module Google
7738
7823
  attr_accessor :editors
7739
7824
 
7740
7825
  # The named range this protected range is backed by, if any. When writing, only
7741
- # one of range or named_range_id may be set.
7826
+ # one of range or named_range_id or table_id may be set.
7742
7827
  # Corresponds to the JSON property `namedRangeId`
7743
7828
  # @return [String]
7744
7829
  attr_accessor :named_range_id
@@ -7772,6 +7857,12 @@ module Google
7772
7857
  attr_accessor :requesting_user_can_edit
7773
7858
  alias_method :requesting_user_can_edit?, :requesting_user_can_edit
7774
7859
 
7860
+ # The table this protected range is backed by, if any. When writing, only one of
7861
+ # range or named_range_id or table_id may be set.
7862
+ # Corresponds to the JSON property `tableId`
7863
+ # @return [String]
7864
+ attr_accessor :table_id
7865
+
7775
7866
  # The list of unprotected ranges within a protected sheet. Unprotected ranges
7776
7867
  # are only supported on protected sheets.
7777
7868
  # Corresponds to the JSON property `unprotectedRanges`
@@ -7802,6 +7893,7 @@ module Google
7802
7893
  @protected_range_id = args[:protected_range_id] if args.key?(:protected_range_id)
7803
7894
  @range = args[:range] if args.key?(:range)
7804
7895
  @requesting_user_can_edit = args[:requesting_user_can_edit] if args.key?(:requesting_user_can_edit)
7896
+ @table_id = args[:table_id] if args.key?(:table_id)
7805
7897
  @unprotected_ranges = args[:unprotected_ranges] if args.key?(:unprotected_ranges)
7806
7898
  @warning_only = args[:warning_only] if args.key?(:warning_only)
7807
7899
  end
@@ -8090,6 +8182,11 @@ module Google
8090
8182
  # @return [Google::Apis::SheetsV4::AddSlicerRequest]
8091
8183
  attr_accessor :add_slicer
8092
8184
 
8185
+ # Adds a new table to the spreadsheet.
8186
+ # Corresponds to the JSON property `addTable`
8187
+ # @return [Google::Apis::SheetsV4::AddTableRequest]
8188
+ attr_accessor :add_table
8189
+
8093
8190
  # Adds new cells after the last row with data in a sheet, inserting new rows
8094
8191
  # into the sheet if necessary.
8095
8192
  # Corresponds to the JSON property `appendCells`
@@ -8217,6 +8314,11 @@ module Google
8217
8314
  # @return [Google::Apis::SheetsV4::DeleteSheetRequest]
8218
8315
  attr_accessor :delete_sheet
8219
8316
 
8317
+ # Removes the table with the given ID from the spreadsheet.
8318
+ # Corresponds to the JSON property `deleteTable`
8319
+ # @return [Google::Apis::SheetsV4::DeleteTableRequest]
8320
+ attr_accessor :delete_table
8321
+
8220
8322
  # Duplicates a particular filter view.
8221
8323
  # Corresponds to the JSON property `duplicateFilterView`
8222
8324
  # @return [Google::Apis::SheetsV4::DuplicateFilterViewRequest]
@@ -8422,6 +8524,11 @@ module Google
8422
8524
  # @return [Google::Apis::SheetsV4::UpdateSpreadsheetPropertiesRequest]
8423
8525
  attr_accessor :update_spreadsheet_properties
8424
8526
 
8527
+ # Updates a table in the spreadsheet.
8528
+ # Corresponds to the JSON property `updateTable`
8529
+ # @return [Google::Apis::SheetsV4::UpdateTableRequest]
8530
+ attr_accessor :update_table
8531
+
8425
8532
  def initialize(**args)
8426
8533
  update!(**args)
8427
8534
  end
@@ -8438,6 +8545,7 @@ module Google
8438
8545
  @add_protected_range = args[:add_protected_range] if args.key?(:add_protected_range)
8439
8546
  @add_sheet = args[:add_sheet] if args.key?(:add_sheet)
8440
8547
  @add_slicer = args[:add_slicer] if args.key?(:add_slicer)
8548
+ @add_table = args[:add_table] if args.key?(:add_table)
8441
8549
  @append_cells = args[:append_cells] if args.key?(:append_cells)
8442
8550
  @append_dimension = args[:append_dimension] if args.key?(:append_dimension)
8443
8551
  @auto_fill = args[:auto_fill] if args.key?(:auto_fill)
@@ -8460,6 +8568,7 @@ module Google
8460
8568
  @delete_protected_range = args[:delete_protected_range] if args.key?(:delete_protected_range)
8461
8569
  @delete_range = args[:delete_range] if args.key?(:delete_range)
8462
8570
  @delete_sheet = args[:delete_sheet] if args.key?(:delete_sheet)
8571
+ @delete_table = args[:delete_table] if args.key?(:delete_table)
8463
8572
  @duplicate_filter_view = args[:duplicate_filter_view] if args.key?(:duplicate_filter_view)
8464
8573
  @duplicate_sheet = args[:duplicate_sheet] if args.key?(:duplicate_sheet)
8465
8574
  @find_replace = args[:find_replace] if args.key?(:find_replace)
@@ -8494,6 +8603,7 @@ module Google
8494
8603
  @update_sheet_properties = args[:update_sheet_properties] if args.key?(:update_sheet_properties)
8495
8604
  @update_slicer_spec = args[:update_slicer_spec] if args.key?(:update_slicer_spec)
8496
8605
  @update_spreadsheet_properties = args[:update_spreadsheet_properties] if args.key?(:update_spreadsheet_properties)
8606
+ @update_table = args[:update_table] if args.key?(:update_table)
8497
8607
  end
8498
8608
  end
8499
8609
 
@@ -8546,6 +8656,11 @@ module Google
8546
8656
  # @return [Google::Apis::SheetsV4::AddSlicerResponse]
8547
8657
  attr_accessor :add_slicer
8548
8658
 
8659
+ # The result of adding a table.
8660
+ # Corresponds to the JSON property `addTable`
8661
+ # @return [Google::Apis::SheetsV4::AddTableResponse]
8662
+ attr_accessor :add_table
8663
+
8549
8664
  # The response from cancelling one or multiple data source object refreshes.
8550
8665
  # Corresponds to the JSON property `cancelDataSourceRefresh`
8551
8666
  # @return [Google::Apis::SheetsV4::CancelDataSourceRefreshResponse]
@@ -8636,6 +8751,7 @@ module Google
8636
8751
  @add_protected_range = args[:add_protected_range] if args.key?(:add_protected_range)
8637
8752
  @add_sheet = args[:add_sheet] if args.key?(:add_sheet)
8638
8753
  @add_slicer = args[:add_slicer] if args.key?(:add_slicer)
8754
+ @add_table = args[:add_table] if args.key?(:add_table)
8639
8755
  @cancel_data_source_refresh = args[:cancel_data_source_refresh] if args.key?(:cancel_data_source_refresh)
8640
8756
  @create_developer_metadata = args[:create_developer_metadata] if args.key?(:create_developer_metadata)
8641
8757
  @delete_conditional_format_rule = args[:delete_conditional_format_rule] if args.key?(:delete_conditional_format_rule)
@@ -8926,6 +9042,11 @@ module Google
8926
9042
  # @return [Array<Google::Apis::SheetsV4::Slicer>]
8927
9043
  attr_accessor :slicers
8928
9044
 
9045
+ # The tables on this sheet.
9046
+ # Corresponds to the JSON property `tables`
9047
+ # @return [Array<Google::Apis::SheetsV4::Table>]
9048
+ attr_accessor :tables
9049
+
8929
9050
  def initialize(**args)
8930
9051
  update!(**args)
8931
9052
  end
@@ -8945,6 +9066,7 @@ module Google
8945
9066
  @protected_ranges = args[:protected_ranges] if args.key?(:protected_ranges)
8946
9067
  @row_groups = args[:row_groups] if args.key?(:row_groups)
8947
9068
  @slicers = args[:slicers] if args.key?(:slicers)
9069
+ @tables = args[:tables] if args.key?(:tables)
8948
9070
  end
8949
9071
  end
8950
9072
 
@@ -9618,6 +9740,156 @@ module Google
9618
9740
  end
9619
9741
  end
9620
9742
 
9743
+ # A table.
9744
+ class Table
9745
+ include Google::Apis::Core::Hashable
9746
+
9747
+ # The table column properties.
9748
+ # Corresponds to the JSON property `columnProperties`
9749
+ # @return [Array<Google::Apis::SheetsV4::TableColumnProperties>]
9750
+ attr_accessor :column_properties
9751
+
9752
+ # The table name. This is unique to all tables in the same spreadsheet.
9753
+ # Corresponds to the JSON property `name`
9754
+ # @return [String]
9755
+ attr_accessor :name
9756
+
9757
+ # A range on a sheet. All indexes are zero-based. Indexes are half open, i.e.
9758
+ # the start index is inclusive and the end index is exclusive -- [start_index,
9759
+ # end_index). Missing indexes indicate the range is unbounded on that side. For
9760
+ # example, if `"Sheet1"` is sheet ID 123456, then: `Sheet1!A1:A1 == sheet_id:
9761
+ # 123456, start_row_index: 0, end_row_index: 1, start_column_index: 0,
9762
+ # end_column_index: 1` `Sheet1!A3:B4 == sheet_id: 123456, start_row_index: 2,
9763
+ # end_row_index: 4, start_column_index: 0, end_column_index: 2` `Sheet1!A:B ==
9764
+ # sheet_id: 123456, start_column_index: 0, end_column_index: 2` `Sheet1!A5:B ==
9765
+ # sheet_id: 123456, start_row_index: 4, start_column_index: 0, end_column_index:
9766
+ # 2` `Sheet1 == sheet_id: 123456` The start index must always be less than or
9767
+ # equal to the end index. If the start index equals the end index, then the
9768
+ # range is empty. Empty ranges are typically not meaningful and are usually
9769
+ # rendered in the UI as `#REF!`.
9770
+ # Corresponds to the JSON property `range`
9771
+ # @return [Google::Apis::SheetsV4::GridRange]
9772
+ attr_accessor :range
9773
+
9774
+ # The table row properties.
9775
+ # Corresponds to the JSON property `rowsProperties`
9776
+ # @return [Google::Apis::SheetsV4::TableRowsProperties]
9777
+ attr_accessor :rows_properties
9778
+
9779
+ # The id of the table.
9780
+ # Corresponds to the JSON property `tableId`
9781
+ # @return [String]
9782
+ attr_accessor :table_id
9783
+
9784
+ def initialize(**args)
9785
+ update!(**args)
9786
+ end
9787
+
9788
+ # Update properties of this object
9789
+ def update!(**args)
9790
+ @column_properties = args[:column_properties] if args.key?(:column_properties)
9791
+ @name = args[:name] if args.key?(:name)
9792
+ @range = args[:range] if args.key?(:range)
9793
+ @rows_properties = args[:rows_properties] if args.key?(:rows_properties)
9794
+ @table_id = args[:table_id] if args.key?(:table_id)
9795
+ end
9796
+ end
9797
+
9798
+ # A data validation rule for a column in a table.
9799
+ class TableColumnDataValidationRule
9800
+ include Google::Apis::Core::Hashable
9801
+
9802
+ # A condition that can evaluate to true or false. BooleanConditions are used by
9803
+ # conditional formatting, data validation, and the criteria in filters.
9804
+ # Corresponds to the JSON property `condition`
9805
+ # @return [Google::Apis::SheetsV4::BooleanCondition]
9806
+ attr_accessor :condition
9807
+
9808
+ def initialize(**args)
9809
+ update!(**args)
9810
+ end
9811
+
9812
+ # Update properties of this object
9813
+ def update!(**args)
9814
+ @condition = args[:condition] if args.key?(:condition)
9815
+ end
9816
+ end
9817
+
9818
+ # The table column.
9819
+ class TableColumnProperties
9820
+ include Google::Apis::Core::Hashable
9821
+
9822
+ # The 0-based column index. This index is relative to its position in the table
9823
+ # and is not necessarily the same as the column index in the sheet.
9824
+ # Corresponds to the JSON property `columnIndex`
9825
+ # @return [Fixnum]
9826
+ attr_accessor :column_index
9827
+
9828
+ # The column name.
9829
+ # Corresponds to the JSON property `columnName`
9830
+ # @return [String]
9831
+ attr_accessor :column_name
9832
+
9833
+ # The column type.
9834
+ # Corresponds to the JSON property `columnType`
9835
+ # @return [String]
9836
+ attr_accessor :column_type
9837
+
9838
+ # A data validation rule for a column in a table.
9839
+ # Corresponds to the JSON property `dataValidationRule`
9840
+ # @return [Google::Apis::SheetsV4::TableColumnDataValidationRule]
9841
+ attr_accessor :data_validation_rule
9842
+
9843
+ def initialize(**args)
9844
+ update!(**args)
9845
+ end
9846
+
9847
+ # Update properties of this object
9848
+ def update!(**args)
9849
+ @column_index = args[:column_index] if args.key?(:column_index)
9850
+ @column_name = args[:column_name] if args.key?(:column_name)
9851
+ @column_type = args[:column_type] if args.key?(:column_type)
9852
+ @data_validation_rule = args[:data_validation_rule] if args.key?(:data_validation_rule)
9853
+ end
9854
+ end
9855
+
9856
+ # The table row properties.
9857
+ class TableRowsProperties
9858
+ include Google::Apis::Core::Hashable
9859
+
9860
+ # A color value.
9861
+ # Corresponds to the JSON property `firstBandColorStyle`
9862
+ # @return [Google::Apis::SheetsV4::ColorStyle]
9863
+ attr_accessor :first_band_color_style
9864
+
9865
+ # A color value.
9866
+ # Corresponds to the JSON property `footerColorStyle`
9867
+ # @return [Google::Apis::SheetsV4::ColorStyle]
9868
+ attr_accessor :footer_color_style
9869
+
9870
+ # A color value.
9871
+ # Corresponds to the JSON property `headerColorStyle`
9872
+ # @return [Google::Apis::SheetsV4::ColorStyle]
9873
+ attr_accessor :header_color_style
9874
+
9875
+ # A color value.
9876
+ # Corresponds to the JSON property `secondBandColorStyle`
9877
+ # @return [Google::Apis::SheetsV4::ColorStyle]
9878
+ attr_accessor :second_band_color_style
9879
+
9880
+ def initialize(**args)
9881
+ update!(**args)
9882
+ end
9883
+
9884
+ # Update properties of this object
9885
+ def update!(**args)
9886
+ @first_band_color_style = args[:first_band_color_style] if args.key?(:first_band_color_style)
9887
+ @footer_color_style = args[:footer_color_style] if args.key?(:footer_color_style)
9888
+ @header_color_style = args[:header_color_style] if args.key?(:header_color_style)
9889
+ @second_band_color_style = args[:second_band_color_style] if args.key?(:second_band_color_style)
9890
+ end
9891
+ end
9892
+
9621
9893
  # The format of a run of text in a cell. Absent values indicate that the field
9622
9894
  # isn't specified.
9623
9895
  class TextFormat
@@ -11101,6 +11373,33 @@ module Google
11101
11373
  end
11102
11374
  end
11103
11375
 
11376
+ # Updates a table in the spreadsheet.
11377
+ class UpdateTableRequest
11378
+ include Google::Apis::Core::Hashable
11379
+
11380
+ # Required. The fields that should be updated. At least one field must be
11381
+ # specified. The root `table` is implied and should not be specified. A single `"
11382
+ # *"` can be used as short-hand for listing every field.
11383
+ # Corresponds to the JSON property `fields`
11384
+ # @return [String]
11385
+ attr_accessor :fields
11386
+
11387
+ # A table.
11388
+ # Corresponds to the JSON property `table`
11389
+ # @return [Google::Apis::SheetsV4::Table]
11390
+ attr_accessor :table
11391
+
11392
+ def initialize(**args)
11393
+ update!(**args)
11394
+ end
11395
+
11396
+ # Update properties of this object
11397
+ def update!(**args)
11398
+ @fields = args[:fields] if args.key?(:fields)
11399
+ @table = args[:table] if args.key?(:table)
11400
+ end
11401
+ end
11402
+
11104
11403
  # The response when updating a range of values by a data filter in a spreadsheet.
11105
11404
  class UpdateValuesByDataFilterResponse
11106
11405
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module SheetsV4
18
18
  # Version of the google-apis-sheets_v4 gem
19
- GEM_VERSION = "0.40.0"
19
+ GEM_VERSION = "0.43.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.16.0"
22
+ GENERATOR_VERSION = "0.17.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20250325"
25
+ REVISION = "20250509"
26
26
  end
27
27
  end
28
28
  end
@@ -136,6 +136,18 @@ module Google
136
136
  include Google::Apis::Core::JsonObjectSupport
137
137
  end
138
138
 
139
+ class AddTableRequest
140
+ class Representation < Google::Apis::Core::JsonRepresentation; end
141
+
142
+ include Google::Apis::Core::JsonObjectSupport
143
+ end
144
+
145
+ class AddTableResponse
146
+ class Representation < Google::Apis::Core::JsonRepresentation; end
147
+
148
+ include Google::Apis::Core::JsonObjectSupport
149
+ end
150
+
139
151
  class AppendCellsRequest
140
152
  class Representation < Google::Apis::Core::JsonRepresentation; end
141
153
 
@@ -754,6 +766,12 @@ module Google
754
766
  include Google::Apis::Core::JsonObjectSupport
755
767
  end
756
768
 
769
+ class DeleteTableRequest
770
+ class Representation < Google::Apis::Core::JsonRepresentation; end
771
+
772
+ include Google::Apis::Core::JsonObjectSupport
773
+ end
774
+
757
775
  class DeveloperMetadata
758
776
  class Representation < Google::Apis::Core::JsonRepresentation; end
759
777
 
@@ -1276,6 +1294,30 @@ module Google
1276
1294
  include Google::Apis::Core::JsonObjectSupport
1277
1295
  end
1278
1296
 
1297
+ class Table
1298
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1299
+
1300
+ include Google::Apis::Core::JsonObjectSupport
1301
+ end
1302
+
1303
+ class TableColumnDataValidationRule
1304
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1305
+
1306
+ include Google::Apis::Core::JsonObjectSupport
1307
+ end
1308
+
1309
+ class TableColumnProperties
1310
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1311
+
1312
+ include Google::Apis::Core::JsonObjectSupport
1313
+ end
1314
+
1315
+ class TableRowsProperties
1316
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1317
+
1318
+ include Google::Apis::Core::JsonObjectSupport
1319
+ end
1320
+
1279
1321
  class TextFormat
1280
1322
  class Representation < Google::Apis::Core::JsonRepresentation; end
1281
1323
 
@@ -1474,6 +1516,12 @@ module Google
1474
1516
  include Google::Apis::Core::JsonObjectSupport
1475
1517
  end
1476
1518
 
1519
+ class UpdateTableRequest
1520
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1521
+
1522
+ include Google::Apis::Core::JsonObjectSupport
1523
+ end
1524
+
1477
1525
  class UpdateValuesByDataFilterResponse
1478
1526
  class Representation < Google::Apis::Core::JsonRepresentation; end
1479
1527
 
@@ -1677,6 +1725,22 @@ module Google
1677
1725
  end
1678
1726
  end
1679
1727
 
1728
+ class AddTableRequest
1729
+ # @private
1730
+ class Representation < Google::Apis::Core::JsonRepresentation
1731
+ property :table, as: 'table', class: Google::Apis::SheetsV4::Table, decorator: Google::Apis::SheetsV4::Table::Representation
1732
+
1733
+ end
1734
+ end
1735
+
1736
+ class AddTableResponse
1737
+ # @private
1738
+ class Representation < Google::Apis::Core::JsonRepresentation
1739
+ property :table, as: 'table', class: Google::Apis::SheetsV4::Table, decorator: Google::Apis::SheetsV4::Table::Representation
1740
+
1741
+ end
1742
+ end
1743
+
1680
1744
  class AppendCellsRequest
1681
1745
  # @private
1682
1746
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1684,6 +1748,7 @@ module Google
1684
1748
  collection :rows, as: 'rows', class: Google::Apis::SheetsV4::RowData, decorator: Google::Apis::SheetsV4::RowData::Representation
1685
1749
 
1686
1750
  property :sheet_id, as: 'sheetId'
1751
+ property :table_id, as: 'tableId'
1687
1752
  end
1688
1753
  end
1689
1754
 
@@ -1860,6 +1925,7 @@ module Google
1860
1925
 
1861
1926
  collection :sort_specs, as: 'sortSpecs', class: Google::Apis::SheetsV4::SortSpec, decorator: Google::Apis::SheetsV4::SortSpec::Representation
1862
1927
 
1928
+ property :table_id, as: 'tableId'
1863
1929
  end
1864
1930
  end
1865
1931
 
@@ -2810,6 +2876,13 @@ module Google
2810
2876
  end
2811
2877
  end
2812
2878
 
2879
+ class DeleteTableRequest
2880
+ # @private
2881
+ class Representation < Google::Apis::Core::JsonRepresentation
2882
+ property :table_id, as: 'tableId'
2883
+ end
2884
+ end
2885
+
2813
2886
  class DeveloperMetadata
2814
2887
  # @private
2815
2888
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -3016,6 +3089,7 @@ module Google
3016
3089
 
3017
3090
  collection :sort_specs, as: 'sortSpecs', class: Google::Apis::SheetsV4::SortSpec, decorator: Google::Apis::SheetsV4::SortSpec::Representation
3018
3091
 
3092
+ property :table_id, as: 'tableId'
3019
3093
  property :title, as: 'title'
3020
3094
  end
3021
3095
  end
@@ -3052,6 +3126,7 @@ module Google
3052
3126
  class Representation < Google::Apis::Core::JsonRepresentation
3053
3127
  collection :data_filters, as: 'dataFilters', class: Google::Apis::SheetsV4::DataFilter, decorator: Google::Apis::SheetsV4::DataFilter::Representation
3054
3128
 
3129
+ property :exclude_tables_in_banded_ranges, as: 'excludeTablesInBandedRanges'
3055
3130
  property :include_grid_data, as: 'includeGridData'
3056
3131
  end
3057
3132
  end
@@ -3504,6 +3579,7 @@ module Google
3504
3579
  property :range, as: 'range', class: Google::Apis::SheetsV4::GridRange, decorator: Google::Apis::SheetsV4::GridRange::Representation
3505
3580
 
3506
3581
  property :requesting_user_can_edit, as: 'requestingUserCanEdit'
3582
+ property :table_id, as: 'tableId'
3507
3583
  collection :unprotected_ranges, as: 'unprotectedRanges', class: Google::Apis::SheetsV4::GridRange, decorator: Google::Apis::SheetsV4::GridRange::Representation
3508
3584
 
3509
3585
  property :warning_only, as: 'warningOnly'
@@ -3589,6 +3665,8 @@ module Google
3589
3665
 
3590
3666
  property :add_slicer, as: 'addSlicer', class: Google::Apis::SheetsV4::AddSlicerRequest, decorator: Google::Apis::SheetsV4::AddSlicerRequest::Representation
3591
3667
 
3668
+ property :add_table, as: 'addTable', class: Google::Apis::SheetsV4::AddTableRequest, decorator: Google::Apis::SheetsV4::AddTableRequest::Representation
3669
+
3592
3670
  property :append_cells, as: 'appendCells', class: Google::Apis::SheetsV4::AppendCellsRequest, decorator: Google::Apis::SheetsV4::AppendCellsRequest::Representation
3593
3671
 
3594
3672
  property :append_dimension, as: 'appendDimension', class: Google::Apis::SheetsV4::AppendDimensionRequest, decorator: Google::Apis::SheetsV4::AppendDimensionRequest::Representation
@@ -3633,6 +3711,8 @@ module Google
3633
3711
 
3634
3712
  property :delete_sheet, as: 'deleteSheet', class: Google::Apis::SheetsV4::DeleteSheetRequest, decorator: Google::Apis::SheetsV4::DeleteSheetRequest::Representation
3635
3713
 
3714
+ property :delete_table, as: 'deleteTable', class: Google::Apis::SheetsV4::DeleteTableRequest, decorator: Google::Apis::SheetsV4::DeleteTableRequest::Representation
3715
+
3636
3716
  property :duplicate_filter_view, as: 'duplicateFilterView', class: Google::Apis::SheetsV4::DuplicateFilterViewRequest, decorator: Google::Apis::SheetsV4::DuplicateFilterViewRequest::Representation
3637
3717
 
3638
3718
  property :duplicate_sheet, as: 'duplicateSheet', class: Google::Apis::SheetsV4::DuplicateSheetRequest, decorator: Google::Apis::SheetsV4::DuplicateSheetRequest::Representation
@@ -3701,6 +3781,8 @@ module Google
3701
3781
 
3702
3782
  property :update_spreadsheet_properties, as: 'updateSpreadsheetProperties', class: Google::Apis::SheetsV4::UpdateSpreadsheetPropertiesRequest, decorator: Google::Apis::SheetsV4::UpdateSpreadsheetPropertiesRequest::Representation
3703
3783
 
3784
+ property :update_table, as: 'updateTable', class: Google::Apis::SheetsV4::UpdateTableRequest, decorator: Google::Apis::SheetsV4::UpdateTableRequest::Representation
3785
+
3704
3786
  end
3705
3787
  end
3706
3788
 
@@ -3725,6 +3807,8 @@ module Google
3725
3807
 
3726
3808
  property :add_slicer, as: 'addSlicer', class: Google::Apis::SheetsV4::AddSlicerResponse, decorator: Google::Apis::SheetsV4::AddSlicerResponse::Representation
3727
3809
 
3810
+ property :add_table, as: 'addTable', class: Google::Apis::SheetsV4::AddTableResponse, decorator: Google::Apis::SheetsV4::AddTableResponse::Representation
3811
+
3728
3812
  property :cancel_data_source_refresh, as: 'cancelDataSourceRefresh', class: Google::Apis::SheetsV4::CancelDataSourceRefreshResponse, decorator: Google::Apis::SheetsV4::CancelDataSourceRefreshResponse::Representation
3729
3813
 
3730
3814
  property :create_developer_metadata, as: 'createDeveloperMetadata', class: Google::Apis::SheetsV4::CreateDeveloperMetadataResponse, decorator: Google::Apis::SheetsV4::CreateDeveloperMetadataResponse::Representation
@@ -3849,6 +3933,8 @@ module Google
3849
3933
 
3850
3934
  collection :slicers, as: 'slicers', class: Google::Apis::SheetsV4::Slicer, decorator: Google::Apis::SheetsV4::Slicer::Representation
3851
3935
 
3936
+ collection :tables, as: 'tables', class: Google::Apis::SheetsV4::Table, decorator: Google::Apis::SheetsV4::Table::Representation
3937
+
3852
3938
  end
3853
3939
  end
3854
3940
 
@@ -3987,6 +4073,53 @@ module Google
3987
4073
  end
3988
4074
  end
3989
4075
 
4076
+ class Table
4077
+ # @private
4078
+ class Representation < Google::Apis::Core::JsonRepresentation
4079
+ collection :column_properties, as: 'columnProperties', class: Google::Apis::SheetsV4::TableColumnProperties, decorator: Google::Apis::SheetsV4::TableColumnProperties::Representation
4080
+
4081
+ property :name, as: 'name'
4082
+ property :range, as: 'range', class: Google::Apis::SheetsV4::GridRange, decorator: Google::Apis::SheetsV4::GridRange::Representation
4083
+
4084
+ property :rows_properties, as: 'rowsProperties', class: Google::Apis::SheetsV4::TableRowsProperties, decorator: Google::Apis::SheetsV4::TableRowsProperties::Representation
4085
+
4086
+ property :table_id, as: 'tableId'
4087
+ end
4088
+ end
4089
+
4090
+ class TableColumnDataValidationRule
4091
+ # @private
4092
+ class Representation < Google::Apis::Core::JsonRepresentation
4093
+ property :condition, as: 'condition', class: Google::Apis::SheetsV4::BooleanCondition, decorator: Google::Apis::SheetsV4::BooleanCondition::Representation
4094
+
4095
+ end
4096
+ end
4097
+
4098
+ class TableColumnProperties
4099
+ # @private
4100
+ class Representation < Google::Apis::Core::JsonRepresentation
4101
+ property :column_index, as: 'columnIndex'
4102
+ property :column_name, as: 'columnName'
4103
+ property :column_type, as: 'columnType'
4104
+ property :data_validation_rule, as: 'dataValidationRule', class: Google::Apis::SheetsV4::TableColumnDataValidationRule, decorator: Google::Apis::SheetsV4::TableColumnDataValidationRule::Representation
4105
+
4106
+ end
4107
+ end
4108
+
4109
+ class TableRowsProperties
4110
+ # @private
4111
+ class Representation < Google::Apis::Core::JsonRepresentation
4112
+ property :first_band_color_style, as: 'firstBandColorStyle', class: Google::Apis::SheetsV4::ColorStyle, decorator: Google::Apis::SheetsV4::ColorStyle::Representation
4113
+
4114
+ property :footer_color_style, as: 'footerColorStyle', class: Google::Apis::SheetsV4::ColorStyle, decorator: Google::Apis::SheetsV4::ColorStyle::Representation
4115
+
4116
+ property :header_color_style, as: 'headerColorStyle', class: Google::Apis::SheetsV4::ColorStyle, decorator: Google::Apis::SheetsV4::ColorStyle::Representation
4117
+
4118
+ property :second_band_color_style, as: 'secondBandColorStyle', class: Google::Apis::SheetsV4::ColorStyle, decorator: Google::Apis::SheetsV4::ColorStyle::Representation
4119
+
4120
+ end
4121
+ end
4122
+
3990
4123
  class TextFormat
3991
4124
  # @private
3992
4125
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -4347,6 +4480,15 @@ module Google
4347
4480
  end
4348
4481
  end
4349
4482
 
4483
+ class UpdateTableRequest
4484
+ # @private
4485
+ class Representation < Google::Apis::Core::JsonRepresentation
4486
+ property :fields, as: 'fields'
4487
+ property :table, as: 'table', class: Google::Apis::SheetsV4::Table, decorator: Google::Apis::SheetsV4::Table::Representation
4488
+
4489
+ end
4490
+ end
4491
+
4350
4492
  class UpdateValuesByDataFilterResponse
4351
4493
  # @private
4352
4494
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -142,6 +142,8 @@ module Google
142
142
  # portions of the spreadsheet that intersect the requested ranges.
143
143
  # @param [String] spreadsheet_id
144
144
  # The spreadsheet to request.
145
+ # @param [Boolean] exclude_tables_in_banded_ranges
146
+ # True if tables should be excluded in the banded ranges. False if not set.
145
147
  # @param [Boolean] include_grid_data
146
148
  # True if grid data should be returned. This parameter is ignored if a field
147
149
  # mask was set in the request.
@@ -164,11 +166,12 @@ module Google
164
166
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
165
167
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
166
168
  # @raise [Google::Apis::AuthorizationError] Authorization is required
167
- def get_spreadsheet(spreadsheet_id, include_grid_data: nil, ranges: nil, fields: nil, quota_user: nil, options: nil, &block)
169
+ def get_spreadsheet(spreadsheet_id, exclude_tables_in_banded_ranges: nil, include_grid_data: nil, ranges: nil, fields: nil, quota_user: nil, options: nil, &block)
168
170
  command = make_simple_command(:get, 'v4/spreadsheets/{spreadsheetId}', options)
169
171
  command.response_representation = Google::Apis::SheetsV4::Spreadsheet::Representation
170
172
  command.response_class = Google::Apis::SheetsV4::Spreadsheet
171
173
  command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
174
+ command.query['excludeTablesInBandedRanges'] = exclude_tables_in_banded_ranges unless exclude_tables_in_banded_ranges.nil?
172
175
  command.query['includeGridData'] = include_grid_data unless include_grid_data.nil?
173
176
  command.query['ranges'] = ranges unless ranges.nil?
174
177
  command.query['fields'] = fields unless fields.nil?
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-sheets_v4
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.40.0
4
+ version: 0.43.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-04-16 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: google-apis-core
@@ -57,7 +57,7 @@ licenses:
57
57
  metadata:
58
58
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
59
59
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-sheets_v4/CHANGELOG.md
60
- documentation_uri: https://googleapis.dev/ruby/google-apis-sheets_v4/v0.40.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-sheets_v4/v0.43.0
61
61
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-sheets_v4
62
62
  rdoc_options: []
63
63
  require_paths:
@@ -66,14 +66,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
66
66
  requirements:
67
67
  - - ">="
68
68
  - !ruby/object:Gem::Version
69
- version: '2.7'
69
+ version: '3.1'
70
70
  required_rubygems_version: !ruby/object:Gem::Requirement
71
71
  requirements:
72
72
  - - ">="
73
73
  - !ruby/object:Gem::Version
74
74
  version: '0'
75
75
  requirements: []
76
- rubygems_version: 3.6.5
76
+ rubygems_version: 3.6.8
77
77
  specification_version: 4
78
78
  summary: Simple REST client for Google Sheets API V4
79
79
  test_files: []