Skip to content

Commit

Permalink
Merge pull request #86 from apivideo/update-video-status-endpoint-des…
Browse files Browse the repository at this point in the history
…cription

Update VideoStatusIngest enum descriptions
  • Loading branch information
bot-api-video authored Feb 19, 2024
2 parents 7d420d9 + 7ef5794 commit 03ed6fb
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Changelog
All changes to this project will be documented in this file.

## [1.3.2] - 2024-02-19
- Update VideoStatusIngest enum

## [1.3.1] - 2023-06-28
- Added missing AuthenticationFailedException

Expand Down
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
4 changes: 2 additions & 2 deletions src/BaseClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public function __construct(string $baseUri, ?string $apiKey, ClientInterface $h
$this->originSdkHeaderValue = "";

if ($apiKey) {
$this->authenticator = new Authenticator($this, $apiKey, 'php:1.3.1');
$this->authenticator = new Authenticator($this, $apiKey, 'php:1.3.2');
}
}

Expand Down Expand Up @@ -111,7 +111,7 @@ public function request(Request $commandRequest, bool $skipAuthRequest = false):
if($this->originSdkHeaderValue) {
$request = $request->withHeader('AV-Origin-Sdk', $this->originSdkHeaderValue);
}
$request = $request->withHeader('AV-Origin-Client', 'php:1.3.1');
$request = $request->withHeader('AV-Origin-Client', 'php:1.3.2');

return $this->sendRequest($request, $skipAuthRequest);
}
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 03ed6fb

Please sign in to comment.