class Google::Apis::ContentV2_1::RequestPhoneVerificationRequest

Request message for the RequestPhoneVerification method.

Attributes

language_code[RW]

Language code [IETF BCP 47 syntax](tools.ietf.org/html/bcp47) (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` @return [String]

phone_number[RW]

Phone number to be verified. Corresponds to the JSON property `phoneNumber` @return [String]

phone_region_code[RW]

Required. Two letter country code for the phone number, for example `CA` for Canadian numbers. See the [ISO 3166-1 alpha-2](wikipedia.org/wiki/ ISO_3166-1_alpha-2#Officially_assigned_code_elements) officially assigned codes. Corresponds to the JSON property `phoneRegionCode` @return [String]

phone_verification_method[RW]

Verification method to receive verification code. Corresponds to the JSON property `phoneVerificationMethod` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/content_v2_1/classes.rb, line 12802
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/content_v2_1/classes.rb, line 12807
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