Class: Google::Apis::SheetsV4::RefreshDataSourceRequest
- Inherits:
-
Object
- Object
- Google::Apis::SheetsV4::RefreshDataSourceRequest
- 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
Refreshes one or multiple data source objects in the spreadsheet by the
specified references. The request requires an additional bigquery.readonly
OAuth scope if you are refreshing a BigQuery data source. If there are
multiple refresh requests referencing the same data source objects in one
batch, only the last refresh request is processed, and all those requests will
have the same response accordingly.
Instance Attribute Summary collapse
-
#data_source_id ⇒ String
Reference to a DataSource.
-
#force ⇒ Boolean
(also: #force?)
Refreshes the data source objects regardless of the current state.
-
#is_all ⇒ Boolean
(also: #is_all?)
Refreshes all existing data source objects in the spreadsheet.
-
#references ⇒ Google::Apis::SheetsV4::DataSourceObjectReferences
A list of references to data source objects.
Instance Method Summary collapse
-
#initialize(**args) ⇒ RefreshDataSourceRequest
constructor
A new instance of RefreshDataSourceRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ RefreshDataSourceRequest
Returns a new instance of RefreshDataSourceRequest.
7934 7935 7936 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 7934 def initialize(**args) update!(**args) end |
Instance Attribute Details
#data_source_id ⇒ String
Reference to a DataSource. If specified, refreshes all associated data source
objects for the data source.
Corresponds to the JSON property dataSourceId
7913 7914 7915 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 7913 def data_source_id @data_source_id end |
#force ⇒ Boolean Also known as: force?
Refreshes the data source objects regardless of the current state. If not set
and a referenced data source object was in error state, the refresh will fail
immediately.
Corresponds to the JSON property force
7920 7921 7922 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 7920 def force @force end |
#is_all ⇒ Boolean Also known as: is_all?
Refreshes all existing data source objects in the spreadsheet.
Corresponds to the JSON property isAll
7926 7927 7928 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 7926 def is_all @is_all end |
#references ⇒ Google::Apis::SheetsV4::DataSourceObjectReferences
A list of references to data source objects.
Corresponds to the JSON property references
7932 7933 7934 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 7932 def references @references end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
7939 7940 7941 7942 7943 7944 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 7939 def update!(**args) @data_source_id = args[:data_source_id] if args.key?(:data_source_id) @force = args[:force] if args.key?(:force) @is_all = args[:is_all] if args.key?(:is_all) @references = args[:references] if args.key?(:references) end |