Class: Google::Apis::SheetsV4::DeleteSheetRequest

Inherits:
Object
  • Object
show all
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

Deletes the requested sheet.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DeleteSheetRequest

Returns a new instance of DeleteSheetRequest.



4759
4760
4761
# File 'lib/google/apis/sheets_v4/classes.rb', line 4759

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

Instance Attribute Details

#sheet_idFixnum

The ID of the sheet to delete. If the sheet is of DATA_SOURCE type, the associated DataSource is also deleted. Corresponds to the JSON property sheetId

Returns:

  • (Fixnum)


4757
4758
4759
# File 'lib/google/apis/sheets_v4/classes.rb', line 4757

def sheet_id
  @sheet_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4764
4765
4766
# File 'lib/google/apis/sheets_v4/classes.rb', line 4764

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