google-apis-sheets_v4 0.48.0 → 0.50.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: 6abecd03903bed615b8636b6543d07381834c83007aac639019a6f2c2bb2fdc8
4
+ data.tar.gz: 60503a700b8bb444fdaef7fdf7c447156b1d17c6fb58c77265260b09c05175d6
5
5
  SHA512:
6
- metadata.gz: e9161f26871869c74cc5798cb25566c1bde75d85b9c9f06ea5e137b6c52c3748b89e05529e836d6c9bdc3210c1b23f9186856703c13d147060bd06573a2cf471
7
- data.tar.gz: 7c4b4aade16ab55840e4eed6a5a6e203c7345e89f5fd26b94092488d730450d4f46d795e4a7a535239bff711e3b2c9f378e2146b1038a3a5a4aa3c7342c98587
6
+ metadata.gz: 6578642f9d89e098980729b5dc6e19444e76552a8fdeeabc5799960531a4803cfe3e4f44847fe0e2348fdaaf96140185cefb93e8e2885b88a585846a2206b22c
7
+ data.tar.gz: be6226e066d0f7d440934861b002e35683fd5a33a83bb5637d466ab13c2d39977f6aa9a7df52d2cde52ecbf9ab5f96c38c5e64c259f611253201fa783cf14139
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Release history for google-apis-sheets_v4
2
2
 
3
+ ### v0.50.0 (2026-10-21)
4
+
5
+ * Regenerated from discovery document revision 20260930
6
+ * Regenerated using generator version 0.19.1
7
+
8
+ ### v0.49.0 (2026-09-27)
9
+
10
+ * Regenerated from discovery document revision 20260921
11
+
3
12
  ### v0.48.0 (2026-06-14)
4
13
 
5
14
  * Regenerated using generator version 0.19.0
@@ -98,6 +98,50 @@ module Google
98
98
  end
99
99
  end
100
100
 
101
+ # Inserts a reply Post into a CommentThread.
102
+ class AddCommentReplyRequest
103
+ include Google::Apis::Core::Hashable
104
+
105
+ # The ID of the CommentThread to add the reply to.
106
+ # Corresponds to the JSON property `commentId`
107
+ # @return [String]
108
+ attr_accessor :comment_id
109
+
110
+ # Represents a single post in a comment thread.
111
+ # Corresponds to the JSON property `post`
112
+ # @return [Google::Apis::SheetsV4::Post]
113
+ attr_accessor :post
114
+
115
+ def initialize(**args)
116
+ update!(**args)
117
+ end
118
+
119
+ # Update properties of this object
120
+ def update!(**args)
121
+ @comment_id = args[:comment_id] if args.key?(:comment_id)
122
+ @post = args[:post] if args.key?(:post)
123
+ end
124
+ end
125
+
126
+ # The result of creating a reply.
127
+ class AddCommentReplyResponse
128
+ include Google::Apis::Core::Hashable
129
+
130
+ # Represents a single post in a comment thread.
131
+ # Corresponds to the JSON property `post`
132
+ # @return [Google::Apis::SheetsV4::Post]
133
+ attr_accessor :post
134
+
135
+ def initialize(**args)
136
+ update!(**args)
137
+ end
138
+
139
+ # Update properties of this object
140
+ def update!(**args)
141
+ @post = args[:post] if args.key?(:post)
142
+ end
143
+ end
144
+
101
145
  # Adds a new conditional format rule at the given index. All subsequent rules'
102
146
  # indexes are incremented.
103
147
  class AddConditionalFormatRuleRequest
@@ -1748,6 +1792,14 @@ module Google
1748
1792
  class BatchUpdateSpreadsheetRequest
1749
1793
  include Google::Apis::Core::Hashable
1750
1794
 
1795
+ # The comments view mode to apply to the spreadsheet. This allows viewing the
1796
+ # spreadsheet with comments omitted or included. If one is not specified,
1797
+ # COMMENTS_VIEW_MODE_OMITTED is used. Meaningful only if
1798
+ # include_spreadsheet_in_response is 'true'.
1799
+ # Corresponds to the JSON property `commentsViewMode`
1800
+ # @return [String]
1801
+ attr_accessor :comments_view_mode
1802
+
1751
1803
  # Determines if the update response should include the spreadsheet resource.
1752
1804
  # Corresponds to the JSON property `includeSpreadsheetInResponse`
1753
1805
  # @return [Boolean]
@@ -1781,6 +1833,7 @@ module Google
1781
1833
 
1782
1834
  # Update properties of this object
1783
1835
  def update!(**args)
1836
+ @comments_view_mode = args[:comments_view_mode] if args.key?(:comments_view_mode)
1784
1837
  @include_spreadsheet_in_response = args[:include_spreadsheet_in_response] if args.key?(:include_spreadsheet_in_response)
1785
1838
  @requests = args[:requests] if args.key?(:requests)
