Class: Google::Apis::SheetsV4::UpdateDataSourceRequest
- Inherits:
-
Object
- Object
- Google::Apis::SheetsV4::UpdateDataSourceRequest
- 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
Updates a data source. After the data source is updated successfully, an
execution is triggered to refresh the associated DATA_SOURCE sheet to read
data from the updated data source. The request requires an additional
bigquery.readonly
OAuth scope.
Instance Attribute Summary collapse
-
#data_source ⇒ Google::Apis::SheetsV4::DataSource
Information about an external data source in the spreadsheet.
-
#fields ⇒ String
The fields that should be updated.
Instance Method Summary collapse
-
#initialize(**args) ⇒ UpdateDataSourceRequest
constructor
A new instance of UpdateDataSourceRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ UpdateDataSourceRequest
Returns a new instance of UpdateDataSourceRequest.
10479 10480 10481 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 10479 def initialize(**args) update!(**args) end |
Instance Attribute Details
#data_source ⇒ Google::Apis::SheetsV4::DataSource
Information about an external data source in the spreadsheet.
Corresponds to the JSON property dataSource
10470 10471 10472 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 10470 def data_source @data_source end |
#fields ⇒ String
The fields that should be updated. At least one field must be specified. The
root dataSource
is implied and should not be specified. A single "*"
can
be used as short-hand for listing every field.
Corresponds to the JSON property fields
10477 10478 10479 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 10477 def fields @fields end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
10484 10485 10486 10487 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 10484 def update!(**args) @data_source = args[:data_source] if args.key?(:data_source) @fields = args[:fields] if args.key?(:fields) end |