@@ -25,126 +25,54 @@ class CreateCallRequest < BaseModel
25
25
# @return [String]
26
26
attr_accessor :uui
27
27
28
- # A comma-separated list of 'User-To-User' headers to be sent in the INVITE
29
- # when calling a SIP URI. Each value must end with an 'encoding' parameter
30
- # as described in https://tools.ietf.org/html/rfc7433. Only 'jwt' and
31
- # 'base64' encodings are allowed. The entire value cannot exceed 350
32
- # characters, including parameters and separators.
33
28
# @return [Float]
34
29
attr_accessor :call_timeout
35
30
36
- # A comma-separated list of 'User-To-User' headers to be sent in the INVITE
37
- # when calling a SIP URI. Each value must end with an 'encoding' parameter
38
- # as described in https://tools.ietf.org/html/rfc7433. Only 'jwt' and
39
- # 'base64' encodings are allowed. The entire value cannot exceed 350
40
- # characters, including parameters and separators.
41
31
# @return [Float]
42
32
attr_accessor :callback_timeout
43
33
44
- # A comma-separated list of 'User-To-User' headers to be sent in the INVITE
45
- # when calling a SIP URI. Each value must end with an 'encoding' parameter
46
- # as described in https://tools.ietf.org/html/rfc7433. Only 'jwt' and
47
- # 'base64' encodings are allowed. The entire value cannot exceed 350
48
- # characters, including parameters and separators.
49
34
# @return [String]
50
35
attr_accessor :answer_url
51
36
52
- # A comma-separated list of 'User-To-User' headers to be sent in the INVITE
53
- # when calling a SIP URI. Each value must end with an 'encoding' parameter
54
- # as described in https://tools.ietf.org/html/rfc7433. Only 'jwt' and
55
- # 'base64' encodings are allowed. The entire value cannot exceed 350
56
- # characters, including parameters and separators.
57
37
# @return [String]
58
38
attr_accessor :answer_fallback_url
59
39
60
- # A comma-separated list of 'User-To-User' headers to be sent in the INVITE
61
- # when calling a SIP URI. Each value must end with an 'encoding' parameter
62
- # as described in https://tools.ietf.org/html/rfc7433. Only 'jwt' and
63
- # 'base64' encodings are allowed. The entire value cannot exceed 350
64
- # characters, including parameters and separators.
65
40
# @return [String]
66
41
attr_accessor :username
67
42
68
- # A comma-separated list of 'User-To-User' headers to be sent in the INVITE
69
- # when calling a SIP URI. Each value must end with an 'encoding' parameter
70
- # as described in https://tools.ietf.org/html/rfc7433. Only 'jwt' and
71
- # 'base64' encodings are allowed. The entire value cannot exceed 350
72
- # characters, including parameters and separators.
73
43
# @return [String]
74
44
attr_accessor :password
75
45
76
- # A comma-separated list of 'User-To-User' headers to be sent in the INVITE
77
- # when calling a SIP URI. Each value must end with an 'encoding' parameter
78
- # as described in https://tools.ietf.org/html/rfc7433. Only 'jwt' and
79
- # 'base64' encodings are allowed. The entire value cannot exceed 350
80
- # characters, including parameters and separators.
81
46
# @return [String]
82
47
attr_accessor :fallback_username
83
48
84
- # A comma-separated list of 'User-To-User' headers to be sent in the INVITE
85
- # when calling a SIP URI. Each value must end with an 'encoding' parameter
86
- # as described in https://tools.ietf.org/html/rfc7433. Only 'jwt' and
87
- # 'base64' encodings are allowed. The entire value cannot exceed 350
88
- # characters, including parameters and separators.
89
49
# @return [String]
90
50
attr_accessor :fallback_password
91
51
92
- # A comma-separated list of 'User-To-User' headers to be sent in the INVITE
93
- # when calling a SIP URI. Each value must end with an 'encoding' parameter
94
- # as described in https://tools.ietf.org/html/rfc7433. Only 'jwt' and
95
- # 'base64' encodings are allowed. The entire value cannot exceed 350
96
- # characters, including parameters and separators.
97
52
# @return [AnswerMethodEnum]
98
53
attr_accessor :answer_method
99
54
100
- # A comma-separated list of 'User-To-User' headers to be sent in the INVITE
101
- # when calling a SIP URI. Each value must end with an 'encoding' parameter
102
- # as described in https://tools.ietf.org/html/rfc7433. Only 'jwt' and
103
- # 'base64' encodings are allowed. The entire value cannot exceed 350
104
- # characters, including parameters and separators.
105
55
# @return [AnswerFallbackMethodEnum]
106
56
attr_accessor :answer_fallback_method
107
57
108
- # A comma-separated list of 'User-To-User' headers to be sent in the INVITE
109
- # when calling a SIP URI. Each value must end with an 'encoding' parameter
110
- # as described in https://tools.ietf.org/html/rfc7433. Only 'jwt' and
111
- # 'base64' encodings are allowed. The entire value cannot exceed 350
112
- # characters, including parameters and separators.
113
58
# @return [String]
114
59
attr_accessor :disconnect_url
115
60
116
- # A comma-separated list of 'User-To-User' headers to be sent in the INVITE
117
- # when calling a SIP URI. Each value must end with an 'encoding' parameter
118
- # as described in https://tools.ietf.org/html/rfc7433. Only 'jwt' and
119
- # 'base64' encodings are allowed. The entire value cannot exceed 350
120
- # characters, including parameters and separators.
121
61
# @return [DisconnectMethodEnum]
122
62
attr_accessor :disconnect_method
123
63
124
- # A comma-separated list of 'User-To-User' headers to be sent in the INVITE
125
- # when calling a SIP URI. Each value must end with an 'encoding' parameter
126
- # as described in https://tools.ietf.org/html/rfc7433. Only 'jwt' and
127
- # 'base64' encodings are allowed. The entire value cannot exceed 350
128
- # characters, including parameters and separators.
129
64
# @return [String]
130
65
attr_accessor :tag
131
66
132
- # A comma-separated list of 'User-To-User' headers to be sent in the INVITE
133
- # when calling a SIP URI. Each value must end with an 'encoding' parameter
134
- # as described in https://tools.ietf.org/html/rfc7433. Only 'jwt' and
135
- # 'base64' encodings are allowed. The entire value cannot exceed 350
136
- # characters, including parameters and separators.
137
67
# @return [String]
138
68
attr_accessor :application_id
139
69
140
- # A comma-separated list of 'User-To-User' headers to be sent in the INVITE
141
- # when calling a SIP URI. Each value must end with an 'encoding' parameter
142
- # as described in https://tools.ietf.org/html/rfc7433. Only 'jwt' and
143
- # 'base64' encodings are allowed. The entire value cannot exceed 350
144
- # characters, including parameters and separators.
145
70
# @return [MachineDetectionRequest]
146
71
attr_accessor :machine_detection
147
72
73
+ # @return [Integer]
74
+ attr_accessor :priority
75
+
148
76
# A mapping from model property names to API property names.
149
77
def self . names
150
78
@_hash = { } if @_hash . nil?
@@ -166,6 +94,7 @@ def self.names
166
94
@_hash [ 'tag' ] = 'tag'
167
95
@_hash [ 'application_id' ] = 'applicationId'
168
96
@_hash [ 'machine_detection' ] = 'machineDetection'
97
+ @_hash [ 'priority' ] = 'priority'
169
98
@_hash
170
99
end
171
100
@@ -186,6 +115,7 @@ def optionals
186
115
disconnect_method
187
116
tag
188
117
machine_detection
118
+ priority
189
119
]
190
120
end
191
121
@@ -205,6 +135,7 @@ def nullables
205
135
disconnect_url
206
136
disconnect_method
207
137
tag
138
+ priority
208
139
]
209
140
end
210
141
@@ -225,7 +156,8 @@ def initialize(from = nil,
225
156
disconnect_url = nil ,
226
157
disconnect_method = nil ,
227
158
tag = nil ,
228
- machine_detection = nil )
159
+ machine_detection = nil ,
160
+ priority = nil )
229
161
@from = from unless from == SKIP
230
162
@to = to unless to == SKIP
231
163
@uui = uui unless uui == SKIP
@@ -244,6 +176,7 @@ def initialize(from = nil,
244
176
@tag = tag unless tag == SKIP
245
177
@application_id = application_id unless application_id == SKIP
246
178
@machine_detection = machine_detection unless machine_detection == SKIP
179
+ @priority = priority unless priority == SKIP
247
180
end
248
181
249
182
# Creates an instance of the object from a hash.
@@ -276,6 +209,7 @@ def self.from_hash(hash)
276
209
tag = hash . key? ( 'tag' ) ? hash [ 'tag' ] : SKIP
277
210
machine_detection = MachineDetectionConfiguration . from_hash ( hash [ 'machineDetection' ] ) if
278
211
hash [ 'machineDetection' ]
212
+ priority = hash . key? ( 'priority' ) ? hash [ 'priority' ] : SKIP
279
213
280
214
# Create object from extracted values.
281
215
CreateCallRequest . new ( from ,
@@ -295,7 +229,8 @@ def self.from_hash(hash)
295
229
disconnect_url ,
296
230
disconnect_method ,
297
231
tag ,
298
- machine_detection )
232
+ machine_detection ,
233
+ priority )
299
234
end
300
235
end
301
236
end
0 commit comments