1786
1839
  @response_include_grid_data = args[:response_include_grid_data] if args.key?(:response_include_grid_data)
@@ -1792,6 +1845,11 @@ module Google
1792
1845
  class BatchUpdateSpreadsheetResponse
1793
1846
  include Google::Apis::Core::Hashable
1794
1847
 
1848
+ # Whether comment updates were applied in the batch request.
1849
+ # Corresponds to the JSON property `commentUpdateState`
1850
+ # @return [String]
1851
+ attr_accessor :comment_update_state
1852
+
1795
1853
  # The reply of the updates. This maps 1:1 with the updates, although replies to
1796
1854
  # some requests may be empty.
1797
1855
  # Corresponds to the JSON property `replies`
@@ -1814,6 +1872,7 @@ module Google
1814
1872
 
1815
1873
  # Update properties of this object
1816
1874
  def update!(**args)
1875
+ @comment_update_state = args[:comment_update_state] if args.key?(:comment_update_state)
1817
1876
  @replies = args[:replies] if args.key?(:replies)
1818
1877
  @spreadsheet_id = args[:spreadsheet_id] if args.key?(:spreadsheet_id)
1819
1878
  @updated_spreadsheet = args[:updated_spreadsheet] if args.key?(:updated_spreadsheet)
@@ -3565,6 +3624,94 @@ module Google
3565
3624
  end
3566
3625
  end
3567
3626
 
3627
+ # A location in the spreadsheet that is tied to a CommentThread with the same
3628
+ # anchorId. Note: Multiple anchors may refer to the same location.
3629
+ class CommentAnchor
3630
+ include Google::Apis::Core::Hashable
3631
+
3632
+ # The unique ID of the comment anchor. Output only.
3633
+ # Corresponds to the JSON property `anchorId`
3634
+ # @return [String]
3635
+ attr_accessor :anchor_id
3636
+
3637
+ # A range on a sheet. All indexes are zero-based. Indexes are half open, i.e.
3638
+ # the start index is inclusive and the end index is exclusive -- [start_index,
3639
+ # end_index). Missing indexes indicate the range is unbounded on that side. For
3640
+ # example, if `"Sheet1"` is sheet ID 123456, then: `Sheet1!A1:A1 == sheet_id:
3641
+ # 123456, start_row_index: 0, end_row_index: 1, start_column_index: 0,
3642
+ # end_column_index: 1` `Sheet1!A3:B4 == sheet_id: 123456, start_row_index: 2,
3643
+ # end_row_index: 4, start_column_index: 0, end_column_index: 2` `Sheet1!A:B ==
3644
+ # sheet_id: 123456, start_column_index: 0, end_column_index: 2` `Sheet1!A5:B ==
3645
+ # sheet_id: 123456, start_row_index: 4, start_column_index: 0, end_column_index:
3646
+ # 2` `Sheet1 == sheet_id: 123456` The start index must always be less than or
3647
+ # equal to the end index. If the start index equals the end index, then the
3648
+ # range is empty. Empty ranges are typically not meaningful and are usually
3649
+ # rendered in the UI as `#REF!`.
3650
+ # Corresponds to the JSON property `range`
3651
+ # @return [Google::Apis::SheetsV4::GridRange]
3652
+ attr_accessor :range
3653
+
3654
+ def initialize(**args)
3655
+ update!(**args)
3656
+ end
3657
+
3658
+ # Update properties of this object
3659
+ def update!(**args)
3660
+ @anchor_id = args[:anchor_id] if args.key?(:anchor_id)
3661
+ @range = args[:range] if args.key?(:range)
3662
+ end
3663
+ end
3664
+
3665
+ # Represents a single comment thread inside a spreadsheet.
3666
+ class CommentThread
3667
+ include Google::Apis::Core::Hashable
3668
+
3669
+ # The ID of the CommentAnchor in the sheet that this thread is tied to.
3670
+ # Corresponds to the JSON property `anchorId`
3671
+ # @return [String]
3672
+ attr_accessor :anchor_id
3673
+
3674
+ # The unique ID of the comment thread.
3675
+ # Corresponds to the JSON property `commentId`
3676
+ # @return [String]
3677
+ attr_accessor :comment_id
3678
+
3679
+ # Represents a single post in a comment thread.
3680
+ # Corresponds to the JSON property `headPost`
3681
+ # @return [Google::Apis::SheetsV4::Post]
3682
+ attr_accessor :head_post
3683
+
3684
+ # The quoted text from the spreadsheet when the comment was created, formatted
3685
+ # as plain-text.
3686
+ # Corresponds to the JSON property `plainTextQuote`
3687
+ # @return [String]
3688
+ attr_accessor :plain_text_quote
3689
+
3690
+ # Replies to the head post.
3691
+ # Corresponds to the JSON property `replies`
3692
+ # @return [Array<Google::Apis::SheetsV4::Post>]
3693
+ attr_accessor :replies
3694
+
3695
+ # Whether the thread is open or resolved.
3696
+ # Corresponds to the JSON property `status`
3697
+ # @return [String]
3698
+ attr_accessor :status
3699
+
3700
+ def initialize(**args)
3701
+ update!(**args)
3702
+ end
3703
+
3704
+ # Update properties of this object
3705
+ def update!(**args)
3706
+ @anchor_id = args[:anchor_id] if args.key?(:anchor_id)
3707
+ @comment_id = args[:comment_id] if args.key?(:comment_id)
3708
+ @head_post = args[:head_post] if args.key?(:head_post)
3709
+ @plain_text_quote = args[:plain_text_quote] if args.key?(:plain_text_quote)
3710
+ @replies = args[:replies] if args.key?(:replies)
3711
+ @status = args[:status] if args.key?(:status)
3712
+ end
3713
+ end
3714
+
3568
3715
  # The value of the condition.
