Class: Telnyx::Models::GlobalIPAssignmentsUsageRetrieveResponse::Data::GlobalIPAssignment::WireguardPeer

Inherits:
Internal::Type::BaseModel
  • Object
show all
Defined in:
lib/telnyx/models/global_ip_assignments_usage_retrieve_response.rb,
sig/telnyx/models/global_ip_assignments_usage_retrieve_response.rbs

Overview

See Also:

  • Telnyx::Models::GlobalIPAssignmentsUsageRetrieveResponse::Data::GlobalIPAssignment#wireguard_peer

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

#initializeWireguardPeer

Returns a new instance of WireguardPeer.

Parameters:

  • ip_address: (String)
  • name: (String)


138
# File 'sig/telnyx/models/global_ip_assignments_usage_retrieve_response.rbs', line 138

def initialize: (?ip_address: String, ?name: String) -> void

Instance Attribute Details

#ip_addressString?

The IP address of the interface.

Parameters:

  • (String)

Returns:

  • (String, nil)


110
# File 'lib/telnyx/models/global_ip_assignments_usage_retrieve_response.rb', line 110

optional :ip_address, String

#nameString?

A user specified name for the interface.

Parameters:

  • (String)

Returns:

  • (String, nil)


116
# File 'lib/telnyx/models/global_ip_assignments_usage_retrieve_response.rb', line 116

optional :name, String

Instance Method Details

#to_hash{ ip_address: String, name: String }

Returns:

  • ({ ip_address: String, name: String })


140
# File 'sig/telnyx/models/global_ip_assignments_usage_retrieve_response.rbs', line 140

def to_hash: -> { ip_address: String, name: String }