forked from Autodesk-Forge/forge-php-client
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- add support for misc in jobpayload
- Loading branch information
Showing
4 changed files
with
272 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# JobPayloadMisc | ||
|
||
## Properties | ||
Name | Type | Description | Notes | ||
------------ | ------------- | ------------- | ------------- | ||
**workflow** | **string** | call MD POST job endpoint to submit a job and specify a workflow id - [documentation](https://forge.autodesk.com/en/docs/webhooks/v1/tutorials/create-a-hook-model-derivative/) | [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) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,234 @@ | ||
<?php | ||
/** | ||
* JobPayloadMisc | ||
* | ||
* 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; | ||
|
||
/** | ||
* JobPayloadMisc Class Doc Comment | ||
* | ||
* @category Class | ||
* @description Group of miscs | ||
* @package Autodesk\Forge\Client | ||
* @author Swagger Codegen team | ||
* @link https://github.com/swagger-api/swagger-codegen | ||
*/ | ||
class JobPayloadMisc implements ArrayAccess | ||
{ | ||
const DISCRIMINATOR = null; | ||
|
||
/** | ||
* The original name of the model. | ||
* @var string | ||
*/ | ||
protected static $swaggerModelName = 'jobPayload_misc'; | ||
|
||
/** | ||
* Array of property to type mappings. Used for (de)serialization | ||
* @var string[] | ||
*/ | ||
protected static $swaggerTypes = [ | ||
'workflow' => 'string', | ||
]; | ||
|
||
/** | ||
* @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 = [ | ||
'workflow' => 'workflow', | ||
]; | ||
|
||
|
||
/** | ||
* Array of attributes to setter functions (for deserialization of responses) | ||
* @var string[] | ||
*/ | ||
protected static $setters = [ | ||
'workflow' => 'setWorkflow', | ||
]; | ||
|
||
|
||
/** | ||
* Array of attributes to getter functions (for serialization of requests) | ||
* @var string[] | ||
*/ | ||
protected static $getters = [ | ||
'workflow' => 'getWorkflow', | ||
]; | ||
|
||
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['workflow'] = isset($data['workflow']) ? $data['workflow'] : null; | ||
} | ||
|
||
/** | ||
* show all the invalid properties with reasons. | ||
* | ||
* @return array invalid properties with reasons | ||
*/ | ||
public function listInvalidProperties() | ||
{ | ||
$invalid_properties = []; | ||
|
||
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() | ||
{ | ||
|
||
return true; | ||
} | ||
|
||
|
||
/** | ||
* Gets urn | ||
* @return string | ||
*/ | ||
public function getWorkflow() | ||
{ | ||
return $this->container['workflow']; | ||
} | ||
|
||
/** | ||
* Sets workflow | ||
* @param call MD POST job endpoint to submit a job and specify a workflow id | ||
* @return $this | ||
*/ | ||
public function setWorkflow($urn) | ||
{ | ||
$this->container['workflow'] = $urn; | ||
|
||
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)); | ||
} | ||
} | ||
|
||
|