Class: Telnyx::Models::AvailablePhoneNumberBlockListResponse::Data

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

Defined Under Namespace

Modules: RecordType

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(cost_information: nil, features: nil, phone_number: nil, range: nil, record_type: nil, region_information: nil) ⇒ Object

Parameters:



22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# File 'lib/telnyx/models/available_phone_number_block_list_response.rb', line 22

class Data < Telnyx::Internal::Type::BaseModel
  # @!attribute cost_information
  #
  #   @return [Telnyx::Models::CostInformation, nil]
  optional :cost_information, -> { Telnyx::CostInformation }

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

  # @!attribute phone_number
  #
  #   @return [String, nil]
  optional :phone_number, String

  # @!attribute range
  #
  #   @return [Integer, nil]
  optional :range, Integer

  # @!attribute record_type
  #
  #   @return [Symbol, Telnyx::Models::AvailablePhoneNumberBlockListResponse::Data::RecordType, nil]
  optional :record_type,
           enum: -> { Telnyx::Models::AvailablePhoneNumberBlockListResponse::Data::RecordType }

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

  # @!method initialize(cost_information: nil, features: nil, phone_number: nil, range: nil, record_type: nil, region_information: nil)
  #   @param cost_information [Telnyx::Models::CostInformation]
  #   @param features [Array<Telnyx::Models::Feature>]
  #   @param phone_number [String]
  #   @param range [Integer]
  #   @param record_type [Symbol, Telnyx::Models::AvailablePhoneNumberBlockListResponse::Data::RecordType]
  #   @param region_information [Array<Telnyx::Models::RegionInformation>]

  # @see Telnyx::Models::AvailablePhoneNumberBlockListResponse::Data#record_type
  module RecordType
    extend Telnyx::Internal::Type::Enum

    AVAILABLE_PHONE_NUMBER_BLOCK = :available_phone_number_block

    # @!method self.values
    #   @return [Array<Symbol>]
  end
end

Instance Attribute Details

#cost_informationTelnyx::Models::CostInformation?



26
# File 'lib/telnyx/models/available_phone_number_block_list_response.rb', line 26

optional :cost_information, -> { Telnyx::CostInformation }

#featuresArray<Telnyx::Models::Feature>?

Returns:



31
# File 'lib/telnyx/models/available_phone_number_block_list_response.rb', line 31

optional :features, -> { Telnyx::Internal::Type::ArrayOf[Telnyx::Feature] }

#phone_numberString?

Returns:

  • (String, nil)


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

optional :phone_number, String

#rangeInteger?

Returns:

  • (Integer, nil)


41
# File 'lib/telnyx/models/available_phone_number_block_list_response.rb', line 41

optional :range, Integer

#record_typeSymbol, ...



46
47
# File 'lib/telnyx/models/available_phone_number_block_list_response.rb', line 46

optional :record_type,
enum: -> { Telnyx::Models::AvailablePhoneNumberBlockListResponse::Data::RecordType }

#region_informationArray<Telnyx::Models::RegionInformation>?

Returns:



52
# File 'lib/telnyx/models/available_phone_number_block_list_response.rb', line 52

optional :region_information, -> { Telnyx::Internal::Type::ArrayOf[Telnyx::RegionInformation] }