aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/yandex-cloud-api-protos/yandex/cloud/video/v1/stream_line_service.proto
blob: bb145f6ceb7fd80262b392ab6e8c12d8976e9856 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
syntax = "proto3";

package yandex.cloud.video.v1;

import "google/protobuf/field_mask.proto";
import "yandex/cloud/api/operation.proto";
import "yandex/cloud/operation/operation.proto";
import "yandex/cloud/video/v1/stream_line.proto";

option go_package = "github.com/yandex-cloud/go-genproto/yandex/cloud/video/v1;video";
option java_package = "yandex.cloud.api.video.v1";

// Stream line management service.
service StreamLineService {
  // Returns the specific stream line.
  rpc Get(GetStreamLineRequest) returns (StreamLine) {}

  // List lines for channel.
  rpc List(ListStreamLinesRequest) returns (ListStreamLinesResponse) {}

  // Create stream line.
  rpc Create(CreateStreamLineRequest) returns (operation.Operation) {
    option (yandex.cloud.api.operation) = {
      metadata: "CreateStreamLineMetadata"
      response: "StreamLine"
    };
  }

  // Update stream line.
  rpc Update(UpdateStreamLineRequest) returns (operation.Operation) {
    option (yandex.cloud.api.operation) = {
      metadata: "UpdateStreamLineMetadata"
      response: "StreamLine"
    };
  }

  // Delete stream line.
  rpc Delete(DeleteStreamLineRequest) returns (operation.Operation) {
    option (yandex.cloud.api.operation) = {
      metadata: "DeleteStreamLineMetadata"
      response: "google.protobuf.Empty"
    };
  }

  // Perform an action on the line.
  rpc PerformAction(PerformLineActionRequest) returns (operation.Operation) {
    option (yandex.cloud.api.operation) = {
      metadata: "PerformLineActionMetadata"
      response: "StreamLine"
    };
  }

  // Returns unique stream key.
  rpc GetStreamKey(GetStreamKeyRequest) returns (PushStreamKey) {}

  // Change stream key.
  rpc UpdateStreamKey(UpdateStreamKeyRequest) returns (operation.Operation) {
    option (yandex.cloud.api.operation) = {
      metadata: "UpdateStreamKeyMetadata"
      response: "PushStreamKey"
    };
  }
}

message GetStreamLineRequest {
  // ID of the line.
  string stream_line_id = 1;
}

message ListStreamLinesRequest {
  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;

  // By which column the listing should be ordered and in which direction,
  // format is "createdAt desc". "id asc" if omitted.
  // Possible fields: ["id", "title", "createdAt", "updatedAt"]
  // Both snake_case and camelCase are supported for fields.
  string order_by = 102;

  // Filter expression that filters resources listed in the response.
  // Expressions are composed of terms connected by logic operators.
  // Value in quotes: `'` or `"`
  // Example: "key1='value' AND key2='value'"
  // Supported operators: ["AND"].
  // Supported fields: ["title"]
  // Both snake_case and camelCase are supported for fields.
  string filter = 103;
}

message ListStreamLinesResponse {
  reserved 2 to 99;
  // List of lines for channel.
  repeated StreamLine stream_lines = 1;

  // Token for getting the next page.
  string next_page_token = 100;
}

message CreateStreamLineRequest {
  reserved 201 to 999;
  reserved 1005;
  reserved 1007 to 1999;
  reserved 4 to 199;
  // ID of the channel.
  string channel_id = 1;
  // Line title.
  string title = 2;
  // ID of the thumbnail.
  string thumbnail_id = 3;

  // Custom labels as `` key:value `` pairs. Maximum 64 per resource.
  map<string, string> labels = 200;

  // Video signal settings.
  oneof input_params {
    // RTMP push input type.
    RTMPPushParams rtmp_push = 1000;
    // SRT push input type.
    SRTPushParams srt_push = 1001;
    // RTMP pull input type.
    RTMPPullParams rtmp_pull = 1002;
    // SRT pull input type.
    SRTPullParams srt_pull = 1003;
    // TCP pull input type.
    TCPPullParams tcp_pull = 1004;
    // RTSP pull input type.
    RTSPPullParams rtsp_pull = 1006;
  }

  // Line type.
  oneof line_type_params {
    // Manual control of stream.
    ManualLineParams manual_line = 2000;
    // Automatic control of stream.
    AutoLineParams auto_line = 2001;
  }
}

message CreateStreamLineMetadata {
  // ID of the line.
  string stream_line_id = 1;
}

message UpdateStreamLineRequest {
  reserved 201 to 999;
  reserved 1005;
  reserved 5 to 199;
  // ID of the line.
  string stream_line_id = 1;
  // Field mask that specifies which fields of the line are going to be updated.
  google.protobuf.FieldMask field_mask = 2;

  // Line title.
  string title = 3;
  // ID of the thumbnail.
  string thumbnail_id = 4;

  // Custom labels as `` key:value `` pairs. Maximum 64 per resource.
  map<string, string> labels = 200;

  // Video signal settings.
  oneof input_params {
    // RTMP push input type.
    RTMPPushParams rtmp_push = 1000;
    // SRT push input type.
    SRTPushParams srt_push = 1001;
    // RTMP pull input type.
    RTMPPullParams rtmp_pull = 1002;
    // SRT pull input type.
    SRTPullParams srt_pull = 1003;
    // TCP pull input type.
    TCPPullParams tcp_pull = 1004;
    // RTSP pull input type.
    RTSPPullParams rtsp_pull = 1006;
  }
}

message UpdateStreamLineMetadata {
  // ID of the line.
  string stream_line_id = 1;
}

message DeleteStreamLineRequest {
  // ID of the line.
  string stream_line_id = 1;
}

message DeleteStreamLineMetadata {
  // ID of the line.
  string stream_line_id = 1;
}

message PerformLineActionRequest {
  reserved 2 to 999;
  // ID of the line.
  string stream_line_id = 1;
  oneof action {
    ActivateAction activate = 1000;
    DeactivateAction deactivate = 1001;
  }
}

message PerformLineActionMetadata {
  // ID of the line.
  string stream_line_id = 1;
}

message RTMPPushParams {}

message SRTPushParams {}

message RTMPPullParams {
  // URL of a RTMP streaming server.
  string url = 1;
}

message SRTPullParams {
  // URL of a SRT streaming server.
  string url = 1;
}

message TCPPullParams {
  // URL of a TCP streaming server.
  string url = 2;
}

message RTSPPullParams {
  // URL of a RTSP streaming server.
  string url = 1;
}

message ManualLineParams {}

message AutoLineParams {}

message ActivateAction {}

message DeactivateAction {}

message GetStreamKeyRequest {
  // ID of the line.
  string stream_line_id = 1;
}

message UpdateStreamKeyRequest {
  // ID of the line.
  string stream_line_id = 1;
}

message UpdateStreamKeyMetadata {
  // ID of the line.
  string stream_line_id = 1;
}