Class: Google::Apis::DocsV1::CreateHeaderRequest
- Inherits:
-
Object
- Object
- Google::Apis::DocsV1::CreateHeaderRequest
- 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
Creates a Header. The new header is applied to the SectionStyle at the location of the SectionBreak if specified, otherwise it is applied to the DocumentStyle. If a header of the specified type already exists, a 400 bad request error is returned.
Instance Attribute Summary collapse
-
#section_break_location ⇒ Google::Apis::DocsV1::Location
A particular location in the document.
-
#type ⇒ String
The type of header to create.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CreateHeaderRequest
constructor
A new instance of CreateHeaderRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CreateHeaderRequest
Returns a new instance of CreateHeaderRequest.
480 481 482 |
# File 'lib/google/apis/docs_v1/classes.rb', line 480 def initialize(**args) update!(**args) end |
Instance Attribute Details
#section_break_location ⇒ Google::Apis::DocsV1::Location
A particular location in the document.
Corresponds to the JSON property sectionBreakLocation
473 474 475 |
# File 'lib/google/apis/docs_v1/classes.rb', line 473 def section_break_location @section_break_location end |
#type ⇒ String
The type of header to create.
Corresponds to the JSON property type
478 479 480 |
# File 'lib/google/apis/docs_v1/classes.rb', line 478 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
485 486 487 488 |
# File 'lib/google/apis/docs_v1/classes.rb', line 485 def update!(**args) @section_break_location = args[:section_break_location] if args.key?(:section_break_location) @type = args[:type] if args.key?(:type) end |