Class: Google::Apis::ContentV2_1::RequestPhoneVerificationRequest

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 RequestPhoneVerification method.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RequestPhoneVerificationRequest

Returns a new instance of RequestPhoneVerificationRequest.



12239
12240
12241
# File 'lib/google/apis/content_v2_1/classes.rb', line 12239

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

Instance Attribute Details

#language_codeString

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

Returns:

  • (String)


12219
12220
12221
# File 'lib/google/apis/content_v2_1/classes.rb', line 12219

def language_code
  @language_code
end

#phone_numberString

Phone number to be verified. Corresponds to the JSON property phoneNumber

Returns:

  • (String)


12224
12225
12226
# File 'lib/google/apis/content_v2_1/classes.rb', line 12224

def phone_number
  @phone_number
end

#phone_region_codeString

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

Returns:

  • (String)


12232
12233
12234
# File 'lib/google/apis/content_v2_1/classes.rb', line 12232

def phone_region_code
  @phone_region_code
end

#phone_verification_methodString

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

Returns:

  • (String)


12237
12238
12239
# File 'lib/google/apis/content_v2_1/classes.rb', line 12237

def phone_verification_method
  @phone_verification_method
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



12244
12245
12246
12247
12248
12249
# File 'lib/google/apis/content_v2_1/classes.rb', line 12244

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