Class: Google::Apis::AdminDirectoryV1::VerificationCode

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ VerificationCode

Returns a new instance of VerificationCode.



5656
5657
5658
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 5656

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#etagString

ETag of the resource. Corresponds to the JSON property etag

Returns:

  • (String)


5638
5639
5640
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 5638

def etag
  @etag
end

#kindString

The type of the resource. This is always admin#directory#verificationCode. Corresponds to the JSON property kind

Returns:

  • (String)


5643
5644
5645
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 5643

def kind
  @kind
end

#user_idString

The obfuscated unique ID of the user. Corresponds to the JSON property userId

Returns:

  • (String)


5648
5649
5650
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 5648

def user_id
  @user_id
end

#verification_codeString

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

Returns:

  • (String)


5654
5655
5656
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 5654

def verification_code
  @verification_code
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5661
5662
5663
5664
5665
5666
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 5661

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