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]
impl<'a, C, A> UserMethods<'a, C, A>
pub fn projects_delete(&self, name: &str) -> UserProjectDeleteCall<'a, C, A>
[src]
pub fn projects_delete(&self, name: &str) -> UserProjectDeleteCall<'a, C, A>
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 formatusers/{user}/projects/{project}
.
pub fn import_ssh_public_key(
&self,
request: SshPublicKey,
parent: &str
) -> UserImportSshPublicKeyCall<'a, C, A>
[src]
pub fn import_ssh_public_key(
&self,
request: SshPublicKey,
parent: &str
) -> UserImportSshPublicKeyCall<'a, C, A>
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 formatusers/{user}
.
pub fn ssh_public_keys_delete(
&self,
name: &str
) -> UserSshPublicKeyDeleteCall<'a, C, A>
[src]
pub fn ssh_public_keys_delete(
&self,
name: &str
) -> UserSshPublicKeyDeleteCall<'a, C, A>
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 formatusers/{user}/sshPublicKeys/{fingerprint}
.
pub fn get_login_profile(&self, name: &str) -> UserGetLoginProfileCall<'a, C, A>
[src]
pub fn get_login_profile(&self, name: &str) -> UserGetLoginProfileCall<'a, C, A>
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 formatusers/{user}
.
pub fn ssh_public_keys_get(
&self,
name: &str
) -> UserSshPublicKeyGetCall<'a, C, A>
[src]
pub fn ssh_public_keys_get(
&self,
name: &str
) -> UserSshPublicKeyGetCall<'a, C, A>
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 formatusers/{user}/sshPublicKeys/{fingerprint}
.
pub fn ssh_public_keys_patch(
&self,
request: SshPublicKey,
name: &str
) -> UserSshPublicKeyPatchCall<'a, C, A>
[src]
pub fn ssh_public_keys_patch(
&self,
request: SshPublicKey,
name: &str
) -> UserSshPublicKeyPatchCall<'a, C, A>
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 formatusers/{user}/sshPublicKeys/{fingerprint}
.
Trait Implementations
impl<'a, C, A> MethodsBuilder for UserMethods<'a, C, A>
[src]
impl<'a, C, A> MethodsBuilder for UserMethods<'a, C, A>
Auto Trait Implementations
impl<'a, C, A> !Send for UserMethods<'a, C, A>
impl<'a, C, A> !Send for UserMethods<'a, C, A>
impl<'a, C, A> !Sync for UserMethods<'a, C, A>
impl<'a, C, A> !Sync for UserMethods<'a, C, A>