ask_sdk_model.interfaces.connections.entities package¶
Submodules¶
Note
Canonical imports have been added in the __init__.py
of the package.
This helps in importing the class directly from the package, than
through the module.
For eg: if package a
has module b
with
class C
, you can do from a import C
instead of
from a.b import C
.
ask_sdk_model.interfaces.connections.entities.base_entity module¶
-
class
ask_sdk_model.interfaces.connections.entities.base_entity.
BaseEntity
(object_type=None, version=None)¶ Bases:
object
Parameters: Note
This is an abstract class. Use the following mapping, to figure out the model class to be instantiated, that sets
@type
variable.-
attribute_map
= {'object_type': '@type', 'version': '@version'}¶
-
deserialized_types
= {'object_type': 'str', 'version': 'str'}¶
-
discriminator_value_class_map
= {'PostalAddress': 'ask_sdk_model.interfaces.connections.entities.postal_address.PostalAddress', 'Restaurant': 'ask_sdk_model.interfaces.connections.entities.restaurant.Restaurant'}¶
-
classmethod
get_real_child_model
(data)¶ Returns the real base class specified by the discriminator
-
json_discriminator_key
= '@type'¶
-
supports_multiple_types
= False¶
-
to_dict
()¶ Returns the model properties as a dict
-
to_str
()¶ Returns the string representation of the model
-
ask_sdk_model.interfaces.connections.entities.postal_address module¶
-
class
ask_sdk_model.interfaces.connections.entities.postal_address.
PostalAddress
(version=None, street_address=None, locality=None, region=None, postal_code=None, country=None)¶ Bases:
ask_sdk_model.interfaces.connections.entities.base_entity.BaseEntity
Postal Address
Parameters: -
attribute_map
= {'country': 'country', 'locality': 'locality', 'object_type': '@type', 'postal_code': 'postalCode', 'region': 'region', 'street_address': 'streetAddress', 'version': '@version'}¶
-
deserialized_types
= {'country': 'str', 'locality': 'str', 'object_type': 'str', 'postal_code': 'str', 'region': 'str', 'street_address': 'str', 'version': 'str'}¶
-
supports_multiple_types
= False¶
-
to_dict
()¶ Returns the model properties as a dict
-
to_str
()¶ Returns the string representation of the model
-
ask_sdk_model.interfaces.connections.entities.restaurant module¶
-
class
ask_sdk_model.interfaces.connections.entities.restaurant.
Restaurant
(version=None, name=None, location=None)¶ Bases:
ask_sdk_model.interfaces.connections.entities.base_entity.BaseEntity
Restaurant entity
Parameters: - version ((optional) str) – version of the request
- name ((optional) str) – name of the restaurant
- location ((optional) ask_sdk_model.interfaces.connections.entities.postal_address.PostalAddress) – location
-
attribute_map
= {'location': 'location', 'name': 'name', 'object_type': '@type', 'version': '@version'}¶
-
deserialized_types
= {'location': 'ask_sdk_model.interfaces.connections.entities.postal_address.PostalAddress', 'name': 'str', 'object_type': 'str', 'version': 'str'}¶
-
supports_multiple_types
= False¶
-
to_dict
()¶ Returns the model properties as a dict
-
to_str
()¶ Returns the string representation of the model