|
pyrax
Python Bindings for the Rackspace Cloud
|
Represents a Node for a Load Balancer. More...
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 | |
Represents a Node for a Load Balancer.
| def __init__ | ( | self, | |
address = None, |
|||
port = None, |
|||
condition = None, |
|||
weight = None, |
|||
status = None, |
|||
parent = None, |
|||
type = None, |
|||
id = None |
|||
| ) |
| def __eq__ | ( | self, | |
| other | |||
| ) |
| def __ne__ | ( | self, | |
| other | |||
| ) |
| def __repr__ | ( | self | ) |
| 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 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.
1.7.6.1