Class: OvirtSDK4::ExternalProviderCertificateService
- Inherits:
-
Service
- Object
- Service
- OvirtSDK4::ExternalProviderCertificateService
- Defined in:
- lib/ovirtsdk4/services.rb,
lib/ovirtsdk4/services.rb
Instance Method Summary (collapse)
-
- (Certificate) get(opts = {})
Returns the representation of the object managed by this service.
-
- (Service) service(path)
Locates the service corresponding to the given path.
-
- (String) to_s
Returns an string representation of this service.
Instance Method Details
- (Certificate) get(opts = {})
Returns the representation of the object managed by this service.
7647 7648 7649 7650 7651 7652 7653 7654 7655 7656 7657 7658 7659 7660 7661 7662 |
# File 'lib/ovirtsdk4/services.rb', line 7647 def get(opts = {}) query = {} request = Request.new(:method => :GET, :path => @path, :query => query) response = @connection.send(request) case response.code when 200 begin reader = XmlReader.new(response.body) return CertificateReader.read_one(reader) ensure reader.close end else check_fault(response) end end |
- (Service) service(path)
Locates the service corresponding to the given path.
7671 7672 7673 7674 7675 7676 |
# File 'lib/ovirtsdk4/services.rb', line 7671 def service(path) if path.nil? || path == '' return self end raise Error.new("The path \"#{path}\" doesn't correspond to any service") end |
- (String) to_s
Returns an string representation of this service.
7683 7684 7685 |
# File 'lib/ovirtsdk4/services.rb', line 7683 def to_s return "#<#{ExternalProviderCertificateService}:#{@path}>" end |