|
Asterisk - The Open Source Telephony Project
18.5.0
|


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 586 of file swagger_model.py.
| def __init__ | ( | self | ) |
Definition at line 597 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 633 of file swagger_model.py.
References ApiDeclaration.api_version, ApiDeclaration.author, ApiDeclaration.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, ApiDeclaration.resource_path, ParsingContext.swagger_version, ApiDeclaration.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 607 of file swagger_model.py.
References ApiDeclaration.__load_file(), ast_speech_engine.load, Parameter.load(), ast_sorcery_wizard.load, ErrorResponse.load(), SwaggerType.load(), ast_module_info.load, Operation.load(), Api.load(), Property.load(), Model.load(), ApiDeclaration.load(), replace(), and ApiDeclaration.resource_path.
| api_version |
Definition at line 601 of file swagger_model.py.
Referenced by ApiDeclaration.load(), and ResourceListing.load().
| apis |
Definition at line 604 of file swagger_model.py.
Referenced by ResourceListing.load().
| author |
Definition at line 599 of file swagger_model.py.
Referenced by ApiDeclaration.load().
| base_path |
Definition at line 602 of file swagger_model.py.
Referenced by ApiDeclaration.load(), and ResourceListing.load().
| copyright |
Definition at line 600 of file swagger_model.py.
Referenced by ApiDeclaration.load().
| has_websocket |
Definition at line 659 of file swagger_model.py.
| models |
Definition at line 605 of file swagger_model.py.
|
static |
Definition at line 592 of file swagger_model.py.
Referenced by ApiDeclaration.load(), ResourceApi.load(), and ResourceListing.load().
| requires_modules |
Definition at line 650 of file swagger_model.py.
| resource_path |
Definition at line 603 of file swagger_model.py.
Referenced by ApiDeclaration.load(), and ApiDeclaration.load_file().
| swagger_version |
Definition at line 598 of file swagger_model.py.
Referenced by ApiDeclaration.load(), and ResourceListing.load().
1.8.13