@@ -32,7 +32,6 @@ import "api/nbi/v1alpha/resources/network_link.proto";
32
32
import "api/nbi/v1alpha/resources/scenario_settings.proto" ;
33
33
import "api/nbi/v1alpha/resources/service_request.proto" ;
34
34
import "api/nbi/v1alpha/resources/wireless_interference.proto" ;
35
- import "google/api/annotations.proto" ;
36
35
import "google/type/interval.proto" ;
37
36
38
37
option java_package = "com.aalyria.spacetime.api.nbi.v1alpha" ;
@@ -123,60 +122,33 @@ message Entity {
123
122
}
124
123
125
124
service NetOps {
126
- // Creates a Spacetime Entity using the app: 'Spacetime Netops'.
127
- rpc CreateEntity (CreateEntityRequest ) returns (Entity ) {
128
- option (google.api.http ) = {
129
- post : "/v1/entities/type/{type=*}"
130
- body : "entity"
131
- };
132
- }
125
+ rpc GetEntity (GetEntityRequest ) returns (Entity ) {}
133
126
134
- // Updates a Spacetime Entity using the app: 'Spacetime Netops'.
135
- rpc UpdateEntity (UpdateEntityRequest ) returns (Entity ) {
136
- option (google.api.http ) = {
137
- put : "/v1/entities/type/{type=*}/id/{id=*}"
138
- body : "entity"
139
- };
140
- }
127
+ rpc CreateEntity (CreateEntityRequest ) returns (Entity ) {}
141
128
142
- // Lists all specified entities of the selected type.
143
- // TODO: implement pagination
144
- rpc ListEntities (ListEntitiesRequest ) returns (ListEntitiesResponse ) {
145
- option (google.api.http ) = {
146
- get : "/v1/entities"
147
- };
148
- }
129
+ rpc UpdateEntity (UpdateEntityRequest ) returns (Entity ) {}
130
+
131
+ rpc ListEntities (ListEntitiesRequest ) returns (ListEntitiesResponse ) {}
149
132
150
- // Lists all specified entities of the selected type over the provided time
151
- // interval.
152
- // TODO: implement pagination
153
133
rpc ListEntitiesOverTime (ListEntitiesOverTimeRequest )
154
- returns (ListEntitiesOverTimeResponse ) {
155
- option (google.api.http ) = {
156
- get : "/v1/entities/over_time"
157
- };
158
- }
134
+ returns (ListEntitiesOverTimeResponse ) {}
159
135
160
- // Deletes an Entity.
161
- rpc DeleteEntity (DeleteEntityRequest ) returns (DeleteEntityResponse ) {
162
- option (google.api.http ) = {
163
- delete : "/v1/entities/type/{type=*}/id/{id=*}/commit_timestamp/{commit_timestamp=*}"
164
- };
165
- }
136
+ rpc DeleteEntity (DeleteEntityRequest ) returns (DeleteEntityResponse ) {}
166
137
167
138
// Loads a scenario specified as a
168
139
// com.aalyria.resources.ScenarioSettings proto.
169
140
// Deprecated. This endpoint is in the process of being replaced by a
170
141
// more general purpose interface.
171
142
rpc LoadScenario (LoadScenarioRequest ) returns (LoadScenarioResponse ) {
172
143
option deprecated = true ;
173
- option (google.api.http ) = {
174
- post : "/v1/load_scenario"
175
- body : "scenario_settings"
176
- };
177
144
}
178
145
}
179
146
147
+ message GetEntityRequest {
148
+ optional EntityType type = 1 ;
149
+ optional string id = 2 ;
150
+ }
151
+
180
152
// The id can be omitted, in which case a unique ID will be generated
181
153
// by the backend.
182
154
message CreateEntityRequest {
0 commit comments