Skip to content

Commit 8aa576c

Browse files
authored
SWI-3336 Update SDK to OpenAPI Generator 7.0.0 (#108)
* SWI-3336 Update SDK to OpenAPI Generator 7.0.0 * update generator config * update bw spec * update sdk to 7.0.0 * add `display_name` to calls tests
1 parent 330022e commit 8aa576c

109 files changed

Lines changed: 164 additions & 106 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
if [[ $RELEASE_VERSION =~ $re ]]; then
3737
echo "GEM_VERSION=$RELEASE_VERSION" >> $GITHUB_ENV
3838
else
39-
echo 'Tag does not match expected regex pattern for beta releases (v[0-9]+\.[0-9]+\.[0-9]+\.pre\.beta\.[0-9]+\.?[0-9]*\.?[0-9]*)'
39+
echo "Tag does not match expected regex pattern for beta releases (v$re)"
4040
echo $RELEASE_VERSION
4141
echo 'Please update your tag to match the expected regex pattern'
4242
exit 1

.openapi-generator/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
7.0.0-SNAPSHOT
1+
7.0.0

bandwidth-sdk.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
The version of the OpenAPI document: 1.0.0
99
Contact: letstalk@bandwidth.com
1010
Generated by: https://openapi-generator.tech
11-
OpenAPI Generator version: 7.0.0-SNAPSHOT
11+
OpenAPI Generator version: 7.0.0
1212
1313
=end
1414

bandwidth.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ paths:
4040
$ref: '#/components/responses/messagingForbiddenError'
4141
'404':
4242
$ref: '#/components/responses/messagingNotFoundError'
43+
'406':
44+
$ref: '#/components/responses/messagingNotAcceptableError'
4345
'415':
4446
$ref: '#/components/responses/messagingInvalidMediaTypeError'
4547
'429':
@@ -70,6 +72,8 @@ paths:
7072
$ref: '#/components/responses/messagingForbiddenError'
7173
'404':
7274
$ref: '#/components/responses/messagingNotFoundError'
75+
'406':
76+
$ref: '#/components/responses/messagingNotAcceptableError'
7377
'415':
7478
$ref: '#/components/responses/messagingInvalidMediaTypeError'
7579
'429':
@@ -110,6 +114,8 @@ paths:
110114
$ref: '#/components/responses/messagingForbiddenError'
111115
'404':
112116
$ref: '#/components/responses/messagingNotFoundError'
117+
'406':
118+
$ref: '#/components/responses/messagingNotAcceptableError'
113119
'415':
114120
$ref: '#/components/responses/messagingInvalidMediaTypeError'
115121
'429':
@@ -141,6 +147,8 @@ paths:
141147
$ref: '#/components/responses/messagingForbiddenError'
142148
'404':
143149
$ref: '#/components/responses/messagingNotFoundError'
150+
'406':
151+
$ref: '#/components/responses/messagingNotAcceptableError'
144152
'415':
145153
$ref: '#/components/responses/messagingInvalidMediaTypeError'
146154
'429':
@@ -212,6 +220,8 @@ paths:
212220
$ref: '#/components/responses/messagingForbiddenError'
213221
'404':
214222
$ref: '#/components/responses/messagingNotFoundError'
223+
'406':
224+
$ref: '#/components/responses/messagingNotAcceptableError'
215225
'415':
216226
$ref: '#/components/responses/messagingInvalidMediaTypeError'
217227
'429':
@@ -1994,6 +2004,16 @@ components:
19942004
19952005
strings: `Restricted`, `Anonymous`, `Private`, or `Unavailable`).
19962006
example: '+19195554321'
2007+
displayName:
2008+
nullable: true
2009+
type: string
2010+
description: >-
2011+
The caller display name to use when the call is created.
2012+
2013+
May not exceed 256 characters nor contain control characters such as
2014+
new lines.
2015+
maxLength: 256
2016+
example: John Doe
19972017
uui:
19982018
nullable: true
19992019
type: string
@@ -4403,6 +4423,12 @@ components:
44034423
application/json:
44044424
schema:
44054425
$ref: '#/components/schemas/messagingRequestError'
4426+
messagingNotAcceptableError:
4427+
description: Not Acceptable
4428+
content:
4429+
application/json:
4430+
schema:
4431+
$ref: '#/components/schemas/messagingRequestError'
44064432
createMessageBadRequestError:
44074433
description: Bad Request
44084434
content:

