pub struct ConnectionServiceClient<T> { /* private fields */ }
Expand description
Manages external data source connections and credentials.
Implementations§
Source§impl<T> ConnectionServiceClient<T>where
T: GrpcService<BoxBody>,
T::ResponseBody: Body + HttpBody + Send + 'static,
T::Error: Into<StdError>,
<T::ResponseBody as HttpBody>::Error: Into<StdError> + Send,
impl<T> ConnectionServiceClient<T>where
T: GrpcService<BoxBody>,
T::ResponseBody: Body + HttpBody + Send + 'static,
T::Error: Into<StdError>,
<T::ResponseBody as HttpBody>::Error: Into<StdError> + Send,
pub fn new(inner: T) -> Self
pub fn with_interceptor(inner: T, interceptor: impl Into<Interceptor>) -> Self
Sourcepub async fn create_connection(
&mut self,
request: impl IntoRequest<CreateConnectionRequest>,
) -> Result<Response<Connection>, Status>
pub async fn create_connection( &mut self, request: impl IntoRequest<CreateConnectionRequest>, ) -> Result<Response<Connection>, Status>
Creates a new connection.
Sourcepub async fn get_connection(
&mut self,
request: impl IntoRequest<GetConnectionRequest>,
) -> Result<Response<Connection>, Status>
pub async fn get_connection( &mut self, request: impl IntoRequest<GetConnectionRequest>, ) -> Result<Response<Connection>, Status>
Returns specified connection.
Sourcepub async fn list_connections(
&mut self,
request: impl IntoRequest<ListConnectionsRequest>,
) -> Result<Response<ListConnectionsResponse>, Status>
pub async fn list_connections( &mut self, request: impl IntoRequest<ListConnectionsRequest>, ) -> Result<Response<ListConnectionsResponse>, Status>
Returns a list of connections in the given project.
Sourcepub async fn update_connection(
&mut self,
request: impl IntoRequest<UpdateConnectionRequest>,
) -> Result<Response<Connection>, Status>
pub async fn update_connection( &mut self, request: impl IntoRequest<UpdateConnectionRequest>, ) -> Result<Response<Connection>, Status>
Updates the specified connection. For security reasons, also resets credential if connection properties are in the update field mask.
Sourcepub async fn delete_connection(
&mut self,
request: impl IntoRequest<DeleteConnectionRequest>,
) -> Result<Response<()>, Status>
pub async fn delete_connection( &mut self, request: impl IntoRequest<DeleteConnectionRequest>, ) -> Result<Response<()>, Status>
Deletes connection and associated credential.
Sourcepub async fn get_iam_policy(
&mut self,
request: impl IntoRequest<GetIamPolicyRequest>,
) -> Result<Response<Policy>, Status>
pub async fn get_iam_policy( &mut self, request: impl IntoRequest<GetIamPolicyRequest>, ) -> Result<Response<Policy>, Status>
Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
Sourcepub async fn set_iam_policy(
&mut self,
request: impl IntoRequest<SetIamPolicyRequest>,
) -> Result<Response<Policy>, Status>
pub async fn set_iam_policy( &mut self, request: impl IntoRequest<SetIamPolicyRequest>, ) -> Result<Response<Policy>, Status>
Sets the access control policy on the specified resource. Replaces any existing policy.
Can return Public Errors: NOT_FOUND, INVALID_ARGUMENT and PERMISSION_DENIED
Sourcepub async fn test_iam_permissions(
&mut self,
request: impl IntoRequest<TestIamPermissionsRequest>,
) -> Result<Response<TestIamPermissionsResponse>, Status>
pub async fn test_iam_permissions( &mut self, request: impl IntoRequest<TestIamPermissionsRequest>, ) -> Result<Response<TestIamPermissionsResponse>, Status>
Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error.
Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may “fail open” without warning.
Trait Implementations§
Source§impl<T: Clone> Clone for ConnectionServiceClient<T>
impl<T: Clone> Clone for ConnectionServiceClient<T>
Auto Trait Implementations§
impl<T> Freeze for ConnectionServiceClient<T>where
T: Freeze,
impl<T> !RefUnwindSafe for ConnectionServiceClient<T>
impl<T> Send for ConnectionServiceClient<T>where
T: Send,
impl<T> Sync for ConnectionServiceClient<T>where
T: Sync,
impl<T> Unpin for ConnectionServiceClient<T>where
T: Unpin,
impl<T> !UnwindSafe for ConnectionServiceClient<T>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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