Skip to content

Commit

Permalink
Merge pull request shotstack#10 from shotstack/disk-settings
Browse files Browse the repository at this point in the history
Add disk and cache. Update descriptions.
  • Loading branch information
jeffski authored Mar 2, 2021
2 parents bd3f3fd + fb2ce0a commit f71dc52
Show file tree
Hide file tree
Showing 29 changed files with 140 additions and 48 deletions.
2 changes: 1 addition & 1 deletion src/Api/EndpointsApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
/**
* Shotstack
*
* The Shotstack API is a video editing service that allows for the automated creation of videos using JSON. You can configure an edit and POST it to the Shotstack API which will render your video and provide a file location when complete. For more details check https://shotstack.io
* The Shotstack API is a video editing service that allows for the automated creation of videos using JSON. You can configure an edit and POST it to the Shotstack API which will render your video and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.gitbook.io/docs/guides/getting-started) documentation.
*
* The version of the OpenAPI document: v1
*
Expand Down
2 changes: 1 addition & 1 deletion src/ApiException.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
/**
* Shotstack
*
* The Shotstack API is a video editing service that allows for the automated creation of videos using JSON. You can configure an edit and POST it to the Shotstack API which will render your video and provide a file location when complete. For more details check https://shotstack.io
* The Shotstack API is a video editing service that allows for the automated creation of videos using JSON. You can configure an edit and POST it to the Shotstack API which will render your video and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.gitbook.io/docs/guides/getting-started) documentation.
*
* The version of the OpenAPI document: v1
*
Expand Down
2 changes: 1 addition & 1 deletion src/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
/**
* Shotstack
*
* The Shotstack API is a video editing service that allows for the automated creation of videos using JSON. You can configure an edit and POST it to the Shotstack API which will render your video and provide a file location when complete. For more details check https://shotstack.io
* The Shotstack API is a video editing service that allows for the automated creation of videos using JSON. You can configure an edit and POST it to the Shotstack API which will render your video and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.gitbook.io/docs/guides/getting-started) documentation.
*
* The version of the OpenAPI document: v1
*
Expand Down
2 changes: 1 addition & 1 deletion src/HeaderSelector.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
/**
* Shotstack
*
* The Shotstack API is a video editing service that allows for the automated creation of videos using JSON. You can configure an edit and POST it to the Shotstack API which will render your video and provide a file location when complete. For more details check https://shotstack.io
* The Shotstack API is a video editing service that allows for the automated creation of videos using JSON. You can configure an edit and POST it to the Shotstack API which will render your video and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.gitbook.io/docs/guides/getting-started) documentation.
*
* The version of the OpenAPI document: v1
*
Expand Down
2 changes: 1 addition & 1 deletion src/Model/AudioAsset.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
/**
* Shotstack
*
* The Shotstack API is a video editing service that allows for the automated creation of videos using JSON. You can configure an edit and POST it to the Shotstack API which will render your video and provide a file location when complete. For more details check https://shotstack.io
* The Shotstack API is a video editing service that allows for the automated creation of videos using JSON. You can configure an edit and POST it to the Shotstack API which will render your video and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.gitbook.io/docs/guides/getting-started) documentation.
*
* The version of the OpenAPI document: v1
*
Expand Down
4 changes: 1 addition & 3 deletions src/Model/Clip.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
/**
* Shotstack
*
* The Shotstack API is a video editing service that allows for the automated creation of videos using JSON. You can configure an edit and POST it to the Shotstack API which will render your video and provide a file location when complete. For more details check https://shotstack.io
* The Shotstack API is a video editing service that allows for the automated creation of videos using JSON. You can configure an edit and POST it to the Shotstack API which will render your video and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.gitbook.io/docs/guides/getting-started) documentation.
*
* The version of the OpenAPI document: v1
*
Expand Down Expand Up @@ -233,7 +233,6 @@ public function getModelName()
const EFFECT_SLIDE_RIGHT = 'slideRight';
const EFFECT_SLIDE_UP = 'slideUp';
const EFFECT_SLIDE_DOWN = 'slideDown';
const FILTER_BLUR = 'blur';
const FILTER_BOOST = 'boost';
const FILTER_CONTRAST = 'contrast';
const FILTER_DARKEN = 'darken';
Expand Down Expand Up @@ -304,7 +303,6 @@ public function getEffectAllowableValues()
public function getFilterAllowableValues()
{
return [
self::FILTER_BLUR,
self::FILTER_BOOST,
self::FILTER_CONTRAST,
self::FILTER_DARKEN,
Expand Down
2 changes: 1 addition & 1 deletion src/Model/Crop.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
/**
* Shotstack
*
* The Shotstack API is a video editing service that allows for the automated creation of videos using JSON. You can configure an edit and POST it to the Shotstack API which will render your video and provide a file location when complete. For more details check https://shotstack.io
* The Shotstack API is a video editing service that allows for the automated creation of videos using JSON. You can configure an edit and POST it to the Shotstack API which will render your video and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.gitbook.io/docs/guides/getting-started) documentation.
*
* The version of the OpenAPI document: v1
*
Expand Down
78 changes: 71 additions & 7 deletions src/Model/Edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
/**
* Shotstack
*
* The Shotstack API is a video editing service that allows for the automated creation of videos using JSON. You can configure an edit and POST it to the Shotstack API which will render your video and provide a file location when complete. For more details check https://shotstack.io
* The Shotstack API is a video editing service that allows for the automated creation of videos using JSON. You can configure an edit and POST it to the Shotstack API which will render your video and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.gitbook.io/docs/guides/getting-started) documentation.
*
* The version of the OpenAPI document: v1
*
Expand Down Expand Up @@ -63,7 +63,8 @@ class Edit implements ModelInterface, ArrayAccess, \JsonSerializable
protected static $openAPITypes = [
'timeline' => '\Shotstack\Client\Model\Timeline',
'output' => '\Shotstack\Client\Model\Output',
'callback' => 'string'
'callback' => 'string',
'disk' => 'string'
];

/**
Expand All @@ -76,7 +77,8 @@ class Edit implements ModelInterface, ArrayAccess, \JsonSerializable
protected static $openAPIFormats = [
'timeline' => null,
'output' => null,
'callback' => null
'callback' => null,
'disk' => null
];

/**
Expand Down Expand Up @@ -108,7 +110,8 @@ public static function openAPIFormats()
protected static $attributeMap = [
'timeline' => 'timeline',
'output' => 'output',
'callback' => 'callback'
'callback' => 'callback',
'disk' => 'disk'
];

/**
Expand All @@ -119,7 +122,8 @@ public static function openAPIFormats()
protected static $setters = [
'timeline' => 'setTimeline',
'output' => 'setOutput',
'callback' => 'setCallback'
'callback' => 'setCallback',
'disk' => 'setDisk'
];

/**
Expand All @@ -130,7 +134,8 @@ public static function openAPIFormats()
protected static $getters = [
'timeline' => 'getTimeline',
'output' => 'getOutput',
'callback' => 'getCallback'
'callback' => 'getCallback',
'disk' => 'getDisk'
];

/**
Expand Down Expand Up @@ -174,9 +179,24 @@ public function getModelName()
return self::$openAPIModelName;
}

const DISK_LOCAL = 'local';
const DISK_MOUNT = 'mount';



/**
* Gets allowable values of the enum
*
* @return string[]
*/
public function getDiskAllowableValues()
{
return [
self::DISK_LOCAL,
self::DISK_MOUNT,
];
}


