Skip to content
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
2 changes: 2 additions & 0 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ MuxPhp/Models/Asset.php
MuxPhp/Models/AssetErrors.php
MuxPhp/Models/AssetGeneratedSubtitleSettings.php
MuxPhp/Models/AssetMaster.php
MuxPhp/Models/AssetMetadata.php
MuxPhp/Models/AssetNonStandardInputReasons.php
MuxPhp/Models/AssetRecordingTimes.php
MuxPhp/Models/AssetResponse.php
Expand Down Expand Up @@ -205,6 +206,7 @@ docs/Model/Asset.md
docs/Model/AssetErrors.md
docs/Model/AssetGeneratedSubtitleSettings.md
docs/Model/AssetMaster.md
docs/Model/AssetMetadata.md
docs/Model/AssetNonStandardInputReasons.md
docs/Model/AssetRecordingTimes.md
docs/Model/AssetResponse.md
Expand Down
4 changes: 2 additions & 2 deletions MuxPhp/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ class Configuration
*
* @var string
*/
protected $userAgent = 'Mux PHP | 4.0.0';
protected $userAgent = 'Mux PHP | 5.0.0';

/**
* Debug switch (default set to false)
Expand Down Expand Up @@ -400,7 +400,7 @@ public static function toDebugReport()
$report .= ' OS: ' . php_uname() . PHP_EOL;
$report .= ' PHP Version: ' . PHP_VERSION . PHP_EOL;
$report .= ' The version of the OpenAPI document: v1' . PHP_EOL;
$report .= ' SDK Package Version: 4.0.0' . PHP_EOL;
$report .= ' SDK Package Version: 5.0.0' . PHP_EOL;
$report .= ' Temp Folder Path: ' . self::getDefaultConfiguration()->getTempFolderPath() . PHP_EOL;

return $report;
Expand Down
50 changes: 43 additions & 7 deletions MuxPhp/Models/Asset.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@ class Asset implements ModelInterface, ArrayAccess, \JsonSerializable
'recording_times' => '\MuxPhp\Models\AssetRecordingTimes[]',
'non_standard_input_reasons' => '\MuxPhp\Models\AssetNonStandardInputReasons',
'test' => 'bool',
'ingest_type' => 'string'
'ingest_type' => 'string',
'meta' => '\MuxPhp\Models\AssetMetadata'
];

/**
Expand Down Expand Up @@ -127,7 +128,8 @@ class Asset implements ModelInterface, ArrayAccess, \JsonSerializable
'recording_times' => null,
'non_standard_input_reasons' => null,
'test' => 'boolean',
'ingest_type' => null
'ingest_type' => null,
'meta' => null
];

/**
Expand Down Expand Up @@ -164,7 +166,8 @@ class Asset implements ModelInterface, ArrayAccess, \JsonSerializable
'recording_times' => false,
'non_standard_input_reasons' => false,
'test' => false,
'ingest_type' => false
'ingest_type' => false,
'meta' => false
];

/**
Expand Down Expand Up @@ -271,7 +274,8 @@ public function isNullableSetToNull(string $property): bool
'recording_times' => 'recording_times',
'non_standard_input_reasons' => 'non_standard_input_reasons',
'test' => 'test',
'ingest_type' => 'ingest_type'
'ingest_type' => 'ingest_type',
'meta' => 'meta'
];

/**
Expand Down Expand Up @@ -308,7 +312,8 @@ public function isNullableSetToNull(string $property): bool
'recording_times' => 'setRecordingTimes',
'non_standard_input_reasons' => 'setNonStandardInputReasons',
'test' => 'setTest',
'ingest_type' => 'setIngestType'
'ingest_type' => 'setIngestType',
'meta' => 'setMeta'
];

/**
Expand Down Expand Up @@ -345,7 +350,8 @@ public function isNullableSetToNull(string $property): bool
'recording_times' => 'getRecordingTimes',
'non_standard_input_reasons' => 'getNonStandardInputReasons',
'test' => 'getTest',
'ingest_type' => 'getIngestType'
'ingest_type' => 'getIngestType',
'meta' => 'getMeta'
];

/**
Expand Down Expand Up @@ -604,6 +610,7 @@ public function __construct(array $data = null)
$this->setIfExists('non_standard_input_reasons', $data ?? [], null);
$this->setIfExists('test', $data ?? [], null);
$this->setIfExists('ingest_type', $data ?? [], null);
$this->setIfExists('meta', $data ?? [], null);
}

/**
Expand Down Expand Up @@ -1301,7 +1308,7 @@ public function getPassthrough()
/**
* Sets passthrough
*
* @param string|null $passthrough Arbitrary user-supplied metadata set for the asset. Max 255 characters.
* @param string|null $passthrough You can set this field to anything you want. It will be included in the asset details and related webhooks. If you're looking for more structured metadata, such as `title` or `external_id` , you can use the `meta` object instead. **Max: 255 characters**.
*
* @return self
*/
Expand Down Expand Up @@ -1667,6 +1674,35 @@ public function setIngestType($ingest_type)

return $this;
}

/**
* Gets meta
*
* @return \MuxPhp\Models\AssetMetadata|null
*/
public function getMeta()
{
return $this->container['meta'];
}

/**
* Sets meta
*
* @param \MuxPhp\Models\AssetMetadata|null $meta meta
*
* @return self
*/
public function setMeta($meta)
{

if (is_null($meta)) {
throw new \InvalidArgumentException('non-nullable meta cannot be null');
}

$this->container['meta'] = $meta;

return $this;
}
/**
* Returns true if offset exists. False otherwise.
*
Expand Down
Loading