Asterisk - The Open Source Telephony Project
18.5.0
|
Public Member Functions | |
def | __init__ (self) |
def | all_subtypes (self) |
def | discriminator (self) |
def | extends (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 | |
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 491 of file swagger_model.py.
def __init__ | ( | self | ) |
Definition at line 499 of file swagger_model.py.
def all_subtypes | ( | self | ) |
Returns the full list of all subtypes, including sub-subtypes.
Definition at line 572 of file swagger_model.py.
References Model.__subtype_types.
def discriminator | ( | self | ) |
Returns the discriminator, digging through base types if needed.
Definition at line 557 of file swagger_model.py.
References Model.__discriminator, and Model.__extends_type.
def extends | ( | self | ) |
Definition at line 548 of file swagger_model.py.
References Model.__extends_type.
def has_properties | ( | self | ) |
Definition at line 569 of file swagger_model.py.
References len(), ast_rtp_instance.properties, Model.properties(), and ast_channel_tech.properties.
def has_subtypes | ( | self | ) |
Returns True if type has any subtypes.
Definition at line 580 of file swagger_model.py.
References len(), and Model.subtypes.
def load | ( | self, | |
id, | |||
model_json, | |||
processor, | |||
context | |||
) |
Definition at line 509 of file swagger_model.py.
References Model.__discriminator, Model.__properties, ast_codec.description, media_variant.description, ast_app.description, ast_xml_doc_item.description, ast_calendar_tech.description, ast_tone_zone.description, ast_xmpp_resource.description, ast_calendar_event.description, ast_http_uri.description, manager_action.description, ast_switch.description, ast_fax_tech.description, ast_test_info.description, Parameter.description, ast_module_info.description, Api.description, dahdi_pvt.description, Property.description, Model.description, iax2_peer.description, ast_channel_tech.description, stasis_subscription_change.description, ast_value_translation.description, sip_peer.description, category_t.id, stasis_state_proxy.id, ast_framehook.id, stasis_message_type.id, internal_state.id, ast_codec.id, Section.id, ast_ari_asterisk_get_object_args.id, audiosocket_instance.id, native_rtp_framehook_data.id, ast_endpoint_snapshot.id, ast_channel_snapshot_bridge.id, io_rec.id, ast_endpoint.id, ast_ari_asterisk_update_object_args.id, calendar_id.id, stun_trans_id.id, exten_state_subscription.id, sched_id.id, stun_header.id, stasis_app_playback.id, srv_result_datastore.id, corosync_node.id, adsi_event.id, sync_payload.id, unbound_resolver_data.id, app_forwards.id, ast_ari_asterisk_delete_object_args.id, ast_sip_transport_state.id, adapter_pvt.id, bridge_sync.id, ast_xmpp_message.id, ast_xmpp_buddy.id, ast_fax_session_details.id, mbl_pvt.id, dns_HEADER.id, ast_sorcery_object.id, mwi_subscription.id, adsi_soft_key.id, adsi_subscript.id, worker_thread.id, adsi_state.id, adsi_flag.id, adsi_display.id, cel_linkedid.id, cache_entry_key.id, ast_aoc_charging_association.id, ast_fax_session.id, ast_sip_session.id, hep_ctrl.id, enum_result_datastore.id, ast_sip_outbound_publish_state.id, aoc_ie_billing.id, ast_state_cb.id, mgcp_subchannel.id, ast_sip_session_sdp_handler.id, ast_party_caller.id, unistim_device.id, ast_set_party_caller.id, ast_party_connected_line.id, ast_rtp_engine_ice_candidate.id, ast_set_party_connected_line.id, Model.id, ast_cc_monitor.id, cfsip_methods.id, conf_menu_action.id, ast_sip_endpoint.id, adsi_key_cmd.id, smdi_msg_datastore.id, sip_mailbox.id, id, cfsip_options.id, dundi_result_datastore.id, local_optimization.id, Parameter.required_fields, ErrorResponse.required_fields, Operation.required_fields, Api.required_fields, Property.required_fields, Model.required_fields, Model.subtypes, and swagger_model.validate_required_fields().
Referenced by ApiDeclaration.load_file(), and ResourceListing.load_file().
def properties | ( | self | ) |
Definition at line 563 of file swagger_model.py.
References Model.__extends_type, and Model.__properties.
Referenced by Model.has_properties().
def set_extends_type | ( | self, | |
extends_type | |||
) |
Definition at line 551 of file swagger_model.py.
References Model.__extends_type.
def set_subtype_types | ( | self, | |
subtype_types | |||
) |
Definition at line 554 of file swagger_model.py.
References Model.__subtype_types.
description |
Definition at line 504 of file swagger_model.py.
Referenced by Model.load(), and ResourceApi.load().
id |
Definition at line 500 of file swagger_model.py.
Referenced by Model.load().
model_json |
Definition at line 542 of file swagger_model.py.
notes |
Definition at line 503 of file swagger_model.py.
|
static |
Definition at line 497 of file swagger_model.py.
Referenced by Model.load(), ApiDeclaration.load(), ResourceApi.load(), and ResourceListing.load().
subtypes |
Definition at line 501 of file swagger_model.py.
Referenced by Model.has_subtypes(), and Model.load().