Class: GetStream::Generated::Models::UpdateSIPTrunkRequest
- Defined in:
- lib/getstream_ruby/generated/models/update_sip_trunk_request.rb
Overview
Request to update a SIP trunk
Instance Attribute Summary collapse
-
#allowed_ips ⇒ Array<String>
Optional list of allowed IPv4/IPv6 addresses or CIDR blocks.
-
#name ⇒ String
Name of the SIP trunk.
-
#numbers ⇒ Array<String>
Phone numbers associated with this SIP trunk.
-
#password ⇒ String
Optional password for SIP trunk authentication.
Class Method Summary collapse
-
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ UpdateSIPTrunkRequest
constructor
Initialize with attributes.
Methods inherited from BaseModel
#==, #inspect, omit_empty_fields, #to_h, #to_json
Constructor Details
#initialize(attributes = {}) ⇒ UpdateSIPTrunkRequest
Initialize with attributes
26 27 28 29 30 31 32 |
# File 'lib/getstream_ruby/generated/models/update_sip_trunk_request.rb', line 26 def initialize(attributes = {}) super(attributes) @name = attributes.fetch(:name) { attributes.fetch('name', nil) } @numbers = attributes.fetch(:numbers) { attributes.fetch('numbers', nil) } @password = attributes.fetch(:password) { attributes.fetch('password', nil) } @allowed_ips = attributes.fetch(:allowed_ips) { attributes.fetch('allowed_ips', nil) } end |
Instance Attribute Details
#allowed_ips ⇒ Array<String>
Returns Optional list of allowed IPv4/IPv6 addresses or CIDR blocks.
23 24 25 |
# File 'lib/getstream_ruby/generated/models/update_sip_trunk_request.rb', line 23 def allowed_ips @allowed_ips end |
#name ⇒ String
Returns Name of the SIP trunk.
14 15 16 |
# File 'lib/getstream_ruby/generated/models/update_sip_trunk_request.rb', line 14 def name @name end |
#numbers ⇒ Array<String>
Returns Phone numbers associated with this SIP trunk.
17 18 19 |
# File 'lib/getstream_ruby/generated/models/update_sip_trunk_request.rb', line 17 def numbers @numbers end |
#password ⇒ String
Returns Optional password for SIP trunk authentication.
20 21 22 |
# File 'lib/getstream_ruby/generated/models/update_sip_trunk_request.rb', line 20 def password @password end |
Class Method Details
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization
35 36 37 38 39 40 41 42 |
# File 'lib/getstream_ruby/generated/models/update_sip_trunk_request.rb', line 35 def self.json_field_mappings { name: 'name', numbers: 'numbers', password: 'password', allowed_ips: 'allowed_ips' } end |