syntax = "proto3"; package onprem.user.v1; option go_package="gitlab.com/on-prem-net/protocol/onprem/user/v1;userproto"; import "google/protobuf/timestamp.proto"; import "onprem/user/v1/luarocks.proto"; message Lambda { string id = 1; string name = 2; string trigger_type_id = 3; string script = 4; string script_content_type = 5; optional string description = 6; reserved 7; oneof owner { string owner_team_id = 8; string owner_user_id = 9; } google.protobuf.Timestamp created_at = 10; string created_by_user_id = 11; optional google.protobuf.Timestamp deleted_at = 12; optional string deleted_by_user_id = 13; optional google.protobuf.Timestamp updated_at = 14; optional string updated_by_user_id = 15; reserved 16, 17, 18, 19; LambdaRunAt run_at = 20; optional string service_id = 21; repeated string file_info_ids = 22; repeated LuaRocksModule luarocks_modules = 23; } message LambdaRunAt { oneof run_at { bool control_plane = 1; string device_id = 2; bool devices_with_tag_ids = 3; bool all_devices = 5; } repeated string tag_ids = 4; }