From 8177e69a43db182f6ddcefa37cc6e8c472d1b0ac Mon Sep 17 00:00:00 2001 From: olivierapivideo Date: Mon, 19 Feb 2024 09:52:22 +0000 Subject: [PATCH] Update VideoStatusIngest enum descriptions --- CHANGELOG.md | 3 +++ api/openapi.yaml | 13 ++++++++----- client.go | 4 ++-- docs/VideoStatusIngest.md | 2 +- model_video_status_ingest.go | 2 +- 5 files changed, 15 insertions(+), 9 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1ac6965..a47983a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,9 @@ # Changelog All changes to this project will be documented in this file. +## [1.3.1] - 2024-02-19 +- Update VideoStatusIngest enum + ## [1.3.0] - 2023-06-28 - Introducing new live streams restream feature - Introducing new analytics endpoints diff --git a/api/openapi.yaml b/api/openapi.yaml index d6134ce..8237aed 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -11987,14 +11987,17 @@ components: video for use immediately or in the future. properties: status: - description: 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. + description: | + 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. enum: - - missing - uploading - uploaded + - ingesting + - ingested example: uploaded type: string filesize: diff --git a/client.go b/client.go index 1ca86d4..5f15b26 100644 --- a/client.go +++ b/client.go @@ -255,7 +255,7 @@ func (c *Client) prepareRequest( req.Header.Set("AV-Origin-Sdk", originSdkHeaderValue) } - req.Header.Set("AV-Origin-Client", "go:1.3.0") + req.Header.Set("AV-Origin-Client", "go:1.3.1") for headerName := range headerParams { req.Header.Set(headerName, headerParams[headerName]) @@ -530,7 +530,7 @@ func (c *Client) auth(req *http.Request) (*http.Request, error) { req.Header.Set("AV-Origin-Sdk", originSdkHeaderValue) } - req.Header.Set("AV-Origin-Client", "go:1.3.0") + req.Header.Set("AV-Origin-Client", "go:1.3.1") resp, err := c.httpClient.Do(req) diff --git a/docs/VideoStatusIngest.md b/docs/VideoStatusIngest.md index 97f7abe..58a5a59 100644 --- a/docs/VideoStatusIngest.md +++ b/docs/VideoStatusIngest.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Status** | Pointer to **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** | Pointer to **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** | Pointer to **NullableInt32** | The size of your file in bytes. | [optional] **ReceivedBytes** | Pointer to [**[]BytesRange**](BytesRange.md) | The total number of bytes received, listed for each chunk of the upload. | [optional] **ReceivedParts** | Pointer to [**VideoStatusIngestReceivedParts**](VideoStatusIngestReceivedParts.md) | | [optional] diff --git a/model_video_status_ingest.go b/model_video_status_ingest.go index 25a93d9..1e839e9 100644 --- a/model_video_status_ingest.go +++ b/model_video_status_ingest.go @@ -16,7 +16,7 @@ import ( // VideoStatusIngest Details about the capturing, transferring, and storing of your video for use immediately or in the future. type VideoStatusIngest struct { - // 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. + // 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. Status *string `json:"status,omitempty"` // The size of your file in bytes. Filesize *NullableInt32 `json:"filesize,omitempty"`