Commit d5ab0e67 authored by James Lopez's avatar James Lopez

Merge branch 'refactoring-entities-file-31' into 'master'

Separate platform provider and post receive entities into own class files

See merge request gitlab-org/gitlab!25119
parents 31ad7992 58d9825e
---
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