3569
3716
  class ConditionValue
3570
3717
  include Google::Apis::Core::Hashable
@@ -4632,6 +4779,53 @@ module Google
4632
4779
  end
4633
4780
  end
4634
4781
 
4782
+ # Deletes a reply Post from a CommentThread. Returns a 400 bad request error if:
4783
+ # - The requesting user is not the author of the post. - The reply post contains
4784
+ # a comment action. - The reply post contains an assignee.
4785
+ class DeleteCommentReplyRequest
4786
+ include Google::Apis::Core::Hashable
4787
+
4788
+ # The ID of the CommentThread which the post belongs to.
4789
+ # Corresponds to the JSON property `commentId`
4790
+ # @return [String]
4791
+ attr_accessor :comment_id
4792
+
4793
+ # The ID of the reply Post being deleted.
4794
+ # Corresponds to the JSON property `postId`
4795
+ # @return [String]
4796
+ attr_accessor :post_id
4797
+
4798
+ def initialize(**args)
4799
+ update!(**args)
4800
+ end
4801
+
4802
+ # Update properties of this object
4803
+ def update!(**args)
4804
+ @comment_id = args[:comment_id] if args.key?(:comment_id)
4805
+ @post_id = args[:post_id] if args.key?(:post_id)
4806
+ end
4807
+ end
4808
+
4809
+ # Deletes a CommentThread. Returns a 400 bad request error if the requesting
4810
+ # user is not the author of the headPost.
4811
+ class DeleteCommentRequest
4812
+ include Google::Apis::Core::Hashable
4813
+
4814
+ # The ID of the CommentThread that is being deleted.
4815
+ # Corresponds to the JSON property `commentId`
4816
+ # @return [String]
4817
+ attr_accessor :comment_id
4818
+
4819
+ def initialize(**args)
4820
+ update!(**args)
4821
+ end
4822
+
4823
+ # Update properties of this object
4824
+ def update!(**args)
4825
+ @comment_id = args[:comment_id] if args.key?(:comment_id)
4826
+ end
4827
+ end
4828
+
4635
4829
  # Deletes a conditional format rule at the given index. All subsequent rules'
4636
4830
  # indexes are decremented.
4637
4831
  class DeleteConditionalFormatRuleRequest
@@ -6058,6 +6252,13 @@ module Google
6058
6252
  class GetSpreadsheetByDataFilterRequest
6059
6253
  include Google::Apis::Core::Hashable
6060
6254
 
6255
+ # The comments view mode to apply to the spreadsheet. This allows viewing the
6256
+ # spreadsheet with comments omitted or included. If one is not specified,
6257
+ # COMMENTS_VIEW_MODE_OMITTED is used.
6258
+ # Corresponds to the JSON property `commentsViewMode`
6259
+ # @return [String]
6260
+ attr_accessor :comments_view_mode
6261
+
6061
6262
  # The DataFilters used to select which ranges to retrieve from the spreadsheet.
6062
6263
  # Corresponds to the JSON property `dataFilters`
6063
6264
  # @return [Array<Google::Apis::SheetsV4::DataFilter>]
@@ -6082,6 +6283,7 @@ module Google
6082
6283
 
6083
6284
  # Update properties of this object
6084
6285
  def update!(**args)
6286
+ @comments_view_mode = args[:comments_view_mode] if args.key?(:comments_view_mode)
6085
6287
  @data_filters = args[:data_filters] if args.key?(:data_filters)
6086
6288
  @exclude_tables_in_banded_ranges = args[:exclude_tables_in_banded_ranges] if args.key?(:exclude_tables_in_banded_ranges)
6087
6289
  @include_grid_data = args[:include_grid_data] if args.key?(:include_grid_data)
@@ -6496,6 +6698,60 @@ module Google
6496
6698
  end
6497
6699
  end
6498
6700
 
