Struct google_api_proto::google::cloud::networkmanagement::v1beta1::reachability_service_client::ReachabilityServiceClient
source · pub struct ReachabilityServiceClient<T> { /* private fields */ }
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§
source§impl<T> ReachabilityServiceClient<T>where
T: GrpcService<BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
impl<T> ReachabilityServiceClient<T>where
T: GrpcService<BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
pub fn new(inner: T) -> Self
pub fn with_origin(inner: T, origin: Uri) -> Self
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> ReachabilityServiceClient<InterceptedService<T, F>>where
F: Interceptor,
T::ResponseBody: Default,
T: Service<Request<BoxBody>, Response = Response<<T as GrpcService<BoxBody>>::ResponseBody>>,
<T as Service<Request<BoxBody>>>::Error: Into<StdError> + Send + Sync,
sourcepub fn send_compressed(self, encoding: CompressionEncoding) -> Self
pub fn send_compressed(self, encoding: CompressionEncoding) -> Self
Compress requests with the given encoding.
This requires the server to support it otherwise it might respond with an error.
sourcepub fn accept_compressed(self, encoding: CompressionEncoding) -> Self
pub fn accept_compressed(self, encoding: CompressionEncoding) -> Self
Enable decompressing responses.
sourcepub fn max_decoding_message_size(self, limit: usize) -> Self
pub fn max_decoding_message_size(self, limit: usize) -> Self
Limits the maximum size of a decoded message.
Default: 4MB
sourcepub fn max_encoding_message_size(self, limit: usize) -> Self
pub fn max_encoding_message_size(self, limit: usize) -> Self
Limits the maximum size of an encoded message.
Default: usize::MAX
sourcepub 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.
sourcepub 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.
sourcepub 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.
sourcepub 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.
sourcepub 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
.
sourcepub 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§
source§impl<T: Clone> Clone for ReachabilityServiceClient<T>
impl<T: Clone> Clone for ReachabilityServiceClient<T>
source§fn clone(&self) -> ReachabilityServiceClient<T>
fn clone(&self) -> ReachabilityServiceClient<T>
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl<T> !Freeze for ReachabilityServiceClient<T>
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request