Skip to content

Commit 6f85512

Browse files
band-swi[bot]DX-Bandwidthckoegel
authored
Generate SDK with OpenAPI Generator Version (#161)
Co-authored-by: DX-Bandwidth <[email protected]> Co-authored-by: Cameron Koegel <[email protected]>
1 parent ba13af7 commit 6f85512

File tree

3 files changed

+47
-5
lines changed

3 files changed

+47
-5
lines changed

bandwidth.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3801,6 +3801,8 @@ components:
38013801
$ref: '#/components/schemas/diversion'
38023802
stirShaken:
38033803
$ref: '#/components/schemas/stirShaken'
3804+
uui:
3805+
$ref: '#/components/schemas/uui'
38043806
machineDetectionCompleteCallback:
38053807
type: object
38063808
description: >-
@@ -4435,6 +4437,15 @@ components:
44354437
type: string
44364438
description: (optional) A unique origination identifier.
44374439
example: 99759086-1335-11ed-9bcf-5f7d464e91af
4440+
uui:
4441+
type: string
4442+
description: >-
4443+
The value of the `User-To-User` header to send within the initial
4444+
`INVITE`. Must include the encoding parameter as specified in RFC 7433.
4445+
Only `base64`, `jwt` and `hex` encoding are currently allowed. This
4446+
value, including the encoding specifier, may not exceed 256 characters.
4447+
example: bXktdXVp
4448+
maxLength: 256
44384449
codeRequest:
44394450
type: object
44404451
properties:

docs/InitiateCallback.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
| **start_time** | **Time** | Time the call was started, in ISO 8601 format. | [optional] |
1717
| **diversion** | [**Diversion**](Diversion.md) | | [optional] |
1818
| **stir_shaken** | [**StirShaken**](StirShaken.md) | | [optional] |
19+
| **uui** | **String** | The value of the &#x60;User-To-User&#x60; header to send within the initial &#x60;INVITE&#x60;. Must include the encoding parameter as specified in RFC 7433. Only &#x60;base64&#x60;, &#x60;jwt&#x60; and &#x60;hex&#x60; encoding are currently allowed. This value, including the encoding specifier, may not exceed 256 characters. | [optional] |
1920

2021
## Example
2122

@@ -34,7 +35,8 @@ instance = Bandwidth::InitiateCallback.new(
3435
call_url: https://voice.bandwidth.com/api/v2/accounts/9900000/calls/c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85,
3536
start_time: 2022-06-17T22:19:40.375Z,
3637
diversion: null,
37-
stir_shaken: null
38+
stir_shaken: null,
39+
uui: bXktdXVp
3840
)
3941
```
4042

lib/bandwidth-sdk/models/initiate_callback.rb

Lines changed: 33 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ class InitiateCallback
4949

5050
attr_accessor :stir_shaken
5151

52+
# The value of the `User-To-User` header to send within the initial `INVITE`. Must include the encoding parameter as specified in RFC 7433. Only `base64`, `jwt` and `hex` encoding are currently allowed. This value, including the encoding specifier, may not exceed 256 characters.
53+
attr_accessor :uui
54+
5255
class EnumAttributeValidator
5356
attr_reader :datatype
5457
attr_reader :allowable_values
@@ -85,7 +88,8 @@ def self.attribute_map
8588
:'call_url' => :'callUrl',
8689
:'start_time' => :'startTime',
8790
:'diversion' => :'diversion',
88-
:'stir_shaken' => :'stirShaken'
91+
:'stir_shaken' => :'stirShaken',
92+
:'uui' => :'uui'
8993
}
9094
end
9195

@@ -108,7 +112,8 @@ def self.openapi_types
108112
:'call_url' => :'String',
109113
:'start_time' => :'Time',
110114
:'diversion' => :'Diversion',
111-
:'stir_shaken' => :'StirShaken'
115+
:'stir_shaken' => :'StirShaken',
116+
:'uui' => :'String'
112117
}
113118
end
114119

@@ -180,23 +185,46 @@ def initialize(attributes = {})
180185
if attributes.key?(:'stir_shaken')
181186
self.stir_shaken = attributes[:'stir_shaken']
182187
end
188+
189+
if attributes.key?(:'uui')
190+
self.uui = attributes[:'uui']
191+
end
183192
end
184193

185194
# Show invalid properties with the reasons. Usually used together with valid?
186195
# @return Array for valid properties with the reasons
187196
def list_invalid_properties
188197
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
189198
invalid_properties = Array.new
199+
if !@uui.nil? && @uui.to_s.length > 256
200+
invalid_properties.push('invalid value for "uui", the character length must be smaller than or equal to 256.')
201+
end
202+
190203
invalid_properties
191204
end
192205

193206
# Check to see if the all the properties in the model are valid
194207
# @return true if the model is valid
195208
def valid?
196209
warn '[DEPRECATED] the `valid?` method is obsolete'
210+
return false if !@uui.nil? && @uui.to_s.length > 256
197211
true
198212
end
199213

214+
# Custom attribute writer method with validation
215+
# @param [Object] uui Value to be assigned
216+
def uui=(uui)
217+
if uui.nil?
218+
fail ArgumentError, 'uui cannot be nil'
219+
end
220+
221+
if uui.to_s.length > 256
222+
fail ArgumentError, 'invalid value for "uui", the character length must be smaller than or equal to 256.'
223+
end
224+
225+
@uui = uui
226+
end
227+
200228
# Checks equality by comparing each attribute.
201229
# @param [Object] Object to be compared
202230
def ==(o)
@@ -213,7 +241,8 @@ def ==(o)
213241
call_url == o.call_url &&
214242
start_time == o.start_time &&
215243
diversion == o.diversion &&
216-
stir_shaken == o.stir_shaken
244+
stir_shaken == o.stir_shaken &&
245+
uui == o.uui
217246
end
218247

219248
# @see the `==` method
@@ -225,7 +254,7 @@ def eql?(o)
225254
# Calculates hash code according to all attributes.
226255
# @return [Integer] Hash code
227256
def hash
228-
[event_type, event_time, account_id, application_id, from, to, direction, call_id, call_url, start_time, diversion, stir_shaken].hash
257+
[event_type, event_time, account_id, application_id, from, to, direction, call_id, call_url, start_time, diversion, stir_shaken, uui].hash
229258
end
230259

231260
# Builds the object from hash

0 commit comments

Comments
 (0)