Class: OvirtSDK4::ClusterEnabledFeatureService
- Defined in:
- lib/ovirtsdk4/services.rb,
lib/ovirtsdk4/services.rb
Instance Method Summary collapse
-
#get(opts = {}) ⇒ ClusterFeature
Provides the information about the cluster feature enabled.
-
#remove(opts = {}) ⇒ Object
Disables a cluster feature.
-
#service(path) ⇒ Service
Locates the service corresponding to the given path.
Methods inherited from Service
Instance Method Details
#get(opts = {}) ⇒ ClusterFeature
Provides the information about the cluster feature enabled.
For example, to find details of the enabled feature 456
for cluster 123
, send a request like this:
GET /ovirt-engine/api/clusters/123/enabledfeatures/456
That will return a ClusterFeature object containing the name:
<cluster_feature id="456">
<name>libgfapi_supported</name>
</cluster_feature>
4486 4487 4488 |
# File 'lib/ovirtsdk4/services.rb', line 4486 def get(opts = {}) internal_get(GET, opts) end |
#remove(opts = {}) ⇒ Object
Disables a cluster feature.
For example, to disable the feature 456
of cluster 123
send a request like this:
DELETE /ovirt-engine/api/clusters/123/enabledfeatures/456
4516 4517 4518 |
# File 'lib/ovirtsdk4/services.rb', line 4516 def remove(opts = {}) internal_remove(REMOVE, opts) end |
#service(path) ⇒ Service
Locates the service corresponding to the given path.
4527 4528 4529 4530 4531 4532 |
# File 'lib/ovirtsdk4/services.rb', line 4527 def service(path) if path.nil? || path == '' return self end raise Error.new("The path \"#{path}\" doesn't correspond to any service") end |