Asterisk - The Open Source Telephony Project GIT-master-f36a736
|
Public Member Functions | |
def | __init__ (self) |
def | all_subtypes (self) |
def | discriminator (self) |
def | extends (self) |
def | extends_lc (self) |
def | has_properties (self) |
def | has_subtypes (self) |
def | load (self, id, model_json, processor, context) |
def | properties (self) |
def | set_extends_type (self, extends_type) |
def | set_subtype_types (self, subtype_types) |
Public Member Functions inherited from Stringify | |
def | __repr__ (self) |
Data Fields | |
description | |
id | |
id_lc | |
model_json | |
notes | |
subtypes | |
Static Public Attributes | |
list | required_fields = ['description', 'properties'] |
Model of a Swagger model. See https://github.com/wordnik/swagger-core/wiki/datatypes
Definition at line 496 of file swagger_model.py.
def __init__ | ( | self | ) |
Definition at line 504 of file swagger_model.py.
def all_subtypes | ( | self | ) |
Returns the full list of all subtypes, including sub-subtypes.
Definition at line 582 of file swagger_model.py.
References Model.__subtype_types.
def discriminator | ( | self | ) |
Returns the discriminator, digging through base types if needed.
Definition at line 567 of file swagger_model.py.
References Model.__discriminator, Model.__extends_type, and Model.discriminator().
Referenced by Model.discriminator().
def extends | ( | self | ) |
Definition at line 555 of file swagger_model.py.
References Model.__extends_type.
def extends_lc | ( | self | ) |
Definition at line 558 of file swagger_model.py.
References Model.__extends_type.
def has_properties | ( | self | ) |
Definition at line 579 of file swagger_model.py.
References len(), ast_channel_tech.properties, Model.properties(), and ast_rtp_instance.properties.
def has_subtypes | ( | self | ) |
Returns True if type has any subtypes.
Definition at line 590 of file swagger_model.py.
References len(), and Model.subtypes.
def load | ( | self, | |
id, | |||
model_json, | |||
processor, | |||
context | |||
) |
Definition at line 515 of file swagger_model.py.
References Model.__discriminator, Model.__properties, dahdi_pvt.description, iax2_peer.description, ast_calendar_tech.description, ast_calendar_event.description, ast_channel_tech.description, ast_codec.description, ast_http_uri.description, ast_tone_zone.description, manager_action.description, ast_module_info.description, ast_switch.description, ast_fax_tech.description, stasis_subscription_change.description, ast_test_info.description, ast_xml_doc_item.description, ast_xmpp_resource.description, ast_value_translation.description, media_variant.description, ast_app.description, Parameter.description, Api.description, Property.description, Model.description, ResourceApi.description, adapter_pvt.id, mbl_pvt.id, adsi_event.id, adsi_soft_key.id, adsi_subscript.id, adsi_state.id, adsi_flag.id, adsi_display.id, adsi_key_cmd.id, id, local_optimization.id, conf_menu_action.id, native_rtp_framehook_data.id, unistim_device.id, Section.id, enum_result_datastore.id, srv_result_datastore.id, audiosocket_instance.id, ast_aoc_charging_association.id, ast_cc_monitor.id, ast_party_caller.id, ast_set_party_caller.id, ast_party_connected_line.id, ast_set_party_connected_line.id, ast_codec.id, ast_aeap_message_type.id, ast_fax_session_details.id, ast_fax_session.id, ast_geoloc_eprofile.id, ast_sip_transport_state.id, ast_sip_endpoint.id, ast_sip_session.id, ast_sip_session_sdp_handler.id, ast_rtp_engine_ice_candidate.id, ast_channel_snapshot_bridge.id, ast_endpoint_snapshot.id, ast_xmpp_message.id, ast_xmpp_buddy.id, aoc_ie_billing.id, sync_payload.id, bridge_sync.id, cel_linkedid.id, dns_HEADER.id, ast_endpoint.id, ast_framehook.id, io_rec.id, category_t.id, ast_state_cb.id, sched_id.id, ast_sorcery_object.id, cache_entry_key.id, stasis_message_type.id, stasis_state_proxy.id, stasis_state.id, stun_trans_id.id, stun_header.id, worker_thread.id, dundi_result_datastore.id, ast_ari_asterisk_get_object_args.id, ast_ari_asterisk_update_object_args.id, ast_ari_asterisk_delete_object_args.id, aeap_user_data.id, aeap_transaction.id, calendar_id.id, corosync_node.id, eprofiles_datastore.id, ast_sip_outbound_publish_state.id, mwi_subscription.id, hep_ctrl.id, internal_state.id, exten_state_subscription.id, unbound_resolver_data.id, smdi_msg_datastore.id, stasis_app_playback.id, app_forwards.id, Model.id, mock_payload.id, test_obj.id, cache_test_data.id, Model.id_lc, Model.load(), 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, Model.subtypes, and swagger_model.validate_required_fields().
Referenced by Model.load(), ApiDeclaration.load_file(), and ResourceListing.load_file().
def properties | ( | self | ) |
Definition at line 573 of file swagger_model.py.
References Model.__extends_type, Model.__properties, and Model.properties().
Referenced by Model.has_properties(), and Model.properties().
def set_extends_type | ( | self, | |
extends_type | |||
) |
Definition at line 561 of file swagger_model.py.
References Model.__extends_type.
def set_subtype_types | ( | self, | |
subtype_types | |||
) |
Definition at line 564 of file swagger_model.py.
References Model.__subtype_types.
description |
Definition at line 510 of file swagger_model.py.
Referenced by Api.load(), ResourceApi.load(), Model.load(), Parameter.load(), and Property.load().
id |
Definition at line 505 of file swagger_model.py.
Referenced by Section.__cmp__(), Section.__eq__(), Section.__ge__(), Section.__gt__(), Section.__le__(), Section.__lt__(), and Model.load().
id_lc |
Definition at line 506 of file swagger_model.py.
Referenced by Model.load().
model_json |
Definition at line 549 of file swagger_model.py.
notes |
Definition at line 509 of file swagger_model.py.
|
static |
Definition at line 502 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().
subtypes |
Definition at line 507 of file swagger_model.py.
Referenced by Model.has_subtypes(), and Model.load().