Class: Telnyx::Models::SimCardDataUsageNotification

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

Overview

See Also:

  • Telnyx::Resources::SimCardDataUsageNotifications#list

Defined Under Namespace

Classes: Threshold

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, sim_card_id: nil, threshold: nil, updated_at: nil) ⇒ Object

The SIM card individual data usage notification information.

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)
  • sim_card_id (String) (defaults to: nil)

    The identification UUID of the related SIM card resource.

  • threshold (Telnyx::Models::SimCardDataUsageNotification::Threshold) (defaults to: nil)

    Data usage threshold that will trigger the notification.

  • updated_at (String) (defaults to: nil)

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



# File 'lib/telnyx/models/sim_card_data_usage_notification.rb', line 44

Instance Attribute Details

#created_atString? (readonly)

Returns the value of attribute created_at.

Returns:

  • (String, nil)


28
29
30
# File 'sig/telnyx/models/sim_card_data_usage_notification.rbs', line 28

def created_at
  @created_at
end

#idString? (readonly)

Returns the value of attribute id.

Returns:

  • (String, nil)


24
25
26
# File 'sig/telnyx/models/sim_card_data_usage_notification.rbs', line 24

def id
  @id
end

#record_typeString? (readonly)

Returns the value of attribute record_type.

Returns:

  • (String, nil)


32
33
34
# File 'sig/telnyx/models/sim_card_data_usage_notification.rbs', line 32

def record_type
  @record_type
end

#sim_card_idString?

The identification UUID of the related SIM card resource.

Parameters:

  • (String)

Returns:

  • (String, nil)


11
# File 'lib/telnyx/models/sim_card_data_usage_notification.rb', line 11

optional :sim_card_id, String

#thresholdTelnyx::Models::SimCardDataUsageNotification::Threshold?

Data usage threshold that will trigger the notification.



17
# File 'lib/telnyx/models/sim_card_data_usage_notification.rb', line 17

optional :threshold, -> { Telnyx::SimCardDataUsageNotification::Threshold }

#updated_atString? (readonly)

Returns the value of attribute updated_at.

Returns:

  • (String, nil)


36
37
38
# File 'sig/telnyx/models/sim_card_data_usage_notification.rbs', line 36

def updated_at
  @updated_at
end

Instance Method Details

#created_at=String (readonly)

Parameters:

  • (String)

Returns:

  • (String)


30
# File 'sig/telnyx/models/sim_card_data_usage_notification.rbs', line 30

def created_at=: (String) -> String

#id=String (readonly)

Parameters:

  • (String)

Returns:

  • (String)


26
# File 'sig/telnyx/models/sim_card_data_usage_notification.rbs', line 26

def id=: (String) -> String

#record_type=String (readonly)

Parameters:

  • (String)

Returns:

  • (String)


34
# File 'sig/telnyx/models/sim_card_data_usage_notification.rbs', line 34

def record_type=: (String) -> String

#to_hash{

Returns:

  • ({)


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

def to_hash: -> {

#updated_at=String (readonly)

Parameters:

  • (String)

Returns:

  • (String)


38
# File 'sig/telnyx/models/sim_card_data_usage_notification.rbs', line 38

def updated_at=: (String) -> String