From bac4753c7ddf93f41184c93c5b277e4068e72cab Mon Sep 17 00:00:00 2001 From: szekelyzol Date: Thu, 11 Apr 2024 09:37:10 +0000 Subject: [PATCH] Add API rate limiting to the OAS --- README.md | 1 + api/openapi.yaml | 586 ++++++++++++++++++ docs/AnalyticsApi.md | 2 + docs/CaptionsApi.md | 5 + docs/ChaptersApi.md | 4 + docs/LiveStreamsApi.md | 9 +- docs/PlayerThemesApi.md | 7 + docs/TooManyRequests.md | 18 + docs/UploadTokensApi.md | 4 + docs/VideosApi.md | 12 +- docs/WatermarksApi.md | 3 + docs/WebhooksApi.md | 4 + .../api/client/api/clients/AnalyticsApi.java | 51 ++ .../api/client/api/clients/CaptionsApi.java | 106 ++++ .../api/client/api/clients/ChaptersApi.java | 86 +++ .../client/api/clients/LiveStreamsApi.java | 150 ++++- .../client/api/clients/PlayerThemesApi.java | 146 +++++ .../client/api/clients/UploadTokensApi.java | 86 +++ .../api/client/api/clients/VideosApi.java | 256 +++++++- .../api/client/api/clients/WatermarksApi.java | 66 ++ .../api/client/api/clients/WebhooksApi.java | 86 +++ .../client/api/models/TooManyRequests.java | 147 +++++ .../getLiveStreamsPlays/responses/429.json | 5 + .../getVideosPlays/responses/429.json | 5 + .../captions/delete/responses/429.json | 5 + .../payloads/captions/get/responses/429.json | 5 + .../payloads/captions/list/responses/429.json | 5 + .../captions/update/responses/429.json | 5 + .../captions/upload/responses/429.json | 5 + .../chapters/delete/responses/429.json | 5 + .../payloads/chapters/get/responses/429.json | 5 + .../payloads/chapters/list/responses/429.json | 5 + .../chapters/upload/responses/429.json | 5 + .../livestreams/create/responses/429.json | 5 + .../livestreams/delete/responses/429.json | 5 + .../deleteThumbnail/responses/429.json | 5 + .../livestreams/get/responses/429.json | 5 + .../livestreams/list/responses/429.json | 5 + .../livestreams/update/responses/429.json | 5 + .../uploadThumbnail/responses/429.json | 5 + .../playerthemes/create/responses/429.json | 5 + .../playerthemes/delete/responses/429.json | 5 + .../deleteLogo/responses/429.json | 5 + .../playerthemes/get/responses/429.json | 5 + .../playerthemes/list/responses/429.json | 5 + .../playerthemes/update/responses/429.json | 5 + .../uploadLogo/responses/429.json | 5 + .../createToken/responses/429.json | 5 + .../deleteToken/responses/429.json | 5 + .../uploadtokens/getToken/responses/429.json | 5 + .../uploadtokens/list/responses/429.json | 5 + .../payloads/videos/create/responses/429.json | 5 + .../payloads/videos/delete/responses/429.json | 5 + .../payloads/videos/get/responses/429.json | 5 + .../videos/getStatus/responses/429.json | 5 + .../payloads/videos/list/responses/429.json | 5 + .../videos/pickThumbnail/responses/429.json | 5 + .../payloads/videos/update/responses/429.json | 5 + .../payloads/videos/upload/responses/429.json | 5 + .../videos/uploadThumbnail/responses/429.json | 5 + .../uploadWithUploadToken/responses/429.json | 5 + .../watermarks/delete/responses/429.json | 5 + .../watermarks/list/responses/429.json | 5 + .../watermarks/upload/responses/429.json | 5 + .../webhooks/create/responses/429.json | 5 + .../webhooks/delete/responses/429.json | 5 + .../payloads/webhooks/get/responses/429.json | 5 + .../payloads/webhooks/list/responses/429.json | 5 + 68 files changed, 2055 insertions(+), 10 deletions(-) create mode 100644 docs/TooManyRequests.md create mode 100644 src/main/java/video/api/client/api/models/TooManyRequests.java create mode 100644 src/test/resources/payloads/analytics/getLiveStreamsPlays/responses/429.json create mode 100644 src/test/resources/payloads/analytics/getVideosPlays/responses/429.json create mode 100644 src/test/resources/payloads/captions/delete/responses/429.json create mode 100644 src/test/resources/payloads/captions/get/responses/429.json create mode 100644 src/test/resources/payloads/captions/list/responses/429.json create mode 100644 src/test/resources/payloads/captions/update/responses/429.json create mode 100644 src/test/resources/payloads/captions/upload/responses/429.json create mode 100644 src/test/resources/payloads/chapters/delete/responses/429.json create mode 100644 src/test/resources/payloads/chapters/get/responses/429.json create mode 100644 src/test/resources/payloads/chapters/list/responses/429.json create mode 100644 src/test/resources/payloads/chapters/upload/responses/429.json create mode 100644 src/test/resources/payloads/livestreams/create/responses/429.json create mode 100644 src/test/resources/payloads/livestreams/delete/responses/429.json create mode 100644 src/test/resources/payloads/livestreams/deleteThumbnail/responses/429.json create mode 100644 src/test/resources/payloads/livestreams/get/responses/429.json create mode 100644 src/test/resources/payloads/livestreams/list/responses/429.json create mode 100644 src/test/resources/payloads/livestreams/update/responses/429.json create mode 100644 src/test/resources/payloads/livestreams/uploadThumbnail/responses/429.json create mode 100644 src/test/resources/payloads/playerthemes/create/responses/429.json create mode 100644 src/test/resources/payloads/playerthemes/delete/responses/429.json create mode 100644 src/test/resources/payloads/playerthemes/deleteLogo/responses/429.json create mode 100644 src/test/resources/payloads/playerthemes/get/responses/429.json create mode 100644 src/test/resources/payloads/playerthemes/list/responses/429.json create mode 100644 src/test/resources/payloads/playerthemes/update/responses/429.json create mode 100644 src/test/resources/payloads/playerthemes/uploadLogo/responses/429.json create mode 100644 src/test/resources/payloads/uploadtokens/createToken/responses/429.json create mode 100644 src/test/resources/payloads/uploadtokens/deleteToken/responses/429.json create mode 100644 src/test/resources/payloads/uploadtokens/getToken/responses/429.json create mode 100644 src/test/resources/payloads/uploadtokens/list/responses/429.json create mode 100644 src/test/resources/payloads/videos/create/responses/429.json create mode 100644 src/test/resources/payloads/videos/delete/responses/429.json create mode 100644 src/test/resources/payloads/videos/get/responses/429.json create mode 100644 src/test/resources/payloads/videos/getStatus/responses/429.json create mode 100644 src/test/resources/payloads/videos/list/responses/429.json create mode 100644 src/test/resources/payloads/videos/pickThumbnail/responses/429.json create mode 100644 src/test/resources/payloads/videos/update/responses/429.json create mode 100644 src/test/resources/payloads/videos/upload/responses/429.json create mode 100644 src/test/resources/payloads/videos/uploadThumbnail/responses/429.json create mode 100644 src/test/resources/payloads/videos/uploadWithUploadToken/responses/429.json create mode 100644 src/test/resources/payloads/watermarks/delete/responses/429.json create mode 100644 src/test/resources/payloads/watermarks/list/responses/429.json create mode 100644 src/test/resources/payloads/watermarks/upload/responses/429.json create mode 100644 src/test/resources/payloads/webhooks/create/responses/429.json create mode 100644 src/test/resources/payloads/webhooks/delete/responses/429.json create mode 100644 src/test/resources/payloads/webhooks/get/responses/429.json create mode 100644 src/test/resources/payloads/webhooks/list/responses/429.json diff --git a/README.md b/README.md index f537f80..55bff46 100644 --- a/README.md +++ b/README.md @@ -380,6 +380,7 @@ Method | HTTP request | Description - [RestreamsResponseObject](https://github.com/apivideo/api.video-java-client/blob/main/docs/RestreamsResponseObject.md) - [TokenCreationPayload](https://github.com/apivideo/api.video-java-client/blob/main/docs/TokenCreationPayload.md) - [TokenListResponse](https://github.com/apivideo/api.video-java-client/blob/main/docs/TokenListResponse.md) + - [TooManyRequests](https://github.com/apivideo/api.video-java-client/blob/main/docs/TooManyRequests.md) - [UploadToken](https://github.com/apivideo/api.video-java-client/blob/main/docs/UploadToken.md) - [Video](https://github.com/apivideo/api.video-java-client/blob/main/docs/Video.md) - [VideoAssets](https://github.com/apivideo/api.video-java-client/blob/main/docs/VideoAssets.md) diff --git a/api/openapi.yaml b/api/openapi.yaml index 22b973c..2bf4288 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -383,6 +383,27 @@ paths: schema: $ref: '#/components/schemas/videos-list-response' description: Success + headers: + X-RateLimit-Limit: + description: The request limit per minute. + explode: false + schema: + type: integer + style: simple + X-RateLimit-Remaining: + description: The number of available requests left for the current time + window. + explode: false + schema: + type: integer + style: simple + X-RateLimit-RetryAfter: + description: The number of seconds left until the current rate limit + window resets. + explode: false + schema: + type: integer + style: simple "400": content: application/json: @@ -407,6 +428,18 @@ paths: schema: $ref: '#/components/schemas/bad-request' description: Bad Request + "429": + content: + application/json: + examples: + response: + value: + type: https://docs.api.video/reference/too-many-requests + title: Too many requests. + status: 429 + schema: + $ref: '#/components/schemas/too-many-requests' + description: Too Many Requests security: - apiKey: [] summary: List all video objects @@ -593,6 +626,18 @@ paths: schema: $ref: '#/components/schemas/bad-request' description: Bad Request + "429": + content: + application/json: + examples: + response: + value: + type: https://docs.api.video/reference/too-many-requests + title: Too many requests. + status: 429 + schema: + $ref: '#/components/schemas/too-many-requests' + description: Too Many Requests security: - apiKey: [] summary: Create a video object @@ -907,6 +952,18 @@ paths: schema: $ref: '#/components/schemas/not-found' description: Not Found + "429": + content: + application/json: + examples: + response: + value: + type: https://docs.api.video/reference/too-many-requests + title: Too many requests. + status: 429 + schema: + $ref: '#/components/schemas/too-many-requests' + description: Too Many Requests security: - apiKey: [] summary: Upload a video @@ -1202,6 +1259,18 @@ paths: schema: $ref: '#/components/schemas/bad-request' description: Bad Request + "429": + content: + application/json: + examples: + response: + value: + type: https://docs.api.video/reference/too-many-requests + title: Too many requests. + status: 429 + schema: + $ref: '#/components/schemas/too-many-requests' + description: Too Many Requests security: - apiKey: [] summary: List all watermarks @@ -1285,6 +1354,18 @@ paths: schema: $ref: '#/components/schemas/bad-request' description: Bad Request + "429": + content: + application/json: + examples: + response: + value: + type: https://docs.api.video/reference/too-many-requests + title: Too many requests. + status: 429 + schema: + $ref: '#/components/schemas/too-many-requests' + description: Too Many Requests security: - apiKey: [] summary: Upload a watermark @@ -1473,6 +1554,18 @@ paths: schema: $ref: '#/components/schemas/not-found' description: Not Found + "429": + content: + application/json: + examples: + response: + value: + type: https://docs.api.video/reference/too-many-requests + title: Too many requests. + status: 429 + schema: + $ref: '#/components/schemas/too-many-requests' + description: Too Many Requests security: - apiKey: [] summary: Delete a watermark @@ -1587,6 +1680,18 @@ paths: schema: $ref: '#/components/schemas/not-found' description: Not Found + "429": + content: + application/json: + examples: + response: + value: + type: https://docs.api.video/reference/too-many-requests + title: Too many requests. + status: 429 + schema: + $ref: '#/components/schemas/too-many-requests' + description: Too Many Requests security: - apiKey: [] summary: Set a thumbnail @@ -1791,6 +1896,18 @@ paths: schema: $ref: '#/components/schemas/not-found' description: Not Found + "429": + content: + application/json: + examples: + response: + value: + type: https://docs.api.video/reference/too-many-requests + title: Too many requests. + status: 429 + schema: + $ref: '#/components/schemas/too-many-requests' + description: Too Many Requests security: - apiKey: [] summary: Upload a thumbnail @@ -1934,6 +2051,18 @@ paths: schema: $ref: '#/components/schemas/not-found' description: Not Found + "429": + content: + application/json: + examples: + response: + value: + type: https://docs.api.video/reference/too-many-requests + title: Too many requests. + status: 429 + schema: + $ref: '#/components/schemas/too-many-requests' + description: Too Many Requests security: - apiKey: [] summary: Delete a video object @@ -2092,6 +2221,18 @@ paths: schema: $ref: '#/components/schemas/not-found' description: Not Found + "429": + content: + application/json: + examples: + response: + value: + type: https://docs.api.video/reference/too-many-requests + title: Too many requests. + status: 429 + schema: + $ref: '#/components/schemas/too-many-requests' + description: Too Many Requests security: - apiKey: [] summary: Retrieve a video object @@ -2291,6 +2432,18 @@ paths: schema: $ref: '#/components/schemas/not-found' description: Not Found + "429": + content: + application/json: + examples: + response: + value: + type: https://docs.api.video/reference/too-many-requests + title: Too many requests. + status: 429 + schema: + $ref: '#/components/schemas/too-many-requests' + description: Too Many Requests security: - apiKey: [] summary: Update a video object @@ -2527,6 +2680,18 @@ paths: schema: $ref: '#/components/schemas/not-found' description: Not Found + "429": + content: + application/json: + examples: + response: + value: + type: https://docs.api.video/reference/too-many-requests + title: Too many requests. + status: 429 + schema: + $ref: '#/components/schemas/too-many-requests' + description: Too Many Requests security: - apiKey: [] summary: Retrieve video status and details @@ -2738,6 +2903,18 @@ paths: schema: $ref: '#/components/schemas/token-list-response' description: Success + "429": + content: + application/json: + examples: + response: + value: + type: https://docs.api.video/reference/too-many-requests + title: Too many requests. + status: 429 + schema: + $ref: '#/components/schemas/too-many-requests' + description: Too Many Requests security: - apiKey: [] summary: List all active upload tokens @@ -2909,6 +3086,18 @@ paths: schema: $ref: '#/components/schemas/bad-request' description: Bad Request + "429": + content: + application/json: + examples: + response: + value: + type: https://docs.api.video/reference/too-many-requests + title: Too many requests. + status: 429 + schema: + $ref: '#/components/schemas/too-many-requests' + description: Too Many Requests security: - apiKey: [] summary: Generate an upload token @@ -3034,6 +3223,18 @@ paths: schema: $ref: '#/components/schemas/not-found' description: Not Found + "429": + content: + application/json: + examples: + response: + value: + type: https://docs.api.video/reference/too-many-requests + title: Too many requests. + status: 429 + schema: + $ref: '#/components/schemas/too-many-requests' + description: Too Many Requests security: - apiKey: [] summary: Delete an upload token @@ -3185,6 +3386,18 @@ paths: schema: $ref: '#/components/schemas/not-found' description: Not Found + "429": + content: + application/json: + examples: + response: + value: + type: https://docs.api.video/reference/too-many-requests + title: Too many requests. + status: 429 + schema: + $ref: '#/components/schemas/too-many-requests' + description: Too Many Requests security: - apiKey: [] summary: Retrieve upload token @@ -3383,6 +3596,18 @@ paths: schema: $ref: '#/components/schemas/bad-request' description: Bad Request + "429": + content: + application/json: + examples: + response: + value: + type: https://docs.api.video/reference/too-many-requests + title: Too many requests. + status: 429 + schema: + $ref: '#/components/schemas/too-many-requests' + description: Too Many Requests security: [] summary: Upload with an delegated upload token tags: @@ -3598,6 +3823,18 @@ paths: schema: $ref: '#/components/schemas/live-stream-list-response' description: Success + "429": + content: + application/json: + examples: + response: + value: + type: https://docs.api.video/reference/too-many-requests + title: Too many requests. + status: 429 + schema: + $ref: '#/components/schemas/too-many-requests' + description: Too Many Requests security: - apiKey: [] summary: List all live streams @@ -3844,6 +4081,18 @@ paths: schema: $ref: '#/components/schemas/bad-request' description: Bad Request + "429": + content: + application/json: + examples: + response: + value: + type: https://docs.api.video/reference/too-many-requests + title: Too many requests. + status: 429 + schema: + $ref: '#/components/schemas/too-many-requests' + description: Too Many Requests security: - apiKey: [] summary: Create live stream @@ -3988,6 +4237,18 @@ paths: responses: "204": description: No Content + "429": + content: + application/json: + examples: + response: + value: + type: https://docs.api.video/reference/too-many-requests + title: Too many requests. + status: 429 + schema: + $ref: '#/components/schemas/too-many-requests' + description: Too Many Requests security: - apiKey: [] summary: Delete a live stream @@ -4127,6 +4388,18 @@ paths: schema: $ref: '#/components/schemas/live-stream' description: Success + "429": + content: + application/json: + examples: + response: + value: + type: https://docs.api.video/reference/too-many-requests + title: Too many requests. + status: 429 + schema: + $ref: '#/components/schemas/too-many-requests' + description: Too Many Requests security: - apiKey: [] summary: Retrieve live stream @@ -4350,6 +4623,18 @@ paths: schema: $ref: '#/components/schemas/bad-request' description: Bad Request + "429": + content: + application/json: + examples: + response: + value: + type: https://docs.api.video/reference/too-many-requests + title: Too many requests. + status: 429 + schema: + $ref: '#/components/schemas/too-many-requests' + description: Too Many Requests security: - apiKey: [] summary: Update a live stream @@ -4561,6 +4846,18 @@ paths: schema: $ref: '#/components/schemas/not-found' description: Not Found + "429": + content: + application/json: + examples: + response: + value: + type: https://docs.api.video/reference/too-many-requests + title: Too many requests. + status: 429 + schema: + $ref: '#/components/schemas/too-many-requests' + description: Too Many Requests security: - apiKey: [] summary: Delete a thumbnail @@ -4708,6 +5005,18 @@ paths: schema: $ref: '#/components/schemas/not-found' description: Not Found + "429": + content: + application/json: + examples: + response: + value: + type: https://docs.api.video/reference/too-many-requests + title: Too many requests. + status: 429 + schema: + $ref: '#/components/schemas/too-many-requests' + description: Too Many Requests security: - apiKey: [] summary: Upload a thumbnail @@ -4908,6 +5217,18 @@ paths: schema: $ref: '#/components/schemas/not-found' description: Not Found + "429": + content: + application/json: + examples: + response: + value: + type: https://docs.api.video/reference/too-many-requests + title: Too many requests. + status: 429 + schema: + $ref: '#/components/schemas/too-many-requests' + description: Too Many Requests security: - apiKey: [] summary: Delete a caption @@ -5112,6 +5433,18 @@ paths: schema: $ref: '#/components/schemas/not-found' description: Not Found + "429": + content: + application/json: + examples: + response: + value: + type: https://docs.api.video/reference/too-many-requests + title: Too many requests. + status: 429 + schema: + $ref: '#/components/schemas/too-many-requests' + description: Too Many Requests security: - apiKey: [] summary: Retrieve a caption @@ -5339,6 +5672,18 @@ paths: schema: $ref: '#/components/schemas/not-found' description: Not Found + "429": + content: + application/json: + examples: + response: + value: + type: https://docs.api.video/reference/too-many-requests + title: Too many requests. + status: 429 + schema: + $ref: '#/components/schemas/too-many-requests' + description: Too Many Requests security: - apiKey: [] summary: Update a caption @@ -5549,6 +5894,18 @@ paths: schema: $ref: '#/components/schemas/not-found' description: Not Found + "429": + content: + application/json: + examples: + response: + value: + type: https://docs.api.video/reference/too-many-requests + title: Too many requests. + status: 429 + schema: + $ref: '#/components/schemas/too-many-requests' + description: Too Many Requests security: - apiKey: [] summary: Upload a caption @@ -5770,6 +6127,18 @@ paths: schema: $ref: '#/components/schemas/not-found' description: Not Found + "429": + content: + application/json: + examples: + response: + value: + type: https://docs.api.video/reference/too-many-requests + title: Too many requests. + status: 429 + schema: + $ref: '#/components/schemas/too-many-requests' + description: Too Many Requests security: - apiKey: [] summary: List video captions @@ -5941,6 +6310,18 @@ paths: schema: $ref: '#/components/schemas/not-found' description: Not Found + "429": + content: + application/json: + examples: + response: + value: + type: https://docs.api.video/reference/too-many-requests + title: Too many requests. + status: 429 + schema: + $ref: '#/components/schemas/too-many-requests' + description: Too Many Requests security: - apiKey: [] summary: Delete a chapter @@ -6105,6 +6486,18 @@ paths: schema: $ref: '#/components/schemas/not-found' description: Not Found + "429": + content: + application/json: + examples: + response: + value: + type: https://docs.api.video/reference/too-many-requests + title: Too many requests. + status: 429 + schema: + $ref: '#/components/schemas/too-many-requests' + description: Too Many Requests security: - apiKey: [] summary: Retrieve a chapter @@ -6289,6 +6682,18 @@ paths: schema: $ref: '#/components/schemas/not-found' description: Not Found + "429": + content: + application/json: + examples: + response: + value: + type: https://docs.api.video/reference/too-many-requests + title: Too many requests. + status: 429 + schema: + $ref: '#/components/schemas/too-many-requests' + description: Too Many Requests security: - apiKey: [] summary: Upload a chapter @@ -6501,6 +6906,18 @@ paths: schema: $ref: '#/components/schemas/not-found' description: Not Found + "429": + content: + application/json: + examples: + response: + value: + type: https://docs.api.video/reference/too-many-requests + title: Too many requests. + status: 429 + schema: + $ref: '#/components/schemas/too-many-requests' + description: Too Many Requests security: - apiKey: [] summary: List video chapters @@ -6771,6 +7188,18 @@ paths: schema: $ref: '#/components/schemas/bad-request' description: Bad Request + "429": + content: + application/json: + examples: + response: + value: + type: https://docs.api.video/reference/too-many-requests + title: Too many requests. + status: 429 + schema: + $ref: '#/components/schemas/too-many-requests' + description: Too Many Requests security: - apiKey: [] summary: List all player themes @@ -6953,6 +7382,18 @@ paths: schema: $ref: '#/components/schemas/player-theme' description: Created + "429": + content: + application/json: + examples: + response: + value: + type: https://docs.api.video/reference/too-many-requests + title: Too many requests. + status: 429 + schema: + $ref: '#/components/schemas/too-many-requests' + description: Too Many Requests security: - apiKey: [] summary: Create a player @@ -7165,6 +7606,18 @@ paths: schema: $ref: '#/components/schemas/not-found' description: Not Found + "429": + content: + application/json: + examples: + response: + value: + type: https://docs.api.video/reference/too-many-requests + title: Too many requests. + status: 429 + schema: + $ref: '#/components/schemas/too-many-requests' + description: Too Many Requests security: - apiKey: [] summary: Delete a player @@ -7332,6 +7785,18 @@ paths: schema: $ref: '#/components/schemas/not-found' description: Not Found + "429": + content: + application/json: + examples: + response: + value: + type: https://docs.api.video/reference/too-many-requests + title: Too many requests. + status: 429 + schema: + $ref: '#/components/schemas/too-many-requests' + description: Too Many Requests security: - apiKey: [] summary: Retrieve a player @@ -7485,6 +7950,18 @@ paths: schema: $ref: '#/components/schemas/not-found' description: Not Found + "429": + content: + application/json: + examples: + response: + value: + type: https://docs.api.video/reference/too-many-requests + title: Too many requests. + status: 429 + schema: + $ref: '#/components/schemas/too-many-requests' + description: Too Many Requests security: - apiKey: [] summary: Update a player @@ -7685,6 +8162,18 @@ paths: schema: $ref: '#/components/schemas/not-found' description: Not Found + "429": + content: + application/json: + examples: + response: + value: + type: https://docs.api.video/reference/too-many-requests + title: Too many requests. + status: 429 + schema: + $ref: '#/components/schemas/too-many-requests' + description: Too Many Requests security: - apiKey: [] summary: Delete logo @@ -7854,6 +8343,18 @@ paths: schema: $ref: '#/components/schemas/not-found' description: Not Found + "429": + content: + application/json: + examples: + response: + value: + type: https://docs.api.video/reference/too-many-requests + title: Too many requests. + status: 429 + schema: + $ref: '#/components/schemas/too-many-requests' + description: Too Many Requests security: - apiKey: [] summary: Upload a logo @@ -8250,6 +8751,18 @@ paths: schema: $ref: '#/components/schemas/not-found' description: Not Found + "429": + content: + application/json: + examples: + response: + value: + type: https://docs.api.video/reference/too-many-requests + title: Too many requests. + status: 429 + schema: + $ref: '#/components/schemas/too-many-requests' + description: Too Many Requests security: - apiKey: [] summary: Get play events for video @@ -8814,6 +9327,18 @@ paths: schema: $ref: '#/components/schemas/not-found' description: Not Found + "429": + content: + application/json: + examples: + response: + value: + type: https://docs.api.video/reference/too-many-requests + title: Too many requests. + status: 429 + schema: + $ref: '#/components/schemas/too-many-requests' + description: Too Many Requests security: - apiKey: [] summary: Get play events for live stream @@ -9194,6 +9719,18 @@ paths: schema: $ref: '#/components/schemas/webhooks-list-response' description: Success + "429": + content: + application/json: + examples: + response: + value: + type: https://docs.api.video/reference/too-many-requests + title: Too many requests. + status: 429 + schema: + $ref: '#/components/schemas/too-many-requests' + description: Too Many Requests security: - apiKey: [] summary: List all webhooks @@ -9379,6 +9916,18 @@ paths: schema: $ref: '#/components/schemas/bad-request' description: Bad Request + "429": + content: + application/json: + examples: + response: + value: + type: https://docs.api.video/reference/too-many-requests + title: Too many requests. + status: 429 + schema: + $ref: '#/components/schemas/too-many-requests' + description: Too Many Requests security: - apiKey: [] summary: Create Webhook @@ -9537,6 +10086,18 @@ paths: schema: $ref: '#/components/schemas/not-found' description: Not Found + "429": + content: + application/json: + examples: + response: + value: + type: https://docs.api.video/reference/too-many-requests + title: Too many requests. + status: 429 + schema: + $ref: '#/components/schemas/too-many-requests' + description: Too Many Requests security: - apiKey: [] summary: Delete a Webhook @@ -9677,6 +10238,18 @@ paths: schema: $ref: '#/components/schemas/webhook' description: Success + "429": + content: + application/json: + examples: + response: + value: + type: https://docs.api.video/reference/too-many-requests + title: Too many requests. + status: 429 + schema: + $ref: '#/components/schemas/too-many-requests' + description: Too Many Requests security: - apiKey: [] summary: Retrieve Webhook details @@ -9976,6 +10549,19 @@ components: type: integer title: NotFound type: object + too-many-requests: + properties: + type: + description: A link to the error documentation. + type: string + title: + description: A description of the error that occurred. + type: string + status: + description: The HTTP status code. + type: integer + title: TooManyRequests + type: object "403-error-schema": properties: type: diff --git a/docs/AnalyticsApi.md b/docs/AnalyticsApi.md index 3a3e49b..6329824 100644 --- a/docs/AnalyticsApi.md +++ b/docs/AnalyticsApi.md @@ -91,6 +91,7 @@ Name | Type | Description | Notes **400** | Bad request error | - | **403** | Forbidden - Disabled Analytics | - | **404** | Not Found | - | +**429** | Too Many Requests | - | # **getVideosPlays** @@ -175,4 +176,5 @@ Name | Type | Description | Notes **400** | Bad request error | - | **403** | Forbidden - Disabled Analytics | - | **404** | Not Found | - | +**429** | Too Many Requests | - | diff --git a/docs/CaptionsApi.md b/docs/CaptionsApi.md index 6d39d0f..caa8cab 100644 --- a/docs/CaptionsApi.md +++ b/docs/CaptionsApi.md @@ -82,6 +82,7 @@ Name | Type | Description | Notes **200** | Success | - | **400** | Bad request error | - | **404** | Not Found | - | +**429** | Too Many Requests | - | # **get** @@ -154,6 +155,7 @@ Name | Type | Description | Notes **200** | Success | - | **400** | Bad request error | - | **404** | Not Found | - | +**429** | Too Many Requests | - | # **update** @@ -228,6 +230,7 @@ Name | Type | Description | Notes **200** | Success | - | **400** | Bad request error | - | **404** | Not Found | - | +**429** | Too Many Requests | - | # **delete** @@ -297,6 +300,7 @@ null (empty response body) **204** | No Content | - | **400** | Bad request error | - | **404** | Not Found | - | +**429** | Too Many Requests | - | # **list** @@ -371,4 +375,5 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Success | - | **404** | Not Found | - | +**429** | Too Many Requests | - | diff --git a/docs/ChaptersApi.md b/docs/ChaptersApi.md index b58ef8e..c7ed217 100644 --- a/docs/ChaptersApi.md +++ b/docs/ChaptersApi.md @@ -81,6 +81,7 @@ Name | Type | Description | Notes **200** | Success | - | **400** | Bad Request | - | **404** | Not Found | - | +**429** | Too Many Requests | - | # **get** @@ -150,6 +151,7 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Success | - | **404** | Not Found | - | +**429** | Too Many Requests | - | # **delete** @@ -218,6 +220,7 @@ null (empty response body) |-------------|-------------|------------------| **204** | No Content | - | **404** | Not Found | - | +**429** | Too Many Requests | - | # **list** @@ -292,4 +295,5 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Success | - | **404** | Not Found | - | +**429** | Too Many Requests | - | diff --git a/docs/LiveStreamsApi.md b/docs/LiveStreamsApi.md index fdb412e..a412f4b 100644 --- a/docs/LiveStreamsApi.md +++ b/docs/LiveStreamsApi.md @@ -84,6 +84,7 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Success | - | **400** | Bad Request | - | +**429** | Too Many Requests | - | # **get** @@ -150,6 +151,7 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Success | - | +**429** | Too Many Requests | - | # **update** @@ -224,6 +226,7 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Success | - | **400** | Bad Request | - | +**429** | Too Many Requests | - | # **delete** @@ -283,12 +286,13 @@ null (empty response body) ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: Not defined + - **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **204** | No Content | - | +**429** | Too Many Requests | - | # **list** @@ -372,6 +376,7 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Success | - | +**429** | Too Many Requests | - | # **uploadThumbnail** @@ -442,6 +447,7 @@ Name | Type | Description | Notes **201** | Created | - | **400** | Bad Request | - | **404** | Not Found | - | +**429** | Too Many Requests | - | # **deleteThumbnail** @@ -509,4 +515,5 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Success | - | **404** | Not Found | - | +**429** | Too Many Requests | - | diff --git a/docs/PlayerThemesApi.md b/docs/PlayerThemesApi.md index 9006e6c..2cc267b 100644 --- a/docs/PlayerThemesApi.md +++ b/docs/PlayerThemesApi.md @@ -95,6 +95,7 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **201** | Created | - | +**429** | Too Many Requests | - | # **get** @@ -162,6 +163,7 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Success | - | **404** | Not Found | - | +**429** | Too Many Requests | - | # **update** @@ -248,6 +250,7 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Success | - | **404** | Not Found | - | +**429** | Too Many Requests | - | # **delete** @@ -314,6 +317,7 @@ null (empty response body) |-------------|-------------|------------------| **204** | No Content | - | **404** | Not Found | - | +**429** | Too Many Requests | - | # **list** @@ -392,6 +396,7 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Success | - | **400** | Bad Request | - | +**429** | Too Many Requests | - | # **uploadLogo** @@ -464,6 +469,7 @@ Name | Type | Description | Notes **201** | Created | - | **400** | Bad Request | - | **404** | Not Found | - | +**429** | Too Many Requests | - | # **deleteLogo** @@ -530,4 +536,5 @@ null (empty response body) |-------------|-------------|------------------| **204** | No Content | - | **404** | Not Found | - | +**429** | Too Many Requests | - | diff --git a/docs/TooManyRequests.md b/docs/TooManyRequests.md new file mode 100644 index 0000000..643afd9 --- /dev/null +++ b/docs/TooManyRequests.md @@ -0,0 +1,18 @@ + + +# TooManyRequests + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **String** | A link to the error documentation. | [optional] +**title** | **String** | A description of the error that occurred. | [optional] +**status** | **Integer** | The HTTP status code. | [optional] + + +## Implemented Interfaces + +* Serializable + + diff --git a/docs/UploadTokensApi.md b/docs/UploadTokensApi.md index 05bdc7f..0b0803f 100644 --- a/docs/UploadTokensApi.md +++ b/docs/UploadTokensApi.md @@ -78,6 +78,7 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Success | - | **400** | Bad Request | - | +**429** | Too Many Requests | - | # **getToken** @@ -145,6 +146,7 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Success | - | **404** | Not Found | - | +**429** | Too Many Requests | - | # **deleteToken** @@ -211,6 +213,7 @@ null (empty response body) |-------------|-------------|------------------| **204** | No Content | - | **404** | Not Found | - | +**429** | Too Many Requests | - | # **list** @@ -288,4 +291,5 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Success | - | +**429** | Too Many Requests | - | diff --git a/docs/VideosApi.md b/docs/VideosApi.md index 8aff67d..aa8a4da 100644 --- a/docs/VideosApi.md +++ b/docs/VideosApi.md @@ -95,6 +95,7 @@ Name | Type | Description | Notes **201** | Created | - | **202** | Accepted | - | **400** | Bad Request | - | +**429** | Too Many Requests | - | # **upload** @@ -210,6 +211,7 @@ Video result = session.uploadLastPart(new File("sample.mp4.partn")); **201** | Created | - | **400** | Bad Request | - | **404** | Not Found | - | +**429** | Too Many Requests | - | # **uploadWithUploadToken** @@ -306,6 +308,7 @@ No authorization required |-------------|-------------|------------------| **201** | Created | - | **400** | Bad Request | - | +**429** | Too Many Requests | - | # **get** @@ -373,6 +376,7 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Success | - | **404** | Not Found | - | +**429** | Too Many Requests | - | # **update** @@ -458,6 +462,7 @@ Name | Type | Description | Notes **200** | Success | - | **400** | Bad Request | - | **404** | Not Found | - | +**429** | Too Many Requests | - | # **delete** @@ -524,6 +529,7 @@ null (empty response body) |-------------|-------------|------------------| **204** | No Content | - | **404** | Not Found | - | +**429** | Too Many Requests | - | # **list** @@ -615,8 +621,9 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | Success | - | +**200** | Success | * X-RateLimit-Limit - The request limit per minute.
* X-RateLimit-Remaining - The number of available requests left for the current time window.
* X-RateLimit-RetryAfter - The number of seconds left until the current rate limit window resets.
| **400** | Bad Request | - | +**429** | Too Many Requests | - | # **uploadThumbnail** @@ -699,6 +706,7 @@ Name | Type | Description | Notes **200** | Success | - | **400** | Bad Request | - | **404** | Not Found | - | +**429** | Too Many Requests | - | # **pickThumbnail** @@ -786,6 +794,7 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Success | - | **404** | Not Found | - | +**429** | Too Many Requests | - | # **getStatus** @@ -853,4 +862,5 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Success | - | **404** | Not Found | - | +**429** | Too Many Requests | - | diff --git a/docs/WatermarksApi.md b/docs/WatermarksApi.md index 15f5d53..209aa57 100644 --- a/docs/WatermarksApi.md +++ b/docs/WatermarksApi.md @@ -75,6 +75,7 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Success | - | **400** | Bad Request | - | +**429** | Too Many Requests | - | # **delete** @@ -141,6 +142,7 @@ null (empty response body) |-------------|-------------|------------------| **204** | No Content | - | **404** | Not Found | - | +**429** | Too Many Requests | - | # **list** @@ -219,4 +221,5 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Success | - | **400** | Bad Request | - | +**429** | Too Many Requests | - | diff --git a/docs/WebhooksApi.md b/docs/WebhooksApi.md index c0dcec7..d03f78a 100644 --- a/docs/WebhooksApi.md +++ b/docs/WebhooksApi.md @@ -83,6 +83,7 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **201** | Created | - | **400** | Bad Request | - | +**429** | Too Many Requests | - | # **get** @@ -149,6 +150,7 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Success | - | +**429** | Too Many Requests | - | # **delete** @@ -215,6 +217,7 @@ null (empty response body) |-------------|-------------|------------------| **204** | No Content | - | **404** | Not Found | - | +**429** | Too Many Requests | - | # **list** @@ -291,4 +294,5 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Success | - | +**429** | Too Many Requests | - | diff --git a/src/main/java/video/api/client/api/clients/AnalyticsApi.java b/src/main/java/video/api/client/api/clients/AnalyticsApi.java index 520f9af..24c4f42 100644 --- a/src/main/java/video/api/client/api/clients/AnalyticsApi.java +++ b/src/main/java/video/api/client/api/clients/AnalyticsApi.java @@ -20,6 +20,7 @@ import java.time.LocalDate; import video.api.client.api.models.Model403ErrorSchema; import video.api.client.api.models.NotFound; +import video.api.client.api.models.TooManyRequests; import java.lang.reflect.Type; import java.util.ArrayList; @@ -298,6 +299,11 @@ public APIgetLiveStreamsPlaysRequest pageSize(Integer pageSize) { * Not Found * - * + * + * 429 + * Too Many Requests + * - + * * */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -339,6 +345,11 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * Not Found * - * + * + * 429 + * Too Many Requests + * - + * * */ public Page execute() throws ApiException { @@ -397,6 +408,11 @@ private APIgetLiveStreamsPlaysRequest copy() { * Not Found * - * + * + * 429 + * Too Many Requests + * - + * * */ public ApiResponse executeWithHttpInfo() throws ApiException { @@ -441,6 +457,11 @@ public ApiResponse executeWithHttpInfo() throws ApiExcep * Not Found * - * + * + * 429 + * Too Many Requests + * - + * * */ public okhttp3.Call executeAsync(final ApiCallback> _callback) throws ApiException { @@ -534,6 +555,11 @@ public void onDownloadProgress(long bytesRead, long contentLength, boolean done) * Not Found * - * + * + * 429 + * Too Many Requests + * - + * * */ public APIgetLiveStreamsPlaysRequest getLiveStreamsPlays(LocalDate from, String dimension) { @@ -739,6 +765,11 @@ public APIgetVideosPlaysRequest pageSize(Integer pageSize) { * Not Found * - * + * + * 429 + * Too Many Requests + * - + * * */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -780,6 +811,11 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * Not Found * - * + * + * 429 + * Too Many Requests + * - + * * */ public Page execute() throws ApiException { @@ -838,6 +874,11 @@ private APIgetVideosPlaysRequest copy() { * Not Found * - * + * + * 429 + * Too Many Requests + * - + * * */ public ApiResponse executeWithHttpInfo() throws ApiException { @@ -882,6 +923,11 @@ public ApiResponse executeWithHttpInfo() throws ApiExcep * Not Found * - * + * + * 429 + * Too Many Requests + * - + * * */ public okhttp3.Call executeAsync(final ApiCallback> _callback) throws ApiException { @@ -974,6 +1020,11 @@ public void onDownloadProgress(long bytesRead, long contentLength, boolean done) * Not Found * - * + * + * 429 + * Too Many Requests + * - + * * */ public APIgetVideosPlaysRequest getVideosPlays(LocalDate from, String dimension) { diff --git a/src/main/java/video/api/client/api/clients/CaptionsApi.java b/src/main/java/video/api/client/api/clients/CaptionsApi.java index b91411a..fa871d5 100644 --- a/src/main/java/video/api/client/api/clients/CaptionsApi.java +++ b/src/main/java/video/api/client/api/clients/CaptionsApi.java @@ -21,6 +21,7 @@ import video.api.client.api.models.CaptionsUpdatePayload; import java.io.File; import video.api.client.api.models.NotFound; +import video.api.client.api.models.TooManyRequests; import java.lang.reflect.Type; import java.util.ArrayList; @@ -143,6 +144,11 @@ public void setApiClient(ApiClient apiClient) { * Not Found * - * + * + * 429 + * Too Many Requests + * - + * * */ private okhttp3.Call uploadCall(String videoId, String language, File file, final ApiCallback _callback) @@ -247,6 +253,11 @@ private okhttp3.Call uploadValidateBeforeCall(String videoId, String language, F * Not Found * - * + * + * 429 + * Too Many Requests + * - + * * */ public Caption upload(String videoId, String language, File file) throws ApiException { @@ -300,6 +311,11 @@ public Caption upload(String videoId, String language, File file) throws ApiExce * Not Found * - * + * + * 429 + * Too Many Requests + * - + * * */ public ApiResponse uploadWithHttpInfo(String videoId, String language, File file) throws ApiException { @@ -355,6 +371,11 @@ public ApiResponse uploadWithHttpInfo(String videoId, String language, * Not Found * - * + * + * 429 + * Too Many Requests + * - + * * */ public okhttp3.Call uploadAsync(String videoId, String language, File file, final ApiCallback _callback) @@ -409,6 +430,11 @@ public okhttp3.Call uploadAsync(String videoId, String language, File file, fina * Not Found * - * + * + * 429 + * Too Many Requests + * - + * * */ private okhttp3.Call getCall(String videoId, String language, final ApiCallback _callback) throws ApiException { @@ -505,6 +531,11 @@ private okhttp3.Call getValidateBeforeCall(String videoId, String language, fina * Not Found * - * + * + * 429 + * Too Many Requests + * - + * * */ public Caption get(String videoId, String language) throws ApiException { @@ -558,6 +589,11 @@ public Caption get(String videoId, String language) throws ApiException { * Not Found * - * + * + * 429 + * Too Many Requests + * - + * * */ public ApiResponse getWithHttpInfo(String videoId, String language) throws ApiException { @@ -613,6 +649,11 @@ public ApiResponse getWithHttpInfo(String videoId, String language) thr * Not Found * - * + * + * 429 + * Too Many Requests + * - + * * */ public okhttp3.Call getAsync(String videoId, String language, final ApiCallback _callback) @@ -669,6 +710,11 @@ public okhttp3.Call getAsync(String videoId, String language, final ApiCallback< * Not Found * - * + * + * 429 + * Too Many Requests + * - + * * */ private okhttp3.Call updateCall(String videoId, String language, CaptionsUpdatePayload captionsUpdatePayload, @@ -768,6 +814,11 @@ private okhttp3.Call updateValidateBeforeCall(String videoId, String language, * Not Found * - * + * + * 429 + * Too Many Requests + * - + * * */ public Caption update(String videoId, String language, CaptionsUpdatePayload captionsUpdatePayload) @@ -821,6 +872,11 @@ public Caption update(String videoId, String language, CaptionsUpdatePayload cap * Not Found * - * + * + * 429 + * Too Many Requests + * - + * * */ public ApiResponse updateWithHttpInfo(String videoId, String language, @@ -876,6 +932,11 @@ public ApiResponse updateWithHttpInfo(String videoId, String language, * Not Found * - * + * + * 429 + * Too Many Requests + * - + * * */ public okhttp3.Call updateAsync(String videoId, String language, CaptionsUpdatePayload captionsUpdatePayload, @@ -930,6 +991,11 @@ public okhttp3.Call updateAsync(String videoId, String language, CaptionsUpdateP * Not Found * - * + * + * 429 + * Too Many Requests + * - + * * */ private okhttp3.Call deleteCall(String videoId, String language, final ApiCallback _callback) throws ApiException { @@ -1021,6 +1087,11 @@ private okhttp3.Call deleteValidateBeforeCall(String videoId, String language, f * Not Found * - * + * + * 429 + * Too Many Requests + * - + * * */ public void delete(String videoId, String language) throws ApiException { @@ -1070,6 +1141,11 @@ public void delete(String videoId, String language) throws ApiException { * Not Found * - * + * + * 429 + * Too Many Requests + * - + * * */ public ApiResponse deleteWithHttpInfo(String videoId, String language) throws ApiException { @@ -1120,6 +1196,11 @@ public ApiResponse deleteWithHttpInfo(String videoId, String language) thr * Not Found * - * + * + * 429 + * Too Many Requests + * - + * * */ public okhttp3.Call deleteAsync(String videoId, String language, final ApiCallback _callback) @@ -1260,6 +1341,11 @@ public APIlistRequest pageSize(Integer pageSize) { * Not Found * - * + * + * 429 + * Too Many Requests + * - + * * */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -1291,6 +1377,11 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * Not Found * - * + * + * 429 + * Too Many Requests + * - + * * */ public Page execute() throws ApiException { @@ -1336,6 +1427,11 @@ private APIlistRequest copy() { * Not Found * - * + * + * 429 + * Too Many Requests + * - + * * */ public ApiResponse executeWithHttpInfo() throws ApiException { @@ -1370,6 +1466,11 @@ public ApiResponse executeWithHttpInfo() throws ApiExcepti * Not Found * - * + * + * 429 + * Too Many Requests + * - + * * */ public okhttp3.Call executeAsync(final ApiCallback> _callback) throws ApiException { @@ -1433,6 +1534,11 @@ public void onDownloadProgress(long bytesRead, long contentLength, boolean done) * Not Found * - * + * + * 429 + * Too Many Requests + * - + * * */ public APIlistRequest list(String videoId) { diff --git a/src/main/java/video/api/client/api/clients/ChaptersApi.java b/src/main/java/video/api/client/api/clients/ChaptersApi.java index 1477fd1..b3dbcfa 100644 --- a/src/main/java/video/api/client/api/clients/ChaptersApi.java +++ b/src/main/java/video/api/client/api/clients/ChaptersApi.java @@ -20,6 +20,7 @@ import video.api.client.api.models.ChaptersListResponse; import java.io.File; import video.api.client.api.models.NotFound; +import video.api.client.api.models.TooManyRequests; import java.lang.reflect.Type; import java.util.ArrayList; @@ -137,6 +138,11 @@ public void setApiClient(ApiClient apiClient) { * Not Found * - * + * + * 429 + * Too Many Requests + * - + * * */ private okhttp3.Call uploadCall(String videoId, String language, File file, final ApiCallback _callback) @@ -236,6 +242,11 @@ private okhttp3.Call uploadValidateBeforeCall(String videoId, String language, F * Not Found * - * + * + * 429 + * Too Many Requests + * - + * * */ public Chapter upload(String videoId, String language, File file) throws ApiException { @@ -284,6 +295,11 @@ public Chapter upload(String videoId, String language, File file) throws ApiExce * Not Found * - * + * + * 429 + * Too Many Requests + * - + * * */ public ApiResponse uploadWithHttpInfo(String videoId, String language, File file) throws ApiException { @@ -335,6 +351,11 @@ public ApiResponse uploadWithHttpInfo(String videoId, String language, * Not Found * - * + * + * 429 + * Too Many Requests + * - + * * */ public okhttp3.Call uploadAsync(String videoId, String language, File file, final ApiCallback _callback) @@ -379,6 +400,11 @@ public okhttp3.Call uploadAsync(String videoId, String language, File file, fina * Not Found * - * + * + * 429 + * Too Many Requests + * - + * * */ private okhttp3.Call getCall(String videoId, String language, final ApiCallback _callback) throws ApiException { @@ -462,6 +488,11 @@ private okhttp3.Call getValidateBeforeCall(String videoId, String language, fina * Not Found * - * + * + * 429 + * Too Many Requests + * - + * * */ public Chapter get(String videoId, String language) throws ApiException { @@ -502,6 +533,11 @@ public Chapter get(String videoId, String language) throws ApiException { * Not Found * - * + * + * 429 + * Too Many Requests + * - + * * */ public ApiResponse getWithHttpInfo(String videoId, String language) throws ApiException { @@ -544,6 +580,11 @@ public ApiResponse getWithHttpInfo(String videoId, String language) thr * Not Found * - * + * + * 429 + * Too Many Requests + * - + * * */ public okhttp3.Call getAsync(String videoId, String language, final ApiCallback _callback) @@ -588,6 +629,11 @@ public okhttp3.Call getAsync(String videoId, String language, final ApiCallback< * Not Found * - * + * + * 429 + * Too Many Requests + * - + * * */ private okhttp3.Call deleteCall(String videoId, String language, final ApiCallback _callback) throws ApiException { @@ -670,6 +716,11 @@ private okhttp3.Call deleteValidateBeforeCall(String videoId, String language, f * Not Found * - * + * + * 429 + * Too Many Requests + * - + * * */ public void delete(String videoId, String language) throws ApiException { @@ -710,6 +761,11 @@ public void delete(String videoId, String language) throws ApiException { * Not Found * - * + * + * 429 + * Too Many Requests + * - + * * */ public ApiResponse deleteWithHttpInfo(String videoId, String language) throws ApiException { @@ -751,6 +807,11 @@ public ApiResponse deleteWithHttpInfo(String videoId, String language) thr * Not Found * - * + * + * 429 + * Too Many Requests + * - + * * */ public okhttp3.Call deleteAsync(String videoId, String language, final ApiCallback _callback) @@ -891,6 +952,11 @@ public APIlistRequest pageSize(Integer pageSize) { * Not Found * - * + * + * 429 + * Too Many Requests + * - + * * */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -922,6 +988,11 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * Not Found * - * + * + * 429 + * Too Many Requests + * - + * * */ public Page execute() throws ApiException { @@ -967,6 +1038,11 @@ private APIlistRequest copy() { * Not Found * - * + * + * 429 + * Too Many Requests + * - + * * */ public ApiResponse executeWithHttpInfo() throws ApiException { @@ -1001,6 +1077,11 @@ public ApiResponse executeWithHttpInfo() throws ApiExcepti * Not Found * - * + * + * 429 + * Too Many Requests + * - + * * */ public okhttp3.Call executeAsync(final ApiCallback> _callback) throws ApiException { @@ -1064,6 +1145,11 @@ public void onDownloadProgress(long bytesRead, long contentLength, boolean done) * Not Found * - * + * + * 429 + * Too Many Requests + * - + * * */ public APIlistRequest list(String videoId) { diff --git a/src/main/java/video/api/client/api/clients/LiveStreamsApi.java b/src/main/java/video/api/client/api/clients/LiveStreamsApi.java index 845fd8b..8ee9ba2 100644 --- a/src/main/java/video/api/client/api/clients/LiveStreamsApi.java +++ b/src/main/java/video/api/client/api/clients/LiveStreamsApi.java @@ -22,6 +22,7 @@ import video.api.client.api.models.LiveStreamListResponse; import video.api.client.api.models.LiveStreamUpdatePayload; import video.api.client.api.models.NotFound; +import video.api.client.api.models.TooManyRequests; import java.lang.reflect.Type; import java.util.ArrayList; @@ -129,6 +130,11 @@ public void setApiClient(ApiClient apiClient) { * Bad Request * - * + * + * 429 + * Too Many Requests + * - + * * */ private okhttp3.Call createCall(LiveStreamCreationPayload liveStreamCreationPayload, final ApiCallback _callback) @@ -206,6 +212,11 @@ private okhttp3.Call createValidateBeforeCall(LiveStreamCreationPayload liveStre * Bad Request * - * + * + * 429 + * Too Many Requests + * - + * * */ public LiveStream create(LiveStreamCreationPayload liveStreamCreationPayload) throws ApiException { @@ -243,6 +254,11 @@ public LiveStream create(LiveStreamCreationPayload liveStreamCreationPayload) th * Bad Request * - * + * + * 429 + * Too Many Requests + * - + * * */ public ApiResponse createWithHttpInfo(LiveStreamCreationPayload liveStreamCreationPayload) @@ -283,6 +299,11 @@ public ApiResponse createWithHttpInfo(LiveStreamCreationPayload live * Bad Request * - * + * + * 429 + * Too Many Requests + * - + * * */ public okhttp3.Call createAsync(LiveStreamCreationPayload liveStreamCreationPayload, @@ -319,6 +340,11 @@ public okhttp3.Call createAsync(LiveStreamCreationPayload liveStreamCreationPayl * Success * - * + * + * 429 + * Too Many Requests + * - + * * */ private okhttp3.Call getCall(String liveStreamId, final ApiCallback _callback) throws ApiException { @@ -387,6 +413,11 @@ private okhttp3.Call getValidateBeforeCall(String liveStreamId, final ApiCallbac * Success * - * + * + * 429 + * Too Many Requests + * - + * * */ public LiveStream get(String liveStreamId) throws ApiException { @@ -419,6 +450,11 @@ public LiveStream get(String liveStreamId) throws ApiException { * Success * - * + * + * 429 + * Too Many Requests + * - + * * */ public ApiResponse getWithHttpInfo(String liveStreamId) throws ApiException { @@ -453,6 +489,11 @@ public ApiResponse getWithHttpInfo(String liveStreamId) throws ApiEx * Success * - * + * + * 429 + * Too Many Requests + * - + * * */ public okhttp3.Call getAsync(String liveStreamId, final ApiCallback _callback) throws ApiException { @@ -496,6 +537,11 @@ public okhttp3.Call getAsync(String liveStreamId, final ApiCallback * Bad Request * - * + * + * 429 + * Too Many Requests + * - + * * */ private okhttp3.Call updateCall(String liveStreamId, LiveStreamUpdatePayload liveStreamUpdatePayload, @@ -577,6 +623,11 @@ private okhttp3.Call updateValidateBeforeCall(String liveStreamId, LiveStreamUpd * Bad Request * - * + * + * 429 + * Too Many Requests + * - + * * */ public LiveStream update(String liveStreamId, LiveStreamUpdatePayload liveStreamUpdatePayload) throws ApiException { @@ -617,6 +668,11 @@ public LiveStream update(String liveStreamId, LiveStreamUpdatePayload liveStream * Bad Request * - * + * + * 429 + * Too Many Requests + * - + * * */ public ApiResponse updateWithHttpInfo(String liveStreamId, @@ -660,6 +716,11 @@ public ApiResponse updateWithHttpInfo(String liveStreamId, * Bad Request * - * + * + * 429 + * Too Many Requests + * - + * * */ public okhttp3.Call updateAsync(String liveStreamId, LiveStreamUpdatePayload liveStreamUpdatePayload, @@ -696,6 +757,11 @@ public okhttp3.Call updateAsync(String liveStreamId, LiveStreamUpdatePayload liv * No Content * - * + * + * 429 + * Too Many Requests + * - + * * */ private okhttp3.Call deleteCall(String liveStreamId, final ApiCallback _callback) throws ApiException { @@ -711,9 +777,7 @@ private okhttp3.Call deleteCall(String liveStreamId, final ApiCallback _callback Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { - - }; + final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); @@ -766,6 +830,11 @@ private okhttp3.Call deleteValidateBeforeCall(String liveStreamId, final ApiCall * No Content * - * + * + * 429 + * Too Many Requests + * - + * * */ public void delete(String liveStreamId) throws ApiException { @@ -798,6 +867,11 @@ public void delete(String liveStreamId) throws ApiException { * No Content * - * + * + * 429 + * Too Many Requests + * - + * * */ public ApiResponse deleteWithHttpInfo(String liveStreamId) throws ApiException { @@ -831,6 +905,11 @@ public ApiResponse deleteWithHttpInfo(String liveStreamId) throws ApiExcep * No Content * - * + * + * 429 + * Too Many Requests + * - + * * */ public okhttp3.Call deleteAsync(String liveStreamId, final ApiCallback _callback) throws ApiException { @@ -1037,6 +1116,11 @@ public APIlistRequest pageSize(Integer pageSize) { * Success * - * + * + * 429 + * Too Many Requests + * - + * * */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -1063,6 +1147,11 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * Success * - * + * + * 429 + * Too Many Requests + * - + * * */ public Page execute() throws ApiException { @@ -1108,6 +1197,11 @@ private APIlistRequest copy() { * Success * - * + * + * 429 + * Too Many Requests + * - + * * */ public ApiResponse executeWithHttpInfo() throws ApiException { @@ -1137,6 +1231,11 @@ public ApiResponse executeWithHttpInfo() throws ApiExcep * Success * - * + * + * 429 + * Too Many Requests + * - + * * */ public okhttp3.Call executeAsync(final ApiCallback> _callback) throws ApiException { @@ -1192,6 +1291,11 @@ public void onDownloadProgress(long bytesRead, long contentLength, boolean done) * Success * - * + * + * 429 + * Too Many Requests + * - + * * */ public APIlistRequest list() { @@ -1236,6 +1340,11 @@ public APIlistRequest list() { * Not Found * - * + * + * 429 + * Too Many Requests + * - + * * */ private okhttp3.Call uploadThumbnailCall(String liveStreamId, File file, final ApiCallback _callback) @@ -1326,6 +1435,11 @@ private okhttp3.Call uploadThumbnailValidateBeforeCall(String liveStreamId, File * Not Found * - * + * + * 429 + * Too Many Requests + * - + * * */ public LiveStream uploadThumbnail(String liveStreamId, File file) throws ApiException { @@ -1371,6 +1485,11 @@ public LiveStream uploadThumbnail(String liveStreamId, File file) throws ApiExce * Not Found * - * + * + * 429 + * Too Many Requests + * - + * * */ public ApiResponse uploadThumbnailWithHttpInfo(String liveStreamId, File file) throws ApiException { @@ -1418,6 +1537,11 @@ public ApiResponse uploadThumbnailWithHttpInfo(String liveStreamId, * Not Found * - * + * + * 429 + * Too Many Requests + * - + * * */ public okhttp3.Call uploadThumbnailAsync(String liveStreamId, File file, final ApiCallback _callback) @@ -1459,6 +1583,11 @@ public okhttp3.Call uploadThumbnailAsync(String liveStreamId, File file, final A * Not Found * - * + * + * 429 + * Too Many Requests + * - + * * */ private okhttp3.Call deleteThumbnailCall(String liveStreamId, final ApiCallback _callback) throws ApiException { @@ -1533,6 +1662,11 @@ private okhttp3.Call deleteThumbnailValidateBeforeCall(String liveStreamId, fina * Not Found * - * + * + * 429 + * Too Many Requests + * - + * * */ public LiveStream deleteThumbnail(String liveStreamId) throws ApiException { @@ -1570,6 +1704,11 @@ public LiveStream deleteThumbnail(String liveStreamId) throws ApiException { * Not Found * - * + * + * 429 + * Too Many Requests + * - + * * */ public ApiResponse deleteThumbnailWithHttpInfo(String liveStreamId) throws ApiException { @@ -1609,6 +1748,11 @@ public ApiResponse deleteThumbnailWithHttpInfo(String liveStreamId) * Not Found * - * + * + * 429 + * Too Many Requests + * - + * * */ public okhttp3.Call deleteThumbnailAsync(String liveStreamId, final ApiCallback _callback) diff --git a/src/main/java/video/api/client/api/clients/PlayerThemesApi.java b/src/main/java/video/api/client/api/clients/PlayerThemesApi.java index b8c6a68..72e4aff 100644 --- a/src/main/java/video/api/client/api/clients/PlayerThemesApi.java +++ b/src/main/java/video/api/client/api/clients/PlayerThemesApi.java @@ -22,6 +22,7 @@ import video.api.client.api.models.PlayerThemeCreationPayload; import video.api.client.api.models.PlayerThemeUpdatePayload; import video.api.client.api.models.PlayerThemesListResponse; +import video.api.client.api.models.TooManyRequests; import java.lang.reflect.Type; import java.util.ArrayList; @@ -124,6 +125,11 @@ public void setApiClient(ApiClient apiClient) { * Created * - * + * + * 429 + * Too Many Requests + * - + * * */ private okhttp3.Call createCall(PlayerThemeCreationPayload playerThemeCreationPayload, final ApiCallback _callback) @@ -191,6 +197,11 @@ private okhttp3.Call createValidateBeforeCall(PlayerThemeCreationPayload playerT * Created * - * + * + * 429 + * Too Many Requests + * - + * * */ public PlayerTheme create(PlayerThemeCreationPayload playerThemeCreationPayload) throws ApiException { @@ -223,6 +234,11 @@ public PlayerTheme create(PlayerThemeCreationPayload playerThemeCreationPayload) * Created * - * + * + * 429 + * Too Many Requests + * - + * * */ public ApiResponse createWithHttpInfo(PlayerThemeCreationPayload playerThemeCreationPayload) @@ -258,6 +274,11 @@ public ApiResponse createWithHttpInfo(PlayerThemeCreationPayload pl * Created * - * + * + * 429 + * Too Many Requests + * - + * * */ public okhttp3.Call createAsync(PlayerThemeCreationPayload playerThemeCreationPayload, @@ -299,6 +320,11 @@ public okhttp3.Call createAsync(PlayerThemeCreationPayload playerThemeCreationPa * Not Found * - * + * + * 429 + * Too Many Requests + * - + * * */ private okhttp3.Call getCall(String playerId, final ApiCallback _callback) throws ApiException { @@ -372,6 +398,11 @@ private okhttp3.Call getValidateBeforeCall(String playerId, final ApiCallback _c * Not Found * - * + * + * 429 + * Too Many Requests + * - + * * */ public PlayerTheme get(String playerId) throws ApiException { @@ -409,6 +440,11 @@ public PlayerTheme get(String playerId) throws ApiException { * Not Found * - * + * + * 429 + * Too Many Requests + * - + * * */ public ApiResponse getWithHttpInfo(String playerId) throws ApiException { @@ -448,6 +484,11 @@ public ApiResponse getWithHttpInfo(String playerId) throws ApiExcep * Not Found * - * + * + * 429 + * Too Many Requests + * - + * * */ public okhttp3.Call getAsync(String playerId, final ApiCallback _callback) throws ApiException { @@ -490,6 +531,11 @@ public okhttp3.Call getAsync(String playerId, final ApiCallback _ca * Not Found * - * + * + * 429 + * Too Many Requests + * - + * * */ private okhttp3.Call updateCall(String playerId, PlayerThemeUpdatePayload playerThemeUpdatePayload, @@ -571,6 +617,11 @@ private okhttp3.Call updateValidateBeforeCall(String playerId, PlayerThemeUpdate * Not Found * - * + * + * 429 + * Too Many Requests + * - + * * */ public PlayerTheme update(String playerId, PlayerThemeUpdatePayload playerThemeUpdatePayload) throws ApiException { @@ -611,6 +662,11 @@ public PlayerTheme update(String playerId, PlayerThemeUpdatePayload playerThemeU * Not Found * - * + * + * 429 + * Too Many Requests + * - + * * */ public ApiResponse updateWithHttpInfo(String playerId, @@ -654,6 +710,11 @@ public ApiResponse updateWithHttpInfo(String playerId, * Not Found * - * + * + * 429 + * Too Many Requests + * - + * * */ public okhttp3.Call updateAsync(String playerId, PlayerThemeUpdatePayload playerThemeUpdatePayload, @@ -695,6 +756,11 @@ public okhttp3.Call updateAsync(String playerId, PlayerThemeUpdatePayload player * Not Found * - * + * + * 429 + * Too Many Requests + * - + * * */ private okhttp3.Call deleteCall(String playerId, final ApiCallback _callback) throws ApiException { @@ -766,6 +832,11 @@ private okhttp3.Call deleteValidateBeforeCall(String playerId, final ApiCallback * Not Found * - * + * + * 429 + * Too Many Requests + * - + * * */ public void delete(String playerId) throws ApiException { @@ -802,6 +873,11 @@ public void delete(String playerId) throws ApiException { * Not Found * - * + * + * 429 + * Too Many Requests + * - + * * */ public ApiResponse deleteWithHttpInfo(String playerId) throws ApiException { @@ -840,6 +916,11 @@ public ApiResponse deleteWithHttpInfo(String playerId) throws ApiException * Not Found * - * + * + * 429 + * Too Many Requests + * - + * * */ public okhttp3.Call deleteAsync(String playerId, final ApiCallback _callback) throws ApiException { @@ -1009,6 +1090,11 @@ public APIlistRequest pageSize(Integer pageSize) { * Bad Request * - * + * + * 429 + * Too Many Requests + * - + * * */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -1040,6 +1126,11 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * Bad Request * - * + * + * 429 + * Too Many Requests + * - + * * */ public Page execute() throws ApiException { @@ -1088,6 +1179,11 @@ private APIlistRequest copy() { * Bad Request * - * + * + * 429 + * Too Many Requests + * - + * * */ public ApiResponse executeWithHttpInfo() throws ApiException { @@ -1122,6 +1218,11 @@ public ApiResponse executeWithHttpInfo() throws ApiExc * Bad Request * - * + * + * 429 + * Too Many Requests + * - + * * */ public okhttp3.Call executeAsync(final ApiCallback> _callback) throws ApiException { @@ -1182,6 +1283,11 @@ public void onDownloadProgress(long bytesRead, long contentLength, boolean done) * Bad Request * - * + * + * 429 + * Too Many Requests + * - + * * */ public APIlistRequest list() { @@ -1228,6 +1334,11 @@ public APIlistRequest list() { * Not Found * - * + * + * 429 + * Too Many Requests + * - + * * */ private okhttp3.Call uploadLogoCall(String playerId, File file, String link, final ApiCallback _callback) @@ -1327,6 +1438,11 @@ private okhttp3.Call uploadLogoValidateBeforeCall(String playerId, File file, St * Not Found * - * + * + * 429 + * Too Many Requests + * - + * * */ public PlayerTheme uploadLogo(String playerId, File file, String link) throws ApiException { @@ -1377,6 +1493,11 @@ public PlayerTheme uploadLogo(String playerId, File file, String link) throws Ap * Not Found * - * + * + * 429 + * Too Many Requests + * - + * * */ public ApiResponse uploadLogoWithHttpInfo(String playerId, File file, String link) @@ -1430,6 +1551,11 @@ public ApiResponse uploadLogoWithHttpInfo(String playerId, File fil * Not Found * - * + * + * 429 + * Too Many Requests + * - + * * */ public okhttp3.Call uploadLogoAsync(String playerId, File file, String link, @@ -1471,6 +1597,11 @@ public okhttp3.Call uploadLogoAsync(String playerId, File file, String link, * Not Found * - * + * + * 429 + * Too Many Requests + * - + * * */ private okhttp3.Call deleteLogoCall(String playerId, final ApiCallback _callback) throws ApiException { @@ -1543,6 +1674,11 @@ private okhttp3.Call deleteLogoValidateBeforeCall(String playerId, final ApiCall * Not Found * - * + * + * 429 + * Too Many Requests + * - + * * */ public void deleteLogo(String playerId) throws ApiException { @@ -1579,6 +1715,11 @@ public void deleteLogo(String playerId) throws ApiException { * Not Found * - * + * + * 429 + * Too Many Requests + * - + * * */ public ApiResponse deleteLogoWithHttpInfo(String playerId) throws ApiException { @@ -1616,6 +1757,11 @@ public ApiResponse deleteLogoWithHttpInfo(String playerId) throws ApiExcep * Not Found * - * + * + * 429 + * Too Many Requests + * - + * * */ public okhttp3.Call deleteLogoAsync(String playerId, final ApiCallback _callback) throws ApiException { diff --git a/src/main/java/video/api/client/api/clients/UploadTokensApi.java b/src/main/java/video/api/client/api/clients/UploadTokensApi.java index 22ec8f3..a1ebd22 100644 --- a/src/main/java/video/api/client/api/clients/UploadTokensApi.java +++ b/src/main/java/video/api/client/api/clients/UploadTokensApi.java @@ -19,6 +19,7 @@ import video.api.client.api.models.NotFound; import video.api.client.api.models.TokenCreationPayload; import video.api.client.api.models.TokenListResponse; +import video.api.client.api.models.TooManyRequests; import video.api.client.api.models.UploadToken; import java.lang.reflect.Type; @@ -127,6 +128,11 @@ public void setApiClient(ApiClient apiClient) { * Bad Request * - * + * + * 429 + * Too Many Requests + * - + * * */ private okhttp3.Call createTokenCall(TokenCreationPayload tokenCreationPayload, final ApiCallback _callback) @@ -200,6 +206,11 @@ private okhttp3.Call createTokenValidateBeforeCall(TokenCreationPayload tokenCre * Bad Request * - * + * + * 429 + * Too Many Requests + * - + * * */ public UploadToken createToken(TokenCreationPayload tokenCreationPayload) throws ApiException { @@ -238,6 +249,11 @@ public UploadToken createToken(TokenCreationPayload tokenCreationPayload) throws * Bad Request * - * + * + * 429 + * Too Many Requests + * - + * * */ public ApiResponse createTokenWithHttpInfo(TokenCreationPayload tokenCreationPayload) @@ -279,6 +295,11 @@ public ApiResponse createTokenWithHttpInfo(TokenCreationPayload tok * Bad Request * - * + * + * 429 + * Too Many Requests + * - + * * */ public okhttp3.Call createTokenAsync(TokenCreationPayload tokenCreationPayload, @@ -320,6 +341,11 @@ public okhttp3.Call createTokenAsync(TokenCreationPayload tokenCreationPayload, * Not Found * - * + * + * 429 + * Too Many Requests + * - + * * */ private okhttp3.Call getTokenCall(String uploadToken, final ApiCallback _callback) throws ApiException { @@ -394,6 +420,11 @@ private okhttp3.Call getTokenValidateBeforeCall(String uploadToken, final ApiCal * Not Found * - * + * + * 429 + * Too Many Requests + * - + * * */ public UploadToken getToken(String uploadToken) throws ApiException { @@ -431,6 +462,11 @@ public UploadToken getToken(String uploadToken) throws ApiException { * Not Found * - * + * + * 429 + * Too Many Requests + * - + * * */ public ApiResponse getTokenWithHttpInfo(String uploadToken) throws ApiException { @@ -470,6 +506,11 @@ public ApiResponse getTokenWithHttpInfo(String uploadToken) throws * Not Found * - * + * + * 429 + * Too Many Requests + * - + * * */ public okhttp3.Call getTokenAsync(String uploadToken, final ApiCallback _callback) @@ -512,6 +553,11 @@ public okhttp3.Call getTokenAsync(String uploadToken, final ApiCallbackNot Found * - * + * + * 429 + * Too Many Requests + * - + * * */ private okhttp3.Call deleteTokenCall(String uploadToken, final ApiCallback _callback) throws ApiException { @@ -585,6 +631,11 @@ private okhttp3.Call deleteTokenValidateBeforeCall(String uploadToken, final Api * Not Found * - * + * + * 429 + * Too Many Requests + * - + * * */ public void deleteToken(String uploadToken) throws ApiException { @@ -622,6 +673,11 @@ public void deleteToken(String uploadToken) throws ApiException { * Not Found * - * + * + * 429 + * Too Many Requests + * - + * * */ public ApiResponse deleteTokenWithHttpInfo(String uploadToken) throws ApiException { @@ -661,6 +717,11 @@ public ApiResponse deleteTokenWithHttpInfo(String uploadToken) throws ApiE * Not Found * - * + * + * 429 + * Too Many Requests + * - + * * */ public okhttp3.Call deleteTokenAsync(String uploadToken, final ApiCallback _callback) throws ApiException { @@ -825,6 +886,11 @@ public APIlistRequest pageSize(Integer pageSize) { * Success * - * + * + * 429 + * Too Many Requests + * - + * * */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { @@ -851,6 +917,11 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * Success * - * + * + * 429 + * Too Many Requests + * - + * * */ public Page execute() throws ApiException { @@ -893,6 +964,11 @@ private APIlistRequest copy() { * Success * - * + * + * 429 + * Too Many Requests + * - + * * */ public ApiResponse executeWithHttpInfo() throws ApiException { @@ -922,6 +998,11 @@ public ApiResponse executeWithHttpInfo() throws ApiException * Success * - * + * + * 429 + * Too Many Requests + * - + * * */ public okhttp3.Call executeAsync(final ApiCallback> _callback) throws ApiException { @@ -977,6 +1058,11 @@ public void onDownloadProgress(long bytesRead, long contentLength, boolean done) * Success * - * + * + * 429 + * Too Many Requests + * - + * * */ public APIlistRequest list() { diff --git a/src/main/java/video/api/client/api/clients/VideosApi.java b/src/main/java/video/api/client/api/clients/VideosApi.java index 6e1321d..05ee911 100644 --- a/src/main/java/video/api/client/api/clients/VideosApi.java +++ b/src/main/java/video/api/client/api/clients/VideosApi.java @@ -18,6 +18,7 @@ import video.api.client.api.models.BadRequest; import java.io.File; import video.api.client.api.models.NotFound; +import video.api.client.api.models.TooManyRequests; import video.api.client.api.models.Video; import video.api.client.api.models.VideoCreationPayload; import video.api.client.api.models.VideoStatus; @@ -136,6 +137,11 @@ public void setApiClient(ApiClient apiClient) { * Bad Request * - * + * + * 429 + * Too Many Requests + * - + * * */ private okhttp3.Call createCall(VideoCreationPayload videoCreationPayload, final ApiCallback _callback) @@ -218,6 +224,11 @@ private okhttp3.Call createValidateBeforeCall(VideoCreationPayload videoCreation * Bad Request * - * + * + * 429 + * Too Many Requests + * - + * * */ public Video create(VideoCreationPayload videoCreationPayload) throws ApiException { @@ -261,6 +272,11 @@ public Video create(VideoCreationPayload videoCreationPayload) throws ApiExcepti * Bad Request * - * + * + * 429 + * Too Many Requests + * - + * * */ public ApiResponse