Newer
Older
import "google/api/annotations.proto";
option go_package = "code.fbi.h-da.de/danet/api/go/gosdn/core";
service CoreService {
rpc GetPnd(GetPndRequest) returns (GetPndResponse) {
option (google.api.http) = {
rpc GetPndList(GetPndListRequest) returns (GetPndListResponse) {
rpc CreatePnd(CreatePndRequest) returns (CreatePndResponse) {
message GetPndListRequest {
int64 timestamp = 1; // Timestamp in nanoseconds since Epoch.
}
message GetPndRequest {
int64 timestamp = 1; // Timestamp in nanoseconds since Epoch.
message GetPndListResponse {
int64 timestamp = 1; // Timestamp in nanoseconds since Epoch.
repeated .gosdn.pnd.PrincipalNetworkDomain pnd = 2;
int64 timestamp = 1; // Timestamp in nanoseconds since Epoch.
.gosdn.pnd.PrincipalNetworkDomain pnd = 2;
message CreatePndRequest {
int64 timestamp = 1; // Timestamp in nanoseconds since Epoch.
PndCreateProperties pnd = 2;
message PndCreateProperties {
string name = 1;
string description = 2;
string sbi = 3;
message CreatePndResponse {
int64 timestamp = 1; // Timestamp in nanoseconds since Epoch.
enum Status {
STATUS_UNSPECIFIED = 0;
STATUS_OK = 1;
STATUS_ERROR = 2;
Status status = 2;