Struct google_iap1::api::ProjectMethods [−][src]
A builder providing access to all methods supported on project resources.
It is not used directly, but through the CloudIAP hub.
Example
Instantiate a resource builder
extern crate hyper; extern crate hyper_rustls; extern crate yup_oauth2 as oauth2; extern crate google_iap1 as iap1; use std::default::Default; use oauth2; use iap1::CloudIAP; let secret: oauth2::ApplicationSecret = Default::default(); let auth = yup_oauth2::InstalledFlowAuthenticator::builder( secret, yup_oauth2::InstalledFlowReturnMethod::HTTPRedirect, ).build().await.unwrap(); let mut hub = CloudIAP::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots()), auth); // Usually you wouldn't bind this to a variable, but keep calling *CallBuilders* // like `brands_create(...)`, `brands_get(...)`, `brands_identity_aware_proxy_clients_create(...)`, `brands_identity_aware_proxy_clients_delete(...)`, `brands_identity_aware_proxy_clients_get(...)`, `brands_identity_aware_proxy_clients_list(...)`, `brands_identity_aware_proxy_clients_reset_secret(...)` and `brands_list(...)` // to build up your call. let rb = hub.projects();
Implementations
impl<'a, C> ProjectMethods<'a, C>[src]
pub fn brands_identity_aware_proxy_clients_create(
&self,
request: IdentityAwareProxyClient,
parent: &str
) -> ProjectBrandIdentityAwareProxyClientCreateCall<'a, C>[src]
&self,
request: IdentityAwareProxyClient,
parent: &str
) -> ProjectBrandIdentityAwareProxyClientCreateCall<'a, C>
Create a builder to help you perform the following task:
Creates an Identity Aware Proxy (IAP) OAuth client. The client is owned by IAP. Requires that the brand for the project exists and that it is set for internal-only use.
Arguments
request- No description provided.parent- Required. Path to create the client in. In the following format: projects/{project_number/id}/brands/{brand}. The project must belong to a G Suite account.
pub fn brands_identity_aware_proxy_clients_delete(
&self,
name: &str
) -> ProjectBrandIdentityAwareProxyClientDeleteCall<'a, C>[src]
&self,
name: &str
) -> ProjectBrandIdentityAwareProxyClientDeleteCall<'a, C>
Create a builder to help you perform the following task:
Deletes an Identity Aware Proxy (IAP) OAuth client. Useful for removing obsolete clients, managing the number of clients in a given project, and cleaning up after tests. Requires that the client is owned by IAP.
Arguments
name- Required. Name of the Identity Aware Proxy client to be deleted. In the following format: projects/{project_number/id}/brands/{brand}/identityAwareProxyClients/{client_id}.
pub fn brands_identity_aware_proxy_clients_get(
&self,
name: &str
) -> ProjectBrandIdentityAwareProxyClientGetCall<'a, C>[src]
&self,
name: &str
) -> ProjectBrandIdentityAwareProxyClientGetCall<'a, C>
Create a builder to help you perform the following task:
Retrieves an Identity Aware Proxy (IAP) OAuth client. Requires that the client is owned by IAP.
Arguments
name- Required. Name of the Identity Aware Proxy client to be fetched. In the following format: projects/{project_number/id}/brands/{brand}/identityAwareProxyClients/{client_id}.
pub fn brands_identity_aware_proxy_clients_list(
&self,
parent: &str
) -> ProjectBrandIdentityAwareProxyClientListCall<'a, C>[src]
&self,
parent: &str
) -> ProjectBrandIdentityAwareProxyClientListCall<'a, C>
Create a builder to help you perform the following task:
Lists the existing clients for the brand.
Arguments
parent- Required. Full brand path. In the following format: projects/{project_number/id}/brands/{brand}.
pub fn brands_identity_aware_proxy_clients_reset_secret(
&self,
request: ResetIdentityAwareProxyClientSecretRequest,
name: &str
) -> ProjectBrandIdentityAwareProxyClientResetSecretCall<'a, C>[src]
&self,
request: ResetIdentityAwareProxyClientSecretRequest,
name: &str
) -> ProjectBrandIdentityAwareProxyClientResetSecretCall<'a, C>
Create a builder to help you perform the following task:
Resets an Identity Aware Proxy (IAP) OAuth client secret. Useful if the secret was compromised. Requires that the client is owned by IAP.
Arguments
request- No description provided.name- Required. Name of the Identity Aware Proxy client to that will have its secret reset. In the following format: projects/{project_number/id}/brands/{brand}/identityAwareProxyClients/{client_id}.
pub fn brands_create(
&self,
request: Brand,
parent: &str
) -> ProjectBrandCreateCall<'a, C>[src]
&self,
request: Brand,
parent: &str
) -> ProjectBrandCreateCall<'a, C>
Create a builder to help you perform the following task:
Constructs a new OAuth brand for the project if one does not exist. The created brand is "internal only", meaning that OAuth clients created under it only accept requests from users who belong to the same G Suite organization as the project. The brand is created in an un-reviewed status. NOTE: The "internal only" status can be manually changed in the Google Cloud console. Requires that a brand does not already exist for the project, and that the specified support email is owned by the caller.
Arguments
request- No description provided.parent- Required. GCP Project number/id under which the brand is to be created. In the following format: projects/{project_number/id}.
pub fn brands_get(&self, name: &str) -> ProjectBrandGetCall<'a, C>[src]
Create a builder to help you perform the following task:
Retrieves the OAuth brand of the project.
Arguments
name- Required. Name of the brand to be fetched. In the following format: projects/{project_number/id}/brands/{brand}.
pub fn brands_list(&self, parent: &str) -> ProjectBrandListCall<'a, C>[src]
Create a builder to help you perform the following task:
Lists the existing brands for the project.
Arguments
parent- Required. GCP Project number/id. In the following format: projects/{project_number/id}.
Trait Implementations
impl<'a, C> MethodsBuilder for ProjectMethods<'a, C>[src]
Auto Trait Implementations
impl<'a, C> !RefUnwindSafe for ProjectMethods<'a, C>[src]
impl<'a, C> !Send for ProjectMethods<'a, C>[src]
impl<'a, C> !Sync for ProjectMethods<'a, C>[src]
impl<'a, C> Unpin for ProjectMethods<'a, C>[src]
impl<'a, C> !UnwindSafe for ProjectMethods<'a, C>[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T> Instrument for T[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>[src]
pub fn in_current_span(self) -> Instrumented<Self>[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,