Class: Google::Apis::DocsV1::CreateHeaderRequest

Inherits:
Object
  • Object
show all
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 SectionStyle or the DocumentStyle. If a header of the specified type already exists then a 400 bad request error will be returned.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ CreateHeaderRequest

Returns a new instance of CreateHeaderRequest.



422
423
424
# File 'generated/google/apis/docs_v1/classes.rb', line 422

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

Instance Attribute Details

#typeString

The type of header to create. Corresponds to the JSON property type

Returns:

  • (String)


420
421
422
# File 'generated/google/apis/docs_v1/classes.rb', line 420

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



427
428
429
# File 'generated/google/apis/docs_v1/classes.rb', line 427

def update!(**args)
  @type = args[:type] if args.key?(:type)
end