1+ syntax = "proto3" ;
2+
3+ package vulpescloud.services.v1 ;
4+
5+ option java_package = "de.vulpescloud.proto.services.v1" ;
6+ option java_multiple_files = true ;
7+
8+ import "vulpescloud/tasks/v1/task_types.proto" ;
9+ import "vulpescloud/services/v1/service_types.proto" ;
10+ import "vulpescloud/node/v1/server_software.proto" ;
11+
12+ message CreateServiceRequest {
13+ vulpescloud.tasks.v1.TaskDefinition task = 1 ;
14+ }
15+
16+ message CreateServiceResponse {
17+ vulpescloud.services.v1.ServiceDefinition service = 1 ;
18+ }
19+
20+ message StartServiceRequest {
21+ vulpescloud.services.v1.ServiceDefinition service = 1 ;
22+ }
23+
24+ message StartServiceResponse {
25+ vulpescloud.services.v1.ServiceDefinition service = 1 ;
26+ }
27+
28+ message RestartServiceRequest {
29+ vulpescloud.services.v1.ServiceDefinition service = 1 ;
30+ }
31+
32+ message RestartServiceResponse {
33+ vulpescloud.services.v1.ServiceDefinition service = 1 ;
34+ }
35+
36+ message StopServiceRequest {
37+ vulpescloud.services.v1.ServiceDefinition service = 1 ;
38+ }
39+
40+ message StopServiceResponse {
41+ vulpescloud.services.v1.ServiceDefinition service = 1 ;
42+ }
43+
44+ message GetAllServicesRequest {
45+ }
46+
47+ message GetAllServicesResponse {
48+ repeated vulpescloud.services.v1.ServiceDefinition services = 1 ;
49+ }
50+
51+ message GetByTaskRequest {
52+ vulpescloud.tasks.v1.TaskDefinition task = 1 ;
53+ }
54+
55+ message GetByTaskResponse {
56+ repeated vulpescloud.services.v1.ServiceDefinition services = 1 ;
57+ }
58+
59+ message GetByUuidRequest {
60+ string uuid = 1 ;
61+ }
62+
63+ message GetByUuidResponse {
64+ vulpescloud.services.v1.ServiceDefinition service = 1 ;
65+ }
66+
67+ message GetByNameRequest {
68+ string name = 1 ;
69+ }
70+
71+ message GetByNameResponse {
72+ vulpescloud.services.v1.ServiceDefinition service = 1 ;
73+ }
74+
75+ message GetBySoftwareTypeRequest {
76+ vulpescloud.node.v1.SoftwareType software_type = 1 ;
77+ }
78+
79+ message GetBySoftwareTypeResponse {
80+ repeated vulpescloud.services.v1.ServiceDefinition services = 1 ;
81+ }
82+
83+ service ServiceAPIService {
84+ rpc CreateService (CreateServiceRequest ) returns (CreateServiceResponse );
85+ rpc StartService (StartServiceRequest ) returns (StartServiceResponse );
86+ rpc RestartService (RestartServiceRequest ) returns (RestartServiceResponse );
87+ rpc StopService (StopServiceRequest ) returns (StopServiceResponse );
88+ rpc GetAllServices (GetAllServicesRequest ) returns (GetAllServicesResponse );
89+ rpc GetByTask (GetByTaskRequest ) returns (GetByTaskResponse );
90+ rpc GetByUuid (GetByUuidRequest ) returns (GetByUuidResponse );
91+ rpc GetByName (GetByNameRequest ) returns (GetByNameResponse );
92+ rpc GetBySoftwareType (GetBySoftwareTypeRequest ) returns (GetBySoftwareTypeResponse );
93+ }
0 commit comments