google_iam1::api

Struct LocationMethods

source
pub struct LocationMethods<'a, C>
where C: 'a,
{ /* private fields */ }
Expand description

A builder providing access to all methods supported on location resources. It is not used directly, but through the Iam hub.

§Example

Instantiate a resource builder

extern crate hyper;
extern crate hyper_rustls;
extern crate google_iam1 as iam1;

use iam1::{Iam, FieldMask, hyper_rustls, hyper_util, yup_oauth2};

let secret: yup_oauth2::ApplicationSecret = Default::default();
let auth = yup_oauth2::InstalledFlowAuthenticator::builder(
    secret,
    yup_oauth2::InstalledFlowReturnMethod::HTTPRedirect,
).build().await.unwrap();

let client = hyper_util::client::legacy::Client::builder(
    hyper_util::rt::TokioExecutor::new()
)
.build(
    hyper_rustls::HttpsConnectorBuilder::new()
        .with_native_roots()
        .unwrap()
        .https_or_http()
        .enable_http1()
        .build()
);
let mut hub = Iam::new(client, auth);
// Usually you wouldn't bind this to a variable, but keep calling *CallBuilders*
// like `workforce_pools_create(...)`, `workforce_pools_delete(...)`, `workforce_pools_get(...)`, `workforce_pools_get_iam_policy(...)`, `workforce_pools_list(...)`, `workforce_pools_operations_get(...)`, `workforce_pools_patch(...)`, `workforce_pools_providers_create(...)`, `workforce_pools_providers_delete(...)`, `workforce_pools_providers_get(...)`, `workforce_pools_providers_keys_create(...)`, `workforce_pools_providers_keys_delete(...)`, `workforce_pools_providers_keys_get(...)`, `workforce_pools_providers_keys_list(...)`, `workforce_pools_providers_keys_operations_get(...)`, `workforce_pools_providers_keys_undelete(...)`, `workforce_pools_providers_list(...)`, `workforce_pools_providers_operations_get(...)`, `workforce_pools_providers_patch(...)`, `workforce_pools_providers_undelete(...)`, `workforce_pools_set_iam_policy(...)`, `workforce_pools_subjects_delete(...)`, `workforce_pools_subjects_operations_get(...)`, `workforce_pools_subjects_undelete(...)`, `workforce_pools_test_iam_permissions(...)` and `workforce_pools_undelete(...)`
// to build up your call.
let rb = hub.locations();

Implementations§

source§

impl<'a, C> LocationMethods<'a, C>

source

pub fn workforce_pools_operations_get( &self, name: &str, ) -> LocationWorkforcePoolOperationGetCall<'a, C>

Create a builder to help you perform the following task:

Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.

§Arguments
  • name - The name of the operation resource.
source

pub fn workforce_pools_providers_keys_operations_get( &self, name: &str, ) -> LocationWorkforcePoolProviderKeyOperationGetCall<'a, C>

Create a builder to help you perform the following task:

Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.

§Arguments
  • name - The name of the operation resource.
source

pub fn workforce_pools_providers_keys_create( &self, request: WorkforcePoolProviderKey, parent: &str, ) -> LocationWorkforcePoolProviderKeyCreateCall<'a, C>

Create a builder to help you perform the following task:

Creates a new WorkforcePoolProviderKey in a WorkforcePoolProvider.

§Arguments
  • request - No description provided.
  • parent - Required. The provider to create this key in.
source

pub fn workforce_pools_providers_keys_delete( &self, name: &str, ) -> LocationWorkforcePoolProviderKeyDeleteCall<'a, C>

Create a builder to help you perform the following task:

Deletes a WorkforcePoolProviderKey. You can undelete a key for 30 days. After 30 days, deletion is permanent.

§Arguments
  • name - Required. The name of the key to delete.
source

pub fn workforce_pools_providers_keys_get( &self, name: &str, ) -> LocationWorkforcePoolProviderKeyGetCall<'a, C>

Create a builder to help you perform the following task:

Gets a WorkforcePoolProviderKey.

§Arguments
  • name - Required. The name of the key to retrieve.
source

pub fn workforce_pools_providers_keys_list( &self, parent: &str, ) -> LocationWorkforcePoolProviderKeyListCall<'a, C>

Create a builder to help you perform the following task:

Lists all non-deleted WorkforcePoolProviderKeys in a WorkforcePoolProvider. If show_deleted is set to true, then deleted keys are also listed.

§Arguments
  • parent - Required. The provider resource to list encryption keys for. Format: locations/{location}/workforcePools/{workforce_pool_id}/providers/{provider_id}
source

pub fn workforce_pools_providers_keys_undelete( &self, request: UndeleteWorkforcePoolProviderKeyRequest, name: &str, ) -> LocationWorkforcePoolProviderKeyUndeleteCall<'a, C>

Create a builder to help you perform the following task:

Undeletes a WorkforcePoolProviderKey, as long as it was deleted fewer than 30 days ago.

