Class: Google::Apis::FusiontablesV1::Task

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

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

#kindString

Type of the resource. This is always "fusiontables#task". Corresponds to the JSON property kind

Returns:

  • (String)


805
806
807
# File 'generated/google/apis/fusiontables_v1/classes.rb', line 805

def kind
  @kind
end

#progressString

An indication of task progress. Corresponds to the JSON property progress

Returns:

  • (String)


810
811
812
# File 'generated/google/apis/fusiontables_v1/classes.rb', line 810

def progress
  @progress
end

#startedBoolean 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

Returns:

  • (Boolean)


816
817
818
# File 'generated/google/apis/fusiontables_v1/classes.rb', line 816

def started
  @started
end

#task_idFixnum

Identifier for the task. Corresponds to the JSON property taskId

Returns:

  • (Fixnum)


822
823
824
# File 'generated/google/apis/fusiontables_v1/classes.rb', line 822

def task_id
  @task_id
end

#typeString

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

Returns:

  • (String)


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