Class: Telnyx::Models::RegionListResponse::Data

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/telnyx/models/region_list_response.rb,
sig/telnyx/models/region_list_response.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(code: nil, created_at: nil, name: nil, record_type: nil, supported_interfaces: nil, updated_at: nil) ⇒ Object

Parameters:

  • code (String) (defaults to: nil)

    A code for the region.

  • created_at (String) (defaults to: nil)

    ISO 8601 formatted date-time indicating when the resource was created.

  • name (String) (defaults to: nil)

    A name for the region.

  • record_type (String) (defaults to: nil)

    Identifies the type of the resource.

  • supported_interfaces (Array<String>) (defaults to: nil)

    List of interface types supported in this region.

  • updated_at (String) (defaults to: nil)

    ISO 8601 formatted date-time indicating when the resource was updated.



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

#codeString?

A code for the region.

Parameters:

  • (String)

Returns:

  • (String, nil)


20
# File 'lib/telnyx/models/region_list_response.rb', line 20

optional :code, String

#created_atString? (readonly)

Returns the value of attribute created_at.

Returns:

  • (String, nil)


44
45
46
# File 'sig/telnyx/models/region_list_response.rbs', line 44

def created_at
  @created_at
end

#nameString?

A name for the region.

Parameters:

  • (String)

Returns:

  • (String, nil)


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

optional :name, String

#record_typeString? (readonly)

Returns the value of attribute record_type.

Returns:

  • (String, nil)


48
49
50
# File 'sig/telnyx/models/region_list_response.rbs', line 48

def record_type
  @record_type
end

#supported_interfacesArray<String>?

List of interface types supported in this region.

Parameters:

  • (::Array[String])

Returns:

  • (Array<String>, nil)


32
# File 'lib/telnyx/models/region_list_response.rb', line 32

optional :supported_interfaces, Telnyx::Internal::Type::ArrayOf[String]

#updated_atString? (readonly)

Returns the value of attribute updated_at.

Returns:

  • (String, nil)


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)

Parameters:

  • (String)

Returns:

  • (String)


46
# File 'sig/telnyx/models/region_list_response.rbs', line 46

def created_at=: (String) -> String

#record_type=String (readonly)

Parameters:

  • (String)

Returns:

  • (String)


50
# File 'sig/telnyx/models/region_list_response.rbs', line 50

def record_type=: (String) -> String

#to_hash{

Returns:

  • ({)


65
# File 'sig/telnyx/models/region_list_response.rbs', line 65

def to_hash: -> {

#updated_at=String (readonly)

Parameters:

  • (String)

Returns:

  • (String)


54
# File 'sig/telnyx/models/region_list_response.rbs', line 54

def updated_at=: (String) -> String