Class: OvirtSDK4::NetworkLabelService
- Defined in:
- lib/ovirtsdk4/services.rb,
lib/ovirtsdk4/services.rb
Instance Method Summary collapse
-
#get(opts = {}) ⇒ NetworkLabel
Returns the representation of the object managed by this service.
-
#remove(opts = {}) ⇒ Object
Removes a label from a logical network.
-
#service(path) ⇒ Service
Locates the service corresponding to the given path.
Methods inherited from Service
Instance Method Details
#get(opts = {}) ⇒ NetworkLabel
Returns the representation of the object managed by this service.
16207 16208 16209 |
# File 'lib/ovirtsdk4/services.rb', line 16207 def get(opts = {}) internal_get(GET, opts) end |
#remove(opts = {}) ⇒ Object
Removes a label from a logical network.
For example, to remove the label exemplary from a logical network having id 123 send the following request:
DELETE /ovirt-engine/api/networks/123/networklabels/exemplary HTTP/1.1
16238 16239 16240 |
# File 'lib/ovirtsdk4/services.rb', line 16238 def remove(opts = {}) internal_remove(REMOVE, opts) end |