Skip to content

Commit 249cfe2

Browse files
Generate SDK with OpenAPI Generator Version (#166)
Co-authored-by: DX-Bandwidth <[email protected]>
1 parent a2a1a0f commit 249cfe2

File tree

10 files changed

+57
-65
lines changed

10 files changed

+57
-65
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

docs/Address.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ require 'bandwidth-sdk'
2020
instance = Bandwidth::Address.new(
2121
name: Bandwidth Inc.,
2222
addr1: 2230 Bandmate Way,
23-
addr2: null,
23+
addr2: 2230 Bandmate Way,
2424
city: Raleigh,
2525
state: NC,
2626
zip: 27606,

docs/CallsApi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ opts = {
184184
max_start_time: '2022-06-21T19:13:21Z', # String | Filter results to calls which have a `startTime` before or including `maxStartTime` (in ISO8601 format).
185185
disconnect_cause: 'hangup', # String | Filter results to calls with specified call Disconnect Cause.
186186
page_size: 500, # Integer | Specifies the max number of calls that will be returned.
187-
page_token: 'page_token_example' # String | Not intended for explicit use. To use pagination, follow the links in the `Link` header of the response, as indicated in the endpoint description.
187+
page_token: 'eyJwYWdlVG9rZW4iOiJ0b2tlbiJ9' # String | Not intended for explicit use. To use pagination, follow the links in the `Link` header of the response, as indicated in the endpoint description.
188188
}
189189

190190
begin

docs/ConferencesApi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ opts = {
408408
min_created_time: '2022-06-21T19:13:21Z', # String | Filter results to conferences which have a `createdTime` after or at `minCreatedTime` (in ISO8601 format).
409409
max_created_time: '2022-06-21T19:13:21Z', # String | Filter results to conferences which have a `createdTime` before or at `maxCreatedTime` (in ISO8601 format).
410410
page_size: 500, # Integer | Specifies the max number of conferences that will be returned.
411-
page_token: 'page_token_example' # String | Not intended for explicit use. To use pagination, follow the links in the `Link` header of the response, as indicated in the endpoint description.
411+
page_token: 'eyJwYWdlVG9rZW4iOiJ0b2tlbiJ9' # String | Not intended for explicit use. To use pagination, follow the links in the `Link` header of the response, as indicated in the endpoint description.
412412
}
413413

414414
begin

docs/TfvBasicAuthentication.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
require 'bandwidth-sdk'
1414

1515
instance = Bandwidth::TfvBasicAuthentication.new(
16-
username: null,
17-
password: null
16+
username: username,
17+
password: password
1818
)
1919
```
2020

docs/TfvSubmissionInfo.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ instance = Bandwidth::TfvSubmissionInfo.new(
2727
use_case_summary: Text summarizing the use case for the toll-free number,
2828
production_message_content: Production message content,
2929
opt_in_workflow: null,
30-
additional_information: Any additional information,
30+
additional_information: null,
3131
isv_reseller: Test ISV
3232
)
3333
```

docs/TollFreeVerificationApi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ end
388388

389389
api_instance = Bandwidth::TollFreeVerificationApi.new
390390
account_id = '9900000' # String | Your Bandwidth Account ID.
391-
verification_request = Bandwidth::VerificationRequest.new({business_address: Bandwidth::Address.new({name: 'Bandwidth Inc.', addr1: '2230 Bandmate Way', city: 'Raleigh', state: 'NC', zip: '27606', url: 'https://www.example.com/path/to/resource'}), business_contact: Bandwidth::Contact.new({first_name: 'John', last_name: 'Doe', email: '[email protected]', phone_number: '+19192654500'}), message_volume: 10000, phone_numbers: ['+18005555555'], use_case: '2FA', use_case_summary: 'use_case_summary_example', production_message_content: 'production_message_content_example', opt_in_workflow: Bandwidth::OptInWorkflow.new({description: 'Opt In Flow', image_urls: ['https://www.example.com/path/to/resource']})}) # VerificationRequest | Request for verification of a toll-free phone number.
391+
verification_request = Bandwidth::VerificationRequest.new({business_address: Bandwidth::Address.new({name: 'Bandwidth Inc.', addr1: '2230 Bandmate Way', city: 'Raleigh', state: 'NC', zip: '27606', url: 'https://www.example.com/path/to/resource'}), business_contact: Bandwidth::Contact.new({first_name: 'John', last_name: 'Doe', email: '[email protected]', phone_number: '+19192654500'}), message_volume: 10000, phone_numbers: ['+18005555555'], use_case: '2FA', use_case_summary: 'Text summarizing the use case for the toll-free number', production_message_content: 'Production message content', opt_in_workflow: Bandwidth::OptInWorkflow.new({description: 'Opt In Flow', image_urls: ['https://www.example.com/path/to/resource']})}) # VerificationRequest | Request for verification of a toll-free phone number.
392392

393393
begin
394394
# Request Toll-Free Verification

docs/VerificationRequest.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ instance = Bandwidth::VerificationRequest.new(
2626
message_volume: 10000,
2727
phone_numbers: null,
2828
use_case: 2FA,
29-
use_case_summary: null,
30-
production_message_content: null,
29+
use_case_summary: Text summarizing the use case for the toll-free number,
30+
production_message_content: Production message content,
3131
opt_in_workflow: null,
32-
additional_information: null,
32+
additional_information: Any additional information,
3333
isv_reseller: Test ISV
3434
)
3535
```

docs/VerificationUpdateRequest.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ instance = Bandwidth::VerificationUpdateRequest.new(
2424
business_contact: null,
2525
message_volume: 10000,
2626
use_case: 2FA,
27-
use_case_summary: null,
28-
production_message_content: null,
27+
use_case_summary: Text summarizing the use case for the toll-free number,
28+
production_message_content: Production message content,
2929
opt_in_workflow: null,
3030
additional_information: null,
3131
isv_reseller: Test ISV

lib/bandwidth-sdk/models/verification_request.rb

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -217,8 +217,8 @@ def list_invalid_properties
217217
invalid_properties.push('invalid value for "use_case_summary", the character length must be smaller than or equal to 500.')
218218
end
219219

220-
if @use_case_summary.to_s.length < 1
221-
invalid_properties.push('invalid value for "use_case_summary", the character length must be great than or equal to 1.')
220+
if @use_case_summary.to_s.length < 0
221+
invalid_properties.push('invalid value for "use_case_summary", the character length must be great than or equal to 0.')
222222
end
223223

224224
if @production_message_content.nil?
@@ -229,8 +229,8 @@ def list_invalid_properties
229229
invalid_properties.push('invalid value for "production_message_content", the character length must be smaller than or equal to 500.')
230230
end
231231

232-
if @production_message_content.to_s.length < 1
233-
invalid_properties.push('invalid value for "production_message_content", the character length must be great than or equal to 1.')
232+
if @production_message_content.to_s.length < 0
233+
invalid_properties.push('invalid value for "production_message_content", the character length must be great than or equal to 0.')
234234
end
235235

236236
if @opt_in_workflow.nil?
@@ -273,10 +273,10 @@ def valid?
273273
return false if @use_case.to_s.length < 0
274274
return false if @use_case_summary.nil?
275275
return false if @use_case_summary.to_s.length > 500
276-
return false if @use_case_summary.to_s.length < 1
276+
return false if @use_case_summary.to_s.length < 0
277277
return false if @production_message_content.nil?
278278
return false if @production_message_content.to_s.length > 500
279-
return false if @production_message_content.to_s.length < 1
279+
return false if @production_message_content.to_s.length < 0
280280
return false if @opt_in_workflow.nil?
281281
return false if !@additional_information.nil? && @additional_information.to_s.length > 500
282282
return false if !@additional_information.nil? && @additional_information.to_s.length < 0
@@ -350,8 +350,8 @@ def use_case_summary=(use_case_summary)
350350
fail ArgumentError, 'invalid value for "use_case_summary", the character length must be smaller than or equal to 500.'
351351
end
352352

353-
if use_case_summary.to_s.length < 1
354-
fail ArgumentError, 'invalid value for "use_case_summary", the character length must be great than or equal to 1.'
353+
if use_case_summary.to_s.length < 0
354+
fail ArgumentError, 'invalid value for "use_case_summary", the character length must be great than or equal to 0.'
355355
end
356356

357357
@use_case_summary = use_case_summary
@@ -368,8 +368,8 @@ def production_message_content=(production_message_content)
368368
fail ArgumentError, 'invalid value for "production_message_content", the character length must be smaller than or equal to 500.'
369369
end
370370

371-
if production_message_content.to_s.length < 1
372-
fail ArgumentError, 'invalid value for "production_message_content", the character length must be great than or equal to 1.'
371+
if production_message_content.to_s.length < 0
372+
fail ArgumentError, 'invalid value for "production_message_content", the character length must be great than or equal to 0.'
373373
end
374374

375375
@production_message_content = production_message_content

0 commit comments

Comments
 (0)