Class: Google::Cloud::Bigquery::Migration::V2::MigrationTask

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/bigquery/migration/v2/migration_entities.rb

Overview

A single task for a migration which has details about the configuration of the task.

Defined Under Namespace

Modules: State

Instance Attribute Summary collapse

Instance Attribute Details

#create_time::Google::Protobuf::Timestamp

Returns Time when the task was created.

Returns:



144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
# File 'proto_docs/google/cloud/bigquery/migration/v2/migration_entities.rb', line 144

class MigrationTask
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Possible states of a migration task.
  module State
    # The state is unspecified.
    STATE_UNSPECIFIED = 0

    # The task is waiting for orchestration.
    PENDING = 1

    # The task is assigned to an orchestrator.
    ORCHESTRATING = 2

    # The task is running, i.e. its subtasks are ready for execution.
    RUNNING = 3

    # Tha task is paused. Assigned subtasks can continue, but no new subtasks
    # will be scheduled.
    PAUSED = 4

    # The task finished successfully.
    SUCCEEDED = 5

    # The task finished unsuccessfully.
    FAILED = 6
  end
end

#id::String (readonly)

Returns Output only. Immutable. The unique identifier for the migration task. The ID is server-generated.

Returns:

  • (::String)

    Output only. Immutable. The unique identifier for the migration task. The ID is server-generated.



144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
# File 'proto_docs/google/cloud/bigquery/migration/v2/migration_entities.rb', line 144

class MigrationTask
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Possible states of a migration task.
  module State
    # The state is unspecified.
    STATE_UNSPECIFIED = 0

    # The task is waiting for orchestration.
    PENDING = 1

    # The task is assigned to an orchestrator.
    ORCHESTRATING = 2

    # The task is running, i.e. its subtasks are ready for execution.
    RUNNING = 3

    # Tha task is paused. Assigned subtasks can continue, but no new subtasks
    # will be scheduled.
    PAUSED = 4

    # The task finished successfully.
    SUCCEEDED = 5

    # The task finished unsuccessfully.
    FAILED = 6
  end
end

#last_update_time::Google::Protobuf::Timestamp

Returns Time when the task was last updated.

Returns:



144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
# File 'proto_docs/google/cloud/bigquery/migration/v2/migration_entities.rb', line 144

class MigrationTask
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Possible states of a migration task.
  module State
    # The state is unspecified.
    STATE_UNSPECIFIED = 0

    # The task is waiting for orchestration.
    PENDING = 1

    # The task is assigned to an orchestrator.
    ORCHESTRATING = 2

    # The task is running, i.e. its subtasks are ready for execution.
    RUNNING = 3

    # Tha task is paused. Assigned subtasks can continue, but no new subtasks
    # will be scheduled.
    PAUSED = 4

    # The task finished successfully.
    SUCCEEDED = 5

    # The task finished unsuccessfully.
    FAILED = 6
  end
end

#metrics::Array<::Google::Cloud::Bigquery::Migration::V2::TimeSeries>

Returns The metrics for the task.

Returns:



144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
# File 'proto_docs/google/cloud/bigquery/migration/v2/migration_entities.rb', line 144

class MigrationTask
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Possible states of a migration task.
  module State
    # The state is unspecified.
    STATE_UNSPECIFIED = 0

    # The task is waiting for orchestration.
    PENDING = 1

    # The task is assigned to an orchestrator.
    ORCHESTRATING = 2

    # The task is running, i.e. its subtasks are ready for execution.
    RUNNING = 3

    # Tha task is paused. Assigned subtasks can continue, but no new subtasks
    # will be scheduled.
    PAUSED = 4

    # The task finished successfully.
    SUCCEEDED = 5

    # The task finished unsuccessfully.
    FAILED = 6
  end
end

#processing_error::Google::Rpc::ErrorInfo (readonly)

Returns Output only. An explanation that may be populated when the task is in FAILED state.

Returns:



144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
# File 'proto_docs/google/cloud/bigquery/migration/v2/migration_entities.rb', line 144

class MigrationTask
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Possible states of a migration task.
  module State
    # The state is unspecified.
    STATE_UNSPECIFIED = 0

    # The task is waiting for orchestration.
    PENDING = 1

    # The task is assigned to an orchestrator.
    ORCHESTRATING = 2

    # The task is running, i.e. its subtasks are ready for execution.
    RUNNING = 3

    # Tha task is paused. Assigned subtasks can continue, but no new subtasks
    # will be scheduled.
    PAUSED = 4

    # The task finished successfully.
    SUCCEEDED = 5

    # The task finished unsuccessfully.
    FAILED = 6
  end
end

#resource_error_count::Integer

