| |
- fgcp.FGCPError(exceptions.Exception)
-
- FGCPServerError
- FGCPTestServer
-
- FGCPTestServerWithFixtures
- FGCPTestServerWithRegistry
- httplib.HTTPConnection
-
- FGCPUnsecureRelayServer
- httplib.HTTPSConnection(httplib.HTTPConnection)
-
- FGCPRealServer
- FGCPRelayServer
class FGCPRealServer(httplib.HTTPSConnection) |
|
Connect to the real API server for the Fujitsu Global Cloud Platform in this region |
|
- Method resolution order:
- FGCPRealServer
- httplib.HTTPSConnection
- httplib.HTTPConnection
Methods inherited from httplib.HTTPSConnection:
- __init__(self, host, port=None, key_file=None, cert_file=None, strict=None)
- connect(self)
- Connect to a host on a given (SSL) port.
Data and other attributes inherited from httplib.HTTPSConnection:
- default_port = 443
Methods inherited from httplib.HTTPConnection:
- close(self)
- Close the connection to the HTTP server.
- endheaders(self)
- Indicate that the last header line has been sent to the server.
- getresponse(self)
- Get the response from the server.
- putheader(self, header, value)
- Send a request header line to the server.
For example: h.putheader('Accept', 'text/html')
- putrequest(self, method, url, skip_host=0, skip_accept_encoding=0)
- Send a request to the server.
`method' specifies an HTTP request method, e.g. 'GET'.
`url' specifies the object being requested, e.g. '/index.html'.
`skip_host' if True does not add automatically a 'Host:' header
`skip_accept_encoding' if True does not add automatically an
'Accept-Encoding:' header
- request(self, method, url, body=None, headers={})
- Send a complete request to the server.
- send(self, str)
- Send `str' to the server.
- set_debuglevel(self, level)
Data and other attributes inherited from httplib.HTTPConnection:
- auto_open = 1
- debuglevel = 0
- response_class = <class httplib.HTTPResponse at 0x0200EEA0>
- strict = 0
|
class FGCPRelayServer(httplib.HTTPSConnection) |
|
Connect via some relay API server for remote connections, e.g. for Google App Engine |
|
- Method resolution order:
- FGCPRelayServer
- httplib.HTTPSConnection
- httplib.HTTPConnection
Methods defined here:
- __init__(self, host, port=None, path=None, strict=None)
- connect(self)
- getresponse(self)
- request(self, method, url, body=None, headers={})
Data and other attributes inherited from httplib.HTTPSConnection:
- default_port = 443
Methods inherited from httplib.HTTPConnection:
- close(self)
- Close the connection to the HTTP server.
- endheaders(self)
- Indicate that the last header line has been sent to the server.
- putheader(self, header, value)
- Send a request header line to the server.
For example: h.putheader('Accept', 'text/html')
- putrequest(self, method, url, skip_host=0, skip_accept_encoding=0)
- Send a request to the server.
`method' specifies an HTTP request method, e.g. 'GET'.
`url' specifies the object being requested, e.g. '/index.html'.
`skip_host' if True does not add automatically a 'Host:' header
`skip_accept_encoding' if True does not add automatically an
'Accept-Encoding:' header
- send(self, str)
- Send `str' to the server.
- set_debuglevel(self, level)
Data and other attributes inherited from httplib.HTTPConnection:
- auto_open = 1
- debuglevel = 0
- response_class = <class httplib.HTTPResponse at 0x0200EEA0>
- strict = 0
|
class FGCPTestServerWithFixtures(FGCPTestServer) |
|
Connect to this test API server for local tests - updates are not supported
>>> from fgcp.resource import FGCPVDataCenter
>>> vdc = FGCPVDataCenter('client.pem', 'test')
>>> vsystem = vdc.get_vsystem('Demo System')
>>> vsystem.show_status() #doctest: +NORMALIZE_WHITESPACE
Status Overview for VSystem Demo System
VSystem Demo System NORMAL
PublicIP 80.70.163.172 ATTACHED
Firewall Firewall RUNNING
LoadBalancer SLB1 192.168.0.211 RUNNING
VServer WebApp1 192.168.0.13 RUNNING
VServer DB1 192.168.1.12 RUNNING
VDisk DISK1 NORMAL
VServer WebApp2 192.168.0.15 RUNNING
. |
|
Methods defined here:
- __init__(self, *args, **kwargs)
- close(self)
- getresponse(self)
- read(self)
- request(self, method, uri, body, headers)
- save_request(self, testid, body)
- save_response(self, testid, data)
Methods inherited from FGCPTestServer:
- set_testid(self, testid)
Data and other attributes inherited from FGCPTestServer:
- reason = 'OK'
- status = 200
|
class FGCPUnsecureRelayServer(httplib.HTTPConnection) |
|
Connect via some relay API server for remote connections, e.g. for localhost |
|
Methods defined here:
- __init__(self, host, port=None, path=None, strict=None)
- connect(self)
- getresponse(self)
- request(self, method, url, body=None, headers={})
Methods inherited from httplib.HTTPConnection:
- close(self)
- Close the connection to the HTTP server.
- endheaders(self)
- Indicate that the last header line has been sent to the server.
- putheader(self, header, value)
- Send a request header line to the server.
For example: h.putheader('Accept', 'text/html')
- putrequest(self, method, url, skip_host=0, skip_accept_encoding=0)
- Send a request to the server.
`method' specifies an HTTP request method, e.g. 'GET'.
`url' specifies the object being requested, e.g. '/index.html'.
`skip_host' if True does not add automatically a 'Host:' header
`skip_accept_encoding' if True does not add automatically an
'Accept-Encoding:' header
- send(self, str)
- Send `str' to the server.
- set_debuglevel(self, level)
Data and other attributes inherited from httplib.HTTPConnection:
- auto_open = 1
- debuglevel = 0
- default_port = 80
- response_class = <class httplib.HTTPResponse at 0x0200EEA0>
- strict = 0
| |