From 2d1baafe80047bbb9d12cad3829f084b3a4cb7e0 Mon Sep 17 00:00:00 2001 From: Phrase Date: Mon, 26 Aug 2024 16:58:56 +0000 Subject: [PATCH] Deploying from phrase/openapi@2d520dc0 --- docs/Model/LocaleDownloadCreateParameters.md | 1 + lib/Model/LocaleDownloadCreateParameters.php | 30 +++++++++++++++++++ .../LocaleDownloadCreateParametersTest.php | 7 +++++ 3 files changed, 38 insertions(+) diff --git a/docs/Model/LocaleDownloadCreateParameters.md b/docs/Model/LocaleDownloadCreateParameters.md index 7222218..ea9771a 100644 --- a/docs/Model/LocaleDownloadCreateParameters.md +++ b/docs/Model/LocaleDownloadCreateParameters.md @@ -15,6 +15,7 @@ Name | Type | Description | Notes **encoding** | **string** | Enforces a specific encoding on the file contents. Valid options are \"UTF-8\", \"UTF-16\" and \"ISO-8859-1\". | [optional] **include_unverified_translations** | **bool** | if set to false unverified translations are excluded | [optional] **use_last_reviewed_version** | **bool** | If set to true the last reviewed version of a translation is used. This is only available if the review workflow is enabled for the project. | [optional] +**locale_ids** | **string[]** | Locale IDs or locale names | [optional] **fallback_locale_id** | **string** | If a key has no translation in the locale being downloaded the translation in the fallback locale will be used. Provide the ID of the locale that should be used as the fallback. Requires include_empty_translations to be set to <code>true</code>. | [optional] **source_locale_id** | **string** | Provides the source language of a corresponding job as the source language of the generated locale file. This parameter will be ignored unless used in combination with a <code>tag</code> parameter indicating a specific job. | [optional] **custom_metadata_filters** | **object** | Custom metadata filters. Provide the name of the metadata field and the value to filter by. Only keys with matching metadata will be included in the download. | [optional] diff --git a/lib/Model/LocaleDownloadCreateParameters.php b/lib/Model/LocaleDownloadCreateParameters.php index 1b96807..a22fcbc 100644 --- a/lib/Model/LocaleDownloadCreateParameters.php +++ b/lib/Model/LocaleDownloadCreateParameters.php @@ -66,6 +66,7 @@ class LocaleDownloadCreateParameters implements ModelInterface, ArrayAccess 'encoding' => 'string', 'include_unverified_translations' => 'bool', 'use_last_reviewed_version' => 'bool', + 'locale_ids' => 'string[]', 'fallback_locale_id' => 'string', 'source_locale_id' => 'string', 'custom_metadata_filters' => 'object' @@ -88,6 +89,7 @@ class LocaleDownloadCreateParameters implements ModelInterface, ArrayAccess 'encoding' => null, 'include_unverified_translations' => null, 'use_last_reviewed_version' => null, + 'locale_ids' => null, 'fallback_locale_id' => null, 'source_locale_id' => null, 'custom_metadata_filters' => null @@ -131,6 +133,7 @@ public static function openAPIFormats() 'encoding' => 'encoding', 'include_unverified_translations' => 'include_unverified_translations', 'use_last_reviewed_version' => 'use_last_reviewed_version', + 'locale_ids' => 'locale_ids', 'fallback_locale_id' => 'fallback_locale_id', 'source_locale_id' => 'source_locale_id', 'custom_metadata_filters' => 'custom_metadata_filters' @@ -153,6 +156,7 @@ public static function openAPIFormats() 'encoding' => 'setEncoding', 'include_unverified_translations' => 'setIncludeUnverifiedTranslations', 'use_last_reviewed_version' => 'setUseLastReviewedVersion', + 'locale_ids' => 'setLocaleIds', 'fallback_locale_id' => 'setFallbackLocaleId', 'source_locale_id' => 'setSourceLocaleId', 'custom_metadata_filters' => 'setCustomMetadataFilters' @@ -175,6 +179,7 @@ public static function openAPIFormats() 'encoding' => 'getEncoding', 'include_unverified_translations' => 'getIncludeUnverifiedTranslations', 'use_last_reviewed_version' => 'getUseLastReviewedVersion', + 'locale_ids' => 'getLocaleIds', 'fallback_locale_id' => 'getFallbackLocaleId', 'source_locale_id' => 'getSourceLocaleId', 'custom_metadata_filters' => 'getCustomMetadataFilters' @@ -251,6 +256,7 @@ public function __construct(array $data = null) $this->container['encoding'] = isset($data['encoding']) ? $data['encoding'] : null; $this->container['include_unverified_translations'] = isset($data['include_unverified_translations']) ? $data['include_unverified_translations'] : null; $this->container['use_last_reviewed_version'] = isset($data['use_last_reviewed_version']) ? $data['use_last_reviewed_version'] : null; + $this->container['locale_ids'] = isset($data['locale_ids']) ? $data['locale_ids'] : null; $this->container['fallback_locale_id'] = isset($data['fallback_locale_id']) ? $data['fallback_locale_id'] : null; $this->container['source_locale_id'] = isset($data['source_locale_id']) ? $data['source_locale_id'] : null; $this->container['custom_metadata_filters'] = isset($data['custom_metadata_filters']) ? $data['custom_metadata_filters'] : null; @@ -547,6 +553,30 @@ public function setUseLastReviewedVersion($use_last_reviewed_version) return $this; } + /** + * Gets locale_ids + * + * @return string[]|null + */ + public function getLocaleIds() + { + return $this->container['locale_ids']; + } + + /** + * Sets locale_ids + * + * @param string[]|null $locale_ids Locale IDs or locale names + * + * @return $this + */ + public function setLocaleIds($locale_ids) + { + $this->container['locale_ids'] = $locale_ids; + + return $this; + } + /** * Gets fallback_locale_id * diff --git a/test/Model/LocaleDownloadCreateParametersTest.php b/test/Model/LocaleDownloadCreateParametersTest.php index f1b553b..81c0844 100644 --- a/test/Model/LocaleDownloadCreateParametersTest.php +++ b/test/Model/LocaleDownloadCreateParametersTest.php @@ -153,6 +153,13 @@ public function testPropertyUseLastReviewedVersion() { } + /** + * Test attribute "locale_ids" + */ + public function testPropertyLocaleIds() + { + } + /** * Test attribute "fallback_locale_id" */