Skip to content

Commit 5a20e22

Browse files
committed
Fix parameter references and add Beta badges in endpoints section
1 parent 5348a83 commit 5a20e22

28 files changed

Lines changed: 613 additions & 438 deletions

.openapi-generator/FILES

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ bandwidth/models/create_call.py
6161
bandwidth/models/create_call_response.py
6262
bandwidth/models/create_endpoint_request_base.py
6363
bandwidth/models/create_endpoint_response.py
64-
bandwidth/models/create_endpoint_response_object.py
64+
bandwidth/models/create_endpoint_response_data.py
6565
bandwidth/models/create_message_request_error.py
6666
bandwidth/models/create_multi_channel_message_response.py
6767
bandwidth/models/create_sync_lookup_response.py
@@ -260,7 +260,7 @@ docs/CreateCall.md
260260
docs/CreateCallResponse.md
261261
docs/CreateEndpointRequestBase.md
262262
docs/CreateEndpointResponse.md
263-
docs/CreateEndpointResponseObject.md
263+
docs/CreateEndpointResponseData.md
264264
docs/CreateMessageRequestError.md
265265
docs/CreateMultiChannelMessageResponse.md
266266
docs/CreateSyncLookupResponse.md

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ Class | Method | HTTP request | Description
203203
- [CreateCallResponse](docs/CreateCallResponse.md)
204204
- [CreateEndpointRequestBase](docs/CreateEndpointRequestBase.md)
205205
- [CreateEndpointResponse](docs/CreateEndpointResponse.md)
206-
- [CreateEndpointResponseObject](docs/CreateEndpointResponseObject.md)
206+
- [CreateEndpointResponseData](docs/CreateEndpointResponseData.md)
207207
- [CreateMessageRequestError](docs/CreateMessageRequestError.md)
208208
- [CreateMultiChannelMessageResponse](docs/CreateMultiChannelMessageResponse.md)
209209
- [CreateSyncLookupResponse](docs/CreateSyncLookupResponse.md)

bandwidth.yml

