Class: Telnyx::Models::PhoneNumberBlocks::Job::FailedOperation

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/telnyx/models/phone_number_blocks/job.rb,
sig/telnyx/models/phone_number_blocks/job.rbs

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, record_type: nil, status: nil, successful_operations: nil, type: nil, updated_at: nil) ⇒ Object

Some parameter documentations has been truncated, see Telnyx::Models::PhoneNumberBlocks::Job for more details.

Parameters:

  • (defaults to: nil)

    Identifies the resource.

  • (defaults to: nil)

    ISO 8601 formatted date indicating when the resource was created.

  • (defaults to: nil)

    ISO 8601 formatted date indicating when the estimated time of completion of the

  • (defaults to: nil)
  • (defaults to: nil)

    Identifies the type of the resource.

  • (defaults to: nil)

    Indicates the completion status of the background operation.

  • (defaults to: nil)
  • (defaults to: nil)

    Identifies the type of the background job.

  • (defaults to: nil)

    ISO 8601 formatted date indicating when the resource was updated.



87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
# File 'lib/telnyx/models/phone_number_blocks/job.rb', line 87

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>?

Returns:



97
# File 'lib/telnyx/models/phone_number_blocks/job.rb', line 97

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

#idString?

The phone number's ID

Parameters:

Returns:



92
# File 'lib/telnyx/models/phone_number_blocks/job.rb', line 92

optional :id, String

#phone_numberString?

The phone number in e164 format.

Parameters:

Returns:



103
# File 'lib/telnyx/models/phone_number_blocks/job.rb', line 103

optional :phone_number, String

Instance Method Details

#to_hash{

Returns:



114
# File 'sig/telnyx/models/phone_number_blocks/job.rbs', line 114

def to_hash: -> {