syntax = "proto3"; package onprem.user.v1; option go_package="gitlab.com/on-prem-net/protocol/onprem/user/v1;userproto"; import "onprem/user/v1/device.proto"; import "onprem/user/v1/error.proto"; import "onprem/user/v1/service_instance.proto"; message ServiceInstanceFilter { optional string created_by_user_id = 1; optional string plan_id = 2; optional string service_id = 3; optional string service_tag = 4; optional string owner_user_id = 5; optional string device_id = 6; } message CreateServiceInstanceRequest { ServiceInstance service_instance = 1; } message CreateServiceInstanceResponse { ServiceInstance service_instance = 1; repeated Device changed_devices = 2; } message DeleteServiceInstanceRequest { string id = 1; } message DeleteServiceInstanceResponse { repeated Device changed_devices = 1; } message FindServiceInstanceRequest { string id = 1; } message FindServiceInstanceResponse { ServiceInstance service_instance = 1; } message FindServiceInstancesRequest { ServiceInstanceFilter filter = 1; } message FindServiceInstancesResponse { repeated ServiceInstance service_instances = 1; } message UpdateServiceInstanceRequest { ServiceInstance service_instance = 1; } message UpdateServiceInstanceResponse { ServiceInstance service_instance = 1; repeated Device changed_devices = 2; } message ValidateServiceInstanceRequest { ServiceInstance service_instance = 1; bool existing = 2; } message ValidateServiceInstanceResponse { repeated ErrorObject errors = 1; }