pub struct IdentityAwareProxyAdminService { /* private fields */ }Expand description
Implements a client for the Cloud Identity-Aware Proxy API.
§Example
let client = IdentityAwareProxyAdminService::builder().build().await?;
// use `client` to make requests to the Cloud Identity-Aware Proxy API.§Service Description
APIs for Identity-Aware Proxy Admin configurations.
§Configuration
To configure IdentityAwareProxyAdminService use the with_* methods in the type returned
by builder(). The default configuration should
work for most applications. Common configuration changes include
- with_endpoint(): by default this client uses the global default endpoint
(
https://iap.googleapis.com). Applications using regional endpoints or running in restricted networks (e.g. a network configured override this default. - with_credentials(): by default this client uses Application Default Credentials. Applications using custom authentication may need to override this default.
§Pooling and Cloning
IdentityAwareProxyAdminService holds a connection pool internally, it is advised to
create one and the reuse it. You do not need to wrap IdentityAwareProxyAdminService in
an Rc or Arc to reuse it, because it
already uses an Arc internally.
Implementations§
Source§impl IdentityAwareProxyAdminService
impl IdentityAwareProxyAdminService
Sourcepub fn builder() -> ClientBuilder
pub fn builder() -> ClientBuilder
Returns a builder for IdentityAwareProxyAdminService.
let client = IdentityAwareProxyAdminService::builder().build().await?;Sourcepub fn from_stub<T>(stub: T) -> Selfwhere
T: IdentityAwareProxyAdminService + 'static,
pub fn from_stub<T>(stub: T) -> Selfwhere
T: IdentityAwareProxyAdminService + 'static,
Creates a new client from the provided stub.
The most common case for calling this function is in tests mocking the client’s behavior.
Sourcepub fn set_iam_policy(&self) -> SetIamPolicy
pub fn set_iam_policy(&self) -> SetIamPolicy
Sets the access control policy for an Identity-Aware Proxy protected resource. Replaces any existing policy. More information about managing access via IAP can be found at: https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api
Sourcepub fn get_iam_policy(&self) -> GetIamPolicy
pub fn get_iam_policy(&self) -> GetIamPolicy
Gets the access control policy for an Identity-Aware Proxy protected resource. More information about managing access via IAP can be found at: https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api
Sourcepub fn test_iam_permissions(&self) -> TestIamPermissions
pub fn test_iam_permissions(&self) -> TestIamPermissions
Returns permissions that a caller has on the Identity-Aware Proxy protected resource. More information about managing access via IAP can be found at: https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api
Sourcepub fn get_iap_settings(&self) -> GetIapSettings
pub fn get_iap_settings(&self) -> GetIapSettings
Gets the IAP settings on a particular IAP protected resource.
Sourcepub fn update_iap_settings(&self) -> UpdateIapSettings
pub fn update_iap_settings(&self) -> UpdateIapSettings
Updates the IAP settings on a particular IAP protected resource. It
replaces all fields unless the update_mask is set.
Sourcepub fn validate_iap_attribute_expression(
&self,
) -> ValidateIapAttributeExpression
pub fn validate_iap_attribute_expression( &self, ) -> ValidateIapAttributeExpression
Validates that a given CEL expression conforms to IAP restrictions.
Sourcepub fn list_tunnel_dest_groups(&self) -> ListTunnelDestGroups
pub fn list_tunnel_dest_groups(&self) -> ListTunnelDestGroups
Lists the existing TunnelDestGroups. To group across all locations, use a
- as the location ID. For example:
/v1/projects/123/iap_tunnel/locations/-/destGroups
Sourcepub fn create_tunnel_dest_group(&self) -> CreateTunnelDestGroup
pub fn create_tunnel_dest_group(&self) -> CreateTunnelDestGroup
Creates a new TunnelDestGroup.
Sourcepub fn get_tunnel_dest_group(&self) -> GetTunnelDestGroup
pub fn get_tunnel_dest_group(&self) -> GetTunnelDestGroup
Retrieves an existing TunnelDestGroup.
Sourcepub fn delete_tunnel_dest_group(&self) -> DeleteTunnelDestGroup
pub fn delete_tunnel_dest_group(&self) -> DeleteTunnelDestGroup
Deletes a TunnelDestGroup.
Sourcepub fn update_tunnel_dest_group(&self) -> UpdateTunnelDestGroup
pub fn update_tunnel_dest_group(&self) -> UpdateTunnelDestGroup
Updates a TunnelDestGroup.
Trait Implementations§
Source§impl Clone for IdentityAwareProxyAdminService
impl Clone for IdentityAwareProxyAdminService
Source§fn clone(&self) -> IdentityAwareProxyAdminService
fn clone(&self) -> IdentityAwareProxyAdminService
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more