6701
+ # Inserts a CommentThread into the spreadsheet.
6702
+ class InsertCommentRequest
6703
+ include Google::Apis::Core::Hashable
6704
+
6705
+ # Optional. The email address of the assignee of the comment. Leave empty for a
6706
+ # non-assigned comment. May not exceed 2048 UTF-8 code units.
6707
+ # Corresponds to the JSON property `assigneeEmailAddress`
6708
+ # @return [String]
6709
+ attr_accessor :assignee_email_address
6710
+
6711
+ # The text of the comment, as plain text. This text content will be handled
6712
+ # similarly to comments created in the Sheets editor. It will have similar
6713
+ # behaviors for formatting, notifications, etc. This field cannot be empty, and
6714
+ # must not exceed 2048 UTF-8 code units.
6715
+ # Corresponds to the JSON property `content`
6716
+ # @return [String]
6717
+ attr_accessor :content
6718
+
6719
+ # A coordinate in a sheet. All indexes are zero-based.
6720
+ # Corresponds to the JSON property `coordinate`
6721
+ # @return [Google::Apis::SheetsV4::GridCoordinate]
6722
+ attr_accessor :coordinate
6723
+
6724
+ def initialize(**args)
6725
+ update!(**args)
6726
+ end
6727
+
6728
+ # Update properties of this object
6729
+ def update!(**args)
6730
+ @assignee_email_address = args[:assignee_email_address] if args.key?(:assignee_email_address)
6731
+ @content = args[:content] if args.key?(:content)
6732
+ @coordinate = args[:coordinate] if args.key?(:coordinate)
6733
+ end
6734
+ end
6735
+
6736
+ # The result of creating a comment.
6737
+ class InsertCommentResponse
6738
+ include Google::Apis::Core::Hashable
6739
+
6740
+ # Represents a single comment thread inside a spreadsheet.
6741
+ # Corresponds to the JSON property `commentThread`
6742
+ # @return [Google::Apis::SheetsV4::CommentThread]
6743
+ attr_accessor :comment_thread
6744
+
6745
+ def initialize(**args)
6746
+ update!(**args)
6747
+ end
6748
+
6749
+ # Update properties of this object
6750
+ def update!(**args)
6751
+ @comment_thread = args[:comment_thread] if args.key?(:comment_thread)
6752
+ end
6753
+ end
6754
+
6499
6755
  # Inserts rows or columns in a sheet at a particular index.
6500
6756
  class InsertDimensionRequest
6501
6757
  include Google::Apis::Core::Hashable
@@ -7929,6 +8185,140 @@ module Google
7929
8185
  end
7930
8186
  end
7931
8187
 
