Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
58d9825e
Commit
58d9825e
authored
Feb 14, 2020
by
Rajendra Kadam
Committed by
James Lopez
Feb 14, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Separate platform provider and post receive entities into own class files
parent
0a8d441b
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
60 additions
and
33 deletions
+60
-33
changelogs/unreleased/refactoring-entities-file-31.yml
changelogs/unreleased/refactoring-entities-file-31.yml
+5
-0
lib/api/entities.rb
lib/api/entities.rb
+0
-33
lib/api/entities/internal_post_receive/message.rb
lib/api/entities/internal_post_receive/message.rb
+12
-0
lib/api/entities/internal_post_receive/response.rb
lib/api/entities/internal_post_receive/response.rb
+12
-0
lib/api/entities/platform/kubernetes.rb
lib/api/entities/platform/kubernetes.rb
+14
-0
lib/api/entities/provider/gcp.rb
lib/api/entities/provider/gcp.rb
+17
-0
No files found.
changelogs/unreleased/refactoring-entities-file-31.yml
0 → 100644
View file @
58d9825e
---
title
:
Separate provider, platform and post receive entities into own class files
merge_request
:
25119
author
:
Rajendra Kadam
type
:
added
lib/api/entities.rb
View file @
58d9825e
...
...
@@ -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
...
...
lib/api/entities/internal_post_receive/message.rb
0 → 100644
View file @
58d9825e
# frozen_string_literal: true
module
API
module
Entities
module
InternalPostReceive
class
Message
<
Grape
::
Entity
expose
:message
expose
:type
end
end
end
end
lib/api/entities/internal_post_receive/response.rb
0 → 100644
View file @
58d9825e
# 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
lib/api/entities/platform/kubernetes.rb
0 → 100644
View file @
58d9825e
# 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
lib/api/entities/provider/gcp.rb
0 → 100644
View file @
58d9825e
# 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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment