class VerificationCodes extends Resource (View source)

The "verificationCodes" collection of methods.

Typical usage is:

 $adminService = new Google\Service\Directory(...);
 $verificationCodes = $adminService->verificationCodes;

Methods

generate(string $userKey, array $optParams = [])

Generates new backup verification codes for the user.

invalidate(string $userKey, array $optParams = [])

Invalidates the current backup verification codes for the user.

listVerificationCodes(string $userKey, array $optParams = [])

Returns the current set of valid backup verification codes for the specified user. (verificationCodes.listVerificationCodes)

Details

generate(string $userKey, array $optParams = [])

Generates new backup verification codes for the user.

(verificationCodes.generate)

Parameters

string $userKey

Email or immutable ID of the user

array $optParams

Optional parameters.

Exceptions

Exception

invalidate(string $userKey, array $optParams = [])

Invalidates the current backup verification codes for the user.

(verificationCodes.invalidate)

Parameters

string $userKey

Email or immutable ID of the user

array $optParams

Optional parameters.

Exceptions

Exception

VerificationCodes listVerificationCodes(string $userKey, array $optParams = [])

Returns the current set of valid backup verification codes for the specified user. (verificationCodes.listVerificationCodes)

Parameters

string $userKey

Identifies the user in the API request. The value can be the user's primary email address, alias email address, or unique user ID.

array $optParams

Optional parameters.

Return Value

VerificationCodes

Exceptions

Exception