8188
+ # Represents a single post in a comment thread.
8189
+ class Post
8190
+ include Google::Apis::Core::Hashable
8191
+
8192
+ # Optional. The email of the user who is being newly assigned to the thread as
8193
+ # part of this post. Returns a 400 bad request error if: - The parent thread is
8194
+ # a CommentThread whose headPost does not have an assignee. - commentAction is
8195
+ # specified as `RESOLVE` or `REOPEN`. - `assignee_email` exceeds 2048 UTF-8 code
8196
+ # units.
8197
+ # Corresponds to the JSON property `assigneeEmail`
8198
+ # @return [String]
8199
+ attr_accessor :assignee_email
8200
+
8201
+ # Represents a user who authored a comment post.
8202
+ # Corresponds to the JSON property `author`
8203
+ # @return [Google::Apis::SheetsV4::PostAuthor]
8204
+ attr_accessor :author
8205
+
8206
+ # Action taken as part of creating the post.
8207
+ # Corresponds to the JSON property `commentAction`
8208
+ # @return [String]
8209
+ attr_accessor :comment_action
8210
+
8211
+ # The content of the post. Required to be non-empty if comment_action is not `
8212
+ # RESOLVE` or `REOPEN`. This text content will be handled similarly to comments
8213
+ # created in the Sheets editor. It will have similar behaviors for formatting,
8214
+ # notifications, etc. May not exceed 2048 UTF-8 code units.
8215
+ # Corresponds to the JSON property `content`
8216
+ # @return [String]
8217
+ attr_accessor :content
8218
+
8219
+ # Output only. The content of the post as HTML.
8220
+ # Corresponds to the JSON property `contentHtml`
8221
+ # @return [String]
8222
+ attr_accessor :content_html
8223
+
8224
+ # Output only. The time the post was created.
8225
+ # Corresponds to the JSON property `createTime`
8226
+ # @return [String]
8227
+ attr_accessor :create_time
8228
+
8229
+ # Output only. Whether the post is deleted. If `true`, content and author fields
8230
+ # will be empty.
8231
+ # Corresponds to the JSON property `deleted`
8232
+ # @return [Boolean]
8233
+ attr_accessor :deleted
8234
+ alias_method :deleted?, :deleted
8235
+
8236
+ # Output only. Whether the post is from a copied spreadsheet. This field cannot
8237
+ # be set directly by callers.
8238
+ # Corresponds to the JSON property `fromCopiedSpreadsheet`
8239
+ # @return [Boolean]
8240
+ attr_accessor :from_copied_spreadsheet
8241
+ alias_method :from_copied_spreadsheet?, :from_copied_spreadsheet
8242
+
8243
+ # Output only. Whether the post is from an imported spreadsheet. This field
8244
+ # cannot be set directly by callers.
8245
+ # Corresponds to the JSON property `fromImportedSpreadsheet`
8246
+ # @return [Boolean]
8247
+ attr_accessor :from_imported_spreadsheet
8248
+ alias_method :from_imported_spreadsheet?, :from_imported_spreadsheet
8249
+
8250
+ # Output only. The unique ID of the post.
8251
+ # Corresponds to the JSON property `postId`
8252
+ # @return [String]
8253
+ attr_accessor :post_id
8254
+
8255
+ # Output only. The time the post was last updated.
8256
+ # Corresponds to the JSON property `updateTime`
8257
+ # @return [String]
8258
+ attr_accessor :update_time
8259
+
8260
+ def initialize(**args)
8261
+ update!(**args)
8262
+ end
8263
+
8264
+ # Update properties of this object
8265
+ def update!(**args)
8266
+ @assignee_email = args[:assignee_email] if args.key?(:assignee_email)
8267
+ @author = args[:author] if args.key?(:author)
8268
+ @comment_action = args[:comment_action] if args.key?(:comment_action)
8269
+ @content = args[:content] if args.key?(:content)
8270
+ @content_html = args[:content_html] if args.key?(:content_html)
8271
+ @create_time = args[:create_time] if args.key?(:create_time)
8272
+ @deleted = args[:deleted] if args.key?(:deleted)
8273
+ @from_copied_spreadsheet = args[:from_copied_spreadsheet] if args.key?(:from_copied_spreadsheet)
8274
+ @from_imported_spreadsheet = args[:from_imported_spreadsheet] if args.key?(:from_imported_spreadsheet)
8275
+ @post_id = args[:post_id] if args.key?(:post_id)
8276
+ @update_time = args[:update_time] if args.key?(:update_time)
8277
+ end
8278
+ end
8279
+
8280
+ # Represents a user who authored a comment post.
8281
+ class PostAuthor
8282
+ include Google::Apis::Core::Hashable
8283
+
8284
+ # Whether the user is anonymous.
8285
+ # Corresponds to the JSON property `anonymous`
8286
+ # @return [Boolean]
8287
+ attr_accessor :anonymous
8288
+ alias_method :anonymous?, :anonymous
8289
+
8290
+ # The display name of the user. May be absent if the author is anonymous.
8291
+ # Corresponds to the JSON property `displayName`
8292
+ # @return [String]
8293
+ attr_accessor :display_name
8294
+
8295
+ # Whether the user is the authenticated user making the request.
8296
+ # Corresponds to the JSON property `me`
8297
+ # @return [Boolean]
8298
+ attr_accessor :me
8299
+ alias_method :me?, :me
8300
+
8301
+ # The resource name of the post author user, which can also be used to identify
8302
+ # the user in the [Google People API](https://developers.google.com/people/api/
8303
+ # rest/v1/people). Format: `users/`user``. Will not be populated if the
8304
+ # anonymous field is `true` or if the post is from an imported spreadsheet.
8305
+ # Corresponds to the JSON property `user`
8306
+ # @return [String]
8307
+ attr_accessor :user
8308
+
8309
+ def initialize(**args)
8310
+ update!(**args)
8311
+ end
8312
+
8313
+ # Update properties of this object
8314
+ def update!(**args)
8315
+ @anonymous = args[:anonymous] if args.key?(:anonymous)
8316
+ @display_name = args[:display_name] if args.key?(:display_name)
8317
+ @me = args[:me] if args.key?(:me)
8318
+ @user = args[:user] if args.key?(:user)
8319
+ end
8320
+ end
8321
+
7932
8322
  # A protected range.
7933
8323
  class ProtectedRange
7934
8324
  include Google::Apis::Core::Hashable
@@ -8244,6 +8634,11 @@ module Google
8244
8634
  # @return [Google::Apis::SheetsV4::AddChartRequest]
8245
8635
  attr_accessor :add_chart
8246
8636
 
8637
+ # Inserts a reply Post into a CommentThread.
8638
+ # Corresponds to the JSON property `addCommentReply`
8639
+ # @return [Google::Apis::SheetsV4::AddCommentReplyRequest]
8640
+ attr_accessor :add_comment_reply
8641
+
8247
8642
  # Adds a new conditional format rule at the given index. All subsequent rules'
8248
8643
  # indexes are incremented.
8249
8644
  # Corresponds to the JSON property `addConditionalFormatRule`
