Asterisk - The Open Source Telephony Project GIT-master-f36a736
|
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 ast_xmpp_client.stack, ParsingContext.stack, ParsingContext.swagger_version, ApiDeclaration.swagger_version, and ResourceListing.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 ast_xmpp_client.stack, ParsingContext.stack, ast_iax2_firmware_header.version, iax_ies.version, adsi_funcs.version, ast_cel_event_record.version, ast_chan_write_info_t.version, ast_channel_initializers.version, ast_control_t38_parameters.version, ast_framehook_interface.version, ast_websocket_protocol.version, ast_fax_t38_parameters.version, ast_fax_tech.version, ast_security_event_common.version, ast_sip_api_tech.version, ast_threadpool_options.version, ast_xmpp_capabilities.version, ast_aoc_encoded.version, version, dundi_ies.version, websocket_client.version, dialog_info_xml_state.version, ast_sip_subscription.version, _btmeta.version, and hashhdr.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 ast_xmpp_client.stack, ParsingContext.stack, str, ParsingContext.swagger_version, ApiDeclaration.swagger_version, and ResourceListing.swagger_version.
def version_less_than | ( | self, | |
ver | |||
) |
Definition at line 107 of file swagger_model.py.
References swagger_model.compare_versions(), ParsingContext.swagger_version, ApiDeclaration.swagger_version, and ResourceListing.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().