syntax = "proto3";

// If you make any changes make sure you run: make regenerate-proto

package gitlab.agent.server_info.rpc;

option go_package = "gitlab.com/gitlab-org/cluster-integration/gitlab-agent/v18/internal/module/server_info/rpc";

import "internal/module/server_info/server_info.proto";
import "buf/validate/validate.proto";

message GetServerInfoRequest {
}

message GetServerInfoResponse {
  // current_server_info represents the server information of the server that responded the this rpc call.
  server_info.ServerInfo current_server_info = 1 [json_name = "current_server_info", (buf.validate.field).required = true];
}

service ServerInfo {
  // Get server information.
  rpc GetServerInfo (GetServerInfoRequest) returns (GetServerInfoResponse) {
    option idempotency_level = NO_SIDE_EFFECTS;
  }
}
