Class: Telnyx::Models::SimpleSimCard

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

Defined Under Namespace

Modules: EsimInstallationStatus, Type Classes: CurrentBillingPeriodConsumedData, DataLimit

Instance Attribute Summary collapse

Class Method 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(amount: nil, unit: nil) ⇒ Object

The SIM card consumption so far in the current billing cycle.

Parameters:

  • amount (String) (defaults to: nil)
  • unit (String) (defaults to: nil)


# File 'lib/telnyx/models/simple_sim_card.rb', line 145

Instance Attribute Details

#actions_in_progressBoolean? (readonly)

Returns the value of attribute actions_in_progress.

Returns:

  • (Boolean, nil)


46
47
48
# File 'sig/telnyx/models/simple_sim_card.rbs', line 46

def actions_in_progress
  @actions_in_progress
end

#authorized_imeisArray<String>?

List of IMEIs authorized to use a given SIM card.

Parameters:

  • value (::Array[String], nil)

Returns:

  • (Array<String>, nil)


10
# File 'lib/telnyx/models/simple_sim_card.rb', line 10

optional :authorized_imeis, Telnyx::Internal::Type::ArrayOf[String], nil?: true

#created_atString? (readonly)

Returns the value of attribute created_at.

Returns:

  • (String, nil)


50
51
52
# File 'sig/telnyx/models/simple_sim_card.rbs', line 50

def created_at
  @created_at
end

#current_billing_period_consumed_dataTelnyx::SimpleSimCard::CurrentBillingPeriodConsumedData? (readonly)

Returns the value of attribute current_billing_period_consumed_data.

Returns:

  • (Telnyx::SimpleSimCard::CurrentBillingPeriodConsumedData, nil)


54
55
56
# File 'sig/telnyx/models/simple_sim_card.rbs', line 54

def current_billing_period_consumed_data
  @current_billing_period_consumed_data
end

#data_limitTelnyx::SimpleSimCard::DataLimit? (readonly)

Returns the value of attribute data_limit.

Returns:

  • (Telnyx::SimpleSimCard::DataLimit, nil)


60
61
62
# File 'sig/telnyx/models/simple_sim_card.rbs', line 60

def data_limit
  @data_limit
end

#eidString?

Returns the value of attribute eid.

Returns:

  • (String, nil)


66
67
68
# File 'sig/telnyx/models/simple_sim_card.rbs', line 66

def eid
  @eid
end

#esim_installation_statusTelnyx::Models::SimpleSimCard::esim_installation_status?

Returns the value of attribute esim_installation_status.

Returns:

  • (Telnyx::Models::SimpleSimCard::esim_installation_status, nil)


68
69
70
# File 'sig/telnyx/models/simple_sim_card.rbs', line 68

def esim_installation_status
  @esim_installation_status
end

#iccidString? (readonly)

Returns the value of attribute iccid.

Returns:

  • (String, nil)


70
71
72
# File 'sig/telnyx/models/simple_sim_card.rbs', line 70

def iccid
  @iccid
end

#idString? (readonly)

Returns the value of attribute id.

Returns:

  • (String, nil)


42
43
44
# File 'sig/telnyx/models/simple_sim_card.rbs', line 42

def id
  @id
end

#imsiString? (readonly)

Returns the value of attribute imsi.

Returns:

  • (String, nil)


74
75
76
# File 'sig/telnyx/models/simple_sim_card.rbs', line 74

def imsi
  @imsi
end

#msisdnString? (readonly)

Returns the value of attribute msisdn.

Returns:

  • (String, nil)


78
79
80
# File 'sig/telnyx/models/simple_sim_card.rbs', line 78

def msisdn
  @msisdn
end

#record_typeString? (readonly)

Returns the value of attribute record_type.

Returns:

  • (String, nil)


82
83
84
# File 'sig/telnyx/models/simple_sim_card.rbs', line 82

def record_type
  @record_type
end

#resources_with_in_progress_actions::Array[::Hash[Symbol, top]]? (readonly)

Returns the value of attribute resources_with_in_progress_actions.

Returns:

  • (::Array[::Hash[Symbol, top]], nil)


86
87
88
# File 'sig/telnyx/models/simple_sim_card.rbs', line 86

def resources_with_in_progress_actions
  @resources_with_in_progress_actions
end

#sim_card_group_idString?

The group SIMCardGroup identification. This attribute can be null when it's present in an associated resource.

Parameters:

  • (String)

Returns:

  • (String, nil)


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

