Class: Google::Apis::SheetsV4::Spreadsheet
- Inherits:
-
Object
- Object
- Google::Apis::SheetsV4::Spreadsheet
- 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
-
#data_source_schedules ⇒ Array<Google::Apis::SheetsV4::DataSourceRefreshSchedule>
Output only.
-
#data_sources ⇒ Array<Google::Apis::SheetsV4::DataSource>
A list of external data sources connected with the spreadsheet.
-
#developer_metadata ⇒ Array<Google::Apis::SheetsV4::DeveloperMetadata>
The developer metadata associated with a spreadsheet.
-
#named_ranges ⇒ Array<Google::Apis::SheetsV4::NamedRange>
The named ranges defined in a spreadsheet.
-
#properties ⇒ Google::Apis::SheetsV4::SpreadsheetProperties
Properties of a spreadsheet.
-
#sheets ⇒ Array<Google::Apis::SheetsV4::Sheet>
The sheets that are part of a spreadsheet.
-
#spreadsheet_id ⇒ String
The ID of the spreadsheet.
-
#spreadsheet_url ⇒ String
The url of the spreadsheet.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Spreadsheet
constructor
A new instance of Spreadsheet.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Spreadsheet
Returns a new instance of Spreadsheet.
9498 9499 9500 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 9498 def initialize(**args) update!(**args) end |
Instance Attribute Details
#data_source_schedules ⇒ Array<Google::Apis::SheetsV4::DataSourceRefreshSchedule>
Output only. A list of data source refresh schedules.
Corresponds to the JSON property dataSourceSchedules
9461 9462 9463 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 9461 def data_source_schedules @data_source_schedules end |
#data_sources ⇒ Array<Google::Apis::SheetsV4::DataSource>
A list of external data sources connected with the spreadsheet.
Corresponds to the JSON property dataSources
9466 9467 9468 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 9466 def data_sources @data_sources end |
#developer_metadata ⇒ Array<Google::Apis::SheetsV4::DeveloperMetadata>
The developer metadata associated with a spreadsheet.
Corresponds to the JSON property developerMetadata
9471 9472 9473 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 9471 def @developer_metadata end |
#named_ranges ⇒ Array<Google::Apis::SheetsV4::NamedRange>
The named ranges defined in a spreadsheet.
Corresponds to the JSON property namedRanges
9476 9477 9478 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 9476 def named_ranges @named_ranges end |
#properties ⇒ Google::Apis::SheetsV4::SpreadsheetProperties
Properties of a spreadsheet.
Corresponds to the JSON property properties
9481 9482 9483 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 9481 def properties @properties end |
#sheets ⇒ Array<Google::Apis::SheetsV4::Sheet>
The sheets that are part of a spreadsheet.
Corresponds to the JSON property sheets
9486 9487 9488 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 9486 def sheets @sheets end |
#spreadsheet_id ⇒ String
The ID of the spreadsheet. This field is read-only.
Corresponds to the JSON property spreadsheetId
9491 9492 9493 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 9491 def spreadsheet_id @spreadsheet_id end |
#spreadsheet_url ⇒ String
The url of the spreadsheet. This field is read-only.
Corresponds to the JSON property spreadsheetUrl
9496 9497 9498 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 9496 def spreadsheet_url @spreadsheet_url end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
9503 9504 9505 9506 9507 9508 9509 9510 9511 9512 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 9503 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 |