Class: Google::Apis::ContentV2_1::VerifyPhoneNumberRequest

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/content_v2_1/classes.rb,
lib/google/apis/content_v2_1/representations.rb,
lib/google/apis/content_v2_1/representations.rb

Overview

Request message for the VerifyPhoneNumber method.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ VerifyPhoneNumberRequest

Returns a new instance of VerifyPhoneNumberRequest.



15658
15659
15660
# File 'lib/google/apis/content_v2_1/classes.rb', line 15658

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

Instance Attribute Details

#phone_verification_methodString

Verification method used to receive verification code. Corresponds to the JSON property phoneVerificationMethod

Returns:

  • (String)


15646
15647
15648
# File 'lib/google/apis/content_v2_1/classes.rb', line 15646

def phone_verification_method
  @phone_verification_method
end

#verification_codeString

The verification code that was sent to the phone number for validation. Corresponds to the JSON property verificationCode

Returns:

  • (String)


15651
15652
15653
# File 'lib/google/apis/content_v2_1/classes.rb', line 15651

def verification_code
  @verification_code
end

#verification_idString

The verification ID returned by requestphoneverification. Corresponds to the JSON property verificationId

Returns:

  • (String)


15656
15657
15658
# File 'lib/google/apis/content_v2_1/classes.rb', line 15656

def verification_id
  @verification_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



15663
15664
15665
15666
15667
# File 'lib/google/apis/content_v2_1/classes.rb', line 15663

def update!(**args)
  @phone_verification_method = args[:phone_verification_method] if args.key?(:phone_verification_method)
  @verification_code = args[:verification_code] if args.key?(:verification_code)
  @verification_id = args[:verification_id] if args.key?(:verification_id)
end