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.



9759
9760
9761
# File 'lib/google/apis/sheets_v4/classes.rb', line 9759

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



9722
9723
9724
# File 'lib/google/apis/sheets_v4/classes.rb', line 9722

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



9727
9728
9729
# File 'lib/google/apis/sheets_v4/classes.rb', line 9727

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



9732
9733
9734
# File 'lib/google/apis/sheets_v4/classes.rb', line 9732

def 
  
end

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

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



9737
9738
9739
# File 'lib/google/apis/sheets_v4/classes.rb', line 9737

def named_ranges
  @named_ranges
end

#propertiesGoogle::Apis::SheetsV4::SpreadsheetProperties

Properties of a spreadsheet. Corresponds to the JSON property properties



9742
9743
9744
# File 'lib/google/apis/sheets_v4/classes.rb', line 9742

def properties
  @properties
end

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

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

Returns:



9747
9748
9749
# File 'lib/google/apis/sheets_v4/classes.rb', line 9747

def sheets
  @sheets
end

#spreadsheet_idString

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

Returns:

  • (String)


9752
9753
9754
# File 'lib/google/apis/sheets_v4/classes.rb', line 9752

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)


9757
9758
9759
# File 'lib/google/apis/sheets_v4/classes.rb', line 9757

def spreadsheet_url
  @spreadsheet_url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
# File 'lib/google/apis/sheets_v4/classes.rb', line 9764

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)
   = 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