Returns The number or resources with errors. Note: This is not the total number of errors as each resource can have more than one error. This is used to indicate truncation by having a resource_error_count that is higher than the size of resource_error_details.

Returns:

  • (::Integer)

    The number or resources with errors. Note: This is not the total number of errors as each resource can have more than one error. This is used to indicate truncation by having a resource_error_count that is higher than the size of resource_error_details.



144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
# File 'proto_docs/google/cloud/bigquery/migration/v2/migration_entities.rb', line 144

class MigrationTask
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Possible states of a migration task.
  module State
    # The state is unspecified.
    STATE_UNSPECIFIED = 0

    # The task is waiting for orchestration.
    PENDING = 1

    # The task is assigned to an orchestrator.
    ORCHESTRATING = 2

    # The task is running, i.e. its subtasks are ready for execution.
    RUNNING = 3

    # Tha task is paused. Assigned subtasks can continue, but no new subtasks
    # will be scheduled.
    PAUSED = 4

    # The task finished successfully.
    SUCCEEDED = 5

    # The task finished unsuccessfully.
    FAILED = 6
  end
end

#resource_error_details::Array<::Google::Cloud::Bigquery::Migration::V2::ResourceErrorDetail> (readonly)

Returns Output only. Provides details to errors and issues encountered while processing the task. Presence of error details does not mean that the task failed.

Returns:



144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
# File 'proto_docs/google/cloud/bigquery/migration/v2/migration_entities.rb', line 144

class MigrationTask
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Possible states of a migration task.
  module State
    # The state is unspecified.
    STATE_UNSPECIFIED = 0

    # The task is waiting for orchestration.
    PENDING = 1

    # The task is assigned to an orchestrator.
    ORCHESTRATING = 2

    # The task is running, i.e. its subtasks are ready for execution.
    RUNNING = 3

    # Tha task is paused. Assigned subtasks can continue, but no new subtasks
    # will be scheduled.
    PAUSED = 4

    # The task finished successfully.
    SUCCEEDED = 5

    # The task finished unsuccessfully.
    FAILED = 6
  end
end

#state::Google::Cloud::Bigquery::Migration::V2::MigrationTask::State (readonly)

Returns Output only. The current state of the task.

Returns:



144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
# File 'proto_docs/google/cloud/bigquery/migration/v2/migration_entities.rb', line 144

class MigrationTask
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Possible states of a migration task.
  module State
    # The state is unspecified.
    STATE_UNSPECIFIED = 0

    # The task is waiting for orchestration.
    PENDING = 1

    # The task is assigned to an orchestrator.
    ORCHESTRATING = 2

    # The task is running, i.e. its subtasks are ready for execution.
    RUNNING = 3

    # Tha task is paused. Assigned subtasks can continue, but no new subtasks
    # will be scheduled.
    PAUSED = 4

    # The task finished successfully.
    SUCCEEDED = 5

    # The task finished unsuccessfully.
    FAILED = 6
  end
end

#task_result::Google::Cloud::Bigquery::Migration::V2::MigrationTaskResult (readonly)

Returns Output only. The result of the task.

Returns:



144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
# File 'proto_docs/google/cloud/bigquery/migration/v2/migration_entities.rb', line 144

class MigrationTask
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Possible states of a migration task.
  module State
    # The state is unspecified.
    STATE_UNSPECIFIED = 0

    # The task is waiting for orchestration.
    PENDING = 1

    # The task is assigned to an orchestrator.
    ORCHESTRATING = 2

    # The task is running, i.e. its subtasks are ready for execution.
    RUNNING = 3

    # Tha task is paused. Assigned subtasks can continue, but no new subtasks
    # will be scheduled.
    PAUSED = 4

    # The task finished successfully.
    SUCCEEDED = 5

    # The task finished unsuccessfully.
    FAILED = 6
  end
end

#total_processing_error_count::Integer

Returns Count of all the processing errors in this task and its subtasks.

Returns:

  • (::Integer)

    Count of all the processing errors in this task and its subtasks.



144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
# File 'proto_docs/google/cloud/bigquery/migration/v2/migration_entities.rb', line 144

class MigrationTask
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Possible states of a migration task.
  module State
    # The state is unspecified.
    STATE_UNSPECIFIED = 0

    # The task is waiting for orchestration.
    PENDING = 1

    # The task is assigned to an orchestrator.
    ORCHESTRATING = 2

    # The task is running, i.e. its subtasks are ready for execution.
    RUNNING = 3

    # Tha task is paused. Assigned subtasks can continue, but no new subtasks
    # will be scheduled.
    PAUSED = 4

    # The task finished successfully.
    SUCCEEDED = 5

    # The task finished unsuccessfully.
    FAILED = 6
  end
