Class: Google::Cloud::AlloyDB::V1alpha::PromoteClusterStatus
- Inherits:
-
Object
- Object
- Google::Cloud::AlloyDB::V1alpha::PromoteClusterStatus
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/alloydb/v1alpha/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::V1alpha::PromoteClusterStatus::State
readonly
Output only.
Instance Attribute Details
#state ⇒ ::Google::Cloud::AlloyDB::V1alpha::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.
1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 |
# File 'proto_docs/google/cloud/alloydb/v1alpha/service.rb', line 1367 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 |