From c33107a0772a130f034b72ca733b5b24bbd45f9e Mon Sep 17 00:00:00 2001 From: Phrase Date: Tue, 18 Jun 2024 06:53:23 +0000 Subject: [PATCH] Deploying from phrase/openapi@b3843012 --- docs/Model/ReleaseCreateParameters.md | 2 + docs/Model/ReleaseUpdateParameters.md | 2 + lib/Model/ReleaseCreateParameters.php | 60 ++++++++++++++++++++++ lib/Model/ReleaseUpdateParameters.php | 60 ++++++++++++++++++++++ test/Model/ReleaseCreateParametersTest.php | 14 +++++ test/Model/ReleaseUpdateParametersTest.php | 14 +++++ 6 files changed, 152 insertions(+) diff --git a/docs/Model/ReleaseCreateParameters.md b/docs/Model/ReleaseCreateParameters.md index aa76281..ca0a40c 100644 --- a/docs/Model/ReleaseCreateParameters.md +++ b/docs/Model/ReleaseCreateParameters.md @@ -8,6 +8,8 @@ Name | Type | Description | Notes **platforms** | **string[]** | List of platforms the release should support. | [optional] **locale_ids** | **string[]** | List of locale ids that will be included in the release. If empty, distribution locales will be used | [optional] **tags** | **string[]** | Only include tagged keys in the release. For a key to be included it must be tagged with all tags provided | [optional] +**app_min_version** | **string** | Minimum version of the app that the release supports in semver format | [optional] +**app_max_version** | **string** | Maximum version of the app that the release supports in semver format | [optional] **branch** | **string** | Branch used for release | [optional] [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/ReleaseUpdateParameters.md b/docs/Model/ReleaseUpdateParameters.md index 1708b9a..99eae9b 100644 --- a/docs/Model/ReleaseUpdateParameters.md +++ b/docs/Model/ReleaseUpdateParameters.md @@ -6,6 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **description** | **string** | Description of the release | [optional] **platforms** | **string[]** | List of platforms the release should support. | [optional] +**app_min_version** | **string** | Minimum version of the app that the release supports in semver format | [optional] +**app_max_version** | **string** | Maximum version of the app that the release supports in semver format | [optional] **branch** | **string** | Branch used for release | [optional] [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/lib/Model/ReleaseCreateParameters.php b/lib/Model/ReleaseCreateParameters.php index f469f42..4e97afc 100644 --- a/lib/Model/ReleaseCreateParameters.php +++ b/lib/Model/ReleaseCreateParameters.php @@ -59,6 +59,8 @@ class ReleaseCreateParameters implements ModelInterface, ArrayAccess 'platforms' => 'string[]', 'locale_ids' => 'string[]', 'tags' => 'string[]', + 'app_min_version' => 'string', + 'app_max_version' => 'string', 'branch' => 'string' ]; @@ -72,6 +74,8 @@ class ReleaseCreateParameters implements ModelInterface, ArrayAccess 'platforms' => null, 'locale_ids' => null, 'tags' => null, + 'app_min_version' => null, + 'app_max_version' => null, 'branch' => null ]; @@ -106,6 +110,8 @@ public static function openAPIFormats() 'platforms' => 'platforms', 'locale_ids' => 'locale_ids', 'tags' => 'tags', + 'app_min_version' => 'app_min_version', + 'app_max_version' => 'app_max_version', 'branch' => 'branch' ]; @@ -119,6 +125,8 @@ public static function openAPIFormats() 'platforms' => 'setPlatforms', 'locale_ids' => 'setLocaleIds', 'tags' => 'setTags', + 'app_min_version' => 'setAppMinVersion', + 'app_max_version' => 'setAppMaxVersion', 'branch' => 'setBranch' ]; @@ -132,6 +140,8 @@ public static function openAPIFormats() 'platforms' => 'getPlatforms', 'locale_ids' => 'getLocaleIds', 'tags' => 'getTags', + 'app_min_version' => 'getAppMinVersion', + 'app_max_version' => 'getAppMaxVersion', 'branch' => 'getBranch' ]; @@ -199,6 +209,8 @@ public function __construct(array $data = null) $this->container['platforms'] = isset($data['platforms']) ? $data['platforms'] : null; $this->container['locale_ids'] = isset($data['locale_ids']) ? $data['locale_ids'] : null; $this->container['tags'] = isset($data['tags']) ? $data['tags'] : null; + $this->container['app_min_version'] = isset($data['app_min_version']) ? $data['app_min_version'] : null; + $this->container['app_max_version'] = isset($data['app_max_version']) ? $data['app_max_version'] : null; $this->container['branch'] = isset($data['branch']) ? $data['branch'] : null; } @@ -322,6 +334,54 @@ public function setTags($tags) return $this; } + /** + * Gets app_min_version + * + * @return string|null + */ + public function getAppMinVersion() + { + return $this->container['app_min_version']; + } + + /** + * Sets app_min_version + * + * @param string|null $app_min_version Minimum version of the app that the release supports in semver format + * + * @return $this + */ + public function setAppMinVersion($app_min_version) + { + $this->container['app_min_version'] = $app_min_version; + + return $this; + } + + /** + * Gets app_max_version + * + * @return string|null + */ + public function getAppMaxVersion() + { + return $this->container['app_max_version']; + } + + /** + * Sets app_max_version + * + * @param string|null $app_max_version Maximum version of the app that the release supports in semver format + * + * @return $this + */ + public function setAppMaxVersion($app_max_version) + { + $this->container['app_max_version'] = $app_max_version; + + return $this; + } + /** * Gets branch * diff --git a/lib/Model/ReleaseUpdateParameters.php b/lib/Model/ReleaseUpdateParameters.php index 946bd93..eb91106 100644 --- a/lib/Model/ReleaseUpdateParameters.php +++ b/lib/Model/ReleaseUpdateParameters.php @@ -57,6 +57,8 @@ class ReleaseUpdateParameters implements ModelInterface, ArrayAccess protected static $openAPITypes = [ 'description' => 'string', 'platforms' => 'string[]', + 'app_min_version' => 'string', + 'app_max_version' => 'string', 'branch' => 'string' ]; @@ -68,6 +70,8 @@ class ReleaseUpdateParameters implements ModelInterface, ArrayAccess protected static $openAPIFormats = [ 'description' => null, 'platforms' => null, + 'app_min_version' => null, + 'app_max_version' => null, 'branch' => null ]; @@ -100,6 +104,8 @@ public static function openAPIFormats() protected static $attributeMap = [ 'description' => 'description', 'platforms' => 'platforms', + 'app_min_version' => 'app_min_version', + 'app_max_version' => 'app_max_version', 'branch' => 'branch' ]; @@ -111,6 +117,8 @@ public static function openAPIFormats() protected static $setters = [ 'description' => 'setDescription', 'platforms' => 'setPlatforms', + 'app_min_version' => 'setAppMinVersion', + 'app_max_version' => 'setAppMaxVersion', 'branch' => 'setBranch' ]; @@ -122,6 +130,8 @@ public static function openAPIFormats() protected static $getters = [ 'description' => 'getDescription', 'platforms' => 'getPlatforms', + 'app_min_version' => 'getAppMinVersion', + 'app_max_version' => 'getAppMaxVersion', 'branch' => 'getBranch' ]; @@ -187,6 +197,8 @@ public function __construct(array $data = null) { $this->container['description'] = isset($data['description']) ? $data['description'] : null; $this->container['platforms'] = isset($data['platforms']) ? $data['platforms'] : null; + $this->container['app_min_version'] = isset($data['app_min_version']) ? $data['app_min_version'] : null; + $this->container['app_max_version'] = isset($data['app_max_version']) ? $data['app_max_version'] : null; $this->container['branch'] = isset($data['branch']) ? $data['branch'] : null; } @@ -262,6 +274,54 @@ public function setPlatforms($platforms) return $this; } + /** + * Gets app_min_version + * + * @return string|null + */ + public function getAppMinVersion() + { + return $this->container['app_min_version']; + } + + /** + * Sets app_min_version + * + * @param string|null $app_min_version Minimum version of the app that the release supports in semver format + * + * @return $this + */ + public function setAppMinVersion($app_min_version) + { + $this->container['app_min_version'] = $app_min_version; + + return $this; + } + + /** + * Gets app_max_version + * + * @return string|null + */ + public function getAppMaxVersion() + { + return $this->container['app_max_version']; + } + + /** + * Sets app_max_version + * + * @param string|null $app_max_version Maximum version of the app that the release supports in semver format + * + * @return $this + */ + public function setAppMaxVersion($app_max_version) + { + $this->container['app_max_version'] = $app_max_version; + + return $this; + } + /** * Gets branch * diff --git a/test/Model/ReleaseCreateParametersTest.php b/test/Model/ReleaseCreateParametersTest.php index 721cdf9..ea90082 100644 --- a/test/Model/ReleaseCreateParametersTest.php +++ b/test/Model/ReleaseCreateParametersTest.php @@ -104,6 +104,20 @@ public function testPropertyTags() { } + /** + * Test attribute "app_min_version" + */ + public function testPropertyAppMinVersion() + { + } + + /** + * Test attribute "app_max_version" + */ + public function testPropertyAppMaxVersion() + { + } + /** * Test attribute "branch" */ diff --git a/test/Model/ReleaseUpdateParametersTest.php b/test/Model/ReleaseUpdateParametersTest.php index 3e87cfd..113d19d 100644 --- a/test/Model/ReleaseUpdateParametersTest.php +++ b/test/Model/ReleaseUpdateParametersTest.php @@ -90,6 +90,20 @@ public function testPropertyPlatforms() { } + /** + * Test attribute "app_min_version" + */ + public function testPropertyAppMinVersion() + { + } + + /** + * Test attribute "app_max_version" + */ + public function testPropertyAppMaxVersion() + { + } + /** * Test attribute "branch" */