Module Expr Str Import alias Import alias ImportFrom alias ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr BinOpAdd AttributeLoad AttributeLoad NameLoad attr attr Str Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Dict Str AttributeLoad AttributeLoad NameLoad attr attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults Str body Assign NameStore BoolOpOr NameLoad Call AttributeLoad NameLoad attr Str Str Assign NameStore BinOpAdd AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr If CompareNotEq AttributeLoad NameLoad attr Num body Raise Call AttributeLoad NameLoad attr NameLoad Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Index Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore BinOpAdd AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr If CompareNotEq AttributeLoad NameLoad attr Num body Raise Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Num Num NameLoad body Assign NameStore IfExp NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Dict Str Str Call NameLoad NameLoad Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword AttributeLoad NameLoad attr If CompareNotEq AttributeLoad NameLoad attr Num body Raise Call AttributeLoad NameLoad attr NameLoad Return SubscriptLoad Call AttributeLoad NameLoad attr Index Str decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Num Num Dict body Assign NameStore Call AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Str ListLoad Return Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore BinOpAdd AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr If CompareEq AttributeLoad NameLoad attr Num body Return Call AttributeLoad NameLoad attr If CompareEq AttributeLoad NameLoad attr Num body Return NameLoad Raise Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore BinOpAdd AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr If CompareNotEq AttributeLoad NameLoad attr Num body Raise Call AttributeLoad NameLoad attr NameLoad Return SubscriptLoad Call AttributeLoad NameLoad attr Index Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad Str attr AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr If CompareNotEq AttributeLoad NameLoad attr Num body Raise Call AttributeLoad NameLoad attr NameLoad Return decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad Str attr AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Num Assign NameStore Str While NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr If CompareEq AttributeLoad NameLoad attr Num body Return AugAssignSub NameStore Num Raise Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad Str attr AttributeLoad NameLoad attr NameLoad Assign NameStore Dict Str Dict Str Str NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr If CompareNotEq AttributeLoad NameLoad attr Num body Raise Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad Str attr AttributeLoad NameLoad attr NameLoad Assign NameStore Dict Str Dict Str Str Str NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr If CompareNotEq AttributeLoad NameLoad attr Num body Raise Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr decorator_list decorator_list
N/A N/A 
Copyright 2015 Hewlett-Packard

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
 N/A json N/A requests freezer.apiclient exceptions SessionManager N/A object N/A __init__ N/A N/A self client verify N/A True N/A N/A N/A self client client N/A N/A self endpoint N/A N/A N/A self client endpoint /v1/sessions/ N/A N/A self verify verify N/A headers N/A N/A self N/A N/A N/A N/A X-Auth-Token N/A N/A self client auth_token N/A property create N/A N/A self doc session_id N/A N/A N/A session_id N/A session_id N/A N/A doc get session_id N/A endpoint N/A N/A self endpoint session_id N/A r N/A N/A requests post endpoint data N/A N/A json dumps doc headers N/A self headers verify N/A self verify N/A N/A N/A r status_code 201 N/A N/A N/A N/A exceptions ApiClientException r N/A session_id N/A N/A N/A r json N/A session_id N/A session_id N/A delete N/A N/A self session_id N/A N/A N/A endpoint N/A N/A self endpoint session_id N/A r N/A N/A requests delete endpoint headers N/A self headers verify N/A self verify N/A N/A N/A r status_code 204 N/A N/A N/A N/A exceptions ApiClientException r N/A list_all N/A N/A self limit offset search N/A 10 0 None N/A N/A data N/A search N/A N/A json dumps search None N/A query N/A limit offset N/A int limit N/A int offset N/A r N/A N/A requests get N/A self endpoint headers N/A self headers params query data data verify N/A self verify N/A N/A N/A r status_code 200 N/A N/A N/A N/A exceptions ApiClientException r N/A N/A N/A N/A r json N/A sessions N/A list N/A N/A self limit offset search N/A 10 0 N/A N/A N/A new_search N/A N/A search copy N/A N/A new_search N/A match N/A N/A search get match N/A N/A N/A N/A self list_all limit offset new_search N/A get N/A N/A self session_id N/A N/A N/A endpoint N/A N/A self endpoint session_id N/A r N/A N/A requests get endpoint headers N/A self headers verify N/A self verify N/A N/A N/A r status_code 200 N/A N/A N/A N/A r json N/A N/A N/A r status_code 404 N/A N/A None N/A N/A N/A exceptions ApiClientException r N/A update N/A N/A self session_id update_doc N/A N/A N/A endpoint N/A N/A self endpoint session_id N/A r N/A N/A requests patch endpoint headers N/A self headers data N/A N/A json dumps update_doc verify N/A self verify N/A N/A N/A r status_code 200 N/A N/A N/A N/A exceptions ApiClientException r N/A N/A N/A N/A r json N/A version N/A add_job N/A N/A self session_id job_id N/A N/A N/A endpoint N/A N/A {0}{1}/jobs/{2} format N/A self endpoint session_id job_id N/A r N/A N/A requests put endpoint headers N/A self headers verify N/A self verify N/A N/A N/A r status_code 204 N/A N/A N/A N/A exceptions ApiClientException r N/A N/A remove_job N/A N/A self session_id job_id N/A N/A N/A endpoint N/A N/A {0}{1}/jobs/{2} format N/A self endpoint session_id job_id N/A retry 5 N/A r N/A retry N/A N/A r N/A N/A requests delete endpoint headers N/A self headers verify N/A self verify N/A N/A N/A r status_code 204 N/A N/A N/A retry 1 N/A N/A N/A exceptions ApiClientException r N/A start_session N/A N/A self session_id job_id session_tag N/A N/A N/A 
        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

        :param session_id:
        :param job_id:
        :param session_tag: the new session_id
        :return: the response obj:
                 { result: string 'running' or 'error',
                  'session_tag': the new session_tag )
         N/A endpoint N/A N/A {0}{1}/action format N/A self endpoint session_id N/A doc N/A start N/A job_id current_tag job_id session_tag N/A r N/A N/A requests post endpoint headers N/A self headers data N/A N/A json dumps doc verify N/A self verify N/A N/A N/A r status_code 202 N/A N/A N/A N/A exceptions ApiClientException r N/A N/A N/A r json N/A end_session N/A N/A self session_id job_id session_tag result N/A N/A N/A 
        Informs the freezer service that the job has ended.
        Privides information about the job's result and the session tag

        :param session_id:
        :param job_id:
        :param session_tag:
        :param result:
        :return:
         N/A endpoint N/A N/A {0}{1}/action format N/A self endpoint session_id N/A doc N/A end N/A job_id current_tag result job_id session_tag result N/A r N/A N/A requests post endpoint headers N/A self headers data N/A N/A json dumps doc verify N/A self verify N/A N/A N/A r status_code 202 N/A N/A N/A N/A exceptions ApiClientException r N/A N/A N/A r json N/A N/A