Skip to content

Commit 1a853f9

Browse files
committed
Generate SDK with OpenAPI Generator Version
1 parent 037de5f commit 1a853f9

39 files changed

Lines changed: 612 additions & 89 deletions

.openapi-generator/FILES

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ bandwidth/models/endpoint_status_enum.py
8282
bandwidth/models/endpoint_type_enum.py
8383
bandwidth/models/endpoints.py
8484
bandwidth/models/error.py
85+
bandwidth/models/error1.py
86+
bandwidth/models/error1_source.py
8587
bandwidth/models/error_object.py
8688
bandwidth/models/error_response.py
8789
bandwidth/models/error_source.py
@@ -99,6 +101,7 @@ bandwidth/models/initiate_callback.py
99101
bandwidth/models/latest_message_delivery_status_enum.py
100102
bandwidth/models/line_type_enum.py
101103
bandwidth/models/link.py
104+
bandwidth/models/link1.py
102105
bandwidth/models/link_schema.py
103106
bandwidth/models/links_object.py
104107
bandwidth/models/list_endpoints_response.py
@@ -282,6 +285,8 @@ docs/EndpointTypeEnum.md
282285
docs/Endpoints.md
283286
docs/EndpointsApi.md
284287
docs/Error.md
288+
docs/Error1.md
289+
docs/Error1Source.md
285290
docs/ErrorObject.md
286291
docs/ErrorResponse.md
287292
docs/ErrorSource.md
@@ -299,6 +304,7 @@ docs/InitiateCallback.md
299304
docs/LatestMessageDeliveryStatusEnum.md
300305
docs/LineTypeEnum.md
301306
docs/Link.md
307+
docs/Link1.md
302308
docs/LinkSchema.md
303309
docs/LinksObject.md
304310
docs/ListEndpointsResponse.md

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,8 @@ Class | Method | HTTP request | Description
224224
- [EndpointTypeEnum](docs/EndpointTypeEnum.md)
225225
- [Endpoints](docs/Endpoints.md)
226226
- [Error](docs/Error.md)
227+
- [Error1](docs/Error1.md)
228+
- [Error1Source](docs/Error1Source.md)
227229
- [ErrorObject](docs/ErrorObject.md)
228230
- [ErrorResponse](docs/ErrorResponse.md)
229231
- [ErrorSource](docs/ErrorSource.md)
@@ -241,6 +243,7 @@ Class | Method | HTTP request | Description
241243
- [LatestMessageDeliveryStatusEnum](docs/LatestMessageDeliveryStatusEnum.md)
242244
- [LineTypeEnum](docs/LineTypeEnum.md)
243245
- [Link](docs/Link.md)
246+
- [Link1](docs/Link1.md)
244247
- [LinkSchema](docs/LinkSchema.md)
245248
- [LinksObject](docs/LinksObject.md)
246249
- [ListEndpointsResponse](docs/ListEndpointsResponse.md)

bandwidth.yml

