syntax = "proto3"; package onprem.user.v1; option go_package="gitlab.com/on-prem-net/protocol/onprem/user/v1;userproto"; import "google/protobuf/field_mask.proto"; import "onprem/user/v1/chassis.proto"; import "onprem/user/v1/chassis_type.proto"; import "onprem/user/v1/device.proto"; import "onprem/user/v1/device_type.proto"; import "onprem/user/v1/error.proto"; import "onprem/user/v1/facility.proto"; import "onprem/user/v1/file_info.proto"; import "onprem/user/v1/hat.proto"; import "onprem/user/v1/hat_type.proto"; import "onprem/user/v1/plan.proto"; import "onprem/user/v1/tag.proto"; message DeviceFilter { optional string asset_tag = 1; optional string chassis_id = 2; optional string create_by_or_owner_user_id = 3; optional string created_by_user_id = 4; reserved 5; // fields optional string id = 7; optional string mac_addr = 8; optional string name = 9; reserved 10; optional string owner_team_id = 11; optional string owner_user_id = 12; optional string serial_number = 13; reserved 14; optional string device_type_id = 15; repeated string ids = 16; repeated string tag_ids = 17; repeated string mac_addrs = 18; } message CreateDeviceRequest { Device device = 1; } message CreateDeviceResponse { Device device = 1; } message DeleteDeviceRequest { string id = 1; } message DeleteDeviceResponse { } message FindDeviceRequest { string id = 1; bool include_related = 2; } message FindDeviceResponse { message Related { repeated Chassis chasses = 1; repeated ChassisType chassis_types = 2; repeated Facility facilities = 3; repeated Plan plans = 4; repeated DeviceType device_types = 5; repeated Tag tags = 6; repeated Hat hats = 7; repeated HatType hat_types = 8; repeated FileInfo file_infos = 9; } Device device = 1; Related related = 2; } message FindDevicesRequest { DeviceFilter filter = 1; reserved 2, 3, 4; google.protobuf.FieldMask field_mask = 5; } message FindDevicesResponse { repeated Device devices = 1; } message UpdateDeviceRequest { Device device = 1; } message UpdateDeviceResponse { Device device = 1; repeated Chassis changed_chasses = 2; } message ValidateDeviceRequest { Device device = 1; bool existing = 2; } message ValidateDeviceResponse { repeated ErrorObject errors = 1; }