Class: Google::Apis::FusiontablesV2::Task

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

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.


905
906
907
# File 'generated/google/apis/fusiontables_v2/classes.rb', line 905

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)

881
882
883
# File 'generated/google/apis/fusiontables_v2/classes.rb', line 881

def kind
  @kind
end

#progressString

Task percentage completion. Corresponds to the JSON property progress

Returns:

  • (String)

886
887
888
# File 'generated/google/apis/fusiontables_v2/classes.rb', line 886

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)

892
893
894
# File 'generated/google/apis/fusiontables_v2/classes.rb', line 892

def started
  @started
end

#task_idString

Identifier for the task. Corresponds to the JSON property taskId

Returns:

  • (String)

898
899
900
# File 'generated/google/apis/fusiontables_v2/classes.rb', line 898

def task_id
  @task_id
end

#typeString

Type of background task. Corresponds to the JSON property type

Returns:

  • (String)

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