google-apis-sheets_v4 0.48.0 → 0.49.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: 67386a074a4ad7abe19adb50ee7f6c2597fdb26432a37c1f50b57671e901d1b3
4
- data.tar.gz: 685014af6906b16553c845c282d4c1b24b4d966ab722b3e8d97cf83c165c6365
3
+ metadata.gz: 2c3e063fad4c08a744b33e853f06cf1415af1d0c68000babdea6675e267a571c
4
+ data.tar.gz: 4ebea0734dd006a74cecaf54328f313756f54231a6aaf30b22fbce2a9afacb36
5
5
  SHA512:
6
- metadata.gz: e9161f26871869c74cc5798cb25566c1bde75d85b9c9f06ea5e137b6c52c3748b89e05529e836d6c9bdc3210c1b23f9186856703c13d147060bd06573a2cf471
7
- data.tar.gz: 7c4b4aade16ab55840e4eed6a5a6e203c7345e89f5fd26b94092488d730450d4f46d795e4a7a535239bff711e3b2c9f378e2146b1038a3a5a4aa3c7342c98587
6
+ metadata.gz: 14d55a386e6c73ecfb03879af54dea1e96a706660146204c024529de71aa6bf324a6f864dfee732bffbcbc281dda23ba37ae2ea9e0c0ab9e28f3bdd74317d2d8
7
+ data.tar.gz: 3b48e6a584d1147342b36c6b70e03558ca7551a5cb6cf020a1fce01c1d3421729adf3f5f018083e343c7d13eda7bee7cbe80c60eea423b0e6385f7e5c2075b5b
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-sheets_v4
2
2
 
3
+ ### v0.49.0 (2026-09-27)
4
+
5
+ * Regenerated from discovery document revision 20260921
6
+
3
7
  ### v0.48.0 (2026-06-14)
4
8
 
5
9
  * Regenerated using generator version 0.19.0
@@ -98,6 +98,54 @@ module Google
98
98
  end
99
99
  end
100
100
 
101
+ # Inserts a reply Post into a CommentThread. [Developer Preview](https://
102
+ # developers.google.com/workspace/preview).
103
+ class AddCommentReplyRequest
104
+ include Google::Apis::Core::Hashable
105
+
106
+ # The ID of the CommentThread to add the reply to.
107
+ # Corresponds to the JSON property `commentId`
108
+ # @return [String]
109
+ attr_accessor :comment_id
110
+
111
+ # Represents a single post in a comment thread. [Developer Preview](https://
112
+ # developers.google.com/workspace/preview).
113
+ # Corresponds to the JSON property `post`
114
+ # @return [Google::Apis::SheetsV4::Post]
115
+ attr_accessor :post
116
+
117
+ def initialize(**args)
118
+ update!(**args)
119
+ end
120
+
121
+ # Update properties of this object
122
+ def update!(**args)
123
+ @comment_id = args[:comment_id] if args.key?(:comment_id)
124
+ @post = args[:post] if args.key?(:post)
125
+ end
126
+ end
127
+
128
+ # The result of creating a reply. [Developer Preview](https://developers.google.
129
+ # com/workspace/preview).
130
+ class AddCommentReplyResponse
131
+ include Google::Apis::Core::Hashable
132
+
133
+ # Represents a single post in a comment thread. [Developer Preview](https://
134
+ # developers.google.com/workspace/preview).
135
+ # Corresponds to the JSON property `post`
136
+ # @return [Google::Apis::SheetsV4::Post]
137
+ attr_accessor :post
138
+
139
+ def initialize(**args)
140
+ update!(**args)
141
+ end
142
+
143
+ # Update properties of this object
144
+ def update!(**args)
145
+ @post = args[:post] if args.key?(:post)
146
+ end
147
+ end
148
+
101
149
  # Adds a new conditional format rule at the given index. All subsequent rules'
102
150
  # indexes are incremented.
103
151
  class AddConditionalFormatRuleRequest
@@ -1748,6 +1796,15 @@ module Google
1748
1796
  class BatchUpdateSpreadsheetRequest
1749
1797
  include Google::Apis::Core::Hashable
1750
1798
 
1799
+ # The comments view mode to apply to the spreadsheet. This allows viewing the
1800
+ # spreadsheet with comments omitted or included. If one is not specified,
1801
+ # COMMENTS_VIEW_MODE_OMITTED is used. Meaningful only if
1802
+ # include_spreadsheet_in_response is 'true'. [Developer Preview](https://
1803
+ # developers.google.com/workspace/preview).
1804
+ # Corresponds to the JSON property `commentsViewMode`
1805
+ # @return [String]
1806
+ attr_accessor :comments_view_mode
1807
+
1751
1808
  # Determines if the update response should include the spreadsheet resource.
1752
1809
  # Corresponds to the JSON property `includeSpreadsheetInResponse`
1753
1810
  # @return [Boolean]
@@ -1781,6 +1838,7 @@ module Google
1781
1838
 
1782
1839
  # Update properties of this object
1783
1840
  def update!(**args)
1841
+ @comments_view_mode = args[:comments_view_mode] if args.key?(:comments_view_mode)
1784
1842
  @include_spreadsheet_in_response = args[:include_spreadsheet_in_response] if args.key?(:include_spreadsheet_in_response)
1785
1843
  @requests = args[:requests] if args.key?(:requests)
1786
1844
  @response_include_grid_data = args[:response_include_grid_data] if args.key?(:response_include_grid_data)
@@ -1792,6 +1850,12 @@ module Google
1792
1850
  class BatchUpdateSpreadsheetResponse
1793
1851
  include Google::Apis::Core::Hashable
1794
1852
 
1853
+ # Whether comment updates were applied in the batch request. [Developer Preview](
1854
+ # https://developers.google.com/workspace/preview).
1855
+ # Corresponds to the JSON property `commentUpdateState`
1856
+ # @return [String]
1857
+ attr_accessor :comment_update_state
1858
+
1795
1859
  # The reply of the updates. This maps 1:1 with the updates, although replies to
1796
1860
  # some requests may be empty.
1797
1861
  # Corresponds to the JSON property `replies`
@@ -1814,6 +1878,7 @@ module Google
1814
1878
 
1815
1879
  # Update properties of this object
1816
1880
  def update!(**args)
1881
+ @comment_update_state = args[:comment_update_state] if args.key?(:comment_update_state)
1817
1882
  @replies = args[:replies] if args.key?(:replies)
1818
1883
  @spreadsheet_id = args[:spreadsheet_id] if args.key?(:spreadsheet_id)
1819
1884
  @updated_spreadsheet = args[:updated_spreadsheet] if args.key?(:updated_spreadsheet)
@@ -3565,6 +3630,97 @@ module Google
3565
3630
  end
3566
3631
  end
3567
3632
 
