Class: Google::Apis::DocsV1::UpdateDocumentStyleRequest
- Inherits:
-
Object
- Object
- Google::Apis::DocsV1::UpdateDocumentStyleRequest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/docs_v1/classes.rb,
lib/google/apis/docs_v1/representations.rb,
lib/google/apis/docs_v1/representations.rb
Overview
Updates the DocumentStyle.
Instance Attribute Summary collapse
-
#document_style ⇒ Google::Apis::DocsV1::DocumentStyle
The style of the document.
-
#fields ⇒ String
The fields that should be updated.
-
#tab_id ⇒ String
The tab that contains the style to update.
Instance Method Summary collapse
-
#initialize(**args) ⇒ UpdateDocumentStyleRequest
constructor
A new instance of UpdateDocumentStyleRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ UpdateDocumentStyleRequest
Returns a new instance of UpdateDocumentStyleRequest.
6604 6605 6606 |
# File 'lib/google/apis/docs_v1/classes.rb', line 6604 def initialize(**args) update!(**args) end |
Instance Attribute Details
#document_style ⇒ Google::Apis::DocsV1::DocumentStyle
The style of the document.
Corresponds to the JSON property documentStyle
6584 6585 6586 |
# File 'lib/google/apis/docs_v1/classes.rb', line 6584 def document_style @document_style end |
#fields ⇒ String
The fields that should be updated. At least one field must be specified. The
root document_style is implied and should not be specified. A single "*"
can be used as short-hand for listing every field. For example to update the
background, set fields to "background".
Corresponds to the JSON property fields
6592 6593 6594 |
# File 'lib/google/apis/docs_v1/classes.rb', line 6592 def fields @fields end |
#tab_id ⇒ String
The tab that contains the style to update. When omitted, the request applies
to the first tab. In a document containing a single tab: - If provided, must
match the singular tab's ID. - If omitted, the request applies to the singular
tab. In a document containing multiple tabs: - If provided, the request
applies to the specified tab. - If not provided, the request applies to the
first tab in the document.
Corresponds to the JSON property tabId
6602 6603 6604 |
# File 'lib/google/apis/docs_v1/classes.rb', line 6602 def tab_id @tab_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6609 6610 6611 6612 6613 |
# File 'lib/google/apis/docs_v1/classes.rb', line 6609 def update!(**args) @document_style = args[:document_style] if args.key?(:document_style) @fields = args[:fields] if args.key?(:fields) @tab_id = args[:tab_id] if args.key?(:tab_id) end |