Skip to content

Commit 22c7ddf

Browse files
committed
regenerate
1 parent 5753c90 commit 22c7ddf

File tree

10 files changed

+85
-162
lines changed

10 files changed

+85
-162
lines changed

api/openapi.yaml

Lines changed: 49 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -4731,21 +4731,21 @@ paths:
47314731
application/json:
47324732
examples:
47334733
badRequest:
4734-
$ref: "#/components/examples/badRequestPostExample"
4734+
$ref: "#/components/examples/badRequestExample"
47354735
unauthorized:
4736-
$ref: "#/components/examples/unauthorizedErrorExample"
4736+
$ref: "#/components/examples/unauthorizedExample"
47374737
forbidden:
4738-
$ref: "#/components/examples/forbiddenErrorExample"
4738+
$ref: "#/components/examples/forbiddenExample"
47394739
mediaType:
4740-
$ref: "#/components/examples/mediaTypeErrorExample"
4740+
$ref: "#/components/examples/unsupportedMediaTypeExample"
47414741
notFound:
4742-
$ref: "#/components/examples/notFoundErrorExample"
4742+
$ref: "#/components/examples/notFoundExample"
47434743
tooManyRequests:
4744-
$ref: "#/components/examples/tooManyRequestsErrorExample"
4744+
$ref: "#/components/examples/tooManyRequestsExample"
47454745
internalServer:
47464746
$ref: "#/components/examples/internalServerErrorExample"
47474747
schema:
4748-
$ref: "#/components/schemas/errorResponse"
4748+
$ref: "#/components/schemas/lookupErrorResponse"
47494749
description: Bad Request
47504750
summary: Create Synchronous Number Lookup
47514751
tags:
@@ -4790,21 +4790,21 @@ paths:
47904790
application/json:
47914791
examples:
47924792
badRequest:
4793-
$ref: "#/components/examples/badRequestPostExample"
4793+
$ref: "#/components/examples/badRequestExample"
47944794
unauthorized:
4795-
$ref: "#/components/examples/unauthorizedErrorExample"
4795+
$ref: "#/components/examples/unauthorizedExample"
47964796
forbidden:
4797-
$ref: "#/components/examples/forbiddenErrorExample"
4797+
$ref: "#/components/examples/forbiddenExample"
47984798
mediaType:
4799-
$ref: "#/components/examples/mediaTypeErrorExample"
4799+
$ref: "#/components/examples/unsupportedMediaTypeExample"
48004800
notFound:
4801-
$ref: "#/components/examples/notFoundErrorExample"
4801+
$ref: "#/components/examples/notFoundExample"
48024802
tooManyRequests:
4803-
$ref: "#/components/examples/tooManyRequestsErrorExample"
4803+
$ref: "#/components/examples/tooManyRequestsExample"
48044804
internalServer:
48054805
$ref: "#/components/examples/internalServerErrorExample"
48064806
schema:
4807-
$ref: "#/components/schemas/errorResponse"
4807+
$ref: "#/components/schemas/lookupErrorResponse"
48084808
description: Bad Request
48094809
summary: Create Asynchronous Bulk Number Lookup
48104810
tags:
@@ -4863,21 +4863,21 @@ paths:
48634863
application/json:
48644864
examples:
48654865
badRequest:
4866-
$ref: "#/components/examples/badRequestPostExample"
4866+
$ref: "#/components/examples/badRequestExample"
48674867
unauthorized:
4868-
$ref: "#/components/examples/unauthorizedErrorExample"
4868+
$ref: "#/components/examples/unauthorizedExample"
48694869
forbidden:
4870-
$ref: "#/components/examples/forbiddenErrorExample"
4870+
$ref: "#/components/examples/forbiddenExample"
48714871
mediaType:
4872-
$ref: "#/components/examples/mediaTypeErrorExample"
4872+
$ref: "#/components/examples/unsupportedMediaTypeExample"
48734873
notFound:
4874-
$ref: "#/components/examples/notFoundErrorExample"
4874+
$ref: "#/components/examples/notFoundExample"
48754875
tooManyRequests:
4876-
$ref: "#/components/examples/tooManyRequestsErrorExample"
4876+
$ref: "#/components/examples/tooManyRequestsExample"
48774877
internalServer:
48784878
$ref: "#/components/examples/internalServerErrorExample"
48794879
schema:
4880-
$ref: "#/components/schemas/errorResponse"
4880+
$ref: "#/components/schemas/lookupErrorResponse"
48814881
description: Bad Request
48824882
summary: Get Asynchronous Bulk Number Lookup
48834883
tags:
@@ -6321,13 +6321,17 @@ components:
63216321
deactivationEvent: DEACTIVATED
63226322
latestMessageDeliveryStatus: UNKNOWN
63236323
errors: []
6324-
badRequestPostExample:
6324+
badRequestExample:
63256325
summary: Example Bad Request Error
63266326
value:
6327-
statusCode: 400
6328-
message: Account not authorized
6329-
unauthorizedErrorExample:
6330-
summary: Example Unauthorized Error
6327+
links: []
6328+
data: {}
6329+
errors:
6330+
- type: bad-request
6331+
description: Bad Request. Ensure that you have set the requestId as a URL
6332+
path parameter.
6333+
unauthorizedExample:
6334+
summary: Unauthorized Error
63316335
value:
63326336
links: []
63336337
data: {}
@@ -6336,8 +6340,8 @@ components:
63366340
description: You are not authorized to access this resource.
63376341
code: "1"
63386342
page: null
6339-
forbiddenErrorExample:
6340-
summary: Example Forbidden Error
6343+
forbiddenExample:
6344+
summary: Forbidden Error
63416345
value:
63426346
links: []
63436347
data: {}
@@ -6346,26 +6350,26 @@ components:
63466350
description: You do not have permission to access this resource.
63476351
code: "2"
63486352
page: null
6349-
mediaTypeErrorExample:
6350-
summary: Example Unsupported Media Type Error
6353+
unsupportedMediaTypeExample:
6354+
summary: Unsupported Media Type Error
63516355
value:
63526356
links: []
63536357
data: {}
63546358
errors:
63556359
- type: invalid-content-type
63566360
description: Invalid content-type. Ensure that your content-type header
63576361
is set to application/json.
6358-
notFoundErrorExample:
6359-
summary: Resource not found
6362+
notFoundExample:
6363+
summary: Not Found Error
63606364
value:
63616365
links: []
63626366
data: {}
63636367
errors:
63646368
- type: not-found
63656369
description: RequestId not found. Ensure that the requestId used in the
63666370
URL path is valid and maps to a previous request that was submitted.
6367-
tooManyRequestsErrorExample:
6368-
summary: Example Too Many Requests Error
6371+
tooManyRequestsExample:
6372+
summary: Too Many Requests Error
63696373
value:
63706374
links: []
63716375
data: {}
@@ -6374,15 +6378,10 @@ components:
63746378
description: Rate limit exceeded. Wait for the time specified in the Retry-After
63756379
header before sending another request.
63766380
internalServerErrorExample:
6377-
summary: Example Internal Server Error Error
6381+
summary: Internal Server Error
63786382
value:
6379-
links:
6380-
- href: href
6381-
rel: rel
6382-
method: GET
6383-
data:
6384-
requestId: 004223a0-8b17-41b1-bf81-20732adf5590
6385-
results: []
6383+
links: []
6384+
data: {}
63866385
errors:
63876386
- code: "500"
63886387
type: unexpected-error
@@ -7839,21 +7838,21 @@ components:
78397838
application/json:
78407839
examples:
78417840
badRequest:
7842-
$ref: "#/components/examples/badRequestPostExample"
7841+
$ref: "#/components/examples/badRequestExample"
78437842
unauthorized:
7844-
$ref: "#/components/examples/unauthorizedErrorExample"
7843+
$ref: "#/components/examples/unauthorizedExample"
78457844
forbidden:
7846-
$ref: "#/components/examples/forbiddenErrorExample"
7845+
$ref: "#/components/examples/forbiddenExample"
78477846
mediaType:
7848-
$ref: "#/components/examples/mediaTypeErrorExample"
7847+
$ref: "#/components/examples/unsupportedMediaTypeExample"
78497848
notFound:
7850-
$ref: "#/components/examples/notFoundErrorExample"
7849+
$ref: "#/components/examples/notFoundExample"
78517850
tooManyRequests:
7852-
$ref: "#/components/examples/tooManyRequestsErrorExample"
7851+
$ref: "#/components/examples/tooManyRequestsExample"
78537852
internalServer:
78547853
$ref: "#/components/examples/internalServerErrorExample"
78557854
schema:
7856-
$ref: "#/components/schemas/errorResponse"
7855+
$ref: "#/components/schemas/lookupErrorResponse"
78577856
description: Bad Request
78587857
getTollFreeVerificationStatusResponse:
78597858
content:
@@ -13393,7 +13392,7 @@ components:
1339313392
$ref: "#/components/schemas/lookupErrorSchema"
1339413393
type: array
1339513394
type: object
13396-
errorResponse:
13395+
lookupErrorResponse:
1339713396
example:
1339813397
data: "{}"
1339913398
links: []

