From c6d79f6717d8033b81274edefaafd0b348c714dc Mon Sep 17 00:00:00 2001 From: yux0 Date: Thu, 4 Apr 2024 11:51:00 -0700 Subject: [PATCH] remove enums --- temporal/api/cloud/namespace/v1/message.proto | 23 ++++++++----------- 1 file changed, 9 insertions(+), 14 deletions(-) diff --git a/temporal/api/cloud/namespace/v1/message.proto b/temporal/api/cloud/namespace/v1/message.proto index 2117f20..8387695 100644 --- a/temporal/api/cloud/namespace/v1/message.proto +++ b/temporal/api/cloud/namespace/v1/message.proto @@ -125,24 +125,19 @@ message Namespace { google.protobuf.Timestamp last_modified_time = 11; } -enum FailoverType { - FAILOVER_TYPE_UNSPECIFIED = 0; - FAILOVER_TYPE_GRACEFUL = 1; - FAILOVER_TYPE_FORCEFUL = 2; -} - -enum FailoverStatus { - FAILOVER_STATUS_UNSPECIFIED = 0; - FAILOVER_STATUS_SUCCEEDED = 1; - FAILOVER_STATUS_FAILED = 2; -} - message FailoverRecord { - FailoverType failover_type = 1; + // The type of a failover. Values: Graceful, Forceful. + string failover_type = 1; + // The source region of the failover. temporal.api.cloud.region.v1.Region source_region = 2; + // The target region of the failover. temporal.api.cloud.region.v1.Region target_region = 3; + // The start time of the failover. google.protobuf.Timestamp start_time_utc = 4; + // The end time of the failover. google.protobuf.Timestamp end_time_utc = 5; - FailoverStatus status = 6; + // The status of a failover. Values: Succeeded, Failed. + string failover_status = 6; + // The operator started the failover. string operator = 7; }