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

This represents a network in the cloud. More...

Inheritance diagram for CloudNetwork:
BaseResource

List of all members.

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)

Detailed Description

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.


Member Function Documentation

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.


Member Data Documentation

cidr = None [static]
id = None [static]

Reimplemented from BaseResource.

label = None [static]

Property Documentation

name = property(_get_name, _set_name) [static]

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