Class: OvirtSDK4::QuotaClusterLimitsService
- Defined in:
- lib/ovirtsdk4/services.rb,
lib/ovirtsdk4/services.rb
Instance Method Summary collapse
-
#add(limit, opts = {}) ⇒ QuotaClusterLimit
Add a cluster limit to a specified Quota.
-
#limit_service(id) ⇒ QuotaClusterLimitService
Locates the
limit
service. -
#list(opts = {}) ⇒ Array<QuotaClusterLimit>
Returns the set of quota limits configured for the cluster.
-
#service(path) ⇒ Service
Locates the service corresponding to the given path.
Methods inherited from Service
Instance Method Details
#add(limit, opts = {}) ⇒ QuotaClusterLimit
Add a cluster limit to a specified Quota.
18488 18489 18490 |
# File 'lib/ovirtsdk4/services.rb', line 18488 def add(limit, opts = {}) internal_add(limit, QuotaClusterLimit, ADD, opts) end |
#limit_service(id) ⇒ QuotaClusterLimitService
Locates the limit
service.
18533 18534 18535 |
# File 'lib/ovirtsdk4/services.rb', line 18533 def limit_service(id) QuotaClusterLimitService.new(self, id) end |
#list(opts = {}) ⇒ Array<QuotaClusterLimit>
Returns the set of quota limits configured for the cluster.
The returned list of quota limits isn’t guaranteed.
18522 18523 18524 |
# File 'lib/ovirtsdk4/services.rb', line 18522 def list(opts = {}) internal_get(LIST, opts) end |
#service(path) ⇒ Service
Locates the service corresponding to the given path.
18544 18545 18546 18547 18548 18549 18550 18551 18552 18553 |
# File 'lib/ovirtsdk4/services.rb', line 18544 def service(path) if path.nil? || path == '' return self end index = path.index('/') if index.nil? return limit_service(path) end return limit_service(path[0..(index - 1)]).service(path[(index +1)..-1]) end |