Class: Telnyx::Models::Networks::DefaultGatewayDeleteResponse::Data

Inherits:
Record show all
Defined in:
lib/telnyx/models/networks/default_gateway_delete_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(network_id: nil, status: nil, wireguard_peer_id: nil) ⇒ Object

Parameters:

  • 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
# File 'lib/telnyx/models/networks/default_gateway_delete_response.rb', line 23

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

  response_only do
    # @!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(network_id: nil, status: nil, wireguard_peer_id: nil)
  #   @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_delete_response.rb', line 28

optional :wireguard_peer_id, String