Skip to content
This repository was archived by the owner on Sep 17, 2024. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 31 additions & 4 deletions lib/Model/ManifestChildren.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ class ManifestChildren implements ArrayAccess
'resolution' => 'string[]',
'model_guid' => 'string',
'object_ids' => 'int[]',
'children' => '\Autodesk\Forge\Client\Model\ManifestChildren[]',
'messages' => '\Autodesk\Forge\Client\Model\Messages',
];

Expand Down Expand Up @@ -93,6 +94,7 @@ public static function swaggerTypes()
'resolution' => 'resolution',
'model_guid' => 'modelGUID',
'object_ids' => 'objectIds',
'children' => 'children',
'messages' => 'messages',
];

Expand All @@ -113,6 +115,7 @@ public static function swaggerTypes()
'resolution' => 'setResolution',
'model_guid' => 'setModelGuid',
'object_ids' => 'setObjectIds',
'children' => 'setChildren',
'messages' => 'setMessages',
];

Expand All @@ -133,6 +136,7 @@ public static function swaggerTypes()
'resolution' => 'getResolution',
'model_guid' => 'getModelGuid',
'object_ids' => 'getObjectIds',
'children' => 'getChildren',
'messages' => 'getMessages',
];

Expand Down Expand Up @@ -238,6 +242,7 @@ public function __construct(array $data = null)
$this->container['resolution'] = isset($data['resolution']) ? $data['resolution'] : null;
$this->container['model_guid'] = isset($data['model_guid']) ? $data['model_guid'] : null;
$this->container['object_ids'] = isset($data['object_ids']) ? $data['object_ids'] : null;
$this->container['children'] = isset($data['children']) ? $data['children'] : null;
$this->container['messages'] = isset($data['messages']) ? $data['messages'] : null;
}

Expand Down Expand Up @@ -269,6 +274,7 @@ public function listInvalidProperties()
if ($this->container['mime'] === null) {
$invalid_properties[] = "'mime' can't be null";
}

$allowed_values = ["pending", "inprogress", "success", "failed", "timeout", "partialsuccess"];
if (!in_array($this->container['status'], $allowed_values)) {
$invalid_properties[] = "invalid value for 'status', must be one of 'pending', 'inprogress', 'success', 'failed', 'timeout', 'partialsuccess'.";
Expand Down Expand Up @@ -327,9 +333,9 @@ public function getType()
*/
public function setType($type)
{
$allowed_values = array('resource', 'manifest', 'geometry', 'view');
$allowed_values = array('resource', 'manifest', 'geometry', 'view', 'folder');
if ((!in_array($type, $allowed_values))) {
throw new \InvalidArgumentException("Invalid value for 'type', must be one of 'resource', 'manifest', 'geometry', 'view'");
throw new \InvalidArgumentException("Invalid value for 'type', must be one of 'resource', 'manifest', 'geometry', 'view', 'folder'");
}
$this->container['type'] = $type;

Expand All @@ -352,9 +358,9 @@ public function getRole()
*/
public function setRole($role)
{
$allowed_values = array('2d', '3d', 'graphics', 'manifest', 'thumbnail');
$allowed_values = array('2d', '3d', 'graphics', 'manifest', 'thumbnail','Autodesk.CloudPlatform.PropertyDatabase','viewable');
if ((!in_array($role, $allowed_values))) {
throw new \InvalidArgumentException("Invalid value for 'role', must be one of '2d', '3d', 'graphics', 'manifest', 'thumbnail'");
throw new \InvalidArgumentException("Invalid value for 'role', must be one of '2d', '3d', 'graphics', 'manifest', 'thumbnail','Autodesk.CloudPlatform.PropertyDatabase','viewable'");
}
$this->container['role'] = $role;

Expand Down Expand Up @@ -584,6 +590,27 @@ public function offsetExists($offset)
return isset($this->container[$offset]);
}

/**
* Gets children
* @return \Autodesk\Forge\Client\Model\ManifestChildren[]
*/
public function getChildren()
{
return $this->container['children'];
}

/**
* Sets children
* @param \Autodesk\Forge\Client\Model\ManifestChildren[] $children
* @return $this
*/
public function setChildren($children)
{
$this->container['children'] = $children;

return $this;
}

/**
* Gets offset.
* @param integer $offset Offset
Expand Down