Class: Google::Apis::AdminDirectoryV1::VerificationCode
- Inherits:
-
Object
- Object
- Google::Apis::AdminDirectoryV1::VerificationCode
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/admin_directory_v1/classes.rb,
lib/google/apis/admin_directory_v1/representations.rb,
lib/google/apis/admin_directory_v1/representations.rb
Overview
The Directory API allows you to view, generate, and invalidate backup verification codes for a user.
Instance Attribute Summary collapse
-
#etag ⇒ String
ETag of the resource.
-
#kind ⇒ String
The type of the resource.
-
#user_id ⇒ String
The obfuscated unique ID of the user.
-
#verification_code ⇒ String
A current verification code for the user.
Instance Method Summary collapse
-
#initialize(**args) ⇒ VerificationCode
constructor
A new instance of VerificationCode.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ VerificationCode
Returns a new instance of VerificationCode.
5768 5769 5770 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 5768 def initialize(**args) update!(**args) end |
Instance Attribute Details
#etag ⇒ String
ETag of the resource.
Corresponds to the JSON property etag
5750 5751 5752 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 5750 def etag @etag end |
#kind ⇒ String
The type of the resource. This is always admin#directory#verificationCode
.
Corresponds to the JSON property kind
5755 5756 5757 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 5755 def kind @kind end |
#user_id ⇒ String
The obfuscated unique ID of the user.
Corresponds to the JSON property userId
5760 5761 5762 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 5760 def user_id @user_id end |
#verification_code ⇒ String
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
5766 5767 5768 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 5766 def verification_code @verification_code end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5773 5774 5775 5776 5777 5778 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 5773 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 |