@@ -8363,6 +8758,19 @@ module Google
8363
8758
  # @return [Google::Apis::SheetsV4::DeleteBandingRequest]
8364
8759
  attr_accessor :delete_banding
8365
8760
 
8761
+ # Deletes a CommentThread. Returns a 400 bad request error if the requesting
8762
+ # user is not the author of the headPost.
8763
+ # Corresponds to the JSON property `deleteComment`
8764
+ # @return [Google::Apis::SheetsV4::DeleteCommentRequest]
8765
+ attr_accessor :delete_comment
8766
+
8767
+ # Deletes a reply Post from a CommentThread. Returns a 400 bad request error if:
8768
+ # - The requesting user is not the author of the post. - The reply post contains
8769
+ # a comment action. - The reply post contains an assignee.
8770
+ # Corresponds to the JSON property `deleteCommentReply`
8771
+ # @return [Google::Apis::SheetsV4::DeleteCommentReplyRequest]
8772
+ attr_accessor :delete_comment_reply
8773
+
8366
8774
  # Deletes a conditional format rule at the given index. All subsequent rules'
8367
8775
  # indexes are decremented.
8368
8776
  # Corresponds to the JSON property `deleteConditionalFormatRule`
@@ -8455,6 +8863,11 @@ module Google
8455
8863
  # @return [Google::Apis::SheetsV4::FindReplaceRequest]
8456
8864
  attr_accessor :find_replace
8457
8865
 
8866
+ # Inserts a CommentThread into the spreadsheet.
8867
+ # Corresponds to the JSON property `insertComment`
8868
+ # @return [Google::Apis::SheetsV4::InsertCommentRequest]
8869
+ attr_accessor :insert_comment
8870
+
8458
8871
  # Inserts rows or columns in a sheet at a particular index.
8459
8872
  # Corresponds to the JSON property `insertDimension`
8460
8873
  # @return [Google::Apis::SheetsV4::InsertDimensionRequest]
@@ -8570,6 +8983,12 @@ module Google
8570
8983
  # @return [Google::Apis::SheetsV4::UpdateChartSpecRequest]
8571
8984
  attr_accessor :update_chart_spec
8572
8985
 
8986
+ # Updates a Post in a CommentThread. Returns a 400 bad request error if: - The
8987
+ # requesting user is not the author of the post.
8988
+ # Corresponds to the JSON property `updateCommentPost`
8989
+ # @return [Google::Apis::SheetsV4::UpdateCommentPostRequest]
8990
+ attr_accessor :update_comment_post
8991
+
8573
8992
  # Updates a conditional format rule at the given index, or moves a conditional
8574
8993
  # format rule to another index.
8575
8994
  # Corresponds to the JSON property `updateConditionalFormatRule`
@@ -8658,6 +9077,7 @@ module Google
8658
9077
  def update!(**args)
8659
9078
  @add_banding = args[:add_banding] if args.key?(:add_banding)
8660
9079
  @add_chart = args[:add_chart] if args.key?(:add_chart)
9080
+ @add_comment_reply = args[:add_comment_reply] if args.key?(:add_comment_reply)
8661
9081
  @add_conditional_format_rule = args[:add_conditional_format_rule] if args.key?(:add_conditional_format_rule)
8662
9082
  @add_data_source = args[:add_data_source] if args.key?(:add_data_source)
8663
9083
  @add_dimension_group = args[:add_dimension_group] if args.key?(:add_dimension_group)
@@ -8677,6 +9097,8 @@ module Google
8677
9097
  @create_developer_metadata = args[:create_developer_metadata] if args.key?(:create_developer_metadata)
8678
9098
  @cut_paste = args[:cut_paste] if args.key?(:cut_paste)
8679
9099
  @delete_banding = args[:delete_banding] if args.key?(:delete_banding)
9100
+ @delete_comment = args[:delete_comment] if args.key?(:delete_comment)
9101
+ @delete_comment_reply = args[:delete_comment_reply] if args.key?(:delete_comment_reply)
8680
9102
  @delete_conditional_format_rule = args[:delete_conditional_format_rule] if args.key?(:delete_conditional_format_rule)
8681
9103
  @delete_data_source = args[:delete_data_source] if args.key?(:delete_data_source)
8682
9104
  @delete_developer_metadata = args[:delete_developer_metadata] if args.key?(:delete_developer_metadata)
@@ -8693,6 +9115,7 @@ module Google
8693
9115
  @duplicate_filter_view = args[:duplicate_filter_view] if args.key?(:duplicate_filter_view)
8694
9116
  @duplicate_sheet = args[:duplicate_sheet] if args.key?(:duplicate_sheet)
8695
9117
  @find_replace = args[:find_replace] if args.key?(:find_replace)
