Class: Google::Apis::ContentV2_1::RequestPhoneVerificationRequest
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2_1::RequestPhoneVerificationRequest
- 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 RequestPhoneVerification method.
Instance Attribute Summary collapse
-
#language_code ⇒ String
Language code IETF BCP 47 syntax (for example, en-US).
-
#phone_number ⇒ String
Phone number to be verified.
-
#phone_region_code ⇒ String
Required.
-
#phone_verification_method ⇒ String
Verification method to receive verification code.
Instance Method Summary collapse
-
#initialize(**args) ⇒ RequestPhoneVerificationRequest
constructor
A new instance of RequestPhoneVerificationRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ RequestPhoneVerificationRequest
Returns a new instance of RequestPhoneVerificationRequest.
12277 12278 12279 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 12277 def initialize(**args) update!(**args) end |
Instance Attribute Details
#language_code ⇒ String
Language code IETF BCP 47 syntax (for
example, en-US). Language code is used to provide localized SMS
and
PHONE_CALL
. Default language used is en-US if not provided.
Corresponds to the JSON property languageCode
12257 12258 12259 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 12257 def language_code @language_code end |
#phone_number ⇒ String
Phone number to be verified.
Corresponds to the JSON property phoneNumber
12262 12263 12264 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 12262 def phone_number @phone_number end |
#phone_region_code ⇒ String
Required. Two letter country code for the phone number, for example CA
for
Canadian numbers. See the ISO 3166-1 alpha-2 officially assigned
codes.
Corresponds to the JSON property phoneRegionCode
12270 12271 12272 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 12270 def phone_region_code @phone_region_code end |
#phone_verification_method ⇒ String
Verification method to receive verification code.
Corresponds to the JSON property phoneVerificationMethod
12275 12276 12277 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 12275 def phone_verification_method @phone_verification_method end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
12282 12283 12284 12285 12286 12287 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 12282 def update!(**args) @language_code = args[:language_code] if args.key?(:language_code) @phone_number = args[:phone_number] if args.key?(:phone_number) @phone_region_code = args[:phone_region_code] if args.key?(:phone_region_code) @phone_verification_method = args[:phone_verification_method] if args.key?(:phone_verification_method) end |