/**
* Associative array for storing property values
Expand All @@ -196,6 +216,7 @@ public function __construct(array $data = null)
$this->container['timeline'] = $data['timeline'] ?? null;
$this->container['output'] = $data['output'] ?? null;
$this->container['callback'] = $data['callback'] ?? null;
$this->container['disk'] = $data['disk'] ?? 'local';
}

/**
Expand All @@ -213,6 +234,15 @@ public function listInvalidProperties()
if ($this->container['output'] === null) {
$invalidProperties[] = "'output' can't be null";
}
$allowedValues = $this->getDiskAllowableValues();
if (!is_null($this->container['disk']) && !in_array($this->container['disk'], $allowedValues, true)) {
$invalidProperties[] = sprintf(
"invalid value '%s' for 'disk', must be one of '%s'",
$this->container['disk'],
implode("', '", $allowedValues)
);
}

return $invalidProperties;
}

Expand Down Expand Up @@ -289,7 +319,7 @@ public function getCallback()
/**
* Sets callback
*
* @param string|null $callback An optional webhook callback URL used to receive status notifications when a render completes or fails.
* @param string|null $callback An optional webhook callback URL used to receive status notifications when a render completes or fails. See [webhooks](https://shotstack.gitbook.io/docs/guides/architecting-an-application/webhooks) for more details.
*
* @return self
*/
Expand All @@ -299,6 +329,40 @@ public function setCallback($callback)

return $this;
}

/**
* Gets disk
*
* @return string|null
*/
public function getDisk()
{
return $this->container['disk'];
}

/**
* Sets disk
*
* @param string|null $disk The disk type to use for storing footage and assets for each render. See [disk types](https://shotstack.gitbook.io/docs/guides/architecting-an-application/disk-types) for more details. <ul> <li>`local` - optimised for high speed rendering with up to 512MB storage</li> <li>`mount` - optimised for larger file sizes and longer videos with 5GB for source footage and 512MB for output render</li> </ul>
*
* @return self
*/
public function setDisk($disk)
{
$allowedValues = $this->getDiskAllowableValues();
if (!is_null($disk) && !in_array($disk, $allowedValues, true)) {
throw new \InvalidArgumentException(
sprintf(
"Invalid value '%s' for 'disk', must be one of '%s'",
$disk,
implode("', '", $allowedValues)
)
);
}
$this->container['disk'] = $disk;

return $this;
}
/**
* Returns true if offset exists. False otherwise.
*
Expand Down
4 changes: 2 additions & 2 deletions src/Model/Font.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
/**
* Shotstack
*
* The Shotstack API is a video editing service that allows for the automated creation of videos using JSON. You can configure an edit and POST it to the Shotstack API which will render your video and provide a file location when complete. For more details check https://shotstack.io
* The Shotstack API is a video editing service that allows for the automated creation of videos using JSON. You can configure an edit and POST it to the Shotstack API which will render your video and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.gitbook.io/docs/guides/getting-started) documentation.
*
* The version of the OpenAPI document: v1
*
Expand All @@ -36,7 +36,7 @@
* Font Class Doc Comment
*
* @category Class
* @description Download a custom font to use with the HTML asset type, using the font name in the CSS or font tag.
* @description Download a custom font to use with the HTML asset type, using the font name in the CSS or font tag. See our [custom fonts](https://shotstack.io/learn/html-custom-fonts/) getting started guide for more details.
* @package Shotstack\Client
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
Expand Down
10 changes: 5 additions & 5 deletions src/Model/HtmlAsset.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
/**
* Shotstack
*
* The Shotstack API is a video editing service that allows for the automated creation of videos using JSON. You can configure an edit and POST it to the Shotstack API which will render your video and provide a file location when complete. For more details check https://shotstack.io
* The Shotstack API is a video editing service that allows for the automated creation of videos using JSON. You can configure an edit and POST it to the Shotstack API which will render your video and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.gitbook.io/docs/guides/getting-started) documentation.
*
* The version of the OpenAPI document: v1
*
Expand Down Expand Up @@ -327,7 +327,7 @@ public function getHtml()
/**
* Sets html
*
* @param string $html The HTML text string.
* @param string $html The HTML text string. See list of [supported HTML tags](https://shotstack.gitbook.io/docs/guides/architecting-an-application/html-support#supported-html-tags).
*
* @return self
*/
Expand All @@ -351,7 +351,7 @@ public function getCss()
/**
* Sets css
*
* @param string|null $css The CSS text string to apply styling to the HTML.
* @param string|null $css The CSS text string to apply styling to the HTML. See list of [support CSS properties](https://shotstack.gitbook.io/docs/guides/architecting-an-application/html-support#supported-html-tags).
*
* @return self
*/
Expand All @@ -375,7 +375,7 @@ public function getWidth()
/**
* Sets width
*
* @param int|null $width Set the width of the HTML asset bounding box. Text will wrap to fill the bounding box.
* @param int|null $width Set the width of the HTML asset bounding box in pixels. Text will wrap to fill the bounding box.
*
* @return self
*/
Expand All @@ -399,7 +399,7 @@ public function getHeight()
/**
* Sets height
*
* @param int|null $height Set the width of the HTML asset bounding box. Text and elements will be masked if they exceed the height of the bounding box.
* @param int|null $height Set the width of the HTML asset bounding box in pixels. Text and elements will be masked if they exceed the height of the bounding box.
*
* @return self
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Model/ImageAsset.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
/**
* Shotstack
*
* The Shotstack API is a video editing service that allows for the automated creation of videos using JSON. You can configure an edit and POST it to the Shotstack API which will render your video and provide a file location when complete. For more details check https://shotstack.io
* The Shotstack API is a video editing service that allows for the automated creation of videos using JSON. You can configure an edit and POST it to the Shotstack API which will render your video and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.gitbook.io/docs/guides/getting-started) documentation.
*
* The version of the OpenAPI document: v1
*
Expand Down
2 changes: 1 addition & 1 deletion src/Model/LumaAsset.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
/**
* Shotstack
*
* The Shotstack API is a video editing service that allows for the automated creation of videos using JSON. You can configure an edit and POST it to the Shotstack API which will render your video and provide a file location when complete. For more details check https://shotstack.io
* The Shotstack API is a video editing service that allows for the automated creation of videos using JSON. You can configure an edit and POST it to the Shotstack API which will render your video and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.gitbook.io/docs/guides/getting-started) documentation.
*
* The version of the OpenAPI document: v1
*
Expand Down
2 changes: 1 addition & 1 deletion src/Model/ModelInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
/**
* Shotstack
*
* The Shotstack API is a video editing service that allows for the automated creation of videos using JSON. You can configure an edit and POST it to the Shotstack API which will render your video and provide a file location when complete. For more details check https://shotstack.io
* The Shotstack API is a video editing service that allows for the automated creation of videos using JSON. You can configure an edit and POST it to the Shotstack API which will render your video and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.gitbook.io/docs/guides/getting-started) documentation.
*
* The version of the OpenAPI document: v1
*
Expand Down
2 changes: 1 addition & 1 deletion src/Model/Offset.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
/**
* Shotstack
*
* The Shotstack API is a video editing service that allows for the automated creation of videos using JSON. You can configure an edit and POST it to the Shotstack API which will render your video and provide a file location when complete. For more details check https://shotstack.io
* The Shotstack API is a video editing service that allows for the automated creation of videos using JSON. You can configure an edit and POST it to the Shotstack API which will render your video and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.gitbook.io/docs/guides/getting-started) documentation.
*
* The version of the OpenAPI document: v1
*
Expand Down
4 changes: 2 additions & 2 deletions src/Model/Output.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
/**
* Shotstack
*
* The Shotstack API is a video editing service that allows for the automated creation of videos using JSON. You can configure an edit and POST it to the Shotstack API which will render your video and provide a file location when complete. For more details check https://shotstack.io
* The Shotstack API is a video editing service that allows for the automated creation of videos using JSON. You can configure an edit and POST it to the Shotstack API which will render your video and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.gitbook.io/docs/guides/getting-started) documentation.
*
* The version of the OpenAPI document: v1
*
Expand Down Expand Up @@ -517,7 +517,7 @@ public function getFps()
/**
* Sets fps
*
* @param int|null $fps Override the default frames per second. Useful for when the source footage is recorded at 30fps, i.e. on mobile devices. Lower frame rates can be used to add cinematic quality (24fps) or to create smaller file size/faster render times or animated gifs (12 or 15fps). Default is 25fps. <ul> <li>`12` - 12fps</li> <li>`15` - 15fps</li> <li>`24` - 24fps</li> <li>`25` - 25fps</li> <li>`30` - 30fps</li> </ul>
* @param int|null $fps Override the default frames per second. Useful for when the source footage is recorded at 30fps, i.e. on mobile devices. Lower frame rates can be used to add cinematic quality (24fps) or to create smaller file size/faster render times or animated gifs (12 or 15fps). Default is 25fps. <ul> <li>`12` - 12fps</li> <li>`15` - 15fps</li> <li>`24` - 24fps</li> <li>`25` - 25fps</li> <li>`30` - 30fps</li> </ul>
*
* @return self
*/
Expand Down
Loading

0 comments on commit f71dc52

Please sign in to comment.