3633
+ # A location in the spreadsheet that is tied to a CommentThread with the same
3634
+ # anchorId. Note: Multiple anchors may refer to the same location. [Developer
3635
+ # Preview](https://developers.google.com/workspace/preview).
3636
+ class CommentAnchor
3637
+ include Google::Apis::Core::Hashable
3638
+
3639
+ # The unique ID of the comment anchor. Output only.
3640
+ # Corresponds to the JSON property `anchorId`
3641
+ # @return [String]
3642
+ attr_accessor :anchor_id
3643
+
3644
+ # A range on a sheet. All indexes are zero-based. Indexes are half open, i.e.
3645
+ # the start index is inclusive and the end index is exclusive -- [start_index,
3646
+ # end_index). Missing indexes indicate the range is unbounded on that side. For
3647
+ # example, if `"Sheet1"` is sheet ID 123456, then: `Sheet1!A1:A1 == sheet_id:
3648
+ # 123456, start_row_index: 0, end_row_index: 1, start_column_index: 0,
3649
+ # end_column_index: 1` `Sheet1!A3:B4 == sheet_id: 123456, start_row_index: 2,
3650
+ # end_row_index: 4, start_column_index: 0, end_column_index: 2` `Sheet1!A:B ==
3651
+ # sheet_id: 123456, start_column_index: 0, end_column_index: 2` `Sheet1!A5:B ==
3652
+ # sheet_id: 123456, start_row_index: 4, start_column_index: 0, end_column_index:
3653
+ # 2` `Sheet1 == sheet_id: 123456` The start index must always be less than or
3654
+ # equal to the end index. If the start index equals the end index, then the
3655
+ # range is empty. Empty ranges are typically not meaningful and are usually
3656
+ # rendered in the UI as `#REF!`.
3657
+ # Corresponds to the JSON property `range`
3658
+ # @return [Google::Apis::SheetsV4::GridRange]
3659
+ attr_accessor :range
3660
+
3661
+ def initialize(**args)
3662
+ update!(**args)
3663
+ end
3664
+
3665
+ # Update properties of this object
3666
+ def update!(**args)
3667
+ @anchor_id = args[:anchor_id] if args.key?(:anchor_id)
3668
+ @range = args[:range] if args.key?(:range)
3669
+ end
3670
+ end
3671
+
3672
+ # Represents a single comment thread inside a spreadsheet. [Developer Preview](
3673
+ # https://developers.google.com/workspace/preview).
3674
+ class CommentThread
3675
+ include Google::Apis::Core::Hashable
3676
+
3677
+ # The ID of the CommentAnchor in the sheet that this thread is tied to.
3678
+ # Corresponds to the JSON property `anchorId`
3679
+ # @return [String]
3680
+ attr_accessor :anchor_id
3681
+
3682
+ # The unique ID of the comment thread.
3683
+ # Corresponds to the JSON property `commentId`
3684
+ # @return [String]
3685
+ attr_accessor :comment_id
3686
+
3687
+ # Represents a single post in a comment thread. [Developer Preview](https://
3688
+ # developers.google.com/workspace/preview).
3689
+ # Corresponds to the JSON property `headPost`
3690
+ # @return [Google::Apis::SheetsV4::Post]
3691
+ attr_accessor :head_post
3692
+
3693
+ # The quoted text from the spreadsheet when the comment was created, formatted
3694
+ # as plain-text.
3695
+ # Corresponds to the JSON property `plainTextQuote`
3696
+ # @return [String]
3697
+ attr_accessor :plain_text_quote
3698
+
3699
+ # Replies to the head post.
3700
+ # Corresponds to the JSON property `replies`
3701
+ # @return [Array<Google::Apis::SheetsV4::Post>]
3702
+ attr_accessor :replies
3703
+
3704
+ # Whether the thread is open or resolved.
3705
+ # Corresponds to the JSON property `status`
3706
+ # @return [String]
3707
+ attr_accessor :status
3708
+
3709
+ def initialize(**args)
3710
+ update!(**args)
3711
+ end
3712
+
3713
+ # Update properties of this object
3714
+ def update!(**args)
3715
+ @anchor_id = args[:anchor_id] if args.key?(:anchor_id)
3716
+ @comment_id = args[:comment_id] if args.key?(:comment_id)
3717
+ @head_post = args[:head_post] if args.key?(:head_post)
3718
+ @plain_text_quote = args[:plain_text_quote] if args.key?(:plain_text_quote)
3719
+ @replies = args[:replies] if args.key?(:replies)
3720
+ @status = args[:status] if args.key?(:status)
3721
+ end
3722
+ end
3723
+
3568
3724
  # The value of the condition.
3569
3725
  class ConditionValue
3570
3726
  include Google::Apis::Core::Hashable
@@ -4632,6 +4788,55 @@ module Google
4632
4788
  end
4633
4789
  end
4634
4790
 
4791
+ # Deletes a reply Post from a CommentThread. Returns a 400 bad request error if:
4792
+ # - The requesting user is not the author of the post. - The reply post contains
4793
+ # a comment action. - The reply post contains an assignee. [Developer Preview](
4794
+ # https://developers.google.com/workspace/preview).
4795
+ class DeleteCommentReplyRequest
4796
+ include Google::Apis::Core::Hashable
4797
+
4798
+ # The ID of the CommentThread which the post belongs to.
4799
+ # Corresponds to the JSON property `commentId`
4800
+ # @return [String]
4801
+ attr_accessor :comment_id
4802
+
4803
+ # The ID of the reply Post being deleted.
4804
+ # Corresponds to the JSON property `postId`
4805
+ # @return [String]
4806
+ attr_accessor :post_id
4807
+
4808
+ def initialize(**args)
4809
+ update!(**args)
4810
+ end
4811
+
4812
+ # Update properties of this object
4813
+ def update!(**args)
4814
+ @comment_id = args[:comment_id] if args.key?(:comment_id)
4815
+ @post_id = args[:post_id] if args.key?(:post_id)
4816
+ end
4817
+ end
4818
+
4819
+ # Deletes a CommentThread. Returns a 400 bad request error if the requesting
4820
+ # user is not the author of the headPost. [Developer Preview](https://developers.
4821
+ # google.com/workspace/preview).
4822
+ class DeleteCommentRequest
4823
+ include Google::Apis::Core::Hashable
4824
+
4825
+ # The ID of the CommentThread that is being deleted.
4826
+ # Corresponds to the JSON property `commentId`
4827
+ # @return [String]
4828
+ attr_accessor :comment_id
4829
+
4830
+ def initialize(**args)
4831
+ update!(**args)
4832
+ end
4833
+
4834
+ # Update properties of this object
4835
+ def update!(**args)
4836
+ @comment_id = args[:comment_id] if args.key?(:comment_id)
4837
+ end
4838
+ end
4839
+
4635
4840
  # Deletes a conditional format rule at the given index. All subsequent rules'
4636
4841
  # indexes are decremented.
4637
4842
  class DeleteConditionalFormatRuleRequest
@@ -6058,6 +6263,14 @@ module Google
6058
6263
  class GetSpreadsheetByDataFilterRequest
6059
6264
  include Google::Apis::Core::Hashable
6060
6265
 
6266
+ # The comments view mode to apply to the spreadsheet. This allows viewing the
6267
+ # spreadsheet with comments omitted or included. If one is not specified,
6268
+ # COMMENTS_VIEW_MODE_OMITTED is used. [Developer Preview](https://developers.
6269
+ # google.com/workspace/preview).
6270
+ # Corresponds to the JSON property `commentsViewMode`
6271
+ # @return [String]
6272
+ attr_accessor :comments_view_mode
6273
+
6061
6274
  # The DataFilters used to select which ranges to retrieve from the spreadsheet.
6062
6275
  # Corresponds to the JSON property `dataFilters`
6063
6276
  # @return [Array<Google::Apis::SheetsV4::DataFilter>]
@@ -6082,6 +6295,7 @@ module Google
6082
6295
 
6083
6296
  # Update properties of this object
6084
6297
  def update!(**args)
6298
+ @comments_view_mode = args[:comments_view_mode] if args.key?(:comments_view_mode)
6085
6299
  @data_filters = args[:data_filters] if args.key?(:data_filters)
6086
6300
  @exclude_tables_in_banded_ranges = args[:exclude_tables_in_banded_ranges] if args.key?(:exclude_tables_in_banded_ranges)
6087
6301
  @include_grid_data = args[:include_grid_data] if args.key?(:include_grid_data)
