Class: Telnyx::Models::SimCards::SimCardAction

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

Overview

See Also:

  • Telnyx::Resources::SimCards::Actions#list

Defined Under Namespace

Modules: ActionType Classes: Status

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(id: nil, action_type: nil, created_at: nil, record_type: nil, settings: nil, sim_card_id: nil, status: nil, updated_at: nil) ⇒ Object

Some parameter documentations has been truncated, see Telnyx::Models::SimCards::SimCardAction for more details.

This object represents a SIM card action. It allows tracking the current status of an operation that impacts the SIM card.

Parameters:

  • id (String) (defaults to: nil)

    Identifies the resource.

  • action_type (Symbol, Telnyx::Models::SimCards::SimCardAction::ActionType) (defaults to: nil)

    The operation type. It can be one of the following:

  • created_at (String) (defaults to: nil)

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

  • record_type (String) (defaults to: nil)
  • settings (Hash{Symbol=>Object}, nil) (defaults to: nil)

    A JSON object representation of the action params.

  • sim_card_id (String) (defaults to: nil)

    The related SIM card identifier.

  • status (Telnyx::Models::SimCards::SimCardAction::Status) (defaults to: nil)
  • updated_at (String) (defaults to: nil)

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



# File 'lib/telnyx/models/sim_cards/sim_card_action.rb', line 63

Instance Attribute Details

#action_typeTelnyx::Models::SimCards::SimCardAction::action_type? (readonly)

Returns the value of attribute action_type.

Returns:

  • (Telnyx::Models::SimCards::SimCardAction::action_type, nil)


29
30
31
# File 'sig/telnyx/models/sim_cards/sim_card_action.rbs', line 29

def action_type
  @action_type
end

#created_atString? (readonly)

Returns the value of attribute created_at.

Returns:

  • (String, nil)


35
36
37
# File 'sig/telnyx/models/sim_cards/sim_card_action.rbs', line 35

def created_at
  @created_at
end

#idString? (readonly)

Returns the value of attribute id.

Returns:

  • (String, nil)


25
26
27
# File 'sig/telnyx/models/sim_cards/sim_card_action.rbs', line 25

def id
  @id
end

#record_typeString? (readonly)

Returns the value of attribute record_type.

Returns:

  • (String, nil)


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

def record_type
  @record_type
end

#settings::Hash[Symbol, top]?

Returns the value of attribute settings.

Returns:

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


43
44
45
# File 'sig/telnyx/models/sim_cards/sim_card_action.rbs', line 43

def settings
  @settings
end

#sim_card_idString? (readonly)

Returns the value of attribute sim_card_id.

Returns:

  • (String, nil)


45
46
47
# File 'sig/telnyx/models/sim_cards/sim_card_action.rbs', line 45

def sim_card_id
  @sim_card_id
end

#statusTelnyx::Models::SimCards::SimCardAction::Status?



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

optional :status, -> { Telnyx::SimCards::SimCardAction::Status }

#updated_atString? (readonly)

Returns the value of attribute updated_at.

Returns:

  • (String, nil)


49
50
51
# File 'sig/telnyx/models/sim_cards/sim_card_action.rbs', line 49

def updated_at
  @updated_at
end

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/telnyx/models/sim_cards/sim_card_action.rb', line 104

Instance Method Details

#action_type=Object (readonly)



31
# File 'sig/telnyx/models/sim_cards/sim_card_action.rbs', line 31

def action_type=: (

#created_at=String (readonly)

Parameters:

  • (String)

Returns:

  • (String)


37
# File 'sig/telnyx/models/sim_cards/sim_card_action.rbs', line 37

def created_at=: (String) -> String

#id=String (readonly)

Parameters:

  • (String)

Returns:

  • (String)


27
# File 'sig/telnyx/models/sim_cards/sim_card_action.rbs', line 27

def id=: (String) -> String

#record_type=String (readonly)

Parameters:

  • (String)

Returns:

  • (String)


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

def record_type=: (String) -> String

#sim_card_id=String (readonly)

Parameters:

  • (String)

Returns:

  • (String)


47
# File 'sig/telnyx/models/sim_cards/sim_card_action.rbs', line 47

def sim_card_id=: (String) -> String

#to_hash{

Returns:

  • ({)


64
# File 'sig/telnyx/models/sim_cards/sim_card_action.rbs', line 64

def to_hash: -> {

#updated_at=String (readonly)

Parameters:

  • (String)

Returns:

  • (String)


51
# File 'sig/telnyx/models/sim_cards/sim_card_action.rbs', line 51

def updated_at=: (String) -> String