Class: Google::Apis::DocsV1::UpdateDocumentStyleRequest
- Inherits:
-
Object
- Object
- Google::Apis::DocsV1::UpdateDocumentStyleRequest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/docs_v1/classes.rb,
generated/google/apis/docs_v1/representations.rb,
generated/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.
Instance Method Summary collapse
-
#initialize(**args) ⇒ UpdateDocumentStyleRequest
constructor
A new instance of UpdateDocumentStyleRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ UpdateDocumentStyleRequest
Returns a new instance of UpdateDocumentStyleRequest
5398 5399 5400 |
# File 'generated/google/apis/docs_v1/classes.rb', line 5398 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
5387 5388 5389 |
# File 'generated/google/apis/docs_v1/classes.rb', line 5387 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
5396 5397 5398 |
# File 'generated/google/apis/docs_v1/classes.rb', line 5396 def fields @fields end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5403 5404 5405 5406 |
# File 'generated/google/apis/docs_v1/classes.rb', line 5403 def update!(**args) @document_style = args[:document_style] if args.key?(:document_style) @fields = args[:fields] if args.key?(:fields) end |