Class: Google::Apis::DocsV1::UpdateDocumentStyleRequest

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

Updates the DocumentStyle.

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

Returns a new instance of UpdateDocumentStyleRequest.



6075
6076
6077
# File 'generated/google/apis/docs_v1/classes.rb', line 6075

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

Instance Attribute Details

#document_styleGoogle::Apis::DocsV1::DocumentStyle

The style of the document. Corresponds to the JSON property documentStyle



6064
6065
6066
# File 'generated/google/apis/docs_v1/classes.rb', line 6064

def document_style
  @document_style
end

#fieldsString

The fields that should be updated. At least one field must be specified. The root document_style is implied and should not be specified. A single "*" can be used as short-hand for listing every field. For example to update the background, set fields to "background". Corresponds to the JSON property fields

Returns:

  • (String)


6073
6074
6075
# File 'generated/google/apis/docs_v1/classes.rb', line 6073

def fields
  @fields
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6080
6081
6082
6083
# File 'generated/google/apis/docs_v1/classes.rb', line 6080

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