Class: Google::Cloud::AlloyDB::V1beta::PromoteClusterStatus
- Inherits:
-
Object
- Object
- Google::Cloud::AlloyDB::V1beta::PromoteClusterStatus
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/alloydb/v1beta/service.rb
Overview
Message for current status of the database during Promote Cluster operation.
Defined Under Namespace
Modules: State
Instance Attribute Summary collapse
-
#state ⇒ ::Google::Cloud::AlloyDB::V1beta::PromoteClusterStatus::State
readonly
Output only.
Instance Attribute Details
#state ⇒ ::Google::Cloud::AlloyDB::V1beta::PromoteClusterStatus::State (readonly)
Returns Output only. The current state of the promoted secondary's database. Once the operation is complete, the final state of the database in the LRO can be one of:
- PROMOTE_CLUSTER_AVAILABLE_FOR_READ, indicating that the promote operation has failed mid-way, the database is still only available for read.
- PROMOTE_CLUSTER_COMPLETED, indicating that a promote operation completed successfully. The database is available for both read and write requests.
1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 |
# File 'proto_docs/google/cloud/alloydb/v1beta/service.rb', line 1560 class PromoteClusterStatus include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # State contains all valid states of the database during promote cluster # operation. This is used for status reporting through the LRO metadata. module State # The state of the database is unknown. STATE_UNSPECIFIED = 0 # The database is only available for read. PROMOTE_CLUSTER_AVAILABLE_FOR_READ = 1 # The database is available for both read and write. The promote operation # is near completion. PROMOTE_CLUSTER_AVAILABLE_FOR_WRITE = 2 # The promote operation is completed and the database is available for # write. PROMOTE_CLUSTER_COMPLETED = 3 end end |