Skip to content

Commit

Permalink
Async client: implement warm_standby_replication_status for Tanzu Rab…
Browse files Browse the repository at this point in the history
…bitMQ
  • Loading branch information
michaelklishin committed Jan 27, 2025
1 parent 4a30840 commit 866d4d4
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion src/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ use crate::error::Error::{ClientErrorResponse, NotFound, ServerErrorResponse};
use crate::requests::EmptyPayload;
use crate::responses::{
DeprecatedFeatureList, FeatureFlag, FeatureFlagList, FeatureFlagStability, FeatureFlagState,
GetMessage, OAuthConfiguration, SchemaDefinitionSyncStatus,
GetMessage, OAuthConfiguration, SchemaDefinitionSyncStatus, WarmStandbyReplicationStatus,
};
use crate::{
commons::{BindingDestinationType, SupportedProtocol, UserLimitTarget, VirtualHostLimitTarget},
Expand Down Expand Up @@ -1458,6 +1458,19 @@ where
Ok(())
}

//
// Warm Standby Replication (Tanzu RabbitMQ)
//

pub async fn warm_standby_replication_status(&self) -> Result<WarmStandbyReplicationStatus> {
let response = self
.http_get("tanzu/osr/standby/status", None, None)
.await?;
let response = response.json().await?;

Ok(response)
}

//
// Implementation
//
Expand Down

0 comments on commit 866d4d4

Please sign in to comment.