pyrax
Python Bindings for the Rackspace Cloud
 All Classes Namespaces Files Functions Variables Properties
Public Member Functions | Public Attributes
Node Class Reference

Represents a Node for a Load Balancer. More...

List of all members.

Public Member Functions

def __init__
def __repr__
def __eq__
def __ne__
def to_dict
 Convert this Node to a dict representation for passing to the API.
def get_metadata
 Returns the current metadata for the node.
def set_metadata
 Sets the metadata for the node to the supplied dictionary of values.
def update_metadata
 Updates the existing metadata for the node with the supplied dictionary.
def delete_metadata
 Deletes metadata items specified by the 'keys' parameter for this node.
def delete
 Removes this Node from its Load Balancer.
def update
 Pushes any local changes to the object up to the actual load balancer node.
def get_device
 Returns a reference to the device that is represented by this node.

Public Attributes

 address
 port
 condition
 weight
 status
 parent
 type
 id

Detailed Description

Represents a Node for a Load Balancer.


Constructor & Destructor Documentation

def __init__ (   self,
  address = None,
  port = None,
  condition = None,
  weight = None,
  status = None,
  parent = None,
  type = None,
  id = None 
)

Member Function Documentation

def __eq__ (   self,
  other 
)
def __ne__ (   self,
  other 
)
def __repr__ (   self)
def delete (   self)

Removes this Node from its Load Balancer.

def delete_metadata (   self,
  keys = None 
)

Deletes metadata items specified by the 'keys' parameter for this node.

If no value for 'keys' is provided, all metadata is deleted.

def get_device (   self)

Returns a reference to the device that is represented by this node.

Returns None if no such device can be determined.

def get_metadata (   self)

Returns the current metadata for the node.

def set_metadata (   self,
  metadata 
)

Sets the metadata for the node to the supplied dictionary of values.

Any existing metadata is cleared.

def to_dict (   self)

Convert this Node to a dict representation for passing to the API.

def update (   self)

Pushes any local changes to the object up to the actual load balancer node.

def update_metadata (   self,
  metadata 
)

Updates the existing metadata for the node with the supplied dictionary.


Member Data Documentation

id

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Properties