use crate::Result;
#[derive(Clone, Debug)]
pub struct ReachabilityService<T>
where
T: super::stub::ReachabilityService + std::fmt::Debug + Send + Sync,
{
inner: T,
}
impl<T> ReachabilityService<T>
where
T: super::stub::ReachabilityService + std::fmt::Debug + Send + Sync,
{
pub fn new(inner: T) -> Self {
Self { inner }
}
}
impl<T> super::stub::ReachabilityService for ReachabilityService<T>
where
T: super::stub::ReachabilityService + std::fmt::Debug + Send + Sync,
{
#[tracing::instrument(ret)]
async fn list_connectivity_tests(
&self,
req: crate::model::ListConnectivityTestsRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::ListConnectivityTestsResponse>> {
self.inner.list_connectivity_tests(req, options).await
}
#[tracing::instrument(ret)]
async fn get_connectivity_test(
&self,
req: crate::model::GetConnectivityTestRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::ConnectivityTest>> {
self.inner.get_connectivity_test(req, options).await
}
#[tracing::instrument(ret)]
async fn create_connectivity_test(
&self,
req: crate::model::CreateConnectivityTestRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_longrunning::model::Operation>> {
self.inner.create_connectivity_test(req, options).await
}
#[tracing::instrument(ret)]
async fn update_connectivity_test(
&self,
req: crate::model::UpdateConnectivityTestRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_longrunning::model::Operation>> {
self.inner.update_connectivity_test(req, options).await
}
#[tracing::instrument(ret)]
async fn rerun_connectivity_test(
&self,
req: crate::model::RerunConnectivityTestRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_longrunning::model::Operation>> {
self.inner.rerun_connectivity_test(req, options).await
}
#[tracing::instrument(ret)]
async fn delete_connectivity_test(
&self,
req: crate::model::DeleteConnectivityTestRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_longrunning::model::Operation>> {
self.inner.delete_connectivity_test(req, options).await
}
#[tracing::instrument(ret)]
async fn list_locations(
&self,
req: google_cloud_location::model::ListLocationsRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_location::model::ListLocationsResponse>> {
self.inner.list_locations(req, options).await
}
#[tracing::instrument(ret)]
async fn get_location(
&self,
req: google_cloud_location::model::GetLocationRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_location::model::Location>> {
self.inner.get_location(req, options).await
}
#[tracing::instrument(ret)]
async fn set_iam_policy(
&self,
req: google_cloud_iam_v1::model::SetIamPolicyRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_iam_v1::model::Policy>> {
self.inner.set_iam_policy(req, options).await
}
#[tracing::instrument(ret)]
async fn get_iam_policy(
&self,
req: google_cloud_iam_v1::model::GetIamPolicyRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_iam_v1::model::Policy>> {
self.inner.get_iam_policy(req, options).await
}
#[tracing::instrument(ret)]
async fn test_iam_permissions(
&self,
req: google_cloud_iam_v1::model::TestIamPermissionsRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_iam_v1::model::TestIamPermissionsResponse>> {
self.inner.test_iam_permissions(req, options).await
}
#[tracing::instrument(ret)]
async fn list_operations(
&self,
req: google_cloud_longrunning::model::ListOperationsRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_longrunning::model::ListOperationsResponse>> {
self.inner.list_operations(req, options).await
}
#[tracing::instrument(ret)]
async fn get_operation(
&self,
req: google_cloud_longrunning::model::GetOperationRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_longrunning::model::Operation>> {
self.inner.get_operation(req, options).await
}
#[tracing::instrument(ret)]
async fn delete_operation(
&self,
req: google_cloud_longrunning::model::DeleteOperationRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<()>> {
self.inner.delete_operation(req, options).await
}
#[tracing::instrument(ret)]
async fn cancel_operation(
&self,
req: google_cloud_longrunning::model::CancelOperationRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<()>> {
self.inner.cancel_operation(req, options).await
}
fn get_polling_error_policy(
&self,
options: &crate::RequestOptions,
) -> std::sync::Arc<dyn google_cloud_gax::polling_error_policy::PollingErrorPolicy> {
self.inner.get_polling_error_policy(options)
}
fn get_polling_backoff_policy(
&self,
options: &crate::RequestOptions,
) -> std::sync::Arc<dyn google_cloud_gax::polling_backoff_policy::PollingBackoffPolicy> {
self.inner.get_polling_backoff_policy(options)
}
}
#[derive(Clone, Debug)]
pub struct VpcFlowLogsService<T>
where
T: super::stub::VpcFlowLogsService + std::fmt::Debug + Send + Sync,
{
inner: T,
}
impl<T> VpcFlowLogsService<T>
where
T: super::stub::VpcFlowLogsService + std::fmt::Debug + Send + Sync,
{
pub fn new(inner: T) -> Self {
Self { inner }
}
}
impl<T> super::stub::VpcFlowLogsService for VpcFlowLogsService<T>
where
T: super::stub::VpcFlowLogsService + std::fmt::Debug + Send + Sync,
{
#[tracing::instrument(ret)]
async fn list_vpc_flow_logs_configs(
&self,
req: crate::model::ListVpcFlowLogsConfigsRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::ListVpcFlowLogsConfigsResponse>> {
self.inner.list_vpc_flow_logs_configs(req, options).await
}
#[tracing::instrument(ret)]
async fn get_vpc_flow_logs_config(
&self,
req: crate::model::GetVpcFlowLogsConfigRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::VpcFlowLogsConfig>> {
self.inner.get_vpc_flow_logs_config(req, options).await
}
#[tracing::instrument(ret)]
async fn create_vpc_flow_logs_config(
&self,
req: crate::model::CreateVpcFlowLogsConfigRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_longrunning::model::Operation>> {
self.inner.create_vpc_flow_logs_config(req, options).await
}
#[tracing::instrument(ret)]
async fn update_vpc_flow_logs_config(
&self,
req: crate::model::UpdateVpcFlowLogsConfigRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_longrunning::model::Operation>> {
self.inner.update_vpc_flow_logs_config(req, options).await
}
#[tracing::instrument(ret)]
async fn delete_vpc_flow_logs_config(
&self,
req: crate::model::DeleteVpcFlowLogsConfigRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_longrunning::model::Operation>> {
self.inner.delete_vpc_flow_logs_config(req, options).await
}
#[tracing::instrument(ret)]
async fn query_org_vpc_flow_logs_configs(
&self,
req: crate::model::QueryOrgVpcFlowLogsConfigsRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::QueryOrgVpcFlowLogsConfigsResponse>> {
self.inner
.query_org_vpc_flow_logs_configs(req, options)
.await
}
#[tracing::instrument(ret)]
async fn show_effective_flow_logs_configs(
&self,
req: crate::model::ShowEffectiveFlowLogsConfigsRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::ShowEffectiveFlowLogsConfigsResponse>> {
self.inner
.show_effective_flow_logs_configs(req, options)
.await
}
#[tracing::instrument(ret)]
async fn list_locations(
&self,
req: google_cloud_location::model::ListLocationsRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_location::model::ListLocationsResponse>> {
self.inner.list_locations(req, options).await
}
#[tracing::instrument(ret)]
async fn get_location(
&self,
req: google_cloud_location::model::GetLocationRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_location::model::Location>> {
self.inner.get_location(req, options).await
}
#[tracing::instrument(ret)]
async fn set_iam_policy(
&self,
req: google_cloud_iam_v1::model::SetIamPolicyRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_iam_v1::model::Policy>> {
self.inner.set_iam_policy(req, options).await
}
#[tracing::instrument(ret)]
async fn get_iam_policy(
&self,
req: google_cloud_iam_v1::model::GetIamPolicyRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_iam_v1::model::Policy>> {
self.inner.get_iam_policy(req, options).await
}
#[tracing::instrument(ret)]
async fn test_iam_permissions(
&self,
req: google_cloud_iam_v1::model::TestIamPermissionsRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_iam_v1::model::TestIamPermissionsResponse>> {
self.inner.test_iam_permissions(req, options).await
}
#[tracing::instrument(ret)]
async fn list_operations(
&self,
req: google_cloud_longrunning::model::ListOperationsRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_longrunning::model::ListOperationsResponse>> {
self.inner.list_operations(req, options).await
}
#[tracing::instrument(ret)]
async fn get_operation(
&self,
req: google_cloud_longrunning::model::GetOperationRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_longrunning::model::Operation>> {
self.inner.get_operation(req, options).await
}
#[tracing::instrument(ret)]
async fn delete_operation(
&self,
req: google_cloud_longrunning::model::DeleteOperationRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<()>> {
self.inner.delete_operation(req, options).await
}
#[tracing::instrument(ret)]
async fn cancel_operation(
&self,
req: google_cloud_longrunning::model::CancelOperationRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<()>> {
self.inner.cancel_operation(req, options).await
}
fn get_polling_error_policy(
&self,
options: &crate::RequestOptions,
) -> std::sync::Arc<dyn google_cloud_gax::polling_error_policy::PollingErrorPolicy> {
self.inner.get_polling_error_policy(options)
}
fn get_polling_backoff_policy(
&self,
options: &crate::RequestOptions,
) -> std::sync::Arc<dyn google_cloud_gax::polling_backoff_policy::PollingBackoffPolicy> {
self.inner.get_polling_backoff_policy(options)
}
}
#[derive(Clone, Debug)]
pub struct OrganizationVpcFlowLogsService<T>
where
T: super::stub::OrganizationVpcFlowLogsService + std::fmt::Debug + Send + Sync,
{
inner: T,
}
impl<T> OrganizationVpcFlowLogsService<T>
where
T: super::stub::OrganizationVpcFlowLogsService + std::fmt::Debug + Send + Sync,
{
pub fn new(inner: T) -> Self {
Self { inner }
}
}
impl<T> super::stub::OrganizationVpcFlowLogsService for OrganizationVpcFlowLogsService<T>
where
T: super::stub::OrganizationVpcFlowLogsService + std::fmt::Debug + Send + Sync,
{
#[tracing::instrument(ret)]
async fn list_vpc_flow_logs_configs(
&self,
req: crate::model::ListVpcFlowLogsConfigsRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::ListVpcFlowLogsConfigsResponse>> {
self.inner.list_vpc_flow_logs_configs(req, options).await
}
#[tracing::instrument(ret)]
async fn get_vpc_flow_logs_config(
&self,
req: crate::model::GetVpcFlowLogsConfigRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::VpcFlowLogsConfig>> {
self.inner.get_vpc_flow_logs_config(req, options).await
}
#[tracing::instrument(ret)]
async fn create_vpc_flow_logs_config(
&self,
req: crate::model::CreateVpcFlowLogsConfigRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_longrunning::model::Operation>> {
self.inner.create_vpc_flow_logs_config(req, options).await
}
#[tracing::instrument(ret)]
async fn update_vpc_flow_logs_config(
&self,
req: crate::model::UpdateVpcFlowLogsConfigRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_longrunning::model::Operation>> {
self.inner.update_vpc_flow_logs_config(req, options).await
}
#[tracing::instrument(ret)]
async fn delete_vpc_flow_logs_config(
&self,
req: crate::model::DeleteVpcFlowLogsConfigRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_longrunning::model::Operation>> {
self.inner.delete_vpc_flow_logs_config(req, options).await
}
#[tracing::instrument(ret)]
async fn list_locations(
&self,
req: google_cloud_location::model::ListLocationsRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_location::model::ListLocationsResponse>> {
self.inner.list_locations(req, options).await
}
#[tracing::instrument(ret)]
async fn get_location(
&self,
req: google_cloud_location::model::GetLocationRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_location::model::Location>> {
self.inner.get_location(req, options).await
}
#[tracing::instrument(ret)]
async fn set_iam_policy(
&self,
req: google_cloud_iam_v1::model::SetIamPolicyRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_iam_v1::model::Policy>> {
self.inner.set_iam_policy(req, options).await
}
#[tracing::instrument(ret)]
async fn get_iam_policy(
&self,
req: google_cloud_iam_v1::model::GetIamPolicyRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_iam_v1::model::Policy>> {
self.inner.get_iam_policy(req, options).await
}
#[tracing::instrument(ret)]
async fn test_iam_permissions(
&self,
req: google_cloud_iam_v1::model::TestIamPermissionsRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_iam_v1::model::TestIamPermissionsResponse>> {
self.inner.test_iam_permissions(req, options).await
}
#[tracing::instrument(ret)]
async fn list_operations(
&self,
req: google_cloud_longrunning::model::ListOperationsRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_longrunning::model::ListOperationsResponse>> {
self.inner.list_operations(req, options).await
}
#[tracing::instrument(ret)]
async fn get_operation(
&self,
req: google_cloud_longrunning::model::GetOperationRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_longrunning::model::Operation>> {
self.inner.get_operation(req, options).await
}
#[tracing::instrument(ret)]
async fn delete_operation(
&self,
req: google_cloud_longrunning::model::DeleteOperationRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<()>> {
self.inner.delete_operation(req, options).await
}
#[tracing::instrument(ret)]
async fn cancel_operation(
&self,
req: google_cloud_longrunning::model::CancelOperationRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<()>> {
self.inner.cancel_operation(req, options).await
}
fn get_polling_error_policy(
&self,
options: &crate::RequestOptions,
) -> std::sync::Arc<dyn google_cloud_gax::polling_error_policy::PollingErrorPolicy> {
self.inner.get_polling_error_policy(options)
}
fn get_polling_backoff_policy(
&self,
options: &crate::RequestOptions,
) -> std::sync::Arc<dyn google_cloud_gax::polling_backoff_policy::PollingBackoffPolicy> {
self.inner.get_polling_backoff_policy(options)
}
}