// Copyright 2019 Make.TV Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. syntax = "proto3"; package tv.make.api; import "production/production.proto"; option go_package = "git.ltnglobal.com/make.tv/genproto/api;api"; enum CrudKind { CRUD_KIND_UNSPECIFIED = 0; CREATE = 1; READ = 2; UPDATE = 3; DELETE = 4; } message OutputCrudEvent { // The kind of this operation. CrudKind kind = 1; // The unique identifier of the output related to the event. string output_id = 2; // The name of the output at event creation (can be empty). string output_name = 3; } message OutputTargetCrudEvent { // The kind of this operation. CrudKind kind = 1; // The unique identifier of the output related to the event. string output_id = 2; // The name of the output at event creation (can be empty). string output_name = 3; // The unique identifier of the output target related to the event. string output_target_id = 4; } message ProductionCrudEvent { // The kind of this operation. CrudKind kind = 1; // The unique identifier of the production related to the event. string production_id = 2; // The name of the production at event creation (can be empty). string production_name = 3; } message ProductionStatusEvent { // The status the production changed to. Production.Status status = 1; // The unique identifier of the production related to the event. string production_id = 2; // The name of the production at event creation (can be empty). string production_name = 3; } message TransfertargetTransferStatusEvent { // Status defines the status of the transfer. enum Status { // The status of the transfer is not specified. STATUS_UNSPECIFIED = 0; // The transfer started. STARTED = 1; // The transfer finished. FINISHED = 2; } // The status of the transfer. Status status = 1; // ID of the asset that has been transferred. string asset_id = 2; // ID of the target which the asset has been transferred to. string transfer_target_id = 3; // Hostname of the target which the asset has been transferred to. string transfer_target_host = 4; } message InputCrudEvent { // The kind of this operation. CrudKind kind = 1; // The unique identifier of the input related to the event. string input_id = 2; // The name of the input at event creation (can be empty). string input_name = 3; } message InputRoutedEvent { // The unique identifier of the input related to the event. string input_id = 1; // The name of the input at event creation (can be empty). string input_name = 2; // The unique identifier of the production related to the event. string production_id = 3; // The name of the production at event creation (can be empty). string production_name = 4; // The unique identifier of the output related to the event. string output_id = 5; // The name of the output at event creation (can be empty). string output_name = 6; }