optional :sim_card_group_id, String

#statusTelnyx::Models::SimCardStatus?



22
# File 'lib/telnyx/models/simple_sim_card.rb', line 22

optional :status, -> { Telnyx::SimCardStatus }

#tagsArray<String>?

Searchable tags associated with the SIM card

Parameters:

  • (::Array[String])

Returns:

  • (Array<String>, nil)


28
# File 'lib/telnyx/models/simple_sim_card.rb', line 28

optional :tags, Telnyx::Internal::Type::ArrayOf[String]

#typeTelnyx::Models::SimpleSimCard::type_? (readonly)

Returns the value of attribute type.

Returns:

  • (Telnyx::Models::SimpleSimCard::type_, nil)


92
93
94
# File 'sig/telnyx/models/simple_sim_card.rbs', line 92

def type
  @type
end

#updated_atString? (readonly)

Returns the value of attribute updated_at.

Returns:

  • (String, nil)


98
99
100
# File 'sig/telnyx/models/simple_sim_card.rbs', line 98

def updated_at
  @updated_at
end

#versionString? (readonly)

Returns the value of attribute version.

Returns:

  • (String, nil)


102
103
104
# File 'sig/telnyx/models/simple_sim_card.rbs', line 102

def version
  @version
end

#voice_enabledBoolean? (readonly)

Returns the value of attribute voice_enabled.

Returns:

  • (Boolean, nil)


106
107
108
# File 'sig/telnyx/models/simple_sim_card.rbs', line 106

def voice_enabled
  @voice_enabled
end

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/telnyx/models/simple_sim_card.rb', line 233

Instance Method Details

#actions_in_progress=Boolean (readonly)

Parameters:

  • (Boolean)

Returns:

  • (Boolean)


48
# File 'sig/telnyx/models/simple_sim_card.rbs', line 48

def actions_in_progress=: (bool) -> bool

#created_at=String (readonly)

Parameters:

  • (String)

Returns:

  • (String)


52
# File 'sig/telnyx/models/simple_sim_card.rbs', line 52

def created_at=: (String) -> String

#current_billing_period_consumed_data=Object (readonly)



56
# File 'sig/telnyx/models/simple_sim_card.rbs', line 56

def current_billing_period_consumed_data=: (

#data_limit=Object (readonly)



62
# File 'sig/telnyx/models/simple_sim_card.rbs', line 62

def data_limit=: (

#iccid=String (readonly)

Parameters:

  • (String)

Returns:

  • (String)


72
# File 'sig/telnyx/models/simple_sim_card.rbs', line 72

def iccid=: (String) -> String

#id=String (readonly)

Parameters:

  • (String)

Returns:

  • (String)


44
# File 'sig/telnyx/models/simple_sim_card.rbs', line 44

def id=: (String) -> String

#imsi=String (readonly)

Parameters:

  • (String)

Returns:

  • (String)


76
# File 'sig/telnyx/models/simple_sim_card.rbs', line 76

def imsi=: (String) -> String

#msisdn=String (readonly)

Parameters:

  • (String)

Returns:

  • (String)


80
# File 'sig/telnyx/models/simple_sim_card.rbs', line 80

def msisdn=: (String) -> String

#record_type=String (readonly)

Parameters:

  • (String)

Returns:

  • (String)


84
# File 'sig/telnyx/models/simple_sim_card.rbs', line 84

def record_type=: (String) -> String

#resources_with_in_progress_actions=Object (readonly)



88
# File 'sig/telnyx/models/simple_sim_card.rbs', line 88

def resources_with_in_progress_actions=: (

#to_hash{

Returns:

  • ({)


133
# File 'sig/telnyx/models/simple_sim_card.rbs', line 133

def to_hash: -> {

#type=Object (readonly)



94
# File 'sig/telnyx/models/simple_sim_card.rbs', line 94

def type=: (

#updated_at=String (readonly)

Parameters:

  • (String)

Returns:

  • (String)


100
# File 'sig/telnyx/models/simple_sim_card.rbs', line 100

def updated_at=: (String) -> String

#version=String (readonly)

Parameters:

  • (String)

Returns:

  • (String)


104
# File 'sig/telnyx/models/simple_sim_card.rbs', line 104

def version=: (String) -> String

#voice_enabled=Boolean (readonly)

Parameters:

  • (Boolean)

Returns:

  • (Boolean)


108
# File 'sig/telnyx/models/simple_sim_card.rbs', line 108

def voice_enabled=: (bool) -> bool