@@ -228,20 +228,23 @@ def delete_snapshot(self, snapshot_id):
228228 return self .client .call ('Network_Storage' , 'deleteObject' ,
229229 id = snapshot_id )
230230
231- def order_file_volume (self , storage_type , location , size , os_type ,
231+ def order_file_volume (self , storage_type , location , size , os_type = None ,
232232 iops = None , tier_level = None , snapshot_size = None ):
233233 """Places an order for a file volume.
234234
235235 :param storage_type: "performance_storage_iscsi" (performance)
236236 or "storage_service_enterprise" (endurance)
237237 :param location: Datacenter in which to order iSCSI volume
238238 :param size: Size of the desired volume, in GB
239- :param os_type: OS Type to use for volume alignment, see help for list
239+ :param os_type: Not used for file storage orders, leave None
240240 :param iops: Number of IOPs for a "Performance" order
241241 :param tier_level: Tier level to use for an "Endurance" order
242242 :param snapshot_size: The size of optional snapshot space,
243243 if snapshot space should also be ordered (None if not ordered)
244244 """
245+ if os_type :
246+ raise exceptions .SoftLayerError (
247+ 'OS type is not used on file storage orders' )
245248
246249 try :
247250 location_id = storage_utils .get_location_id (self , location )
@@ -259,7 +262,7 @@ def order_file_volume(self, storage_type, location, size, os_type,
259262 package ,
260263 'performance_storage_nfs'
261264 ),
262- storage_utils .find_performance_space_price (package , iops ),
265+ storage_utils .find_performance_space_price (package , size ),
263266 storage_utils .find_performance_iops_price (package , size , iops ),
264267 ]
265268 elif storage_type == 'storage_service_enterprise' :
@@ -288,7 +291,6 @@ def order_file_volume(self, storage_type, location, size, os_type,
288291 order = {
289292 'complexType' : complex_type ,
290293 'packageId' : package ['id' ],
291- 'osFormatType' : {'keyName' : os_type },
292294 'prices' : prices ,
293295 'quantity' : 1 ,
294296 'location' : location_id ,
@@ -313,6 +315,15 @@ def enable_snapshots(self, volume_id, schedule_type, retention_count,
313315
314316 :param integer volume_id: The id of the volume
315317 :param string schedule_type: 'HOURLY'|'DAILY'|'WEEKLY'
318+ :param integer retention_count: The number of snapshots to attempt to
319+ retain in this schedule
320+ :param integer minute: The minute of the hour at which HOURLY, DAILY,
321+ and WEEKLY snapshots should be taken
322+ :param integer hour: The hour of the day at which DAILY and WEEKLY
323+ snapshots should be taken
324+ :param string|integer day_of_week: The day of the week on which WEEKLY
325+ snapshots should be taken, either as a string ('SUNDAY') or integer
326+ ('0' is Sunday)
316327 :return: Returns whether successfully scheduled or not
317328 """
318329
@@ -340,7 +351,7 @@ def order_snapshot_space(self, volume_id, capacity, tier,
340351 upgrade , ** kwargs ):
341352 """Orders snapshot space for the given file volume.
342353
343- :param integer volume_id: The id of the volume
354+ :param integer volume_id: The ID of the volume
344355 :param integer capacity: The capacity to order, in GB
345356 :param float tier: The tier level of the file volume, in IOPS per GB
346357 :param boolean upgrade: Flag to indicate if this order is an upgrade
@@ -390,7 +401,7 @@ def cancel_snapshot_space(self, volume_id,
390401
391402 :param integer volume_id: The volume ID
392403 :param string reason: The reason for cancellation
393- :param boolean immediate_flag : Cancel immediately or
404+ :param boolean immediate : Cancel immediately or
394405 on anniversary date
395406 """
396407
@@ -422,9 +433,9 @@ def cancel_snapshot_space(self, volume_id,
422433 def restore_from_snapshot (self , volume_id , snapshot_id ):
423434 """Restores a specific volume from a snapshot
424435
425- :param integer volume_id: The id of the volume
436+ :param integer volume_id: The ID of the volume
426437 :param integer snapshot_id: The id of the restore point
427- :return: Returns whether succesfully restored or not
438+ :return: Returns whether successfully restored or not
428439 """
429440
430441 return self .client .call ('Network_Storage' , 'restoreFromSnapshot' ,
@@ -437,7 +448,7 @@ def cancel_file_volume(self, volume_id,
437448
438449 :param integer volume_id: The volume ID
439450 :param string reason: The reason for cancellation
440- :param boolean immediate_flag : Cancel immediately or
451+ :param boolean immediate : Cancel immediately or
441452 on anniversary date
442453 """
443454 file_volume = self .get_file_volume_details (
@@ -454,7 +465,7 @@ def cancel_file_volume(self, volume_id,
454465 def failover_to_replicant (self , volume_id , replicant_id , immediate = False ):
455466 """Failover to a volume replicant.
456467
457- :param integer volume_id: The id of the volume
468+ :param integer volume_id: The ID of the volume
458469 :param integer replicant_id: ID of replicant to failover to
459470 :param boolean immediate: Flag indicating if failover is immediate
460471 :return: Returns whether failover was successful or not
@@ -466,8 +477,8 @@ def failover_to_replicant(self, volume_id, replicant_id, immediate=False):
466477 def failback_from_replicant (self , volume_id , replicant_id ):
467478 """Failback from a volume replicant.
468479
469- :param integer volume_id: The id of the volume
470- :param integer: ID of replicant to failback from
480+ :param integer volume_id: The ID of the volume
481+ :param integer replicant_id : ID of replicant to failback from
471482 :return: Returns whether failback was successful or not
472483 """
473484
0 commit comments