§Arguments
  • request - No description provided.
  • name - Required. The name of the key to undelete.
source

pub fn workforce_pools_providers_operations_get( &self, name: &str, ) -> LocationWorkforcePoolProviderOperationGetCall<'a, C>

Create a builder to help you perform the following task:

Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.

§Arguments
  • name - The name of the operation resource.
source

pub fn workforce_pools_providers_create( &self, request: WorkforcePoolProvider, parent: &str, ) -> LocationWorkforcePoolProviderCreateCall<'a, C>

Create a builder to help you perform the following task:

Creates a new WorkforcePoolProvider in a WorkforcePool. You cannot reuse the name of a deleted provider until 30 days after deletion.

§Arguments
  • request - No description provided.
  • parent - Required. The pool to create this provider in. Format: locations/{location}/workforcePools/{workforce_pool_id}
source

pub fn workforce_pools_providers_delete( &self, name: &str, ) -> LocationWorkforcePoolProviderDeleteCall<'a, C>

Create a builder to help you perform the following task:

Deletes a WorkforcePoolProvider. Deleting a provider does not revoke credentials that have already been issued; they continue to grant access. You can undelete a provider for 30 days. After 30 days, deletion is permanent. You cannot update deleted providers. However, you can view and list them.

§Arguments
  • name - Required. The name of the provider to delete. Format: locations/{location}/workforcePools/{workforce_pool_id}/providers/{provider_id}
source

pub fn workforce_pools_providers_get( &self, name: &str, ) -> LocationWorkforcePoolProviderGetCall<'a, C>

Create a builder to help you perform the following task:

Gets an individual WorkforcePoolProvider.

§Arguments
  • name - Required. The name of the provider to retrieve. Format: locations/{location}/workforcePools/{workforce_pool_id}/providers/{provider_id}
source

pub fn workforce_pools_providers_list( &self, parent: &str, ) -> LocationWorkforcePoolProviderListCall<'a, C>

Create a builder to help you perform the following task:

Lists all non-deleted WorkforcePoolProviders in a WorkforcePool. If show_deleted is set to true, then deleted providers are also listed.

§Arguments
  • parent - Required. The pool to list providers for. Format: locations/{location}/workforcePools/{workforce_pool_id}
source

pub fn workforce_pools_providers_patch( &self, request: WorkforcePoolProvider, name: &str, ) -> LocationWorkforcePoolProviderPatchCall<'a, C>

Create a builder to help you perform the following task:

Updates an existing WorkforcePoolProvider.

§Arguments
  • request - No description provided.
  • name - Output only. The resource name of the provider. Format: locations/{location}/workforcePools/{workforce_pool_id}/providers/{provider_id}
source

pub fn workforce_pools_providers_undelete( &self, request: UndeleteWorkforcePoolProviderRequest, name: &str, ) -> LocationWorkforcePoolProviderUndeleteCall<'a, C>

Create a builder to help you perform the following task:

Undeletes a WorkforcePoolProvider, as long as it was deleted fewer than 30 days ago.

§Arguments
  • request - No description provided.
  • name - Required. The name of the provider to undelete. Format: locations/{location}/workforcePools/{workforce_pool_id}/providers/{provider_id}
source

pub fn workforce_pools_subjects_operations_get( &self, name: &str, ) -> LocationWorkforcePoolSubjectOperationGetCall<'a, C>

Create a builder to help you perform the following task:

Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.

§Arguments
  • name - The name of the operation resource.
source

pub fn workforce_pools_subjects_delete( &self, name: &str, ) -> LocationWorkforcePoolSubjectDeleteCall<'a, C>

Create a builder to help you perform the following task:

Deletes a WorkforcePoolSubject. Subject must not already be in a deleted state. A WorkforcePoolSubject is automatically created the first time an external credential is exchanged for a Google Cloud credential using a mapped google.subject attribute. There is no endpoint to manually create a WorkforcePoolSubject. For 30 days after a WorkforcePoolSubject is deleted, using the same google.subject attribute in token exchanges with Google Cloud STS fails. Call UndeleteWorkforcePoolSubject to undelete a WorkforcePoolSubject that has been deleted, within within 30 days of deleting it. After 30 days, the WorkforcePoolSubject is permanently deleted. At this point, a token exchange with Google Cloud STS that uses the same mapped google.subject attribute automatically creates a new WorkforcePoolSubject that is unrelated to the previously deleted WorkforcePoolSubject but has the same google.subject value.

§Arguments
  • name - Required. The resource name of the WorkforcePoolSubject. Special characters, like / and :, must be escaped, because all URLs need to conform to the “When to Escape and Unescape” section of RFC3986. Format: locations/{location}/workforcePools/{workforce_pool_id}/subjects/{subject_id}
source

pub fn workforce_pools_subjects_undelete( &self, request: UndeleteWorkforcePoolSubjectRequest, name: &str, ) -> LocationWorkforcePoolSubjectUndeleteCall<'a, C>

Create a builder to help you perform the following task:

