Skip to content

Commit 7cf0842

Browse files
authored
SWI-2832 Migrate to OpenAPI Generator v7.0.0 (#156)
* Update bandwidth.yml * Regenerate with OpenAPI Generator 7.0.0 Fixed TN lookup Tests in this commit * Remove autogenerated linter workflow * Fix `_from` + test on Python 3.11 * more from stuff * Update Call Cleanup * remove type hint * Fix Media tests * Return asset path to original value * Fix MFA tests * Update test_recordings.py * Update test_calls.py * Update test_calls.py * Fix messages test * Attempt to fix some calls tests * More calls tests updates * Conferences test * More error fixes * More test fixes * more conference fixes * fix calls tests * Update test_calls.py * Update test_recordings.py * Update test_recordings.py * remove preload content * please work * Update test_recordings.py * Update test_recordings.py * Fix unit tests
1 parent a5f749e commit 7cf0842

File tree

471 files changed

+23014
-36559
lines changed

Some content is hidden

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

471 files changed

+23014
-36559
lines changed

.github/workflows/test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
strategy:
2323
matrix:
2424
os: [windows-2022, windows-2019, ubuntu-18.04, ubuntu-20.04]
25-
python-version: [3.8, 3.9, "3.10"]
25+
python-version: [3.8, 3.9, "3.10", "3.11"]
2626
env:
2727
BW_ACCOUNT_ID: ${{ secrets.BW_ACCOUNT_ID }}
2828
BW_USERNAME: ${{ secrets.BW_USERNAME }}

.gitlab-ci.yml

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,25 @@
1+
# NOTE: This file is auto generated by OpenAPI Generator.
2+
# URL: https://openapi-generator.tech
3+
#
14
# ref: https://docs.gitlab.com/ee/ci/README.html
5+
# ref: https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/Python.gitlab-ci.yml
26

37
stages:
48
- test
59

6-
.tests:
10+
.pytest:
711
stage: test
812
script:
913
- pip install -r requirements.txt
1014
- pip install -r test-requirements.txt
1115
- pytest --cov=bandwidth
1216

13-
test-3.6:
14-
extends: .tests
15-
image: python:3.6-alpine
16-
test-3.7:
17-
extends: .tests
17+
pytest-3.7:
18+
extends: .pytest
1819
image: python:3.7-alpine
19-
test-3.8:
20-
extends: .tests
20+
pytest-3.8:
21+
extends: .pytest
2122
image: python:3.8-alpine
22-
test-3.9:
23-
extends: .tests
24-
image: python:3.9-alpine
23+
pytest-3.9:
24+
extends: .pytest
25+
image: python:3.9-alpine

.openapi-generator-ignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,6 @@
2525
.gitignore
2626
setup.cfg
2727
setup.py
28-
*requirements.txt
28+
#*requirements.txt
2929
test/*
30+
.github/workflows/python.yml

.openapi-generator/FILES

Lines changed: 104 additions & 83 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
.github/workflows/python.yml
12
.gitlab-ci.yml
23
.travis.yml
34
README.md
@@ -12,91 +13,99 @@ bandwidth/api/phone_number_lookup_api.py
1213
bandwidth/api/recordings_api.py
1314
bandwidth/api/statistics_api.py
1415
bandwidth/api_client.py
15-
bandwidth/apis/__init__.py
16+
bandwidth/api_response.py
1617
bandwidth/configuration.py
1718
bandwidth/exceptions.py
18-
bandwidth/model/__init__.py
19-
bandwidth/model/account_statistics.py
20-
bandwidth/model/answer_callback.py
21-
bandwidth/model/bridge_complete_callback.py
22-
bandwidth/model/bridge_target_complete_callback.py
23-
bandwidth/model/call_direction_enum.py
24-
bandwidth/model/call_recording_metadata.py
25-
bandwidth/model/call_state.py
26-
bandwidth/model/call_state_enum.py
27-
bandwidth/model/callback_method_enum.py
28-
bandwidth/model/code_request.py
29-
bandwidth/model/conference.py
30-
bandwidth/model/conference_completed_callback.py
31-
bandwidth/model/conference_created_callback.py
32-
bandwidth/model/conference_member.py
33-
bandwidth/model/conference_member_exit_callback.py
34-
bandwidth/model/conference_member_join_callback.py
35-
bandwidth/model/conference_recording_available_callback.py
36-
bandwidth/model/conference_recording_metadata.py
37-
bandwidth/model/conference_redirect_callback.py
38-
bandwidth/model/conference_state_enum.py
39-
bandwidth/model/create_call.py
40-
bandwidth/model/create_call_response.py
41-
bandwidth/model/create_lookup_response.py
42-
bandwidth/model/create_message_request_error.py
43-
bandwidth/model/deferred_result.py
44-
bandwidth/model/disconenct_callback.py
45-
bandwidth/model/diversion.py
46-
bandwidth/model/dtmf_callback.py
47-
bandwidth/model/field_error.py
48-
bandwidth/model/file_format_enum.py
49-
bandwidth/model/gather_callback.py
50-
bandwidth/model/initiate_callback.py
51-
bandwidth/model/list_message_direction_enum.py
52-
bandwidth/model/list_message_item.py
53-
bandwidth/model/lookup_request.py
54-
bandwidth/model/lookup_result.py
55-
bandwidth/model/lookup_status.py
56-
bandwidth/model/lookup_status_enum.py
57-
bandwidth/model/machine_detection_complete_callback.py
58-
bandwidth/model/machine_detection_configuration.py
59-
bandwidth/model/machine_detection_mode_enum.py
60-
bandwidth/model/media.py
61-
bandwidth/model/message.py
62-
bandwidth/model/message_direction_enum.py
63-
bandwidth/model/message_request.py
64-
bandwidth/model/message_status_enum.py
65-
bandwidth/model/message_type_enum.py
66-
bandwidth/model/messages_list.py
67-
bandwidth/model/messaging_code_response.py
68-
bandwidth/model/messaging_request_error.py
69-
bandwidth/model/mfa_forbidden_request_error.py
70-
bandwidth/model/mfa_request_error.py
71-
bandwidth/model/mfa_unauthorized_request_error.py
72-
bandwidth/model/page_info.py
73-
bandwidth/model/priority_enum.py
74-
bandwidth/model/recording_available_callback.py
75-
bandwidth/model/recording_complete_callback.py
76-
bandwidth/model/recording_state_enum.py
77-
bandwidth/model/redirect_callback.py
78-
bandwidth/model/redirect_method_enum.py
79-
bandwidth/model/stir_shaken.py
80-
bandwidth/model/tag.py
81-
bandwidth/model/tn_lookup_request_error.py
82-
bandwidth/model/transcribe_recording.py
83-
bandwidth/model/transcription.py
84-
bandwidth/model/transcription_available_callback.py
85-
bandwidth/model/transcription_list.py
86-
bandwidth/model/transcription_metadata.py
87-
bandwidth/model/transfer_answer_callback.py
88-
bandwidth/model/transfer_complete_callback.py
89-
bandwidth/model/transfer_disconnect_callback.py
90-
bandwidth/model/update_call.py
91-
bandwidth/model/update_call_recording.py
92-
bandwidth/model/update_conference.py
93-
bandwidth/model/update_conference_member.py
94-
bandwidth/model/verify_code_request.py
95-
bandwidth/model/verify_code_response.py
96-
bandwidth/model/voice_api_error.py
97-
bandwidth/model/voice_code_response.py
98-
bandwidth/model_utils.py
9919
bandwidth/models/__init__.py
20+
bandwidth/models/account_statistics.py
21+
bandwidth/models/answer_callback.py
22+
bandwidth/models/bridge_complete_callback.py
23+
bandwidth/models/bridge_target_complete_callback.py
24+
bandwidth/models/call_direction_enum.py
25+
bandwidth/models/call_recording_metadata.py
26+
bandwidth/models/call_state.py
27+
bandwidth/models/call_state_enum.py
28+
bandwidth/models/callback_method_enum.py
29+
bandwidth/models/code_request.py
30+
bandwidth/models/conference.py
31+
bandwidth/models/conference_completed_callback.py
32+
bandwidth/models/conference_created_callback.py
33+
bandwidth/models/conference_member.py
34+
bandwidth/models/conference_member_exit_callback.py
35+
bandwidth/models/conference_member_join_callback.py
36+
bandwidth/models/conference_recording_available_callback.py
37+
bandwidth/models/conference_recording_metadata.py
38+
bandwidth/models/conference_redirect_callback.py
39+
bandwidth/models/conference_state_enum.py
40+
bandwidth/models/create_call.py
41+
bandwidth/models/create_call_response.py
42+
bandwidth/models/create_lookup_response.py
43+
bandwidth/models/create_message_request_error.py
44+
bandwidth/models/deferred_result.py
45+
bandwidth/models/disconnect_callback.py
46+
bandwidth/models/diversion.py
47+
bandwidth/models/dtmf_callback.py
48+
bandwidth/models/field_error.py
49+
bandwidth/models/file_format_enum.py
50+
bandwidth/models/gather_callback.py
51+
bandwidth/models/inbound_message_callback.py
52+
bandwidth/models/inbound_message_callback_message.py
53+
bandwidth/models/initiate_callback.py
54+
bandwidth/models/list_message_direction_enum.py
55+
bandwidth/models/list_message_item.py
56+
bandwidth/models/lookup_request.py
57+
bandwidth/models/lookup_result.py
58+
bandwidth/models/lookup_status.py
59+
bandwidth/models/lookup_status_enum.py
60+
bandwidth/models/machine_detection_complete_callback.py
61+
bandwidth/models/machine_detection_configuration.py
62+
bandwidth/models/machine_detection_mode_enum.py
63+
bandwidth/models/machine_detection_result.py
64+
bandwidth/models/media.py
65+
bandwidth/models/message.py
66+
bandwidth/models/message_delivered_callback.py
67+
bandwidth/models/message_delivered_callback_message.py
68+
bandwidth/models/message_direction_enum.py
69+
bandwidth/models/message_failed_callback.py
70+
bandwidth/models/message_failed_callback_message.py
71+
bandwidth/models/message_request.py
72+
bandwidth/models/message_sending_callback.py
73+
bandwidth/models/message_sending_callback_message.py
74+
bandwidth/models/message_status_enum.py
75+
bandwidth/models/message_type_enum.py
76+
bandwidth/models/messages_list.py
77+
bandwidth/models/messaging_code_response.py
78+
bandwidth/models/messaging_request_error.py
79+
bandwidth/models/mfa_forbidden_request_error.py
80+
bandwidth/models/mfa_request_error.py
81+
bandwidth/models/mfa_unauthorized_request_error.py
82+
bandwidth/models/page_info.py
83+
bandwidth/models/priority_enum.py
84+
bandwidth/models/recording_available_callback.py
85+
bandwidth/models/recording_complete_callback.py
86+
bandwidth/models/recording_state_enum.py
87+
bandwidth/models/redirect_callback.py
88+
bandwidth/models/redirect_method_enum.py
89+
bandwidth/models/stir_shaken.py
90+
bandwidth/models/tag.py
91+
bandwidth/models/tn_lookup_request_error.py
92+
bandwidth/models/transcribe_recording.py
93+
bandwidth/models/transcription.py
94+
bandwidth/models/transcription_available_callback.py
95+
bandwidth/models/transcription_list.py
96+
bandwidth/models/transcription_metadata.py
97+
bandwidth/models/transfer_answer_callback.py
98+
bandwidth/models/transfer_complete_callback.py
99+
bandwidth/models/transfer_disconnect_callback.py
100+
bandwidth/models/update_call.py
101+
bandwidth/models/update_call_recording.py
102+
bandwidth/models/update_conference.py
103+
bandwidth/models/update_conference_member.py
104+
bandwidth/models/verify_code_request.py
105+
bandwidth/models/verify_code_response.py
106+
bandwidth/models/voice_api_error.py
107+
bandwidth/models/voice_code_response.py
108+
bandwidth/py.typed
100109
bandwidth/rest.py
101110
docs/AccountStatistics.md
102111
docs/AnswerCallback.md
@@ -125,12 +134,14 @@ docs/CreateCallResponse.md
125134
docs/CreateLookupResponse.md
126135
docs/CreateMessageRequestError.md
127136
docs/DeferredResult.md
128-
docs/DisconenctCallback.md
137+
docs/DisconnectCallback.md
129138
docs/Diversion.md
130139
docs/DtmfCallback.md
131140
docs/FieldError.md
132141
docs/FileFormatEnum.md
133142
docs/GatherCallback.md
143+
docs/InboundMessageCallback.md
144+
docs/InboundMessageCallbackMessage.md
134145
docs/InitiateCallback.md
135146
docs/ListMessageDirectionEnum.md
136147
docs/ListMessageItem.md
@@ -142,11 +153,18 @@ docs/MFAApi.md
142153
docs/MachineDetectionCompleteCallback.md
143154
docs/MachineDetectionConfiguration.md
144155
docs/MachineDetectionModeEnum.md
156+
docs/MachineDetectionResult.md
145157
docs/Media.md
146158
docs/MediaApi.md
147159
docs/Message.md
160+
docs/MessageDeliveredCallback.md
161+
docs/MessageDeliveredCallbackMessage.md
148162
docs/MessageDirectionEnum.md
163+
docs/MessageFailedCallback.md
164+
docs/MessageFailedCallbackMessage.md
149165
docs/MessageRequest.md
166+
docs/MessageSendingCallback.md
167+
docs/MessageSendingCallbackMessage.md
150168
docs/MessageStatusEnum.md
151169
docs/MessageTypeEnum.md
152170
docs/MessagesApi.md
@@ -186,4 +204,7 @@ docs/VerifyCodeResponse.md
186204
docs/VoiceApiError.md
187205
docs/VoiceCodeResponse.md
188206
git_push.sh
207+
pyproject.toml
208+
requirements.txt
209+
test-requirements.txt
189210
tox.ini

.openapi-generator/VERSION

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

.travis.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
# ref: https://docs.travis-ci.com/user/languages/python
22
language: python
33
python:
4-
- "3.6"
54
- "3.7"
65
- "3.8"
76
- "3.9"
7+
- "3.10"
8+
- "3.11"
9+
# uncomment the following if needed
10+
#- "3.11-dev" # 3.11 development branch
11+
#- "nightly" # nightly build
812
# command to install dependencies
913
install:
1014
- "pip install -r requirements.txt"

0 commit comments

Comments
 (0)