class Google::Apis::AdminDirectoryV1::VerificationCode
The Directory API allows you to view, generate, and invalidate backup verification codes for a user.
Attributes
etag[RW]
ETag of the resource. Corresponds to the JSON property `etag` @return [String]
kind[RW]
The type of the resource. This is always `admin#directory#verificationCode`. Corresponds to the JSON property `kind` @return [String]
user_id[RW]
The obfuscated unique ID of the user. Corresponds to the JSON property `userId` @return [String]
verification_code[RW]
A current verification code for the user. Invalidated or used verification codes are not returned as part of the result. Corresponds to the JSON property `verificationCode` @return [String]
Public Class Methods
new(**args)
click to toggle source
# File lib/google/apis/admin_directory_v1/classes.rb, line 4886 def initialize(**args) update!(**args) end
Public Instance Methods
update!(**args)
click to toggle source
Update properties of this object
# File lib/google/apis/admin_directory_v1/classes.rb, line 4891 def update!(**args) @etag = args[:etag] if args.key?(:etag) @kind = args[:kind] if args.key?(:kind) @user_id = args[:user_id] if args.key?(:user_id) @verification_code = args[:verification_code] if args.key?(:verification_code) end