Struct gsuite_api::verification_codes::VerificationCodes [−][src]
pub struct VerificationCodes { pub client: Client, }
Fields
client: Client
Implementations
This function performs a GET
to the /admin/directory/v1/users/{userKey}/verificationCodes
endpoint.
Returns the current set of valid backup verification codes for the specified user.
Parameters:
user_key: &str
– Identifies the user in the API request. The value can be the user’s primary email address, alias email address, or unique user ID.
This function performs a POST
to the /admin/directory/v1/users/{userKey}/verificationCodes/generate
endpoint.
Generates new backup verification codes for the user.
Parameters:
user_key: &str
– Email or immutable ID of the user.
This function performs a POST
to the /admin/directory/v1/users/{userKey}/verificationCodes/invalidate
endpoint.
Invalidates the current backup verification codes for the user.
Parameters:
user_key: &str
– Email or immutable ID of the user.