9118
+ @insert_comment = args[:insert_comment] if args.key?(:insert_comment)
8696
9119
  @insert_dimension = args[:insert_dimension] if args.key?(:insert_dimension)
8697
9120
  @insert_range = args[:insert_range] if args.key?(:insert_range)
8698
9121
  @merge_cells = args[:merge_cells] if args.key?(:merge_cells)
@@ -8711,6 +9134,7 @@ module Google
8711
9134
  @update_borders = args[:update_borders] if args.key?(:update_borders)
8712
9135
  @update_cells = args[:update_cells] if args.key?(:update_cells)
8713
9136
  @update_chart_spec = args[:update_chart_spec] if args.key?(:update_chart_spec)
9137
+ @update_comment_post = args[:update_comment_post] if args.key?(:update_comment_post)
8714
9138
  @update_conditional_format_rule = args[:update_conditional_format_rule] if args.key?(:update_conditional_format_rule)
8715
9139
  @update_data_source = args[:update_data_source] if args.key?(:update_data_source)
8716
9140
  @update_developer_metadata = args[:update_developer_metadata] if args.key?(:update_developer_metadata)
@@ -8742,6 +9166,11 @@ module Google
8742
9166
  # @return [Google::Apis::SheetsV4::AddChartResponse]
8743
9167
  attr_accessor :add_chart
8744
9168
 
9169
+ # The result of creating a reply.
9170
+ # Corresponds to the JSON property `addCommentReply`
9171
+ # @return [Google::Apis::SheetsV4::AddCommentReplyResponse]
9172
+ attr_accessor :add_comment_reply
9173
+
8745
9174
  # The result of adding a data source.
8746
9175
  # Corresponds to the JSON property `addDataSource`
8747
9176
  # @return [Google::Apis::SheetsV4::AddDataSourceResponse]
@@ -8827,6 +9256,11 @@ module Google
8827
9256
  # @return [Google::Apis::SheetsV4::FindReplaceResponse]
8828
9257
  attr_accessor :find_replace
8829
9258
 
9259
+ # The result of creating a comment.
9260
+ # Corresponds to the JSON property `insertComment`
9261
+ # @return [Google::Apis::SheetsV4::InsertCommentResponse]
9262
+ attr_accessor :insert_comment
9263
+
8830
9264
  # The response from refreshing one or multiple data source objects.
8831
9265
  # Corresponds to the JSON property `refreshDataSource`
8832
9266
  # @return [Google::Apis::SheetsV4::RefreshDataSourceResponse]
@@ -8865,6 +9299,7 @@ module Google
8865
9299
  def update!(**args)
8866
9300
  @add_banding = args[:add_banding] if args.key?(:add_banding)
8867
9301
  @add_chart = args[:add_chart] if args.key?(:add_chart)
9302
+ @add_comment_reply = args[:add_comment_reply] if args.key?(:add_comment_reply)
8868
9303
  @add_data_source = args[:add_data_source] if args.key?(:add_data_source)
8869
9304
  @add_dimension_group = args[:add_dimension_group] if args.key?(:add_dimension_group)
8870
9305
  @add_filter_view = args[:add_filter_view] if args.key?(:add_filter_view)
@@ -8882,6 +9317,7 @@ module Google
8882
9317
  @duplicate_filter_view = args[:duplicate_filter_view] if args.key?(:duplicate_filter_view)
8883
9318
  @duplicate_sheet = args[:duplicate_sheet] if args.key?(:duplicate_sheet)
8884
9319
  @find_replace = args[:find_replace] if args.key?(:find_replace)
9320
+ @insert_comment = args[:insert_comment] if args.key?(:insert_comment)
8885
9321
  @refresh_data_source = args[:refresh_data_source] if args.key?(:refresh_data_source)
8886
9322
  @trim_whitespace = args[:trim_whitespace] if args.key?(:trim_whitespace)
8887
9323
  @update_conditional_format_rule = args[:update_conditional_format_rule] if args.key?(:update_conditional_format_rule)
@@ -9144,6 +9580,11 @@ module Google
9144
9580
  # @return [Array<Google::Apis::SheetsV4::DimensionGroup>]
9145
9581
  attr_accessor :column_groups
9146
9582
 
9583
+ # The comment anchors on this sheet.
9584
+ # Corresponds to the JSON property `commentAnchors`
9585
+ # @return [Array<Google::Apis::SheetsV4::CommentAnchor>]
9586
+ attr_accessor :comment_anchors
9587
+
9147
9588
  # The conditional format rules in this sheet.
9148
9589
  # Corresponds to the JSON property `conditionalFormats`
9149
9590
  # @return [Array<Google::Apis::SheetsV4::ConditionalFormatRule>]
@@ -9212,6 +9653,7 @@ module Google
9212
9653
  @basic_filter = args[:basic_filter] if args.key?(:basic_filter)
9213
9654
  @charts = args[:charts] if args.key?(:charts)
