Class: Google::Apis::SheetsV4::Spreadsheet

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

Resource that represents a spreadsheet.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Spreadsheet

Returns a new instance of Spreadsheet.



9506
9507
9508
# File 'lib/google/apis/sheets_v4/classes.rb', line 9506

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

Instance Attribute Details

#data_source_schedulesArray<Google::Apis::SheetsV4::DataSourceRefreshSchedule>

Output only. A list of data source refresh schedules. Corresponds to the JSON property dataSourceSchedules



9469
9470
9471
# File 'lib/google/apis/sheets_v4/classes.rb', line 9469

def data_source_schedules
  @data_source_schedules
end

#data_sourcesArray<Google::Apis::SheetsV4::DataSource>

A list of external data sources connected with the spreadsheet. Corresponds to the JSON property dataSources



9474
9475
9476
# File 'lib/google/apis/sheets_v4/classes.rb', line 9474

def data_sources
  @data_sources
end

#developer_metadataArray<Google::Apis::SheetsV4::DeveloperMetadata>

The developer metadata associated with a spreadsheet. Corresponds to the JSON property developerMetadata



9479
9480
9481
# File 'lib/google/apis/sheets_v4/classes.rb', line 9479

def 
  @developer_metadata
end

#named_rangesArray<Google::Apis::SheetsV4::NamedRange>

The named ranges defined in a spreadsheet. Corresponds to the JSON property namedRanges



9484
9485
9486
# File 'lib/google/apis/sheets_v4/classes.rb', line 9484

def named_ranges
  @named_ranges
end

#propertiesGoogle::Apis::SheetsV4::SpreadsheetProperties

Properties of a spreadsheet. Corresponds to the JSON property properties



9489
9490
9491
# File 'lib/google/apis/sheets_v4/classes.rb', line 9489

def properties
  @properties
end

#sheetsArray<Google::Apis::SheetsV4::Sheet>

The sheets that are part of a spreadsheet. Corresponds to the JSON property sheets

Returns:



9494
9495
9496
# File 'lib/google/apis/sheets_v4/classes.rb', line 9494

def sheets
  @sheets
end

#spreadsheet_idString

The ID of the spreadsheet. This field is read-only. Corresponds to the JSON property spreadsheetId

Returns:

  • (String)


9499
9500
9501
# File 'lib/google/apis/sheets_v4/classes.rb', line 9499

def spreadsheet_id
  @spreadsheet_id
end

#spreadsheet_urlString

The url of the spreadsheet. This field is read-only. Corresponds to the JSON property spreadsheetUrl

Returns:

  • (String)


9504
9505
9506
# File 'lib/google/apis/sheets_v4/classes.rb', line 9504

def spreadsheet_url
  @spreadsheet_url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
# File 'lib/google/apis/sheets_v4/classes.rb', line 9511

def update!(**args)
  @data_source_schedules = args[:data_source_schedules] if args.key?(:data_source_schedules)
  @data_sources = args[:data_sources] if args.key?(:data_sources)
  @developer_metadata = args[:developer_metadata] if args.key?(:developer_metadata)
  @named_ranges = args[:named_ranges] if args.key?(:named_ranges)
  @properties = args[:properties] if args.key?(:properties)
  @sheets = args[:sheets] if args.key?(:sheets)
  @spreadsheet_id = args[:spreadsheet_id] if args.key?(:spreadsheet_id)
  @spreadsheet_url = args[:spreadsheet_url] if args.key?(:spreadsheet_url)
end