Struct GroupMethods

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

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

§Example

Instantiate a resource builder

extern crate hyper;
extern crate hyper_rustls;
extern crate google_cloudidentity1 as cloudidentity1;

use cloudidentity1::{CloudIdentity, 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 = CloudIdentity::new(client, auth);
// Usually you wouldn't bind this to a variable, but keep calling *CallBuilders*
// like `create(...)`, `delete(...)`, `get(...)`, `get_security_settings(...)`, `list(...)`, `lookup(...)`, `memberships_check_transitive_membership(...)`, `memberships_create(...)`, `memberships_delete(...)`, `memberships_get(...)`, `memberships_get_membership_graph(...)`, `memberships_list(...)`, `memberships_lookup(...)`, `memberships_modify_membership_roles(...)`, `memberships_search_direct_groups(...)`, `memberships_search_transitive_groups(...)`, `memberships_search_transitive_memberships(...)`, `patch(...)`, `search(...)` and `update_security_settings(...)`
// to build up your call.
let rb = hub.groups();

Implementations§

Source§

impl<'a, C> GroupMethods<'a, C>

Source

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

Create a builder to help you perform the following task:

Check a potential member for membership in a group. Note: This feature is only available to Google Workspace Enterprise Standard, Enterprise Plus, and Enterprise for Education; and Cloud Identity Premium accounts. If the account of the member is not one of these, a 403 (PERMISSION_DENIED) HTTP status code will be returned. A member has membership to a group as long as there is a single viewable transitive membership between the group and the member. The actor must have view permissions to at least one transitive membership between the member and group.

§Arguments
  • parent - Resource name of the group to check the transitive membership in. Format: groups/{group}, where group is the unique id assigned to the Group to which the Membership belongs to.
Source

pub fn memberships_create( &self, request: Membership, parent: &str, ) -> GroupMembershipCreateCall<'a, C>

Create a builder to help you perform the following task:

Creates a Membership.

§Arguments
  • request - No description provided.
  • parent - Required. The parent Group resource under which to create the Membership. Must be of the form groups/{group}.
Source

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

Create a builder to help you perform the following task:

Deletes a Membership.

§Arguments
  • name - Required. The resource name of the Membership to delete. Must be of the form groups/{group}/memberships/{membership}
Source

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

Create a builder to help you perform the following task:

Retrieves a Membership.

§Arguments
  • name - Required. The resource name of the Membership to retrieve. Must be of the form groups/{group}/memberships/{membership}.
Source

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

Create a builder to help you perform the following task:

Get a membership graph of just a member or both a member and a group. Note: This feature is only available to Google Workspace Enterprise Standard, Enterprise Plus, and Enterprise for Education; and Cloud Identity Premium accounts. If the account of the member is not one of these, a 403 (PERMISSION_DENIED) HTTP status code will be returned. Given a member, the response will contain all membership paths from the member. Given both a group and a member, the response will contain all membership paths between the group and the member.

§Arguments
  • parent - Required. Resource name of the group to search transitive memberships in. Format: groups/{group}, where group is the unique ID assigned to the Group to which the Membership belongs to. group can be a wildcard collection id “-”. When a group is specified, the membership graph will be constrained to paths between the member (defined in the query) and the parent. If a wildcard collection is provided, all membership paths connected to the member will be returned.
Source

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

Create a builder to help you perform the following task:

Lists the Memberships within a Group.

§Arguments
  • parent - Required. The parent Group resource under which to lookup the Membership name. Must be of the form groups/{group}.
Source

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

Create a builder to help you perform the following task:

Looks up the resource name of a Membership by its EntityKey.

§Arguments
  • parent - Required. The parent Group resource under which to lookup the Membership name. Must be of the form groups/{group}.
Source

pub fn memberships_modify_membership_roles( &self, request: ModifyMembershipRolesRequest, name: &str, ) -> GroupMembershipModifyMembershipRoleCall<'a, C>

Create a builder to help you perform the following task:

Modifies the MembershipRoles of a Membership.

§Arguments
  • request - No description provided.
  • name - Required. The resource name of the Membership whose roles are to be modified. Must be of the form groups/{group}/memberships/{membership}.
Source

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

Create a builder to help you perform the following task:

Searches direct groups of a member.

§Arguments
  • parent - Resource name of the group to search transitive memberships in. Format: groups/{group_id}, where group_id is always ‘-’ as this API will search across all groups for a given member.
Source

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

Create a builder to help you perform the following task:

Search transitive groups of a member. Note: This feature is only available to Google Workspace Enterprise Standard, Enterprise Plus, and Enterprise for Education; and Cloud Identity Premium accounts. If the account of the member is not one of these, a 403 (PERMISSION_DENIED) HTTP status code will be returned. A transitive group is any group that has a direct or indirect membership to the member. Actor must have view permissions all transitive groups.

§Arguments
  • parent - Resource name of the group to search transitive memberships in. Format: groups/{group}, where group is always ‘-’ as this API will search across all groups for a given member.
Source

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

Create a builder to help you perform the following task:

Search transitive memberships of a group. Note: This feature is only available to Google Workspace Enterprise Standard, Enterprise Plus, and Enterprise for Education; and Cloud Identity Premium accounts. If the account of the group is not one of these, a 403 (PERMISSION_DENIED) HTTP status code will be returned. A transitive membership is any direct or indirect membership of a group. Actor must have view permissions to all transitive memberships.

§Arguments
  • parent - Resource name of the group to search transitive memberships in. Format: groups/{group}, where group is the unique ID assigned to the Group.
Source

pub fn create(&self, request: Group) -> GroupCreateCall<'a, C>

Create a builder to help you perform the following task:

Creates a Group.

§Arguments
  • request - No description provided.
Source

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

Create a builder to help you perform the following task:

Deletes a Group.

§Arguments
  • name - Required. The resource name of the Group to retrieve. Must be of the form groups/{group}.
Source

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

Create a builder to help you perform the following task:

Retrieves a Group.

§Arguments
  • name - Required. The resource name of the Group to retrieve. Must be of the form groups/{group}.
Source

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

Create a builder to help you perform the following task:

Get Security Settings

§Arguments
  • name - Required. The security settings to retrieve. Format: groups/{group_id}/securitySettings
Source

pub fn list(&self) -> GroupListCall<'a, C>

Create a builder to help you perform the following task:

Lists the Group resources under a customer or namespace.

Source

pub fn lookup(&self) -> GroupLookupCall<'a, C>

Create a builder to help you perform the following task:

Looks up the resource name of a Group by its EntityKey.

Source

pub fn patch(&self, request: Group, name: &str) -> GroupPatchCall<'a, C>

Create a builder to help you perform the following task:

Updates a Group.

§Arguments
  • request - No description provided.
  • name - Output only. The resource name of the Group. Shall be of the form groups/{group}.
Source

pub fn search(&self) -> GroupSearchCall<'a, C>

Create a builder to help you perform the following task:

Searches for Group resources matching a specified query.

Source

pub fn update_security_settings( &self, request: SecuritySettings, name: &str, ) -> GroupUpdateSecuritySettingCall<'a, C>

Create a builder to help you perform the following task:

Update Security Settings

§Arguments
  • request - No description provided.
  • name - Output only. The resource name of the security settings. Shall be of the form groups/{group_id}/securitySettings.

Trait Implementations§

Source§

impl<'a, C> MethodsBuilder for GroupMethods<'a, C>

Auto Trait Implementations§

§

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

§

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

§

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

§

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

§

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

§

impl<'a, C> !UnwindSafe for GroupMethods<'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
Source§

impl<T> ErasedDestructor for T
where T: 'static,