Asterisk - The Open Source Telephony Project GIT-master-f36a736
|
Public Member Functions | |
def | __init__ (self) |
def | load (self, api_decl_json, processor, context) |
def | load_file (self, api_declaration_file, processor) |
Public Member Functions inherited from Stringify | |
def | __repr__ (self) |
Data Fields | |
api_version | |
apis | |
author | |
base_path | |
copyright | |
has_websocket | |
models | |
requires_modules | |
resource_path | |
swagger_version | |
Static Public Attributes | |
list | required_fields |
Model class for an API Declaration. See https://github.com/wordnik/swagger-core/wiki/API-Declaration
Definition at line 596 of file swagger_model.py.
def __init__ | ( | self | ) |
Definition at line 607 of file swagger_model.py.
def load | ( | self, | |
api_decl_json, | |||
processor, | |||
context | |||
) |
Loads a resource from a single Swagger resource.json file.
Definition at line 643 of file swagger_model.py.
References ApiDeclaration.api_version, ResourceListing.api_version, ApiDeclaration.author, ApiDeclaration.base_path, ResourceListing.base_path, ApiDeclaration.copyright, Parameter.required_fields, ErrorResponse.required_fields, Operation.required_fields, Api.required_fields, Property.required_fields, Model.required_fields, ApiDeclaration.required_fields, ResourceApi.required_fields, ResourceListing.required_fields, ApiDeclaration.resource_path, ParsingContext.swagger_version, ApiDeclaration.swagger_version, ResourceListing.swagger_version, and swagger_model.validate_required_fields().
Referenced by ApiDeclaration.load_file(), and ResourceListing.load_file().
def load_file | ( | self, | |
api_declaration_file, | |||
processor | |||
) |
Definition at line 617 of file swagger_model.py.
References ApiDeclaration.__load_file(), ResourceListing.__load_file(), ApiDeclaration.load(), Api.load(), ResourceApi.load(), ErrorResponse.load(), Model.load(), Operation.load(), Parameter.load(), Property.load(), ResourceListing.load(), SwaggerType.load(), ast_speech_engine.load, ast_sorcery_wizard.load, ast_module_info.load, replace(), and ApiDeclaration.resource_path.
api_version |
Definition at line 611 of file swagger_model.py.
Referenced by ApiDeclaration.load(), and ResourceListing.load().
apis |
Definition at line 614 of file swagger_model.py.
Referenced by ResourceListing.load().
author |
Definition at line 609 of file swagger_model.py.
Referenced by ApiDeclaration.load().
base_path |
Definition at line 612 of file swagger_model.py.
Referenced by ApiDeclaration.load(), and ResourceListing.load().
copyright |
Definition at line 610 of file swagger_model.py.
Referenced by ApiDeclaration.load().
has_websocket |
Definition at line 669 of file swagger_model.py.
models |
Definition at line 615 of file swagger_model.py.
|
static |
Definition at line 602 of file swagger_model.py.
Referenced by ApiDeclaration.load(), Api.load(), ResourceApi.load(), ErrorResponse.load(), Model.load(), Operation.load(), Parameter.load(), Property.load(), and ResourceListing.load().
requires_modules |
Definition at line 660 of file swagger_model.py.
resource_path |
Definition at line 613 of file swagger_model.py.
Referenced by ApiDeclaration.load(), and ApiDeclaration.load_file().
swagger_version |
Definition at line 608 of file swagger_model.py.
Referenced by ParsingContext.__repr__(), ApiDeclaration.load(), ResourceListing.load(), ParsingContext.next_stack(), and ParsingContext.version_less_than().