@@ -6496,6 +6710,63 @@ module Google
6496
6710
  end
6497
6711
  end
6498
6712
 
6713
+ # Inserts a CommentThread into the spreadsheet. [Developer Preview](https://
6714
+ # developers.google.com/workspace/preview).
6715
+ class InsertCommentRequest
6716
+ include Google::Apis::Core::Hashable
6717
+
6718
+ # Optional. The email address of the assignee of the comment. Leave empty for a
6719
+ # non-assigned comment. May not exceed 2048 UTF-8 code units.
6720
+ # Corresponds to the JSON property `assigneeEmailAddress`
6721
+ # @return [String]
6722
+ attr_accessor :assignee_email_address
6723
+
6724
+ # The text of the comment, as plain text. This text content will be handled
6725
+ # similarly to comments created in the Sheets editor. It will have similar
6726
+ # behaviors for formatting, notifications, etc. This field cannot be empty, and
6727
+ # must not exceed 2048 UTF-8 code units.
6728
+ # Corresponds to the JSON property `content`
6729
+ # @return [String]
6730
+ attr_accessor :content
6731
+
6732
+ # A coordinate in a sheet. All indexes are zero-based.
6733
+ # Corresponds to the JSON property `coordinate`
6734
+ # @return [Google::Apis::SheetsV4::GridCoordinate]
6735
+ attr_accessor :coordinate
6736
+
6737
+ def initialize(**args)
6738
+ update!(**args)
6739
+ end
6740
+
6741
+ # Update properties of this object
6742
+ def update!(**args)
6743
+ @assignee_email_address = args[:assignee_email_address] if args.key?(:assignee_email_address)
6744
+ @content = args[:content] if args.key?(:content)
6745
+ @coordinate = args[:coordinate] if args.key?(:coordinate)
6746
+ end
6747
+ end
6748
+
6749
+ # The result of creating a comment. [Developer Preview](https://developers.
6750
+ # google.com/workspace/preview).
6751
+ class InsertCommentResponse
6752
+ include Google::Apis::Core::Hashable
6753
+
6754
+ # Represents a single comment thread inside a spreadsheet. [Developer Preview](
6755
+ # https://developers.google.com/workspace/preview).
6756
+ # Corresponds to the JSON property `commentThread`
6757
+ # @return [Google::Apis::SheetsV4::CommentThread]
6758
+ attr_accessor :comment_thread
6759
+
6760
+ def initialize(**args)
6761
+ update!(**args)
6762
+ end
6763
+
6764
+ # Update properties of this object
6765
+ def update!(**args)
6766
+ @comment_thread = args[:comment_thread] if args.key?(:comment_thread)
6767
+ end
6768
+ end
6769
+
6499
6770
  # Inserts rows or columns in a sheet at a particular index.
6500
6771
  class InsertDimensionRequest
6501
6772
  include Google::Apis::Core::Hashable
@@ -7929,6 +8200,143 @@ module Google
7929
8200
  end
7930
8201
  end
7931
8202
 
8203
+ # Represents a single post in a comment thread. [Developer Preview](https://
8204
+ # developers.google.com/workspace/preview).
8205
+ class Post
8206
+ include Google::Apis::Core::Hashable
8207
+
8208
+ # Optional. The email of the user who is being newly assigned to the thread as
8209
+ # part of this post. Returns a 400 bad request error if: - The parent thread is
8210
+ # a CommentThread whose headPost does not have an assignee. - commentAction is
8211
+ # specified as `RESOLVE` or `REOPEN`. - `assignee_email` exceeds 2048 UTF-8 code
8212
+ # units.
8213
+ # Corresponds to the JSON property `assigneeEmail`
8214
+ # @return [String]
8215
+ attr_accessor :assignee_email
8216
+
8217
+ # Represents a user who authored a comment post. [Developer Preview](https://
8218
+ # developers.google.com/workspace/preview).
8219
+ # Corresponds to the JSON property `author`
8220
+ # @return [Google::Apis::SheetsV4::PostAuthor]
8221
+ attr_accessor :author
8222
+
8223
+ # Action taken as part of creating the post.
8224
+ # Corresponds to the JSON property `commentAction`
8225
+ # @return [String]
8226
+ attr_accessor :comment_action
8227
+
8228
+ # The content of the post. Required to be non-empty if comment_action is not `
8229
+ # RESOLVE` or `REOPEN`. This text content will be handled similarly to comments
8230
+ # created in the Sheets editor. It will have similar behaviors for formatting,
8231
+ # notifications, etc. May not exceed 2048 UTF-8 code units.
8232
+ # Corresponds to the JSON property `content`
8233
+ # @return [String]
8234
+ attr_accessor :content
8235
+
8236
+ # Output only. The content of the post as HTML.
8237
+ # Corresponds to the JSON property `contentHtml`
8238
+ # @return [String]
8239
+ attr_accessor :content_html
8240
+
8241
+ # Output only. The time the post was created.
8242
+ # Corresponds to the JSON property `createTime`
8243
+ # @return [String]
8244
+ attr_accessor :create_time
8245
+
8246
+ # Output only. Whether the post is deleted. If `true`, content and author fields
8247
+ # will be empty.
8248
+ # Corresponds to the JSON property `deleted`
8249
+ # @return [Boolean]
8250
+ attr_accessor :deleted
8251
+ alias_method :deleted?, :deleted
8252
+
8253
+ # Output only. Whether the post is from a copied spreadsheet. This field cannot
8254
+ # be set directly by callers.
8255
+ # Corresponds to the JSON property `fromCopiedSpreadsheet`
8256
+ # @return [Boolean]
8257
+ attr_accessor :from_copied_spreadsheet
8258
+ alias_method :from_copied_spreadsheet?, :from_copied_spreadsheet
8259
+
8260
+ # Output only. Whether the post is from an imported spreadsheet. This field
8261
+ # cannot be set directly by callers.
8262
+ # Corresponds to the JSON property `fromImportedSpreadsheet`
8263
+ # @return [Boolean]
8264
+ attr_accessor :from_imported_spreadsheet
8265
+ alias_method :from_imported_spreadsheet?, :from_imported_spreadsheet
8266
+
8267
+ # Output only. The unique ID of the post.
8268
+ # Corresponds to the JSON property `postId`
8269
+ # @return [String]
8270
+ attr_accessor :post_id
8271
+
8272
+ # Output only. The time the post was last updated.
8273
+ # Corresponds to the JSON property `updateTime`
8274
+ # @return [String]
8275
+ attr_accessor :update_time
8276
+
8277
+ def initialize(**args)
8278
+ update!(**args)
8279
+ end
8280
+
8281
+ # Update properties of this object
8282
+ def update!(**args)
8283
+ @assignee_email = args[:assignee_email] if args.key?(:assignee_email)
8284
+ @author = args[:author] if args.key?(:author)
8285
+ @comment_action = args[:comment_action] if args.key?(:comment_action)
8286
+ @content = args[:content] if args.key?(:content)
8287
+ @content_html = args[:content_html] if args.key?(:content_html)
8288
+ @create_time = args[:create_time] if args.key?(:create_time)
8289
+ @deleted = args[:deleted] if args.key?(:deleted)
8290
+ @from_copied_spreadsheet = args[:from_copied_spreadsheet] if args.key?(:from_copied_spreadsheet)
8291
+ @from_imported_spreadsheet = args[:from_imported_spreadsheet] if args.key?(:from_imported_spreadsheet)
8292
+ @post_id = args[:post_id] if args.key?(:post_id)
8293
+ @update_time = args[:update_time] if args.key?(:update_time)
8294
+ end
8295
+ end
8296
+
8297
+ # Represents a user who authored a comment post. [Developer Preview](https://
8298
+ # developers.google.com/workspace/preview).
8299
+ class PostAuthor
8300
+ include Google::Apis::Core::Hashable
8301
+
8302
+ # Whether the user is anonymous.
8303
+ # Corresponds to the JSON property `anonymous`
8304
+ # @return [Boolean]
8305
+ attr_accessor :anonymous
8306
+ alias_method :anonymous?, :anonymous
8307
+
8308
+ # The display name of the user. May be absent if the author is anonymous.
8309
+ # Corresponds to the JSON property `displayName`
8310
+ # @return [String]
8311
+ attr_accessor :display_name
8312
+
8313
+ # Whether the user is the authenticated user making the request.
8314
+ # Corresponds to the JSON property `me`
8315
+ # @return [Boolean]
8316
+ attr_accessor :me
8317
+ alias_method :me?, :me
8318
+
8319
+ # The resource name of the post author user, which can also be used to identify
8320
+ # the user in the [Google People API](https://developers.google.com/people/api/
8321
+ # rest/v1/people). Format: `users/`user``. Will not be populated if the
8322
+ # anonymous field is `true` or if the post is from an imported spreadsheet.
8323
+ # Corresponds to the JSON property `user`
8324
+ # @return [String]
8325
+ attr_accessor :user
8326
+
8327
+ def initialize(**args)
8328
+ update!(**args)
8329
+ end
8330
+
8331
+ # Update properties of this object
8332
+ def update!(**args)
8333
+ @anonymous = args[:anonymous] if args.key?(:anonymous)
8334
+ @display_name = args[:display_name] if args.key?(:display_name)
8335
+ @me = args[:me] if args.key?(:me)
8336
+ @user = args[:user] if args.key?(:user)
8337
+ end
8338
+ end
8339
+
7932
8340
  # A protected range.
7933
8341
  class ProtectedRange
7934
8342
  include Google::Apis::Core::Hashable
@@ -8244,6 +8652,12 @@ module Google
8244
8652
  # @return [Google::Apis::SheetsV4::AddChartRequest]
8245
8653
  attr_accessor :add_chart
8246
8654
 
8655
+ # Inserts a reply Post into a CommentThread. [Developer Preview](https://
8656
+ # developers.google.com/workspace/preview).
8657
+ # Corresponds to the JSON property `addCommentReply`
8658
+ # @return [Google::Apis::SheetsV4::AddCommentReplyRequest]
8659
+ attr_accessor :add_comment_reply
8660
+
8247
8661
  # Adds a new conditional format rule at the given index. All subsequent rules'
8248
8662
  # indexes are incremented.
8249
8663
  # Corresponds to the JSON property `addConditionalFormatRule`
@@ -8363,6 +8777,21 @@ module Google
8363
8777
  # @return [Google::Apis::SheetsV4::DeleteBandingRequest]
8364
8778
  attr_accessor :delete_banding
8365
8779
 
8780
+ # Deletes a CommentThread. Returns a 400 bad request error if the requesting
8781
+ # user is not the author of the headPost. [Developer Preview](https://developers.
8782
+ # google.com/workspace/preview).
8783
+ # Corresponds to the JSON property `deleteComment`
8784
+ # @return [Google::Apis::SheetsV4::DeleteCommentRequest]
8785
+ attr_accessor :delete_comment
8786
+
8787
+ # Deletes a reply Post from a CommentThread. Returns a 400 bad request error if:
8788
+ # - The requesting user is not the author of the post. - The reply post contains
8789
+ # a comment action. - The reply post contains an assignee. [Developer Preview](
8790
+ # https://developers.google.com/workspace/preview).
8791
+ # Corresponds to the JSON property `deleteCommentReply`
8792
+ # @return [Google::Apis::SheetsV4::DeleteCommentReplyRequest]
8793
+ attr_accessor :delete_comment_reply
8794
+
8366
8795
  # Deletes a conditional format rule at the given index. All subsequent rules'
8367
8796
  # indexes are decremented.
8368
8797
  # Corresponds to the JSON property `deleteConditionalFormatRule`
@@ -8455,6 +8884,12 @@ module Google
8455
8884
  # @return [Google::Apis::SheetsV4::FindReplaceRequest]
8456
8885
  attr_accessor :find_replace
8457
8886
 
8887
+ # Inserts a CommentThread into the spreadsheet. [Developer Preview](https://
8888
+ # developers.google.com/workspace/preview).
8889
+ # Corresponds to the JSON property `insertComment`
8890
+ # @return [Google::Apis::SheetsV4::InsertCommentRequest]
8891
+ attr_accessor :insert_comment
8892
+
8458
8893
  # Inserts rows or columns in a sheet at a particular index.
8459
8894
  # Corresponds to the JSON property `insertDimension`
8460
8895
  # @return [Google::Apis::SheetsV4::InsertDimensionRequest]
@@ -8570,6 +9005,13 @@ module Google
8570
9005
  # @return [Google::Apis::SheetsV4::UpdateChartSpecRequest]
8571
9006
  attr_accessor :update_chart_spec
8572
9007
 
9008
+ # Updates a Post in a CommentThread. Returns a 400 bad request error if: - The
9009
+ # requesting user is not the author of the post. [Developer Preview](https://
9010
+ # developers.google.com/workspace/preview).
9011
+ # Corresponds to the JSON property `updateCommentPost`
9012
+ # @return [Google::Apis::SheetsV4::UpdateCommentPostRequest]
9013
+ attr_accessor :update_comment_post
9014
+
8573
9015
  # Updates a conditional format rule at the given index, or moves a conditional
8574
9016
  # format rule to another index.
8575
9017
  # Corresponds to the JSON property `updateConditionalFormatRule`
@@ -8658,6 +9100,7 @@ module Google
8658
9100
  def update!(**args)
8659
9101
  @add_banding = args[:add_banding] if args.key?(:add_banding)
8660
9102
  @add_chart = args[:add_chart] if args.key?(:add_chart)
9103
+ @add_comment_reply = args[:add_comment_reply] if args.key?(:add_comment_reply)
8661
9104
  @add_conditional_format_rule = args[:add_conditional_format_rule] if args.key?(:add_conditional_format_rule)
8662
9105
  @add_data_source = args[:add_data_source] if args.key?(:add_data_source)
8663
9106
  @add_dimension_group = args[:add_dimension_group] if args.key?(:add_dimension_group)
@@ -8677,6 +9120,8 @@ module Google
8677
9120
  @create_developer_metadata = args[:create_developer_metadata] if args.key?(:create_developer_metadata)
8678
9121
  @cut_paste = args[:cut_paste] if args.key?(:cut_paste)
8679
9122
  @delete_banding = args[:delete_banding] if args.key?(:delete_banding)
9123
+ @delete_comment = args[:delete_comment] if args.key?(:delete_comment)
9124
+ @delete_comment_reply = args[:delete_comment_reply] if args.key?(:delete_comment_reply)
8680
9125
  @delete_conditional_format_rule = args[:delete_conditional_format_rule] if args.key?(:delete_conditional_format_rule)
8681
9126
  @delete_data_source = args[:delete_data_source] if args.key?(:delete_data_source)
8682
9127
  @delete_developer_metadata = args[:delete_developer_metadata] if args.key?(:delete_developer_metadata)
@@ -8693,6 +9138,7 @@ module Google
8693
9138
  @duplicate_filter_view = args[:duplicate_filter_view] if args.key?(:duplicate_filter_view)
8694
9139
  @duplicate_sheet = args[:duplicate_sheet] if args.key?(:duplicate_sheet)
8695
9140
  @find_replace = args[:find_replace] if args.key?(:find_replace)
9141
+ @insert_comment = args[:insert_comment] if args.key?(:insert_comment)
8696
9142
  @insert_dimension = args[:insert_dimension] if args.key?(:insert_dimension)
8697
9143
  @insert_range = args[:insert_range] if args.key?(:insert_range)
8698
9144
  @merge_cells = args[:merge_cells] if args.key?(:merge_cells)
@@ -8711,6 +9157,7 @@ module Google
8711
9157
  @update_borders = args[:update_borders] if args.key?(:update_borders)
8712
9158
  @update_cells = args[:update_cells] if args.key?(:update_cells)
8713
9159
  @update_chart_spec = args[:update_chart_spec] if args.key?(:update_chart_spec)
9160
+ @update_comment_post = args[:update_comment_post] if args.key?(:update_comment_post)
8714
9161
  @update_conditional_format_rule = args[:update_conditional_format_rule] if args.key?(:update_conditional_format_rule)
8715
9162
  @update_data_source = args[:update_data_source] if args.key?(:update_data_source)
8716
9163
  @update_developer_metadata = args[:update_developer_metadata] if args.key?(:update_developer_metadata)
@@ -8742,6 +9189,12 @@ module Google
8742
9189
  # @return [Google::Apis::SheetsV4::AddChartResponse]
8743
9190
  attr_accessor :add_chart
8744
9191
 
9192
+ # The result of creating a reply. [Developer Preview](https://developers.google.
9193
+ # com/workspace/preview).
9194
+ # Corresponds to the JSON property `addCommentReply`
9195
+ # @return [Google::Apis::SheetsV4::AddCommentReplyResponse]
9196
+ attr_accessor :add_comment_reply
9197
+
8745
9198
  # The result of adding a data source.
8746
9199
  # Corresponds to the JSON property `addDataSource`
8747
9200
  # @return [Google::Apis::SheetsV4::AddDataSourceResponse]
@@ -8827,6 +9280,12 @@ module Google
8827
9280
  # @return [Google::Apis::SheetsV4::FindReplaceResponse]
8828
9281
  attr_accessor :find_replace
8829
9282
 
9283
+ # The result of creating a comment. [Developer Preview](https://developers.
9284
+ # google.com/workspace/preview).
9285
+ # Corresponds to the JSON property `insertComment`
9286
+ # @return [Google::Apis::SheetsV4::InsertCommentResponse]
9287
+ attr_accessor :insert_comment
9288
+
8830
9289
  # The response from refreshing one or multiple data source objects.
8831
9290
  # Corresponds to the JSON property `refreshDataSource`
8832
9291
  # @return [Google::Apis::SheetsV4::RefreshDataSourceResponse]
@@ -8865,6 +9324,7 @@ module Google
8865
9324
  def update!(**args)
8866
9325
  @add_banding = args[:add_banding] if args.key?(:add_banding)
8867
9326
  @add_chart = args[:add_chart] if args.key?(:add_chart)
9327
+ @add_comment_reply = args[:add_comment_reply] if args.key?(:add_comment_reply)
8868
9328
  @add_data_source = args[:add_data_source] if args.key?(:add_data_source)
8869
9329
  @add_dimension_group = args[:add_dimension_group] if args.key?(:add_dimension_group)
8870
9330
  @add_filter_view = args[:add_filter_view] if args.key?(:add_filter_view)
@@ -8882,6 +9342,7 @@ module Google
8882
9342
  @duplicate_filter_view = args[:duplicate_filter_view] if args.key?(:duplicate_filter_view)
8883
9343
  @duplicate_sheet = args[:duplicate_sheet] if args.key?(:duplicate_sheet)
8884
9344
  @find_replace = args[:find_replace] if args.key?(:find_replace)
9345
+ @insert_comment = args[:insert_comment] if args.key?(:insert_comment)
8885
9346
  @refresh_data_source = args[:refresh_data_source] if args.key?(:refresh_data_source)
8886
9347
  @trim_whitespace = args[:trim_whitespace] if args.key?(:trim_whitespace)
8887
9348
  @update_conditional_format_rule = args[:update_conditional_format_rule] if args.key?(:update_conditional_format_rule)
@@ -9144,6 +9605,12 @@ module Google
9144
9605
  # @return [Array<Google::Apis::SheetsV4::DimensionGroup>]
9145
9606
  attr_accessor :column_groups
9146
9607
 
9608
+ # The comment anchors on this sheet. [Developer Preview](https://developers.
9609
+ # google.com/workspace/preview).
9610
+ # Corresponds to the JSON property `commentAnchors`
9611
+ # @return [Array<Google::Apis::SheetsV4::CommentAnchor>]
9612
+ attr_accessor :comment_anchors
9613
+
9147
9614
  # The conditional format rules in this sheet.
9148
9615
  # Corresponds to the JSON property `conditionalFormats`
9149
9616
  # @return [Array<Google::Apis::SheetsV4::ConditionalFormatRule>]
@@ -9212,6 +9679,7 @@ module Google
9212
9679
  @basic_filter = args[:basic_filter] if args.key?(:basic_filter)
9213
9680
  @charts = args[:charts] if args.key?(:charts)
9214
9681
  @column_groups = args[:column_groups] if args.key?(:column_groups)
9682
+ @comment_anchors = args[:comment_anchors] if args.key?(:comment_anchors)
9215
9683
  @conditional_formats = args[:conditional_formats] if args.key?(:conditional_formats)
9216
9684
  @data = args[:data] if args.key?(:data)
9217
9685
  @developer_metadata = args[:developer_metadata] if args.key?(:developer_metadata)
@@ -9740,6 +10208,18 @@ module Google
9740
10208
  class Spreadsheet
9741
10209
  include Google::Apis::Core::Hashable
9742
10210
 
10211
+ # The comment threads associated with the spreadsheet. [Developer Preview](https:
10212
+ # //developers.google.com/workspace/preview).
10213
+ # Corresponds to the JSON property `comments`
10214
+ # @return [Array<Google::Apis::SheetsV4::CommentThread>]
10215
+ attr_accessor :comments
10216
+
10217
+ # Output only. The comments view mode applied to the spreadsheet. [Developer
10218
+ # Preview](https://developers.google.com/workspace/preview).
10219
+ # Corresponds to the JSON property `commentsViewMode`
10220
+ # @return [String]
10221
+ attr_accessor :comments_view_mode
10222
+
9743
10223
  # Output only. A list of data source refresh schedules.
9744
10224
  # Corresponds to the JSON property `dataSourceSchedules`
9745
10225
  # @return [Array<Google::Apis::SheetsV4::DataSourceRefreshSchedule>]
@@ -9786,6 +10266,8 @@ module Google
9786
10266
 
9787
10267
  # Update properties of this object
9788
10268
  def update!(**args)
10269
+ @comments = args[:comments] if args.key?(:comments)
10270
+ @comments_view_mode = args[:comments_view_mode] if args.key?(:comments_view_mode)
9789
10271
  @data_source_schedules = args[:data_source_schedules] if args.key?(:data_source_schedules)
9790
10272
  @data_sources = args[:data_sources] if args.key?(:data_sources)
9791
10273
  @developer_metadata = args[:developer_metadata] if args.key?(:developer_metadata)
@@ -10999,6 +11481,42 @@ module Google
10999
11481
  end
11000
11482
  end
11001
11483
 
11484
+ # Updates a Post in a CommentThread. Returns a 400 bad request error if: - The
11485
+ # requesting user is not the author of the post. [Developer Preview](https://
11486
+ # developers.google.com/workspace/preview).
11487
+ class UpdateCommentPostRequest
11488
+ include Google::Apis::Core::Hashable
11489
+
11490
+ # The ID of the CommentThread which the post belongs to.
11491
+ # Corresponds to the JSON property `commentId`
11492
+ # @return [String]
11493
+ attr_accessor :comment_id
11494
+
11495
+ # The new text of the comment, as plain text. This text content will be handled
11496
+ # similarly to comments created in the Sheets editor. It will have similar
11497
+ # behaviors for formatting, notifications, etc. This field cannot be empty, and
11498
+ # must not exceed 2048 UTF-8 code units.
11499
+ # Corresponds to the JSON property `content`
11500
+ # @return [String]
11501
+ attr_accessor :content
11502
+
11503
+ # The ID of the post being updated.
11504
+ # Corresponds to the JSON property `postId`
11505
+ # @return [String]
11506
+ attr_accessor :post_id
11507
+
11508
+ def initialize(**args)
11509
+ update!(**args)
11510
+ end
11511
+
11512
+ # Update properties of this object
11513
+ def update!(**args)
11514
+ @comment_id = args[:comment_id] if args.key?(:comment_id)
11515
+ @content = args[:content] if args.key?(:content)
11516
+ @post_id = args[:post_id] if args.key?(:post_id)
11517
+ end
11518
+ end
11519
+
11002
11520
  # Updates a conditional format rule at the given index, or moves a conditional
11003
11521
  # format rule to another index.
11004
11522
  class UpdateConditionalFormatRuleRequest
@@ -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.48.0"
19
+ GEM_VERSION = "0.49.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.19.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20260213"
25
+ REVISION = "20260921"
26
26
  end
27
27
  end
28
28
  end
@@ -46,6 +46,18 @@ module Google
46
46
  include Google::Apis::Core::JsonObjectSupport
47
47
  end
48
48
 
49
+ class AddCommentReplyRequest
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
55
+ class AddCommentReplyResponse
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
49
61
  class AddConditionalFormatRuleRequest
50
62
  class Representation < Google::Apis::Core::JsonRepresentation; end
51
63
 
@@ -502,6 +514,18 @@ module Google
502
514
  include Google::Apis::Core::JsonObjectSupport
503
515
  end
504
516
 
517
+ class CommentAnchor
518
+ class Representation < Google::Apis::Core::JsonRepresentation; end
519
+
520
+ include Google::Apis::Core::JsonObjectSupport
521
+ end
522
+
523
+ class CommentThread
524
+ class Representation < Google::Apis::Core::JsonRepresentation; end
525
+
526
+ include Google::Apis::Core::JsonObjectSupport
527
+ end
528
+
505
529
  class ConditionValue
506
530
  class Representation < Google::Apis::Core::JsonRepresentation; end
507
531
 
@@ -682,6 +706,18 @@ module Google
682
706
  include Google::Apis::Core::JsonObjectSupport
683
707
  end
684
708
 
709
+ class DeleteCommentReplyRequest
710
+ class Representation < Google::Apis::Core::JsonRepresentation; end
711
+
712
+ include Google::Apis::Core::JsonObjectSupport
713
+ end
714
+
715
+ class DeleteCommentRequest
716
+ class Representation < Google::Apis::Core::JsonRepresentation; end
717
+
718
+ include Google::Apis::Core::JsonObjectSupport
719
+ end
720
+
685
721
  class DeleteConditionalFormatRuleRequest
686
722
  class Representation < Google::Apis::Core::JsonRepresentation; end
687
723
 
@@ -964,6 +1000,18 @@ module Google
964
1000
  include Google::Apis::Core::JsonObjectSupport
965
1001
  end
966
1002
 
1003
+ class InsertCommentRequest
1004
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1005
+
1006
+ include Google::Apis::Core::JsonObjectSupport
1007
+ end
1008
+
1009
+ class InsertCommentResponse
1010
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1011
+
1012
+ include Google::Apis::Core::JsonObjectSupport
1013
+ end
1014
+
967
1015
  class InsertDimensionRequest
968
1016
  class Representation < Google::Apis::Core::JsonRepresentation; end
969
1017
 
@@ -1162,6 +1210,18 @@ module Google
1162
1210
  include Google::Apis::Core::JsonObjectSupport
1163
1211
  end
1164
1212
 
1213
+ class Post
1214
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1215
+
1216
+ include Google::Apis::Core::JsonObjectSupport
1217
+ end
1218
+
1219
+ class PostAuthor
1220
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1221
+
1222
+ include Google::Apis::Core::JsonObjectSupport
1223
+ end
1224
+
1165
1225
  class ProtectedRange
1166
1226
  class Representation < Google::Apis::Core::JsonRepresentation; end
1167
1227
 
@@ -1438,6 +1498,12 @@ module Google
1438
1498
  include Google::Apis::Core::JsonObjectSupport
1439
1499
  end
1440
1500
 
1501
+ class UpdateCommentPostRequest
1502
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1503
+
1504
+ include Google::Apis::Core::JsonObjectSupport
1505
+ end
1506
+
1441
1507
  class UpdateConditionalFormatRuleRequest
1442
1508
  class Representation < Google::Apis::Core::JsonRepresentation; end
1443
1509
 
@@ -1626,6 +1692,23 @@ module Google
1626
1692
  end
1627
1693
  end
1628
1694
 
1695
+ class AddCommentReplyRequest
1696
+ # @private
1697
+ class Representation < Google::Apis::Core::JsonRepresentation
1698
+ property :comment_id, as: 'commentId'
1699
+ property :post, as: 'post', class: Google::Apis::SheetsV4::Post, decorator: Google::Apis::SheetsV4::Post::Representation
1700
+
1701
+ end
1702
+ end
1703
+
1704
+ class AddCommentReplyResponse
1705
+ # @private
1706
+ class Representation < Google::Apis::Core::JsonRepresentation
1707
+ property :post, as: 'post', class: Google::Apis::SheetsV4::Post, decorator: Google::Apis::SheetsV4::Post::Representation
1708
+
1709
+ end
1710
+ end
1711
+
1629
1712
  class AddConditionalFormatRuleRequest
1630
1713
  # @private
1631
1714
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2030,6 +2113,7 @@ module Google
2030
2113
  class BatchUpdateSpreadsheetRequest
2031
2114
  # @private
2032
2115
  class Representation < Google::Apis::Core::JsonRepresentation
2116
+ property :comments_view_mode, as: 'commentsViewMode'
2033
2117
  property :include_spreadsheet_in_response, as: 'includeSpreadsheetInResponse'
2034
2118
  collection :requests, as: 'requests', class: Google::Apis::SheetsV4::Request, decorator: Google::Apis::SheetsV4::Request::Representation
2035
2119
 
@@ -2041,6 +2125,7 @@ module Google
2041
2125
  class BatchUpdateSpreadsheetResponse
2042
2126
  # @private
2043
2127
  class Representation < Google::Apis::Core::JsonRepresentation
2128
+ property :comment_update_state, as: 'commentUpdateState'
2044
2129
  collection :replies, as: 'replies', class: Google::Apis::SheetsV4::Response, decorator: Google::Apis::SheetsV4::Response::Representation
2045
2130
 
2046
2131
  property :spreadsheet_id, as: 'spreadsheetId'
@@ -2491,6 +2576,29 @@ module Google
2491
2576
  end
2492
2577
  end
2493
2578
 
