Class: Telnyx::Models::WireguardInterfaceCreateParams::Body

Inherits:
Telnyx::Models::WireguardInterface show all
Defined in:
lib/telnyx/models/wireguard_interface_create_params.rb,
sig/telnyx/models/wireguard_interface_create_params.rbs

Instance Attribute Summary collapse

Attributes inherited from Telnyx::Models::WireguardInterface

#enable_sip_trunking, #name, #network_id

Attributes inherited from Record

#created_at, #id, #record_type, #updated_at

Instance Method Summary collapse

Methods inherited from Record

#created_at=, #id=, #record_type=, #updated_at=

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(region_code:) ⇒ Body

Returns a new instance of Body.

Parameters:

  • region_code (String)

    The region the interface should be deployed to.

  • region_code: (String)


19
20
21
22
23
24
25
26
27
28
# File 'lib/telnyx/models/wireguard_interface_create_params.rb', line 19

class Body < Telnyx::Models::WireguardInterface
  # @!attribute region_code
  #   The region the interface should be deployed to.
  #
  #   @return [String]
  required :region_code, String

  # @!method initialize(region_code:)
  #   @param region_code [String] The region the interface should be deployed to.
end

Instance Attribute Details

#region_codeString

The region the interface should be deployed to.

Parameters:

  • _ (String)

Returns:

  • (String)


24
# File 'lib/telnyx/models/wireguard_interface_create_params.rb', line 24

required :region_code, String

Instance Method Details

#to_hash{ region_code: String }

Returns:

  • ({ region_code: String })


32
# File 'sig/telnyx/models/wireguard_interface_create_params.rbs', line 32

def to_hash: -> { region_code: String }