Struct googapis::google::cloud::resourcemanager::v3::organizations_client::OrganizationsClient [−][src]
pub struct OrganizationsClient<T> { /* fields omitted */ }
Expand description
Allows users to manage their organization resources.
Implementations
impl<T> OrganizationsClient<T> where
T: GrpcService<BoxBody>,
T::ResponseBody: Body + Send + 'static,
T::Error: Into<StdError>,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
impl<T> OrganizationsClient<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
) -> OrganizationsClient<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 get_organization(
&mut self,
request: impl IntoRequest<GetOrganizationRequest>
) -> Result<Response<Organization>, Status>
pub async fn get_organization(
&mut self,
request: impl IntoRequest<GetOrganizationRequest>
) -> Result<Response<Organization>, Status>
Fetches an organization resource identified by the specified resource name.
pub async fn search_organizations(
&mut self,
request: impl IntoRequest<SearchOrganizationsRequest>
) -> Result<Response<SearchOrganizationsResponse>, Status>
pub async fn search_organizations(
&mut self,
request: impl IntoRequest<SearchOrganizationsRequest>
) -> Result<Response<SearchOrganizationsResponse>, Status>
Searches organization resources that are visible to the user and satisfy the specified filter. This method returns organizations in an unspecified order. New organizations do not necessarily appear at the end of the results, and may take a small amount of time to appear.
Search will only return organizations on which the user has the permission
resourcemanager.organizations.get
pub 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 an organization resource. The policy may
be empty if no such policy or resource exists. The resource
field should
be the organization’s resource name, for example: “organizations/123”.
Authorization requires the IAM permission
resourcemanager.organizations.getIamPolicy
on the specified organization.
pub 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 an organization resource. Replaces any
existing policy. The resource
field should be the organization’s resource
name, for example: “organizations/123”.
Authorization requires the IAM permission
resourcemanager.organizations.setIamPolicy
on the specified organization.
pub 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 the permissions that a caller has on the specified organization.
The resource
field should be the organization’s resource name,
for example: “organizations/123”.
There are no permissions required for making this API call.
Trait Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for OrganizationsClient<T> where
T: RefUnwindSafe,
impl<T> Send for OrganizationsClient<T> where
T: Send,
impl<T> Sync for OrganizationsClient<T> where
T: Sync,
impl<T> Unpin for OrganizationsClient<T> where
T: Unpin,
impl<T> UnwindSafe for OrganizationsClient<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