Part of libcloud.interface View Source View In Hierarchy
Known implementations: libcloud.base.ConnectionUserAndKey
Attribute | user_id | User identifier |
Inherited from IConnectionKey:
Attribute | key | API key, token, etc. |
Inherited from IConnection (via IConnectionKey):
Attribute | conn_classes | Classes used to create connections, should be in the form of `(insecure, secure)` |
Attribute | responseCls | Provider-specific Class used for creating responses |
Attribute | connection | Represents the lower-level connection to the server |
Attribute | host | Default host for this connection |
Attribute | port | Default port for this connection. This should be a tuple of the form `(insecure, secure)` or for single-port Providers, simply `(port,)` |
Attribute | secure | Indicates if this is a secure connection. If previous recommendations were followed, it would be advantageous for this to be in the form: 0=insecure, 1=secure |
Attribute | driver | The NodeDriver that belongs to this Node |
Method | connect | A method for establishing a connection. If no host or port are given, existing ivars should be used. |
Method | request | Make a request. |
Method | add_default_params | Adds default parameters (such as API key, version, etc.) to the passed `params` |
Method | add_default_headers | Adds default headers (such as Authorization, X-Foo-Bar) to the passed `headers` |
Method | encode_data | Data may need to be encoded before sent in a request. If not, simply return the data. |