Skip to content
This repository was archived by the owner on Sep 17, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
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
15 changes: 9 additions & 6 deletions lib/Model/JobPayloadItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ public static function getters()
const TYPE_STEP = 'step';
const TYPE_IGES = 'iges';
const TYPE_OBJ = 'obj';
const TYPE_IFC = 'ifc';
const VIEWS__2D = '2d';
const VIEWS__3D = '3d';

Expand All @@ -139,6 +140,8 @@ public function getTypeAllowableValues()
self::TYPE_STEP,
self::TYPE_IGES,
self::TYPE_OBJ,
self::TYPE_IFC,

];
}

Expand Down Expand Up @@ -184,9 +187,9 @@ public function listInvalidProperties()
if ($this->container['type'] === null) {
$invalid_properties[] = "'type' can't be null";
}
$allowed_values = ["svf", "thumbnail", "stl", "step", "iges", "obj"];
$allowed_values = ["svf", "thumbnail", "stl", "step", "iges", "obj", "ifc"];
if (!in_array($this->container['type'], $allowed_values)) {
$invalid_properties[] = "invalid value for 'type', must be one of 'svf', 'thumbnail', 'stl', 'step', 'iges', 'obj'.";
$invalid_properties[] = "invalid value for 'type', must be one of 'svf', 'thumbnail', 'stl', 'step', 'iges', 'obj', 'ifc'.";
}

return $invalid_properties;
Expand All @@ -204,7 +207,7 @@ public function valid()
if ($this->container['type'] === null) {
return false;
}
$allowed_values = ["svf", "thumbnail", "stl", "step", "iges", "obj"];
$allowed_values = ["svf", "thumbnail", "stl", "step", "iges", "obj", "ifc"];
if (!in_array($this->container['type'], $allowed_values)) {
return false;
}
Expand All @@ -223,14 +226,14 @@ public function getType()

/**
* Sets type
* @param string $type The requested output types. Possible values include `svf`, `thumbnai`, `stl`, `step`, `iges`, or `obj`. For a list of supported types, call the [GET formats](https://developer.autodesk.com/en/docs/model-derivative/v2/reference/http/formats-GET) endpoint.
* @param string $type The requested output types. Possible values include `svf`, `thumbnai`, `stl`, `step`, `iges`, 'ifc', or `obj`. For a list of supported types, call the [GET formats](https://developer.autodesk.com/en/docs/model-derivative/v2/reference/http/formats-GET) endpoint.
* @return $this
*/
public function setType($type)
{
$allowed_values = array('svf', 'thumbnail', 'stl', 'step', 'iges', 'obj');
$allowed_values = array('svf', 'thumbnail', 'stl', 'step', 'iges', 'obj', 'ifc');
if ((!in_array($type, $allowed_values))) {
throw new \InvalidArgumentException("Invalid value for 'type', must be one of 'svf', 'thumbnail', 'stl', 'step', 'iges', 'obj'");
throw new \InvalidArgumentException("Invalid value for 'type', must be one of 'svf', 'thumbnail', 'stl', 'step', 'iges', 'obj','ifc' ");
}
$this->container['type'] = $type;

Expand Down
10 changes: 6 additions & 4 deletions lib/Model/ManifestChildren.php
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ public static function getters()
const TYPE_VIEW = 'view';
const ROLE__2D = '2d';
const ROLE__3D = '3d';
const ROLE__IFC = 'ifc';
const ROLE_GRAPHICS = 'graphics';
const ROLE_MANIFEST = 'manifest';
const ROLE_THUMBNAIL = 'thumbnail';
Expand Down Expand Up @@ -196,6 +197,7 @@ public function getRoleAllowableValues()
return [
self::ROLE__2D,
self::ROLE__3D,
self::ROLE__IFC,
self::ROLE_GRAPHICS,
self::ROLE_MANIFEST,
self::ROLE_THUMBNAIL,
Expand Down Expand Up @@ -266,9 +268,9 @@ public function listInvalidProperties()
if ($this->container['role'] === null) {
$invalid_properties[] = "'role' can't be null";
}
$allowed_values = ["2d", "3d", "graphics", "manifest", "thumbnail"];
$allowed_values = ["2d", "3d", "graphics", "manifest", "thumbnail", "ifc"];
if (!in_array($this->container['role'], $allowed_values)) {
$invalid_properties[] = "invalid value for 'role', must be one of '2d', '3d', 'graphics', 'manifest', 'thumbnail'.";
$invalid_properties[] = "invalid value for 'role', must be one of '2d', '3d', 'graphics', 'manifest', 'thumbnail', 'ifc'.";
}

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

Expand Down
12 changes: 7 additions & 5 deletions lib/Model/ManifestDerivative.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ public static function getters()
const OUTPUT_TYPE_IGES = 'iges';
const OUTPUT_TYPE_OBJ = 'obj';
const OUTPUT_TYPE_SVF = 'svf';
const OUTPUT_TYPE_IFC = 'ifc';
const OUTPUT_TYPE_THUMBNAIL = 'thumbnail';
const STATUS_PENDING = 'pending';
const STATUS_INPROGRESS = 'inprogress';
Expand All @@ -154,6 +155,7 @@ public function getOutputTypeAllowableValues()
self::OUTPUT_TYPE_IGES,
self::OUTPUT_TYPE_OBJ,
self::OUTPUT_TYPE_SVF,
self::OUTPUT_TYPE_IFC,
self::OUTPUT_TYPE_THUMBNAIL,
];
}
Expand Down Expand Up @@ -210,9 +212,9 @@ public function listInvalidProperties()
if ($this->container['has_thumbnail'] === null) {
$invalid_properties[] = "'has_thumbnail' can't be null";
}
$allowed_values = ["stl", "step", "iges", "obj", "svf", "thumbnail"];
$allowed_values = ["stl", "step", "iges", "obj", "svf", "thumbnail", "ifc"];
if (!in_array($this->container['output_type'], $allowed_values)) {
$invalid_properties[] = "invalid value for 'output_type', must be one of 'stl', 'step', 'iges', 'obj', 'svf', 'thumbnail'.";
$invalid_properties[] = "invalid value for 'output_type', must be one of 'stl', 'step', 'iges', 'obj', 'svf', 'thumbnail', 'ifc'.";
}

if ($this->container['progress'] === null) {
Expand Down Expand Up @@ -247,7 +249,7 @@ public function valid()
if ($this->container['has_thumbnail'] === null) {
return false;
}
$allowed_values = ["stl", "step", "iges", "obj", "svf", "thumbnail"];
$allowed_values = ["stl", "step", "iges", "obj", "svf", "thumbnail", "ifc"];
if (!in_array($this->container['output_type'], $allowed_values)) {
return false;
}
Expand Down Expand Up @@ -326,9 +328,9 @@ public function getOutputType()
*/
public function setOutputType($output_type)
{
$allowed_values = array('stl', 'step', 'iges', 'obj', 'svf', 'thumbnail');
$allowed_values = array('stl', 'step', 'iges', 'obj', 'svf', 'thumbnail', 'ifc');
if (!is_null($output_type) && (!in_array($output_type, $allowed_values))) {
throw new \InvalidArgumentException("Invalid value for 'output_type', must be one of 'stl', 'step', 'iges', 'obj', 'svf', 'thumbnail'");
throw new \InvalidArgumentException("Invalid value for 'output_type', must be one of 'stl', 'step', 'iges', 'obj', 'svf', 'thumbnail', 'ifc'");
}
$this->container['output_type'] = $output_type;

Expand Down