Struct googapis::google::cloud::networkmanagement::v1::reachability_service_client::ReachabilityServiceClient [−][src]
pub struct ReachabilityServiceClient<T> { /* fields omitted */ }
Expand description
The Reachability service in the Google Cloud Network Management API provides services that analyze the reachability within a single Google Virtual Private Cloud (VPC) network, between peered VPC networks, between VPC and on-premises networks, or between VPC networks and internet hosts. A reachability analysis is based on Google Cloud network configurations.
You can use the analysis results to verify these configurations and to troubleshoot connectivity issues.
Implementations
impl<T> ReachabilityServiceClient<T> where
T: GrpcService<BoxBody>,
T::ResponseBody: Body + Send + 'static,
T::Error: Into<StdError>,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
impl<T> ReachabilityServiceClient<T> where
T: GrpcService<BoxBody>,
T::ResponseBody: Body + Send + 'static,
T::Error: Into<StdError>,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
pub fn with_interceptor<F>(
inner: T,
interceptor: F
) -> ReachabilityServiceClient<InterceptedService<T, F>> where
F: Interceptor,
T: Service<Request<BoxBody>, Response = Response<<T as GrpcService<BoxBody>>::ResponseBody>>,
<T as Service<Request<BoxBody>>>::Error: Into<StdError> + Send + Sync,
Compress requests with gzip
.
This requires the server to support it otherwise it might respond with an error.
Enable decompressing responses with gzip
.
pub async fn list_connectivity_tests(
&mut self,
request: impl IntoRequest<ListConnectivityTestsRequest>
) -> Result<Response<ListConnectivityTestsResponse>, Status>
pub async fn list_connectivity_tests(
&mut self,
request: impl IntoRequest<ListConnectivityTestsRequest>
) -> Result<Response<ListConnectivityTestsResponse>, Status>
Lists all Connectivity Tests owned by a project.
pub async fn get_connectivity_test(
&mut self,
request: impl IntoRequest<GetConnectivityTestRequest>
) -> Result<Response<ConnectivityTest>, Status>
pub async fn get_connectivity_test(
&mut self,
request: impl IntoRequest<GetConnectivityTestRequest>
) -> Result<Response<ConnectivityTest>, Status>
Gets the details of a specific Connectivity Test.
pub async fn create_connectivity_test(
&mut self,
request: impl IntoRequest<CreateConnectivityTestRequest>
) -> Result<Response<Operation>, Status>
pub async fn create_connectivity_test(
&mut self,
request: impl IntoRequest<CreateConnectivityTestRequest>
) -> Result<Response<Operation>, Status>
Creates a new Connectivity Test. After you create a test, the reachability analysis is performed as part of the long running operation, which completes when the analysis completes.
If the endpoint specifications in ConnectivityTest
are invalid
(for example, containing non-existent resources in the network, or you
don’t have read permissions to the network configurations of listed
projects), then the reachability result returns a value of UNKNOWN
.
If the endpoint specifications in ConnectivityTest
are
incomplete, the reachability result returns a value of
AMBIGUOUS
. For more information,
see the Connectivity Test documentation.
pub async fn update_connectivity_test(
&mut self,
request: impl IntoRequest<UpdateConnectivityTestRequest>
) -> Result<Response<Operation>, Status>
pub async fn update_connectivity_test(
&mut self,
request: impl IntoRequest<UpdateConnectivityTestRequest>
) -> Result<Response<Operation>, Status>
Updates the configuration of an existing ConnectivityTest
.
After you update a test, the reachability analysis is performed as part
of the long running operation, which completes when the analysis completes.
The Reachability state in the test resource is updated with the new result.
If the endpoint specifications in ConnectivityTest
are invalid
(for example, they contain non-existent resources in the network, or the
user does not have read permissions to the network configurations of
listed projects), then the reachability result returns a value of
UNKNOWN
.
If the endpoint specifications in ConnectivityTest
are incomplete, the
reachability result returns a value of AMBIGUOUS
. See the documentation
in ConnectivityTest
for for more details.
pub async fn rerun_connectivity_test(
&mut self,
request: impl IntoRequest<RerunConnectivityTestRequest>
) -> Result<Response<Operation>, Status>
pub async fn rerun_connectivity_test(
&mut self,
request: impl IntoRequest<RerunConnectivityTestRequest>
) -> Result<Response<Operation>, Status>
Rerun an existing ConnectivityTest
.
After the user triggers the rerun, the reachability analysis is performed
as part of the long running operation, which completes when the analysis
completes.
Even though the test configuration remains the same, the reachability result may change due to underlying network configuration changes.
If the endpoint specifications in ConnectivityTest
become invalid (for
example, specified resources are deleted in the network, or you lost
read permissions to the network configurations of listed projects), then
the reachability result returns a value of UNKNOWN
.
pub async fn delete_connectivity_test(
&mut self,
request: impl IntoRequest<DeleteConnectivityTestRequest>
) -> Result<Response<Operation>, Status>
pub async fn delete_connectivity_test(
&mut self,
request: impl IntoRequest<DeleteConnectivityTestRequest>
) -> Result<Response<Operation>, Status>
Deletes a specific ConnectivityTest
.
Trait Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for ReachabilityServiceClient<T> where
T: RefUnwindSafe,
impl<T> Send for ReachabilityServiceClient<T> where
T: Send,
impl<T> Sync for ReachabilityServiceClient<T> where
T: Sync,
impl<T> Unpin for ReachabilityServiceClient<T> where
T: Unpin,
impl<T> UnwindSafe for ReachabilityServiceClient<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Wrap the input message T
in a tonic::Request
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more