docs/CreateLookupResponse.md

Lines changed: 0 additions & 15 deletions
This file was deleted.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22

3-
# ErrorResponse
3+
# LookupErrorResponse
44

55

66
## Properties

docs/LookupRequest.md

Lines changed: 0 additions & 14 deletions
This file was deleted.

docs/LookupStatus.md

Lines changed: 0 additions & 17 deletions
This file was deleted.

docs/LookupStatusEnum.md

Lines changed: 0 additions & 17 deletions
This file was deleted.

docs/TnLookupRequestError.md

Lines changed: 0 additions & 13 deletions
This file was deleted.

src/main/java/com/bandwidth/sdk/JSON.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,6 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri
165165
gsonBuilder.registerTypeAdapterFactory(new com.bandwidth.sdk.model.DtmfCallback.CustomTypeAdapterFactory());
166166
gsonBuilder.registerTypeAdapterFactory(new com.bandwidth.sdk.model.Error.CustomTypeAdapterFactory());
167167
gsonBuilder.registerTypeAdapterFactory(new com.bandwidth.sdk.model.ErrorObject.CustomTypeAdapterFactory());
168-
gsonBuilder.registerTypeAdapterFactory(new com.bandwidth.sdk.model.ErrorResponse.CustomTypeAdapterFactory());
169168
gsonBuilder.registerTypeAdapterFactory(new com.bandwidth.sdk.model.ErrorSource.CustomTypeAdapterFactory());
170169
gsonBuilder.registerTypeAdapterFactory(new com.bandwidth.sdk.model.FailureWebhook.CustomTypeAdapterFactory());
171170
gsonBuilder.registerTypeAdapterFactory(new com.bandwidth.sdk.model.FieldError.CustomTypeAdapterFactory());
@@ -179,6 +178,7 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri
179178
gsonBuilder.registerTypeAdapterFactory(new com.bandwidth.sdk.model.LinkSchema.CustomTypeAdapterFactory());
180179
gsonBuilder.registerTypeAdapterFactory(new com.bandwidth.sdk.model.LinksObject.CustomTypeAdapterFactory());
181180
gsonBuilder.registerTypeAdapterFactory(new com.bandwidth.sdk.model.ListMessageItem.CustomTypeAdapterFactory());
181+
gsonBuilder.registerTypeAdapterFactory(new com.bandwidth.sdk.model.LookupErrorResponse.CustomTypeAdapterFactory());
182182
gsonBuilder.registerTypeAdapterFactory(new com.bandwidth.sdk.model.LookupErrorSchema.CustomTypeAdapterFactory());
183183
gsonBuilder.registerTypeAdapterFactory(new com.bandwidth.sdk.model.LookupErrorSchemaMeta.CustomTypeAdapterFactory());
184184
gsonBuilder.registerTypeAdapterFactory(new com.bandwidth.sdk.model.LookupResult.CustomTypeAdapterFactory());

src/main/java/com/bandwidth/sdk/api/PhoneNumberLookupApi.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@
3030
import com.bandwidth.sdk.model.AsyncLookupRequest;
3131
import com.bandwidth.sdk.model.CreateAsyncBulkLookupResponse;
3232
import com.bandwidth.sdk.model.CreateSyncLookupResponse;
33-
import com.bandwidth.sdk.model.ErrorResponse;
3433
import com.bandwidth.sdk.model.GetAsyncBulkLookupResponse;
34+
import com.bandwidth.sdk.model.LookupErrorResponse;
3535
import com.bandwidth.sdk.model.SyncLookupRequest;
3636
import java.util.UUID;
3737

0 commit comments

Comments
 (0)