class Google::Apis::DocsV1::CreateHeaderRequest
Creates a Header
. The new header is applied to the SectionStyle
at the location of the SectionBreak
if specificed, otherwise it is applied to the DocumentStyle
. If a header of the specified type already exists, a 400 bad request error is returned.
Attributes
section_break_location[RW]
A particular location in the document. Corresponds to the JSON property `sectionBreakLocation` @return [Google::Apis::DocsV1::Location]
type[RW]
The type of header to create. Corresponds to the JSON property `type` @return [String]
Public Class Methods
new(**args)
click to toggle source
# File lib/google/apis/docs_v1/classes.rb, line 455 def initialize(**args) update!(**args) end
Public Instance Methods
update!(**args)
click to toggle source
Update properties of this object
# File lib/google/apis/docs_v1/classes.rb, line 460 def update!(**args) @section_break_location = args[:section_break_location] if args.key?(:section_break_location) @type = args[:type] if args.key?(:type) end