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.



9329
9330
9331
# File 'lib/google/apis/sheets_v4/classes.rb', line 9329

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



9292
9293
9294
# File 'lib/google/apis/sheets_v4/classes.rb', line 9292

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



9297
9298
9299
# File 'lib/google/apis/sheets_v4/classes.rb', line 9297

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



9302
9303
9304
# File 'lib/google/apis/sheets_v4/classes.rb', line 9302

def 
  @developer_metadata
end

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

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



9307
9308
9309
# File 'lib/google/apis/sheets_v4/classes.rb', line 9307

def named_ranges
  @named_ranges
end

#propertiesGoogle::Apis::SheetsV4::SpreadsheetProperties

Properties of a spreadsheet. Corresponds to the JSON property properties



9312
9313
9314
# File 'lib/google/apis/sheets_v4/classes.rb', line 9312

def properties
  @properties
end

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

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

Returns:



9317
9318
9319
# File 'lib/google/apis/sheets_v4/classes.rb', line 9317

def sheets
  @sheets
end

#spreadsheet_idString

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

Returns:

  • (String)


9322
9323
9324
# File 'lib/google/apis/sheets_v4/classes.rb', line 9322

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)


9327
9328
9329
# File 'lib/google/apis/sheets_v4/classes.rb', line 9327

def spreadsheet_url
  @spreadsheet_url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
# File 'lib/google/apis/sheets_v4/classes.rb', line 9334

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