pyrax
Python Bindings for the Rackspace Cloud
|
This represents a network in the cloud. More...
Public Member Functions | |
def | is_isolated |
Returns True if this is a user-defined network. | |
def | get |
Gets the details for the object. | |
def | delete |
Wraps the standard delete() method to catch expected exceptions and raise the appropriate pyrax exceptions. | |
def | get_server_networks |
Creates the dict of network UUIDs required by Cloud Servers when creating a new server with isolated networks. | |
Static Public Attributes | |
id = None | |
cidr = None | |
label = None | |
Properties | |
name = property(_get_name, _set_name) |
This represents a network in the cloud.
It can be either an isolated network, the public network, or the ServiceNet network.
While resources generally use 'name' as the text identifier, the Cloud Networks API uses 'label' instead. This module aliases the attributes andi methods so that you can use either in your code.
def delete | ( | self | ) |
Wraps the standard delete() method to catch expected exceptions and raise the appropriate pyrax exceptions.
Reimplemented from BaseResource.
def get | ( | self | ) |
Gets the details for the object.
Reimplemented from BaseResource.
def get_server_networks | ( | self, | |
public = False , |
|||
private = False |
|||
) |
Creates the dict of network UUIDs required by Cloud Servers when creating a new server with isolated networks.
By default only this network is included. If you wish to create a server that has either the public (internet) or private (ServiceNet) networks, you have to pass those parameters in with values of True.
def is_isolated | ( | self | ) |
Returns True if this is a user-defined network.
cidr = None [static] |
id = None [static] |
Reimplemented from BaseResource.
label = None [static] |
name = property(_get_name, _set_name) [static] |