Class: Google::Apis::SheetsV4::CopySheetToAnotherSpreadsheetRequest

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

The request to copy a sheet across spreadsheets.

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

Returns a new instance of CopySheetToAnotherSpreadsheetRequest.



3296
3297
3298
# File 'generated/google/apis/sheets_v4/classes.rb', line 3296

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

Instance Attribute Details

#destination_spreadsheet_idString

The ID of the spreadsheet to copy the sheet to. Corresponds to the JSON property destinationSpreadsheetId

Returns:

  • (String)


3294
3295
3296
# File 'generated/google/apis/sheets_v4/classes.rb', line 3294

def destination_spreadsheet_id
  @destination_spreadsheet_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3301
3302
3303
# File 'generated/google/apis/sheets_v4/classes.rb', line 3301

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