aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/yandex-cloud-api-protos/yandex/cloud/video/v1/thumbnail_service.proto
diff options
context:
space:
mode:
authoriddqd <iddqd@yandex-team.com>2024-06-11 10:12:13 +0300
committeriddqd <iddqd@yandex-team.com>2024-06-11 10:22:43 +0300
commit07f57e35443ab7f09471caf2dbf1afbcced4d9f7 (patch)
treea4a7b66ead62e83fa988a2ec2ce6576311c1f4b1 /contrib/libs/yandex-cloud-api-protos/yandex/cloud/video/v1/thumbnail_service.proto
parent6db3b8ca95e44179e48306a58656fb1f9317d9c3 (diff)
downloadydb-07f57e35443ab7f09471caf2dbf1afbcced4d9f7.tar.gz
add contrib/python/yandexcloud to import
03b7d3cad2237366b55b393e18d4dc5eb222798c
Diffstat (limited to 'contrib/libs/yandex-cloud-api-protos/yandex/cloud/video/v1/thumbnail_service.proto')
-rw-r--r--contrib/libs/yandex-cloud-api-protos/yandex/cloud/video/v1/thumbnail_service.proto89
1 files changed, 89 insertions, 0 deletions
diff --git a/contrib/libs/yandex-cloud-api-protos/yandex/cloud/video/v1/thumbnail_service.proto b/contrib/libs/yandex-cloud-api-protos/yandex/cloud/video/v1/thumbnail_service.proto
new file mode 100644
index 0000000000..3b36d1c10b
--- /dev/null
+++ b/contrib/libs/yandex-cloud-api-protos/yandex/cloud/video/v1/thumbnail_service.proto
@@ -0,0 +1,89 @@
+syntax = "proto3";
+
+package yandex.cloud.video.v1;
+
+import "yandex/cloud/api/operation.proto";
+import "yandex/cloud/operation/operation.proto";
+import "yandex/cloud/video/v1/thumbnail.proto";
+
+option go_package = "github.com/yandex-cloud/go-genproto/yandex/cloud/video/v1;video";
+option java_package = "yandex.cloud.api.video.v1";
+
+// Thumbnail management service.
+service ThumbnailService {
+ // List thumbnails for channel.
+ rpc List(ListThumbnailRequest) returns (ListThumbnailResponse) {}
+
+ // Create thumbnail.
+ rpc Create(CreateThumbnailRequest) returns (operation.Operation) {
+ option (yandex.cloud.api.operation) = {
+ metadata: "CreateThumbnailMetadata"
+ response: "Thumbnail"
+ };
+ }
+
+ // Generate urls for download images.
+ rpc BatchGenerateDownloadURLs(BatchGenerateDownloadURLsRequest) returns (BatchGenerateDownloadURLsResponse) {}
+
+ // Generate url for upload image.
+ rpc GenerateUploadURL(GenerateThumbnailUploadURLRequest) returns (GenerateThumbnailUploadURLResponse) {}
+}
+
+message ListThumbnailRequest {
+ reserved 2 to 99;
+ // ID of the channel.
+ string channel_id = 1;
+
+ // The maximum number of the results per page to return. Default value: 100.
+ int64 page_size = 100;
+ // Page token for getting the next page of the result.
+ string page_token = 101;
+}
+
+message ListThumbnailResponse {
+ reserved 2 to 99;
+ // List of thumbnails.
+ repeated Thumbnail thumbnails = 1;
+
+ // Token for getting the next page.
+ string next_page_token = 100;
+}
+
+message CreateThumbnailRequest {
+ // ID of the channel.
+ string channel_id = 1;
+}
+
+message CreateThumbnailMetadata {
+ // ID of the thumbnail.
+ string thumbnail_id = 1;
+}
+
+message BatchGenerateDownloadURLsRequest {
+ // ID of the channel.
+ string channel_id = 1;
+ // List of thumbnails IDs.
+ repeated string thumbnail_ids = 2;
+}
+
+message BatchGenerateDownloadURLsResponse {
+ // List of download urls.
+ repeated ThumbnailDownloadURL download_urls = 1;
+}
+
+message ThumbnailDownloadURL {
+ // ID of the thumbnail.
+ string thumbnail_id = 1;
+ // Download url.
+ string download_url = 2;
+}
+
+message GenerateThumbnailUploadURLRequest {
+ // ID of the thumbnail.
+ string thumbnail_id = 1;
+}
+
+message GenerateThumbnailUploadURLResponse {
+ // Upload url.
+ string upload_url = 1;
+}