Class: Google::Cloud::AlloyDB::V1::BatchCreateInstanceStatus
- Inherits:
-
Object
- Object
- Google::Cloud::AlloyDB::V1::BatchCreateInstanceStatus
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/alloydb/v1/service.rb
Overview
Message for current status of an instance in the BatchCreateInstances operation. For example, lets say a BatchCreateInstances workflow has 4 instances, Instance1 through Instance4. Lets also assume that 2 instances succeeded but the third failed to create and the 4th was never picked up for creation because of failure of the previous one. Then, resulting states would look something like:
- Instance1 = ROLLED_BACK
- Instance2 = ROLLED_BACK
- Instance3 = FAILED
- Instance4 = FAILED However, while the operation is running, the instance might be in other states including PENDING_CREATE, ACTIVE, DELETING and CREATING. The states / do not get further updated once the operation is done.
Defined Under Namespace
Modules: State
Instance Attribute Summary collapse
-
#error ⇒ ::Google::Rpc::Status
The RPC status of the instance creation operation.
-
#error_msg ⇒ ::String
DEPRECATED - Use the error field instead.
-
#state ⇒ ::Google::Cloud::AlloyDB::V1::BatchCreateInstanceStatus::State
The current state of an instance involved in the batch create operation.
- #type ⇒ ::Google::Cloud::AlloyDB::V1::Instance::InstanceType
Instance Attribute Details
#error ⇒ ::Google::Rpc::Status
Returns The RPC status of the instance creation operation. This field will be present if an error happened during the instance creation.
427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 |
# File 'proto_docs/google/cloud/alloydb/v1/service.rb', line 427 class BatchCreateInstanceStatus include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # State contains all valid instance states for the BatchCreateInstances # operation. This is mainly used for status reporting through the LRO # metadata. module State # The state of the instance is unknown. STATE_UNSPECIFIED = 0 # Instance is pending creation and has not yet been picked up for # processsing in the backend. PENDING_CREATE = 1 # The instance is active and running. READY = 2 # The instance is being created. CREATING = 3 # The instance is being deleted. DELETING = 4 # The creation of the instance failed or a fatal error occurred during # an operation on the instance or a batch of instances. FAILED = 5 # The instance was created successfully, but was rolled back and deleted # due to some other failure during BatchCreateInstances operation. ROLLED_BACK = 6 end end |
#error_msg ⇒ ::String
Returns DEPRECATED - Use the error field instead. Error, if any error occurred and is available, during instance creation.
427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 |
# File 'proto_docs/google/cloud/alloydb/v1/service.rb', line 427 class BatchCreateInstanceStatus include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # State contains all valid instance states for the BatchCreateInstances # operation. This is mainly used for status reporting through the LRO # metadata. module State # The state of the instance is unknown. STATE_UNSPECIFIED = 0 # Instance is pending creation and has not yet been picked up for # processsing in the backend. PENDING_CREATE = 1 # The instance is active and running. READY = 2 # The instance is being created. CREATING = 3 # The instance is being deleted. DELETING = 4 # The creation of the instance failed or a fatal error occurred during # an operation on the instance or a batch of instances. FAILED = 5 # The instance was created successfully, but was rolled back and deleted # due to some other failure during BatchCreateInstances operation. ROLLED_BACK = 6 end end |
#state ⇒ ::Google::Cloud::AlloyDB::V1::BatchCreateInstanceStatus::State
Returns The current state of an instance involved in the batch create operation. Once the operation is complete, the final state of the instances in the LRO can be one of:
- ACTIVE, indicating that instances were created successfully
- FAILED, indicating that a particular instance failed creation
- ROLLED_BACK indicating that although the instance was created successfully, it had to be rolled back and deleted due to failure in other steps of the workflow.
427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 |
# File 'proto_docs/google/cloud/alloydb/v1/service.rb', line 427 class BatchCreateInstanceStatus include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # State contains all valid instance states for the BatchCreateInstances # operation. This is mainly used for status reporting through the LRO # metadata. module State # The state of the instance is unknown. STATE_UNSPECIFIED = 0 # Instance is pending creation and has not yet been picked up for # processsing in the backend. PENDING_CREATE = 1 # The instance is active and running. READY = 2 # The instance is being created. CREATING = 3 # The instance is being deleted. DELETING = 4 # The creation of the instance failed or a fatal error occurred during # an operation on the instance or a batch of instances. FAILED = 5 # The instance was created successfully, but was rolled back and deleted # due to some other failure during BatchCreateInstances operation. ROLLED_BACK = 6 end end |
#type ⇒ ::Google::Cloud::AlloyDB::V1::Instance::InstanceType
427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 |
# File 'proto_docs/google/cloud/alloydb/v1/service.rb', line 427 class BatchCreateInstanceStatus include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # State contains all valid instance states for the BatchCreateInstances # operation. This is mainly used for status reporting through the LRO # metadata. module State # The state of the instance is unknown. STATE_UNSPECIFIED = 0 # Instance is pending creation and has not yet been picked up for # processsing in the backend. PENDING_CREATE = 1 # The instance is active and running. READY = 2 # The instance is being created. CREATING = 3 # The instance is being deleted. DELETING = 4 # The creation of the instance failed or a fatal error occurred during # an operation on the instance or a batch of instances. FAILED = 5 # The instance was created successfully, but was rolled back and deleted # due to some other failure during BatchCreateInstances operation. ROLLED_BACK = 6 end end |