Class: Google::Apis::FusiontablesV2::Task
- Inherits:
-
Object
- Object
- Google::Apis::FusiontablesV2::Task
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/fusiontables_v2/classes.rb,
generated/google/apis/fusiontables_v2/representations.rb,
generated/google/apis/fusiontables_v2/representations.rb
Overview
A background task on a table, initiated for time- or resource-consuming operations such as changing column types or deleting all rows.
Instance Attribute Summary collapse
-
#kind ⇒ String
Type of the resource.
-
#progress ⇒ String
Task percentage completion.
-
#started ⇒ Boolean
(also: #started?)
false while the table is busy with some other task.
-
#task_id ⇒ String
Identifier for the task.
-
#type ⇒ String
Type of background task.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Task
constructor
A new instance of Task.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Task
Returns a new instance of Task.
905 906 907 |
# File 'generated/google/apis/fusiontables_v2/classes.rb', line 905 def initialize(**args) update!(**args) end |
Instance Attribute Details
#kind ⇒ String
Type of the resource. This is always "fusiontables#task".
Corresponds to the JSON property kind
881 882 883 |
# File 'generated/google/apis/fusiontables_v2/classes.rb', line 881 def kind @kind end |
#progress ⇒ String
Task percentage completion.
Corresponds to the JSON property progress
886 887 888 |
# File 'generated/google/apis/fusiontables_v2/classes.rb', line 886 def progress @progress end |
#started ⇒ Boolean Also known as: started?
false while the table is busy with some other task. true if this background
task is currently running.
Corresponds to the JSON property started
892 893 894 |
# File 'generated/google/apis/fusiontables_v2/classes.rb', line 892 def started @started end |
#task_id ⇒ String
Identifier for the task.
Corresponds to the JSON property taskId
898 899 900 |
# File 'generated/google/apis/fusiontables_v2/classes.rb', line 898 def task_id @task_id end |
#type ⇒ String
Type of background task.
Corresponds to the JSON property type
903 904 905 |
# File 'generated/google/apis/fusiontables_v2/classes.rb', line 903 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
910 911 912 913 914 915 916 |
# File 'generated/google/apis/fusiontables_v2/classes.rb', line 910 def update!(**args) @kind = args[:kind] if args.key?(:kind) @progress = args[:progress] if args.key?(:progress) @started = args[:started] if args.key?(:started) @task_id = args[:task_id] if args.key?(:task_id) @type = args[:type] if args.key?(:type) end |