Class: Google::Cloud::Bigquery::Migration::V2::MigrationSubtask
- Inherits:
-
Object
- Object
- Google::Cloud::Bigquery::Migration::V2::MigrationSubtask
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/bigquery/migration/v2/migration_entities.rb
Overview
A subtask for a migration which carries details about the configuration of the subtask. The content of the details should not matter to the end user, but is a contract between the subtask creator and subtask worker.
Defined Under Namespace
Modules: State
Instance Attribute Summary collapse
-
#create_time ⇒ ::Google::Protobuf::Timestamp
Time when the subtask was created.
-
#last_update_time ⇒ ::Google::Protobuf::Timestamp
Time when the subtask was last updated.
-
#metrics ⇒ ::Array<::Google::Cloud::Bigquery::Migration::V2::TimeSeries>
The metrics for the subtask.
-
#name ⇒ ::String
readonly
Output only.
-
#processing_error ⇒ ::Google::Rpc::ErrorInfo
readonly
Output only.
-
#resource_error_count ⇒ ::Integer
The number or resources with errors.
-
#resource_error_details ⇒ ::Array<::Google::Cloud::Bigquery::Migration::V2::ResourceErrorDetail>
readonly
Output only.
-
#state ⇒ ::Google::Cloud::Bigquery::Migration::V2::MigrationSubtask::State
readonly
Output only.
-
#task_id ⇒ ::String
The unique ID of the task to which this subtask belongs.
-
#type ⇒ ::String
The type of the Subtask.
Instance Attribute Details
#create_time ⇒ ::Google::Protobuf::Timestamp
Returns Time when the subtask was created.
219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 |
# File 'proto_docs/google/cloud/bigquery/migration/v2/migration_entities.rb', line 219 class MigrationSubtask include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Possible states of a migration subtask. module State # The state is unspecified. STATE_UNSPECIFIED = 0 # The subtask is ready, i.e. it is ready for execution. ACTIVE = 1 # The subtask is running, i.e. it is assigned to a worker for execution. RUNNING = 2 # The subtask finished successfully. SUCCEEDED = 3 # The subtask finished unsuccessfully. FAILED = 4 # The subtask is paused, i.e., it will not be scheduled. If it was already # assigned,it might still finish but no new lease renewals will be granted. PAUSED = 5 # The subtask is pending a dependency. It will be scheduled once its # dependencies are done. PENDING_DEPENDENCY = 6 end end |
#last_update_time ⇒ ::Google::Protobuf::Timestamp
Returns Time when the subtask was last updated.
219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 |
# File 'proto_docs/google/cloud/bigquery/migration/v2/migration_entities.rb', line 219 class MigrationSubtask include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Possible states of a migration subtask. module State # The state is unspecified. STATE_UNSPECIFIED = 0 # The subtask is ready, i.e. it is ready for execution. ACTIVE = 1 # The subtask is running, i.e. it is assigned to a worker for execution. RUNNING = 2 # The subtask finished successfully. SUCCEEDED = 3 # The subtask finished unsuccessfully. FAILED = 4 # The subtask is paused, i.e., it will not be scheduled. If it was already # assigned,it might still finish but no new lease renewals will be granted. PAUSED = 5 # The subtask is pending a dependency. It will be scheduled once its # dependencies are done. PENDING_DEPENDENCY = 6 end end |
#metrics ⇒ ::Array<::Google::Cloud::Bigquery::Migration::V2::TimeSeries>
Returns The metrics for the subtask.
219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 |
# File 'proto_docs/google/cloud/bigquery/migration/v2/migration_entities.rb', line 219 class MigrationSubtask include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Possible states of a migration subtask. module State # The state is unspecified. STATE_UNSPECIFIED = 0 # The subtask is ready, i.e. it is ready for execution. ACTIVE = 1 # The subtask is running, i.e. it is assigned to a worker for execution. RUNNING = 2 # The subtask finished successfully. SUCCEEDED = 3 # The subtask finished unsuccessfully. FAILED = 4 # The subtask is paused, i.e., it will not be scheduled. If it was already # assigned,it might still finish but no new lease renewals will be granted. PAUSED = 5 # The subtask is pending a dependency. It will be scheduled once its # dependencies are done. PENDING_DEPENDENCY = 6 end end |
#name ⇒ ::String (readonly)
Returns Output only. Immutable. The resource name for the migration subtask. The ID is server-generated.
Example: projects/123/locations/us/workflows/345/subtasks/678
.
219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 |
# File 'proto_docs/google/cloud/bigquery/migration/v2/migration_entities.rb', line 219 class MigrationSubtask include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Possible states of a migration subtask. module State # The state is unspecified. STATE_UNSPECIFIED = 0 # The subtask is ready, i.e. it is ready for execution. ACTIVE = 1 # The subtask is running, i.e. it is assigned to a worker for execution. RUNNING = 2 # The subtask finished successfully. SUCCEEDED = 3 # The subtask finished unsuccessfully. FAILED = 4 # The subtask is paused, i.e., it will not be scheduled. If it was already # assigned,it might still finish but no new lease renewals will be granted. PAUSED = 5 # The subtask is pending a dependency. It will be scheduled once its # dependencies are done. PENDING_DEPENDENCY = 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.
219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 |
# File 'proto_docs/google/cloud/bigquery/migration/v2/migration_entities.rb', line 219 class MigrationSubtask include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Possible states of a migration subtask. module State # The state is unspecified. STATE_UNSPECIFIED = 0 # The subtask is ready, i.e. it is ready for execution. ACTIVE = 1 # The subtask is running, i.e. it is assigned to a worker for execution. RUNNING = 2 # The subtask finished successfully. SUCCEEDED = 3 # The subtask finished unsuccessfully. FAILED = 4 # The subtask is paused, i.e., it will not be scheduled. If it was already # assigned,it might still finish but no new lease renewals will be granted. PAUSED = 5 # The subtask is pending a dependency. It will be scheduled once its # dependencies are done. PENDING_DEPENDENCY = 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
.
219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 |
# File 'proto_docs/google/cloud/bigquery/migration/v2/migration_entities.rb', line 219 class MigrationSubtask include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Possible states of a migration subtask. module State # The state is unspecified. STATE_UNSPECIFIED = 0 # The subtask is ready, i.e. it is ready for execution. ACTIVE = 1 # The subtask is running, i.e. it is assigned to a worker for execution. RUNNING = 2 # The subtask finished successfully. SUCCEEDED = 3 # The subtask finished unsuccessfully. FAILED = 4 # The subtask is paused, i.e., it will not be scheduled. If it was already # assigned,it might still finish but no new lease renewals will be granted. PAUSED = 5 # The subtask is pending a dependency. It will be scheduled once its # dependencies are done. PENDING_DEPENDENCY = 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 subtask. Presence of error details does not mean that the subtask failed.
219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 |
# File 'proto_docs/google/cloud/bigquery/migration/v2/migration_entities.rb', line 219 class MigrationSubtask include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Possible states of a migration subtask. module State # The state is unspecified. STATE_UNSPECIFIED = 0 # The subtask is ready, i.e. it is ready for execution. ACTIVE = 1 # The subtask is running, i.e. it is assigned to a worker for execution. RUNNING = 2 # The subtask finished successfully. SUCCEEDED = 3 # The subtask finished unsuccessfully. FAILED = 4 # The subtask is paused, i.e., it will not be scheduled. If it was already # assigned,it might still finish but no new lease renewals will be granted. PAUSED = 5 # The subtask is pending a dependency. It will be scheduled once its # dependencies are done. PENDING_DEPENDENCY = 6 end end |
#state ⇒ ::Google::Cloud::Bigquery::Migration::V2::MigrationSubtask::State (readonly)
Returns Output only. The current state of the subtask.
219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 |
# File 'proto_docs/google/cloud/bigquery/migration/v2/migration_entities.rb', line 219 class MigrationSubtask include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Possible states of a migration subtask. module State # The state is unspecified. STATE_UNSPECIFIED = 0 # The subtask is ready, i.e. it is ready for execution. ACTIVE = 1 # The subtask is running, i.e. it is assigned to a worker for execution. RUNNING = 2 # The subtask finished successfully. SUCCEEDED = 3 # The subtask finished unsuccessfully. FAILED = 4 # The subtask is paused, i.e., it will not be scheduled. If it was already # assigned,it might still finish but no new lease renewals will be granted. PAUSED = 5 # The subtask is pending a dependency. It will be scheduled once its # dependencies are done. PENDING_DEPENDENCY = 6 end end |
#task_id ⇒ ::String
Returns The unique ID of the task to which this subtask belongs.
219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 |
# File 'proto_docs/google/cloud/bigquery/migration/v2/migration_entities.rb', line 219 class MigrationSubtask include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Possible states of a migration subtask. module State # The state is unspecified. STATE_UNSPECIFIED = 0 # The subtask is ready, i.e. it is ready for execution. ACTIVE = 1 # The subtask is running, i.e. it is assigned to a worker for execution. RUNNING = 2 # The subtask finished successfully. SUCCEEDED = 3 # The subtask finished unsuccessfully. FAILED = 4 # The subtask is paused, i.e., it will not be scheduled. If it was already # assigned,it might still finish but no new lease renewals will be granted. PAUSED = 5 # The subtask is pending a dependency. It will be scheduled once its # dependencies are done. PENDING_DEPENDENCY = 6 end end |
#type ⇒ ::String
Returns The type of the Subtask. The migration service does not check whether this is a known type. It is up to the task creator (i.e. orchestrator or worker) to ensure it only creates subtasks for which there are compatible workers polling for Subtasks.
219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 |
# File 'proto_docs/google/cloud/bigquery/migration/v2/migration_entities.rb', line 219 class MigrationSubtask include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Possible states of a migration subtask. module State # The state is unspecified. STATE_UNSPECIFIED = 0 # The subtask is ready, i.e. it is ready for execution. ACTIVE = 1 # The subtask is running, i.e. it is assigned to a worker for execution. RUNNING = 2 # The subtask finished successfully. SUCCEEDED = 3 # The subtask finished unsuccessfully. FAILED = 4 # The subtask is paused, i.e., it will not be scheduled. If it was already # assigned,it might still finish but no new lease renewals will be granted. PAUSED = 5 # The subtask is pending a dependency. It will be scheduled once its # dependencies are done. PENDING_DEPENDENCY = 6 end end |