Class: ManageIQ::API::Common::RBAC::QuerySharedResource
- Inherits:
-
Object
- Object
- ManageIQ::API::Common::RBAC::QuerySharedResource
- Includes:
- Utilities
- Defined in:
- lib/manageiq/api/common/rbac/query_shared_resource.rb
Instance Attribute Summary collapse
-
#share_info ⇒ Object
Returns the value of attribute share_info.
Instance Method Summary collapse
-
#initialize(options) ⇒ QuerySharedResource
constructor
A new instance of QuerySharedResource.
- #process ⇒ Object
Methods included from Utilities
#parse_ids_from_name, #unique_name, #validate_groups
Constructor Details
#initialize(options) ⇒ QuerySharedResource
Returns a new instance of QuerySharedResource.
11 12 13 14 15 16 17 |
# File 'lib/manageiq/api/common/rbac/query_shared_resource.rb', line 11 def initialize() @app_name = [:app_name] @resource_id = [:resource_id] @resource_name = [:resource_name] @share_info = [] @roles = RBAC::Roles.new("#{@app_name}-#{@resource_name}-#{@resource_id}") end |
Instance Attribute Details
#share_info ⇒ Object
Returns the value of attribute share_info.
9 10 11 |
# File 'lib/manageiq/api/common/rbac/query_shared_resource.rb', line 9 def share_info @share_info end |
Instance Method Details
#process ⇒ Object
19 20 21 22 |
# File 'lib/manageiq/api/common/rbac/query_shared_resource.rb', line 19 def process build_share_info self end |