Class: Google::Apis::DocsV1::CreateHeaderRequest
- Inherits:
-
Object
- Object
- Google::Apis::DocsV1::CreateHeaderRequest
- 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
Creates a Header. The new header will be applied to the DocumentStyle. If a header of the specified type already exists then a 400 bad request error will be returned.
Instance Attribute Summary collapse
-
#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.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ CreateHeaderRequest
Returns a new instance of CreateHeaderRequest
420 421 422 |
# File 'generated/google/apis/docs_v1/classes.rb', line 420 def initialize(**args) update!(**args) end |
Instance Attribute Details
#type ⇒ String
The type of header to create.
Corresponds to the JSON property type
418 419 420 |
# File 'generated/google/apis/docs_v1/classes.rb', line 418 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
425 426 427 |
# File 'generated/google/apis/docs_v1/classes.rb', line 425 def update!(**args) @type = args[:type] if args.key?(:type) end |