Skip to content
Browse files

[xenserver] updated create_sr request documentation, fixed default va…

…lues
  • Loading branch information...
1 parent 72d4c6f commit c7f75c8aaa5f91f56bcb9920db571382b48030ac @rubiojr committed Jan 4, 2013
Showing with 19 additions and 3 deletions.
  1. +19 −3 lib/fog/xenserver/requests/compute/create_sr.rb
View
22 lib/fog/xenserver/requests/compute/create_sr.rb
@@ -7,15 +7,31 @@ class Real
#
# 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 = {} )

0 comments on commit c7f75c8

Please sign in to comment.
Something went wrong with that request. Please try again.