Skip to content

Commit

Permalink
Deploying from phrase/openapi@b3843012
Browse files Browse the repository at this point in the history
  • Loading branch information
Phrase committed Jun 18, 2024
1 parent 2adea64 commit c33107a
Show file tree
Hide file tree
Showing 6 changed files with 152 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/Model/ReleaseCreateParameters.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 2 additions & 0 deletions docs/Model/ReleaseUpdateParameters.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
60 changes: 60 additions & 0 deletions lib/Model/ReleaseCreateParameters.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'
];

Expand All @@ -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
];

Expand Down Expand Up @@ -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'
];

Expand All @@ -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'
];

Expand All @@ -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'
];

Expand Down Expand Up @@ -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;
}

Expand Down Expand Up @@ -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
*
Expand Down
60 changes: 60 additions & 0 deletions lib/Model/ReleaseUpdateParameters.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'
];

Expand All @@ -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
];

Expand Down Expand Up @@ -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'
];

Expand All @@ -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'
];

Expand All @@ -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'
];

Expand Down Expand Up @@ -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;
}

Expand Down Expand Up @@ -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
*
Expand Down
14 changes: 14 additions & 0 deletions test/Model/ReleaseCreateParametersTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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"
*/
Expand Down
14 changes: 14 additions & 0 deletions test/Model/ReleaseUpdateParametersTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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"
*/
Expand Down

0 comments on commit c33107a

Please sign in to comment.