Skip to content

Commit

Permalink
Update VideoStatusIngest enum descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
szekelyzol authored Feb 16, 2024
1 parent 7d420d9 commit 3af71f9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/Model/VideoStatusIngest.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**status** | **string** | There are three possible ingest statuses. missing - you are missing information required to ingest the video. uploading - the video is in the process of being uploaded. uploaded - the video is ready for use. | [optional]
**status** | **string** | There are four possible statuses depending on how you provide a video file: - `uploading` - the API is gathering the video source file from an upload. - `uploaded` - the video file is fully uploaded. - `ingesting` - the API is gathering the video source file from either a URL, or from cloning. - `ingested` - the video file is fully stored. | [optional]
**filesize** | **int** | The size of your file in bytes. | [optional]
**receivedBytes** | [**\ApiVideo\Client\Model\BytesRange[]**](BytesRange.md) | The total number of bytes received, listed for each chunk of the upload. | [optional]
**receivedParts** | [**\ApiVideo\Client\Model\VideoStatusIngestReceivedParts**](VideoStatusIngestReceivedParts.md) | | [optional]
Expand Down
8 changes: 5 additions & 3 deletions src/Model/VideoStatusIngest.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,10 @@ public static function getDefinition(): ModelDefinition
);
}

const STATUS_MISSING = 'missing';
const STATUS_UPLOADING = 'uploading';
const STATUS_UPLOADED = 'uploaded';
const STATUS_INGESTING = 'ingesting';
const STATUS_INGESTED = 'ingested';

/**
* Gets allowable values of the enum
Expand All @@ -83,9 +84,10 @@ public static function getDefinition(): ModelDefinition
public function getStatusAllowableValues()
{
return [
self::STATUS_MISSING,
self::STATUS_UPLOADING,
self::STATUS_UPLOADED,
self::STATUS_INGESTING,
self::STATUS_INGESTED,
];
}

Expand Down Expand Up @@ -156,7 +158,7 @@ public function getStatus()
/**
* Sets status
*
* @param string|null $status There are three possible ingest statuses. missing - you are missing information required to ingest the video. uploading - the video is in the process of being uploaded. uploaded - the video is ready for use.
* @param string|null $status There are four possible statuses depending on how you provide a video file: - `uploading` - the API is gathering the video source file from an upload. - `uploaded` - the video file is fully uploaded. - `ingesting` - the API is gathering the video source file from either a URL, or from cloning. - `ingested` - the video file is fully stored.
*
* @return self
*/
Expand Down

0 comments on commit 3af71f9

Please sign in to comment.