@@ -228,15 +228,15 @@ 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,
@@ -259,7 +259,7 @@ def order_file_volume(self, storage_type, location, size, os_type,
259259 package ,
260260 'performance_storage_nfs'
261261 ),
262- storage_utils .find_performance_space_price (package , iops ),
262+ storage_utils .find_performance_space_price (package , size ),
263263 storage_utils .find_performance_iops_price (package , size , iops ),
264264 ]
265265 elif storage_type == 'storage_service_enterprise' :
@@ -288,7 +288,6 @@ def order_file_volume(self, storage_type, location, size, os_type,
288288 order = {
289289 'complexType' : complex_type ,
290290 'packageId' : package ['id' ],
291- 'osFormatType' : {'keyName' : os_type },
292291 'prices' : prices ,
293292 'quantity' : 1 ,
294293 'location' : location_id ,
@@ -313,6 +312,15 @@ def enable_snapshots(self, volume_id, schedule_type, retention_count,
313312
314313 :param integer volume_id: The id of the volume
315314 :param string schedule_type: 'HOURLY'|'DAILY'|'WEEKLY'
315+ :param integer retention_count: The number of snapshots to attempt to
316+ retain in this schedule
317+ :param integer minute: The minute of the hour at which HOURLY, DAILY,
318+ and WEEKLY snapshots should be taken
319+ :param integer hour: The hour of the day at which DAILY and WEEKLY
320+ snapshots should be taken
321+ :param string|integer day_of_week: The day of the week on which WEEKLY
322+ snapshots should be taken, either as a string ('SUNDAY') or integer
323+ ('0' is Sunday)
316324 :return: Returns whether successfully scheduled or not
317325 """
318326
@@ -340,7 +348,7 @@ def order_snapshot_space(self, volume_id, capacity, tier,
340348 upgrade , ** kwargs ):
341349 """Orders snapshot space for the given file volume.
342350
343- :param integer volume_id: The id of the volume
351+ :param integer volume_id: The ID of the volume
344352 :param integer capacity: The capacity to order, in GB
345353 :param float tier: The tier level of the file volume, in IOPS per GB
346354 :param boolean upgrade: Flag to indicate if this order is an upgrade
@@ -390,7 +398,7 @@ def cancel_snapshot_space(self, volume_id,
390398
391399 :param integer volume_id: The volume ID
392400 :param string reason: The reason for cancellation
393- :param boolean immediate_flag : Cancel immediately or
401+ :param boolean immediate : Cancel immediately or
394402 on anniversary date
395403 """
396404
@@ -422,9 +430,9 @@ def cancel_snapshot_space(self, volume_id,
422430 def restore_from_snapshot (self , volume_id , snapshot_id ):
423431 """Restores a specific volume from a snapshot
424432
425- :param integer volume_id: The id of the volume
433+ :param integer volume_id: The ID of the volume
426434 :param integer snapshot_id: The id of the restore point
427- :return: Returns whether succesfully restored or not
435+ :return: Returns whether successfully restored or not
428436 """
429437
430438 return self .client .call ('Network_Storage' , 'restoreFromSnapshot' ,
@@ -437,7 +445,7 @@ def cancel_file_volume(self, volume_id,
437445
438446 :param integer volume_id: The volume ID
439447 :param string reason: The reason for cancellation
440- :param boolean immediate_flag : Cancel immediately or
448+ :param boolean immediate : Cancel immediately or
441449 on anniversary date
442450 """
443451 file_volume = self .get_file_volume_details (
@@ -454,7 +462,7 @@ def cancel_file_volume(self, volume_id,
454462 def failover_to_replicant (self , volume_id , replicant_id , immediate = False ):
455463 """Failover to a volume replicant.
456464
457- :param integer volume_id: The id of the volume
465+ :param integer volume_id: The ID of the volume
458466 :param integer replicant_id: ID of replicant to failover to
459467 :param boolean immediate: Flag indicating if failover is immediate
460468 :return: Returns whether failover was successful or not
@@ -466,8 +474,8 @@ def failover_to_replicant(self, volume_id, replicant_id, immediate=False):
466474 def failback_from_replicant (self , volume_id , replicant_id ):
467475 """Failback from a volume replicant.
468476
469- :param integer volume_id: The id of the volume
470- :param integer: ID of replicant to failback from
477+ :param integer volume_id: The ID of the volume
478+ :param integer replicant_id : ID of replicant to failback from
471479 :return: Returns whether failback was successful or not
472480 """
473481
0 commit comments