Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SWI-2832 Migrate to OpenAPI Generator v7.0.0 #156

Merged
merged 29 commits into from
Sep 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
540a64c
Update bandwidth.yml
ajrice6713 Aug 31, 2023
042f0ee
Regenerate with OpenAPI Generator 7.0.0
ajrice6713 Aug 31, 2023
4bfb4a8
Remove autogenerated linter workflow
ajrice6713 Aug 31, 2023
b7fb17e
Fix `_from` + test on Python 3.11
ajrice6713 Aug 31, 2023
6888568
more from stuff
ajrice6713 Aug 31, 2023
3134d00
Update Call Cleanup
ajrice6713 Aug 31, 2023
47b2288
remove type hint
ajrice6713 Aug 31, 2023
ed9b56a
Fix Media tests
ajrice6713 Sep 1, 2023
c573d6b
Return asset path to original value
ajrice6713 Sep 1, 2023
ee9ab75
Fix MFA tests
ajrice6713 Sep 1, 2023
5d16fdb
Update test_recordings.py
ajrice6713 Sep 1, 2023
bcb688f
Update test_calls.py
ajrice6713 Sep 1, 2023
51357a7
Update test_calls.py
ajrice6713 Sep 1, 2023
5c07fcc
Fix messages test
ajrice6713 Sep 1, 2023
9b7d40e
Attempt to fix some calls tests
ajrice6713 Sep 1, 2023
10d4744
More calls tests updates
ajrice6713 Sep 5, 2023
720f1dd
Conferences test
ajrice6713 Sep 5, 2023
b02e54a
More error fixes
ajrice6713 Sep 5, 2023
aceed3e
More test fixes
ajrice6713 Sep 5, 2023
64a559f
more conference fixes
ajrice6713 Sep 5, 2023
1edcee3
fix calls tests
ajrice6713 Sep 5, 2023
3abb58a
Update test_calls.py
ajrice6713 Sep 5, 2023
796ae9d
Update test_recordings.py
ajrice6713 Sep 5, 2023
a760c20
Update test_recordings.py
ajrice6713 Sep 5, 2023
bd8836a
remove preload content
ajrice6713 Sep 5, 2023
e3f517c
please work
ajrice6713 Sep 5, 2023
8defbde
Update test_recordings.py
ajrice6713 Sep 5, 2023
2d1a666
Update test_recordings.py
ajrice6713 Sep 5, 2023
7b73422
Fix unit tests
ajrice6713 Sep 13, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
strategy:
matrix:
os: [windows-2022, windows-2019, ubuntu-18.04, ubuntu-20.04]
python-version: [3.8, 3.9, "3.10"]
python-version: [3.8, 3.9, "3.10", "3.11"]
hamermike marked this conversation as resolved.
Show resolved Hide resolved
env:
BW_ACCOUNT_ID: ${{ secrets.BW_ACCOUNT_ID }}
BW_USERNAME: ${{ secrets.BW_USERNAME }}
Expand Down
23 changes: 12 additions & 11 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,25 @@
# NOTE: This file is auto generated by OpenAPI Generator.
# URL: https://openapi-generator.tech
#
# ref: https://docs.gitlab.com/ee/ci/README.html
# ref: https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/Python.gitlab-ci.yml

stages:
- test

.tests:
.pytest:
stage: test
script:
- pip install -r requirements.txt
- pip install -r test-requirements.txt
- pytest --cov=bandwidth

