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

Commit 4ed85b2

Browse files
Merge pull request #15 from Autodesk-Forge/dev
manifest fix
2 parents b5962d9 + 72fff3f commit 4ed85b2

File tree

1 file changed

+31
-4
lines changed

1 file changed

+31
-4
lines changed

lib/Model/ManifestChildren.php

Lines changed: 31 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ class ManifestChildren implements ArrayAccess
6666
'resolution' => 'string[]',
6767
'model_guid' => 'string',
6868
'object_ids' => 'int[]',
69+
'children' => '\Autodesk\Forge\Client\Model\ManifestChildren[]',
6970
'messages' => '\Autodesk\Forge\Client\Model\Messages',
7071
];
7172

@@ -93,6 +94,7 @@ public static function swaggerTypes()
9394
'resolution' => 'resolution',
9495
'model_guid' => 'modelGUID',
9596
'object_ids' => 'objectIds',
97+
'children' => 'children',
9698
'messages' => 'messages',
9799
];
98100

@@ -113,6 +115,7 @@ public static function swaggerTypes()
113115
'resolution' => 'setResolution',
114116
'model_guid' => 'setModelGuid',
115117
'object_ids' => 'setObjectIds',
118+
'children' => 'setChildren',
116119
'messages' => 'setMessages',
117120
];
118121

@@ -133,6 +136,7 @@ public static function swaggerTypes()
133136
'resolution' => 'getResolution',
134137
'model_guid' => 'getModelGuid',
135138
'object_ids' => 'getObjectIds',
139+
'children' => 'getChildren',
136140
'messages' => 'getMessages',
137141
];
138142

@@ -238,6 +242,7 @@ public function __construct(array $data = null)
238242
$this->container['resolution'] = isset($data['resolution']) ? $data['resolution'] : null;
239243
$this->container['model_guid'] = isset($data['model_guid']) ? $data['model_guid'] : null;
240244
$this->container['object_ids'] = isset($data['object_ids']) ? $data['object_ids'] : null;
245+
$this->container['children'] = isset($data['children']) ? $data['children'] : null;
241246
$this->container['messages'] = isset($data['messages']) ? $data['messages'] : null;
242247
}
243248

@@ -269,6 +274,7 @@ public function listInvalidProperties()
269274
if ($this->container['mime'] === null) {
270275
$invalid_properties[] = "'mime' can't be null";
271276
}
277+
272278
$allowed_values = ["pending", "inprogress", "success", "failed", "timeout", "partialsuccess"];
273279
if (!in_array($this->container['status'], $allowed_values)) {
274280
$invalid_properties[] = "invalid value for 'status', must be one of 'pending', 'inprogress', 'success', 'failed', 'timeout', 'partialsuccess'.";
@@ -327,9 +333,9 @@ public function getType()
327333
*/
328334
public function setType($type)
329335
{
330-
$allowed_values = array('resource', 'manifest', 'geometry', 'view');
336+
$allowed_values = array('resource', 'manifest', 'geometry', 'view', 'folder');
331337
if ((!in_array($type, $allowed_values))) {
332-
throw new \InvalidArgumentException("Invalid value for 'type', must be one of 'resource', 'manifest', 'geometry', 'view'");
338+
throw new \InvalidArgumentException("Invalid value for 'type', must be one of 'resource', 'manifest', 'geometry', 'view', 'folder'");
333339
}
334340
$this->container['type'] = $type;
335341

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

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

593+
/**
594+
* Gets children
595+
* @return \Autodesk\Forge\Client\Model\ManifestChildren[]
596+
*/
597+
public function getChildren()
598+
{
599+
return $this->container['children'];
600+
}
601+
602+
/**
603+
* Sets children
604+
* @param \Autodesk\Forge\Client\Model\ManifestChildren[] $children
605+
* @return $this
606+
*/
607+
public function setChildren($children)
608+
{
609+
$this->container['children'] = $children;
610+
611+
return $this;
612+
}
613+
587614
/**
588615
* Gets offset.
589616
* @param integer $offset Offset

0 commit comments

Comments
 (0)