Class: Telnyx::Models::TelephonyCredential

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/telnyx/models/telephony_credential.rb

Overview

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, expired: nil, expires_at: nil, name: nil, record_type: nil, resource_id: nil, sip_password: nil, sip_username: nil, updated_at: nil, user_id: nil) ⇒ Object

Parameters:

  • id (String) (defaults to: nil)

    Identifies the resource.

  • created_at (String) (defaults to: nil)

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

  • expired (Boolean) (defaults to: nil)

    Defaults to false

  • expires_at (String) (defaults to: nil)

    ISO-8601 formatted date indicating when the resource will expire.

  • name (String) (defaults to: nil)
  • record_type (String) (defaults to: nil)

    Identifies the type of the resource.

  • resource_id (String) (defaults to: nil)

    Identifies the resource this credential is associated with.

  • sip_password (String) (defaults to: nil)

    The randomly generated SIP password for the credential.

  • sip_username (String) (defaults to: nil)

    The randomly generated SIP username for the credential.

  • updated_at (String) (defaults to: nil)

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

  • user_id (String) (defaults to: nil)

    Identifies the user this credential is associated with.



# File 'lib/telnyx/models/telephony_credential.rb', line 72

Instance Attribute Details

#created_atString?

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

Returns:

  • (String, nil)


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

optional :created_at, String

#expiredBoolean?

Defaults to false

Returns:

  • (Boolean, nil)


23
# File 'lib/telnyx/models/telephony_credential.rb', line 23

optional :expired, Telnyx::Internal::Type::Boolean

#expires_atString?

ISO-8601 formatted date indicating when the resource will expire.

Returns:

  • (String, nil)


29
# File 'lib/telnyx/models/telephony_credential.rb', line 29

optional :expires_at, String

#idString?

Identifies the resource.

Returns:

  • (String, nil)


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

optional :id, String

#nameString?

Returns:

  • (String, nil)


34
# File 'lib/telnyx/models/telephony_credential.rb', line 34

optional :name, String

#record_typeString?

Identifies the type of the resource.

Returns:

  • (String, nil)


40
# File 'lib/telnyx/models/telephony_credential.rb', line 40

optional :record_type, String

#resource_idString?

Identifies the resource this credential is associated with.

Returns:

  • (String, nil)


46
# File 'lib/telnyx/models/telephony_credential.rb', line 46

optional :resource_id, String

#sip_passwordString?

The randomly generated SIP password for the credential.

Returns:

  • (String, nil)


52
# File 'lib/telnyx/models/telephony_credential.rb', line 52

optional :sip_password, String

#sip_usernameString?

The randomly generated SIP username for the credential.

Returns:

  • (String, nil)


58
# File 'lib/telnyx/models/telephony_credential.rb', line 58

optional :sip_username, String

#updated_atString?

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

Returns:

  • (String, nil)


64
# File 'lib/telnyx/models/telephony_credential.rb', line 64

optional :updated_at, String

#user_idString?

Identifies the user this credential is associated with.

Returns:

  • (String, nil)


70
# File 'lib/telnyx/models/telephony_credential.rb', line 70

optional :user_id, String