Class: Google::Apis::SheetsV4::DataSourceSheetProperties
- Inherits:
-
Object
- Object
- Google::Apis::SheetsV4::DataSourceSheetProperties
- 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
Additional properties of a DATA_SOURCE sheet.
Instance Attribute Summary collapse
-
#columns ⇒ Array<Google::Apis::SheetsV4::DataSourceColumn>
The columns displayed on the sheet, corresponding to the values in RowData.
-
#data_execution_status ⇒ Google::Apis::SheetsV4::DataExecutionStatus
The data execution status.
-
#data_source_id ⇒ String
ID of the DataSource the sheet is connected to.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DataSourceSheetProperties
constructor
A new instance of DataSourceSheetProperties.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ DataSourceSheetProperties
Returns a new instance of DataSourceSheetProperties.
4297 4298 4299 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 4297 def initialize(**args) update!(**args) end |
Instance Attribute Details
#columns ⇒ Array<Google::Apis::SheetsV4::DataSourceColumn>
The columns displayed on the sheet, corresponding to the values in RowData.
Corresponds to the JSON property columns
4277 4278 4279 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 4277 def columns @columns end |
#data_execution_status ⇒ Google::Apis::SheetsV4::DataExecutionStatus
The data execution status. A data execution is created to sync a data source
object with the latest data from a DataSource. It is usually scheduled to run
at background, you can check its state to tell if an execution completes There
are several scenarios where a data execution is triggered to run: * Adding a
data source creates an associated data source sheet as well as a data
execution to sync the data from the data source to the sheet. * Updating a
data source creates a data execution to refresh the associated data source
sheet similarly. * You can send refresh request to explicitly refresh one or
multiple data source objects.
Corresponds to the JSON property dataExecutionStatus
4290 4291 4292 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 4290 def data_execution_status @data_execution_status end |
#data_source_id ⇒ String
ID of the DataSource the sheet is connected to.
Corresponds to the JSON property dataSourceId
4295 4296 4297 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 4295 def data_source_id @data_source_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4302 4303 4304 4305 4306 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 4302 def update!(**args) @columns = args[:columns] if args.key?(:columns) @data_execution_status = args[:data_execution_status] if args.key?(:data_execution_status) @data_source_id = args[:data_source_id] if args.key?(:data_source_id) end |