Skip to content

Commit 03ed6fb

Browse files
Merge pull request #86 from apivideo/update-video-status-endpoint-description
Update VideoStatusIngest enum descriptions
2 parents 7d420d9 + 7ef5794 commit 03ed6fb

File tree

4 files changed

+11
-6
lines changed

4 files changed

+11
-6
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# Changelog
22
All changes to this project will be documented in this file.
33

4+
## [1.3.2] - 2024-02-19
5+
- Update VideoStatusIngest enum
6+
47
## [1.3.1] - 2023-06-28
58
- Added missing AuthenticationFailedException
69

docs/Model/VideoStatusIngest.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
7-
**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]
7+
**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]
88
**filesize** | **int** | The size of your file in bytes. | [optional]
99
**receivedBytes** | [**\ApiVideo\Client\Model\BytesRange[]**](BytesRange.md) | The total number of bytes received, listed for each chunk of the upload. | [optional]
1010
**receivedParts** | [**\ApiVideo\Client\Model\VideoStatusIngestReceivedParts**](VideoStatusIngestReceivedParts.md) | | [optional]

src/BaseClient.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public function __construct(string $baseUri, ?string $apiKey, ClientInterface $h
7878
$this->originSdkHeaderValue = "";
7979

8080
if ($apiKey) {
81-
$this->authenticator = new Authenticator($this, $apiKey, 'php:1.3.1');
81+
$this->authenticator = new Authenticator($this, $apiKey, 'php:1.3.2');
8282
}
8383
}
8484

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

116116
return $this->sendRequest($request, $skipAuthRequest);
117117
}

src/Model/VideoStatusIngest.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,10 @@ public static function getDefinition(): ModelDefinition
7171
);
7272
}
7373

74-
const STATUS_MISSING = 'missing';
7574
const STATUS_UPLOADING = 'uploading';
7675
const STATUS_UPLOADED = 'uploaded';
76+
const STATUS_INGESTING = 'ingesting';
77+
const STATUS_INGESTED = 'ingested';
7778

7879
/**
7980
* Gets allowable values of the enum
@@ -83,9 +84,10 @@ public static function getDefinition(): ModelDefinition
8384
public function getStatusAllowableValues()
8485
{
8586
return [
86-
self::STATUS_MISSING,
8787
self::STATUS_UPLOADING,
8888
self::STATUS_UPLOADED,
89+
self::STATUS_INGESTING,
90+
self::STATUS_INGESTED,
8991
];
9092
}
9193

@@ -156,7 +158,7 @@ public function getStatus()
156158
/**
157159
* Sets status
158160
*
159-
* @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.
161+
* @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.
160162
*
161163
* @return self
162164
*/

0 commit comments

Comments
 (0)