Skip to content

Commit 15490e8

Browse files
Generate SDK with OpenAPI Generator Version (#245)
Co-authored-by: DX-Bandwidth <[email protected]>
1 parent 2644730 commit 15490e8

File tree

4 files changed

+39
-47
lines changed

4 files changed

+39
-47
lines changed

bandwidth.yml

Lines changed: 35 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1641,12 +1641,14 @@ components:
16411641
enum:
16421642
- INBOUND
16431643
- OUTBOUND
1644+
example: INBOUND
16441645
messageDirectionEnum:
16451646
type: string
16461647
description: The direction of the message. One of in out.
16471648
enum:
16481649
- in
16491650
- out
1651+
example: in
16501652
messageTypeEnum:
16511653
type: string
16521654
description: The type of message. Either SMS or MMS.
@@ -4797,17 +4799,9 @@ components:
47974799
useCase:
47984800
$ref: '#/components/schemas/useCase'
47994801
useCaseSummary:
4800-
type: string
4801-
description: A general idea of the use case and customer.
4802-
minLength: 1
4803-
maxLength: 500
4804-
nullable: false
4802+
$ref: '#/components/schemas/useCaseSummary'
48054803
productionMessageContent:
4806-
type: string
4807-
description: Example of message content.
4808-
minLength: 1
4809-
maxLength: 500
4810-
nullable: false
4804+
$ref: '#/components/schemas/productionMessageContent'
48114805
optInWorkflow:
48124806
$ref: '#/components/schemas/optInWorkflow'
48134807
additionalInformation:
@@ -4816,6 +4810,7 @@ components:
48164810
minLength: 0
48174811
maxLength: 500
48184812
nullable: true
4813+
example: Any additional information
48194814
isvReseller:
48204815
$ref: '#/components/schemas/isvReseller'
48214816
verificationUpdateRequest:
@@ -4842,25 +4837,13 @@ components:
48424837
useCase:
48434838
$ref: '#/components/schemas/useCase'
48444839
useCaseSummary:
4845-
type: string
4846-
description: A general idea of the use case and customer.
4847-
minLength: 0
4848-
maxLength: 500
4849-
nullable: false
4840+
$ref: '#/components/schemas/useCaseSummary'
48504841
productionMessageContent:
4851-
type: string
4852-
description: Example of message content.
4853-
minLength: 0
4854-
maxLength: 500
4855-
nullable: false
4842+
$ref: '#/components/schemas/productionMessageContent'
48564843
optInWorkflow:
48574844
$ref: '#/components/schemas/optInWorkflow'
48584845
additionalInformation:
4859-
type: string
4860-
description: Any additional information.
4861-
minLength: 0
4862-
maxLength: 500
4863-
nullable: true
4846+
$ref: '#/components/schemas/additionalInformation'
48644847
isvReseller:
48654848
$ref: '#/components/schemas/isvReseller'
48664849
tfvBasicAuthentication:
@@ -4869,9 +4852,11 @@ components:
48694852
username:
48704853
type: string
48714854
maxLength: 100
4855+
example: username
48724856
password:
48734857
type: string
48744858
maxLength: 200
4859+
example: password
48754860
required:
48764861
- username
48774862
- password
@@ -4986,6 +4971,7 @@ components:
49864971
minLength: 0
49874972
maxLength: 500
49884973
nullable: true
4974+
example: 2230 Bandmate Way
49894975
city:
49904976
type: string
49914977
description: The city of the business using the toll-free number.
@@ -5014,6 +5000,12 @@ components:
50145000
maxLength: 500
50155001
nullable: false
50165002
example: https://www.example.com/path/to/resource
5003+
additionalInformation:
5004+
type: string
5005+
description: Any additional information.
5006+
minLength: 0
5007+
maxLength: 500
5008+
nullable: true
50175009
optInWorkflow:
50185010
type: object
50195011
nullable: false
@@ -5101,6 +5093,20 @@ components:
51015093
minLength: 0
51025094
maxLength: 500
51035095
example: 2FA
5096+
useCaseSummary:
5097+
type: string
5098+
description: A general idea of the use case and customer.
5099+
minLength: 0
5100+
maxLength: 500
5101+
nullable: false
5102+
example: Text summarizing the use case for the toll-free number
5103+
productionMessageContent:
5104+
type: string
5105+
description: Example of message content.
5106+
minLength: 0
5107+
maxLength: 500
5108+
nullable: false
5109+
example: Production message content
51045110
webhookSubscriptionsListBody:
51055111
description: >-
51065112
A list of all webhook subscriptions registered for this account ID for
@@ -5277,28 +5283,13 @@ components:
52775283
useCase:
52785284
$ref: '#/components/schemas/useCase'
52795285
useCaseSummary:
5280-
type: string
5281-
description: A general idea of the use case and customer.
5282-
minLength: 0
5283-
maxLength: 500
5284-
nullable: false
5285-
example: Text summarizing the use case for the toll-free number
5286+
$ref: '#/components/schemas/useCaseSummary'
52865287
productionMessageContent:
5287-
type: string
5288-
description: Example of message content.
5289-
minLength: 0
5290-
maxLength: 500
5291-
nullable: false
5292-
example: Production message content
5288+
$ref: '#/components/schemas/productionMessageContent'
52935289
optInWorkflow:
52945290
$ref: '#/components/schemas/optInWorkflow'
52955291
additionalInformation:
5296-
type: string
5297-
description: Any additional information.
5298-
minLength: 0
5299-
maxLength: 500
5300-
nullable: true
5301-
example: Any additional information
5292+
$ref: '#/components/schemas/additionalInformation'
53025293
isvReseller:
53035294
$ref: '#/components/schemas/isvReseller'
53045295
tfvStatusEnum:
@@ -6235,6 +6226,7 @@ components:
62356226
Not intended for explicit use. To use pagination, follow the links in
62366227
the `Link` header of the response, as indicated in the endpoint
62376228
description.
6229+
example: eyJwYWdlVG9rZW4iOiJ0b2tlbiJ9
62386230
disconnectCause:
62396231
name: disconnectCause
62406232
in: query

bandwidth/models/verification_request.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ class VerificationRequest(BaseModel):
3636
message_volume: Annotated[int, Field(le=10000000, strict=True, ge=10)] = Field(description="Estimated monthly volume of messages from the toll-free number.", alias="messageVolume")
3737
phone_numbers: Annotated[List[Annotated[str, Field(min_length=12, strict=True, max_length=12)]], Field(min_length=1, max_length=10)] = Field(alias="phoneNumbers")
3838
use_case: Annotated[str, Field(min_length=0, strict=True, max_length=500)] = Field(description="The category of the use case.", alias="useCase")
39-
use_case_summary: Annotated[str, Field(min_length=1, strict=True, max_length=500)] = Field(description="A general idea of the use case and customer.", alias="useCaseSummary")
40-
production_message_content: Annotated[str, Field(min_length=1, strict=True, max_length=500)] = Field(description="Example of message content.", alias="productionMessageContent")
39+
use_case_summary: Annotated[str, Field(min_length=0, strict=True, max_length=500)] = Field(description="A general idea of the use case and customer.", alias="useCaseSummary")
40+
production_message_content: Annotated[str, Field(min_length=0, strict=True, max_length=500)] = Field(description="Example of message content.", alias="productionMessageContent")
4141
opt_in_workflow: OptInWorkflow = Field(alias="optInWorkflow")
4242
additional_information: Optional[Annotated[str, Field(min_length=0, strict=True, max_length=500)]] = Field(default=None, description="Any additional information.", alias="additionalInformation")
4343
isv_reseller: Optional[Annotated[str, Field(min_length=0, strict=True, max_length=500)]] = Field(default=None, description="ISV name.", alias="isvReseller")

docs/CallsApi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ with bandwidth.ApiClient(configuration) as api_client:
235235
max_start_time = '2022-06-21T19:13:21Z' # str | Filter results to calls which have a `startTime` before or including `maxStartTime` (in ISO8601 format). (optional)
236236
disconnect_cause = 'hangup' # str | Filter results to calls with specified call Disconnect Cause. (optional)
237237
page_size = 1000 # int | Specifies the max number of calls that will be returned. (optional) (default to 1000)
238-
page_token = 'page_token_example' # str | Not intended for explicit use. To use pagination, follow the links in the `Link` header of the response, as indicated in the endpoint description. (optional)
238+
page_token = 'eyJwYWdlVG9rZW4iOiJ0b2tlbiJ9' # str | Not intended for explicit use. To use pagination, follow the links in the `Link` header of the response, as indicated in the endpoint description. (optional)
239239

240240
try:
241241
# Get Calls

docs/ConferencesApi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,7 @@ with bandwidth.ApiClient(configuration) as api_client:
508508
min_created_time = '2022-06-21T19:13:21Z' # str | Filter results to conferences which have a `createdTime` after or at `minCreatedTime` (in ISO8601 format). (optional)
509509
max_created_time = '2022-06-21T19:13:21Z' # str | Filter results to conferences which have a `createdTime` before or at `maxCreatedTime` (in ISO8601 format). (optional)
510510
page_size = 1000 # int | Specifies the max number of conferences that will be returned. (optional) (default to 1000)
511-
page_token = 'page_token_example' # str | Not intended for explicit use. To use pagination, follow the links in the `Link` header of the response, as indicated in the endpoint description. (optional)
511+
page_token = 'eyJwYWdlVG9rZW4iOiJ0b2tlbiJ9' # str | Not intended for explicit use. To use pagination, follow the links in the `Link` header of the response, as indicated in the endpoint description. (optional)
512512

513513
try:
514514
# Get Conferences

0 commit comments

Comments
 (0)