Class: Google::Apis::DocsV1::DeleteHeaderRequest

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

Deletes a Header from the document.

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) ⇒ DeleteHeaderRequest

Returns a new instance of DeleteHeaderRequest.



761
762
763
# File 'generated/google/apis/docs_v1/classes.rb', line 761

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

Instance Attribute Details

#header_idString

The id of the header to delete. If this header is defined on DocumentStyle, the reference to this header is removed, resulting in no header of that type for the first section of the document. If this header is defined on a SectionStyle, the reference to this header is removed and the header of that type is now continued from the previous section. Corresponds to the JSON property headerId

Returns:

  • (String)


759
760
761
# File 'generated/google/apis/docs_v1/classes.rb', line 759

def header_id
  @header_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



766
767
768
# File 'generated/google/apis/docs_v1/classes.rb', line 766

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