2579
+ class CommentAnchor
2580
+ # @private
2581
+ class Representation < Google::Apis::Core::JsonRepresentation
2582
+ property :anchor_id, as: 'anchorId'
2583
+ property :range, as: 'range', class: Google::Apis::SheetsV4::GridRange, decorator: Google::Apis::SheetsV4::GridRange::Representation
2584
+
2585
+ end
2586
+ end
2587
+
2588
+ class CommentThread
2589
+ # @private
2590
+ class Representation < Google::Apis::Core::JsonRepresentation
2591
+ property :anchor_id, as: 'anchorId'
2592
+ property :comment_id, as: 'commentId'
2593
+ property :head_post, as: 'headPost', class: Google::Apis::SheetsV4::Post, decorator: Google::Apis::SheetsV4::Post::Representation
2594
+
2595
+ property :plain_text_quote, as: 'plainTextQuote'
2596
+ collection :replies, as: 'replies', class: Google::Apis::SheetsV4::Post, decorator: Google::Apis::SheetsV4::Post::Representation
2597
+
2598
+ property :status, as: 'status'
2599
+ end
2600
+ end
2601
+
2494
2602
  class ConditionValue
2495
2603
  # @private
2496
2604
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2798,6 +2906,21 @@ module Google
2798
2906
  end
2799
2907
  end
2800
2908
 
2909
+ class DeleteCommentReplyRequest
2910
+ # @private
2911
+ class Representation < Google::Apis::Core::JsonRepresentation
2912
+ property :comment_id, as: 'commentId'
2913
+ property :post_id, as: 'postId'
2914
+ end
2915
+ end
2916
+
2917
+ class DeleteCommentRequest
2918
+ # @private
2919
+ class Representation < Google::Apis::Core::JsonRepresentation
2920
+ property :comment_id, as: 'commentId'
2921
+ end
2922
+ end
2923
+
2801
2924
  class DeleteConditionalFormatRuleRequest
2802
2925
  # @private
2803
2926
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -3170,6 +3293,7 @@ module Google
3170
3293
  class GetSpreadsheetByDataFilterRequest
3171
3294
  # @private
3172
3295
  class Representation < Google::Apis::Core::JsonRepresentation
3296
+ property :comments_view_mode, as: 'commentsViewMode'
3173
3297
  collection :data_filters, as: 'dataFilters', class: Google::Apis::SheetsV4::DataFilter, decorator: Google::Apis::SheetsV4::DataFilter::Representation
3174
3298
 
3175
3299
  property :exclude_tables_in_banded_ranges, as: 'excludeTablesInBandedRanges'
@@ -3269,6 +3393,24 @@ module Google
3269
3393
  end
3270
3394
  end
3271
3395
 
3396
+ class InsertCommentRequest
3397
+ # @private
3398
+ class Representation < Google::Apis::Core::JsonRepresentation
3399
+ property :assignee_email_address, as: 'assigneeEmailAddress'
3400
+ property :content, as: 'content'
3401
+ property :coordinate, as: 'coordinate', class: Google::Apis::SheetsV4::GridCoordinate, decorator: Google::Apis::SheetsV4::GridCoordinate::Representation
3402
+
3403
+ end
3404
+ end
3405
+
3406
+ class InsertCommentResponse
3407
+ # @private
3408
+ class Representation < Google::Apis::Core::JsonRepresentation
3409
+ property :comment_thread, as: 'commentThread', class: Google::Apis::SheetsV4::CommentThread, decorator: Google::Apis::SheetsV4::CommentThread::Representation
3410
+
3411
+ end
3412
+ end
3413
+
3272
3414
  class InsertDimensionRequest
3273
3415
  # @private
3274
3416
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -3622,6 +3764,34 @@ module Google
3622
3764
  end
3623
3765
  end
3624
3766
 
3767
+ class Post
3768
+ # @private
3769
+ class Representation < Google::Apis::Core::JsonRepresentation
3770
+ property :assignee_email, as: 'assigneeEmail'
3771
+ property :author, as: 'author', class: Google::Apis::SheetsV4::PostAuthor, decorator: Google::Apis::SheetsV4::PostAuthor::Representation
3772
+
3773
+ property :comment_action, as: 'commentAction'
3774
+ property :content, as: 'content'
3775
+ property :content_html, as: 'contentHtml'
3776
+ property :create_time, as: 'createTime'
3777
+ property :deleted, as: 'deleted'
3778
+ property :from_copied_spreadsheet, as: 'fromCopiedSpreadsheet'
3779
+ property :from_imported_spreadsheet, as: 'fromImportedSpreadsheet'
3780
+ property :post_id, as: 'postId'
3781
+ property :update_time, as: 'updateTime'
3782
+ end
3783
+ end
3784
+
3785
+ class PostAuthor
3786
+ # @private
3787
+ class Representation < Google::Apis::Core::JsonRepresentation
3788
+ property :anonymous, as: 'anonymous'
3789
+ property :display_name, as: 'displayName'
3790
+ property :me, as: 'me'
3791
+ property :user, as: 'user'
3792
+ end
3793
+ end
3794
+
3625
3795
  class ProtectedRange
3626
3796
  # @private
3627
3797
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -3703,6 +3873,8 @@ module Google
3703
3873
 
3704
3874
  property :add_chart, as: 'addChart', class: Google::Apis::SheetsV4::AddChartRequest, decorator: Google::Apis::SheetsV4::AddChartRequest::Representation
3705
3875
 
3876
+ property :add_comment_reply, as: 'addCommentReply', class: Google::Apis::SheetsV4::AddCommentReplyRequest, decorator: Google::Apis::SheetsV4::AddCommentReplyRequest::Representation
3877
+
3706
3878
  property :add_conditional_format_rule, as: 'addConditionalFormatRule', class: Google::Apis::SheetsV4::AddConditionalFormatRuleRequest, decorator: Google::Apis::SheetsV4::AddConditionalFormatRuleRequest::Representation
3707
3879
 
3708
3880
  property :add_data_source, as: 'addDataSource', class: Google::Apis::SheetsV4::AddDataSourceRequest, decorator: Google::Apis::SheetsV4::AddDataSourceRequest::Representation
@@ -3741,6 +3913,10 @@ module Google
3741
3913
 
3742
3914
  property :delete_banding, as: 'deleteBanding', class: Google::Apis::SheetsV4::DeleteBandingRequest, decorator: Google::Apis::SheetsV4::DeleteBandingRequest::Representation
3743
3915
 
3916
+ property :delete_comment, as: 'deleteComment', class: Google::Apis::SheetsV4::DeleteCommentRequest, decorator: Google::Apis::SheetsV4::DeleteCommentRequest::Representation
3917
+
3918
+ property :delete_comment_reply, as: 'deleteCommentReply', class: Google::Apis::SheetsV4::DeleteCommentReplyRequest, decorator: Google::Apis::SheetsV4::DeleteCommentReplyRequest::Representation
3919
+
3744
3920
  property :delete_conditional_format_rule, as: 'deleteConditionalFormatRule', class: Google::Apis::SheetsV4::DeleteConditionalFormatRuleRequest, decorator: Google::Apis::SheetsV4::DeleteConditionalFormatRuleRequest::Representation
3745
3921
 
3746
3922
  property :delete_data_source, as: 'deleteDataSource', class: Google::Apis::SheetsV4::DeleteDataSourceRequest, decorator: Google::Apis::SheetsV4::DeleteDataSourceRequest::Representation
@@ -3773,6 +3949,8 @@ module Google
3773
3949
 
3774
3950
  property :find_replace, as: 'findReplace', class: Google::Apis::SheetsV4::FindReplaceRequest, decorator: Google::Apis::SheetsV4::FindReplaceRequest::Representation
3775
3951
 
3952
+ property :insert_comment, as: 'insertComment', class: Google::Apis::SheetsV4::InsertCommentRequest, decorator: Google::Apis::SheetsV4::InsertCommentRequest::Representation
3953
+
3776
3954
  property :insert_dimension, as: 'insertDimension', class: Google::Apis::SheetsV4::InsertDimensionRequest, decorator: Google::Apis::SheetsV4::InsertDimensionRequest::Representation
