Update petstore samples; these appear to have been added by #4616

This commit is contained in:
Pete Holiday
2017-01-23 15:14:18 -05:00
parent b5de3a446f
commit 02dcd0eaf7
3 changed files with 506 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
# Capitalization
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**small_camel** | **string** | | [optional]
**capital_camel** | **string** | | [optional]
**small_snake** | **string** | | [optional]
**capital_snake** | **string** | | [optional]
**sca_eth_flow_points** | **string** | | [optional]
**att_name** | **string** | Name of the pet | [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)

View File

@@ -0,0 +1,358 @@
<?php
/**
* Capitalization
*
* PHP version 5
*
* @category Class
* @package Swagger\Client
* @author Swaagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
*/
/**
* Swagger Petstore
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*
*/
/**
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen
* Do not edit the class manually.
*/
namespace Swagger\Client\Model;
use \ArrayAccess;
/**
* Capitalization Class Doc Comment
*
* @category Class */
/**
* @package Swagger\Client
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
*/
class Capitalization implements ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
* @var string
*/
protected static $swaggerModelName = 'Capitalization';
/**
* Array of property to type mappings. Used for (de)serialization
* @var string[]
*/
protected static $swaggerTypes = [
'small_camel' => 'string',
'capital_camel' => 'string',
'small_snake' => 'string',
'capital_snake' => 'string',
'sca_eth_flow_points' => 'string',
'att_name' => 'string'
];
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of attributes where the key is the local name, and the value is the original name
* @var string[]
*/
protected static $attributeMap = [
'small_camel' => 'smallCamel',
'capital_camel' => 'CapitalCamel',
'small_snake' => 'small_Snake',
'capital_snake' => 'Capital_Snake',
'sca_eth_flow_points' => 'SCA_ETH_Flow_Points',
'att_name' => 'ATT_NAME'
];
/**
* Array of attributes to setter functions (for deserialization of responses)
* @var string[]
*/
protected static $setters = [
'small_camel' => 'setSmallCamel',
'capital_camel' => 'setCapitalCamel',
'small_snake' => 'setSmallSnake',
'capital_snake' => 'setCapitalSnake',
'sca_eth_flow_points' => 'setScaEthFlowPoints',
'att_name' => 'setAttName'
];
/**
* Array of attributes to getter functions (for serialization of requests)
* @var string[]
*/
protected static $getters = [
'small_camel' => 'getSmallCamel',
'capital_camel' => 'getCapitalCamel',
'small_snake' => 'getSmallSnake',
'capital_snake' => 'getCapitalSnake',
'sca_eth_flow_points' => 'getScaEthFlowPoints',
'att_name' => 'getAttName'
];
public static function attributeMap()
{
return self::$attributeMap;
}
public static function setters()
{
return self::$setters;
}
public static function getters()
{
return self::$getters;
}
/**
* Associative array for storing property values
* @var mixed[]
*/
protected $container = [];
/**
* Constructor
* @param mixed[] $data Associated array of property values initializing the model
*/
public function __construct(array $data = null)
{
$this->container['small_camel'] = isset($data['small_camel']) ? $data['small_camel'] : null;
$this->container['capital_camel'] = isset($data['capital_camel']) ? $data['capital_camel'] : null;
$this->container['small_snake'] = isset($data['small_snake']) ? $data['small_snake'] : null;
$this->container['capital_snake'] = isset($data['capital_snake']) ? $data['capital_snake'] : null;
$this->container['sca_eth_flow_points'] = isset($data['sca_eth_flow_points']) ? $data['sca_eth_flow_points'] : null;
$this->container['att_name'] = isset($data['att_name']) ? $data['att_name'] : null;
}
/**
* show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalid_properties = [];
return $invalid_properties;
}
/**
* validate all the properties in the model
* return true if all passed
*
* @return bool True if all properteis are valid
*/
public function valid()
{
return true;
}
/**
* Gets small_camel
* @return string
*/
public function getSmallCamel()
{
return $this->container['small_camel'];
}
/**
* Sets small_camel
* @param string $small_camel
* @return $this
*/
public function setSmallCamel($small_camel)
{
$this->container['small_camel'] = $small_camel;
return $this;
}
/**
* Gets capital_camel
* @return string
*/
public function getCapitalCamel()
{
return $this->container['capital_camel'];
}
/**
* Sets capital_camel
* @param string $capital_camel
* @return $this
*/
public function setCapitalCamel($capital_camel)
{
$this->container['capital_camel'] = $capital_camel;
return $this;
}
/**
* Gets small_snake
* @return string
*/
public function getSmallSnake()
{
return $this->container['small_snake'];
}
/**
* Sets small_snake
* @param string $small_snake
* @return $this
*/
public function setSmallSnake($small_snake)
{
$this->container['small_snake'] = $small_snake;
return $this;
}
/**
* Gets capital_snake
* @return string
*/
public function getCapitalSnake()
{
return $this->container['capital_snake'];
}
/**
* Sets capital_snake
* @param string $capital_snake
* @return $this
*/
public function setCapitalSnake($capital_snake)
{
$this->container['capital_snake'] = $capital_snake;
return $this;
}
/**
* Gets sca_eth_flow_points
* @return string
*/
public function getScaEthFlowPoints()
{
return $this->container['sca_eth_flow_points'];
}
/**
* Sets sca_eth_flow_points
* @param string $sca_eth_flow_points
* @return $this
*/
public function setScaEthFlowPoints($sca_eth_flow_points)
{
$this->container['sca_eth_flow_points'] = $sca_eth_flow_points;
return $this;
}
/**
* Gets att_name
* @return string
*/
public function getAttName()
{
return $this->container['att_name'];
}
/**
* Sets att_name
* @param string $att_name Name of the pet
* @return $this
*/
public function setAttName($att_name)
{
$this->container['att_name'] = $att_name;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
* @param integer $offset Offset
* @return boolean
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
* @param integer $offset Offset
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
* @param integer $offset Offset
* @param mixed $value Value to be set
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
* @param integer $offset Offset
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);
}
return json_encode(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this));
}
}

View File

@@ -0,0 +1,133 @@
<?php
/**
* CapitalizationTest
*
* PHP version 5
*
* @category Class
* @package Swagger\Client
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
*/
/**
* Swagger Petstore
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*
*/
/**
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen
* Please update the test case below to test the model.
*/
namespace Swagger\Client;
/**
* CapitalizationTest Class Doc Comment
*
* @category Class */
// * @description Capitalization
/**
* @package Swagger\Client
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
*/
class CapitalizationTest extends \PHPUnit_Framework_TestCase
{
/**
* Setup before running any test case
*/
public static function setUpBeforeClass()
{
}
/**
* Setup before running each test case
*/
public function setUp()
{
}
/**
* Clean up after running each test case
*/
public function tearDown()
{
}
/**
* Clean up after running all test cases
*/
public static function tearDownAfterClass()
{
}
/**
* Test "Capitalization"
*/
public function testCapitalization()
{
}
/**
* Test attribute "small_camel"
*/
public function testPropertySmallCamel()
{
}
/**
* Test attribute "capital_camel"
*/
public function testPropertyCapitalCamel()
{
}
/**
* Test attribute "small_snake"
*/
public function testPropertySmallSnake()
{
}
/**
* Test attribute "capital_snake"
*/
public function testPropertyCapitalSnake()
{
}
/**
* Test attribute "sca_eth_flow_points"
*/
public function testPropertyScaEthFlowPoints()
{
}
/**
* Test attribute "att_name"
*/
public function testPropertyAttName()
{
}
}