Skip to content

Commit f71dc52

Browse files
authored
Merge pull request #10 from shotstack/disk-settings
Add disk and cache. Update descriptions.
2 parents bd3f3fd + fb2ce0a commit f71dc52

29 files changed

+140
-48
lines changed

src/Api/EndpointsApi.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
/**
1313
* Shotstack
1414
*
15-
* 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
15+
* 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.
1616
*
1717
* The version of the OpenAPI document: v1
1818
*

src/ApiException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
/**
1313
* Shotstack
1414
*
15-
* 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
15+
* 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.
1616
*
1717
* The version of the OpenAPI document: v1
1818
*

src/Configuration.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
/**
1313
* Shotstack
1414
*
15-
* 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
15+
* 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.
1616
*
1717
* The version of the OpenAPI document: v1
1818
*

src/HeaderSelector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
/**
1313
* Shotstack
1414
*
15-
* 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
15+
* 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.
1616
*
1717
* The version of the OpenAPI document: v1
1818
*

src/Model/AudioAsset.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
/**
1414
* Shotstack
1515
*
16-
* 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
16+
* 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.
1717
*
1818
* The version of the OpenAPI document: v1
1919
*

src/Model/Clip.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
/**
1414
* Shotstack
1515
*
16-
* 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
16+
* 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.
1717
*
1818
* The version of the OpenAPI document: v1
1919
*
@@ -233,7 +233,6 @@ public function getModelName()
233233
const EFFECT_SLIDE_RIGHT = 'slideRight';
234234
const EFFECT_SLIDE_UP = 'slideUp';
235235
const EFFECT_SLIDE_DOWN = 'slideDown';
236-
const FILTER_BLUR = 'blur';
237236
const FILTER_BOOST = 'boost';
238237
const FILTER_CONTRAST = 'contrast';
239238
const FILTER_DARKEN = 'darken';
@@ -304,7 +303,6 @@ public function getEffectAllowableValues()
304303
public function getFilterAllowableValues()
305304
{
306305
return [
307-
self::FILTER_BLUR,
308306
self::FILTER_BOOST,
309307
self::FILTER_CONTRAST,
310308
self::FILTER_DARKEN,

src/Model/Crop.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
/**
1414
* Shotstack
1515
*
16-
* 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
16+
* 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.
1717
*
1818
* The version of the OpenAPI document: v1
1919
*

src/Model/Edit.php

Lines changed: 71 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
/**
1414
* Shotstack
1515
*
16-
* 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
16+
* 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.
1717
*
1818
* The version of the OpenAPI document: v1
1919
*
@@ -63,7 +63,8 @@ class Edit implements ModelInterface, ArrayAccess, \JsonSerializable
6363
protected static $openAPITypes = [
6464
'timeline' => '\Shotstack\Client\Model\Timeline',
6565
'output' => '\Shotstack\Client\Model\Output',
66-
'callback' => 'string'
66+
'callback' => 'string',
67+
'disk' => 'string'
6768
];
6869

6970
/**
@@ -76,7 +77,8 @@ class Edit implements ModelInterface, ArrayAccess, \JsonSerializable
7677
protected static $openAPIFormats = [
7778
'timeline' => null,
7879
'output' => null,
79-
'callback' => null
80+
'callback' => null,
81+
'disk' => null
8082
];
8183

8284
/**
@@ -108,7 +110,8 @@ public static function openAPIFormats()
108110
protected static $attributeMap = [
109111
'timeline' => 'timeline',
110112
'output' => 'output',
111-
'callback' => 'callback'
113+
'callback' => 'callback',
114+
'disk' => 'disk'
112115
];
113116

114117
/**
@@ -119,7 +122,8 @@ public static function openAPIFormats()
119122
protected static $setters = [
120123
'timeline' => 'setTimeline',
121124
'output' => 'setOutput',
122-
'callback' => 'setCallback'
125+
'callback' => 'setCallback',
126+
'disk' => 'setDisk'
123127
];
124128

125129
/**
@@ -130,7 +134,8 @@ public static function openAPIFormats()
130134
protected static $getters = [
131135
'timeline' => 'getTimeline',
132136
'output' => 'getOutput',
133-
'callback' => 'getCallback'
137+
'callback' => 'getCallback',
138+
'disk' => 'getDisk'
134139
];
135140

136141
/**
@@ -174,9 +179,24 @@ public function getModelName()
174179
return self::$openAPIModelName;
175180
}
176181

182+
const DISK_LOCAL = 'local';
183+
const DISK_MOUNT = 'mount';
177184

178185

179186

187+
/**
188+
* Gets allowable values of the enum
189+
*
190+
* @return string[]
191+
*/
192+
public function getDiskAllowableValues()
193+
{
194+
return [
195+
self::DISK_LOCAL,
196+
self::DISK_MOUNT,
197+
];
198+
}
199+
180200