3777
3955
 
3778
3956
  property :insert_range, as: 'insertRange', class: Google::Apis::SheetsV4::InsertRangeRequest, decorator: Google::Apis::SheetsV4::InsertRangeRequest::Representation
@@ -3809,6 +3987,8 @@ module Google
3809
3987
 
3810
3988
  property :update_chart_spec, as: 'updateChartSpec', class: Google::Apis::SheetsV4::UpdateChartSpecRequest, decorator: Google::Apis::SheetsV4::UpdateChartSpecRequest::Representation
3811
3989
 
3990
+ property :update_comment_post, as: 'updateCommentPost', class: Google::Apis::SheetsV4::UpdateCommentPostRequest, decorator: Google::Apis::SheetsV4::UpdateCommentPostRequest::Representation
3991
+
3812
3992
  property :update_conditional_format_rule, as: 'updateConditionalFormatRule', class: Google::Apis::SheetsV4::UpdateConditionalFormatRuleRequest, decorator: Google::Apis::SheetsV4::UpdateConditionalFormatRuleRequest::Representation
3813
3993
 
3814
3994
  property :update_data_source, as: 'updateDataSource', class: Google::Apis::SheetsV4::UpdateDataSourceRequest, decorator: Google::Apis::SheetsV4::UpdateDataSourceRequest::Representation
@@ -3847,6 +4027,8 @@ module Google
3847
4027
 
3848
4028
  property :add_chart, as: 'addChart', class: Google::Apis::SheetsV4::AddChartResponse, decorator: Google::Apis::SheetsV4::AddChartResponse::Representation
3849
4029
 
4030
+ property :add_comment_reply, as: 'addCommentReply', class: Google::Apis::SheetsV4::AddCommentReplyResponse, decorator: Google::Apis::SheetsV4::AddCommentReplyResponse::Representation
4031
+
3850
4032
  property :add_data_source, as: 'addDataSource', class: Google::Apis::SheetsV4::AddDataSourceResponse, decorator: Google::Apis::SheetsV4::AddDataSourceResponse::Representation
3851
4033
 
3852
4034
  property :add_dimension_group, as: 'addDimensionGroup', class: Google::Apis::SheetsV4::AddDimensionGroupResponse, decorator: Google::Apis::SheetsV4::AddDimensionGroupResponse::Representation
@@ -3881,6 +4063,8 @@ module Google
3881
4063
 
3882
4064
  property :find_replace, as: 'findReplace', class: Google::Apis::SheetsV4::FindReplaceResponse, decorator: Google::Apis::SheetsV4::FindReplaceResponse::Representation
3883
4065
 
4066
+ property :insert_comment, as: 'insertComment', class: Google::Apis::SheetsV4::InsertCommentResponse, decorator: Google::Apis::SheetsV4::InsertCommentResponse::Representation
4067
+
3884
4068
  property :refresh_data_source, as: 'refreshDataSource', class: Google::Apis::SheetsV4::RefreshDataSourceResponse, decorator: Google::Apis::SheetsV4::RefreshDataSourceResponse::Representation
3885
4069
 
3886
4070
  property :trim_whitespace, as: 'trimWhitespace', class: Google::Apis::SheetsV4::TrimWhitespaceResponse, decorator: Google::Apis::SheetsV4::TrimWhitespaceResponse::Representation
@@ -3977,6 +4161,8 @@ module Google
3977
4161
 
3978
4162
  collection :column_groups, as: 'columnGroups', class: Google::Apis::SheetsV4::DimensionGroup, decorator: Google::Apis::SheetsV4::DimensionGroup::Representation
3979
4163
 
4164
+ collection :comment_anchors, as: 'commentAnchors', class: Google::Apis::SheetsV4::CommentAnchor, decorator: Google::Apis::SheetsV4::CommentAnchor::Representation
4165
+
3980
4166
  collection :conditional_formats, as: 'conditionalFormats', class: Google::Apis::SheetsV4::ConditionalFormatRule, decorator: Google::Apis::SheetsV4::ConditionalFormatRule::Representation
3981
4167
 
3982
4168
  collection :data, as: 'data', class: Google::Apis::SheetsV4::GridData, decorator: Google::Apis::SheetsV4::GridData::Representation
@@ -4092,6 +4278,9 @@ module Google
4092
4278
  class Spreadsheet
4093
4279
  # @private
4094
4280
  class Representation < Google::Apis::Core::JsonRepresentation
4281
+ collection :comments, as: 'comments', class: Google::Apis::SheetsV4::CommentThread, decorator: Google::Apis::SheetsV4::CommentThread::Representation
4282
+
4283
+ property :comments_view_mode, as: 'commentsViewMode'
4095
4284
  collection :data_source_schedules, as: 'dataSourceSchedules', class: Google::Apis::SheetsV4::DataSourceRefreshSchedule, decorator: Google::Apis::SheetsV4::DataSourceRefreshSchedule::Representation
4096
4285
 
4097
4286
  collection :data_sources, as: 'dataSources', class: Google::Apis::SheetsV4::DataSource, decorator: Google::Apis::SheetsV4::DataSource::Representation
@@ -4376,6 +4565,15 @@ module Google
4376
4565
  end
4377
4566
  end
4378
4567
 
4568
+ class UpdateCommentPostRequest
4569
+ # @private
4570
+ class Representation < Google::Apis::Core::JsonRepresentation
4571
+ property :comment_id, as: 'commentId'
4572
+ property :content, as: 'content'
4573
+ property :post_id, as: 'postId'
4574
+ end
4575
+ end
4576
+
4379
4577
  class UpdateConditionalFormatRuleRequest
4380
4578
  # @private
4381
4579
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -142,6 +142,11 @@ 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 [String] comments_view_mode
146
+ # The comments view mode to apply to the spreadsheet. This allows viewing the
147
+ # spreadsheet with comments omitted or included. If one is not specified,
148
+ # COMMENTS_VIEW_MODE_OMITTED is used. [Developer Preview](https://developers.
149
+ # google.com/workspace/preview).
145
150
  # @param [Boolean] exclude_tables_in_banded_ranges
146
151
  # True if tables should be excluded in the banded ranges. False if not set.
147
152
  # @param [Boolean] include_grid_data
@@ -166,11 +171,12 @@ module Google
166
171
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
167
172
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
168
173
  # @raise [Google::Apis::AuthorizationError] Authorization is required
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)
174
+ def get_spreadsheet(spreadsheet_id, comments_view_mode: nil, exclude_tables_in_banded_ranges: nil, include_grid_data: nil, ranges: nil, fields: nil, quota_user: nil, options: nil, &block)
170
175
  command = make_simple_command(:get, 'v4/spreadsheets/{spreadsheetId}', options)
171
176
  command.response_representation = Google::Apis::SheetsV4::Spreadsheet::Representation
172
177
  command.response_class = Google::Apis::SheetsV4::Spreadsheet
173
178
  command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
179
+ command.query['commentsViewMode'] = comments_view_mode unless comments_view_mode.nil?
174
180
  command.query['excludeTablesInBandedRanges'] = exclude_tables_in_banded_ranges unless exclude_tables_in_banded_ranges.nil?
175
181
  command.query['includeGridData'] = include_grid_data unless include_grid_data.nil?
176
182
  command.query['ranges'] = ranges unless ranges.nil?
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-sheets_v4
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.48.0
4
+ version: 0.49.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
@@ -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.48.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-sheets_v4/v0.49.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: