@@ -430,36 +430,39 @@ def place_order(self, package_keyname, location, item_keynames, complex_type=Non
430430 extras = extras , quantity = quantity )
431431 return self .order_svc .placeOrder (order )
432432
433- def save_quote (self , package_keyname , location , item_keynames , complex_type = None ,
434- preset_keyname = None , extras = None , quantity = 1 ):
435-
436- """Save an order as Quote with the given package and prices.
437-
438- This function takes in parameters needed for an order and places the order.
439-
440- :param str package_keyname: The keyname for the package being ordered
441- :param str location: The datacenter location string for ordering (Ex: DALLAS13)
442- :param list item_keynames: The list of item keyname strings to order. To see list of
443- possible keynames for a package, use list_items()
444- (or `slcli order item-list`)
445- :param str complex_type: The complex type to send with the order. Typically begins
446- with `SoftLayer_Container_Product_Order_`.
447- :param string preset_keyname: If needed, specifies a preset to use for that package.
448- To see a list of possible keynames for a package, use
449- list_preset() (or `slcli order preset-list`)
450- :param dict extras: The extra data for the order in dictionary format.
451- Example: A VSI order requires hostname and domain to be set, so
452- extras will look like the following:
453- {'virtualGuests': [{'hostname': 'test', domain': 'softlayer.com'}]}
454- :param int quantity: The number of resources to order
455-
456- """
457- order = self .generate_order (package_keyname , location , item_keynames ,
458- complex_type = complex_type , hourly = False ,
459- preset_keyname = preset_keyname ,
460- extras = extras , quantity = quantity )
461- return self .order_svc .placeOrder (order , True )
433+ def place_quote (self , package_keyname , location , item_keynames , complex_type = None ,
434+ preset_keyname = None , extras = None , quantity = 1 , quote_name = None , send_email = False ):
435+
436+ """Place a quote with the given package and prices.
437+
438+ This function takes in parameters needed for an order and places the quote.
439+
440+ :param str package_keyname: The keyname for the package being ordered
441+ :param str location: The datacenter location string for ordering (Ex: DALLAS13)
442+ :param list item_keynames: The list of item keyname strings to order. To see list of
443+ possible keynames for a package, use list_items()
444+ (or `slcli order item-list`)
445+ :param str complex_type: The complex type to send with the order. Typically begins
446+ with `SoftLayer_Container_Product_Order_`.
447+ :param string preset_keyname: If needed, specifies a preset to use for that package.
448+ To see a list of possible keynames for a package, use
449+ list_preset() (or `slcli order preset-list`)
450+ :param dict extras: The extra data for the order in dictionary format.
451+ Example: A VSI order requires hostname and domain to be set, so
452+ extras will look like the following:
453+ {'virtualGuests': [{'hostname': 'test', domain': 'softlayer.com'}]}
454+ :param int quantity: The number of resources to order
455+ :param string quote_name: A custom name to be assigned to the quote (optional).
456+ :param bool send_email: This flag indicates that the quote should be sent to the email
457+ address associated with the account or order.
458+ """
459+ order = self .generate_order (package_keyname , location , item_keynames , complex_type = complex_type ,
460+ hourly = False , preset_keyname = preset_keyname , extras = extras , quantity = quantity )
461+
462+ order ['quoteName' ] = quote_name
463+ order ['sendQuoteEmailFlag' ] = send_email
462464
465+ return self .order_svc .placeQuote (order )
463466
464467 def generate_order (self , package_keyname , location , item_keynames , complex_type = None ,
465468 hourly = True , preset_keyname = None , extras = None , quantity = 1 ):
0 commit comments