Video API, gRPC: EpisodeService.PerformAction
Perform an action on the episode.
gRPC request
rpc PerformAction (PerformEpisodeActionRequest) returns (operation.Operation)
PerformEpisodeActionRequest
{
"episode_id": "string",
// Includes only one of the fields `publish`, `unpublish`
"publish": "PublishEpisodeAction",
"unpublish": "UnpublishEpisodeAction"
// end of the list of possible fields
}
Field |
Description |
episode_id |
string Required field. ID of the episode. |
publish |
Includes only one of the fields |
unpublish |
Includes only one of the fields |
PublishEpisodeAction
Field |
Description |
Empty |
UnpublishEpisodeAction
Field |
Description |
Empty |
operation.Operation
{
"id": "string",
"description": "string",
"created_at": "google.protobuf.Timestamp",
"created_by": "string",
"modified_at": "google.protobuf.Timestamp",
"done": "bool",
"metadata": {
"episode_id": "string"
},
// Includes only one of the fields `error`, `response`
"error": "google.rpc.Status",
"response": {
"id": "string",
"stream_id": "string",
"line_id": "string",
"title": "string",
"description": "string",
"thumbnail_id": "string",
"start_time": "google.protobuf.Timestamp",
"finish_time": "google.protobuf.Timestamp",
"dvr_seconds": "int64",
"visibility_status": "VisibilityStatus",
// Includes only one of the fields `public_access`, `auth_system_access`, `sign_url_access`
"public_access": "EpisodePublicAccessRights",
"auth_system_access": "EpisodeAuthSystemAccessRights",
"sign_url_access": "EpisodeSignURLAccessRights",
// end of the list of possible fields
"created_at": "google.protobuf.Timestamp",
"updated_at": "google.protobuf.Timestamp"
}
// end of the list of possible fields
}
An Operation resource. For more information, see Operation.
Field |
Description |
id |
string ID of the operation. |
description |
string Description of the operation. 0-256 characters long. |
created_at |
Creation timestamp. |
created_by |
string ID of the user or service account who initiated the operation. |
modified_at |
The time when the Operation resource was last modified. |
done |
bool If the value is |
metadata |
Service-specific metadata associated with the operation. |
error |
The error result of the operation in case of failure or cancellation. Includes only one of the fields The operation result. |
response |
The normal response of the operation in case of success. Includes only one of the fields The operation result. |
PerformEpisodeActionMetadata
Field |
Description |
episode_id |
string ID of the episode. |
Episode
Field |
Description |
id |
string ID of the episode. |
stream_id |
string ID of the stream. Optional, empty if the episode is linked to the line |
line_id |
string ID of the line. Optional, empty if the episode is linked to the stream |
title |
string Channel title. |
description |
string Channel description. |
thumbnail_id |
string ID of the thumbnail. |
start_time |
Episode start time. |
finish_time |
Episode finish time. |
dvr_seconds |
int64 Enables episode DVR mode. DVR seconds determines how many last seconds of the stream are available. possible values:
|
visibility_status |
enum VisibilityStatus
|
public_access |
Episode is available to everyone. Includes only one of the fields Episode access rights. |
auth_system_access |
Checking access rights using the authorization system. Includes only one of the fields Episode access rights. |
sign_url_access |
Checking access rights using url's signature. Includes only one of the fields Episode access rights. |
created_at |
Time when episode was created. |
updated_at |
Time of last episode update. |
EpisodePublicAccessRights
Field |
Description |
Empty |
EpisodeAuthSystemAccessRights
Field |
Description |
Empty |
EpisodeSignURLAccessRights
Field |
Description |
Empty |