Class: Google::Apis::AdminDirectoryV1::VerificationCode
- Inherits:
-
Object
- Object
- Google::Apis::AdminDirectoryV1::VerificationCode
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/admin_directory_v1/classes.rb,
generated/google/apis/admin_directory_v1/representations.rb,
generated/google/apis/admin_directory_v1/representations.rb
Overview
JSON template for verification codes in Directory API.
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.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ VerificationCode
Returns a new instance of VerificationCode
3303 3304 3305 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 3303 def initialize(**args) update!(**args) end |
Instance Attribute Details
#etag ⇒ String
ETag of the resource.
Corresponds to the JSON property etag
3285 3286 3287 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 3285 def etag @etag end |
#kind ⇒ String
The type of the resource. This is always admin#directory#verificationCode.
Corresponds to the JSON property kind
3290 3291 3292 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 3290 def kind @kind end |
#user_id ⇒ String
The obfuscated unique ID of the user.
Corresponds to the JSON property userId
3295 3296 3297 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 3295 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
3301 3302 3303 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 3301 def verification_code @verification_code end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3308 3309 3310 3311 3312 3313 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 3308 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 |