Class: GetStream::Generated::Models::UpdateSIPTrunkRequest

Inherits:
BaseModel
  • Object
show all
Defined in:
lib/getstream_ruby/generated/models/update_sip_trunk_request.rb

Overview

Request to update a SIP trunk

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

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[:name] || attributes['name']
  @numbers = attributes[:numbers] || attributes['numbers']
  @password = attributes[:password] || attributes['password'] || nil
  @allowed_ips = attributes[:allowed_ips] || attributes['allowed_ips'] || nil
end

Instance Attribute Details

#allowed_ipsArray<String>

Returns Optional list of allowed IPv4/IPv6 addresses or CIDR blocks.

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

#nameString

Returns Name of the SIP trunk.

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

#numbersArray<String>

Returns Phone numbers associated with this SIP trunk.

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

#passwordString

Returns Optional password for SIP trunk authentication.

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_mappingsObject

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