Lines changed: 34 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1699,7 +1699,7 @@ paths:
16991699
description: Returns a list of endpoints associated with the specified account.
17001700
operationId: listEndpoints
17011701
parameters:
1702-
- $ref: '#/components/parameters/accountId2'
1702+
- $ref: '#/components/parameters/accountId'
17031703
- $ref: '#/components/parameters/endpointType'
17041704
- $ref: '#/components/parameters/endpointStatus'
17051705
- $ref: '#/components/parameters/afterCursor'
@@ -1723,14 +1723,17 @@ paths:
17231723
$ref: '#/components/responses/tooManyRequestsErrorResponse'
17241724
'500':
17251725
$ref: '#/components/responses/serviceUnavailableErrorResponse'
1726+
x-badges:
1727+
- name: Beta
1728+
color: '#076EA8'
17261729
post:
17271730
tags:
17281731
- Endpoints
17291732
summary: Create Endpoint
17301733
description: Creates a new Endpoint for the specified account.
17311734
operationId: createEndpoint
17321735
parameters:
1733-
- $ref: '#/components/parameters/accountId2'
1736+
- $ref: '#/components/parameters/accountId'
17341737
requestBody:
17351738
$ref: '#/components/requestBodies/createEndpointRequest'
17361739
responses:
@@ -1755,6 +1758,9 @@ paths:
17551758
callbacks:
17561759
endpointEventCallback:
17571760
$ref: '#/components/callbacks/endpointEvent'
1761+
x-badges:
1762+
- name: Beta
1763+
color: '#076EA8'
17581764
servers: &ref_5
17591765
- url: https://api.bandwidth.com/v2
17601766
description: Production
@@ -1766,7 +1772,7 @@ paths:
17661772
description: Returns information about the specified endpoint.
17671773
operationId: getEndpoint
17681774
parameters:
1769-
- $ref: '#/components/parameters/accountId2'
1775+
- $ref: '#/components/parameters/accountId'
17701776
- $ref: '#/components/parameters/endpointId'
17711777
responses:
17721778
'200':
@@ -1787,6 +1793,9 @@ paths:
17871793
$ref: '#/components/responses/tooManyRequestsErrorResponse'
17881794
'500':
17891795
$ref: '#/components/responses/serviceUnavailableErrorResponse'
1796+
x-badges:
1797+
- name: Beta
1798+
color: '#076EA8'
17901799
delete:
17911800
tags:
17921801
- Endpoints
@@ -1796,7 +1805,7 @@ paths:
17961805
media, the media stream will be terminated.
17971806
operationId: deleteEndpoint
17981807
parameters:
1799-
- $ref: '#/components/parameters/accountId2'
1808+
- $ref: '#/components/parameters/accountId'
18001809
- $ref: '#/components/parameters/endpointId'
18011810
responses:
18021811
'204':
@@ -1817,6 +1826,9 @@ paths:
18171826
$ref: '#/components/responses/tooManyRequestsErrorResponse'
18181827
'500':
18191828
$ref: '#/components/responses/serviceUnavailableErrorResponse'
1829+
x-badges:
1830+
- name: Beta
1831+
color: '#076EA8'
18201832
servers: *ref_5
18211833
/accounts/{accountId}/endpoints/{endpointId}/bxml:
18221834
put:
@@ -1826,7 +1838,7 @@ paths:
18261838
description: Updates the BXML for the specified endpoint.
18271839
operationId: updateEndpointBxml
18281840
parameters:
1829-
- $ref: '#/components/parameters/accountId2'
1841+
- $ref: '#/components/parameters/accountId'
18301842
- $ref: '#/components/parameters/endpointId'
18311843
requestBody:
18321844
$ref: '#/components/requestBodies/updateEndpointBxmlRequest'
@@ -1849,6 +1861,9 @@ paths:
18491861
$ref: '#/components/responses/tooManyRequestsErrorResponse'
18501862
'500':
18511863
$ref: '#/components/responses/serviceUnavailableErrorResponse'
1864+
x-badges:
1865+
- name: Beta
1866+
color: '#076EA8'
18521867
servers: *ref_5
18531868
components:
18541869
schemas:
@@ -6694,6 +6709,18 @@ components:
66946709
nullable: true
66956710
pattern: ^[ -~]{16,64}$
66966711
type: string
6712+
cvTokenNullable:
6713+
type: string
6714+
description: >-
6715+
The token provided by Campaign Verify to validate your political use
6716+
case. Only required for 527 political organizations. If you are not a
6717+
527 political organization, this field should be omitted. Supplying an
6718+
empty string will likely result in rejection.
6719+
minLength: 0
6720+
maxLength: 500
6721+
nullable: true
6722+
example: >-
6723+
cv.user123|sess456|mno|tfree|read_write|X7yZ9aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVw
66976724
endpointId:
66986725
type: string
66996726
description: The unique ID of the endpoint.
@@ -6860,7 +6887,7 @@ components:
68606887
propertyName: type
68616888
mapping:
68626889
WEBRTC: '#/components/schemas/createWebRtcConnectionRequest'
6863-
createEndpointResponseObject:
6890+
createEndpointResponseData:
68646891
allOf:
68656892
- $ref: '#/components/schemas/endpoint'
68666893
- type: object
@@ -6963,7 +6990,7 @@ components:
69636990
items:
69646991
$ref: '#/components/schemas/link'
69656992
data:
6966-
$ref: '#/components/schemas/createEndpointResponseObject'
6993+
$ref: '#/components/schemas/createEndpointResponseData'
69676994
errors:
69686995
type: array
69696996
items:
@@ -8271,14 +8298,6 @@ components:
82718298
type: string
82728299
description: Webhook subscription ID
82738300
example: 7bt57JcsVYJrN9K1OcV1Nu
8274-
accountId2:
8275-
name: accountId
8276-
in: path
8277-
required: true
8278-
schema:
8279-
type: string
8280-
example: '5500123'
8281-
description: Your Bandwidth Account ID.
82828301
endpointId:
82838302
name: endpointId
82848303
in: path

bandwidth/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
"CreateCallResponse",
8282
"CreateEndpointRequestBase",
8383
"CreateEndpointResponse",
84-
"CreateEndpointResponseObject",
84+
"CreateEndpointResponseData",
8585
"CreateMessageRequestError",
8686
"CreateMultiChannelMessageResponse",
8787
"CreateSyncLookupResponse",
@@ -304,7 +304,7 @@
304304
from bandwidth.models.create_call_response import CreateCallResponse as CreateCallResponse
305305
from bandwidth.models.create_endpoint_request_base import CreateEndpointRequestBase as CreateEndpointRequestBase
306306
from bandwidth.models.create_endpoint_response import CreateEndpointResponse as CreateEndpointResponse
307-
from bandwidth.models.create_endpoint_response_object import CreateEndpointResponseObject as CreateEndpointResponseObject
307+
from bandwidth.models.create_endpoint_response_data import CreateEndpointResponseData as CreateEndpointResponseData
308308
from bandwidth.models.create_message_request_error import CreateMessageRequestError as CreateMessageRequestError
309309
from bandwidth.models.create_multi_channel_message_response import CreateMultiChannelMessageResponse as CreateMultiChannelMessageResponse
310310
from bandwidth.models.create_sync_lookup_response import CreateSyncLookupResponse as CreateSyncLookupResponse

0 commit comments

Comments
 (0)