Class: Google::Apis::SheetsV4::DataSource
- Inherits:
-
Object
- Object
- Google::Apis::SheetsV4::DataSource
- 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
Information about an external data source in the spreadsheet.
Instance Attribute Summary collapse
-
#calculated_columns ⇒ Array<Google::Apis::SheetsV4::DataSourceColumn>
All calculated columns in the data source.
-
#data_source_id ⇒ String
The spreadsheet-scoped unique ID that identifies the data source.
-
#sheet_id ⇒ Fixnum
The ID of the Sheet connected with the data source.
-
#spec ⇒ Google::Apis::SheetsV4::DataSourceSpec
This specifies the details of the data source.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DataSource
constructor
A new instance of DataSource.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ DataSource
Returns a new instance of DataSource.
3787 3788 3789 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 3787 def initialize(**args) update!(**args) end |
Instance Attribute Details
#calculated_columns ⇒ Array<Google::Apis::SheetsV4::DataSourceColumn>
All calculated columns in the data source.
Corresponds to the JSON property calculatedColumns
3765 3766 3767 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 3765 def calculated_columns @calculated_columns end |
#data_source_id ⇒ String
The spreadsheet-scoped unique ID that identifies the data source. Example:
1080547365.
Corresponds to the JSON property dataSourceId
3771 3772 3773 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 3771 def data_source_id @data_source_id end |
#sheet_id ⇒ Fixnum
The ID of the Sheet connected with the data source. The field cannot be
changed once set. When creating a data source, an associated DATA_SOURCE sheet
is also created, if the field is not specified, the ID of the created sheet
will be randomly generated.
Corresponds to the JSON property sheetId
3779 3780 3781 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 3779 def sheet_id @sheet_id end |
#spec ⇒ Google::Apis::SheetsV4::DataSourceSpec
This specifies the details of the data source. For example, for BigQuery, this
specifies information about the BigQuery source.
Corresponds to the JSON property spec
3785 3786 3787 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 3785 def spec @spec end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3792 3793 3794 3795 3796 3797 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 3792 def update!(**args) @calculated_columns = args[:calculated_columns] if args.key?(:calculated_columns) @data_source_id = args[:data_source_id] if args.key?(:data_source_id) @sheet_id = args[:sheet_id] if args.key?(:sheet_id) @spec = args[:spec] if args.key?(:spec) end |