This repository has been archived by the owner on Sep 17, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update package and namespace according to the conventions & Update sw…
…agger file
- Loading branch information
bublili
committed
Apr 2, 2017
1 parent
82232ba
commit 9ad3ad8
Showing
7 changed files
with
401 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# CreateItemDataAttributes | ||
|
||
## Properties | ||
Name | Type | Description | Notes | ||
------------ | ------------- | ------------- | ------------- | ||
**display_name** | **string** | | | ||
**extension** | [**\Autodesk\Forge\Client\Model\BaseAttributesExtensionObjectWithoutSchemaLink**](BaseAttributesExtensionObjectWithoutSchemaLink.md) | | | ||
|
||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,282 @@ | ||
<?php | ||
/** | ||
* CreateItemDataAttributes | ||
* | ||
* PHP version 5 | ||
* | ||
* @category Class | ||
* @package Autodesk\Forge\Client | ||
* @author Swaagger Codegen team | ||
* @link https://github.com/swagger-api/swagger-codegen | ||
*/ | ||
|
||
/** | ||
* Forge SDK | ||
* | ||
* The Forge Platform contains an expanding collection of web service components that can be used with Autodesk cloud-based products or your own technologies. Take advantage of Autodesk’s expertise in design and engineering. | ||
* | ||
* OpenAPI spec version: 0.1.0 | ||
* Contact: [email protected] | ||
* 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 Autodesk\Forge\Client\Model; | ||
|
||
use \ArrayAccess; | ||
|
||
/** | ||
* CreateItemDataAttributes Class Doc Comment | ||
* | ||
* @category Class | ||
* @package Autodesk\Forge\Client | ||
* @author Swagger Codegen team | ||
* @link https://github.com/swagger-api/swagger-codegen | ||
*/ | ||
class CreateItemDataAttributes implements ArrayAccess | ||
{ | ||
const DISCRIMINATOR = null; | ||
|
||
/** | ||
* The original name of the model. | ||
* @var string | ||
*/ | ||
protected static $swaggerModelName = 'create_item_data_attributes'; | ||
|
||
/** | ||
* Array of property to type mappings. Used for (de)serialization | ||
* @var string[] | ||
*/ | ||
protected static $swaggerTypes = [ | ||
'display_name' => 'string', | ||
'extension' => '\Autodesk\Forge\Client\Model\BaseAttributesExtensionObjectWithoutSchemaLink', | ||
]; | ||
|
||
/** | ||
* @return \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 = [ | ||
'display_name' => 'displayName', | ||
'extension' => 'extension', | ||
]; | ||
|
||
|
||
/** | ||
* Array of attributes to setter functions (for deserialization of responses) | ||
* @var string[] | ||
*/ | ||
protected static $setters = [ | ||
'display_name' => 'setDisplayName', | ||
'extension' => 'setExtension', | ||
]; | ||
|
||
|
||
/** | ||
* Array of attributes to getter functions (for serialization of requests) | ||
* @var string[] | ||
*/ | ||
protected static $getters = [ | ||
'display_name' => 'getDisplayName', | ||
'extension' => 'getExtension', | ||
]; | ||
|
||
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['display_name'] = isset($data['display_name']) ? $data['display_name'] : null; | ||
$this->container['extension'] = isset($data['extension']) ? $data['extension'] : null; | ||
} | ||
|
||
/** | ||
* show all the invalid properties with reasons. | ||
* | ||
* @return array invalid properties with reasons | ||
*/ | ||
public function listInvalidProperties() | ||
{ | ||
$invalid_properties = []; | ||
|
||
if ($this->container['display_name'] === null) { | ||
$invalid_properties[] = "'display_name' can't be null"; | ||
} | ||
if (!preg_match("/^.+$/", $this->container['display_name'])) { | ||
$invalid_properties[] = "invalid value for 'display_name', must be conform to the pattern /^.+$/."; | ||
} | ||
|
||
if ($this->container['extension'] === null) { | ||
$invalid_properties[] = "'extension' can't be null"; | ||
} | ||
return $invalid_properties; | ||
} | ||
|
||
/** | ||
* validate all the properties in the model | ||
* return true if all passed | ||
* | ||
* @return bool True if all properties are valid | ||
*/ | ||
public function valid() | ||
{ | ||
|
||
if ($this->container['display_name'] === null) { | ||
return false; | ||
} | ||
if (!preg_match("/^.+$/", $this->container['display_name'])) { | ||
return false; | ||
} | ||
if ($this->container['extension'] === null) { | ||
return false; | ||
} | ||
return true; | ||
} | ||
|
||
|
||
/** | ||
* Gets display_name | ||
* @return string | ||
*/ | ||
public function getDisplayName() | ||
{ | ||
return $this->container['display_name']; | ||
} | ||
|
||
/** | ||
* Sets display_name | ||
* @param string $display_name | ||
* @return $this | ||
*/ | ||
public function setDisplayName($display_name) | ||
{ | ||
|
||
if ((!preg_match("/^.+$/", $display_name))) { | ||
throw new \InvalidArgumentException("invalid value for $display_name when calling CreateItemDataAttributes., must conform to the pattern /^.+$/."); | ||
} | ||
|
||
$this->container['display_name'] = $display_name; | ||
|
||
return $this; | ||
} | ||
|
||
/** | ||
* Gets extension | ||
* @return \Autodesk\Forge\Client\Model\BaseAttributesExtensionObjectWithoutSchemaLink | ||
*/ | ||
public function getExtension() | ||
{ | ||
return $this->container['extension']; | ||
} | ||
|
||
/** | ||
* Sets extension | ||
* @param \Autodesk\Forge\Client\Model\BaseAttributesExtensionObjectWithoutSchemaLink $extension | ||
* @return $this | ||
*/ | ||
public function setExtension($extension) | ||
{ | ||
$this->container['extension'] = $extension; | ||
|
||
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(\Autodesk\Forge\Client\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); | ||
} | ||
|
||
return json_encode(\Autodesk\Forge\Client\ObjectSerializer::sanitizeForSerialization($this)); | ||
} | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.