Class: Google::Apis::SheetsV4::AppendCellsRequest
- Inherits:
-
Object
- Object
- Google::Apis::SheetsV4::AppendCellsRequest
- 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
-
#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.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AppendCellsRequest
constructor
A new instance of AppendCellsRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ AppendCellsRequest
Returns a new instance of AppendCellsRequest
3903 3904 3905 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 3903 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
3901 3902 3903 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 3901 def fields @fields end |
#rows ⇒ Array<Google::Apis::SheetsV4::RowData>
The data to append.
Corresponds to the JSON property rows
3893 3894 3895 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 3893 def rows @rows end |
#sheet_id ⇒ Fixnum
The sheet ID to append the data to.
Corresponds to the JSON property sheetId
3888 3889 3890 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 3888 def sheet_id @sheet_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3908 3909 3910 3911 3912 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 3908 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 |