Class: Telnyx::Models::RegionListResponse::Data
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Telnyx::Models::RegionListResponse::Data
- Defined in:
- lib/telnyx/models/region_list_response.rb,
sig/telnyx/models/region_list_response.rbs
Instance Attribute Summary collapse
-
#code ⇒ String?
A code for the region.
-
#created_at ⇒ String?
readonly
Returns the value of attribute created_at.
-
#name ⇒ String?
A name for the region.
-
#record_type ⇒ String?
readonly
Returns the value of attribute record_type.
-
#supported_interfaces ⇒ Array<String>?
List of interface types supported in this region.
-
#updated_at ⇒ String?
readonly
Returns the value of attribute updated_at.
Instance Method Summary collapse
- #created_at ⇒ String readonly
- #initialize(code: nil, created_at: nil, name: nil, record_type: nil, supported_interfaces: nil, updated_at: nil) ⇒ Object constructor
- #record_type ⇒ String readonly
- #to_hash ⇒ {
- #updated_at ⇒ String readonly
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(code: nil, created_at: nil, name: nil, record_type: nil, supported_interfaces: nil, updated_at: nil) ⇒ Object
15 16 17 18 19 20 21 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 |
# File 'lib/telnyx/models/region_list_response.rb', line 15 class Data < Telnyx::Internal::Type::BaseModel # @!attribute code # A code for the region. # # @return [String, nil] optional :code, String # @!attribute name # A name for the region. # # @return [String, nil] optional :name, String # @!attribute supported_interfaces # List of interface types supported in this region. # # @return [Array<String>, nil] optional :supported_interfaces, Telnyx::Internal::Type::ArrayOf[String] response_only do # @!attribute created_at # ISO 8601 formatted date-time indicating when the resource was created. # # @return [String, nil] optional :created_at, String # @!attribute record_type # Identifies the type of the resource. # # @return [String, nil] optional :record_type, String # @!attribute updated_at # ISO 8601 formatted date-time indicating when the resource was updated. # # @return [String, nil] optional :updated_at, String end # @!method initialize(code: nil, created_at: nil, name: nil, record_type: nil, supported_interfaces: nil, updated_at: nil) # @param code [String] A code for the region. # # @param created_at [String] ISO 8601 formatted date-time indicating when the resource was created. # # @param name [String] A name for the region. # # @param record_type [String] Identifies the type of the resource. # # @param supported_interfaces [Array<String>] List of interface types supported in this region. # # @param updated_at [String] ISO 8601 formatted date-time indicating when the resource was updated. end |
Instance Attribute Details
#code ⇒ String?
A code for the region.
20 |
# File 'lib/telnyx/models/region_list_response.rb', line 20 optional :code, String |
#created_at ⇒ String? (readonly)
Returns the value of attribute created_at.
44 45 46 |
# File 'sig/telnyx/models/region_list_response.rbs', line 44 def created_at @created_at end |
#name ⇒ String?
A name for the region.
26 |
# File 'lib/telnyx/models/region_list_response.rb', line 26 optional :name, String |
#record_type ⇒ String? (readonly)
Returns the value of attribute record_type.
48 49 50 |
# File 'sig/telnyx/models/region_list_response.rbs', line 48 def record_type @record_type end |
#supported_interfaces ⇒ Array<String>?
List of interface types supported in this region.
32 |
# File 'lib/telnyx/models/region_list_response.rb', line 32 optional :supported_interfaces, Telnyx::Internal::Type::ArrayOf[String] |
#updated_at ⇒ String? (readonly)
Returns the value of attribute updated_at.
52 53 54 |
# File 'sig/telnyx/models/region_list_response.rbs', line 52 def updated_at @updated_at end |
Instance Method Details
#created_at= ⇒ String (readonly)
46 |
# File 'sig/telnyx/models/region_list_response.rbs', line 46
def created_at=: (String) -> String
|
#record_type= ⇒ String (readonly)
50 |
# File 'sig/telnyx/models/region_list_response.rbs', line 50
def record_type=: (String) -> String
|
#to_hash ⇒ {
65 |
# File 'sig/telnyx/models/region_list_response.rbs', line 65
def to_hash: -> {
|
#updated_at= ⇒ String (readonly)
54 |
# File 'sig/telnyx/models/region_list_response.rbs', line 54
def updated_at=: (String) -> String
|