Class: Telnyx::Models::Networks::DefaultGatewayCreateResponse::Data

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

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

Parameters:

  • id (String) (defaults to: nil)

    Identifies the resource.

  • created_at (String) (defaults to: nil)

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

  • record_type (String) (defaults to: nil)

    Identifies the type of the resource.

  • updated_at (String) (defaults to: nil)

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

  • network_id (String) (defaults to: nil)

    Network ID.

  • status (Symbol, Telnyx::Models::InterfaceStatus) (defaults to: nil)

    The current status of the interface deployment.

  • wireguard_peer_id (String) (defaults to: nil)

    Wireguard peer ID.



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
72
73
74
75
76
77
78
79
80
81
82
# File 'lib/telnyx/models/networks/default_gateway_create_response.rb', line 23

class Data < Telnyx::Internal::Type::BaseModel
  # @!attribute wireguard_peer_id
  #   Wireguard peer ID.
  #
  #   @return [String, nil]
  optional :wireguard_peer_id, String

  response_only do
    # @!attribute id
    #   Identifies the resource.
    #
    #   @return [String, nil]
    optional :id, String

    # @!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

    # @!attribute network_id
    #   Network ID.
    #
    #   @return [String, nil]
    optional :network_id, String

    # @!attribute status
    #   The current status of the interface deployment.
    #
    #   @return [Symbol, Telnyx::Models::InterfaceStatus, nil]
    optional :status, enum: -> { Telnyx::InterfaceStatus }
  end

  # @!method initialize(id: nil, created_at: nil, record_type: nil, updated_at: nil, network_id: nil, status: nil, wireguard_peer_id: nil)
  #   @param id [String] Identifies the resource.
  #
  #   @param created_at [String] ISO 8601 formatted date-time indicating when the resource was created.
  #
  #   @param record_type [String] Identifies the type of the resource.
  #
  #   @param updated_at [String] ISO 8601 formatted date-time indicating when the resource was updated.
  #
  #   @param network_id [String] Network ID.
  #
  #   @param status [Symbol, Telnyx::Models::InterfaceStatus] The current status of the interface deployment.
  #
  #   @param wireguard_peer_id [String] Wireguard peer ID.
end

Instance Attribute Details

#wireguard_peer_idString?

Wireguard peer ID.

Returns:

  • (String, nil)


28
# File 'lib/telnyx/models/networks/default_gateway_create_response.rb', line 28

optional :wireguard_peer_id, String