Skip to content

Commit

Permalink
SWI-3336 Update SDK to OpenAPI Generator 7.0.0 (#108)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
ckoegel authored Aug 25, 2023
1 parent 330022e commit 8aa576c
Show file tree
Hide file tree
Showing 109 changed files with 164 additions and 106 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
if [[ $RELEASE_VERSION =~ $re ]]; then
echo "GEM_VERSION=$RELEASE_VERSION" >> $GITHUB_ENV
else
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]*)'
echo "Tag does not match expected regex pattern for beta releases (v$re)"
echo $RELEASE_VERSION
echo 'Please update your tag to match the expected regex pattern'
exit 1
Expand Down
2 changes: 1 addition & 1 deletion .openapi-generator/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7.0.0-SNAPSHOT
7.0.0
2 changes: 1 addition & 1 deletion bandwidth-sdk.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
The version of the OpenAPI document: 1.0.0
Contact: [email protected]
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 7.0.0-SNAPSHOT
OpenAPI Generator version: 7.0.0
=end

Expand Down
26 changes: 26 additions & 0 deletions bandwidth.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ paths:
$ref: '#/components/responses/messagingForbiddenError'
'404':
$ref: '#/components/responses/messagingNotFoundError'
'406':
$ref: '#/components/responses/messagingNotAcceptableError'
'415':
$ref: '#/components/responses/messagingInvalidMediaTypeError'
'429':
Expand Down Expand Up @@ -70,6 +72,8 @@ paths:
$ref: '#/components/responses/messagingForbiddenError'
'404':
$ref: '#/components/responses/messagingNotFoundError'
'406':
$ref: '#/components/responses/messagingNotAcceptableError'
'415':
$ref: '#/components/responses/messagingInvalidMediaTypeError'
'429':
Expand Down Expand Up @@ -110,6 +114,8 @@ paths:
$ref: '#/components/responses/messagingForbiddenError'
'404':
$ref: '#/components/responses/messagingNotFoundError'
'406':
$ref: '#/components/responses/messagingNotAcceptableError'
'415':
$ref: '#/components/responses/messagingInvalidMediaTypeError'
'429':
Expand Down Expand Up @@ -141,6 +147,8 @@ paths:
$ref: '#/components/responses/messagingForbiddenError'
'404':
$ref: '#/components/responses/messagingNotFoundError'
'406':
$ref: '#/components/responses/messagingNotAcceptableError'
'415':
$ref: '#/components/responses/messagingInvalidMediaTypeError'
'429':
Expand Down Expand Up @@ -212,6 +220,8 @@ paths:
$ref: '#/components/responses/messagingForbiddenError'
'404':
$ref: '#/components/responses/messagingNotFoundError'
'406':
$ref: '#/components/responses/messagingNotAcceptableError'
'415':
$ref: '#/components/responses/messagingInvalidMediaTypeError'
'429':
Expand Down Expand Up @@ -1994,6 +2004,16 @@ components:
strings: `Restricted`, `Anonymous`, `Private`, or `Unavailable`).
example: '+19195554321'
displayName:
nullable: true
type: string
description: >-
The caller display name to use when the call is created.
May not exceed 256 characters nor contain control characters such as
new lines.
maxLength: 256
example: John Doe
uui:
nullable: true
type: string
Expand Down Expand Up @@ -4403,6 +4423,12 @@ components:
application/json:
schema:
$ref: '#/components/schemas/messagingRequestError'
messagingNotAcceptableError:
description: Not Acceptable
content:
application/json:
schema:
$ref: '#/components/schemas/messagingRequestError'
createMessageBadRequestError:
description: Bad Request
content:
Expand Down
2 changes: 2 additions & 0 deletions docs/CreateCall.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
| ---- | ---- | ----------- | ----- |
| **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`)). | |
| **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`). | |
| **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] |
| **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] |
| **application_id** | **String** | The id of the application associated with the `from` number. | |
| **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`. | |
Expand All @@ -32,6 +33,7 @@ require 'bandwidth-sdk'
instance = Bandwidth::CreateCall.new(
to: +19195551234,
from: +19195554321,
display_name: John Doe,
uui: eyJhbGciOiJIUzI1NiJ9.WyJoaSJd.-znkjYyCkgz4djmHUPSXl9YrJ6Nix_XvmlwKGFh5ERM;encoding=jwt,aGVsbG8gd29ybGQ;encoding=base64,
application_id: 1234-qwer-5679-tyui,
answer_url: https://www.myCallbackServer.example/webhooks/answer,
Expand Down
2 changes: 1 addition & 1 deletion lib/bandwidth-sdk.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
The version of the OpenAPI document: 1.0.0
Contact: [email protected]
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 7.0.0-SNAPSHOT
OpenAPI Generator version: 7.0.0
=end

Expand Down
2 changes: 1 addition & 1 deletion lib/bandwidth-sdk/api/calls_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
The version of the OpenAPI document: 1.0.0
Contact: [email protected]
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 7.0.0-SNAPSHOT
OpenAPI Generator version: 7.0.0
=end

Expand Down
2 changes: 1 addition & 1 deletion lib/bandwidth-sdk/api/conferences_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
The version of the OpenAPI document: 1.0.0
Contact: [email protected]
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 7.0.0-SNAPSHOT
OpenAPI Generator version: 7.0.0
=end

Expand Down
2 changes: 1 addition & 1 deletion lib/bandwidth-sdk/api/media_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
The version of the OpenAPI document: 1.0.0
Contact: [email protected]
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 7.0.0-SNAPSHOT
OpenAPI Generator version: 7.0.0
=end

Expand Down
2 changes: 1 addition & 1 deletion lib/bandwidth-sdk/api/messages_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
The version of the OpenAPI document: 1.0.0
Contact: [email protected]
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 7.0.0-SNAPSHOT
OpenAPI Generator version: 7.0.0
=end

Expand Down
2 changes: 1 addition & 1 deletion lib/bandwidth-sdk/api/mfa_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
The version of the OpenAPI document: 1.0.0
Contact: [email protected]
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 7.0.0-SNAPSHOT
OpenAPI Generator version: 7.0.0
=end

Expand Down
2 changes: 1 addition & 1 deletion lib/bandwidth-sdk/api/phone_number_lookup_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
The version of the OpenAPI document: 1.0.0
Contact: [email protected]
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 7.0.0-SNAPSHOT
OpenAPI Generator version: 7.0.0
=end

Expand Down
2 changes: 1 addition & 1 deletion lib/bandwidth-sdk/api/recordings_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
The version of the OpenAPI document: 1.0.0
Contact: [email protected]
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 7.0.0-SNAPSHOT
OpenAPI Generator version: 7.0.0
=end

Expand Down
2 changes: 1 addition & 1 deletion lib/bandwidth-sdk/api/statistics_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
The version of the OpenAPI document: 1.0.0
Contact: [email protected]
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 7.0.0-SNAPSHOT
OpenAPI Generator version: 7.0.0
=end

Expand Down
2 changes: 1 addition & 1 deletion lib/bandwidth-sdk/api_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
The version of the OpenAPI document: 1.0.0
Contact: [email protected]
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 7.0.0-SNAPSHOT
OpenAPI Generator version: 7.0.0
=end

Expand Down
2 changes: 1 addition & 1 deletion lib/bandwidth-sdk/api_error.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
The version of the OpenAPI document: 1.0.0
Contact: [email protected]
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 7.0.0-SNAPSHOT
OpenAPI Generator version: 7.0.0
=end

Expand Down
2 changes: 1 addition & 1 deletion lib/bandwidth-sdk/configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
The version of the OpenAPI document: 1.0.0
Contact: [email protected]
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 7.0.0-SNAPSHOT
OpenAPI Generator version: 7.0.0
=end

Expand Down
2 changes: 1 addition & 1 deletion lib/bandwidth-sdk/models/account_statistics.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
The version of the OpenAPI document: 1.0.0
Contact: [email protected]
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 7.0.0-SNAPSHOT
OpenAPI Generator version: 7.0.0
=end

Expand Down
2 changes: 1 addition & 1 deletion lib/bandwidth-sdk/models/answer_callback.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
The version of the OpenAPI document: 1.0.0
Contact: [email protected]
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 7.0.0-SNAPSHOT
OpenAPI Generator version: 7.0.0
=end

Expand Down
2 changes: 1 addition & 1 deletion lib/bandwidth-sdk/models/bridge_complete_callback.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
The version of the OpenAPI document: 1.0.0
Contact: [email protected]
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 7.0.0-SNAPSHOT
OpenAPI Generator version: 7.0.0
=end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
The version of the OpenAPI document: 1.0.0
Contact: [email protected]
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 7.0.0-SNAPSHOT
OpenAPI Generator version: 7.0.0
=end

Expand Down
2 changes: 1 addition & 1 deletion lib/bandwidth-sdk/models/call_direction_enum.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
The version of the OpenAPI document: 1.0.0
Contact: [email protected]
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 7.0.0-SNAPSHOT
OpenAPI Generator version: 7.0.0
=end

Expand Down
2 changes: 1 addition & 1 deletion lib/bandwidth-sdk/models/call_recording_metadata.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
The version of the OpenAPI document: 1.0.0
Contact: [email protected]
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 7.0.0-SNAPSHOT
OpenAPI Generator version: 7.0.0
=end

Expand Down
2 changes: 1 addition & 1 deletion lib/bandwidth-sdk/models/call_state.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
The version of the OpenAPI document: 1.0.0
Contact: [email protected]
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 7.0.0-SNAPSHOT
OpenAPI Generator version: 7.0.0
=end

Expand Down
2 changes: 1 addition & 1 deletion lib/bandwidth-sdk/models/call_state_enum.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
The version of the OpenAPI document: 1.0.0
Contact: [email protected]
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 7.0.0-SNAPSHOT
OpenAPI Generator version: 7.0.0
=end

Expand Down
2 changes: 1 addition & 1 deletion lib/bandwidth-sdk/models/callback_method_enum.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
The version of the OpenAPI document: 1.0.0
Contact: [email protected]
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 7.0.0-SNAPSHOT
OpenAPI Generator version: 7.0.0
=end

Expand Down
2 changes: 1 addition & 1 deletion lib/bandwidth-sdk/models/code_request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
The version of the OpenAPI document: 1.0.0
Contact: [email protected]
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 7.0.0-SNAPSHOT
OpenAPI Generator version: 7.0.0
=end

Expand Down
2 changes: 1 addition & 1 deletion lib/bandwidth-sdk/models/conference.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
The version of the OpenAPI document: 1.0.0
Contact: [email protected]
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 7.0.0-SNAPSHOT
OpenAPI Generator version: 7.0.0
=end

Expand Down
2 changes: 1 addition & 1 deletion lib/bandwidth-sdk/models/conference_completed_callback.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
The version of the OpenAPI document: 1.0.0
Contact: [email protected]
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 7.0.0-SNAPSHOT
OpenAPI Generator version: 7.0.0
=end

Expand Down
2 changes: 1 addition & 1 deletion lib/bandwidth-sdk/models/conference_created_callback.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
The version of the OpenAPI document: 1.0.0
Contact: [email protected]
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 7.0.0-SNAPSHOT
OpenAPI Generator version: 7.0.0
=end

Expand Down
2 changes: 1 addition & 1 deletion lib/bandwidth-sdk/models/conference_member.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
The version of the OpenAPI document: 1.0.0
Contact: [email protected]
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 7.0.0-SNAPSHOT
OpenAPI Generator version: 7.0.0
=end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
The version of the OpenAPI document: 1.0.0
Contact: [email protected]
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 7.0.0-SNAPSHOT
OpenAPI Generator version: 7.0.0
=end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
The version of the OpenAPI document: 1.0.0
Contact: [email protected]
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 7.0.0-SNAPSHOT
OpenAPI Generator version: 7.0.0
=end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
The version of the OpenAPI document: 1.0.0
Contact: [email protected]
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 7.0.0-SNAPSHOT
OpenAPI Generator version: 7.0.0
=end

Expand Down
2 changes: 1 addition & 1 deletion lib/bandwidth-sdk/models/conference_recording_metadata.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
The version of the OpenAPI document: 1.0.0
Contact: [email protected]
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 7.0.0-SNAPSHOT
OpenAPI Generator version: 7.0.0
=end

Expand Down
2 changes: 1 addition & 1 deletion lib/bandwidth-sdk/models/conference_redirect_callback.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
The version of the OpenAPI document: 1.0.0
Contact: [email protected]
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 7.0.0-SNAPSHOT
OpenAPI Generator version: 7.0.0
=end

Expand Down
Loading

0 comments on commit 8aa576c

Please sign in to comment.