Class: Google::Apis::SheetsV4::AppendCellsRequest

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

Overview

Adds new cells after the last row with data in a sheet, inserting new rows into the sheet if necessary.

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

Returns a new instance of AppendCellsRequest.



3881
3882
3883
# File 'generated/google/apis/sheets_v4/classes.rb', line 3881

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

Instance Attribute Details

#fieldsString

The fields of CellData that should be updated. At least one field must be specified. The root is the CellData; 'row.values.' should not be specified. A single "*" can be used as short-hand for listing every field. Corresponds to the JSON property fields

Returns:

  • (String)


3879
3880
3881
# File 'generated/google/apis/sheets_v4/classes.rb', line 3879

def fields
  @fields
end

#rowsArray<Google::Apis::SheetsV4::RowData>

The data to append. Corresponds to the JSON property rows



3871
3872
3873
# File 'generated/google/apis/sheets_v4/classes.rb', line 3871

def rows
  @rows
end

#sheet_idFixnum

The sheet ID to append the data to. Corresponds to the JSON property sheetId

Returns:

  • (Fixnum)


3866
3867
3868
# File 'generated/google/apis/sheets_v4/classes.rb', line 3866

def sheet_id
  @sheet_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3886
3887
3888
3889
3890
# File 'generated/google/apis/sheets_v4/classes.rb', line 3886

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