Skip to content

Commit

Permalink
add cloud and infra apis for resource pool
Browse files Browse the repository at this point in the history
  • Loading branch information
Guddetisandeep committed Oct 21, 2024
1 parent e83ac86 commit d929a45
Show file tree
Hide file tree
Showing 3 changed files with 67 additions and 15 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module Api
class ResourcePoolsController < BaseController
class ResourcePoolCloudsController < BaseController
include Subcollections::Policies
include Subcollections::PolicyProfiles
include Subcollections::Tags
Expand Down
7 changes: 7 additions & 0 deletions app/controllers/api/resource_pool_infras_controller.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module Api
class ResourcePoolInfrasController < BaseController
include Subcollections::Policies
include Subcollections::PolicyProfiles
include Subcollections::Tags
end
end
73 changes: 59 additions & 14 deletions config/api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3325,49 +3325,94 @@
- :subcollection
:verbs: *g
:klass: ResourceAction
:resource_pools:
:description: Resource Pools
:identifier: resource_pool

:resource_pool_clouds:
:description: Cloud Resource Pools
:identifier: resource_pool_cloud
:options:
- :collection
:verbs: *gp
:klass: ManageIQ::Providers::CloudManager::ResourcePool
:subcollections:
- :tags
- :policies
- :policy_profiles
:collection_actions:
:get:
- :name: read
:identifier: resource_pool_cloud_show_list
:post:
- :name: query
:identifier: resource_pool_cloud_show_list
:resource_actions:
:get:
- :name: read
:identifier: resource_pool_cloud_show
:post:
- :name: delete
:identifier: resource_pool_cloud_delete
:tags_subcollection_actions:
:post:
- :name: assign
:identifier: resource_pool_cloud_tag
- :name: unassign
:identifier: resource_pool_cloud_tag
:policies_subcollection_actions:
:post:
- :name: assign
:identifier: resource_pool_cloud_protect
- :name: unassign
:identifier: resource_pool_cloud_protect
:policy_profiles_subcollection_actions:
:post:
- :name: assign
:identifier: resource_pool_cloud_protect
- :name: unassign
:identifier: resource_pool_cloud_protect

:resource_pool_infras:
:description: Infrastructure Resource Pools
:identifier: resource_pool_infra
:options:
- :collection
:verbs: *gp
:klass: ResourcePool
:klass: ManageIQ::Providers::InfraManager::ResourcePool
:subcollections:
- :tags
- :policies
- :policy_profiles
:collection_actions:
:get:
- :name: read
:identifier: resource_pool_show_list
:identifier: resource_pool_infra_show_list
:post:
- :name: query
:identifier: resource_pool_show_list
:identifier: resource_pool_infra_show_list
:resource_actions:
:get:
- :name: read
:identifier: resource_pool_show
:identifier: resource_pool_infra_show
:post:
- :name: delete
:identifier: resource_pool_delete
:identifier: resource_pool_infra_delete
:tags_subcollection_actions:
:post:
- :name: assign
:identifier: resource_pool_tag
:identifier: resource_pool_infra_tag
- :name: unassign
:identifier: resource_pool_tag
:identifier: resource_pool_infra_tag
:policies_subcollection_actions:
:post:
- :name: assign
:identifier: resource_pool_protect
:identifier: resource_pool_infra_protect
- :name: unassign
:identifier: resource_pool_protect
:identifier: resource_pool_infra_protect
:policy_profiles_subcollection_actions:
:post:
- :name: assign
:identifier: resource_pool_protect
:identifier: resource_pool_infra_protect
- :name: unassign
:identifier: resource_pool_protect
:identifier: resource_pool_infra_protect
:results:
:description: Report Results
:identifier: miq_report_reports
Expand Down

0 comments on commit d929a45

Please sign in to comment.