Struct googapis::google::identity::accesscontextmanager::v1::access_context_manager_client::AccessContextManagerClient [−][src]
pub struct AccessContextManagerClient<T> { /* fields omitted */ }
Expand description
API for setting [Access Levels] [google.identity.accesscontextmanager.v1.AccessLevel] and [Service Perimeters] [google.identity.accesscontextmanager.v1.ServicePerimeter] for Google Cloud Projects. Each organization has one [AccessPolicy] [google.identity.accesscontextmanager.v1.AccessPolicy] containing the [Access Levels] [google.identity.accesscontextmanager.v1.AccessLevel] and [Service Perimeters] [google.identity.accesscontextmanager.v1.ServicePerimeter]. This [AccessPolicy] [google.identity.accesscontextmanager.v1.AccessPolicy] is applicable to all resources in the organization. AccessPolicies
Implementations
impl<T> AccessContextManagerClient<T> where
T: GrpcService<BoxBody>,
T::ResponseBody: Body + Send + 'static,
T::Error: Into<StdError>,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
impl<T> AccessContextManagerClient<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
) -> AccessContextManagerClient<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_access_policies(
&mut self,
request: impl IntoRequest<ListAccessPoliciesRequest>
) -> Result<Response<ListAccessPoliciesResponse>, Status>
pub async fn list_access_policies(
&mut self,
request: impl IntoRequest<ListAccessPoliciesRequest>
) -> Result<Response<ListAccessPoliciesResponse>, Status>
List all [AccessPolicies] [google.identity.accesscontextmanager.v1.AccessPolicy] under a container.
pub async fn get_access_policy(
&mut self,
request: impl IntoRequest<GetAccessPolicyRequest>
) -> Result<Response<AccessPolicy>, Status>
pub async fn get_access_policy(
&mut self,
request: impl IntoRequest<GetAccessPolicyRequest>
) -> Result<Response<AccessPolicy>, Status>
Get an [AccessPolicy] [google.identity.accesscontextmanager.v1.AccessPolicy] by name.
pub async fn create_access_policy(
&mut self,
request: impl IntoRequest<AccessPolicy>
) -> Result<Response<Operation>, Status>
pub async fn create_access_policy(
&mut self,
request: impl IntoRequest<AccessPolicy>
) -> Result<Response<Operation>, Status>
Create an AccessPolicy
. Fails if this organization already has a
AccessPolicy
. The longrunning Operation will have a successful status
once the AccessPolicy
has propagated to long-lasting storage.
Syntactic and basic semantic errors will be returned in metadata
as a
BadRequest proto.
pub async fn update_access_policy(
&mut self,
request: impl IntoRequest<UpdateAccessPolicyRequest>
) -> Result<Response<Operation>, Status>
pub async fn update_access_policy(
&mut self,
request: impl IntoRequest<UpdateAccessPolicyRequest>
) -> Result<Response<Operation>, Status>
Update an [AccessPolicy]
[google.identity.accesscontextmanager.v1.AccessPolicy]. The
longrunning Operation from this RPC will have a successful status once the
changes to the [AccessPolicy]
[google.identity.accesscontextmanager.v1.AccessPolicy] have propagated
to long-lasting storage. Syntactic and basic semantic errors will be
returned in metadata
as a BadRequest proto.
pub async fn delete_access_policy(
&mut self,
request: impl IntoRequest<DeleteAccessPolicyRequest>
) -> Result<Response<Operation>, Status>
pub async fn delete_access_policy(
&mut self,
request: impl IntoRequest<DeleteAccessPolicyRequest>
) -> Result<Response<Operation>, Status>
Delete an [AccessPolicy] [google.identity.accesscontextmanager.v1.AccessPolicy] by resource name. The longrunning Operation will have a successful status once the [AccessPolicy] [google.identity.accesscontextmanager.v1.AccessPolicy] has been removed from long-lasting storage.
pub async fn list_access_levels(
&mut self,
request: impl IntoRequest<ListAccessLevelsRequest>
) -> Result<Response<ListAccessLevelsResponse>, Status>
pub async fn list_access_levels(
&mut self,
request: impl IntoRequest<ListAccessLevelsRequest>
) -> Result<Response<ListAccessLevelsResponse>, Status>
List all [Access Levels] [google.identity.accesscontextmanager.v1.AccessLevel] for an access policy.
pub async fn get_access_level(
&mut self,
request: impl IntoRequest<GetAccessLevelRequest>
) -> Result<Response<AccessLevel>, Status>
pub async fn get_access_level(
&mut self,
request: impl IntoRequest<GetAccessLevelRequest>
) -> Result<Response<AccessLevel>, Status>
Get an [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel] by resource name.
pub async fn create_access_level(
&mut self,
request: impl IntoRequest<CreateAccessLevelRequest>
) -> Result<Response<Operation>, Status>
pub async fn create_access_level(
&mut self,
request: impl IntoRequest<CreateAccessLevelRequest>
) -> Result<Response<Operation>, Status>
Create an [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel]. The longrunning operation from this RPC will have a successful status once the [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel] has propagated to long-lasting storage. [Access Levels] [google.identity.accesscontextmanager.v1.AccessLevel] containing errors will result in an error response for the first error encountered.
pub async fn update_access_level(
&mut self,
request: impl IntoRequest<UpdateAccessLevelRequest>
) -> Result<Response<Operation>, Status>
pub async fn update_access_level(
&mut self,
request: impl IntoRequest<UpdateAccessLevelRequest>
) -> Result<Response<Operation>, Status>
Update an [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel]. The longrunning operation from this RPC will have a successful status once the changes to the [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel] have propagated to long-lasting storage. [Access Levels] [google.identity.accesscontextmanager.v1.AccessLevel] containing errors will result in an error response for the first error encountered.
pub async fn delete_access_level(
&mut self,
request: impl IntoRequest<DeleteAccessLevelRequest>
) -> Result<Response<Operation>, Status>
pub async fn delete_access_level(
&mut self,
request: impl IntoRequest<DeleteAccessLevelRequest>
) -> Result<Response<Operation>, Status>
Delete an [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel] by resource name. The longrunning operation from this RPC will have a successful status once the [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel] has been removed from long-lasting storage.
pub async fn replace_access_levels(
&mut self,
request: impl IntoRequest<ReplaceAccessLevelsRequest>
) -> Result<Response<Operation>, Status>
pub async fn replace_access_levels(
&mut self,
request: impl IntoRequest<ReplaceAccessLevelsRequest>
) -> Result<Response<Operation>, Status>
Replace all existing [Access Levels] [google.identity.accesscontextmanager.v1.AccessLevel] in an [Access Policy] [google.identity.accesscontextmanager.v1.AccessPolicy] with the [Access Levels] [google.identity.accesscontextmanager.v1.AccessLevel] provided. This is done atomically. The longrunning operation from this RPC will have a successful status once all replacements have propagated to long-lasting storage. Replacements containing errors will result in an error response for the first error encountered. Replacement will be cancelled on error, existing [Access Levels] [google.identity.accesscontextmanager.v1.AccessLevel] will not be affected. Operation.response field will contain ReplaceAccessLevelsResponse. Removing [Access Levels] [google.identity.accesscontextmanager.v1.AccessLevel] contained in existing [Service Perimeters] [google.identity.accesscontextmanager.v1.ServicePerimeter] will result in error.
pub async fn list_service_perimeters(
&mut self,
request: impl IntoRequest<ListServicePerimetersRequest>
) -> Result<Response<ListServicePerimetersResponse>, Status>
pub async fn list_service_perimeters(
&mut self,
request: impl IntoRequest<ListServicePerimetersRequest>
) -> Result<Response<ListServicePerimetersResponse>, Status>
List all [Service Perimeters] [google.identity.accesscontextmanager.v1.ServicePerimeter] for an access policy.
pub async fn get_service_perimeter(
&mut self,
request: impl IntoRequest<GetServicePerimeterRequest>
) -> Result<Response<ServicePerimeter>, Status>
pub async fn get_service_perimeter(
&mut self,
request: impl IntoRequest<GetServicePerimeterRequest>
) -> Result<Response<ServicePerimeter>, Status>
Get a [Service Perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] by resource name.
pub async fn create_service_perimeter(
&mut self,
request: impl IntoRequest<CreateServicePerimeterRequest>
) -> Result<Response<Operation>, Status>
pub async fn create_service_perimeter(
&mut self,
request: impl IntoRequest<CreateServicePerimeterRequest>
) -> Result<Response<Operation>, Status>
Create a [Service Perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter]. The longrunning operation from this RPC will have a successful status once the [Service Perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] has propagated to long-lasting storage. [Service Perimeters] [google.identity.accesscontextmanager.v1.ServicePerimeter] containing errors will result in an error response for the first error encountered.
pub async fn update_service_perimeter(
&mut self,
request: impl IntoRequest<UpdateServicePerimeterRequest>
) -> Result<Response<Operation>, Status>
pub async fn update_service_perimeter(
&mut self,
request: impl IntoRequest<UpdateServicePerimeterRequest>
) -> Result<Response<Operation>, Status>
Update a [Service Perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter]. The longrunning operation from this RPC will have a successful status once the changes to the [Service Perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] have propagated to long-lasting storage. [Service Perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] containing errors will result in an error response for the first error encountered.
pub async fn delete_service_perimeter(
&mut self,
request: impl IntoRequest<DeleteServicePerimeterRequest>
) -> Result<Response<Operation>, Status>
pub async fn delete_service_perimeter(
&mut self,
request: impl IntoRequest<DeleteServicePerimeterRequest>
) -> Result<Response<Operation>, Status>
Delete a [Service Perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] by resource name. The longrunning operation from this RPC will have a successful status once the [Service Perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] has been removed from long-lasting storage.
pub async fn replace_service_perimeters(
&mut self,
request: impl IntoRequest<ReplaceServicePerimetersRequest>
) -> Result<Response<Operation>, Status>
pub async fn replace_service_perimeters(
&mut self,
request: impl IntoRequest<ReplaceServicePerimetersRequest>
) -> Result<Response<Operation>, Status>
Replace all existing [Service Perimeters] [google.identity.accesscontextmanager.v1.ServicePerimeter] in an [Access Policy] [google.identity.accesscontextmanager.v1.AccessPolicy] with the [Service Perimeters] [google.identity.accesscontextmanager.v1.ServicePerimeter] provided. This is done atomically. The longrunning operation from this RPC will have a successful status once all replacements have propagated to long-lasting storage. Replacements containing errors will result in an error response for the first error encountered. Replacement will be cancelled on error, existing [Service Perimeters] [google.identity.accesscontextmanager.v1.ServicePerimeter] will not be affected. Operation.response field will contain ReplaceServicePerimetersResponse.
pub async fn commit_service_perimeters(
&mut self,
request: impl IntoRequest<CommitServicePerimetersRequest>
) -> Result<Response<Operation>, Status>
pub async fn commit_service_perimeters(
&mut self,
request: impl IntoRequest<CommitServicePerimetersRequest>
) -> Result<Response<Operation>, Status>
Commit the dry-run spec for all the [Service Perimeters]
[google.identity.accesscontextmanager.v1.ServicePerimeter] in an
[Access Policy][google.identity.accesscontextmanager.v1.AccessPolicy].
A commit operation on a Service Perimeter involves copying its spec
field
to that Service Perimeter’s status
field. Only [Service Perimeters]
[google.identity.accesscontextmanager.v1.ServicePerimeter] with
use_explicit_dry_run_spec
field set to true are affected by a commit
operation. The longrunning operation from this RPC will have a successful
status once the dry-run specs for all the [Service Perimeters]
[google.identity.accesscontextmanager.v1.ServicePerimeter] have been
committed. If a commit fails, it will cause the longrunning operation to
return an error response and the entire commit operation will be cancelled.
When successful, Operation.response field will contain
CommitServicePerimetersResponse. The dry_run
and the spec
fields will
be cleared after a successful commit operation.
pub async fn list_gcp_user_access_bindings(
&mut self,
request: impl IntoRequest<ListGcpUserAccessBindingsRequest>
) -> Result<Response<ListGcpUserAccessBindingsResponse>, Status>
pub async fn list_gcp_user_access_bindings(
&mut self,
request: impl IntoRequest<ListGcpUserAccessBindingsRequest>
) -> Result<Response<ListGcpUserAccessBindingsResponse>, Status>
Lists all [GcpUserAccessBindings] [google.identity.accesscontextmanager.v1.GcpUserAccessBinding] for a Google Cloud organization.
pub async fn get_gcp_user_access_binding(
&mut self,
request: impl IntoRequest<GetGcpUserAccessBindingRequest>
) -> Result<Response<GcpUserAccessBinding>, Status>
pub async fn get_gcp_user_access_binding(
&mut self,
request: impl IntoRequest<GetGcpUserAccessBindingRequest>
) -> Result<Response<GcpUserAccessBinding>, Status>
Gets the [GcpUserAccessBinding] [google.identity.accesscontextmanager.v1.GcpUserAccessBinding] with the given name.
pub async fn create_gcp_user_access_binding(
&mut self,
request: impl IntoRequest<CreateGcpUserAccessBindingRequest>
) -> Result<Response<Operation>, Status>
pub async fn create_gcp_user_access_binding(
&mut self,
request: impl IntoRequest<CreateGcpUserAccessBindingRequest>
) -> Result<Response<Operation>, Status>
Creates a [GcpUserAccessBinding] [google.identity.accesscontextmanager.v1.GcpUserAccessBinding]. If the client specifies a [name] [google.identity.accesscontextmanager.v1.GcpUserAccessBinding.name], the server will ignore it. Fails if a resource already exists with the same [group_key] [google.identity.accesscontextmanager.v1.GcpUserAccessBinding.group_key]. Completion of this long-running operation does not necessarily signify that the new binding is deployed onto all affected users, which may take more time.
pub async fn update_gcp_user_access_binding(
&mut self,
request: impl IntoRequest<UpdateGcpUserAccessBindingRequest>
) -> Result<Response<Operation>, Status>
pub async fn update_gcp_user_access_binding(
&mut self,
request: impl IntoRequest<UpdateGcpUserAccessBindingRequest>
) -> Result<Response<Operation>, Status>
Updates a [GcpUserAccessBinding] [google.identity.accesscontextmanager.v1.GcpUserAccessBinding]. Completion of this long-running operation does not necessarily signify that the changed binding is deployed onto all affected users, which may take more time.
pub async fn delete_gcp_user_access_binding(
&mut self,
request: impl IntoRequest<DeleteGcpUserAccessBindingRequest>
) -> Result<Response<Operation>, Status>
pub async fn delete_gcp_user_access_binding(
&mut self,
request: impl IntoRequest<DeleteGcpUserAccessBindingRequest>
) -> Result<Response<Operation>, Status>
Deletes a [GcpUserAccessBinding] [google.identity.accesscontextmanager.v1.GcpUserAccessBinding]. Completion of this long-running operation does not necessarily signify that the binding deletion is deployed onto all affected users, which may take more time.
Trait Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for AccessContextManagerClient<T> where
T: RefUnwindSafe,
impl<T> Send for AccessContextManagerClient<T> where
T: Send,
impl<T> Sync for AccessContextManagerClient<T> where
T: Sync,
impl<T> Unpin for AccessContextManagerClient<T> where
T: Unpin,
impl<T> UnwindSafe for AccessContextManagerClient<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