Class: Google::Apis::FusiontablesV1::Task
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::FusiontablesV1::Task
 
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/fusiontables_v1/classes.rb,
 generated/google/apis/fusiontables_v1/representations.rb,
 generated/google/apis/fusiontables_v1/representations.rb
Overview
Specifies the identifier, name, and type of a task in a table.
Instance Attribute Summary collapse
- 
  
    
      #kind  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Type of the resource. 
- 
  
    
      #progress  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    An indication of task progress. 
- 
  
    
      #started  ⇒ Boolean 
    
    
      (also: #started?)
    
  
  
  
  
    
    
  
  
  
  
  
  
    false while the table is busy with some other task. 
- 
  
    
      #task_id  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    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
| 832 833 834 | # File 'generated/google/apis/fusiontables_v1/classes.rb', line 832 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
| 805 806 807 | # File 'generated/google/apis/fusiontables_v1/classes.rb', line 805 def kind @kind end | 
#progress ⇒ String
An indication of task progress.
Corresponds to the JSON property progress
| 810 811 812 | # File 'generated/google/apis/fusiontables_v1/classes.rb', line 810 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
| 816 817 818 | # File 'generated/google/apis/fusiontables_v1/classes.rb', line 816 def started @started end | 
#task_id ⇒ Fixnum
Identifier for the task.
Corresponds to the JSON property taskId
| 822 823 824 | # File 'generated/google/apis/fusiontables_v1/classes.rb', line 822 def task_id @task_id end | 
#type ⇒ String
Type of background task. One of  DELETE_ROWS Deletes one or more rows from the
table. ADD_ROWS "Adds one or more rows to a table. Includes importing data
into a new table and importing more rows into an existing table. ADD_COLUMN
Adds a new column to the table. CHANGE_TYPE Changes the type of a column.
Corresponds to the JSON property type
| 830 831 832 | # File 'generated/google/apis/fusiontables_v1/classes.rb', line 830 def type @type end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 837 838 839 840 841 842 843 | # File 'generated/google/apis/fusiontables_v1/classes.rb', line 837 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 |