Skip to content

Commit

Permalink
Deploying from phrase/openapi@2d520dc0
Browse files Browse the repository at this point in the history
  • Loading branch information
Phrase committed Aug 26, 2024
1 parent eb86b02 commit 2d1baaf
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/Model/LocaleDownloadCreateParameters.md
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
30 changes: 30 additions & 0 deletions lib/Model/LocaleDownloadCreateParameters.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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
Expand Down Expand Up @@ -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'
Expand All @@ -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'
Expand All @@ -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'
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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
*
Expand Down
7 changes: 7 additions & 0 deletions test/Model/LocaleDownloadCreateParametersTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,13 @@ public function testPropertyUseLastReviewedVersion()
{
}

/**
* Test attribute "locale_ids"
*/
public function testPropertyLocaleIds()
{
}

/**
* Test attribute "fallback_locale_id"
*/
Expand Down

0 comments on commit 2d1baaf

Please sign in to comment.