Class: Telnyx::Models::SimCards::BulkSimCardAction

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

Defined Under Namespace

Modules: ActionType

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

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

This object represents a bulk SIM card action. It groups SIM card actions created through a bulk endpoint under a single resource for further lookup.

Parameters:

  • id (String) (defaults to: nil)

    Identifies the resource.

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

    The action 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}) (defaults to: nil)

    A JSON object representation of the bulk action payload.

  • updated_at (String) (defaults to: nil)

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



# File 'lib/telnyx/models/sim_cards/bulk_sim_card_action.rb', line 50

Instance Attribute Details

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

Returns the value of attribute action_type.

Returns:

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


19
20
21
# File 'sig/telnyx/models/sim_cards/bulk_sim_card_action.rbs', line 19

def action_type
  @action_type
end

#created_atString? (readonly)

Returns the value of attribute created_at.

Returns:

  • (String, nil)


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

def created_at
  @created_at
end

#idString? (readonly)

Returns the value of attribute id.

Returns:

  • (String, nil)


15
16
17
# File 'sig/telnyx/models/sim_cards/bulk_sim_card_action.rbs', line 15

def id
  @id
end

#record_typeString? (readonly)

Returns the value of attribute record_type.

Returns:

  • (String, nil)


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

def record_type
  @record_type
end

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

Returns the value of attribute settings.

Returns:

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


33
34
35
# File 'sig/telnyx/models/sim_cards/bulk_sim_card_action.rbs', line 33

def settings
  @settings
end

#updated_atString? (readonly)

Returns the value of attribute updated_at.

Returns:

  • (String, nil)


37
38
39
# File 'sig/telnyx/models/sim_cards/bulk_sim_card_action.rbs', line 37

def updated_at
  @updated_at
end

Instance Method Details

#action_type=Object (readonly)



21
# File 'sig/telnyx/models/sim_cards/bulk_sim_card_action.rbs', line 21

def action_type=: (

#created_at=String (readonly)

Parameters:

  • (String)

Returns:

  • (String)


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

def created_at=: (String) -> String

#id=String (readonly)

Parameters:

  • (String)

Returns:

  • (String)


17
# File 'sig/telnyx/models/sim_cards/bulk_sim_card_action.rbs', line 17

def id=: (String) -> String

#record_type=String (readonly)

Parameters:

  • (String)

Returns:

  • (String)


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

def record_type=: (String) -> String

#settings=::Hash[Symbol, top] (readonly)

Parameters:

  • (::Hash[Symbol, top])

Returns:

  • (::Hash[Symbol, top])


35
# File 'sig/telnyx/models/sim_cards/bulk_sim_card_action.rbs', line 35

def settings=: (::Hash[Symbol, top]) -> ::Hash[Symbol, top]

#to_hash{

Returns:

  • ({)


50
# File 'sig/telnyx/models/sim_cards/bulk_sim_card_action.rbs', line 50

def to_hash: -> {

#updated_at=String (readonly)

Parameters:

  • (String)

Returns:

  • (String)


39
# File 'sig/telnyx/models/sim_cards/bulk_sim_card_action.rbs', line 39

def updated_at=: (String) -> String