Struct google_oslogin1_beta::UserMethods[][src]

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_beta as oslogin1_beta;
 
use std::default::Default;
use oauth2::{Authenticator, DefaultAuthenticatorDelegate, ApplicationSecret, MemoryStorage};
use oslogin1_beta::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]

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}.

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}.

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}.

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}.

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}.

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>