Undeletes a WorkforcePoolSubject, as long as it was deleted fewer than 30 days ago.

§Arguments
  • request - No description provided.
  • name - Required. The resource name of the WorkforcePoolSubject. Special characters, like / and :, must be escaped, because all URLs need to conform to the “When to Escape and Unescape” section of RFC3986. Format: locations/{location}/workforcePools/{workforce_pool_id}/subjects/{subject_id}
source

pub fn workforce_pools_create( &self, request: WorkforcePool, location: &str, ) -> LocationWorkforcePoolCreateCall<'a, C>

Create a builder to help you perform the following task:

Creates a new WorkforcePool. You cannot reuse the name of a deleted pool until 30 days after deletion.

§Arguments
  • request - No description provided.
  • location - The location of the pool to create. Format: locations/{location}.
source

pub fn workforce_pools_delete( &self, name: &str, ) -> LocationWorkforcePoolDeleteCall<'a, C>

Create a builder to help you perform the following task:

Deletes a WorkforcePool. You cannot use a deleted WorkforcePool to exchange external credentials for Google Cloud credentials. However, deletion does not revoke credentials that have already been issued. Credentials issued for a deleted pool do not grant access to resources. If the pool is undeleted, and the credentials are not expired, they grant access again. You can undelete a pool for 30 days. After 30 days, deletion is permanent. You cannot update deleted pools. However, you can view and list them.

§Arguments
  • name - Required. The name of the pool to delete. Format: locations/{location}/workforcePools/{workforce_pool_id}
source

pub fn workforce_pools_get( &self, name: &str, ) -> LocationWorkforcePoolGetCall<'a, C>

Create a builder to help you perform the following task:

Gets an individual WorkforcePool.

§Arguments
  • name - Required. The name of the pool to retrieve. Format: locations/{location}/workforcePools/{workforce_pool_id}
source

pub fn workforce_pools_get_iam_policy( &self, request: GetIamPolicyRequest, resource: &str, ) -> LocationWorkforcePoolGetIamPolicyCall<'a, C>

Create a builder to help you perform the following task:

Gets IAM policies on a WorkforcePool.

§Arguments
  • request - No description provided.
  • resource - REQUIRED: The resource for which the policy is being requested. See Resource names for the appropriate value for this field.
source

pub fn workforce_pools_list( &self, location: &str, ) -> LocationWorkforcePoolListCall<'a, C>

Create a builder to help you perform the following task:

Lists all non-deleted WorkforcePools under the specified parent. If show_deleted is set to true, then deleted pools are also listed.

§Arguments
  • location - The location of the pool. Format: locations/{location}.
source

pub fn workforce_pools_patch( &self, request: WorkforcePool, name: &str, ) -> LocationWorkforcePoolPatchCall<'a, C>

Create a builder to help you perform the following task:

Updates an existing WorkforcePool.

§Arguments
  • request - No description provided.
  • name - Output only. The resource name of the pool. Format: locations/{location}/workforcePools/{workforce_pool_id}
source

pub fn workforce_pools_set_iam_policy( &self, request: SetIamPolicyRequest, resource: &str, ) -> LocationWorkforcePoolSetIamPolicyCall<'a, C>

Create a builder to help you perform the following task:

Sets IAM policies on a WorkforcePool.

§Arguments
  • request - No description provided.
  • resource - REQUIRED: The resource for which the policy is being specified. See Resource names for the appropriate value for this field.
source

pub fn workforce_pools_test_iam_permissions( &self, request: TestIamPermissionsRequest, resource: &str, ) -> LocationWorkforcePoolTestIamPermissionCall<'a, C>

Create a builder to help you perform the following task:

Returns the caller’s permissions on the WorkforcePool. If the pool doesn’t exist, this call returns an empty set of permissions. It doesn’t return a NOT_FOUND error.

§Arguments
  • request - No description provided.
  • resource - REQUIRED: The resource for which the policy detail is being requested. See Resource names for the appropriate value for this field.
source

pub fn workforce_pools_undelete( &self, request: UndeleteWorkforcePoolRequest, name: &str, ) -> LocationWorkforcePoolUndeleteCall<'a, C>

Create a builder to help you perform the following task:

Undeletes a WorkforcePool, as long as it was deleted fewer than 30 days ago.

§Arguments
  • request - No description provided.
  • name - Required. The name of the pool to undelete. Format: locations/{location}/workforcePools/{workforce_pool_id}

Trait Implementations§

Auto Trait Implementations§

§

impl<'a, C> Freeze for LocationMethods<'a, C>

§

impl<'a, C> !RefUnwindSafe for LocationMethods<'a, C>

§

impl<'a, C> Send for LocationMethods<'a, C>
where C: Sync,

§

impl<'a, C> Sync for LocationMethods<'a, C>
where C: Sync,

§

impl<'a, C> Unpin for LocationMethods<'a, C>

§

impl<'a, C> !UnwindSafe for LocationMethods<'a, C>

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more