Copies a disk to the specified storage domain.
IMPORTANT: Since version 4.2 of the engine this operation is deprecated, and preserved only for backwards compatibility. It will be removed in the future. To copy a disk use the <<services/disk/methods/copy, copy>> operation of the service that manages that disk.
@param opts [Hash] Additional options.
@option opts [Disk] :disk Description of the resulting disk.
@option opts [StorageDomain] :storage_domain The storage domain where the new disk will be created.
@option opts [Hash] :headers ({}) Additional HTTP headers.
@option opts [Hash] :query ({}) Additional URL query parameters.
@option opts [Integer] :timeout (nil) The timeout for this request, in seconds. If no value is explicitly
given then the timeout set globally for the connection will be used.
@option opts [Boolean] :wait (true) If `true` wait for the response.
# File lib/ovirtsdk4/services.rb, line 21877 def copy(opts = {}) internal_action(:copy, nil, COPY, opts) end
Exports a disk to an export storage domain.
IMPORTANT: Since version 4.2 of the engine this operation is deprecated, and preserved only for backwards compatibility. It will be removed in the future. To export a disk use the <<services/disk/methods/export, export>> operation of the service that manages that disk.
@param opts [Hash] Additional options.
@option opts [StorageDomain] :storage_domain The export storage domain where the disk should be exported to.
@option opts [Hash] :headers ({}) Additional HTTP headers.
@option opts [Hash] :query ({}) Additional URL query parameters.
@option opts [Integer] :timeout (nil) The timeout for this request, in seconds. If no value is explicitly
given then the timeout set globally for the connection will be used.
@option opts [Boolean] :wait (true) If `true` wait for the response.
# File lib/ovirtsdk4/services.rb, line 21907 def export(opts = {}) internal_action(:export, nil, EXPORT, opts) end
Retrieves the description of the disk.
@param opts [Hash] Additional options.
@option opts [Hash] :headers ({}) Additional HTTP headers.
@option opts [Hash] :query ({}) Additional URL query parameters.
@option opts [Integer] :timeout (nil) The timeout for this request, in seconds. If no value is explicitly
given then the timeout set globally for the connection will be used.
@option opts [Boolean] :wait (true) If `true` wait for the response.
@return [Disk]
# File lib/ovirtsdk4/services.rb, line 21932 def get(opts = {}) internal_get(GET, opts) end
Moves a disk to another storage domain.
IMPORTANT: Since version 4.2 of the engine this operation is deprecated, and preserved only for backwards compatibility. It will be removed in the future. To move a disk use the <<services/disk/methods/move, move>> operation of the service that manages that disk.
@param opts [Hash] Additional options.
@option opts [Boolean] :async Indicates if the move should be performed asynchronously.
@option opts [Boolean] :filter Indicates if the results should be filtered according to the permissions of the user.
@option opts [StorageDomain] :storage_domain The storage domain where the disk will be moved to.
@option opts [Hash] :headers ({}) Additional HTTP headers.
@option opts [Hash] :query ({}) Additional URL query parameters.
@option opts [Integer] :timeout (nil) The timeout for this request, in seconds. If no value is explicitly
given then the timeout set globally for the connection will be used.
@option opts [Boolean] :wait (true) If `true` wait for the response.
# File lib/ovirtsdk4/services.rb, line 21968 def move(opts = {}) internal_action(:move, nil, MOVE, opts) end
Reference to the service that manages the permissions assigned to the disk.
@return [AssignedPermissionsService] A reference to `permissions` service.
# File lib/ovirtsdk4/services.rb, line 22061 def permissions_service @permissions_service ||= AssignedPermissionsService.new(self, 'permissions') end
Removes a disk.
IMPORTANT: Since version 4.2 of the engine this operation is deprecated, and preserved only for backwards compatibility. It will be removed in the future. To remove a disk use the <<services/disk/methods/remove, remove>> operation of the service that manages that disk.
@param opts [Hash] Additional options.
@option opts [Hash] :headers ({}) Additional HTTP headers.
@option opts [Hash] :query ({}) Additional URL query parameters.
@option opts [Integer] :timeout (nil) The timeout for this request, in seconds. If no value is explicitly
given then the timeout set globally for the connection will be used.
@option opts [Boolean] :wait (true) If `true` wait for the response.
# File lib/ovirtsdk4/services.rb, line 21995 def remove(opts = {}) internal_remove(REMOVE, opts) end
Locates the service corresponding to the given path.
@param path [String] The path of the service.
@return [Service] A reference to the service.
# File lib/ovirtsdk4/services.rb, line 22081 def service(path) if path.nil? || path == '' return self end if path == 'permissions' return permissions_service end if path.start_with?('permissions/') return permissions_service.service(path[12..-1]) end if path == 'statistics' return statistics_service end if path.start_with?('statistics/') return statistics_service.service(path[11..-1]) end raise Error.new("The path \"#{path}\" doesn't correspond to any service") end
Sparsify the disk.
IMPORTANT: Since version 4.2 of the engine this operation is deprecated, and preserved only for backwards compatibility. It will be removed in the future. To remove a disk use the <<services/disk/methods/remove, remove>> operation of the service that manages that disk.
@param opts [Hash] Additional options.
@option opts [Hash] :headers ({}) Additional HTTP headers.
@option opts [Hash] :query ({}) Additional URL query parameters.
@option opts [Integer] :timeout (nil) The timeout for this request, in seconds. If no value is explicitly
given then the timeout set globally for the connection will be used.
@option opts [Boolean] :wait (true) If `true` wait for the response.
# File lib/ovirtsdk4/services.rb, line 22022 def sparsify(opts = {}) internal_action(:sparsify, nil, SPARSIFY, opts) end
Locates the `statistics` service.
@return [StatisticsService] A reference to `statistics` service.
# File lib/ovirtsdk4/services.rb, line 22070 def statistics_service @statistics_service ||= StatisticsService.new(self, 'statistics') end
Returns an string representation of this service.
@return [String]
# File lib/ovirtsdk4/services.rb, line 22105 def to_s "#<#{StorageDomainDiskService}:#{absolute_path}>" end
Updates the disk.
IMPORTANT: Since version 4.2 of the engine this operation is deprecated, and preserved only for backwards compatibility. It will be removed in the future. To update a disk use the <<services/disk/methods/update, update>> operation of the service that manages that disk.
@param disk [Disk] The update to apply to the disk. @param opts [Hash] Additional options.
@option opts [Hash] :headers ({}) Additional HTTP headers.
@option opts [Hash] :query ({}) Additional URL query parameters.
@option opts [Integer] :timeout (nil) The timeout for this request, in seconds. If no value is explicitly
given then the timeout set globally for the connection will be used.
@option opts [Boolean] :wait (true) If `true` wait for the response.
@return [Disk]
# File lib/ovirtsdk4/services.rb, line 22052 def update(disk, opts = {}) internal_update(disk, Disk, UPDATE, opts) end