Skip to content
This repository has been archived by the owner on Sep 17, 2024. It is now read-only.

Commit

Permalink
Update package and namespace according to the conventions & Update sw…
Browse files Browse the repository at this point in the history
…agger file
  • Loading branch information
bublili committed Apr 2, 2017
1 parent 82232ba commit 9ad3ad8
Show file tree
Hide file tree
Showing 7 changed files with 401 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ and [Design Automation](https://developer.autodesk.com/en/docs/design-automation

To install the bindings via [Composer](http://getcomposer.org/), run:
```
composer require autodesk-forge/client
composer require autodesk/forge-client
```

#### Manual Installation
Expand Down
2 changes: 1 addition & 1 deletion docs/Model/CreateItemData.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**type** | **string** | |
**attributes** | [**\Autodesk\Forge\Client\Model\CreateStorageDataAttributes**](CreateStorageDataAttributes.md) | | [optional]
**attributes** | [**\Autodesk\Forge\Client\Model\CreateItemDataAttributes**](CreateItemDataAttributes.md) | | [optional]
**relationships** | [**\Autodesk\Forge\Client\Model\CreateItemDataRelationships**](CreateItemDataRelationships.md) | | [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
11 changes: 11 additions & 0 deletions docs/Model/CreateItemDataAttributes.md
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)


6 changes: 3 additions & 3 deletions lib/Model/CreateItemData.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class CreateItemData implements ArrayAccess
*/
protected static $swaggerTypes = [
'type' => 'string',
'attributes' => '\Autodesk\Forge\Client\Model\CreateStorageDataAttributes',
'attributes' => '\Autodesk\Forge\Client\Model\CreateItemDataAttributes',
'relationships' => '\Autodesk\Forge\Client\Model\CreateItemDataRelationships',
];

Expand Down Expand Up @@ -214,7 +214,7 @@ public function setType($type)

/**
* Gets attributes
* @return \Autodesk\Forge\Client\Model\CreateStorageDataAttributes
* @return \Autodesk\Forge\Client\Model\CreateItemDataAttributes
*/
public function getAttributes()
{
Expand All @@ -223,7 +223,7 @@ public function getAttributes()

/**
* Sets attributes
* @param \Autodesk\Forge\Client\Model\CreateStorageDataAttributes $attributes
* @param \Autodesk\Forge\Client\Model\CreateItemDataAttributes $attributes
* @return $this
*/
public function setAttributes($attributes)
Expand Down
282 changes: 282 additions & 0 deletions lib/Model/CreateItemDataAttributes.php
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));
}
}


2 changes: 1 addition & 1 deletion lib/Model/PostBucketsPayload.php
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ public function getAllow()

/**
* Sets allow
* @param \Autodesk\Forge\Client\Model\PostBucketsPayloadAllow[] $allow
* @param \Autodesk\Forge\Client\Model\PostBucketsPayloadAllow[] $allow
* @return $this
*/
public function setAllow($allow)
Expand Down
Loading

0 comments on commit 9ad3ad8

Please sign in to comment.