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>
4435 4436 4437 |
# File 'lib/ovirtsdk4/services.rb', line 4435 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
4465 4466 4467 |
# File 'lib/ovirtsdk4/services.rb', line 4465 def remove(opts = {}) internal_remove(REMOVE, opts) end |
#service(path) ⇒ Service
Locates the service corresponding to the given path.
4476 4477 4478 4479 4480 4481 |
# File 'lib/ovirtsdk4/services.rb', line 4476 def service(path) if path.nil? || path == '' return self end raise Error.new("The path \"#{path}\" doesn't correspond to any service") end |