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 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



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

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

Instance Attribute Details

#typeString

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

Returns:

  • (String)


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

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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