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

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

Resource that represents a spreadsheet.

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

Returns a new instance of Spreadsheet.



8952
8953
8954
# File 'generated/google/apis/sheets_v4/classes.rb', line 8952

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



8915
8916
8917
# File 'generated/google/apis/sheets_v4/classes.rb', line 8915

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



8920
8921
8922
# File 'generated/google/apis/sheets_v4/classes.rb', line 8920

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



8925
8926
8927
# File 'generated/google/apis/sheets_v4/classes.rb', line 8925

def 
  @developer_metadata
end

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

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



8930
8931
8932
# File 'generated/google/apis/sheets_v4/classes.rb', line 8930

def named_ranges
  @named_ranges
end

#propertiesGoogle::Apis::SheetsV4::SpreadsheetProperties

Properties of a spreadsheet. Corresponds to the JSON property properties



8935
8936
8937
# File 'generated/google/apis/sheets_v4/classes.rb', line 8935

def properties
  @properties
end

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

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

Returns:



8940
8941
8942
# File 'generated/google/apis/sheets_v4/classes.rb', line 8940

def sheets
  @sheets
end

#spreadsheet_idString

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

Returns:

  • (String)


8945
8946
8947
# File 'generated/google/apis/sheets_v4/classes.rb', line 8945

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)


8950
8951
8952
# File 'generated/google/apis/sheets_v4/classes.rb', line 8950

def spreadsheet_url
  @spreadsheet_url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8957
8958
8959
8960
8961
8962
8963
8964
8965
8966
# File 'generated/google/apis/sheets_v4/classes.rb', line 8957

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