Class: Telnyx::Models::PortingOrders::PortingPhoneNumberConfiguration

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

Overview

See Also:

  • Telnyx::Resources::PortingOrders::PhoneNumberConfigurations#list

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, porting_phone_number_id: nil, record_type: nil, updated_at: nil, user_bundle_id: nil) ⇒ Object

Parameters:

  • id (String) (defaults to: nil)

    Uniquely identifies this phone number configuration

  • created_at (Time) (defaults to: nil)

    ISO 8601 formatted date indicating when the resource was created.

  • porting_phone_number_id (String) (defaults to: nil)

    Identifies the associated porting phone number

  • record_type (String) (defaults to: nil)

    Identifies the type of the resource.

  • updated_at (Time) (defaults to: nil)

    ISO 8601 formatted date indicating when the resource was updated.

  • user_bundle_id (String) (defaults to: nil)

    Identifies the associated user bundle



# File 'lib/telnyx/models/porting_orders/porting_phone_number_configuration.rb', line 46

Instance Attribute Details

#created_atTime?

ISO 8601 formatted date indicating when the resource was created.

Parameters:

  • (Time)

Returns:

  • (Time, nil)


18
# File 'lib/telnyx/models/porting_orders/porting_phone_number_configuration.rb', line 18

optional :created_at, Time

#idString?

Uniquely identifies this phone number configuration

Parameters:

  • (String)

Returns:

  • (String, nil)


12
# File 'lib/telnyx/models/porting_orders/porting_phone_number_configuration.rb', line 12

optional :id, String

#porting_phone_number_idString?

Identifies the associated porting phone number

Parameters:

  • (String)

Returns:

  • (String, nil)


24
# File 'lib/telnyx/models/porting_orders/porting_phone_number_configuration.rb', line 24

optional :porting_phone_number_id, String

#record_typeString? (readonly)

Returns the value of attribute record_type.

Returns:

  • (String, nil)


35
36
37
# File 'sig/telnyx/models/porting_orders/porting_phone_number_configuration.rbs', line 35

def record_type
  @record_type
end

#updated_atTime?

ISO 8601 formatted date indicating when the resource was updated.

Parameters:

  • (Time)

Returns:

  • (Time, nil)


30
# File 'lib/telnyx/models/porting_orders/porting_phone_number_configuration.rb', line 30

optional :updated_at, Time

#user_bundle_idString?

Identifies the associated user bundle

Parameters:

  • (String)

Returns:

  • (String, nil)


36
# File 'lib/telnyx/models/porting_orders/porting_phone_number_configuration.rb', line 36

optional :user_bundle_id, String

Instance Method Details

#record_type=String (readonly)

Parameters:

  • (String)

Returns:

  • (String)


37
# File 'sig/telnyx/models/porting_orders/porting_phone_number_configuration.rbs', line 37

def record_type=: (String) -> String

#to_hash{

Returns:

  • ({)


48
# File 'sig/telnyx/models/porting_orders/porting_phone_number_configuration.rbs', line 48

def to_hash: -> {