Class: Google::Apis::DocsV1::UpdateTableRowStyleRequest

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/docs_v1/classes.rb,
lib/google/apis/docs_v1/representations.rb,
lib/google/apis/docs_v1/representations.rb

Overview

Updates the TableRowStyle of rows in a table.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ UpdateTableRowStyleRequest

Returns a new instance of UpdateTableRowStyleRequest.



6712
6713
6714
# File 'lib/google/apis/docs_v1/classes.rb', line 6712

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

Instance Attribute Details

#fieldsString

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

Returns:

  • (String)


6694
6695
6696
# File 'lib/google/apis/docs_v1/classes.rb', line 6694

def fields
  @fields
end

#row_indicesArray<Fixnum>

The list of zero-based row indices whose style should be updated. If no indices are specified, all rows will be updated. Corresponds to the JSON property rowIndices

Returns:

  • (Array<Fixnum>)


6700
6701
6702
# File 'lib/google/apis/docs_v1/classes.rb', line 6700

def row_indices
  @row_indices
end

#table_row_styleGoogle::Apis::DocsV1::TableRowStyle

Styles that apply to a table row. Corresponds to the JSON property tableRowStyle



6705
6706
6707
# File 'lib/google/apis/docs_v1/classes.rb', line 6705

def table_row_style
  @table_row_style
end

#table_start_locationGoogle::Apis::DocsV1::Location

A particular location in the document. Corresponds to the JSON property tableStartLocation



6710
6711
6712
# File 'lib/google/apis/docs_v1/classes.rb', line 6710

def table_start_location
  @table_start_location
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6717
6718
6719
6720
6721
6722
# File 'lib/google/apis/docs_v1/classes.rb', line 6717

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