google-apis-docs_v1 0.47.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.
@@ -131,6 +131,19 @@ module Google
131
131
  # Gets the latest version of the specified document.
132
132
  # @param [String] document_id
133
133
  # The ID of the document to retrieve.
134
+ # @param [String] comments_view_mode
135
+ # The comments view mode to apply to the document. This allows viewing the
136
+ # document with comments omitted or included. If one is not specified,
137
+ # COMMENTS_VIEW_MODE_OMITTED is used. If you set comments_view_mode to any value,
138
+ # you must also set include_tabs_content to `true` or use a field mask that
139
+ # references the Document.tabs field (or any subfield). If you set
140
+ # comments_view_mode to COMMENTS_VIEW_MODE_INCLUDED, you must also explicitly
141
+ # set suggestions_view_mode to SUGGESTIONS_INLINE. If you set comments_view_mode
142
+ # to COMMENTS_VIEW_MODE_INCLUDED or
143
+ # COMMENTS_VIEW_MODE_DEFAULT_FOR_CURRENT_ACCESS, you may not set
144
+ # suggestions_view_mode to PREVIEW_WITHOUT_SUGGESTIONS or
145
+ # PREVIEW_SUGGESTIONS_ACCEPTED. [Developer Preview](https://developers.google.
146
+ # com/workspace/preview).
134
147
  # @param [Boolean] include_tabs_content
135
148
  # Whether to populate the `Document.tabs` field instead of the text content
136
149
  # fields like `body` and `documentStyle` on `Document`. - When `true`: Document
@@ -162,11 +175,12 @@ module Google
162
175
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
163
176
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
164
177
  # @raise [Google::Apis::AuthorizationError] Authorization is required
165
- def get_document(document_id, include_tabs_content: nil, suggestions_view_mode: nil, fields: nil, quota_user: nil, options: nil, &block)
178
+ def get_document(document_id, comments_view_mode: nil, include_tabs_content: nil, suggestions_view_mode: nil, fields: nil, quota_user: nil, options: nil, &block)
166
179
  command = make_simple_command(:get, 'v1/documents/{documentId}', options)
167
180
  command.response_representation = Google::Apis::DocsV1::Document::Representation
168
181
  command.response_class = Google::Apis::DocsV1::Document
169
182
  command.params['documentId'] = document_id unless document_id.nil?
183
+ command.query['commentsViewMode'] = comments_view_mode unless comments_view_mode.nil?
170
184
  command.query['includeTabsContent'] = include_tabs_content unless include_tabs_content.nil?
171
185
  command.query['suggestionsViewMode'] = suggestions_view_mode unless suggestions_view_mode.nil?
172
186
  command.query['fields'] = fields unless fields.nil?
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-docs_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.47.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-docs_v1/CHANGELOG.md
60
- documentation_uri: https://googleapis.dev/ruby/google-apis-docs_v1/v0.47.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-docs_v1/v0.49.0
61
61
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-docs_v1
62
62
  rdoc_options: []
63
63
  require_paths: