1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

[xenserver] updated create_sr request documentation, fixed default values

This commit is contained in:
Sergio Rubio 2013-01-04 22:12:09 +01:00
parent 72d4c6ff2f
commit c7f75c8aaa

View file

@ -7,15 +7,31 @@ module Fog
#
# Create a storage repository (SR)
#
# http://docs.vmd.citrix.com/XenServer/6.0.0/1.0/en_gb/api/?c=SR
# @see http://docs.vmd.citrix.com/XenServer/6.0.0/1.0/en_gb/api/?c=SR
#
# @param [String] host_ref host reference
# @param [String] name_label repository label
# @param [String] type storage repository type
# @param [String] name_description storage repository description
# @param [Hash] device_config used to specify block device path, like
# { :device => /dev/sdb } for example
# @param [String] physical_size '0' will use the whole device (FIXME
# needs confirmation)
# @param [String] content_type the type of the SR's content.
# According to Citrix documentation, used only to distinguish ISO
# libraries from other SRs. Set it to 'iso' for storage repositories
# that store a library of ISOs, 'user' or '' (empty) otherwise.
# @see http://docs.vmd.citrix.com/XenServer/6.1.0/1.0/en_gb/reference.html#cli-xe-commands_sr
# @param [String] shared
#
# @return [String] an OpaqueRef to the storage repository
def create_sr( host_ref,
name_label,
type,
name_description = nil,
name_description = '',
device_config = {},
physical_size = '0',
content_type = nil,
content_type = 'user',
shared = false,
sm_config = {} )