181201
/**
182202
* Associative array for storing property values
@@ -196,6 +216,7 @@ public function __construct(array $data = null)
196216
$this->container['timeline'] = $data['timeline'] ?? null;
197217
$this->container['output'] = $data['output'] ?? null;
198218
$this->container['callback'] = $data['callback'] ?? null;
219+
$this->container['disk'] = $data['disk'] ?? 'local';
199220
}
200221

201222
/**
@@ -213,6 +234,15 @@ public function listInvalidProperties()
213234
if ($this->container['output'] === null) {
214235
$invalidProperties[] = "'output' can't be null";
215236
}
237+
$allowedValues = $this->getDiskAllowableValues();
238+
if (!is_null($this->container['disk']) && !in_array($this->container['disk'], $allowedValues, true)) {
239+
$invalidProperties[] = sprintf(
240+
"invalid value '%s' for 'disk', must be one of '%s'",
241+
$this->container['disk'],
242+
implode("', '", $allowedValues)
243+
);
244+
}
245+
216246
return $invalidProperties;
217247
}
218248

@@ -289,7 +319,7 @@ public function getCallback()
289319
/**
290320
* Sets callback
291321
*
292-
* @param string|null $callback An optional webhook callback URL used to receive status notifications when a render completes or fails.
322+
* @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.
293323
*
294324
* @return self
295325
*/
@@ -299,6 +329,40 @@ public function setCallback($callback)
299329

300330
return $this;
301331
}
332+
333+
/**
334+
* Gets disk
335+
*
336+
* @return string|null
337+
*/
338+
public function getDisk()
339+
{
340+
return $this->container['disk'];
341+
}
342+
343+
/**
344+
* Sets disk
345+
*
346+
* @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>
347+
*
348+
* @return self
349+
*/
350+
public function setDisk($disk)
351+
{
352+
$allowedValues = $this->getDiskAllowableValues();
353+
if (!is_null($disk) && !in_array($disk, $allowedValues, true)) {
354+
throw new \InvalidArgumentException(
355+
sprintf(
356+
"Invalid value '%s' for 'disk', must be one of '%s'",
357+
$disk,
358+
implode("', '", $allowedValues)
359+
)
360+
);
361+
}
362+
$this->container['disk'] = $disk;
363+
364+
return $this;
365+
}
302366
/**
303367
* Returns true if offset exists. False otherwise.
304368
*

src/Model/Font.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
/**
1414
* Shotstack
1515
*
16-
* 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
16+
* 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.
1717
*
1818
* The version of the OpenAPI document: v1
1919
*
@@ -36,7 +36,7 @@
3636
* Font Class Doc Comment
3737
*
3838
* @category Class
39-
* @description Download a custom font to use with the HTML asset type, using the font name in the CSS or font tag.
39+
* @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.
4040
* @package Shotstack\Client
4141
* @author OpenAPI Generator team
4242
* @link https://openapi-generator.tech

src/Model/HtmlAsset.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
/**
1414
* Shotstack
1515
*
16-
* 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
16+
* 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.
1717
*
1818
* The version of the OpenAPI document: v1
1919
*
@@ -327,7 +327,7 @@ public function getHtml()
327327
/**
328328
* Sets html
329329
*
330-
* @param string $html The HTML text string.
330+
* @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).
331331
*
332332
* @return self
333333
*/
@@ -351,7 +351,7 @@ public function getCss()
351351
/**
352352
* Sets css
353353
*
354-
* @param string|null $css The CSS text string to apply styling to the HTML.
354+
* @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).
355355
*
356356
* @return self
357357
*/
@@ -375,7 +375,7 @@ public function getWidth()
375375
/**
376376
* Sets width
377377
*
378-
* @param int|null $width Set the width of the HTML asset bounding box. Text will wrap to fill the bounding box.
378+
* @param int|null $width Set the width of the HTML asset bounding box in pixels. Text will wrap to fill the bounding box.
379379
*
380380
* @return self
381381
*/
@@ -399,7 +399,7 @@ public function getHeight()
399399
/**
400400
* Sets height
401401
*
402-
* @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.
402+
* @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.
403403
*
404404
* @return self
405405
*/

0 commit comments

Comments
 (0)