Class: Google::Apis::DocsV1::CreateFooterRequest

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 Footer. The new footer will be applied to SectionStyle or the DocumentStyle. If a footer 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) ⇒ CreateFooterRequest

Returns a new instance of CreateFooterRequest.



380
381
382
# File 'generated/google/apis/docs_v1/classes.rb', line 380

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

Instance Attribute Details

#typeString

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

Returns:

  • (String)


378
379
380
# File 'generated/google/apis/docs_v1/classes.rb', line 378

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



385
386
387
# File 'generated/google/apis/docs_v1/classes.rb', line 385

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