The freezerclient.v1.managers.sessions Module

The freezerclient.v1.managers.sessions Module

class freezerclient.v1.managers.sessions.SessionManager(client, verify=True)[source]

Bases: object

add_job(session_id, job_id)[source]
create(doc, session_id='')[source]
delete(session_id)[source]
end_session(session_id, job_id, session_tag, result)[source]

Informs the freezer service that the job has ended. Provides information about the job’s result and the session tag

Parameters:
  • session_id
  • job_id
  • session_tag
  • result
Returns:

get(session_id)[source]
headers
list(limit=10, offset=0, search={})[source]
list_all(limit=10, offset=0, search=None)[source]
remove_job(session_id, job_id)[source]
start_session(session_id, job_id, session_tag)[source]

Informs the api that the client is starting the session identified by the session_id and request the session_tag to be incremented up to the requested value. The returned session_id could be:

  • current_tag + 1 if the session has started
  • > current_tag + 1 if the action had already been started by some other node and this node was out of sync
Parameters:
  • session_id
  • job_id
  • session_tag – the new session_id
Returns:

the response obj: { result: string ‘running’ or ‘error’,

’session_tag’: the new session_tag )

update(session_id, update_doc)[source]
Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.