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

Fix #41 #42

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
1 change: 1 addition & 0 deletions docs/Model/JobPayload.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**input** | [**\Autodesk\Forge\Client\Model\JobPayloadInput**](JobPayloadInput.md) | | [optional]
**output** | [**\Autodesk\Forge\Client\Model\JobPayloadOutput**](JobPayloadOutput.md) | | [optional]
**misc** | [**\Autodesk\Forge\Client\Model\JobPayloadMisc**](JobPayloadMisc.md) | | [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)

Expand Down
11 changes: 11 additions & 0 deletions docs/Model/JobPayloadMisc.md
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)


26 changes: 26 additions & 0 deletions lib/Model/JobPayload.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ class JobPayload implements ArrayAccess
protected static $swaggerTypes = [
'input' => '\Autodesk\Forge\Client\Model\JobPayloadInput',
'output' => '\Autodesk\Forge\Client\Model\JobPayloadOutput',
'misc' => '\Autodesk\Forge\Client\Model\JobPayloadMisc',
];

/**
Expand All @@ -73,6 +74,7 @@ public static function swaggerTypes()
protected static $attributeMap = [
'input' => 'input',
'output' => 'output',
'misc' => 'misc',
];


Expand All @@ -83,6 +85,7 @@ public static function swaggerTypes()
protected static $setters = [
'input' => 'setInput',
'output' => 'setOutput',
'misc' => 'setMisc',
];


Expand All @@ -93,6 +96,7 @@ public static function swaggerTypes()
protected static $getters = [
'input' => 'getInput',
'output' => 'getOutput',
'misc' => 'getMisc',
];

public static function attributeMap()
Expand Down Expand Up @@ -128,6 +132,7 @@ public function __construct(array $data = null)
{
$this->container['input'] = isset($data['input']) ? $data['input'] : null;
$this->container['output'] = isset($data['output']) ? $data['output'] : null;
$this->container['misc'] = isset($data['misc']) ? $data['misc'] : null;
}

/**
Expand Down Expand Up @@ -196,6 +201,27 @@ public function setOutput($output)

return $this;
}

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

/**
* Sets misc
* @param \Autodesk\Forge\Client\Model\JobPayloadMisc $Misc
* @return $this
*/
public function setMisc($misc)
{
$this->container['misc'] = $misc;

return $this;
}
/**
* Returns true if offset exists. False otherwise.
* @param integer $offset Offset
Expand Down
234 changes: 234 additions & 0 deletions lib/Model/JobPayloadMisc.php
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));
}
}