test-3.6:
extends: .tests
image: python:3.6-alpine
test-3.7:
extends: .tests
pytest-3.7:
extends: .pytest
image: python:3.7-alpine
test-3.8:
extends: .tests
pytest-3.8:
extends: .pytest
image: python:3.8-alpine
test-3.9:
extends: .tests
image: python:3.9-alpine
pytest-3.9:
extends: .pytest
image: python:3.9-alpine
3 changes: 2 additions & 1 deletion .openapi-generator-ignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,6 @@
.gitignore
setup.cfg
setup.py
*requirements.txt
#*requirements.txt
test/*
.github/workflows/python.yml
187 changes: 104 additions & 83 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.github/workflows/python.yml
.gitlab-ci.yml
.travis.yml
README.md
Expand All @@ -12,91 +13,99 @@ bandwidth/api/phone_number_lookup_api.py
bandwidth/api/recordings_api.py
bandwidth/api/statistics_api.py
bandwidth/api_client.py
bandwidth/apis/__init__.py
bandwidth/api_response.py
bandwidth/configuration.py
bandwidth/exceptions.py
bandwidth/model/__init__.py
bandwidth/model/account_statistics.py
bandwidth/model/answer_callback.py
bandwidth/model/bridge_complete_callback.py
bandwidth/model/bridge_target_complete_callback.py
bandwidth/model/call_direction_enum.py
bandwidth/model/call_recording_metadata.py
bandwidth/model/call_state.py
bandwidth/model/call_state_enum.py
bandwidth/model/callback_method_enum.py
bandwidth/model/code_request.py
bandwidth/model/conference.py
bandwidth/model/conference_completed_callback.py
bandwidth/model/conference_created_callback.py
bandwidth/model/conference_member.py
bandwidth/model/conference_member_exit_callback.py
bandwidth/model/conference_member_join_callback.py
bandwidth/model/conference_recording_available_callback.py
bandwidth/model/conference_recording_metadata.py
bandwidth/model/conference_redirect_callback.py
bandwidth/model/conference_state_enum.py
bandwidth/model/create_call.py
bandwidth/model/create_call_response.py
bandwidth/model/create_lookup_response.py
bandwidth/model/create_message_request_error.py
bandwidth/model/deferred_result.py
bandwidth/model/disconenct_callback.py
bandwidth/model/diversion.py
bandwidth/model/dtmf_callback.py
bandwidth/model/field_error.py
bandwidth/model/file_format_enum.py
bandwidth/model/gather_callback.py
bandwidth/model/initiate_callback.py
bandwidth/model/list_message_direction_enum.py
bandwidth/model/list_message_item.py
bandwidth/model/lookup_request.py
bandwidth/model/lookup_result.py
bandwidth/model/lookup_status.py
bandwidth/model/lookup_status_enum.py
bandwidth/model/machine_detection_complete_callback.py
bandwidth/model/machine_detection_configuration.py
bandwidth/model/machine_detection_mode_enum.py
bandwidth/model/media.py
bandwidth/model/message.py
bandwidth/model/message_direction_enum.py
bandwidth/model/message_request.py
bandwidth/model/message_status_enum.py
bandwidth/model/message_type_enum.py
bandwidth/model/messages_list.py
bandwidth/model/messaging_code_response.py
bandwidth/model/messaging_request_error.py
bandwidth/model/mfa_forbidden_request_error.py
bandwidth/model/mfa_request_error.py
bandwidth/model/mfa_unauthorized_request_error.py
bandwidth/model/page_info.py
bandwidth/model/priority_enum.py
bandwidth/model/recording_available_callback.py
bandwidth/model/recording_complete_callback.py
bandwidth/model/recording_state_enum.py
bandwidth/model/redirect_callback.py
bandwidth/model/redirect_method_enum.py
bandwidth/model/stir_shaken.py
bandwidth/model/tag.py
bandwidth/model/tn_lookup_request_error.py
bandwidth/model/transcribe_recording.py
bandwidth/model/transcription.py
bandwidth/model/transcription_available_callback.py
bandwidth/model/transcription_list.py
bandwidth/model/transcription_metadata.py
bandwidth/model/transfer_answer_callback.py
bandwidth/model/transfer_complete_callback.py
bandwidth/model/transfer_disconnect_callback.py
bandwidth/model/update_call.py
bandwidth/model/update_call_recording.py
bandwidth/model/update_conference.py
bandwidth/model/update_conference_member.py
bandwidth/model/verify_code_request.py
bandwidth/model/verify_code_response.py
bandwidth/model/voice_api_error.py
bandwidth/model/voice_code_response.py
bandwidth/model_utils.py
bandwidth/models/__init__.py
bandwidth/models/account_statistics.py
bandwidth/models/answer_callback.py
bandwidth/models/bridge_complete_callback.py
bandwidth/models/bridge_target_complete_callback.py
bandwidth/models/call_direction_enum.py
bandwidth/models/call_recording_metadata.py
bandwidth/models/call_state.py
bandwidth/models/call_state_enum.py
bandwidth/models/callback_method_enum.py
bandwidth/models/code_request.py
bandwidth/models/conference.py
bandwidth/models/conference_completed_callback.py
bandwidth/models/conference_created_callback.py
bandwidth/models/conference_member.py
bandwidth/models/conference_member_exit_callback.py
bandwidth/models/conference_member_join_callback.py
bandwidth/models/conference_recording_available_callback.py
bandwidth/models/conference_recording_metadata.py
bandwidth/models/conference_redirect_callback.py
bandwidth/models/conference_state_enum.py
bandwidth/models/create_call.py
bandwidth/models/create_call_response.py
bandwidth/models/create_lookup_response.py
bandwidth/models/create_message_request_error.py
bandwidth/models/deferred_result.py
bandwidth/models/disconnect_callback.py
bandwidth/models/diversion.py
bandwidth/models/dtmf_callback.py
bandwidth/models/field_error.py
bandwidth/models/file_format_enum.py
bandwidth/models/gather_callback.py
bandwidth/models/inbound_message_callback.py
bandwidth/models/inbound_message_callback_message.py
bandwidth/models/initiate_callback.py
bandwidth/models/list_message_direction_enum.py
bandwidth/models/list_message_item.py
bandwidth/models/lookup_request.py
bandwidth/models/lookup_result.py
bandwidth/models/lookup_status.py
bandwidth/models/lookup_status_enum.py
bandwidth/models/machine_detection_complete_callback.py
bandwidth/models/machine_detection_configuration.py
bandwidth/models/machine_detection_mode_enum.py
bandwidth/models/machine_detection_result.py
bandwidth/models/media.py
bandwidth/models/message.py
bandwidth/models/message_delivered_callback.py
bandwidth/models/message_delivered_callback_message.py
bandwidth/models/message_direction_enum.py
bandwidth/models/message_failed_callback.py
bandwidth/models/message_failed_callback_message.py
bandwidth/models/message_request.py
bandwidth/models/message_sending_callback.py
bandwidth/models/message_sending_callback_message.py
bandwidth/models/message_status_enum.py
bandwidth/models/message_type_enum.py
bandwidth/models/messages_list.py
bandwidth/models/messaging_code_response.py
bandwidth/models/messaging_request_error.py
bandwidth/models/mfa_forbidden_request_error.py
bandwidth/models/mfa_request_error.py
bandwidth/models/mfa_unauthorized_request_error.py
bandwidth/models/page_info.py
bandwidth/models/priority_enum.py
bandwidth/models/recording_available_callback.py
bandwidth/models/recording_complete_callback.py
bandwidth/models/recording_state_enum.py
bandwidth/models/redirect_callback.py
bandwidth/models/redirect_method_enum.py
bandwidth/models/stir_shaken.py
bandwidth/models/tag.py
bandwidth/models/tn_lookup_request_error.py
bandwidth/models/transcribe_recording.py
bandwidth/models/transcription.py
bandwidth/models/transcription_available_callback.py
bandwidth/models/transcription_list.py
bandwidth/models/transcription_metadata.py
bandwidth/models/transfer_answer_callback.py
bandwidth/models/transfer_complete_callback.py
bandwidth/models/transfer_disconnect_callback.py
bandwidth/models/update_call.py
bandwidth/models/update_call_recording.py
bandwidth/models/update_conference.py
bandwidth/models/update_conference_member.py
bandwidth/models/verify_code_request.py
bandwidth/models/verify_code_response.py
bandwidth/models/voice_api_error.py
bandwidth/models/voice_code_response.py
bandwidth/py.typed
bandwidth/rest.py
docs/AccountStatistics.md
docs/AnswerCallback.md
Expand Down Expand Up @@ -125,12 +134,14 @@ docs/CreateCallResponse.md
docs/CreateLookupResponse.md
docs/CreateMessageRequestError.md
docs/DeferredResult.md
docs/DisconenctCallback.md
docs/DisconnectCallback.md
docs/Diversion.md
docs/DtmfCallback.md
docs/FieldError.md
docs/FileFormatEnum.md
docs/GatherCallback.md
docs/InboundMessageCallback.md
docs/InboundMessageCallbackMessage.md
docs/InitiateCallback.md
docs/ListMessageDirectionEnum.md
docs/ListMessageItem.md
Expand All @@ -142,11 +153,18 @@ docs/MFAApi.md
docs/MachineDetectionCompleteCallback.md
docs/MachineDetectionConfiguration.md
docs/MachineDetectionModeEnum.md
docs/MachineDetectionResult.md
docs/Media.md
docs/MediaApi.md
docs/Message.md
docs/MessageDeliveredCallback.md
docs/MessageDeliveredCallbackMessage.md
docs/MessageDirectionEnum.md
docs/MessageFailedCallback.md
docs/MessageFailedCallbackMessage.md
docs/MessageRequest.md
docs/MessageSendingCallback.md
docs/MessageSendingCallbackMessage.md
docs/MessageStatusEnum.md
docs/MessageTypeEnum.md
docs/MessagesApi.md
Expand Down Expand Up @@ -186,4 +204,7 @@ docs/VerifyCodeResponse.md
docs/VoiceApiError.md
docs/VoiceCodeResponse.md
git_push.sh
pyproject.toml
requirements.txt
test-requirements.txt
tox.ini
2 changes: 1 addition & 1 deletion .openapi-generator/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6.0.1
7.0.0
6 changes: 5 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
# ref: https://docs.travis-ci.com/user/languages/python
language: python
python:
- "3.6"
- "3.7"
- "3.8"
- "3.9"
- "3.10"
- "3.11"
# uncomment the following if needed
#- "3.11-dev" # 3.11 development branch
#- "nightly" # nightly build
# command to install dependencies
install:
- "pip install -r requirements.txt"
Expand Down
Loading