Class: Telnyx::Models::PhoneNumbers::PhoneNumbersJob::FailedOperation

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/telnyx/models/phone_numbers/phone_numbers_job.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize(id: nil, created_at: nil, etc: nil, failed_operations: nil, pending_operations: nil, phone_numbers: nil, record_type: nil, status: nil, successful_operations: nil, type: nil, updated_at: nil) ⇒ Object

Some parameter documentations has been truncated, see Telnyx::Models::PhoneNumbers::PhoneNumbersJob for more details.

Parameters:



102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
# File 'lib/telnyx/models/phone_numbers/phone_numbers_job.rb', line 102

class FailedOperation < Telnyx::Internal::Type::BaseModel
  # @!attribute id
  #   The phone number's ID
  #
  #   @return [String, nil]
  optional :id, String

  # @!attribute errors
  #
  #   @return [Array<Telnyx::Models::PhoneNumberBlocks::JobError>, nil]
  optional :errors, -> { Telnyx::Internal::Type::ArrayOf[Telnyx::PhoneNumberBlocks::JobError] }

  # @!attribute phone_number
  #   The phone number in e164 format.
  #
  #   @return [String, nil]
  optional :phone_number, String

  # @!method initialize(id: nil, errors: nil, phone_number: nil)
  #   @param id [String] The phone number's ID
  #
  #   @param errors [Array<Telnyx::Models::PhoneNumberBlocks::JobError>]
  #
  #   @param phone_number [String] The phone number in e164 format.
end

Instance Attribute Details

#errorsArray<Telnyx::Models::PhoneNumberBlocks::JobError>?



112
# File 'lib/telnyx/models/phone_numbers/phone_numbers_job.rb', line 112

optional :errors, -> { Telnyx::Internal::Type::ArrayOf[Telnyx::PhoneNumberBlocks::JobError] }

#idString?

The phone number’s ID

Returns:

  • (String, nil)


107
# File 'lib/telnyx/models/phone_numbers/phone_numbers_job.rb', line 107

optional :id, String

#phone_numberString?

The phone number in e164 format.

Returns:

  • (String, nil)


118
# File 'lib/telnyx/models/phone_numbers/phone_numbers_job.rb', line 118

optional :phone_number, String