From 87a868184cb6d9aaf41291d4964456c57653bbb6 Mon Sep 17 00:00:00 2001 From: szekelyzol Date: Wed, 29 Nov 2023 16:14:01 +0000 Subject: [PATCH] Update language param description --- api/openapi.yaml | 8 +- docs/CaptionsApi.md | 16 ++-- .../api/client/api/clients/CaptionsApi.java | 96 +++++++------------ 3 files changed, 44 insertions(+), 76 deletions(-) diff --git a/api/openapi.yaml b/api/openapi.yaml index bec843e..71ecab9 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -4864,7 +4864,7 @@ paths: - This parameter **only accepts dashes for separators**, for example `fr-CA`. If you use a different separator in your request, the API returns an error. - When the value in your request does not match any covered language, the API returns an error. - - This endpoint uses [Symfony](https://symfony.com) to reference the list of supported language tags. You can find the list of supported tags [here](https://github.com/symfony/symfony/blob/6.3/src/Symfony/Component/Intl/Resources/data/locales/meta.php). + - You can find the list of supported tags [here](https://docs.api.video/vod/add-captions#supported-caption-language-tags). example: en explode: false in: path @@ -5056,7 +5056,7 @@ paths: - This parameter **only accepts dashes for separators**, for example `fr-CA`. If you use a different separator in your request, the API returns an error. - When the value in your request does not match any covered language, the API returns an error. - - This endpoint uses [Symfony](https://symfony.com) to reference the list of supported language tags. You can find the list of supported tags [here](https://github.com/symfony/symfony/blob/6.3/src/Symfony/Component/Intl/Resources/data/locales/meta.php). + - You can find the list of supported tags [here](https://docs.api.video/vod/add-captions#supported-caption-language-tags). example: en explode: false in: path @@ -5270,7 +5270,7 @@ paths: - This parameter **only accepts dashes for separators**, for example `fr-CA`. If you use a different separator in your request, the API returns an error. - When the value in your request does not match any covered language, the API returns an error. - - This endpoint uses [Symfony](https://symfony.com) to reference the list of supported language tags. You can find the list of supported tags [here](https://github.com/symfony/symfony/blob/6.3/src/Symfony/Component/Intl/Resources/data/locales/meta.php). + - You can find the list of supported tags [here](https://docs.api.video/vod/add-captions#supported-caption-language-tags). example: en explode: false in: path @@ -5487,7 +5487,7 @@ paths: - This parameter **only accepts dashes for separators**, for example `fr-CA`. If you use a different separator in your request, the API returns an error. - When the value in your request does not match any covered language, the API returns an error. - - This endpoint uses [Symfony](https://symfony.com) to reference the list of supported language tags. You can find the list of supported tags [here](https://github.com/symfony/symfony/blob/6.3/src/Symfony/Component/Intl/Resources/data/locales/meta.php). + - You can find the list of supported tags [here](https://docs.api.video/vod/add-captions#supported-caption-language-tags). example: en explode: false in: path diff --git a/docs/CaptionsApi.md b/docs/CaptionsApi.md index 6a4f5f5..6d39d0f 100644 --- a/docs/CaptionsApi.md +++ b/docs/CaptionsApi.md @@ -37,7 +37,7 @@ public class Example { CaptionsApi apiInstance = client.captions(); String videoId = "vi4k0jvEUuaTdRAEjQ4Prklg"; // The unique identifier for the video you want to add a caption to. - String language = "en"; // A valid language identifier using IETF language tags. You can use primary subtags like `en` (English), extended subtags like `fr-CA` (French, Canada), or region subtags like `zh-Hans-CN` (Simplified Chinese used in the PRC). - This parameter **only accepts dashes for separators**, for example `fr-CA`. If you use a different separator in your request, the API returns an error. - When the value in your request does not match any covered language, the API returns an error. - This endpoint uses [Symfony](https://symfony.com) to reference the list of supported language tags. You can find the list of supported tags [here](https://github.com/symfony/symfony/blob/6.3/src/Symfony/Component/Intl/Resources/data/locales/meta.php). + String language = "en"; // A valid language identifier using IETF language tags. You can use primary subtags like `en` (English), extended subtags like `fr-CA` (French, Canada), or region subtags like `zh-Hans-CN` (Simplified Chinese used in the PRC). - This parameter **only accepts dashes for separators**, for example `fr-CA`. If you use a different separator in your request, the API returns an error. - When the value in your request does not match any covered language, the API returns an error. - You can find the list of supported tags [here](https://docs.api.video/vod/add-captions#supported-caption-language-tags). File file = new File("/path/to/file"); // The video text track (VTT) you want to upload. try { @@ -59,7 +59,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **videoId** | **String**| The unique identifier for the video you want to add a caption to. | - **language** | **String**| A valid language identifier using IETF language tags. You can use primary subtags like `en` (English), extended subtags like `fr-CA` (French, Canada), or region subtags like `zh-Hans-CN` (Simplified Chinese used in the PRC). - This parameter **only accepts dashes for separators**, for example `fr-CA`. If you use a different separator in your request, the API returns an error. - When the value in your request does not match any covered language, the API returns an error. - This endpoint uses [Symfony](https://symfony.com) to reference the list of supported language tags. You can find the list of supported tags [here](https://github.com/symfony/symfony/blob/6.3/src/Symfony/Component/Intl/Resources/data/locales/meta.php). | + **language** | **String**| A valid language identifier using IETF language tags. You can use primary subtags like `en` (English), extended subtags like `fr-CA` (French, Canada), or region subtags like `zh-Hans-CN` (Simplified Chinese used in the PRC). - This parameter **only accepts dashes for separators**, for example `fr-CA`. If you use a different separator in your request, the API returns an error. - When the value in your request does not match any covered language, the API returns an error. - You can find the list of supported tags [here](https://docs.api.video/vod/add-captions#supported-caption-language-tags). | **file** | **File**| The video text track (VTT) you want to upload. | ### Return type @@ -111,7 +111,7 @@ public class Example { CaptionsApi apiInstance = client.captions(); String videoId = "vi4k0jvEUuaTdRAEjQ4Prklg"; // The unique identifier for the video you want captions for. - String language = "en"; // A valid language identifier using IETF language tags. You can use primary subtags like `en` (English), extended subtags like `fr-CA` (French, Canada), or region subtags like `zh-Hans-CN` (Simplified Chinese used in the PRC). - This parameter **only accepts dashes for separators**, for example `fr-CA`. If you use a different separator in your request, the API returns an error. - When the value in your request does not match any covered language, the API returns an error. - This endpoint uses [Symfony](https://symfony.com) to reference the list of supported language tags. You can find the list of supported tags [here](https://github.com/symfony/symfony/blob/6.3/src/Symfony/Component/Intl/Resources/data/locales/meta.php). + String language = "en"; // A valid language identifier using IETF language tags. You can use primary subtags like `en` (English), extended subtags like `fr-CA` (French, Canada), or region subtags like `zh-Hans-CN` (Simplified Chinese used in the PRC). - This parameter **only accepts dashes for separators**, for example `fr-CA`. If you use a different separator in your request, the API returns an error. - When the value in your request does not match any covered language, the API returns an error. - You can find the list of supported tags [here](https://docs.api.video/vod/add-captions#supported-caption-language-tags). try { Caption result = apiInstance.get(videoId, language); @@ -132,7 +132,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **videoId** | **String**| The unique identifier for the video you want captions for. | - **language** | **String**| A valid language identifier using IETF language tags. You can use primary subtags like `en` (English), extended subtags like `fr-CA` (French, Canada), or region subtags like `zh-Hans-CN` (Simplified Chinese used in the PRC). - This parameter **only accepts dashes for separators**, for example `fr-CA`. If you use a different separator in your request, the API returns an error. - When the value in your request does not match any covered language, the API returns an error. - This endpoint uses [Symfony](https://symfony.com) to reference the list of supported language tags. You can find the list of supported tags [here](https://github.com/symfony/symfony/blob/6.3/src/Symfony/Component/Intl/Resources/data/locales/meta.php). | + **language** | **String**| A valid language identifier using IETF language tags. You can use primary subtags like `en` (English), extended subtags like `fr-CA` (French, Canada), or region subtags like `zh-Hans-CN` (Simplified Chinese used in the PRC). - This parameter **only accepts dashes for separators**, for example `fr-CA`. If you use a different separator in your request, the API returns an error. - When the value in your request does not match any covered language, the API returns an error. - You can find the list of supported tags [here](https://docs.api.video/vod/add-captions#supported-caption-language-tags). | ### Return type @@ -181,7 +181,7 @@ public class Example { CaptionsApi apiInstance = client.captions(); String videoId = "vi4k0jvEUuaTdRAEjQ4Prklg"; // The unique identifier for the video you want to have automatic captions for. - String language = "en"; // A valid language identifier using IETF language tags. You can use primary subtags like `en` (English), extended subtags like `fr-CA` (French, Canada), or region subtags like `zh-Hans-CN` (Simplified Chinese used in the PRC). - This parameter **only accepts dashes for separators**, for example `fr-CA`. If you use a different separator in your request, the API returns an error. - When the value in your request does not match any covered language, the API returns an error. - This endpoint uses [Symfony](https://symfony.com) to reference the list of supported language tags. You can find the list of supported tags [here](https://github.com/symfony/symfony/blob/6.3/src/Symfony/Component/Intl/Resources/data/locales/meta.php). + String language = "en"; // A valid language identifier using IETF language tags. You can use primary subtags like `en` (English), extended subtags like `fr-CA` (French, Canada), or region subtags like `zh-Hans-CN` (Simplified Chinese used in the PRC). - This parameter **only accepts dashes for separators**, for example `fr-CA`. If you use a different separator in your request, the API returns an error. - When the value in your request does not match any covered language, the API returns an error. - You can find the list of supported tags [here](https://docs.api.video/vod/add-captions#supported-caption-language-tags). CaptionsUpdatePayload captionsUpdatePayload = new CaptionsUpdatePayload(); // captionsUpdatePayload.setDefault(); // @@ -205,7 +205,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **videoId** | **String**| The unique identifier for the video you want to have automatic captions for. | - **language** | **String**| A valid language identifier using IETF language tags. You can use primary subtags like `en` (English), extended subtags like `fr-CA` (French, Canada), or region subtags like `zh-Hans-CN` (Simplified Chinese used in the PRC). - This parameter **only accepts dashes for separators**, for example `fr-CA`. If you use a different separator in your request, the API returns an error. - When the value in your request does not match any covered language, the API returns an error. - This endpoint uses [Symfony](https://symfony.com) to reference the list of supported language tags. You can find the list of supported tags [here](https://github.com/symfony/symfony/blob/6.3/src/Symfony/Component/Intl/Resources/data/locales/meta.php). | + **language** | **String**| A valid language identifier using IETF language tags. You can use primary subtags like `en` (English), extended subtags like `fr-CA` (French, Canada), or region subtags like `zh-Hans-CN` (Simplified Chinese used in the PRC). - This parameter **only accepts dashes for separators**, for example `fr-CA`. If you use a different separator in your request, the API returns an error. - When the value in your request does not match any covered language, the API returns an error. - You can find the list of supported tags [here](https://docs.api.video/vod/add-captions#supported-caption-language-tags). | **captionsUpdatePayload** | [**CaptionsUpdatePayload**](CaptionsUpdatePayload.md)| | ### Return type @@ -255,7 +255,7 @@ public class Example { CaptionsApi apiInstance = client.captions(); String videoId = "vi4k0jvEUuaTdRAEjQ4Prklgc"; // The unique identifier for the video you want to delete a caption from. - String language = "en"; // A valid language identifier using IETF language tags. You can use primary subtags like `en` (English), extended subtags like `fr-CA` (French, Canada), or region subtags like `zh-Hans-CN` (Simplified Chinese used in the PRC). - This parameter **only accepts dashes for separators**, for example `fr-CA`. If you use a different separator in your request, the API returns an error. - When the value in your request does not match any covered language, the API returns an error. - This endpoint uses [Symfony](https://symfony.com) to reference the list of supported language tags. You can find the list of supported tags [here](https://github.com/symfony/symfony/blob/6.3/src/Symfony/Component/Intl/Resources/data/locales/meta.php). + String language = "en"; // A valid language identifier using IETF language tags. You can use primary subtags like `en` (English), extended subtags like `fr-CA` (French, Canada), or region subtags like `zh-Hans-CN` (Simplified Chinese used in the PRC). - This parameter **only accepts dashes for separators**, for example `fr-CA`. If you use a different separator in your request, the API returns an error. - When the value in your request does not match any covered language, the API returns an error. - You can find the list of supported tags [here](https://docs.api.video/vod/add-captions#supported-caption-language-tags). try { apiInstance.delete(videoId, language); @@ -275,7 +275,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **videoId** | **String**| The unique identifier for the video you want to delete a caption from. | - **language** | **String**| A valid language identifier using IETF language tags. You can use primary subtags like `en` (English), extended subtags like `fr-CA` (French, Canada), or region subtags like `zh-Hans-CN` (Simplified Chinese used in the PRC). - This parameter **only accepts dashes for separators**, for example `fr-CA`. If you use a different separator in your request, the API returns an error. - When the value in your request does not match any covered language, the API returns an error. - This endpoint uses [Symfony](https://symfony.com) to reference the list of supported language tags. You can find the list of supported tags [here](https://github.com/symfony/symfony/blob/6.3/src/Symfony/Component/Intl/Resources/data/locales/meta.php). | + **language** | **String**| A valid language identifier using IETF language tags. You can use primary subtags like `en` (English), extended subtags like `fr-CA` (French, Canada), or region subtags like `zh-Hans-CN` (Simplified Chinese used in the PRC). - This parameter **only accepts dashes for separators**, for example `fr-CA`. If you use a different separator in your request, the API returns an error. - When the value in your request does not match any covered language, the API returns an error. - You can find the list of supported tags [here](https://docs.api.video/vod/add-captions#supported-caption-language-tags). | ### Return type 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 cbae28a..b91411a 100644 --- a/src/main/java/video/api/client/api/clients/CaptionsApi.java +++ b/src/main/java/video/api/client/api/clients/CaptionsApi.java @@ -109,10 +109,8 @@ public void setApiClient(ApiClient apiClient) { * `zh-Hans-CN` (Simplified Chinese used in the PRC). - This parameter **only accepts dashes * for separators**, for example `fr-CA`. If you use a different separator in your request, the * API returns an error. - When the value in your request does not match any covered language, the API - * returns an error. - This endpoint uses [Symfony](https://symfony.com) to reference the list of - * supported language tags. You can find the list of supported tags - * [here](https://github.com/symfony/symfony/blob/6.3/src/Symfony/Component/Intl/Resources/data/locales/meta.php). - * (required) + * returns an error. - You can find the list of supported tags + * [here](https://docs.api.video/vod/add-captions#supported-caption-language-tags). (required) * @param file * The video text track (VTT) you want to upload. (required) * @param _callback @@ -217,10 +215,8 @@ private okhttp3.Call uploadValidateBeforeCall(String videoId, String language, F * `zh-Hans-CN` (Simplified Chinese used in the PRC). - This parameter **only accepts dashes * for separators**, for example `fr-CA`. If you use a different separator in your request, the * API returns an error. - When the value in your request does not match any covered language, the API - * returns an error. - This endpoint uses [Symfony](https://symfony.com) to reference the list of - * supported language tags. You can find the list of supported tags - * [here](https://github.com/symfony/symfony/blob/6.3/src/Symfony/Component/Intl/Resources/data/locales/meta.php). - * (required) + * returns an error. - You can find the list of supported tags + * [here](https://docs.api.video/vod/add-captions#supported-caption-language-tags). (required) * @param file * The video text track (VTT) you want to upload. (required) * @@ -272,10 +268,8 @@ public Caption upload(String videoId, String language, File file) throws ApiExce * `zh-Hans-CN` (Simplified Chinese used in the PRC). - This parameter **only accepts dashes * for separators**, for example `fr-CA`. If you use a different separator in your request, the * API returns an error. - When the value in your request does not match any covered language, the API - * returns an error. - This endpoint uses [Symfony](https://symfony.com) to reference the list of - * supported language tags. You can find the list of supported tags - * [here](https://github.com/symfony/symfony/blob/6.3/src/Symfony/Component/Intl/Resources/data/locales/meta.php). - * (required) + * returns an error. - You can find the list of supported tags + * [here](https://docs.api.video/vod/add-captions#supported-caption-language-tags). (required) * @param file * The video text track (VTT) you want to upload. (required) * @@ -327,10 +321,8 @@ public ApiResponse uploadWithHttpInfo(String videoId, String language, * `zh-Hans-CN` (Simplified Chinese used in the PRC). - This parameter **only accepts dashes * for separators**, for example `fr-CA`. If you use a different separator in your request, the * API returns an error. - When the value in your request does not match any covered language, the API - * returns an error. - This endpoint uses [Symfony](https://symfony.com) to reference the list of - * supported language tags. You can find the list of supported tags - * [here](https://github.com/symfony/symfony/blob/6.3/src/Symfony/Component/Intl/Resources/data/locales/meta.php). - * (required) + * returns an error. - You can find the list of supported tags + * [here](https://docs.api.video/vod/add-captions#supported-caption-language-tags). (required) * @param file * The video text track (VTT) you want to upload. (required) * @param _callback @@ -385,10 +377,8 @@ public okhttp3.Call uploadAsync(String videoId, String language, File file, fina * `zh-Hans-CN` (Simplified Chinese used in the PRC). - This parameter **only accepts dashes * for separators**, for example `fr-CA`. If you use a different separator in your request, the * API returns an error. - When the value in your request does not match any covered language, the API - * returns an error. - This endpoint uses [Symfony](https://symfony.com) to reference the list of - * supported language tags. You can find the list of supported tags - * [here](https://github.com/symfony/symfony/blob/6.3/src/Symfony/Component/Intl/Resources/data/locales/meta.php). - * (required) + * returns an error. - You can find the list of supported tags + * [here](https://docs.api.video/vod/add-captions#supported-caption-language-tags). (required) * @param _callback * Callback for upload/download progress * @@ -485,10 +475,8 @@ private okhttp3.Call getValidateBeforeCall(String videoId, String language, fina * `zh-Hans-CN` (Simplified Chinese used in the PRC). - This parameter **only accepts dashes * for separators**, for example `fr-CA`. If you use a different separator in your request, the * API returns an error. - When the value in your request does not match any covered language, the API - * returns an error. - This endpoint uses [Symfony](https://symfony.com) to reference the list of - * supported language tags. You can find the list of supported tags - * [here](https://github.com/symfony/symfony/blob/6.3/src/Symfony/Component/Intl/Resources/data/locales/meta.php). - * (required) + * returns an error. - You can find the list of supported tags + * [here](https://docs.api.video/vod/add-captions#supported-caption-language-tags). (required) * * @return Caption * @@ -540,10 +528,8 @@ public Caption get(String videoId, String language) throws ApiException { * `zh-Hans-CN` (Simplified Chinese used in the PRC). - This parameter **only accepts dashes * for separators**, for example `fr-CA`. If you use a different separator in your request, the * API returns an error. - When the value in your request does not match any covered language, the API - * returns an error. - This endpoint uses [Symfony](https://symfony.com) to reference the list of - * supported language tags. You can find the list of supported tags - * [here](https://github.com/symfony/symfony/blob/6.3/src/Symfony/Component/Intl/Resources/data/locales/meta.php). - * (required) + * returns an error. - You can find the list of supported tags + * [here](https://docs.api.video/vod/add-captions#supported-caption-language-tags). (required) * * @return ApiResponse<Caption> * @@ -595,10 +581,8 @@ public ApiResponse getWithHttpInfo(String videoId, String language) thr * `zh-Hans-CN` (Simplified Chinese used in the PRC). - This parameter **only accepts dashes * for separators**, for example `fr-CA`. If you use a different separator in your request, the * API returns an error. - When the value in your request does not match any covered language, the API - * returns an error. - This endpoint uses [Symfony](https://symfony.com) to reference the list of - * supported language tags. You can find the list of supported tags - * [here](https://github.com/symfony/symfony/blob/6.3/src/Symfony/Component/Intl/Resources/data/locales/meta.php). - * (required) + * returns an error. - You can find the list of supported tags + * [here](https://docs.api.video/vod/add-captions#supported-caption-language-tags). (required) * @param _callback * The callback to be executed when the API call finishes * @@ -651,10 +635,8 @@ public okhttp3.Call getAsync(String videoId, String language, final ApiCallback< * `zh-Hans-CN` (Simplified Chinese used in the PRC). - This parameter **only accepts dashes * for separators**, for example `fr-CA`. If you use a different separator in your request, the * API returns an error. - When the value in your request does not match any covered language, the API - * returns an error. - This endpoint uses [Symfony](https://symfony.com) to reference the list of - * supported language tags. You can find the list of supported tags - * [here](https://github.com/symfony/symfony/blob/6.3/src/Symfony/Component/Intl/Resources/data/locales/meta.php). - * (required) + * returns an error. - You can find the list of supported tags + * [here](https://docs.api.video/vod/add-captions#supported-caption-language-tags). (required) * @param captionsUpdatePayload * (required) * @param _callback @@ -754,10 +736,8 @@ private okhttp3.Call updateValidateBeforeCall(String videoId, String language, * `zh-Hans-CN` (Simplified Chinese used in the PRC). - This parameter **only accepts dashes * for separators**, for example `fr-CA`. If you use a different separator in your request, the * API returns an error. - When the value in your request does not match any covered language, the API - * returns an error. - This endpoint uses [Symfony](https://symfony.com) to reference the list of - * supported language tags. You can find the list of supported tags - * [here](https://github.com/symfony/symfony/blob/6.3/src/Symfony/Component/Intl/Resources/data/locales/meta.php). - * (required) + * returns an error. - You can find the list of supported tags + * [here](https://docs.api.video/vod/add-captions#supported-caption-language-tags). (required) * @param captionsUpdatePayload * (required) * @@ -809,10 +789,8 @@ public Caption update(String videoId, String language, CaptionsUpdatePayload cap * `zh-Hans-CN` (Simplified Chinese used in the PRC). - This parameter **only accepts dashes * for separators**, for example `fr-CA`. If you use a different separator in your request, the * API returns an error. - When the value in your request does not match any covered language, the API - * returns an error. - This endpoint uses [Symfony](https://symfony.com) to reference the list of - * supported language tags. You can find the list of supported tags - * [here](https://github.com/symfony/symfony/blob/6.3/src/Symfony/Component/Intl/Resources/data/locales/meta.php). - * (required) + * returns an error. - You can find the list of supported tags + * [here](https://docs.api.video/vod/add-captions#supported-caption-language-tags). (required) * @param captionsUpdatePayload * (required) * @@ -864,10 +842,8 @@ public ApiResponse updateWithHttpInfo(String videoId, String language, * `zh-Hans-CN` (Simplified Chinese used in the PRC). - This parameter **only accepts dashes * for separators**, for example `fr-CA`. If you use a different separator in your request, the * API returns an error. - When the value in your request does not match any covered language, the API - * returns an error. - This endpoint uses [Symfony](https://symfony.com) to reference the list of - * supported language tags. You can find the list of supported tags - * [here](https://github.com/symfony/symfony/blob/6.3/src/Symfony/Component/Intl/Resources/data/locales/meta.php). - * (required) + * returns an error. - You can find the list of supported tags + * [here](https://docs.api.video/vod/add-captions#supported-caption-language-tags). (required) * @param captionsUpdatePayload * (required) * @param _callback @@ -922,10 +898,8 @@ public okhttp3.Call updateAsync(String videoId, String language, CaptionsUpdateP * `zh-Hans-CN` (Simplified Chinese used in the PRC). - This parameter **only accepts dashes * for separators**, for example `fr-CA`. If you use a different separator in your request, the * API returns an error. - When the value in your request does not match any covered language, the API - * returns an error. - This endpoint uses [Symfony](https://symfony.com) to reference the list of - * supported language tags. You can find the list of supported tags - * [here](https://github.com/symfony/symfony/blob/6.3/src/Symfony/Component/Intl/Resources/data/locales/meta.php). - * (required) + * returns an error. - You can find the list of supported tags + * [here](https://docs.api.video/vod/add-captions#supported-caption-language-tags). (required) * @param _callback * Callback for upload/download progress * @@ -1019,10 +993,8 @@ private okhttp3.Call deleteValidateBeforeCall(String videoId, String language, f * `zh-Hans-CN` (Simplified Chinese used in the PRC). - This parameter **only accepts dashes * for separators**, for example `fr-CA`. If you use a different separator in your request, the * API returns an error. - When the value in your request does not match any covered language, the API - * returns an error. - This endpoint uses [Symfony](https://symfony.com) to reference the list of - * supported language tags. You can find the list of supported tags - * [here](https://github.com/symfony/symfony/blob/6.3/src/Symfony/Component/Intl/Resources/data/locales/meta.php). - * (required) + * returns an error. - You can find the list of supported tags + * [here](https://docs.api.video/vod/add-captions#supported-caption-language-tags). (required) * * @throws ApiException * If fail to call the API, e.g. server error or cannot deserialize the response body @@ -1068,10 +1040,8 @@ public void delete(String videoId, String language) throws ApiException { * `zh-Hans-CN` (Simplified Chinese used in the PRC). - This parameter **only accepts dashes * for separators**, for example `fr-CA`. If you use a different separator in your request, the * API returns an error. - When the value in your request does not match any covered language, the API - * returns an error. - This endpoint uses [Symfony](https://symfony.com) to reference the list of - * supported language tags. You can find the list of supported tags - * [here](https://github.com/symfony/symfony/blob/6.3/src/Symfony/Component/Intl/Resources/data/locales/meta.php). - * (required) + * returns an error. - You can find the list of supported tags + * [here](https://docs.api.video/vod/add-captions#supported-caption-language-tags). (required) * * @return ApiResponse<Void> * @@ -1118,10 +1088,8 @@ public ApiResponse deleteWithHttpInfo(String videoId, String language) thr * `zh-Hans-CN` (Simplified Chinese used in the PRC). - This parameter **only accepts dashes * for separators**, for example `fr-CA`. If you use a different separator in your request, the * API returns an error. - When the value in your request does not match any covered language, the API - * returns an error. - This endpoint uses [Symfony](https://symfony.com) to reference the list of - * supported language tags. You can find the list of supported tags - * [here](https://github.com/symfony/symfony/blob/6.3/src/Symfony/Component/Intl/Resources/data/locales/meta.php). - * (required) + * returns an error. - You can find the list of supported tags + * [here](https://docs.api.video/vod/add-captions#supported-caption-language-tags). (required) * @param _callback * The callback to be executed when the API call finishes *