9214
9655
  @column_groups = args[:column_groups] if args.key?(:column_groups)
9656
+ @comment_anchors = args[:comment_anchors] if args.key?(:comment_anchors)
9215
9657
  @conditional_formats = args[:conditional_formats] if args.key?(:conditional_formats)
9216
9658
  @data = args[:data] if args.key?(:data)
9217
9659
  @developer_metadata = args[:developer_metadata] if args.key?(:developer_metadata)
@@ -9740,6 +10182,16 @@ module Google
9740
10182
  class Spreadsheet
9741
10183
  include Google::Apis::Core::Hashable
9742
10184
 
10185
+ # The comment threads associated with the spreadsheet.
10186
+ # Corresponds to the JSON property `comments`
10187
+ # @return [Array<Google::Apis::SheetsV4::CommentThread>]
10188
+ attr_accessor :comments
10189
+
10190
+ # Output only. The comments view mode applied to the spreadsheet.
10191
+ # Corresponds to the JSON property `commentsViewMode`
10192
+ # @return [String]
10193
+ attr_accessor :comments_view_mode
10194
+
9743
10195
  # Output only. A list of data source refresh schedules.
9744
10196
  # Corresponds to the JSON property `dataSourceSchedules`
9745
10197
  # @return [Array<Google::Apis::SheetsV4::DataSourceRefreshSchedule>]
@@ -9786,6 +10238,8 @@ module Google
9786
10238
 
9787
10239
  # Update properties of this object
9788
10240
  def update!(**args)
10241
+ @comments = args[:comments] if args.key?(:comments)
10242
+ @comments_view_mode = args[:comments_view_mode] if args.key?(:comments_view_mode)
9789
10243
  @data_source_schedules = args[:data_source_schedules] if args.key?(:data_source_schedules)
9790
10244
  @data_sources = args[:data_sources] if args.key?(:data_sources)
9791
10245
  @developer_metadata = args[:developer_metadata] if args.key?(:developer_metadata)
@@ -10999,6 +11453,41 @@ module Google
10999
11453
  end
11000
11454
  end
11001
11455
 
11456
+ # Updates a Post in a CommentThread. Returns a 400 bad request error if: - The
11457
+ # requesting user is not the author of the post.
11458
+ class UpdateCommentPostRequest
11459
+ include Google::Apis::Core::Hashable
11460
+
11461
+ # The ID of the CommentThread which the post belongs to.
11462
+ # Corresponds to the JSON property `commentId`
11463
+ # @return [String]
11464
+ attr_accessor :comment_id
11465
+
11466
+ # The new text of the comment, as plain text. This text content will be handled
11467
+ # similarly to comments created in the Sheets editor. It will have similar
11468
+ # behaviors for formatting, notifications, etc. This field cannot be empty, and
11469
+ # must not exceed 2048 UTF-8 code units.
11470
+ # Corresponds to the JSON property `content`
11471
+ # @return [String]
11472
+ attr_accessor :content
11473
+
11474
+ # The ID of the post being updated.
11475
+ # Corresponds to the JSON property `postId`
11476
+ # @return [String]
11477
+ attr_accessor :post_id
11478
+
11479
+ def initialize(**args)
11480
+ update!(**args)
11481
+ end
11482
+
11483
+ # Update properties of this object
11484
+ def update!(**args)
11485
+ @comment_id = args[:comment_id] if args.key?(:comment_id)
11486
+ @content = args[:content] if args.key?(:content)
11487
+ @post_id = args[:post_id] if args.key?(:post_id)
11488
+ end
11489
+ end
11490
+
11002
11491
  # Updates a conditional format rule at the given index, or moves a conditional
11003
11492
  # format rule to another index.
11004
11493
  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.50.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.19.0"
22
+ GENERATOR_VERSION = "0.19.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20260213"
25
+ REVISION = "20260930"
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,10 @@ 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.
145
149
  # @param [Boolean] exclude_tables_in_banded_ranges
146
150
  # True if tables should be excluded in the banded ranges. False if not set.
147
151
  # @param [Boolean] include_grid_data
@@ -166,11 +170,12 @@ module Google
166
170
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
167
171
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
168
172
  # @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)
173
+ 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
174
  command = make_simple_command(:get, 'v4/spreadsheets/{spreadsheetId}', options)
171
175
  command.response_representation = Google::Apis::SheetsV4::Spreadsheet::Representation
172
176
  command.response_class = Google::Apis::SheetsV4::Spreadsheet
173
177
  command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
178
+ command.query['commentsViewMode'] = comments_view_mode unless comments_view_mode.nil?
174
179
  command.query['excludeTablesInBandedRanges'] = exclude_tables_in_banded_ranges unless exclude_tables_in_banded_ranges.nil?
175
180
  command.query['includeGridData'] = include_grid_data unless include_grid_data.nil?
176
181
  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.50.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.50.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: