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

Commit 4c876a7

Browse files
support more type and role
1 parent 0ab040d commit 4c876a7

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

lib/Model/ManifestChildren.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,7 @@ public function listInvalidProperties()
274274
if ($this->container['mime'] === null) {
275275
$invalid_properties[] = "'mime' can't be null";
276276
}
277+
277278
$allowed_values = ["pending", "inprogress", "success", "failed", "timeout", "partialsuccess"];
278279
if (!in_array($this->container['status'], $allowed_values)) {
279280
$invalid_properties[] = "invalid value for 'status', must be one of 'pending', 'inprogress', 'success', 'failed', 'timeout', 'partialsuccess'.";
@@ -332,9 +333,9 @@ public function getType()
332333
*/
333334
public function setType($type)
334335
{
335-
$allowed_values = array('resource', 'manifest', 'geometry', 'view');
336+
$allowed_values = array('resource', 'manifest', 'geometry', 'view', 'folder');
336337
if ((!in_array($type, $allowed_values))) {
337-
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'");
338339
}
339340
$this->container['type'] = $type;
340341

@@ -357,9 +358,9 @@ public function getRole()
357358
*/
358359
public function setRole($role)
359360
{
360-
$allowed_values = array('2d', '3d', 'graphics', 'manifest', 'thumbnail','Autodesk.CloudPlatform.PropertyDatabase');
361+
$allowed_values = array('2d', '3d', 'graphics', 'manifest', 'thumbnail','Autodesk.CloudPlatform.PropertyDatabase','viewable');
361362
if ((!in_array($role, $allowed_values))) {
362-
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'");
363364
}
364365
$this->container['role'] = $role;
365366

0 commit comments

Comments
 (0)