Class: Telnyx::Models::GlobalIPHealthCheckTypeListResponse::Data

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/telnyx/models/global_ip_health_check_type_list_response.rb,
sig/telnyx/models/global_ip_health_check_type_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(health_check_params: nil, health_check_type: nil, record_type: nil) ⇒ Object

Parameters:

  • health_check_params (Hash{Symbol=>Object}) (defaults to: nil)

    Global IP Health check params.

  • health_check_type (String) (defaults to: nil)

    Global IP Health check type.

  • record_type (String) (defaults to: nil)

    Identifies the type of the resource.



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
# File 'lib/telnyx/models/global_ip_health_check_type_list_response.rb', line 16

class Data < Telnyx::Internal::Type::BaseModel
  # @!attribute health_check_params
  #   Global IP Health check params.
  #
  #   @return [Hash{Symbol=>Object}, nil]
  optional :health_check_params, Telnyx::Internal::Type::HashOf[Telnyx::Internal::Type::Unknown]

  # @!attribute health_check_type
  #   Global IP Health check type.
  #
  #   @return [String, nil]
  optional :health_check_type, String

  response_only do
    # @!attribute record_type
    #   Identifies the type of the resource.
    #
    #   @return [String, nil]
    optional :record_type, String
  end

  # @!method initialize(health_check_params: nil, health_check_type: nil, record_type: nil)
  #   @param health_check_params [Hash{Symbol=>Object}] Global IP Health check params.
  #
  #   @param health_check_type [String] Global IP Health check type.
  #
  #   @param record_type [String] Identifies the type of the resource.
end

Instance Attribute Details

#health_check_paramsHash{Symbol=>Object}?

Global IP Health check params.

Parameters:

  • (::Hash[Symbol, top])

Returns:

  • (Hash{Symbol=>Object}, nil)


21
# File 'lib/telnyx/models/global_ip_health_check_type_list_response.rb', line 21

optional :health_check_params, Telnyx::Internal::Type::HashOf[Telnyx::Internal::Type::Unknown]

#health_check_typeString?

Global IP Health check type.

Parameters:

  • (String)

Returns:

  • (String, nil)


27
# File 'lib/telnyx/models/global_ip_health_check_type_list_response.rb', line 27

optional :health_check_type, String

#record_typeString? (readonly)

Returns the value of attribute record_type.

Returns:

  • (String, nil)


39
40
41
# File 'sig/telnyx/models/global_ip_health_check_type_list_response.rbs', line 39

def record_type
  @record_type
end

Instance Method Details

#record_type=String (readonly)

Parameters:

  • (String)

Returns:

  • (String)


41
# File 'sig/telnyx/models/global_ip_health_check_type_list_response.rbs', line 41

def record_type=: (String) -> String

#to_hash{

Returns:

  • ({)


49
# File 'sig/telnyx/models/global_ip_health_check_type_list_response.rbs', line 49

def to_hash: -> {