Commit 58d9825e authored by Rajendra Kadam's avatar Rajendra Kadam Committed by James Lopez

Separate platform provider and post receive entities into own class files

parent 0a8d441b
---
title: Separate provider, platform and post receive entities into own class files
merge_request: 25119
author: Rajendra Kadam
type: added
......@@ -243,39 +243,6 @@ module API
expose :startline
expose :project_id
end
module Platform
class Kubernetes < Grape::Entity
expose :api_url
expose :namespace
expose :authorization_type
expose :ca_cert
end
end
module Provider
class Gcp < Grape::Entity
expose :cluster_id
expose :status_name
expose :gcp_project_id
expose :zone
expose :machine_type
expose :num_nodes
expose :endpoint
end
end
module InternalPostReceive
class Message < Grape::Entity
expose :message
expose :type
end
class Response < Grape::Entity
expose :messages, using: Message
expose :reference_counter_decreased
end
end
end
end
......
# frozen_string_literal: true
module API
module Entities
module InternalPostReceive
class Message < Grape::Entity
expose :message
expose :type
end
end
end
end
# frozen_string_literal: true
module API
module Entities
module InternalPostReceive
class Response < Grape::Entity
expose :messages, using: Entities::InternalPostReceive::Message
expose :reference_counter_decreased
end
end
end
end
# frozen_string_literal: true
module API
module Entities
module Platform
class Kubernetes < Grape::Entity
expose :api_url
expose :namespace
expose :authorization_type
expose :ca_cert
end
end
end
end
# frozen_string_literal: true
module API
module Entities
module Provider
class Gcp < Grape::Entity
expose :cluster_id
expose :status_name
expose :gcp_project_id
expose :zone
expose :machine_type
expose :num_nodes
expose :endpoint
end
end
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment