fgcp.design
index
design.py

VSystem Design for the Fujitsu Global Cloud Platform (FGCP)
 
Example: [see tests/test_resource.py for more examples]
 
# Connect with your client certificate to region 'uk'
from fgcp.resource import FGCPVDataCenter
vdc = FGCPVDataCenter('client.pem', 'uk')
 
# Get VSystem Design from an existing vsystem or file, and build a new vsystem with it (TODO)
design = vdc.get_vsystem_design('Demo System')
#design.load_file('fgcp_demo_system.txt')
#design.build_vsystem('My New Demo System')
#design.load_vsystem('Demo System')
design.save_file('new_demo_system.txt')

 
Modules
       
time

 
Classes
       
fgcp.FGCPError(exceptions.Exception)
FGCPDesignError
fgcp.resource.FGCPResource(fgcp.resource.FGCPElement)
FGCPDesign

 
class FGCPDesign(fgcp.resource.FGCPResource)
    FGCP VSystem Design
 
 
Method resolution order:
FGCPDesign
fgcp.resource.FGCPResource
fgcp.resource.FGCPElement
__builtin__.object

Methods defined here:
build_vsystem(self, vsysName=None, filePath=None)
Build new VSystem based on loaded VSystem Design
from_code(self, lines)
from_var(self, what, parent=None)
from_yaml(self, lines)
load_file(self, filePath)
Load VSystem Design from file
load_vsystem(self, vsystem)
Load VSystem Design from vsystem
save_file(self, filePath, format='txt')
Save VSystem Design to file
to_code(self, what)
to_var(self, what)
to_yaml(self, what, depth=0, suffix='')

Data and other attributes defined here:
filePath = None
vsysName = None
vsystem = None

Methods inherited from fgcp.resource.FGCPResource:
__init__(self, **kwargs)
__repr__(self)
check_status(self, in_state=[], out_state=[])
create(self, wait=None)
destroy(self)
getid(self)
getparentid(self)
getproxy(self)
merge_attr(self, partial)
retrieve(self, refresh=None)
setparent(self, parent)
show_output(self, text='')
update(self)
wait_for_status(self, in_state=[], out_state=[], timeout=900)

Methods inherited from fgcp.resource.FGCPElement:
pformat(self, what, depth=0)
pprint(self)
Show dump of the FGCP Element for development
reset_attr(self, what)

Data descriptors inherited from fgcp.resource.FGCPElement:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class FGCPDesignError(fgcp.FGCPError)
    Exception class for FGCP Design Errors
 
 
Method resolution order:
FGCPDesignError
fgcp.FGCPError
exceptions.Exception
exceptions.BaseException
__builtin__.object

Methods defined here:
__init__(self, status, message, resource=None)
__str__(self)

Data descriptors inherited from fgcp.FGCPError:
__weakref__
list of weak references to the object (if defined)

Data and other attributes inherited from exceptions.Exception:
__new__ = <built-in method __new__ of type object>
T.__new__(S, ...) -> a new object with type S, a subtype of T

Methods inherited from exceptions.BaseException:
__delattr__(...)
x.__delattr__('name') <==> del x.name
__getattribute__(...)
x.__getattribute__('name') <==> x.name
__getitem__(...)
x.__getitem__(y) <==> x[y]
__getslice__(...)
x.__getslice__(i, j) <==> x[i:j]
 
Use of negative indices is not supported.
__reduce__(...)
__repr__(...)
x.__repr__() <==> repr(x)
__setattr__(...)
x.__setattr__('name', value) <==> x.name = value
__setstate__(...)
__unicode__(...)

Data descriptors inherited from exceptions.BaseException:
__dict__
args
message