class Google::Apis::SheetsV4::DuplicateSheetRequest
Duplicates the contents of a sheet.
Attributes
The zero-based index where the new sheet should be inserted. The index of all sheets after this are incremented. Corresponds to the JSON property `insertSheetIndex` @return [Fixnum]
If set, the ID of the new sheet. If not set, an ID is chosen. If set, the ID must not conflict with any existing sheet ID. If set, it must be non-negative. Corresponds to the JSON property `newSheetId` @return [Fixnum]
The name of the new sheet. If empty, a new name is chosen for you. Corresponds to the JSON property `newSheetName` @return [String]
The sheet to duplicate. If the source sheet is of DATA_SOURCE type, its backing DataSource
is also duplicated and associated with the new copy of the sheet. No data execution is triggered, the grid data of this sheet is also copied over but only available after the batch request completes. Corresponds to the JSON property `sourceSheetId` @return [Fixnum]
Public Class Methods
# File lib/google/apis/sheets_v4/classes.rb, line 5138 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/sheets_v4/classes.rb, line 5143 def update!(**args) @insert_sheet_index = args[:insert_sheet_index] if args.key?(:insert_sheet_index) @new_sheet_id = args[:new_sheet_id] if args.key?(:new_sheet_id) @new_sheet_name = args[:new_sheet_name] if args.key?(:new_sheet_name) @source_sheet_id = args[:source_sheet_id] if args.key?(:source_sheet_id) end