Lines changed: 101 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -2161,7 +2161,7 @@ components:
21612161
type: string
21622162
description: >-
21632163
The name of the Authorized Message Provider (AMP) that handled this
2164-
message.
2164+
message.
21652165
21662166
In the US, this is the carrier that the message was sent to.
21672167
@@ -2248,7 +2248,7 @@ components:
22482248
description: >-
22492249
Either an alphanumeric sender ID or the sender's Bandwidth phone
22502250
number in E.164 format, which must be hosted within Bandwidth and
2251-
linked to the account that is generating the message.
2251+
linked to the account that is generating the message.
22522252
22532253
Alphanumeric Sender IDs can contain up to 11 characters, upper-case
22542254
letters A-Z, lower-case letters a-z, numbers 0-9, space, hyphen -,
@@ -2572,7 +2572,7 @@ components:
25722572
25732573
- `BROWSER` Opens the URL in the device's default browser. If
25742574
application is not set or the device doesn’t support WebView, this
2575-
option is used by default.
2575+
option is used by default.
25762576
25772577
- `WEBVIEW` Opens the URL in an in-app WebView.
25782578
enum:
@@ -2585,7 +2585,7 @@ components:
25852585
Defines the layout of the WebView on a mobile device. It must be defined
25862586
when application is set to `WEBVIEW`
25872587
2588-
- `FULL` WebView takes the full screen.
2588+
- `FULL` WebView takes the full screen.
25892589
25902590
- `HALF` WebView takes half of the screen.
25912591
@@ -2987,7 +2987,7 @@ components:
29872987
to:
29882988
type: string
29892989
description: >
2990-
The destination phone number the message was sent to.
2990+
The destination phone number the message was sent to.
29912991
29922992
For inbound callbacks, this is the Bandwidth number or alphanumeric
29932993
identifier that received the message.
@@ -3038,7 +3038,7 @@ components:
30383038
client to a Bandwidth number.
30393039
30403040
- `request-location-response` indicates a response to a location request
3041-
sent by the Bandwidth user's client after receiving an RBM message.
3041+
sent by the Bandwidth user's client after receiving an RBM message.
30423042
30433043
- `suggestion-response` indicates a response to a suggestion sent by the
30443044
Bandwidth user's client after receiving an RBM message.
@@ -3277,7 +3277,7 @@ components:
32773277
nullable: true
32783278
type: string
32793279
description: >-
3280-
The caller display name to use when the call is created.
3280+
The caller display name to use when the call is created.
32813281
32823282
May not exceed 256 characters nor contain control characters such as
32833283
new lines.
@@ -3455,8 +3455,8 @@ components:
34553455
May be cleared by setting `tag=""`
34563456
34573457
3458-
Max length 256 characters.
3459-
maxLength: 256
3458+
Max length 4096 characters.
3459+
maxLength: 4096
34603460
example: arbitrary text here
34613461
createCallResponse:
34623462
type: object
@@ -3833,11 +3833,11 @@ components:
38333833
May be cleared by setting `tag=""`.
38343834
38353835
3836-
Max length 256 characters.
3836+
Max length 4096 characters.
38373837
38383838
38393839
Not allowed if `state` is `completed`.
3840-
maxLength: 256
3840+
maxLength: 4096
38413841
example: My Custom Tag
38423842
updateCallRecording:
38433843
type: object
@@ -4214,7 +4214,7 @@ components:
42144214
format: double
42154215
description: >-
42164216
When an answering machine is detected, the amount of silence (in
4217-
seconds) before assuming the message has finished playing.
4217+
seconds) before assuming the message has finished playing.
42184218
42194219
If not provided it will default to the speechEndThreshold value.
42204220
example: 5
@@ -5958,7 +5958,7 @@ components:
59585958
format: date
59595959
description: >-
59605960
[DNI-Only](#section/DNI-Only). The date the phone number entered the
5961-
status described in `latestMessageDeliveryStatus`.
5961+
status described in `latestMessageDeliveryStatus`.
59625962
59635963
Think of this as the "start time" for that status.
59645964
@@ -7060,6 +7060,26 @@ components:
70607060
required:
70617061
- eventType
70627062
- eventTime
7063+
link1:
7064+
type: object
7065+
properties:
7066+
href:
7067+
type: string
7068+
description: The full URL of the link.
7069+
example: >-
7070+
https://api.bandwidth.com/v2/accounts/5500123/endpoints/e-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85
7071+
rel:
7072+
type: string
7073+
description: The relationship of the link to the current resource.
7074+
example: self
7075+
method:
7076+
type: string
7077+
enum:
7078+
- GET
7079+
- POST
7080+
- DELETE
7081+
description: The HTTP method to use when making the request.
7082+
example: GET
70637083
page:
70647084
type: object
70657085
properties:
@@ -7085,13 +7105,57 @@ components:
70857105
example: 0
70867106
required:
70877107
- pageSize
7108+
error1:
7109+
type: object
7110+
properties:
7111+
id:
7112+
type: string
7113+
format: uuid
7114+
description: A unique identifier for the error.
7115+
example: 59512d87-7a92-4040-8e4a-78fb772019b9
7116+
type:
7117+
type: string
7118+
description: The type of error.
7119+
example: resource.not_found
7120+
description:
7121+
type: string
7122+
description: A description of the error.
7123+
example: The requested resource was not found.
7124+
code:
7125+
type: string
7126+
description: A code that uniquely identifies the error.
7127+
example: '404'
7128+
source:
7129+
type: object
7130+
properties:
7131+
parameter:
7132+
type: string
7133+
description: The URI parameter that caused the error.
7134+
example: accountId
7135+
field:
7136+
type: string
7137+
description: The request body field that caused the error.
7138+
example: accountId
7139+
header:
7140+
type: string
7141+
description: The header that caused the error.
7142+
example: Authorization
7143+
reference:
7144+
type: string
7145+
description: >-
7146+
The resource ID or path to the resource (or non-existent
7147+
resource) causing the error.
7148+
example: e-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85
7149+
required:
7150+
- type
7151+
- description
70887152
listEndpointsResponse:
70897153
type: object
70907154
properties:
70917155
links:
70927156
type: array
70937157
items:
7094-
$ref: '#/components/schemas/link'
7158+
$ref: '#/components/schemas/link1'
70957159
page:
70967160
$ref: '#/components/schemas/page'
70977161
data:
@@ -7101,7 +7165,7 @@ components:
71017165
errors:
71027166
type: array
71037167
items:
7104-
$ref: '#/components/schemas/error'
7168+
$ref: '#/components/schemas/error1'
71057169
required:
71067170
- links
71077171
- data
@@ -7112,13 +7176,13 @@ components:
71127176
links:
71137177
type: array
71147178
items:
7115-
$ref: '#/components/schemas/link'
7179+
$ref: '#/components/schemas/link1'
71167180
data:
71177181
$ref: '#/components/schemas/endpoint'
71187182
errors:
71197183
type: array
71207184
items:
7121-
$ref: '#/components/schemas/error'
7185+
$ref: '#/components/schemas/error1'
71227186
required:
71237187
- links
71247188
- data
@@ -7129,13 +7193,13 @@ components:
71297193
links:
71307194
type: array
71317195
items:
7132-
$ref: '#/components/schemas/link'
7196+
$ref: '#/components/schemas/link1'
71337197
data:
71347198
$ref: '#/components/schemas/createEndpointResponseData'
71357199
errors:
71367200
type: array
71377201
items:
7138-
$ref: '#/components/schemas/error'
7202+
$ref: '#/components/schemas/error1'
71397203
required:
71407204
- links
71417205
- data
@@ -7146,15 +7210,15 @@ components:
71467210
links:
71477211
type: array
71487212
items:
7149-
$ref: '#/components/schemas/link'
7213+
$ref: '#/components/schemas/link1'
71507214
data:
71517215
type: object
71527216
nullable: true
71537217
additionalProperties: false
71547218
errors:
71557219
type: array
71567220
items:
7157-
$ref: '#/components/schemas/error'
7221+
$ref: '#/components/schemas/error1'
71587222
required:
71597223
- links
71607224
- data
@@ -7916,6 +7980,15 @@ components:
79167980
$ref: '#/components/examples/unsupportedMediaTypeErrorExample'
79177981
tooManyRequestsErrorResponse:
79187982
description: Too Many Requests
7983+
headers:
7984+
Retry-After:
7985+
description: >-
7986+
The number of seconds the client should wait before making another
7987+
request.
7988+
required: true
7989+
schema:
7990+
type: integer
7991+
example: 900
79197992
content:
79207993
application/json:
79217994
schema:
@@ -9137,10 +9210,10 @@ components:
91379210
links: []
91389211
data: null
91399212
errors:
9140-
- id: 59512d87-7a92-4040-8e4a-78fb772019b9
9141-
type: too_many_requests
9142-
description: The client has sent too many requests in a given amount of time.
9143-
code: '429'
9213+
- type: too_many_endpoints
9214+
description: >-
9215+
Too many endpoints. Please delete an existing endpoint or wait 24
9216+
hours for an endpoint to be removed.
91449217
serviceUnavailableErrorExample:
91459218
summary: Service Unavailable Error Example
91469219
value:
@@ -9556,12 +9629,12 @@ components:
95569629
required: true
95579630
description: >-
95589631
<p>This Inbound Message Webhook is an envelope containing either a
9559-
received (MO) message to your
9632+
received (MO) message to your
95609633
95619634
message-enabled Bandwidth telephone number or a multichannel
9562-
client's response to a suggestion response
9635+
client's response to a suggestion response
95639636
9564-
or location request.
9637+
or location request.
95659638
95669639
<p>The payload type will be one of <code>message-received</code>,
95679640
<code>suggestion-response</code>, or

bandwidth/__init__.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,8 @@
102102
"EndpointTypeEnum",
103103
"Endpoints",
104104
"Error",
105+
"Error1",
106+
"Error1Source",
105107
"ErrorObject",
106108
"ErrorResponse",
107109
"ErrorSource",
@@ -119,6 +121,7 @@
119121
"LatestMessageDeliveryStatusEnum",
120122
"LineTypeEnum",
121123
"Link",
124+
"Link1",
122125
"LinkSchema",
123126
"LinksObject",
124127
"ListEndpointsResponse",
@@ -325,6 +328,8 @@
325328
from bandwidth.models.endpoint_type_enum import EndpointTypeEnum as EndpointTypeEnum
326329
from bandwidth.models.endpoints import Endpoints as Endpoints
327330
from bandwidth.models.error import Error as Error
331+
from bandwidth.models.error1 import Error1 as Error1
332+
from bandwidth.models.error1_source import Error1Source as Error1Source
328333
from bandwidth.models.error_object import ErrorObject as ErrorObject
329334
from bandwidth.models.error_response import ErrorResponse as ErrorResponse
330335
from bandwidth.models.error_source import ErrorSource as ErrorSource
@@ -342,6 +347,7 @@
342347
from bandwidth.models.latest_message_delivery_status_enum import LatestMessageDeliveryStatusEnum as LatestMessageDeliveryStatusEnum
343348
from bandwidth.models.line_type_enum import LineTypeEnum as LineTypeEnum
344349
from bandwidth.models.link import Link as Link
350+
from bandwidth.models.link1 import Link1 as Link1
345351
from bandwidth.models.link_schema import LinkSchema as LinkSchema
346352
from bandwidth.models.links_object import LinksObject as LinksObject
347353
from bandwidth.models.list_endpoints_response import ListEndpointsResponse as ListEndpointsResponse

bandwidth/models/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@
7676
from bandwidth.models.endpoint_type_enum import EndpointTypeEnum
7777
from bandwidth.models.endpoints import Endpoints
7878
from bandwidth.models.error import Error
79+
from bandwidth.models.error1 import Error1
80+
from bandwidth.models.error1_source import Error1Source
7981
from bandwidth.models.error_object import ErrorObject
8082
from bandwidth.models.error_response import ErrorResponse
8183
from bandwidth.models.error_source import ErrorSource
@@ -93,6 +95,7 @@
9395
from bandwidth.models.latest_message_delivery_status_enum import LatestMessageDeliveryStatusEnum
9496
from bandwidth.models.line_type_enum import LineTypeEnum
9597
from bandwidth.models.link import Link
98+
from bandwidth.models.link1 import Link1
9699
from bandwidth.models.link_schema import LinkSchema
97100
from bandwidth.models.links_object import LinksObject
98101
from bandwidth.models.list_endpoints_response import ListEndpointsResponse

0 commit comments

Comments
 (0)