Class: Google::Apis::SheetsV4::DuplicateSheetRequest
- Inherits:
-
Object
- Object
- Google::Apis::SheetsV4::DuplicateSheetRequest
- 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
Duplicates the contents of a sheet.
Instance Attribute Summary collapse
-
#insert_sheet_index ⇒ Fixnum
The zero-based index where the new sheet should be inserted.
-
#new_sheet_id ⇒ Fixnum
If set, the ID of the new sheet.
-
#new_sheet_name ⇒ String
The name of the new sheet.
-
#source_sheet_id ⇒ Fixnum
The sheet to duplicate.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DuplicateSheetRequest
constructor
A new instance of DuplicateSheetRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ DuplicateSheetRequest
Returns a new instance of DuplicateSheetRequest
3200 3201 3202 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 3200 def initialize(**args) update!(**args) end |
Instance Attribute Details
#insert_sheet_index ⇒ Fixnum
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
3198 3199 3200 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 3198 def insert_sheet_index @insert_sheet_index end |
#new_sheet_id ⇒ 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
3192 3193 3194 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 3192 def new_sheet_id @new_sheet_id end |
#new_sheet_name ⇒ String
The name of the new sheet. If empty, a new name is chosen for you.
Corresponds to the JSON property newSheetName
3180 3181 3182 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 3180 def new_sheet_name @new_sheet_name end |
#source_sheet_id ⇒ Fixnum
The sheet to duplicate.
Corresponds to the JSON property sourceSheetId
3185 3186 3187 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 3185 def source_sheet_id @source_sheet_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3205 3206 3207 3208 3209 3210 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 3205 def update!(**args) @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) @new_sheet_id = args[:new_sheet_id] if args.key?(:new_sheet_id) @insert_sheet_index = args[:insert_sheet_index] if args.key?(:insert_sheet_index) end |