telestream_cloud_qc 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/Gemfile +7 -0
- data/README.md +58 -0
- data/Rakefile +8 -0
- data/docs/Alert.md +13 -0
- data/docs/AudioStream.md +13 -0
- data/docs/Container.md +9 -0
- data/docs/Data.md +10 -0
- data/docs/Data1.md +9 -0
- data/docs/ExtraFile.md +10 -0
- data/docs/Job.md +12 -0
- data/docs/JobData.md +9 -0
- data/docs/JobDetails.md +9 -0
- data/docs/JobDetailsResult.md +8 -0
- data/docs/JobsCollection.md +12 -0
- data/docs/Media.md +10 -0
- data/docs/Options.md +7 -0
- data/docs/Project.md +12 -0
- data/docs/Proxy.md +12 -0
- data/docs/QcApi.md +719 -0
- data/docs/UploadSession.md +13 -0
- data/docs/VideoStream.md +13 -0
- data/docs/VideoUploadBody.md +12 -0
- data/git_push.sh +55 -0
- data/lib/telestream_cloud_qc/api/qc_api.rb +781 -0
- data/lib/telestream_cloud_qc/api_client.rb +389 -0
- data/lib/telestream_cloud_qc/api_error.rb +38 -0
- data/lib/telestream_cloud_qc/configuration.rb +209 -0
- data/lib/telestream_cloud_qc/models/alert.rb +236 -0
- data/lib/telestream_cloud_qc/models/audio_stream.rb +238 -0
- data/lib/telestream_cloud_qc/models/container.rb +198 -0
- data/lib/telestream_cloud_qc/models/data.rb +208 -0
- data/lib/telestream_cloud_qc/models/data_1.rb +197 -0
- data/lib/telestream_cloud_qc/models/extra_file.rb +221 -0
- data/lib/telestream_cloud_qc/models/job.rb +269 -0
- data/lib/telestream_cloud_qc/models/job_data.rb +197 -0
- data/lib/telestream_cloud_qc/models/job_details.rb +199 -0
- data/lib/telestream_cloud_qc/models/job_details_result.rb +190 -0
- data/lib/telestream_cloud_qc/models/jobs_collection.rb +230 -0
- data/lib/telestream_cloud_qc/models/media.rb +210 -0
- data/lib/telestream_cloud_qc/models/options.rb +179 -0
- data/lib/telestream_cloud_qc/models/project.rb +262 -0
- data/lib/telestream_cloud_qc/models/proxy.rb +224 -0
- data/lib/telestream_cloud_qc/models/upload_session.rb +249 -0
- data/lib/telestream_cloud_qc/models/video_stream.rb +235 -0
- data/lib/telestream_cloud_qc/models/video_upload_body.rb +242 -0
- data/lib/telestream_cloud_qc/uploader.rb +244 -0
- data/lib/telestream_cloud_qc/version.rb +18 -0
- data/lib/telestream_cloud_qc.rb +64 -0
- data/spec/api/qc_api_spec.rb +202 -0
- data/spec/api_client_spec.rb +226 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/alert_spec.rb +72 -0
- data/spec/models/audio_stream_spec.rb +72 -0
- data/spec/models/container_spec.rb +48 -0
- data/spec/models/data_1_spec.rb +48 -0
- data/spec/models/data_spec.rb +54 -0
- data/spec/models/extra_file_spec.rb +54 -0
- data/spec/models/job_data_spec.rb +48 -0
- data/spec/models/job_details_result_spec.rb +42 -0
- data/spec/models/job_details_spec.rb +48 -0
- data/spec/models/job_spec.rb +74 -0
- data/spec/models/jobs_collection_spec.rb +66 -0
- data/spec/models/media_spec.rb +54 -0
- data/spec/models/options_spec.rb +36 -0
- data/spec/models/project_spec.rb +70 -0
- data/spec/models/proxy_spec.rb +66 -0
- data/spec/models/upload_session_spec.rb +72 -0
- data/spec/models/video_stream_spec.rb +72 -0
- data/spec/models/video_upload_body_spec.rb +66 -0
- data/spec/spec_helper.rb +111 -0
- data/telestream_cloud_qc.gemspec +47 -0
- metadata +336 -0
@@ -0,0 +1,13 @@
|
|
1
|
+
# TelestreamCloud::Qc::UploadSession
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**id** | **String** | An unique identifier of the UploadSession. |
|
7
|
+
**location** | **String** | An URL to which chunks of the uploaded file should be sent |
|
8
|
+
**parts** | **Integer** | A number of chunks that are expected by the upstream. | [optional]
|
9
|
+
**part_size** | **Integer** | An expected size of uploaded chunks. | [optional]
|
10
|
+
**max_connections** | **Integer** | A maximum number of concurrent connections. | [optional]
|
11
|
+
**extra_files** | **Object** | An object containing additional files uploaded using the session. | [optional]
|
12
|
+
|
13
|
+
|
data/docs/VideoStream.md
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
# TelestreamCloud::Qc::VideoStream
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**duration** | **Integer** | Video stream duration measured in seconds. | [optional]
|
7
|
+
**codec** | **String** | | [optional]
|
8
|
+
**width** | **Integer** | | [optional]
|
9
|
+
**height** | **Integer** | | [optional]
|
10
|
+
**bitrate** | **Integer** | Video stream bitrate measured in bps | [optional]
|
11
|
+
**fps** | **Float** | | [optional]
|
12
|
+
|
13
|
+
|
@@ -0,0 +1,12 @@
|
|
1
|
+
# TelestreamCloud::Qc::VideoUploadBody
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**file_size** | **Integer** | Size of the file that will be uploaded in `bytes`. |
|
7
|
+
**file_name** | **String** | Name of the file that will be uploaded. |
|
8
|
+
**extra_files** | [**Array<ExtraFile>**](ExtraFile.md) | A list of names of additional files that will be uploaded. | [optional]
|
9
|
+
**profiles** | **String** | A comma-separated list of profile names or IDs to be used during encoding. Alternatively, specify none so no encodings will created right away. | [optional]
|
10
|
+
**multi_chunk** | **BOOLEAN** | | [optional] [default to true]
|
11
|
+
|
12
|
+
|
data/git_push.sh
ADDED
@@ -0,0 +1,55 @@
|
|
1
|
+
#!/bin/sh
|
2
|
+
#
|
3
|
+
# Generated by: https://github.com/swagger-api/swagger-codegen.git
|
4
|
+
#
|
5
|
+
# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
|
6
|
+
#
|
7
|
+
# Usage example: /bin/sh ./git_push.sh wing328 swagger-petstore-perl "minor update"
|
8
|
+
|
9
|
+
git_user_id=$1
|
10
|
+
git_repo_id=$2
|
11
|
+
release_note=$3
|
12
|
+
|
13
|
+
if [ "$git_user_id" = "" ]; then
|
14
|
+
git_user_id="Telestream"
|
15
|
+
echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
|
16
|
+
fi
|
17
|
+
|
18
|
+
if [ "$git_repo_id" = "" ]; then
|
19
|
+
git_repo_id="telestream-cloud-ruby-sdk"
|
20
|
+
echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
|
21
|
+
fi
|
22
|
+
|
23
|
+
if [ "$release_note" = "" ]; then
|
24
|
+
release_note="Minor update"
|
25
|
+
echo "[INFO] No command line input provided. Set \$release_note to $release_note"
|
26
|
+
fi
|
27
|
+
|
28
|
+
# Initialize the local directory as a Git repository
|
29
|
+
git init
|
30
|
+
|
31
|
+
# Adds the files in the local repository and stages them for commit.
|
32
|
+
git add .
|
33
|
+
|
34
|
+
# Commits the tracked changes and prepares them to be pushed to a remote repository.
|
35
|
+
git commit -m "$release_note"
|
36
|
+
|
37
|
+
# Sets the new remote
|
38
|
+
git_remote=`git remote`
|
39
|
+
if [ "$git_remote" = "" ]; then # git remote not defined
|
40
|
+
|
41
|
+
if [ "$GIT_TOKEN" = "" ]; then
|
42
|
+
echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
|
43
|
+
git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git
|
44
|
+
else
|
45
|
+
git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git
|
46
|
+
fi
|
47
|
+
|
48
|
+
fi
|
49
|
+
|
50
|
+
git pull origin master
|
51
|
+
|
52
|
+
# Pushes (Forces) the changes in the local repository up to the remote repository
|
53
|
+
echo "Git pushing to https://github.com/${git_user_id}/${git_repo_id}.git"
|
54
|
+
git push origin master 2>&1 | grep -v 'To https'
|
55
|
+
|