Class: Google::Apis::DocsV1::UpdateSectionStyleRequest
- Inherits:
-
Object
- Object
- Google::Apis::DocsV1::UpdateSectionStyleRequest
- 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 SectionStyle.
Instance Attribute Summary collapse
-
#fields ⇒ String
The fields that should be updated.
-
#range ⇒ Google::Apis::DocsV1::Range
Specifies a contiguous range of text.
-
#section_style ⇒ Google::Apis::DocsV1::SectionStyle
The styling that applies to a section.
Instance Method Summary collapse
-
#initialize(**args) ⇒ UpdateSectionStyleRequest
constructor
A new instance of UpdateSectionStyleRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ UpdateSectionStyleRequest
Returns a new instance of UpdateSectionStyleRequest.
6583 6584 6585 |
# File 'lib/google/apis/docs_v1/classes.rb', line 6583 def initialize(**args) update!(**args) end |
Instance Attribute Details
#fields ⇒ String
The fields that should be updated. At least one field must be specified. The
root section_style
is implied and must not be specified. A single "*"
can
be used as short-hand for listing every field. For example to update the left
margin, set fields
to "margin_left"
.
Corresponds to the JSON property fields
6571 6572 6573 |
# File 'lib/google/apis/docs_v1/classes.rb', line 6571 def fields @fields end |
#range ⇒ Google::Apis::DocsV1::Range
Specifies a contiguous range of text.
Corresponds to the JSON property range
6576 6577 6578 |
# File 'lib/google/apis/docs_v1/classes.rb', line 6576 def range @range end |
#section_style ⇒ Google::Apis::DocsV1::SectionStyle
The styling that applies to a section.
Corresponds to the JSON property sectionStyle
6581 6582 6583 |
# File 'lib/google/apis/docs_v1/classes.rb', line 6581 def section_style @section_style end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6588 6589 6590 6591 6592 |
# File 'lib/google/apis/docs_v1/classes.rb', line 6588 def update!(**args) @fields = args[:fields] if args.key?(:fields) @range = args[:range] if args.key?(:range) @section_style = args[:section_style] if args.key?(:section_style) end |