sushy.connector Module¶sushy.connector.Connector(url, username=None, password=None, verify=True)¶Bases: object
close()¶Close this connector and the associated HTTP session.
delete(path='', data=None, headers=None)¶HTTP DELETE method.
| Parameters: |
|
|---|---|
| Returns: | The response object from the requests library. |
| Raises: | ConnectionError |
| Raises: | HTTPError |
get(path='', data=None, headers=None)¶HTTP GET method.
| Parameters: |
|
|---|---|
| Returns: | The response object from the requests library. |
| Raises: | ConnectionError |
| Raises: | HTTPError |
patch(path='', data=None, headers=None)¶HTTP PATCH method.
| Parameters: |
|
|---|---|
| Returns: | The response object from the requests library. |
| Raises: | ConnectionError |
| Raises: | HTTPError |
post(path='', data=None, headers=None)¶HTTP POST method.
| Parameters: |
|
|---|---|
| Returns: | The response object from the requests library. |
| Raises: | ConnectionError |
| Raises: | HTTPError |
put(path='', data=None, headers=None)¶HTTP PUT method.
| Parameters: |
|
|---|---|
| Returns: | The response object from the requests library. |
| Raises: | ConnectionError |
| Raises: | HTTPError |
set_auth(auth)¶Sets the authentication mechanism for our connector.
set_http_basic_auth(username, password)¶Sets the http basic authentication information.
set_http_session_auth(session_auth_token)¶Sets the session authentication information.
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.