Class: Google::Apis::SheetsV4::UpdateTableRequest

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

Overview

Updates a table in the spreadsheet.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ UpdateTableRequest



11523
11524
11525
# File 'lib/google/apis/sheets_v4/classes.rb', line 11523

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

Instance Attribute Details

#fieldsString

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



11516
11517
11518
# File 'lib/google/apis/sheets_v4/classes.rb', line 11516

def fields
  @fields
end

#tableGoogle::Apis::SheetsV4::Table

A table. Corresponds to the JSON property table



11521
11522
11523
# File 'lib/google/apis/sheets_v4/classes.rb', line 11521

def table
  @table
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



11528
11529
11530
11531
# File 'lib/google/apis/sheets_v4/classes.rb', line 11528

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