[][src]Struct google_oslogin1::UserMethods

pub struct UserMethods<'a, C, A> where
    C: 'a,
    A: 'a, 
{ /* fields omitted */ }

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

Example

Instantiate a resource builder

extern crate hyper;
extern crate hyper_rustls;
extern crate yup_oauth2 as oauth2;
extern crate google_oslogin1 as oslogin1;
 
use std::default::Default;
use oauth2::{Authenticator, DefaultAuthenticatorDelegate, ApplicationSecret, MemoryStorage};
use oslogin1::CloudOSLogin;
 
let secret: ApplicationSecret = Default::default();
let auth = Authenticator::new(&secret, DefaultAuthenticatorDelegate,
                              hyper::Client::with_connector(hyper::net::HttpsConnector::new(hyper_rustls::TlsClient::new())),
                              <MemoryStorage as Default>::default(), None);
let mut hub = CloudOSLogin::new(hyper::Client::with_connector(hyper::net::HttpsConnector::new(hyper_rustls::TlsClient::new())), auth);
// Usually you wouldn't bind this to a variable, but keep calling *CallBuilders*
// like `get_login_profile(...)`, `import_ssh_public_key(...)`, `projects_delete(...)`, `ssh_public_keys_delete(...)`, `ssh_public_keys_get(...)` and `ssh_public_keys_patch(...)`
// to build up your call.
let rb = hub.users();

Methods

impl<'a, C, A> UserMethods<'a, C, A>[src]

pub fn projects_delete(&self, name: &str) -> UserProjectDeleteCall<'a, C, A>[src]

Create a builder to help you perform the following task:

Deletes a POSIX account.

Arguments

  • name - A reference to the POSIX account to update. POSIX accounts are identified by the project ID they are associated with. A reference to the POSIX account is in format users/{user}/projects/{project}.

pub fn import_ssh_public_key(
    &self,
    request: SshPublicKey,
    parent: &str
) -> UserImportSshPublicKeyCall<'a, C, A>
[src]

Create a builder to help you perform the following task:

Adds an SSH public key and returns the profile information. Default POSIX account information is set when no username and UID exist as part of the login profile.

Arguments

  • request - No description provided.
  • parent - The unique ID for the user in format users/{user}.

pub fn ssh_public_keys_delete(
    &self,
    name: &str
) -> UserSshPublicKeyDeleteCall<'a, C, A>
[src]

Create a builder to help you perform the following task:

Deletes an SSH public key.

Arguments

  • name - The fingerprint of the public key to update. Public keys are identified by their SHA-256 fingerprint. The fingerprint of the public key is in format users/{user}/sshPublicKeys/{fingerprint}.

pub fn get_login_profile(&self, name: &str) -> UserGetLoginProfileCall<'a, C, A>[src]

Create a builder to help you perform the following task:

Retrieves the profile information used for logging in to a virtual machine on Google Compute Engine.

Arguments

  • name - The unique ID for the user in format users/{user}.

pub fn ssh_public_keys_get(
    &self,
    name: &str
) -> UserSshPublicKeyGetCall<'a, C, A>
[src]

Create a builder to help you perform the following task:

Retrieves an SSH public key.

Arguments

  • name - The fingerprint of the public key to retrieve. Public keys are identified by their SHA-256 fingerprint. The fingerprint of the public key is in format users/{user}/sshPublicKeys/{fingerprint}.

pub fn ssh_public_keys_patch(
    &self,
    request: SshPublicKey,
    name: &str
) -> UserSshPublicKeyPatchCall<'a, C, A>
[src]

Create a builder to help you perform the following task:

Updates an SSH public key and returns the profile information. This method supports patch semantics.

Arguments

  • request - No description provided.
  • name - The fingerprint of the public key to update. Public keys are identified by their SHA-256 fingerprint. The fingerprint of the public key is in format users/{user}/sshPublicKeys/{fingerprint}.

Trait Implementations

impl<'a, C, A> MethodsBuilder for UserMethods<'a, C, A>[src]

Auto Trait Implementations

impl<'a, C, A> !Send for UserMethods<'a, C, A>

impl<'a, C, A> !Sync for UserMethods<'a, C, A>

impl<'a, C, A> Unpin for UserMethods<'a, C, A>

impl<'a, C, A> !UnwindSafe for UserMethods<'a, C, A>

impl<'a, C, A> !RefUnwindSafe for UserMethods<'a, C, A>

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = !

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Typeable for T where
    T: Any