docs/CreateCall.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
| ---- | ---- | ----------- | ----- |
77
| **to** | **String** | The destination to call (must be an E.164 formatted number (e.g. `+15555551212`) or a SIP URI (e.g. `sip:user@server.example`)). | |
88
| **from** | **String** | A Bandwidth phone number on your account the call should come from (must be in E.164 format, like `+15555551212`, or be one of the following strings: `Restricted`, `Anonymous`, `Private`, or `Unavailable`). | |
9+
| **display_name** | **String** | The caller display name to use when the call is created. May not exceed 256 characters nor contain control characters such as new lines. | [optional] |
910
| **uui** | **String** | A comma-separated list of 'User-To-User' headers to be sent in the INVITE when calling a SIP URI. Each value must end with an 'encoding' parameter as described in <a href='https://tools.ietf.org/html/rfc7433'>RFC 7433</a>. Only 'jwt' and 'base64' encodings are allowed. The entire value cannot exceed 350 characters, including parameters and separators. | [optional] |
1011
| **application_id** | **String** | The id of the application associated with the `from` number. | |
1112
| **answer_url** | **String** | The full URL to send the <a href='/docs/voice/webhooks/answer'>Answer</a> event to when the called party answers. This endpoint should return the first <a href='/docs/voice/bxml'>BXML document</a> to be executed in the call. Must use `https` if specifying `username` and `password`. | |
@@ -32,6 +33,7 @@ require 'bandwidth-sdk'
3233
instance = Bandwidth::CreateCall.new(
3334
to: +19195551234,
3435
from: +19195554321,
36+
display_name: John Doe,
3537
uui: eyJhbGciOiJIUzI1NiJ9.WyJoaSJd.-znkjYyCkgz4djmHUPSXl9YrJ6Nix_XvmlwKGFh5ERM;encoding=jwt,aGVsbG8gd29ybGQ;encoding=base64,
3638
application_id: 1234-qwer-5679-tyui,
3739
answer_url: https://www.myCallbackServer.example/webhooks/answer,

lib/bandwidth-sdk.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
The version of the OpenAPI document: 1.0.0
77
Contact: letstalk@bandwidth.com
88
Generated by: https://openapi-generator.tech
9-
OpenAPI Generator version: 7.0.0-SNAPSHOT
9+
OpenAPI Generator version: 7.0.0
1010
1111
=end
1212

lib/bandwidth-sdk/api/calls_api.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
The version of the OpenAPI document: 1.0.0
77
Contact: letstalk@bandwidth.com
88
Generated by: https://openapi-generator.tech
9-
OpenAPI Generator version: 7.0.0-SNAPSHOT
9+
OpenAPI Generator version: 7.0.0
1010
1111
=end
1212

lib/bandwidth-sdk/api/conferences_api.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
The version of the OpenAPI document: 1.0.0
77
Contact: letstalk@bandwidth.com
88
Generated by: https://openapi-generator.tech
9-
OpenAPI Generator version: 7.0.0-SNAPSHOT
9+
OpenAPI Generator version: 7.0.0
1010
1111
=end
1212

lib/bandwidth-sdk/api/media_api.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
The version of the OpenAPI document: 1.0.0
77
Contact: letstalk@bandwidth.com
88
Generated by: https://openapi-generator.tech
9-
OpenAPI Generator version: 7.0.0-SNAPSHOT
9+
OpenAPI Generator version: 7.0.0
1010
1111
=end
1212

lib/bandwidth-sdk/api/messages_api.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
The version of the OpenAPI document: 1.0.0
77
Contact: letstalk@bandwidth.com
88
Generated by: https://openapi-generator.tech
9-
OpenAPI Generator version: 7.0.0-SNAPSHOT
9+
OpenAPI Generator version: 7.0.0
1010
1111
=end
1212

0 commit comments

Comments
 (0)