Asterisk - The Open Source Telephony Project
18.5.0
|
Public Member Functions | |
def | __init__ (self, swagger_version, stack) |
def | __repr__ (self) |
def | get_stack (self) |
def | get_swagger_version (self) |
def | next (self, version=None, stack=None) |
def | next_stack (self, json, id_field) |
def | version_less_than (self, ver) |
Properties | |
stack = property(get_stack) | |
swagger_version = property(get_swagger_version) | |
Context information for parsing. This object is immutable. To change contexts (like adding an item to the stack), use the next() and next_stack() functions to build a new one.
Definition at line 82 of file swagger_model.py.
def __init__ | ( | self, | |
swagger_version, | |||
stack | |||
) |
Definition at line 89 of file swagger_model.py.
References ParsingContext.__stack, and ParsingContext.__swagger_version.
def __repr__ | ( | self | ) |
Definition at line 93 of file swagger_model.py.
References ParsingContext.stack, ast_xmpp_client.stack, and ParsingContext.swagger_version.
def get_stack | ( | self | ) |
Definition at line 100 of file swagger_model.py.
References ParsingContext.__stack.
def get_swagger_version | ( | self | ) |
Definition at line 97 of file swagger_model.py.
References ParsingContext.__swagger_version.
def next | ( | self, | |
version = None , |
|||
stack = None |
|||
) |
Definition at line 122 of file swagger_model.py.
References ParsingContext.stack, ast_xmpp_client.stack, ast_sip_api_tech.version, dundi_ies.version, dialog_info_xml_state.version, iax_ies.version, hashhdr.version, ast_threadpool_options.version, ast_xmpp_capabilities.version, ast_fax_t38_parameters.version, ast_websocket_protocol.version, ast_cel_event_record.version, ast_security_event_common.version, ast_aoc_encoded.version, ast_framehook_interface.version, ast_fax_tech.version, mgcp_request.version, ast_iax2_firmware_header.version, _btmeta.version, adsi_funcs.version, ast_control_t38_parameters.version, version, ast_chan_write_info_t.version, version_res_message.version, skinny_data.version, and websocket_client.version.
def next_stack | ( | self, | |
json, | |||
id_field | |||
) |
Returns a new item pushed to the stack. @param json: Current JSON object. @param id_field: Field identifying this object. @return New context with additional item in the stack.
Definition at line 110 of file swagger_model.py.
References ParsingContext.stack, ast_xmpp_client.stack, str, and ParsingContext.swagger_version.
def version_less_than | ( | self, | |
ver | |||
) |
Definition at line 107 of file swagger_model.py.
References swagger_model.compare_versions(), and ParsingContext.swagger_version.
|
static |
Definition at line 105 of file swagger_model.py.
Referenced by ParsingContext.__repr__(), ParsingContext.next(), and ParsingContext.next_stack().
|
static |
Definition at line 103 of file swagger_model.py.
Referenced by ParsingContext.__repr__(), ApiDeclaration.load(), ResourceListing.load(), ParsingContext.next_stack(), and ParsingContext.version_less_than().