summaryrefslogtreecommitdiff
path: root/lib/api/entities/clusters/agent.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/api/entities/clusters/agent.rb')
-rw-r--r--lib/api/entities/clusters/agent.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/api/entities/clusters/agent.rb b/lib/api/entities/clusters/agent.rb
new file mode 100644
index 00000000000..3b4538b81c2
--- /dev/null
+++ b/lib/api/entities/clusters/agent.rb
@@ -0,0 +1,12 @@
+# frozen_string_literal: true
+
+module API
+ module Entities
+ module Clusters
+ class Agent < Grape::Entity
+ expose :id
+ expose :project, with: Entities::ProjectIdentity, as: :config_project
+ end
+ end
+ end
+end