Added: websites/staging/libcloud/trunk/content/apidocs/0.8.0/libcloud.loadbalancer.drivers.rackspace.RackspaceHTTPHealthMonitor.html ============================================================================== --- websites/staging/libcloud/trunk/content/apidocs/0.8.0/libcloud.loadbalancer.drivers.rackspace.RackspaceHTTPHealthMonitor.html (added) +++ websites/staging/libcloud/trunk/content/apidocs/0.8.0/libcloud.loadbalancer.drivers.rackspace.RackspaceHTTPHealthMonitor.html Thu Feb 9 02:00:15 2012 @@ -0,0 +1,134 @@ + + + + libcloud.loadbalancer.drivers.rackspace.RackspaceHTTPHealthMonitor : API documentation + + + + + + +

l.l.d.r.RackspaceHTTPHealthMonitor(RackspaceHealthMonitor) : class documentation

+

+ Part of libcloud.loadbalancer.drivers.rackspace + View Source + View In Hierarchy +

+
+ +
+
A HTTP health monitor adds extra features to a Rackspace health monitor.
+
+@param path: the HTTP path to monitor.
+@type path: C{str}
+
+@param body_regex: Regular expression used to evaluate the body of
+                   the HTTP response.
+@type body_regex: C{str}
+
+@param status_regex: Regular expression used to evaluate the HTTP
+                     status code of the response.
+@type status_regex: C{str}
+ + + +
+ + + + + + + + + + + + + + + + + + + + + + + +
Method__init__Undocumented
Method__repr__Undocumented
Method_to_dictUndocumented
+ + +
+ + + + +
+ + + + + + +
+ + def + __init__(self, type, delay, timeout, attempts_before_deactivation, path, body_regex, status_regex): + + + (source) + +
+
+ +
Undocumented
+
+
+ + + + + + +
+ + def + __repr__(self): + + + (source) + +
+
+ +
Undocumented
+
+
+ + + + + + +
+ + def + _to_dict(self): + + + (source) + +
+
+ +
Undocumented
+
+
+
+ API Documentation for libcloud, generated by pydoctor at 2012-02-08 17:57:04. +
+ + \ No newline at end of file Added: websites/staging/libcloud/trunk/content/apidocs/0.8.0/libcloud.loadbalancer.drivers.rackspace.RackspaceHealthMonitor.html ============================================================================== --- websites/staging/libcloud/trunk/content/apidocs/0.8.0/libcloud.loadbalancer.drivers.rackspace.RackspaceHealthMonitor.html (added) +++ websites/staging/libcloud/trunk/content/apidocs/0.8.0/libcloud.loadbalancer.drivers.rackspace.RackspaceHealthMonitor.html Thu Feb 9 02:00:15 2012 @@ -0,0 +1,141 @@ + + + + libcloud.loadbalancer.drivers.rackspace.RackspaceHealthMonitor : API documentation + + + + + + +

l.l.d.r.RackspaceHealthMonitor(object) : class documentation

+

+ Part of libcloud.loadbalancer.drivers.rackspace + View Source + View In Hierarchy +

+
+

Known subclasses: libcloud.loadbalancer.drivers.rackspace.RackspaceHTTPHealthMonitor

+
+
@param type: type of load balancer.  currently CONNECT (connection
+             monitoring), HTTP, HTTPS (connection and HTTP
+             monitoring) are supported.
+@type type: C{str}
+
+@param delay: minimum seconds to wait before executing the health
+              monitor.  (Must be between 1 and 3600)
+@type delay: C{int}
+
+@param timeout: maximum seconds to wait when establishing a
+                connection before timing out.  (Must be between 1
+                and 3600)
+@type timeout: C{int}
+
+@param attempts_before_deactivation: Number of monitor failures
+                                     before removing a node from
+                                     rotation. (Must be between 1
+                                     and 10)
+@type attempts_before_deactivation: C{int}
+ + + +
+ + + + + + + + + + + + + + + + + + + + + + + +
Method__init__Undocumented
Method__repr__Undocumented
Method_to_dictUndocumented
+ + +
+ + + + +
+ + + + + + +
+ + def + __init__(self, type, delay, timeout, attempts_before_deactivation): + + + (source) + +
+
+ +
Undocumented
+
+
+ + + + + + +
+ + def + __repr__(self): + + + (source) + +
+
+ +
Undocumented
+
+
+ + + + + + +
+ + def + _to_dict(self): + + + (source) + +
+
+ +
Undocumented
+
+
+
+ API Documentation for libcloud, generated by pydoctor at 2012-02-08 17:57:04. +
+ + \ No newline at end of file Added: websites/staging/libcloud/trunk/content/apidocs/0.8.0/libcloud.loadbalancer.drivers.rackspace.RackspaceLBDriver.html ============================================================================== --- websites/staging/libcloud/trunk/content/apidocs/0.8.0/libcloud.loadbalancer.drivers.rackspace.RackspaceLBDriver.html (added) +++ websites/staging/libcloud/trunk/content/apidocs/0.8.0/libcloud.loadbalancer.drivers.rackspace.RackspaceLBDriver.html Thu Feb 9 02:00:15 2012 @@ -0,0 +1,2051 @@ + + + + libcloud.loadbalancer.drivers.rackspace.RackspaceLBDriver : API documentation + + + + + + +

l.l.d.r.RackspaceLBDriver(Driver) : class documentation

+

+ Part of libcloud.loadbalancer.drivers.rackspace + View Source + View In Hierarchy +

+
+

Known subclasses: libcloud.loadbalancer.drivers.rackspace.RackspaceUKLBDriver

+
+
No class docstring
+ + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methodlist_protocolsReturn a list of supported protocols.
Methodex_list_protocols_with_default_ports@rtype: C{list} of tuples of protocols (C{str}) with default ports (C{int}). @return: A list of protocols with default ports included.
Methodlist_balancersNo summary
Methodcreate_balancerCreate a new load balancer instance
Methoddestroy_balancerDestroy a load balancer
Methodex_destroy_balancersDestroys a list of Balancers (the API supports up to 10).
Methodget_balancerReturn a C{LoadBalancer} object.
Methodbalancer_attach_memberAttach a member to balancer
Methodbalancer_detach_memberDetach member from balancer
Methodex_balancer_detach_membersDetaches a list of members from a balancer (the API supports up to 10). This method blocks until the detach request has been processed and the balancer is in a RUNNING state again.
Methodex_balancer_detach_members_no_pollDetaches a list of members from a balancer (the API supports up to 10). This method returns immediately.
Methodbalancer_list_membersReturn list of members attached to balancer
Methodupdate_balancerSets the name, algorithm, protocol, or port on a load balancer.
Methodex_update_balancer_no_pollUndocumented
Methodex_balancer_update_memberNo summary
Methodex_balancer_update_member_no_pollUpdates a Member's extra attributes for a Balancer. The attribute can include 'weight' or 'condition'. This method returns immediately.
Methodex_list_algorithm_namesLists algorithms supported by the API. Returned as strings because this list may change in the future.
Methodex_get_balancer_error_pageUndocumented
Methodex_balancer_access_listUndocumented
Methodex_update_balancer_health_monitorSets a Balancer's health monitor. This method blocks until the update request has been processed and the balancer is in a RUNNING state again.
Methodex_update_balancer_health_monitor_no_pollSets a Balancer's health monitor. This method returns immediately.
Methodex_disable_balancer_health_monitorDisables a Balancer's health monitor. This method blocks until the disable request has been processed and the balancer is in a RUNNING state again.
Methodex_disable_balancer_health_monitor_no_pollDisables a Balancer's health monitor. This method returns immediately.
Methodex_update_balancer_connection_throttleUpdates a Balancer's connection throttle. This method blocks until the update request has been processed and the balancer is in a RUNNING state again.
Methodex_update_balancer_connection_throttle_no_pollSets a Balancer's connection throttle. This method returns immediately.
Methodex_disable_balancer_connection_throttleDisables a Balancer's connection throttle. This method blocks until the disable request has been processed and the balancer is in a RUNNING state again.
Methodex_disable_balancer_connection_throttle_no_pollDisables a Balancer's connection throttle. This method returns immediately.
Methodex_enable_balancer_connection_loggingEnables connection logging for a Balancer. This method blocks until the enable request has been processed and the balancer is in a RUNNING state again.
Methodex_enable_balancer_connection_logging_no_pollEnables connection logging for a Balancer. This method returns immediately.
Methodex_disable_balancer_connection_loggingDisables connection logging for a Balancer. This method blocks until the enable request has been processed and the balancer is in a RUNNING state again.
Methodex_disable_balancer_connection_logging_no_pollDisables connection logging for a Balancer. This method returns immediately.
Methodex_enable_balancer_session_persistenceEnables session persistence for a Balancer by setting the persistence type to 'HTTP_COOKIE'. This method blocks until the enable request has been processed and the balancer is in a RUNNING state again.
Methodex_enable_balancer_session_persistence_no_pollEnables session persistence for a Balancer by setting the persistence type to 'HTTP_COOKIE'. This method returns immediately.
Methodex_disable_balancer_session_persistenceDisables session persistence for a Balancer. This method blocks until the disable request has been processed and the balancer is in a RUNNING state again.
Methodex_disable_balancer_session_persistence_no_pollDisables session persistence for a Balancer. This method returns immediately.
Methodex_update_balancer_error_pageUpdates a Balancer's custom error page. This method blocks until the update request has been processed and the balancer is in a RUNNING state again.
Methodex_update_balancer_error_page_no_pollUpdates a Balancer's custom error page. This method returns immediately.
Methodex_disable_balancer_custom_error_pageNo summary
Methodex_disable_balancer_custom_error_page_no_pollDisables a Balancer's custom error page, returning its error page to the Rackspace-provided default. This method returns immediately.
Methodex_create_balancer_access_ruleAdds an access rule to a Balancer's access list. This method blocks until the update request has been processed and the balancer is in a RUNNING state again.
Methodex_create_balancer_access_rule_no_pollAdds an access rule to a Balancer's access list. This method returns immediately.
Methodex_destroy_balancer_access_ruleRemoves an access rule from a Balancer's access list. This method blocks until the update request has been processed and the balancer is in a RUNNING state again.
Methodex_destroy_balancer_access_rule_no_pollRemoves an access rule from a Balancer's access list. This method returns immediately.
Methodex_destroy_balancer_access_rulesRemoves a list of access rules from a Balancer's access list. This method blocks until the update request has been processed and the balancer is in a RUNNING state again.
Methodex_destroy_balancer_access_rules_no_pollRemoves a list of access rules from a Balancer's access list. This method returns immediately.
Method_get_updated_balancerNo summary
Method_to_protocolsUndocumented
Method_to_protocols_with_default_portsUndocumented
Method_to_balancersUndocumented
Method_to_balancerUndocumented
Method_to_membersUndocumented
Method_to_memberUndocumented
Method_protocol_to_valueUndocumented
Method_kwargs_to_mutable_attrsUndocumented
Method_kwargs_to_mutable_member_attrsUndocumented
Method_ex_private_virtual_ipsUndocumented
Method_ex_public_virtual_ipsUndocumented
Method_to_health_monitorUndocumented
Method_to_connection_throttleUndocumented
Method_to_access_ruleUndocumented
Method_to_access_rule_typeUndocumented
Method_iso_to_datetimeUndocumented
+ +

+ Inherited from Driver: +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Method__init__@keyword key: API key or username to used @type key: str
Methodbalancer_attach_compute_nodeAttach a compute node as a member to the load balancer.
Methodlist_supported_algorithmsReturn algorithms supported by this driver.
Method_value_to_algorithmReturn C{LBAlgorithm} based on the value.
Method_algorithm_to_valueReturn value based in the algorithm (C{LBAlgorithm}).
+ +

+ Inherited from BaseDriver (via Driver): +

+ + + + + + + + + + + +
Method_ex_connection_class_kwargsReturn extra connection keyword arguments which are passed to the Connection class constructor.
+ + +
+ + + + +
+ + + + + + +
+ + def + list_protocols(self): + + + (source) + +
+
+ +
Return a list of supported protocols.
+
+
+ + + + + + +
+ + def + ex_list_protocols_with_default_ports(self): + + + (source) + +
+
+ +
@rtype: C{list} of tuples of protocols (C{str}) with default ports
+(C{int}).
+@return: A list of protocols with default ports included.
+
+
+ + + + + + +
+ + def + list_balancers(self, ex_member_address=None): + + + (source) + +
+
+ +
@param ex_member_address: Optional IP address of the attachment member.
+                          If provided, only the load balancers which
+                          have this member attached will be returned.
+@type ex_member_address: C{str}
+
+
+ + + + + + +
+ + def + create_balancer(self, name, members, protocol='http', port=80, algorithm=DEFAULT_ALGORITHM): + + + (source) + +
+
+ +
Create a new load balancer instance
+
+@keyword name: Name of the new load balancer (required)
+@type name: C{str}
+@keyword members: C{list} ofL{Member}s to attach to balancer
+@type: C{list} of L{Member}s
+@keyword protocol: Loadbalancer protocol, defaults to http.
+@type: C{str}
+@keyword port: Port the load balancer should listen on, defaults to 80
+@type port: C{str}
+@keyword algorithm: Load balancing algorithm, defaults to
+                    LBAlgorithm.ROUND_ROBIN
+@type algorithm: C{LBAlgorithm}
+
+
+ + + + + + +
+ + def + destroy_balancer(self, balancer): + + + (source) + +
+
+ +
Destroy a load balancer
+
+@return: C{bool} True if the destroy was successful, otherwise False
+
+
+ + + + + + +
+ + def + ex_destroy_balancers(self, balancers): + + + (source) + +
+
+ +
Destroys a list of Balancers (the API supports up to 10).
+
+@param balancers: A list of Balancers to destroy.
+@type balancers: C{list}
+
+@rtype: C{bool}
+@return: Returns whether the destroy request was accepted.
+
+
+ + + + + + +
+ + def + get_balancer(self, balancer_id): + + + (source) + +
+
+ +
Return a C{LoadBalancer} object.
+
+@keyword balancer_id: id of a load balancer you want to fetch
+@type balancer_id: C{str}
+
+@return: C{LoadBalancer}
+
+
+ + + + + + +
+ + def + balancer_attach_member(self, balancer, member): + + + (source) + +
+
+ +
Attach a member to balancer
+
+@keyword member: Member to join to the balancer
+@type member: C{Member}
+@return {Member} Member after joining the balancer.
+
+
+ + + + + + +
+ + def + balancer_detach_member(self, balancer, member): + + + (source) + +
+
+ +
Detach member from balancer
+
+@return: C{bool} True if member detach was successful, otherwise False
+
+
+ + + + + + +
+ + def + ex_balancer_detach_members(self, balancer, members): + + + (source) + +
+
+ +
Detaches a list of members from a balancer (the API supports up to 10).
+This method blocks until the detach request has been processed and the
+balancer is in a RUNNING state again.
+
+@param balancer: The Balancer to detach members from.
+@type balancer: C{Balancer}
+
+@param members: A list of Members to detach.
+@type members: C{list}
+
+@rtype: C{Balancer}
+@return: Updated Balancer.
+
+
+ + + + + + +
+ + def + ex_balancer_detach_members_no_poll(self, balancer, members): + + + (source) + +
+
+ +
Detaches a list of members from a balancer (the API supports up to 10).
+This method returns immediately.
+
+@param balancer: The Balancer to detach members from.
+@type balancer: C{Balancer}
+
+@param members: A list of Members to detach.
+@type members: C{list}
+
+@rtype: C{bool}
+@return: Returns whether the detach request was accepted.
+
+
+ + + + + + +
+ + def + balancer_list_members(self, balancer): + + + (source) + +
+
+ +
Return list of members attached to balancer
+
+@return: C{list} of L{Member}s
+
+
+ + + + + + +
+ + def + update_balancer(self, balancer, **kwargs): + + + (source) + +
+
+ +
Sets the name, algorithm, protocol, or port on a load balancer.
+
+@keyword    name: New load balancer name
+@type       metadata: C{str}
+
+@keyword    algorithm: New load balancer algorithm
+@type       metadata: C{libcloud.loadbalancer.base.Algorithm}
+
+@keyword    protocol: New load balancer protocol
+@type       metadata: C{str}
+
+@keyword    port: New load balancer port
+@type       metadata: C{int}
+
+
+ + + + + + +
+ + def + ex_update_balancer_no_poll(self, balancer, **kwargs): + + + (source) + +
+
+ +
Undocumented
+
+
+ + + + + + +
+ + def + ex_balancer_update_member(self, balancer, member, **kwargs): + + + (source) + +
+
+ +
Updates a Member's extra attributes for a Balancer.  The attributes can
+include 'weight' or 'condition'.  This method blocks until the update
+request has been processed and the balancer is in a RUNNING state
+again.
+
+@param balancer: Balancer to update the member on.
+@type balancer: C{Balancer}
+
+@param **kwargs: New attributes.  Should contain either 'weight'
+or 'condition'.  'condition' can be set to 'ENABLED', 'DISABLED'.
+or 'DRAINING'.  'weight' can be set to a positive integer between
+1 and 100, with a higher weight indicating that the node will receive
+more traffic (assuming the Balancer is using a weighted algorithm).
+@type **kwargs: C{dict}
+
+@rtype: C{Member}
+@return: Updated Member.
+
+
+ + + + + + +
+ + def + ex_balancer_update_member_no_poll(self, balancer, member, **kwargs): + + + (source) + +
+
+ +
Updates a Member's extra attributes for a Balancer.  The attribute can
+include 'weight' or 'condition'.  This method returns immediately.
+
+@param balancer: Balancer to update the member on.
+@type balancer: C{Balancer}
+
+@param **kwargs: New attributes.  Should contain either 'weight'
+or 'condition'.  'condition' can be set to 'ENABLED', 'DISABLED'.
+or 'DRAINING'.  'weight' can be set to a positive integer between
+1 and 100, with a higher weight indicating that the node will receive
+more traffic (assuming the Balancer is using a weighted algorithm).
+@type **kwargs: C{dict}
+
+@rtype: C{bool}
+@return: Returns whether the update request was accepted.
+
+
+ + + + + + +
+ + def + ex_list_algorithm_names(self): + + + (source) + +
+
+ +
Lists algorithms supported by the API.  Returned as strings because
+this list may change in the future.
+
+
+ + + + + + +
+ + def + ex_get_balancer_error_page(self, balancer): + + + (source) + +
+
+ +
Undocumented
+
+
+ + + + + + +
+ + def + ex_balancer_access_list(self, balancer): + + + (source) + +
+
+ +
Undocumented
+
+
+ + + + + + +
+ + def + _get_updated_balancer(self, balancer): + + + (source) + +
+
+ +
Updating a balancer's attributes puts a balancer into
+'PENDING_UPDATE' status.  Wait until the balancer is
+back in 'ACTIVE' status and then return the individual
+balancer details call.
+
+
+ + + + + + +
+ + def + ex_update_balancer_health_monitor(self, balancer, health_monitor): + + + (source) + +
+
+ +
Sets a Balancer's health monitor.  This method blocks until the update
+request has been processed and the balancer is in a RUNNING state
+again.
+
+@param balancer: Balancer to update.
+@type balancer: C{Balancer}
+
+@param health_monitor: Health Monitor for the balancer.
+@type health_monitor: C{RackspaceHealthMonitor}
+
+@rtype: C{Balancer}
+@return: Updated Balancer.
+
+
+ + + + + + +
+ + def + ex_update_balancer_health_monitor_no_poll(self, balancer, health_monitor): + + + (source) + +
+
+ +
Sets a Balancer's health monitor.  This method returns immediately.
+
+@param balancer: Balancer to update health monitor on.
+@type balancer: C{Balancer}
+
+@param health_monitor: Health Monitor for the balancer.
+@type health_monitor: C{RackspaceHealthMonitor}
+
+@rtype: C{bool}
+@return: Returns whether the update request was accepted.
+
+
+ + + + + + +
+ + def + ex_disable_balancer_health_monitor(self, balancer): + + + (source) + +
+
+ +
Disables a Balancer's health monitor.  This method blocks until the
+disable request has been processed and the balancer is in a RUNNING
+state again.
+
+@param balancer: Balancer to disable health monitor on.
+@type balancer: C{Balancer}
+
+@rtype: C{Balancer}
+@return: Updated Balancer.
+
+
+ + + + + + +
+ + def + ex_disable_balancer_health_monitor_no_poll(self, balancer): + + + (source) + +
+
+ +
Disables a Balancer's health monitor.  This method returns
+immediately.
+
+@param balancer: Balancer to disable health monitor on.
+@type balancer: C{Balancer}
+
+@rtype: C{bool}
+@return: Returns whether the disable request was accepted.
+
+
+ + + + + + +
+ + def + ex_update_balancer_connection_throttle(self, balancer, connection_throttle): + + + (source) + +
+
+ +
Updates a Balancer's connection throttle.  This method blocks until
+the update request has been processed and the balancer is in a
+RUNNING state again.
+
+@param balancer: Balancer to update connection throttle on.
+@type balancer: C{Balancer}
+
+@param connection_throttle: Connection Throttle for the balancer.
+@type connection_throttle: C{RackspaceConnectionThrottle}
+
+@rtype: C{Balancer}
+@return: Updated Balancer.
+
+
+ + + + + + +
+ + def + ex_update_balancer_connection_throttle_no_poll(self, balancer, connection_throttle): + + + (source) + +
+
+ +
Sets a Balancer's connection throttle.  This method returns
+immediately.
+
+@param balancer: Balancer to update connection throttle on.
+@type balancer: C{Balancer}
+
+@param connection_throttle: Connection Throttle for the balancer.
+@type connection_throttle: C{RackspaceConnectionThrottle}
+
+@rtype: C{bool}
+@return: Returns whether the update request was accepted.
+
+
+ + + + + + +
+ + def + ex_disable_balancer_connection_throttle(self, balancer): + + + (source) + +
+
+ +
Disables a Balancer's connection throttle.  This method blocks until
+the disable request has been processed and the balancer is in a RUNNING
+state again.
+
+@param balancer: Balancer to disable connection throttle on.
+@type balancer: C{Balancer}
+
+@rtype: C{Balancer}
+@return: Updated Balancer.
+
+
+ + + + + + +
+ + def + ex_disable_balancer_connection_throttle_no_poll(self, balancer): + + + (source) + +
+
+ +
Disables a Balancer's connection throttle.  This method returns
+immediately.
+
+@param balancer: Balancer to disable connection throttle on.
+@type balancer: C{Balancer}
+
+@rtype: C{bool}
+@return: Returns whether the disable request was accepted.
+
+
+ + + + + + +
+ + def + ex_enable_balancer_connection_logging(self, balancer): + + + (source) + +
+
+ +
Enables connection logging for a Balancer.  This method blocks until
+the enable request has been processed and the balancer is in a RUNNING
+state again.
+
+@param balancer: Balancer to enable connection logging on.
+@type balancer: C{Balancer}
+
+@rtype: C{Balancer}
+@return: Updated Balancer.
+
+
+ + + + + + +
+ + def + ex_enable_balancer_connection_logging_no_poll(self, balancer): + + + (source) + +
+
+ +
Enables connection logging for a Balancer.  This method returns
+immediately.
+
+@param balancer: Balancer to enable connection logging on.
+@type balancer: C{Balancer}
+
+@rtype: C{bool}
+@return: Returns whether the enable request was accepted.
+
+
+ + + + + + +
+ + def + ex_disable_balancer_connection_logging(self, balancer): + + + (source) + +
+
+ +
Disables connection logging for a Balancer.  This method blocks until
+the enable request has been processed and the balancer is in a RUNNING
+state again.
+
+@param balancer: Balancer to disable connection logging on.
+@type balancer: C{Balancer}
+
+@rtype: C{Balancer}
+@return: Updated Balancer.
+
+
+ + + + + + +
+ + def + ex_disable_balancer_connection_logging_no_poll(self, balancer): + + + (source) + +
+
+ +
Disables connection logging for a Balancer.  This method returns
+immediately.
+
+@param balancer: Balancer to disable connection logging on.
+@type balancer: C{Balancer}
+
+@rtype: C{bool}
+@return: Returns whether the disable request was accepted.
+
+
+ + + + + + +
+ + def + ex_enable_balancer_session_persistence(self, balancer): + + + (source) + +
+
+ +
Enables session persistence for a Balancer by setting the persistence
+type to 'HTTP_COOKIE'.  This method blocks until the enable request
+has been processed and the balancer is in a RUNNING state again.
+
+@param balancer: Balancer to enable session persistence on.
+@type balancer: C{Balancer}
+
+@rtype: C{Balancer}
+@return: Updated Balancer.
+
+
+ + + + + + +
+ + def + ex_enable_balancer_session_persistence_no_poll(self, balancer): + + + (source) + +
+
+ +
Enables session persistence for a Balancer by setting the persistence
+type to 'HTTP_COOKIE'.  This method returns immediately.
+
+@param balancer: Balancer to enable session persistence on.
+@type balancer: C{Balancer}
+
+@rtype: C{bool}
+@return: Returns whether the enable request was accepted.
+
+
+ + + + + + +
+ + def + ex_disable_balancer_session_persistence(self, balancer): + + + (source) + +
+
+ +
Disables session persistence for a Balancer.  This method blocks until
+the disable request has been processed and the balancer is in a RUNNING
+state again.
+
+@param balancer: Balancer to disable session persistence on.
+@type balancer: C{Balancer}
+
+@rtype: C{Balancer}
+@return: Updated Balancer.
+
+
+ + + + + + +
+ + def + ex_disable_balancer_session_persistence_no_poll(self, balancer): + + + (source) + +
+
+ +
Disables session persistence for a Balancer.  This method returns
+immediately.
+
+@param balancer: Balancer to disable session persistence for.
+@type balancer: C{Balancer}
+
+@rtype: C{bool}
+@return: Returns whether the disable request was accepted.
+
+
+ + + + + + +
+ + def + ex_update_balancer_error_page(self, balancer, page_content): + + + (source) + +
+
+ +
Updates a Balancer's custom error page.  This method blocks until
+the update request has been processed and the balancer is in a
+RUNNING state again.
+
+@param balancer: Balancer to update the custom error page for.
+@type balancer: C{Balancer}
+
+@param page_content: HTML content for the custom error page.
+@type page_content: C{string}
+
+@rtype: C{Balancer}
+@return: Updated Balancer.
+
+
+ + + + + + +
+ + def + ex_update_balancer_error_page_no_poll(self, balancer, page_content): + + + (source) + +
+
+ +
Updates a Balancer's custom error page.  This method returns
+immediately.
+
+@param balancer: Balancer to update the custom error page for.
+@type balancer: C{Balancer}
+
+@param page_content: HTML content for the custom error page.
+@type page_content: C{string}
+
+@rtype: C{bool}
+@return: Returns whether the update request was accepted.
+
+
+ + + + + + +
+ + def + ex_disable_balancer_custom_error_page(self, balancer): + + + (source) + +
+
+ +
Disables a Balancer's custom error page, returning its error page to
+the Rackspace-provided default.  This method blocks until the disable
+request has been processed and the balancer is in a RUNNING state
+again.
+
+@param balancer: Balancer to disable the custom error page for.
+@type balancer: C{Balancer}
+
+@rtype: C{Balancer}
+@return: Updated Balancer.
+
+
+ + + + + + +
+ + def + ex_disable_balancer_custom_error_page_no_poll(self, balancer): + + + (source) + +
+
+ +
Disables a Balancer's custom error page, returning its error page to
+the Rackspace-provided default.  This method returns immediately.
+
+@param balancer: Balancer to disable the custom error page for.
+@type balancer: C{Balancer}
+
+@rtype: C{bool}
+@return: Returns whether the disable request was accepted.
+
+
+ + + + + + +
+ + def + ex_create_balancer_access_rule(self, balancer, rule): + + + (source) + +
+
+ +
Adds an access rule to a Balancer's access list.  This method blocks
+until the update request has been processed and the balancer is in a
+RUNNING state again.
+
+@param balancer: Balancer to create the access rule for.
+@type balancer: C{Balancer}
+
+@param rule: Access Rule to add to the balancer.
+@type rule: C{RackspaceAccessRule}
+
+@rtype: C{RackspaceAccessRule}
+@return: The created access rule.
+
+
+ + + + + + +
+ + def + ex_create_balancer_access_rule_no_poll(self, balancer, rule): + + + (source) + +
+
+ +
Adds an access rule to a Balancer's access list.  This method returns
+immediately.
+
+@param balancer: Balancer to create the access rule for.
+@type balancer: C{Balancer}
+
+@param rule: Access Rule to add to the balancer.
+@type rule: C{RackspaceAccessRule}
+
+@rtype: C{bool}
+@return: Returns whether the create request was accepted.
+
+
+ + + + + + +
+ + def + ex_destroy_balancer_access_rule(self, balancer, rule): + + + (source) + +
+
+ +
Removes an access rule from a Balancer's access list.  This method
+blocks until the update request has been processed and the balancer
+is in a RUNNING state again.
+
+@param balancer: Balancer to remove the access rule from.
+@type balancer: C{Balancer}
+
+@param rule: Access Rule to remove from the balancer.
+@type rule: C{RackspaceAccessRule}
+
+@rtype: C{Balancer}
+@return: Updated Balancer.
+
+
+ + + + + + +
+ + def + ex_destroy_balancer_access_rule_no_poll(self, balancer, rule): + + + (source) + +
+
+ +
Removes an access rule from a Balancer's access list.  This method
+returns immediately.
+
+@param balancer: Balancer to remove the access rule from.
+@type balancer: C{Balancer}
+
+@param rule: Access Rule to remove from the balancer.
+@type rule: C{RackspaceAccessRule}
+
+@rtype: C{bool}
+@return: Returns whether the destroy request was accepted.
+
+
+ + + + + + +
+ + def + ex_destroy_balancer_access_rules(self, balancer, rules): + + + (source) + +
+
+ +
Removes a list of access rules from a Balancer's access list.  This
+method blocks until the update request has been processed and the
+balancer is in a RUNNING state again.
+
+@param balancer: Balancer to remove the access rules from.
+@type balancer: C{Balancer}
+
+@param rules: List of C{RackspaceAccessRule} objects to remove from the
+balancer.
+@type rules: C{list}
+
+@rtype: C{Balancer}
+@return: Updated Balancer.
+
+
+ + + + + + +
+ + def + ex_destroy_balancer_access_rules_no_poll(self, balancer, rules): + + + (source) + +
+
+ +
Removes a list of access rules from a Balancer's access list.  This
+method returns immediately.
+
+@param balancer: Balancer to remove the access rules from.
+@type balancer: C{Balancer}
+
+@param rules: List of C{RackspaceAccessRule} objects to remove from the
+balancer.
+@type rules: C{list}
+
+@rtype: C{bool}
+@return: Returns whether the destroy request was accepted.
+
+
+ + + + + + +
+ + def + _to_protocols(self, object): + + + (source) + +
+
+ +
Undocumented
+
+
+ + + + + + +
+ + def + _to_protocols_with_default_ports(self, object): + + + (source) + +
+
+ +
Undocumented
+
+
+ + + + + + +
+ + def + _to_balancers(self, object): + + + (source) + +
+
+ +
Undocumented
+
+
+ + + + + + +
+ + def + _to_balancer(self, el): + + + (source) + +
+
+ +
Undocumented
+
+
+ + + + + + +
+ + def + _to_members(self, object): + + + (source) + +
+
+ +
Undocumented
+
+
+ + + + + + +
+ + def + _to_member(self, el): + + + (source) + +
+
+ +
Undocumented
+
+
+ + + + + + +
+ + def + _protocol_to_value(self, protocol): + + + (source) + +
+
+ +
Undocumented
+
+
+ + + + + + +
+ + def + _kwargs_to_mutable_attrs(self, **attrs): + + + (source) + +
+
+ +
Undocumented
+
+
+ + + + + + +
+ + def + _kwargs_to_mutable_member_attrs(self, **attrs): + + + (source) + +
+
+ +
Undocumented
+
+
+ + + + + + +
+ + def + _ex_private_virtual_ips(self, el): + + + (source) + +
+
+ +
Undocumented
+
+
+ + + + + + +
+ + def + _ex_public_virtual_ips(self, el): + + + (source) + +
+
+ +
Undocumented
+
+
+ + + + + + +
+ + def + _to_health_monitor(self, el): + + + (source) + +
+
+ +
Undocumented
+
+
+ + + + + + +
+ + def + _to_connection_throttle(self, el): + + + (source) + +
+
+ +
Undocumented
+
+
+ + + + + + +
+ + def + _to_access_rule(self, el): + + + (source) + +
+
+ +
Undocumented
+
+
+ + + + + + +
+ + def + _to_access_rule_type(self, type): + + + (source) + +
+
+ +
Undocumented
+
+
+ + + + + + +
+ + def + _iso_to_datetime(self, isodate): + + + (source) + +
+
+ +
Undocumented
+
+
+
+ API Documentation for libcloud, generated by pydoctor at 2012-02-08 17:57:04. +
+ + \ No newline at end of file Added: websites/staging/libcloud/trunk/content/apidocs/0.8.0/libcloud.loadbalancer.drivers.rackspace.RackspaceResponse.html ============================================================================== --- websites/staging/libcloud/trunk/content/apidocs/0.8.0/libcloud.loadbalancer.drivers.rackspace.RackspaceResponse.html (added) +++ websites/staging/libcloud/trunk/content/apidocs/0.8.0/libcloud.loadbalancer.drivers.rackspace.RackspaceResponse.html Thu Feb 9 02:00:15 2012 @@ -0,0 +1,134 @@ + + + + libcloud.loadbalancer.drivers.rackspace.RackspaceResponse : API documentation + + + + + + +

l.l.d.r.RackspaceResponse(JsonResponse) : class documentation

+

+ Part of libcloud.loadbalancer.drivers.rackspace + View Source + View In Hierarchy +

+
+ +
+
Undocumented
+ + + +
+ + + + + + + + + + + + + + + + + +
Methodparse_bodyParse response body.
MethodsuccessDetermine if our request was successful.
+ +

+ Inherited from Response (via JsonResponse): +

+ + + + + + + + + + + + + + + + + + + + + + + +
Method__init__Undocumented
Methodparse_errorParse the error messages.
Method_decompress_responseDecompress a response body if it is using deflate or gzip encoding.
+ + +
+ + + + +
+ + + + + + +
+ + def + parse_body(self): + + + (source) + +
+
+ +
Parse response body.
+
+Override in a provider's subclass.
+
+@return: Parsed body.
+
+
+ + + + + + +
+ + def + success(self): + + + (source) + +
+
+ +
Determine if our request was successful.
+
+The meaning of this can be arbitrary; did we receive OK status? Did
+the node get created? Were we authenticated?
+
+@return: C{True} or C{False}
+
+
+
+ API Documentation for libcloud, generated by pydoctor at 2012-02-08 17:57:04. +
+ + \ No newline at end of file