ask_smapi_model.v1.skill.simulations 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_smapi_model.v1.skill.simulations.alexa_execution_info module

class ask_smapi_model.v1.skill.simulations.alexa_execution_info.AlexaExecutionInfo(alexa_responses=None)

Bases: object

Parameters:alexa_responses ((optional) list[ask_smapi_model.v1.skill.simulations.alexa_response.AlexaResponse]) –
attribute_map = {'alexa_responses': 'alexaResponses'}
deserialized_types = {'alexa_responses': 'list[ask_smapi_model.v1.skill.simulations.alexa_response.AlexaResponse]'}
supports_multiple_types = False
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

ask_smapi_model.v1.skill.simulations.alexa_response module

class ask_smapi_model.v1.skill.simulations.alexa_response.AlexaResponse(object_type=None, content=None)

Bases: object

Parameters:
attribute_map = {'content': 'content', 'object_type': 'type'}
deserialized_types = {'content': 'ask_smapi_model.v1.skill.simulations.alexa_response_content.AlexaResponseContent', 'object_type': 'str'}
supports_multiple_types = False
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

ask_smapi_model.v1.skill.simulations.alexa_response_content module

class ask_smapi_model.v1.skill.simulations.alexa_response_content.AlexaResponseContent(caption=None)

Bases: object

Parameters:caption ((optional) str) – The plain text get from Alexa speech response
attribute_map = {'caption': 'caption'}
deserialized_types = {'caption': 'str'}
supports_multiple_types = False
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

ask_smapi_model.v1.skill.simulations.device module

class ask_smapi_model.v1.skill.simulations.device.Device(locale=None)

Bases: object

Model of a virtual device used for simulation. This device object emulates attributes associated with a real Alexa enabled device.

Parameters:locale ((optional) str) – A valid locale (e.g "en-US") for the virtual device used in simulation.
attribute_map = {'locale': 'locale'}
deserialized_types = {'locale': 'str'}
supports_multiple_types = False
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

ask_smapi_model.v1.skill.simulations.input module

class ask_smapi_model.v1.skill.simulations.input.Input(content=None)

Bases: object

Parameters:content ((optional) str) – A string corresponding to the utterance text of what a customer would say to Alexa.
attribute_map = {'content': 'content'}
deserialized_types = {'content': 'str'}
supports_multiple_types = False
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

ask_smapi_model.v1.skill.simulations.invocation_request module

class ask_smapi_model.v1.skill.simulations.invocation_request.InvocationRequest(endpoint=None, body=None)

Bases: object

Parameters:
  • endpoint ((optional) str) – Skill's Lambda or HTTPS endpoint.
  • body ((optional) dict(str, object)) – JSON payload that was sent to the skill's Lambda or HTTPS endpoint.
attribute_map = {'body': 'body', 'endpoint': 'endpoint'}
deserialized_types = {'body': 'dict(str, object)', 'endpoint': 'str'}
supports_multiple_types = False
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

ask_smapi_model.v1.skill.simulations.invocation_response module

class ask_smapi_model.v1.skill.simulations.invocation_response.InvocationResponse(body=None)

Bases: object

Parameters:body ((optional) dict(str, object)) – Payload that was returned by the skill's Lambda or HTTPS endpoint.
attribute_map = {'body': 'body'}
deserialized_types = {'body': 'dict(str, object)'}
supports_multiple_types = False
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

ask_smapi_model.v1.skill.simulations.invocations module

ask_smapi_model.v1.skill.simulations.metrics module

class ask_smapi_model.v1.skill.simulations.metrics.Metrics(skill_execution_time_in_milliseconds=None)

Bases: object

Parameters:skill_execution_time_in_milliseconds ((optional) int) – How long, in milliseconds, it took the skill's Lambda or HTTPS endpoint to process the request.
attribute_map = {'skill_execution_time_in_milliseconds': 'skillExecutionTimeInMilliseconds'}
deserialized_types = {'skill_execution_time_in_milliseconds': 'int'}
supports_multiple_types = False
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

ask_smapi_model.v1.skill.simulations.session module

class ask_smapi_model.v1.skill.simulations.session.Session(mode=None)

Bases: object

Session settings for running current simulation.

Parameters:mode ((optional) ask_smapi_model.v1.skill.simulations.session_mode.SessionMode) –
attribute_map = {'mode': 'mode'}
deserialized_types = {'mode': 'ask_smapi_model.v1.skill.simulations.session_mode.SessionMode'}
supports_multiple_types = False
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

ask_smapi_model.v1.skill.simulations.session_mode module

class ask_smapi_model.v1.skill.simulations.session_mode.SessionMode

Bases: enum.Enum

Indicate the session mode of the current simulation is using.

Allowed enum values: [DEFAULT, FORCE_NEW_SESSION]

DEFAULT = 'DEFAULT'
FORCE_NEW_SESSION = 'FORCE_NEW_SESSION'
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

ask_smapi_model.v1.skill.simulations.simulation_result module

class ask_smapi_model.v1.skill.simulations.simulation_result.SimulationResult(alexa_execution_info=None, skill_execution_info=None, error=None)

Bases: object

Parameters:
attribute_map = {'alexa_execution_info': 'alexaExecutionInfo', 'error': 'error', 'skill_execution_info': 'skillExecutionInfo'}
deserialized_types = {'alexa_execution_info': 'ask_smapi_model.v1.skill.simulations.alexa_execution_info.AlexaExecutionInfo', 'error': 'ask_smapi_model.v1.error.Error', 'skill_execution_info': 'ask_smapi_model.v1.skill.simulations.invocation.Invocation'}
supports_multiple_types = False
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

ask_smapi_model.v1.skill.simulations.simulations_api_request module

class ask_smapi_model.v1.skill.simulations.simulations_api_request.SimulationsApiRequest(input=None, device=None, session=None)

Bases: object

Parameters:
attribute_map = {'device': 'device', 'input': 'input', 'session': 'session'}
deserialized_types = {'device': 'ask_smapi_model.v1.skill.simulations.device.Device', 'input': 'ask_smapi_model.v1.skill.simulations.input.Input', 'session': 'ask_smapi_model.v1.skill.simulations.session.Session'}
supports_multiple_types = False
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

ask_smapi_model.v1.skill.simulations.simulations_api_response module

class ask_smapi_model.v1.skill.simulations.simulations_api_response.SimulationsApiResponse(id=None, status=None, result=None)

Bases: object

Parameters:
attribute_map = {'id': 'id', 'result': 'result', 'status': 'status'}
deserialized_types = {'id': 'str', 'result': 'ask_smapi_model.v1.skill.simulations.simulation_result.SimulationResult', 'status': 'ask_smapi_model.v1.skill.simulations.simulations_api_response_status.SimulationsApiResponseStatus'}
supports_multiple_types = False
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

ask_smapi_model.v1.skill.simulations.simulations_api_response_status module

class ask_smapi_model.v1.skill.simulations.simulations_api_response_status.SimulationsApiResponseStatus

Bases: enum.Enum

String that specifies the current status of the simulation. Possible values are "IN_PROGRESS", "SUCCESSFUL", and "FAILED".

Allowed enum values: [IN_PROGRESS, SUCCESSFUL, FAILED]

FAILED = 'FAILED'
IN_PROGRESS = 'IN_PROGRESS'
SUCCESSFUL = 'SUCCESSFUL'
to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model