Class: Google::Apis::DocsV1::UpdateSectionStyleRequest

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ UpdateSectionStyleRequest

Returns a new instance of UpdateSectionStyleRequest.



6076
6077
6078
# File 'lib/google/apis/docs_v1/classes.rb', line 6076

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#fieldsString

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

Returns:

  • (String)


6064
6065
6066
# File 'lib/google/apis/docs_v1/classes.rb', line 6064

def fields
  @fields
end

#rangeGoogle::Apis::DocsV1::Range

Specifies a contiguous range of text. Corresponds to the JSON property range



6069
6070
6071
# File 'lib/google/apis/docs_v1/classes.rb', line 6069

def range
  @range
end

#section_styleGoogle::Apis::DocsV1::SectionStyle

The styling that applies to a section. Corresponds to the JSON property sectionStyle



6074
6075
6076
# File 'lib/google/apis/docs_v1/classes.rb', line 6074

def section_style
  @section_style
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6081
6082
6083
6084
6085
# File 'lib/google/apis/docs_v1/classes.rb', line 6081

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