Class: GetStream::Generated::Models::SIPTrunkResponse
- Defined in:
- lib/getstream_ruby/generated/models/sip_trunk_response.rb
Overview
SIP trunk information
Instance Attribute Summary collapse
-
#allowed_ips ⇒ Array<String>
Allowed IPv4/IPv6 addresses or CIDR blocks.
-
#created_at ⇒ DateTime
Creation timestamp.
-
#id ⇒ String
Unique identifier for the SIP trunk.
-
#name ⇒ String
Name of the SIP trunk.
-
#numbers ⇒ Array<String>
Phone numbers associated with this SIP trunk.
-
#password ⇒ String
Password for SIP trunk authentication.
-
#updated_at ⇒ DateTime
Last update timestamp.
-
#uri ⇒ String
The URI for the SIP trunk.
-
#username ⇒ String
Username for SIP trunk authentication.
Class Method Summary collapse
-
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ SIPTrunkResponse
constructor
Initialize with attributes.
Methods inherited from BaseModel
#==, #inspect, omit_empty_fields, #to_h, #to_json
Constructor Details
#initialize(attributes = {}) ⇒ SIPTrunkResponse
Initialize with attributes
41 42 43 44 45 46 47 48 49 50 51 52 |
# File 'lib/getstream_ruby/generated/models/sip_trunk_response.rb', line 41 def initialize(attributes = {}) super(attributes) @created_at = attributes.fetch(:created_at) { attributes.fetch('created_at', nil) } @id = attributes.fetch(:id) { attributes.fetch('id', nil) } @name = attributes.fetch(:name) { attributes.fetch('name', nil) } @password = attributes.fetch(:password) { attributes.fetch('password', nil) } @updated_at = attributes.fetch(:updated_at) { attributes.fetch('updated_at', nil) } @uri = attributes.fetch(:uri) { attributes.fetch('uri', nil) } @username = attributes.fetch(:username) { attributes.fetch('username', nil) } @allowed_ips = attributes.fetch(:allowed_ips) { attributes.fetch('allowed_ips', nil) } @numbers = attributes.fetch(:numbers) { attributes.fetch('numbers', nil) } end |
Instance Attribute Details
#allowed_ips ⇒ Array<String>
Returns Allowed IPv4/IPv6 addresses or CIDR blocks.
35 36 37 |
# File 'lib/getstream_ruby/generated/models/sip_trunk_response.rb', line 35 def allowed_ips @allowed_ips end |
#created_at ⇒ DateTime
Returns Creation timestamp.
14 15 16 |
# File 'lib/getstream_ruby/generated/models/sip_trunk_response.rb', line 14 def created_at @created_at end |
#id ⇒ String
Returns Unique identifier for the SIP trunk.
17 18 19 |
# File 'lib/getstream_ruby/generated/models/sip_trunk_response.rb', line 17 def id @id end |
#name ⇒ String
Returns Name of the SIP trunk.
20 21 22 |
# File 'lib/getstream_ruby/generated/models/sip_trunk_response.rb', line 20 def name @name end |
#numbers ⇒ Array<String>
Returns Phone numbers associated with this SIP trunk.
38 39 40 |
# File 'lib/getstream_ruby/generated/models/sip_trunk_response.rb', line 38 def numbers @numbers end |
#password ⇒ String
Returns Password for SIP trunk authentication.
23 24 25 |
# File 'lib/getstream_ruby/generated/models/sip_trunk_response.rb', line 23 def password @password end |
#updated_at ⇒ DateTime
Returns Last update timestamp.
26 27 28 |
# File 'lib/getstream_ruby/generated/models/sip_trunk_response.rb', line 26 def updated_at @updated_at end |
#uri ⇒ String
Returns The URI for the SIP trunk.
29 30 31 |
# File 'lib/getstream_ruby/generated/models/sip_trunk_response.rb', line 29 def uri @uri end |
#username ⇒ String
Returns Username for SIP trunk authentication.
32 33 34 |
# File 'lib/getstream_ruby/generated/models/sip_trunk_response.rb', line 32 def username @username end |
Class Method Details
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization
55 56 57 58 59 60 61 62 63 64 65 66 67 |
# File 'lib/getstream_ruby/generated/models/sip_trunk_response.rb', line 55 def self.json_field_mappings { created_at: 'created_at', id: 'id', name: 'name', password: 'password', updated_at: 'updated_at', uri: 'uri', username: 'username', allowed_ips: 'allowed_ips', numbers: 'numbers' } end |