Class: Google::Apis::SheetsV4::AppendCellsRequest
- Inherits:
-
Object
- Object
- Google::Apis::SheetsV4::AppendCellsRequest
- 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
Adds new cells after the last row with data in a sheet, inserting new rows into the sheet if necessary.
Instance Attribute Summary collapse
-
#fields ⇒ String
The fields of CellData that should be updated.
-
#rows ⇒ Array<Google::Apis::SheetsV4::RowData>
The data to append.
-
#sheet_id ⇒ Fixnum
The sheet ID to append the data to.
-
#table_id ⇒ String
The ID of the table to append data to.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AppendCellsRequest
constructor
A new instance of AppendCellsRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AppendCellsRequest
Returns a new instance of AppendCellsRequest.
493 494 495 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 493 def initialize(**args) update!(**args) end |
Instance Attribute Details
#fields ⇒ String
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
475 476 477 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 475 def fields @fields end |
#rows ⇒ Array<Google::Apis::SheetsV4::RowData>
The data to append.
Corresponds to the JSON property rows
480 481 482 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 480 def rows @rows end |
#sheet_id ⇒ Fixnum
The sheet ID to append the data to.
Corresponds to the JSON property sheetId
485 486 487 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 485 def sheet_id @sheet_id end |
#table_id ⇒ String
The ID of the table to append data to. The data will be only appended to the
table body. This field also takes precedence over the sheet_id field.
Corresponds to the JSON property tableId
491 492 493 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 491 def table_id @table_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
498 499 500 501 502 503 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 498 def update!(**args) @fields = args[:fields] if args.key?(:fields) @rows = args[:rows] if args.key?(:rows) @sheet_id = args[:sheet_id] if args.key?(:sheet_id) @table_id = args[:table_id] if args.key?(:table_id) end |