end

#total_resource_error_count::Integer

Returns Count of all the resource errors in this task and its subtasks.

Returns:

  • (::Integer)

    Count of all the resource errors in this task and its subtasks.



144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
# File 'proto_docs/google/cloud/bigquery/migration/v2/migration_entities.rb', line 144

class MigrationTask
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Possible states of a migration task.
  module State
    # The state is unspecified.
    STATE_UNSPECIFIED = 0

    # The task is waiting for orchestration.
    PENDING = 1

    # The task is assigned to an orchestrator.
    ORCHESTRATING = 2

    # The task is running, i.e. its subtasks are ready for execution.
    RUNNING = 3

    # Tha task is paused. Assigned subtasks can continue, but no new subtasks
    # will be scheduled.
    PAUSED = 4

    # The task finished successfully.
    SUCCEEDED = 5

    # The task finished unsuccessfully.
    FAILED = 6
  end
end

#translation_config_details::Google::Cloud::Bigquery::Migration::V2::TranslationConfigDetails

Returns Task configuration for CW Batch/Offline SQL Translation.

Returns:



144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
# File 'proto_docs/google/cloud/bigquery/migration/v2/migration_entities.rb', line 144

class MigrationTask
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Possible states of a migration task.
  module State
    # The state is unspecified.
    STATE_UNSPECIFIED = 0

    # The task is waiting for orchestration.
    PENDING = 1

    # The task is assigned to an orchestrator.
    ORCHESTRATING = 2

    # The task is running, i.e. its subtasks are ready for execution.
    RUNNING = 3

    # Tha task is paused. Assigned subtasks can continue, but no new subtasks
    # will be scheduled.
    PAUSED = 4

    # The task finished successfully.
    SUCCEEDED = 5

    # The task finished unsuccessfully.
    FAILED = 6
  end
end

#translation_details::Google::Cloud::Bigquery::Migration::V2::TranslationDetails

Returns Task details for unified SQL Translation.

Returns:



144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
# File 'proto_docs/google/cloud/bigquery/migration/v2/migration_entities.rb', line 144

class MigrationTask
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Possible states of a migration task.
  module State
    # The state is unspecified.
    STATE_UNSPECIFIED = 0

    # The task is waiting for orchestration.
    PENDING = 1

    # The task is assigned to an orchestrator.
    ORCHESTRATING = 2

    # The task is running, i.e. its subtasks are ready for execution.
    RUNNING = 3

    # Tha task is paused. Assigned subtasks can continue, but no new subtasks
    # will be scheduled.
    PAUSED = 4

    # The task finished successfully.
    SUCCEEDED = 5

    # The task finished unsuccessfully.
    FAILED = 6
  end
end

#type::String

Returns The type of the task. This must be one of the supported task types: Translation_Teradata2BQ, Translation_Redshift2BQ, Translation_Bteq2BQ, Translation_Oracle2BQ, Translation_HiveQL2BQ, Translation_SparkSQL2BQ, Translation_Snowflake2BQ, Translation_Netezza2BQ, Translation_AzureSynapse2BQ, Translation_Vertica2BQ, Translation_SQLServer2BQ, Translation_Presto2BQ, Translation_MySQL2BQ, Translation_Postgresql2BQ, Translation_SQLite2BQ, Translation_Greenplum2BQ.

Returns:

  • (::String)

    The type of the task. This must be one of the supported task types: Translation_Teradata2BQ, Translation_Redshift2BQ, Translation_Bteq2BQ, Translation_Oracle2BQ, Translation_HiveQL2BQ, Translation_SparkSQL2BQ, Translation_Snowflake2BQ, Translation_Netezza2BQ, Translation_AzureSynapse2BQ, Translation_Vertica2BQ, Translation_SQLServer2BQ, Translation_Presto2BQ, Translation_MySQL2BQ, Translation_Postgresql2BQ, Translation_SQLite2BQ, Translation_Greenplum2BQ.



144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
# File 'proto_docs/google/cloud/bigquery/migration/v2/migration_entities.rb', line 144

class MigrationTask
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Possible states of a migration task.
  module State
    # The state is unspecified.
    STATE_UNSPECIFIED = 0

    # The task is waiting for orchestration.
    PENDING = 1

    # The task is assigned to an orchestrator.
    ORCHESTRATING = 2

    # The task is running, i.e. its subtasks are ready for execution.
    RUNNING = 3

    # Tha task is paused. Assigned subtasks can continue, but no new subtasks
    # will be scheduled.
    PAUSED = 4

    # The task finished successfully.
    SUCCEEDED = 5

    # The task finished unsuccessfully.
    FAILED = 6
  end
end